Repository: MicroSugarDeveloperOrg/Avalonia.WebView Branch: main Commit: 0dda7e243973 Files: 3841 Total size: 20.7 MB Directory structure: gitextract_et0afd09/ ├── .editorconfig ├── .gitignore ├── .vscode/ │ └── settings.json ├── Avalonia.WebView.sln ├── Build/ │ ├── Directory.Packages.targets │ ├── Directory.build.common.props │ ├── Directory.build.common.targets │ ├── Directory.build.operation.common.props │ ├── Directory.webview.android.common.targets │ ├── Directory.webview.blazor.common.targets │ ├── Directory.webview.desktop.common.targets │ └── Directory.webview.ios.common.targets ├── Directory.Build.props ├── Directory.Packages.props ├── Directory.build.targets ├── Directory.buildcpp.props ├── LICENSE ├── Nuget.bat ├── README.md ├── README.zh-CN.md ├── Source/ │ ├── Avalonia.BlazorWebView/ │ │ ├── Avalonia.BlazorWebView.csproj │ │ ├── AvaloniaBlazorWebViewBuilder.cs │ │ ├── BlazorWebView-AvaloniaProperty.cs │ │ ├── BlazorWebView-Core.cs │ │ ├── BlazorWebView-Events.cs │ │ ├── BlazorWebView-Host-AvaloniaProperty.cs │ │ ├── BlazorWebView-Override.cs │ │ ├── BlazorWebView-VirtualView.cs │ │ ├── BlazorWebView-VirtualViewCallBack.cs │ │ ├── BlazorWebView-WebViewControl.cs │ │ ├── BlazorWebView.cs │ │ ├── Common/ │ │ │ ├── AvaloniaResourceFileProvider.cs │ │ │ └── StaticContentHotReloadManager.cs │ │ ├── Components/ │ │ │ ├── BlazorRootComponent.cs │ │ │ └── BlazorRootComponentsCollection.cs │ │ ├── Configurations/ │ │ │ ├── BlazorWebViewSetting.cs │ │ │ └── JsComponentConfigration.cs │ │ ├── Core/ │ │ │ ├── AutoCloseOnReadCompleteStream.cs │ │ │ ├── AvaloniaDispatcher.cs │ │ │ ├── AvaloniaWebViewManager.cs │ │ │ ├── BlazorWebViewApplication.cs │ │ │ └── BlazorWebViewApplicationBuilder.cs │ │ ├── Extensions/ │ │ │ └── UriExtensions.cs │ │ ├── IBlazorWebViewApplication.cs │ │ ├── IBlazorWebViewApplicationBuilder.cs │ │ └── Properties/ │ │ ├── AssemblyInfo.cs │ │ └── _globalusing.cs │ ├── Avalonia.WebView/ │ │ ├── Avalonia.WebView.csproj │ │ ├── AvaloniaWebViewBuilder.cs │ │ ├── Core/ │ │ │ └── IEmptyView.cs │ │ ├── Helpers/ │ │ │ └── BorderRenderHelper.cs │ │ ├── Properties/ │ │ │ ├── AssemblyInfo.cs │ │ │ └── _globalusing.cs │ │ ├── WebView-AvaloniaProperty.cs │ │ ├── WebView-Core.cs │ │ ├── WebView-Events.cs │ │ ├── WebView-Host-AvaloniaProperty.cs │ │ ├── WebView-Override.cs │ │ ├── WebView-VirtualView.cs │ │ ├── WebView-VirtualViewCallBack.cs │ │ ├── WebView-WebViewControl.cs │ │ └── WebView.cs │ ├── AvaloniaWebView.Shared/ │ │ ├── AppBuilderExtensions.cs │ │ ├── AvaloniaWebView.Shared.csproj │ │ ├── Core/ │ │ │ └── AvaloniaHandlerCollection.cs │ │ ├── Extensions/ │ │ │ └── AvaloniaCommonExtensions.cs │ │ ├── Handlers/ │ │ │ ├── ViewHandler.cs │ │ │ └── ViewHandler@T.cs │ │ ├── IAvaloniaHandlerCollection.cs │ │ ├── IAvaloniaHandlerCollectionExtensions.cs │ │ ├── IPropertyMapper.cs │ │ ├── IPropertyMapper@T.cs │ │ ├── IViewHandler.cs │ │ └── IViewHandlerProvider.cs │ ├── DryIoc.Shared/ │ │ ├── DryIoc.Shared.csproj │ │ └── Extensions/ │ │ ├── DryIocExtensions.cs │ │ ├── DryIocExtensionsEx.cs │ │ ├── DryIocExtensionsTx.cs │ │ └── RulesExtensions.cs │ ├── Platform/ │ │ ├── Android/ │ │ │ └── Avalonia.WebView.Android/ │ │ │ ├── AppBuilderExtensions.cs │ │ │ ├── Avalonia.WebView.Android.csproj │ │ │ ├── BlazorWebViewHandlerProvider.cs │ │ │ ├── Clients/ │ │ │ │ ├── AvaloniaWebChromeClient.cs │ │ │ │ └── AvaloniaWebViewClient.cs │ │ │ ├── Common/ │ │ │ │ └── AndroidAssetFileProvider.cs │ │ │ ├── Core/ │ │ │ │ ├── AndroidWebViewCore-assist.cs │ │ │ │ ├── AndroidWebViewCore-core.cs │ │ │ │ ├── AndroidWebViewCore-event.cs │ │ │ │ ├── AndroidWebViewCore-override.cs │ │ │ │ └── AndroidWebViewCore.cs │ │ │ ├── Handlers/ │ │ │ │ ├── BlazorWebMessageCallback.cs │ │ │ │ └── JavaScriptValueCallback.cs │ │ │ ├── Helpers/ │ │ │ │ └── BlazorScriptHelper.cs │ │ │ ├── Properties/ │ │ │ │ └── _globalusing.cs │ │ │ ├── ViewHandlerProvider.cs │ │ │ └── WebViewHandler.cs │ │ ├── Desktop/ │ │ │ ├── Avalonia.WebView.Desktop/ │ │ │ │ ├── AppBuilderExtensions.cs │ │ │ │ └── Avalonia.WebView.Desktop.csproj │ │ │ └── Avalonia.WebView.DesktopX/ │ │ │ ├── AppBuilderExtensions.cs │ │ │ └── Avalonia.WebView.DesktopX.csproj │ │ ├── Linux/ │ │ │ ├── Avalonia.WebView.Linux/ │ │ │ │ ├── AppBuilderExtensions.cs │ │ │ │ ├── Avalonia.WebView.Linux.csproj │ │ │ │ ├── BlazorWebViewHandlerProvider.cs │ │ │ │ ├── Core/ │ │ │ │ │ ├── LinuxWebViewCore-assist.cs │ │ │ │ │ ├── LinuxWebViewCore-core.cs │ │ │ │ │ ├── LinuxWebViewCore-event.cs │ │ │ │ │ ├── LinuxWebViewCore-override.cs │ │ │ │ │ └── LinuxWebViewCore.cs │ │ │ │ ├── Handlers/ │ │ │ │ │ └── JavaScriptValueCallback.cs │ │ │ │ ├── Helpers/ │ │ │ │ │ └── BlazorScriptHelper.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── _globalusing.cs │ │ │ │ ├── ViewHandlerProvider.cs │ │ │ │ └── WebViewHandler.cs │ │ │ └── Linux.WebView.Core/ │ │ │ ├── Core/ │ │ │ │ ├── LinuxApplication.cs │ │ │ │ └── LinuxDispatcher.cs │ │ │ ├── Extensions/ │ │ │ │ └── GtkWindowExtesnsions.cs │ │ │ ├── ILinuxApplication.cs │ │ │ ├── ILinuxDispatcher.cs │ │ │ ├── Interoperates/ │ │ │ │ ├── GSList.cs │ │ │ │ ├── GtkApi.cs │ │ │ │ ├── Interop_gdk.cs │ │ │ │ ├── Interop_gdk_x11.cs │ │ │ │ ├── Interop_glib.cs │ │ │ │ ├── Interop_gobject.cs │ │ │ │ ├── Interop_gtk.cs │ │ │ │ ├── Interop_webkit.cs │ │ │ │ ├── LibraryLoader.cs │ │ │ │ └── gLibrary.cs │ │ │ ├── Linux.WebView.Core.csproj │ │ │ ├── LinuxApplicationBuilder.cs │ │ │ ├── LinuxApplicationManager.cs │ │ │ └── Properties/ │ │ │ └── _globalusing.cs │ │ ├── Mac/ │ │ │ ├── Avalonia.WebView.Mac/ │ │ │ │ ├── AppBuilderExtensions.cs │ │ │ │ ├── Avalonia.WebView.Mac.csproj │ │ │ │ ├── BlazorWebViewHandlerProvider.cs │ │ │ │ ├── Core/ │ │ │ │ │ ├── MacWebViewCore-assist.cs │ │ │ │ │ ├── MacWebViewCore-core.cs │ │ │ │ │ ├── MacWebViewCore-event.cs │ │ │ │ │ ├── MacWebViewCore-override.cs │ │ │ │ │ └── MacWebViewCore.cs │ │ │ │ ├── Delegates/ │ │ │ │ │ ├── WebViewFrameLoadDelegate.cs │ │ │ │ │ ├── WebViewNavigationDelegate.cs │ │ │ │ │ ├── WebViewResourceLoadDelegate.cs │ │ │ │ │ └── WebViewUIDelegate.cs │ │ │ │ ├── Helpers/ │ │ │ │ │ └── BlazorScriptHelper.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── _globalusing.cs │ │ │ │ ├── ViewHandlerProvider.cs │ │ │ │ └── WebViewHandler.cs │ │ │ ├── Avalonia.WebView.MacCatalyst/ │ │ │ │ ├── AppBuilderExtensions.cs │ │ │ │ ├── Avalonia.WebView.MacCatalyst.csproj │ │ │ │ ├── BlazorWebViewHandlerProvider.cs │ │ │ │ ├── Core/ │ │ │ │ │ ├── MacCatalystWebViewCore-assists.cs │ │ │ │ │ ├── MacCatalystWebViewCore-core.cs │ │ │ │ │ ├── MacCatalystWebViewCore-event.cs │ │ │ │ │ ├── MacCatalystWebViewCore-override.cs │ │ │ │ │ └── MacCatalystWebViewCore.cs │ │ │ │ ├── Delegates/ │ │ │ │ │ ├── WebViewNavigationDelegate.cs │ │ │ │ │ └── WebViewUIDelegate.cs │ │ │ │ ├── Handlers/ │ │ │ │ │ ├── SchemeHandler.cs │ │ │ │ │ └── WebViewScriptMessageHandler.cs │ │ │ │ ├── Helpers/ │ │ │ │ │ └── BlazorScriptHelper.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── _globalusing.cs │ │ │ │ ├── ViewHandlerProvider.cs │ │ │ │ └── WebViewHandler.cs │ │ │ └── Xamarin.Mac/ │ │ │ ├── AVFoundation/ │ │ │ │ ├── AVAsset.cs │ │ │ │ ├── AVAssetExportSession.cs │ │ │ │ ├── AVAssetExportSessionStatus.cs │ │ │ │ ├── AVAssetImageGenerator.cs │ │ │ │ ├── AVAssetImageGeneratorCompletionHandler.cs │ │ │ │ ├── AVAssetImageGeneratorResult.cs │ │ │ │ ├── AVAssetReader.cs │ │ │ │ ├── AVAssetReaderAudioMixOutput.cs │ │ │ │ ├── AVAssetReaderOutput.cs │ │ │ │ ├── AVAssetReaderStatus.cs │ │ │ │ ├── AVAssetReaderTrackOutput.cs │ │ │ │ ├── AVAssetReaderVideoCompositionOutput.cs │ │ │ │ ├── AVAssetReferenceRestrictions.cs │ │ │ │ ├── AVAssetTrack.cs │ │ │ │ ├── AVAssetTrackSegment.cs │ │ │ │ ├── AVAssetWriter.cs │ │ │ │ ├── AVAssetWriterInput.cs │ │ │ │ ├── AVAssetWriterInputPixelBufferAdaptor.cs │ │ │ │ ├── AVAssetWriterStatus.cs │ │ │ │ ├── AVAsynchronousKeyValueLoading.cs │ │ │ │ ├── AVAudioMix.cs │ │ │ │ ├── AVAudioMixInputParameters.cs │ │ │ │ ├── AVAudioPlayer.cs │ │ │ │ ├── AVAudioPlayerDelegate.cs │ │ │ │ ├── AVAudioPlayerSettings.cs │ │ │ │ ├── AVAudioQuality.cs │ │ │ │ ├── AVAudioRecorder.cs │ │ │ │ ├── AVAudioRecorderDelegate.cs │ │ │ │ ├── AVAudioRecorderSettings.cs │ │ │ │ ├── AVAudioSessionCategoryOptions.cs │ │ │ │ ├── AVAudioSessionFlags.cs │ │ │ │ ├── AVAudioSessionInterruptionFlags.cs │ │ │ │ ├── AVAudioSessionInterruptionOptions.cs │ │ │ │ ├── AVAudioSessionInterruptionType.cs │ │ │ │ ├── AVAudioSessionPortOverride.cs │ │ │ │ ├── AVAudioSessionRouteChangeReason.cs │ │ │ │ ├── AVAudioSessionSetActiveOptions.cs │ │ │ │ ├── AVAudioSettings.cs │ │ │ │ ├── AVCaptureAudioChannel.cs │ │ │ │ ├── AVCaptureAudioDataOutput.cs │ │ │ │ ├── AVCaptureAudioDataOutputSampleBufferDelegate.cs │ │ │ │ ├── AVCaptureCompletionHandler.cs │ │ │ │ ├── AVCaptureConnection.cs │ │ │ │ ├── AVCaptureDevice.cs │ │ │ │ ├── AVCaptureDeviceInput.cs │ │ │ │ ├── AVCaptureDevicePosition.cs │ │ │ │ ├── AVCaptureDeviceTransportControlsPlaybackMode.cs │ │ │ │ ├── AVCaptureExposureMode.cs │ │ │ │ ├── AVCaptureFileOutput.cs │ │ │ │ ├── AVCaptureFileOutputRecordingDelegate.cs │ │ │ │ ├── AVCaptureFlashMode.cs │ │ │ │ ├── AVCaptureFocusMode.cs │ │ │ │ ├── AVCaptureInput.cs │ │ │ │ ├── AVCaptureInputPort.cs │ │ │ │ ├── AVCaptureMovieFileOutput.cs │ │ │ │ ├── AVCaptureOutput.cs │ │ │ │ ├── AVCaptureSession.cs │ │ │ │ ├── AVCaptureSessionRuntimeErrorEventArgs.cs │ │ │ │ ├── AVCaptureStillImageOutput.cs │ │ │ │ ├── AVCaptureTorchMode.cs │ │ │ │ ├── AVCaptureVideoDataOutput.cs │ │ │ │ ├── AVCaptureVideoDataOutputSampleBufferDelegate.cs │ │ │ │ ├── AVCaptureVideoOrientation.cs │ │ │ │ ├── AVCaptureVideoPreviewLayer.cs │ │ │ │ ├── AVCaptureWhiteBalanceMode.cs │ │ │ │ ├── AVCategoryEventArgs.cs │ │ │ │ ├── AVChannelsEventArgs.cs │ │ │ │ ├── AVCompletion.cs │ │ │ │ ├── AVCompletionHandler.cs │ │ │ │ ├── AVComposition.cs │ │ │ │ ├── AVCompositionTrack.cs │ │ │ │ ├── AVCompositionTrackSegment.cs │ │ │ │ ├── AVError.cs │ │ │ │ ├── AVErrorEventArgs.cs │ │ │ │ ├── AVFileType.cs │ │ │ │ ├── AVKeyValueStatus.cs │ │ │ │ ├── AVMediaCharacteristic.cs │ │ │ │ ├── AVMediaType.cs │ │ │ │ ├── AVMetadata.cs │ │ │ │ ├── AVMetadataItem.cs │ │ │ │ ├── AVMutableAudioMix.cs │ │ │ │ ├── AVMutableAudioMixInputParameters.cs │ │ │ │ ├── AVMutableComposition.cs │ │ │ │ ├── AVMutableCompositionTrack.cs │ │ │ │ ├── AVMutableMetadataItem.cs │ │ │ │ ├── AVMutableTimedMetadataGroup.cs │ │ │ │ ├── AVMutableVideoComposition.cs │ │ │ │ ├── AVMutableVideoCompositionInstruction.cs │ │ │ │ ├── AVMutableVideoCompositionLayerInstruction.cs │ │ │ │ ├── AVPlayer.cs │ │ │ │ ├── AVPlayerActionAtItemEnd.cs │ │ │ │ ├── AVPlayerItem.cs │ │ │ │ ├── AVPlayerItemAccessLog.cs │ │ │ │ ├── AVPlayerItemAccessLogEvent.cs │ │ │ │ ├── AVPlayerItemErrorEventArgs.cs │ │ │ │ ├── AVPlayerItemErrorLog.cs │ │ │ │ ├── AVPlayerItemErrorLogEvent.cs │ │ │ │ ├── AVPlayerItemOutput.cs │ │ │ │ ├── AVPlayerItemOutputPullDelegate.cs │ │ │ │ ├── AVPlayerItemStatus.cs │ │ │ │ ├── AVPlayerItemTrack.cs │ │ │ │ ├── AVPlayerItemVideoOutput.cs │ │ │ │ ├── AVPlayerLayer.cs │ │ │ │ ├── AVPlayerStatus.cs │ │ │ │ ├── AVQueuePlayer.cs │ │ │ │ ├── AVSampleRateEventArgs.cs │ │ │ │ ├── AVStatusEventArgs.cs │ │ │ │ ├── AVTimeHandler.cs │ │ │ │ ├── AVTimedMetadataGroup.cs │ │ │ │ ├── AVUrlAsset.cs │ │ │ │ ├── AVUrlAssetOptions.cs │ │ │ │ ├── AVVideo.cs │ │ │ │ ├── AVVideoCleanApertureSettings.cs │ │ │ │ ├── AVVideoCodec.cs │ │ │ │ ├── AVVideoCodecSettings.cs │ │ │ │ ├── AVVideoComposition.cs │ │ │ │ ├── AVVideoCompositionCoreAnimationTool.cs │ │ │ │ ├── AVVideoCompositionInstruction.cs │ │ │ │ ├── AVVideoCompositionLayerInstruction.cs │ │ │ │ ├── AVVideoCompositionValidationHandling.cs │ │ │ │ ├── AVVideoFieldMode.cs │ │ │ │ ├── AVVideoPixelAspectRatioSettings.cs │ │ │ │ ├── AVVideoProfileLevelH264.cs │ │ │ │ ├── AVVideoScalingMode.cs │ │ │ │ ├── AVVideoScalingModeKey.cs │ │ │ │ ├── AVVideoSettings.cs │ │ │ │ ├── AVVideoSettingsCompressed.cs │ │ │ │ ├── AVVideoSettingsUncompressed.cs │ │ │ │ ├── AudioSettings.cs │ │ │ │ ├── InternalAVAudioPlayerDelegate.cs │ │ │ │ └── InternalAVAudioRecorderDelegate.cs │ │ │ ├── AddressBook/ │ │ │ │ ├── ABAddressBook.cs │ │ │ │ ├── ABAddressBookError.cs │ │ │ │ ├── ABAuthorizationStatus.cs │ │ │ │ ├── ABGroup.cs │ │ │ │ ├── ABGroupProperty.cs │ │ │ │ ├── ABLabel.cs │ │ │ │ ├── ABMultiValue.cs │ │ │ │ ├── ABMultiValueEntry.cs │ │ │ │ ├── ABMutableDateMultiValue.cs │ │ │ │ ├── ABMutableDictionaryMultiValue.cs │ │ │ │ ├── ABMutableMultiValue.cs │ │ │ │ ├── ABMutableStringMultiValue.cs │ │ │ │ ├── ABPerson.cs │ │ │ │ ├── ABPersonAddressKey.cs │ │ │ │ ├── ABPersonCompositeNameFormat.cs │ │ │ │ ├── ABPersonDateLabel.cs │ │ │ │ ├── ABPersonImageFormat.cs │ │ │ │ ├── ABPersonInstantMessageKey.cs │ │ │ │ ├── ABPersonInstantMessageService.cs │ │ │ │ ├── ABPersonKind.cs │ │ │ │ ├── ABPersonKindId.cs │ │ │ │ ├── ABPersonPhoneLabel.cs │ │ │ │ ├── ABPersonProperty.cs │ │ │ │ ├── ABPersonPropertyId.cs │ │ │ │ ├── ABPersonRelatedNamesLabel.cs │ │ │ │ ├── ABPersonSocialProfile.cs │ │ │ │ ├── ABPersonSocialProfileService.cs │ │ │ │ ├── ABPersonSortBy.cs │ │ │ │ ├── ABPersonUrlLabel.cs │ │ │ │ ├── ABPropertyType.cs │ │ │ │ ├── ABRecord.cs │ │ │ │ ├── ABRecordType.cs │ │ │ │ ├── ABSource.cs │ │ │ │ ├── ABSourceProperty.cs │ │ │ │ ├── ABSourcePropertyId.cs │ │ │ │ ├── ABSourceType.cs │ │ │ │ ├── ExternalChangeEventArgs.cs │ │ │ │ ├── InitConstants.cs │ │ │ │ ├── InstantMessageService.cs │ │ │ │ ├── PersonAddress.cs │ │ │ │ └── SocialProfile.cs │ │ │ ├── AppKit/ │ │ │ │ ├── ActionDispatcher.cs │ │ │ │ ├── AppKitFramework.cs │ │ │ │ ├── AppKitSynchronizationContext.cs │ │ │ │ ├── AppKitThreadAccessException.cs │ │ │ │ ├── DrawerShouldCloseDelegate.cs │ │ │ │ ├── DrawerShouldOpenDelegate.cs │ │ │ │ ├── DrawerWillResizeContentsDelegate.cs │ │ │ │ ├── GlobalEventHandler.cs │ │ │ │ ├── INSValidatedUserInterfaceItem.cs │ │ │ │ ├── LocalEventHandler.cs │ │ │ │ ├── NSActionCell.cs │ │ │ │ ├── NSAlert.cs │ │ │ │ ├── NSAlertButtonReturn.cs │ │ │ │ ├── NSAlertDelegate.cs │ │ │ │ ├── NSAlertDidEndDispatcher.cs │ │ │ │ ├── NSAlertPredicate.cs │ │ │ │ ├── NSAlertStyle.cs │ │ │ │ ├── NSAlertType.cs │ │ │ │ ├── NSAnimation.cs │ │ │ │ ├── NSAnimationBlockingMode.cs │ │ │ │ ├── NSAnimationContext.cs │ │ │ │ ├── NSAnimationCurve.cs │ │ │ │ ├── NSAnimationDelegate.cs │ │ │ │ ├── NSAnimationEffect.cs │ │ │ │ ├── NSAnimationEventArgs.cs │ │ │ │ ├── NSAnimationPredicate.cs │ │ │ │ ├── NSAnimationProgress.cs │ │ │ │ ├── NSAnimationProgressMarkEventArgs.cs │ │ │ │ ├── NSAppearance.cs │ │ │ │ ├── NSApplication.cs │ │ │ │ ├── NSApplicationActivationOptions.cs │ │ │ │ ├── NSApplicationActivationPolicy.cs │ │ │ │ ├── NSApplicationDelegate.cs │ │ │ │ ├── NSApplicationDelegateReply.cs │ │ │ │ ├── NSApplicationDidFinishLaunchingEventArgs.cs │ │ │ │ ├── NSApplicationError.cs │ │ │ │ ├── NSApplicationFile.cs │ │ │ │ ├── NSApplicationFileCommand.cs │ │ │ │ ├── NSApplicationFilesEventArgs.cs │ │ │ │ ├── NSApplicationLayoutDirection.cs │ │ │ │ ├── NSApplicationMenu.cs │ │ │ │ ├── NSApplicationPredicate.cs │ │ │ │ ├── NSApplicationPresentationOptions.cs │ │ │ │ ├── NSApplicationPrint.cs │ │ │ │ ├── NSApplicationPrintReply.cs │ │ │ │ ├── NSApplicationRegisterEventArgs.cs │ │ │ │ ├── NSApplicationReopen.cs │ │ │ │ ├── NSApplicationSelection.cs │ │ │ │ ├── NSApplicationTerminateReply.cs │ │ │ │ ├── NSApplicationTermination.cs │ │ │ │ ├── NSArrayController.cs │ │ │ │ ├── NSBackgroundStyle.cs │ │ │ │ ├── NSBackingStore.cs │ │ │ │ ├── NSBezelStyle.cs │ │ │ │ ├── NSBezierPath.cs │ │ │ │ ├── NSBezierPathElement.cs │ │ │ │ ├── NSBitmapFormat.cs │ │ │ │ ├── NSBitmapImageFileType.cs │ │ │ │ ├── NSBitmapImageRep.cs │ │ │ │ ├── NSBorderType.cs │ │ │ │ ├── NSBox.cs │ │ │ │ ├── NSBoxType.cs │ │ │ │ ├── NSBrowser.cs │ │ │ │ ├── NSBrowserCell.cs │ │ │ │ ├── NSBrowserColumnResizingType.cs │ │ │ │ ├── NSBrowserDelegate.cs │ │ │ │ ├── NSBrowserDropOperation.cs │ │ │ │ ├── NSButton.cs │ │ │ │ ├── NSButtonCell.cs │ │ │ │ ├── NSButtonType.cs │ │ │ │ ├── NSCIImageRep.cs │ │ │ │ ├── NSCachedImageRep.cs │ │ │ │ ├── NSCell.cs │ │ │ │ ├── NSCellAttribute.cs │ │ │ │ ├── NSCellHit.cs │ │ │ │ ├── NSCellImagePosition.cs │ │ │ │ ├── NSCellMask.cs │ │ │ │ ├── NSCellStateValue.cs │ │ │ │ ├── NSCellType.cs │ │ │ │ ├── NSClipView.cs │ │ │ │ ├── NSCoderEventArgs.cs │ │ │ │ ├── NSCollectionView.cs │ │ │ │ ├── NSCollectionViewDelegate.cs │ │ │ │ ├── NSCollectionViewDropOperation.cs │ │ │ │ ├── NSCollectionViewItem.cs │ │ │ │ ├── NSColor.cs │ │ │ │ ├── NSColorList.cs │ │ │ │ ├── NSColorPanel.cs │ │ │ │ ├── NSColorPanelFlags.cs │ │ │ │ ├── NSColorPanelMode.cs │ │ │ │ ├── NSColorPicker.cs │ │ │ │ ├── NSColorRenderingIntent.cs │ │ │ │ ├── NSColorSpace.cs │ │ │ │ ├── NSColorSpaceModel.cs │ │ │ │ ├── NSColorWell.cs │ │ │ │ ├── NSComboBox.cs │ │ │ │ ├── NSComboBoxCell.cs │ │ │ │ ├── NSComboBoxCellDataSource.cs │ │ │ │ ├── NSComboBoxDataSource.cs │ │ │ │ ├── NSComposite.cs │ │ │ │ ├── NSCompositingOperation.cs │ │ │ │ ├── NSControl.cs │ │ │ │ ├── NSControlCommand.cs │ │ │ │ ├── NSControlSize.cs │ │ │ │ ├── NSControlText.cs │ │ │ │ ├── NSControlTextCompletion.cs │ │ │ │ ├── NSControlTextError.cs │ │ │ │ ├── NSControlTextErrorEventArgs.cs │ │ │ │ ├── NSControlTextFilter.cs │ │ │ │ ├── NSControlTextValidation.cs │ │ │ │ ├── NSControlTint.cs │ │ │ │ ├── NSController.cs │ │ │ │ ├── NSCursor.cs │ │ │ │ ├── NSCustomImageRep.cs │ │ │ │ ├── NSDataEventArgs.cs │ │ │ │ ├── NSDatePicker.cs │ │ │ │ ├── NSDatePickerCell.cs │ │ │ │ ├── NSDatePickerCellDelegate.cs │ │ │ │ ├── NSDatePickerElementFlags.cs │ │ │ │ ├── NSDatePickerMode.cs │ │ │ │ ├── NSDatePickerStyle.cs │ │ │ │ ├── NSDatePickerValidatorEventArgs.cs │ │ │ │ ├── NSDictionaryEventArgs.cs │ │ │ │ ├── NSDockTile.cs │ │ │ │ ├── NSDockTilePlugIn.cs │ │ │ │ ├── NSDocument.cs │ │ │ │ ├── NSDocumentChangeType.cs │ │ │ │ ├── NSDocumentCompletionHandler.cs │ │ │ │ ├── NSDocumentController.cs │ │ │ │ ├── NSDragOperation.cs │ │ │ │ ├── NSDraggingContext.cs │ │ │ │ ├── NSDraggingDestination.cs │ │ │ │ ├── NSDraggingEnumerator.cs │ │ │ │ ├── NSDraggingFormation.cs │ │ │ │ ├── NSDraggingImageComponent.cs │ │ │ │ ├── NSDraggingInfo.cs │ │ │ │ ├── NSDraggingItem.cs │ │ │ │ ├── NSDraggingItemEnumerationOptions.cs │ │ │ │ ├── NSDraggingItemImagesContentProvider.cs │ │ │ │ ├── NSDraggingSession.cs │ │ │ │ ├── NSDraggingSource.cs │ │ │ │ ├── NSDrawer.cs │ │ │ │ ├── NSDrawerDelegate.cs │ │ │ │ ├── NSDrawerState.cs │ │ │ │ ├── NSEPSImageRep.cs │ │ │ │ ├── NSEdgeInsets.cs │ │ │ │ ├── NSErrorEventArgs.cs │ │ │ │ ├── NSEvent.cs │ │ │ │ ├── NSEventGestureAxis.cs │ │ │ │ ├── NSEventMask.cs │ │ │ │ ├── NSEventModifierMask.cs │ │ │ │ ├── NSEventMouseSubtype.cs │ │ │ │ ├── NSEventPhase.cs │ │ │ │ ├── NSEventSubtype.cs │ │ │ │ ├── NSEventSwipeTrackingOptions.cs │ │ │ │ ├── NSEventTrackHandler.cs │ │ │ │ ├── NSEventType.cs │ │ │ │ ├── NSFileTypeForHFSTypeCode.cs │ │ │ │ ├── NSFileWrapperReadingOptions.cs │ │ │ │ ├── NSFocusRingPlacement.cs │ │ │ │ ├── NSFocusRingType.cs │ │ │ │ ├── NSFont.cs │ │ │ │ ├── NSFontCollection.cs │ │ │ │ ├── NSFontCollectionAction.cs │ │ │ │ ├── NSFontCollectionChangedEventArgs.cs │ │ │ │ ├── NSFontCollectionOptions.cs │ │ │ │ ├── NSFontCollectionVisibility.cs │ │ │ │ ├── NSFontDescriptor.cs │ │ │ │ ├── NSFontManager.cs │ │ │ │ ├── NSFontPanel.cs │ │ │ │ ├── NSFontPanelMode.cs │ │ │ │ ├── NSFontRenderingMode.cs │ │ │ │ ├── NSFontSymbolicTraits.cs │ │ │ │ ├── NSFontTraitMask.cs │ │ │ │ ├── NSForm.cs │ │ │ │ ├── NSFormCell.cs │ │ │ │ ├── NSGLColorBuffer.cs │ │ │ │ ├── NSGLFormat.cs │ │ │ │ ├── NSGLTextureCubeMap.cs │ │ │ │ ├── NSGLTextureTarget.cs │ │ │ │ ├── NSGlyphGenerator.cs │ │ │ │ ├── NSGlyphInscription.cs │ │ │ │ ├── NSGlyphStorageOptions.cs │ │ │ │ ├── NSGradient.cs │ │ │ │ ├── NSGradientDrawingOptions.cs │ │ │ │ ├── NSGradientType.cs │ │ │ │ ├── NSGraphics.cs │ │ │ │ ├── NSGraphicsContext.cs │ │ │ │ ├── NSHelpManager.cs │ │ │ │ ├── NSImage.cs │ │ │ │ ├── NSImageAlignment.cs │ │ │ │ ├── NSImageCacheMode.cs │ │ │ │ ├── NSImageCell.cs │ │ │ │ ├── NSImageDelegate.cs │ │ │ │ ├── NSImageFrameStyle.cs │ │ │ │ ├── NSImageInterpolation.cs │ │ │ │ ├── NSImageLoadEventArgs.cs │ │ │ │ ├── NSImageLoadRepresentationEventArgs.cs │ │ │ │ ├── NSImageLoadStatus.cs │ │ │ │ ├── NSImageName.cs │ │ │ │ ├── NSImagePartialEventArgs.cs │ │ │ │ ├── NSImageRect.cs │ │ │ │ ├── NSImageRep.cs │ │ │ │ ├── NSImageRepLoadStatus.cs │ │ │ │ ├── NSImageScale.cs │ │ │ │ ├── NSImageScaling.cs │ │ │ │ ├── NSImageView.cs │ │ │ │ ├── NSKey.cs │ │ │ │ ├── NSLayoutAttribute.cs │ │ │ │ ├── NSLayoutConstraint.cs │ │ │ │ ├── NSLayoutConstraintOrientation.cs │ │ │ │ ├── NSLayoutFormatOptions.cs │ │ │ │ ├── NSLayoutManager.cs │ │ │ │ ├── NSLayoutManagerDelegate.cs │ │ │ │ ├── NSLayoutPriority.cs │ │ │ │ ├── NSLayoutRelation.cs │ │ │ │ ├── NSLevelIndicator.cs │ │ │ │ ├── NSLevelIndicatorCell.cs │ │ │ │ ├── NSLevelIndicatorStyle.cs │ │ │ │ ├── NSLineBreakMode.cs │ │ │ │ ├── NSLineCapStyle.cs │ │ │ │ ├── NSLineJoinStyle.cs │ │ │ │ ├── NSLineMovementDirection.cs │ │ │ │ ├── NSLineSweepDirection.cs │ │ │ │ ├── NSMatrix.cs │ │ │ │ ├── NSMatrixDelegate.cs │ │ │ │ ├── NSMatrixMode.cs │ │ │ │ ├── NSMenu.cs │ │ │ │ ├── NSMenuDelegate.cs │ │ │ │ ├── NSMenuItem.cs │ │ │ │ ├── NSMenuItemCell.cs │ │ │ │ ├── NSMenuProperty.cs │ │ │ │ ├── NSMenuView.cs │ │ │ │ ├── NSMutableFontCollection.cs │ │ │ │ ├── NSMutableParagraphStyle.cs │ │ │ │ ├── NSNib.cs │ │ │ │ ├── NSObjectController.cs │ │ │ │ ├── NSObjectPredicate.cs │ │ │ │ ├── NSOpenGLContext.cs │ │ │ │ ├── NSOpenGLContextParameter.cs │ │ │ │ ├── NSOpenGLGlobalOption.cs │ │ │ │ ├── NSOpenGLPixelBuffer.cs │ │ │ │ ├── NSOpenGLPixelFormat.cs │ │ │ │ ├── NSOpenGLPixelFormatAttribute.cs │ │ │ │ ├── NSOpenGLProfile.cs │ │ │ │ ├── NSOpenGLView.cs │ │ │ │ ├── NSOpenPanel.cs │ │ │ │ ├── NSOpenSaveCompare.cs │ │ │ │ ├── NSOpenSaveExpandingEventArgs.cs │ │ │ │ ├── NSOpenSaveFilename.cs │ │ │ │ ├── NSOpenSaveFilenameConfirmation.cs │ │ │ │ ├── NSOpenSaveFilenameEventArgs.cs │ │ │ │ ├── NSOpenSavePanelDelegate.cs │ │ │ │ ├── NSOpenSavePanelUrl.cs │ │ │ │ ├── NSOpenSavePanelUrlEventArgs.cs │ │ │ │ ├── NSOpenSavePanelValidate.cs │ │ │ │ ├── NSOutlineView.cs │ │ │ │ ├── NSOutlineViewDataSource.cs │ │ │ │ ├── NSOutlineViewDelegate.cs │ │ │ │ ├── NSPageLayout.cs │ │ │ │ ├── NSPanel.cs │ │ │ │ ├── NSPanelButtonType.cs │ │ │ │ ├── NSParagraphStyle.cs │ │ │ │ ├── NSPasteboard.cs │ │ │ │ ├── NSPasteboardItem.cs │ │ │ │ ├── NSPasteboardItemDataProvider.cs │ │ │ │ ├── NSPasteboardPredicate.cs │ │ │ │ ├── NSPasteboardReading.cs │ │ │ │ ├── NSPasteboardReadingOptions.cs │ │ │ │ ├── NSPasteboardWriting.cs │ │ │ │ ├── NSPasteboardWritingOptions.cs │ │ │ │ ├── NSPathCell.cs │ │ │ │ ├── NSPathCellDelegate.cs │ │ │ │ ├── NSPathCellDisplayPanelEventArgs.cs │ │ │ │ ├── NSPathCellMenuEventArgs.cs │ │ │ │ ├── NSPathComponentCell.cs │ │ │ │ ├── NSPathControl.cs │ │ │ │ ├── NSPathControlDelegate.cs │ │ │ │ ├── NSPathStyle.cs │ │ │ │ ├── NSPointingDeviceMask.cs │ │ │ │ ├── NSPointingDeviceType.cs │ │ │ │ ├── NSPopUpArrowPosition.cs │ │ │ │ ├── NSPopUpButton.cs │ │ │ │ ├── NSPopUpButtonCell.cs │ │ │ │ ├── NSPopover.cs │ │ │ │ ├── NSPopoverAppearance.cs │ │ │ │ ├── NSPopoverBehavior.cs │ │ │ │ ├── NSPopoverCloseEventArgs.cs │ │ │ │ ├── NSPopoverCloseReason.cs │ │ │ │ ├── NSPopoverDelegate.cs │ │ │ │ ├── NSPredicateEditor.cs │ │ │ │ ├── NSPredicateEditorRowTemplate.cs │ │ │ │ ├── NSPrintInfo.cs │ │ │ │ ├── NSPrintOperation.cs │ │ │ │ ├── NSPrintPanel.cs │ │ │ │ ├── NSPrintPanelAccessorizing.cs │ │ │ │ ├── NSPrintPanelOptions.cs │ │ │ │ ├── NSPrintPreviewGraphicsContext.cs │ │ │ │ ├── NSPrinter.cs │ │ │ │ ├── NSPrinterTableStatus.cs │ │ │ │ ├── NSPrintingOrientation.cs │ │ │ │ ├── NSPrintingPageOrder.cs │ │ │ │ ├── NSPrintingPaginationMode.cs │ │ │ │ ├── NSProgressIndicator.cs │ │ │ │ ├── NSProgressIndicatorStyle.cs │ │ │ │ ├── NSProgressIndicatorThickness.cs │ │ │ │ ├── NSRectEdge.cs │ │ │ │ ├── NSRemoteNotificationType.cs │ │ │ │ ├── NSRemoteOpenPanel.cs │ │ │ │ ├── NSRemoteSavePanel.cs │ │ │ │ ├── NSRequestUserAttentionType.cs │ │ │ │ ├── NSResponder.cs │ │ │ │ ├── NSRuleEditor.cs │ │ │ │ ├── NSRuleEditorDelegate.cs │ │ │ │ ├── NSRuleEditorNestingMode.cs │ │ │ │ ├── NSRuleEditorNumberOfChildren.cs │ │ │ │ ├── NSRuleEditorRowType.cs │ │ │ │ ├── NSRulerEditorChildCriterion.cs │ │ │ │ ├── NSRulerEditorDisplayValue.cs │ │ │ │ ├── NSRulerEditorPredicateParts.cs │ │ │ │ ├── NSRulerMarker.cs │ │ │ │ ├── NSRulerOrientation.cs │ │ │ │ ├── NSRulerView.cs │ │ │ │ ├── NSRunResponse.cs │ │ │ │ ├── NSRunningApplication.cs │ │ │ │ ├── NSSaveOperationType.cs │ │ │ │ ├── NSSavePanel.cs │ │ │ │ ├── NSSavePanelComplete.cs │ │ │ │ ├── NSScreen.cs │ │ │ │ ├── NSScrollArrowPosition.cs │ │ │ │ ├── NSScrollElasticity.cs │ │ │ │ ├── NSScrollView.cs │ │ │ │ ├── NSScrollViewFindBarPosition.cs │ │ │ │ ├── NSScroller.cs │ │ │ │ ├── NSScrollerArrow.cs │ │ │ │ ├── NSScrollerKnobStyle.cs │ │ │ │ ├── NSScrollerPart.cs │ │ │ │ ├── NSScrollerStyle.cs │ │ │ │ ├── NSSearchField.cs │ │ │ │ ├── NSSearchFieldCell.cs │ │ │ │ ├── NSSecureTextField.cs │ │ │ │ ├── NSSecureTextFieldCell.cs │ │ │ │ ├── NSSegmentStyle.cs │ │ │ │ ├── NSSegmentSwitchTracking.cs │ │ │ │ ├── NSSegmentedCell.cs │ │ │ │ ├── NSSegmentedControl.cs │ │ │ │ ├── NSSelectionAffinity.cs │ │ │ │ ├── NSSelectionDirection.cs │ │ │ │ ├── NSSelectionGranularity.cs │ │ │ │ ├── NSShadow.cs │ │ │ │ ├── NSSharingContentScope.cs │ │ │ │ ├── NSSharingService.cs │ │ │ │ ├── NSSharingServiceDelegate.cs │ │ │ │ ├── NSSharingServiceDidFailToShareItemsEventArgs.cs │ │ │ │ ├── NSSharingServiceHandler.cs │ │ │ │ ├── NSSharingServiceItemsEventArgs.cs │ │ │ │ ├── NSSharingServiceName.cs │ │ │ │ ├── NSSharingServicePicker.cs │ │ │ │ ├── NSSharingServicePickerDelegate.cs │ │ │ │ ├── NSSharingServicePickerDelegateForSharingService.cs │ │ │ │ ├── NSSharingServicePickerDidChooseSharingServiceEventArgs.cs │ │ │ │ ├── NSSharingServicePickerSharingServicesForItems.cs │ │ │ │ ├── NSSharingServiceSourceFrameOnScreenForShareItem.cs │ │ │ │ ├── NSSharingServiceSourceWindowForShareItems.cs │ │ │ │ ├── NSSharingServiceTransitionImageForShareItem.cs │ │ │ │ ├── NSSlider.cs │ │ │ │ ├── NSSliderCell.cs │ │ │ │ ├── NSSliderType.cs │ │ │ │ ├── NSSound.cs │ │ │ │ ├── NSSoundDelegate.cs │ │ │ │ ├── NSSoundFinishedEventArgs.cs │ │ │ │ ├── NSSpeechBoundary.cs │ │ │ │ ├── NSSpeechRecognizer.cs │ │ │ │ ├── NSSpeechRecognizerDelegate.cs │ │ │ │ ├── NSSpeechSynthesizer.cs │ │ │ │ ├── NSSpeechSynthesizerDelegate.cs │ │ │ │ ├── NSSpellChecker.cs │ │ │ │ ├── NSSplitView.cs │ │ │ │ ├── NSSplitViewDelegate.cs │ │ │ │ ├── NSSplitViewDividerStyle.cs │ │ │ │ ├── NSStatusBar.cs │ │ │ │ ├── NSStatusItem.cs │ │ │ │ ├── NSStepper.cs │ │ │ │ ├── NSSurfaceOrder.cs │ │ │ │ ├── NSSystemDefinedEvents.cs │ │ │ │ ├── NSTabState.cs │ │ │ │ ├── NSTabView.cs │ │ │ │ ├── NSTabViewDelegate.cs │ │ │ │ ├── NSTabViewItem.cs │ │ │ │ ├── NSTabViewItemEventArgs.cs │ │ │ │ ├── NSTabViewPredicate.cs │ │ │ │ ├── NSTabViewType.cs │ │ │ │ ├── NSTableCellView.cs │ │ │ │ ├── NSTableColumn.cs │ │ │ │ ├── NSTableColumnResizing.cs │ │ │ │ ├── NSTableHeaderCell.cs │ │ │ │ ├── NSTableHeaderView.cs │ │ │ │ ├── NSTableReorder.cs │ │ │ │ ├── NSTableRowView.cs │ │ │ │ ├── NSTableView.cs │ │ │ │ ├── NSTableViewAnimation.cs │ │ │ │ ├── NSTableViewCell.cs │ │ │ │ ├── NSTableViewCellEventArgs.cs │ │ │ │ ├── NSTableViewCellGetter.cs │ │ │ │ ├── NSTableViewColumnAutoresizingStyle.cs │ │ │ │ ├── NSTableViewColumnPredicate.cs │ │ │ │ ├── NSTableViewColumnRowPredicate.cs │ │ │ │ ├── NSTableViewColumnRowString.cs │ │ │ │ ├── NSTableViewColumnWidth.cs │ │ │ │ ├── NSTableViewDataSource.cs │ │ │ │ ├── NSTableViewDelegate.cs │ │ │ │ ├── NSTableViewDraggingDestinationFeedbackStyle.cs │ │ │ │ ├── NSTableViewDropOperation.cs │ │ │ │ ├── NSTableViewEventString.cs │ │ │ │ ├── NSTableViewGridStyle.cs │ │ │ │ ├── NSTableViewIndexFilter.cs │ │ │ │ ├── NSTableViewPredicate.cs │ │ │ │ ├── NSTableViewRowEventArgs.cs │ │ │ │ ├── NSTableViewRowGetter.cs │ │ │ │ ├── NSTableViewRowHandler.cs │ │ │ │ ├── NSTableViewRowHeight.cs │ │ │ │ ├── NSTableViewRowPredicate.cs │ │ │ │ ├── NSTableViewRowSizeStyle.cs │ │ │ │ ├── NSTableViewSearchString.cs │ │ │ │ ├── NSTableViewSelectionHighlightStyle.cs │ │ │ │ ├── NSTableViewSource.cs │ │ │ │ ├── NSTableViewTableEventArgs.cs │ │ │ │ ├── NSTableViewViewGetter.cs │ │ │ │ ├── NSText.cs │ │ │ │ ├── NSTextAlignment.cs │ │ │ │ ├── NSTextAttachment.cs │ │ │ │ ├── NSTextAttachmentCell.cs │ │ │ │ ├── NSTextBlock.cs │ │ │ │ ├── NSTextBlockDimension.cs │ │ │ │ ├── NSTextBlockLayer.cs │ │ │ │ ├── NSTextBlockValueType.cs │ │ │ │ ├── NSTextBlockVerticalAlignment.cs │ │ │ │ ├── NSTextContainer.cs │ │ │ │ ├── NSTextDelegate.cs │ │ │ │ ├── NSTextField.cs │ │ │ │ ├── NSTextFieldBezelStyle.cs │ │ │ │ ├── NSTextFieldCell.cs │ │ │ │ ├── NSTextFieldDelegate.cs │ │ │ │ ├── NSTextFinderAction.cs │ │ │ │ ├── NSTextInputContext.cs │ │ │ │ ├── NSTextList.cs │ │ │ │ ├── NSTextListOptions.cs │ │ │ │ ├── NSTextMovement.cs │ │ │ │ ├── NSTextPredicate.cs │ │ │ │ ├── NSTextStorage.cs │ │ │ │ ├── NSTextStorageDelegate.cs │ │ │ │ ├── NSTextStorageEditedFlags.cs │ │ │ │ ├── NSTextTab.cs │ │ │ │ ├── NSTextTabType.cs │ │ │ │ ├── NSTextTable.cs │ │ │ │ ├── NSTextTableBlock.cs │ │ │ │ ├── NSTextTableLayoutAlgorithm.cs │ │ │ │ ├── NSTextView.cs │ │ │ │ ├── NSTextViewCellPasteboard.cs │ │ │ │ ├── NSTextViewCellPosition.cs │ │ │ │ ├── NSTextViewChangeText.cs │ │ │ │ ├── NSTextViewClickedEventArgs.cs │ │ │ │ ├── NSTextViewCompletion.cs │ │ │ │ ├── NSTextViewDelegate.cs │ │ │ │ ├── NSTextViewDoubleClickEventArgs.cs │ │ │ │ ├── NSTextViewDraggedCellEventArgs.cs │ │ │ │ ├── NSTextViewEventMenu.cs │ │ │ │ ├── NSTextViewGetUndoManager.cs │ │ │ │ ├── NSTextViewLink.cs │ │ │ │ ├── NSTextViewOnTextCheck.cs │ │ │ │ ├── NSTextViewSelectionChange.cs │ │ │ │ ├── NSTextViewSelectionShouldChange.cs │ │ │ │ ├── NSTextViewSelectionWillChange.cs │ │ │ │ ├── NSTextViewSelectorCommand.cs │ │ │ │ ├── NSTextViewSpellingQuery.cs │ │ │ │ ├── NSTextViewTextChecked.cs │ │ │ │ ├── NSTextViewTooltip.cs │ │ │ │ ├── NSTextViewTypeAttribute.cs │ │ │ │ ├── NSTickMarkPosition.cs │ │ │ │ ├── NSTiffCompression.cs │ │ │ │ ├── NSTitlePosition.cs │ │ │ │ ├── NSTokenField.cs │ │ │ │ ├── NSTokenFieldDelegate.cs │ │ │ │ ├── NSTokenStyle.cs │ │ │ │ ├── NSToolbar.cs │ │ │ │ ├── NSToolbarDelegate.cs │ │ │ │ ├── NSToolbarDisplayMode.cs │ │ │ │ ├── NSToolbarIdentifiers.cs │ │ │ │ ├── NSToolbarItem.cs │ │ │ │ ├── NSToolbarSizeMode.cs │ │ │ │ ├── NSToolbarWillInsert.cs │ │ │ │ ├── NSTouch.cs │ │ │ │ ├── NSTouchPhase.cs │ │ │ │ ├── NSTrackingArea.cs │ │ │ │ ├── NSTrackingAreaOptions.cs │ │ │ │ ├── NSTreeController.cs │ │ │ │ ├── NSTreeNode.cs │ │ │ │ ├── NSType.cs │ │ │ │ ├── NSTypesetter.cs │ │ │ │ ├── NSTypesetterBehavior.cs │ │ │ │ ├── NSTypesetterControlCharacterAction.cs │ │ │ │ ├── NSUnderlinePattern.cs │ │ │ │ ├── NSUnderlineStyle.cs │ │ │ │ ├── NSUsableScrollerParts.cs │ │ │ │ ├── NSUserInterfaceLayoutDirection.cs │ │ │ │ ├── NSValidatedUserInterfaceItemWrapper.cs │ │ │ │ ├── NSView.cs │ │ │ │ ├── NSViewAnimation.cs │ │ │ │ ├── NSViewController.cs │ │ │ │ ├── NSViewLayerContentsPlacement.cs │ │ │ │ ├── NSViewLayerContentsRedrawPolicy.cs │ │ │ │ ├── NSViewResizingMask.cs │ │ │ │ ├── NSWindingRule.cs │ │ │ │ ├── NSWindow.cs │ │ │ │ ├── NSWindowAnimationBehavior.cs │ │ │ │ ├── NSWindowApplicationPresentationOptions.cs │ │ │ │ ├── NSWindowBackingLocation.cs │ │ │ │ ├── NSWindowButton.cs │ │ │ │ ├── NSWindowClient.cs │ │ │ │ ├── NSWindowCoderEventArgs.cs │ │ │ │ ├── NSWindowCollectionBehavior.cs │ │ │ │ ├── NSWindowCompletionHandler.cs │ │ │ │ ├── NSWindowController.cs │ │ │ │ ├── NSWindowDelegate.cs │ │ │ │ ├── NSWindowDepth.cs │ │ │ │ ├── NSWindowDocumentDrag.cs │ │ │ │ ├── NSWindowDurationEventArgs.cs │ │ │ │ ├── NSWindowFrame.cs │ │ │ │ ├── NSWindowFramePredicate.cs │ │ │ │ ├── NSWindowLevel.cs │ │ │ │ ├── NSWindowMenu.cs │ │ │ │ ├── NSWindowNumberListOptions.cs │ │ │ │ ├── NSWindowOrderingMode.cs │ │ │ │ ├── NSWindowResize.cs │ │ │ │ ├── NSWindowRestoration.cs │ │ │ │ ├── NSWindowSharingType.cs │ │ │ │ ├── NSWindowSheetRect.cs │ │ │ │ ├── NSWindowSize.cs │ │ │ │ ├── NSWindowSizeSize.cs │ │ │ │ ├── NSWindowStyle.cs │ │ │ │ ├── NSWindowUndoManager.cs │ │ │ │ ├── NSWindowWindows.cs │ │ │ │ ├── NSWorkspace.cs │ │ │ │ ├── NSWorkspaceApplicationEventArgs.cs │ │ │ │ ├── NSWorkspaceFileOperationEventArgs.cs │ │ │ │ ├── NSWorkspaceIconCreationOptions.cs │ │ │ │ ├── NSWorkspaceLaunchOptions.cs │ │ │ │ ├── NSWorkspaceMountEventArgs.cs │ │ │ │ ├── NSWorkspaceRenamedEventArgs.cs │ │ │ │ ├── NSWorkspaceUrlHandler.cs │ │ │ │ ├── NSWritingDirection.cs │ │ │ │ ├── OneShotTracker.cs │ │ │ │ └── OpenDocumentCompletionHandler.cs │ │ │ ├── AudioToolbox/ │ │ │ │ ├── AccessoryInfo.cs │ │ │ │ ├── AudioBalanceFade.cs │ │ │ │ ├── AudioBalanceFadeType.cs │ │ │ │ ├── AudioBuffer.cs │ │ │ │ ├── AudioBufferList.cs │ │ │ │ ├── AudioBuffers.cs │ │ │ │ ├── AudioBytePacketTranslation.cs │ │ │ │ ├── AudioChannelBit.cs │ │ │ │ ├── AudioChannelDescription.cs │ │ │ │ ├── AudioChannelFlags.cs │ │ │ │ ├── AudioChannelLabel.cs │ │ │ │ ├── AudioChannelLayout.cs │ │ │ │ ├── AudioChannelLayoutTag.cs │ │ │ │ ├── AudioChannelLayoutTagExtensions.cs │ │ │ │ ├── AudioClassDescription.cs │ │ │ │ ├── AudioCodecComponentType.cs │ │ │ │ ├── AudioConverter.cs │ │ │ │ ├── AudioConverterComplexInputData.cs │ │ │ │ ├── AudioConverterError.cs │ │ │ │ ├── AudioConverterPrimeInfo.cs │ │ │ │ ├── AudioConverterPrimeMethod.cs │ │ │ │ ├── AudioConverterPropertyID.cs │ │ │ │ ├── AudioConverterQuality.cs │ │ │ │ ├── AudioConverterSampleRateConverterComplexity.cs │ │ │ │ ├── AudioFile.cs │ │ │ │ ├── AudioFileChunkType.cs │ │ │ │ ├── AudioFileError.cs │ │ │ │ ├── AudioFileFlags.cs │ │ │ │ ├── AudioFileGlobalInfo.cs │ │ │ │ ├── AudioFileGlobalProperty.cs │ │ │ │ ├── AudioFileInfoDictionary.cs │ │ │ │ ├── AudioFileLoopDirection.cs │ │ │ │ ├── AudioFileMarker.cs │ │ │ │ ├── AudioFileMarkerList.cs │ │ │ │ ├── AudioFileMarkerType.cs │ │ │ │ ├── AudioFilePacketTableInfo.cs │ │ │ │ ├── AudioFilePermission.cs │ │ │ │ ├── AudioFileProperty.cs │ │ │ │ ├── AudioFileRegion.cs │ │ │ │ ├── AudioFileRegionFlags.cs │ │ │ │ ├── AudioFileRegionList.cs │ │ │ │ ├── AudioFileSmpteTime.cs │ │ │ │ ├── AudioFileStream.cs │ │ │ │ ├── AudioFileStreamProperty.cs │ │ │ │ ├── AudioFileStreamPropertyFlag.cs │ │ │ │ ├── AudioFileStreamStatus.cs │ │ │ │ ├── AudioFileType.cs │ │ │ │ ├── AudioFileTypeAndFormatID.cs │ │ │ │ ├── AudioFormat.cs │ │ │ │ ├── AudioFormatAvailability.cs │ │ │ │ ├── AudioFormatError.cs │ │ │ │ ├── AudioFormatFlags.cs │ │ │ │ ├── AudioFormatInfo.cs │ │ │ │ ├── AudioFormatProperty.cs │ │ │ │ ├── AudioFormatPropertyNative.cs │ │ │ │ ├── AudioFormatType.cs │ │ │ │ ├── AudioFramePacketTranslation.cs │ │ │ │ ├── AudioPanningInfo.cs │ │ │ │ ├── AudioQueue.cs │ │ │ │ ├── AudioQueueBuffer.cs │ │ │ │ ├── AudioQueueChannelAssignment.cs │ │ │ │ ├── AudioQueueDeviceProperty.cs │ │ │ │ ├── AudioQueueException.cs │ │ │ │ ├── AudioQueueHardwareCodecPolicy.cs │ │ │ │ ├── AudioQueueInputCallback.cs │ │ │ │ ├── AudioQueueLevelMeterState.cs │ │ │ │ ├── AudioQueueOutputCallback.cs │ │ │ │ ├── AudioQueueParameter.cs │ │ │ │ ├── AudioQueueParameterEvent.cs │ │ │ │ ├── AudioQueueProcessingTap.cs │ │ │ │ ├── AudioQueueProcessingTapCallback.cs │ │ │ │ ├── AudioQueueProcessingTapCallbackShared.cs │ │ │ │ ├── AudioQueueProcessingTapDelegate.cs │ │ │ │ ├── AudioQueueProcessingTapFlags.cs │ │ │ │ ├── AudioQueueProperty.cs │ │ │ │ ├── AudioQueuePropertyListener.cs │ │ │ │ ├── AudioQueueStatus.cs │ │ │ │ ├── AudioQueueTimeline.cs │ │ │ │ ├── AudioServices.cs │ │ │ │ ├── AudioServicesError.cs │ │ │ │ ├── AudioServicesPropertyKey.cs │ │ │ │ ├── AudioSession.cs │ │ │ │ ├── AudioSessionActiveFlags.cs │ │ │ │ ├── AudioSessionCategory.cs │ │ │ │ ├── AudioSessionErrors.cs │ │ │ │ ├── AudioSessionException.cs │ │ │ │ ├── AudioSessionInputRouteKind.cs │ │ │ │ ├── AudioSessionInterruptionState.cs │ │ │ │ ├── AudioSessionInterruptionType.cs │ │ │ │ ├── AudioSessionMode.cs │ │ │ │ ├── AudioSessionOutputRouteKind.cs │ │ │ │ ├── AudioSessionProperty.cs │ │ │ │ ├── AudioSessionPropertyEventArgs.cs │ │ │ │ ├── AudioSessionRouteChangeEventArgs.cs │ │ │ │ ├── AudioSessionRouteChangeReason.cs │ │ │ │ ├── AudioSessionRoutingOverride.cs │ │ │ │ ├── AudioSource.cs │ │ │ │ ├── AudioStreamBasicDescription.cs │ │ │ │ ├── AudioStreamPacketDescription.cs │ │ │ │ ├── AudioTimeStamp.cs │ │ │ │ ├── AudioValueRange.cs │ │ │ │ ├── BytePacketTranslationFlags.cs │ │ │ │ ├── GetSizeProc.cs │ │ │ │ ├── InputAudioQueue.cs │ │ │ │ ├── InputCompletedEventArgs.cs │ │ │ │ ├── InputSourceInfo.cs │ │ │ │ ├── MutableAudioBufferList.cs │ │ │ │ ├── OutputAudioQueue.cs │ │ │ │ ├── OutputCompletedEventArgs.cs │ │ │ │ ├── PacketReceivedEventArgs.cs │ │ │ │ ├── PanningMode.cs │ │ │ │ ├── PropertyFoundEventArgs.cs │ │ │ │ ├── ReadProc.cs │ │ │ │ ├── SetSizeProc.cs │ │ │ │ ├── SmpteTime.cs │ │ │ │ ├── SmpteTimeType.cs │ │ │ │ ├── SystemSound.cs │ │ │ │ ├── SystemSoundId.cs │ │ │ │ └── WriteProc.cs │ │ │ ├── AudioUnit/ │ │ │ │ ├── AUGraph.cs │ │ │ │ ├── AUGraphError.cs │ │ │ │ ├── AURenderCallbackStruct.cs │ │ │ │ ├── AudioCodecManufacturer.cs │ │ │ │ ├── AudioComponent.cs │ │ │ │ ├── AudioComponentDescription.cs │ │ │ │ ├── AudioComponentFlag.cs │ │ │ │ ├── AudioComponentManufacturerType.cs │ │ │ │ ├── AudioComponentType.cs │ │ │ │ ├── AudioGraphEventArgs.cs │ │ │ │ ├── AudioTypeConverter.cs │ │ │ │ ├── AudioTypeEffect.cs │ │ │ │ ├── AudioTypeGenerator.cs │ │ │ │ ├── AudioTypeMixer.cs │ │ │ │ ├── AudioTypeMusicDevice.cs │ │ │ │ ├── AudioTypeOutput.cs │ │ │ │ ├── AudioTypePanner.cs │ │ │ │ ├── AudioUnit.cs │ │ │ │ ├── AudioUnitEventArgs.cs │ │ │ │ ├── AudioUnitException.cs │ │ │ │ ├── AudioUnitParameterType.cs │ │ │ │ ├── AudioUnitPropertyIDType.cs │ │ │ │ ├── AudioUnitRenderActionFlags.cs │ │ │ │ ├── AudioUnitScopeType.cs │ │ │ │ ├── AudioUnitStatus.cs │ │ │ │ ├── AudioUnitUtils.cs │ │ │ │ ├── ExtAudioFile.cs │ │ │ │ ├── ExtAudioFileError.cs │ │ │ │ ├── RenderCallbackShared.cs │ │ │ │ └── RenderDelegate.cs │ │ │ ├── AudioUnitWrapper/ │ │ │ │ ├── _AudioConverter.cs │ │ │ │ └── _AudioConverterEventArgs.cs │ │ │ ├── Builder/ │ │ │ │ ├── ActionMarshaler.cs │ │ │ │ ├── InterfaceMarshaler.cs │ │ │ │ ├── NSObjectMarshaler.cs │ │ │ │ ├── NativeConstructorBuilder.cs │ │ │ │ ├── NativeImplementationBuilder.cs │ │ │ │ ├── NativeMethodBuilder.cs │ │ │ │ ├── SelectorMarshaler.cs │ │ │ │ └── TypeConverter.cs │ │ │ ├── Constants.cs │ │ │ ├── CoreAnimation/ │ │ │ │ ├── CAAction.cs │ │ │ │ ├── CAAnimation.cs │ │ │ │ ├── CAAnimationDelegate.cs │ │ │ │ ├── CAAnimationGroup.cs │ │ │ │ ├── CAAnimationStateEventArgs.cs │ │ │ │ ├── CAAutoresizingMask.cs │ │ │ │ ├── CABarBeatTime.cs │ │ │ │ ├── CABasicAnimation.cs │ │ │ │ ├── CAConstraint.cs │ │ │ │ ├── CAConstraintAttribute.cs │ │ │ │ ├── CAConstraintLayoutManager.cs │ │ │ │ ├── CAEdgeAntialiasingMask.cs │ │ │ │ ├── CAEmitterCell.cs │ │ │ │ ├── CAEmitterLayer.cs │ │ │ │ ├── CAFillMode.cs │ │ │ │ ├── CAGradientLayer.cs │ │ │ │ ├── CAKeyFrameAnimation.cs │ │ │ │ ├── CALayer.cs │ │ │ │ ├── CALayerDelegate.cs │ │ │ │ ├── CAMediaTimingFunction.cs │ │ │ │ ├── CAOpenGLLayer.cs │ │ │ │ ├── CAPropertyAnimation.cs │ │ │ │ ├── CAReplicatorLayer.cs │ │ │ │ ├── CAScrollLayer.cs │ │ │ │ ├── CAShapeLayer.cs │ │ │ │ ├── CATextLayer.cs │ │ │ │ ├── CATiledLayer.cs │ │ │ │ ├── CATransaction.cs │ │ │ │ ├── CATransform3D.cs │ │ │ │ ├── CATransformLayer.cs │ │ │ │ ├── CATransition.cs │ │ │ │ └── CAValueFunction.cs │ │ │ ├── CoreData/ │ │ │ │ ├── NSAtomicStore.cs │ │ │ │ ├── NSAtomicStoreCacheNode.cs │ │ │ │ ├── NSAttributeDescription.cs │ │ │ │ ├── NSAttributeType.cs │ │ │ │ ├── NSDeleteRule.cs │ │ │ │ ├── NSEntityDescription.cs │ │ │ │ ├── NSEntityMapping.cs │ │ │ │ ├── NSEntityMappingType.cs │ │ │ │ ├── NSEntityMigrationPolicy.cs │ │ │ │ ├── NSFetchRequest.cs │ │ │ │ ├── NSFetchRequestResultType.cs │ │ │ │ ├── NSFetchedPropertyDescription.cs │ │ │ │ ├── NSIncrementalStore.cs │ │ │ │ ├── NSIncrementalStoreNode.cs │ │ │ │ ├── NSKeyValueSetMutationKind.cs │ │ │ │ ├── NSManagedObject.cs │ │ │ │ ├── NSManagedObjectContext.cs │ │ │ │ ├── NSManagedObjectContextConcurrencyType.cs │ │ │ │ ├── NSManagedObjectID.cs │ │ │ │ ├── NSManagedObjectModel.cs │ │ │ │ ├── NSMappingModel.cs │ │ │ │ ├── NSMergeConflict.cs │ │ │ │ ├── NSMergePolicy.cs │ │ │ │ ├── NSMergePolicyType.cs │ │ │ │ ├── NSMigrationManager.cs │ │ │ │ ├── NSPersistentStore.cs │ │ │ │ ├── NSPersistentStoreCoordinator.cs │ │ │ │ ├── NSPersistentStoreRequest.cs │ │ │ │ ├── NSPersistentStoreRequestType.cs │ │ │ │ ├── NSPropertyDescription.cs │ │ │ │ ├── NSPropertyMapping.cs │ │ │ │ ├── NSRelationshipDescription.cs │ │ │ │ └── NSSaveChangesRequest.cs │ │ │ ├── CoreFoundation/ │ │ │ │ ├── CFAllocator.cs │ │ │ │ ├── CFAllocatorFlags.cs │ │ │ │ ├── CFArray.cs │ │ │ │ ├── CFBoolean.cs │ │ │ │ ├── CFData.cs │ │ │ │ ├── CFDataBuffer.cs │ │ │ │ ├── CFDictionary.cs │ │ │ │ ├── CFErrorDomain.cs │ │ │ │ ├── CFException.cs │ │ │ │ ├── CFExceptionDataKey.cs │ │ │ │ ├── CFIndex.cs │ │ │ │ ├── CFMutableDictionary.cs │ │ │ │ ├── CFObject.cs │ │ │ │ ├── CFRange.cs │ │ │ │ ├── CFReadStream.cs │ │ │ │ ├── CFRunLoop.cs │ │ │ │ ├── CFRunLoopExitReason.cs │ │ │ │ ├── CFRunLoopSource.cs │ │ │ │ ├── CFRunLoopSourceContext.cs │ │ │ │ ├── CFRunLoopSourceCustom.cs │ │ │ │ ├── CFSocketCallBackType.cs │ │ │ │ ├── CFSocketError.cs │ │ │ │ ├── CFSocketException.cs │ │ │ │ ├── CFSocketFlags.cs │ │ │ │ ├── CFSocketNativeHandle.cs │ │ │ │ ├── CFStream.cs │ │ │ │ ├── CFStreamClientContext.cs │ │ │ │ ├── CFStreamEventType.cs │ │ │ │ ├── CFStreamStatus.cs │ │ │ │ ├── CFString.cs │ │ │ │ ├── CFType.cs │ │ │ │ ├── CFUrl.cs │ │ │ │ ├── CFUrlPathStyle.cs │ │ │ │ ├── CFWriteStream.cs │ │ │ │ ├── DispatchGroup.cs │ │ │ │ ├── DispatchObject.cs │ │ │ │ ├── DispatchQueue.cs │ │ │ │ ├── DispatchQueuePriority.cs │ │ │ │ ├── DispatchQueueSynchronizationContext.cs │ │ │ │ ├── DispatchTime.cs │ │ │ │ ├── ICFType.cs │ │ │ │ ├── NativeObject.cs │ │ │ │ └── Tuple.cs │ │ │ ├── CoreGraphics/ │ │ │ │ ├── CGAffineTransform.cs │ │ │ │ ├── CGBitmapContext.cs │ │ │ │ ├── CGBitmapFlags.cs │ │ │ │ ├── CGBlendMode.cs │ │ │ │ ├── CGColor.cs │ │ │ │ ├── CGColorRenderingIntent.cs │ │ │ │ ├── CGColorSpace.cs │ │ │ │ ├── CGColorSpaceModel.cs │ │ │ │ ├── CGContext.cs │ │ │ │ ├── CGContextPDF.cs │ │ │ │ ├── CGDataConsumer.cs │ │ │ │ ├── CGDataProvider.cs │ │ │ │ ├── CGFont.cs │ │ │ │ ├── CGFunction.cs │ │ │ │ ├── CGGradient.cs │ │ │ │ ├── CGGradientDrawingOptions.cs │ │ │ │ ├── CGImage.cs │ │ │ │ ├── CGImageAlphaInfo.cs │ │ │ │ ├── CGImageColorModel.cs │ │ │ │ ├── CGImageProperties.cs │ │ │ │ ├── CGImagePropertiesExif.cs │ │ │ │ ├── CGImagePropertiesGps.cs │ │ │ │ ├── CGImagePropertiesIptc.cs │ │ │ │ ├── CGImagePropertiesJfif.cs │ │ │ │ ├── CGImagePropertiesPng.cs │ │ │ │ ├── CGImagePropertiesTiff.cs │ │ │ │ ├── CGInterpolationQuality.cs │ │ │ │ ├── CGLayer.cs │ │ │ │ ├── CGLineCap.cs │ │ │ │ ├── CGLineJoin.cs │ │ │ │ ├── CGPDFArray.cs │ │ │ │ ├── CGPDFBox.cs │ │ │ │ ├── CGPDFDictionary.cs │ │ │ │ ├── CGPDFDocument.cs │ │ │ │ ├── CGPDFInfo.cs │ │ │ │ ├── CGPDFPage.cs │ │ │ │ ├── CGPDFPageInfo.cs │ │ │ │ ├── CGPDFStream.cs │ │ │ │ ├── CGPDFString.cs │ │ │ │ ├── CGPath.cs │ │ │ │ ├── CGPathDrawingMode.cs │ │ │ │ ├── CGPathElement.cs │ │ │ │ ├── CGPathElementType.cs │ │ │ │ ├── CGPattern.cs │ │ │ │ ├── CGPatternCallbacks.cs │ │ │ │ ├── CGPatternTiling.cs │ │ │ │ ├── CGPoint.cs │ │ │ │ ├── CGRect.cs │ │ │ │ ├── CGShading.cs │ │ │ │ ├── CGSize.cs │ │ │ │ ├── CGTextDrawingMode.cs │ │ │ │ ├── CGTextEncoding.cs │ │ │ │ ├── CGWindowImageOption.cs │ │ │ │ ├── CGWindowListOption.cs │ │ │ │ ├── DrawPatternCallback.cs │ │ │ │ ├── NSRectEdge.cs │ │ │ │ ├── RectangleFExtensions.cs │ │ │ │ └── ReleaseInfoCallback.cs │ │ │ ├── CoreImage/ │ │ │ │ ├── CIAdditionCompositing.cs │ │ │ │ ├── CIAffineClamp.cs │ │ │ │ ├── CIAffineFilter.cs │ │ │ │ ├── CIAffineTile.cs │ │ │ │ ├── CIAffineTransform.cs │ │ │ │ ├── CIAutoAdjustmentFilterOptions.cs │ │ │ │ ├── CIBarsSwipeTransition.cs │ │ │ │ ├── CIBlendFilter.cs │ │ │ │ ├── CIBlendWithMask.cs │ │ │ │ ├── CIBloom.cs │ │ │ │ ├── CICheckerboardGenerator.cs │ │ │ │ ├── CICircleSplashDistortion.cs │ │ │ │ ├── CICircularScreen.cs │ │ │ │ ├── CIColor.cs │ │ │ │ ├── CIColorBlendMode.cs │ │ │ │ ├── CIColorBurnBlendMode.cs │ │ │ │ ├── CIColorControls.cs │ │ │ │ ├── CIColorCube.cs │ │ │ │ ├── CIColorDodgeBlendMode.cs │ │ │ │ ├── CIColorInvert.cs │ │ │ │ ├── CIColorMap.cs │ │ │ │ ├── CIColorMatrix.cs │ │ │ │ ├── CIColorMonochrome.cs │ │ │ │ ├── CIColorPosterize.cs │ │ │ │ ├── CICompositingFilter.cs │ │ │ │ ├── CIConstantColorGenerator.cs │ │ │ │ ├── CIContext.cs │ │ │ │ ├── CIContextOptions.cs │ │ │ │ ├── CICopyMachineTransition.cs │ │ │ │ ├── CICrop.cs │ │ │ │ ├── CIDarkenBlendMode.cs │ │ │ │ ├── CIDepthOfField.cs │ │ │ │ ├── CIDetector.cs │ │ │ │ ├── CIDifferenceBlendMode.cs │ │ │ │ ├── CIDisintegrateWithMaskTransition.cs │ │ │ │ ├── CIDissolveTransition.cs │ │ │ │ ├── CIDistortionFilter.cs │ │ │ │ ├── CIDotScreen.cs │ │ │ │ ├── CIEightfoldReflectedTile.cs │ │ │ │ ├── CIExclusionBlendMode.cs │ │ │ │ ├── CIExposureAdjust.cs │ │ │ │ ├── CIFaceBalance.cs │ │ │ │ ├── CIFaceFeature.cs │ │ │ │ ├── CIFalseColor.cs │ │ │ │ ├── CIFeature.cs │ │ │ │ ├── CIFilter.cs │ │ │ │ ├── CIFilterApply.cs │ │ │ │ ├── CIFilterAttributes.cs │ │ │ │ ├── CIFilterCategory.cs │ │ │ │ ├── CIFilterGenerator.cs │ │ │ │ ├── CIFilterInputKey.cs │ │ │ │ ├── CIFilterMode.cs │ │ │ │ ├── CIFilterOutputKey.cs │ │ │ │ ├── CIFilterShape.cs │ │ │ │ ├── CIFlashTransition.cs │ │ │ │ ├── CIFormat.cs │ │ │ │ ├── CIFourfoldReflectedTile.cs │ │ │ │ ├── CIFourfoldRotatedTile.cs │ │ │ │ ├── CIFourfoldTranslatedTile.cs │ │ │ │ ├── CIGammaAdjust.cs │ │ │ │ ├── CIGaussianBlur.cs │ │ │ │ ├── CIGaussianGradient.cs │ │ │ │ ├── CIGlideReflectedTile.cs │ │ │ │ ├── CIGloom.cs │ │ │ │ ├── CIHardLightBlendMode.cs │ │ │ │ ├── CIHatchedScreen.cs │ │ │ │ ├── CIHighlightShadowAdjust.cs │ │ │ │ ├── CIHoleDistortion.cs │ │ │ │ ├── CIHueAdjust.cs │ │ │ │ ├── CIHueBlendMode.cs │ │ │ │ ├── CIImage.cs │ │ │ │ ├── CIImageAccumulator.cs │ │ │ │ ├── CIImageInitializationOptions.cs │ │ │ │ ├── CIImageInitializationOptionsWithMetadata.cs │ │ │ │ ├── CIImageOrientation.cs │ │ │ │ ├── CIKernel.cs │ │ │ │ ├── CILanczosScaleTransform.cs │ │ │ │ ├── CILightenBlendMode.cs │ │ │ │ ├── CILineScreen.cs │ │ │ │ ├── CILinearGradient.cs │ │ │ │ ├── CILuminosityBlendMode.cs │ │ │ │ ├── CIMaskToAlpha.cs │ │ │ │ ├── CIMaximumComponent.cs │ │ │ │ ├── CIMaximumCompositing.cs │ │ │ │ ├── CIMinimumComponent.cs │ │ │ │ ├── CIMinimumCompositing.cs │ │ │ │ ├── CIModTransition.cs │ │ │ │ ├── CIMultiplyBlendMode.cs │ │ │ │ ├── CIMultiplyCompositing.cs │ │ │ │ ├── CIOverlayBlendMode.cs │ │ │ │ ├── CIPageCurlTransition.cs │ │ │ │ ├── CIPerspectiveTile.cs │ │ │ │ ├── CIPerspectiveTransform.cs │ │ │ │ ├── CIPinchDistortion.cs │ │ │ │ ├── CIPixellate.cs │ │ │ │ ├── CIPlugIn.cs │ │ │ │ ├── CIRadialGradient.cs │ │ │ │ ├── CIRandomGenerator.cs │ │ │ │ ├── CIRippleTransition.cs │ │ │ │ ├── CISampler.cs │ │ │ │ ├── CISamplerOptions.cs │ │ │ │ ├── CISaturationBlendMode.cs │ │ │ │ ├── CIScreenBlendMode.cs │ │ │ │ ├── CIScreenFilter.cs │ │ │ │ ├── CISepiaTone.cs │ │ │ │ ├── CISharpenLuminance.cs │ │ │ │ ├── CISixfoldReflectedTile.cs │ │ │ │ ├── CISixfoldRotatedTile.cs │ │ │ │ ├── CISoftLightBlendMode.cs │ │ │ │ ├── CISourceAtopCompositing.cs │ │ │ │ ├── CISourceInCompositing.cs │ │ │ │ ├── CISourceOutCompositing.cs │ │ │ │ ├── CISourceOverCompositing.cs │ │ │ │ ├── CIStarShineGenerator.cs │ │ │ │ ├── CIStraightenFilter.cs │ │ │ │ ├── CIStripesGenerator.cs │ │ │ │ ├── CISwipeTransition.cs │ │ │ │ ├── CITemperatureAndTint.cs │ │ │ │ ├── CITileFilter.cs │ │ │ │ ├── CIToneCurve.cs │ │ │ │ ├── CITransitionFilter.cs │ │ │ │ ├── CITwelvefoldReflectedTile.cs │ │ │ │ ├── CITwirlDistortion.cs │ │ │ │ ├── CIUIParameterSet.cs │ │ │ │ ├── CIUnsharpMask.cs │ │ │ │ ├── CIVector.cs │ │ │ │ ├── CIVibrance.cs │ │ │ │ ├── CIVortexDistortion.cs │ │ │ │ ├── CIWhitePointAdjust.cs │ │ │ │ ├── CIWrapMode.cs │ │ │ │ └── FaceDetectorAccuracy.cs │ │ │ ├── CoreLocation/ │ │ │ │ ├── CLActivityType.cs │ │ │ │ ├── CLAuthorizationChangedEventArgs.cs │ │ │ │ ├── CLAuthorizationStatus.cs │ │ │ │ ├── CLAuthroziationChangedEventArgs.cs │ │ │ │ ├── CLDeviceOrientation.cs │ │ │ │ ├── CLError.cs │ │ │ │ ├── CLLocation.cs │ │ │ │ ├── CLLocationCoordinate2D.cs │ │ │ │ ├── CLLocationManager.cs │ │ │ │ ├── CLLocationManagerDelegate.cs │ │ │ │ ├── CLLocationManagerEventArgs.cs │ │ │ │ ├── CLLocationUpdatedEventArgs.cs │ │ │ │ └── CLLocationsUpdatedEventArgs.cs │ │ │ ├── CoreMedia/ │ │ │ │ ├── CMAudioFormatDescription.cs │ │ │ │ ├── CMBlockBuffer.cs │ │ │ │ ├── CMBlockBufferError.cs │ │ │ │ ├── CMBlockBufferFlags.cs │ │ │ │ ├── CMClock.cs │ │ │ │ ├── CMClockError.cs │ │ │ │ ├── CMClockOrTimebase.cs │ │ │ │ ├── CMClosedCaptionFormatType.cs │ │ │ │ ├── CMFormatDescription.cs │ │ │ │ ├── CMFormatDescriptionError.cs │ │ │ │ ├── CMMediaType.cs │ │ │ │ ├── CMMemoryPool.cs │ │ │ │ ├── CMMetadataFormatType.cs │ │ │ │ ├── CMMuxedStreamType.cs │ │ │ │ ├── CMSampleBuffer.cs │ │ │ │ ├── CMSampleBufferAttachmentSettings.cs │ │ │ │ ├── CMSampleBufferError.cs │ │ │ │ ├── CMSampleTimingInfo.cs │ │ │ │ ├── CMSubtitleFormatType.cs │ │ │ │ ├── CMSyncError.cs │ │ │ │ ├── CMTextMarkupAttributes.cs │ │ │ │ ├── CMTime.cs │ │ │ │ ├── CMTimeCodeFormatType.cs │ │ │ │ ├── CMTimeMapping.cs │ │ │ │ ├── CMTimeRange.cs │ │ │ │ ├── CMTimeRoundingMethod.cs │ │ │ │ ├── CMTimeScale.cs │ │ │ │ ├── CMTimebase.cs │ │ │ │ ├── CMTimebaseError.cs │ │ │ │ ├── CMVideoCodecType.cs │ │ │ │ ├── CMVideoDimensions.cs │ │ │ │ ├── CMVideoFormatDescription.cs │ │ │ │ └── TextMarkupColor.cs │ │ │ ├── CoreMidi/ │ │ │ │ ├── IOErrorEventArgs.cs │ │ │ │ ├── Midi.cs │ │ │ │ ├── MidiClient.cs │ │ │ │ ├── MidiDevice.cs │ │ │ │ ├── MidiEndpoint.cs │ │ │ │ ├── MidiEntity.cs │ │ │ │ ├── MidiError.cs │ │ │ │ ├── MidiException.cs │ │ │ │ ├── MidiNetworkConnectionPolicy.cs │ │ │ │ ├── MidiNotificationMessageId.cs │ │ │ │ ├── MidiNotifyProc.cs │ │ │ │ ├── MidiObject.cs │ │ │ │ ├── MidiObjectType.cs │ │ │ │ ├── MidiPacket.cs │ │ │ │ ├── MidiPacketsEventArgs.cs │ │ │ │ ├── MidiPort.cs │ │ │ │ ├── MidiReadProc.cs │ │ │ │ ├── ObjectAddedOrRemovedEventArgs.cs │ │ │ │ └── ObjectPropertyChangedEventArgs.cs │ │ │ ├── CoreServices/ │ │ │ │ ├── CFHTTPAuthentication.cs │ │ │ │ ├── CFHTTPMessage.cs │ │ │ │ ├── CFHTTPStream.cs │ │ │ │ └── CFHost.cs │ │ │ ├── CoreText/ │ │ │ │ ├── Adapter.cs │ │ │ │ ├── CTBaselineClass.cs │ │ │ │ ├── CTBaselineClassID.cs │ │ │ │ ├── CTBaselineFondID.cs │ │ │ │ ├── CTBaselineFont.cs │ │ │ │ ├── CTCharacterCollection.cs │ │ │ │ ├── CTFont.cs │ │ │ │ ├── CTFontCollection.cs │ │ │ │ ├── CTFontCollectionOptionKey.cs │ │ │ │ ├── CTFontCollectionOptions.cs │ │ │ │ ├── CTFontDescriptor.cs │ │ │ │ ├── CTFontDescriptorAttributeKey.cs │ │ │ │ ├── CTFontDescriptorAttributes.cs │ │ │ │ ├── CTFontDescriptorMatchingState.cs │ │ │ │ ├── CTFontFeatureAllTypographicFeatures.cs │ │ │ │ ├── CTFontFeatureAlternateKana.cs │ │ │ │ ├── CTFontFeatureAnnotation.cs │ │ │ │ ├── CTFontFeatureCJKRomanSpacing.cs │ │ │ │ ├── CTFontFeatureCJKSymbolAlternatives.cs │ │ │ │ ├── CTFontFeatureCJKVerticalRomanPlacement.cs │ │ │ │ ├── CTFontFeatureCaseSensitiveLayout.cs │ │ │ │ ├── CTFontFeatureCharacterAlternatives.cs │ │ │ │ ├── CTFontFeatureCharacterShape.cs │ │ │ │ ├── CTFontFeatureContextualAlternates.cs │ │ │ │ ├── CTFontFeatureCursiveConnection.cs │ │ │ │ ├── CTFontFeatureDesignComplexity.cs │ │ │ │ ├── CTFontFeatureDiacritics.cs │ │ │ │ ├── CTFontFeatureFractions.cs │ │ │ │ ├── CTFontFeatureIdeographicAlternatives.cs │ │ │ │ ├── CTFontFeatureIdeographicSpacing.cs │ │ │ │ ├── CTFontFeatureItalicCJKRoman.cs │ │ │ │ ├── CTFontFeatureKanaSpacing.cs │ │ │ │ ├── CTFontFeatureKey.cs │ │ │ │ ├── CTFontFeatureLetterCase.cs │ │ │ │ ├── CTFontFeatureLigatures.cs │ │ │ │ ├── CTFontFeatureLinguisticRearrangementConnection.cs │ │ │ │ ├── CTFontFeatureLowerCase.cs │ │ │ │ ├── CTFontFeatureMathematicalExtras.cs │ │ │ │ ├── CTFontFeatureNumberCase.cs │ │ │ │ ├── CTFontFeatureNumberSpacing.cs │ │ │ │ ├── CTFontFeatureOrnamentSets.cs │ │ │ │ ├── CTFontFeatureOverlappingCharacters.cs │ │ │ │ ├── CTFontFeatureRubyKana.cs │ │ │ │ ├── CTFontFeatureSelectorKey.cs │ │ │ │ ├── CTFontFeatureSelectors.cs │ │ │ │ ├── CTFontFeatureSettings.cs │ │ │ │ ├── CTFontFeatureSmartSwash.cs │ │ │ │ ├── CTFontFeatureStyleOptions.cs │ │ │ │ ├── CTFontFeatureStylisticAlternatives.cs │ │ │ │ ├── CTFontFeatureTextSpacing.cs │ │ │ │ ├── CTFontFeatureTransliteration.cs │ │ │ │ ├── CTFontFeatureTypographicExtras.cs │ │ │ │ ├── CTFontFeatureUnicodeDecomposition.cs │ │ │ │ ├── CTFontFeatureUpperCase.cs │ │ │ │ ├── CTFontFeatureVerticalPosition.cs │ │ │ │ ├── CTFontFeatureVerticalSubstitutionConnection.cs │ │ │ │ ├── CTFontFeatures.cs │ │ │ │ ├── CTFontFormat.cs │ │ │ │ ├── CTFontManager.cs │ │ │ │ ├── CTFontManagerAutoActivation.cs │ │ │ │ ├── CTFontManagerError.cs │ │ │ │ ├── CTFontManagerScope.cs │ │ │ │ ├── CTFontNameKey.cs │ │ │ │ ├── CTFontNameKeyId.cs │ │ │ │ ├── CTFontOptions.cs │ │ │ │ ├── CTFontOrientation.cs │ │ │ │ ├── CTFontPriority.cs │ │ │ │ ├── CTFontStylisticClass.cs │ │ │ │ ├── CTFontSymbolicTraits.cs │ │ │ │ ├── CTFontTable.cs │ │ │ │ ├── CTFontTableOptions.cs │ │ │ │ ├── CTFontTraitKey.cs │ │ │ │ ├── CTFontTraits.cs │ │ │ │ ├── CTFontUIFontType.cs │ │ │ │ ├── CTFontVariation.cs │ │ │ │ ├── CTFontVariationAxes.cs │ │ │ │ ├── CTFontVariationAxisKey.cs │ │ │ │ ├── CTFrame.cs │ │ │ │ ├── CTFrameAttributeKey.cs │ │ │ │ ├── CTFrameAttributes.cs │ │ │ │ ├── CTFramePathFillRule.cs │ │ │ │ ├── CTFrameProgression.cs │ │ │ │ ├── CTFramesetter.cs │ │ │ │ ├── CTGlyphInfo.cs │ │ │ │ ├── CTLigatureFormation.cs │ │ │ │ ├── CTLine.cs │ │ │ │ ├── CTLineBoundsOptions.cs │ │ │ │ ├── CTLineBreakMode.cs │ │ │ │ ├── CTLineTruncation.cs │ │ │ │ ├── CTParagraphStyle.cs │ │ │ │ ├── CTParagraphStyleSetting.cs │ │ │ │ ├── CTParagraphStyleSettingValue.cs │ │ │ │ ├── CTParagraphStyleSettings.cs │ │ │ │ ├── CTParagraphStyleSpecifier.cs │ │ │ │ ├── CTParagraphStyleSpecifierByteValue.cs │ │ │ │ ├── CTParagraphStyleSpecifierIntPtrsValue.cs │ │ │ │ ├── CTParagraphStyleSpecifierSingleValue.cs │ │ │ │ ├── CTParagraphStyleSpecifierValue.cs │ │ │ │ ├── CTRun.cs │ │ │ │ ├── CTRunDelegate.cs │ │ │ │ ├── CTRunDelegateCallbacks.cs │ │ │ │ ├── CTRunDelegateDeallocateCallback.cs │ │ │ │ ├── CTRunDelegateGetAscentCallback.cs │ │ │ │ ├── CTRunDelegateGetDescentCallback.cs │ │ │ │ ├── CTRunDelegateGetWidthCallback.cs │ │ │ │ ├── CTRunDelegateOperations.cs │ │ │ │ ├── CTRunDelegateVersion.cs │ │ │ │ ├── CTRunStatus.cs │ │ │ │ ├── CTStringAttributeKey.cs │ │ │ │ ├── CTStringAttributes.cs │ │ │ │ ├── CTSuperscriptStyle.cs │ │ │ │ ├── CTTextAlignment.cs │ │ │ │ ├── CTTextTab.cs │ │ │ │ ├── CTTextTabOptionKey.cs │ │ │ │ ├── CTTextTabOptions.cs │ │ │ │ ├── CTTypesetter.cs │ │ │ │ ├── CTTypesetterOptionKey.cs │ │ │ │ ├── CTTypesetterOptions.cs │ │ │ │ ├── CTUnderlineStyle.cs │ │ │ │ ├── CTUnderlineStyleModifiers.cs │ │ │ │ ├── CTWritingDirection.cs │ │ │ │ ├── ConstructorError.cs │ │ │ │ └── FontFeatureGroup.cs │ │ │ ├── CoreVideo/ │ │ │ │ ├── CVAttachmentMode.cs │ │ │ │ ├── CVBuffer.cs │ │ │ │ ├── CVDisplayLink.cs │ │ │ │ ├── CVFillExtendedPixelsCallBack.cs │ │ │ │ ├── CVFillExtendedPixelsCallBackData.cs │ │ │ │ ├── CVImageBuffer.cs │ │ │ │ ├── CVOptionFlags.cs │ │ │ │ ├── CVPixelBuffer.cs │ │ │ │ ├── CVPixelBufferAttributes.cs │ │ │ │ ├── CVPixelBufferLock.cs │ │ │ │ ├── CVPixelBufferPool.cs │ │ │ │ ├── CVPixelBufferPoolAllocationSettings.cs │ │ │ │ ├── CVPixelBufferPoolSettings.cs │ │ │ │ ├── CVPixelFormatDescription.cs │ │ │ │ ├── CVPixelFormatType.cs │ │ │ │ ├── CVPlanarComponentInfo.cs │ │ │ │ ├── CVPlanarPixelBufferInfo.cs │ │ │ │ ├── CVPlanarPixelBufferInfo_YCbCrPlanar.cs │ │ │ │ ├── CVReturn.cs │ │ │ │ ├── CVSMPTETime.cs │ │ │ │ ├── CVSMPTETimeFlags.cs │ │ │ │ ├── CVSMPTETimeType.cs │ │ │ │ ├── CVTime.cs │ │ │ │ ├── CVTimeFlags.cs │ │ │ │ ├── CVTimeStamp.cs │ │ │ │ └── CVTimeStampFlags.cs │ │ │ ├── CoreWlan/ │ │ │ │ ├── CW8021XProfile.cs │ │ │ │ ├── CWConfiguration.cs │ │ │ │ ├── CWInterface.cs │ │ │ │ ├── CWNetwork.cs │ │ │ │ └── CWWirelessProfile.cs │ │ │ ├── Darwin/ │ │ │ │ ├── EventFilter.cs │ │ │ │ ├── EventFlags.cs │ │ │ │ ├── FilterFlags.cs │ │ │ │ ├── KernelEvent.cs │ │ │ │ ├── KernelQueue.cs │ │ │ │ ├── Message.cs │ │ │ │ ├── SystemLog.cs │ │ │ │ └── TimeSpec.cs │ │ │ ├── Foundation/ │ │ │ │ ├── AEEventClass.cs │ │ │ │ ├── AEEventID.cs │ │ │ │ ├── ActionAttribute.cs │ │ │ │ ├── AdviceAttribute.cs │ │ │ │ ├── ConnectAttribute.cs │ │ │ │ ├── DictionaryContainer.cs │ │ │ │ ├── ExportAttribute.cs │ │ │ │ ├── FieldAttribute.cs │ │ │ │ ├── InternalNSNotificationHandler.cs │ │ │ │ ├── LinkerSafeAttribute.cs │ │ │ │ ├── ModelAttribute.cs │ │ │ │ ├── ModelNotImplementedException.cs │ │ │ │ ├── NSAction.cs │ │ │ │ ├── NSActionDispatcher.cs │ │ │ │ ├── NSAffineTransform.cs │ │ │ │ ├── NSAlignmentOptions.cs │ │ │ │ ├── NSAppleEventDescriptor.cs │ │ │ │ ├── NSAppleEventManager.cs │ │ │ │ ├── NSArchiveReplaceEventArgs.cs │ │ │ │ ├── NSArray.cs │ │ │ │ ├── NSAsyncActionDispatcher.cs │ │ │ │ ├── NSAttributedRangeCallback.cs │ │ │ │ ├── NSAttributedString.cs │ │ │ │ ├── NSAttributedStringCallback.cs │ │ │ │ ├── NSAttributedStringEnumeration.cs │ │ │ │ ├── NSAutoreleasePool.cs │ │ │ │ ├── NSBlockOperation.cs │ │ │ │ ├── NSBundle.cs │ │ │ │ ├── NSBundleExecutableArchitecture.cs │ │ │ │ ├── NSByteCountFormatter.cs │ │ │ │ ├── NSByteCountFormatterCountStyle.cs │ │ │ │ ├── NSByteCountFormatterUnits.cs │ │ │ │ ├── NSCache.cs │ │ │ │ ├── NSCacheDelegate.cs │ │ │ │ ├── NSCachedUrlResponse.cs │ │ │ │ ├── NSCalculationError.cs │ │ │ │ ├── NSCalendar.cs │ │ │ │ ├── NSCalendarType.cs │ │ │ │ ├── NSCalendarUnit.cs │ │ │ │ ├── NSCharacterSet.cs │ │ │ │ ├── NSCoder.cs │ │ │ │ ├── NSComparator.cs │ │ │ │ ├── NSComparisonPredicate.cs │ │ │ │ ├── NSComparisonPredicateModifier.cs │ │ │ │ ├── NSComparisonPredicateOptions.cs │ │ │ │ ├── NSComparisonResult.cs │ │ │ │ ├── NSCompoundPredicate.cs │ │ │ │ ├── NSCompoundPredicateType.cs │ │ │ │ ├── NSConnection.cs │ │ │ │ ├── NSConnectionDelegate.cs │ │ │ │ ├── NSData.cs │ │ │ │ ├── NSDataReadingOptions.cs │ │ │ │ ├── NSDataSearchOptions.cs │ │ │ │ ├── NSDataWritingOptions.cs │ │ │ │ ├── NSDate.cs │ │ │ │ ├── NSDateComponents.cs │ │ │ │ ├── NSDateComponentsWrappingBehavior.cs │ │ │ │ ├── NSDateFormatter.cs │ │ │ │ ├── NSDateFormatterBehavior.cs │ │ │ │ ├── NSDateFormatterStyle.cs │ │ │ │ ├── NSDecimal.cs │ │ │ │ ├── NSDecimalNumber.cs │ │ │ │ ├── NSDecoderCallback.cs │ │ │ │ ├── NSDecoderHandler.cs │ │ │ │ ├── NSDictionary.cs │ │ │ │ ├── NSDirectoryEnumerationOptions.cs │ │ │ │ ├── NSDirectoryEnumerator.cs │ │ │ │ ├── NSDistantObjectRequest.cs │ │ │ │ ├── NSDistributedNotificationCenter.cs │ │ │ │ ├── NSEncodeHook.cs │ │ │ │ ├── NSEnumerateErrorHandler.cs │ │ │ │ ├── NSEnumerationOptions.cs │ │ │ │ ├── NSEnumerator.cs │ │ │ │ ├── NSError.cs │ │ │ │ ├── NSErrorEventArgs.cs │ │ │ │ ├── NSErrorException.cs │ │ │ │ ├── NSException.cs │ │ │ │ ├── NSExpression.cs │ │ │ │ ├── NSExpressionHandler.cs │ │ │ │ ├── NSExpressionType.cs │ │ │ │ ├── NSFastEnumerationState.cs │ │ │ │ ├── NSFastEnumerator.cs │ │ │ │ ├── NSFileAttributes.cs │ │ │ │ ├── NSFileCoordinator.cs │ │ │ │ ├── NSFileCoordinatorReadingOptions.cs │ │ │ │ ├── NSFileCoordinatorWorker.cs │ │ │ │ ├── NSFileCoordinatorWorkerRW.cs │ │ │ │ ├── NSFileCoordinatorWritingOptions.cs │ │ │ │ ├── NSFileHandle.cs │ │ │ │ ├── NSFileHandleConnectionAcceptedEventArgs.cs │ │ │ │ ├── NSFileHandleReadEventArgs.cs │ │ │ │ ├── NSFileHandleUpdateHandler.cs │ │ │ │ ├── NSFileManager.cs │ │ │ │ ├── NSFileManagerDelegate.cs │ │ │ │ ├── NSFileManagerItemReplacementOptions.cs │ │ │ │ ├── NSFilePresenter.cs │ │ │ │ ├── NSFileSystemAttributes.cs │ │ │ │ ├── NSFileType.cs │ │ │ │ ├── NSFileVersion.cs │ │ │ │ ├── NSFileVersionAddingOptions.cs │ │ │ │ ├── NSFileVersionReplacingOptions.cs │ │ │ │ ├── NSFileWrapper.cs │ │ │ │ ├── NSFileWrapperReadingOptions.cs │ │ │ │ ├── NSFileWrapperWritingOptions.cs │ │ │ │ ├── NSFormatter.cs │ │ │ │ ├── NSHttpCookie.cs │ │ │ │ ├── NSHttpCookieAcceptPolicy.cs │ │ │ │ ├── NSHttpCookieStorage.cs │ │ │ │ ├── NSHttpUrlResponse.cs │ │ │ │ ├── NSIndexPath.cs │ │ │ │ ├── NSIndexSet.cs │ │ │ │ ├── NSInputStream.cs │ │ │ │ ├── NSInvocation.cs │ │ │ │ ├── NSJsonReadingOptions.cs │ │ │ │ ├── NSJsonSerialization.cs │ │ │ │ ├── NSJsonWritingOptions.cs │ │ │ │ ├── NSKeyValueChange.cs │ │ │ │ ├── NSKeyValueObservingOptions.cs │ │ │ │ ├── NSKeyValueSetMutationKind.cs │ │ │ │ ├── NSKeyedArchiver.cs │ │ │ │ ├── NSKeyedArchiverDelegate.cs │ │ │ │ ├── NSKeyedUnarchiver.cs │ │ │ │ ├── NSKeyedUnarchiverDelegate.cs │ │ │ │ ├── NSLinguisticTag.cs │ │ │ │ ├── NSLinguisticTagger.cs │ │ │ │ ├── NSLinguisticTaggerOptions.cs │ │ │ │ ├── NSLingusticEnumerator.cs │ │ │ │ ├── NSLocale.cs │ │ │ │ ├── NSLocaleLanguageDirection.cs │ │ │ │ ├── NSMachPort.cs │ │ │ │ ├── NSMachPortDelegate.cs │ │ │ │ ├── NSMachPortRights.cs │ │ │ │ ├── NSMetadataItem.cs │ │ │ │ ├── NSMetadataQuery.cs │ │ │ │ ├── NSMetadataQueryAttributeValueTuple.cs │ │ │ │ ├── NSMetadataQueryDelegate.cs │ │ │ │ ├── NSMetadataQueryObject.cs │ │ │ │ ├── NSMetadataQueryResultGroup.cs │ │ │ │ ├── NSMetadataQueryValue.cs │ │ │ │ ├── NSMethodSignature.cs │ │ │ │ ├── NSMutableArray.cs │ │ │ │ ├── NSMutableAttributedString.cs │ │ │ │ ├── NSMutableCharacterSet.cs │ │ │ │ ├── NSMutableData.cs │ │ │ │ ├── NSMutableDictionary.cs │ │ │ │ ├── NSMutableIndexSet.cs │ │ │ │ ├── NSMutableOrderedSet.cs │ │ │ │ ├── NSMutableSet.cs │ │ │ │ ├── NSMutableUrlRequest.cs │ │ │ │ ├── NSNetDomainEventArgs.cs │ │ │ │ ├── NSNetService.cs │ │ │ │ ├── NSNetServiceBrowser.cs │ │ │ │ ├── NSNetServiceBrowserDelegate.cs │ │ │ │ ├── NSNetServiceDataEventArgs.cs │ │ │ │ ├── NSNetServiceDelegate.cs │ │ │ │ ├── NSNetServiceErrorEventArgs.cs │ │ │ │ ├── NSNetServiceEventArgs.cs │ │ │ │ ├── NSNetServiceOptions.cs │ │ │ │ ├── NSNetServicesStatus.cs │ │ │ │ ├── NSNotification.cs │ │ │ │ ├── NSNotificationCenter.cs │ │ │ │ ├── NSNotificationCoalescing.cs │ │ │ │ ├── NSNotificationEventArgs.cs │ │ │ │ ├── NSNotificationFlags.cs │ │ │ │ ├── NSNotificationHandler.cs │ │ │ │ ├── NSNotificationQueue.cs │ │ │ │ ├── NSNotificationSuspensionBehavior.cs │ │ │ │ ├── NSNull.cs │ │ │ │ ├── NSNumber.cs │ │ │ │ ├── NSNumberFormatter.cs │ │ │ │ ├── NSNumberFormatterBehavior.cs │ │ │ │ ├── NSNumberFormatterPadPosition.cs │ │ │ │ ├── NSNumberFormatterRoundingMode.cs │ │ │ │ ├── NSNumberFormatterStyle.cs │ │ │ │ ├── NSObject.cs │ │ │ │ ├── NSObjectEventArgs.cs │ │ │ │ ├── NSObjectFlag.cs │ │ │ │ ├── NSOperation.cs │ │ │ │ ├── NSOperationQueue.cs │ │ │ │ ├── NSOperationQueuePriority.cs │ │ │ │ ├── NSOrderedSet.cs │ │ │ │ ├── NSOrthography.cs │ │ │ │ ├── NSOutputStream.cs │ │ │ │ ├── NSPipe.cs │ │ │ │ ├── NSPort.cs │ │ │ │ ├── NSPortDelegate.cs │ │ │ │ ├── NSPortMessage.cs │ │ │ │ ├── NSPortNameServer.cs │ │ │ │ ├── NSPostingStyle.cs │ │ │ │ ├── NSPredicate.cs │ │ │ │ ├── NSPredicateEvaluator.cs │ │ │ │ ├── NSPredicateOperatorType.cs │ │ │ │ ├── NSProcessInfo.cs │ │ │ │ ├── NSPropertyListFormat.cs │ │ │ │ ├── NSPropertyListMutabilityOptions.cs │ │ │ │ ├── NSPropertyListReadOptions.cs │ │ │ │ ├── NSPropertyListSerialization.cs │ │ │ │ ├── NSPropertyListWriteOptions.cs │ │ │ │ ├── NSProxy.cs │ │ │ │ ├── NSPurgeableData.cs │ │ │ │ ├── NSRange.cs │ │ │ │ ├── NSRangeIterator.cs │ │ │ │ ├── NSRoundingMode.cs │ │ │ │ ├── NSRunLoop.cs │ │ │ │ ├── NSRunLoopMode.cs │ │ │ │ ├── NSSearchPath.cs │ │ │ │ ├── NSSearchPathDirectory.cs │ │ │ │ ├── NSSearchPathDomain.cs │ │ │ │ ├── NSSet.cs │ │ │ │ ├── NSSetEnumerator.cs │ │ │ │ ├── NSSortDescriptor.cs │ │ │ │ ├── NSSortOptions.cs │ │ │ │ ├── NSStream.cs │ │ │ │ ├── NSStreamDelegate.cs │ │ │ │ ├── NSStreamEvent.cs │ │ │ │ ├── NSStreamEventArgs.cs │ │ │ │ ├── NSStreamStatus.cs │ │ │ │ ├── NSString.cs │ │ │ │ ├── NSStringCompareOptions.cs │ │ │ │ ├── NSStringDrawingOptions.cs │ │ │ │ ├── NSStringEncoding.cs │ │ │ │ ├── NSTask.cs │ │ │ │ ├── NSTaskTerminationReason.cs │ │ │ │ ├── NSTextCheckingResult.cs │ │ │ │ ├── NSTextCheckingType.cs │ │ │ │ ├── NSTextCheckingTypes.cs │ │ │ │ ├── NSThread.cs │ │ │ │ ├── NSTimeZone.cs │ │ │ │ ├── NSTimer.cs │ │ │ │ ├── NSUbiquitousKeyValueStore.cs │ │ │ │ ├── NSUbiquitousKeyValueStoreChangeEventArgs.cs │ │ │ │ ├── NSUbiquitousKeyValueStoreChangeReason.cs │ │ │ │ ├── NSUndoManager.cs │ │ │ │ ├── NSUndoManagerCloseUndoGroupEventArgs.cs │ │ │ │ ├── NSUrl.cs │ │ │ │ ├── NSUrlAsyncResult.cs │ │ │ │ ├── NSUrlAuthenticationChallenge.cs │ │ │ │ ├── NSUrlBookmarkCreationOptions.cs │ │ │ │ ├── NSUrlBookmarkResolutionOptions.cs │ │ │ │ ├── NSUrlCache.cs │ │ │ │ ├── NSUrlCacheStoragePolicy.cs │ │ │ │ ├── NSUrlConnection.cs │ │ │ │ ├── NSUrlConnectionDataResponse.cs │ │ │ │ ├── NSUrlConnectionDelegate.cs │ │ │ │ ├── NSUrlConnectionDownloadDelegate.cs │ │ │ │ ├── NSUrlCredential.cs │ │ │ │ ├── NSUrlCredentialPersistence.cs │ │ │ │ ├── NSUrlCredentialStorage.cs │ │ │ │ ├── NSUrlDownload.cs │ │ │ │ ├── NSUrlDownloadDelegate.cs │ │ │ │ ├── NSUrlError.cs │ │ │ │ ├── NSUrlProtectionSpace.cs │ │ │ │ ├── NSUrlProtocol.cs │ │ │ │ ├── NSUrlProtocolClient.cs │ │ │ │ ├── NSUrlRequest.cs │ │ │ │ ├── NSUrlRequestCachePolicy.cs │ │ │ │ ├── NSUrlRequestNetworkServiceType.cs │ │ │ │ ├── NSUrlResponse.cs │ │ │ │ ├── NSUserDefaults.cs │ │ │ │ ├── NSUserNotification.cs │ │ │ │ ├── NSUserNotificationActivationType.cs │ │ │ │ ├── NSUserNotificationCenter.cs │ │ │ │ ├── NSUserNotificationCenterDelegate.cs │ │ │ │ ├── NSUuid.cs │ │ │ │ ├── NSValue.cs │ │ │ │ ├── NSValueTransformer.cs │ │ │ │ ├── NSVolumeEnumerationOptions.cs │ │ │ │ ├── NSWritingDirection.cs │ │ │ │ ├── NSZone.cs │ │ │ │ ├── ObjCException.cs │ │ │ │ ├── OutletAttribute.cs │ │ │ │ ├── PreserveAttribute.cs │ │ │ │ ├── ProtocolAttribute.cs │ │ │ │ ├── ProtocolMemberAttribute.cs │ │ │ │ ├── RegisterAttribute.cs │ │ │ │ ├── UNCDidActivateNotificationEventArgs.cs │ │ │ │ ├── UNCDidDeliverNotificationEventArgs.cs │ │ │ │ ├── UNCShouldPresentNotification.cs │ │ │ │ └── You_Should_Not_Call_base_In_This_Method.cs │ │ │ ├── HttpVersion.cs │ │ │ ├── ImageIO/ │ │ │ │ ├── CGImageDestination.cs │ │ │ │ ├── CGImageDestinationOptions.cs │ │ │ │ ├── CGImageOptions.cs │ │ │ │ ├── CGImageProperties.cs │ │ │ │ ├── CGImageSource.cs │ │ │ │ ├── CGImageSourceStatus.cs │ │ │ │ └── CGImageThumbnailOptions.cs │ │ │ ├── ImageKit/ │ │ │ │ ├── IKCameraDeviceView.cs │ │ │ │ ├── IKCameraDeviceViewDelegate.cs │ │ │ │ ├── IKCameraDeviceViewDisplayMode.cs │ │ │ │ ├── IKCameraDeviceViewNSErrorEventArgs.cs │ │ │ │ ├── IKCameraDeviceViewTransferMode.cs │ │ │ │ ├── IKCellsStyle.cs │ │ │ │ ├── IKDeviceBrowserView.cs │ │ │ │ ├── IKDeviceBrowserViewDelegate.cs │ │ │ │ ├── IKDeviceBrowserViewDisplayMode.cs │ │ │ │ ├── IKDeviceBrowserViewNSErrorEventArgs.cs │ │ │ │ ├── IKFilterBrowserPanel.cs │ │ │ │ ├── IKFilterBrowserPanelStyleMask.cs │ │ │ │ ├── IKFilterBrowserView.cs │ │ │ │ ├── IKFilterCustomUIProvider.cs │ │ │ │ ├── IKFilterUIView.cs │ │ │ │ ├── IKGroupStyle.cs │ │ │ │ ├── IKImageBrowserCell.cs │ │ │ │ ├── IKImageBrowserCellState.cs │ │ │ │ ├── IKImageBrowserDataSource.cs │ │ │ │ ├── IKImageBrowserDelegate.cs │ │ │ │ ├── IKImageBrowserDropOperation.cs │ │ │ │ ├── IKImageBrowserItem.cs │ │ │ │ ├── IKImageBrowserView.cs │ │ │ │ ├── IKImageBrowserViewEventEventArgs.cs │ │ │ │ ├── IKImageBrowserViewIndexEventArgs.cs │ │ │ │ ├── IKImageBrowserViewIndexEventEventArgs.cs │ │ │ │ ├── IKImageEditPanel.cs │ │ │ │ ├── IKImageEditPanelDataSource.cs │ │ │ │ ├── IKImageView.cs │ │ │ │ ├── IKPictureTaker.cs │ │ │ │ ├── IKSaveOptions.cs │ │ │ │ ├── IKSaveOptionsDelegate.cs │ │ │ │ ├── IKScannerDeviceView.cs │ │ │ │ ├── IKScannerDeviceViewDelegate.cs │ │ │ │ ├── IKScannerDeviceViewDisplayMode.cs │ │ │ │ ├── IKScannerDeviceViewErrorEventArgs.cs │ │ │ │ ├── IKScannerDeviceViewScanEventArgs.cs │ │ │ │ ├── IKScannerDeviceViewTransferMode.cs │ │ │ │ ├── IKSlideshow.cs │ │ │ │ ├── IKSlideshowDataSource.cs │ │ │ │ └── SaveOptionsShouldShowUTType.cs │ │ │ ├── JavaScriptCore/ │ │ │ │ ├── IJSExport.cs │ │ │ │ ├── JSClassAttributes.cs │ │ │ │ ├── JSContext.cs │ │ │ │ ├── JSContextExceptionHandler.cs │ │ │ │ ├── JSExport.cs │ │ │ │ ├── JSExportWrapper.cs │ │ │ │ ├── JSManagedValue.cs │ │ │ │ ├── JSPromiseCreationExecutor.cs │ │ │ │ ├── JSPropertyAttributes.cs │ │ │ │ ├── JSPropertyDescriptorKeys.cs │ │ │ │ ├── JSType.cs │ │ │ │ ├── JSValue.cs │ │ │ │ └── JSVirtualMachine.cs │ │ │ ├── Libraries.cs │ │ │ ├── ObjCRuntime/ │ │ │ │ ├── ArgumentSemantic.cs │ │ │ │ ├── BaseWrapper.cs │ │ │ │ ├── BlockDescriptor.cs │ │ │ │ ├── BlockFlags.cs │ │ │ │ ├── BlockLiteral.cs │ │ │ │ ├── Class.cs │ │ │ │ ├── CompileFlagsAttribute.cs │ │ │ │ ├── DisposableObject.cs │ │ │ │ ├── Dlfcn.cs │ │ │ │ ├── INativeObject.cs │ │ │ │ ├── LionAttribute.cs │ │ │ │ ├── Messaging.cs │ │ │ │ ├── MethodDescription.cs │ │ │ │ ├── MountainLionAttribute.cs │ │ │ │ ├── NativeHandle.cs │ │ │ │ ├── NativeObjectExtensions.cs │ │ │ │ ├── Protocol.cs │ │ │ │ ├── Runtime.cs │ │ │ │ ├── RuntimeEx.cs │ │ │ │ ├── Selector.cs │ │ │ │ ├── SinceAttribute.cs │ │ │ │ ├── ThreadSafeAttribute.cs │ │ │ │ ├── TrampolineBlockBase.cs │ │ │ │ └── UserDelegateTypeAttribute.cs │ │ │ ├── OpenAL/ │ │ │ │ ├── AL.cs │ │ │ │ ├── ALBufferState.cs │ │ │ │ ├── ALCapability.cs │ │ │ │ ├── ALDistanceModel.cs │ │ │ │ ├── ALError.cs │ │ │ │ ├── ALFormat.cs │ │ │ │ ├── ALGetBufferi.cs │ │ │ │ ├── ALGetFloat.cs │ │ │ │ ├── ALGetInteger.cs │ │ │ │ ├── ALGetSourcei.cs │ │ │ │ ├── ALGetString.cs │ │ │ │ ├── ALListener3f.cs │ │ │ │ ├── ALListenerf.cs │ │ │ │ ├── ALListenerfv.cs │ │ │ │ ├── ALSource3f.cs │ │ │ │ ├── ALSource3i.cs │ │ │ │ ├── ALSourceState.cs │ │ │ │ ├── ALSourceType.cs │ │ │ │ ├── ALSourceb.cs │ │ │ │ ├── ALSourcef.cs │ │ │ │ ├── ALSourcei.cs │ │ │ │ ├── Alc.cs │ │ │ │ ├── AlcContextAttributes.cs │ │ │ │ ├── AlcError.cs │ │ │ │ ├── AlcGetInteger.cs │ │ │ │ ├── AlcGetString.cs │ │ │ │ ├── AlcGetStringList.cs │ │ │ │ ├── BlittableValueType.cs │ │ │ │ └── ContextHandle.cs │ │ │ ├── OpenGL/ │ │ │ │ ├── AccumOp.cs │ │ │ │ ├── ActiveAttribType.cs │ │ │ │ ├── ActiveSubroutineUniformParameter.cs │ │ │ │ ├── ActiveUniformBlockParameter.cs │ │ │ │ ├── ActiveUniformParameter.cs │ │ │ │ ├── ActiveUniformType.cs │ │ │ │ ├── All.cs │ │ │ │ ├── AlphaFunction.cs │ │ │ │ ├── AmdCompressed3DcTexture.cs │ │ │ │ ├── AmdCompressedAtcTexture.cs │ │ │ │ ├── AmdConservativeDepth.cs │ │ │ │ ├── AmdDebugOutput.cs │ │ │ │ ├── AmdDepthClampSeparate.cs │ │ │ │ ├── AmdDrawBuffersBlend.cs │ │ │ │ ├── AmdNameGenDelete.cs │ │ │ │ ├── AmdPerformanceMonitor.cs │ │ │ │ ├── AmdProgramBinaryZ400.cs │ │ │ │ ├── AmdSeamlessCubemapPerTexture.cs │ │ │ │ ├── AmdShaderStencilExport.cs │ │ │ │ ├── AmdTextureTexture4.cs │ │ │ │ ├── AmdTransformFeedback3LinesTriangles.cs │ │ │ │ ├── AmdVertexShaderTesselator.cs │ │ │ │ ├── AngleFramebufferBlit.cs │ │ │ │ ├── AngleFramebufferMultisample.cs │ │ │ │ ├── AppleAuxDepthStencil.cs │ │ │ │ ├── AppleClientStorage.cs │ │ │ │ ├── AppleElementArray.cs │ │ │ │ ├── AppleFence.cs │ │ │ │ ├── AppleFloatPixels.cs │ │ │ │ ├── AppleFlushBufferRange.cs │ │ │ │ ├── AppleObjectPurgeable.cs │ │ │ │ ├── AppleRgb422.cs │ │ │ │ ├── AppleRowBytes.cs │ │ │ │ ├── AppleSpecularVector.cs │ │ │ │ ├── AppleTextureRange.cs │ │ │ │ ├── AppleTransformHint.cs │ │ │ │ ├── AppleVertexArrayObject.cs │ │ │ │ ├── AppleVertexArrayRange.cs │ │ │ │ ├── AppleVertexProgramEvaluators.cs │ │ │ │ ├── AppleYcbcr422.cs │ │ │ │ ├── ArbBlendFuncExtended.cs │ │ │ │ ├── ArbClEvent.cs │ │ │ │ ├── ArbColorBufferFloat.cs │ │ │ │ ├── ArbCompatibility.cs │ │ │ │ ├── ArbCopyBuffer.cs │ │ │ │ ├── ArbDebugOutput.cs │ │ │ │ ├── ArbDepthBufferFloat.cs │ │ │ │ ├── ArbDepthClamp.cs │ │ │ │ ├── ArbDepthTexture.cs │ │ │ │ ├── ArbDrawBuffers.cs │ │ │ │ ├── ArbDrawBuffersBlend.cs │ │ │ │ ├── ArbDrawElementsBaseVertex.cs │ │ │ │ ├── ArbDrawIndirect.cs │ │ │ │ ├── ArbDrawInstanced.cs │ │ │ │ ├── ArbEs2Compatibility.cs │ │ │ │ ├── ArbExplicitAttribLocation.cs │ │ │ │ ├── ArbFragmentCoordConventions.cs │ │ │ │ ├── ArbFragmentProgram.cs │ │ │ │ ├── ArbFragmentProgramShadow.cs │ │ │ │ ├── ArbFragmentShader.cs │ │ │ │ ├── ArbFramebufferObject.cs │ │ │ │ ├── ArbFramebufferObjectDeprecated.cs │ │ │ │ ├── ArbFramebufferSrgb.cs │ │ │ │ ├── ArbGeometryShader4.cs │ │ │ │ ├── ArbGetProgramBinary.cs │ │ │ │ ├── ArbGpuShader5.cs │ │ │ │ ├── ArbGpuShaderFp64.cs │ │ │ │ ├── ArbHalfFloatPixel.cs │ │ │ │ ├── ArbHalfFloatVertex.cs │ │ │ │ ├── ArbImaging.cs │ │ │ │ ├── ArbImagingDeprecated.cs │ │ │ │ ├── ArbInstancedArrays.cs │ │ │ │ ├── ArbMapBufferRange.cs │ │ │ │ ├── ArbMatrixPalette.cs │ │ │ │ ├── ArbMultisample.cs │ │ │ │ ├── ArbMultitexture.cs │ │ │ │ ├── ArbOcclusionQuery.cs │ │ │ │ ├── ArbOcclusionQuery2.cs │ │ │ │ ├── ArbPixelBufferObject.cs │ │ │ │ ├── ArbPointParameters.cs │ │ │ │ ├── ArbPointSprite.cs │ │ │ │ ├── ArbProvokingVertex.cs │ │ │ │ ├── ArbRobustness.cs │ │ │ │ ├── ArbSampleShading.cs │ │ │ │ ├── ArbSamplerObjects.cs │ │ │ │ ├── ArbSeamlessCubeMap.cs │ │ │ │ ├── ArbSeparateShaderObjects.cs │ │ │ │ ├── ArbShaderBitEncoding.cs │ │ │ │ ├── ArbShaderObjects.cs │ │ │ │ ├── ArbShaderPrecision.cs │ │ │ │ ├── ArbShaderStencilExport.cs │ │ │ │ ├── ArbShaderSubroutine.cs │ │ │ │ ├── ArbShaderTextureLod.cs │ │ │ │ ├── ArbShadingLanguage100.cs │ │ │ │ ├── ArbShadingLanguageInclude.cs │ │ │ │ ├── ArbShadow.cs │ │ │ │ ├── ArbShadowAmbient.cs │ │ │ │ ├── ArbSync.cs │ │ │ │ ├── ArbTessellationShader.cs │ │ │ │ ├── ArbTextureBorderClamp.cs │ │ │ │ ├── ArbTextureBufferObject.cs │ │ │ │ ├── ArbTextureBufferObjectRgb32.cs │ │ │ │ ├── ArbTextureCompression.cs │ │ │ │ ├── ArbTextureCompressionBptc.cs │ │ │ │ ├── ArbTextureCompressionRgtc.cs │ │ │ │ ├── ArbTextureCubeMap.cs │ │ │ │ ├── ArbTextureCubeMapArray.cs │ │ │ │ ├── ArbTextureEnvAdd.cs │ │ │ │ ├── ArbTextureEnvCombine.cs │ │ │ │ ├── ArbTextureEnvCrossbar.cs │ │ │ │ ├── ArbTextureEnvDot3.cs │ │ │ │ ├── ArbTextureFloat.cs │ │ │ │ ├── ArbTextureGather.cs │ │ │ │ ├── ArbTextureMirroredRepeat.cs │ │ │ │ ├── ArbTextureMultisample.cs │ │ │ │ ├── ArbTextureNonPowerOfTwo.cs │ │ │ │ ├── ArbTextureQueryLod.cs │ │ │ │ ├── ArbTextureRectangle.cs │ │ │ │ ├── ArbTextureRg.cs │ │ │ │ ├── ArbTextureRgb10A2ui.cs │ │ │ │ ├── ArbTextureSwizzle.cs │ │ │ │ ├── ArbTimerQuery.cs │ │ │ │ ├── ArbTransformFeedback2.cs │ │ │ │ ├── ArbTransformFeedback3.cs │ │ │ │ ├── ArbTransposeMatrix.cs │ │ │ │ ├── ArbUniformBufferObject.cs │ │ │ │ ├── ArbVertexArrayBgra.cs │ │ │ │ ├── ArbVertexArrayObject.cs │ │ │ │ ├── ArbVertexAttrib64bit.cs │ │ │ │ ├── ArbVertexBlend.cs │ │ │ │ ├── ArbVertexBufferObject.cs │ │ │ │ ├── ArbVertexProgram.cs │ │ │ │ ├── ArbVertexShader.cs │ │ │ │ ├── ArbVertexType2101010Rev.cs │ │ │ │ ├── ArbViewportArray.cs │ │ │ │ ├── ArbWindowPos.cs │ │ │ │ ├── ArmMaliShaderBinary.cs │ │ │ │ ├── ArrayCap.cs │ │ │ │ ├── AssemblyProgramFormatArb.cs │ │ │ │ ├── AssemblyProgramParameterArb.cs │ │ │ │ ├── AssemblyProgramStringParameterArb.cs │ │ │ │ ├── AssemblyProgramTargetArb.cs │ │ │ │ ├── AtiDrawBuffers.cs │ │ │ │ ├── AtiElementArray.cs │ │ │ │ ├── AtiEnvmapBumpmap.cs │ │ │ │ ├── AtiFragmentShader.cs │ │ │ │ ├── AtiMapObjectBuffer.cs │ │ │ │ ├── AtiMeminfo.cs │ │ │ │ ├── AtiPixelFormatFloat.cs │ │ │ │ ├── AtiPnTriangles.cs │ │ │ │ ├── AtiSeparateStencil.cs │ │ │ │ ├── AtiTextFragmentShader.cs │ │ │ │ ├── AtiTextureEnvCombine3.cs │ │ │ │ ├── AtiTextureFloat.cs │ │ │ │ ├── AtiTextureMirrorOnce.cs │ │ │ │ ├── AtiVertexArrayObject.cs │ │ │ │ ├── AtiVertexAttribArrayObject.cs │ │ │ │ ├── AtiVertexStreams.cs │ │ │ │ ├── AttribMask.cs │ │ │ │ ├── BeginFeedbackMode.cs │ │ │ │ ├── BeginMode.cs │ │ │ │ ├── BinaryFormat.cs │ │ │ │ ├── BlendEquationMode.cs │ │ │ │ ├── BlendEquationModeExt.cs │ │ │ │ ├── BlendingFactorDest.cs │ │ │ │ ├── BlendingFactorSrc.cs │ │ │ │ ├── BlitFramebufferFilter.cs │ │ │ │ ├── Boolean.cs │ │ │ │ ├── BufferAccess.cs │ │ │ │ ├── BufferAccessArb.cs │ │ │ │ ├── BufferAccessMask.cs │ │ │ │ ├── BufferParameterApple.cs │ │ │ │ ├── BufferParameterName.cs │ │ │ │ ├── BufferParameterNameArb.cs │ │ │ │ ├── BufferPointer.cs │ │ │ │ ├── BufferPointerNameArb.cs │ │ │ │ ├── BufferTarget.cs │ │ │ │ ├── BufferTargetArb.cs │ │ │ │ ├── BufferUsageArb.cs │ │ │ │ ├── BufferUsageHint.cs │ │ │ │ ├── CGLContext.cs │ │ │ │ ├── CGLErrorCode.cs │ │ │ │ ├── CGLPixelFormat.cs │ │ │ │ ├── CGLPixelFormatAttribute.cs │ │ │ │ ├── ClampColorMode.cs │ │ │ │ ├── ClampColorTarget.cs │ │ │ │ ├── ClearBuffer.cs │ │ │ │ ├── ClearBufferMask.cs │ │ │ │ ├── ClientAttribMask.cs │ │ │ │ ├── ClipPlaneName.cs │ │ │ │ ├── Color4.cs │ │ │ │ ├── ColorMaterialFace.cs │ │ │ │ ├── ColorMaterialParameter.cs │ │ │ │ ├── ColorPointerType.cs │ │ │ │ ├── ColorTableParameterPName.cs │ │ │ │ ├── ColorTableParameterPNameSgi.cs │ │ │ │ ├── ColorTableTarget.cs │ │ │ │ ├── ColorTableTargetSgi.cs │ │ │ │ ├── ConditionalRenderType.cs │ │ │ │ ├── ConvolutionBorderModeExt.cs │ │ │ │ ├── ConvolutionParameter.cs │ │ │ │ ├── ConvolutionParameterExt.cs │ │ │ │ ├── ConvolutionParameterValue.cs │ │ │ │ ├── ConvolutionTarget.cs │ │ │ │ ├── ConvolutionTargetExt.cs │ │ │ │ ├── CullFaceMode.cs │ │ │ │ ├── DataType.cs │ │ │ │ ├── DepthFunction.cs │ │ │ │ ├── DrawBufferMode.cs │ │ │ │ ├── DrawBuffersEnum.cs │ │ │ │ ├── DrawElementsType.cs │ │ │ │ ├── EnableCap.cs │ │ │ │ ├── ErrorCode.cs │ │ │ │ ├── Ext422Pixels.cs │ │ │ │ ├── ExtAbgr.cs │ │ │ │ ├── ExtBgra.cs │ │ │ │ ├── ExtBindableUniform.cs │ │ │ │ ├── ExtBlendColor.cs │ │ │ │ ├── ExtBlendEquationSeparate.cs │ │ │ │ ├── ExtBlendFuncSeparate.cs │ │ │ │ ├── ExtBlendLogicOp.cs │ │ │ │ ├── ExtBlendMinmax.cs │ │ │ │ ├── ExtBlendSubtract.cs │ │ │ │ ├── ExtClipVolumeHint.cs │ │ │ │ ├── ExtCmyka.cs │ │ │ │ ├── ExtColorSubtable.cs │ │ │ │ ├── ExtCompiledVertexArray.cs │ │ │ │ ├── ExtConvolution.cs │ │ │ │ ├── ExtCoordinateFrame.cs │ │ │ │ ├── ExtCopyTexture.cs │ │ │ │ ├── ExtCullVertex.cs │ │ │ │ ├── ExtDepthBoundsTest.cs │ │ │ │ ├── ExtDirectStateAccess.cs │ │ │ │ ├── ExtDiscardFramebuffer.cs │ │ │ │ ├── ExtDrawBuffers2.cs │ │ │ │ ├── ExtDrawInstanced.cs │ │ │ │ ├── ExtDrawRangeElements.cs │ │ │ │ ├── ExtFogCoord.cs │ │ │ │ ├── ExtFramebufferBlit.cs │ │ │ │ ├── ExtFramebufferMultisample.cs │ │ │ │ ├── ExtFramebufferObject.cs │ │ │ │ ├── ExtFramebufferSrgb.cs │ │ │ │ ├── ExtGeometryShader4.cs │ │ │ │ ├── ExtGpuProgramParameters.cs │ │ │ │ ├── ExtGpuShader4.cs │ │ │ │ ├── ExtHistogram.cs │ │ │ │ ├── ExtIndexArrayFormats.cs │ │ │ │ ├── ExtIndexFunc.cs │ │ │ │ ├── ExtIndexMaterial.cs │ │ │ │ ├── ExtIndexTexture.cs │ │ │ │ ├── ExtLightTexture.cs │ │ │ │ ├── ExtMiscAttribute.cs │ │ │ │ ├── ExtMultiDrawArrays.cs │ │ │ │ ├── ExtMultisample.cs │ │ │ │ ├── ExtPackedDepthStencil.cs │ │ │ │ ├── ExtPackedFloat.cs │ │ │ │ ├── ExtPackedPixels.cs │ │ │ │ ├── ExtPalettedTexture.cs │ │ │ │ ├── ExtPixelBufferObject.cs │ │ │ │ ├── ExtPixelTransform.cs │ │ │ │ ├── ExtPixelTransformColorTable.cs │ │ │ │ ├── ExtPointParameters.cs │ │ │ │ ├── ExtPolygonOffset.cs │ │ │ │ ├── ExtProvokingVertex.cs │ │ │ │ ├── ExtRescaleNormal.cs │ │ │ │ ├── ExtSecondaryColor.cs │ │ │ │ ├── ExtSeparateShaderObjects.cs │ │ │ │ ├── ExtSeparateSpecularColor.cs │ │ │ │ ├── ExtShaderImageLoadStore.cs │ │ │ │ ├── ExtShadowFuncs.cs │ │ │ │ ├── ExtSharedTexturePalette.cs │ │ │ │ ├── ExtStencilClearTag.cs │ │ │ │ ├── ExtStencilTwoSide.cs │ │ │ │ ├── ExtStencilWrap.cs │ │ │ │ ├── ExtSubtexture.cs │ │ │ │ ├── ExtTexture.cs │ │ │ │ ├── ExtTexture3D.cs │ │ │ │ ├── ExtTextureArray.cs │ │ │ │ ├── ExtTextureBufferObject.cs │ │ │ │ ├── ExtTextureCompressionLatc.cs │ │ │ │ ├── ExtTextureCompressionRgtc.cs │ │ │ │ ├── ExtTextureCompressionS3tc.cs │ │ │ │ ├── ExtTextureCubeMap.cs │ │ │ │ ├── ExtTextureEnvAdd.cs │ │ │ │ ├── ExtTextureEnvCombine.cs │ │ │ │ ├── ExtTextureEnvDot3.cs │ │ │ │ ├── ExtTextureFilterAnisotropic.cs │ │ │ │ ├── ExtTextureInteger.cs │ │ │ │ ├── ExtTextureLodBias.cs │ │ │ │ ├── ExtTextureMirrorClamp.cs │ │ │ │ ├── ExtTextureObject.cs │ │ │ │ ├── ExtTexturePerturbNormal.cs │ │ │ │ ├── ExtTextureSharedExponent.cs │ │ │ │ ├── ExtTextureSnorm.cs │ │ │ │ ├── ExtTextureSrgb.cs │ │ │ │ ├── ExtTextureSwizzle.cs │ │ │ │ ├── ExtTextureType2101010Rev.cs │ │ │ │ ├── ExtTimerQuery.cs │ │ │ │ ├── ExtTransformFeedback.cs │ │ │ │ ├── ExtVertexArray.cs │ │ │ │ ├── ExtVertexArrayBgra.cs │ │ │ │ ├── ExtVertexAttrib64bit.cs │ │ │ │ ├── ExtVertexShader.cs │ │ │ │ ├── ExtVertexWeighting.cs │ │ │ │ ├── FeedBackToken.cs │ │ │ │ ├── FeedbackType.cs │ │ │ │ ├── FfdMaskSgix.cs │ │ │ │ ├── FfdTargetSgix.cs │ │ │ │ ├── FogMode.cs │ │ │ │ ├── FogParameter.cs │ │ │ │ ├── FogPointerType.cs │ │ │ │ ├── FragmentLightModelParameterSgix.cs │ │ │ │ ├── FrameEventArgs.cs │ │ │ │ ├── FramebufferAttachment.cs │ │ │ │ ├── FramebufferAttachmentComponentType.cs │ │ │ │ ├── FramebufferAttachmentObjectType.cs │ │ │ │ ├── FramebufferErrorCode.cs │ │ │ │ ├── FramebufferParameterName.cs │ │ │ │ ├── FramebufferTarget.cs │ │ │ │ ├── FrontFaceDirection.cs │ │ │ │ ├── GL.cs │ │ │ │ ├── GenerateMipmapTarget.cs │ │ │ │ ├── GetColorTableParameterPName.cs │ │ │ │ ├── GetColorTableParameterPNameSgi.cs │ │ │ │ ├── GetConvolutionParameter.cs │ │ │ │ ├── GetConvolutionParameterPName.cs │ │ │ │ ├── GetHistogramParameterPName.cs │ │ │ │ ├── GetHistogramParameterPNameExt.cs │ │ │ │ ├── GetIndexedPName.cs │ │ │ │ ├── GetMapQuery.cs │ │ │ │ ├── GetMinmaxParameterPName.cs │ │ │ │ ├── GetMinmaxParameterPNameExt.cs │ │ │ │ ├── GetMultisamplePName.cs │ │ │ │ ├── GetPName.cs │ │ │ │ ├── GetPixelMap.cs │ │ │ │ ├── GetPointervPName.cs │ │ │ │ ├── GetQueryObjectParam.cs │ │ │ │ ├── GetQueryParam.cs │ │ │ │ ├── GetTextureParameter.cs │ │ │ │ ├── Gl3DfxMultisample.cs │ │ │ │ ├── Gl3DfxTbuffer.cs │ │ │ │ ├── Gl3DfxTextureCompressionFxt1.cs │ │ │ │ ├── GremedyFrameTerminator.cs │ │ │ │ ├── GremedyStringMarker.cs │ │ │ │ ├── Half.cs │ │ │ │ ├── HintMode.cs │ │ │ │ ├── HintTarget.cs │ │ │ │ ├── HistogramTarget.cs │ │ │ │ ├── HistogramTargetExt.cs │ │ │ │ ├── HpConvolutionBorderModes.cs │ │ │ │ ├── HpImageTransform.cs │ │ │ │ ├── HpOcclusionTest.cs │ │ │ │ ├── HpTextureLighting.cs │ │ │ │ ├── IGameWindow.cs │ │ │ │ ├── INativeWindow.cs │ │ │ │ ├── IbmCullVertex.cs │ │ │ │ ├── IbmMultimodeDrawArrays.cs │ │ │ │ ├── IbmRasterposClip.cs │ │ │ │ ├── IbmTextureMirroredRepeat.cs │ │ │ │ ├── IbmVertexArrayLists.cs │ │ │ │ ├── ImgMultisampledRenderToTexture.cs │ │ │ │ ├── ImgProgramBinary.cs │ │ │ │ ├── ImgShaderBinary.cs │ │ │ │ ├── ImgTextureCompressionPvrtc.cs │ │ │ │ ├── ImgTextureEnvEnhancedFixedFunction.cs │ │ │ │ ├── IndexPointerType.cs │ │ │ │ ├── IndexedEnableCap.cs │ │ │ │ ├── IngrColorClamp.cs │ │ │ │ ├── IngrInterlaceRead.cs │ │ │ │ ├── IngrPaletteBuffer.cs │ │ │ │ ├── IntelParallelArrays.cs │ │ │ │ ├── IntelTextureScissor.cs │ │ │ │ ├── InterleavedArrayFormat.cs │ │ │ │ ├── LightEnvModeSgix.cs │ │ │ │ ├── LightEnvParameterSgix.cs │ │ │ │ ├── LightModelColorControl.cs │ │ │ │ ├── LightModelParameter.cs │ │ │ │ ├── LightName.cs │ │ │ │ ├── LightParameter.cs │ │ │ │ ├── ListMode.cs │ │ │ │ ├── ListNameType.cs │ │ │ │ ├── ListParameterName.cs │ │ │ │ ├── LogicOp.cs │ │ │ │ ├── MapTarget.cs │ │ │ │ ├── MaterialFace.cs │ │ │ │ ├── MaterialParameter.cs │ │ │ │ ├── MathHelper.cs │ │ │ │ ├── Matrix4.cs │ │ │ │ ├── Matrix4d.cs │ │ │ │ ├── MatrixMode.cs │ │ │ │ ├── MatrixModeArb.cs │ │ │ │ ├── MesaPackInvert.cs │ │ │ │ ├── MesaPackedDepthStencil.cs │ │ │ │ ├── MesaProgramDebug.cs │ │ │ │ ├── MesaResizeBuffers.cs │ │ │ │ ├── MesaShaderDebug.cs │ │ │ │ ├── MesaTrace.cs │ │ │ │ ├── MesaWindowPos.cs │ │ │ │ ├── MesaYcbcrTexture.cs │ │ │ │ ├── MesaxTextureStack.cs │ │ │ │ ├── MeshMode1.cs │ │ │ │ ├── MeshMode2.cs │ │ │ │ ├── MinmaxTarget.cs │ │ │ │ ├── MinmaxTargetExt.cs │ │ │ │ ├── MonoMacGameView.cs │ │ │ │ ├── NormalPointerType.cs │ │ │ │ ├── NvBlendSquare.cs │ │ │ │ ├── NvConditionalRender.cs │ │ │ │ ├── NvCopyDepthToColor.cs │ │ │ │ ├── NvCopyImage.cs │ │ │ │ ├── NvCoverageSample.cs │ │ │ │ ├── NvDepthBufferFloat.cs │ │ │ │ ├── NvDepthClamp.cs │ │ │ │ ├── NvDepthNonlinear.cs │ │ │ │ ├── NvEvaluators.cs │ │ │ │ ├── NvExplicitMultisample.cs │ │ │ │ ├── NvFence.cs │ │ │ │ ├── NvFloatBuffer.cs │ │ │ │ ├── NvFogDistance.cs │ │ │ │ ├── NvFragmentProgram.cs │ │ │ │ ├── NvFragmentProgram2.cs │ │ │ │ ├── NvFragmentProgram4.cs │ │ │ │ ├── NvFragmentProgramOption.cs │ │ │ │ ├── NvFramebufferMultisampleCoverage.cs │ │ │ │ ├── NvGeometryProgram4.cs │ │ │ │ ├── NvGeometryShader4.cs │ │ │ │ ├── NvGpuProgram4.cs │ │ │ │ ├── NvGpuProgram5.cs │ │ │ │ ├── NvGpuShader5.cs │ │ │ │ ├── NvHalfFloat.cs │ │ │ │ ├── NvLightMaxExponent.cs │ │ │ │ ├── NvMultisampleCoverage.cs │ │ │ │ ├── NvMultisampleFilterHint.cs │ │ │ │ ├── NvOcclusionQuery.cs │ │ │ │ ├── NvPackedDepthStencil.cs │ │ │ │ ├── NvParameterBufferObject.cs │ │ │ │ ├── NvParameterBufferObject2.cs │ │ │ │ ├── NvPixelDataRange.cs │ │ │ │ ├── NvPointSprite.cs │ │ │ │ ├── NvPresentVideo.cs │ │ │ │ ├── NvPrimitiveRestart.cs │ │ │ │ ├── NvRegisterCombiners.cs │ │ │ │ ├── NvRegisterCombiners2.cs │ │ │ │ ├── NvShaderBufferLoad.cs │ │ │ │ ├── NvShaderBufferStore.cs │ │ │ │ ├── NvTessellationProgram5.cs │ │ │ │ ├── NvTexgenEmboss.cs │ │ │ │ ├── NvTexgenReflection.cs │ │ │ │ ├── NvTextureBarrier.cs │ │ │ │ ├── NvTextureCompressionVtc.cs │ │ │ │ ├── NvTextureEnvCombine4.cs │ │ │ │ ├── NvTextureExpandNormal.cs │ │ │ │ ├── NvTextureRectangle.cs │ │ │ │ ├── NvTextureShader.cs │ │ │ │ ├── NvTextureShader2.cs │ │ │ │ ├── NvTextureShader3.cs │ │ │ │ ├── NvTransformFeedback.cs │ │ │ │ ├── NvTransformFeedback2.cs │ │ │ │ ├── NvVdpauInterop.cs │ │ │ │ ├── NvVertexArrayRange.cs │ │ │ │ ├── NvVertexArrayRange2.cs │ │ │ │ ├── NvVertexAttribInteger64bit.cs │ │ │ │ ├── NvVertexBufferUnifiedMemory.cs │ │ │ │ ├── NvVertexProgram.cs │ │ │ │ ├── NvVertexProgram11.cs │ │ │ │ ├── NvVertexProgram2.cs │ │ │ │ ├── NvVertexProgram2Option.cs │ │ │ │ ├── NvVertexProgram3.cs │ │ │ │ ├── NvVertexProgram4.cs │ │ │ │ ├── NvVideoCapture.cs │ │ │ │ ├── OesBlendEquationSeparate.cs │ │ │ │ ├── OesBlendFuncSeparate.cs │ │ │ │ ├── OesBlendSubtract.cs │ │ │ │ ├── OesCompressedEtc1Rgb8Texture.cs │ │ │ │ ├── OesCompressedPalettedTexture.cs │ │ │ │ ├── OesDepth24.cs │ │ │ │ ├── OesDepth32.cs │ │ │ │ ├── OesDepthTexture.cs │ │ │ │ ├── OesDrawTexture.cs │ │ │ │ ├── OesEglImageExternal.cs │ │ │ │ ├── OesElementIndexUint.cs │ │ │ │ ├── OesFixedPoint.cs │ │ │ │ ├── OesFramebufferObject.cs │ │ │ │ ├── OesGetProgramBinary.cs │ │ │ │ ├── OesMapbuffer.cs │ │ │ │ ├── OesMatrixGet.cs │ │ │ │ ├── OesMatrixPalette.cs │ │ │ │ ├── OesPackedDepthStencil.cs │ │ │ │ ├── OesPointSizeArray.cs │ │ │ │ ├── OesPointSprite.cs │ │ │ │ ├── OesReadFormat.cs │ │ │ │ ├── OesRgb8Rgba8.cs │ │ │ │ ├── OesStandardDerivatives.cs │ │ │ │ ├── OesStencil1.cs │ │ │ │ ├── OesStencil4.cs │ │ │ │ ├── OesStencil8.cs │ │ │ │ ├── OesStencilWrap.cs │ │ │ │ ├── OesTexture3D.cs │ │ │ │ ├── OesTextureCubeMap.cs │ │ │ │ ├── OesTextureEnvCrossbar.cs │ │ │ │ ├── OesTextureFloat.cs │ │ │ │ ├── OesTextureMirroredRepeat.cs │ │ │ │ ├── OesVertexHalfFloat.cs │ │ │ │ ├── OesVertexType1010102.cs │ │ │ │ ├── OmlInterlace.cs │ │ │ │ ├── OmlResample.cs │ │ │ │ ├── OmlSubsample.cs │ │ │ │ ├── PackedPointerType.cs │ │ │ │ ├── PatchParameterFloat.cs │ │ │ │ ├── PatchParameterInt.cs │ │ │ │ ├── PgiMiscHints.cs │ │ │ │ ├── PgiVertexHints.cs │ │ │ │ ├── PixelCopyType.cs │ │ │ │ ├── PixelFormat.cs │ │ │ │ ├── PixelInternalFormat.cs │ │ │ │ ├── PixelMap.cs │ │ │ │ ├── PixelStoreParameter.cs │ │ │ │ ├── PixelStoreResampleMode.cs │ │ │ │ ├── PixelStoreSubsampleRate.cs │ │ │ │ ├── PixelTexGenMode.cs │ │ │ │ ├── PixelTexGenParameterNameSgis.cs │ │ │ │ ├── PixelTransferParameter.cs │ │ │ │ ├── PixelType.cs │ │ │ │ ├── PointParameterName.cs │ │ │ │ ├── PointParameterNameSgis.cs │ │ │ │ ├── PointSpriteCoordOriginParameter.cs │ │ │ │ ├── PolygonMode.cs │ │ │ │ ├── ProgramParameter.cs │ │ │ │ ├── ProgramPipelineParameter.cs │ │ │ │ ├── ProgramStageMask.cs │ │ │ │ ├── ProgramStageParameter.cs │ │ │ │ ├── ProvokingVertexMode.cs │ │ │ │ ├── QcomDriverControl.cs │ │ │ │ ├── QcomExtendedGet.cs │ │ │ │ ├── QcomWriteonlyRendering.cs │ │ │ │ ├── Quaternion.cs │ │ │ │ ├── Quaterniond.cs │ │ │ │ ├── QueryCounterTarget.cs │ │ │ │ ├── QueryTarget.cs │ │ │ │ ├── ReadBufferMode.cs │ │ │ │ ├── RendScreenCoordinates.cs │ │ │ │ ├── RenderbufferParameterName.cs │ │ │ │ ├── RenderbufferStorage.cs │ │ │ │ ├── RenderbufferTarget.cs │ │ │ │ ├── RenderingMode.cs │ │ │ │ ├── S3S3tc.cs │ │ │ │ ├── SamplePatternSgis.cs │ │ │ │ ├── SamplerParameter.cs │ │ │ │ ├── SeparableTarget.cs │ │ │ │ ├── SeparableTargetExt.cs │ │ │ │ ├── SgiColorMatrix.cs │ │ │ │ ├── SgiColorTable.cs │ │ │ │ ├── SgiDepthPassInstrument.cs │ │ │ │ ├── SgiTextureColorTable.cs │ │ │ │ ├── SgisDetailTexture.cs │ │ │ │ ├── SgisFogFunction.cs │ │ │ │ ├── SgisGenerateMipmap.cs │ │ │ │ ├── SgisMultisample.cs │ │ │ │ ├── SgisPixelTexture.cs │ │ │ │ ├── SgisPointLineTexgen.cs │ │ │ │ ├── SgisPointParameters.cs │ │ │ │ ├── SgisSharpenTexture.cs │ │ │ │ ├── SgisTexture4D.cs │ │ │ │ ├── SgisTextureBorderClamp.cs │ │ │ │ ├── SgisTextureColorMask.cs │ │ │ │ ├── SgisTextureEdgeClamp.cs │ │ │ │ ├── SgisTextureFilter4.cs │ │ │ │ ├── SgisTextureLod.cs │ │ │ │ ├── SgisTextureSelect.cs │ │ │ │ ├── SgixAsync.cs │ │ │ │ ├── SgixAsyncHistogram.cs │ │ │ │ ├── SgixAsyncPixel.cs │ │ │ │ ├── SgixBlendAlphaMinmax.cs │ │ │ │ ├── SgixCalligraphicFragment.cs │ │ │ │ ├── SgixClipmap.cs │ │ │ │ ├── SgixConvolutionAccuracy.cs │ │ │ │ ├── SgixDepthPassInstrument.cs │ │ │ │ ├── SgixDepthTexture.cs │ │ │ │ ├── SgixFlushRaster.cs │ │ │ │ ├── SgixFogOffset.cs │ │ │ │ ├── SgixFogScale.cs │ │ │ │ ├── SgixFragmentLighting.cs │ │ │ │ ├── SgixFragmentsInstrument.cs │ │ │ │ ├── SgixFramezoom.cs │ │ │ │ ├── SgixIccTexture.cs │ │ │ │ ├── SgixImpactPixelTexture.cs │ │ │ │ ├── SgixInstruments.cs │ │ │ │ ├── SgixInterlace.cs │ │ │ │ ├── SgixIrInstrument1.cs │ │ │ │ ├── SgixLineQualityHint.cs │ │ │ │ ├── SgixListPriority.cs │ │ │ │ ├── SgixPixelTexture.cs │ │ │ │ ├── SgixPixelTiles.cs │ │ │ │ ├── SgixPolynomialFfd.cs │ │ │ │ ├── SgixReferencePlane.cs │ │ │ │ ├── SgixResample.cs │ │ │ │ ├── SgixScalebiasHint.cs │ │ │ │ ├── SgixShadow.cs │ │ │ │ ├── SgixShadowAmbient.cs │ │ │ │ ├── SgixSlim.cs │ │ │ │ ├── SgixSprite.cs │ │ │ │ ├── SgixSubsample.cs │ │ │ │ ├── SgixTagSampleBuffer.cs │ │ │ │ ├── SgixTextureAddEnv.cs │ │ │ │ ├── SgixTextureCoordinateClamp.cs │ │ │ │ ├── SgixTextureLodBias.cs │ │ │ │ ├── SgixTextureMultiBuffer.cs │ │ │ │ ├── SgixTextureScaleBias.cs │ │ │ │ ├── SgixVertexPreclip.cs │ │ │ │ ├── SgixYcrcb.cs │ │ │ │ ├── SgixYcrcbSubsample.cs │ │ │ │ ├── SgixYcrcba.cs │ │ │ │ ├── ShaderParameter.cs │ │ │ │ ├── ShaderPrecisionType.cs │ │ │ │ ├── ShaderType.cs │ │ │ │ ├── ShadingModel.cs │ │ │ │ ├── SizedInternalFormat.cs │ │ │ │ ├── StencilFace.cs │ │ │ │ ├── StencilFunction.cs │ │ │ │ ├── StencilOp.cs │ │ │ │ ├── StringName.cs │ │ │ │ ├── SunConvolutionBorderModes.cs │ │ │ │ ├── SunGlobalAlpha.cs │ │ │ │ ├── SunMeshArray.cs │ │ │ │ ├── SunSliceAccum.cs │ │ │ │ ├── SunTriangleList.cs │ │ │ │ ├── SunVertex.cs │ │ │ │ ├── SunxConstantData.cs │ │ │ │ ├── SunxGeneralTriangleList.cs │ │ │ │ ├── TexCoordPointerType.cs │ │ │ │ ├── TextureBufferTarget.cs │ │ │ │ ├── TextureCompareMode.cs │ │ │ │ ├── TextureCoordName.cs │ │ │ │ ├── TextureEnvMode.cs │ │ │ │ ├── TextureEnvModeCombine.cs │ │ │ │ ├── TextureEnvModeOperandAlpha.cs │ │ │ │ ├── TextureEnvModeOperandRgb.cs │ │ │ │ ├── TextureEnvModePointSprite.cs │ │ │ │ ├── TextureEnvModeScale.cs │ │ │ │ ├── TextureEnvModeSource.cs │ │ │ │ ├── TextureEnvParameter.cs │ │ │ │ ├── TextureEnvTarget.cs │ │ │ │ ├── TextureFilterFuncSgis.cs │ │ │ │ ├── TextureGenMode.cs │ │ │ │ ├── TextureGenParameter.cs │ │ │ │ ├── TextureMagFilter.cs │ │ │ │ ├── TextureMinFilter.cs │ │ │ │ ├── TextureParameterName.cs │ │ │ │ ├── TextureTarget.cs │ │ │ │ ├── TextureTargetMultisample.cs │ │ │ │ ├── TextureUnit.cs │ │ │ │ ├── TextureWrapMode.cs │ │ │ │ ├── TransformFeedbackMode.cs │ │ │ │ ├── TransformFeedbackTarget.cs │ │ │ │ ├── Vector2.cs │ │ │ │ ├── Vector2d.cs │ │ │ │ ├── Vector2h.cs │ │ │ │ ├── Vector3.cs │ │ │ │ ├── Vector3d.cs │ │ │ │ ├── Vector3h.cs │ │ │ │ ├── Vector4.cs │ │ │ │ ├── Vector4d.cs │ │ │ │ ├── Vector4h.cs │ │ │ │ ├── Version11.cs │ │ │ │ ├── Version11Deprecated.cs │ │ │ │ ├── Version12.cs │ │ │ │ ├── Version12Deprecated.cs │ │ │ │ ├── Version13.cs │ │ │ │ ├── Version13Deprecated.cs │ │ │ │ ├── Version14.cs │ │ │ │ ├── Version14Deprecated.cs │ │ │ │ ├── Version15.cs │ │ │ │ ├── Version15Deprecated.cs │ │ │ │ ├── Version20.cs │ │ │ │ ├── Version20Deprecated.cs │ │ │ │ ├── Version21.cs │ │ │ │ ├── Version21Deprecated.cs │ │ │ │ ├── Version30.cs │ │ │ │ ├── Version30Deprecated.cs │ │ │ │ ├── Version31.cs │ │ │ │ ├── Version32.cs │ │ │ │ ├── Version33.cs │ │ │ │ ├── Version40.cs │ │ │ │ ├── Version41.cs │ │ │ │ ├── VertexAttribDPointerType.cs │ │ │ │ ├── VertexAttribIPointerType.cs │ │ │ │ ├── VertexAttribParameter.cs │ │ │ │ ├── VertexAttribParameterArb.cs │ │ │ │ ├── VertexAttribPointerParameter.cs │ │ │ │ ├── VertexAttribPointerParameterArb.cs │ │ │ │ ├── VertexAttribPointerType.cs │ │ │ │ ├── VertexAttribPointerTypeArb.cs │ │ │ │ ├── VertexPointerType.cs │ │ │ │ ├── VivShaderBinary.cs │ │ │ │ ├── WinPhongShading.cs │ │ │ │ ├── WinSpecularFog.cs │ │ │ │ ├── WindowBorder.cs │ │ │ │ └── WindowState.cs │ │ │ ├── PdfKit/ │ │ │ │ ├── ClassForAnnotationClassDelegate.cs │ │ │ │ ├── PdfAction.cs │ │ │ │ ├── PdfActionGoTo.cs │ │ │ │ ├── PdfActionNamed.cs │ │ │ │ ├── PdfActionNamedName.cs │ │ │ │ ├── PdfActionRemoteGoTo.cs │ │ │ │ ├── PdfActionResetForm.cs │ │ │ │ ├── PdfActionUrl.cs │ │ │ │ ├── PdfAnnotation.cs │ │ │ │ ├── PdfAnnotationButtonWidget.cs │ │ │ │ ├── PdfAnnotationChoiceWidget.cs │ │ │ │ ├── PdfAnnotationCircle.cs │ │ │ │ ├── PdfAnnotationFreeText.cs │ │ │ │ ├── PdfAnnotationInk.cs │ │ │ │ ├── PdfAnnotationLine.cs │ │ │ │ ├── PdfAnnotationLink.cs │ │ │ │ ├── PdfAnnotationMarkup.cs │ │ │ │ ├── PdfAnnotationPopup.cs │ │ │ │ ├── PdfAnnotationSquare.cs │ │ │ │ ├── PdfAnnotationStamp.cs │ │ │ │ ├── PdfAnnotationText.cs │ │ │ │ ├── PdfAnnotationTextWidget.cs │ │ │ │ ├── PdfAreaOfInterest.cs │ │ │ │ ├── PdfBorder.cs │ │ │ │ ├── PdfBorderStyle.cs │ │ │ │ ├── PdfDestination.cs │ │ │ │ ├── PdfDisplayBox.cs │ │ │ │ ├── PdfDisplayMode.cs │ │ │ │ ├── PdfDocument.cs │ │ │ │ ├── PdfDocumentDelegate.cs │ │ │ │ ├── PdfDocumentPermissions.cs │ │ │ │ ├── PdfLineStyle.cs │ │ │ │ ├── PdfMarkupType.cs │ │ │ │ ├── PdfOutline.cs │ │ │ │ ├── PdfPage.cs │ │ │ │ ├── PdfPrintScalingMode.cs │ │ │ │ ├── PdfSelection.cs │ │ │ │ ├── PdfTextAnnotationIconType.cs │ │ │ │ ├── PdfThumbnailView.cs │ │ │ │ ├── PdfView.cs │ │ │ │ ├── PdfViewActionEventArgs.cs │ │ │ │ ├── PdfViewAnnotationHitEventArgs.cs │ │ │ │ ├── PdfViewDelegate.cs │ │ │ │ ├── PdfViewScale.cs │ │ │ │ ├── PdfViewTitle.cs │ │ │ │ ├── PdfViewUrlEventArgs.cs │ │ │ │ └── PdfWidgetControlType.cs │ │ │ ├── Properties/ │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── QTKit/ │ │ │ │ ├── QTCaptureAudioPreviewOutput.cs │ │ │ │ ├── QTCaptureConnection.cs │ │ │ │ ├── QTCaptureDecompressedVideoOutput.cs │ │ │ │ ├── QTCaptureDecompressedVideoOutputDelegate.cs │ │ │ │ ├── QTCaptureDestination.cs │ │ │ │ ├── QTCaptureDevice.cs │ │ │ │ ├── QTCaptureDeviceControlsSpeed.cs │ │ │ │ ├── QTCaptureDeviceInput.cs │ │ │ │ ├── QTCaptureDevicePlaybackMode.cs │ │ │ │ ├── QTCaptureDeviceTransportControl.cs │ │ │ │ ├── QTCaptureFileError.cs │ │ │ │ ├── QTCaptureFileErrorEventArgs.cs │ │ │ │ ├── QTCaptureFileOutput.cs │ │ │ │ ├── QTCaptureFileOutputDelegate.cs │ │ │ │ ├── QTCaptureFileSampleEventArgs.cs │ │ │ │ ├── QTCaptureFileUrlEventArgs.cs │ │ │ │ ├── QTCaptureImageEvent.cs │ │ │ │ ├── QTCaptureInput.cs │ │ │ │ ├── QTCaptureLayer.cs │ │ │ │ ├── QTCaptureMovieFileOutput.cs │ │ │ │ ├── QTCaptureOutput.cs │ │ │ │ ├── QTCaptureSession.cs │ │ │ │ ├── QTCaptureVideoDroppedEventArgs.cs │ │ │ │ ├── QTCaptureVideoFrameEventArgs.cs │ │ │ │ ├── QTCaptureView.cs │ │ │ │ ├── QTCaptureViewDelegate.cs │ │ │ │ ├── QTCodecQuality.cs │ │ │ │ ├── QTCompressionOptions.cs │ │ │ │ ├── QTDataReference.cs │ │ │ │ ├── QTError.cs │ │ │ │ ├── QTFileType.cs │ │ │ │ ├── QTFormatDescription.cs │ │ │ │ ├── QTImageAttributes.cs │ │ │ │ ├── QTMedia.cs │ │ │ │ ├── QTMediaType.cs │ │ │ │ ├── QTMovie.cs │ │ │ │ ├── QTMovieFileTypeOptions.cs │ │ │ │ ├── QTMovieLayer.cs │ │ │ │ ├── QTMovieSaveOptions.cs │ │ │ │ ├── QTMovieView.cs │ │ │ │ ├── QTMovieViewDelegate.cs │ │ │ │ ├── QTSampleBuffer.cs │ │ │ │ ├── QTTime.cs │ │ │ │ ├── QTTimeRange.cs │ │ │ │ ├── QTTrack.cs │ │ │ │ └── TimeFlags.cs │ │ │ ├── QuartzComposer/ │ │ │ │ ├── QCComposition.cs │ │ │ │ ├── QCCompositionLayer.cs │ │ │ │ └── QCCompositionRepository.cs │ │ │ ├── QuickLook/ │ │ │ │ └── QLThumbnailImage.cs │ │ │ ├── Registrar/ │ │ │ │ ├── DynamicRegistrar.cs │ │ │ │ ├── Registrar.cs │ │ │ │ ├── Shared.cs │ │ │ │ ├── SharedDynamic.cs │ │ │ │ └── Trampoline.cs │ │ │ ├── ScriptingBridge/ │ │ │ │ ├── AESendMode.cs │ │ │ │ ├── LSLaunchFlags.cs │ │ │ │ ├── SBApplication.cs │ │ │ │ ├── SBApplicationDelegate.cs │ │ │ │ ├── SBApplicationError.cs │ │ │ │ └── SBObject.cs │ │ │ ├── Security/ │ │ │ │ ├── Authorization.cs │ │ │ │ ├── AuthorizationEnvironment.cs │ │ │ │ ├── AuthorizationFlags.cs │ │ │ │ ├── AuthorizationItem.cs │ │ │ │ ├── AuthorizationItemSet.cs │ │ │ │ ├── AuthorizationParameters.cs │ │ │ │ ├── AuthorizationStatus.cs │ │ │ │ ├── ClassKeys.cs │ │ │ │ ├── KeyTypeKeys.cs │ │ │ │ ├── KeysAccessible.cs │ │ │ │ ├── KeysAuthenticationType.cs │ │ │ │ ├── SecAccessible.cs │ │ │ │ ├── SecAttributeKey.cs │ │ │ │ ├── SecAuthenticationType.cs │ │ │ │ ├── SecCertificate.cs │ │ │ │ ├── SecClass.cs │ │ │ │ ├── SecIdentity.cs │ │ │ │ ├── SecItem.cs │ │ │ │ ├── SecKey.cs │ │ │ │ ├── SecKeyChain.cs │ │ │ │ ├── SecKeyClass.cs │ │ │ │ ├── SecKeyType.cs │ │ │ │ ├── SecKind.cs │ │ │ │ ├── SecMatchLimit.cs │ │ │ │ ├── SecPadding.cs │ │ │ │ ├── SecPolicy.cs │ │ │ │ ├── SecProtocol.cs │ │ │ │ ├── SecProtocolKeys.cs │ │ │ │ ├── SecRecord.cs │ │ │ │ ├── SecStatusCode.cs │ │ │ │ ├── SecTrust.cs │ │ │ │ ├── SecTrustResult.cs │ │ │ │ └── SecurityException.cs │ │ │ ├── Trampolines.cs │ │ │ ├── WebKit/ │ │ │ │ ├── CreateWebViewFromRequest.cs │ │ │ │ ├── DomAbstractView.cs │ │ │ │ ├── DomAttr.cs │ │ │ │ ├── DomCDataSection.cs │ │ │ │ ├── DomCharacterData.cs │ │ │ │ ├── DomComment.cs │ │ │ │ ├── DomCssRule.cs │ │ │ │ ├── DomCssRuleList.cs │ │ │ │ ├── DomCssRuleType.cs │ │ │ │ ├── DomCssStyleDeclaration.cs │ │ │ │ ├── DomCssStyleSheet.cs │ │ │ │ ├── DomCssValue.cs │ │ │ │ ├── DomCssValueType.cs │ │ │ │ ├── DomDocument.cs │ │ │ │ ├── DomDocumentFragment.cs │ │ │ │ ├── DomDocumentPosition.cs │ │ │ │ ├── DomDocumentType.cs │ │ │ │ ├── DomElement.cs │ │ │ │ ├── DomEntityReference.cs │ │ │ │ ├── DomEvent.cs │ │ │ │ ├── DomEventArgs.cs │ │ │ │ ├── DomEventListener.cs │ │ │ │ ├── DomEventListenerHandler.cs │ │ │ │ ├── DomEventPhase.cs │ │ │ │ ├── DomHtmlCollection.cs │ │ │ │ ├── DomHtmlDocument.cs │ │ │ │ ├── DomHtmlElement.cs │ │ │ │ ├── DomHtmlInputElement.cs │ │ │ │ ├── DomHtmlTextAreaElement.cs │ │ │ │ ├── DomImplementation.cs │ │ │ │ ├── DomMediaList.cs │ │ │ │ ├── DomNamedNodeMap.cs │ │ │ │ ├── DomNode.cs │ │ │ │ ├── DomNodeList.cs │ │ │ │ ├── DomNodeType.cs │ │ │ │ ├── DomObject.cs │ │ │ │ ├── DomProcessingInstruction.cs │ │ │ │ ├── DomRange.cs │ │ │ │ ├── DomRangeCompareHow.cs │ │ │ │ ├── DomStyleSheet.cs │ │ │ │ ├── DomStyleSheetList.cs │ │ │ │ ├── DomText.cs │ │ │ │ ├── DragDestinationGetActionMask.cs │ │ │ │ ├── DragSourceGetActionMask.cs │ │ │ │ ├── IIndexedContainer.cs │ │ │ │ ├── IWKHttpCookieStoreObserver.cs │ │ │ │ ├── IWKNavigationDelegate.cs │ │ │ │ ├── IWKScriptMessageHandler.cs │ │ │ │ ├── IWKUIDelegate.cs │ │ │ │ ├── IWKUrlSchemeHandler.cs │ │ │ │ ├── IWKUrlSchemeTask.cs │ │ │ │ ├── IWebDocumentRepresentation.cs │ │ │ │ ├── IWebDownloadDelegate.cs │ │ │ │ ├── IWebFrameLoadDelegate.cs │ │ │ │ ├── IWebOpenPanelResultListener.cs │ │ │ │ ├── IWebPolicyDecisionListener.cs │ │ │ │ ├── IWebPolicyDelegate.cs │ │ │ │ ├── IWebResourceLoadDelegate.cs │ │ │ │ ├── IndexedContainerEnumerator.cs │ │ │ │ ├── NSUrlSessionAuthChallengeDisposition.cs │ │ │ │ ├── WKAudiovisualMediaTypes.cs │ │ │ │ ├── WKBackForwardList.cs │ │ │ │ ├── WKBackForwardListItem.cs │ │ │ │ ├── WKContentMode.cs │ │ │ │ ├── WKContentRuleList.cs │ │ │ │ ├── WKContentRuleListStore.cs │ │ │ │ ├── WKContentWorld.cs │ │ │ │ ├── WKErrorCode.cs │ │ │ │ ├── WKErrorCodeExtensions.cs │ │ │ │ ├── WKFindConfiguration.cs │ │ │ │ ├── WKFindResult.cs │ │ │ │ ├── WKFrameInfo.cs │ │ │ │ ├── WKFullscreenState.cs │ │ │ │ ├── WKHttpCookieStore.cs │ │ │ │ ├── WKHttpCookieStoreObserverWrapper.cs │ │ │ │ ├── WKHttpCookieStoreObserver_Extensions.cs │ │ │ │ ├── WKJavascriptEvaluationResult.cs │ │ │ │ ├── WKMediaCaptureState.cs │ │ │ │ ├── WKNavigation.cs │ │ │ │ ├── WKNavigationAction.cs │ │ │ │ ├── WKNavigationActionPolicy.cs │ │ │ │ ├── WKNavigationDelegate.cs │ │ │ │ ├── WKNavigationDelegateWrapper.cs │ │ │ │ ├── WKNavigationDelegate_Extensions.cs │ │ │ │ ├── WKNavigationResponse.cs │ │ │ │ ├── WKNavigationResponsePolicy.cs │ │ │ │ ├── WKNavigationType.cs │ │ │ │ ├── WKOpenPanelParameters.cs │ │ │ │ ├── WKPreferences.cs │ │ │ │ ├── WKProcessPool.cs │ │ │ │ ├── WKScriptMessage.cs │ │ │ │ ├── WKScriptMessageHandler.cs │ │ │ │ ├── WKScriptMessageHandlerWrapper.cs │ │ │ │ ├── WKSecurityOrigin.cs │ │ │ │ ├── WKSelectionGranularity.cs │ │ │ │ ├── WKSnapshotConfiguration.cs │ │ │ │ ├── WKUIDelegate.cs │ │ │ │ ├── WKUIDelegateWrapper.cs │ │ │ │ ├── WKUIDelegate_Extensions.cs │ │ │ │ ├── WKUrlSchemeHandlerWrapper.cs │ │ │ │ ├── WKUrlSchemeTaskWrapper.cs │ │ │ │ ├── WKUserContentController.cs │ │ │ │ ├── WKUserScript.cs │ │ │ │ ├── WKUserScriptInjectionTime.cs │ │ │ │ ├── WKWebView.cs │ │ │ │ ├── WKWebViewConfiguration.cs │ │ │ │ ├── WKWebpagePreferences.cs │ │ │ │ ├── WKWebsiteDataRecord.cs │ │ │ │ ├── WKWebsiteDataStore.cs │ │ │ │ ├── WKWebsiteDataType.cs │ │ │ │ ├── WKWindowFeatures.cs │ │ │ │ ├── WebArchive.cs │ │ │ │ ├── WebBackForwardList.cs │ │ │ │ ├── WebCacheModel.cs │ │ │ │ ├── WebDataSource.cs │ │ │ │ ├── WebDocumentRepresentation.cs │ │ │ │ ├── WebDocumentRepresentationWrapper.cs │ │ │ │ ├── WebDownload.cs │ │ │ │ ├── WebDownloadDelegate.cs │ │ │ │ ├── WebDownloadDelegateWrapper.cs │ │ │ │ ├── WebDownloadRequest.cs │ │ │ │ ├── WebDragDestinationAction.cs │ │ │ │ ├── WebDragSourceAction.cs │ │ │ │ ├── WebFailureToImplementPolicyEventArgs.cs │ │ │ │ ├── WebFrame.cs │ │ │ │ ├── WebFrameClientRedirectEventArgs.cs │ │ │ │ ├── WebFrameErrorEventArgs.cs │ │ │ │ ├── WebFrameEventArgs.cs │ │ │ │ ├── WebFrameImageEventArgs.cs │ │ │ │ ├── WebFrameLoadDelegate.cs │ │ │ │ ├── WebFrameLoadDelegateWrapper.cs │ │ │ │ ├── WebFrameScriptFrameEventArgs.cs │ │ │ │ ├── WebFrameScriptObjectEventArgs.cs │ │ │ │ ├── WebFrameTitleEventArgs.cs │ │ │ │ ├── WebFrameView.cs │ │ │ │ ├── WebHistoryItem.cs │ │ │ │ ├── WebMimeTypePolicyEventArgs.cs │ │ │ │ ├── WebNavigationPolicyEventArgs.cs │ │ │ │ ├── WebNavigationType.cs │ │ │ │ ├── WebNewWindowPolicyEventArgs.cs │ │ │ │ ├── WebOpenPanelResultListener.cs │ │ │ │ ├── WebOpenPanelResultListenerWrapper.cs │ │ │ │ ├── WebOpenPanelResultListener_Extensions.cs │ │ │ │ ├── WebPolicyDecisionListener.cs │ │ │ │ ├── WebPolicyDecisionListenerWrapper.cs │ │ │ │ ├── WebPolicyDelegate.cs │ │ │ │ ├── WebPolicyDelegateWrapper.cs │ │ │ │ ├── WebPolicyDelegate_Extensions.cs │ │ │ │ ├── WebPreferences.cs │ │ │ │ ├── WebResource.cs │ │ │ │ ├── WebResourceAuthenticationChallengeEventArgs.cs │ │ │ │ ├── WebResourceCancelledChallengeEventArgs.cs │ │ │ │ ├── WebResourceCompletedEventArgs.cs │ │ │ │ ├── WebResourceErrorEventArgs.cs │ │ │ │ ├── WebResourceIdentifierRequest.cs │ │ │ │ ├── WebResourceLoadDelegate.cs │ │ │ │ ├── WebResourceLoadDelegateWrapper.cs │ │ │ │ ├── WebResourceOnRequestSend.cs │ │ │ │ ├── WebResourcePluginErrorEventArgs.cs │ │ │ │ ├── WebResourceReceivedContentLengthEventArgs.cs │ │ │ │ ├── WebResourceReceivedResponseEventArgs.cs │ │ │ │ ├── WebScriptObject.cs │ │ │ │ ├── WebUIDelegate.cs │ │ │ │ ├── WebView.cs │ │ │ │ ├── WebViewConfirmationPanel.cs │ │ │ │ ├── WebViewContentEventArgs.cs │ │ │ │ ├── WebViewCreate.cs │ │ │ │ ├── WebViewDragEventArgs.cs │ │ │ │ ├── WebViewFooterEventArgs.cs │ │ │ │ ├── WebViewFrameEventArgs.cs │ │ │ │ ├── WebViewGetBool.cs │ │ │ │ ├── WebViewGetContextMenuItems.cs │ │ │ │ ├── WebViewGetFloat.cs │ │ │ │ ├── WebViewGetRectangle.cs │ │ │ │ ├── WebViewGetResponder.cs │ │ │ │ ├── WebViewGetString.cs │ │ │ │ ├── WebViewHeaderEventArgs.cs │ │ │ │ ├── WebViewJavaScriptEventArgs.cs │ │ │ │ ├── WebViewJavaScriptFrame.cs │ │ │ │ ├── WebViewJavaScriptFrameEventArgs.cs │ │ │ │ ├── WebViewJavaScriptInput.cs │ │ │ │ ├── WebViewMouseMovedEventArgs.cs │ │ │ │ ├── WebViewPerformAction.cs │ │ │ │ ├── WebViewPerformDragEventArgs.cs │ │ │ │ ├── WebViewPrintEventArgs.cs │ │ │ │ ├── WebViewPrompt.cs │ │ │ │ ├── WebViewPromptPanel.cs │ │ │ │ ├── WebViewResizableEventArgs.cs │ │ │ │ ├── WebViewResponderEventArgs.cs │ │ │ │ ├── WebViewRunOpenPanelEventArgs.cs │ │ │ │ ├── WebViewStatusBarEventArgs.cs │ │ │ │ ├── WebViewStatusTextEventArgs.cs │ │ │ │ ├── WebViewToolBarsEventArgs.cs │ │ │ │ └── WebViewValidateUserInterface.cs │ │ │ ├── Xamarin.Mac.csproj │ │ │ ├── Xamarin.System/ │ │ │ │ └── nfloat.cs │ │ │ └── Xamarin.Utiles/ │ │ │ ├── ActionAttribute.cs │ │ │ ├── AdoptsAttribute.cs │ │ │ ├── AlphaAttribute.cs │ │ │ ├── AvailabilityBaseAttribute.cs │ │ │ ├── AvailabilityKind.cs │ │ │ ├── BindAsAttribute.cs │ │ │ ├── BlockProxyAttribute.cs │ │ │ ├── CategoryAttribute.cs │ │ │ ├── DelegateProxyAttribute.cs │ │ │ ├── ElCapitanAttribute.cs │ │ │ ├── ErrorHelper.cs │ │ │ ├── IntPtrEqualityComparer.cs │ │ │ ├── LinkerSafeAttribute.cs │ │ │ ├── LogHelper.cs │ │ │ ├── MavericksAttribute.cs │ │ │ ├── MonoNativeFunctionWrapperAttribute.cs │ │ │ ├── MonoPInvokeCallbackAttribute.cs │ │ │ ├── NativeAttribute.cs │ │ │ ├── OutletAttribute.cs │ │ │ ├── Platform.cs │ │ │ ├── PlatformArchitecture.cs │ │ │ ├── PlatformHelper.cs │ │ │ ├── PlatformName.cs │ │ │ ├── ReleaseAttribute.cs │ │ │ ├── RequiredFrameworkAttribute.cs │ │ │ ├── RuntimeException.cs │ │ │ ├── Stret.cs │ │ │ ├── StringUtils.cs │ │ │ ├── ThrowHelper.cs │ │ │ ├── TransientAttribute.cs │ │ │ ├── TypeEqualityComparer.cs │ │ │ └── YosemiteAttribute.cs │ │ ├── Windows/ │ │ │ ├── Avalonia.WebView.Windows/ │ │ │ │ ├── AppBuilderExtensions.cs │ │ │ │ ├── Avalonia.WebView.Windows.csproj │ │ │ │ ├── BlazorWebViewHandlerProvider.cs │ │ │ │ ├── Core/ │ │ │ │ │ ├── WebView2Core-assist.cs │ │ │ │ │ ├── WebView2Core-core.cs │ │ │ │ │ ├── WebView2Core-event.cs │ │ │ │ │ ├── WebView2Core-override.cs │ │ │ │ │ └── WebView2Core.cs │ │ │ │ ├── Helpers/ │ │ │ │ │ └── BlazorScriptHelper.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── _globalusing.cs │ │ │ │ ├── ViewHandlerProvider.cs │ │ │ │ └── WebViewHandler.cs │ │ │ ├── Microsoft.AspNetCore.Components.WebView.Wpf/ │ │ │ │ ├── AutoCloseOnReadCompleteStream.cs │ │ │ │ ├── BlazorWebView.cs │ │ │ │ ├── BlazorWebViewDeveloperTools.cs │ │ │ │ ├── BlazorWebViewInitializedEventArgs.cs │ │ │ │ ├── BlazorWebViewInitializingEventArgs.cs │ │ │ │ ├── BlazorWebViewServiceCollectionExtensions.cs │ │ │ │ ├── IWpfBlazorWebViewBuilder.cs │ │ │ │ ├── Microsoft.AspNetCore.Components.WebView.Wpf.csproj │ │ │ │ ├── Properties/ │ │ │ │ │ └── AssemblyInfo.cs │ │ │ │ ├── QueryStringHelper.cs │ │ │ │ ├── RootComponent.cs │ │ │ │ ├── RootComponentsCollection.cs │ │ │ │ ├── StaticContentHotReloadManager.cs │ │ │ │ ├── UrlLoadingEventArgs.cs │ │ │ │ ├── UrlLoadingStrategy.cs │ │ │ │ ├── WebView2WebViewManager.cs │ │ │ │ ├── WpfBlazorMarkerService.cs │ │ │ │ ├── WpfBlazorWebViewBuilder.cs │ │ │ │ └── WpfDispatcher.cs │ │ │ ├── Microsoft.Web.WebView2.Core/ │ │ │ │ ├── COMDotNetTypeConverter.cs │ │ │ │ ├── COMStreamWrapper.cs │ │ │ │ ├── CoreWebView2.cs │ │ │ │ ├── CoreWebView2AcceleratorKeyPressedEventArgs.cs │ │ │ │ ├── CoreWebView2AcceleratorKeyPressedEventHandler.cs │ │ │ │ ├── CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler.cs │ │ │ │ ├── CoreWebView2BasicAuthenticationRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2BasicAuthenticationRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2BasicAuthenticationResponse.cs │ │ │ │ ├── CoreWebView2BoundsMode.cs │ │ │ │ ├── CoreWebView2BrowserProcessExitKind.cs │ │ │ │ ├── CoreWebView2BrowserProcessExitedEventArgs.cs │ │ │ │ ├── CoreWebView2BrowserProcessExitedEventHandler.cs │ │ │ │ ├── CoreWebView2BrowsingDataKinds.cs │ │ │ │ ├── CoreWebView2BytesReceivedChangedEventHandler.cs │ │ │ │ ├── CoreWebView2CallDevToolsProtocolMethodCompletedHandler.cs │ │ │ │ ├── CoreWebView2CapturePreviewCompletedHandler.cs │ │ │ │ ├── CoreWebView2CapturePreviewImageFormat.cs │ │ │ │ ├── CoreWebView2Certificate.cs │ │ │ │ ├── CoreWebView2ClearBrowsingDataCompletedHandler.cs │ │ │ │ ├── CoreWebView2ClearCustomDataPartitionCompletedHandler.cs │ │ │ │ ├── CoreWebView2ClearServerCertificateErrorActionsCompletedHandler.cs │ │ │ │ ├── CoreWebView2ClientCertificate.cs │ │ │ │ ├── CoreWebView2ClientCertificateKind.cs │ │ │ │ ├── CoreWebView2ClientCertificateRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2ClientCertificateRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2Color.cs │ │ │ │ ├── CoreWebView2CompositionController.cs │ │ │ │ ├── CoreWebView2ContainsFullScreenElementChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ContentLoadingEventArgs.cs │ │ │ │ ├── CoreWebView2ContentLoadingEventHandler.cs │ │ │ │ ├── CoreWebView2ContextMenuItem.cs │ │ │ │ ├── CoreWebView2ContextMenuItemKind.cs │ │ │ │ ├── CoreWebView2ContextMenuRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2ContextMenuRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2ContextMenuTarget.cs │ │ │ │ ├── CoreWebView2ContextMenuTargetKind.cs │ │ │ │ ├── CoreWebView2Controller.cs │ │ │ │ ├── CoreWebView2ControllerOptions.cs │ │ │ │ ├── CoreWebView2Cookie.cs │ │ │ │ ├── CoreWebView2CookieManager.cs │ │ │ │ ├── CoreWebView2CookieSameSiteKind.cs │ │ │ │ ├── CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler.cs │ │ │ │ ├── CoreWebView2CreateCoreWebView2ControllerCompletedHandler.cs │ │ │ │ ├── CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler.cs │ │ │ │ ├── CoreWebView2CursorChangedEventHandler.cs │ │ │ │ ├── CoreWebView2CustomItemSelectedEventHandler.cs │ │ │ │ ├── CoreWebView2CustomSchemeRegistration.cs │ │ │ │ ├── CoreWebView2DOMContentLoadedEventArgs.cs │ │ │ │ ├── CoreWebView2DOMContentLoadedEventHandler.cs │ │ │ │ ├── CoreWebView2DefaultDownloadDialogCornerAlignment.cs │ │ │ │ ├── CoreWebView2Deferral.cs │ │ │ │ ├── CoreWebView2DevToolsProtocolEventReceivedEventArgs.cs │ │ │ │ ├── CoreWebView2DevToolsProtocolEventReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2DevToolsProtocolEventReceiver.cs │ │ │ │ ├── CoreWebView2DocumentTitleChangedEventHandler.cs │ │ │ │ ├── CoreWebView2DownloadInterruptReason.cs │ │ │ │ ├── CoreWebView2DownloadOperation.cs │ │ │ │ ├── CoreWebView2DownloadStartingEventArgs.cs │ │ │ │ ├── CoreWebView2DownloadStartingEventHandler.cs │ │ │ │ ├── CoreWebView2DownloadState.cs │ │ │ │ ├── CoreWebView2Environment.cs │ │ │ │ ├── CoreWebView2EnvironmentOptions.cs │ │ │ │ ├── CoreWebView2EstimatedEndTimeChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ExecuteScriptCompletedHandler.cs │ │ │ │ ├── CoreWebView2ExecuteScriptResult.cs │ │ │ │ ├── CoreWebView2ExecuteScriptWithResultCompletedHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalProfileDeletedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalRasterizationScaleChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalTextureStreamStartRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalTextureStreamStoppedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler.cs │ │ │ │ ├── CoreWebView2FaviconChangedEventHandler.cs │ │ │ │ ├── CoreWebView2FaviconImageFormat.cs │ │ │ │ ├── CoreWebView2File.cs │ │ │ │ ├── CoreWebView2FocusChangedEventHandler.cs │ │ │ │ ├── CoreWebView2Frame.cs │ │ │ │ ├── CoreWebView2FrameContentLoadingEventHandler.cs │ │ │ │ ├── CoreWebView2FrameCreatedEventArgs.cs │ │ │ │ ├── CoreWebView2FrameCreatedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameDOMContentLoadedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameDestroyedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameInfo.cs │ │ │ │ ├── CoreWebView2FrameNameChangedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameNavigationCompletedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameNavigationStartingEventHandler.cs │ │ │ │ ├── CoreWebView2FramePermissionRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2FrameWebMessageReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2GetCookiesCompletedHandler.cs │ │ │ │ ├── CoreWebView2GetFaviconCompletedHandler.cs │ │ │ │ ├── CoreWebView2GetNonDefaultPermissionSettingsCompletedHandler.cs │ │ │ │ ├── CoreWebView2HistoryChangedEventHandler.cs │ │ │ │ ├── CoreWebView2HostResourceAccessKind.cs │ │ │ │ ├── CoreWebView2HttpHeadersCollectionIterator.cs │ │ │ │ ├── CoreWebView2HttpRequestHeaders.cs │ │ │ │ ├── CoreWebView2HttpResponseHeaders.cs │ │ │ │ ├── CoreWebView2InitializationCompletedEventArgs.cs │ │ │ │ ├── CoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler.cs │ │ │ │ ├── CoreWebView2IsDocumentPlayingAudioChangedEventHandler.cs │ │ │ │ ├── CoreWebView2IsMutedChangedEventHandler.cs │ │ │ │ ├── CoreWebView2KeyEventKind.cs │ │ │ │ ├── CoreWebView2LaunchingExternalUriSchemeEventArgs.cs │ │ │ │ ├── CoreWebView2Matrix4x4.cs │ │ │ │ ├── CoreWebView2MemoryUsageTargetLevel.cs │ │ │ │ ├── CoreWebView2MouseEventKind.cs │ │ │ │ ├── CoreWebView2MouseEventVirtualKeys.cs │ │ │ │ ├── CoreWebView2MoveFocusReason.cs │ │ │ │ ├── CoreWebView2MoveFocusRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2MoveFocusRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2NavigationCompletedEventArgs.cs │ │ │ │ ├── CoreWebView2NavigationCompletedEventHandler.cs │ │ │ │ ├── CoreWebView2NavigationKind.cs │ │ │ │ ├── CoreWebView2NavigationStartingEventArgs.cs │ │ │ │ ├── CoreWebView2NavigationStartingEventHandler.cs │ │ │ │ ├── CoreWebView2NewBrowserVersionAvailableEventHandler.cs │ │ │ │ ├── CoreWebView2NewWindowRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2NewWindowRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2PdfToolbarItems.cs │ │ │ │ ├── CoreWebView2PermissionKind.cs │ │ │ │ ├── CoreWebView2PermissionRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2PermissionRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2PermissionSetting.cs │ │ │ │ ├── CoreWebView2PermissionState.cs │ │ │ │ ├── CoreWebView2PhysicalKeyStatus.cs │ │ │ │ ├── CoreWebView2PointerEventKind.cs │ │ │ │ ├── CoreWebView2PointerInfo.cs │ │ │ │ ├── CoreWebView2PreferredColorScheme.cs │ │ │ │ ├── CoreWebView2PrintCollation.cs │ │ │ │ ├── CoreWebView2PrintColorMode.cs │ │ │ │ ├── CoreWebView2PrintCompletedHandler.cs │ │ │ │ ├── CoreWebView2PrintDialogKind.cs │ │ │ │ ├── CoreWebView2PrintDuplex.cs │ │ │ │ ├── CoreWebView2PrintMediaSize.cs │ │ │ │ ├── CoreWebView2PrintOrientation.cs │ │ │ │ ├── CoreWebView2PrintSettings.cs │ │ │ │ ├── CoreWebView2PrintStatus.cs │ │ │ │ ├── CoreWebView2PrintToPdfCompletedHandler.cs │ │ │ │ ├── CoreWebView2PrintToPdfStreamCompletedHandler.cs │ │ │ │ ├── CoreWebView2PrivateContextMenuItem.cs │ │ │ │ ├── CoreWebView2PrivateEnvironmentTesting.cs │ │ │ │ ├── CoreWebView2PrivateHostObjectAsyncMethodContinuation.cs │ │ │ │ ├── CoreWebView2PrivateHostObjectHelper.cs │ │ │ │ ├── CoreWebView2PrivateKeyPressedEventArgs.cs │ │ │ │ ├── CoreWebView2PrivateKeyPressedEventHandler.cs │ │ │ │ ├── CoreWebView2PrivateRemoteObjectProxy.cs │ │ │ │ ├── CoreWebView2ProcessFailedEventArgs.cs │ │ │ │ ├── CoreWebView2ProcessFailedEventHandler.cs │ │ │ │ ├── CoreWebView2ProcessFailedKind.cs │ │ │ │ ├── CoreWebView2ProcessFailedReason.cs │ │ │ │ ├── CoreWebView2ProcessInfo.cs │ │ │ │ ├── CoreWebView2ProcessInfosChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ProcessKind.cs │ │ │ │ ├── CoreWebView2Profile.cs │ │ │ │ ├── CoreWebView2RasterizationScaleChangedEventHandler.cs │ │ │ │ ├── CoreWebView2ScriptDialogKind.cs │ │ │ │ ├── CoreWebView2ScriptDialogOpeningEventArgs.cs │ │ │ │ ├── CoreWebView2ScriptDialogOpeningEventHandler.cs │ │ │ │ ├── CoreWebView2ScriptException.cs │ │ │ │ ├── CoreWebView2ServerCertificateErrorAction.cs │ │ │ │ ├── CoreWebView2ServerCertificateErrorDetectedEventArgs.cs │ │ │ │ ├── CoreWebView2ServerCertificateErrorDetectedEventHandler.cs │ │ │ │ ├── CoreWebView2SetPermissionStateCompletedHandler.cs │ │ │ │ ├── CoreWebView2Settings.cs │ │ │ │ ├── CoreWebView2SharedBuffer.cs │ │ │ │ ├── CoreWebView2SharedBufferAccess.cs │ │ │ │ ├── CoreWebView2SourceChangedEventArgs.cs │ │ │ │ ├── CoreWebView2SourceChangedEventHandler.cs │ │ │ │ ├── CoreWebView2StateChangedEventHandler.cs │ │ │ │ ├── CoreWebView2StatusBarTextChangedEventHandler.cs │ │ │ │ ├── CoreWebView2Texture.cs │ │ │ │ ├── CoreWebView2TextureStream.cs │ │ │ │ ├── CoreWebView2TextureStreamErrorKind.cs │ │ │ │ ├── CoreWebView2TextureStreamErrorReceivedEventArgs.cs │ │ │ │ ├── CoreWebView2TextureStreamWebTextureReceivedEventArgs.cs │ │ │ │ ├── CoreWebView2TrackingPreventionLevel.cs │ │ │ │ ├── CoreWebView2TrySuspendCompletedHandler.cs │ │ │ │ ├── CoreWebView2UpdateRuntimeCompletedHandler.cs │ │ │ │ ├── CoreWebView2UpdateRuntimeResult.cs │ │ │ │ ├── CoreWebView2UpdateRuntimeStatus.cs │ │ │ │ ├── CoreWebView2WebErrorStatus.cs │ │ │ │ ├── CoreWebView2WebMessageReceivedEventArgs.cs │ │ │ │ ├── CoreWebView2WebMessageReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2WebResourceContext.cs │ │ │ │ ├── CoreWebView2WebResourceRequest.cs │ │ │ │ ├── CoreWebView2WebResourceRequestSourceKinds.cs │ │ │ │ ├── CoreWebView2WebResourceRequestedEventArgs.cs │ │ │ │ ├── CoreWebView2WebResourceRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2WebResourceResponse.cs │ │ │ │ ├── CoreWebView2WebResourceResponseReceivedEventArgs.cs │ │ │ │ ├── CoreWebView2WebResourceResponseReceivedEventHandler.cs │ │ │ │ ├── CoreWebView2WebResourceResponseView.cs │ │ │ │ ├── CoreWebView2WebResourceResponseViewGetContentCompletedHandler.cs │ │ │ │ ├── CoreWebView2WebTexture.cs │ │ │ │ ├── CoreWebView2WindowCloseRequestedEventHandler.cs │ │ │ │ ├── CoreWebView2WindowFeatures.cs │ │ │ │ ├── CoreWebView2ZoomFactorChangedEventHandler.cs │ │ │ │ ├── Dispatchcontainerscriptbehavior.cs │ │ │ │ ├── HostObjectHelper.cs │ │ │ │ ├── ManagedIStream.cs │ │ │ │ ├── Microsoft.Web.WebView2.Core.csproj │ │ │ │ ├── Properties/ │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ └── _globalusing.cs │ │ │ │ ├── Raw/ │ │ │ │ │ ├── BrowserInfo.cs │ │ │ │ │ ├── COREWEBVIEW2_BOUNDS_MODE.cs │ │ │ │ │ ├── COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_BROWSING_DATA_KINDS.cs │ │ │ │ │ ├── COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT.cs │ │ │ │ │ ├── COREWEBVIEW2_CLIENT_CERTIFICATE_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_COLOR.cs │ │ │ │ │ ├── COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_COOKIE_SAME_SITE_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT.cs │ │ │ │ │ ├── COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON.cs │ │ │ │ │ ├── COREWEBVIEW2_DOWNLOAD_STATE.cs │ │ │ │ │ ├── COREWEBVIEW2_FAVICON_IMAGE_FORMAT.cs │ │ │ │ │ ├── COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_KEY_EVENT_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_MATRIX_4X4.cs │ │ │ │ │ ├── COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL.cs │ │ │ │ │ ├── COREWEBVIEW2_MOUSE_EVENT_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS.cs │ │ │ │ │ ├── COREWEBVIEW2_MOVE_FOCUS_REASON.cs │ │ │ │ │ ├── COREWEBVIEW2_NAVIGATION_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_PDF_TOOLBAR_ITEMS.cs │ │ │ │ │ ├── COREWEBVIEW2_PERMISSION_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_PERMISSION_STATE.cs │ │ │ │ │ ├── COREWEBVIEW2_PHYSICAL_KEY_STATUS.cs │ │ │ │ │ ├── COREWEBVIEW2_POINTER_EVENT_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_PREFERRED_COLOR_SCHEME.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_COLLATION.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_COLOR_MODE.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_DIALOG_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_DUPLEX.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_MEDIA_SIZE.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_ORIENTATION.cs │ │ │ │ │ ├── COREWEBVIEW2_PRINT_STATUS.cs │ │ │ │ │ ├── COREWEBVIEW2_PROCESS_FAILED_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_PROCESS_FAILED_REASON.cs │ │ │ │ │ ├── COREWEBVIEW2_PROCESS_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_SCRIPT_DIALOG_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION.cs │ │ │ │ │ ├── COREWEBVIEW2_SHARED_BUFFER_ACCESS.cs │ │ │ │ │ ├── COREWEBVIEW2_TEXTURE_STREAM_ERROR_KIND.cs │ │ │ │ │ ├── COREWEBVIEW2_TRACKING_PREVENTION_LEVEL.cs │ │ │ │ │ ├── COREWEBVIEW2_UPDATE_RUNTIME_STATUS.cs │ │ │ │ │ ├── COREWEBVIEW2_WEB_ERROR_STATUS.cs │ │ │ │ │ ├── COREWEBVIEW2_WEB_RESOURCE_CONTEXT.cs │ │ │ │ │ ├── COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS.cs │ │ │ │ │ ├── EventRegistrationToken.cs │ │ │ │ │ ├── ICoreWebView2.cs │ │ │ │ │ ├── ICoreWebView2AcceleratorKeyPressedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2AcceleratorKeyPressedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2BasicAuthenticationRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2BasicAuthenticationRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2BasicAuthenticationResponse.cs │ │ │ │ │ ├── ICoreWebView2BrowserProcessExitedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2BrowserProcessExitedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2BytesReceivedChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2CallDevToolsProtocolMethodCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2CapturePreviewCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2Certificate.cs │ │ │ │ │ ├── ICoreWebView2ClearBrowsingDataCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2ClientCertificate.cs │ │ │ │ │ ├── ICoreWebView2ClientCertificateCollection.cs │ │ │ │ │ ├── ICoreWebView2ClientCertificateRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ClientCertificateRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2CompositionController.cs │ │ │ │ │ ├── ICoreWebView2CompositionController2.cs │ │ │ │ │ ├── ICoreWebView2CompositionController3.cs │ │ │ │ │ ├── ICoreWebView2ContainsFullScreenElementChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ContentLoadingEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ContentLoadingEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ContextMenuItem.cs │ │ │ │ │ ├── ICoreWebView2ContextMenuItemCollection.cs │ │ │ │ │ ├── ICoreWebView2ContextMenuRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ContextMenuRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ContextMenuTarget.cs │ │ │ │ │ ├── ICoreWebView2Controller.cs │ │ │ │ │ ├── ICoreWebView2Controller2.cs │ │ │ │ │ ├── ICoreWebView2Controller3.cs │ │ │ │ │ ├── ICoreWebView2Controller4.cs │ │ │ │ │ ├── ICoreWebView2ControllerOptions.cs │ │ │ │ │ ├── ICoreWebView2ControllerOptions2.cs │ │ │ │ │ ├── ICoreWebView2Cookie.cs │ │ │ │ │ ├── ICoreWebView2CookieList.cs │ │ │ │ │ ├── ICoreWebView2CookieManager.cs │ │ │ │ │ ├── ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2CreateCoreWebView2ControllerCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2CursorChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2CustomItemSelectedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2CustomSchemeRegistration.cs │ │ │ │ │ ├── ICoreWebView2DOMContentLoadedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2DOMContentLoadedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2Deferral.cs │ │ │ │ │ ├── ICoreWebView2DevToolsProtocolEventReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2DevToolsProtocolEventReceivedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2DevToolsProtocolEventReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2DevToolsProtocolEventReceiver.cs │ │ │ │ │ ├── ICoreWebView2DocumentTitleChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2DownloadOperation.cs │ │ │ │ │ ├── ICoreWebView2DownloadStartingEventArgs.cs │ │ │ │ │ ├── ICoreWebView2DownloadStartingEventHandler.cs │ │ │ │ │ ├── ICoreWebView2Environment.cs │ │ │ │ │ ├── ICoreWebView2Environment10.cs │ │ │ │ │ ├── ICoreWebView2Environment11.cs │ │ │ │ │ ├── ICoreWebView2Environment12.cs │ │ │ │ │ ├── ICoreWebView2Environment2.cs │ │ │ │ │ ├── ICoreWebView2Environment3.cs │ │ │ │ │ ├── ICoreWebView2Environment4.cs │ │ │ │ │ ├── ICoreWebView2Environment5.cs │ │ │ │ │ ├── ICoreWebView2Environment6.cs │ │ │ │ │ ├── ICoreWebView2Environment7.cs │ │ │ │ │ ├── ICoreWebView2Environment8.cs │ │ │ │ │ ├── ICoreWebView2Environment9.cs │ │ │ │ │ ├── ICoreWebView2EnvironmentOptions.cs │ │ │ │ │ ├── ICoreWebView2EnvironmentOptions2.cs │ │ │ │ │ ├── ICoreWebView2EnvironmentOptions3.cs │ │ │ │ │ ├── ICoreWebView2EnvironmentOptions4.cs │ │ │ │ │ ├── ICoreWebView2EnvironmentOptions5.cs │ │ │ │ │ ├── ICoreWebView2EstimatedEndTimeChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExecuteScriptCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2Experimental.cs │ │ │ │ │ ├── ICoreWebView2Experimental10.cs │ │ │ │ │ ├── ICoreWebView2Experimental11.cs │ │ │ │ │ ├── ICoreWebView2Experimental12.cs │ │ │ │ │ ├── ICoreWebView2Experimental13.cs │ │ │ │ │ ├── ICoreWebView2Experimental14.cs │ │ │ │ │ ├── ICoreWebView2Experimental15.cs │ │ │ │ │ ├── ICoreWebView2Experimental16.cs │ │ │ │ │ ├── ICoreWebView2Experimental17.cs │ │ │ │ │ ├── ICoreWebView2Experimental18.cs │ │ │ │ │ ├── ICoreWebView2Experimental19.cs │ │ │ │ │ ├── ICoreWebView2Experimental2.cs │ │ │ │ │ ├── ICoreWebView2Experimental20.cs │ │ │ │ │ ├── ICoreWebView2Experimental21.cs │ │ │ │ │ ├── ICoreWebView2Experimental3.cs │ │ │ │ │ ├── ICoreWebView2Experimental4.cs │ │ │ │ │ ├── ICoreWebView2Experimental5.cs │ │ │ │ │ ├── ICoreWebView2Experimental6.cs │ │ │ │ │ ├── ICoreWebView2Experimental7.cs │ │ │ │ │ ├── ICoreWebView2Experimental8.cs │ │ │ │ │ ├── ICoreWebView2Experimental9.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalClearCustomDataPartitionCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalCompositionController3.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalCompositionController4.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalController.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalController2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalControllerOptions.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment10.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment12.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment3.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment4.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment5.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment6.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment7.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment8.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalEnvironment9.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalExecuteScriptResult.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalExecuteScriptWithResultCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalFrame.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalFrame2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalFrame3.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalFrame4.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalLaunchingExternalUriSchemeEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalNavigationStartingEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalNavigationStartingEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalNewWindowRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalPrintSettings2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile10.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile11.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile3.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile4.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile5.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile6.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile7.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfile8.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalProfileDeletedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalRasterizationScaleChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalScriptException.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings2.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings3.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings4.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings5.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings6.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalSettings7.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTexture.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStream.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamErrorReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamStartRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamStoppedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamWebTextureReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalUpdateRuntimeCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalUpdateRuntimeResult.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalWebMessageReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalWebResourceRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ExperimentalWebTexture.cs │ │ │ │ │ ├── ICoreWebView2FaviconChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2File.cs │ │ │ │ │ ├── ICoreWebView2FocusChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2Frame.cs │ │ │ │ │ ├── ICoreWebView2Frame2.cs │ │ │ │ │ ├── ICoreWebView2Frame3.cs │ │ │ │ │ ├── ICoreWebView2Frame4.cs │ │ │ │ │ ├── ICoreWebView2FrameContentLoadingEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameCreatedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2FrameCreatedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameDOMContentLoadedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameDestroyedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameInfo.cs │ │ │ │ │ ├── ICoreWebView2FrameInfoCollection.cs │ │ │ │ │ ├── ICoreWebView2FrameInfoCollectionIterator.cs │ │ │ │ │ ├── ICoreWebView2FrameNameChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameNavigationCompletedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameNavigationStartingEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FramePermissionRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2FrameWebMessageReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2GetCookiesCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2GetFaviconCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2HistoryChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2HttpHeadersCollectionIterator.cs │ │ │ │ │ ├── ICoreWebView2HttpRequestHeaders.cs │ │ │ │ │ ├── ICoreWebView2HttpResponseHeaders.cs │ │ │ │ │ ├── ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2IsDocumentPlayingAudioChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2IsMutedChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2MoveFocusRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2MoveFocusRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2NavigationCompletedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2NavigationCompletedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2NavigationCompletedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2NavigationStartingEventArgs.cs │ │ │ │ │ ├── ICoreWebView2NavigationStartingEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2NavigationStartingEventHandler.cs │ │ │ │ │ ├── ICoreWebView2NewBrowserVersionAvailableEventHandler.cs │ │ │ │ │ ├── ICoreWebView2NewWindowRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2NewWindowRequestedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2NewWindowRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ObjectCollectionView.cs │ │ │ │ │ ├── ICoreWebView2PermissionRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2PermissionRequestedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2PermissionRequestedEventArgs3.cs │ │ │ │ │ ├── ICoreWebView2PermissionRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2PermissionSetting.cs │ │ │ │ │ ├── ICoreWebView2PermissionSettingCollectionView.cs │ │ │ │ │ ├── ICoreWebView2PointerInfo.cs │ │ │ │ │ ├── ICoreWebView2PrintCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2PrintSettings.cs │ │ │ │ │ ├── ICoreWebView2PrintSettings2.cs │ │ │ │ │ ├── ICoreWebView2PrintToPdfCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2PrintToPdfStreamCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2PrivateContextMenuItem.cs │ │ │ │ │ ├── ICoreWebView2PrivateEnvironmentTesting.cs │ │ │ │ │ ├── ICoreWebView2PrivateHostObjectAsyncMethodContinuation.cs │ │ │ │ │ ├── ICoreWebView2PrivateHostObjectHelper.cs │ │ │ │ │ ├── ICoreWebView2PrivateHostObjectHelper2.cs │ │ │ │ │ ├── ICoreWebView2PrivateKeyPressedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2PrivateKeyPressedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2PrivatePartial.cs │ │ │ │ │ ├── ICoreWebView2PrivatePartialController.cs │ │ │ │ │ ├── ICoreWebView2PrivateRemoteObjectProxy.cs │ │ │ │ │ ├── ICoreWebView2ProcessFailedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ProcessFailedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2ProcessFailedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ProcessInfo.cs │ │ │ │ │ ├── ICoreWebView2ProcessInfoCollection.cs │ │ │ │ │ ├── ICoreWebView2ProcessInfosChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2Profile.cs │ │ │ │ │ ├── ICoreWebView2Profile2.cs │ │ │ │ │ ├── ICoreWebView2Profile3.cs │ │ │ │ │ ├── ICoreWebView2Profile4.cs │ │ │ │ │ ├── ICoreWebView2Profile5.cs │ │ │ │ │ ├── ICoreWebView2Profile6.cs │ │ │ │ │ ├── ICoreWebView2RasterizationScaleChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ScriptDialogOpeningEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ScriptDialogOpeningEventHandler.cs │ │ │ │ │ ├── ICoreWebView2ServerCertificateErrorDetectedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2ServerCertificateErrorDetectedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2SetPermissionStateCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2Settings.cs │ │ │ │ │ ├── ICoreWebView2Settings2.cs │ │ │ │ │ ├── ICoreWebView2Settings3.cs │ │ │ │ │ ├── ICoreWebView2Settings4.cs │ │ │ │ │ ├── ICoreWebView2Settings5.cs │ │ │ │ │ ├── ICoreWebView2Settings6.cs │ │ │ │ │ ├── ICoreWebView2Settings7.cs │ │ │ │ │ ├── ICoreWebView2Settings8.cs │ │ │ │ │ ├── ICoreWebView2SharedBuffer.cs │ │ │ │ │ ├── ICoreWebView2SourceChangedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2SourceChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2StateChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2StatusBarTextChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2StringCollection.cs │ │ │ │ │ ├── ICoreWebView2TrySuspendCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2WebMessageReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2WebMessageReceivedEventArgs2.cs │ │ │ │ │ ├── ICoreWebView2WebMessageReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2WebResourceRequest.cs │ │ │ │ │ ├── ICoreWebView2WebResourceRequestedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2WebResourceRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2WebResourceResponse.cs │ │ │ │ │ ├── ICoreWebView2WebResourceResponseReceivedEventArgs.cs │ │ │ │ │ ├── ICoreWebView2WebResourceResponseReceivedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2WebResourceResponseView.cs │ │ │ │ │ ├── ICoreWebView2WebResourceResponseViewGetContentCompletedHandler.cs │ │ │ │ │ ├── ICoreWebView2WindowCloseRequestedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2WindowFeatures.cs │ │ │ │ │ ├── ICoreWebView2ZoomFactorChangedEventHandler.cs │ │ │ │ │ ├── ICoreWebView2_10.cs │ │ │ │ │ ├── ICoreWebView2_11.cs │ │ │ │ │ ├── ICoreWebView2_12.cs │ │ │ │ │ ├── ICoreWebView2_13.cs │ │ │ │ │ ├── ICoreWebView2_14.cs │ │ │ │ │ ├── ICoreWebView2_15.cs │ │ │ │ │ ├── ICoreWebView2_16.cs │ │ │ │ │ ├── ICoreWebView2_17.cs │ │ │ │ │ ├── ICoreWebView2_2.cs │ │ │ │ │ ├── ICoreWebView2_3.cs │ │ │ │ │ ├── ICoreWebView2_4.cs │ │ │ │ │ ├── ICoreWebView2_5.cs │ │ │ │ │ ├── ICoreWebView2_6.cs │ │ │ │ │ ├── ICoreWebView2_7.cs │ │ │ │ │ ├── ICoreWebView2_8.cs │ │ │ │ │ ├── ICoreWebView2_9.cs │ │ │ │ │ ├── tagPOINT.cs │ │ │ │ │ └── tagRECT.cs │ │ │ │ └── WebView2RuntimeNotFoundException.cs │ │ │ ├── Microsoft.Web.WebView2.WinForms/ │ │ │ │ ├── CoreWebView2CreationProperties.cs │ │ │ │ ├── Microsoft.Web.WebView2.WinForms.csproj │ │ │ │ ├── Properties/ │ │ │ │ │ └── _globalusing.cs │ │ │ │ └── WebView2.cs │ │ │ └── Microsoft.Web.WebView2.Wpf/ │ │ │ ├── CoreWebView2CreationProperties.cs │ │ │ ├── ImplicitInitGate.cs │ │ │ ├── Microsoft.Web.WebView2.Wpf.csproj │ │ │ ├── Properties/ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ └── _globalusing.cs │ │ │ └── WebView2.cs │ │ └── iOS/ │ │ └── Avalonia.WebView.iOS/ │ │ ├── AppBuilderExtensions.cs │ │ ├── Avalonia.WebView.iOS.csproj │ │ ├── BlazorWebViewHandlerProvider.cs │ │ ├── Common/ │ │ │ └── iOSAssetFileProvider.cs │ │ ├── Core/ │ │ │ ├── IosWebViewCore-assist.cs │ │ │ ├── IosWebViewCore-core.cs │ │ │ ├── IosWebViewCore-event.cs │ │ │ ├── IosWebViewCore-override.cs │ │ │ └── IosWebViewCore.cs │ │ ├── Delegates/ │ │ │ ├── WebViewNavigationDelegate.cs │ │ │ └── WebViewUIDelegate.cs │ │ ├── Handlers/ │ │ │ ├── SchemeHandler.cs │ │ │ └── WebViewScriptMessageHandler.cs │ │ ├── Helpers/ │ │ │ └── BlazorScriptHelper.cs │ │ ├── Properties/ │ │ │ └── _globalusing.cs │ │ ├── ViewHandlerProvider.cs │ │ └── WebViewHandler.cs │ ├── Sample/ │ │ ├── SampleBlazorWebView/ │ │ │ ├── SampleBlazorWebView/ │ │ │ │ ├── App.axaml │ │ │ │ ├── App.axaml.cs │ │ │ │ ├── SampleBlazorWebView.csproj │ │ │ │ ├── ViewModels/ │ │ │ │ │ ├── MainViewModel.cs │ │ │ │ │ └── ViewModelBase.cs │ │ │ │ └── Views/ │ │ │ │ ├── MainView.axaml │ │ │ │ ├── MainView.axaml.cs │ │ │ │ ├── MainWindow.axaml │ │ │ │ └── MainWindow.axaml.cs │ │ │ ├── SampleBlazorWebView.Android/ │ │ │ │ ├── MainActivity.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── Resources/ │ │ │ │ │ ├── drawable/ │ │ │ │ │ │ └── splash_screen.xml │ │ │ │ │ └── values/ │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── SampleBlazorWebView.Android.csproj │ │ │ ├── SampleBlazorWebView.Desktop/ │ │ │ │ ├── Program.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── launchSettings.json │ │ │ │ ├── SampleBlazorWebView.Desktop.csproj │ │ │ │ └── app.manifest │ │ │ ├── SampleBlazorWebView.Wpf/ │ │ │ │ ├── App.xaml │ │ │ │ ├── App.xaml.cs │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ ├── MainWindow.xaml │ │ │ │ ├── MainWindow.xaml.cs │ │ │ │ └── SampleBlazorWebView.Wpf.csproj │ │ │ ├── SampleBlazorWebView.iOS/ │ │ │ │ ├── AppDelegate.cs │ │ │ │ ├── Entitlements.plist │ │ │ │ ├── Info.plist │ │ │ │ ├── Main.cs │ │ │ │ ├── Properties/ │ │ │ │ │ └── launchSettings.json │ │ │ │ ├── Resources/ │ │ │ │ │ └── LaunchScreen.xib │ │ │ │ └── SampleBlazorWebView.iOS.csproj │ │ │ └── SampleBlazorWebViewShared/ │ │ │ ├── AppWeb.razor │ │ │ ├── Data/ │ │ │ │ ├── App/ │ │ │ │ │ ├── ECommerce/ │ │ │ │ │ │ ├── BasketService.cs │ │ │ │ │ │ ├── Dto/ │ │ │ │ │ │ │ ├── AddressDto.cs │ │ │ │ │ │ │ ├── AddressTypeDto.cs │ │ │ │ │ │ │ ├── BasketItemDto.cs │ │ │ │ │ │ │ ├── GoodsDto.cs │ │ │ │ │ │ │ ├── MultiRangeDto.cs │ │ │ │ │ │ │ └── RelatedGoodsDto.cs │ │ │ │ │ │ └── ShopService.cs │ │ │ │ │ ├── Invoice/ │ │ │ │ │ │ ├── Dto/ │ │ │ │ │ │ │ ├── BillDto.cs │ │ │ │ │ │ │ ├── InvoiceRecordDto.cs │ │ │ │ │ │ │ └── InvoiceStateDto.cs │ │ │ │ │ │ └── InvoiceService.cs │ │ │ │ │ ├── Todo/ │ │ │ │ │ │ ├── Dto/ │ │ │ │ │ │ │ ├── SelectData.cs │ │ │ │ │ │ │ └── TodoDto.cs │ │ │ │ │ │ └── TodoService.cs │ │ │ │ │ └── User/ │ │ │ │ │ ├── Dto/ │ │ │ │ │ │ ├── PermissionDto.cs │ │ │ │ │ │ └── UserDto.cs │ │ │ │ │ └── UserService.cs │ │ │ │ ├── Base/ │ │ │ │ │ ├── GlobalVariables.cs │ │ │ │ │ └── PagingData.cs │ │ │ │ ├── Dashboard/ │ │ │ │ │ ├── Analytics/ │ │ │ │ │ │ └── AnalyticsService.cs │ │ │ │ │ └── ECommerce/ │ │ │ │ │ ├── Dto/ │ │ │ │ │ │ └── CompanyDto.cs │ │ │ │ │ └── ECommerceService.cs │ │ │ │ ├── Others/ │ │ │ │ │ └── AccountSettings/ │ │ │ │ │ ├── AccountSettingService.cs │ │ │ │ │ └── Dto/ │ │ │ │ │ ├── AccountDto.cs │ │ │ │ │ ├── CountryDto.cs │ │ │ │ │ ├── InformationDto.cs │ │ │ │ │ └── SocialDto.cs │ │ │ │ └── Shared/ │ │ │ │ └── Favorite/ │ │ │ │ └── FavoriteService.cs │ │ │ ├── Global/ │ │ │ │ ├── Config/ │ │ │ │ │ ├── GlobalConfig.cs │ │ │ │ │ ├── NavigationStyles.cs │ │ │ │ │ └── PageModes.cs │ │ │ │ ├── Nav/ │ │ │ │ │ ├── Model/ │ │ │ │ │ │ └── NavModel.cs │ │ │ │ │ ├── NavHelper.cs │ │ │ │ │ └── NavServiceCollectionExtensions.cs │ │ │ │ └── ServiceCollectionExtensions.cs │ │ │ ├── Pages/ │ │ │ │ ├── App/ │ │ │ │ │ ├── ECommerce/ │ │ │ │ │ │ ├── Order/ │ │ │ │ │ │ │ ├── Address.razor │ │ │ │ │ │ │ ├── Cart.razor │ │ │ │ │ │ │ ├── Order.razor │ │ │ │ │ │ │ └── Payment.razor │ │ │ │ │ │ └── Shop/ │ │ │ │ │ │ ├── Details.razor │ │ │ │ │ │ ├── Shop.razor │ │ │ │ │ │ ├── Shop.razor.cs │ │ │ │ │ │ └── ViewModel/ │ │ │ │ │ │ └── ShopPage.cs │ │ │ │ │ ├── Invoice/ │ │ │ │ │ │ ├── Add.razor │ │ │ │ │ │ ├── Add.razor.cs │ │ │ │ │ │ ├── Components/ │ │ │ │ │ │ │ ├── AddPayment.razor │ │ │ │ │ │ │ ├── InvoiceList.razor │ │ │ │ │ │ │ ├── InvoiceList.razor.cs │ │ │ │ │ │ │ └── SendInvoice.razor │ │ │ │ │ │ ├── Edit.razor │ │ │ │ │ │ ├── List.razor │ │ │ │ │ │ ├── Preview.razor │ │ │ │ │ │ ├── Preview.razor.cs │ │ │ │ │ │ └── ViewModel/ │ │ │ │ │ │ └── InvoicePage.cs │ │ │ │ │ ├── Todo/ │ │ │ │ │ │ ├── Todo.razor │ │ │ │ │ │ ├── Todo.razor.cs │ │ │ │ │ │ ├── TodoDetail.razor │ │ │ │ │ │ ├── TodoDetail.razor.cs │ │ │ │ │ │ ├── TodoNav.razor │ │ │ │ │ │ └── TodoNavItem.razor │ │ │ │ │ └── User/ │ │ │ │ │ ├── Add.razor │ │ │ │ │ ├── Edit.razor │ │ │ │ │ ├── List.razor │ │ │ │ │ ├── List.razor.cs │ │ │ │ │ ├── View.razor │ │ │ │ │ └── ViewModel/ │ │ │ │ │ └── UserPage.cs │ │ │ │ ├── Authentication/ │ │ │ │ │ ├── Components/ │ │ │ │ │ │ ├── Login.razor │ │ │ │ │ │ └── Login.razor.cs │ │ │ │ │ ├── Login-v1.razor │ │ │ │ │ └── Login-v2.razor │ │ │ │ ├── Dashboard/ │ │ │ │ │ ├── Analytics.razor │ │ │ │ │ ├── Analytics.razor.cs │ │ │ │ │ ├── ECommerce.razor │ │ │ │ │ └── ECommerce.razor.cs │ │ │ │ ├── Home/ │ │ │ │ │ └── Index.razor │ │ │ │ └── Others/ │ │ │ │ ├── AccountSettings/ │ │ │ │ │ └── AccountSettings.razor │ │ │ │ ├── Error.razor │ │ │ │ ├── NotAuthorized.razor │ │ │ │ └── NotFound.razor │ │ │ ├── Properties/ │ │ │ │ └── _globalusing.cs │ │ │ ├── SampleBlazorWebViewShared.csproj │ │ │ ├── Shared/ │ │ │ │ ├── Breadcrumb.razor │ │ │ │ ├── EmptyLayout.razor │ │ │ │ ├── Favorite.razor │ │ │ │ ├── Favorite.razor.cs │ │ │ │ ├── Language.razor │ │ │ │ ├── Login.razor │ │ │ │ ├── MainLayout.razor │ │ │ │ ├── Navigation.razor │ │ │ │ ├── PageTabs.razor │ │ │ │ ├── ProComponentBase.cs │ │ │ │ ├── Search.razor │ │ │ │ ├── Settings.razor │ │ │ │ └── SurveyPrompt.razor │ │ │ ├── Working/ │ │ │ │ └── JsWorking.cs │ │ │ ├── _Imports.razor │ │ │ └── wwwroot/ │ │ │ ├── css/ │ │ │ │ ├── app.css │ │ │ │ ├── fontawesome/ │ │ │ │ │ └── v6.4.0/ │ │ │ │ │ └── LICENSE.txt │ │ │ │ ├── masa-blazor-pro.css │ │ │ │ ├── material/ │ │ │ │ │ └── icons.css │ │ │ │ └── site.css │ │ │ ├── i18n/ │ │ │ │ ├── en-US.json │ │ │ │ ├── supportedCultures.json │ │ │ │ └── zh-CN.json │ │ │ ├── index.html │ │ │ ├── nav/ │ │ │ │ └── nav.json │ │ │ └── sample-data/ │ │ │ └── weather.json │ │ └── SampleWebView/ │ │ ├── SampleWebView/ │ │ │ ├── App.axaml │ │ │ ├── App.axaml.cs │ │ │ ├── SampleWebView.csproj │ │ │ ├── ViewModels/ │ │ │ │ ├── MainViewModel.cs │ │ │ │ └── ViewModelBase.cs │ │ │ └── Views/ │ │ │ ├── MainView.axaml │ │ │ ├── MainView.axaml.cs │ │ │ ├── MainWindow.axaml │ │ │ └── MainWindow.axaml.cs │ │ ├── SampleWebView.Android/ │ │ │ ├── MainActivity.cs │ │ │ ├── Properties/ │ │ │ │ └── AndroidManifest.xml │ │ │ ├── Resources/ │ │ │ │ ├── drawable/ │ │ │ │ │ └── splash_screen.xml │ │ │ │ └── values/ │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── SampleWebView.Android.csproj │ │ ├── SampleWebView.Desktop/ │ │ │ ├── Program.cs │ │ │ ├── Properties/ │ │ │ │ └── launchSettings.json │ │ │ ├── SampleWebView.Desktop.csproj │ │ │ └── app.manifest │ │ └── SampleWebView.iOS/ │ │ ├── AppDelegate.cs │ │ ├── Entitlements.plist │ │ ├── Info.plist │ │ ├── Main.cs │ │ ├── Resources/ │ │ │ └── LaunchScreen.xib │ │ └── SampleWebView.iOS.csproj │ ├── Toolkit.Shared/ │ │ ├── OperatingSystemEx.cs │ │ ├── Toolkit.Shared.csproj │ │ └── Utf8Buffer.cs │ └── WebView.Core/ │ ├── Configurations/ │ │ └── WebViewCreationProperties.cs │ ├── Enums/ │ │ └── UrlRequestStrategy.cs │ ├── Events/ │ │ ├── WebViewCreatedEventArgs.cs │ │ ├── WebViewCreatingEventArgs.cs │ │ ├── WebViewMessageReceivedEventArgs.cs │ │ ├── WebViewNewWindowEventArgs.cs │ │ ├── WebViewUrlLoadedEventArg.cs │ │ └── WebViewUrlLoadingEventArg.cs │ ├── Extensions/ │ │ ├── TaskExtensions.cs │ │ └── UriExtensions.cs │ ├── Helpers/ │ │ ├── OpenUriHelper.cs │ │ └── QueryStringHelper.cs │ ├── IPlatformBlazorWebViewProvider.cs │ ├── IPlatformWebView.cs │ ├── IPlatformWebView@T.cs │ ├── IVirtualBlazorWebViewProvider.cs │ ├── IVirtualWebView.cs │ ├── IVirtualWebView@T.cs │ ├── IVirtualWebViewControlCallBack.cs │ ├── IVirtualWebViewProvider.cs │ ├── IWebViewControl.cs │ ├── IWebViewEventHandler.cs │ ├── Ioc/ │ │ └── WebViewLocator.cs │ ├── Models/ │ │ ├── WebResourceRequest.cs │ │ ├── WebResourceResponse.cs │ │ └── WebScheme.cs │ ├── Properties/ │ │ └── AssemblyInfo.cs │ └── WebView.Core.csproj └── global.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # Remove the line below if you want to inherit .editorconfig settings from higher directories root = true # C# files [*.cs] #### Core EditorConfig Options #### # Indentation and spacing indent_size = 4 indent_style = space tab_width = 4 # New line preferences end_of_line = crlf insert_final_newline = false #### .NET Coding Conventions #### # Organize usings dotnet_separate_import_directive_groups = false dotnet_sort_system_directives_first = false file_header_template = unset # this. and Me. preferences dotnet_style_qualification_for_event = false dotnet_style_qualification_for_field = false dotnet_style_qualification_for_method = false dotnet_style_qualification_for_property = false # Language keywords vs BCL types preferences dotnet_style_predefined_type_for_locals_parameters_members = true dotnet_style_predefined_type_for_member_access = true # Parentheses preferences dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity dotnet_style_parentheses_in_other_binary_operators = always_for_clarity dotnet_style_parentheses_in_other_operators = never_if_unnecessary dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity # Modifier preferences dotnet_style_require_accessibility_modifiers = for_non_interface_members # Expression-level preferences dotnet_style_coalesce_expression = true dotnet_style_collection_initializer = true dotnet_style_explicit_tuple_names = true dotnet_style_namespace_match_folder = true dotnet_style_null_propagation = true dotnet_style_object_initializer = true dotnet_style_operator_placement_when_wrapping = beginning_of_line dotnet_style_prefer_auto_properties = true dotnet_style_prefer_compound_assignment = true dotnet_style_prefer_conditional_expression_over_assignment = true dotnet_style_prefer_conditional_expression_over_return = true dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed dotnet_style_prefer_inferred_anonymous_type_member_names = true dotnet_style_prefer_inferred_tuple_names = true dotnet_style_prefer_is_null_check_over_reference_equality_method = true dotnet_style_prefer_simplified_boolean_expressions = true dotnet_style_prefer_simplified_interpolation = true # Field preferences dotnet_style_readonly_field = true # Parameter preferences dotnet_code_quality_unused_parameters = all # Suppression preferences dotnet_remove_unnecessary_suppression_exclusions = none # New line preferences dotnet_style_allow_multiple_blank_lines_experimental = true dotnet_style_allow_statement_immediately_after_block_experimental = true #### C# Coding Conventions #### # var preferences csharp_style_var_elsewhere = false:silent csharp_style_var_for_built_in_types = false:silent csharp_style_var_when_type_is_apparent = false:silent # Expression-bodied members csharp_style_expression_bodied_accessors = true:silent csharp_style_expression_bodied_constructors = false:silent csharp_style_expression_bodied_indexers = true:silent csharp_style_expression_bodied_lambdas = true:silent csharp_style_expression_bodied_local_functions = false:silent csharp_style_expression_bodied_methods = false:silent csharp_style_expression_bodied_operators = false:silent csharp_style_expression_bodied_properties = true:silent # Pattern matching preferences csharp_style_pattern_matching_over_as_with_null_check = true:suggestion csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion csharp_style_prefer_extended_property_pattern = true:suggestion csharp_style_prefer_not_pattern = true:suggestion csharp_style_prefer_pattern_matching = true:silent csharp_style_prefer_switch_expression = true:suggestion # Null-checking preferences csharp_style_conditional_delegate_call = true:suggestion csharp_style_prefer_parameter_null_checking = true:suggestion # Modifier preferences csharp_prefer_static_local_function = true:suggestion csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async # Code-block preferences csharp_prefer_braces = true:silent csharp_prefer_simple_using_statement = true:suggestion csharp_style_namespace_declarations = file_scoped:silent csharp_style_prefer_method_group_conversion = true:silent csharp_style_prefer_top_level_statements = true:silent # Expression-level preferences csharp_prefer_simple_default_expression = true:suggestion csharp_style_deconstructed_variable_declaration = true:suggestion csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion csharp_style_inlined_variable_declaration = true:suggestion csharp_style_prefer_index_operator = true:suggestion csharp_style_prefer_local_over_anonymous_function = true:suggestion csharp_style_prefer_null_check_over_type_check = true:suggestion csharp_style_prefer_range_operator = true:suggestion csharp_style_prefer_tuple_swap = true:suggestion csharp_style_throw_expression = true:suggestion csharp_style_unused_value_assignment_preference = discard_variable:suggestion csharp_style_unused_value_expression_statement_preference = discard_variable:silent # 'using' directive preferences csharp_using_directive_placement = outside_namespace:silent # New line preferences csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent #### C# Formatting Rules #### # New line preferences csharp_new_line_before_catch = true csharp_new_line_before_else = true csharp_new_line_before_finally = true csharp_new_line_before_members_in_anonymous_types = true csharp_new_line_before_members_in_object_initializers = true csharp_new_line_before_open_brace = all csharp_new_line_between_query_expression_clauses = true # Indentation preferences csharp_indent_block_contents = true csharp_indent_braces = false csharp_indent_case_contents = true csharp_indent_case_contents_when_block = true csharp_indent_labels = one_less_than_current csharp_indent_switch_labels = true # Space preferences csharp_space_after_cast = false csharp_space_after_colon_in_inheritance_clause = true csharp_space_after_comma = true csharp_space_after_dot = false csharp_space_after_keywords_in_control_flow_statements = true csharp_space_after_semicolon_in_for_statement = true csharp_space_around_binary_operators = before_and_after csharp_space_around_declaration_statements = false csharp_space_before_colon_in_inheritance_clause = true csharp_space_before_comma = false csharp_space_before_dot = false csharp_space_before_open_square_brackets = false csharp_space_before_semicolon_in_for_statement = false csharp_space_between_empty_square_brackets = false csharp_space_between_method_call_empty_parameter_list_parentheses = false csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_call_parameter_list_parentheses = false csharp_space_between_method_declaration_empty_parameter_list_parentheses = false csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_parentheses = false csharp_space_between_square_brackets = false # Wrapping preferences csharp_preserve_single_line_blocks = true csharp_preserve_single_line_statements = true #### Naming styles #### # Naming rules dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion dotnet_naming_rule.types_should_be_pascal_case.symbols = types dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case # Symbol specifications dotnet_naming_symbols.interface.applicable_kinds = interface dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.interface.required_modifiers = dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.types.required_modifiers = dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected dotnet_naming_symbols.non_field_members.required_modifiers = # Naming styles dotnet_naming_style.pascal_case.required_prefix = dotnet_naming_style.pascal_case.required_suffix = dotnet_naming_style.pascal_case.word_separator = dotnet_naming_style.pascal_case.capitalization = pascal_case dotnet_naming_style.begins_with_i.required_prefix = I dotnet_naming_style.begins_with_i.required_suffix = dotnet_naming_style.begins_with_i.word_separator = dotnet_naming_style.begins_with_i.capitalization = pascal_case [*.{cs,vb}] dotnet_style_operator_placement_when_wrapping = beginning_of_line tab_width = 4 indent_size = 4 end_of_line = crlf dotnet_style_coalesce_expression = true:suggestion dotnet_style_null_propagation = true:suggestion dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion dotnet_style_prefer_auto_properties = true:silent dotnet_style_object_initializer = true:suggestion dotnet_style_collection_initializer = true:suggestion dotnet_style_prefer_simplified_boolean_expressions = true:suggestion dotnet_style_prefer_conditional_expression_over_assignment = true:silent dotnet_style_prefer_conditional_expression_over_return = true:silent dotnet_style_explicit_tuple_names = true:suggestion dotnet_style_prefer_inferred_tuple_names = true:suggestion dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion dotnet_style_prefer_compound_assignment = true:suggestion dotnet_style_prefer_simplified_interpolation = true:suggestion dotnet_style_namespace_match_folder = true:suggestion dotnet_style_readonly_field = true:suggestion dotnet_style_predefined_type_for_locals_parameters_members = true:silent dotnet_style_predefined_type_for_member_access = true:silent dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent dotnet_style_allow_multiple_blank_lines_experimental = true:silent dotnet_style_allow_statement_immediately_after_block_experimental = true:silent dotnet_code_quality_unused_parameters = all:suggestion dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent dotnet_style_qualification_for_field = false:silent dotnet_style_qualification_for_property = false:silent dotnet_style_qualification_for_method = false:silent dotnet_style_qualification_for_event = false:silent ================================================ FILE: .gitignore ================================================ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore # User-specific files *.rsuser *.suo *.user *.userosscache *.sln.docstates # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Mono auto generated files mono_crash.* # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ x64/ x86/ [Ww][Ii][Nn]32/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ [Ll]ogs/ # Visual Studio 2015/2017 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ # Visual Studio 2017 auto generated files Generated\ Files/ # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* # NUnit *.VisualState.xml TestResult.xml nunit-*.xml # Build Results of an ATL Project [Dd]ebugPS/ [Rr]eleasePS/ dlldata.c # Benchmark Results BenchmarkDotNet.Artifacts/ # .NET Core project.lock.json project.fragment.lock.json artifacts/ # ASP.NET Scaffolding ScaffoldingReadMe.txt # StyleCop StyleCopReport.xml # Files built by Visual Studio *_i.c *_p.c *_h.h *.ilk *.meta *.obj *.iobj *.pch *.pdb *.ipdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj *_wpftmp.csproj *.log *.tlog *.vspscc *.vssscc .builds *.pidb *.svclog *.scc # Chutzpah Test files _Chutzpah* # Visual C++ cache files ipch/ *.aps *.ncb *.opendb *.opensdf *.sdf *.cachefile *.VC.db *.VC.VC.opendb # Visual Studio profiler *.psess *.vsp *.vspx *.sap # Visual Studio Trace Files *.e2e # TFS 2012 Local Workspace $tf/ # Guidance Automation Toolkit *.gpState # ReSharper is a .NET coding add-in _ReSharper*/ *.[Rr]e[Ss]harper *.DotSettings.user # TeamCity is a build add-in _TeamCity* # DotCover is a Code Coverage Tool *.dotCover # AxoCover is a Code Coverage Tool .axoCover/* !.axoCover/settings.json # Coverlet is a free, cross platform Code Coverage Tool coverage*.json coverage*.xml coverage*.info # Visual Studio code coverage results *.coverage *.coveragexml # NCrunch _NCrunch_* .*crunch*.local.xml nCrunchTemp_* # MightyMoose *.mm.* AutoTest.Net/ # Web workbench (sass) .sass-cache/ # Installshield output folder [Ee]xpress/ # DocProject is a documentation generator add-in DocProject/buildhelp/ DocProject/Help/*.HxT DocProject/Help/*.HxC DocProject/Help/*.hhc DocProject/Help/*.hhk DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html # Click-Once directory publish/ # Publish Web Output *.[Pp]ublish.xml *.azurePubxml # Note: Comment the next line if you want to checkin your web deploy settings, # but database connection strings (with potential passwords) will be unencrypted *.pubxml *.publishproj # Microsoft Azure Web App publish settings. Comment the next line if you want to # checkin your Azure Web App publish settings, but sensitive information contained # in these scripts will be unencrypted PublishScripts/ # NuGet Packages *.nupkg # NuGet Symbol Packages *.snupkg # The packages folder can be ignored because of Package Restore **/[Pp]ackages/* # except build/, which is used as an MSBuild target. !**/[Pp]ackages/build/ # Uncomment if necessary however generally it will be regenerated when needed #!**/[Pp]ackages/repositories.config # NuGet v3's project.json files produces more ignorable files *.nuget.props *.nuget.targets # Microsoft Azure Build Output csx/ *.build.csdef # Microsoft Azure Emulator ecf/ rcf/ # Windows Store app package directories and files AppPackages/ BundleArtifacts/ Package.StoreAssociation.xml _pkginfo.txt *.appx *.appxbundle *.appxupload # Visual Studio cache files # files ending in .cache can be ignored *.[Cc]ache # but keep track of directories ending in .cache !?*.[Cc]ache/ # Others ClientBin/ ~$* *~ *.dbmdl *.dbproj.schemaview *.jfm *.pfx *.publishsettings orleans.codegen.cs # Including strong name files can present a security risk # (https://github.com/github/gitignore/pull/2483#issue-259490424) #*.snk # Since there are multiple workflows, uncomment next line to ignore bower_components # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) #bower_components/ # RIA/Silverlight projects Generated_Code/ # Backup & report files from converting an old project file # to a newer Visual Studio version. Backup files are not needed, # because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML UpgradeLog*.htm ServiceFabricBackup/ *.rptproj.bak # SQL Server files *.mdf *.ldf *.ndf # Business Intelligence projects *.rdl.data *.bim.layout *.bim_*.settings *.rptproj.rsuser *- [Bb]ackup.rdl *- [Bb]ackup ([0-9]).rdl *- [Bb]ackup ([0-9][0-9]).rdl # Microsoft Fakes FakesAssemblies/ # GhostDoc plugin setting file *.GhostDoc.xml # Node.js Tools for Visual Studio .ntvs_analysis.dat node_modules/ # Visual Studio 6 build log *.plg # Visual Studio 6 workspace options file *.opt # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) *.vbw # Visual Studio 6 auto-generated project file (contains which files were open etc.) *.vbp # Visual Studio 6 workspace and project file (working project files containing files to include in project) *.dsw *.dsp # Visual Studio 6 technical files *.ncb *.aps # Visual Studio LightSwitch build output **/*.HTMLClient/GeneratedArtifacts **/*.DesktopClient/GeneratedArtifacts **/*.DesktopClient/ModelManifest.xml **/*.Server/GeneratedArtifacts **/*.Server/ModelManifest.xml _Pvt_Extensions # Paket dependency manager .paket/paket.exe paket-files/ # FAKE - F# Make .fake/ # CodeRush personal settings .cr/personal # Python Tools for Visual Studio (PTVS) __pycache__/ *.pyc # Cake - Uncomment if you are using it # tools/** # !tools/packages.config # Tabs Studio *.tss # Telerik's JustMock configuration file *.jmconfig # BizTalk build output *.btp.cs *.btm.cs *.odx.cs *.xsd.cs # OpenCover UI analysis results OpenCover/ # Azure Stream Analytics local run output ASALocalRun/ # MSBuild Binary and Structured Log *.binlog # NVidia Nsight GPU debugger configuration file *.nvuser # MFractors (Xamarin productivity tool) working folder .mfractor/ # Local History for Visual Studio .localhistory/ # Visual Studio History (VSHistory) files .vshistory/ # BeatPulse healthcheck temp database healthchecksdb # Backup folder for Package Reference Convert tool in Visual Studio 2017 MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ # Fody - auto-generated XML schema FodyWeavers.xsd # VS Code files for those working on multiple tools .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace # Local History for Visual Studio Code .history/ # Windows Installer files from build outputs *.cab *.msi *.msix *.msm *.msp # JetBrains Rider *.sln.iml /Binary/net7.0 /Binary /.idea/.idea.Avalonia.WebView/.idea/indexLayout.xml /.idea /_blazorwebview /_webview/netstandard2.0 /_nuget /Source/*.DS_Store /*.DS_Store /_publish ================================================ FILE: .vscode/settings.json ================================================ { "dotnet.defaultSolution": "Avalonia.WebView.sln", "window.zoomLevel": 0, "editor.mouseWheelZoom": true, "editor.fontSize": 14 } ================================================ FILE: Avalonia.WebView.sln ================================================  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.6.33626.354 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Build", ".Build", "{D24E6A0E-FB2A-44DA-B8EF-34F9D03B4065}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitignore = .gitignore Build\Directory.build.common.props = Build\Directory.build.common.props Build\Directory.build.common.targets = Build\Directory.build.common.targets Build\Directory.build.operation.common.props = Build\Directory.build.operation.common.props Directory.Build.props = Directory.Build.props Directory.build.targets = Directory.build.targets Directory.buildcpp.props = Directory.buildcpp.props Directory.Packages.props = Directory.Packages.props Build\Directory.Packages.targets = Build\Directory.Packages.targets Build\Directory.webview.android.common.targets = Build\Directory.webview.android.common.targets Build\Directory.webview.desktop.common.targets = Build\Directory.webview.desktop.common.targets Build\Directory.webview.ios.common.targets = Build\Directory.webview.ios.common.targets global.json = global.json Build\Directory.webview.blazor.common.targets = Build\Directory.webview.blazor.common.targets LICENSE = LICENSE README.md = README.md README.zh-CN.md = README.zh-CN.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleWebView", "Source\Sample\SampleWebView\SampleWebView\SampleWebView.csproj", "{4661D90C-C373-4E13-B3C1-E6604281A20C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleWebView.Android", "Source\Sample\SampleWebView\SampleWebView.Android\SampleWebView.Android.csproj", "{30D99F05-3765-4E22-9616-908C49C67413}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleWebView.Desktop", "Source\Sample\SampleWebView\SampleWebView.Desktop\SampleWebView.Desktop.csproj", "{9CA20CDF-9900-4CC7-8C15-1226DAD84768}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleWebView.iOS", "Source\Sample\SampleWebView\SampleWebView.iOS\SampleWebView.iOS.csproj", "{06C080F5-3184-45D8-8CFB-FE796A0E3262}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{0341CDF7-F1AA-498A-825F-84FBA22D4CB4}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SampleWebView", "SampleWebView", "{83490912-3D02-4366-B645-BFAD4ED0AFE5}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SampleBlazorWebView", "SampleBlazorWebView", "{30565A8D-5256-4118-8BD2-D3ADFAAE5D4A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebView", "Source\Sample\SampleBlazorWebView\SampleBlazorWebView\SampleBlazorWebView.csproj", "{9F2713ED-C926-41A2-AB24-F543DC6E97B3}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebView.Android", "Source\Sample\SampleBlazorWebView\SampleBlazorWebView.Android\SampleBlazorWebView.Android.csproj", "{235E8B67-14F5-4F50-9F7D-8857B5B68380}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebView.Desktop", "Source\Sample\SampleBlazorWebView\SampleBlazorWebView.Desktop\SampleBlazorWebView.Desktop.csproj", "{5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebView.iOS", "Source\Sample\SampleBlazorWebView\SampleBlazorWebView.iOS\SampleBlazorWebView.iOS.csproj", "{67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Platform", "Platform", "{070755E7-E85D-4C99-A7A7-CFE543054D7C}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Android", "Android", "{E918DF40-7D4A-401A-839E-1295F7F0E6E5}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "iOS", "iOS", "{B78D4054-C34B-4AE3-BF55-8F15D3EE06D8}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Linux", "Linux", "{46299C4E-04B1-4205-AC04-EF86ED23FFF2}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Mac", "Mac", "{69A9B177-4720-4495-A6BA-028141036014}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windows", "Windows", "{B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.Windows", "Source\Platform\Windows\Avalonia.WebView.Windows\Avalonia.WebView.Windows.csproj", "{330C8AF8-47C7-4C4E-ADF7-F186D892AA47}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Web.WebView2.Core", "Source\Platform\Windows\Microsoft.Web.WebView2.Core\Microsoft.Web.WebView2.Core.csproj", "{68A24AE6-B95D-412A-98E4-B84BC42A52C3}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Web.WebView2.WinForms", "Source\Platform\Windows\Microsoft.Web.WebView2.WinForms\Microsoft.Web.WebView2.WinForms.csproj", "{694D0ADA-2ED3-4A89-84C7-43E685502F99}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Web.WebView2.Wpf", "Source\Platform\Windows\Microsoft.Web.WebView2.Wpf\Microsoft.Web.WebView2.Wpf.csproj", "{80630AA2-4003-4D20-A768-A032DD4463E8}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView", "Source\Avalonia.WebView\Avalonia.WebView.csproj", "{F7830EE5-7C91-4AD4-8A10-32A8B01A7637}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebView.Core", "Source\WebView.Core\WebView.Core.csproj", "{3903CFAE-3430-4DDF-AB82-BC2DC5148909}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AvaloniaWebView.Shared", "Source\AvaloniaWebView.Shared\AvaloniaWebView.Shared.csproj", "{2A2FA36D-BCB3-4C99-86FE-A534FB211EF5}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.BlazorWebView", "Source\Avalonia.BlazorWebView\Avalonia.BlazorWebView.csproj", "{6067C60B-5E91-43B9-A077-1A8E5318ED9A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.WebView.Wpf", "Source\Platform\Windows\Microsoft.AspNetCore.Components.WebView.Wpf\Microsoft.AspNetCore.Components.WebView.Wpf.csproj", "{8D642CAF-2505-4228-925B-7DA737FB4E4A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebViewShared", "Source\Sample\SampleBlazorWebView\SampleBlazorWebViewShared\SampleBlazorWebViewShared.csproj", "{18CB7DBF-4E4F-4210-9049-0689CE1C0D7A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBlazorWebView.Wpf", "Source\Sample\SampleBlazorWebView\SampleBlazorWebView.Wpf\SampleBlazorWebView.Wpf.csproj", "{6C5F0436-9396-4941-B7D4-DE6A3F8B2584}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.Mac", "Source\Platform\Mac\Avalonia.WebView.Mac\Avalonia.WebView.Mac.csproj", "{C6673D56-527D-44A0-9534-E9446888C44B}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.Linux", "Source\Platform\Linux\Avalonia.WebView.Linux\Avalonia.WebView.Linux.csproj", "{60138273-B56D-4606-9D7B-49BA2A1E5F63}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.iOS", "Source\Platform\iOS\Avalonia.WebView.iOS\Avalonia.WebView.iOS.csproj", "{D6AB6685-A26D-4173-8330-023C4C694F96}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.Android", "Source\Platform\Android\Avalonia.WebView.Android\Avalonia.WebView.Android.csproj", "{9EE80C26-E340-4326-BD52-CE3A1E0A88F8}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Desktop", ".Desktop", "{F8A28023-40F2-493A-9BE4-940A03E2F5FC}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.Desktop", "Source\Platform\Desktop\Avalonia.WebView.Desktop\Avalonia.WebView.Desktop.csproj", "{BAD2F732-E4AB-40C4-9792-B866E668ACB8}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linux.WebView.Core", "Source\Platform\Linux\Linux.WebView.Core\Linux.WebView.Core.csproj", "{A8FFBC52-132F-4161-9AFF-33E03704B932}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.MacCatalyst", "Source\Platform\Mac\Avalonia.WebView.MacCatalyst\Avalonia.WebView.MacCatalyst.csproj", "{C196C208-3E95-4E3C-B0B3-47B3ABA74D69}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xamarin.Mac", "Source\Platform\Mac\Xamarin.Mac\Xamarin.Mac.csproj", "{E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.WebView.DesktopX", "Source\Platform\Desktop\Avalonia.WebView.DesktopX\Avalonia.WebView.DesktopX.csproj", "{F637CDDF-3319-4706-B9CF-6DBE9593FDF5}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DryIoc.Shared", "Source\DryIoc.Shared\DryIoc.Shared.csproj", "{6E0DD714-D6CF-40B6-904B-006AD589B401}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Toolkit.Shared", "Source\Toolkit.Shared\Toolkit.Shared.csproj", "{60E47784-1D37-4D4B-A44A-A08D2F28F6B1}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Package", ".Package", "{0C1A9227-2CD9-475D-B0D0-F04FC5B4971B}" ProjectSection(SolutionItems) = preProject Packages\webview@avalonia-logo.png = Packages\webview@avalonia-logo.png EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebView.Avalonia", "Packages\WebView.Avalonia\WebView.Avalonia.csproj", "{01486A20-FAEF-4458-9653-842EF9E6296A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWebView.Avalonia", "Packages\BlazorWebView.Avalonia\BlazorWebView.Avalonia.csproj", "{DBF2E1C0-7CDE-4469-A011-7D59E2A74193}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {4661D90C-C373-4E13-B3C1-E6604281A20C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4661D90C-C373-4E13-B3C1-E6604281A20C}.Debug|Any CPU.Build.0 = Debug|Any CPU {4661D90C-C373-4E13-B3C1-E6604281A20C}.Release|Any CPU.ActiveCfg = Release|Any CPU {4661D90C-C373-4E13-B3C1-E6604281A20C}.Release|Any CPU.Build.0 = Release|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Debug|Any CPU.Build.0 = Debug|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Release|Any CPU.ActiveCfg = Release|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Release|Any CPU.Build.0 = Release|Any CPU {30D99F05-3765-4E22-9616-908C49C67413}.Release|Any CPU.Deploy.0 = Release|Any CPU {9CA20CDF-9900-4CC7-8C15-1226DAD84768}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9CA20CDF-9900-4CC7-8C15-1226DAD84768}.Debug|Any CPU.Build.0 = Debug|Any CPU {9CA20CDF-9900-4CC7-8C15-1226DAD84768}.Release|Any CPU.ActiveCfg = Release|Any CPU {9CA20CDF-9900-4CC7-8C15-1226DAD84768}.Release|Any CPU.Build.0 = Release|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Debug|Any CPU.Build.0 = Debug|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Release|Any CPU.ActiveCfg = Release|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Release|Any CPU.Build.0 = Release|Any CPU {06C080F5-3184-45D8-8CFB-FE796A0E3262}.Release|Any CPU.Deploy.0 = Release|Any CPU {9F2713ED-C926-41A2-AB24-F543DC6E97B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9F2713ED-C926-41A2-AB24-F543DC6E97B3}.Debug|Any CPU.Build.0 = Debug|Any CPU {9F2713ED-C926-41A2-AB24-F543DC6E97B3}.Release|Any CPU.ActiveCfg = Release|Any CPU {9F2713ED-C926-41A2-AB24-F543DC6E97B3}.Release|Any CPU.Build.0 = Release|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Debug|Any CPU.Build.0 = Debug|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Release|Any CPU.ActiveCfg = Release|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Release|Any CPU.Build.0 = Release|Any CPU {235E8B67-14F5-4F50-9F7D-8857B5B68380}.Release|Any CPU.Deploy.0 = Release|Any CPU {5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B}.Debug|Any CPU.Build.0 = Debug|Any CPU {5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B}.Release|Any CPU.ActiveCfg = Release|Any CPU {5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B}.Release|Any CPU.Build.0 = Release|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Debug|Any CPU.Build.0 = Debug|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Release|Any CPU.ActiveCfg = Release|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Release|Any CPU.Build.0 = Release|Any CPU {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3}.Release|Any CPU.Deploy.0 = Release|Any CPU {330C8AF8-47C7-4C4E-ADF7-F186D892AA47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {330C8AF8-47C7-4C4E-ADF7-F186D892AA47}.Debug|Any CPU.Build.0 = Debug|Any CPU {330C8AF8-47C7-4C4E-ADF7-F186D892AA47}.Release|Any CPU.ActiveCfg = Release|Any CPU {330C8AF8-47C7-4C4E-ADF7-F186D892AA47}.Release|Any CPU.Build.0 = Release|Any CPU {68A24AE6-B95D-412A-98E4-B84BC42A52C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {68A24AE6-B95D-412A-98E4-B84BC42A52C3}.Debug|Any CPU.Build.0 = Debug|Any CPU {68A24AE6-B95D-412A-98E4-B84BC42A52C3}.Release|Any CPU.ActiveCfg = Release|Any CPU {68A24AE6-B95D-412A-98E4-B84BC42A52C3}.Release|Any CPU.Build.0 = Release|Any CPU {694D0ADA-2ED3-4A89-84C7-43E685502F99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {694D0ADA-2ED3-4A89-84C7-43E685502F99}.Debug|Any CPU.Build.0 = Debug|Any CPU {694D0ADA-2ED3-4A89-84C7-43E685502F99}.Release|Any CPU.ActiveCfg = Release|Any CPU {694D0ADA-2ED3-4A89-84C7-43E685502F99}.Release|Any CPU.Build.0 = Release|Any CPU {80630AA2-4003-4D20-A768-A032DD4463E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {80630AA2-4003-4D20-A768-A032DD4463E8}.Debug|Any CPU.Build.0 = Debug|Any CPU {80630AA2-4003-4D20-A768-A032DD4463E8}.Release|Any CPU.ActiveCfg = Release|Any CPU {80630AA2-4003-4D20-A768-A032DD4463E8}.Release|Any CPU.Build.0 = Release|Any CPU {F7830EE5-7C91-4AD4-8A10-32A8B01A7637}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F7830EE5-7C91-4AD4-8A10-32A8B01A7637}.Debug|Any CPU.Build.0 = Debug|Any CPU {F7830EE5-7C91-4AD4-8A10-32A8B01A7637}.Release|Any CPU.ActiveCfg = Release|Any CPU {F7830EE5-7C91-4AD4-8A10-32A8B01A7637}.Release|Any CPU.Build.0 = Release|Any CPU {3903CFAE-3430-4DDF-AB82-BC2DC5148909}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3903CFAE-3430-4DDF-AB82-BC2DC5148909}.Debug|Any CPU.Build.0 = Debug|Any CPU {3903CFAE-3430-4DDF-AB82-BC2DC5148909}.Release|Any CPU.ActiveCfg = Release|Any CPU {3903CFAE-3430-4DDF-AB82-BC2DC5148909}.Release|Any CPU.Build.0 = Release|Any CPU {2A2FA36D-BCB3-4C99-86FE-A534FB211EF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2A2FA36D-BCB3-4C99-86FE-A534FB211EF5}.Debug|Any CPU.Build.0 = Debug|Any CPU {2A2FA36D-BCB3-4C99-86FE-A534FB211EF5}.Release|Any CPU.ActiveCfg = Release|Any CPU {2A2FA36D-BCB3-4C99-86FE-A534FB211EF5}.Release|Any CPU.Build.0 = Release|Any CPU {6067C60B-5E91-43B9-A077-1A8E5318ED9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6067C60B-5E91-43B9-A077-1A8E5318ED9A}.Debug|Any CPU.Build.0 = Debug|Any CPU {6067C60B-5E91-43B9-A077-1A8E5318ED9A}.Release|Any CPU.ActiveCfg = Release|Any CPU {6067C60B-5E91-43B9-A077-1A8E5318ED9A}.Release|Any CPU.Build.0 = Release|Any CPU {8D642CAF-2505-4228-925B-7DA737FB4E4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8D642CAF-2505-4228-925B-7DA737FB4E4A}.Debug|Any CPU.Build.0 = Debug|Any CPU {8D642CAF-2505-4228-925B-7DA737FB4E4A}.Release|Any CPU.ActiveCfg = Release|Any CPU {8D642CAF-2505-4228-925B-7DA737FB4E4A}.Release|Any CPU.Build.0 = Release|Any CPU {18CB7DBF-4E4F-4210-9049-0689CE1C0D7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {18CB7DBF-4E4F-4210-9049-0689CE1C0D7A}.Debug|Any CPU.Build.0 = Debug|Any CPU {18CB7DBF-4E4F-4210-9049-0689CE1C0D7A}.Release|Any CPU.ActiveCfg = Release|Any CPU {18CB7DBF-4E4F-4210-9049-0689CE1C0D7A}.Release|Any CPU.Build.0 = Release|Any CPU {6C5F0436-9396-4941-B7D4-DE6A3F8B2584}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6C5F0436-9396-4941-B7D4-DE6A3F8B2584}.Debug|Any CPU.Build.0 = Debug|Any CPU {6C5F0436-9396-4941-B7D4-DE6A3F8B2584}.Release|Any CPU.ActiveCfg = Release|Any CPU {6C5F0436-9396-4941-B7D4-DE6A3F8B2584}.Release|Any CPU.Build.0 = Release|Any CPU {C6673D56-527D-44A0-9534-E9446888C44B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C6673D56-527D-44A0-9534-E9446888C44B}.Debug|Any CPU.Build.0 = Debug|Any CPU {C6673D56-527D-44A0-9534-E9446888C44B}.Release|Any CPU.ActiveCfg = Release|Any CPU {C6673D56-527D-44A0-9534-E9446888C44B}.Release|Any CPU.Build.0 = Release|Any CPU {60138273-B56D-4606-9D7B-49BA2A1E5F63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {60138273-B56D-4606-9D7B-49BA2A1E5F63}.Debug|Any CPU.Build.0 = Debug|Any CPU {60138273-B56D-4606-9D7B-49BA2A1E5F63}.Release|Any CPU.ActiveCfg = Release|Any CPU {60138273-B56D-4606-9D7B-49BA2A1E5F63}.Release|Any CPU.Build.0 = Release|Any CPU {D6AB6685-A26D-4173-8330-023C4C694F96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D6AB6685-A26D-4173-8330-023C4C694F96}.Debug|Any CPU.Build.0 = Debug|Any CPU {D6AB6685-A26D-4173-8330-023C4C694F96}.Release|Any CPU.ActiveCfg = Release|Any CPU {D6AB6685-A26D-4173-8330-023C4C694F96}.Release|Any CPU.Build.0 = Release|Any CPU {9EE80C26-E340-4326-BD52-CE3A1E0A88F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9EE80C26-E340-4326-BD52-CE3A1E0A88F8}.Debug|Any CPU.Build.0 = Debug|Any CPU {9EE80C26-E340-4326-BD52-CE3A1E0A88F8}.Release|Any CPU.ActiveCfg = Release|Any CPU {9EE80C26-E340-4326-BD52-CE3A1E0A88F8}.Release|Any CPU.Build.0 = Release|Any CPU {BAD2F732-E4AB-40C4-9792-B866E668ACB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BAD2F732-E4AB-40C4-9792-B866E668ACB8}.Debug|Any CPU.Build.0 = Debug|Any CPU {BAD2F732-E4AB-40C4-9792-B866E668ACB8}.Release|Any CPU.ActiveCfg = Release|Any CPU {BAD2F732-E4AB-40C4-9792-B866E668ACB8}.Release|Any CPU.Build.0 = Release|Any CPU {A8FFBC52-132F-4161-9AFF-33E03704B932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A8FFBC52-132F-4161-9AFF-33E03704B932}.Debug|Any CPU.Build.0 = Debug|Any CPU {A8FFBC52-132F-4161-9AFF-33E03704B932}.Release|Any CPU.ActiveCfg = Release|Any CPU {A8FFBC52-132F-4161-9AFF-33E03704B932}.Release|Any CPU.Build.0 = Release|Any CPU {C196C208-3E95-4E3C-B0B3-47B3ABA74D69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C196C208-3E95-4E3C-B0B3-47B3ABA74D69}.Debug|Any CPU.Build.0 = Debug|Any CPU {C196C208-3E95-4E3C-B0B3-47B3ABA74D69}.Release|Any CPU.ActiveCfg = Release|Any CPU {C196C208-3E95-4E3C-B0B3-47B3ABA74D69}.Release|Any CPU.Build.0 = Release|Any CPU {E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6}.Debug|Any CPU.Build.0 = Debug|Any CPU {E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6}.Release|Any CPU.ActiveCfg = Release|Any CPU {E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6}.Release|Any CPU.Build.0 = Release|Any CPU {F637CDDF-3319-4706-B9CF-6DBE9593FDF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F637CDDF-3319-4706-B9CF-6DBE9593FDF5}.Debug|Any CPU.Build.0 = Debug|Any CPU {F637CDDF-3319-4706-B9CF-6DBE9593FDF5}.Release|Any CPU.ActiveCfg = Release|Any CPU {F637CDDF-3319-4706-B9CF-6DBE9593FDF5}.Release|Any CPU.Build.0 = Release|Any CPU {6E0DD714-D6CF-40B6-904B-006AD589B401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6E0DD714-D6CF-40B6-904B-006AD589B401}.Debug|Any CPU.Build.0 = Debug|Any CPU {6E0DD714-D6CF-40B6-904B-006AD589B401}.Release|Any CPU.ActiveCfg = Release|Any CPU {6E0DD714-D6CF-40B6-904B-006AD589B401}.Release|Any CPU.Build.0 = Release|Any CPU {60E47784-1D37-4D4B-A44A-A08D2F28F6B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {60E47784-1D37-4D4B-A44A-A08D2F28F6B1}.Debug|Any CPU.Build.0 = Debug|Any CPU {60E47784-1D37-4D4B-A44A-A08D2F28F6B1}.Release|Any CPU.ActiveCfg = Release|Any CPU {60E47784-1D37-4D4B-A44A-A08D2F28F6B1}.Release|Any CPU.Build.0 = Release|Any CPU {01486A20-FAEF-4458-9653-842EF9E6296A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {01486A20-FAEF-4458-9653-842EF9E6296A}.Debug|Any CPU.Build.0 = Debug|Any CPU {01486A20-FAEF-4458-9653-842EF9E6296A}.Release|Any CPU.ActiveCfg = Release|Any CPU {01486A20-FAEF-4458-9653-842EF9E6296A}.Release|Any CPU.Build.0 = Release|Any CPU {DBF2E1C0-7CDE-4469-A011-7D59E2A74193}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DBF2E1C0-7CDE-4469-A011-7D59E2A74193}.Debug|Any CPU.Build.0 = Debug|Any CPU {DBF2E1C0-7CDE-4469-A011-7D59E2A74193}.Release|Any CPU.ActiveCfg = Release|Any CPU {DBF2E1C0-7CDE-4469-A011-7D59E2A74193}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {4661D90C-C373-4E13-B3C1-E6604281A20C} = {83490912-3D02-4366-B645-BFAD4ED0AFE5} {30D99F05-3765-4E22-9616-908C49C67413} = {83490912-3D02-4366-B645-BFAD4ED0AFE5} {9CA20CDF-9900-4CC7-8C15-1226DAD84768} = {83490912-3D02-4366-B645-BFAD4ED0AFE5} {06C080F5-3184-45D8-8CFB-FE796A0E3262} = {83490912-3D02-4366-B645-BFAD4ED0AFE5} {83490912-3D02-4366-B645-BFAD4ED0AFE5} = {0341CDF7-F1AA-498A-825F-84FBA22D4CB4} {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} = {0341CDF7-F1AA-498A-825F-84FBA22D4CB4} {9F2713ED-C926-41A2-AB24-F543DC6E97B3} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {235E8B67-14F5-4F50-9F7D-8857B5B68380} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {5F3C998C-DC4D-4FE6-97F4-38B39F6BBA5B} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {67A7794F-2A3A-4A7B-B42A-9B49DA227AF3} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {E918DF40-7D4A-401A-839E-1295F7F0E6E5} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {B78D4054-C34B-4AE3-BF55-8F15D3EE06D8} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {46299C4E-04B1-4205-AC04-EF86ED23FFF2} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {69A9B177-4720-4495-A6BA-028141036014} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {330C8AF8-47C7-4C4E-ADF7-F186D892AA47} = {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} {68A24AE6-B95D-412A-98E4-B84BC42A52C3} = {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} {694D0ADA-2ED3-4A89-84C7-43E685502F99} = {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} {80630AA2-4003-4D20-A768-A032DD4463E8} = {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} {8D642CAF-2505-4228-925B-7DA737FB4E4A} = {B3C57F7C-EFD6-4E43-A557-2DC448FE5AEB} {18CB7DBF-4E4F-4210-9049-0689CE1C0D7A} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {6C5F0436-9396-4941-B7D4-DE6A3F8B2584} = {30565A8D-5256-4118-8BD2-D3ADFAAE5D4A} {C6673D56-527D-44A0-9534-E9446888C44B} = {69A9B177-4720-4495-A6BA-028141036014} {60138273-B56D-4606-9D7B-49BA2A1E5F63} = {46299C4E-04B1-4205-AC04-EF86ED23FFF2} {D6AB6685-A26D-4173-8330-023C4C694F96} = {B78D4054-C34B-4AE3-BF55-8F15D3EE06D8} {9EE80C26-E340-4326-BD52-CE3A1E0A88F8} = {E918DF40-7D4A-401A-839E-1295F7F0E6E5} {F8A28023-40F2-493A-9BE4-940A03E2F5FC} = {070755E7-E85D-4C99-A7A7-CFE543054D7C} {BAD2F732-E4AB-40C4-9792-B866E668ACB8} = {F8A28023-40F2-493A-9BE4-940A03E2F5FC} {A8FFBC52-132F-4161-9AFF-33E03704B932} = {46299C4E-04B1-4205-AC04-EF86ED23FFF2} {C196C208-3E95-4E3C-B0B3-47B3ABA74D69} = {69A9B177-4720-4495-A6BA-028141036014} {E176F4E6-93C3-4E7B-A3CE-E8CE29F627E6} = {69A9B177-4720-4495-A6BA-028141036014} {F637CDDF-3319-4706-B9CF-6DBE9593FDF5} = {F8A28023-40F2-493A-9BE4-940A03E2F5FC} {01486A20-FAEF-4458-9653-842EF9E6296A} = {0C1A9227-2CD9-475D-B0D0-F04FC5B4971B} {DBF2E1C0-7CDE-4469-A011-7D59E2A74193} = {0C1A9227-2CD9-475D-B0D0-F04FC5B4971B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {0921EC9A-CD2A-4912-BC79-11B67BBCBDF5} EndGlobalSection EndGlobal ================================================ FILE: Build/Directory.Packages.targets ================================================  $(MSBuildProjectName) $(MSBuildProjectName) 11.0.0.1 $(RepositoryDirectory)_nuget\ avalonia11.0.0 MicroSugarDeveloperOrg MicroSugarDeveloperOrg This repository is a set of controls that will help you add webview control. webview for avaloniaui https://github.com/MicroSugarDeveloperOrg/Avalonia.WebView https://github.com/MicroSugarDeveloperOrg/Avalonia.WebView git 1.0.0.0 True MIT README.md webview@avalonia-logo.png $(WebviewVersion) $(WebViewPackageOutputPath) ================================================ FILE: Build/Directory.build.common.props ================================================ latest true portable enable enable true true true true true en True true $(NoWarn);CS8500;CS1591;CS1572 nullable,CS1570,CS1571,CS1572,CS1573,CS1574,CS1734 True false true None ================================================ FILE: Build/Directory.build.common.targets ================================================ NETSTANDARD2_1_OR_GREATER true true all build; analyzers System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute; System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute; System.Diagnostics.CodeAnalysis.MemberNotNullAttribute; System.Diagnostics.CodeAnalysis.NotNullAttribute; System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute; System.Diagnostics.CodeAnalysis.NotNullWhenAttribute; System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute; System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute; System.Runtime.CompilerServices.CallerArgumentExpressionAttribute; System.Runtime.CompilerServices.IsExternalInit; System.Runtime.CompilerServices.SkipLocalsInitAttribute; System.Runtime.CompilerServices.RequiredMemberAttribute; System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute; ================================================ FILE: Build/Directory.build.operation.common.props ================================================ true true true win osx linux $(DefineConstants);__WINDOWS__ $(DefineConstants);__OSX__ $(DefineConstants);__LINUX__ ================================================ FILE: Build/Directory.webview.android.common.targets ================================================ / Root <_ExternalBuildStaticWebAsset Include="%(StaticWebAsset.FullPath)" Condition="'%(SourceType)' != ''"> PreserveNewest $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','$([MSBuild]::NormalizePath('wwwroot\%(BasePath)\%(RelativePath)'))')) <_SourceItemsToCopyToOutputDirectory Remove="@(_ExternalBuildStaticWebAsset)" /> <_SourceItemsToCopyToOutputDirectory Include="@(_ExternalBuildStaticWebAsset)" /> <_StaticWebAssetsManifestBase>$(_OuterIntermediateOutputPath) ================================================ FILE: Build/Directory.webview.blazor.common.targets ================================================ / Root <_ExternalBuildStaticWebAsset Include="%(StaticWebAsset.FullPath)" Condition="'%(SourceType)' != ''"> PreserveNewest $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','$([MSBuild]::NormalizePath('wwwroot\%(BasePath)\%(RelativePath)'))')) <_SourceItemsToCopyToOutputDirectory Remove="@(_ExternalBuildStaticWebAsset)" /> <_SourceItemsToCopyToOutputDirectory Include="@(_ExternalBuildStaticWebAsset)" /> ================================================ FILE: Build/Directory.webview.desktop.common.targets ================================================ ================================================ FILE: Build/Directory.webview.ios.common.targets ================================================ / Root <_ExternalBuildStaticWebAsset Include="%(StaticWebAsset.FullPath)" Condition="'%(SourceType)' != ''"> PreserveNewest $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','$([MSBuild]::NormalizePath('wwwroot\%(BasePath)\%(RelativePath)'))')) <_SourceItemsToCopyToOutputDirectory Remove="@(_ExternalBuildStaticWebAsset)" /> <_SourceItemsToCopyToOutputDirectory Include="@(_ExternalBuildStaticWebAsset)" /> <_ExternalBundleStaticWebAsset Include="$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','%(StaticWebAsset.FullPath)'))" Condition="'%(SourceType)' != ''"> false $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','$([MSBuild]::NormalizePath('wwwroot\%(BasePath)\%(RelativePath)'))')) $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)','%(StaticWebAsset.FullPath)')) <_BundleResourceWithLogicalName Include="@(_ExternalBundleStaticWebAsset)" /> ================================================ FILE: Directory.Build.props ================================================  netstandard2.0 $(MSBuildThisFileDirectory) $(RepositoryDirectory)Build\ $(RepositoryDirectory).vs\$(SolutionName)\Intermediate\$(MSBuildProjectName)\ $(RepositoryDirectory)Binary\ true true $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb true full false DEBUG;TRACE ================================================ FILE: Directory.Packages.props ================================================  true 11.0.0 11.0.0 true ================================================ FILE: Directory.build.targets ================================================  ================================================ FILE: Directory.buildcpp.props ================================================ $(SolutionDir).vs\$(SolutionName)\Intermediate\$(PlatformTarget)\$(ProjectName)\$(Configuration)\ $(SolutionDir)Binary\Modules\ ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2023 AvaloniaDeveloperOrg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: Nuget.bat ================================================ echo a = %1 echo b = %2 dotnet nuget push _nuget\BlazorWebView.Avalonia.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.Android.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.Desktop.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.iOS.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.Linux.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.MacCatalyst.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json dotnet nuget push _nuget\WebView.Avalonia.Windows.%1.nupkg --api-key %2 --source https://api.nuget.org/v3/index.json ================================================ FILE: README.md ================================================ # WebView for Avalonia WebView for avalonia English| [简体中文](./README.zh-CN.md) ## Develop * please install VisualStudio 2022 or greater or rider * use .net7 runtime (version 7.0.0 or greater)(if you want to use others, please modify the version in the global.json) * please setup workloads include Android, iOS, Wasm , MacOS * please open the long path support in Windows OS(https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry) ## How to use 1. Add [WebView.Avalonia][nuget] or [BlazorWebView.Avalonia][nuget] nuget package to your avaloniaui shared project: dotnet add package WebView.Avalonia OR dotnet add package BlazorWebView.Avalonia 2. Add [WebView.Avalonia.Desktop][nuget] nuget package to your avaloniaui desktop project: dotnet add package WebView.Avalonia.Desktop 3. Add [WebView.Avalonia.Android][nuget] nuget package to your avaloniaui Android project: dotnet add package WebView.Avalonia.Android 4. Add [WebView.Avalonia.iOS][nuget] nuget package to your avaloniaui iOS project: dotnet add package WebView.Avalonia.iOS 5. Edit `App.axaml.cs` file: ``` using AvaloniaWebView; OR using AvaloniaBlazorWebView; ... public override void RegisterServices() { base.RegisterServices(); // if you use only WebView AvaloniaWebViewBuilder.Initialize(default); // Or // if you use BlazorWebView, please setting for blazor AvaloniaBlazorWebViewBuilder.Initialize(default, setting => { //this is setting for blazor setting.ComponentType = typeof(AppWeb); setting.Selector = "#app"; //because avalonia support the html css and js for resource ,so you must set the ResourceAssembly setting.IsAvaloniaResource = true; setting.ResourceAssembly = typeof(AppWeb).Assembly; }, inject => { //you can inject the resource in this inject.AddSingleton(); }); } ``` 6. Edit `Program` file for Desktop: ``` using Avalonia.WebView.Desktop; <<---add this ... public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UsePlatformDetect() .LogToTrace() .UseReactiveUI() .UseDesktopWebView(); <<---add this ``` 7. Edit `SplashActivity` file for Android: ``` using Avalonia.WebView.Android; <<---add this ... protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) { return base.CustomizeAppBuilder(builder) .UseReactiveUI() .UseAndroidWebView(); <<---add this } ``` 8. Edit `AppDelegate` file for iOS: ``` using Avalonia.WebView.iOS; <<---add this ... protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) { return builder.UseReactiveUI() .UseIosWebView(); <<---add this } ``` ## Description > use Webview2 for Windows (please install Microsoft edge Webview2) > use WKWebView[Appkit] for MacOS (system in) > use Webkit Webview for Linux (if not please install [sudo apt-get libwebkit2gtk-4-37]) > use Android.Webkit.WebView for Android (this is in Microsoft-Android [net5.0-Android; net6.0-Android; net7.0-Android]) > use WKWebView[UIKit] for iOS (this is in Microsoft-iOS [net5.0-ios; net6.0-ios; net7.0-ios]) | Platform | Technologies | |:-------------------------|:-----------------------| | Windows | WebView2 | | MacOS | WKWebView(Appkit) | | Linux | Gtk3,WebKitGtk3 | | Android | Android.Webkit.WebView | | iOS | WKWebView(UIKit) | ## Demo You can always download demo executable to play around with WebView > https://github.com/MicroSugarDeveloperOrg/Avalonia.WebView.Sample ## Version compatibility | WebView.Avalonia Version | Avalonia Version | |:-------------------------|:-----------------| | 0.1.0-rc1.x | 11.0-rc1.x | | 11.0.x | 11.0.x | **NOTE** WebView.Avalonia is moving forward together with Avalonia preview versions now. So new feature/fixes are not backported to previous preview versions. If you need a feature/fix for outdated avalonia preview version, please raise an issue so we can do that for you. ## Credits [Avalonia](https://github.com/AvaloniaUI/Avalonia) [Maui](https://github.com/dotnet/maui) [Xamarin.MacIos](https://github.com/xamarin/xamarin-macios) [Microsoft.WebView2](https://github.com/MicrosoftEdge/WebView2Samples) [GTKSharp](https://github.com/GtkSharp/GtkSharp) [WebkitGtkSharp](https://github.com/GtkSharp/GtkSharp) ================================================ FILE: README.zh-CN.md ================================================ # Avalonia.WebView WebView for avalonia [English](./README.md)| 简体中文 ## 开发 * 请安装 VisualStudio 2022 或更高版本或 Rider * 使用 .NET 7 运行时(版本 7.0.0 或更高)(如果您想使用其他版本,请在 global.json 中进行修改) * 请设置包括 Android、iOS、Wasm 和 MacOS 在内的工作负载 * 请在 Windows 操作系统中打开长路径支持(https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry) ## 如何使用 1. 将 [WebView.Avalonia][nuget] 或 [BlazorWebView.Avalonia][nuget] NuGet 包添加到您的 AvaloniaUI 共享项目中: dotnet add package WebView.Avalonia 或 dotnet add package BlazorWebView.Avalonia 2. 将 [WebView.Avalonia.Desktop][nuget] NuGet 包添加到您的 AvaloniaUI 桌面项目中: dotnet add package WebView.Avalonia.Desktop 3. 将 [WebView.Avalonia.Android][nuget] NuGet 包添加到您的 AvaloniaUI Android 项目中: dotnet add package WebView.Avalonia.Android 4. 将 [WebView.Avalonia.iOS][nuget] NuGet 包添加到您的 AvaloniaUI iOS 项目中: dotnet add package WebView.Avalonia.iOS 5. 编辑 `App.axaml.cs` 文件: ``` using AvaloniaWebView; 或 using AvaloniaBlazorWebView; ... public override void RegisterServices() { base.RegisterServices(); // 如果只使用 WebView AvaloniaWebViewBuilder.Initialize(default); // 或者 // 如果使用 BlazorWebView,请进行 Blazor 设置 AvaloniaBlazorWebViewBuilder.Initialize(default, setting => { // 这是 Blazor 设置 setting.ComponentType = typeof(AppWeb); setting.Selector = "#app"; // 因为 Avalonia 支持资源中的 HTML、CSS 和 JS,所以必须设置 ResourceAssembly setting.IsAvaloniaResource = true; setting.ResourceAssembly = typeof(AppWeb).Assembly; }, inject => { // 您可以在此处注入资源 inject.AddSingleton(); }); } ``` 6. 编辑桌面项目的 `Program` 文件: ``` using Avalonia.WebView.Desktop; <<--- 添加此行 ... public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UsePlatformDetect() .LogToTrace() .UseReactiveUI() .UseDesktopWebView(); <<--- 添加此行 ``` 7. 编辑 Android 项目的 `SplashActivity` 文件: ``` using Avalonia.WebView.Android; <<--- 添加此行 ... protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) { return base.CustomizeAppBuilder(builder) .UseReactiveUI() .UseAndroidWebView(); <<--- 添加此行 } ``` 8. 编辑 iOS 项目的 `AppDelegate` 文件: ``` using Avalonia.WebView.iOS; <<--- 添加此行 ... protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) { return builder.UseReactiveUI() .UseIosWebView(); <<--- 添加此行 } ``` ## 描述 > 在 Windows 上使用 Webview2(请安装 Microsoft Edge Webview2) > 在 MacOS 上使用 WKWebView[Appkit](系统自带) > 在 Linux 上使用 Webkit Webview(如果没有,请安装 [sudo apt-get libwebkit2gtk-4-37]) > 在 Android 上使用 Android.Webkit.WebView(这是在 Microsoft-Android 中的 [net5.0-Android; net6.0-Android; net7.0-Android]) > 在 iOS 上使用 WKWebView[UIKit](这是在 Microsoft-iOS 中的 [net5.0-ios; net6.0-ios; net7.0-ios]) | 平台 | 技术 | |:-------------------------|:-----------------------| | Windows | WebView2 | | MacOS | WKWebView(Appkit) | | Linux | Gtk3,WebKitGtk3 | | Android | Android.Webkit.WebView | | iOS | WKWebView(UIKit) | ## 演示 您可以随时下载演示可执行文件来体验 WebView > https://github.com/MicroSugarDeveloperOrg/Avalonia.WebView.Sample ## 版本兼容性 | WebView.Avalonia 版本 | Avalonia 版本 | |:-------------------------|:-----------------| | 0.1.0-rc1.x | 11.0-rc1.x | | 11.0.x | 11.0.x | **注意** WebView.Avalonia 现在与 Avalonia 预览版本一起前进。因此,新功能/修复不会被回溯到以前的预览版本。如果您需要过时的 Avalonia 预览版本的功能/修复,请提出问题,我们可以为您解决。 ## 鸣谢 [Avalonia](https://github.com/AvaloniaUI/Avalonia) [Maui](https://github.com/dotnet/maui) [Xamarin.MacIos](https://github.com/xamarin/xamarin-macios) [Microsoft.WebView2](https://github.com/MicrosoftEdge/WebView2Samples) [GTKSharp](https://github.com/GtkSharp/GtkSharp) [WebkitGtkSharp](https://github.com/GtkSharp/GtkSharp)" ================================================ FILE: Source/Avalonia.BlazorWebView/Avalonia.BlazorWebView.csproj ================================================  net6.0;net7.0 AvaloniaBlazorWebView all all ================================================ FILE: Source/Avalonia.BlazorWebView/AvaloniaBlazorWebViewBuilder.cs ================================================ namespace AvaloniaBlazorWebView; public static class AvaloniaBlazorWebViewBuilder { public static void Initialize(Action? webConfigDelegate, Action configDelegate, Action? injectDelegate) { WebViewCreationProperties creationProperties = new(); webConfigDelegate?.Invoke(creationProperties); WebViewLocator.s_Registrator.RegisterInstance(creationProperties); var builder = new BlazorWebViewApplicationBuilder(injectDelegate, configDelegate); WebViewLocator.s_Registrator.RegisterInstance(builder); } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-AvaloniaProperty.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { static bool LoadDependencyObjectsChanged() { ChildProperty.Changed.AddClassHandler((x, e) => x.ChildChanged(e)); return true; } private static readonly StyledProperty ChildProperty = AvaloniaProperty.Register(nameof(Child)); [Content] private Control? Child { get => GetValue(ChildProperty); set => SetValue(ChildProperty, value); } private void ChildChanged(AvaloniaPropertyChangedEventArgs e) { var oldChild = (Control?)e.OldValue; var newChild = (Control?)e.NewValue; if (oldChild != null) { ((ISetLogicalParent)oldChild).SetParent(null); LogicalChildren.Clear(); VisualChildren.Remove(oldChild); } if (newChild != null) { ((ISetLogicalParent)newChild).SetParent(this); VisualChildren.Add(newChild); LogicalChildren.Add(newChild); } } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-Core.cs ================================================ using Toolkit.Shared; namespace AvaloniaBlazorWebView; partial class BlazorWebView { void CheckDisposed() { if (_isDisposed) throw new ObjectDisposedException(GetType().Name); } async Task CreateWebViewManager() { CheckDisposed(); if (_webviewManager is not null) return true; if (string.IsNullOrEmpty(HostPage)) return false; if (RootComponents.Count <= 0) return false; string contentRootDirFullPath; string hostPageRelativePath; string contentRootDir; if (OperatingSystemEx.IsDesktop()) { var appRootDir = AppContext.BaseDirectory; var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage)); contentRootDirFullPath = Path.GetDirectoryName(hostPageFullPath)!; hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, hostPageFullPath); contentRootDir = Path.GetRelativePath(appRootDir, contentRootDirFullPath); } else { contentRootDirFullPath = Path.GetDirectoryName(HostPage) ?? string.Empty; hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, HostPage!); contentRootDir = contentRootDirFullPath; } //IFileProvider fileProvider; //if (_setting.IsAvaloniaResource) // fileProvider = new AvaloniaResourceFileProvider(_setting.ResourceAssembly!, contentRootDir); //else var fileProvider = _platformBlazorWebViewProvider.CreateFileProvider(_setting.ResourceAssembly, contentRootDirFullPath); var webViewManager = new AvaloniaWebViewManager(this, _serviceProvider, _dispatcher, _appScheme, _appHostAddress, _baseUri, fileProvider, _jsComponents, contentRootDirFullPath, hostPageRelativePath); //StaticContentHotReloadManager.AttachToWebViewManagerIfEnabled(webviewManager); var viewHandler = _viewHandlerProvider.CreatePlatformWebViewHandler(this, this, webViewManager, config => { config.AreDevToolEnabled = _creationProperties.AreDevToolEnabled; config.AreDefaultContextMenusEnabled = _creationProperties.AreDefaultContextMenusEnabled; config.IsStatusBarEnabled = _creationProperties.IsStatusBarEnabled; config.BrowserExecutableFolder = _creationProperties.BrowserExecutableFolder; config.UserDataFolder = _creationProperties.UserDataFolder; config.Language = _creationProperties.Language; config.AdditionalBrowserArguments = _creationProperties.AdditionalBrowserArguments; config.ProfileName = _creationProperties.ProfileName; config.IsInPrivateModeEnabled = _creationProperties.IsInPrivateModeEnabled; config.DefaultWebViewBackgroundColor = _creationProperties.DefaultWebViewBackgroundColor; }); if (viewHandler is null) throw new ArgumentNullException(nameof(viewHandler)); var control = viewHandler.AttachableControl; if (control is null) return false; _platformWebView = viewHandler.PlatformWebView; if (_platformWebView is null) return false; Child = control; var bRet = await _platformWebView.Initialize(); if (!bRet) return false; foreach (var rootComponent in RootComponents) await rootComponent.AddToWebViewManagerAsync(webViewManager); _webviewManager = webViewManager; return true; } ValueTask IAsyncDisposable.DisposeAsync() { return ValueTask.CompletedTask; } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-Events.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { public event EventHandler? WebViewCreating; public event EventHandler? WebViewCreated; public event EventHandler? NavigationStarting; public event EventHandler? NavigationCompleted; public event EventHandler? WebMessageReceived; public event EventHandler? WebViewNewWindowRequested; } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-Host-AvaloniaProperty.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { static bool LoadHostDependencyObjectsChanged() { HostPageProperty.Changed.AddClassHandler((s, e) => { if (s._platformWebView is null) return; var hostPage = e.NewValue.Value; if (string.IsNullOrWhiteSpace(hostPage)) return; var webviewManager = s._webviewManager; //if (webviewManager is null) // await s.CreateWebViewManager(s._platformWebView); if (webviewManager is not null) webviewManager.Navigate(s._startAddress); }); return true; } public static readonly StyledProperty HostPageProperty = AvaloniaProperty.Register(nameof(HostPage)); public static readonly StyledProperty RootComponentsProperty = AvaloniaProperty.Register(nameof(RootComponents), defaultValue: new BlazorRootComponentsCollection()); public string? HostPage { get => GetValue(HostPageProperty); set => SetValue(HostPageProperty, value); } public BlazorRootComponentsCollection RootComponents => GetValue(RootComponentsProperty); private async void RootComponents_CollectionChanged(object? sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { CheckDisposed(); if (_webviewManager is null) { //await CreateWebViewManager(_platformWebView); return; } await _dispatcher.InvokeAsync(async () => { var newItems = (e.NewItems ?? Array.Empty()).Cast(); var oldItems = (e.OldItems ?? Array.Empty()).Cast(); foreach (var item in newItems.Except(oldItems)) await item.AddToWebViewManagerAsync(_webviewManager); foreach (var item in oldItems.Except(newItems)) await item.RemoveFromWebViewManagerAsync(_webviewManager); }); } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-Override.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { protected override async void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e) { base.OnAttachedToVisualTree(e); await CreateWebViewManager(); if (_webviewManager is null) return; _webviewManager.Navigate(_startAddress); } protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e) { base.OnDetachedFromVisualTree(e); Child = null; _platformWebView?.Dispose(); _platformWebView = null; } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-VirtualView.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { BlazorWebView IVirtualWebView.VirtualView => this; object IVirtualWebView.VirtualViewObject => this; IPlatformWebView? IVirtualWebView.PlatformView => PlatformWebView; } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-VirtualViewCallBack.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { void IVirtualWebViewControlCallBack.PlatformWebViewCreated(object? sender, WebViewCreatedEventArgs arg) { WebViewCreated?.Invoke(sender, arg); } bool IVirtualWebViewControlCallBack.PlatformWebViewCreating(object? sender, WebViewCreatingEventArgs arg) { WebViewCreating?.Invoke(sender, arg); return true; } void IVirtualWebViewControlCallBack.PlatformWebViewMessageReceived(object? sender, WebViewMessageReceivedEventArgs arg) { WebMessageReceived?.Invoke(sender, arg); } void IVirtualWebViewControlCallBack.PlatformWebViewNavigationCompleted(object? sender, WebViewUrlLoadedEventArg arg) { NavigationCompleted?.Invoke(sender, arg); } bool IVirtualWebViewControlCallBack.PlatformWebViewNavigationStarting(object? sender, WebViewUrlLoadingEventArg arg) { NavigationStarting?.Invoke(sender, arg); return true; } bool IVirtualWebViewControlCallBack.PlatformWebViewNewWindowRequest(object? sender, WebViewNewWindowEventArgs arg) { WebViewNewWindowRequested?.Invoke(sender, arg); return true; } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView-WebViewControl.cs ================================================ namespace AvaloniaBlazorWebView; partial class BlazorWebView { bool IWebViewControl.IsCanGoForward => _platformWebView?.IsCanGoForward ?? false; bool IWebViewControl.IsCanGoBack => _platformWebView?.IsCanGoBack ?? false; bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Navigate(uri); } bool IWebViewControl.NavigateToString(string htmlContent) { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.NavigateToString(htmlContent); } bool IWebViewControl.GoBack() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.GoBack(); } bool IWebViewControl.GoForward() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.GoForward(); } bool IWebViewControl.Stop() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Stop(); } bool IWebViewControl.Reload() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Reload(); } Task IWebViewControl.ExecuteScriptAsync(string javaScript) { if (_platformWebView is null || !_platformWebView.IsInitialized) return Task.FromResult(default); return _platformWebView.ExecuteScriptAsync(javaScript); } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.PostWebMessageAsString(webMessageAsJson, baseUri); } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.PostWebMessageAsString(webMessageAsString, baseUri); } bool IWebViewControl.OpenDevToolsWindow() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.OpenDevToolsWindow(); } } ================================================ FILE: Source/Avalonia.BlazorWebView/BlazorWebView.cs ================================================ namespace AvaloniaBlazorWebView; public sealed partial class BlazorWebView : Control, IVirtualWebView, IWebViewEventHandler, IVirtualWebViewControlCallBack, IWebViewControl, IAsyncDisposable { static BlazorWebView() { LoadDependencyObjectsChanged(); LoadHostDependencyObjectsChanged(); } public BlazorWebView() : this(default) { } public BlazorWebView(IServiceProvider? serviceProvider = default) { var properties = WebViewLocator.s_ResolverContext.GetRequiredService(); _creationProperties = properties ?? new WebViewCreationProperties(); _viewHandlerProvider = WebViewLocator.s_ResolverContext.GetRequiredService(); _platformBlazorWebViewProvider = WebViewLocator.s_ResolverContext.GetRequiredService(); var blazorBuilder = WebViewLocator.s_ResolverContext.GetRequiredService(); var blazorApplication = blazorBuilder.Build(); _blazorApplication = blazorApplication; _serviceProvider = blazorApplication.ServiceProvider; _dispatcher = _serviceProvider.GetRequiredService(); _jsComponents = _serviceProvider.GetRequiredService(); var setting = _serviceProvider.GetRequiredService>(); if (setting.Value.ComponentType is not null && !string.IsNullOrWhiteSpace(setting.Value.Selector)) { RootComponents.Add(new BlazorRootComponent() { ComponentType = setting.Value.ComponentType, Selector = setting.Value.Selector }); } _setting = setting.Value; _appScheme = _platformBlazorWebViewProvider.Scheme; _appHostAddress = setting.Value.AppAddress; _baseUri = new Uri($"{_appScheme}://{_appHostAddress}/"); _startAddress = setting.Value.StartAddress; RootComponents.CollectionChanged += RootComponents_CollectionChanged; } readonly WebViewCreationProperties _creationProperties; readonly IViewHandlerProvider _viewHandlerProvider; readonly string _appScheme; readonly string _appHostAddress; readonly Uri _baseUri; readonly string _startAddress; readonly BlazorWebViewSetting _setting; readonly IBlazorWebViewApplication _blazorApplication; readonly IServiceProvider _serviceProvider; readonly AvaloniaDispatcher _dispatcher; readonly JSComponentConfigurationStore _jsComponents; readonly IPlatformBlazorWebViewProvider _platformBlazorWebViewProvider; bool _isDisposed = false; AvaloniaWebViewManager? _webviewManager; IPlatformWebView? _platformWebView; public IPlatformWebView? PlatformWebView => _platformWebView; } ================================================ FILE: Source/Avalonia.BlazorWebView/Common/AvaloniaResourceFileProvider.cs ================================================ namespace AvaloniaBlazorWebView.Common; internal class AvaloniaResourceFileProvider : IFileProvider { public AvaloniaResourceFileProvider(Assembly assembly, string contentRootDir) { _assembly = assembly; _assemblyName = assembly.GetName().Name!; //_assetLoader = AvaloniaLocator.Current.GetRequiredService(); _contentRootDir = contentRootDir; } readonly Assembly _assembly; //readonly IAssetLoader _assetLoader; readonly string _contentRootDir; readonly string _assemblyName; readonly string _assetHeader = "avares"; IDirectoryContents IFileProvider.GetDirectoryContents(string subpath) => new AvaloniaDirectoryContents(subpath); IFileInfo IFileProvider.GetFileInfo(string subpath) => new AvaloniaAssetFileInfo(_assembly, $"{_assetHeader}://{_assemblyName}/{_contentRootDir}/{subpath}"); IChangeToken IFileProvider.Watch(string filter) => NullChangeToken.Singleton; /// /// /// private sealed class AvaloniaDirectoryContents : IDirectoryContents { public AvaloniaDirectoryContents(string path) { } public bool Exists => true; public IEnumerator GetEnumerator() => throw new NotImplementedException(); IEnumerator IEnumerable.GetEnumerator() => throw new NotImplementedException(); } /// /// /// private sealed class AvaloniaAssetFileInfo : IFileInfo { public AvaloniaAssetFileInfo(Assembly? assembly, string filePath) { _assembly = assembly; //_assetLoader = assetLoader; _filePath = filePath; Name = Path.GetFileName(filePath); _lazyAssetExists = new Lazy(() => { try { return AssetLoader.Exists(new Uri(filePath)); } catch { return false; } }); _lazyAssetLength = new Lazy(() => { try { using var stream = AssetLoader.Open(new Uri(filePath)); var buffer = ArrayPool.Shared.Rent(4096); long length = 0; while (length != (length += stream.Read(buffer))) { } ArrayPool.Shared.Return(buffer); return length; } catch { return -1; } }); } //readonly IAssetLoader _assetLoader; readonly Assembly? _assembly; private readonly string _filePath; private readonly Lazy _lazyAssetExists; private readonly Lazy _lazyAssetLength; public bool Exists => _lazyAssetExists.Value; public long Length => _lazyAssetLength.Value; public string? PhysicalPath => null!; public string Name { get; } public DateTimeOffset LastModified { get; } = DateTimeOffset.FromUnixTimeSeconds(0); public bool IsDirectory => false; public Stream CreateReadStream() => AssetLoader.Open(new Uri(_filePath)); } } ================================================ FILE: Source/Avalonia.BlazorWebView/Common/StaticContentHotReloadManager.cs ================================================ namespace AvaloniaBlazorWebView.Common; internal static class StaticContentHotReloadManager { private delegate void ContentUpdatedHandler(string assemblyName, string relativePath); private readonly static Regex ContentUrlRegex = new Regex("^_content/(?[^/]+)/(?.*)"); private static event ContentUpdatedHandler? OnContentUpdated; // If the current platform can't tell us the application entry assembly name, we can use a placeholder name private static string ApplicationAssemblyName { get; } = Assembly.GetEntryAssembly()?.GetName().Name ?? "__application_assembly__"; private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new() { { (ApplicationAssemblyName, "_framework/static-content-hot-reload.js"), ("text/javascript", Encoding.UTF8.GetBytes(@" export function notifyCssUpdated() { const allLinkElems = Array.from(document.querySelectorAll('link[rel=stylesheet]')); allLinkElems.forEach(elem => elem.href += ''); } ")) } }; /// /// MetadataUpdateHandler event. This is invoked by the hot reload host via reflection. /// public static void UpdateContent(string assemblyName, bool isApplicationProject, string relativePath, byte[] contents) { if (isApplicationProject) { // Some platforms don't know the name of the application entry assembly (e.g., Android) so in // those cases we have a placeholder name for it. The tooling does know the real name, but we // need to use our placeholder so the lookups work later. assemblyName = ApplicationAssemblyName; } _updatedContent[(assemblyName, relativePath)] = (ContentType: null, Content: contents); OnContentUpdated?.Invoke(assemblyName, relativePath); } public static void AttachToWebViewManagerIfEnabled(WebViewManager manager) { if (MetadataUpdater.IsSupported) { manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); } } public static bool TryReplaceResponseContent(string contentRootRelativePath, string requestAbsoluteUri, ref int responseStatusCode, ref Stream responseContent, IDictionary responseHeaders) { if (MetadataUpdater.IsSupported) { var (assemblyName, relativePath) = GetAssemblyNameAndRelativePath(requestAbsoluteUri, contentRootRelativePath); if (_updatedContent.TryGetValue((assemblyName, relativePath), out var values)) { responseStatusCode = 200; responseContent.Close(); responseContent = new MemoryStream(values.Content); if (!string.IsNullOrEmpty(values.ContentType)) { responseHeaders["Content-Type"] = values.ContentType; } return true; } } return false; } private static (string AssemblyName, string RelativePath) GetAssemblyNameAndRelativePath(string requestAbsoluteUri, string appContentRoot) { var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1); if (ContentUrlRegex.Match(requestPath) is { Success: true } match) { // For RCLs (i.e., URLs of the form _content/assembly/path), we assume the content root within the // RCL to be "wwwroot" since we have no other information. If this is not the case, content within // that RCL will not be hot-reloadable. return (match.Groups["AssemblyName"].Value, $"wwwroot/{match.Groups["RelativePath"].Value}"); } else if (requestPath.StartsWith("_framework/", StringComparison.Ordinal)) { return (ApplicationAssemblyName, requestPath); } else { return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/')); } } // To provide a consistent way of transporting the data across all platforms, // we can use the existing IJSRuntime. In turn we can get an instance of this // that's always attached to the currently-loaded page (if it's a Blazor page) // by injecting this headless root component. private sealed class StaticContentChangeNotifier : IComponent, IDisposable { private ILogger _logger = default!; [Inject] private IJSRuntime JSRuntime { get; set; } = default!; [Inject] private ILoggerFactory LoggerFactory { get; set; } = default!; public void Attach(RenderHandle renderHandle) { _logger = LoggerFactory.CreateLogger(); OnContentUpdated += NotifyContentUpdated; } public void Dispose() { OnContentUpdated -= NotifyContentUpdated; } private void NotifyContentUpdated(string assemblyName, string relativePath) { // It handles its own errors _ = NotifyContentUpdatedAsync(assemblyName, relativePath); } private async Task NotifyContentUpdatedAsync(string assemblyName, string relativePath) { try { await using var module = await JSRuntime.InvokeAsync("import", "./_framework/static-content-hot-reload.js"); // In the future we might want to hot-reload other content types such as images, but currently the tooling is // only expected to notify about CSS files. If it notifies us about something else, we'd need different JS logic. if (string.Equals(".css", Path.GetExtension(relativePath), StringComparison.Ordinal)) { // We could try to supply the URL of the modified file, so the JS-side logic could only update the affected // stylesheet. This would reduce flicker. However, this involves hardcoding further details about URL conventions // (e.g., _content/AssemblyName/Path) and accounting for configurable content roots. To reduce the chances of // CSS hot reload being broken by customizations, we'll have the JS-side code refresh all stylesheets. await module.InvokeVoidAsync("notifyCssUpdated"); } } catch (Exception ex) { _logger.LogError(ex, $"Failed to notify about static content update to {relativePath}."); } } public Task SetParametersAsync(ParameterView parameters) => Task.CompletedTask; } } ================================================ FILE: Source/Avalonia.BlazorWebView/Components/BlazorRootComponent.cs ================================================ namespace AvaloniaBlazorWebView.Components; public class BlazorRootComponent { public string Selector { get; set; } = default!; public Type ComponentType { get; set; } = default!; public IDictionary? Parameters { get; set; } internal Task AddToWebViewManagerAsync(WebViewManager webViewManager) { if (string.IsNullOrWhiteSpace(Selector)) throw new InvalidOperationException($"{nameof(BlazorRootComponent)} requires a value for its {nameof(Selector)} property, but no value was set."); if (ComponentType is null) throw new InvalidOperationException($"{nameof(BlazorRootComponent)} requires a value for its {nameof(ComponentType)} property, but no value was set."); var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters); return webViewManager.AddRootComponentAsync(ComponentType, Selector, parameterView); } internal Task RemoveFromWebViewManagerAsync(AvaloniaWebViewManager webviewManager) { return webviewManager.RemoveRootComponentAsync(Selector); } } ================================================ FILE: Source/Avalonia.BlazorWebView/Components/BlazorRootComponentsCollection.cs ================================================ namespace AvaloniaBlazorWebView.Components; public class BlazorRootComponentsCollection : ObservableCollection { public BlazorRootComponentsCollection() { } public void Add(string selector) where TComponent : IComponent { BlazorRootComponent component = new() { ComponentType = typeof(TComponent), Selector = selector }; Add(component); } } ================================================ FILE: Source/Avalonia.BlazorWebView/Configurations/BlazorWebViewSetting.cs ================================================ namespace AvaloniaBlazorWebView.Configurations; public class BlazorWebViewSetting { public string WWWRoot { get; set; } = "wwwroot"; public string AppAddress { get; set; } = "localhost"; public string StartAddress { get; set; } = "/"; public Type? ComponentType { get; set; } public string? Selector { get; set; } /// /// 支持使用资源加载 /// //public bool IsAvaloniaResource { get; set; } public Assembly? ResourceAssembly { get; set; } } ================================================ FILE: Source/Avalonia.BlazorWebView/Configurations/JsComponentConfigration.cs ================================================ namespace AvaloniaBlazorWebView.Configurations; public class JsComponentConfigration : IJSComponentConfiguration { public JsComponentConfigration(JSComponentConfigurationStore jSComponentConfigurationStore) { JSComponents = jSComponentConfigurationStore; } public JSComponentConfigurationStore JSComponents { get; init; } } ================================================ FILE: Source/Avalonia.BlazorWebView/Core/AutoCloseOnReadCompleteStream.cs ================================================ namespace AvaloniaBlazorWebView.Core; internal class AutoCloseOnReadCompleteStream : Stream { private readonly Stream _baseStream; public AutoCloseOnReadCompleteStream(Stream baseStream) { _baseStream = baseStream; } public override bool CanRead => _baseStream.CanRead; public override bool CanSeek => _baseStream.CanSeek; public override bool CanWrite => _baseStream.CanWrite; public override long Length => _baseStream.Length; public override long Position { get => _baseStream.Position; set => _baseStream.Position = value; } public override void Flush() => _baseStream.Flush(); public override int Read(byte[] buffer, int offset, int count) { var bytesRead = _baseStream.Read(buffer, offset, count); // Stream.Read only returns 0 when it has reached the end of stream // and no further bytes are expected. Otherwise it blocks until // one or more (and at most count) bytes can be read. if (bytesRead == 0) _baseStream.Close(); return bytesRead; } public override long Seek(long offset, SeekOrigin origin) => _baseStream.Seek(offset, origin); public override void SetLength(long value) => _baseStream.SetLength(value); public override void Write(byte[] buffer, int offset, int count) => _baseStream.Write(buffer, offset, count); } ================================================ FILE: Source/Avalonia.BlazorWebView/Core/AvaloniaDispatcher.cs ================================================ namespace AvaloniaBlazorWebView.Core; internal class AvaloniaDispatcher : Dispatcher { public AvaloniaDispatcher(AvaloniaUIDispatcher dispatcher) { _dispatcher = dispatcher; } readonly AvaloniaUIDispatcher _dispatcher; public override bool CheckAccess() => _dispatcher.CheckAccess(); public override async Task InvokeAsync(Action workItem) { try { if (_dispatcher.CheckAccess()) workItem(); else await _dispatcher.InvokeAsync(workItem).GetTask(); } catch (Exception) { throw; } } public override async Task InvokeAsync(Func workItem) { try { if (_dispatcher.CheckAccess()) await workItem(); else await _dispatcher.InvokeAsync(workItem); } catch (Exception) { throw; } } public override async Task InvokeAsync(Func workItem) { try { if (_dispatcher.CheckAccess()) return workItem(); else return await _dispatcher.InvokeAsync(workItem); } catch (Exception) { throw; } } public override async Task InvokeAsync(Func> workItem) { try { if (_dispatcher.CheckAccess()) return await workItem(); else return await _dispatcher.InvokeAsync(workItem); } catch (Exception) { throw; } } } ================================================ FILE: Source/Avalonia.BlazorWebView/Core/AvaloniaWebViewManager.cs ================================================ namespace AvaloniaBlazorWebView.Core; internal class AvaloniaWebViewManager : WebViewManager, IVirtualBlazorWebViewProvider { public AvaloniaWebViewManager(BlazorWebView webview, IServiceProvider provider, Dispatcher dispatcher, string appScheme, string appHostAddress, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string contentRootDirToAppRoot, string hostPageRelativePath) : base(provider, dispatcher, appBaseUri, fileProvider, jsComponents, hostPageRelativePath) { _blazorWebView = webview; _webViewControl = _blazorWebView; _contentRootDirPath = contentRootDirToAppRoot; _hostPageRelativePath = hostPageRelativePath; _appScheme = appScheme; _appHostAddress = appHostAddress; _appBaseUri = appBaseUri; _messageQueue = Channel.CreateUnbounded(new UnboundedChannelOptions() { SingleReader = true, SingleWriter = false, AllowSynchronousContinuations = false }); _handleMessageTask = Task.Factory.StartNew(MessageReadProgress, TaskCreationOptions.LongRunning); } readonly string _contentRootDirPath; readonly BlazorWebView _blazorWebView; readonly IWebViewControl _webViewControl; readonly Channel _messageQueue; readonly Task _handleMessageTask; readonly string _appScheme; readonly string _appHostAddress; readonly Uri _appBaseUri; readonly string _hostPageRelativePath; //string IVirtualBlazorWebViewProvider.AppHostAddress => _appHostAddress; Uri IVirtualBlazorWebViewProvider.BaseUri => _appBaseUri; protected override async void NavigateCore(Uri absoluteUri) { await Dispatcher.InvokeAsync(() => _webViewControl.Navigate(absoluteUri)); } protected override void SendMessage(string message) { _messageQueue.Writer.TryWrite(message); } async Task MessageReadProgress() { var reader = _messageQueue.Reader; try { for (; ; ) { var message = await reader.ReadAsync(); await Dispatcher.InvokeAsync(() => _webViewControl.PostWebMessageAsString(message, _appBaseUri)); } } catch (Exception) { } } protected override ValueTask DisposeAsyncCore() { try { _messageQueue.Writer.Complete(); } catch (Exception) { } _handleMessageTask.Wait(); _handleMessageTask.Dispose(); return base.DisposeAsyncCore(); } bool IVirtualBlazorWebViewProvider.ResourceRequestedFilterProvider(object? requester, out WebScheme filter) { filter = new(_appScheme, _appHostAddress, _appBaseUri); return true; } bool IVirtualBlazorWebViewProvider.PlatformWebViewResourceRequested(object? sender, WebResourceRequest request, out WebResourceResponse? response) { response = default; if (request is null) return false; var requestUri = QueryStringHelper.RemovePossibleQueryString(request.RequestUri); if (!TryGetResponseContent(requestUri, request.AllowFallbackOnHostPage, out var statusCode, out var statusMessage, out var content, out var headers)) return false; //StaticContentHotReloadManager.TryReplaceResponseContent(_contentRootDirRelativePath, requestUri, ref statusCode, ref content, headers); var contentStream = new AutoCloseOnReadCompleteStream(content); response = new WebResourceResponse { StatusCode = statusCode, StatusMessage = statusMessage, Content = contentStream, Headers = headers, }; return true; } void IVirtualBlazorWebViewProvider.PlatformWebViewMessageReceived(object? sender, WebViewMessageReceivedEventArgs arg) { MessageReceived(arg.Source, arg.Message); } } ================================================ FILE: Source/Avalonia.BlazorWebView/Core/BlazorWebViewApplication.cs ================================================ namespace AvaloniaBlazorWebView.Core; internal class BlazorWebViewApplication : IBlazorWebViewApplication { public BlazorWebViewApplication(Action? injectDelegate, Action configDelegate) { _serviceCollection = new ServiceCollection(); injectDelegate?.Invoke(_serviceCollection); _serviceCollection.AddOptions().Configure(configDelegate); _serviceCollection.AddBlazorWebView() .AddSingleton() .AddSingleton(provider => new AvaloniaDispatcher(AvaloniaUIDispatcher.UIThread)) .AddSingleton(provider =>new JsComponentConfigration(provider.GetRequiredService())); } readonly IServiceCollection _serviceCollection; public IServiceProvider ServiceProvider => _serviceCollection.BuildServiceProvider(); } ================================================ FILE: Source/Avalonia.BlazorWebView/Core/BlazorWebViewApplicationBuilder.cs ================================================ namespace AvaloniaBlazorWebView.Core; internal class BlazorWebViewApplicationBuilder : IBlazorWebViewApplicationBuilder { public BlazorWebViewApplicationBuilder(Action? injectDelegate, Action configDelegate) { _injectDelegate = injectDelegate; _configDelegate = configDelegate; } readonly Action? _injectDelegate; readonly Action _configDelegate; public IBlazorWebViewApplication Build() => new BlazorWebViewApplication(_injectDelegate, _configDelegate); } ================================================ FILE: Source/Avalonia.BlazorWebView/Extensions/UriExtensions.cs ================================================ namespace AvaloniaBlazorWebView.Extensions; internal static class UriExtensions { internal static bool IsBaseOfPage(this Uri baseUri, string? uriString) { if (Path.HasExtension(uriString)) { // If the path ends in a file extension, it's not referring to a page. return false; } var uri = new Uri(uriString!); return baseUri.IsBaseOf(uri); } } ================================================ FILE: Source/Avalonia.BlazorWebView/IBlazorWebViewApplication.cs ================================================ namespace AvaloniaBlazorWebView; public interface IBlazorWebViewApplication { public IServiceProvider ServiceProvider { get; } } ================================================ FILE: Source/Avalonia.BlazorWebView/IBlazorWebViewApplicationBuilder.cs ================================================ namespace AvaloniaBlazorWebView; public interface IBlazorWebViewApplicationBuilder { public IBlazorWebViewApplication Build(); } ================================================ FILE: Source/Avalonia.BlazorWebView/Properties/AssemblyInfo.cs ================================================ [assembly: XmlnsPrefix("https://github.com/avaloniaui", $"{nameof(AvaloniaBlazorWebView)}")] [assembly: XmlnsDefinition("https://github.com/avaloniaui", $"{nameof(AvaloniaBlazorWebView)}")] [assembly: XmlnsPrefix("https://www.webview.com/avalonia", $"{nameof(AvaloniaBlazorWebView)}")] [assembly: XmlnsDefinition("https://www.webview.com/avalonia", $"{nameof(AvaloniaBlazorWebView)}")] ================================================ FILE: Source/Avalonia.BlazorWebView/Properties/_globalusing.cs ================================================ global using Avalonia.Metadata; global using Avalonia.Controls; global using Avalonia.Controls.Platform; global using Avalonia.Platform; global using Avalonia.Layout; global using Avalonia.Media; global using Avalonia.Media.Immutable; global using Avalonia.Utilities; global using Avalonia.Controls.Templates; global using Avalonia.Controls.Presenters; global using Avalonia.Collections; global using Avalonia; global using WebViewCore.Events; global using WebViewCore; global using AvaloniaWebView.Shared; global using WebViewCore.Configurations; global using System.Collections.ObjectModel; global using AvaloniaBlazorWebView.Core; global using Microsoft.AspNetCore.Components; global using Microsoft.AspNetCore.Components.WebView; global using Microsoft.AspNetCore.Components.Web; global using Microsoft.Extensions.FileProviders; global using Microsoft.Extensions.Primitives; global using AvaloniaBlazorWebView.Components; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Options; global using AvaloniaBlazorWebView.Configurations; global using System.Threading.Channels; global using System.Reflection; global using Microsoft.Extensions.Logging; global using Microsoft.JSInterop; global using System.Reflection.Metadata; global using System.Text; global using System.Text.RegularExpressions; global using WebViewCore.Helpers; global using WebViewCore.Models; global using AvaloniaUIDispatcher = Avalonia.Threading.Dispatcher; global using System.Buffers; global using System.Collections; global using DryIoc; global using WebViewCore.Ioc; ================================================ FILE: Source/Avalonia.WebView/Avalonia.WebView.csproj ================================================  netstandard2.0 AvaloniaWebView all all ================================================ FILE: Source/Avalonia.WebView/AvaloniaWebViewBuilder.cs ================================================ namespace AvaloniaWebView; public static class AvaloniaWebViewBuilder { public static void Initialize(Action? configDelegate) { WebViewCreationProperties creationProperties = new(); configDelegate?.Invoke(creationProperties); WebViewLocator.s_Registrator.RegisterInstance(creationProperties); } } ================================================ FILE: Source/Avalonia.WebView/Core/IEmptyView.cs ================================================ namespace AvaloniaWebView.Core; public interface IEmptyView { object? EmptyViewer { get; set; } } ================================================ FILE: Source/Avalonia.WebView/Helpers/BorderRenderHelper.cs ================================================ namespace AvaloniaWebView.Helpers; internal class BorderRenderHelper { private bool _useComplexRendering; private bool? _backendSupportsIndividualCorners; private StreamGeometry? _backgroundGeometryCache; private StreamGeometry? _borderGeometryCache; private Size _size; private Thickness _borderThickness; private CornerRadius _cornerRadius; private bool _initialized; void Update(Size finalSize, Thickness borderThickness, CornerRadius cornerRadius) { _backendSupportsIndividualCorners = true; //_backendSupportsIndividualCorners ??= AvaloniaLocator.Current.GetRequiredService().SupportsIndividualRoundRects; _size = finalSize; _borderThickness = borderThickness; _cornerRadius = cornerRadius; _initialized = true; if (borderThickness.IsUniform && (cornerRadius.IsUniform || _backendSupportsIndividualCorners == true)) { _backgroundGeometryCache = null; _borderGeometryCache = null; _useComplexRendering = false; } else { _useComplexRendering = true; var boundRect = new Rect(finalSize); var innerRect = boundRect.Deflate(borderThickness); BorderGeometryKeypoints? backgroundKeypoints = null; StreamGeometry? backgroundGeometry = null; if (innerRect.Width != 0 && innerRect.Height != 0) { backgroundGeometry = new StreamGeometry(); backgroundKeypoints = new BorderGeometryKeypoints(innerRect, borderThickness, cornerRadius, true); using var ctx = backgroundGeometry.Open(); CreateGeometry(ctx, innerRect, backgroundKeypoints); _backgroundGeometryCache = backgroundGeometry; } else _backgroundGeometryCache = null; if (boundRect.Width != 0 && boundRect.Height != 0) { var borderGeometryKeypoints = new BorderGeometryKeypoints(boundRect, borderThickness, cornerRadius, false); var borderGeometry = new StreamGeometry(); using var ctx = borderGeometry.Open(); CreateGeometry(ctx, boundRect, borderGeometryKeypoints); if (backgroundGeometry != null) CreateGeometry(ctx, innerRect, backgroundKeypoints!); _borderGeometryCache = borderGeometry; } else _borderGeometryCache = null; } } public void Render(DrawingContext context, Size finalSize, Thickness borderThickness, CornerRadius cornerRadius, IBrush? background, IBrush? borderBrush, BoxShadows boxShadows, double borderDashOffset = 0, PenLineCap borderLineCap = PenLineCap.Flat, PenLineJoin borderLineJoin = PenLineJoin.Miter, AvaloniaList? borderDashArray = null) { if (_size != finalSize || _borderThickness != borderThickness || _cornerRadius != cornerRadius || !_initialized) Update(finalSize, borderThickness, cornerRadius); RenderCore(context, background, borderBrush, boxShadows, borderDashOffset, borderLineCap, borderLineJoin, borderDashArray); } void RenderCore(DrawingContext context, IBrush? background, IBrush? borderBrush, BoxShadows boxShadows, double borderDashOffset, PenLineCap borderLineCap, PenLineJoin borderLineJoin, AvaloniaList? borderDashArray) { if (_useComplexRendering) { var backgroundGeometry = _backgroundGeometryCache; if (backgroundGeometry != null) context.DrawGeometry(background, null, backgroundGeometry); var borderGeometry = _borderGeometryCache; if (borderGeometry != null) context.DrawGeometry(borderBrush, null, borderGeometry); } else { var borderThickness = _borderThickness.Top; IPen? pen = null; ImmutableDashStyle? dashStyle = null; if (borderDashArray != null && borderDashArray.Count > 0) dashStyle = new ImmutableDashStyle(borderDashArray, borderDashOffset); if (borderBrush != null && borderThickness > 0) pen = new ImmutablePen(borderBrush.ToImmutable(), borderThickness, dashStyle, borderLineCap, borderLineJoin); var rect = new Rect(_size); if (!MathUtilities.IsZero(borderThickness)) rect = rect.Deflate(borderThickness * 0.5); var rrect = new RoundedRect(rect, _cornerRadius.TopLeft, _cornerRadius.TopRight, _cornerRadius.BottomRight, _cornerRadius.BottomLeft); context.DrawRectangle(background, pen, rrect, boxShadows); } } private static void CreateGeometry(StreamGeometryContext context, Rect boundRect, BorderGeometryKeypoints keypoints) { context.BeginFigure(keypoints.TopLeft, true); context.LineTo(keypoints.TopRight); var radiusX = boundRect.TopRight.X - keypoints.TopRight.X; var radiusY = keypoints.RightTop.Y - boundRect.TopRight.Y; if (radiusX != 0 || radiusY != 0) context.ArcTo(keypoints.RightTop, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise); context.LineTo(keypoints.RightBottom); radiusX = boundRect.BottomRight.X - keypoints.BottomRight.X; radiusY = boundRect.BottomRight.Y - keypoints.RightBottom.Y; if (radiusX != 0 || radiusY != 0) context.ArcTo(keypoints.BottomRight, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise); context.LineTo(keypoints.BottomLeft); radiusX = keypoints.BottomLeft.X - boundRect.BottomLeft.X; radiusY = boundRect.BottomLeft.Y - keypoints.LeftBottom.Y; if (radiusX != 0 || radiusY != 0) context.ArcTo(keypoints.LeftBottom, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise); // Left context.LineTo(keypoints.LeftTop); // TopLeft corner radiusX = keypoints.TopLeft.X - boundRect.TopLeft.X; radiusY = keypoints.LeftTop.Y - boundRect.TopLeft.Y; if (radiusX != 0 || radiusY != 0) context.ArcTo(keypoints.TopLeft, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise); context.EndFigure(true); } private class BorderGeometryKeypoints { internal BorderGeometryKeypoints(Rect boundRect, Thickness borderThickness, CornerRadius cornerRadius, bool inner) { var left = 0.5 * borderThickness.Left; var top = 0.5 * borderThickness.Top; var right = 0.5 * borderThickness.Right; var bottom = 0.5 * borderThickness.Bottom; double leftTopY; double topLeftX; double topRightX; double rightTopY; double rightBottomY; double bottomRightX; double bottomLeftX; double leftBottomY; if (inner) { leftTopY = Math.Max(0, cornerRadius.TopLeft - top) + boundRect.TopLeft.Y; topLeftX = Math.Max(0, cornerRadius.TopLeft - left) + boundRect.TopLeft.X; topRightX = boundRect.Width - Math.Max(0, cornerRadius.TopRight - top) + boundRect.TopLeft.X; rightTopY = Math.Max(0, cornerRadius.TopRight - right) + boundRect.TopLeft.Y; rightBottomY = boundRect.Height - Math.Max(0, cornerRadius.BottomRight - bottom) + boundRect.TopLeft.Y; bottomRightX = boundRect.Width - Math.Max(0, cornerRadius.BottomRight - right) + boundRect.TopLeft.X; bottomLeftX = Math.Max(0, cornerRadius.BottomLeft - left) + boundRect.TopLeft.X; leftBottomY = boundRect.Height - Math.Max(0, cornerRadius.BottomLeft - bottom) + boundRect.TopLeft.Y; } else { leftTopY = cornerRadius.TopLeft + top + boundRect.TopLeft.Y; topLeftX = cornerRadius.TopLeft + left + boundRect.TopLeft.X; topRightX = boundRect.Width - (cornerRadius.TopRight + right) + boundRect.TopLeft.X; rightTopY = cornerRadius.TopRight + top + boundRect.TopLeft.Y; rightBottomY = boundRect.Height - (cornerRadius.BottomRight + bottom) + boundRect.TopLeft.Y; bottomRightX = boundRect.Width - (cornerRadius.BottomRight + right) + boundRect.TopLeft.X; bottomLeftX = cornerRadius.BottomLeft + left + boundRect.TopLeft.X; leftBottomY = boundRect.Height - (cornerRadius.BottomLeft + bottom) + boundRect.TopLeft.Y; } var leftTopX = boundRect.TopLeft.X; var topLeftY = boundRect.TopLeft.Y; var topRightY = boundRect.TopLeft.Y; var rightTopX = boundRect.Width + boundRect.TopLeft.X; var rightBottomX = boundRect.Width + boundRect.TopLeft.X; var bottomRightY = boundRect.Height + boundRect.TopLeft.Y; var bottomLeftY = boundRect.Height + boundRect.TopLeft.Y; var leftBottomX = boundRect.TopLeft.X; LeftTop = new Point(leftTopX, leftTopY); TopLeft = new Point(topLeftX, topLeftY); TopRight = new Point(topRightX, topRightY); RightTop = new Point(rightTopX, rightTopY); RightBottom = new Point(rightBottomX, rightBottomY); BottomRight = new Point(bottomRightX, bottomRightY); BottomLeft = new Point(bottomLeftX, bottomLeftY); LeftBottom = new Point(leftBottomX, leftBottomY); // Fix overlap if (TopLeft.X > TopRight.X) { var scaledX = topLeftX / (topLeftX + topRightX) * boundRect.Width; TopLeft = new Point(scaledX, TopLeft.Y); TopRight = new Point(scaledX, TopRight.Y); } if (RightTop.Y > RightBottom.Y) { var scaledY = rightBottomY / (rightTopY + rightBottomY) * boundRect.Height; RightTop = new Point(RightTop.X, scaledY); RightBottom = new Point(RightBottom.X, scaledY); } if (BottomRight.X < BottomLeft.X) { var scaledX = bottomLeftX / (bottomLeftX + bottomRightX) * boundRect.Width; BottomRight = new Point(scaledX, BottomRight.Y); BottomLeft = new Point(scaledX, BottomLeft.Y); } if (LeftBottom.Y < LeftTop.Y) { var scaledY = leftTopY / (leftTopY + leftBottomY) * boundRect.Height; LeftBottom = new Point(LeftBottom.X, scaledY); LeftTop = new Point(LeftTop.X, scaledY); } } internal Point LeftTop { get; } internal Point TopLeft { get; } internal Point TopRight { get; } internal Point RightTop { get; } internal Point RightBottom { get; } internal Point BottomRight { get; } internal Point BottomLeft { get; } internal Point LeftBottom { get; } } } ================================================ FILE: Source/Avalonia.WebView/Properties/AssemblyInfo.cs ================================================ [assembly: XmlnsPrefix("https://github.com/avaloniaui", $"{nameof(AvaloniaWebView)}")] [assembly: XmlnsDefinition("https://github.com/avaloniaui", $"{nameof(AvaloniaWebView)}")] [assembly: XmlnsPrefix("https://www.webview.com/avalonia", $"{nameof(AvaloniaWebView)}")] [assembly: XmlnsDefinition("https://www.webview.com/avalonia", $"{nameof(AvaloniaWebView)}")] ================================================ FILE: Source/Avalonia.WebView/Properties/_globalusing.cs ================================================ global using Avalonia.Metadata; global using Avalonia.Controls; global using Avalonia.Controls.Platform; global using Avalonia.Platform; global using Avalonia.Layout; global using Avalonia.Media; global using Avalonia.Media.Immutable; global using Avalonia.Utilities; global using Avalonia.Controls.Templates; global using Avalonia.Controls.Presenters; global using Avalonia.Collections; global using Avalonia; global using WebViewCore.Events; global using WebViewCore; global using AvaloniaWebView.Core; global using AvaloniaWebView.Helpers; global using AvaloniaWebView.Shared; global using WebViewCore.Configurations; global using DryIoc; global using WebViewCore.Ioc; global using DryIoc.Shared.Extensions; ================================================ FILE: Source/Avalonia.WebView/WebView-AvaloniaProperty.cs ================================================ namespace AvaloniaWebView; partial class WebView { static bool LoadDependencyObjectsChanged() { ChildProperty.Changed.AddClassHandler((x, e) => x.ChildChanged(e)); EmptyViewerProperty.Changed.AddClassHandler((x, e) => x.HeaderChanged(e)); return true; } private static readonly StyledProperty ChildProperty = AvaloniaProperty.Register(nameof(Child)); public static readonly StyledProperty PaddingProperty = AvaloniaProperty.Register(nameof(Padding), defaultValue: new Thickness(0)); public static readonly StyledProperty BackgroundProperty = AvaloniaProperty.Register(nameof(Background)); public static readonly StyledProperty BorderBrushProperty = AvaloniaProperty.Register(nameof(BorderBrush)); public static readonly StyledProperty BorderThicknessProperty = AvaloniaProperty.Register(nameof(BorderThickness)); public static readonly StyledProperty CornerRadiusProperty = AvaloniaProperty.Register(nameof(CornerRadius)); public static readonly StyledProperty BoxShadowProperty = AvaloniaProperty.Register(nameof(BoxShadow)); public static readonly StyledProperty EmptyViewerProperty = AvaloniaProperty.Register(nameof(EmptyViewer)); public static readonly StyledProperty EmptyViewerTemplateProperty = AvaloniaProperty.Register(nameof(EmptyViewerTemplate)); [Content] private Control? Child { get => GetValue(ChildProperty); set => SetValue(ChildProperty, value); } private Thickness LayoutThickness { get { VerifyScale(); if (_layoutThickness == null) { var borderThickness = BorderThickness; if (UseLayoutRounding) borderThickness = LayoutHelper.RoundLayoutThickness(borderThickness, _scale, _scale); _layoutThickness = borderThickness; } return _layoutThickness.Value; } } public Thickness Padding { get => GetValue(PaddingProperty); set => SetValue(PaddingProperty, value); } public IBrush? Background { get => GetValue(BackgroundProperty); set => SetValue(BackgroundProperty, value); } public IBrush? BorderBrush { get => GetValue(BorderBrushProperty); set => SetValue(BorderBrushProperty, value); } public Thickness BorderThickness { get => GetValue(BorderThicknessProperty); set => SetValue(BorderThicknessProperty, value); } public CornerRadius CornerRadius { get => GetValue(CornerRadiusProperty); set => SetValue(CornerRadiusProperty, value); } public BoxShadows BoxShadow { get => GetValue(BoxShadowProperty); set => SetValue(BoxShadowProperty, value); } public object? EmptyViewer { get => GetValue(EmptyViewerProperty); set => SetValue(EmptyViewerProperty, value); } public IDataTemplate? EmptyViewerTemplate { get => GetValue(EmptyViewerTemplateProperty); set => SetValue(EmptyViewerTemplateProperty, value); } private void VerifyScale() { var currentScale = LayoutHelper.GetLayoutScale(this); if (MathUtilities.AreClose(currentScale, _scale)) return; _scale = currentScale; _layoutThickness = null; } protected sealed override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) { base.OnPropertyChanged(change); switch (change.Property.Name) { case nameof(UseLayoutRounding): case nameof(BorderThickness): _layoutThickness = null; break; //case nameof(CornerRadius): // if (_borderVisual != null) // _borderVisual.CornerRadius = CornerRadius; // break; } } private void ChildChanged(AvaloniaPropertyChangedEventArgs e) { var oldChild = (Control?)e.OldValue; var newChild = (Control?)e.NewValue; if (oldChild != null) { ((ISetLogicalParent)oldChild).SetParent(null); LogicalChildren.Clear(); VisualChildren.Remove(oldChild); } if (newChild != null) { ((ISetLogicalParent)newChild).SetParent(this); VisualChildren.Add(newChild); LogicalChildren.Add(newChild); } } private void HeaderChanged(AvaloniaPropertyChangedEventArgs e) { } } ================================================ FILE: Source/Avalonia.WebView/WebView-Core.cs ================================================ namespace AvaloniaWebView; partial class WebView { async Task Navigate(Uri? uri) { if (uri is null) return false; if (_platformWebView is null) return false; if (!_platformWebView.IsInitialized) { var bRet = await _platformWebView.Initialize(); if (!bRet) return false; } return _platformWebView.Navigate(uri); } async Task NavigateToString(string? htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; if (_platformWebView is null) return false; if (!_platformWebView.IsInitialized) { var bRet = await _platformWebView.Initialize(); if (!bRet) return false; } return _platformWebView.NavigateToString(htmlContent!); } } ================================================ FILE: Source/Avalonia.WebView/WebView-Events.cs ================================================ namespace AvaloniaWebView; partial class WebView { public event EventHandler? WebViewCreating; public event EventHandler? WebViewCreated; public event EventHandler? NavigationStarting; public event EventHandler? NavigationCompleted; public event EventHandler? WebMessageReceived; public event EventHandler? WebViewNewWindowRequested; } ================================================ FILE: Source/Avalonia.WebView/WebView-Host-AvaloniaProperty.cs ================================================ namespace AvaloniaWebView; partial class WebView { static bool LoadHostDependencyObjectsChanged() { UrlProperty.Changed.AddClassHandler(async (s, e) => { var oldValue = e.OldValue.Value; var newValue = e.NewValue.Value; await s.Navigate(newValue); }); HtmlContentProperty.Changed.AddClassHandler(async (s, e) => { var newValue = e.NewValue.Value; await s.NavigateToString(newValue); }); return true; } public static readonly StyledProperty UrlProperty = AvaloniaProperty.Register(nameof(Url)); public static readonly StyledProperty HtmlContentProperty = AvaloniaProperty.Register(nameof(HtmlContent)); public Uri? Url { get => GetValue(UrlProperty); set => SetValue(UrlProperty, value); } public string? HtmlContent { get => GetValue(HtmlContentProperty); set => SetValue(HtmlContentProperty, value); } } ================================================ FILE: Source/Avalonia.WebView/WebView-Override.cs ================================================ namespace AvaloniaWebView; partial class WebView { protected override Size MeasureOverride(Size availableSize) { return LayoutHelper.MeasureChild(Child, availableSize, Padding, BorderThickness); } protected override Size ArrangeOverride(Size finalSize) { return LayoutHelper.ArrangeChild(Child, finalSize, Padding, BorderThickness); } public override void Render(DrawingContext context) { _borderRenderHelper.Render(context, Bounds.Size, LayoutThickness, CornerRadius, Background, BorderBrush, BoxShadow); } protected override async void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e) { base.OnAttachedToVisualTree(e); var viewHandler = _viewHandlerProvider.CreatePlatformWebViewHandler(this, this, default, config => { config.AreDevToolEnabled = _creationProperties.AreDevToolEnabled; config.AreDefaultContextMenusEnabled = _creationProperties.AreDefaultContextMenusEnabled; config.IsStatusBarEnabled = _creationProperties.IsStatusBarEnabled; config.BrowserExecutableFolder = _creationProperties.BrowserExecutableFolder; config.UserDataFolder = _creationProperties.UserDataFolder; config.Language = _creationProperties.Language; config.AdditionalBrowserArguments = _creationProperties.AdditionalBrowserArguments; config.ProfileName = _creationProperties.ProfileName; config.IsInPrivateModeEnabled = _creationProperties.IsInPrivateModeEnabled; config.DefaultWebViewBackgroundColor = _creationProperties.DefaultWebViewBackgroundColor; }); if (viewHandler is null) throw new ArgumentNullException(nameof(viewHandler)); var control = viewHandler.AttachableControl; if (control is null) return; //Child = control; _partInnerContainer.Child = control; _platformWebView = viewHandler.PlatformWebView; await Navigate(Url); await NavigateToString(HtmlContent); } protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e) { base.OnDetachedFromVisualTree(e); Child = null; _platformWebView?.Dispose(); _platformWebView = null; } } ================================================ FILE: Source/Avalonia.WebView/WebView-VirtualView.cs ================================================ namespace AvaloniaWebView; partial class WebView { WebView IVirtualWebView.VirtualView => this; object IVirtualWebView.VirtualViewObject => this; IPlatformWebView? IVirtualWebView.PlatformView => PlatformWebView; } ================================================ FILE: Source/Avalonia.WebView/WebView-VirtualViewCallBack.cs ================================================ namespace AvaloniaWebView; partial class WebView { void IVirtualWebViewControlCallBack.PlatformWebViewCreated(object? sender, WebViewCreatedEventArgs arg) { WebViewCreated?.Invoke(sender, arg); } bool IVirtualWebViewControlCallBack.PlatformWebViewCreating(object? sender, WebViewCreatingEventArgs arg) { WebViewCreating?.Invoke(sender, arg); return true; } void IVirtualWebViewControlCallBack.PlatformWebViewMessageReceived(object? sender, WebViewMessageReceivedEventArgs arg) { WebMessageReceived?.Invoke(sender, arg); } void IVirtualWebViewControlCallBack.PlatformWebViewNavigationCompleted(object? sender, WebViewUrlLoadedEventArg arg) { NavigationCompleted?.Invoke(sender, arg); } bool IVirtualWebViewControlCallBack.PlatformWebViewNavigationStarting(object? sender, WebViewUrlLoadingEventArg arg) { NavigationStarting?.Invoke(sender, arg); return true; } bool IVirtualWebViewControlCallBack.PlatformWebViewNewWindowRequest(object? sender, WebViewNewWindowEventArgs arg) { WebViewNewWindowRequested?.Invoke(sender, arg); return true; } } ================================================ FILE: Source/Avalonia.WebView/WebView-WebViewControl.cs ================================================ namespace AvaloniaWebView; partial class WebView { public bool IsCanGoForward => _platformWebView?.IsCanGoForward ?? false; public bool IsCanGoBack => _platformWebView?.IsCanGoBack ?? false; bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Navigate(uri); } bool IWebViewControl.NavigateToString(string htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.NavigateToString(htmlContent); } public bool GoBack() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.GoBack(); } public bool GoForward() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.GoForward(); } public bool Stop() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Stop(); } public bool Reload() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.Reload(); } public Task ExecuteScriptAsync(string javaScript) { if (_platformWebView is null || !_platformWebView.IsInitialized) return Task.FromResult(default); return _platformWebView.ExecuteScriptAsync(javaScript); } public bool PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.PostWebMessageAsString(webMessageAsJson, baseUri); } public bool PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.PostWebMessageAsString(webMessageAsString, baseUri); } public bool OpenDevToolsWindow() { if (_platformWebView is null || !_platformWebView.IsInitialized) return false; return _platformWebView.OpenDevToolsWindow(); } } ================================================ FILE: Source/Avalonia.WebView/WebView.cs ================================================ namespace AvaloniaWebView; public sealed partial class WebView : Control, IVirtualWebView, IEmptyView, IWebViewEventHandler, IVirtualWebViewControlCallBack, IWebViewControl { static WebView() { AffectsRender(BackgroundProperty, BorderBrushProperty, BorderThicknessProperty, CornerRadiusProperty, BoxShadowProperty); AffectsMeasure(ChildProperty, PaddingProperty, BorderThicknessProperty); LoadDependencyObjectsChanged(); LoadHostDependencyObjectsChanged(); } public WebView() : this(default) { } public WebView(IServiceProvider? serviceProvider = default) { var properties = WebViewLocator.s_ResolverContext.GetRequiredService(); _creationProperties = properties ?? new WebViewCreationProperties(); _viewHandlerProvider = WebViewLocator.s_ResolverContext.GetRequiredService(); ClipToBounds = false; _partEmptyViewPresenter = new() { [!ContentPresenter.ContentProperty] = this[!EmptyViewerProperty], [!ContentPresenter.ContentTemplateProperty] = this[!EmptyViewerTemplateProperty], }; _partInnerContainer = new() { Child = _partEmptyViewPresenter, ClipToBounds = true, [!Border.CornerRadiusProperty] = this[!CornerRadiusProperty] }; Child = _partInnerContainer; } readonly WebViewCreationProperties _creationProperties; readonly BorderRenderHelper _borderRenderHelper = new(); readonly IViewHandlerProvider _viewHandlerProvider; readonly Border _partInnerContainer; readonly ContentPresenter _partEmptyViewPresenter; double _scale; Thickness? _layoutThickness; IPlatformWebView? _platformWebView; public IPlatformWebView? PlatformWebView => _platformWebView; } ================================================ FILE: Source/AvaloniaWebView.Shared/AppBuilderExtensions.cs ================================================ using Avalonia; using AvaloniaWebView.Shared.Core; namespace AvaloniaWebView.Shared; public static class AppBuilderExtensions { public static AppBuilder ConfigureAvaloniaHandlers(this AppBuilder builder, Action configureDelegate) { AvaloniaHandlerCollection list = new(); configureDelegate?.Invoke(list); return builder; } } ================================================ FILE: Source/AvaloniaWebView.Shared/AvaloniaWebView.Shared.csproj ================================================  netstandard2.0 AvaloniaWebView.Shared all ================================================ FILE: Source/AvaloniaWebView.Shared/Core/AvaloniaHandlerCollection.cs ================================================ namespace AvaloniaWebView.Shared.Core; internal class AvaloniaHandlerCollection : List, IAvaloniaHandlerCollection { } ================================================ FILE: Source/AvaloniaWebView.Shared/Extensions/AvaloniaCommonExtensions.cs ================================================ using System; using System.Collections.Generic; using System.Text; namespace AvaloniaWebView.Shared.Extensions; internal class AvaloniaCommonExtensions { } ================================================ FILE: Source/AvaloniaWebView.Shared/Handlers/ViewHandler.cs ================================================ using Avalonia.Controls; using Avalonia.Controls.Platform; using Avalonia.Platform; using System.Runtime.InteropServices; using WebViewCore; namespace AvaloniaWebView.Shared.Handlers; public abstract class ViewHandler : NativeControlHost, IViewHandler, INativeControlHostDestroyableControlHandle, IPlatformHandle, IDisposable { public ViewHandler() { } ~ViewHandler() { Dispose(disposing: false); } private bool _disposedValue; public HandleRef RefHandler { get; private set; } //#nullable disable public object PlatformViewContextObject { get; protected set; } = default!; public object VisualViewContextObject { get; protected set; } = default!; public IPlatformWebView PlatformWebView { get; protected set; } = default!; //#nullable restore public Control AttachableControl => this; public IntPtr Handle => RefHandler.Handle; public string? HandleDescriptor { get; protected set; } public event EventHandler? PlatformHandlerChanged; protected override IPlatformHandle CreateNativeControlCore(IPlatformHandle parent) { var nativeHandle = CreatePlatformHandler(parent, () => base.CreateNativeControlCore(parent)); RefHandler = nativeHandle; PlatformHandlerChanged?.Invoke(this, EventArgs.Empty); return this; } protected override void DestroyNativeControlCore(IPlatformHandle control) { ((IDisposable)this).Dispose(); base.DestroyNativeControlCore(control); } protected abstract HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem); protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) Disposing(); _disposedValue = true; } } protected abstract void Disposing(); void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public void Destroy() => ((IDisposable)this).Dispose(); } ================================================ FILE: Source/AvaloniaWebView.Shared/Handlers/ViewHandler@T.cs ================================================ namespace AvaloniaWebView.Shared.Handlers; //public class ViewHandler: ViewHandler where TVirtualView : Visual //{ // protected ViewHandler(IPropertyMapper mapper) : base(mapper) // { // } // //public static Func, TPlatformView>? PlatformViewFactory { get; set; } // public TPlatformView? PlatformView { get; private protected set; } // public TVirtualView? VirtualView { get; private protected set; } //} public abstract class ViewHandler : ViewHandler where TVirtualViewContext:class where TPlatformViewContext : class { public ViewHandler() { HandleDescriptor = typeof(TPlatformViewContext).FullName; } #nullable disable public TPlatformViewContext PlatformViewContext { get => PlatformViewContextObject as TPlatformViewContext; protected set => PlatformViewContextObject = value; } public TVirtualViewContext VirtualViewContext { get => VisualViewContextObject as TVirtualViewContext; protected set=> VisualViewContextObject = value; } } ================================================ FILE: Source/AvaloniaWebView.Shared/IAvaloniaHandlerCollection.cs ================================================ using System.Collections; namespace AvaloniaWebView.Shared; public interface IAvaloniaHandlerCollection : IList, ICollection, IEnumerable, IEnumerable { } ================================================ FILE: Source/AvaloniaWebView.Shared/IAvaloniaHandlerCollectionExtensions.cs ================================================ namespace AvaloniaWebView.Shared; public static class IAvaloniaHandlerCollectionExtensions { public static IAvaloniaHandlerCollection AddHandler(this IAvaloniaHandlerCollection handlersCollection) { return handlersCollection; } } ================================================ FILE: Source/AvaloniaWebView.Shared/IPropertyMapper.cs ================================================ namespace AvaloniaWebView.Shared; public interface IPropertyMapper { IEnumerable GetKeys(); } ================================================ FILE: Source/AvaloniaWebView.Shared/IPropertyMapper@T.cs ================================================ using System.ComponentModel; namespace AvaloniaWebView.Shared; public interface IPropertyMapper : IPropertyMapper where TVirtualView : INotifyPropertyChanged { void Add(string key, Action action); Action? GetProperty(string key); void UpdateProperties(TViewHandler elementHandler, TVirtualView virtualView); void UpdateProperty(TViewHandler elementHandler, TVirtualView virtualView, string key); } ================================================ FILE: Source/AvaloniaWebView.Shared/IViewHandler.cs ================================================ using Avalonia.Controls; using WebViewCore; namespace AvaloniaWebView.Shared; public interface IViewHandler { Control AttachableControl { get; } IPlatformWebView PlatformWebView { get; } } ================================================ FILE: Source/AvaloniaWebView.Shared/IViewHandlerProvider.cs ================================================ using WebViewCore; using WebViewCore.Configurations; namespace AvaloniaWebView.Shared; public interface IViewHandlerProvider { IViewHandler CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? virtualBlazorWebViewCallBack ,Action? configDelegate = default); } ================================================ FILE: Source/DryIoc.Shared/DryIoc.Shared.csproj ================================================ netstandard2.0 all ================================================ FILE: Source/DryIoc.Shared/Extensions/DryIocExtensions.cs ================================================ namespace DryIoc.Shared.Extensions; public static class DryIocExtensions { public static void RegisterSingleton(this IRegistrator regitser, Type type) => regitser.Register(type, type, Reuse.Singleton); public static void RegisterSingleton(this IRegistrator regitser, Type from, Type to) => regitser.Register(from, to, Reuse.Singleton); public static void RegisterSingleton(this IRegistrator regitser, Type type, string name) => regitser.Register(type, type, Reuse.Singleton, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterSingleton(this IRegistrator regitser, Type from, Type to, string name) => regitser.Register(from, to, Reuse.Singleton, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterSingleton(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, r => factoryMethod(), Reuse.Singleton); public static void RegisterSingleton(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, factoryMethod, Reuse.Singleton); public static void RegisterManySingleton(this IRegistrator regitser, Type type, params Type[] serviceTypes) { if (serviceTypes.Length == 0) serviceTypes = type.GetInterfaces(); regitser.RegisterMany(serviceTypes, type, Reuse.Singleton); } public static void RegisterScoped(this IRegistrator regitser, Type type) => regitser.Register(type, type, Reuse.ScopedOrSingleton); public static void RegisterScoped(this IRegistrator regitser, Type from, Type to) => regitser.Register(from, to, Reuse.ScopedOrSingleton); public static void RegisterScoped(this IRegistrator regitser, Type type, string name) => regitser.Register(type, type, Reuse.ScopedOrSingleton, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterScoped(this IRegistrator regitser, Type from, Type to, string name) => regitser.Register(from, to, Reuse.ScopedOrSingleton, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterScoped(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, r => factoryMethod(), Reuse.ScopedOrSingleton); public static void RegisterScoped(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, factoryMethod, Reuse.ScopedOrSingleton); public static void RegisterManyScoped(this IRegistrator regitser, Type type, params Type[] serviceTypes) { if (serviceTypes.Length == 0) serviceTypes = type.GetInterfaces(); regitser.RegisterMany(serviceTypes, type, Reuse.ScopedOrSingleton); } public static void RegisterTransient(this IRegistrator regitser, Type type) => regitser.Register(type, type, Reuse.Transient); public static void RegisterTransient(this IRegistrator regitser, Type from, Type to) => regitser.Register(from, to, Reuse.Transient); public static void RegisterTransient(this IRegistrator regitser, Type type, string name) => regitser.Register(type, type, Reuse.Transient, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterTransient(this IRegistrator regitser, Type from, Type to, string name) => regitser.Register(from, to, Reuse.Transient, ifAlreadyRegistered: IfAlreadyRegistered.Replace, serviceKey: name); public static void RegisterTransient(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, r => factoryMethod(), Reuse.Transient); public static void RegisterTransient(this IRegistrator regitser, Type type, Func factoryMethod) => regitser.RegisterDelegate(type, factoryMethod, Reuse.Transient); public static void RegisterManyTransient(this IRegistrator regitser, Type type, params Type[] serviceTypes) { if (serviceTypes.Length == 0) serviceTypes = type.GetInterfaces(); regitser.RegisterMany(serviceTypes, type, Reuse.Transient); } } ================================================ FILE: Source/DryIoc.Shared/Extensions/DryIocExtensionsEx.cs ================================================ namespace DryIoc.Shared.Extensions; public static class DryIocExtensionsEx { public static void RegisterSingleton(this IRegistrator regitser) => regitser.RegisterSingleton(typeof(T)); public static void RegisterSingleton(this IRegistrator regitser) => regitser.RegisterSingleton(typeof(TFrom), typeof(TTo)); public static void RegisterSingleton(this IRegistrator regitser, string name) => regitser.RegisterSingleton(typeof(T), name); public static void RegisterSingleton(this IRegistrator regitser, string name) => regitser.RegisterSingleton(typeof(TFrom), typeof(TTo), name); public static void RegisterSingleton(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.Singleton); public static void RegisterSingleton(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.Singleton); public static void RegisterManySingleton(this IRegistrator regitser, params Type[] serviceTypes) => regitser.RegisterManySingleton(typeof(T), serviceTypes); public static void RegisterScoped(this IRegistrator regitser) => regitser.RegisterScoped(typeof(T)); public static void RegisterScoped(this IRegistrator regitser) => regitser.RegisterScoped(typeof(TFrom), typeof(TTo)); public static void RegisterScoped(this IRegistrator regitser, string name) => regitser.RegisterScoped(typeof(T), name); public static void RegisterScoped(this IRegistrator regitser, string name) => regitser.RegisterScoped(typeof(TFrom), typeof(TTo), name); public static void RegisterScoped(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.ScopedOrSingleton); public static void RegisterScoped(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.ScopedOrSingleton); public static void RegisterManyScoped(this IRegistrator regitser, params Type[] serviceTypes) => regitser.RegisterManyScoped(typeof(T), serviceTypes); public static void RegisterTransient(this IRegistrator regitser) => regitser.RegisterTransient(typeof(T)); public static void RegisterTransient(this IRegistrator regitser) => regitser.RegisterTransient(typeof(TFrom), typeof(TTo)); public static void RegisterTransient(this IRegistrator regitser, string name) => regitser.RegisterTransient(typeof(T), name); public static void RegisterTransient(this IRegistrator regitser, string name) => regitser.RegisterTransient(typeof(TFrom), typeof(TTo), name); public static void RegisterTransient(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.Transient); public static void RegisterTransient(this IRegistrator regitser, Func factoryMethod) => regitser.RegisterDelegate(factoryMethod, Reuse.Transient); public static void RegisterManyTransient(this IRegistrator regitser, params Type[] serviceTypes) => regitser.RegisterManyTransient(typeof(T), serviceTypes); } ================================================ FILE: Source/DryIoc.Shared/Extensions/DryIocExtensionsTx.cs ================================================ namespace DryIoc.Shared.Extensions; public static class DryIocExtensionsTx { public static void RegisterViewAndViewModel(this IRegistrator registrator) { registrator.RegisterSingleton(); registrator.RegisterSingleton(); } public static T? GetService(this IResolverContext resolverContext) { var value = resolverContext.GetService(typeof(T)); if (value is T tValue) return tValue; return default; } public static T GetRequiredService(this IResolverContext resolverContext) { var value = resolverContext.GetService(); if (value is null) throw new ArgumentOutOfRangeException(nameof(value)); return value; } } ================================================ FILE: Source/DryIoc.Shared/Extensions/RulesExtensions.cs ================================================ namespace DryIoc.Shared.Extensions; public class RulesExtensions { public static Rules DefaultRules= Rules.Default.WithConcreteTypeDynamicRegistrations(reuse: Reuse.Transient) .With(Made.Of(FactoryMethod.ConstructorWithResolvableArguments)) .WithFuncAndLazyWithoutRegistration() .WithTrackingDisposableTransients() //.WithoutFastExpressionCompiler() .WithFactorySelector(Rules.SelectLastRegisteredFactory()); } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/AppBuilderExtensions.cs ================================================ namespace Avalonia.WebView.Android; public static class AppBuilderExtensions { public static AppBuilder UseAndroidWebView(this AppBuilder builder) { return builder.AfterPlatformServicesSetup(app => { WebViewLocator.s_Registrator.RegisterSingleton(); WebViewLocator.s_Registrator.RegisterSingleton(); }); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Avalonia.WebView.Android.csproj ================================================  net7.0-android WebView.Avalonia.Android WebView.Avalonia.Android True \ True \ all all all ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/BlazorWebViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Android; internal class BlazorWebViewHandlerProvider : IPlatformBlazorWebViewProvider { public string Scheme => "https"; public IFileProvider CreateFileProvider(Assembly? assembly, string contentRootDirFullPath) => new AndroidAssetFileProvider(assembly, contentRootDirFullPath); } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Clients/AvaloniaWebChromeClient.cs ================================================ namespace Avalonia.WebView.Android.Clients; internal class AvaloniaWebChromeClient : WebChromeClient { public AvaloniaWebChromeClient(AndroidWebViewCore androidWebViewCore) { _androidWebViewCore = androidWebViewCore; var topLevel = androidWebViewCore.GetTopLevel(); if (topLevel is null) throw new ArgumentNullException(nameof(topLevel)); _topLevel = topLevel; } readonly AndroidWebViewCore _androidWebViewCore; readonly TopLevel _topLevel; public override bool OnCreateWindow(AndroidWebView? view, bool isDialog, bool isUserGesture, Message? resultMsg) { if (view?.Context is not null) { var requestUrl = view.GetHitTestResult().Extra; var intent = new Intent(Intent.ActionView, AndroidUri.Parse(requestUrl)); intent.SetFlags(ActivityFlags.NewTask); view.Context.StartActivity(intent); } return false; } public override bool OnShowFileChooser(AndroidWebView? webView, IValueCallback? filePathCallback, FileChooserParams? fileChooserParams) { if (filePathCallback is null) return base.OnShowFileChooser(webView, filePathCallback, fileChooserParams); CallFilePickerAsync(filePathCallback, fileChooserParams).FireAndForget(); return true; } private async Task CallFilePickerAsync(IValueCallback filePathCallback, FileChooserParams? fileChooserParams) { var pickOptions = GetPickOptions(fileChooserParams); if (pickOptions is null) { filePathCallback.OnReceiveValue(default); return; } var fileResults = await _topLevel.StorageProvider.OpenFilePickerAsync(pickOptions); if (fileResults?.All(f => f is null) ?? true) { filePathCallback.OnReceiveValue(default); return; } var fileUris = new List(fileResults.Count()); foreach (var fileResult in fileResults) { if (fileResult is null) continue; var javaFile = new JavaFile(fileResult.Path.AbsoluteUri); var androidUri = AndroidUri.FromFile(javaFile); if (androidUri is not null) fileUris.Add(androidUri); } filePathCallback.OnReceiveValue(fileUris.ToArray()); return; } private static FilePickerOpenOptions? GetPickOptions(FileChooserParams? fileChooserParams) { if (fileChooserParams is null) return default; var acceptedFileTypes = fileChooserParams.GetAcceptTypes(); if (acceptedFileTypes is null || (acceptedFileTypes.Length == 1 && string.IsNullOrEmpty(acceptedFileTypes[0]))) return null; bool allowMultiple = fileChooserParams.Mode == ChromeFileChooserMode.OpenMultiple; var pickOptions = new FilePickerOpenOptions() { AllowMultiple = allowMultiple, FileTypeFilter = new List() { new FilePickerFileType("Accepted File") { Patterns = acceptedFileTypes, AppleUniformTypeIdentifiers = new string[1] { "public.accepted"}, MimeTypes = new string[1] { "accepted/*" } } } }; return pickOptions; } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Clients/AvaloniaWebViewClient.cs ================================================ using WebViewCore.Enums; namespace Avalonia.WebView.Android.Clients; [SupportedOSPlatform("android23.0")] internal class AvaloniaWebViewClient : WebViewClient { public AvaloniaWebViewClient(AndroidWebViewCore webViewHandler, IVirtualWebViewControlCallBack callBack, IVirtualBlazorWebViewProvider provider, WebScheme webScheme) { ArgumentNullException.ThrowIfNull(webViewHandler); ArgumentNullException.ThrowIfNull(callBack); ArgumentNullException.ThrowIfNull(provider); ArgumentNullException.ThrowIfNull(webScheme); _callBack = callBack; _webViewCore = webViewHandler; _provider = provider; _webView = webViewHandler.WebView; _webScheme = webScheme; } protected AvaloniaWebViewClient(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) { // This constructor is called whenever the .NET proxy was disposed, and it was recreated by Java. It also // happens when overridden methods are called between execution of this constructor and the one above. // because of these facts, we have to check all methods below for null field references and properties. } readonly AndroidWebViewCore? _webViewCore; readonly AndroidWebView? _webView; readonly IVirtualWebViewControlCallBack? _callBack; readonly IVirtualBlazorWebViewProvider? _provider; readonly WebScheme? _webScheme; bool _isStarted = false; public override bool ShouldOverrideUrlLoading(AndroidWebView? view, IWebResourceRequest? request) #pragma warning disable CA1416 => ShouldOverrideUrlLoadingCore(request) || base.ShouldOverrideUrlLoading(view, request); #pragma warning restore CA1416 public override AndroidWebResourceResponse? ShouldInterceptRequest(AndroidWebView? view, IWebResourceRequest? request) { ArgumentException.ThrowIfNullOrEmpty(nameof(request)); Func func = () => { if (_webScheme is null || _provider is null) return default; var requestUri = request?.Url?.ToString(); if (requestUri == null) return default; var allowFallbackOnHostPage = _webScheme.BaseUri.IsBaseOfPage(requestUri); var webRequest = new WebResourceRequest { RequestUri = requestUri!, AllowFallbackOnHostPage = allowFallbackOnHostPage }; if (!_provider.PlatformWebViewResourceRequested(_webViewCore, webRequest, out var webResponse)) return default; if (webResponse is null) return default; var contentType = webResponse.Headers[QueryStringHelper.ContentTypeKey]; return new AndroidWebResourceResponse(contentType, "UTF-8", webResponse.StatusCode, webResponse.StatusMessage, webResponse.Headers, webResponse.Content); }; var ret = func.Invoke(); if (ret is null) return base.ShouldInterceptRequest(view, request); else return ret; } public override void OnPageFinished(AndroidWebView? view, string? url) { base.OnPageFinished(view, url); if (view is null) return; if (string.IsNullOrWhiteSpace(url)) return; if (_webScheme is null) return; if (_webScheme.BaseUri.IsBaseOfPage(url)) RunBlazorStarupScripts(); } bool ShouldOverrideUrlLoadingCore(IWebResourceRequest? request) { if (_callBack is null || !Uri.TryCreate(request?.Url?.ToString(), UriKind.RelativeOrAbsolute, out var uri)) return false; WebViewUrlLoadingEventArg args = new() { Url = uri, RawArgs = request }; _callBack.PlatformWebViewNavigationStarting(_webViewCore, args); if (args.Cancel) return false; var newWindowEventArgs = new WebViewNewWindowEventArgs() { Url = uri, UrlLoadingStrategy = UrlRequestStrategy.OpenInWebView }; if (!_callBack.PlatformWebViewNewWindowRequest(_webViewCore, newWindowEventArgs)) return false; bool isSucceed = false; switch (newWindowEventArgs.UrlLoadingStrategy) { case UrlRequestStrategy.OpenExternally: case UrlRequestStrategy.OpenInNewWindow: var intent = Intent.ParseUri(uri.OriginalString, IntentUriType.Scheme); AndroidApplication.Context.StartActivity(intent); isSucceed = true; break; case UrlRequestStrategy.OpenInWebView: _webView?.LoadUrl(uri.OriginalString); isSucceed = true; break; case UrlRequestStrategy.CancelLoad: break; default: break; } _callBack.PlatformWebViewNavigationCompleted(_webViewCore, new WebViewUrlLoadedEventArg() {IsSuccess = isSucceed }); return true; } void RunBlazorStarupScripts() { if (_webView is null) return; _webView.EvaluateJavascript(BlazorScriptHelper.BlazorStartedScript, new JavaScriptValueCallback(blazorStarted => { var result = blazorStarted?.ToString(); if (result != BlazorScriptHelper.UndefinedString) return; _webView.EvaluateJavascript(BlazorScriptHelper.BlazorMessageScript, new JavaScriptValueCallback(_ => { _isStarted = true; BlazorMessageChannel(_webView, _provider!); _webView.EvaluateJavascript(BlazorScriptHelper.BlazorStartingScript, new JavaScriptValueCallback(_ => { })); })); })); } void BlazorMessageChannel(AndroidWebView webView, IVirtualBlazorWebViewProvider provider) { if (webView is null) return; if (provider is null) return; if (_webScheme is null) return; var nativeToJSPorts = webView.CreateWebMessageChannel(); var nativeToJs = new BlazorWebMessageCallback(message => { if (string.IsNullOrWhiteSpace(message)) return; provider.PlatformWebViewMessageReceived(_webViewCore, new WebViewMessageReceivedEventArgs() { Source = _webScheme.BaseUri, Message = message }); }); var destPort = new[] { nativeToJSPorts[1] }; nativeToJSPorts[0].SetWebMessageCallback(nativeToJs); webView.PostWebMessage(new WebMessage("capturePort", destPort), AndroidUri.Parse(_webScheme.BaseUri.AbsoluteUri)!); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Common/AndroidAssetFileProvider.cs ================================================ using Android.Content.Res; namespace Avalonia.WebView.Android.Common; internal class AndroidAssetFileProvider : IFileProvider { public AndroidAssetFileProvider(Assembly? assembly, string contentRootDir) { var assets = AndroidApplication.Context.Assets; if (assets is null) throw new ArgumentNullException(nameof(assets)); _assetManager = assets; _assembly = assembly; _contentRootDir = contentRootDir; } readonly AssetManager _assetManager; readonly Assembly? _assembly; readonly string _contentRootDir; public IDirectoryContents GetDirectoryContents(string subpath) => new AndroidAssetDirectoryContents(); public IFileInfo GetFileInfo(string subpath) => new AndroidAssetFileInfo(_assetManager, Path.Combine(_contentRootDir, subpath)); public IChangeToken Watch(string filter) => NullChangeToken.Singleton; private sealed class AndroidAssetDirectoryContents : IDirectoryContents { public bool Exists => false; public IEnumerator GetEnumerator() => throw new NotImplementedException(); IEnumerator IEnumerable.GetEnumerator() => throw new NotImplementedException(); } private sealed class AndroidAssetFileInfo : IFileInfo { public AndroidAssetFileInfo(AssetManager assetManager, string filePath) { _assetManager = assetManager; _filePath = filePath; Name = Path.GetFileName(filePath); _lazyAssetExists = new Lazy(() => { try { using var stream = _assetManager.Open(_filePath); return true; } catch { return false; } }); _lazyAssetLength = new Lazy(() => { try { // The stream returned by AssetManager.Open() is not seekable, so we have to read // the contents to get its length. In practice, Length is never called by BlazorWebView, // so it's here "just in case." using var stream = _assetManager.Open(_filePath); var buffer = ArrayPool.Shared.Rent(4096); long length = 0; while (length != (length += stream.Read(buffer))) { // just read the stream to get its length; we don't need the contents here } ArrayPool.Shared.Return(buffer); return length; } catch { return -1; } }); } readonly AssetManager _assetManager; private readonly string _filePath; private readonly Lazy _lazyAssetExists; private readonly Lazy _lazyAssetLength; public bool Exists => _lazyAssetExists.Value; public long Length => _lazyAssetLength.Value; public string? PhysicalPath => null!; public string Name { get; } public DateTimeOffset LastModified { get; } = DateTimeOffset.FromUnixTimeSeconds(0); public bool IsDirectory => false; public Stream CreateReadStream() => AssetLoader.Open(new Uri(_filePath)); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Core/AndroidWebViewCore-assist.cs ================================================ namespace Avalonia.WebView.Android.Core; partial class AndroidWebViewCore { internal TopLevel? GetTopLevel() => TopLevel.GetTopLevel(_handler); } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Core/AndroidWebViewCore-core.cs ================================================ namespace Avalonia.WebView.Android.Core; partial class AndroidWebViewCore { Task PrepareBlazorWebViewStarting(AndroidWebView webView, IVirtualBlazorWebViewProvider? provider) { if (webView is null) return Task.FromResult(false); if (provider is null) return Task.FromResult(false); if (!provider.ResourceRequestedFilterProvider(this, out var filter)) return Task.FromResult(false); _webViewClient = new AvaloniaWebViewClient(this, _callBack, provider, filter); _webChromeClient = new AvaloniaWebChromeClient(this); webView.SetWebViewClient(_webViewClient); webView.SetWebChromeClient(_webChromeClient); _isBlazorWebView = true; return Task.FromResult(true); } void ClearBlazorWebViewCompleted() { _isBlazorWebView = false; } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Core/AndroidWebViewCore-event.cs ================================================ namespace Avalonia.WebView.Android.Core; partial class AndroidWebViewCore { void RegisterEvents() { _handler.SizeChanged += HostControl_SizeChanged; _handler.PlatformHandlerChanged += Handler_PlatformHandlerChanged; } void UnregisterEvents() { _handler.SizeChanged -= HostControl_SizeChanged; _handler.PlatformHandlerChanged -= Handler_PlatformHandlerChanged; } private void HostControl_SizeChanged(object? sender, SizeChangedEventArgs e) { //e.Handled = true; } private void Handler_PlatformHandlerChanged(object? sender, EventArgs e) { } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Core/AndroidWebViewCore-override.cs ================================================ namespace Avalonia.WebView.Android.Core; partial class AndroidWebViewCore { AndroidWebViewCore IPlatformWebView.PlatformView => this; public nint NativeHandler { get; private set; } bool IPlatformWebView.IsInitialized => IsInitialized; object? IPlatformWebView.PlatformViewContext => this; bool IWebViewControl.IsCanGoForward => WebView.CanGoForward(); bool IWebViewControl.IsCanGoBack => WebView.CanGoBack(); Task IWebViewControl.ExecuteScriptAsync(string javaScript) { _webView.EvaluateJavascript(javaScript, new JavaScriptValueCallback(result => { })); throw new NotImplementedException(); } bool IWebViewControl.GoBack() { var webView = WebView; if (webView is null) return false; if (!webView.CanGoBack()) return false; webView.GoBack(); return true; } bool IWebViewControl.GoForward() { var webView = WebView; if (webView is null) return false; if (!webView.CanGoForward()) return false; webView.GoForward(); return true; } async Task IPlatformWebView.Initialize() { if (IsInitialized) return true; var webView = WebView; webView.Settings.SetSupportMultipleWindows(true); webView.Settings.JavaScriptEnabled = true; webView.Settings.DomStorageEnabled = true; webView.Settings.SetSupportZoom(true); //webview.ZoomBy(1.2f); var bRet = await PrepareBlazorWebViewStarting(webView, _provider); if (!bRet) { _webViewClient = new WebViewClient(); _webChromeClient = new WebChromeClient(); webView.SetWebViewClient(_webViewClient); webView.SetWebChromeClient(_webChromeClient); } IsInitialized = true; _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = true }); return true; } bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; var webView = WebView; if (webView is null) return false; webView.LoadUrl(uri.AbsoluteUri); return true; } bool IWebViewControl.NavigateToString(string htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; var webView = WebView; if (webView is null) return false; webView.LoadData(htmlContent, default, default); return true; } bool IWebViewControl.OpenDevToolsWindow() { throw new NotImplementedException(); } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { var webView = WebView; if (webView is null) return false; if (string.IsNullOrWhiteSpace(webMessageAsJson)) return false; try { var basUri = _provider?.BaseUri; var androidUri = AndroidUri.Parse(baseUri?.AbsoluteUri); if (androidUri is null) return false; webView.PostWebMessage(new WebMessage(webMessageAsJson), androidUri); return true; } catch (Exception) { } return false; } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { var webView = WebView; if (webView is null) return false; if (string.IsNullOrWhiteSpace(webMessageAsString)) return false; try { var basUri = _provider?.BaseUri; var androidUri = AndroidUri.Parse(baseUri?.AbsoluteUri); if (androidUri is null) return false; webView.PostWebMessage(new WebMessage(webMessageAsString), androidUri); return true; } catch (Exception) { } return false; } bool IWebViewControl.Reload() { var webView = WebView; if (webView is null) return false; webView.Reload(); return true; } bool IWebViewControl.Stop() { var webView = WebView; if (webView is null) return false; webView.StopLoading(); return true; } protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { // TODO: dispose managed state (managed objects) } ClearBlazorWebViewCompleted(); UnregisterEvents(); WebView.Dispose(); WebView = default!; IsDisposed = true; } } void IDisposable.Dispose() { // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method Dispose(disposing: true); GC.SuppressFinalize(this); } ValueTask IAsyncDisposable.DisposeAsync() { ((IDisposable)this)?.Dispose(); return new ValueTask(); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Core/AndroidWebViewCore.cs ================================================ namespace Avalonia.WebView.Android.Core; public partial class AndroidWebViewCore : IPlatformWebView { public AndroidWebViewCore(ViewHandler handler, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { _provider = provider; _callBack = callback; _handler = handler; _creationProperties = webViewCreationProperties; _callBack.PlatformWebViewCreating(this, new WebViewCreatingEventArgs()); AndroidWebView.SetWebContentsDebuggingEnabled(webViewCreationProperties.AreDevToolEnabled); var parentContext = AndroidApplication.Context; var webView = new AndroidWebView(parentContext) { #pragma warning disable CS0618, CA1422 // Type or member is obsolete // Validate platform compatibility LayoutParameters = new AbsoluteLayout.LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent, 0, 0), #pragma warning restore CS0618, CA1422 // Type or member is obsolete }; webView.SetBackgroundColor(new AndroidColor(webViewCreationProperties.DefaultWebViewBackgroundColor.R, webViewCreationProperties.DefaultWebViewBackgroundColor.G, webViewCreationProperties.DefaultWebViewBackgroundColor.B)); _webView = webView; NativeHandler = webView.Handle; RegisterEvents(); } ~AndroidWebViewCore() { Dispose(disposing: false); } AndroidWebView _webView; readonly IVirtualBlazorWebViewProvider? _provider; readonly IVirtualWebViewControlCallBack _callBack; readonly ViewHandler _handler; readonly WebViewCreationProperties _creationProperties; bool _isBlazorWebView = false; bool _isInitialized = false; public bool IsInitialized { get => Volatile.Read(ref _isInitialized); private set => Volatile.Write(ref _isInitialized, value); } bool _isdisposed = false; public bool IsDisposed { get => Volatile.Read(ref _isdisposed); private set => Volatile.Write(ref _isdisposed, value); } WebViewClient? _webViewClient; WebChromeClient? _webChromeClient; public AndroidWebView WebView { get => _webView; set => _webView = value; } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Handlers/BlazorWebMessageCallback.cs ================================================ namespace Avalonia.WebView.Android.Handlers; internal class BlazorWebMessageCallback : WebMessagePort.WebMessageCallback { private readonly Action _onMessageReceived; public BlazorWebMessageCallback(Action onMessageReceived) { _onMessageReceived = onMessageReceived ?? throw new ArgumentNullException(nameof(onMessageReceived)); } public override void OnMessage(WebMessagePort? port, WebMessage? message) { if (message is null) throw new ArgumentNullException(nameof(message)); _onMessageReceived(message.Data); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Handlers/JavaScriptValueCallback.cs ================================================ namespace Avalonia.WebView.Android.Handlers; internal class JavaScriptValueCallback : Java.Lang.Object, IValueCallback { public JavaScriptValueCallback(Action callback) { ArgumentNullException.ThrowIfNull(callback); _callback = callback; } readonly Action _callback; public void OnReceiveValue(Java.Lang.Object? value) { _callback?.Invoke(value); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Helpers/BlazorScriptHelper.cs ================================================ namespace Avalonia.WebView.Android.Helpers; internal class BlazorScriptHelper { public const string BlazorStartedScript = """ (function() { return typeof(window.__BlazorStarted); })(); """; public const string UndefinedString = """ "undefined" """; public const string BlazorMessageScript = """ const channel = new MessageChannel(); var nativeJsPortOne = channel.port1; var nativeJsPortTwo = channel.port2; window.addEventListener('message', function (event) { if (event.data != 'capturePort') { nativeJsPortOne.postMessage(event.data) } else if (event.data == 'capturePort') { if (event.ports[0] != null) { nativeJsPortTwo = event.ports[0] } } }, false); nativeJsPortOne.addEventListener('message', function (event) { }, false); nativeJsPortTwo.addEventListener('message', function (event) { // data from native code to JS if (window.external.__callback) { window.external.__callback(event.data); } }, false); nativeJsPortOne.start(); nativeJsPortTwo.start(); window.external.sendMessage = function (message) { // data from JS to native code nativeJsPortTwo.postMessage(message); }; window.external.receiveMessage = function (callback) { window.external.__callback = callback; } """; public const string BlazorStartingScript = """ Blazor.start(); window.__BlazorStarted = true; """; } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/Properties/_globalusing.cs ================================================ global using Android.Webkit; global using Avalonia; global using Avalonia.Controls; global using Avalonia.Controls.Platform; global using Avalonia.Data; global using Avalonia.Platform; global using System.ComponentModel; global using Android.Content; global using AndroidWebView = Android.Webkit.WebView; global using AndroidApplication = Android.App.Application; global using AndroidUri = Android.Net.Uri; global using AndroidWebResourceResponse = Android.Webkit.WebResourceResponse; global using AndroidColor = Android.Graphics.Color; global using JavaFile = Java.IO.File; global using System.Runtime.InteropServices; global using AvaloniaWebView.Shared.Handlers; global using WebViewCore.Configurations; global using WebViewCore; global using AvaloniaWebView.Shared; global using Android.OS; global using Android.Views; global using Avalonia.Platform.Storage; global using Avalonia.WebView.Android.Handlers; global using WebViewCore.Extensions; global using Avalonia.WebView.Android.Core; global using Android.Runtime; global using System.Runtime.Versioning; global using WebViewCore.Models; global using Avalonia.WebView.Android.Clients; global using static Android.Views.ViewGroup; global using Microsoft.Extensions.FileProviders; global using Microsoft.Extensions.Primitives; global using System.Buffers; global using System.Collections; global using Avalonia.WebView.Android.Helpers; global using WebViewCore.Events; global using WebViewCore.Helpers; global using Avalonia.WebView.Android.Common; global using System.Reflection; global using DryIoc.Shared.Extensions; global using WebViewCore.Ioc; ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/ViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Android; internal class ViewHandlerProvider : IViewHandlerProvider { IViewHandler IViewHandlerProvider.CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? provider, Action? configDelegate) { var creatonProperty = new WebViewCreationProperties(); configDelegate?.Invoke(creatonProperty); return new WebViewHandler(virtualView, virtualViewCallBack, provider, creatonProperty); } } ================================================ FILE: Source/Platform/Android/Avalonia.WebView.Android/WebViewHandler.cs ================================================ using Avalonia.WebView.Android.Core; namespace Avalonia.WebView.Android; public class WebViewHandler : ViewHandler { public WebViewHandler(IVirtualWebView virtualWebView, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { var webView = new AndroidWebViewCore(this, callback, provider, webViewCreationProperties); _webViewCore = webView; PlatformWebView = webView; VirtualViewContext = virtualWebView; PlatformViewContext = webView; } readonly AndroidWebViewCore _webViewCore; protected override HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem) { //var handler = createFromSystem.Invoke(); return new HandleRef(this, _webViewCore.NativeHandler); } protected override void Disposing() { PlatformWebView.Dispose(); PlatformWebView = default!; VirtualViewContext = default!; } } ================================================ FILE: Source/Platform/Desktop/Avalonia.WebView.Desktop/AppBuilderExtensions.cs ================================================ using System.Runtime.InteropServices; namespace Avalonia.WebView.Desktop; public static class AppBuilderExtensions { public static AppBuilder UseDesktopWebView(this AppBuilder builder, bool isWslDevelop = false) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) builder.UseWindowWebView(); else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) builder.UseMacCatalystWebView(); else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) builder.UseLinuxWebView(isWslDevelop); return builder; } } ================================================ FILE: Source/Platform/Desktop/Avalonia.WebView.Desktop/Avalonia.WebView.Desktop.csproj ================================================  netstandard2.0 WebView.Avalonia.Desktop WebView.Avalonia.Desktop True \ True \ ================================================ FILE: Source/Platform/Desktop/Avalonia.WebView.DesktopX/AppBuilderExtensions.cs ================================================ using Avalonia.WebView.Desktop; namespace Avalonia.WebView.DesktopX; public static class AppBuilderExtensions { public static AppBuilder UseDesktopWebView(this AppBuilder builder, bool isWslDevelop = false) { #if __WINDOWS__ builder.UseWindowWebView(); #elif __OSX__ builder.UseMacCatalystWebView(); //builder.UseOSXWebView(); #elif __LINUX__ builder.UseLinuxWebView(isWslDevelop); #endif return builder; } } ================================================ FILE: Source/Platform/Desktop/Avalonia.WebView.DesktopX/Avalonia.WebView.DesktopX.csproj ================================================ netstandard2.0 ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/AppBuilderExtensions.cs ================================================ using Avalonia.WebView.Linux; using Linux.WebView.Core; namespace Avalonia.WebView.Desktop; public static class AppBuilderExtensions { public static AppBuilder UseLinuxWebView(this AppBuilder builder, bool isWslDevelop) { //GtkApi.SetAllowedBackends("x11"); //Environment.SetEnvironmentVariable("WAYLAND_DISPLAY", "/proc/fake-display-to-prevent-wayland-initialization-by-gtk3"); return builder.AfterPlatformServicesSetup(app => { WebViewLocator.s_Registrator.RegisterSingleton(() => LinuxApplicationBuilder.Build(isWslDevelop)); WebViewLocator.s_Registrator.RegisterSingleton(); WebViewLocator.s_Registrator.RegisterSingleton(); }); } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Avalonia.WebView.Linux.csproj ================================================  netstandard2.0 WebView.Avalonia.Linux WebView.Avalonia.Linux $(TargetsForTfmSpecificContentInPackage);CopyTargetsForTfmSpecificContentInPackage $(TargetFramework) lib/$(TargetFramework)/ $(TargetFramework) $(TargetFramework) $(TargetFramework) $(TargetFramework) True \ True \ all all all all ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/BlazorWebViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Linux; internal class BlazorWebViewHandlerProvider : IPlatformBlazorWebViewProvider { public string Scheme => "app"; public IFileProvider CreateFileProvider(Assembly? assembly, string contentRootDirFullPath) { if (Directory.Exists(contentRootDirFullPath)) return new PhysicalFileProvider(contentRootDirFullPath); else return new NullFileProvider(); } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Core/LinuxWebViewCore-assist.cs ================================================ namespace Avalonia.WebView.Linux.Core; partial class LinuxWebViewCore { private void WebView_UserMessageReceived(object o, UserMessageReceivedArgs args) { } private void WebView_PermissionRequest(object o, PermissionRequestArgs args) { args.Request.Allow(); } private void WebView_DecidePolicy(object o, DecidePolicyArgs args) { } bool WebView_DecidePolicy(nint pWebView, nint pPolicyDecision, PolicyDecisionType type) { if (type == PolicyDecisionType.Response) return true; var policyDecision = new NavigationPolicyDecision(pPolicyDecision); #pragma warning disable CS0612 // Type or member is obsolete var navigationRequest = policyDecision.Request; #pragma warning restore CS0612 // Type or member is obsolete if (navigationRequest is null) { policyDecision.Ignore(); return false; } var uriString = navigationRequest.Uri; var uri = new Uri(uriString); WebViewUrlLoadingEventArg args = new () { Url = uri, RawArgs = policyDecision }; bool isSucceed = false; try { _callBack.PlatformWebViewNavigationStarting(this, args); if (args.Cancel) { policyDecision.Ignore(); return false; } if (_webScheme?.BaseUri.IsBaseOf(uri) == true) { policyDecision.Use(); isSucceed = true; return true; } var newWindowEventArgs = new WebViewNewWindowEventArgs() { Url = uri, UrlLoadingStrategy = type == PolicyDecisionType.NewWindowAction ? UrlRequestStrategy.OpenInWebView : UrlRequestStrategy.OpenExternally }; if (!_callBack.PlatformWebViewNewWindowRequest(this, newWindowEventArgs)) { policyDecision.Ignore(); return false; } switch (newWindowEventArgs.UrlLoadingStrategy) { case UrlRequestStrategy.OpenExternally: case UrlRequestStrategy.OpenInNewWindow: OpenUriHelper.OpenInProcess(uri); policyDecision.Ignore(); isSucceed = true; break; case UrlRequestStrategy.OpenInWebView: policyDecision.Use(); isSucceed = true; break; case UrlRequestStrategy.CancelLoad: default: policyDecision.Ignore(); return false; } } catch (Exception) { isSucceed = false; } _callBack.PlatformWebViewNavigationCompleted(this, new WebViewUrlLoadedEventArg() { IsSuccess = isSucceed, RawArgs = policyDecision }); return true; } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Core/LinuxWebViewCore-core.cs ================================================ using Linux.WebView.Core; namespace Avalonia.WebView.Linux.Core; unsafe partial class LinuxWebViewCore { Task PrepareBlazorWebViewStarting(IVirtualBlazorWebViewProvider? provider, WebKitWebView webView) { if (provider is null || WebView is null) return Task.CompletedTask; if (!provider.ResourceRequestedFilterProvider(this, out var filter)) return Task.CompletedTask; _webScheme = filter; var bRet = _dispatcher.InvokeAsync(() => { //webView.Context.RegisterUriScheme("app", WebView_WebResourceRequest); webView.Context.RegisterUriScheme(filter.Scheme, WebView_WebResourceRequest); var userContentManager = webView.UserContentManager; var script = GtkApi.CreateUserScriptX(BlazorScriptHelper.BlazorStartingScript); GtkApi.AddScriptForUserContentManager(userContentManager.Handle, script); GtkApi.ReleaseScript(script); GtkApi.AddSignalConnect(userContentManager.Handle, $"script-message-received::{_messageKeyWord}", LinuxApplicationManager.LoadFunction(_userContentMessageReceived), IntPtr.Zero); GtkApi.RegisterScriptMessageHandler(userContentManager.Handle, _messageKeyWord); }).Result; _isBlazorWebView = true; return Task.CompletedTask; } void ClearBlazorWebViewCompleted(WebKitWebView webView) { if (webView is null) return; var bRet = _dispatcher.InvokeAsync(() => { //webView.UserContentManager.UnregisterScriptMessageHandler(_messageKeyWord); //webView.RemoveSignalHandler($"script-message-received::{_messageKeyWord}", WebView_WebMessageReceived); }).Result; _isBlazorWebView = false; } void WebView_WebMessageReceived(nint pContentManager, nint pJsResult, nint pArg) { //var userContentManager = new UserContentManager(pContentManager); //var jsValue = JavascriptResult.New(pJsResult); if (_provider is null) return; var pJsStringValue = GtkApi.CreateJavaScriptResult(pJsResult); if (!pJsStringValue.IsStringEx()) return; var message = new WebViewMessageReceivedEventArgs { Message = pJsStringValue.ToStringEx(), Source = _provider.BaseUri, }; GtkApi.ReleaseJavaScriptResult(pJsResult); _callBack.PlatformWebViewMessageReceived(this, message); _provider?.PlatformWebViewMessageReceived(this, message); } unsafe void WebView_WebResourceRequest(URISchemeRequest request) { if (_provider is null) return; if (_webScheme is null) return; if (request.Scheme != _webScheme.Scheme) return; //bool allowFallbackOnHostPage = request.Path == "/"; var allowFallbackOnHostPage = _webScheme.BaseUri.IsBaseOfPage(request.Uri); var requestWrapper = new WebResourceRequest { RequestUri = request.Uri, AllowFallbackOnHostPage = allowFallbackOnHostPage, }; var bRet = _provider.PlatformWebViewResourceRequested(this, requestWrapper, out var response); if (!bRet) return; if (response is null) return; var headerString = response.Headers[QueryStringHelper.ContentTypeKey]; using var ms = new MemoryStream(); response.Content.CopyTo(ms); var pBuffer = GtkApi.MarshalToGLibInputStream(ms.GetBuffer(), ms.Length); using var inputStream = new GLib.InputStream(pBuffer); request.Finish(inputStream, ms.Length, headerString); } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Core/LinuxWebViewCore-event.cs ================================================ using Linux.WebView.Core; namespace Avalonia.WebView.Linux.Core; unsafe partial class LinuxWebViewCore { void RegisterEvents() { _handler.SizeChanged += HostControl_SizeChanged; _handler.PlatformHandlerChanged += Handler_PlatformHandlerChanged; } void UnregisterEvents() { _handler.SizeChanged -= HostControl_SizeChanged; _handler.PlatformHandlerChanged -= Handler_PlatformHandlerChanged; } private void HostControl_SizeChanged(object sender, SizeChangedEventArgs e) { } private void Handler_PlatformHandlerChanged(object sender, EventArgs e) { } void RegisterWebViewEvents(WebKitWebView webView) { if (webView is null) return; var bRet = _dispatcher.InvokeAsync(() => { GtkApi.AddSignalConnect(webView.Handle, "decide-policy", LinuxApplicationManager.LoadFunction(_decidePolicyArgsChanged), IntPtr.Zero); webView.DecidePolicy += WebView_DecidePolicy; webView.PermissionRequest += WebView_PermissionRequest; webView.UserMessageReceived += WebView_UserMessageReceived; //webView.UserContentManager.AddSignalHandler("script-message-received::webview", WebView_WebMessageReceived); }).Result; } void UnregisterWebViewEvents(WebKitWebView webView) { if (webView is null) return; var bRet = _dispatcher.InvokeAsync(() => { webView.DecidePolicy -= WebView_DecidePolicy; webView.PermissionRequest -= WebView_PermissionRequest; webView.UserMessageReceived -= WebView_UserMessageReceived; }).Result; } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Core/LinuxWebViewCore-override.cs ================================================ namespace Avalonia.WebView.Linux.Core; partial class LinuxWebViewCore { public IntPtr NativeHandler { get; private set; } LinuxWebViewCore IPlatformWebView.PlatformView => this; bool IPlatformWebView.IsInitialized => IsInitialized; object? IPlatformWebView.PlatformViewContext => this; bool IWebViewControl.IsCanGoForward => _dispatcher.InvokeAsync(WebView.CanGoForward).Result; bool IWebViewControl.IsCanGoBack => _dispatcher.InvokeAsync(WebView.CanGoBack).Result; async Task IPlatformWebView.Initialize() { if (IsInitialized) return true; try { var bRet = _dispatcher.InvokeAsync(() => { WebView.Settings.EnableDeveloperExtras = _creationProperties.AreDevToolEnabled; WebView.Settings.AllowFileAccessFromFileUrls = true; WebView.Settings.AllowModalDialogs = true; WebView.Settings.AllowTopNavigationToDataUrls = true; WebView.Settings.AllowUniversalAccessFromFileUrls = true; WebView.Settings.EnableBackForwardNavigationGestures = true; WebView.Settings.EnableCaretBrowsing = false; WebView.Settings.EnableMediaCapabilities = true; WebView.Settings.EnableMediaStream = true; WebView.Settings.JavascriptCanAccessClipboard = true; WebView.Settings.JavascriptCanOpenWindowsAutomatically = true; }).Result; RegisterWebViewEvents(WebView); await PrepareBlazorWebViewStarting(_provider, WebView); IsInitialized = true; _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = true }); return true; } catch (Exception ex) { _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = false, Message = ex.ToString() }); } return false; } Task IWebViewControl.ExecuteScriptAsync(string javaScript) { if (string.IsNullOrWhiteSpace(javaScript)) return Task.FromResult(default); var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(javaScript); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; var bRet = _dispatcher.InvokeAsync(() => { WebView.RunJavascript(script, default, (GLib.Object source_object, GLib.IAsyncResult res) => { }); }) .Result; return Task.FromResult(string.Empty); } bool IWebViewControl.GoBack() { return _dispatcher.InvokeAsync(() => { if (!WebView.CanGoBack()) return false; WebView.GoBack(); return true; }).Result; } bool IWebViewControl.GoForward() { return _dispatcher.InvokeAsync(() => { if (!WebView.CanGoForward()) return false; WebView.GoForward(); return true; }).Result; } bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; return _dispatcher.InvokeAsync(() => WebView.LoadUri(uri.AbsoluteUri)).Result; } bool IWebViewControl.NavigateToString(string htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; return _dispatcher.InvokeAsync(() => WebView.LoadHtml(htmlContent)).Result; } bool IWebViewControl.OpenDevToolsWindow() { return false; } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsJson)) return false; var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(webMessageAsJson); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; return _dispatcher.InvokeAsync(() => { WebView.RunJavascript(script, default, (GLib.Object source_object, GLib.IAsyncResult res) => { }); }).Result; } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsString)) return false; var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(webMessageAsString); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; return _dispatcher.InvokeAsync(() => { WebView.RunJavascript(script, default, (GLib.Object source_object, GLib.IAsyncResult res) => { }); }).Result; } bool IWebViewControl.Reload() => _dispatcher.InvokeAsync(WebView.Reload).Result; bool IWebViewControl.Stop() => _dispatcher.InvokeAsync(WebView.StopLoading).Result; protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { try { ClearBlazorWebViewCompleted(WebView); UnregisterWebViewEvents(WebView); UnregisterEvents(); var ret = _dispatcher.InvokeAsync(() => { WebView.Dispose(); _hostWindow.Dispose(); }).Result; } catch (Exception) { } } IsDisposed = true; } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ValueTask IAsyncDisposable.DisposeAsync() { ((IDisposable)this)?.Dispose(); return new ValueTask(); } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Core/LinuxWebViewCore.cs ================================================ using Linux.WebView.Core; namespace Avalonia.WebView.Linux.Core; public partial class LinuxWebViewCore : IPlatformWebView { public LinuxWebViewCore(ILinuxApplication linuxApplication, ViewHandler handler, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { _application = linuxApplication; _provider = provider; _messageKeyWord = "webview"; _callBack = callback; _handler = handler; _creationProperties = webViewCreationProperties; _callBack.PlatformWebViewCreating(this, new WebViewCreatingEventArgs()); _dispatcher = linuxApplication.Dispatcher; var gtkWrapper = linuxApplication.CreateWebView().Result; _hostWindow = gtkWrapper.Item1; _webView = gtkWrapper.Item2; NativeHandler = gtkWrapper.Item3; _hostWindowX11Handle = gtkWrapper.Item3; _userContentMessageReceived = WebView_WebMessageReceived; _decidePolicyArgsChanged = WebView_DecidePolicy; RegisterEvents(); } ~LinuxWebViewCore() { Dispose(disposing: false); } delegate void void_nint_nint_nint(nint arg0, nint arg1, nint arg2); delegate bool bool_nint_nint_policytype(nint arg0, nint arg1, PolicyDecisionType type); readonly GWindow _hostWindow; readonly WebKitWebView _webView; readonly IntPtr _hostWindowX11Handle; readonly ILinuxApplication _application; readonly ILinuxDispatcher _dispatcher; readonly string _messageKeyWord; readonly IVirtualBlazorWebViewProvider? _provider; readonly IVirtualWebViewControlCallBack _callBack; readonly ViewHandler _handler; readonly WebViewCreationProperties _creationProperties; readonly string _dispatchMessageCallback = "__dispatchMessageCallback"; readonly void_nint_nint_nint _userContentMessageReceived; readonly bool_nint_nint_policytype _decidePolicyArgsChanged; WebScheme? _webScheme; bool _isBlazorWebView = false; bool _isInitialized = false; public bool IsInitialized { get => Volatile.Read(ref _isInitialized); private set => Volatile.Write(ref _isInitialized, value); } bool _isdisposed = false; public bool IsDisposed { get => Volatile.Read(ref _isdisposed); private set => Volatile.Write(ref _isdisposed, value); } public WebKitWebView WebView => _webView; } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Handlers/JavaScriptValueCallback.cs ================================================ namespace Avalonia.WebView.Linux.Handlers; internal class JavaScriptValueCallback : GLib.Object, GLib.IAsyncResult { public JavaScriptValueCallback(Action callback) { _callback = callback; } readonly Action _callback; public GLib.Object SourceObject => throw new NotImplementedException(); public IntPtr UserData => throw new NotImplementedException(); public bool IsTagged(IntPtr source_tag) { return true; } public bool LegacyPropagateError() { return false; } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Helpers/BlazorScriptHelper.cs ================================================ namespace Avalonia.WebView.Linux.Helpers; internal class BlazorScriptHelper { public const string BlazorStartingScript = """ window.__receiveMessageCallbacks = []; window.__dispatchMessageCallback = function(message) { window.__receiveMessageCallbacks.forEach(function(callback) { callback(message); }); }; window.external = { sendMessage: function(message) { window.webkit.messageHandlers.webview.postMessage(message); }, receiveMessage: function(callback) { window.__receiveMessageCallbacks.push(callback); } }; Blazor.start(); """; } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/Properties/_globalusing.cs ================================================  global using Avalonia.Data; global using System.ComponentModel; global using Avalonia.Platform; global using System.Runtime.InteropServices; global using Avalonia.Platform.Interop; global using AvaloniaWebView.Shared.Handlers; global using WebViewCore; global using Avalonia.Controls; global using WebViewCore.Configurations; global using AvaloniaWebView.Shared; global using Avalonia.Input; global using System.Drawing; global using WebViewCore.Events; global using WebViewCore.Models; global using Avalonia.WebView.Linux.Helpers; global using Microsoft.Extensions.FileProviders; global using System.Reflection; global using System.Web; global using GWindow = Gtk.Window; global using WebKitWebView = WebKit.WebView; global using DryIoc.Shared.Extensions; global using WebViewCore.Ioc; global using WebKit; global using WebViewCore.Enums; global using WebViewCore.Helpers; global using Linux.WebView.Core.Interoperates; global using WebViewCore.Extensions; ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/ViewHandlerProvider.cs ================================================ using Avalonia.Controls.ApplicationLifetimes; using Linux.WebView.Core; namespace Avalonia.WebView.Linux; internal class ViewHandlerProvider : IViewHandlerProvider { public ViewHandlerProvider() { _linuxApplication = WebViewLocator.s_ResolverContext.GetRequiredService(); var bRet = _linuxApplication.RunAsync(default, default).Result; if (!bRet) throw new ArgumentNullException(nameof(ILinuxApplication), "create gtk application failed!"); if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime deskTop) deskTop.ShutdownRequested += DeskTop_ShutdownRequested; } readonly ILinuxApplication _linuxApplication; IViewHandler IViewHandlerProvider.CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? provider, Action? configDelegate) { var creatonProperty = new WebViewCreationProperties(); configDelegate?.Invoke(creatonProperty); return new WebViewHandler(_linuxApplication, virtualView, virtualViewCallBack, provider, creatonProperty); } private void DeskTop_ShutdownRequested(object sender, ShutdownRequestedEventArgs e) { _linuxApplication.Dispose(); } } ================================================ FILE: Source/Platform/Linux/Avalonia.WebView.Linux/WebViewHandler.cs ================================================ using Avalonia.WebView.Linux.Core; using Linux.WebView.Core; namespace Avalonia.WebView.Linux; public class WebViewHandler : ViewHandler { public WebViewHandler(ILinuxApplication linuxApplication, IVirtualWebView virtualWebView, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { var webView = new LinuxWebViewCore(linuxApplication, this, callback, provider, webViewCreationProperties); _webViewCore = webView; PlatformWebView = webView; VirtualViewContext = virtualWebView; PlatformViewContext = webView; } readonly LinuxWebViewCore _webViewCore; protected override HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem) { //var handler = createFromSystem.Invoke(); return new HandleRef(this, _webViewCore.NativeHandler); } protected override void Disposing() { PlatformWebView.Dispose(); PlatformWebView = default!; VirtualViewContext = default!; } } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Core/LinuxApplication.cs ================================================ namespace Linux.WebView.Core; internal class LinuxApplication : ILinuxApplication { static LinuxApplication() { } public LinuxApplication(bool isWslDevelop) { _isWslDevelop = isWslDevelop; _dispatcher = new LinuxDispatcher(); } ~LinuxApplication() { Dispose(disposing: false); } private readonly bool _isWslDevelop; readonly ILinuxDispatcher _dispatcher; //Task? _appRunning; Thread? _appThread; GDisplay? _defaultDisplay; GApplication? _application; bool _isRunning = false; public bool IsRunning { get => _isRunning; protected set => _isRunning = value; } bool _isDisposed; public bool IsDisposed { get => _isDisposed; protected set => _isDisposed = value; } bool ILinuxApplication.IsRunning => IsRunning; ILinuxDispatcher ILinuxApplication.Dispatcher => _dispatcher; Task ILinuxApplication.RunAsync(string? applicationName, string[]? args) { if (IsRunning) return Task.FromResult(true); var tcs = new TaskCompletionSource(); //_appRunning = Task.Factory.StartNew(obj => //{ // Environment.SetEnvironmentVariable("WAYLAND_DISPLAY", "/proc/fake-display-to-prevent-wayland-initialization-by-gtk3"); // if (!_isWslDevelop) // GtkApi.SetAllowedBackends("x11,wayland,quartz,*"); // //GtkApi.SetAllowedBackends("x11"); // GApplication.Init(); // _defaultDisplay = GDisplay.Default; // // _application = new("WebView.Application", GLib.ApplicationFlags.None); // _application.Register(GLib.Cancellable.Current); // // _dispatcher.Start(); // IsRunning = true; // // tcs.SetResult(true); // GApplication.Run(); //}, TaskCreationOptions.LongRunning); // _appThread = new Thread(()=> Run(tcs)) { Name = "GTK3WORKINGTHREAD", IsBackground = true, }; _appThread.Start(); return tcs.Task; } void Run(TaskCompletionSource taskSource) { if (!_isWslDevelop) GtkApi.SetAllowedBackends("x11"); //GtkApi.SetAllowedBackends("x11,wayland,quartz,*"); Environment.SetEnvironmentVariable("WAYLAND_DISPLAY", "/proc/fake-display-to-prevent-wayland-initialization-by-gtk3"); try { GApplication.Init(); _application = new("WebView.Application", GLib.ApplicationFlags.None); _application.Register(GLib.Cancellable.Current); _dispatcher.Start(); _defaultDisplay = GDisplay.Default; IsRunning = true; taskSource.SetResult(true); GApplication.Run(); } catch { taskSource.SetResult(false); } } Task ILinuxApplication.StopAsync() { if (!IsRunning) return Task.CompletedTask; _application = null; _dispatcher.Stop(); GApplication.Quit(); _appThread?.Join(); //_appRunning?.Wait(); return Task.CompletedTask; } protected virtual async void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { } await ((ILinuxApplication)this).StopAsync(); _defaultDisplay?.Dispose(); _defaultDisplay = null; IsDisposed = true; } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } Task<(GWindow, WebKitWebView, IntPtr hostHandle)> ILinuxApplication.CreateWebView() { if (!_isRunning) throw new InvalidOperationException(nameof(IsRunning)); return _dispatcher.InvokeAsync(() => { GWindow window = new("WebView.Gtk.Window"); _application?.AddWindow(window); window.KeepAbove = true; //window.DefaultSize = new GSize(100,100); WebKitWebView webView = new(new Settings(){ EnableFullscreen = true}); window.Add(webView); window.ShowAll(); return (window, webView, window.X11Handle()); }); } } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Core/LinuxDispatcher.cs ================================================ namespace Linux.WebView.Core; internal class LinuxDispatcher : ILinuxDispatcher { public LinuxDispatcher() { } bool _isRunning = false; bool ILinuxDispatcher.Start() { _isRunning = true; return true; } bool ILinuxDispatcher.Stop() { _isRunning = false; return true; } Task ILinuxDispatcher.InvokeAsync(Action action) { if (action is null) throw new ArgumentNullException(nameof(action)); if (!_isRunning) return Task.FromResult(false); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke((s, e) => { action?.Invoke(); task.SetResult(true); }); }); return task.Task; } Task ILinuxDispatcher.InvokeAsync(Action action) { if (action is null) throw new ArgumentNullException(nameof(action)); if (!_isRunning) return Task.FromResult(false); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke((s, e) => { action?.Invoke(s, e); task.SetResult(true); }); }); return task.Task; } Task ILinuxDispatcher.InvokeAsync(object sender, EventArgs args, Action action) { if (action is null) throw new ArgumentNullException(nameof(action)); if (!_isRunning) return Task.FromResult(false); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke(sender, args,(s, e) => { action?.Invoke(s, e); task.SetResult(true); }); }); return task.Task; } Task ILinuxDispatcher.InvokeAsync(Func func) { if (func is null) throw new ArgumentNullException(nameof(func)); if (!_isRunning) return Task.FromResult(default(T)!); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke((s, e) => { var ret = func.Invoke(); task.SetResult(ret); }); }); return task.Task; } Task ILinuxDispatcher.InvokeAsync(Func func) { if (func is null) throw new ArgumentNullException(nameof(func)); if (!_isRunning) return Task.FromResult(default(T)!); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke((s, e) => { var ret = func.Invoke(s, e); task.SetResult(ret); }); }); return task.Task; } Task ILinuxDispatcher.InvokeAsync(object sender, EventArgs args, Func func) { if (func is null) throw new ArgumentNullException(nameof(func)); if (!_isRunning) return Task.FromResult(default(T)!); var task = new TaskCompletionSource(); Task.Run(() => { GApplication.Invoke(sender, args,(s, e) => { var ret = func.Invoke(s, e); task.SetResult(ret); }); }); return task.Task; } } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Extensions/GtkWindowExtesnsions.cs ================================================ namespace Linux.WebView.Core.Extensions; public static class GtkWindowExtesnsions { public static nint X11Handle(this GWidget widget) => GtkApi.GetWidgetXid(widget); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/ILinuxApplication.cs ================================================ namespace Linux.WebView.Core; public interface ILinuxApplication : IDisposable { bool IsRunning { get; } ILinuxDispatcher Dispatcher { get; } Task RunAsync(string? applicationName, string[]? args); Task<(GWindow, WebKitWebView, IntPtr hostHandle)> CreateWebView(); Task StopAsync(); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/ILinuxDispatcher.cs ================================================ namespace Linux.WebView.Core; public interface ILinuxDispatcher { internal bool Start(); internal bool Stop(); Task InvokeAsync(Action action); Task InvokeAsync(Action action); Task InvokeAsync(object sender, EventArgs args, Action action); Task InvokeAsync(Func func); Task InvokeAsync(Func func); Task InvokeAsync(object sender, EventArgs args, Func func); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/GSList.cs ================================================ namespace Linux.WebView.Core.Interoperates; [StructLayout(LayoutKind.Sequential)] unsafe struct GSList { public readonly nint Data; public readonly GSList* Next; } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/GtkApi.cs ================================================ using System.Runtime.CompilerServices; using static Linux.WebView.Core.LinuxApplicationManager; namespace Linux.WebView.Core.Interoperates; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate IntPtr gdk_set_allowed_backends_delegate(string backends); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate nint gdk_x11_window_get_xid_delegate(nint gdkWindowHandle); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void gtk_widget_realize_delegate(nint widgetHandle); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate ulong g_signal_connect_data_delegate(nint instance, string detailed_signal, nint c_handler, nint data, nint destroy_data, GConnectFlags connect_flags); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate nint g_memory_input_stream_new_from_data_delegate(byte[] data, uint length, nint destroy); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate nint webkit_user_script_new_delegate(string script, WebKitUserContentInjectedFrames injected_frames, WebKitUserScriptInjectionTime injection_time, string? allow_list, string? block_list); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void webkit_user_script_unref_delegate(nint scriptHandle); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void webkit_user_content_manager_add_script_delegate(nint userContentManagerInstance, nint script); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate bool webkit_user_content_manager_register_script_message_handler_delegate(nint userContentManagerInstance, string name); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate nint webkit_javascript_result_get_js_value_delegate(nint jsResult); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void webkit_javascript_result_unref_delegate(nint jsResult); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate bool jsc_value_is_string_delegate(nint value); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate nint jsc_value_to_string_delegate(nint value); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void webkit_policy_decision_ignore_delegate(nint decision); public static class GtkApi { static GtkApi() { __gdk_set_allowed_backends = LoadDelegate(gLibrary.Gdk, gdk_set_allowed_backends)!; __gdk_x11_window_get_xid = LoadDelegate(gLibrary.Gdk, gdk_x11_window_get_xid)!; __gtk_widget_realize_delegate = LoadDelegate(gLibrary.Gtk, gtk_widget_realize)!; __g_signal_connect_data = LoadDelegate(gLibrary.Gtk, g_signal_connect_data)!; __g_memory_input_stream_new_from_data = LoadDelegate(gLibrary.Gtk, g_memory_input_stream_new_from_data)!; __webkit_user_script_new = LoadDelegate(gLibrary.Webkit, webkit_user_script_new)!; __webkit_user_script_unref = LoadDelegate(gLibrary.Webkit, webkit_user_script_unref)!; __webkit_user_content_manager_add_script = LoadDelegate(gLibrary.Webkit, webkit_user_content_manager_add_script)!; __webkit_user_content_manager_register_script_message_handler = LoadDelegate(gLibrary.Webkit, webkit_user_content_manager_register_script_message_handler)!; __webkit_javascript_result_get_js_value = LoadDelegate(gLibrary.Webkit, webkit_javascript_result_get_js_value)!; __webkit_javascript_result_unref = LoadDelegate(gLibrary.Webkit, webkit_javascript_result_unref)!; __jsc_value_is_string = LoadDelegate(gLibrary.Webkit, jsc_value_is_string)!; __jsc_value_to_string = LoadDelegate(gLibrary.Webkit, jsc_value_to_string)!; __webkit_policy_decision_ignore = LoadDelegate(gLibrary.Webkit, webkit_policy_decision_ignore)!; } private static string gdk_set_allowed_backends => nameof(gdk_set_allowed_backends); private static string gtk_widget_realize => nameof(gtk_widget_realize); private static string gdk_x11_window_get_xid => nameof(gdk_x11_window_get_xid); private static string g_signal_connect_data => nameof(g_signal_connect_data); private static string g_memory_input_stream_new_from_data => nameof(g_memory_input_stream_new_from_data); private static string webkit_user_script_new => nameof(webkit_user_script_new); private static string webkit_user_script_unref => nameof(webkit_user_script_unref); private static string webkit_user_content_manager_add_script => nameof(webkit_user_content_manager_add_script); private static string webkit_user_content_manager_register_script_message_handler => nameof(webkit_user_content_manager_register_script_message_handler); private static string webkit_javascript_result_get_js_value => nameof(webkit_javascript_result_get_js_value); private static string webkit_javascript_result_unref => nameof(webkit_javascript_result_unref); private static string jsc_value_is_string => nameof(jsc_value_is_string); private static string jsc_value_to_string => nameof(jsc_value_to_string); private static string webkit_policy_decision_ignore => nameof(webkit_policy_decision_ignore); private static gdk_set_allowed_backends_delegate __gdk_set_allowed_backends; private static gdk_x11_window_get_xid_delegate __gdk_x11_window_get_xid; private static gtk_widget_realize_delegate __gtk_widget_realize_delegate; private static g_signal_connect_data_delegate __g_signal_connect_data; private static g_memory_input_stream_new_from_data_delegate __g_memory_input_stream_new_from_data; private static webkit_user_script_new_delegate __webkit_user_script_new; private static webkit_user_script_unref_delegate __webkit_user_script_unref; private static webkit_user_content_manager_add_script_delegate __webkit_user_content_manager_add_script; private static webkit_user_content_manager_register_script_message_handler_delegate __webkit_user_content_manager_register_script_message_handler; private static webkit_javascript_result_get_js_value_delegate __webkit_javascript_result_get_js_value; private static webkit_javascript_result_unref_delegate __webkit_javascript_result_unref; private static jsc_value_is_string_delegate __jsc_value_is_string; private static jsc_value_to_string_delegate __jsc_value_to_string; private static webkit_policy_decision_ignore_delegate __webkit_policy_decision_ignore; public static bool SetAllowedBackends(string backends) { if (string.IsNullOrWhiteSpace(backends)) return false; try { var hWnd = __gdk_set_allowed_backends.Invoke(backends); if (hWnd == IntPtr.Zero) { } } catch (Exception) { return false; } return true; } public static nint GetWidgetXid(GWidget widget) { if (widget is null) return 0; return __gdk_x11_window_get_xid.Invoke(widget.Window.Handle); } public static void WidgetRealize(GWidget widget) { if (widget is null) return; __gtk_widget_realize_delegate.Invoke(widget.Handle); } public static ulong AddSignalConnect(nint instance, string detailed_signal, nint c_handler, nint data) { return __g_signal_connect_data.Invoke(instance, detailed_signal, c_handler, data, IntPtr.Zero, GConnectFlags.G_CONNECT_AFTER); } public static nint MarshalToGLibInputStream(byte[] data, uint length, nint destroy) => __g_memory_input_stream_new_from_data.Invoke(data, length, destroy); public static nint MarshalToGLibInputStream(byte[] data, long length) => MarshalToGLibInputStream(data, (uint)length, IntPtr.Zero); public static UserScript? CreateUserScript(string script) { if (string.IsNullOrWhiteSpace(script)) return default; var scriptHandle = __webkit_user_script_new.Invoke(script, WebKitUserContentInjectedFrames.WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES, WebKitUserScriptInjectionTime.WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START, null, null); return UserScript.New(scriptHandle); } public static nint CreateUserScriptX(string script) { if (string.IsNullOrWhiteSpace(script)) return default; return __webkit_user_script_new.Invoke(script, WebKitUserContentInjectedFrames.WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES, WebKitUserScriptInjectionTime.WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START, null, null); } public static void ReleaseScript(nint scriptHandle) => __webkit_user_script_unref.Invoke(scriptHandle); public static void AddScriptForUserContentManager(nint userContentManager, nint script) => __webkit_user_content_manager_add_script.Invoke(userContentManager, script); public static bool RegisterScriptMessageHandler(nint userContentManager, string name) => __webkit_user_content_manager_register_script_message_handler.Invoke(userContentManager, name); public static nint CreateJavaScriptResult(nint jsResult) => __webkit_javascript_result_get_js_value.Invoke(jsResult); public static void ReleaseJavaScriptResult(nint jsResult) => __webkit_javascript_result_unref.Invoke(jsResult); public static bool IsString(nint value) => __jsc_value_is_string.Invoke(value); public static bool IsStringEx(this nint value) => IsString(value); public static nint ToString(nint value) => __jsc_value_to_string.Invoke(value); public static string ToStringX(nint value) { var pString = ToString(value); var stringValue = Marshal.PtrToStringAuto(pString); Marshal.FreeHGlobal(pString); return stringValue; } public static string ToStringEx(this nint value) => ToStringX(value); public static void IgnorePolicyDecision(nint decision) => __webkit_policy_decision_ignore.Invoke(decision); public static void IgnorePolicyDecision(this PolicyDecision decision) => IgnorePolicyDecision(decision.Handle); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_gdk.cs ================================================ namespace Linux.WebView.Core.Interoperates; internal class Interop_gdk { //const string _Gdk = "gdk"; const string _Gdk = "libgdk-3.so.0"; [DllImport(_Gdk)] public static extern ulong g_signal_connect_data(nint instance, string detailed_signal, nint c_handler, nint data, nint destroy_data, GConnectFlags connect_flags); public static ulong g_signal_connect(nint instance, string detailed_signal, nint c_handler, nint data) { return g_signal_connect_data(instance, detailed_signal, c_handler, data, 0, 0); } [DllImport(_Gdk)] public static extern nint g_memory_input_stream_new_from_data(byte[] data, uint len, nint destroy); [DllImport(_Gdk)] public static extern void g_free(nint o); [DllImport(_Gdk)] public static extern nint gdk_x11_window_foreign_new_for_display(nint display, nint xid); [DllImport(_Gdk)] public static extern nint gdk_x11_window_get_xid(nint window); [DllImport(_Gdk)] public static extern nint gdk_set_allowed_backends(string backends); [DllImport(_Gdk)] public static extern nint gdk_display_get_default(); [DllImport(_Gdk)] public static extern void gdk_window_set_transient_for(nint window, nint parent); public static void SetWindowParent(nint gdkWindow, nint x11Window) => gdk_window_set_transient_for(gdkWindow, x11Window); public static nint GetForeignWindow(nint display, nint xid) => gdk_x11_window_foreign_new_for_display(display, xid); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_gdk_x11.cs ================================================ namespace Linux.WebView.Core.Interoperates; internal class Interop_gdk_x11 { const string _Gdk_x11 = "libgdk-x11-2.0.so.0"; [DllImport(_Gdk_x11, CallingConvention = CallingConvention.Cdecl)] public static extern nint gdk_x11_drawable_get_xid(nint gdkWindowHandle); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_glib.cs ================================================ namespace Linux.WebView.Core.Interoperates; public delegate bool timeout_callback(IntPtr data); internal unsafe class Interop_glib { //const string _Glib = "glib"; const string _Glib = "libglib-2.0.so.0"; [DllImport(_Glib)] public static extern void g_slist_free(GSList* data); [DllImport(_Glib)] private static extern ulong g_timeout_add_full(int prio, uint interval, timeout_callback callback, nint data, nint destroy); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_gobject.cs ================================================ namespace Linux.WebView.Core.Interoperates; internal class Interop_gobject { //const string _GObject = "gobject"; const string _GObject = "libgobject-2.0.so.0"; [DllImport(_GObject)] private static extern void g_object_ref(nint instance); [DllImport(_GObject)] private static extern ulong g_signal_connect_object(nint instance, string signal, nint handler, nint userData, int flags); [DllImport(_GObject)] private static extern void g_object_unref(nint instance); [DllImport(_GObject)] private static extern ulong g_signal_handler_disconnect(nint instance, ulong connectionId); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_gtk.cs ================================================ namespace Linux.WebView.Core.Interoperates; public enum GtkWindowType : int { GTK_WINDOW_TOPLEVEL, GTK_WINDOW_WINDOW_POPUP } public enum GConnectFlags : int { G_CONNECT_AFTER, G_CONNECT_SWAPPED } enum GtkFileChooserAction { Open, Save, SelectFolder, } // ReSharper disable UnusedMember.Global enum GtkResponseType { Help = -11, Apply = -10, No = -9, Yes = -8, Close = -7, Cancel = -6, Ok = -5, DeleteEvent = -4, Accept = -3, Reject = -2, None = -1, } internal unsafe class Interop_gtk { //const string _Gtk = "gtk"; const string _Gtk = "libgtk-3.so.0"; [DllImport(_Gtk)] public static extern ulong g_signal_connect_data(nint instance, string detailed_signal, nint c_handler, nint data, nint destroy_data, GConnectFlags connect_flags); public static ulong g_signal_connect(nint instance, string detailed_signal, nint c_handler, nint data) { return g_signal_connect_data(instance, detailed_signal, c_handler, data, 0, 0); } [DllImport(_Gtk)] public static extern nint g_memory_input_stream_new_from_data(byte[] data, uint len, nint destroy); [DllImport(_Gtk)] public static extern void g_free(nint o); [DllImport(_Gtk)] public static extern void gtk_main_iteration(); [DllImport(_Gtk)] public static extern void gtk_window_set_modal(nint window, bool modal); [DllImport(_Gtk)] public static extern void gtk_window_present(nint gtkWindow); public delegate bool signal_generic(nint gtkWidget, nint userData); public delegate bool signal_dialog_response(nint gtkWidget, GtkResponseType response, nint userData); [DllImport(_Gtk)] public static extern nint gtk_file_chooser_dialog_new(string title, nint parent, GtkFileChooserAction action, nint ignore); [DllImport(_Gtk)] public static extern void gtk_file_chooser_set_select_multiple(nint chooser, bool allow); [DllImport(_Gtk)] public static extern void gtk_file_chooser_set_do_overwrite_confirmation(nint chooser, bool do_overwrite_confirmation); [DllImport(_Gtk)] public static extern void gtk_dialog_add_button(nint raw, string button_text, GtkResponseType response_id); [DllImport(_Gtk)] public static extern GSList* gtk_file_chooser_get_filenames(nint chooser); [DllImport(_Gtk)] public static extern void gtk_file_chooser_set_filename(nint chooser, string file); [DllImport(_Gtk)] public static extern void gtk_file_chooser_set_current_name(nint chooser, string file); [DllImport(_Gtk)] public static extern nint gtk_file_filter_new(); [DllImport(_Gtk)] public static extern nint gtk_file_filter_set_name(nint filter, string name); [DllImport(_Gtk)] public static extern nint gtk_file_filter_add_pattern(nint filter, string pattern); [DllImport(_Gtk)] public static extern nint gtk_file_chooser_add_filter(nint chooser, nint filter); [DllImport(_Gtk)] public static extern nint gtk_file_chooser_get_filter(nint chooser); [DllImport(_Gtk)] public static extern void gtk_widget_realize(nint gtkWidget); [DllImport(_Gtk)] public static extern void gtk_widget_destroy(nint gtkWidget); [DllImport(_Gtk)] public static extern nint gtk_widget_get_window(nint gtkWidget); [DllImport(_Gtk)] public static extern void gtk_widget_hide(nint gtkWidget); [DllImport(_Gtk)] public static extern bool gtk_init_check(int argc, nint argv); [DllImport(_Gtk)] public static extern nint gtk_container_add(nint container, nint widget); [DllImport(_Gtk)] public static extern nint gtk_application_new(string appId, int flags); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/Interop_webkit.cs ================================================ namespace Linux.WebView.Core.Interoperates; public enum WebKitUserContentInjectedFrames { WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES = 0, WEBKIT_USER_CONTENT_INJECT_TOP_FRAME = 1 } public enum WebKitUserScriptInjectionTime { WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START = 0, WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END = 1 } internal static class Interop_webkit { const string _WebKit = "webkit"; [DllImport(_WebKit)] public static extern nint webkit_user_script_new(string source, WebKitUserContentInjectedFrames injected_frames, WebKitUserScriptInjectionTime injection_time, string? allow_list, string? block_list); [DllImport(_WebKit)] public static extern void webkit_user_content_manager_add_script(nint manager, nint script); [DllImport(_WebKit)] public static extern void webkit_user_script_unref(nint script); [DllImport(_WebKit)] public static extern bool webkit_user_content_manager_register_script_message_handler(nint manager, string name); [DllImport(_WebKit)] public static extern void webkit_javascript_result_unref(nint js_result); [DllImport(_WebKit)] public static extern nint webkit_javascript_result_get_js_value(nint js_result); [DllImport(_WebKit)] public static extern bool jsc_value_is_string(nint value); [DllImport(_WebKit)] public static extern nint jsc_value_to_string(nint value); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/LibraryLoader.cs ================================================ namespace Linux.WebView.Core.Interoperates; internal class LibraryLoader { private const int RTLD_LAZY = 0x0001; private const int RTLD_GLOBAL = 0x0100; [DllImport("libdl.so.2")] private static extern IntPtr dlopen(string path, int flags); [DllImport("libdl.so.2")] private static extern IntPtr dlsym(IntPtr handle, string symbol); public static IntPtr LoadLibrary(string path) => dlopen(path, RTLD_GLOBAL | RTLD_LAZY); public static IntPtr GetProcAddress(IntPtr hModule, string procName) => dlsym(hModule, procName); public static T? LoadDelegate(IntPtr procaddress) { if (procaddress == IntPtr.Zero) return default; return Marshal.GetDelegateForFunctionPointer(procaddress); } public static IntPtr LoadFunction(T @delegate) { if (@delegate is null) return IntPtr.Zero; return Marshal.GetFunctionPointerForDelegate(@delegate); } } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Interoperates/gLibrary.cs ================================================ namespace Linux.WebView.Core.Interoperates; public enum gLibrary { GLib, GObject, Cairo, Gio, Atk, Pango, PangoCairo, Gdk, GdkPixbuf, Gtk, GtkSource, Webkit } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Linux.WebView.Core.csproj ================================================  netstandard2.0 all all ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/LinuxApplicationBuilder.cs ================================================ namespace Linux.WebView.Core; public class LinuxApplicationBuilder { public static ILinuxApplication Build(bool isWslDevelop) => new LinuxApplication(isWslDevelop); } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/LinuxApplicationManager.cs ================================================ namespace Linux.WebView.Core; public class LinuxApplicationManager { static LinuxApplicationManager() { _librariesNotFound = new(); _libraries = new(); _libraryDefinitions = new(); _libraryDefinitions[gLibrary.GLib] = new string[4] { "libglib-2.0-0.dll", "libglib-2.0.so.0", "libglib-2.0.0.dylib", "glib-2.dll" }; _libraryDefinitions[gLibrary.GObject] = new string[4] { "libgobject-2.0-0.dll", "libgobject-2.0.so.0", "libgobject-2.0.0.dylib", "gobject-2.dll" }; _libraryDefinitions[gLibrary.Cairo] = new string[4] { "libcairo-2.dll", "libcairo.so.2", "libcairo.2.dylib", "cairo.dll" }; _libraryDefinitions[gLibrary.Gio] = new string[4] { "libgio-2.0-0.dll", "libgio-2.0.so.0", "libgio-2.0.0.dylib", "gio-2.dll" }; _libraryDefinitions[gLibrary.Atk] = new string[4] { "libatk-1.0-0.dll", "libatk-1.0.so.0", "libatk-1.0.0.dylib", "atk-1.dll" }; _libraryDefinitions[gLibrary.Pango] = new string[4] { "libpango-1.0-0.dll", "libpango-1.0.so.0", "libpango-1.0.0.dylib", "pango-1.dll" }; _libraryDefinitions[gLibrary.Gdk] = new string[4] { "libgdk-3-0.dll", "libgdk-3.so.0", "libgdk-3.0.dylib", "gdk-3.dll" }; _libraryDefinitions[gLibrary.GdkPixbuf] = new string[4] { "libgdk_pixbuf-2.0-0.dll", "libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.dylib", "gdk_pixbuf-2.dll" }; _libraryDefinitions[gLibrary.Gtk] = new string[4] { "libgtk-3-0.dll", "libgtk-3.so.0", "libgtk-3.0.dylib", "gtk-3.dll" }; _libraryDefinitions[gLibrary.PangoCairo] = new string[4] { "libpangocairo-1.0-0.dll", "libpangocairo-1.0.so.0", "libpangocairo-1.0.0.dylib", "pangocairo-1.dll" }; _libraryDefinitions[gLibrary.GtkSource] = new string[4] { "libgtksourceview-4-0.dll", "libgtksourceview-4.so.0", "libgtksourceview-4.0.dylib", "gtksourceview-4.dll" }; _libraryDefinitions[gLibrary.Webkit] = new string[4] { "libwebkit2gtk-4.0.dll", "libwebkit2gtk-4.0.so.37", "libwebkit2gtk-4.0.dylib", "libwebkit2gtk-4.0.0.dll" }; } private static Dictionary _libraryDefinitions; private static Dictionary _libraries; private static HashSet _librariesNotFound; static nint Load(gLibrary library) { if (_libraries.TryGetValue(library, out var value)) return value; if (TryGet(library, out value)) return value; throw new DllNotFoundException(library.ToString() + ": " + string.Join(", ", _libraryDefinitions[library])); } static bool TryGet(gLibrary library, out nint ret) { ret = IntPtr.Zero; if (_libraries.TryGetValue(library, out ret)) return true; if (_librariesNotFound.Contains(library)) return false; ret = LibraryLoader.LoadLibrary(_libraryDefinitions[library][1]); if (ret == IntPtr.Zero) { for (int i = 0; i < _libraryDefinitions[library].Length; i++) { ret = LibraryLoader.LoadLibrary(_libraryDefinitions[library][i]); if (ret != IntPtr.Zero) break; } } if (ret != IntPtr.Zero) _libraries[library] = ret; else _librariesNotFound.Add(library); return ret != IntPtr.Zero; } public static bool IsSupported(gLibrary library) { IntPtr ret; return TryGet(library, out ret); } public static T? LoadDelegate(gLibrary library, string procName) { var hModule = Load(library); if (hModule == IntPtr.Zero) return default; var pFunction = LibraryLoader.GetProcAddress(hModule, procName); if (pFunction == IntPtr.Zero) return default; return LibraryLoader.LoadDelegate(pFunction); } public static nint LoadFunction(T @delegate) { return LibraryLoader.LoadFunction(@delegate); } } ================================================ FILE: Source/Platform/Linux/Linux.WebView.Core/Properties/_globalusing.cs ================================================ global using Linux.WebView.Core.Extensions; global using Linux.WebView.Core.Interoperates; global using System.Runtime.InteropServices; global using WebKit; global using GDisplay = Gdk.Display; global using GSize = Gdk.Size; global using GApplication = Gtk.Application; global using GWidget = Gtk.Widget; global using GWindow = Gtk.Window; global using WebKitWebView = WebKit.WebView; ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/AppBuilderExtensions.cs ================================================ namespace Avalonia.WebView.Mac; public static class AppBuilderExtensions { public static AppBuilder UseOSXWebView(this AppBuilder builder) { return builder.AfterPlatformServicesSetup(app => { WebViewLocator.s_Registrator.RegisterSingleton(); WebViewLocator.s_Registrator.RegisterSingleton(); }); } } //新版本的macOS及iOS都强制必须使用https网页访问,如果需要支持老的http网页,还需要在Info.plist中增加一行:App Transport Security Settings,类型为字典项,其中增加一项:Allow Arbitrary Loads,值为YES。 //完成以上4项,网页已经可以访问了。 ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Avalonia.WebView.Mac.csproj ================================================  netstandard2.0 10.14 ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/BlazorWebViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Mac; internal class BlazorWebViewHandlerProvider : IPlatformBlazorWebViewProvider { public string Scheme => "app"; public IFileProvider CreateFileProvider(Assembly? assembly, string contentRootDirFullPath) { if (Directory.Exists(contentRootDirFullPath)) return new PhysicalFileProvider(contentRootDirFullPath); else return new NullFileProvider(); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Core/MacWebViewCore-assist.cs ================================================ namespace Avalonia.WebView.Mac.Core; partial class MacWebViewCore { } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Core/MacWebViewCore-core.cs ================================================ using Avalonia.WebView.Mac.Delegates; using Avalonia.WebView.Mac.Helpers; using System.Web; namespace Avalonia.WebView.Mac.Core; partial class MacWebViewCore { Task PrepareBlazorWebViewStarting(IVirtualBlazorWebViewProvider? provider) { if (provider is null ) return Task.CompletedTask; if (!provider.ResourceRequestedFilterProvider(this, out var filter)) return Task.CompletedTask; MacosWebView.RegisterUrlSchemeAsLocal(filter.Scheme); WebView.PolicyDelegate = new WebViewNavigationDelegate(); WebView.ResourceLoadDelegate = new WebViewResourceLoadDelegate(); WebView.FrameLoadDelegate = new WebViewFrameLoadDelegate(); //WebView.UIDelegate = new WebViewUIDelegate(); //NSHttpUrlResponse var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(BlazorScriptHelper.BlazorStartingScript); var result= WebView.StringByEvaluatingJavaScriptFromString(messageJSStringLiteral); //var result1 = WebView.StringByEvaluatingJavaScriptFromString(BlazorScriptHelper.BlazorStaredScript); _isBlazorWebView = true; return Task.CompletedTask; } void ClearBlazorWebViewCompleted() { _isBlazorWebView = false; } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Core/MacWebViewCore-event.cs ================================================ namespace Avalonia.WebView.Mac.Core; partial class MacWebViewCore { void RegisterEvents() { _handler.SizeChanged += HostControl_SizeChanged; _handler.PlatformHandlerChanged += Handler_PlatformHandlerChanged; } void UnregisterEvents() { _handler.SizeChanged -= HostControl_SizeChanged; _handler.PlatformHandlerChanged -= Handler_PlatformHandlerChanged; } private void HostControl_SizeChanged(object sender, SizeChangedEventArgs e) { } private void Handler_PlatformHandlerChanged(object sender, EventArgs e) { } void RegisterWebViewEvents(MacosWebView webView) { if (webView is null) return; //WebView.DecidePolicyForNewWindow += WebView_DecidePolicyForNewWindow; webView.ReceivedTitle += WebView_ReceivedTitle; webView.FinishedLoad += WebView_FinishedLoad; webView.FailedLoadWithError += WebView_FailedLoadWithError; webView.OnReceivedResponse += WebView_OnReceivedResponse; webView.WindowScriptObjectAvailable += WebView_WindowScriptObjectAvailable; webView.WillPerformClientRedirect += WebView_WillPerformClientRedirect; } void UnregisterWebViewEvents(MacosWebView webView) { if (webView is null) return; webView.ReceivedTitle -= WebView_ReceivedTitle; webView.FinishedLoad -= WebView_FinishedLoad; webView.FailedLoadWithError -= WebView_FailedLoadWithError; webView.OnReceivedResponse -= WebView_OnReceivedResponse; webView.WindowScriptObjectAvailable -= WebView_WindowScriptObjectAvailable; } private void WebView_WillPerformClientRedirect(object sender, WebFrameClientRedirectEventArgs e) { } private void WebView_FailedLoadWithError(object sender, WebFrameErrorEventArgs e) { //e.ForFrame.StopLoading(); } private void WebView_FinishedLoad(object sender, WebFrameEventArgs e) { //e.ForFrame. } private void WebView_ReceivedTitle(object sender, WebFrameTitleEventArgs e) { } private void WebView_WindowScriptObjectAvailable(object sender, WebFrameScriptObjectEventArgs e) { } private void WebView_OnReceivedResponse(object sender, WebResourceReceivedResponseEventArgs e) { } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Core/MacWebViewCore-override.cs ================================================ using System.Web; namespace Avalonia.WebView.Mac.Core; partial class MacWebViewCore { public IntPtr NativeHandler { get; private set; } MacWebViewCore IPlatformWebView.PlatformView => this; bool IPlatformWebView.IsInitialized => IsInitialized; object? IPlatformWebView.PlatformViewContext => this; bool IWebViewControl.IsCanGoForward => WebView.CanGoForward(); bool IWebViewControl.IsCanGoBack => WebView.CanGoBack(); async Task IPlatformWebView.Initialize() { if (IsInitialized) return true; try { _callBack.PlatformWebViewCreating(this, new WebViewCreatingEventArgs()); RegisterWebViewEvents(WebView); WebView.Preferences.JavaEnabled = true; WebView.Preferences.JavaScriptEnabled = true; WebView.Preferences.JavaScriptCanOpenWindowsAutomatically = true; //WebView.Preferences.PrivateBrowsingEnabled = true; //WebView.Preferences.AllowAir await PrepareBlazorWebViewStarting(_provider); IsInitialized = true; _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = true }); return true; } catch (Exception ex) { _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = false, Message = ex.ToString() }); } return false; } Task IWebViewControl.ExecuteScriptAsync(string javaScript) { if (string.IsNullOrWhiteSpace(javaScript)) return Task.FromResult(default); var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(javaScript); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; var result = WebView.StringByEvaluatingJavaScriptFromString(script); return Task.FromResult(result); } bool IWebViewControl.GoBack() => WebView.GoBack(); bool IWebViewControl.GoForward() => WebView.GoForward(); bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; using var nsUrl = new NSUrl(uri.AbsoluteUri); using var request = new NSUrlRequest(nsUrl); WebView.MainFrame.LoadRequest(request); return true; } bool IWebViewControl.NavigateToString(string htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; WebView.MainFrame.LoadHtmlString(htmlContent, default!); return true; } bool IWebViewControl.OpenDevToolsWindow() { return false; } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsJson)) return false; var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(webMessageAsJson); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; WebView.WindowScriptObject.EvaluateWebScript(script); return true; } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsString)) return false; var messageJSStringLiteral = HttpUtility.JavaScriptStringEncode(webMessageAsString); var script = $"{_dispatchMessageCallback}((\"{messageJSStringLiteral}\"))"; WebView.WindowScriptObject.EvaluateWebScript(script); return true; } bool IWebViewControl.Reload() { WebView.MainFrame.Reload(); return true; } bool IWebViewControl.Stop() { WebView.MainFrame.StopLoading(); return true; } protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { try { ClearBlazorWebViewCompleted(); UnregisterWebViewEvents(WebView); UnregisterEvents(); WebView.Dispose(); WebView = default!; } catch (Exception) { } } IsDisposed = true; } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ValueTask IAsyncDisposable.DisposeAsync() { ((IDisposable)this)?.Dispose(); return new ValueTask(); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Core/MacWebViewCore.cs ================================================ namespace Avalonia.WebView.Mac.Core; public partial class MacWebViewCore : IPlatformWebView { public MacWebViewCore(ViewHandler handler, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { _provider = provider; _callBack = callback; _handler = handler; _creationProperties = webViewCreationProperties; _webView = new MacosWebView(); NativeHandler = _webView.Handle; RegisterEvents(); } ~MacWebViewCore() { Dispose(disposing: false); } MacosWebView _webView; readonly IVirtualBlazorWebViewProvider? _provider; readonly IVirtualWebViewControlCallBack _callBack; readonly ViewHandler _handler; readonly WebViewCreationProperties _creationProperties; readonly string _dispatchMessageCallback = "__dispatchMessageCallback"; bool _isBlazorWebView = false; bool _isInitialized = false; public bool IsInitialized { get => Volatile.Read(ref _isInitialized); private set => Volatile.Write(ref _isInitialized, value); } bool _isdisposed = false; public bool IsDisposed { get => Volatile.Read(ref _isdisposed); private set => Volatile.Write(ref _isdisposed, value); } public MacosWebView WebView { get => _webView; private set => _webView = value; } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Delegates/WebViewFrameLoadDelegate.cs ================================================ namespace Avalonia.WebView.Mac.Delegates; public class WebViewFrameLoadDelegate : WebFrameLoadDelegate { public override void StartedProvisionalLoad(MacosWebView sender, WebFrame forFrame) { //base.StartedProvisionalLoad(sender, forFrame); } public override void ReceivedServerRedirectForProvisionalLoad(MacosWebView sender, WebFrame forFrame) { //base.ReceivedServerRedirectForProvisionalLoad(sender, forFrame); } public override void ClearedWindowObject(MacosWebView webView, WebScriptObject windowObject, WebFrame forFrame) { //base.ClearedWindowObject(webView, windowObject, forFrame); } public override void WindowScriptObjectAvailable(MacosWebView webView, WebScriptObject windowScriptObject) { //base.WindowScriptObjectAvailable(webView, windowScriptObject); } public override void WillPerformClientRedirect(MacosWebView sender, NSUrl toUrl, double secondsDelay, NSDate fireDate, WebFrame forFrame) { //base.WillPerformClientRedirect(sender, toUrl, secondsDelay, fireDate, forFrame); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Delegates/WebViewNavigationDelegate.cs ================================================ namespace Avalonia.WebView.Mac.Delegates; public class WebViewNavigationDelegate : WebPolicyDelegate { public WebViewNavigationDelegate() { } public override void DecidePolicyForNavigation(MacosWebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { //webView.OnSendRequest(webView, decisionToken, request, new NSUrlResponse(), new WebDataSource()); DecideUse(decisionToken); //base.DecidePolicyForNavigation(webView, actionInformation, request, frame, decisionToken); } public override void DecidePolicyForMimeType(MacosWebView webView, string mimeType, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { //base.DecidePolicyForMimeType(webView, mimeType, request, frame, decisionToken); } public override void DecidePolicyForNewWindow(MacosWebView webView, NSDictionary actionInformation, NSUrlRequest request, string newFrameName, NSObject decisionToken) { //base.DecidePolicyForNewWindow(webView, actionInformation, request, newFrameName, decisionToken); } public override void UnableToImplementPolicy(MacosWebView webView, NSError error, WebFrame frame) { //base.UnableToImplementPolicy(webView, error, frame); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Delegates/WebViewResourceLoadDelegate.cs ================================================ namespace Avalonia.WebView.Mac.Delegates; public class WebViewResourceLoadDelegate : WebResourceLoadDelegate { public WebViewResourceLoadDelegate() { } public override NSObject OnIdentifierForInitialRequest(MacosWebView sender, NSUrlRequest request, WebDataSource dataSource) { return base.OnIdentifierForInitialRequest(sender, request, dataSource); } public override NSUrlRequest OnSendRequest(MacosWebView sender, NSObject identifier, NSUrlRequest request, NSUrlResponse redirectResponse, WebDataSource dataSource) { return base.OnSendRequest(sender, identifier, request, redirectResponse, dataSource); } public override void OnReceivedAuthenticationChallenge(MacosWebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { base.OnReceivedAuthenticationChallenge(sender, identifier, challenge, dataSource); } public override void OnCancelledAuthenticationChallenge(MacosWebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { base.OnCancelledAuthenticationChallenge(sender, identifier, challenge, dataSource); } public override void OnReceivedResponse(MacosWebView sender, NSObject identifier, NSUrlResponse responseReceived, WebDataSource dataSource) { base.OnReceivedResponse(sender, identifier, responseReceived, dataSource); } public override void OnReceivedContentLength(MacosWebView sender, NSObject identifier, int length, WebDataSource dataSource) { base.OnReceivedContentLength(sender, identifier, length, dataSource); } public override void OnFinishedLoading(MacosWebView sender, NSObject identifier, WebDataSource dataSource) { base.OnFinishedLoading(sender, identifier, dataSource); } public override void OnFailedLoading(MacosWebView sender, NSObject identifier, NSError withError, WebDataSource dataSource) { base.OnFailedLoading(sender, identifier, withError, dataSource); } public override void OnPlugInFailed(MacosWebView sender, NSError error, WebDataSource dataSource) { base.OnPlugInFailed(sender, error, dataSource); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Delegates/WebViewUIDelegate.cs ================================================ using System; namespace Avalonia.WebView.Mac.Delegates; public class WebViewUIDelegate : WebUIDelegate { public WebViewUIDelegate() { } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Helpers/BlazorScriptHelper.cs ================================================ namespace Avalonia.WebView.Mac.Helpers; internal class BlazorScriptHelper { public const string BlazorStartingScript = """ window.__receiveMessageCallbacks = []; window.__dispatchMessageCallback = function(message) { window.__receiveMessageCallbacks.forEach(function(callback) { callback(message); }); }; window.external = { sendMessage: function(message) { window.webkit.messageHandlers.webview.postMessage(message); }, receiveMessage: function(callback) { window.__receiveMessageCallbacks.push(callback); } }; """; public const string BlazorStaredScript = """ Blazor.start(); """; } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/Properties/_globalusing.cs ================================================ global using MacosWebView = WebKit.WebView; global using WebKit; global using Foundation; global using System.ComponentModel; global using Avalonia.Data; global using Avalonia.Platform; global using AppKit; global using AvaloniaWebView.Shared.Handlers; global using WebViewCore; global using Avalonia.Controls; global using System.Runtime.InteropServices; global using WebViewCore.Configurations; global using AvaloniaWebView.Shared; global using Avalonia.Input; global using System.Drawing; global using WebViewCore.Events; global using WebViewCore.Models; global using Microsoft.Extensions.FileProviders; global using System.Reflection; global using DryIoc.Shared.Extensions; global using WebViewCore.Ioc; ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/ViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Mac; internal class ViewHandlerProvider : IViewHandlerProvider { public ViewHandlerProvider() { NSApplication.Init(); } IViewHandler IViewHandlerProvider.CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? provider, Action? configDelegate) { var creatonProperty = new WebViewCreationProperties(); configDelegate?.Invoke(creatonProperty); return new WebViewHandler(virtualView, virtualViewCallBack, provider, creatonProperty); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.Mac/WebViewHandler.cs ================================================ using Avalonia.WebView.Mac.Core; namespace Avalonia.WebView.Mac; public class WebViewHandler : ViewHandler { public WebViewHandler(IVirtualWebView virtualWebView, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { var webView = new MacWebViewCore(this, callback, provider, webViewCreationProperties); _webViewCore = webView; PlatformWebView = webView; VirtualViewContext = virtualWebView; PlatformViewContext = webView; } readonly MacWebViewCore _webViewCore; protected override HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem) { //var handler = createFromSystem.Invoke(); return new HandleRef(this, _webViewCore.NativeHandler); } protected override void Disposing() { PlatformWebView.Dispose(); PlatformWebView = default!; VirtualViewContext = default!; } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/AppBuilderExtensions.cs ================================================ using Avalonia.WebView.MacCatalyst; namespace Avalonia.WebView.Desktop; public static class AppBuilderExtensions { public static AppBuilder UseMacCatalystWebView(this AppBuilder builder) { return builder.AfterPlatformServicesSetup(app => { WebViewLocator.s_Registrator.RegisterSingleton(); WebViewLocator.s_Registrator.RegisterSingleton(); }); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Avalonia.WebView.MacCatalyst.csproj ================================================  netstandard2.0 WebView.Avalonia.MacCatalyst WebView.Avalonia.MacCatalyst $(TargetsForTfmSpecificContentInPackage);CopyTargetsForTfmSpecificContentInPackage $(TargetFramework) lib/$(TargetFramework)/ $(TargetFramework) $(TargetFramework) $(TargetFramework) $(TargetFramework) True \ True \ all all all all ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/BlazorWebViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.MacCatalyst; internal class BlazorWebViewHandlerProvider : IPlatformBlazorWebViewProvider { public string Scheme => "app"; public IFileProvider CreateFileProvider(Assembly? assembly, string contentRootDirFullPath) { if (Directory.Exists(contentRootDirFullPath)) return new PhysicalFileProvider(contentRootDirFullPath); else return new NullFileProvider(); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Core/MacCatalystWebViewCore-assists.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Core; partial class MacCatalystWebViewCore { } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Core/MacCatalystWebViewCore-core.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Core; partial class MacCatalystWebViewCore { Task PrepareBlazorWebViewStarting(IVirtualBlazorWebViewProvider? provider) { WebView.NavigationDelegate = new WebViewNavigationDelegate(this, _callBack, _filter); //WebView.UIDelegate = new WebViewUIDelegate(); return Task.CompletedTask; } void ClearBlazorWebViewCompleted() { _isBlazorWebView = false; } private void MessageReceived(Uri uri, string message) { WebViewMessageReceivedEventArgs args = new() { Source = uri, Message = message }; if (args.Source is null && _webView.Url is not null) args.Source = new Uri(_webView.Url.AbsoluteString); _callBack?.PlatformWebViewMessageReceived(this, args); _provider?.PlatformWebViewMessageReceived(this, new WebViewMessageReceivedEventArgs() { Source = uri, Message = message }); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Core/MacCatalystWebViewCore-event.cs ================================================ using Avalonia.Controls; namespace Avalonia.WebView.MacCatalyst.Core; partial class MacCatalystWebViewCore { void RegisterEvents() { _handler.SizeChanged += HostControl_SizeChanged; _handler.PlatformHandlerChanged += Handler_PlatformHandlerChanged; } void UnregisterEvents() { _handler.SizeChanged -= HostControl_SizeChanged; _handler.PlatformHandlerChanged -= Handler_PlatformHandlerChanged; } private void HostControl_SizeChanged(object? sender, SizeChangedEventArgs e) { } private void Handler_PlatformHandlerChanged(object? sender, EventArgs e) { } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Core/MacCatalystWebViewCore-override.cs ================================================ using System.Text.Encodings.Web; namespace Avalonia.WebView.MacCatalyst.Core; partial class MacCatalystWebViewCore { MacCatalystWebViewCore IPlatformWebView.PlatformView => this; public nint NativeHandler { get; private set; } bool IPlatformWebView.IsInitialized => IsInitialized; object? IPlatformWebView.PlatformViewContext => this; bool IWebViewControl.IsCanGoForward => WebView.CanGoForward; bool IWebViewControl.IsCanGoBack => WebView.CanGoBack; async Task IPlatformWebView.Initialize() { if (IsInitialized) return true; await PrepareBlazorWebViewStarting(_provider); IsInitialized = true; _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs() { IsSucceed = true }); return true; } Task IWebViewControl.ExecuteScriptAsync(string javaScript) { if (WebView is null) return Task.FromResult(default); if (string.IsNullOrWhiteSpace(javaScript)) return Task.FromResult(default); string? resultString = default; var messageJSStringLiteral = JavaScriptEncoder.Default.Encode(javaScript); WebView.EvaluateJavaScript(javascript: $"{_dispatchMessageCallback}(\"{messageJSStringLiteral}\")", completionHandler: (NSObject result, NSError error) => { resultString = result.ToString(); }); return Task.FromResult(resultString); ; } bool IWebViewControl.GoBack() { if (WebView is null) return false; if (!WebView.CanGoBack) return false; return WebView.GoBack() == null ? false : true; } bool IWebViewControl.GoForward() { if (WebView is null) return false; if (!WebView.CanGoForward) return false; return WebView.GoForward() == null ? false : true; } bool IWebViewControl.Navigate(Uri? uri) { if (uri is null) return false; using var nsUrl = new NSUrl(uri.AbsoluteUri); using var request = new NSUrlRequest(nsUrl); return WebView.LoadRequest(request) == null ? false : true; } bool IWebViewControl.NavigateToString(string htmlContent) { if (string.IsNullOrWhiteSpace(htmlContent)) return false; return WebView.LoadHtmlString(htmlContent, default!) == null ? false : true; } bool IWebViewControl.OpenDevToolsWindow() { return true; } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsJson)) return false; var messageJSStringLiteral = JavaScriptEncoder.Default.Encode(webMessageAsJson); WebView.EvaluateJavaScript(javascript: $"{_dispatchMessageCallback}(\"{messageJSStringLiteral}\")", completionHandler: (NSObject result, NSError error) => { }); return true; } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { if (string.IsNullOrWhiteSpace(webMessageAsString)) return false; var messageJSStringLiteral = JavaScriptEncoder.Default.Encode(webMessageAsString); WebView.EvaluateJavaScript(javascript: $"{_dispatchMessageCallback}(\"{messageJSStringLiteral}\")", completionHandler: (NSObject result, NSError error) => { }); return true; } bool IWebViewControl.Reload() { if (WebView is null) return false; WebView.Reload(); return true; } bool IWebViewControl.Stop() { if (WebView is null) return false; WebView.StopLoading(); return true; } protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { } ClearBlazorWebViewCompleted(); UnregisterEvents(); WebView.Dispose(); WebView = default!; IsDisposed = true; } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ValueTask IAsyncDisposable.DisposeAsync() { ((IDisposable)this)?.Dispose(); return new ValueTask(); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Core/MacCatalystWebViewCore.cs ================================================ using Avalonia.WebView.MacCatalyst.Handlers; using Avalonia.WebView.MacCatalyst.Helpers; namespace Avalonia.WebView.MacCatalyst.Core; public partial class MacCatalystWebViewCore : IPlatformWebView { public MacCatalystWebViewCore(ViewHandler handler, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { _provider = provider; _callBack = callback; _handler = handler; _creationProperties = webViewCreationProperties; _callBack.PlatformWebViewCreating(this, new WebViewCreatingEventArgs()); _config = new WKWebViewConfiguration(); _config.Preferences.SetValueForKey(NSObject.FromObject(_creationProperties.AreDevToolEnabled), new NSString("developerExtrasEnabled")); _config.Preferences.JavaScriptEnabled = true; _config.MediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypes.None; _config.AllowsAirPlayForMediaPlayback = true; if (provider is not null) { if (provider.ResourceRequestedFilterProvider(this, out var filter)) { _filter = filter; _config.UserContentController.AddScriptMessageHandler(new WebViewScriptMessageHandler(filter.BaseUri, MessageReceived), _filterKeyWord); _config.UserContentController.AddUserScript(new WKUserScript(new NSString(BlazorScriptHelper.BlazorStartingScript), WKUserScriptInjectionTime.AtDocumentEnd, true)); _config.SetUrlSchemeHandler(new SchemeHandler(this, provider, filter), urlScheme: filter.Scheme); } _isBlazorWebView = true; } else _config.UserContentController.AddScriptMessageHandler(new WebViewScriptMessageHandler(default!, MessageReceived), _filterKeyWord); _webView = new WKWebView(CGRect.Empty, _config) { AutoresizesSubviews = true, TranslatesAutoresizingMaskIntoConstraints = false, }; NativeHandler = _webView.Handle; RegisterEvents(); } ~MacCatalystWebViewCore() { Dispose(disposing: false); } WKWebView _webView; readonly WebScheme? _filter; readonly WKWebViewConfiguration _config; readonly IVirtualBlazorWebViewProvider? _provider; readonly IVirtualWebViewControlCallBack _callBack; readonly ViewHandler _handler; readonly WebViewCreationProperties _creationProperties; readonly string _filterKeyWord = "webview"; readonly string _dispatchMessageCallback = "__dispatchMessageCallback"; bool _isBlazorWebView = false; bool _isInitialized = false; public bool IsInitialized { get => Volatile.Read(ref _isInitialized); private set => Volatile.Write(ref _isInitialized, value); } bool _isdisposed = false; public bool IsDisposed { get => Volatile.Read(ref _isdisposed); private set => Volatile.Write(ref _isdisposed, value); } public WKWebView WebView { get => _webView; private set => _webView = value; } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Delegates/WebViewNavigationDelegate.cs ================================================ using DryIoc; namespace Avalonia.WebView.MacCatalyst.Delegates; internal class WebViewNavigationDelegate : NSObject, IWKNavigationDelegate { public WebViewNavigationDelegate(MacCatalystWebViewCore webViewCore, IVirtualWebViewControlCallBack callBack, WebScheme? webScheme) { _webViewCore = webViewCore; //_webView = _webViewCore.WebView; _webScheme = webScheme; _callBack = callBack; if (webScheme is null) _isBlazor = false; } readonly MacCatalystWebViewCore _webViewCore; //readonly WKWebView _webView; readonly WebScheme? _webScheme; readonly IVirtualWebViewControlCallBack _callBack; readonly bool _isBlazor = true; WKNavigation? _navigation; Uri? _currentUri; public void DidStartProvisionalNavigation(WKWebView webView, WKNavigation navigation) { //base.DidStartProvisionalNavigation(webView, navigation); _navigation = navigation; } public void DecidePolicy(WKWebView webView, WKNavigationAction navigationAction, Action decisionHandler) { //var action = Trampolines.NIDActionArity1V93.Create(Marshal.GetFunctionPointerForDelegate(decisionHandler)); var requestUrl = navigationAction.Request.Url; var uri = new Uri(requestUrl.ToString()); WebViewUrlLoadingEventArg args = new() { Url = uri, RawArgs = navigationAction }; _callBack.PlatformWebViewNavigationStarting(_webViewCore, args); if (args.Cancel) decisionHandler(WKNavigationActionPolicy.Cancel); UrlRequestStrategy strategy; if (navigationAction.TargetFrame is null) strategy = UrlRequestStrategy.OpenExternally; else { if (_webScheme is not null) strategy = _webScheme.BaseUri.IsBaseOf(uri) ? UrlRequestStrategy.OpenInWebView : UrlRequestStrategy.OpenExternally; else strategy = UrlRequestStrategy.OpenInWebView; } var newWindowEventArgs = new WebViewNewWindowEventArgs() { Url = uri, UrlLoadingStrategy = strategy }; if (!_callBack.PlatformWebViewNewWindowRequest(_webViewCore, newWindowEventArgs)) { decisionHandler(WKNavigationActionPolicy.Cancel); return; } strategy = newWindowEventArgs.UrlLoadingStrategy; if (strategy == UrlRequestStrategy.OpenExternally || strategy == UrlRequestStrategy.OpenInNewWindow) OpenUriHelper.OpenInProcess(uri); if (strategy != UrlRequestStrategy.OpenInWebView) { decisionHandler(WKNavigationActionPolicy.Cancel); return; } if (navigationAction.TargetFrame?.MainFrame == true) _currentUri = requestUrl; decisionHandler(WKNavigationActionPolicy.Allow); } public void DidReceiveServerRedirectForProvisionalNavigation(WKWebView webView, WKNavigation navigation) { if (_currentUri?.Host == _webScheme?.AppAddress) { var uri = _currentUri; _currentUri = null; _navigation = null; if (uri is not null) { var request = new NSUrlRequest(new NSUrl(uri.AbsoluteUri)); webView.LoadRequest(request); } } //else //base.DidReceiveServerRedirectForProvisionalNavigation(webView, navigation); } public void DidFailNavigation(WKWebView webView, WKNavigation navigation, NSError error) { _currentUri = null; _navigation = null; //base.DidFailNavigation(webView, navigation, error); } public void DidFailProvisionalNavigation(WKWebView webView, WKNavigation navigation, NSError error) { _currentUri = null; _navigation = null; //base.DidFailProvisionalNavigation(webView, navigation, error); } public void DidCommitNavigation(WKWebView webView, WKNavigation navigation) { if (_currentUri != null && _navigation == navigation) { // TODO: Determine whether this is needed //_webView.HandleNavigationStarting(_currentUri); } //base.DidCommitNavigation(webView, navigation); } public void DidFinishNavigation(WKWebView webView, WKNavigation navigation) { bool isSucceed = false; if (_currentUri != null && _navigation == navigation) { // TODO: Determine whether this is needed //_webView.HandleNavigationFinished(_currentUri); _currentUri = null; _navigation = null; isSucceed = true; } _callBack.PlatformWebViewNavigationCompleted(_webViewCore, new WebViewUrlLoadedEventArg() { IsSuccess = isSucceed, RawArgs = navigation }); //base.DidFinishNavigation(webView, navigation); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Delegates/WebViewUIDelegate.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Delegates; internal class WebViewUIDelegate : WKUIDelegate { public override void RunJavaScriptAlertPanel(WKWebView webView, string message, WKFrameInfo frame, Action completionHandler) { } public override void RunJavaScriptConfirmPanel(WKWebView webView, string message, WKFrameInfo frame, Action completionHandler) { } public override void RunJavaScriptTextInputPanel(WKWebView webView, string prompt, string? defaultText, WKFrameInfo frame, Action completionHandler) { } private static string GetJsAlertTitle(WKWebView webView) { return string.Empty; } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Handlers/SchemeHandler.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Handlers; internal class SchemeHandler : NSObject, IWKUrlSchemeHandler { public SchemeHandler(MacCatalystWebViewCore webViewCore, IVirtualBlazorWebViewProvider provider, WebScheme webScheme) { _Scheme = webScheme; _webViewCore = webViewCore; _provider = provider; } readonly WebScheme _Scheme; readonly MacCatalystWebViewCore _webViewCore; readonly IVirtualBlazorWebViewProvider _provider; //[Export("webView:startURLSchemeTask:")] public void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask) { var responseBytes = GetResponseBytes(urlSchemeTask.Request.Url?.AbsoluteString ?? "", out var contentType, statusCode: out var statusCode); if (statusCode == 200) { using var dic = new NSMutableDictionary(); dic.Add((NSString)"Content-Length", (NSString)(responseBytes.Length.ToString(CultureInfo.InvariantCulture))); dic.Add((NSString)"Content-Type", (NSString)contentType); dic.Add((NSString)"Cache-Control", (NSString)"no-cache, max-age=0, must-revalidate, no-store"); if (urlSchemeTask.Request.Url != null) { using var response = new NSHttpUrlResponse(urlSchemeTask.Request.Url, statusCode, "HTTP/1.1", dic); urlSchemeTask.DidReceiveResponse(response); } urlSchemeTask.DidReceiveData(NSData.FromArray(responseBytes)); urlSchemeTask.DidFinish(); } } private byte[] GetResponseBytes(string? url, out string contentType, out int statusCode) { var allowFallbackOnHostPage = _Scheme.BaseUri.IsBaseOfPage(url); var webRequest = new WebResourceRequest { RequestUri = url!, AllowFallbackOnHostPage = allowFallbackOnHostPage }; var bRet = _provider.PlatformWebViewResourceRequested(_webViewCore, webRequest, out var webResponse); if (!bRet || webResponse is null) { statusCode = 404; contentType = string.Empty; return Array.Empty(); } else { statusCode = 200; using var ms = new MemoryStream(); webResponse.Content.CopyTo(ms); webResponse.Content.Dispose(); contentType = webResponse.Headers[QueryStringHelper.ContentTypeKey]; return ms.ToArray(); } } //[Export("webView:stopURLSchemeTask:")] public void StopUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask) { } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Handlers/WebViewScriptMessageHandler.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Handlers; internal sealed class WebViewScriptMessageHandler : NSObject, IWKScriptMessageHandler { public WebViewScriptMessageHandler(Uri baseUri, Action messageReceivedAction) { _baseUri = baseUri; _messageReceivedAction = messageReceivedAction ?? throw new ArgumentNullException(nameof(messageReceivedAction)); } readonly Uri _baseUri; readonly Action _messageReceivedAction; //[Export("userContentController:didReceiveScriptMessage:")] public void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message) { if (message is null) throw new ArgumentNullException(nameof(message)); _messageReceivedAction(_baseUri, ((NSString)message.Body).ToString()); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Helpers/BlazorScriptHelper.cs ================================================ namespace Avalonia.WebView.MacCatalyst.Helpers; internal class BlazorScriptHelper { public const string BlazorStartingScript = """ window.__receiveMessageCallbacks = []; window.__dispatchMessageCallback = function(message) { window.__receiveMessageCallbacks.forEach(function(callback) { callback(message); }); }; window.external = { sendMessage: function(message) { window.webkit.messageHandlers.webview.postMessage(message); }, receiveMessage: function(callback) { window.__receiveMessageCallbacks.push(callback); } }; Blazor.start(); (function () { window.onpageshow = function(event) { if (event.persisted) { window.location.reload(); } }; })(); """; } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/Properties/_globalusing.cs ================================================ global using Avalonia.Platform; global using AvaloniaWebView.Shared.Handlers; global using System.Runtime.InteropServices; global using WebViewCore.Configurations; global using WebViewCore; global using Microsoft.Extensions.FileProviders; global using System.Reflection; global using AvaloniaWebView.Shared; global using AvaloniaWebView.Shared.Core; global using WebViewCore.Extensions; global using Avalonia.WebView.MacCatalyst.Core; global using System.Globalization; global using System.Runtime.Versioning; global using WebKit; global using WebViewCore.Helpers; global using WebViewCore.Models; global using WebViewCore.Enums; global using Avalonia.WebView.MacCatalyst.Delegates; global using WebViewCore.Events; global using Foundation; global using CoreGraphics; global using AppKit; global using DryIoc.Shared.Extensions; global using WebViewCore.Ioc; ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/ViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.MacCatalyst; internal class ViewHandlerProvider : IViewHandlerProvider { public ViewHandlerProvider() { NSApplication.Init(); } IViewHandler IViewHandlerProvider.CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? provider, Action? configDelegate) { var creatonProperty = new WebViewCreationProperties(); configDelegate?.Invoke(creatonProperty); return new WebViewHandler(virtualView, virtualViewCallBack, provider, creatonProperty); } } ================================================ FILE: Source/Platform/Mac/Avalonia.WebView.MacCatalyst/WebViewHandler.cs ================================================ namespace Avalonia.WebView.MacCatalyst; public class WebViewHandler : ViewHandler { public WebViewHandler(IVirtualWebView virtualWebView, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { var webView = new MacCatalystWebViewCore(this, callback, provider, webViewCreationProperties); _webViewCore = webView; PlatformWebView = webView; VirtualViewContext = virtualWebView; PlatformViewContext = webView; } readonly MacCatalystWebViewCore _webViewCore; protected override HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem) { //var handler = createFromSystem.Invoke(); return new HandleRef(this, _webViewCore.NativeHandler); } protected override void Disposing() { PlatformWebView.Dispose(); PlatformWebView = default!; VirtualViewContext = default!; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAsset.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Threading.Tasks; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAsset", true)] public class AVAsset : NSObject { private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selPreferredRateHandle = Selector.GetHandle("preferredRate"); private static readonly IntPtr selPreferredVolumeHandle = Selector.GetHandle("preferredVolume"); private static readonly IntPtr selPreferredTransformHandle = Selector.GetHandle("preferredTransform"); private static readonly IntPtr selNaturalSizeHandle = Selector.GetHandle("naturalSize"); private static readonly IntPtr selProvidesPreciseDurationAndTimingHandle = Selector.GetHandle("providesPreciseDurationAndTiming"); private static readonly IntPtr selTracksHandle = Selector.GetHandle("tracks"); private static readonly IntPtr selLyricsHandle = Selector.GetHandle("lyrics"); private static readonly IntPtr selCommonMetadataHandle = Selector.GetHandle("commonMetadata"); private static readonly IntPtr selAvailableMetadataFormatsHandle = Selector.GetHandle("availableMetadataFormats"); private static readonly IntPtr selHasProtectedContentHandle = Selector.GetHandle("hasProtectedContent"); private static readonly IntPtr selAvailableChapterLocalesHandle = Selector.GetHandle("availableChapterLocales"); private static readonly IntPtr selIsPlayableHandle = Selector.GetHandle("isPlayable"); private static readonly IntPtr selIsExportableHandle = Selector.GetHandle("isExportable"); private static readonly IntPtr selIsReadableHandle = Selector.GetHandle("isReadable"); private static readonly IntPtr selIsComposableHandle = Selector.GetHandle("isComposable"); private static readonly IntPtr selReferenceRestrictionsHandle = Selector.GetHandle("referenceRestrictions"); private static readonly IntPtr selCancelLoadingHandle = Selector.GetHandle("cancelLoading"); private static readonly IntPtr selTrackWithTrackID_Handle = Selector.GetHandle("trackWithTrackID:"); private static readonly IntPtr selTracksWithMediaType_Handle = Selector.GetHandle("tracksWithMediaType:"); private static readonly IntPtr selTracksWithMediaCharacteristic_Handle = Selector.GetHandle("tracksWithMediaCharacteristic:"); private static readonly IntPtr selMetadataForFormat_Handle = Selector.GetHandle("metadataForFormat:"); private static readonly IntPtr selChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys_Handle = Selector.GetHandle("chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:"); private static readonly IntPtr selAssetWithURL_Handle = Selector.GetHandle("assetWithURL:"); private static readonly IntPtr selStatusOfValueForKeyError_Handle = Selector.GetHandle("statusOfValueForKey:error:"); private static readonly IntPtr selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle = Selector.GetHandle("loadValuesAsynchronouslyForKeys:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAsset"); private object __mt_Tracks_var; private object __mt_CommonMetadata_var; private object __mt_AvailableChapterLocales_var; public override IntPtr ClassHandle => class_ptr; public virtual CMTime Duration { [Export("duration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDurationHandle); } return retval; } } public virtual float PreferredRate { [Export("preferredRate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPreferredRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPreferredRateHandle); } } public virtual float PreferredVolume { [Export("preferredVolume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPreferredVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPreferredVolumeHandle); } } public virtual CGAffineTransform PreferredTransform { [Export("preferredTransform")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selPreferredTransformHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selPreferredTransformHandle); } return retval; } } [Obsolete("Deprecated in iOS 5.0. Use NaturalSize/PreferredTransform as appropriate on the video track", false)] public virtual CGSize NaturalSize { [Export("naturalSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selNaturalSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selNaturalSizeHandle); } } public virtual bool ProvidesPreciseDurationAndTiming { [Export("providesPreciseDurationAndTiming")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selProvidesPreciseDurationAndTimingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selProvidesPreciseDurationAndTimingHandle); } } public virtual AVAssetTrack[] Tracks { [Export("tracks")] get { return (AVAssetTrack[])(__mt_Tracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTracksHandle)))); } } public virtual string Lyrics { [Export("lyrics")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLyricsHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLyricsHandle)); } } public virtual AVMetadataItem[] CommonMetadata { [Export("commonMetadata")] get { return (AVMetadataItem[])(__mt_CommonMetadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommonMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCommonMetadataHandle)))); } } public virtual string[] AvailableMetadataFormats { [Export("availableMetadataFormats")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableMetadataFormatsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableMetadataFormatsHandle)); } } [Since(4, 2)] public virtual bool ProtectedContent { [Export("hasProtectedContent")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasProtectedContentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasProtectedContentHandle); } } [Since(4, 3)] public virtual NSLocale[] AvailableChapterLocales { [Export("availableChapterLocales")] get { return (NSLocale[])(__mt_AvailableChapterLocales_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableChapterLocalesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableChapterLocalesHandle)))); } } [Since(4, 3)] public virtual bool Playable { [Export("isPlayable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlayableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlayableHandle); } } [Since(4, 3)] public virtual bool Exportable { [Export("isExportable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExportableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExportableHandle); } } [Since(4, 3)] public virtual bool Readable { [Export("isReadable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReadableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReadableHandle); } } [Since(4, 3)] public virtual bool Composable { [Export("isComposable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsComposableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsComposableHandle); } } [Since(5, 0)] public virtual AVAssetReferenceRestrictions ReferenceRestrictions { [Export("referenceRestrictions")] get { if (IsDirectBinding) { return (AVAssetReferenceRestrictions)Messaging.int_objc_msgSend(base.Handle, selReferenceRestrictionsHandle); } return (AVAssetReferenceRestrictions)Messaging.int_objc_msgSendSuper(base.SuperHandle, selReferenceRestrictionsHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAsset(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAsset(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAsset(IntPtr handle) : base(handle) { } [Export("cancelLoading")] public virtual void CancelLoading() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelLoadingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelLoadingHandle); } } [Export("trackWithTrackID:")] public virtual AVAssetTrack TrackWithTrackID(int trackID) { if (IsDirectBinding) { return (AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selTrackWithTrackID_Handle, trackID)); } return (AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selTrackWithTrackID_Handle, trackID)); } [Export("tracksWithMediaType:")] public virtual AVAssetTrack[] TracksWithMediaType(string mediaType) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); AVAssetTrack[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTracksWithMediaType_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTracksWithMediaType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("tracksWithMediaCharacteristic:")] public virtual AVAssetTrack[] TracksWithMediaCharacteristic(string mediaCharacteristic) { if (mediaCharacteristic == null) { throw new ArgumentNullException("mediaCharacteristic"); } IntPtr arg = NSString.CreateNative(mediaCharacteristic); AVAssetTrack[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTracksWithMediaCharacteristic_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTracksWithMediaCharacteristic_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("metadataForFormat:")] public virtual AVMetadataItem[] MetadataForFormat(string format) { if (format == null) { throw new ArgumentNullException("format"); } IntPtr arg = NSString.CreateNative(format); AVMetadataItem[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMetadataForFormat_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMetadataForFormat_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:")] public virtual AVMetadataItem[] ChapterMetadataGroups(NSLocale forLocale, AVMetadataItem[] commonKeys) { if (forLocale == null) { throw new ArgumentNullException("forLocale"); } NSArray nSArray = ((commonKeys == null) ? null : NSArray.FromNSObjects(commonKeys)); AVMetadataItem[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys_Handle, forLocale.Handle, nSArray?.Handle ?? IntPtr.Zero)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys_Handle, forLocale.Handle, nSArray?.Handle ?? IntPtr.Zero))); nSArray?.Dispose(); return result; } [Export("assetWithURL:")] public static AVAsset FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAssetWithURL_Handle, url.Handle)); } [Export("statusOfValueForKey:error:")] public virtual AVKeyValueStatus StatusOfValue(string key, out NSError error) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(key); AVKeyValueStatus result = (AVKeyValueStatus)((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStatusOfValueForKeyError_Handle, arg, intPtr) : Messaging.int_objc_msgSend_IntPtr_IntPtr(base.Handle, selStatusOfValueForKeyError_Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("loadValuesAsynchronouslyForKeys:completionHandler:")] public unsafe virtual void LoadValuesAsynchronously(string[] keys, NSAction handler) { if (keys == null) { throw new ArgumentNullException("keys"); } if (handler == null) { throw new ArgumentNullException("handler"); } NSArray nSArray = NSArray.FromStrings(keys); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, handler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } public virtual Task LoadValuesTaskAsync(string[] keys) { TaskCompletionSource tcs = new TaskCompletionSource(); LoadValuesAsynchronously(keys, delegate { tcs.SetResult(result: true); }); return tcs.Task; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Tracks_var = null; __mt_CommonMetadata_var = null; __mt_AvailableChapterLocales_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetExportSession.cs ================================================ using System; using System.ComponentModel; using System.Threading.Tasks; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetExportSession", true)] public class AVAssetExportSession : NSObject { private static readonly IntPtr selPresetNameHandle = Selector.GetHandle("presetName"); private static readonly IntPtr selSupportedFileTypesHandle = Selector.GetHandle("supportedFileTypes"); private static readonly IntPtr selOutputFileTypeHandle = Selector.GetHandle("outputFileType"); private static readonly IntPtr selSetOutputFileType_Handle = Selector.GetHandle("setOutputFileType:"); private static readonly IntPtr selOutputURLHandle = Selector.GetHandle("outputURL"); private static readonly IntPtr selSetOutputURL_Handle = Selector.GetHandle("setOutputURL:"); private static readonly IntPtr selStatusHandle = Selector.GetHandle("status"); private static readonly IntPtr selProgressHandle = Selector.GetHandle("progress"); private static readonly IntPtr selMaxDurationHandle = Selector.GetHandle("maxDuration"); private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selSetTimeRange_Handle = Selector.GetHandle("setTimeRange:"); private static readonly IntPtr selMetadataHandle = Selector.GetHandle("metadata"); private static readonly IntPtr selSetMetadata_Handle = Selector.GetHandle("setMetadata:"); private static readonly IntPtr selFileLengthLimitHandle = Selector.GetHandle("fileLengthLimit"); private static readonly IntPtr selSetFileLengthLimit_Handle = Selector.GetHandle("setFileLengthLimit:"); private static readonly IntPtr selAudioMixHandle = Selector.GetHandle("audioMix"); private static readonly IntPtr selSetAudioMix_Handle = Selector.GetHandle("setAudioMix:"); private static readonly IntPtr selVideoCompositionHandle = Selector.GetHandle("videoComposition"); private static readonly IntPtr selSetVideoComposition_Handle = Selector.GetHandle("setVideoComposition:"); private static readonly IntPtr selShouldOptimizeForNetworkUseHandle = Selector.GetHandle("shouldOptimizeForNetworkUse"); private static readonly IntPtr selSetShouldOptimizeForNetworkUse_Handle = Selector.GetHandle("setShouldOptimizeForNetworkUse:"); private static readonly IntPtr selAllExportPresetsHandle = Selector.GetHandle("allExportPresets"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selAssetHandle = Selector.GetHandle("asset"); private static readonly IntPtr selEstimatedOutputFileLengthHandle = Selector.GetHandle("estimatedOutputFileLength"); private static readonly IntPtr selExportSessionWithAssetPresetName_Handle = Selector.GetHandle("exportSessionWithAsset:presetName:"); private static readonly IntPtr selExportPresetsCompatibleWithAsset_Handle = Selector.GetHandle("exportPresetsCompatibleWithAsset:"); private static readonly IntPtr selInitWithAssetPresetName_Handle = Selector.GetHandle("initWithAsset:presetName:"); private static readonly IntPtr selExportAsynchronouslyWithCompletionHandler_Handle = Selector.GetHandle("exportAsynchronouslyWithCompletionHandler:"); private static readonly IntPtr selCancelExportHandle = Selector.GetHandle("cancelExport"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetExportSession"); private object __mt_SupportedFileTypes_var; private object __mt_OutputUrl_var; private object __mt_Metadata_var; private object __mt_AudioMix_var; private object __mt_VideoComposition_var; private object __mt_Error_var; private object __mt_Asset_var; private static NSString _Preset640x480; private static NSString _Preset960x540; private static NSString _Preset1280x720; private static NSString _PresetAppleM4A; private static NSString _PresetPassthrough; public override IntPtr ClassHandle => class_ptr; public virtual string PresetName { [Export("presetName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPresetNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPresetNameHandle)); } } public virtual NSObject[] SupportedFileTypes { [Export("supportedFileTypes")] get { return (NSObject[])(__mt_SupportedFileTypes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSupportedFileTypesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSupportedFileTypesHandle)))); } } public virtual string OutputFileType { [Export("outputFileType", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputFileTypeHandle)); } [Export("setOutputFileType:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutputFileType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutputFileType_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSUrl OutputUrl { [Export("outputURL", ArgumentSemantic.Copy)] get { return (NSUrl)(__mt_OutputUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputURLHandle))))); } [Export("setOutputURL:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutputURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutputURL_Handle, value.Handle); } __mt_OutputUrl_var = value; } } public virtual AVAssetExportSessionStatus Status { [Export("status")] get { if (IsDirectBinding) { return (AVAssetExportSessionStatus)Messaging.int_objc_msgSend(base.Handle, selStatusHandle); } return (AVAssetExportSessionStatus)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStatusHandle); } } public virtual float Progress { [Export("progress")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selProgressHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selProgressHandle); } } public virtual CMTime MaxDuration { [Export("maxDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selMaxDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMaxDurationHandle); } return retval; } } public virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } [Export("setTimeRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selSetTimeRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selSetTimeRange_Handle, value); } } } public virtual AVMetadataItem[] Metadata { [Export("metadata", ArgumentSemantic.Copy)] get { return (AVMetadataItem[])(__mt_Metadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMetadataHandle)))); } [Export("setMetadata:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMetadata_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMetadata_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Metadata_var = value; } } public virtual long FileLengthLimit { [Export("fileLengthLimit")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFileLengthLimitHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFileLengthLimitHandle); } [Export("setFileLengthLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetFileLengthLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetFileLengthLimit_Handle, value); } } } public virtual AVAudioMix AudioMix { [Export("audioMix", ArgumentSemantic.Copy)] get { return (AVAudioMix)(__mt_AudioMix_var = ((!IsDirectBinding) ? ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioMixHandle))) : ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioMixHandle))))); } [Export("setAudioMix:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAudioMix_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAudioMix_Handle, value.Handle); } __mt_AudioMix_var = value; } } public virtual AVVideoComposition VideoComposition { [Export("videoComposition", ArgumentSemantic.Copy)] get { return (AVVideoComposition)(__mt_VideoComposition_var = ((!IsDirectBinding) ? ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoCompositionHandle))) : ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoCompositionHandle))))); } [Export("setVideoComposition:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoComposition_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoComposition_Handle, value.Handle); } __mt_VideoComposition_var = value; } } public virtual bool ShouldOptimizeForNetworkUse { [Export("shouldOptimizeForNetworkUse")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldOptimizeForNetworkUseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldOptimizeForNetworkUseHandle); } [Export("setShouldOptimizeForNetworkUse:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldOptimizeForNetworkUse_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldOptimizeForNetworkUse_Handle, value); } } } public static string[] AllExportPresets { [Export("allExportPresets")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllExportPresetsHandle)); } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } public virtual AVAsset Asset { [Export("asset")] get { return (AVAsset)(__mt_Asset_var = ((!IsDirectBinding) ? ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetHandle))) : ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetHandle))))); } } public virtual long EstimatedOutputFileLength { [Export("estimatedOutputFileLength")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selEstimatedOutputFileLengthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEstimatedOutputFileLengthHandle); } } [Field("AVAssetExportPreset640x480", "AVFoundation")] public static NSString Preset640x480 { get { if (_Preset640x480 == null) { _Preset640x480 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetExportPreset640x480"); } return _Preset640x480; } } [Field("AVAssetExportPreset960x540", "AVFoundation")] public static NSString Preset960x540 { get { if (_Preset960x540 == null) { _Preset960x540 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetExportPreset960x540"); } return _Preset960x540; } } [Field("AVAssetExportPreset1280x720", "AVFoundation")] public static NSString Preset1280x720 { get { if (_Preset1280x720 == null) { _Preset1280x720 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetExportPreset1280x720"); } return _Preset1280x720; } } [Field("AVAssetExportPresetAppleM4A", "AVFoundation")] public static NSString PresetAppleM4A { get { if (_PresetAppleM4A == null) { _PresetAppleM4A = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetExportPresetAppleM4A"); } return _PresetAppleM4A; } } [Field("AVAssetExportPresetPassthrough", "AVFoundation")] public static NSString PresetPassthrough { get { if (_PresetPassthrough == null) { _PresetPassthrough = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetExportPresetPassthrough"); } return _PresetPassthrough; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetExportSession(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetExportSession(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetExportSession(IntPtr handle) : base(handle) { } [Export("exportSessionWithAsset:presetName:")] public static AVAssetExportSession FromAsset(AVAsset asset, string presetName) { if (asset == null) { throw new ArgumentNullException("asset"); } if (presetName == null) { throw new ArgumentNullException("presetName"); } IntPtr arg = NSString.CreateNative(presetName); AVAssetExportSession result = (AVAssetExportSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExportSessionWithAssetPresetName_Handle, asset.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("exportPresetsCompatibleWithAsset:")] public static string[] ExportPresetsCompatibleWithAsset(AVAsset asset) { if (asset == null) { throw new ArgumentNullException("asset"); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selExportPresetsCompatibleWithAsset_Handle, asset.Handle)); } [Export("initWithAsset:presetName:")] public AVAssetExportSession(AVAsset asset, string presetName) : base(NSObjectFlag.Empty) { if (asset == null) { throw new ArgumentNullException("asset"); } if (presetName == null) { throw new ArgumentNullException("presetName"); } IntPtr arg = NSString.CreateNative(presetName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAssetPresetName_Handle, asset.Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAssetPresetName_Handle, asset.Handle, arg); } NSString.ReleaseNative(arg); } [Export("exportAsynchronouslyWithCompletionHandler:")] public unsafe virtual void ExportAsynchronously(AVCompletionHandler handler) { if (handler == null) { throw new ArgumentNullException("handler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletionHandler.Handler, handler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selExportAsynchronouslyWithCompletionHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selExportAsynchronouslyWithCompletionHandler_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task ExportTaskAsync() { TaskCompletionSource tcs = new TaskCompletionSource(); ExportAsynchronously(delegate { tcs.SetResult(result: true); }); return tcs.Task; } [Export("cancelExport")] public virtual void CancelExport() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelExportHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelExportHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SupportedFileTypes_var = null; __mt_OutputUrl_var = null; __mt_Metadata_var = null; __mt_AudioMix_var = null; __mt_VideoComposition_var = null; __mt_Error_var = null; __mt_Asset_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetExportSessionStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVAssetExportSessionStatus { Unknown, Waiting, Exporting, Completed, Failed, Cancelled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetImageGenerator.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetImageGenerator", true)] public class AVAssetImageGenerator : NSObject { private static readonly IntPtr selMaximumSizeHandle = Selector.GetHandle("maximumSize"); private static readonly IntPtr selSetMaximumSize_Handle = Selector.GetHandle("setMaximumSize:"); private static readonly IntPtr selApertureModeHandle = Selector.GetHandle("apertureMode"); private static readonly IntPtr selSetApertureMode_Handle = Selector.GetHandle("setApertureMode:"); private static readonly IntPtr selVideoCompositionHandle = Selector.GetHandle("videoComposition"); private static readonly IntPtr selSetVideoComposition_Handle = Selector.GetHandle("setVideoComposition:"); private static readonly IntPtr selAppliesPreferredTrackTransformHandle = Selector.GetHandle("appliesPreferredTrackTransform"); private static readonly IntPtr selSetAppliesPreferredTrackTransform_Handle = Selector.GetHandle("setAppliesPreferredTrackTransform:"); private static readonly IntPtr selRequestedTimeToleranceBeforeHandle = Selector.GetHandle("requestedTimeToleranceBefore"); private static readonly IntPtr selSetRequestedTimeToleranceBefore_Handle = Selector.GetHandle("setRequestedTimeToleranceBefore:"); private static readonly IntPtr selRequestedTimeToleranceAfterHandle = Selector.GetHandle("requestedTimeToleranceAfter"); private static readonly IntPtr selSetRequestedTimeToleranceAfter_Handle = Selector.GetHandle("setRequestedTimeToleranceAfter:"); private static readonly IntPtr selAssetImageGeneratorWithAsset_Handle = Selector.GetHandle("assetImageGeneratorWithAsset:"); private static readonly IntPtr selInitWithAsset_Handle = Selector.GetHandle("initWithAsset:"); private static readonly IntPtr selCopyCGImageAtTimeActualTimeError_Handle = Selector.GetHandle("copyCGImageAtTime:actualTime:error:"); private static readonly IntPtr selGenerateCGImagesAsynchronouslyForTimesCompletionHandler_Handle = Selector.GetHandle("generateCGImagesAsynchronouslyForTimes:completionHandler:"); private static readonly IntPtr selCancelAllCGImageGenerationHandle = Selector.GetHandle("cancelAllCGImageGeneration"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetImageGenerator"); private object __mt_ApertureMode_var; private object __mt_VideoComposition_var; private static NSString _ApertureModeCleanAperture; private static NSString _ApertureModeProductionAperture; private static NSString _ApertureModeEncodedPixels; public override IntPtr ClassHandle => class_ptr; public virtual CGSize MaximumSize { [Export("maximumSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaximumSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaximumSizeHandle); } [Export("setMaximumSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaximumSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaximumSize_Handle, value); } } } public virtual NSString ApertureMode { [Export("apertureMode")] get { return (NSString)(__mt_ApertureMode_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selApertureModeHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selApertureModeHandle))))); } [Export("setApertureMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetApertureMode_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetApertureMode_Handle, value.Handle); } __mt_ApertureMode_var = value; } } public virtual AVVideoComposition VideoComposition { [Export("videoComposition", ArgumentSemantic.Copy)] get { return (AVVideoComposition)(__mt_VideoComposition_var = ((!IsDirectBinding) ? ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoCompositionHandle))) : ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoCompositionHandle))))); } [Export("setVideoComposition:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoComposition_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoComposition_Handle, value.Handle); } __mt_VideoComposition_var = value; } } public virtual bool AppliesPreferredTrackTransform { [Export("appliesPreferredTrackTransform")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAppliesPreferredTrackTransformHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAppliesPreferredTrackTransformHandle); } [Export("setAppliesPreferredTrackTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAppliesPreferredTrackTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAppliesPreferredTrackTransform_Handle, value); } } } [Since(5, 0)] public virtual CMTime RequestedTimeToleranceBefore { [Export("requestedTimeToleranceBefore")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selRequestedTimeToleranceBeforeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRequestedTimeToleranceBeforeHandle); } return retval; } [Export("setRequestedTimeToleranceBefore:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetRequestedTimeToleranceBefore_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetRequestedTimeToleranceBefore_Handle, value); } } } [Since(5, 0)] public virtual CMTime RequestedTimeToleranceAfter { [Export("requestedTimeToleranceAfter")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selRequestedTimeToleranceAfterHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRequestedTimeToleranceAfterHandle); } return retval; } [Export("setRequestedTimeToleranceAfter:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetRequestedTimeToleranceAfter_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetRequestedTimeToleranceAfter_Handle, value); } } } [Field("AVAssetImageGeneratorApertureModeCleanAperture", "AVFoundation")] public static NSString ApertureModeCleanAperture { get { if (_ApertureModeCleanAperture == null) { _ApertureModeCleanAperture = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetImageGeneratorApertureModeCleanAperture"); } return _ApertureModeCleanAperture; } } [Field("AVAssetImageGeneratorApertureModeProductionAperture", "AVFoundation")] public static NSString ApertureModeProductionAperture { get { if (_ApertureModeProductionAperture == null) { _ApertureModeProductionAperture = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetImageGeneratorApertureModeProductionAperture"); } return _ApertureModeProductionAperture; } } [Field("AVAssetImageGeneratorApertureModeEncodedPixels", "AVFoundation")] public static NSString ApertureModeEncodedPixels { get { if (_ApertureModeEncodedPixels == null) { _ApertureModeEncodedPixels = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVAssetImageGeneratorApertureModeEncodedPixels"); } return _ApertureModeEncodedPixels; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetImageGenerator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetImageGenerator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetImageGenerator(IntPtr handle) : base(handle) { } [Export("assetImageGeneratorWithAsset:")] public static AVAssetImageGenerator FromAsset(AVAsset asset) { if (asset == null) { throw new ArgumentNullException("asset"); } return (AVAssetImageGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAssetImageGeneratorWithAsset_Handle, asset.Handle)); } [Export("initWithAsset:")] public AVAssetImageGenerator(AVAsset asset) : base(NSObjectFlag.Empty) { if (asset == null) { throw new ArgumentNullException("asset"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAsset_Handle, asset.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAsset_Handle, asset.Handle); } } [Export("copyCGImageAtTime:actualTime:error:")] public virtual CGImage CopyCGImageAtTime(CMTime requestedTime, out CMTime actualTime, out NSError outError) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); CGImage result = ((!IsDirectBinding) ? new CGImage(Messaging.IntPtr_objc_msgSendSuper_CMTime_out_CMTime_IntPtr(base.SuperHandle, selCopyCGImageAtTimeActualTimeError_Handle, requestedTime, out actualTime, intPtr)) : new CGImage(Messaging.IntPtr_objc_msgSend_CMTime_out_CMTime_IntPtr(base.Handle, selCopyCGImageAtTimeActualTimeError_Handle, requestedTime, out actualTime, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("generateCGImagesAsynchronouslyForTimes:completionHandler:")] public unsafe virtual void GenerateCGImagesAsynchronously(NSValue[] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler handler) { if (cmTimesRequestedTimes == null) { throw new ArgumentNullException("cmTimesRequestedTimes"); } if (handler == null) { throw new ArgumentNullException("handler"); } NSArray nSArray = NSArray.FromNSObjects(cmTimesRequestedTimes); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVAssetImageGeneratorCompletionHandler.Handler, handler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selGenerateCGImagesAsynchronouslyForTimesCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGenerateCGImagesAsynchronouslyForTimesCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } [Export("cancelAllCGImageGeneration")] public virtual void CancelAllCGImageGeneration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelAllCGImageGenerationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelAllCGImageGenerationHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ApertureMode_var = null; __mt_VideoComposition_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetImageGeneratorCompletionHandler.cs ================================================ using System; using CoreMedia; using Foundation; namespace AVFoundation; public delegate void AVAssetImageGeneratorCompletionHandler(CMTime requestedTime, IntPtr imageRef, CMTime actualTime, AVAssetImageGeneratorResult result, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetImageGeneratorResult.cs ================================================ namespace AVFoundation; public enum AVAssetImageGeneratorResult { Succeeded, Failed, Cancelled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReader.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetReader", true)] public class AVAssetReader : NSObject { private static readonly IntPtr selAssetHandle = Selector.GetHandle("asset"); private static readonly IntPtr selStatusHandle = Selector.GetHandle("status"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selSetTimeRange_Handle = Selector.GetHandle("setTimeRange:"); private static readonly IntPtr selOutputsHandle = Selector.GetHandle("outputs"); private static readonly IntPtr selAssetReaderWithAssetError_Handle = Selector.GetHandle("assetReaderWithAsset:error:"); private static readonly IntPtr selInitWithAssetError_Handle = Selector.GetHandle("initWithAsset:error:"); private static readonly IntPtr selCanAddOutput_Handle = Selector.GetHandle("canAddOutput:"); private static readonly IntPtr selAddOutput_Handle = Selector.GetHandle("addOutput:"); private static readonly IntPtr selStartReadingHandle = Selector.GetHandle("startReading"); private static readonly IntPtr selCancelReadingHandle = Selector.GetHandle("cancelReading"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetReader"); private object __mt_Asset_var; private object __mt_Error_var; private object __mt_Outputs_var; public override IntPtr ClassHandle => class_ptr; public virtual AVAsset Asset { [Export("asset")] get { return (AVAsset)(__mt_Asset_var = ((!IsDirectBinding) ? ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetHandle))) : ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetHandle))))); } } public virtual AVAssetReaderStatus Status { [Export("status")] get { if (IsDirectBinding) { return (AVAssetReaderStatus)Messaging.int_objc_msgSend(base.Handle, selStatusHandle); } return (AVAssetReaderStatus)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStatusHandle); } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } public virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } [Export("setTimeRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selSetTimeRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selSetTimeRange_Handle, value); } } } public virtual AVAssetReaderOutput[] Outputs { [Export("outputs")] get { return (AVAssetReaderOutput[])(__mt_Outputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetReader(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReader(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReader(IntPtr handle) : base(handle) { } [Export("assetReaderWithAsset:error:")] public static AVAssetReader FromAsset(AVAsset asset, out NSError error) { if (asset == null) { throw new ArgumentNullException("asset"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); AVAssetReader result = (AVAssetReader)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetReaderWithAssetError_Handle, asset.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initWithAsset:error:")] public AVAssetReader(AVAsset asset, out NSError error) : base(NSObjectFlag.Empty) { if (asset == null) { throw new ArgumentNullException("asset"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAssetError_Handle, asset.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAssetError_Handle, asset.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("canAddOutput:")] public virtual bool CanAddOutput(AVAssetReaderOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanAddOutput_Handle, output.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanAddOutput_Handle, output.Handle); } [Export("addOutput:")] public virtual void AddOutput(AVAssetReaderOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddOutput_Handle, output.Handle); } } [Export("startReading")] public virtual bool StartReading() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selStartReadingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selStartReadingHandle); } [Export("cancelReading")] public virtual void CancelReading() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelReadingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelReadingHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Asset_var = null; __mt_Error_var = null; __mt_Outputs_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReaderAudioMixOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetReaderAudioMixOutput", true)] public class AVAssetReaderAudioMixOutput : AVAssetReaderOutput { private static readonly IntPtr selAudioTracksHandle = Selector.GetHandle("audioTracks"); private static readonly IntPtr selAudioMixHandle = Selector.GetHandle("audioMix"); private static readonly IntPtr selSetAudioMix_Handle = Selector.GetHandle("setAudioMix:"); private static readonly IntPtr selAudioSettingsHandle = Selector.GetHandle("audioSettings"); private static readonly IntPtr selAssetReaderAudioMixOutputWithAudioTracksAudioSettings_Handle = Selector.GetHandle("assetReaderAudioMixOutputWithAudioTracks:audioSettings:"); private static readonly IntPtr selInitWithAudioTracksAudioSettings_Handle = Selector.GetHandle("initWithAudioTracks:audioSettings:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetReaderAudioMixOutput"); private object __mt_AudioTracks_var; private object __mt_AudioMix_var; private object __mt_AudioSettings_var; public override IntPtr ClassHandle => class_ptr; public virtual AVAssetTrack[] AudioTracks { [Export("audioTracks")] get { return (AVAssetTrack[])(__mt_AudioTracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioTracksHandle)))); } } public virtual AVAudioMix AudioMix { [Export("audioMix", ArgumentSemantic.Copy)] get { return (AVAudioMix)(__mt_AudioMix_var = ((!IsDirectBinding) ? ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioMixHandle))) : ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioMixHandle))))); } [Export("setAudioMix:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAudioMix_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAudioMix_Handle, value.Handle); } __mt_AudioMix_var = value; } } public virtual NSDictionary AudioSettings { [Export("audioSettings")] get { return (NSDictionary)(__mt_AudioSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioSettingsHandle))))); } } public AudioSettings Settings { get { NSDictionary audioSettings = AudioSettings; if (audioSettings != null) { return new AudioSettings(audioSettings); } return null; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetReaderAudioMixOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderAudioMixOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderAudioMixOutput(IntPtr handle) : base(handle) { } [Export("assetReaderAudioMixOutputWithAudioTracks:audioSettings:")] public static AVAssetReaderAudioMixOutput FromTracks(AVAssetTrack[] audioTracks, NSDictionary audioSettings) { if (audioTracks == null) { throw new ArgumentNullException("audioTracks"); } NSArray nSArray = NSArray.FromNSObjects(audioTracks); AVAssetReaderAudioMixOutput result = (AVAssetReaderAudioMixOutput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetReaderAudioMixOutputWithAudioTracksAudioSettings_Handle, nSArray.Handle, audioSettings?.Handle ?? IntPtr.Zero)); nSArray.Dispose(); return result; } public AVAssetReaderAudioMixOutput Create(AVAssetTrack[] audioTracks, AudioSettings settings) { return FromTracks(audioTracks, settings?.Dictionary); } [Export("initWithAudioTracks:audioSettings:")] public AVAssetReaderAudioMixOutput(AVAssetTrack[] audioTracks, NSDictionary audioSettings) : base(NSObjectFlag.Empty) { if (audioTracks == null) { throw new ArgumentNullException("audioTracks"); } NSArray nSArray = NSArray.FromNSObjects(audioTracks); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAudioTracksAudioSettings_Handle, nSArray.Handle, audioSettings?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAudioTracksAudioSettings_Handle, nSArray.Handle, audioSettings?.Handle ?? IntPtr.Zero); } nSArray.Dispose(); } public AVAssetReaderAudioMixOutput(AVAssetTrack[] audioTracks, AudioSettings settings) : this(audioTracks, settings?.Dictionary) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AudioTracks_var = null; __mt_AudioMix_var = null; __mt_AudioSettings_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReaderOutput.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetReaderOutput", true)] public class AVAssetReaderOutput : NSObject { private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selAlwaysCopiesSampleDataHandle = Selector.GetHandle("alwaysCopiesSampleData"); private static readonly IntPtr selSetAlwaysCopiesSampleData_Handle = Selector.GetHandle("setAlwaysCopiesSampleData:"); private static readonly IntPtr selCopyNextSampleBufferHandle = Selector.GetHandle("copyNextSampleBuffer"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetReaderOutput"); public override IntPtr ClassHandle => class_ptr; public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual bool AlwaysCopiesSampleData { [Export("alwaysCopiesSampleData")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysCopiesSampleDataHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysCopiesSampleDataHandle); } [Export("setAlwaysCopiesSampleData:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysCopiesSampleData_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysCopiesSampleData_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetReaderOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderOutput(IntPtr handle) : base(handle) { } [Export("copyNextSampleBuffer")] public virtual CMSampleBuffer CopyNextSampleBuffer() { if (IsDirectBinding) { return new CMSampleBuffer(Messaging.IntPtr_objc_msgSend(base.Handle, selCopyNextSampleBufferHandle)); } return new CMSampleBuffer(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCopyNextSampleBufferHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReaderStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVAssetReaderStatus { Unknown, Reading, Completed, Failed, Cancelled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReaderTrackOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetReaderTrackOutput", true)] public class AVAssetReaderTrackOutput : AVAssetReaderOutput { private static readonly IntPtr selTrackHandle = Selector.GetHandle("track"); private static readonly IntPtr selOutputSettingsHandle = Selector.GetHandle("outputSettings"); private static readonly IntPtr selAssetReaderTrackOutputWithTrackOutputSettings_Handle = Selector.GetHandle("assetReaderTrackOutputWithTrack:outputSettings:"); private static readonly IntPtr selInitWithTrackOutputSettings_Handle = Selector.GetHandle("initWithTrack:outputSettings:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetReaderTrackOutput"); private object __mt_Track_var; private object __mt_OutputSettings_var; public override IntPtr ClassHandle => class_ptr; public virtual AVAssetTrack Track { [Export("track")] get { return (AVAssetTrack)(__mt_Track_var = ((!IsDirectBinding) ? ((AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTrackHandle))) : ((AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTrackHandle))))); } } public virtual NSDictionary OutputSettings { [Export("outputSettings")] get { return (NSDictionary)(__mt_OutputSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputSettingsHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetReaderTrackOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderTrackOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderTrackOutput(IntPtr handle) : base(handle) { } [Export("assetReaderTrackOutputWithTrack:outputSettings:")] public static AVAssetReaderTrackOutput FromTrack(AVAssetTrack track, NSDictionary outputSettings) { if (track == null) { throw new ArgumentNullException("track"); } return (AVAssetReaderTrackOutput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetReaderTrackOutputWithTrackOutputSettings_Handle, track.Handle, outputSettings?.Handle ?? IntPtr.Zero)); } public static AVAssetReaderTrackOutput Create(AVAssetTrack track, AudioSettings settings) { return FromTrack(track, settings?.Dictionary); } public static AVAssetReaderTrackOutput Create(AVAssetTrack track, AVVideoSettingsUncompressed settings) { return FromTrack(track, settings?.Dictionary); } [Export("initWithTrack:outputSettings:")] public AVAssetReaderTrackOutput(AVAssetTrack track, NSDictionary outputSettings) : base(NSObjectFlag.Empty) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithTrackOutputSettings_Handle, track.Handle, outputSettings?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithTrackOutputSettings_Handle, track.Handle, outputSettings?.Handle ?? IntPtr.Zero); } } public AVAssetReaderTrackOutput(AVAssetTrack track, AudioSettings settings) : this(track, settings?.Dictionary) { } public AVAssetReaderTrackOutput(AVAssetTrack track, AVVideoSettingsUncompressed settings) : this(track, settings?.Dictionary) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Track_var = null; __mt_OutputSettings_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReaderVideoCompositionOutput.cs ================================================ using System; using System.ComponentModel; using CoreVideo; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetReaderVideoCompositionOutput", true)] public class AVAssetReaderVideoCompositionOutput : AVAssetReaderOutput { private static readonly IntPtr selVideoTracksHandle = Selector.GetHandle("videoTracks"); private static readonly IntPtr selVideoCompositionHandle = Selector.GetHandle("videoComposition"); private static readonly IntPtr selSetVideoComposition_Handle = Selector.GetHandle("setVideoComposition:"); private static readonly IntPtr selVideoSettingsHandle = Selector.GetHandle("videoSettings"); private static readonly IntPtr selAssetReaderVideoCompositionOutputWithVideoTracksVideoSettings_Handle = Selector.GetHandle("assetReaderVideoCompositionOutputWithVideoTracks:videoSettings:"); private static readonly IntPtr selInitWithVideoTracksVideoSettings_Handle = Selector.GetHandle("initWithVideoTracks:videoSettings:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetReaderVideoCompositionOutput"); private object __mt_VideoTracks_var; private object __mt_VideoComposition_var; private object __mt_WeakVideoSettings_var; [Advice("Use UncompressedVideoSettings property")] public AVVideoSettings VideoSettings { get { if (WeakVideoSettings.TryGetValue(CVPixelBuffer.PixelFormatTypeKey, out var value) && value is NSNumber) { return new AVVideoSettings((CVPixelFormatType)(value as NSNumber).Int32Value); } return new AVVideoSettings(); } } public override IntPtr ClassHandle => class_ptr; public virtual AVAssetTrack[] VideoTracks { [Export("videoTracks")] get { return (AVAssetTrack[])(__mt_VideoTracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoTracksHandle)))); } } public virtual AVVideoComposition VideoComposition { [Export("videoComposition", ArgumentSemantic.Copy)] get { return (AVVideoComposition)(__mt_VideoComposition_var = ((!IsDirectBinding) ? ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoCompositionHandle))) : ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoCompositionHandle))))); } [Export("setVideoComposition:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoComposition_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoComposition_Handle, value.Handle); } __mt_VideoComposition_var = value; } } public virtual NSDictionary WeakVideoSettings { [Export("videoSettings")] get { return (NSDictionary)(__mt_WeakVideoSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoSettingsHandle))))); } } public CVPixelBufferAttributes UncompressedVideoSettings { get { NSDictionary weakVideoSettings = WeakVideoSettings; if (weakVideoSettings != null) { return new CVPixelBufferAttributes(weakVideoSettings); } return null; } } [Advice("Use overload with PixelBufferAttributes")] public AVAssetReaderVideoCompositionOutput(AVAssetTrack[] videoTracks, AVVideoSettings videoSettings) : this(videoTracks, videoSettings?.ToDictionary()) { } [Advice("Use Create method or constructor")] public AVAssetReaderVideoCompositionOutput FromTracks(AVAssetTrack[] videoTracks, AVVideoSettings videoSettings) { return WeakFromTracks(videoTracks, videoSettings?.ToDictionary()); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetReaderVideoCompositionOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderVideoCompositionOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetReaderVideoCompositionOutput(IntPtr handle) : base(handle) { } [Export("assetReaderVideoCompositionOutputWithVideoTracks:videoSettings:")] public static AVAssetReaderVideoCompositionOutput WeakFromTracks(AVAssetTrack[] videoTracks, NSDictionary videoSettings) { if (videoTracks == null) { throw new ArgumentNullException("videoTracks"); } NSArray nSArray = NSArray.FromNSObjects(videoTracks); AVAssetReaderVideoCompositionOutput result = (AVAssetReaderVideoCompositionOutput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetReaderVideoCompositionOutputWithVideoTracksVideoSettings_Handle, nSArray.Handle, videoSettings?.Handle ?? IntPtr.Zero)); nSArray.Dispose(); return result; } public static AVAssetReaderVideoCompositionOutput Create(AVAssetTrack[] videoTracks, CVPixelBufferAttributes settings) { return WeakFromTracks(videoTracks, settings?.Dictionary); } [Export("initWithVideoTracks:videoSettings:")] public AVAssetReaderVideoCompositionOutput(AVAssetTrack[] videoTracks, NSDictionary videoSettings) : base(NSObjectFlag.Empty) { if (videoTracks == null) { throw new ArgumentNullException("videoTracks"); } NSArray nSArray = NSArray.FromNSObjects(videoTracks); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithVideoTracksVideoSettings_Handle, nSArray.Handle, videoSettings?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithVideoTracksVideoSettings_Handle, nSArray.Handle, videoSettings?.Handle ?? IntPtr.Zero); } nSArray.Dispose(); } public AVAssetReaderVideoCompositionOutput(AVAssetTrack[] videoTracks, CVPixelBufferAttributes settings) : this(videoTracks, settings?.Dictionary) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_VideoTracks_var = null; __mt_VideoComposition_var = null; __mt_WeakVideoSettings_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetReferenceRestrictions.cs ================================================ namespace AVFoundation; public enum AVAssetReferenceRestrictions { ForbidNone = 0, ForbidRemoteReferenceToLocal = 1, ForbidLocalReferenceToRemote = 2, ForbidCrossSiteReference = 4, ForbidLocalReferenceToLocal = 8, ForbidAll = 65535 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetTrack.cs ================================================ using System; using System.ComponentModel; using System.Linq; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetTrack", true)] public class AVAssetTrack : NSObject { private static readonly IntPtr selTrackIDHandle = Selector.GetHandle("trackID"); private static readonly IntPtr selAssetHandle = Selector.GetHandle("asset"); private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selFormatDescriptionsHandle = Selector.GetHandle("formatDescriptions"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selIsSelfContainedHandle = Selector.GetHandle("isSelfContained"); private static readonly IntPtr selTotalSampleDataLengthHandle = Selector.GetHandle("totalSampleDataLength"); private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selNaturalTimeScaleHandle = Selector.GetHandle("naturalTimeScale"); private static readonly IntPtr selEstimatedDataRateHandle = Selector.GetHandle("estimatedDataRate"); private static readonly IntPtr selLanguageCodeHandle = Selector.GetHandle("languageCode"); private static readonly IntPtr selExtendedLanguageTagHandle = Selector.GetHandle("extendedLanguageTag"); private static readonly IntPtr selNaturalSizeHandle = Selector.GetHandle("naturalSize"); private static readonly IntPtr selPreferredVolumeHandle = Selector.GetHandle("preferredVolume"); private static readonly IntPtr selPreferredTransformHandle = Selector.GetHandle("preferredTransform"); private static readonly IntPtr selNominalFrameRateHandle = Selector.GetHandle("nominalFrameRate"); private static readonly IntPtr selSegmentsHandle = Selector.GetHandle("segments"); private static readonly IntPtr selAvailableMetadataFormatsHandle = Selector.GetHandle("availableMetadataFormats"); private static readonly IntPtr selCommonMetadataHandle = Selector.GetHandle("commonMetadata"); private static readonly IntPtr selIsPlayableHandle = Selector.GetHandle("isPlayable"); private static readonly IntPtr selHasMediaCharacteristic_Handle = Selector.GetHandle("hasMediaCharacteristic:"); private static readonly IntPtr selSegmentForTrackTime_Handle = Selector.GetHandle("segmentForTrackTime:"); private static readonly IntPtr selSamplePresentationTimeForTrackTime_Handle = Selector.GetHandle("samplePresentationTimeForTrackTime:"); private static readonly IntPtr selMetadataForFormat_Handle = Selector.GetHandle("metadataForFormat:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetTrack"); private object __mt_Asset_var; private object __mt_FormatDescriptionsAsObjects_var; private object __mt_Segments_var; private object __mt_CommonMetadata_var; public override IntPtr ClassHandle => class_ptr; public virtual int TrackID { [Export("trackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackIDHandle); } } public virtual AVAsset Asset { [Export("asset")] get { return (AVAsset)(__mt_Asset_var = ((!IsDirectBinding) ? ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetHandle))) : ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetHandle))))); } } public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual NSObject[] FormatDescriptionsAsObjects { [Export("formatDescriptions")] get { return (NSObject[])(__mt_FormatDescriptionsAsObjects_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionsHandle)))); } } public CMFormatDescription[] FormatDescriptions => FormatDescriptionsAsObjects.Select((NSObject l) => CMFormatDescription.Create(l.Handle, owns: false)).ToArray(); public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } } public virtual bool SelfContained { [Export("isSelfContained")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelfContainedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelfContainedHandle); } } public virtual long TotalSampleDataLength { [Export("totalSampleDataLength")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTotalSampleDataLengthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTotalSampleDataLengthHandle); } } public virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } } public virtual int NaturalTimeScale { [Export("naturalTimeScale")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNaturalTimeScaleHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNaturalTimeScaleHandle); } } public virtual float EstimatedDataRate { [Export("estimatedDataRate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selEstimatedDataRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selEstimatedDataRateHandle); } } public virtual string LanguageCode { [Export("languageCode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLanguageCodeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLanguageCodeHandle)); } } public virtual string ExtendedLanguageTag { [Export("extendedLanguageTag")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExtendedLanguageTagHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtendedLanguageTagHandle)); } } public virtual CGSize NaturalSize { [Export("naturalSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selNaturalSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selNaturalSizeHandle); } } public virtual float PreferredVolume { [Export("preferredVolume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPreferredVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPreferredVolumeHandle); } } public virtual CGAffineTransform PreferredTransform { [Export("preferredTransform")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selPreferredTransformHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selPreferredTransformHandle); } return retval; } } public virtual float NominalFrameRate { [Export("nominalFrameRate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selNominalFrameRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selNominalFrameRateHandle); } } public virtual AVAssetTrackSegment[] Segments { [Export("segments", ArgumentSemantic.Copy)] get { return (AVAssetTrackSegment[])(__mt_Segments_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSegmentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSegmentsHandle)))); } } public virtual string[] AvailableMetadataFormats { [Export("availableMetadataFormats")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableMetadataFormatsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableMetadataFormatsHandle)); } } public virtual AVMetadataItem[] CommonMetadata { [Export("commonMetadata")] get { return (AVMetadataItem[])(__mt_CommonMetadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommonMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCommonMetadataHandle)))); } } public virtual bool Playable { [Export("isPlayable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlayableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlayableHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetTrack(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetTrack(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetTrack(IntPtr handle) : base(handle) { } [Export("hasMediaCharacteristic:")] public virtual bool HasMediaCharacteristic(string mediaCharacteristic) { if (mediaCharacteristic == null) { throw new ArgumentNullException("mediaCharacteristic"); } IntPtr arg = NSString.CreateNative(mediaCharacteristic); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasMediaCharacteristic_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasMediaCharacteristic_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("segmentForTrackTime:")] public virtual AVAssetTrackSegment SegmentForTrackTime(CMTime trackTime) { if (IsDirectBinding) { return (AVAssetTrackSegment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CMTime(base.Handle, selSegmentForTrackTime_Handle, trackTime)); } return (AVAssetTrackSegment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CMTime(base.SuperHandle, selSegmentForTrackTime_Handle, trackTime)); } [Export("samplePresentationTimeForTrackTime:")] public virtual CMTime SamplePresentationTimeForTrackTime(CMTime trackTime) { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret_CMTime(out retval, base.Handle, selSamplePresentationTimeForTrackTime_Handle, trackTime); } else { Messaging.CMTime_objc_msgSendSuper_stret_CMTime(out retval, base.SuperHandle, selSamplePresentationTimeForTrackTime_Handle, trackTime); } return retval; } [Export("metadataForFormat:")] public virtual AVMetadataItem[] MetadataForFormat(string format) { if (format == null) { throw new ArgumentNullException("format"); } IntPtr arg = NSString.CreateNative(format); AVMetadataItem[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMetadataForFormat_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMetadataForFormat_Handle, arg))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Asset_var = null; __mt_FormatDescriptionsAsObjects_var = null; __mt_Segments_var = null; __mt_CommonMetadata_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetTrackSegment.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetTrackSegment", true)] public class AVAssetTrackSegment : NSObject { private static readonly IntPtr selIsEmptyHandle = Selector.GetHandle("isEmpty"); private static readonly IntPtr selTimeMappingHandle = Selector.GetHandle("timeMapping"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetTrackSegment"); public override IntPtr ClassHandle => class_ptr; public virtual bool Empty { [Export("isEmpty")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEmptyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEmptyHandle); } } public virtual CMTimeMapping TimeMapping { [Export("timeMapping")] get { CMTimeMapping retval; if (IsDirectBinding) { Messaging.CMTimeMapping_objc_msgSend_stret(out retval, base.Handle, selTimeMappingHandle); } else { Messaging.CMTimeMapping_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeMappingHandle); } return retval; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAssetTrackSegment() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetTrackSegment(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetTrackSegment(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetTrackSegment(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetWriter.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetWriter", true)] public class AVAssetWriter : NSObject { private static readonly IntPtr selOutputURLHandle = Selector.GetHandle("outputURL"); private static readonly IntPtr selOutputFileTypeHandle = Selector.GetHandle("outputFileType"); private static readonly IntPtr selStatusHandle = Selector.GetHandle("status"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selMovieFragmentIntervalHandle = Selector.GetHandle("movieFragmentInterval"); private static readonly IntPtr selSetMovieFragmentInterval_Handle = Selector.GetHandle("setMovieFragmentInterval:"); private static readonly IntPtr selShouldOptimizeForNetworkUseHandle = Selector.GetHandle("shouldOptimizeForNetworkUse"); private static readonly IntPtr selSetShouldOptimizeForNetworkUse_Handle = Selector.GetHandle("setShouldOptimizeForNetworkUse:"); private static readonly IntPtr selInputsHandle = Selector.GetHandle("inputs"); private static readonly IntPtr selMetadataHandle = Selector.GetHandle("metadata"); private static readonly IntPtr selSetMetadata_Handle = Selector.GetHandle("setMetadata:"); private static readonly IntPtr selMovieTimeScaleHandle = Selector.GetHandle("movieTimeScale"); private static readonly IntPtr selSetMovieTimeScale_Handle = Selector.GetHandle("setMovieTimeScale:"); private static readonly IntPtr selAssetWriterWithURLFileTypeError_Handle = Selector.GetHandle("assetWriterWithURL:fileType:error:"); private static readonly IntPtr selInitWithURLFileTypeError_Handle = Selector.GetHandle("initWithURL:fileType:error:"); private static readonly IntPtr selCanApplyOutputSettingsForMediaType_Handle = Selector.GetHandle("canApplyOutputSettings:forMediaType:"); private static readonly IntPtr selCanAddInput_Handle = Selector.GetHandle("canAddInput:"); private static readonly IntPtr selAddInput_Handle = Selector.GetHandle("addInput:"); private static readonly IntPtr selStartWritingHandle = Selector.GetHandle("startWriting"); private static readonly IntPtr selStartSessionAtSourceTime_Handle = Selector.GetHandle("startSessionAtSourceTime:"); private static readonly IntPtr selEndSessionAtSourceTime_Handle = Selector.GetHandle("endSessionAtSourceTime:"); private static readonly IntPtr selCancelWritingHandle = Selector.GetHandle("cancelWriting"); private static readonly IntPtr selFinishWritingHandle = Selector.GetHandle("finishWriting"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetWriter"); private object __mt_OutputURL_var; private object __mt_Error_var; private object __mt_inputs_var; private object __mt_Metadata_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl OutputURL { [Export("outputURL", ArgumentSemantic.Copy)] get { return (NSUrl)(__mt_OutputURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputURLHandle))))); } } public virtual string OutputFileType { [Export("outputFileType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputFileTypeHandle)); } } public virtual AVAssetWriterStatus Status { [Export("status")] get { if (IsDirectBinding) { return (AVAssetWriterStatus)Messaging.int_objc_msgSend(base.Handle, selStatusHandle); } return (AVAssetWriterStatus)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStatusHandle); } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } public virtual CMTime MovieFragmentInterval { [Export("movieFragmentInterval")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selMovieFragmentIntervalHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMovieFragmentIntervalHandle); } return retval; } [Export("setMovieFragmentInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetMovieFragmentInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetMovieFragmentInterval_Handle, value); } } } public virtual bool ShouldOptimizeForNetworkUse { [Export("shouldOptimizeForNetworkUse")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldOptimizeForNetworkUseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldOptimizeForNetworkUseHandle); } [Export("setShouldOptimizeForNetworkUse:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldOptimizeForNetworkUse_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldOptimizeForNetworkUse_Handle, value); } } } public virtual AVAssetWriterInput[] inputs { [Export("inputs")] get { return (AVAssetWriterInput[])(__mt_inputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputsHandle)))); } } public virtual AVMetadataItem[] Metadata { [Export("metadata")] get { return (AVMetadataItem[])(__mt_Metadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMetadataHandle)))); } [Export("setMetadata:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMetadata_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMetadata_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Metadata_var = value; } } public virtual int MovieTimeScale { [Export("movieTimeScale")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMovieTimeScaleHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMovieTimeScaleHandle); } [Export("setMovieTimeScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMovieTimeScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMovieTimeScale_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetWriter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriter(IntPtr handle) : base(handle) { } [Export("assetWriterWithURL:fileType:error:")] public static AVAssetWriter FromUrl(NSUrl outputUrl, string outputFileType, out NSError error) { if (outputUrl == null) { throw new ArgumentNullException("outputUrl"); } if (outputFileType == null) { throw new ArgumentNullException("outputFileType"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(outputFileType); AVAssetWriter result = (AVAssetWriter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selAssetWriterWithURLFileTypeError_Handle, outputUrl.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initWithURL:fileType:error:")] public AVAssetWriter(NSUrl outputUrl, string outputFileType, out NSError error) : base(NSObjectFlag.Empty) { if (outputUrl == null) { throw new ArgumentNullException("outputUrl"); } if (outputFileType == null) { throw new ArgumentNullException("outputFileType"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(outputFileType); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithURLFileTypeError_Handle, outputUrl.Handle, arg, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithURLFileTypeError_Handle, outputUrl.Handle, arg, intPtr); } NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("canApplyOutputSettings:forMediaType:")] public virtual bool CanApplyOutputSettings(NSDictionary outputSettings, string mediaType) { if (outputSettings == null) { throw new ArgumentNullException("outputSettings"); } if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCanApplyOutputSettingsForMediaType_Handle, outputSettings.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selCanApplyOutputSettingsForMediaType_Handle, outputSettings.Handle, arg)); NSString.ReleaseNative(arg); return result; } public bool CanApplyOutputSettings(AudioSettings outputSettings, string mediaType) { return CanApplyOutputSettings(outputSettings?.Dictionary, mediaType); } public bool CanApplyOutputSettings(AVVideoSettingsCompressed outputSettings, string mediaType) { return CanApplyOutputSettings(outputSettings?.Dictionary, mediaType); } [Export("canAddInput:")] public virtual bool CanAddInput(AVAssetWriterInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanAddInput_Handle, input.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanAddInput_Handle, input.Handle); } [Export("addInput:")] public virtual void AddInput(AVAssetWriterInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddInput_Handle, input.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddInput_Handle, input.Handle); } } [Export("startWriting")] public virtual bool StartWriting() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selStartWritingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selStartWritingHandle); } [Export("startSessionAtSourceTime:")] public virtual void StartSessionAtSourceTime(CMTime startTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selStartSessionAtSourceTime_Handle, startTime); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selStartSessionAtSourceTime_Handle, startTime); } } [Export("endSessionAtSourceTime:")] public virtual void EndSessionAtSourceTime(CMTime endTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selEndSessionAtSourceTime_Handle, endTime); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selEndSessionAtSourceTime_Handle, endTime); } } [Export("cancelWriting")] public virtual void CancelWriting() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelWritingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelWritingHandle); } } [Export("finishWriting")] [Obsolete("Deprecated in iOS 6.0. Use the asynchronous FinishWriting(NSAction completionHandler) instead", false)] public virtual bool FinishWriting() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selFinishWritingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFinishWritingHandle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OutputURL_var = null; __mt_Error_var = null; __mt_inputs_var = null; __mt_Metadata_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetWriterInput.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetWriterInput", true)] public class AVAssetWriterInput : NSObject { private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selOutputSettingsHandle = Selector.GetHandle("outputSettings"); private static readonly IntPtr selTransformHandle = Selector.GetHandle("transform"); private static readonly IntPtr selSetTransform_Handle = Selector.GetHandle("setTransform:"); private static readonly IntPtr selMetadataHandle = Selector.GetHandle("metadata"); private static readonly IntPtr selSetMetadata_Handle = Selector.GetHandle("setMetadata:"); private static readonly IntPtr selIsReadyForMoreMediaDataHandle = Selector.GetHandle("isReadyForMoreMediaData"); private static readonly IntPtr selExpectsMediaDataInRealTimeHandle = Selector.GetHandle("expectsMediaDataInRealTime"); private static readonly IntPtr selSetExpectsMediaDataInRealTime_Handle = Selector.GetHandle("setExpectsMediaDataInRealTime:"); private static readonly IntPtr selMediaTimeScaleHandle = Selector.GetHandle("mediaTimeScale"); private static readonly IntPtr selSetMediaTimeScale_Handle = Selector.GetHandle("setMediaTimeScale:"); private static readonly IntPtr selAssetWriterInputWithMediaTypeOutputSettings_Handle = Selector.GetHandle("assetWriterInputWithMediaType:outputSettings:"); private static readonly IntPtr selInitWithMediaTypeOutputSettings_Handle = Selector.GetHandle("initWithMediaType:outputSettings:"); private static readonly IntPtr selRequestMediaDataWhenReadyOnQueueUsingBlock_Handle = Selector.GetHandle("requestMediaDataWhenReadyOnQueue:usingBlock:"); private static readonly IntPtr selAppendSampleBuffer_Handle = Selector.GetHandle("appendSampleBuffer:"); private static readonly IntPtr selMarkAsFinishedHandle = Selector.GetHandle("markAsFinished"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetWriterInput"); private object __mt_OutputSettings_var; private object __mt_Metadata_var; public override IntPtr ClassHandle => class_ptr; public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual NSDictionary OutputSettings { [Export("outputSettings")] get { return (NSDictionary)(__mt_OutputSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputSettingsHandle))))); } } public virtual CGAffineTransform Transform { [Export("transform")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selTransformHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTransformHandle); } return retval; } [Export("setTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform(base.Handle, selSetTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform(base.SuperHandle, selSetTransform_Handle, value); } } } public virtual AVMetadataItem[] Metadata { [Export("metadata")] get { return (AVMetadataItem[])(__mt_Metadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMetadataHandle)))); } [Export("setMetadata:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMetadata_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMetadata_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Metadata_var = value; } } public virtual bool ReadyForMoreMediaData { [Export("isReadyForMoreMediaData")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReadyForMoreMediaDataHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReadyForMoreMediaDataHandle); } } public virtual bool ExpectsMediaDataInRealTime { [Export("expectsMediaDataInRealTime")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selExpectsMediaDataInRealTimeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selExpectsMediaDataInRealTimeHandle); } [Export("setExpectsMediaDataInRealTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetExpectsMediaDataInRealTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetExpectsMediaDataInRealTime_Handle, value); } } } public virtual int MediaTimeScale { [Export("mediaTimeScale")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMediaTimeScaleHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMediaTimeScaleHandle); } [Export("setMediaTimeScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMediaTimeScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMediaTimeScale_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetWriterInput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriterInput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriterInput(IntPtr handle) : base(handle) { } [Export("assetWriterInputWithMediaType:outputSettings:")] public static AVAssetWriterInput FromType(string mediaType, NSDictionary outputSettings) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); AVAssetWriterInput result = (AVAssetWriterInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetWriterInputWithMediaTypeOutputSettings_Handle, arg, outputSettings?.Handle ?? IntPtr.Zero)); NSString.ReleaseNative(arg); return result; } public static AVAssetWriterInput Create(string mediaType, AudioSettings outputSettings) { return FromType(mediaType, outputSettings?.Dictionary); } public static AVAssetWriterInput Create(string mediaType, AVVideoSettingsCompressed outputSettings) { return FromType(mediaType, outputSettings?.Dictionary); } [Export("initWithMediaType:outputSettings:")] public AVAssetWriterInput(string mediaType, NSDictionary outputSettings) : base(NSObjectFlag.Empty) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithMediaTypeOutputSettings_Handle, arg, outputSettings?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithMediaTypeOutputSettings_Handle, arg, outputSettings?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } public AVAssetWriterInput(string mediaType, AudioSettings outputSettings) : this(mediaType, outputSettings?.Dictionary) { } public AVAssetWriterInput(string mediaType, AVVideoSettingsCompressed outputSettings) : this(mediaType, outputSettings?.Dictionary) { } [Export("requestMediaDataWhenReadyOnQueue:usingBlock:")] public unsafe virtual void RequestMediaData(DispatchQueue queue, NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, action); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRequestMediaDataWhenReadyOnQueueUsingBlock_Handle, queue.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRequestMediaDataWhenReadyOnQueueUsingBlock_Handle, queue.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("appendSampleBuffer:")] public virtual bool AppendSampleBuffer(CMSampleBuffer sampleBuffer) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAppendSampleBuffer_Handle, sampleBuffer.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendSampleBuffer_Handle, sampleBuffer.Handle); } [Export("markAsFinished")] public virtual void MarkAsFinished() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMarkAsFinishedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMarkAsFinishedHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OutputSettings_var = null; __mt_Metadata_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetWriterInputPixelBufferAdaptor.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using CoreVideo; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAssetWriterInputPixelBufferAdaptor", true)] public class AVAssetWriterInputPixelBufferAdaptor : NSObject { private static readonly IntPtr selAssetWriterInputHandle = Selector.GetHandle("assetWriterInput"); private static readonly IntPtr selSourcePixelBufferAttributesHandle = Selector.GetHandle("sourcePixelBufferAttributes"); private static readonly IntPtr selPixelBufferPoolHandle = Selector.GetHandle("pixelBufferPool"); private static readonly IntPtr selAssetWriterInputPixelBufferAdaptorWithAssetWriterInputSourcePixelBufferAttributes_Handle = Selector.GetHandle("assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:"); private static readonly IntPtr selInitWithAssetWriterInputSourcePixelBufferAttributes_Handle = Selector.GetHandle("initWithAssetWriterInput:sourcePixelBufferAttributes:"); private static readonly IntPtr selAppendPixelBufferWithPresentationTime_Handle = Selector.GetHandle("appendPixelBuffer:withPresentationTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAssetWriterInputPixelBufferAdaptor"); private object __mt_AssetWriterInput_var; private object __mt_SourcePixelBufferAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual AVAssetWriterInput AssetWriterInput { [Export("assetWriterInput")] get { return (AVAssetWriterInput)(__mt_AssetWriterInput_var = ((!IsDirectBinding) ? ((AVAssetWriterInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetWriterInputHandle))) : ((AVAssetWriterInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetWriterInputHandle))))); } } public virtual NSDictionary SourcePixelBufferAttributes { [Export("sourcePixelBufferAttributes")] get { return (NSDictionary)(__mt_SourcePixelBufferAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourcePixelBufferAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourcePixelBufferAttributesHandle))))); } } public CVPixelBufferAttributes Attributes { get { NSDictionary sourcePixelBufferAttributes = SourcePixelBufferAttributes; if (sourcePixelBufferAttributes != null) { return new CVPixelBufferAttributes(sourcePixelBufferAttributes); } return null; } } public virtual CVPixelBufferPool PixelBufferPool { [Export("pixelBufferPool")] get { if (IsDirectBinding) { return new CVPixelBufferPool(Messaging.IntPtr_objc_msgSend(base.Handle, selPixelBufferPoolHandle)); } return new CVPixelBufferPool(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPixelBufferPoolHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAssetWriterInputPixelBufferAdaptor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriterInputPixelBufferAdaptor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAssetWriterInputPixelBufferAdaptor(IntPtr handle) : base(handle) { } [Export("assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:")] public static AVAssetWriterInputPixelBufferAdaptor FromInput(AVAssetWriterInput input, NSDictionary sourcePixelBufferAttributes) { if (input == null) { throw new ArgumentNullException("input"); } return (AVAssetWriterInputPixelBufferAdaptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selAssetWriterInputPixelBufferAdaptorWithAssetWriterInputSourcePixelBufferAttributes_Handle, input.Handle, sourcePixelBufferAttributes?.Handle ?? IntPtr.Zero)); } public static AVAssetWriterInputPixelBufferAdaptor Create(AVAssetWriterInput input, CVPixelBufferAttributes attributes) { return FromInput(input, attributes?.Dictionary); } [Export("initWithAssetWriterInput:sourcePixelBufferAttributes:")] public AVAssetWriterInputPixelBufferAdaptor(AVAssetWriterInput input, NSDictionary sourcePixelBufferAttributes) : base(NSObjectFlag.Empty) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAssetWriterInputSourcePixelBufferAttributes_Handle, input.Handle, sourcePixelBufferAttributes?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAssetWriterInputSourcePixelBufferAttributes_Handle, input.Handle, sourcePixelBufferAttributes?.Handle ?? IntPtr.Zero); } } public AVAssetWriterInputPixelBufferAdaptor(AVAssetWriterInput input, CVPixelBufferAttributes attributes) : this(input, attributes?.Dictionary) { } [Export("appendPixelBuffer:withPresentationTime:")] public virtual bool AppendPixelBufferWithPresentationTime(CVPixelBuffer pixelBuffer, CMTime presentationTime) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CMTime(base.Handle, selAppendPixelBufferWithPresentationTime_Handle, pixelBuffer.Handle, presentationTime); } return Messaging.bool_objc_msgSendSuper_IntPtr_CMTime(base.SuperHandle, selAppendPixelBufferWithPresentationTime_Handle, pixelBuffer.Handle, presentationTime); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AssetWriterInput_var = null; __mt_SourcePixelBufferAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAssetWriterStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 1)] public enum AVAssetWriterStatus { Unknown, Writing, Completed, Failed, Cancelled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAsynchronousKeyValueLoading.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVAsynchronousKeyValueLoading", true)] [Model] public abstract class AVAsynchronousKeyValueLoading : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAsynchronousKeyValueLoading() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAsynchronousKeyValueLoading(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAsynchronousKeyValueLoading(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAsynchronousKeyValueLoading(IntPtr handle) : base(handle) { } [Export("statusOfValueForKey:error:")] public abstract AVKeyValueStatus StatusOfValueForKeyerror(string key, IntPtr outError); [Export("loadValuesAsynchronouslyForKeys:completionHandler:")] public abstract void LoadValuesAsynchronously(string[] keys, NSAction handler); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioMix.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAudioMix", true)] public class AVAudioMix : NSObject { private static readonly IntPtr selInputParametersHandle = Selector.GetHandle("inputParameters"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAudioMix"); private object __mt_InputParameters_var; public override IntPtr ClassHandle => class_ptr; public virtual AVAudioMixInputParameters[] InputParameters { [Export("inputParameters", ArgumentSemantic.Copy)] get { return (AVAudioMixInputParameters[])(__mt_InputParameters_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputParametersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputParametersHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAudioMix() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioMix(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioMix(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioMix(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InputParameters_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioMixInputParameters.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAudioMixInputParameters", true)] public class AVAudioMixInputParameters : NSObject { private static readonly IntPtr selTrackIDHandle = Selector.GetHandle("trackID"); private static readonly IntPtr selGetVolumeRampForTimeStartVolumeEndVolumeTimeRange_Handle = Selector.GetHandle("getVolumeRampForTime:startVolume:endVolume:timeRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAudioMixInputParameters"); public override IntPtr ClassHandle => class_ptr; public virtual int TrackID { [Export("trackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackIDHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAudioMixInputParameters() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioMixInputParameters(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioMixInputParameters(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioMixInputParameters(IntPtr handle) : base(handle) { } [Export("getVolumeRampForTime:startVolume:endVolume:timeRange:")] public virtual bool GetVolumeRamp(CMTime forTime, ref float startVolume, ref float endVolume, ref CMTimeRange timeRange) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CMTime_out_Single_out_Single_out_CMTimeRange(base.Handle, selGetVolumeRampForTimeStartVolumeEndVolumeTimeRange_Handle, forTime, out startVolume, out endVolume, out timeRange); } return Messaging.bool_objc_msgSendSuper_CMTime_out_Single_out_Single_out_CMTimeRange(base.SuperHandle, selGetVolumeRampForTimeStartVolumeEndVolumeTimeRange_Handle, forTime, out startVolume, out endVolume, out timeRange); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioPlayer.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAudioPlayer", true)] public class AVAudioPlayer : NSObject { private static readonly IntPtr selIsPlayingHandle = Selector.GetHandle("isPlaying"); private static readonly IntPtr selNumberOfChannelsHandle = Selector.GetHandle("numberOfChannels"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selUrlHandle = Selector.GetHandle("url"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selSetCurrentTime_Handle = Selector.GetHandle("setCurrentTime:"); private static readonly IntPtr selNumberOfLoopsHandle = Selector.GetHandle("numberOfLoops"); private static readonly IntPtr selSetNumberOfLoops_Handle = Selector.GetHandle("setNumberOfLoops:"); private static readonly IntPtr selIsMeteringEnabledHandle = Selector.GetHandle("isMeteringEnabled"); private static readonly IntPtr selSetMeteringEnabled_Handle = Selector.GetHandle("setMeteringEnabled:"); private static readonly IntPtr selDeviceCurrentTimeHandle = Selector.GetHandle("deviceCurrentTime"); private static readonly IntPtr selPanHandle = Selector.GetHandle("pan"); private static readonly IntPtr selSetPan_Handle = Selector.GetHandle("setPan:"); private static readonly IntPtr selSettingsHandle = Selector.GetHandle("settings"); private static readonly IntPtr selEnableRateHandle = Selector.GetHandle("enableRate"); private static readonly IntPtr selSetEnableRate_Handle = Selector.GetHandle("setEnableRate:"); private static readonly IntPtr selRateHandle = Selector.GetHandle("rate"); private static readonly IntPtr selSetRate_Handle = Selector.GetHandle("setRate:"); private static readonly IntPtr selInitWithContentsOfURLError_Handle = Selector.GetHandle("initWithContentsOfURL:error:"); private static readonly IntPtr selInitWithDataError_Handle = Selector.GetHandle("initWithData:error:"); private static readonly IntPtr selPrepareToPlayHandle = Selector.GetHandle("prepareToPlay"); private static readonly IntPtr selPlayHandle = Selector.GetHandle("play"); private static readonly IntPtr selPauseHandle = Selector.GetHandle("pause"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr selUpdateMetersHandle = Selector.GetHandle("updateMeters"); private static readonly IntPtr selPeakPowerForChannel_Handle = Selector.GetHandle("peakPowerForChannel:"); private static readonly IntPtr selAveragePowerForChannel_Handle = Selector.GetHandle("averagePowerForChannel:"); private static readonly IntPtr selPlayAtTime_Handle = Selector.GetHandle("playAtTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAudioPlayer"); private object __mt_WeakDelegate_var; private object __mt_Url_var; private object __mt_Data_var; private object __mt_WeakSettings_var; [Advice("Use SoundSettings")] public AVAudioPlayerSettings Settings => new AVAudioPlayerSettings(WeakSettings); public override IntPtr ClassHandle => class_ptr; public virtual bool Playing { [Export("isPlaying")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlayingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlayingHandle); } } public virtual uint NumberOfChannels { [Export("numberOfChannels")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selNumberOfChannelsHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selNumberOfChannelsHandle); } } public virtual double Duration { [Export("duration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public AVAudioPlayerDelegate Delegate { get { return WeakDelegate as AVAudioPlayerDelegate; } set { WeakDelegate = value; } } public virtual NSUrl Url { [Export("url")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUrlHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUrlHandle))))); } } public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public virtual float Volume { [Export("volume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } public virtual double CurrentTime { [Export("currentTime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCurrentTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCurrentTimeHandle); } [Export("setCurrentTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCurrentTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCurrentTime_Handle, value); } } } public virtual int NumberOfLoops { [Export("numberOfLoops")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfLoopsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfLoopsHandle); } [Export("setNumberOfLoops:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetNumberOfLoops_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetNumberOfLoops_Handle, value); } } } public virtual bool MeteringEnabled { [Export("isMeteringEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMeteringEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMeteringEnabledHandle); } [Export("setMeteringEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMeteringEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMeteringEnabled_Handle, value); } } } [Since(4, 0)] public virtual double DeviceCurrentTime { [Export("deviceCurrentTime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDeviceCurrentTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDeviceCurrentTimeHandle); } } [Since(4, 0)] public virtual float Pan { [Export("pan")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPanHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPanHandle); } [Export("setPan:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetPan_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetPan_Handle, value); } } } [Since(4, 0)] protected virtual NSDictionary WeakSettings { [Export("settings")] get { return (NSDictionary)(__mt_WeakSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSettingsHandle))))); } } public AudioSettings SoundSetting { get { NSDictionary weakSettings = WeakSettings; if (weakSettings != null) { return new AudioSettings(weakSettings); } return null; } } [Since(5, 0)] public virtual bool EnableRate { [Export("enableRate")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEnableRateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEnableRateHandle); } [Export("setEnableRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnableRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnableRate_Handle, value); } } } [Since(5, 0)] public virtual float Rate { [Export("rate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRateHandle); } [Export("setRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRate_Handle, value); } } } public event EventHandler FinishedPlaying { add { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbFinishedPlaying = (EventHandler)System.Delegate.Combine(internalAVAudioPlayerDelegate.cbFinishedPlaying, value); } remove { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbFinishedPlaying = (EventHandler)System.Delegate.Remove(internalAVAudioPlayerDelegate.cbFinishedPlaying, value); } } public event EventHandler DecoderError { add { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbDecoderError = (EventHandler)System.Delegate.Combine(internalAVAudioPlayerDelegate.cbDecoderError, value); } remove { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbDecoderError = (EventHandler)System.Delegate.Remove(internalAVAudioPlayerDelegate.cbDecoderError, value); } } public event EventHandler BeginInterruption { add { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbBeginInterruption = (EventHandler)System.Delegate.Combine(internalAVAudioPlayerDelegate.cbBeginInterruption, value); } remove { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbBeginInterruption = (EventHandler)System.Delegate.Remove(internalAVAudioPlayerDelegate.cbBeginInterruption, value); } } public event EventHandler EndInterruption { add { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbEndInterruption = (EventHandler)System.Delegate.Combine(internalAVAudioPlayerDelegate.cbEndInterruption, value); } remove { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = EnsureEventDelegate(); internalAVAudioPlayerDelegate.cbEndInterruption = (EventHandler)System.Delegate.Remove(internalAVAudioPlayerDelegate.cbEndInterruption, value); } } public unsafe static AVAudioPlayer FromUrl(NSUrl url, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr outError = (IntPtr)(&ptr); AVAudioPlayer aVAudioPlayer = new AVAudioPlayer(url, outError); if (aVAudioPlayer.Handle == IntPtr.Zero) { error = (NSError)Runtime.GetNSObject(ptr); return null; } error = null; return aVAudioPlayer; } public static AVAudioPlayer FromUrl(NSUrl url) { AVAudioPlayer aVAudioPlayer = new AVAudioPlayer(url, IntPtr.Zero); if (aVAudioPlayer.Handle == IntPtr.Zero) { return null; } return aVAudioPlayer; } public unsafe static AVAudioPlayer FromData(NSData data, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr outError = (IntPtr)(&ptr); AVAudioPlayer aVAudioPlayer = new AVAudioPlayer(data, outError); if (aVAudioPlayer.Handle == IntPtr.Zero) { error = (NSError)Runtime.GetNSObject(ptr); return null; } error = null; return aVAudioPlayer; } public static AVAudioPlayer FromData(NSData data) { AVAudioPlayer aVAudioPlayer = new AVAudioPlayer(data, IntPtr.Zero); if (aVAudioPlayer.Handle == IntPtr.Zero) { return null; } return aVAudioPlayer; } [Obsolete("This method had an invalid signature in MonoMac 1.0.3, use AVAudioPlayer.FromUrl instead")] public AVAudioPlayer(NSUrl url, NSError error) : this(url, IntPtr.Zero) { } [Obsolete("This method had an invalid signature in MonoMac 1.0.3, use AVAudioPlayer.FromData instead")] public AVAudioPlayer(NSData data, NSError error) : this(data, IntPtr.Zero) { } [Advice("This method was incorrectly named, use PlayAtTime instead")] public bool PlayAtTimetime(double time) { return PlayAtTime(time); } private InternalAVAudioPlayerDelegate EnsureEventDelegate() { InternalAVAudioPlayerDelegate internalAVAudioPlayerDelegate = WeakDelegate as InternalAVAudioPlayerDelegate; if (internalAVAudioPlayerDelegate == null) { internalAVAudioPlayerDelegate = (InternalAVAudioPlayerDelegate)(WeakDelegate = new InternalAVAudioPlayerDelegate()); } return internalAVAudioPlayerDelegate; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioPlayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioPlayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioPlayer(IntPtr handle) : base(handle) { } [Export("initWithContentsOfURL:error:")] internal AVAudioPlayer(NSUrl url, IntPtr outError) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithContentsOfURLError_Handle, url.Handle, outError); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithContentsOfURLError_Handle, url.Handle, outError); } } [Export("initWithData:error:")] internal AVAudioPlayer(NSData data, IntPtr outError) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDataError_Handle, data.Handle, outError); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDataError_Handle, data.Handle, outError); } } [Export("prepareToPlay")] public virtual bool PrepareToPlay() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPrepareToPlayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPrepareToPlayHandle); } [Export("play")] public virtual bool Play() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPlayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPlayHandle); } [Export("pause")] public virtual void Pause() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPauseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPauseHandle); } } [Export("stop")] public virtual void Stop() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopHandle); } } [Export("updateMeters")] public virtual void UpdateMeters() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateMetersHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateMetersHandle); } } [Export("peakPowerForChannel:")] public virtual float PeakPower(uint channelNumber) { if (IsDirectBinding) { return Messaging.float_objc_msgSend_UInt32(base.Handle, selPeakPowerForChannel_Handle, channelNumber); } return Messaging.float_objc_msgSendSuper_UInt32(base.SuperHandle, selPeakPowerForChannel_Handle, channelNumber); } [Export("averagePowerForChannel:")] public virtual float AveragePower(uint channelNumber) { if (IsDirectBinding) { return Messaging.float_objc_msgSend_UInt32(base.Handle, selAveragePowerForChannel_Handle, channelNumber); } return Messaging.float_objc_msgSendSuper_UInt32(base.SuperHandle, selAveragePowerForChannel_Handle, channelNumber); } [Export("playAtTime:")] public virtual bool PlayAtTime(double time) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Double(base.Handle, selPlayAtTime_Handle, time); } return Messaging.bool_objc_msgSendSuper_Double(base.SuperHandle, selPlayAtTime_Handle, time); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Url_var = null; __mt_Data_var = null; __mt_WeakSettings_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioPlayerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVAudioPlayerDelegate", true)] [Model] public class AVAudioPlayerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAudioPlayerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioPlayerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioPlayerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioPlayerDelegate(IntPtr handle) : base(handle) { } [Export("audioPlayerDidFinishPlaying:successfully:")] public virtual void FinishedPlaying(AVAudioPlayer player, bool flag) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("audioPlayerDecodeErrorDidOccur:error:")] public virtual void DecoderError(AVAudioPlayer player, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioPlayerSettings.cs ================================================ using AudioToolbox; using Foundation; namespace AVFoundation; [Advice("Use AudioSettings instead")] public class AVAudioPlayerSettings { private NSDictionary dict; public AudioChannelLayout AudioChannelLayout { get { if (!(dict.ObjectForKey(AVAudioSettings.AVChannelLayoutKey) is NSData nSData)) { return new AudioChannelLayout(); } return AudioChannelLayout.FromHandle(nSData.Bytes); } } public int EncoderBitRateKey { get { if (dict.ObjectForKey(AVAudioSettings.AVEncoderBitRateKey) is NSNumber nSNumber) { return nSNumber.Int32Value; } return 0; } } public AudioFormatType AudioFormat { get { if (dict.ObjectForKey(AVAudioSettings.AVFormatIDKey) is NSNumber nSNumber) { return (AudioFormatType)nSNumber.Int32Value; } return (AudioFormatType)(-1); } } public int NumberChannels { get { if (dict.ObjectForKey(AVAudioSettings.AVNumberOfChannelsKey) is NSNumber nSNumber) { return nSNumber.Int32Value; } return 1; } } public float SampleRate { get { if (dict.ObjectForKey(AVAudioSettings.AVSampleRateKey) is NSNumber nSNumber) { return nSNumber.FloatValue; } return 0f; } } internal AVAudioPlayerSettings(NSDictionary dictionary) { dict = dictionary; } public static implicit operator NSDictionary(AVAudioPlayerSettings settings) { return settings.dict; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioQuality.cs ================================================ namespace AVFoundation; public enum AVAudioQuality { Min = 0, Low = 32, Medium = 64, High = 96, Max = 127 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioRecorder.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVAudioRecorder", true)] public class AVAudioRecorder : NSObject { private static readonly IntPtr selIsRecordingHandle = Selector.GetHandle("isRecording"); private static readonly IntPtr selUrlHandle = Selector.GetHandle("url"); private static readonly IntPtr selSettingsHandle = Selector.GetHandle("settings"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selIsMeteringEnabledHandle = Selector.GetHandle("isMeteringEnabled"); private static readonly IntPtr selSetMeteringEnabled_Handle = Selector.GetHandle("setMeteringEnabled:"); private static readonly IntPtr selInitWithURLSettingsError_Handle = Selector.GetHandle("initWithURL:settings:error:"); private static readonly IntPtr selPrepareToRecordHandle = Selector.GetHandle("prepareToRecord"); private static readonly IntPtr selRecordHandle = Selector.GetHandle("record"); private static readonly IntPtr selRecordForDuration_Handle = Selector.GetHandle("recordForDuration:"); private static readonly IntPtr selPauseHandle = Selector.GetHandle("pause"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr selDeleteRecordingHandle = Selector.GetHandle("deleteRecording"); private static readonly IntPtr selUpdateMetersHandle = Selector.GetHandle("updateMeters"); private static readonly IntPtr selPeakPowerForChannel_Handle = Selector.GetHandle("peakPowerForChannel:"); private static readonly IntPtr selAveragePowerForChannel_Handle = Selector.GetHandle("averagePowerForChannel:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVAudioRecorder"); private object __mt_Url_var; private object __mt_Settings_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual bool Recording { [Export("isRecording")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRecordingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRecordingHandle); } } public virtual NSUrl Url { [Export("url")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUrlHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUrlHandle))))); } } public virtual NSDictionary Settings { [Export("settings")] get { return (NSDictionary)(__mt_Settings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSettingsHandle))))); } } public AudioSettings AudioSettings { get { NSDictionary settings = Settings; if (settings != null) { return new AudioSettings(settings); } return null; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public AVAudioRecorderDelegate Delegate { get { return WeakDelegate as AVAudioRecorderDelegate; } set { WeakDelegate = value; } } public virtual double currentTime { [Export("currentTime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCurrentTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCurrentTimeHandle); } } public virtual bool MeteringEnabled { [Export("isMeteringEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMeteringEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMeteringEnabledHandle); } [Export("setMeteringEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMeteringEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMeteringEnabled_Handle, value); } } } public event EventHandler FinishedRecording { add { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbFinishedRecording = (EventHandler)System.Delegate.Combine(internalAVAudioRecorderDelegate.cbFinishedRecording, value); } remove { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbFinishedRecording = (EventHandler)System.Delegate.Remove(internalAVAudioRecorderDelegate.cbFinishedRecording, value); } } public event EventHandler EncoderError { add { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbEncoderError = (EventHandler)System.Delegate.Combine(internalAVAudioRecorderDelegate.cbEncoderError, value); } remove { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbEncoderError = (EventHandler)System.Delegate.Remove(internalAVAudioRecorderDelegate.cbEncoderError, value); } } public event EventHandler BeginInterruption { add { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbBeginInterruption = (EventHandler)System.Delegate.Combine(internalAVAudioRecorderDelegate.cbBeginInterruption, value); } remove { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbBeginInterruption = (EventHandler)System.Delegate.Remove(internalAVAudioRecorderDelegate.cbBeginInterruption, value); } } public event EventHandler EndInterruption { add { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbEndInterruption = (EventHandler)System.Delegate.Combine(internalAVAudioRecorderDelegate.cbEndInterruption, value); } remove { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = EnsureEventDelegate(); internalAVAudioRecorderDelegate.cbEndInterruption = (EventHandler)System.Delegate.Remove(internalAVAudioRecorderDelegate.cbEndInterruption, value); } } [Obsolete("Use static Create method as this method had an invalid signature up to MonoMac 1.4.4", true)] public AVAudioRecorder(NSUrl url, NSDictionary settings, NSError outError) { throw new Exception("This constructor is no longer supported, use the AVAudioRecorder.ToUrl factory method instead"); } public static AVAudioRecorder Create(NSUrl url, AudioSettings settings, out NSError error) { if (settings == null) { throw new ArgumentNullException("settings"); } return ToUrl(url, settings.Dictionary, out error); } [Advice("Use Create method")] public static AVAudioRecorder ToUrl(NSUrl url, AVAudioRecorderSettings settings, out NSError error) { if (settings == null) { throw new ArgumentNullException("settings"); } return ToUrl(url, settings.ToDictionary(), out error); } [Advice("Use Create method")] public unsafe static AVAudioRecorder ToUrl(NSUrl url, NSDictionary settings, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr outError = (IntPtr)(&ptr); AVAudioRecorder aVAudioRecorder = new AVAudioRecorder(url, settings, outError); if (aVAudioRecorder.Handle == IntPtr.Zero) { error = (NSError)Runtime.GetNSObject(ptr); return null; } error = null; return aVAudioRecorder; } private InternalAVAudioRecorderDelegate EnsureEventDelegate() { InternalAVAudioRecorderDelegate internalAVAudioRecorderDelegate = WeakDelegate as InternalAVAudioRecorderDelegate; if (internalAVAudioRecorderDelegate == null) { internalAVAudioRecorderDelegate = (InternalAVAudioRecorderDelegate)(WeakDelegate = new InternalAVAudioRecorderDelegate()); } return internalAVAudioRecorderDelegate; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAudioRecorder() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioRecorder(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioRecorder(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioRecorder(IntPtr handle) : base(handle) { } [Export("initWithURL:settings:error:")] internal AVAudioRecorder(NSUrl url, NSDictionary settings, IntPtr outError) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (settings == null) { throw new ArgumentNullException("settings"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithURLSettingsError_Handle, url.Handle, settings.Handle, outError); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithURLSettingsError_Handle, url.Handle, settings.Handle, outError); } } [Export("prepareToRecord")] public virtual bool PrepareToRecord() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPrepareToRecordHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPrepareToRecordHandle); } [Export("record")] public virtual bool Record() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRecordHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRecordHandle); } [Export("recordForDuration:")] public virtual bool RecordFor(double duration) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Double(base.Handle, selRecordForDuration_Handle, duration); } return Messaging.bool_objc_msgSendSuper_Double(base.SuperHandle, selRecordForDuration_Handle, duration); } [Export("pause")] public virtual void Pause() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPauseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPauseHandle); } } [Export("stop")] public virtual void Stop() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopHandle); } } [Export("deleteRecording")] public virtual bool DeleteRecording() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDeleteRecordingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDeleteRecordingHandle); } [Export("updateMeters")] public virtual void UpdateMeters() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateMetersHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateMetersHandle); } } [Export("peakPowerForChannel:")] public virtual float PeakPower(uint channelNumber) { if (IsDirectBinding) { return Messaging.float_objc_msgSend_UInt32(base.Handle, selPeakPowerForChannel_Handle, channelNumber); } return Messaging.float_objc_msgSendSuper_UInt32(base.SuperHandle, selPeakPowerForChannel_Handle, channelNumber); } [Export("averagePowerForChannel:")] public virtual float AveragePower(uint channelNumber) { if (IsDirectBinding) { return Messaging.float_objc_msgSend_UInt32(base.Handle, selAveragePowerForChannel_Handle, channelNumber); } return Messaging.float_objc_msgSendSuper_UInt32(base.SuperHandle, selAveragePowerForChannel_Handle, channelNumber); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_Settings_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioRecorderDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVAudioRecorderDelegate", true)] [Model] public class AVAudioRecorderDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVAudioRecorderDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVAudioRecorderDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioRecorderDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVAudioRecorderDelegate(IntPtr handle) : base(handle) { } [Export("audioRecorderDidFinishRecording:successfully:")] public virtual void FinishedRecording(AVAudioRecorder recorder, bool flag) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("audioRecorderEncodeErrorDidOccur:error:")] public virtual void EncoderError(AVAudioRecorder recorder, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioRecorderSettings.cs ================================================ using System; using AudioToolbox; using CoreFoundation; using Foundation; namespace AVFoundation; [Advice("Use AudioSettings instead")] public class AVAudioRecorderSettings { public AudioFormatType AudioFormat = AudioFormatType.LinearPCM; public float SampleRate = 44100f; public int NumberChannels = 1; public int LinearPcmBitDepth; public bool LinearPcmBigEndian; public bool LinearPcmFloat; public bool LinearPcmNonInterleaved; public AVAudioQuality AudioQuality = AVAudioQuality.High; public AVAudioQuality? SampleRateConverterAudioQuality; public int? EncoderBitRate; public int? EncoderBitRatePerChannel; public int? EncoderBitDepthHint; internal NSMutableDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); nSMutableDictionary.SetObject(new NSNumber((int)AudioFormat), AVAudioSettings.AVFormatIDKey); nSMutableDictionary.SetObject(new NSNumber(SampleRate), AVAudioSettings.AVSampleRateKey); nSMutableDictionary.SetObject(new NSNumber(NumberChannels), AVAudioSettings.AVNumberOfChannelsKey); if (AudioFormat == AudioFormatType.LinearPCM) { IntPtr handle = CFBoolean.True.Handle; IntPtr handle2 = CFBoolean.False.Handle; if (LinearPcmBitDepth != 0) { if (LinearPcmBitDepth != 8 && LinearPcmBitDepth != 16 && LinearPcmBitDepth != 32 && LinearPcmBitDepth != 24) { throw new Exception("Invalid value for LinearPcmBitDepth, must be one of 8, 16, 24 or 32"); } nSMutableDictionary.SetObject(new NSNumber(LinearPcmBitDepth), AVAudioSettings.AVLinearPCMBitDepthKey); } nSMutableDictionary.LowlevelSetObject(LinearPcmBigEndian ? handle : handle2, AVAudioSettings.AVLinearPCMIsBigEndianKey.Handle); nSMutableDictionary.LowlevelSetObject(LinearPcmFloat ? handle : handle2, AVAudioSettings.AVLinearPCMIsFloatKey.Handle); nSMutableDictionary.LowlevelSetObject(LinearPcmNonInterleaved ? handle : handle2, AVAudioSettings.AVLinearPCMIsNonInterleaved.Handle); } nSMutableDictionary.SetObject(new NSNumber((int)AudioQuality), AVAudioSettings.AVEncoderAudioQualityKey); if (EncoderBitRate.HasValue) { nSMutableDictionary.SetObject(new NSNumber(EncoderBitRate.Value), AVAudioSettings.AVEncoderBitRateKey); } if (EncoderBitRatePerChannel.HasValue) { nSMutableDictionary.SetObject(new NSNumber(EncoderBitRatePerChannel.Value), AVAudioSettings.AVEncoderBitRatePerChannelKey); } if (EncoderBitDepthHint.HasValue) { int value = EncoderBitDepthHint.Value; if (value < 8 || value > 32) { throw new Exception("EncoderBitDepthHint should be a value between 8 and 32"); } nSMutableDictionary.SetObject(new NSNumber(EncoderBitDepthHint.Value), AVAudioSettings.AVEncoderBitDepthHintKey); } if (SampleRateConverterAudioQuality.HasValue) { nSMutableDictionary.SetObject(new NSNumber((int)SampleRateConverterAudioQuality.Value), AVAudioSettings.AVSampleRateConverterAudioQualityKey); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionCategoryOptions.cs ================================================ using System; namespace AVFoundation; [Flags] public enum AVAudioSessionCategoryOptions { MixWithOthers = 1, DuckOthers = 2, AllowBluetooth = 4, DefaultToSpeaker = 8 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionFlags.cs ================================================ using System; using ObjCRuntime; namespace AVFoundation; [Flags] [Since(4, 0)] public enum AVAudioSessionFlags { NotifyOthersOnDeactivation = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionInterruptionFlags.cs ================================================ using System; using ObjCRuntime; namespace AVFoundation; [Flags] [Since(4, 0)] public enum AVAudioSessionInterruptionFlags { ShouldResume = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionInterruptionOptions.cs ================================================ using System; namespace AVFoundation; [Flags] public enum AVAudioSessionInterruptionOptions { ShouldResume = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionInterruptionType.cs ================================================ namespace AVFoundation; public enum AVAudioSessionInterruptionType { Ended, Began } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionPortOverride.cs ================================================ namespace AVFoundation; public enum AVAudioSessionPortOverride { None = 0, Speaker = 1936747378 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionRouteChangeReason.cs ================================================ namespace AVFoundation; public enum AVAudioSessionRouteChangeReason { Unknown, NewDeviceAvailable, OldDeviceUnavailable, CategoryChange, Override, WakeFromSleep, NoSuitableRouteForCategory } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSessionSetActiveOptions.cs ================================================ using System; namespace AVFoundation; [Flags] public enum AVAudioSessionSetActiveOptions { NotifyOthersOnDeactivation = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVAudioSettings.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVAudioSettings { private static NSString _AVFormatIDKey; private static NSString _AVSampleRateKey; private static NSString _AVNumberOfChannelsKey; private static NSString _AVLinearPCMBitDepthKey; private static NSString _AVLinearPCMIsBigEndianKey; private static NSString _AVLinearPCMIsFloatKey; private static NSString _AVLinearPCMIsNonInterleaved; private static NSString _AVEncoderAudioQualityKey; private static NSString _AVEncoderBitRateKey; private static NSString _AVEncoderBitRatePerChannelKey; private static NSString _AVEncoderBitDepthHintKey; private static NSString _AVSampleRateConverterAudioQualityKey; private static NSString _AVChannelLayoutKey; [Field("AVFormatIDKey", "AVFoundation")] public static NSString AVFormatIDKey { get { if (_AVFormatIDKey == null) { _AVFormatIDKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFormatIDKey"); } return _AVFormatIDKey; } } [Field("AVSampleRateKey", "AVFoundation")] public static NSString AVSampleRateKey { get { if (_AVSampleRateKey == null) { _AVSampleRateKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVSampleRateKey"); } return _AVSampleRateKey; } } [Field("AVNumberOfChannelsKey", "AVFoundation")] public static NSString AVNumberOfChannelsKey { get { if (_AVNumberOfChannelsKey == null) { _AVNumberOfChannelsKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVNumberOfChannelsKey"); } return _AVNumberOfChannelsKey; } } [Field("AVLinearPCMBitDepthKey", "AVFoundation")] public static NSString AVLinearPCMBitDepthKey { get { if (_AVLinearPCMBitDepthKey == null) { _AVLinearPCMBitDepthKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLinearPCMBitDepthKey"); } return _AVLinearPCMBitDepthKey; } } [Field("AVLinearPCMIsBigEndianKey", "AVFoundation")] public static NSString AVLinearPCMIsBigEndianKey { get { if (_AVLinearPCMIsBigEndianKey == null) { _AVLinearPCMIsBigEndianKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLinearPCMIsBigEndianKey"); } return _AVLinearPCMIsBigEndianKey; } } [Field("AVLinearPCMIsFloatKey", "AVFoundation")] public static NSString AVLinearPCMIsFloatKey { get { if (_AVLinearPCMIsFloatKey == null) { _AVLinearPCMIsFloatKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLinearPCMIsFloatKey"); } return _AVLinearPCMIsFloatKey; } } [Field("AVLinearPCMIsNonInterleaved", "AVFoundation")] public static NSString AVLinearPCMIsNonInterleaved { get { if (_AVLinearPCMIsNonInterleaved == null) { _AVLinearPCMIsNonInterleaved = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLinearPCMIsNonInterleaved"); } return _AVLinearPCMIsNonInterleaved; } } [Field("AVEncoderAudioQualityKey", "AVFoundation")] public static NSString AVEncoderAudioQualityKey { get { if (_AVEncoderAudioQualityKey == null) { _AVEncoderAudioQualityKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVEncoderAudioQualityKey"); } return _AVEncoderAudioQualityKey; } } [Field("AVEncoderBitRateKey", "AVFoundation")] public static NSString AVEncoderBitRateKey { get { if (_AVEncoderBitRateKey == null) { _AVEncoderBitRateKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVEncoderBitRateKey"); } return _AVEncoderBitRateKey; } } [Field("AVEncoderBitRatePerChannelKey", "AVFoundation")] public static NSString AVEncoderBitRatePerChannelKey { get { if (_AVEncoderBitRatePerChannelKey == null) { _AVEncoderBitRatePerChannelKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVEncoderBitRatePerChannelKey"); } return _AVEncoderBitRatePerChannelKey; } } [Field("AVEncoderBitDepthHintKey", "AVFoundation")] public static NSString AVEncoderBitDepthHintKey { get { if (_AVEncoderBitDepthHintKey == null) { _AVEncoderBitDepthHintKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVEncoderBitDepthHintKey"); } return _AVEncoderBitDepthHintKey; } } [Field("AVSampleRateConverterAudioQualityKey", "AVFoundation")] public static NSString AVSampleRateConverterAudioQualityKey { get { if (_AVSampleRateConverterAudioQualityKey == null) { _AVSampleRateConverterAudioQualityKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVSampleRateConverterAudioQualityKey"); } return _AVSampleRateConverterAudioQualityKey; } } [Field("AVChannelLayoutKey", "AVFoundation")] public static NSString AVChannelLayoutKey { get { if (_AVChannelLayoutKey == null) { _AVChannelLayoutKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVChannelLayoutKey"); } return _AVChannelLayoutKey; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureAudioChannel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureAudioChannel", true)] public class AVCaptureAudioChannel : NSObject { private static readonly IntPtr selPeakHoldLevelHandle = Selector.GetHandle("peakHoldLevel"); private static readonly IntPtr selAveragePowerLevelHandle = Selector.GetHandle("averagePowerLevel"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureAudioChannel"); public override IntPtr ClassHandle => class_ptr; public virtual float PeakHoldLevel { [Export("peakHoldLevel")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPeakHoldLevelHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPeakHoldLevelHandle); } } public virtual float AveragePowerLevel { [Export("averagePowerLevel")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selAveragePowerLevelHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selAveragePowerLevelHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureAudioChannel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureAudioChannel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioChannel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioChannel(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureAudioDataOutput.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureAudioDataOutput", true)] public class AVCaptureAudioDataOutput : AVCaptureOutput { private static readonly IntPtr selSampleBufferDelegateHandle = Selector.GetHandle("sampleBufferDelegate"); private static readonly IntPtr selSampleBufferCallbackQueueHandle = Selector.GetHandle("sampleBufferCallbackQueue"); private static readonly IntPtr selSetSampleBufferDelegateQueue_Handle = Selector.GetHandle("setSampleBufferDelegate:queue:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureAudioDataOutput"); private object __mt_SampleBufferDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureAudioDataOutputSampleBufferDelegate SampleBufferDelegate { [Export("sampleBufferDelegate")] get { return (AVCaptureAudioDataOutputSampleBufferDelegate)(__mt_SampleBufferDelegate_var = ((!IsDirectBinding) ? ((AVCaptureAudioDataOutputSampleBufferDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSampleBufferDelegateHandle))) : ((AVCaptureAudioDataOutputSampleBufferDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSampleBufferDelegateHandle))))); } } public virtual DispatchQueue SampleBufferCallbackQueue { [Export("sampleBufferCallbackQueue")] get { if (IsDirectBinding) { return new DispatchQueue(Messaging.IntPtr_objc_msgSend(base.Handle, selSampleBufferCallbackQueueHandle)); } return new DispatchQueue(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSampleBufferCallbackQueueHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureAudioDataOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureAudioDataOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioDataOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioDataOutput(IntPtr handle) : base(handle) { } [Export("setSampleBufferDelegate:queue:")] public virtual void SetSampleBufferDelegatequeue(AVCaptureAudioDataOutputSampleBufferDelegate sampleBufferDelegate, DispatchQueue sampleBufferCallbackDispatchQueue) { if (sampleBufferDelegate == null) { throw new ArgumentNullException("sampleBufferDelegate"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetSampleBufferDelegateQueue_Handle, sampleBufferDelegate.Handle, sampleBufferCallbackDispatchQueue.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetSampleBufferDelegateQueue_Handle, sampleBufferDelegate.Handle, sampleBufferCallbackDispatchQueue.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SampleBufferDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureAudioDataOutputSampleBufferDelegate.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVCaptureAudioDataOutputSampleBufferDelegate", true)] [Model] public class AVCaptureAudioDataOutputSampleBufferDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureAudioDataOutputSampleBufferDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureAudioDataOutputSampleBufferDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioDataOutputSampleBufferDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureAudioDataOutputSampleBufferDelegate(IntPtr handle) : base(handle) { } [Export("captureOutput:didOutputSampleBuffer:fromConnection:")] public virtual void DidOutputSampleBuffer(AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didDropSampleBuffer:fromConnection:")] public virtual void DidDropSampleBuffer(AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureCompletionHandler.cs ================================================ using CoreMedia; using Foundation; namespace AVFoundation; public delegate void AVCaptureCompletionHandler(CMSampleBuffer imageDataSampleBuffer, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureConnection.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureConnection", true)] public class AVCaptureConnection : NSObject { private static readonly IntPtr selOutputHandle = Selector.GetHandle("output"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selAudioChannelsHandle = Selector.GetHandle("audioChannels"); private static readonly IntPtr selIsVideoMirroredHandle = Selector.GetHandle("isVideoMirrored"); private static readonly IntPtr selSetVideoMirrored_Handle = Selector.GetHandle("setVideoMirrored:"); private static readonly IntPtr selVideoOrientationHandle = Selector.GetHandle("videoOrientation"); private static readonly IntPtr selSetVideoOrientation_Handle = Selector.GetHandle("setVideoOrientation:"); private static readonly IntPtr selInputPortsHandle = Selector.GetHandle("inputPorts"); private static readonly IntPtr selIsActiveHandle = Selector.GetHandle("isActive"); private static readonly IntPtr selIsVideoMirroringSupportedHandle = Selector.GetHandle("isVideoMirroringSupported"); private static readonly IntPtr selIsVideoOrientationSupportedHandle = Selector.GetHandle("isVideoOrientationSupported"); private static readonly IntPtr selIsVideoMinFrameDurationSupportedHandle = Selector.GetHandle("isVideoMinFrameDurationSupported"); private static readonly IntPtr selVideoMinFrameDurationHandle = Selector.GetHandle("videoMinFrameDuration"); private static readonly IntPtr selSetVideoMinFrameDuration_Handle = Selector.GetHandle("setVideoMinFrameDuration:"); private static readonly IntPtr selVideoPreviewLayerHandle = Selector.GetHandle("videoPreviewLayer"); private static readonly IntPtr selAutomaticallyAdjustsVideoMirroringHandle = Selector.GetHandle("automaticallyAdjustsVideoMirroring"); private static readonly IntPtr selSetAutomaticallyAdjustsVideoMirroring_Handle = Selector.GetHandle("setAutomaticallyAdjustsVideoMirroring:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureConnection"); private object __mt_Output_var; private object __mt_AudioChannels_var; private object __mt_InputPorts_var; private object __mt_VideoPreviewLayer_var; public bool SupportsVideoMinFrameDuration { get { if (RespondsToSelector(new Selector("isVideoMinFrameDurationSupported"))) { return _SupportsVideoMinFrameDuration; } return false; } } public bool SupportsVideoMaxFrameDuration => false; [Advice("Use InputPorts")] public AVCaptureInputPort[] inputPorts => InputPorts; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureOutput Output { [Export("output")] get { return (AVCaptureOutput)(__mt_Output_var = ((!IsDirectBinding) ? ((AVCaptureOutput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputHandle))) : ((AVCaptureOutput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputHandle))))); } } public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual AVCaptureAudioChannel AudioChannels { [Export("audioChannels")] get { return (AVCaptureAudioChannel)(__mt_AudioChannels_var = ((!IsDirectBinding) ? ((AVCaptureAudioChannel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioChannelsHandle))) : ((AVCaptureAudioChannel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioChannelsHandle))))); } } public virtual bool VideoMirrored { [Export("isVideoMirrored")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVideoMirroredHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVideoMirroredHandle); } [Export("setVideoMirrored:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVideoMirrored_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVideoMirrored_Handle, value); } } } public virtual AVCaptureVideoOrientation VideoOrientation { [Export("videoOrientation")] get { if (IsDirectBinding) { return (AVCaptureVideoOrientation)Messaging.int_objc_msgSend(base.Handle, selVideoOrientationHandle); } return (AVCaptureVideoOrientation)Messaging.int_objc_msgSendSuper(base.SuperHandle, selVideoOrientationHandle); } [Export("setVideoOrientation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetVideoOrientation_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetVideoOrientation_Handle, (int)value); } } } public virtual AVCaptureInputPort[] InputPorts { [Export("inputPorts")] get { return (AVCaptureInputPort[])(__mt_InputPorts_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputPortsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputPortsHandle)))); } } public virtual bool Active { [Export("isActive")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsActiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsActiveHandle); } } public virtual bool SupportsVideoMirroring { [Export("isVideoMirroringSupported")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVideoMirroringSupportedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVideoMirroringSupportedHandle); } } public virtual bool SupportsVideoOrientation { [Export("isVideoOrientationSupported")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVideoOrientationSupportedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVideoOrientationSupportedHandle); } } internal virtual bool _SupportsVideoMinFrameDuration { [Export("isVideoMinFrameDurationSupported")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVideoMinFrameDurationSupportedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVideoMinFrameDurationSupportedHandle); } } public virtual CMTime VideoMinFrameDuration { [Export("videoMinFrameDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selVideoMinFrameDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selVideoMinFrameDurationHandle); } return retval; } [Export("setVideoMinFrameDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetVideoMinFrameDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetVideoMinFrameDuration_Handle, value); } } } [Since(6, 0)] public virtual AVCaptureVideoPreviewLayer VideoPreviewLayer { [Export("videoPreviewLayer")] get { return (AVCaptureVideoPreviewLayer)(__mt_VideoPreviewLayer_var = ((!IsDirectBinding) ? ((AVCaptureVideoPreviewLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoPreviewLayerHandle))) : ((AVCaptureVideoPreviewLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoPreviewLayerHandle))))); } } [Since(6, 0)] public virtual bool AutomaticallyAdjustsVideoMirroring { [Export("automaticallyAdjustsVideoMirroring")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticallyAdjustsVideoMirroringHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticallyAdjustsVideoMirroringHandle); } [Export("setAutomaticallyAdjustsVideoMirroring:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticallyAdjustsVideoMirroring_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticallyAdjustsVideoMirroring_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureConnection() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureConnection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureConnection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureConnection(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Output_var = null; __mt_AudioChannels_var = null; __mt_InputPorts_var = null; __mt_VideoPreviewLayer_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureDevice.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureDevice", true)] public class AVCaptureDevice : NSObject { public static class Notifications { public static NSObject ObserveWasConnected(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WasConnectedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWasDisconnected(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WasDisconnectedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selUniqueIDHandle = Selector.GetHandle("uniqueID"); private static readonly IntPtr selModelIDHandle = Selector.GetHandle("modelID"); private static readonly IntPtr selLocalizedNameHandle = Selector.GetHandle("localizedName"); private static readonly IntPtr selIsConnectedHandle = Selector.GetHandle("isConnected"); private static readonly IntPtr selDevicesHandle = Selector.GetHandle("devices"); private static readonly IntPtr selFlashModeHandle = Selector.GetHandle("flashMode"); private static readonly IntPtr selSetFlashMode_Handle = Selector.GetHandle("setFlashMode:"); private static readonly IntPtr selTorchModeHandle = Selector.GetHandle("torchMode"); private static readonly IntPtr selSetTorchMode_Handle = Selector.GetHandle("setTorchMode:"); private static readonly IntPtr selFocusModeHandle = Selector.GetHandle("focusMode"); private static readonly IntPtr selSetFocusMode_Handle = Selector.GetHandle("setFocusMode:"); private static readonly IntPtr selIsFocusPointOfInterestSupportedHandle = Selector.GetHandle("isFocusPointOfInterestSupported"); private static readonly IntPtr selFocusPointOfInterestHandle = Selector.GetHandle("focusPointOfInterest"); private static readonly IntPtr selSetFocusPointOfInterest_Handle = Selector.GetHandle("setFocusPointOfInterest:"); private static readonly IntPtr selIsAdjustingFocusHandle = Selector.GetHandle("isAdjustingFocus"); private static readonly IntPtr selExposureModeHandle = Selector.GetHandle("exposureMode"); private static readonly IntPtr selSetExposureMode_Handle = Selector.GetHandle("setExposureMode:"); private static readonly IntPtr selIsExposurePointOfInterestSupportedHandle = Selector.GetHandle("isExposurePointOfInterestSupported"); private static readonly IntPtr selExposurePointOfInterestHandle = Selector.GetHandle("exposurePointOfInterest"); private static readonly IntPtr selSetExposurePointOfInterest_Handle = Selector.GetHandle("setExposurePointOfInterest:"); private static readonly IntPtr selIsAdjustingExposureHandle = Selector.GetHandle("isAdjustingExposure"); private static readonly IntPtr selWhiteBalanceModeHandle = Selector.GetHandle("whiteBalanceMode"); private static readonly IntPtr selSetWhiteBalanceMode_Handle = Selector.GetHandle("setWhiteBalanceMode:"); private static readonly IntPtr selIsAdjustingWhiteBalanceHandle = Selector.GetHandle("isAdjustingWhiteBalance"); private static readonly IntPtr selPositionHandle = Selector.GetHandle("position"); private static readonly IntPtr selDevicesWithMediaType_Handle = Selector.GetHandle("devicesWithMediaType:"); private static readonly IntPtr selDefaultDeviceWithMediaType_Handle = Selector.GetHandle("defaultDeviceWithMediaType:"); private static readonly IntPtr selDeviceWithUniqueID_Handle = Selector.GetHandle("deviceWithUniqueID:"); private static readonly IntPtr selHasMediaType_Handle = Selector.GetHandle("hasMediaType:"); private static readonly IntPtr selLockForConfiguration_Handle = Selector.GetHandle("lockForConfiguration:"); private static readonly IntPtr selUnlockForConfigurationHandle = Selector.GetHandle("unlockForConfiguration"); private static readonly IntPtr selSupportsAVCaptureSessionPreset_Handle = Selector.GetHandle("supportsAVCaptureSessionPreset:"); private static readonly IntPtr selIsFlashModeSupported_Handle = Selector.GetHandle("isFlashModeSupported:"); private static readonly IntPtr selIsTorchModeSupported_Handle = Selector.GetHandle("isTorchModeSupported:"); private static readonly IntPtr selIsFocusModeSupported_Handle = Selector.GetHandle("isFocusModeSupported:"); private static readonly IntPtr selIsExposureModeSupported_Handle = Selector.GetHandle("isExposureModeSupported:"); private static readonly IntPtr selIsWhiteBalanceModeSupported_Handle = Selector.GetHandle("isWhiteBalanceModeSupported:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureDevice"); private static object __mt_Devices_var_static; private static NSString _WasConnectedNotification; private static NSString _WasDisconnectedNotification; public override IntPtr ClassHandle => class_ptr; public virtual string UniqueID { [Export("uniqueID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUniqueIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUniqueIDHandle)); } } public virtual string ModelID { [Export("modelID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selModelIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selModelIDHandle)); } } public virtual string LocalizedName { [Export("localizedName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedNameHandle)); } } public virtual bool Connected { [Export("isConnected")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsConnectedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsConnectedHandle); } } public static AVCaptureDevice[] Devices { [Export("devices")] get { return (AVCaptureDevice[])(__mt_Devices_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selDevicesHandle))); } } public virtual AVCaptureFlashMode FlashMode { [Export("flashMode")] get { if (IsDirectBinding) { return (AVCaptureFlashMode)Messaging.int_objc_msgSend(base.Handle, selFlashModeHandle); } return (AVCaptureFlashMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selFlashModeHandle); } [Export("setFlashMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetFlashMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetFlashMode_Handle, (int)value); } } } public virtual AVCaptureTorchMode TorchMode { [Export("torchMode")] get { if (IsDirectBinding) { return (AVCaptureTorchMode)Messaging.int_objc_msgSend(base.Handle, selTorchModeHandle); } return (AVCaptureTorchMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTorchModeHandle); } [Export("setTorchMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTorchMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTorchMode_Handle, (int)value); } } } public virtual AVCaptureFocusMode FocusMode { [Export("focusMode")] get { if (IsDirectBinding) { return (AVCaptureFocusMode)Messaging.int_objc_msgSend(base.Handle, selFocusModeHandle); } return (AVCaptureFocusMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selFocusModeHandle); } [Export("setFocusMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetFocusMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetFocusMode_Handle, (int)value); } } } public virtual bool FocusPointOfInterestSupported { [Export("isFocusPointOfInterestSupported")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFocusPointOfInterestSupportedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFocusPointOfInterestSupportedHandle); } } public virtual CGPoint FocusPointOfInterest { [Export("focusPointOfInterest")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selFocusPointOfInterestHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selFocusPointOfInterestHandle); } [Export("setFocusPointOfInterest:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetFocusPointOfInterest_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetFocusPointOfInterest_Handle, value); } } } public virtual bool AdjustingFocus { [Export("isAdjustingFocus")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAdjustingFocusHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAdjustingFocusHandle); } } public virtual AVCaptureExposureMode ExposureMode { [Export("exposureMode")] get { if (IsDirectBinding) { return (AVCaptureExposureMode)Messaging.int_objc_msgSend(base.Handle, selExposureModeHandle); } return (AVCaptureExposureMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selExposureModeHandle); } [Export("setExposureMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetExposureMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetExposureMode_Handle, (int)value); } } } public virtual bool ExposurePointOfInterestSupported { [Export("isExposurePointOfInterestSupported")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExposurePointOfInterestSupportedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExposurePointOfInterestSupportedHandle); } } public virtual CGPoint ExposurePointOfInterest { [Export("exposurePointOfInterest")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selExposurePointOfInterestHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selExposurePointOfInterestHandle); } [Export("setExposurePointOfInterest:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetExposurePointOfInterest_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetExposurePointOfInterest_Handle, value); } } } public virtual bool AdjustingExposure { [Export("isAdjustingExposure")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAdjustingExposureHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAdjustingExposureHandle); } } public virtual AVCaptureWhiteBalanceMode WhiteBalanceMode { [Export("whiteBalanceMode")] get { if (IsDirectBinding) { return (AVCaptureWhiteBalanceMode)Messaging.int_objc_msgSend(base.Handle, selWhiteBalanceModeHandle); } return (AVCaptureWhiteBalanceMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selWhiteBalanceModeHandle); } [Export("setWhiteBalanceMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetWhiteBalanceMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetWhiteBalanceMode_Handle, (int)value); } } } public virtual bool AdjustingWhiteBalance { [Export("isAdjustingWhiteBalance")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAdjustingWhiteBalanceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAdjustingWhiteBalanceHandle); } } public virtual AVCaptureDevicePosition Position { [Export("position")] get { if (IsDirectBinding) { return (AVCaptureDevicePosition)Messaging.int_objc_msgSend(base.Handle, selPositionHandle); } return (AVCaptureDevicePosition)Messaging.int_objc_msgSendSuper(base.SuperHandle, selPositionHandle); } } [Field("AVCaptureDeviceWasConnectedNotification", "AVFoundation")] public static NSString WasConnectedNotification { get { if (_WasConnectedNotification == null) { _WasConnectedNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureDeviceWasConnectedNotification"); } return _WasConnectedNotification; } } [Field("AVCaptureDeviceWasDisconnectedNotification", "AVFoundation")] public static NSString WasDisconnectedNotification { get { if (_WasDisconnectedNotification == null) { _WasDisconnectedNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureDeviceWasDisconnectedNotification"); } return _WasDisconnectedNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureDevice(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureDevice(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureDevice(IntPtr handle) : base(handle) { } [Export("devicesWithMediaType:")] public static AVCaptureDevice[] DevicesWithMediaType(string mediaType) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); AVCaptureDevice[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDevicesWithMediaType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("defaultDeviceWithMediaType:")] public static AVCaptureDevice DefaultDeviceWithMediaType(string mediaType) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); AVCaptureDevice result = (AVCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultDeviceWithMediaType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("deviceWithUniqueID:")] public static AVCaptureDevice DeviceWithUniqueID(string deviceUniqueID) { if (deviceUniqueID == null) { throw new ArgumentNullException("deviceUniqueID"); } IntPtr arg = NSString.CreateNative(deviceUniqueID); AVCaptureDevice result = (AVCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDeviceWithUniqueID_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("hasMediaType:")] public virtual bool HasMediaType(string mediaType) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasMediaType_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasMediaType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("lockForConfiguration:")] public virtual bool LockForConfiguration(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selLockForConfiguration_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selLockForConfiguration_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("unlockForConfiguration")] public virtual void UnlockForConfiguration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnlockForConfigurationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnlockForConfigurationHandle); } } [Export("supportsAVCaptureSessionPreset:")] public virtual bool SupportsAVCaptureSessionPreset(string preset) { if (preset == null) { throw new ArgumentNullException("preset"); } IntPtr arg = NSString.CreateNative(preset); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSupportsAVCaptureSessionPreset_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSupportsAVCaptureSessionPreset_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("isFlashModeSupported:")] public virtual bool IsFlashModeSupported(AVCaptureFlashMode flashMode) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsFlashModeSupported_Handle, (int)flashMode); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsFlashModeSupported_Handle, (int)flashMode); } [Export("isTorchModeSupported:")] public virtual bool IsTorchModeSupported(AVCaptureTorchMode torchMode) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsTorchModeSupported_Handle, (int)torchMode); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsTorchModeSupported_Handle, (int)torchMode); } [Export("isFocusModeSupported:")] public virtual bool IsFocusModeSupported(AVCaptureFocusMode focusMode) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsFocusModeSupported_Handle, (int)focusMode); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsFocusModeSupported_Handle, (int)focusMode); } [Export("isExposureModeSupported:")] public virtual bool IsExposureModeSupported(AVCaptureExposureMode exposureMode) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsExposureModeSupported_Handle, (int)exposureMode); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsExposureModeSupported_Handle, (int)exposureMode); } [Export("isWhiteBalanceModeSupported:")] public virtual bool IsWhiteBalanceModeSupported(AVCaptureWhiteBalanceMode whiteBalanceMode) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsWhiteBalanceModeSupported_Handle, (int)whiteBalanceMode); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsWhiteBalanceModeSupported_Handle, (int)whiteBalanceMode); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureDeviceInput.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureDeviceInput", true)] public class AVCaptureDeviceInput : AVCaptureInput { private static NSError globalerr; private static readonly IntPtr selDeviceHandle = Selector.GetHandle("device"); private static readonly IntPtr selDeviceInputWithDeviceError_Handle = Selector.GetHandle("deviceInputWithDevice:error:"); private static readonly IntPtr selInitWithDeviceError_Handle = Selector.GetHandle("initWithDevice:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureDeviceInput"); private object __mt_Device_var; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureDevice Device { [Export("device")] get { return (AVCaptureDevice)(__mt_Device_var = ((!IsDirectBinding) ? ((AVCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceHandle))) : ((AVCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceHandle))))); } } [Obsolete("Use FromDevice (AVCaptureDevice, ref NSError) instead")] public static AVCaptureDeviceInput FromDevice(AVCaptureDevice device, IntPtr handle) { NSError error; return FromDevice(device, out error); } public static AVCaptureDeviceInput FromDevice(AVCaptureDevice device) { NSError error; return FromDevice(device, out error); } [Obsolete("Use AVCaptureDeviceInput (AVCaptureDevice, ref NSError) instead")] public AVCaptureDeviceInput(AVCaptureDevice device, IntPtr handle) : this(device, out globalerr) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureDeviceInput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureDeviceInput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureDeviceInput(IntPtr handle) : base(handle) { } [Export("deviceInputWithDevice:error:")] public static AVCaptureDeviceInput FromDevice(AVCaptureDevice device, out NSError error) { if (device == null) { throw new ArgumentNullException("device"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); AVCaptureDeviceInput result = (AVCaptureDeviceInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDeviceInputWithDeviceError_Handle, device.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initWithDevice:error:")] public AVCaptureDeviceInput(AVCaptureDevice device, out NSError error) : base(NSObjectFlag.Empty) { if (device == null) { throw new ArgumentNullException("device"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDeviceError_Handle, device.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDeviceError_Handle, device.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Device_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureDevicePosition.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureDevicePosition { Back = 1, Front } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureDeviceTransportControlsPlaybackMode.cs ================================================ namespace AVFoundation; public enum AVCaptureDeviceTransportControlsPlaybackMode { NotPlaying, Playing } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureExposureMode.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureExposureMode { Locked, AutoExpose, ContinuousAutoExposure } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureFileOutput.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureFileOutput", true)] public class AVCaptureFileOutput : AVCaptureOutput { private static readonly IntPtr selRecordedDurationHandle = Selector.GetHandle("recordedDuration"); private static readonly IntPtr selRecordedFileSizeHandle = Selector.GetHandle("recordedFileSize"); private static readonly IntPtr selIsRecordingHandle = Selector.GetHandle("isRecording"); private static readonly IntPtr selMaxRecordedDurationHandle = Selector.GetHandle("maxRecordedDuration"); private static readonly IntPtr selSetMaxRecordedDuration_Handle = Selector.GetHandle("setMaxRecordedDuration:"); private static readonly IntPtr selMaxRecordedFileSizeHandle = Selector.GetHandle("maxRecordedFileSize"); private static readonly IntPtr selSetMaxRecordedFileSize_Handle = Selector.GetHandle("setMaxRecordedFileSize:"); private static readonly IntPtr selMinFreeDiskSpaceLimitHandle = Selector.GetHandle("minFreeDiskSpaceLimit"); private static readonly IntPtr selSetMinFreeDiskSpaceLimit_Handle = Selector.GetHandle("setMinFreeDiskSpaceLimit:"); private static readonly IntPtr selOutputFileURLHandle = Selector.GetHandle("outputFileURL"); private static readonly IntPtr selStartRecordingToOutputFileURLRecordingDelegate_Handle = Selector.GetHandle("startRecordingToOutputFileURL:recordingDelegate:"); private static readonly IntPtr selStopRecordingHandle = Selector.GetHandle("stopRecording"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureFileOutput"); private object __mt_OutputFileURL_var; public override IntPtr ClassHandle => class_ptr; public virtual CMTime RecordedDuration { [Export("recordedDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selRecordedDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRecordedDurationHandle); } return retval; } } public virtual long RecordedFileSize { [Export("recordedFileSize")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRecordedFileSizeHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRecordedFileSizeHandle); } } public virtual bool Recording { [Export("isRecording")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRecordingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRecordingHandle); } } public virtual CMTime MaxRecordedDuration { [Export("maxRecordedDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selMaxRecordedDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMaxRecordedDurationHandle); } return retval; } [Export("setMaxRecordedDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetMaxRecordedDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetMaxRecordedDuration_Handle, value); } } } public virtual long MaxRecordedFileSize { [Export("maxRecordedFileSize")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaxRecordedFileSizeHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaxRecordedFileSizeHandle); } [Export("setMaxRecordedFileSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaxRecordedFileSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaxRecordedFileSize_Handle, value); } } } public virtual long MinFreeDiskSpaceLimit { [Export("minFreeDiskSpaceLimit")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMinFreeDiskSpaceLimitHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMinFreeDiskSpaceLimitHandle); } [Export("setMinFreeDiskSpaceLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMinFreeDiskSpaceLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMinFreeDiskSpaceLimit_Handle, value); } } } public virtual NSUrl OutputFileURL { [Export("outputFileURL")] get { return (NSUrl)(__mt_OutputFileURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputFileURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputFileURLHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureFileOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureFileOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureFileOutput(IntPtr handle) : base(handle) { } [Export("startRecordingToOutputFileURL:recordingDelegate:")] public virtual void StartRecordingToOutputFile(NSUrl outputFileUrl, AVCaptureFileOutputRecordingDelegate recordingDelegate) { if (outputFileUrl == null) { throw new ArgumentNullException("outputFileUrl"); } if (recordingDelegate == null) { throw new ArgumentNullException("recordingDelegate"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selStartRecordingToOutputFileURLRecordingDelegate_Handle, outputFileUrl.Handle, recordingDelegate.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStartRecordingToOutputFileURLRecordingDelegate_Handle, outputFileUrl.Handle, recordingDelegate.Handle); } } [Export("stopRecording")] public virtual void StopRecording() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopRecordingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopRecordingHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OutputFileURL_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureFileOutputRecordingDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVCaptureFileOutputRecordingDelegate", true)] [Model] public class AVCaptureFileOutputRecordingDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureFileOutputRecordingDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureFileOutputRecordingDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureFileOutputRecordingDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureFileOutputRecordingDelegate(IntPtr handle) : base(handle) { } [Export("captureOutput:didStartRecordingToOutputFileAtURL:fromConnections:")] public virtual void DidStartRecording(AVCaptureFileOutput captureOutput, NSUrl outputFileUrl, NSObject[] connections) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error:")] public virtual void FinishedRecording(AVCaptureFileOutput captureOutput, NSUrl outputFileUrl, NSObject[] connections, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureFlashMode.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureFlashMode { Off, On, Auto } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureFocusMode.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureFocusMode { ModeLocked, ModeAutoFocus, ModeContinuousAutoFocus } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureInput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureInput", true)] public class AVCaptureInput : NSObject { public static class Notifications { public static NSObject ObservePortFormatDescriptionDidChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(PortFormatDescriptionDidChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selPortsHandle = Selector.GetHandle("ports"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureInput"); private object __mt_Ports_var; private static NSString _PortFormatDescriptionDidChangeNotification; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureInputPort[] Ports { [Export("ports")] get { return (AVCaptureInputPort[])(__mt_Ports_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPortsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPortsHandle)))); } } [Field("AVCaptureInputPortFormatDescriptionDidChangeNotification", "AVFoundation")] public static NSString PortFormatDescriptionDidChangeNotification { get { if (_PortFormatDescriptionDidChangeNotification == null) { _PortFormatDescriptionDidChangeNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureInputPortFormatDescriptionDidChangeNotification"); } return _PortFormatDescriptionDidChangeNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureInput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureInput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureInput(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Ports_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureInputPort.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureInputPort", true)] public class AVCaptureInputPort : NSObject { private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selFormatDescriptionHandle = Selector.GetHandle("formatDescription"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selInputHandle = Selector.GetHandle("input"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureInputPort"); private object __mt_Input_var; public override IntPtr ClassHandle => class_ptr; public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual CMFormatDescription FormatDescription { [Export("formatDescription")] get { if (IsDirectBinding) { return new CMFormatDescription(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionHandle)); } return new CMFormatDescription(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionHandle)); } } public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual AVCaptureInput Input { [Export("input")] get { return (AVCaptureInput)(__mt_Input_var = ((!IsDirectBinding) ? ((AVCaptureInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputHandle))) : ((AVCaptureInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInputHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureInputPort() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureInputPort(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureInputPort(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureInputPort(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Input_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureMovieFileOutput.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureMovieFileOutput", true)] public class AVCaptureMovieFileOutput : AVCaptureFileOutput { private static readonly IntPtr selMetadataHandle = Selector.GetHandle("metadata"); private static readonly IntPtr selSetMetadata_Handle = Selector.GetHandle("setMetadata:"); private static readonly IntPtr selMovieFragmentIntervalHandle = Selector.GetHandle("movieFragmentInterval"); private static readonly IntPtr selSetMovieFragmentInterval_Handle = Selector.GetHandle("setMovieFragmentInterval:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureMovieFileOutput"); private object __mt_Metadata_var; public override IntPtr ClassHandle => class_ptr; public virtual AVMetadataItem[] Metadata { [Export("metadata")] get { return (AVMetadataItem[])(__mt_Metadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMetadataHandle)))); } [Export("setMetadata:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMetadata_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMetadata_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Metadata_var = value; } } public virtual CMTime MovieFragmentInterval { [Export("movieFragmentInterval")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selMovieFragmentIntervalHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMovieFragmentIntervalHandle); } return retval; } [Export("setMovieFragmentInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetMovieFragmentInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetMovieFragmentInterval_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureMovieFileOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureMovieFileOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureMovieFileOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureMovieFileOutput(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Metadata_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureOutput", true)] public class AVCaptureOutput : NSObject { private static readonly IntPtr selConnectionsHandle = Selector.GetHandle("connections"); private static readonly IntPtr selConnectionWithMediaType_Handle = Selector.GetHandle("connectionWithMediaType:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureOutput"); private object __mt_Connections_var; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureConnection[] Connections { [Export("connections")] get { return (AVCaptureConnection[])(__mt_Connections_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureOutput(IntPtr handle) : base(handle) { } [Export("connectionWithMediaType:")] public virtual AVCaptureConnection ConnectionFromMediaType(NSString avMediaType) { if (avMediaType == null) { throw new ArgumentNullException("avMediaType"); } if (IsDirectBinding) { return (AVCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selConnectionWithMediaType_Handle, avMediaType.Handle)); } return (AVCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selConnectionWithMediaType_Handle, avMediaType.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Connections_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureSession.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureSession", true)] public class AVCaptureSession : NSObject { public static class Notifications { public static NSObject ObserveRuntimeError(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(RuntimeErrorNotification, delegate(NSNotification notification) { handler(null, new AVCaptureSessionRuntimeErrorEventArgs(notification)); }); } public static NSObject ObserveDidStartRunning(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidStartRunningNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidStopRunning(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidStopRunningNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selSessionPresetHandle = Selector.GetHandle("sessionPreset"); private static readonly IntPtr selSetSessionPreset_Handle = Selector.GetHandle("setSessionPreset:"); private static readonly IntPtr selInputsHandle = Selector.GetHandle("inputs"); private static readonly IntPtr selOutputsHandle = Selector.GetHandle("outputs"); private static readonly IntPtr selIsRunningHandle = Selector.GetHandle("isRunning"); private static readonly IntPtr selCanSetSessionPreset_Handle = Selector.GetHandle("canSetSessionPreset:"); private static readonly IntPtr selCanAddInput_Handle = Selector.GetHandle("canAddInput:"); private static readonly IntPtr selAddInput_Handle = Selector.GetHandle("addInput:"); private static readonly IntPtr selRemoveInput_Handle = Selector.GetHandle("removeInput:"); private static readonly IntPtr selCanAddOutput_Handle = Selector.GetHandle("canAddOutput:"); private static readonly IntPtr selAddOutput_Handle = Selector.GetHandle("addOutput:"); private static readonly IntPtr selRemoveOutput_Handle = Selector.GetHandle("removeOutput:"); private static readonly IntPtr selBeginConfigurationHandle = Selector.GetHandle("beginConfiguration"); private static readonly IntPtr selCommitConfigurationHandle = Selector.GetHandle("commitConfiguration"); private static readonly IntPtr selStartRunningHandle = Selector.GetHandle("startRunning"); private static readonly IntPtr selStopRunningHandle = Selector.GetHandle("stopRunning"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureSession"); private object __mt_SessionPreset_var; private object __mt_Inputs_var; private object __mt_Outputs_var; private static NSString _PresetPhoto; private static NSString _PresetHigh; private static NSString _PresetMedium; private static NSString _PresetLow; private static NSString _Preset640x480; private static NSString _Preset1280x720; private static NSString _PresetiFrame960x540; private static NSString _PresetiFrame1280x720; private static NSString _Preset352x288; private static NSString _RuntimeErrorNotification; private static NSString _ErrorKey; private static NSString _DidStartRunningNotification; private static NSString _DidStopRunningNotification; public override IntPtr ClassHandle => class_ptr; public virtual NSString SessionPreset { [Export("sessionPreset")] get { return (NSString)(__mt_SessionPreset_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSessionPresetHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSessionPresetHandle))))); } [Export("setSessionPreset:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSessionPreset_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSessionPreset_Handle, value.Handle); } __mt_SessionPreset_var = value; } } public virtual AVCaptureInput[] Inputs { [Export("inputs")] get { return (AVCaptureInput[])(__mt_Inputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputsHandle)))); } } public virtual AVCaptureOutput[] Outputs { [Export("outputs")] get { return (AVCaptureOutput[])(__mt_Outputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputsHandle)))); } } public virtual bool Running { [Export("isRunning")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRunningHandle); } } [Field("AVCaptureSessionPresetPhoto", "AVFoundation")] public static NSString PresetPhoto { get { if (_PresetPhoto == null) { _PresetPhoto = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetPhoto"); } return _PresetPhoto; } } [Field("AVCaptureSessionPresetHigh", "AVFoundation")] public static NSString PresetHigh { get { if (_PresetHigh == null) { _PresetHigh = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetHigh"); } return _PresetHigh; } } [Field("AVCaptureSessionPresetMedium", "AVFoundation")] public static NSString PresetMedium { get { if (_PresetMedium == null) { _PresetMedium = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetMedium"); } return _PresetMedium; } } [Field("AVCaptureSessionPresetLow", "AVFoundation")] public static NSString PresetLow { get { if (_PresetLow == null) { _PresetLow = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetLow"); } return _PresetLow; } } [Field("AVCaptureSessionPreset640x480", "AVFoundation")] public static NSString Preset640x480 { get { if (_Preset640x480 == null) { _Preset640x480 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPreset640x480"); } return _Preset640x480; } } [Field("AVCaptureSessionPreset1280x720", "AVFoundation")] public static NSString Preset1280x720 { get { if (_Preset1280x720 == null) { _Preset1280x720 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPreset1280x720"); } return _Preset1280x720; } } [Field("AVCaptureSessionPresetiFrame960x540", "AVFoundation")] public static NSString PresetiFrame960x540 { get { if (_PresetiFrame960x540 == null) { _PresetiFrame960x540 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetiFrame960x540"); } return _PresetiFrame960x540; } } [Field("AVCaptureSessionPresetiFrame1280x720", "AVFoundation")] public static NSString PresetiFrame1280x720 { get { if (_PresetiFrame1280x720 == null) { _PresetiFrame1280x720 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPresetiFrame1280x720"); } return _PresetiFrame1280x720; } } [Field("AVCaptureSessionPreset352x288", "AVFoundation")] public static NSString Preset352x288 { get { if (_Preset352x288 == null) { _Preset352x288 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionPreset352x288"); } return _Preset352x288; } } [Field("AVCaptureSessionRuntimeErrorNotification", "AVFoundation")] public static NSString RuntimeErrorNotification { get { if (_RuntimeErrorNotification == null) { _RuntimeErrorNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionRuntimeErrorNotification"); } return _RuntimeErrorNotification; } } [Field("AVCaptureSessionErrorKey", "AVFoundation")] public static NSString ErrorKey { get { if (_ErrorKey == null) { _ErrorKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionErrorKey"); } return _ErrorKey; } } [Field("AVCaptureSessionDidStartRunningNotification", "AVFoundation")] public static NSString DidStartRunningNotification { get { if (_DidStartRunningNotification == null) { _DidStartRunningNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionDidStartRunningNotification"); } return _DidStartRunningNotification; } } [Field("AVCaptureSessionDidStopRunningNotification", "AVFoundation")] public static NSString DidStopRunningNotification { get { if (_DidStopRunningNotification == null) { _DidStopRunningNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVCaptureSessionDidStopRunningNotification"); } return _DidStopRunningNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureSession() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureSession(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureSession(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureSession(IntPtr handle) : base(handle) { } [Export("canSetSessionPreset:")] public virtual bool CanSetSessionPreset(NSString preset) { if (preset == null) { throw new ArgumentNullException("preset"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanSetSessionPreset_Handle, preset.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanSetSessionPreset_Handle, preset.Handle); } [Export("canAddInput:")] public virtual bool CanAddInput(AVCaptureInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanAddInput_Handle, input.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanAddInput_Handle, input.Handle); } [Export("addInput:")] public virtual void AddInput(AVCaptureInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddInput_Handle, input.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddInput_Handle, input.Handle); } } [Export("removeInput:")] public virtual void RemoveInput(AVCaptureInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveInput_Handle, input.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveInput_Handle, input.Handle); } } [Export("canAddOutput:")] public virtual bool CanAddOutput(AVCaptureOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanAddOutput_Handle, output.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanAddOutput_Handle, output.Handle); } [Export("addOutput:")] public virtual void AddOutput(AVCaptureOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddOutput_Handle, output.Handle); } } [Export("removeOutput:")] public virtual void RemoveOutput(AVCaptureOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveOutput_Handle, output.Handle); } } [Export("beginConfiguration")] public virtual void BeginConfiguration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBeginConfigurationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBeginConfigurationHandle); } } [Export("commitConfiguration")] public virtual void CommitConfiguration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCommitConfigurationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCommitConfigurationHandle); } } [Export("startRunning")] public virtual void StartRunning() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartRunningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartRunningHandle); } } [Export("stopRunning")] public virtual void StopRunning() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopRunningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopRunningHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SessionPreset_var = null; __mt_Inputs_var = null; __mt_Outputs_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureSessionRuntimeErrorEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AVFoundation; public class AVCaptureSessionRuntimeErrorEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSError Error { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AVFoundation.Handle, "AVCaptureSessionErrorKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSError)Runtime.GetNSObject(intPtr); } } public AVCaptureSessionRuntimeErrorEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureStillImageOutput.cs ================================================ using System; using System.ComponentModel; using System.Threading.Tasks; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureStillImageOutput", true)] public class AVCaptureStillImageOutput : AVCaptureOutput { private static readonly IntPtr selAvailableImageDataCVPixelFormatTypesHandle = Selector.GetHandle("availableImageDataCVPixelFormatTypes"); private static readonly IntPtr selAvailableImageDataCodecTypesHandle = Selector.GetHandle("availableImageDataCodecTypes"); private static readonly IntPtr selOutputSettingsHandle = Selector.GetHandle("outputSettings"); private static readonly IntPtr selSetOutputSettings_Handle = Selector.GetHandle("setOutputSettings:"); private static readonly IntPtr selIsCapturingStillImageHandle = Selector.GetHandle("isCapturingStillImage"); private static readonly IntPtr selCaptureStillImageAsynchronouslyFromConnectionCompletionHandler_Handle = Selector.GetHandle("captureStillImageAsynchronouslyFromConnection:completionHandler:"); private static readonly IntPtr selJpegStillImageNSDataRepresentation_Handle = Selector.GetHandle("jpegStillImageNSDataRepresentation:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureStillImageOutput"); private object __mt_AvailableImageDataCVPixelFormatTypes_var; private object __mt_OutputSettings_var; public override IntPtr ClassHandle => class_ptr; public virtual NSNumber[] AvailableImageDataCVPixelFormatTypes { [Export("availableImageDataCVPixelFormatTypes")] get { return (NSNumber[])(__mt_AvailableImageDataCVPixelFormatTypes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableImageDataCVPixelFormatTypesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableImageDataCVPixelFormatTypesHandle)))); } } public virtual string[] AvailableImageDataCodecTypes { [Export("availableImageDataCodecTypes")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableImageDataCodecTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableImageDataCodecTypesHandle)); } } public virtual NSDictionary OutputSettings { [Export("outputSettings", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_OutputSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputSettingsHandle))))); } [Export("setOutputSettings:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutputSettings_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutputSettings_Handle, value.Handle); } __mt_OutputSettings_var = value; } } public AVVideoSettingsUncompressed UncompressedVideoSetting { get { NSDictionary outputSettings = OutputSettings; if (outputSettings != null) { return new AVVideoSettingsUncompressed(outputSettings); } return null; } set { OutputSettings = value?.Dictionary; } } public AVVideoSettingsCompressed CompressedVideoSetting { get { NSDictionary outputSettings = OutputSettings; if (outputSettings != null) { return new AVVideoSettingsCompressed(outputSettings); } return null; } set { OutputSettings = value?.Dictionary; } } public virtual bool CapturingStillImage { [Export("isCapturingStillImage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCapturingStillImageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCapturingStillImageHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureStillImageOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureStillImageOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureStillImageOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureStillImageOutput(IntPtr handle) : base(handle) { } [Export("captureStillImageAsynchronouslyFromConnection:completionHandler:")] public unsafe virtual void CaptureStillImageAsynchronously(AVCaptureConnection connection, AVCaptureCompletionHandler completionHandler) { if (connection == null) { throw new ArgumentNullException("connection"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCaptureCompletionHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selCaptureStillImageAsynchronouslyFromConnectionCompletionHandler_Handle, connection.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCaptureStillImageAsynchronouslyFromConnectionCompletionHandler_Handle, connection.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task CaptureStillImageTaskAsync(AVCaptureConnection connection) { TaskCompletionSource tcs = new TaskCompletionSource(); CaptureStillImageAsynchronously(connection, delegate(CMSampleBuffer imageDataSampleBuffer, NSError error) { if (error != null) { tcs.SetException(new NSErrorException(error)); } else { tcs.SetResult(imageDataSampleBuffer); } }); return tcs.Task; } [Export("jpegStillImageNSDataRepresentation:")] public static NSData JpegStillToNSData(CMSampleBuffer buffer) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selJpegStillImageNSDataRepresentation_Handle, buffer.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AvailableImageDataCVPixelFormatTypes_var = null; __mt_OutputSettings_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureTorchMode.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureTorchMode { Off, On, Auto } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureVideoDataOutput.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using CoreMedia; using CoreVideo; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureVideoDataOutput", true)] public class AVCaptureVideoDataOutput : AVCaptureOutput { private static readonly IntPtr selSampleBufferDelegateHandle = Selector.GetHandle("sampleBufferDelegate"); private static readonly IntPtr selSampleBufferCallbackQueueHandle = Selector.GetHandle("sampleBufferCallbackQueue"); private static readonly IntPtr selVideoSettingsHandle = Selector.GetHandle("videoSettings"); private static readonly IntPtr selSetVideoSettings_Handle = Selector.GetHandle("setVideoSettings:"); private static readonly IntPtr selMinFrameDurationHandle = Selector.GetHandle("minFrameDuration"); private static readonly IntPtr selSetMinFrameDuration_Handle = Selector.GetHandle("setMinFrameDuration:"); private static readonly IntPtr selAlwaysDiscardsLateVideoFramesHandle = Selector.GetHandle("alwaysDiscardsLateVideoFrames"); private static readonly IntPtr selSetAlwaysDiscardsLateVideoFrames_Handle = Selector.GetHandle("setAlwaysDiscardsLateVideoFrames:"); private static readonly IntPtr selAvailableVideoCVPixelFormatTypesHandle = Selector.GetHandle("availableVideoCVPixelFormatTypes"); private static readonly IntPtr selAvailableVideoCodecTypesHandle = Selector.GetHandle("availableVideoCodecTypes"); private static readonly IntPtr selSetSampleBufferDelegateQueue_Handle = Selector.GetHandle("setSampleBufferDelegate:queue:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureVideoDataOutput"); private object __mt_SampleBufferDelegate_var; private object __mt_WeakVideoSettings_var; private object __mt_AvailableVideoCVPixelFormatTypes_var; private object __mt_AvailableVideoCodecTypes_var; [Advice("Use Compressed or Uncompressed property")] public AVVideoSettings VideoSettings { get { if (WeakVideoSettings.TryGetValue(CVPixelBuffer.PixelFormatTypeKey, out var value) && value is NSNumber) { return new AVVideoSettings((CVPixelFormatType)(value as NSNumber).Int32Value); } return new AVVideoSettings(); } set { WeakVideoSettings = value?.ToDictionary(); } } public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureVideoDataOutputSampleBufferDelegate SampleBufferDelegate { [Export("sampleBufferDelegate")] get { return (AVCaptureVideoDataOutputSampleBufferDelegate)(__mt_SampleBufferDelegate_var = ((!IsDirectBinding) ? ((AVCaptureVideoDataOutputSampleBufferDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSampleBufferDelegateHandle))) : ((AVCaptureVideoDataOutputSampleBufferDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSampleBufferDelegateHandle))))); } } public virtual DispatchQueue SampleBufferCallbackQueue { [Export("sampleBufferCallbackQueue")] get { if (IsDirectBinding) { return new DispatchQueue(Messaging.IntPtr_objc_msgSend(base.Handle, selSampleBufferCallbackQueueHandle)); } return new DispatchQueue(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSampleBufferCallbackQueueHandle)); } } public virtual NSDictionary WeakVideoSettings { [Export("videoSettings", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_WeakVideoSettings_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoSettingsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoSettingsHandle))))); } [Export("setVideoSettings:", ArgumentSemantic.Copy)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoSettings_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoSettings_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakVideoSettings_var = value; } } public AVVideoSettingsUncompressed UncompressedVideoSetting { get { NSDictionary weakVideoSettings = WeakVideoSettings; if (weakVideoSettings != null) { return new AVVideoSettingsUncompressed(weakVideoSettings); } return null; } set { WeakVideoSettings = value?.Dictionary; } } public AVVideoSettingsCompressed CompressedVideoSetting { get { NSDictionary weakVideoSettings = WeakVideoSettings; if (weakVideoSettings != null) { return new AVVideoSettingsCompressed(weakVideoSettings); } return null; } set { WeakVideoSettings = value?.Dictionary; } } [Obsolete("Deprecated in iOS 5.0. Use AVCaptureConnection's MinVideoFrameDuration", false)] public virtual CMTime MinFrameDuration { [Export("minFrameDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selMinFrameDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMinFrameDurationHandle); } return retval; } [Export("setMinFrameDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetMinFrameDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetMinFrameDuration_Handle, value); } } } public virtual bool AlwaysDiscardsLateVideoFrames { [Export("alwaysDiscardsLateVideoFrames")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysDiscardsLateVideoFramesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysDiscardsLateVideoFramesHandle); } [Export("setAlwaysDiscardsLateVideoFrames:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysDiscardsLateVideoFrames_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysDiscardsLateVideoFrames_Handle, value); } } } public virtual NSNumber[] AvailableVideoCVPixelFormatTypes { [Export("availableVideoCVPixelFormatTypes")] get { return (NSNumber[])(__mt_AvailableVideoCVPixelFormatTypes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableVideoCVPixelFormatTypesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableVideoCVPixelFormatTypesHandle)))); } } public virtual NSString[] AvailableVideoCodecTypes { [Export("availableVideoCodecTypes")] get { return (NSString[])(__mt_AvailableVideoCodecTypes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableVideoCodecTypesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableVideoCodecTypesHandle)))); } } [Advice("Use SetSampleBufferDelegate")] public void SetSampleBufferDelegateAndQueue(AVCaptureVideoDataOutputSampleBufferDelegate sampleBufferDelegate, DispatchQueue queue) { SetSampleBufferDelegate(sampleBufferDelegate, queue); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureVideoDataOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureVideoDataOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoDataOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoDataOutput(IntPtr handle) : base(handle) { } [Export("setSampleBufferDelegate:queue:")] public virtual void SetSampleBufferDelegate(AVCaptureVideoDataOutputSampleBufferDelegate sampleBufferDelegate, DispatchQueue sampleBufferCallbackQueue) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetSampleBufferDelegateQueue_Handle, sampleBufferDelegate?.Handle ?? IntPtr.Zero, (sampleBufferCallbackQueue == null) ? IntPtr.Zero : sampleBufferCallbackQueue.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetSampleBufferDelegateQueue_Handle, sampleBufferDelegate?.Handle ?? IntPtr.Zero, (sampleBufferCallbackQueue == null) ? IntPtr.Zero : sampleBufferCallbackQueue.Handle); } _ = SampleBufferDelegate; _ = SampleBufferCallbackQueue; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SampleBufferDelegate_var = null; __mt_WeakVideoSettings_var = null; __mt_AvailableVideoCVPixelFormatTypes_var = null; __mt_AvailableVideoCodecTypes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureVideoDataOutputSampleBufferDelegate.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVCaptureVideoDataOutputSampleBufferDelegate", true)] [Model] public class AVCaptureVideoDataOutputSampleBufferDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureVideoDataOutputSampleBufferDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureVideoDataOutputSampleBufferDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoDataOutputSampleBufferDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoDataOutputSampleBufferDelegate(IntPtr handle) : base(handle) { } [Export("captureOutput:didOutputSampleBuffer:fromConnection:")] public virtual void DidOutputSampleBuffer(AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureVideoOrientation.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureVideoOrientation { Portrait = 1, PortraitUpsideDown, LandscapeRight, LandscapeLeft } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureVideoPreviewLayer.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCaptureVideoPreviewLayer", true)] public class AVCaptureVideoPreviewLayer : CALayer { private static readonly IntPtr selSessionHandle = Selector.GetHandle("session"); private static readonly IntPtr selSetSession_Handle = Selector.GetHandle("setSession:"); private static readonly IntPtr selConnectionHandle = Selector.GetHandle("connection"); private static readonly IntPtr selSetSessionWithNoConnection_Handle = Selector.GetHandle("setSessionWithNoConnection:"); private static readonly IntPtr selLayerWithSession_Handle = Selector.GetHandle("layerWithSession:"); private static readonly IntPtr selInitWithSession_Handle = Selector.GetHandle("initWithSession:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCaptureVideoPreviewLayer"); private object __mt_Session_var; private object __mt_Connection_var; public override IntPtr ClassHandle => class_ptr; public virtual AVCaptureSession Session { [Export("session")] get { return (AVCaptureSession)(__mt_Session_var = ((!IsDirectBinding) ? ((AVCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSessionHandle))) : ((AVCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSessionHandle))))); } [Export("setSession:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSession_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSession_Handle, value.Handle); } __mt_Session_var = value; } } [Since(6, 0)] public virtual AVCaptureConnection Connection { [Export("connection")] get { return (AVCaptureConnection)(__mt_Connection_var = ((!IsDirectBinding) ? ((AVCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionHandle))) : ((AVCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCaptureVideoPreviewLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCaptureVideoPreviewLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoPreviewLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCaptureVideoPreviewLayer(IntPtr handle) : base(handle) { } [Export("setSessionWithNoConnection:")] public virtual void SetSessionWithNoConnection(AVCaptureSession session) { if (session == null) { throw new ArgumentNullException("session"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSessionWithNoConnection_Handle, session.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSessionWithNoConnection_Handle, session.Handle); } } [Export("layerWithSession:")] public static AVCaptureVideoPreviewLayer FromSession(AVCaptureSession session) { if (session == null) { throw new ArgumentNullException("session"); } return (AVCaptureVideoPreviewLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLayerWithSession_Handle, session.Handle)); } [Export("initWithSession:")] public AVCaptureVideoPreviewLayer(AVCaptureSession session) : base(NSObjectFlag.Empty) { if (session == null) { throw new ArgumentNullException("session"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithSession_Handle, session.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithSession_Handle, session.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Session_var = null; __mt_Connection_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCaptureWhiteBalanceMode.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVCaptureWhiteBalanceMode { Locked, AutoWhiteBalance, ContinuousAutoWhiteBalance } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCategoryEventArgs.cs ================================================ using System; namespace AVFoundation; public class AVCategoryEventArgs : EventArgs { public string Category { get; private set; } public AVCategoryEventArgs(string category) { Category = category; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVChannelsEventArgs.cs ================================================ using System; namespace AVFoundation; public class AVChannelsEventArgs : EventArgs { public int NumberOfChannels { get; private set; } public AVChannelsEventArgs(int numberOfChannels) { NumberOfChannels = numberOfChannels; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCompletion.cs ================================================ namespace AVFoundation; public delegate void AVCompletion(bool finished); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCompletionHandler.cs ================================================ namespace AVFoundation; public delegate void AVCompletionHandler(); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVComposition.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVComposition", true)] public class AVComposition : AVAsset { private static readonly IntPtr selTracksHandle = Selector.GetHandle("tracks"); private static readonly IntPtr selNaturalSizeHandle = Selector.GetHandle("naturalSize"); private static readonly IntPtr selSetNaturalSize_Handle = Selector.GetHandle("setNaturalSize:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVComposition"); private object __mt_Tracks_var; public override IntPtr ClassHandle => class_ptr; public new virtual AVCompositionTrack[] Tracks { [Export("tracks")] get { return (AVCompositionTrack[])(__mt_Tracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTracksHandle)))); } } [Obsolete("Deprecated in iOS 5.0 and OSX 10.8", false)] public new virtual CGSize NaturalSize { [Export("naturalSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selNaturalSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selNaturalSizeHandle); } set { throw new NotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVComposition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVComposition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVComposition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVComposition(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Tracks_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCompositionTrack.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCompositionTrack", true)] public class AVCompositionTrack : AVAssetTrack { private static readonly IntPtr selSegmentsHandle = Selector.GetHandle("segments"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCompositionTrack"); private object __mt_Segments_var; public override IntPtr ClassHandle => class_ptr; public new virtual AVCompositionTrackSegment[] Segments { [Export("segments", ArgumentSemantic.Copy)] get { return (AVCompositionTrackSegment[])(__mt_Segments_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSegmentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSegmentsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCompositionTrack(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCompositionTrack(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCompositionTrack(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Segments_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVCompositionTrackSegment.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVCompositionTrackSegment", true)] public class AVCompositionTrackSegment : AVAssetTrackSegment { private static readonly IntPtr selSourceURLHandle = Selector.GetHandle("sourceURL"); private static readonly IntPtr selSourceTrackIDHandle = Selector.GetHandle("sourceTrackID"); private static readonly IntPtr selCompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange_Handle = Selector.GetHandle("compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:"); private static readonly IntPtr selCompositionTrackSegmentWithTimeRange_Handle = Selector.GetHandle("compositionTrackSegmentWithTimeRange:"); private static readonly IntPtr selInitWithURLTrackIDSourceTimeRangeTargetTimeRange_Handle = Selector.GetHandle("initWithURL:trackID:sourceTimeRange:targetTimeRange:"); private static readonly IntPtr selInitWithTimeRange_Handle = Selector.GetHandle("initWithTimeRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVCompositionTrackSegment"); private object __mt_SourceUrl_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl SourceUrl { [Export("sourceURL")] get { return (NSUrl)(__mt_SourceUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceURLHandle))))); } } public virtual int SourceTrackID { [Export("sourceTrackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSourceTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSourceTrackIDHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVCompositionTrackSegment() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVCompositionTrackSegment(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCompositionTrackSegment(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVCompositionTrackSegment(IntPtr handle) : base(handle) { } [Export("compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:")] public static IntPtr FromUrl(NSUrl url, int trackID, CMTimeRange sourceTimeRange, CMTimeRange targetTimeRange) { if (url == null) { throw new ArgumentNullException("url"); } return Messaging.IntPtr_objc_msgSend_IntPtr_int_CMTimeRange_CMTimeRange(class_ptr, selCompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange_Handle, url.Handle, trackID, sourceTimeRange, targetTimeRange); } [Export("compositionTrackSegmentWithTimeRange:")] public static IntPtr FromTimeRange(CMTimeRange timeRange) { return Messaging.IntPtr_objc_msgSend_CMTimeRange(class_ptr, selCompositionTrackSegmentWithTimeRange_Handle, timeRange); } [Export("initWithURL:trackID:sourceTimeRange:targetTimeRange:")] public AVCompositionTrackSegment(NSUrl URL, int trackID, CMTimeRange sourceTimeRange, CMTimeRange targetTimeRange) : base(NSObjectFlag.Empty) { if (URL == null) { throw new ArgumentNullException("URL"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_int_CMTimeRange_CMTimeRange(base.Handle, selInitWithURLTrackIDSourceTimeRangeTargetTimeRange_Handle, URL.Handle, trackID, sourceTimeRange, targetTimeRange); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_int_CMTimeRange_CMTimeRange(base.SuperHandle, selInitWithURLTrackIDSourceTimeRangeTargetTimeRange_Handle, URL.Handle, trackID, sourceTimeRange, targetTimeRange); } } [Export("initWithTimeRange:")] public AVCompositionTrackSegment(CMTimeRange timeRange) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CMTimeRange(base.Handle, selInitWithTimeRange_Handle, timeRange); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selInitWithTimeRange_Handle, timeRange); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SourceUrl_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVError.cs ================================================ namespace AVFoundation; public enum AVError { Unknown = -11800, OutOfMemory = -11801, SessionNotRunning = -11803, DeviceAlreadyUsedByAnotherSession = -11804, NoDataCaptured = -11805, SessionConfigurationChanged = -11806, DiskFull = -11807, DeviceWasDisconnected = -11808, MediaChanged = -11809, MaximumDurationReached = -11810, MaximumFileSizeReached = -11811, MediaDiscontinuity = -11812, MaximumNumberOfSamplesForFileFormatReached = -11813, DeviceNotConnected = -11814, DeviceInUseByAnotherApplication = -11815, DeviceLockedForConfigurationByAnotherProcess = -11817, SessionWasInterrupted = -11818, MediaServicesWereReset = -11819, ExportFailed = -11820, DecodeFailed = -11821, InvalidSourceMedia = -11822, FileAlreadyExists = -11823, CompositionTrackSegmentsNotContiguous = -11824, InvalidCompositionTrackSegmentDuration = -11825, InvalidCompositionTrackSegmentSourceStartTime = -11826, InvalidCompositionTrackSegmentSourceDuration = -11827, FormatNotRecognized = -11828, FailedToParse = -11829, MaximumStillImageCaptureRequestsExceeded = 11830, ContentIsProtected = -11831, NoImageAtTime = -11832, DecoderNotFound = -11833, EncoderNotFound = -11834, ContentIsNotAuthorized = -11835, ApplicationIsNotAuthorized = -11836, DeviceIsNotAvailableInBackground = -11837, OperationNotSupportedForAsset = -11838, DecoderTemporarilyUnavailable = -11839, EncoderTemporarilyUnavailable = -11840, InvalidVideoComposition = -11841, ReferenceForbiddenByReferencePolicy = -11842, InvalidOutputURLPathExtension = -11843, ScreenCaptureFailed = -11844, DisplayWasDisabled = -11845, TorchLevelUnavailable = -11846, OperationInterrupted = -11847, IncompatibleAsset = -11848, FailedToLoadMediaData = -11849, ServerIncorrectlyConfigured = -11850 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVErrorEventArgs.cs ================================================ using System; using Foundation; namespace AVFoundation; public class AVErrorEventArgs : EventArgs { public NSError Error { get; private set; } public AVErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVFileType.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVFileType { private static NSString _QuickTimeMovie; private static NSString _Mpeg4; private static NSString _AppleM4V; private static NSString _ThreeGpp; private static NSString _AppleM4A; private static NSString _CoreAudioFormat; private static NSString _Wave; private static NSString _Aiff; private static NSString _Aifc; private static NSString _Amr; [Field("AVFileTypeQuickTimeMovie", "AVFoundation")] public static NSString QuickTimeMovie { get { if (_QuickTimeMovie == null) { _QuickTimeMovie = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeQuickTimeMovie"); } return _QuickTimeMovie; } } [Field("AVFileTypeMPEG4", "AVFoundation")] public static NSString Mpeg4 { get { if (_Mpeg4 == null) { _Mpeg4 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeMPEG4"); } return _Mpeg4; } } [Field("AVFileTypeAppleM4V", "AVFoundation")] public static NSString AppleM4V { get { if (_AppleM4V == null) { _AppleM4V = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeAppleM4V"); } return _AppleM4V; } } [Field("AVFileType3GPP", "AVFoundation")] public static NSString ThreeGpp { get { if (_ThreeGpp == null) { _ThreeGpp = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileType3GPP"); } return _ThreeGpp; } } [Field("AVFileTypeAppleM4A", "AVFoundation")] public static NSString AppleM4A { get { if (_AppleM4A == null) { _AppleM4A = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeAppleM4A"); } return _AppleM4A; } } [Field("AVFileTypeCoreAudioFormat", "AVFoundation")] public static NSString CoreAudioFormat { get { if (_CoreAudioFormat == null) { _CoreAudioFormat = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeCoreAudioFormat"); } return _CoreAudioFormat; } } [Field("AVFileTypeWAVE", "AVFoundation")] public static NSString Wave { get { if (_Wave == null) { _Wave = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeWAVE"); } return _Wave; } } [Field("AVFileTypeAIFF", "AVFoundation")] public static NSString Aiff { get { if (_Aiff == null) { _Aiff = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeAIFF"); } return _Aiff; } } [Field("AVFileTypeAIFC", "AVFoundation")] public static NSString Aifc { get { if (_Aifc == null) { _Aifc = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeAIFC"); } return _Aifc; } } [Field("AVFileTypeAMR", "AVFoundation")] public static NSString Amr { get { if (_Amr == null) { _Amr = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVFileTypeAMR"); } return _Amr; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVKeyValueStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVKeyValueStatus { Unknown, Loading, Loaded, Failed, Cancelled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMediaCharacteristic.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVMediaCharacteristic { private static NSString _Visual; private static NSString _Audible; private static NSString _Legible; private static NSString _FrameBased; private static NSString _IsMainProgramContent; private static NSString _IsAuxiliaryContent; private static NSString _ContainsOnlyForcedSubtitles; private static NSString _TranscribesSpokenDialogForAccessibility; private static NSString _DescribesMusicAndSoundForAccessibility; private static NSString _DescribesVideoForAccessibility; [Field("AVMediaCharacteristicVisual", "AVFoundation")] public static NSString Visual { get { if (_Visual == null) { _Visual = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicVisual"); } return _Visual; } } [Field("AVMediaCharacteristicAudible", "AVFoundation")] public static NSString Audible { get { if (_Audible == null) { _Audible = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicAudible"); } return _Audible; } } [Field("AVMediaCharacteristicLegible", "AVFoundation")] public static NSString Legible { get { if (_Legible == null) { _Legible = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicLegible"); } return _Legible; } } [Field("AVMediaCharacteristicFrameBased", "AVFoundation")] public static NSString FrameBased { get { if (_FrameBased == null) { _FrameBased = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicFrameBased"); } return _FrameBased; } } [Field("AVMediaCharacteristicIsMainProgramContent", "AVFoundation")] [MountainLion] public static NSString IsMainProgramContent { [MountainLion] get { if (_IsMainProgramContent == null) { _IsMainProgramContent = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicIsMainProgramContent"); } return _IsMainProgramContent; } } [Field("AVMediaCharacteristicIsAuxiliaryContent", "AVFoundation")] [MountainLion] public static NSString IsAuxiliaryContent { [MountainLion] get { if (_IsAuxiliaryContent == null) { _IsAuxiliaryContent = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicIsAuxiliaryContent"); } return _IsAuxiliaryContent; } } [Field("AVMediaCharacteristicContainsOnlyForcedSubtitles", "AVFoundation")] [MountainLion] public static NSString ContainsOnlyForcedSubtitles { [MountainLion] get { if (_ContainsOnlyForcedSubtitles == null) { _ContainsOnlyForcedSubtitles = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicContainsOnlyForcedSubtitles"); } return _ContainsOnlyForcedSubtitles; } } [Field("AVMediaCharacteristicTranscribesSpokenDialogForAccessibility", "AVFoundation")] [MountainLion] public static NSString TranscribesSpokenDialogForAccessibility { [MountainLion] get { if (_TranscribesSpokenDialogForAccessibility == null) { _TranscribesSpokenDialogForAccessibility = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicTranscribesSpokenDialogForAccessibility"); } return _TranscribesSpokenDialogForAccessibility; } } [Field("AVMediaCharacteristicDescribesMusicAndSoundForAccessibility", "AVFoundation")] [MountainLion] public static NSString DescribesMusicAndSoundForAccessibility { [MountainLion] get { if (_DescribesMusicAndSoundForAccessibility == null) { _DescribesMusicAndSoundForAccessibility = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicDescribesMusicAndSoundForAccessibility"); } return _DescribesMusicAndSoundForAccessibility; } } [Field("AVMediaCharacteristicDescribesVideoForAccessibility", "AVFoundation")] [MountainLion] public static NSString DescribesVideoForAccessibility { [MountainLion] get { if (_DescribesVideoForAccessibility == null) { _DescribesVideoForAccessibility = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaCharacteristicDescribesVideoForAccessibility"); } return _DescribesVideoForAccessibility; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMediaType.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVMediaType { private static NSString _Video; private static NSString _Audio; private static NSString _Text; private static NSString _ClosedCaption; private static NSString _Subtitle; private static NSString _Timecode; private static NSString _TimedMetadata; private static NSString _Muxed; [Field("AVMediaTypeVideo", "AVFoundation")] public static NSString Video { get { if (_Video == null) { _Video = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeVideo"); } return _Video; } } [Field("AVMediaTypeAudio", "AVFoundation")] public static NSString Audio { get { if (_Audio == null) { _Audio = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeAudio"); } return _Audio; } } [Field("AVMediaTypeText", "AVFoundation")] public static NSString Text { get { if (_Text == null) { _Text = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeText"); } return _Text; } } [Field("AVMediaTypeClosedCaption", "AVFoundation")] public static NSString ClosedCaption { get { if (_ClosedCaption == null) { _ClosedCaption = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeClosedCaption"); } return _ClosedCaption; } } [Field("AVMediaTypeSubtitle", "AVFoundation")] public static NSString Subtitle { get { if (_Subtitle == null) { _Subtitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeSubtitle"); } return _Subtitle; } } [Field("AVMediaTypeTimecode", "AVFoundation")] public static NSString Timecode { get { if (_Timecode == null) { _Timecode = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeTimecode"); } return _Timecode; } } [Field("AVMediaTypeTimedMetadata", "AVFoundation")] public static NSString TimedMetadata { get { if (_TimedMetadata == null) { _TimedMetadata = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeTimedMetadata"); } return _TimedMetadata; } } [Field("AVMediaTypeMuxed", "AVFoundation")] public static NSString Muxed { get { if (_Muxed == null) { _Muxed = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMediaTypeMuxed"); } return _Muxed; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMetadata.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVMetadata { private static NSString _KeySpaceCommon; private static NSString _CommonKeyTitle; private static NSString _CommonKeyCreator; private static NSString _CommonKeySubject; private static NSString _CommonKeyDescription; private static NSString _CommonKeyPublisher; private static NSString _CommonKeyContributor; private static NSString _CommonKeyCreationDate; private static NSString _CommonKeyLastModifiedDate; private static NSString _CommonKeyType; private static NSString _CommonKeyFormat; private static NSString _CommonKeyIdentifier; private static NSString _CommonKeySource; private static NSString _CommonKeyLanguage; private static NSString _CommonKeyRelation; private static NSString _CommonKeyLocation; private static NSString _CommonKeyCopyrights; private static NSString _CommonKeyAlbumName; private static NSString _CommonKeyAuthor; private static NSString _CommonKeyArtist; private static NSString _CommonKeyArtwork; private static NSString _CommonKeyMake; private static NSString _CommonKeyModel; private static NSString _CommonKeySoftware; private static NSString _FormatQuickTimeUserData; private static NSString _KeySpaceQuickTimeUserData; private static NSString _QuickTimeUserDataKeyAlbum; private static NSString _QuickTimeUserDataKeyArranger; private static NSString _QuickTimeUserDataKeyArtist; private static NSString _QuickTimeUserDataKeyAuthor; private static NSString _QuickTimeUserDataKeyChapter; private static NSString _QuickTimeUserDataKeyComment; private static NSString _QuickTimeUserDataKeyComposer; private static NSString _QuickTimeUserDataKeyCopyright; private static NSString _QuickTimeUserDataKeyCreationDate; private static NSString _QuickTimeUserDataKeyDescription; private static NSString _QuickTimeUserDataKeyDirector; private static NSString _QuickTimeUserDataKeyDisclaimer; private static NSString _QuickTimeUserDataKeyEncodedBy; private static NSString _QuickTimeUserDataKeyFullName; private static NSString _QuickTimeUserDataKeyGenre; private static NSString _QuickTimeUserDataKeyHostComputer; private static NSString _QuickTimeUserDataKeyInformation; private static NSString _QuickTimeUserDataKeyKeywords; private static NSString _QuickTimeUserDataKeyMake; private static NSString _QuickTimeUserDataKeyModel; private static NSString _QuickTimeUserDataKeyOriginalArtist; private static NSString _QuickTimeUserDataKeyOriginalFormat; private static NSString _QuickTimeUserDataKeyOriginalSource; private static NSString _QuickTimeUserDataKeyPerformers; private static NSString _QuickTimeUserDataKeyProducer; private static NSString _QuickTimeUserDataKeyPublisher; private static NSString _QuickTimeUserDataKeyProduct; private static NSString _QuickTimeUserDataKeySoftware; private static NSString _QuickTimeUserDataKeySpecialPlaybackRequirements; private static NSString _QuickTimeUserDataKeyTrack; private static NSString _QuickTimeUserDataKeyWarning; private static NSString _QuickTimeUserDataKeyWriter; private static NSString _QuickTimeUserDataKeyURLLink; private static NSString _QuickTimeUserDataKeyLocationISO6709; private static NSString _QuickTimeUserDataKeyTrackName; private static NSString _QuickTimeUserDataKeyCredits; private static NSString _QuickTimeUserDataKeyPhonogramRights; private static NSString _QuickTimeUserDataKeyTaggedCharacteristic; private static NSString _ISOUserDataKeyCopyright; private static NSString _K3GPUserDataKeyCopyright; private static NSString _K3GPUserDataKeyAuthor; private static NSString _K3GPUserDataKeyPerformer; private static NSString _K3GPUserDataKeyGenre; private static NSString _K3GPUserDataKeyRecordingYear; private static NSString _K3GPUserDataKeyLocation; private static NSString _K3GPUserDataKeyTitle; private static NSString _K3GPUserDataKeyDescription; private static NSString _FormatQuickTimeMetadata; private static NSString _KeySpaceQuickTimeMetadata; private static NSString _QuickTimeMetadataKeyAuthor; private static NSString _QuickTimeMetadataKeyComment; private static NSString _QuickTimeMetadataKeyCopyright; private static NSString _QuickTimeMetadataKeyCreationDate; private static NSString _QuickTimeMetadataKeyDirector; private static NSString _QuickTimeMetadataKeyDisplayName; private static NSString _QuickTimeMetadataKeyInformation; private static NSString _QuickTimeMetadataKeyKeywords; private static NSString _QuickTimeMetadataKeyProducer; private static NSString _QuickTimeMetadataKeyPublisher; private static NSString _QuickTimeMetadataKeyAlbum; private static NSString _QuickTimeMetadataKeyArtist; private static NSString _QuickTimeMetadataKeyArtwork; private static NSString _QuickTimeMetadataKeyDescription; private static NSString _QuickTimeMetadataKeySoftware; private static NSString _QuickTimeMetadataKeyYear; private static NSString _QuickTimeMetadataKeyGenre; private static NSString _QuickTimeMetadataKeyiXML; private static NSString _QuickTimeMetadataKeyLocationISO6709; private static NSString _QuickTimeMetadataKeyMake; private static NSString _QuickTimeMetadataKeyModel; private static NSString _QuickTimeMetadataKeyArranger; private static NSString _QuickTimeMetadataKeyEncodedBy; private static NSString _QuickTimeMetadataKeyOriginalArtist; private static NSString _QuickTimeMetadataKeyPerformer; private static NSString _QuickTimeMetadataKeyComposer; private static NSString _QuickTimeMetadataKeyCredits; private static NSString _QuickTimeMetadataKeyPhonogramRights; private static NSString _QuickTimeMetadataKeyCameraIdentifier; private static NSString _QuickTimeMetadataKeyCameraFrameReadoutTime; private static NSString _QuickTimeMetadataKeyTitle; private static NSString _QuickTimeMetadataKeyCollectionUser; private static NSString _QuickTimeMetadataKeyRatingUser; private static NSString _QuickTimeMetadataKeyLocationName; private static NSString _QuickTimeMetadataKeyLocationBody; private static NSString _QuickTimeMetadataKeyLocationNote; private static NSString _QuickTimeMetadataKeyLocationRole; private static NSString _QuickTimeMetadataKeyLocationDate; private static NSString _QuickTimeMetadataKeyDirectionFacing; private static NSString _QuickTimeMetadataKeyDirectionMotion; private static NSString _FormatiTunesMetadata; private static NSString _KeySpaceiTunes; private static NSString _iTunesMetadataKeyAlbum; private static NSString _iTunesMetadataKeyArtist; private static NSString _iTunesMetadataKeyUserComment; private static NSString _iTunesMetadataKeyCoverArt; private static NSString _iTunesMetadataKeyCopyright; private static NSString _iTunesMetadataKeyReleaseDate; private static NSString _iTunesMetadataKeyEncodedBy; private static NSString _iTunesMetadataKeyPredefinedGenre; private static NSString _iTunesMetadataKeyUserGenre; private static NSString _iTunesMetadataKeySongName; private static NSString _iTunesMetadataKeyTrackSubTitle; private static NSString _iTunesMetadataKeyEncodingTool; private static NSString _iTunesMetadataKeyComposer; private static NSString _iTunesMetadataKeyAlbumArtist; private static NSString _iTunesMetadataKeyAccountKind; private static NSString _iTunesMetadataKeyAppleID; private static NSString _iTunesMetadataKeyArtistID; private static NSString _iTunesMetadataKeySongID; private static NSString _iTunesMetadataKeyDiscCompilation; private static NSString _iTunesMetadataKeyDiscNumber; private static NSString _iTunesMetadataKeyGenreID; private static NSString _iTunesMetadataKeyGrouping; private static NSString _iTunesMetadataKeyPlaylistID; private static NSString _iTunesMetadataKeyContentRating; private static NSString _iTunesMetadataKeyBeatsPerMin; private static NSString _iTunesMetadataKeyTrackNumber; private static NSString _iTunesMetadataKeyArtDirector; private static NSString _iTunesMetadataKeyArranger; private static NSString _iTunesMetadataKeyAuthor; private static NSString _iTunesMetadataKeyLyrics; private static NSString _iTunesMetadataKeyAcknowledgement; private static NSString _iTunesMetadataKeyConductor; private static NSString _iTunesMetadataKeyDescription; private static NSString _iTunesMetadataKeyDirector; private static NSString _iTunesMetadataKeyEQ; private static NSString _iTunesMetadataKeyLinerNotes; private static NSString _iTunesMetadataKeyRecordCompany; private static NSString _iTunesMetadataKeyOriginalArtist; private static NSString _iTunesMetadataKeyPhonogramRights; private static NSString _iTunesMetadataKeyProducer; private static NSString _iTunesMetadataKeyPerformer; private static NSString _iTunesMetadataKeyPublisher; private static NSString _iTunesMetadataKeySoundEngineer; private static NSString _iTunesMetadataKeySoloist; private static NSString _iTunesMetadataKeyCredits; private static NSString _iTunesMetadataKeyThanks; private static NSString _iTunesMetadataKeyOnlineExtras; private static NSString _iTunesMetadataKeyExecProducer; private static NSString _FormatID3Metadata; private static NSString _KeySpaceID3; private static NSString _ID3MetadataKeyAudioEncryption; private static NSString _ID3MetadataKeyAttachedPicture; private static NSString _ID3MetadataKeyAudioSeekPointIndex; private static NSString _ID3MetadataKeyComments; private static NSString _ID3MetadataKeyCommerical; private static NSString _ID3MetadataKeyEncryption; private static NSString _ID3MetadataKeyEqualization; private static NSString _ID3MetadataKeyEqualization2; private static NSString _ID3MetadataKeyEventTimingCodes; private static NSString _ID3MetadataKeyGeneralEncapsulatedObject; private static NSString _ID3MetadataKeyGroupIdentifier; private static NSString _ID3MetadataKeyInvolvedPeopleList; private static NSString _ID3MetadataKeyLink; private static NSString _ID3MetadataKeyMusicCDIdentifier; private static NSString _ID3MetadataKeyMPEGLocationLookupTable; private static NSString _ID3MetadataKeyOwnership; private static NSString _ID3MetadataKeyPrivate; private static NSString _ID3MetadataKeyPlayCounter; private static NSString _ID3MetadataKeyPopularimeter; private static NSString _ID3MetadataKeyPositionSynchronization; private static NSString _ID3MetadataKeyRecommendedBufferSize; private static NSString _ID3MetadataKeyRelativeVolumeAdjustment; private static NSString _ID3MetadataKeyRelativeVolumeAdjustment2; private static NSString _ID3MetadataKeyReverb; private static NSString _ID3MetadataKeySeek; private static NSString _ID3MetadataKeySignature; private static NSString _ID3MetadataKeySynchronizedLyric; private static NSString _ID3MetadataKeySynchronizedTempoCodes; private static NSString _ID3MetadataKeyAlbumTitle; private static NSString _ID3MetadataKeyBeatsPerMinute; private static NSString _ID3MetadataKeyComposer; private static NSString _ID3MetadataKeyContentType; private static NSString _ID3MetadataKeyCopyright; private static NSString _ID3MetadataKeyDate; private static NSString _ID3MetadataKeyEncodingTime; private static NSString _ID3MetadataKeyPlaylistDelay; private static NSString _ID3MetadataKeyOriginalReleaseTime; private static NSString _ID3MetadataKeyRecordingTime; private static NSString _ID3MetadataKeyReleaseTime; private static NSString _ID3MetadataKeyTaggingTime; private static NSString _ID3MetadataKeyEncodedBy; private static NSString _ID3MetadataKeyLyricist; private static NSString _ID3MetadataKeyFileType; private static NSString _ID3MetadataKeyTime; private static NSString _ID3MetadataKeyContentGroupDescription; private static NSString _ID3MetadataKeyTitleDescription; private static NSString _ID3MetadataKeySubTitle; private static NSString _ID3MetadataKeyInitialKey; private static NSString _ID3MetadataKeyLanguage; private static NSString _ID3MetadataKeyLength; private static NSString _ID3MetadataKeyMusicianCreditsList; private static NSString _ID3MetadataKeyMediaType; private static NSString _ID3MetadataKeyMood; private static NSString _ID3MetadataKeyOriginalAlbumTitle; private static NSString _ID3MetadataKeyOriginalFilename; private static NSString _ID3MetadataKeyOriginalLyricist; private static NSString _ID3MetadataKeyOriginalArtist; private static NSString _ID3MetadataKeyOriginalReleaseYear; private static NSString _ID3MetadataKeyFileOwner; private static NSString _ID3MetadataKeyLeadPerformer; private static NSString _ID3MetadataKeyBand; private static NSString _ID3MetadataKeyConductor; private static NSString _ID3MetadataKeyModifiedBy; private static NSString _ID3MetadataKeyPartOfASet; private static NSString _ID3MetadataKeyProducedNotice; private static NSString _ID3MetadataKeyPublisher; private static NSString _ID3MetadataKeyTrackNumber; private static NSString _ID3MetadataKeyRecordingDates; private static NSString _ID3MetadataKeyInternetRadioStationName; private static NSString _ID3MetadataKeyInternetRadioStationOwner; private static NSString _ID3MetadataKeySize; private static NSString _ID3MetadataKeyAlbumSortOrder; private static NSString _ID3MetadataKeyPerformerSortOrder; private static NSString _ID3MetadataKeyTitleSortOrder; private static NSString _ID3MetadataKeyInternationalStandardRecordingCode; private static NSString _ID3MetadataKeyEncodedWith; private static NSString _ID3MetadataKeySetSubtitle; private static NSString _ID3MetadataKeyYear; private static NSString _ID3MetadataKeyUserText; private static NSString _ID3MetadataKeyUniqueFileIdentifier; private static NSString _ID3MetadataKeyTermsOfUse; private static NSString _ID3MetadataKeyUnsynchronizedLyric; private static NSString _ID3MetadataKeyCommercialInformation; private static NSString _ID3MetadataKeyCopyrightInformation; private static NSString _ID3MetadataKeyOfficialAudioFileWebpage; private static NSString _ID3MetadataKeyOfficialArtistWebpage; private static NSString _ID3MetadataKeyOfficialAudioSourceWebpage; private static NSString _ID3MetadataKeyOfficialInternetRadioStationHomepage; private static NSString _ID3MetadataKeyPayment; private static NSString _ID3MetadataKeyOfficialPublisherWebpage; private static NSString _ID3MetadataKeyUserURL; [Field("AVMetadataKeySpaceCommon", "AVFoundation")] public static NSString KeySpaceCommon { get { if (_KeySpaceCommon == null) { _KeySpaceCommon = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataKeySpaceCommon"); } return _KeySpaceCommon; } } [Field("AVMetadataCommonKeyTitle", "AVFoundation")] public static NSString CommonKeyTitle { get { if (_CommonKeyTitle == null) { _CommonKeyTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyTitle"); } return _CommonKeyTitle; } } [Field("AVMetadataCommonKeyCreator", "AVFoundation")] public static NSString CommonKeyCreator { get { if (_CommonKeyCreator == null) { _CommonKeyCreator = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyCreator"); } return _CommonKeyCreator; } } [Field("AVMetadataCommonKeySubject", "AVFoundation")] public static NSString CommonKeySubject { get { if (_CommonKeySubject == null) { _CommonKeySubject = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeySubject"); } return _CommonKeySubject; } } [Field("AVMetadataCommonKeyDescription", "AVFoundation")] public static NSString CommonKeyDescription { get { if (_CommonKeyDescription == null) { _CommonKeyDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyDescription"); } return _CommonKeyDescription; } } [Field("AVMetadataCommonKeyPublisher", "AVFoundation")] public static NSString CommonKeyPublisher { get { if (_CommonKeyPublisher == null) { _CommonKeyPublisher = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyPublisher"); } return _CommonKeyPublisher; } } [Field("AVMetadataCommonKeyContributor", "AVFoundation")] public static NSString CommonKeyContributor { get { if (_CommonKeyContributor == null) { _CommonKeyContributor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyContributor"); } return _CommonKeyContributor; } } [Field("AVMetadataCommonKeyCreationDate", "AVFoundation")] public static NSString CommonKeyCreationDate { get { if (_CommonKeyCreationDate == null) { _CommonKeyCreationDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyCreationDate"); } return _CommonKeyCreationDate; } } [Field("AVMetadataCommonKeyLastModifiedDate", "AVFoundation")] public static NSString CommonKeyLastModifiedDate { get { if (_CommonKeyLastModifiedDate == null) { _CommonKeyLastModifiedDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyLastModifiedDate"); } return _CommonKeyLastModifiedDate; } } [Field("AVMetadataCommonKeyType", "AVFoundation")] public static NSString CommonKeyType { get { if (_CommonKeyType == null) { _CommonKeyType = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyType"); } return _CommonKeyType; } } [Field("AVMetadataCommonKeyFormat", "AVFoundation")] public static NSString CommonKeyFormat { get { if (_CommonKeyFormat == null) { _CommonKeyFormat = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyFormat"); } return _CommonKeyFormat; } } [Field("AVMetadataCommonKeyIdentifier", "AVFoundation")] public static NSString CommonKeyIdentifier { get { if (_CommonKeyIdentifier == null) { _CommonKeyIdentifier = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyIdentifier"); } return _CommonKeyIdentifier; } } [Field("AVMetadataCommonKeySource", "AVFoundation")] public static NSString CommonKeySource { get { if (_CommonKeySource == null) { _CommonKeySource = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeySource"); } return _CommonKeySource; } } [Field("AVMetadataCommonKeyLanguage", "AVFoundation")] public static NSString CommonKeyLanguage { get { if (_CommonKeyLanguage == null) { _CommonKeyLanguage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyLanguage"); } return _CommonKeyLanguage; } } [Field("AVMetadataCommonKeyRelation", "AVFoundation")] public static NSString CommonKeyRelation { get { if (_CommonKeyRelation == null) { _CommonKeyRelation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyRelation"); } return _CommonKeyRelation; } } [Field("AVMetadataCommonKeyLocation", "AVFoundation")] public static NSString CommonKeyLocation { get { if (_CommonKeyLocation == null) { _CommonKeyLocation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyLocation"); } return _CommonKeyLocation; } } [Field("AVMetadataCommonKeyCopyrights", "AVFoundation")] public static NSString CommonKeyCopyrights { get { if (_CommonKeyCopyrights == null) { _CommonKeyCopyrights = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyCopyrights"); } return _CommonKeyCopyrights; } } [Field("AVMetadataCommonKeyAlbumName", "AVFoundation")] public static NSString CommonKeyAlbumName { get { if (_CommonKeyAlbumName == null) { _CommonKeyAlbumName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyAlbumName"); } return _CommonKeyAlbumName; } } [Field("AVMetadataCommonKeyAuthor", "AVFoundation")] public static NSString CommonKeyAuthor { get { if (_CommonKeyAuthor == null) { _CommonKeyAuthor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyAuthor"); } return _CommonKeyAuthor; } } [Field("AVMetadataCommonKeyArtist", "AVFoundation")] public static NSString CommonKeyArtist { get { if (_CommonKeyArtist == null) { _CommonKeyArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyArtist"); } return _CommonKeyArtist; } } [Field("AVMetadataCommonKeyArtwork", "AVFoundation")] public static NSString CommonKeyArtwork { get { if (_CommonKeyArtwork == null) { _CommonKeyArtwork = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyArtwork"); } return _CommonKeyArtwork; } } [Field("AVMetadataCommonKeyMake", "AVFoundation")] public static NSString CommonKeyMake { get { if (_CommonKeyMake == null) { _CommonKeyMake = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyMake"); } return _CommonKeyMake; } } [Field("AVMetadataCommonKeyModel", "AVFoundation")] public static NSString CommonKeyModel { get { if (_CommonKeyModel == null) { _CommonKeyModel = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeyModel"); } return _CommonKeyModel; } } [Field("AVMetadataCommonKeySoftware", "AVFoundation")] public static NSString CommonKeySoftware { get { if (_CommonKeySoftware == null) { _CommonKeySoftware = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataCommonKeySoftware"); } return _CommonKeySoftware; } } [Field("AVMetadataFormatQuickTimeUserData", "AVFoundation")] public static NSString FormatQuickTimeUserData { get { if (_FormatQuickTimeUserData == null) { _FormatQuickTimeUserData = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataFormatQuickTimeUserData"); } return _FormatQuickTimeUserData; } } [Field("AVMetadataKeySpaceQuickTimeUserData", "AVFoundation")] public static NSString KeySpaceQuickTimeUserData { get { if (_KeySpaceQuickTimeUserData == null) { _KeySpaceQuickTimeUserData = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataKeySpaceQuickTimeUserData"); } return _KeySpaceQuickTimeUserData; } } [Field("AVMetadataQuickTimeUserDataKeyAlbum", "AVFoundation")] public static NSString QuickTimeUserDataKeyAlbum { get { if (_QuickTimeUserDataKeyAlbum == null) { _QuickTimeUserDataKeyAlbum = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyAlbum"); } return _QuickTimeUserDataKeyAlbum; } } [Field("AVMetadataQuickTimeUserDataKeyArranger", "AVFoundation")] public static NSString QuickTimeUserDataKeyArranger { get { if (_QuickTimeUserDataKeyArranger == null) { _QuickTimeUserDataKeyArranger = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyArranger"); } return _QuickTimeUserDataKeyArranger; } } [Field("AVMetadataQuickTimeUserDataKeyArtist", "AVFoundation")] public static NSString QuickTimeUserDataKeyArtist { get { if (_QuickTimeUserDataKeyArtist == null) { _QuickTimeUserDataKeyArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyArtist"); } return _QuickTimeUserDataKeyArtist; } } [Field("AVMetadataQuickTimeUserDataKeyAuthor", "AVFoundation")] public static NSString QuickTimeUserDataKeyAuthor { get { if (_QuickTimeUserDataKeyAuthor == null) { _QuickTimeUserDataKeyAuthor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyAuthor"); } return _QuickTimeUserDataKeyAuthor; } } [Field("AVMetadataQuickTimeUserDataKeyChapter", "AVFoundation")] public static NSString QuickTimeUserDataKeyChapter { get { if (_QuickTimeUserDataKeyChapter == null) { _QuickTimeUserDataKeyChapter = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyChapter"); } return _QuickTimeUserDataKeyChapter; } } [Field("AVMetadataQuickTimeUserDataKeyComment", "AVFoundation")] public static NSString QuickTimeUserDataKeyComment { get { if (_QuickTimeUserDataKeyComment == null) { _QuickTimeUserDataKeyComment = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyComment"); } return _QuickTimeUserDataKeyComment; } } [Field("AVMetadataQuickTimeUserDataKeyComposer", "AVFoundation")] public static NSString QuickTimeUserDataKeyComposer { get { if (_QuickTimeUserDataKeyComposer == null) { _QuickTimeUserDataKeyComposer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyComposer"); } return _QuickTimeUserDataKeyComposer; } } [Field("AVMetadataQuickTimeUserDataKeyCopyright", "AVFoundation")] public static NSString QuickTimeUserDataKeyCopyright { get { if (_QuickTimeUserDataKeyCopyright == null) { _QuickTimeUserDataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyCopyright"); } return _QuickTimeUserDataKeyCopyright; } } [Field("AVMetadataQuickTimeUserDataKeyCreationDate", "AVFoundation")] public static NSString QuickTimeUserDataKeyCreationDate { get { if (_QuickTimeUserDataKeyCreationDate == null) { _QuickTimeUserDataKeyCreationDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyCreationDate"); } return _QuickTimeUserDataKeyCreationDate; } } [Field("AVMetadataQuickTimeUserDataKeyDescription", "AVFoundation")] public static NSString QuickTimeUserDataKeyDescription { get { if (_QuickTimeUserDataKeyDescription == null) { _QuickTimeUserDataKeyDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyDescription"); } return _QuickTimeUserDataKeyDescription; } } [Field("AVMetadataQuickTimeUserDataKeyDirector", "AVFoundation")] public static NSString QuickTimeUserDataKeyDirector { get { if (_QuickTimeUserDataKeyDirector == null) { _QuickTimeUserDataKeyDirector = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyDirector"); } return _QuickTimeUserDataKeyDirector; } } [Field("AVMetadataQuickTimeUserDataKeyDisclaimer", "AVFoundation")] public static NSString QuickTimeUserDataKeyDisclaimer { get { if (_QuickTimeUserDataKeyDisclaimer == null) { _QuickTimeUserDataKeyDisclaimer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyDisclaimer"); } return _QuickTimeUserDataKeyDisclaimer; } } [Field("AVMetadataQuickTimeUserDataKeyEncodedBy", "AVFoundation")] public static NSString QuickTimeUserDataKeyEncodedBy { get { if (_QuickTimeUserDataKeyEncodedBy == null) { _QuickTimeUserDataKeyEncodedBy = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyEncodedBy"); } return _QuickTimeUserDataKeyEncodedBy; } } [Field("AVMetadataQuickTimeUserDataKeyFullName", "AVFoundation")] public static NSString QuickTimeUserDataKeyFullName { get { if (_QuickTimeUserDataKeyFullName == null) { _QuickTimeUserDataKeyFullName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyFullName"); } return _QuickTimeUserDataKeyFullName; } } [Field("AVMetadataQuickTimeUserDataKeyGenre", "AVFoundation")] public static NSString QuickTimeUserDataKeyGenre { get { if (_QuickTimeUserDataKeyGenre == null) { _QuickTimeUserDataKeyGenre = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyGenre"); } return _QuickTimeUserDataKeyGenre; } } [Field("AVMetadataQuickTimeUserDataKeyHostComputer", "AVFoundation")] public static NSString QuickTimeUserDataKeyHostComputer { get { if (_QuickTimeUserDataKeyHostComputer == null) { _QuickTimeUserDataKeyHostComputer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyHostComputer"); } return _QuickTimeUserDataKeyHostComputer; } } [Field("AVMetadataQuickTimeUserDataKeyInformation", "AVFoundation")] public static NSString QuickTimeUserDataKeyInformation { get { if (_QuickTimeUserDataKeyInformation == null) { _QuickTimeUserDataKeyInformation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyInformation"); } return _QuickTimeUserDataKeyInformation; } } [Field("AVMetadataQuickTimeUserDataKeyKeywords", "AVFoundation")] public static NSString QuickTimeUserDataKeyKeywords { get { if (_QuickTimeUserDataKeyKeywords == null) { _QuickTimeUserDataKeyKeywords = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyKeywords"); } return _QuickTimeUserDataKeyKeywords; } } [Field("AVMetadataQuickTimeUserDataKeyMake", "AVFoundation")] public static NSString QuickTimeUserDataKeyMake { get { if (_QuickTimeUserDataKeyMake == null) { _QuickTimeUserDataKeyMake = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyMake"); } return _QuickTimeUserDataKeyMake; } } [Field("AVMetadataQuickTimeUserDataKeyModel", "AVFoundation")] public static NSString QuickTimeUserDataKeyModel { get { if (_QuickTimeUserDataKeyModel == null) { _QuickTimeUserDataKeyModel = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyModel"); } return _QuickTimeUserDataKeyModel; } } [Field("AVMetadataQuickTimeUserDataKeyOriginalArtist", "AVFoundation")] public static NSString QuickTimeUserDataKeyOriginalArtist { get { if (_QuickTimeUserDataKeyOriginalArtist == null) { _QuickTimeUserDataKeyOriginalArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyOriginalArtist"); } return _QuickTimeUserDataKeyOriginalArtist; } } [Field("AVMetadataQuickTimeUserDataKeyOriginalFormat", "AVFoundation")] public static NSString QuickTimeUserDataKeyOriginalFormat { get { if (_QuickTimeUserDataKeyOriginalFormat == null) { _QuickTimeUserDataKeyOriginalFormat = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyOriginalFormat"); } return _QuickTimeUserDataKeyOriginalFormat; } } [Field("AVMetadataQuickTimeUserDataKeyOriginalSource", "AVFoundation")] public static NSString QuickTimeUserDataKeyOriginalSource { get { if (_QuickTimeUserDataKeyOriginalSource == null) { _QuickTimeUserDataKeyOriginalSource = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyOriginalSource"); } return _QuickTimeUserDataKeyOriginalSource; } } [Field("AVMetadataQuickTimeUserDataKeyPerformers", "AVFoundation")] public static NSString QuickTimeUserDataKeyPerformers { get { if (_QuickTimeUserDataKeyPerformers == null) { _QuickTimeUserDataKeyPerformers = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyPerformers"); } return _QuickTimeUserDataKeyPerformers; } } [Field("AVMetadataQuickTimeUserDataKeyProducer", "AVFoundation")] public static NSString QuickTimeUserDataKeyProducer { get { if (_QuickTimeUserDataKeyProducer == null) { _QuickTimeUserDataKeyProducer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyProducer"); } return _QuickTimeUserDataKeyProducer; } } [Field("AVMetadataQuickTimeUserDataKeyPublisher", "AVFoundation")] public static NSString QuickTimeUserDataKeyPublisher { get { if (_QuickTimeUserDataKeyPublisher == null) { _QuickTimeUserDataKeyPublisher = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyPublisher"); } return _QuickTimeUserDataKeyPublisher; } } [Field("AVMetadataQuickTimeUserDataKeyProduct", "AVFoundation")] public static NSString QuickTimeUserDataKeyProduct { get { if (_QuickTimeUserDataKeyProduct == null) { _QuickTimeUserDataKeyProduct = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyProduct"); } return _QuickTimeUserDataKeyProduct; } } [Field("AVMetadataQuickTimeUserDataKeySoftware", "AVFoundation")] public static NSString QuickTimeUserDataKeySoftware { get { if (_QuickTimeUserDataKeySoftware == null) { _QuickTimeUserDataKeySoftware = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeySoftware"); } return _QuickTimeUserDataKeySoftware; } } [Field("AVMetadataQuickTimeUserDataKeySpecialPlaybackRequirements", "AVFoundation")] public static NSString QuickTimeUserDataKeySpecialPlaybackRequirements { get { if (_QuickTimeUserDataKeySpecialPlaybackRequirements == null) { _QuickTimeUserDataKeySpecialPlaybackRequirements = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeySpecialPlaybackRequirements"); } return _QuickTimeUserDataKeySpecialPlaybackRequirements; } } [Field("AVMetadataQuickTimeUserDataKeyTrack", "AVFoundation")] public static NSString QuickTimeUserDataKeyTrack { get { if (_QuickTimeUserDataKeyTrack == null) { _QuickTimeUserDataKeyTrack = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyTrack"); } return _QuickTimeUserDataKeyTrack; } } [Field("AVMetadataQuickTimeUserDataKeyWarning", "AVFoundation")] public static NSString QuickTimeUserDataKeyWarning { get { if (_QuickTimeUserDataKeyWarning == null) { _QuickTimeUserDataKeyWarning = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyWarning"); } return _QuickTimeUserDataKeyWarning; } } [Field("AVMetadataQuickTimeUserDataKeyWriter", "AVFoundation")] public static NSString QuickTimeUserDataKeyWriter { get { if (_QuickTimeUserDataKeyWriter == null) { _QuickTimeUserDataKeyWriter = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyWriter"); } return _QuickTimeUserDataKeyWriter; } } [Field("AVMetadataQuickTimeUserDataKeyURLLink", "AVFoundation")] public static NSString QuickTimeUserDataKeyURLLink { get { if (_QuickTimeUserDataKeyURLLink == null) { _QuickTimeUserDataKeyURLLink = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyURLLink"); } return _QuickTimeUserDataKeyURLLink; } } [Field("AVMetadataQuickTimeUserDataKeyLocationISO6709", "AVFoundation")] public static NSString QuickTimeUserDataKeyLocationISO6709 { get { if (_QuickTimeUserDataKeyLocationISO6709 == null) { _QuickTimeUserDataKeyLocationISO6709 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyLocationISO6709"); } return _QuickTimeUserDataKeyLocationISO6709; } } [Field("AVMetadataQuickTimeUserDataKeyTrackName", "AVFoundation")] public static NSString QuickTimeUserDataKeyTrackName { get { if (_QuickTimeUserDataKeyTrackName == null) { _QuickTimeUserDataKeyTrackName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyTrackName"); } return _QuickTimeUserDataKeyTrackName; } } [Field("AVMetadataQuickTimeUserDataKeyCredits", "AVFoundation")] public static NSString QuickTimeUserDataKeyCredits { get { if (_QuickTimeUserDataKeyCredits == null) { _QuickTimeUserDataKeyCredits = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyCredits"); } return _QuickTimeUserDataKeyCredits; } } [Field("AVMetadataQuickTimeUserDataKeyPhonogramRights", "AVFoundation")] public static NSString QuickTimeUserDataKeyPhonogramRights { get { if (_QuickTimeUserDataKeyPhonogramRights == null) { _QuickTimeUserDataKeyPhonogramRights = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyPhonogramRights"); } return _QuickTimeUserDataKeyPhonogramRights; } } [Field("AVMetadataQuickTimeUserDataKeyTaggedCharacteristic", "AVFoundation")] [MountainLion] public static NSString QuickTimeUserDataKeyTaggedCharacteristic { [MountainLion] get { if (_QuickTimeUserDataKeyTaggedCharacteristic == null) { _QuickTimeUserDataKeyTaggedCharacteristic = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeUserDataKeyTaggedCharacteristic"); } return _QuickTimeUserDataKeyTaggedCharacteristic; } } [Field("AVMetadataISOUserDataKeyCopyright", "AVFoundation")] public static NSString ISOUserDataKeyCopyright { get { if (_ISOUserDataKeyCopyright == null) { _ISOUserDataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataISOUserDataKeyCopyright"); } return _ISOUserDataKeyCopyright; } } [Field("AVMetadata3GPUserDataKeyCopyright", "AVFoundation")] public static NSString K3GPUserDataKeyCopyright { get { if (_K3GPUserDataKeyCopyright == null) { _K3GPUserDataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyCopyright"); } return _K3GPUserDataKeyCopyright; } } [Field("AVMetadata3GPUserDataKeyAuthor", "AVFoundation")] public static NSString K3GPUserDataKeyAuthor { get { if (_K3GPUserDataKeyAuthor == null) { _K3GPUserDataKeyAuthor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyAuthor"); } return _K3GPUserDataKeyAuthor; } } [Field("AVMetadata3GPUserDataKeyPerformer", "AVFoundation")] public static NSString K3GPUserDataKeyPerformer { get { if (_K3GPUserDataKeyPerformer == null) { _K3GPUserDataKeyPerformer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyPerformer"); } return _K3GPUserDataKeyPerformer; } } [Field("AVMetadata3GPUserDataKeyGenre", "AVFoundation")] public static NSString K3GPUserDataKeyGenre { get { if (_K3GPUserDataKeyGenre == null) { _K3GPUserDataKeyGenre = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyGenre"); } return _K3GPUserDataKeyGenre; } } [Field("AVMetadata3GPUserDataKeyRecordingYear", "AVFoundation")] public static NSString K3GPUserDataKeyRecordingYear { get { if (_K3GPUserDataKeyRecordingYear == null) { _K3GPUserDataKeyRecordingYear = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyRecordingYear"); } return _K3GPUserDataKeyRecordingYear; } } [Field("AVMetadata3GPUserDataKeyLocation", "AVFoundation")] public static NSString K3GPUserDataKeyLocation { get { if (_K3GPUserDataKeyLocation == null) { _K3GPUserDataKeyLocation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyLocation"); } return _K3GPUserDataKeyLocation; } } [Field("AVMetadata3GPUserDataKeyTitle", "AVFoundation")] public static NSString K3GPUserDataKeyTitle { get { if (_K3GPUserDataKeyTitle == null) { _K3GPUserDataKeyTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyTitle"); } return _K3GPUserDataKeyTitle; } } [Field("AVMetadata3GPUserDataKeyDescription", "AVFoundation")] public static NSString K3GPUserDataKeyDescription { get { if (_K3GPUserDataKeyDescription == null) { _K3GPUserDataKeyDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadata3GPUserDataKeyDescription"); } return _K3GPUserDataKeyDescription; } } [Field("AVMetadataFormatQuickTimeMetadata", "AVFoundation")] public static NSString FormatQuickTimeMetadata { get { if (_FormatQuickTimeMetadata == null) { _FormatQuickTimeMetadata = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataFormatQuickTimeMetadata"); } return _FormatQuickTimeMetadata; } } [Field("AVMetadataKeySpaceQuickTimeMetadata", "AVFoundation")] public static NSString KeySpaceQuickTimeMetadata { get { if (_KeySpaceQuickTimeMetadata == null) { _KeySpaceQuickTimeMetadata = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataKeySpaceQuickTimeMetadata"); } return _KeySpaceQuickTimeMetadata; } } [Field("AVMetadataQuickTimeMetadataKeyAuthor", "AVFoundation")] public static NSString QuickTimeMetadataKeyAuthor { get { if (_QuickTimeMetadataKeyAuthor == null) { _QuickTimeMetadataKeyAuthor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyAuthor"); } return _QuickTimeMetadataKeyAuthor; } } [Field("AVMetadataQuickTimeMetadataKeyComment", "AVFoundation")] public static NSString QuickTimeMetadataKeyComment { get { if (_QuickTimeMetadataKeyComment == null) { _QuickTimeMetadataKeyComment = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyComment"); } return _QuickTimeMetadataKeyComment; } } [Field("AVMetadataQuickTimeMetadataKeyCopyright", "AVFoundation")] public static NSString QuickTimeMetadataKeyCopyright { get { if (_QuickTimeMetadataKeyCopyright == null) { _QuickTimeMetadataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCopyright"); } return _QuickTimeMetadataKeyCopyright; } } [Field("AVMetadataQuickTimeMetadataKeyCreationDate", "AVFoundation")] public static NSString QuickTimeMetadataKeyCreationDate { get { if (_QuickTimeMetadataKeyCreationDate == null) { _QuickTimeMetadataKeyCreationDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCreationDate"); } return _QuickTimeMetadataKeyCreationDate; } } [Field("AVMetadataQuickTimeMetadataKeyDirector", "AVFoundation")] public static NSString QuickTimeMetadataKeyDirector { get { if (_QuickTimeMetadataKeyDirector == null) { _QuickTimeMetadataKeyDirector = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyDirector"); } return _QuickTimeMetadataKeyDirector; } } [Field("AVMetadataQuickTimeMetadataKeyDisplayName", "AVFoundation")] public static NSString QuickTimeMetadataKeyDisplayName { get { if (_QuickTimeMetadataKeyDisplayName == null) { _QuickTimeMetadataKeyDisplayName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyDisplayName"); } return _QuickTimeMetadataKeyDisplayName; } } [Field("AVMetadataQuickTimeMetadataKeyInformation", "AVFoundation")] public static NSString QuickTimeMetadataKeyInformation { get { if (_QuickTimeMetadataKeyInformation == null) { _QuickTimeMetadataKeyInformation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyInformation"); } return _QuickTimeMetadataKeyInformation; } } [Field("AVMetadataQuickTimeMetadataKeyKeywords", "AVFoundation")] public static NSString QuickTimeMetadataKeyKeywords { get { if (_QuickTimeMetadataKeyKeywords == null) { _QuickTimeMetadataKeyKeywords = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyKeywords"); } return _QuickTimeMetadataKeyKeywords; } } [Field("AVMetadataQuickTimeMetadataKeyProducer", "AVFoundation")] public static NSString QuickTimeMetadataKeyProducer { get { if (_QuickTimeMetadataKeyProducer == null) { _QuickTimeMetadataKeyProducer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyProducer"); } return _QuickTimeMetadataKeyProducer; } } [Field("AVMetadataQuickTimeMetadataKeyPublisher", "AVFoundation")] public static NSString QuickTimeMetadataKeyPublisher { get { if (_QuickTimeMetadataKeyPublisher == null) { _QuickTimeMetadataKeyPublisher = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyPublisher"); } return _QuickTimeMetadataKeyPublisher; } } [Field("AVMetadataQuickTimeMetadataKeyAlbum", "AVFoundation")] public static NSString QuickTimeMetadataKeyAlbum { get { if (_QuickTimeMetadataKeyAlbum == null) { _QuickTimeMetadataKeyAlbum = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyAlbum"); } return _QuickTimeMetadataKeyAlbum; } } [Field("AVMetadataQuickTimeMetadataKeyArtist", "AVFoundation")] public static NSString QuickTimeMetadataKeyArtist { get { if (_QuickTimeMetadataKeyArtist == null) { _QuickTimeMetadataKeyArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyArtist"); } return _QuickTimeMetadataKeyArtist; } } [Field("AVMetadataQuickTimeMetadataKeyArtwork", "AVFoundation")] public static NSString QuickTimeMetadataKeyArtwork { get { if (_QuickTimeMetadataKeyArtwork == null) { _QuickTimeMetadataKeyArtwork = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyArtwork"); } return _QuickTimeMetadataKeyArtwork; } } [Field("AVMetadataQuickTimeMetadataKeyDescription", "AVFoundation")] public static NSString QuickTimeMetadataKeyDescription { get { if (_QuickTimeMetadataKeyDescription == null) { _QuickTimeMetadataKeyDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyDescription"); } return _QuickTimeMetadataKeyDescription; } } [Field("AVMetadataQuickTimeMetadataKeySoftware", "AVFoundation")] public static NSString QuickTimeMetadataKeySoftware { get { if (_QuickTimeMetadataKeySoftware == null) { _QuickTimeMetadataKeySoftware = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeySoftware"); } return _QuickTimeMetadataKeySoftware; } } [Field("AVMetadataQuickTimeMetadataKeyYear", "AVFoundation")] public static NSString QuickTimeMetadataKeyYear { get { if (_QuickTimeMetadataKeyYear == null) { _QuickTimeMetadataKeyYear = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyYear"); } return _QuickTimeMetadataKeyYear; } } [Field("AVMetadataQuickTimeMetadataKeyGenre", "AVFoundation")] public static NSString QuickTimeMetadataKeyGenre { get { if (_QuickTimeMetadataKeyGenre == null) { _QuickTimeMetadataKeyGenre = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyGenre"); } return _QuickTimeMetadataKeyGenre; } } [Field("AVMetadataQuickTimeMetadataKeyiXML", "AVFoundation")] public static NSString QuickTimeMetadataKeyiXML { get { if (_QuickTimeMetadataKeyiXML == null) { _QuickTimeMetadataKeyiXML = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyiXML"); } return _QuickTimeMetadataKeyiXML; } } [Field("AVMetadataQuickTimeMetadataKeyLocationISO6709", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationISO6709 { get { if (_QuickTimeMetadataKeyLocationISO6709 == null) { _QuickTimeMetadataKeyLocationISO6709 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationISO6709"); } return _QuickTimeMetadataKeyLocationISO6709; } } [Field("AVMetadataQuickTimeMetadataKeyMake", "AVFoundation")] public static NSString QuickTimeMetadataKeyMake { get { if (_QuickTimeMetadataKeyMake == null) { _QuickTimeMetadataKeyMake = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyMake"); } return _QuickTimeMetadataKeyMake; } } [Field("AVMetadataQuickTimeMetadataKeyModel", "AVFoundation")] public static NSString QuickTimeMetadataKeyModel { get { if (_QuickTimeMetadataKeyModel == null) { _QuickTimeMetadataKeyModel = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyModel"); } return _QuickTimeMetadataKeyModel; } } [Field("AVMetadataQuickTimeMetadataKeyArranger", "AVFoundation")] public static NSString QuickTimeMetadataKeyArranger { get { if (_QuickTimeMetadataKeyArranger == null) { _QuickTimeMetadataKeyArranger = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyArranger"); } return _QuickTimeMetadataKeyArranger; } } [Field("AVMetadataQuickTimeMetadataKeyEncodedBy", "AVFoundation")] public static NSString QuickTimeMetadataKeyEncodedBy { get { if (_QuickTimeMetadataKeyEncodedBy == null) { _QuickTimeMetadataKeyEncodedBy = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyEncodedBy"); } return _QuickTimeMetadataKeyEncodedBy; } } [Field("AVMetadataQuickTimeMetadataKeyOriginalArtist", "AVFoundation")] public static NSString QuickTimeMetadataKeyOriginalArtist { get { if (_QuickTimeMetadataKeyOriginalArtist == null) { _QuickTimeMetadataKeyOriginalArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyOriginalArtist"); } return _QuickTimeMetadataKeyOriginalArtist; } } [Field("AVMetadataQuickTimeMetadataKeyPerformer", "AVFoundation")] public static NSString QuickTimeMetadataKeyPerformer { get { if (_QuickTimeMetadataKeyPerformer == null) { _QuickTimeMetadataKeyPerformer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyPerformer"); } return _QuickTimeMetadataKeyPerformer; } } [Field("AVMetadataQuickTimeMetadataKeyComposer", "AVFoundation")] public static NSString QuickTimeMetadataKeyComposer { get { if (_QuickTimeMetadataKeyComposer == null) { _QuickTimeMetadataKeyComposer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyComposer"); } return _QuickTimeMetadataKeyComposer; } } [Field("AVMetadataQuickTimeMetadataKeyCredits", "AVFoundation")] public static NSString QuickTimeMetadataKeyCredits { get { if (_QuickTimeMetadataKeyCredits == null) { _QuickTimeMetadataKeyCredits = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCredits"); } return _QuickTimeMetadataKeyCredits; } } [Field("AVMetadataQuickTimeMetadataKeyPhonogramRights", "AVFoundation")] public static NSString QuickTimeMetadataKeyPhonogramRights { get { if (_QuickTimeMetadataKeyPhonogramRights == null) { _QuickTimeMetadataKeyPhonogramRights = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyPhonogramRights"); } return _QuickTimeMetadataKeyPhonogramRights; } } [Field("AVMetadataQuickTimeMetadataKeyCameraIdentifier", "AVFoundation")] public static NSString QuickTimeMetadataKeyCameraIdentifier { get { if (_QuickTimeMetadataKeyCameraIdentifier == null) { _QuickTimeMetadataKeyCameraIdentifier = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCameraIdentifier"); } return _QuickTimeMetadataKeyCameraIdentifier; } } [Field("AVMetadataQuickTimeMetadataKeyCameraFrameReadoutTime", "AVFoundation")] public static NSString QuickTimeMetadataKeyCameraFrameReadoutTime { get { if (_QuickTimeMetadataKeyCameraFrameReadoutTime == null) { _QuickTimeMetadataKeyCameraFrameReadoutTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCameraFrameReadoutTime"); } return _QuickTimeMetadataKeyCameraFrameReadoutTime; } } [Field("AVMetadataQuickTimeMetadataKeyTitle", "AVFoundation")] public static NSString QuickTimeMetadataKeyTitle { get { if (_QuickTimeMetadataKeyTitle == null) { _QuickTimeMetadataKeyTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyTitle"); } return _QuickTimeMetadataKeyTitle; } } [Field("AVMetadataQuickTimeMetadataKeyCollectionUser", "AVFoundation")] public static NSString QuickTimeMetadataKeyCollectionUser { get { if (_QuickTimeMetadataKeyCollectionUser == null) { _QuickTimeMetadataKeyCollectionUser = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyCollectionUser"); } return _QuickTimeMetadataKeyCollectionUser; } } [Field("AVMetadataQuickTimeMetadataKeyRatingUser", "AVFoundation")] public static NSString QuickTimeMetadataKeyRatingUser { get { if (_QuickTimeMetadataKeyRatingUser == null) { _QuickTimeMetadataKeyRatingUser = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyRatingUser"); } return _QuickTimeMetadataKeyRatingUser; } } [Field("AVMetadataQuickTimeMetadataKeyLocationName", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationName { get { if (_QuickTimeMetadataKeyLocationName == null) { _QuickTimeMetadataKeyLocationName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationName"); } return _QuickTimeMetadataKeyLocationName; } } [Field("AVMetadataQuickTimeMetadataKeyLocationBody", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationBody { get { if (_QuickTimeMetadataKeyLocationBody == null) { _QuickTimeMetadataKeyLocationBody = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationBody"); } return _QuickTimeMetadataKeyLocationBody; } } [Field("AVMetadataQuickTimeMetadataKeyLocationNote", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationNote { get { if (_QuickTimeMetadataKeyLocationNote == null) { _QuickTimeMetadataKeyLocationNote = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationNote"); } return _QuickTimeMetadataKeyLocationNote; } } [Field("AVMetadataQuickTimeMetadataKeyLocationRole", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationRole { get { if (_QuickTimeMetadataKeyLocationRole == null) { _QuickTimeMetadataKeyLocationRole = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationRole"); } return _QuickTimeMetadataKeyLocationRole; } } [Field("AVMetadataQuickTimeMetadataKeyLocationDate", "AVFoundation")] public static NSString QuickTimeMetadataKeyLocationDate { get { if (_QuickTimeMetadataKeyLocationDate == null) { _QuickTimeMetadataKeyLocationDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyLocationDate"); } return _QuickTimeMetadataKeyLocationDate; } } [Field("AVMetadataQuickTimeMetadataKeyDirectionFacing", "AVFoundation")] public static NSString QuickTimeMetadataKeyDirectionFacing { get { if (_QuickTimeMetadataKeyDirectionFacing == null) { _QuickTimeMetadataKeyDirectionFacing = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyDirectionFacing"); } return _QuickTimeMetadataKeyDirectionFacing; } } [Field("AVMetadataQuickTimeMetadataKeyDirectionMotion", "AVFoundation")] public static NSString QuickTimeMetadataKeyDirectionMotion { get { if (_QuickTimeMetadataKeyDirectionMotion == null) { _QuickTimeMetadataKeyDirectionMotion = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataQuickTimeMetadataKeyDirectionMotion"); } return _QuickTimeMetadataKeyDirectionMotion; } } [Field("AVMetadataFormatiTunesMetadata", "AVFoundation")] public static NSString FormatiTunesMetadata { get { if (_FormatiTunesMetadata == null) { _FormatiTunesMetadata = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataFormatiTunesMetadata"); } return _FormatiTunesMetadata; } } [Field("AVMetadataKeySpaceiTunes", "AVFoundation")] public static NSString KeySpaceiTunes { get { if (_KeySpaceiTunes == null) { _KeySpaceiTunes = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataKeySpaceiTunes"); } return _KeySpaceiTunes; } } [Field("AVMetadataiTunesMetadataKeyAlbum", "AVFoundation")] public static NSString iTunesMetadataKeyAlbum { get { if (_iTunesMetadataKeyAlbum == null) { _iTunesMetadataKeyAlbum = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAlbum"); } return _iTunesMetadataKeyAlbum; } } [Field("AVMetadataiTunesMetadataKeyArtist", "AVFoundation")] public static NSString iTunesMetadataKeyArtist { get { if (_iTunesMetadataKeyArtist == null) { _iTunesMetadataKeyArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyArtist"); } return _iTunesMetadataKeyArtist; } } [Field("AVMetadataiTunesMetadataKeyUserComment", "AVFoundation")] public static NSString iTunesMetadataKeyUserComment { get { if (_iTunesMetadataKeyUserComment == null) { _iTunesMetadataKeyUserComment = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyUserComment"); } return _iTunesMetadataKeyUserComment; } } [Field("AVMetadataiTunesMetadataKeyCoverArt", "AVFoundation")] public static NSString iTunesMetadataKeyCoverArt { get { if (_iTunesMetadataKeyCoverArt == null) { _iTunesMetadataKeyCoverArt = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyCoverArt"); } return _iTunesMetadataKeyCoverArt; } } [Field("AVMetadataiTunesMetadataKeyCopyright", "AVFoundation")] public static NSString iTunesMetadataKeyCopyright { get { if (_iTunesMetadataKeyCopyright == null) { _iTunesMetadataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyCopyright"); } return _iTunesMetadataKeyCopyright; } } [Field("AVMetadataiTunesMetadataKeyReleaseDate", "AVFoundation")] public static NSString iTunesMetadataKeyReleaseDate { get { if (_iTunesMetadataKeyReleaseDate == null) { _iTunesMetadataKeyReleaseDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyReleaseDate"); } return _iTunesMetadataKeyReleaseDate; } } [Field("AVMetadataiTunesMetadataKeyEncodedBy", "AVFoundation")] public static NSString iTunesMetadataKeyEncodedBy { get { if (_iTunesMetadataKeyEncodedBy == null) { _iTunesMetadataKeyEncodedBy = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyEncodedBy"); } return _iTunesMetadataKeyEncodedBy; } } [Field("AVMetadataiTunesMetadataKeyPredefinedGenre", "AVFoundation")] public static NSString iTunesMetadataKeyPredefinedGenre { get { if (_iTunesMetadataKeyPredefinedGenre == null) { _iTunesMetadataKeyPredefinedGenre = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyPredefinedGenre"); } return _iTunesMetadataKeyPredefinedGenre; } } [Field("AVMetadataiTunesMetadataKeyUserGenre", "AVFoundation")] public static NSString iTunesMetadataKeyUserGenre { get { if (_iTunesMetadataKeyUserGenre == null) { _iTunesMetadataKeyUserGenre = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyUserGenre"); } return _iTunesMetadataKeyUserGenre; } } [Field("AVMetadataiTunesMetadataKeySongName", "AVFoundation")] public static NSString iTunesMetadataKeySongName { get { if (_iTunesMetadataKeySongName == null) { _iTunesMetadataKeySongName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeySongName"); } return _iTunesMetadataKeySongName; } } [Field("AVMetadataiTunesMetadataKeyTrackSubTitle", "AVFoundation")] public static NSString iTunesMetadataKeyTrackSubTitle { get { if (_iTunesMetadataKeyTrackSubTitle == null) { _iTunesMetadataKeyTrackSubTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyTrackSubTitle"); } return _iTunesMetadataKeyTrackSubTitle; } } [Field("AVMetadataiTunesMetadataKeyEncodingTool", "AVFoundation")] public static NSString iTunesMetadataKeyEncodingTool { get { if (_iTunesMetadataKeyEncodingTool == null) { _iTunesMetadataKeyEncodingTool = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyEncodingTool"); } return _iTunesMetadataKeyEncodingTool; } } [Field("AVMetadataiTunesMetadataKeyComposer", "AVFoundation")] public static NSString iTunesMetadataKeyComposer { get { if (_iTunesMetadataKeyComposer == null) { _iTunesMetadataKeyComposer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyComposer"); } return _iTunesMetadataKeyComposer; } } [Field("AVMetadataiTunesMetadataKeyAlbumArtist", "AVFoundation")] public static NSString iTunesMetadataKeyAlbumArtist { get { if (_iTunesMetadataKeyAlbumArtist == null) { _iTunesMetadataKeyAlbumArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAlbumArtist"); } return _iTunesMetadataKeyAlbumArtist; } } [Field("AVMetadataiTunesMetadataKeyAccountKind", "AVFoundation")] public static NSString iTunesMetadataKeyAccountKind { get { if (_iTunesMetadataKeyAccountKind == null) { _iTunesMetadataKeyAccountKind = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAccountKind"); } return _iTunesMetadataKeyAccountKind; } } [Field("AVMetadataiTunesMetadataKeyAppleID", "AVFoundation")] public static NSString iTunesMetadataKeyAppleID { get { if (_iTunesMetadataKeyAppleID == null) { _iTunesMetadataKeyAppleID = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAppleID"); } return _iTunesMetadataKeyAppleID; } } [Field("AVMetadataiTunesMetadataKeyArtistID", "AVFoundation")] public static NSString iTunesMetadataKeyArtistID { get { if (_iTunesMetadataKeyArtistID == null) { _iTunesMetadataKeyArtistID = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyArtistID"); } return _iTunesMetadataKeyArtistID; } } [Field("AVMetadataiTunesMetadataKeySongID", "AVFoundation")] public static NSString iTunesMetadataKeySongID { get { if (_iTunesMetadataKeySongID == null) { _iTunesMetadataKeySongID = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeySongID"); } return _iTunesMetadataKeySongID; } } [Field("AVMetadataiTunesMetadataKeyDiscCompilation", "AVFoundation")] public static NSString iTunesMetadataKeyDiscCompilation { get { if (_iTunesMetadataKeyDiscCompilation == null) { _iTunesMetadataKeyDiscCompilation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyDiscCompilation"); } return _iTunesMetadataKeyDiscCompilation; } } [Field("AVMetadataiTunesMetadataKeyDiscNumber", "AVFoundation")] public static NSString iTunesMetadataKeyDiscNumber { get { if (_iTunesMetadataKeyDiscNumber == null) { _iTunesMetadataKeyDiscNumber = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyDiscNumber"); } return _iTunesMetadataKeyDiscNumber; } } [Field("AVMetadataiTunesMetadataKeyGenreID", "AVFoundation")] public static NSString iTunesMetadataKeyGenreID { get { if (_iTunesMetadataKeyGenreID == null) { _iTunesMetadataKeyGenreID = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyGenreID"); } return _iTunesMetadataKeyGenreID; } } [Field("AVMetadataiTunesMetadataKeyGrouping", "AVFoundation")] public static NSString iTunesMetadataKeyGrouping { get { if (_iTunesMetadataKeyGrouping == null) { _iTunesMetadataKeyGrouping = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyGrouping"); } return _iTunesMetadataKeyGrouping; } } [Field("AVMetadataiTunesMetadataKeyPlaylistID", "AVFoundation")] public static NSString iTunesMetadataKeyPlaylistID { get { if (_iTunesMetadataKeyPlaylistID == null) { _iTunesMetadataKeyPlaylistID = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyPlaylistID"); } return _iTunesMetadataKeyPlaylistID; } } [Field("AVMetadataiTunesMetadataKeyContentRating", "AVFoundation")] public static NSString iTunesMetadataKeyContentRating { get { if (_iTunesMetadataKeyContentRating == null) { _iTunesMetadataKeyContentRating = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyContentRating"); } return _iTunesMetadataKeyContentRating; } } [Field("AVMetadataiTunesMetadataKeyBeatsPerMin", "AVFoundation")] public static NSString iTunesMetadataKeyBeatsPerMin { get { if (_iTunesMetadataKeyBeatsPerMin == null) { _iTunesMetadataKeyBeatsPerMin = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyBeatsPerMin"); } return _iTunesMetadataKeyBeatsPerMin; } } [Field("AVMetadataiTunesMetadataKeyTrackNumber", "AVFoundation")] public static NSString iTunesMetadataKeyTrackNumber { get { if (_iTunesMetadataKeyTrackNumber == null) { _iTunesMetadataKeyTrackNumber = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyTrackNumber"); } return _iTunesMetadataKeyTrackNumber; } } [Field("AVMetadataiTunesMetadataKeyArtDirector", "AVFoundation")] public static NSString iTunesMetadataKeyArtDirector { get { if (_iTunesMetadataKeyArtDirector == null) { _iTunesMetadataKeyArtDirector = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyArtDirector"); } return _iTunesMetadataKeyArtDirector; } } [Field("AVMetadataiTunesMetadataKeyArranger", "AVFoundation")] public static NSString iTunesMetadataKeyArranger { get { if (_iTunesMetadataKeyArranger == null) { _iTunesMetadataKeyArranger = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyArranger"); } return _iTunesMetadataKeyArranger; } } [Field("AVMetadataiTunesMetadataKeyAuthor", "AVFoundation")] public static NSString iTunesMetadataKeyAuthor { get { if (_iTunesMetadataKeyAuthor == null) { _iTunesMetadataKeyAuthor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAuthor"); } return _iTunesMetadataKeyAuthor; } } [Field("AVMetadataiTunesMetadataKeyLyrics", "AVFoundation")] public static NSString iTunesMetadataKeyLyrics { get { if (_iTunesMetadataKeyLyrics == null) { _iTunesMetadataKeyLyrics = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyLyrics"); } return _iTunesMetadataKeyLyrics; } } [Field("AVMetadataiTunesMetadataKeyAcknowledgement", "AVFoundation")] public static NSString iTunesMetadataKeyAcknowledgement { get { if (_iTunesMetadataKeyAcknowledgement == null) { _iTunesMetadataKeyAcknowledgement = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyAcknowledgement"); } return _iTunesMetadataKeyAcknowledgement; } } [Field("AVMetadataiTunesMetadataKeyConductor", "AVFoundation")] public static NSString iTunesMetadataKeyConductor { get { if (_iTunesMetadataKeyConductor == null) { _iTunesMetadataKeyConductor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyConductor"); } return _iTunesMetadataKeyConductor; } } [Field("AVMetadataiTunesMetadataKeyDescription", "AVFoundation")] public static NSString iTunesMetadataKeyDescription { get { if (_iTunesMetadataKeyDescription == null) { _iTunesMetadataKeyDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyDescription"); } return _iTunesMetadataKeyDescription; } } [Field("AVMetadataiTunesMetadataKeyDirector", "AVFoundation")] public static NSString iTunesMetadataKeyDirector { get { if (_iTunesMetadataKeyDirector == null) { _iTunesMetadataKeyDirector = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyDirector"); } return _iTunesMetadataKeyDirector; } } [Field("AVMetadataiTunesMetadataKeyEQ", "AVFoundation")] public static NSString iTunesMetadataKeyEQ { get { if (_iTunesMetadataKeyEQ == null) { _iTunesMetadataKeyEQ = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyEQ"); } return _iTunesMetadataKeyEQ; } } [Field("AVMetadataiTunesMetadataKeyLinerNotes", "AVFoundation")] public static NSString iTunesMetadataKeyLinerNotes { get { if (_iTunesMetadataKeyLinerNotes == null) { _iTunesMetadataKeyLinerNotes = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyLinerNotes"); } return _iTunesMetadataKeyLinerNotes; } } [Field("AVMetadataiTunesMetadataKeyRecordCompany", "AVFoundation")] public static NSString iTunesMetadataKeyRecordCompany { get { if (_iTunesMetadataKeyRecordCompany == null) { _iTunesMetadataKeyRecordCompany = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyRecordCompany"); } return _iTunesMetadataKeyRecordCompany; } } [Field("AVMetadataiTunesMetadataKeyOriginalArtist", "AVFoundation")] public static NSString iTunesMetadataKeyOriginalArtist { get { if (_iTunesMetadataKeyOriginalArtist == null) { _iTunesMetadataKeyOriginalArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyOriginalArtist"); } return _iTunesMetadataKeyOriginalArtist; } } [Field("AVMetadataiTunesMetadataKeyPhonogramRights", "AVFoundation")] public static NSString iTunesMetadataKeyPhonogramRights { get { if (_iTunesMetadataKeyPhonogramRights == null) { _iTunesMetadataKeyPhonogramRights = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyPhonogramRights"); } return _iTunesMetadataKeyPhonogramRights; } } [Field("AVMetadataiTunesMetadataKeyProducer", "AVFoundation")] public static NSString iTunesMetadataKeyProducer { get { if (_iTunesMetadataKeyProducer == null) { _iTunesMetadataKeyProducer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyProducer"); } return _iTunesMetadataKeyProducer; } } [Field("AVMetadataiTunesMetadataKeyPerformer", "AVFoundation")] public static NSString iTunesMetadataKeyPerformer { get { if (_iTunesMetadataKeyPerformer == null) { _iTunesMetadataKeyPerformer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyPerformer"); } return _iTunesMetadataKeyPerformer; } } [Field("AVMetadataiTunesMetadataKeyPublisher", "AVFoundation")] public static NSString iTunesMetadataKeyPublisher { get { if (_iTunesMetadataKeyPublisher == null) { _iTunesMetadataKeyPublisher = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyPublisher"); } return _iTunesMetadataKeyPublisher; } } [Field("AVMetadataiTunesMetadataKeySoundEngineer", "AVFoundation")] public static NSString iTunesMetadataKeySoundEngineer { get { if (_iTunesMetadataKeySoundEngineer == null) { _iTunesMetadataKeySoundEngineer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeySoundEngineer"); } return _iTunesMetadataKeySoundEngineer; } } [Field("AVMetadataiTunesMetadataKeySoloist", "AVFoundation")] public static NSString iTunesMetadataKeySoloist { get { if (_iTunesMetadataKeySoloist == null) { _iTunesMetadataKeySoloist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeySoloist"); } return _iTunesMetadataKeySoloist; } } [Field("AVMetadataiTunesMetadataKeyCredits", "AVFoundation")] public static NSString iTunesMetadataKeyCredits { get { if (_iTunesMetadataKeyCredits == null) { _iTunesMetadataKeyCredits = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyCredits"); } return _iTunesMetadataKeyCredits; } } [Field("AVMetadataiTunesMetadataKeyThanks", "AVFoundation")] public static NSString iTunesMetadataKeyThanks { get { if (_iTunesMetadataKeyThanks == null) { _iTunesMetadataKeyThanks = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyThanks"); } return _iTunesMetadataKeyThanks; } } [Field("AVMetadataiTunesMetadataKeyOnlineExtras", "AVFoundation")] public static NSString iTunesMetadataKeyOnlineExtras { get { if (_iTunesMetadataKeyOnlineExtras == null) { _iTunesMetadataKeyOnlineExtras = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyOnlineExtras"); } return _iTunesMetadataKeyOnlineExtras; } } [Field("AVMetadataiTunesMetadataKeyExecProducer", "AVFoundation")] public static NSString iTunesMetadataKeyExecProducer { get { if (_iTunesMetadataKeyExecProducer == null) { _iTunesMetadataKeyExecProducer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataiTunesMetadataKeyExecProducer"); } return _iTunesMetadataKeyExecProducer; } } [Field("AVMetadataFormatID3Metadata", "AVFoundation")] public static NSString FormatID3Metadata { get { if (_FormatID3Metadata == null) { _FormatID3Metadata = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataFormatID3Metadata"); } return _FormatID3Metadata; } } [Field("AVMetadataKeySpaceID3", "AVFoundation")] public static NSString KeySpaceID3 { get { if (_KeySpaceID3 == null) { _KeySpaceID3 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataKeySpaceID3"); } return _KeySpaceID3; } } [Field("AVMetadataID3MetadataKeyAudioEncryption", "AVFoundation")] public static NSString ID3MetadataKeyAudioEncryption { get { if (_ID3MetadataKeyAudioEncryption == null) { _ID3MetadataKeyAudioEncryption = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyAudioEncryption"); } return _ID3MetadataKeyAudioEncryption; } } [Field("AVMetadataID3MetadataKeyAttachedPicture", "AVFoundation")] public static NSString ID3MetadataKeyAttachedPicture { get { if (_ID3MetadataKeyAttachedPicture == null) { _ID3MetadataKeyAttachedPicture = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyAttachedPicture"); } return _ID3MetadataKeyAttachedPicture; } } [Field("AVMetadataID3MetadataKeyAudioSeekPointIndex", "AVFoundation")] public static NSString ID3MetadataKeyAudioSeekPointIndex { get { if (_ID3MetadataKeyAudioSeekPointIndex == null) { _ID3MetadataKeyAudioSeekPointIndex = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyAudioSeekPointIndex"); } return _ID3MetadataKeyAudioSeekPointIndex; } } [Field("AVMetadataID3MetadataKeyComments", "AVFoundation")] public static NSString ID3MetadataKeyComments { get { if (_ID3MetadataKeyComments == null) { _ID3MetadataKeyComments = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyComments"); } return _ID3MetadataKeyComments; } } [Field("AVMetadataID3MetadataKeyCommerical", "AVFoundation")] public static NSString ID3MetadataKeyCommerical { get { if (_ID3MetadataKeyCommerical == null) { _ID3MetadataKeyCommerical = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyCommerical"); } return _ID3MetadataKeyCommerical; } } [Field("AVMetadataID3MetadataKeyEncryption", "AVFoundation")] public static NSString ID3MetadataKeyEncryption { get { if (_ID3MetadataKeyEncryption == null) { _ID3MetadataKeyEncryption = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEncryption"); } return _ID3MetadataKeyEncryption; } } [Field("AVMetadataID3MetadataKeyEqualization", "AVFoundation")] public static NSString ID3MetadataKeyEqualization { get { if (_ID3MetadataKeyEqualization == null) { _ID3MetadataKeyEqualization = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEqualization"); } return _ID3MetadataKeyEqualization; } } [Field("AVMetadataID3MetadataKeyEqualization2", "AVFoundation")] public static NSString ID3MetadataKeyEqualization2 { get { if (_ID3MetadataKeyEqualization2 == null) { _ID3MetadataKeyEqualization2 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEqualization2"); } return _ID3MetadataKeyEqualization2; } } [Field("AVMetadataID3MetadataKeyEventTimingCodes", "AVFoundation")] public static NSString ID3MetadataKeyEventTimingCodes { get { if (_ID3MetadataKeyEventTimingCodes == null) { _ID3MetadataKeyEventTimingCodes = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEventTimingCodes"); } return _ID3MetadataKeyEventTimingCodes; } } [Field("AVMetadataID3MetadataKeyGeneralEncapsulatedObject", "AVFoundation")] public static NSString ID3MetadataKeyGeneralEncapsulatedObject { get { if (_ID3MetadataKeyGeneralEncapsulatedObject == null) { _ID3MetadataKeyGeneralEncapsulatedObject = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyGeneralEncapsulatedObject"); } return _ID3MetadataKeyGeneralEncapsulatedObject; } } [Field("AVMetadataID3MetadataKeyGroupIdentifier", "AVFoundation")] public static NSString ID3MetadataKeyGroupIdentifier { get { if (_ID3MetadataKeyGroupIdentifier == null) { _ID3MetadataKeyGroupIdentifier = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyGroupIdentifier"); } return _ID3MetadataKeyGroupIdentifier; } } [Field("AVMetadataID3MetadataKeyInvolvedPeopleList_v23", "AVFoundation")] public static NSString ID3MetadataKeyInvolvedPeopleList { get { if (_ID3MetadataKeyInvolvedPeopleList == null) { _ID3MetadataKeyInvolvedPeopleList = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyInvolvedPeopleList_v23"); } return _ID3MetadataKeyInvolvedPeopleList; } } [Field("AVMetadataID3MetadataKeyLink", "AVFoundation")] public static NSString ID3MetadataKeyLink { get { if (_ID3MetadataKeyLink == null) { _ID3MetadataKeyLink = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyLink"); } return _ID3MetadataKeyLink; } } [Field("AVMetadataID3MetadataKeyMusicCDIdentifier", "AVFoundation")] public static NSString ID3MetadataKeyMusicCDIdentifier { get { if (_ID3MetadataKeyMusicCDIdentifier == null) { _ID3MetadataKeyMusicCDIdentifier = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyMusicCDIdentifier"); } return _ID3MetadataKeyMusicCDIdentifier; } } [Field("AVMetadataID3MetadataKeyMPEGLocationLookupTable", "AVFoundation")] public static NSString ID3MetadataKeyMPEGLocationLookupTable { get { if (_ID3MetadataKeyMPEGLocationLookupTable == null) { _ID3MetadataKeyMPEGLocationLookupTable = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyMPEGLocationLookupTable"); } return _ID3MetadataKeyMPEGLocationLookupTable; } } [Field("AVMetadataID3MetadataKeyOwnership", "AVFoundation")] public static NSString ID3MetadataKeyOwnership { get { if (_ID3MetadataKeyOwnership == null) { _ID3MetadataKeyOwnership = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOwnership"); } return _ID3MetadataKeyOwnership; } } [Field("AVMetadataID3MetadataKeyPrivate", "AVFoundation")] public static NSString ID3MetadataKeyPrivate { get { if (_ID3MetadataKeyPrivate == null) { _ID3MetadataKeyPrivate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPrivate"); } return _ID3MetadataKeyPrivate; } } [Field("AVMetadataID3MetadataKeyPlayCounter", "AVFoundation")] public static NSString ID3MetadataKeyPlayCounter { get { if (_ID3MetadataKeyPlayCounter == null) { _ID3MetadataKeyPlayCounter = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPlayCounter"); } return _ID3MetadataKeyPlayCounter; } } [Field("AVMetadataID3MetadataKeyPopularimeter", "AVFoundation")] public static NSString ID3MetadataKeyPopularimeter { get { if (_ID3MetadataKeyPopularimeter == null) { _ID3MetadataKeyPopularimeter = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPopularimeter"); } return _ID3MetadataKeyPopularimeter; } } [Field("AVMetadataID3MetadataKeyPositionSynchronization", "AVFoundation")] public static NSString ID3MetadataKeyPositionSynchronization { get { if (_ID3MetadataKeyPositionSynchronization == null) { _ID3MetadataKeyPositionSynchronization = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPositionSynchronization"); } return _ID3MetadataKeyPositionSynchronization; } } [Field("AVMetadataID3MetadataKeyRecommendedBufferSize", "AVFoundation")] public static NSString ID3MetadataKeyRecommendedBufferSize { get { if (_ID3MetadataKeyRecommendedBufferSize == null) { _ID3MetadataKeyRecommendedBufferSize = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyRecommendedBufferSize"); } return _ID3MetadataKeyRecommendedBufferSize; } } [Field("AVMetadataID3MetadataKeyRelativeVolumeAdjustment", "AVFoundation")] public static NSString ID3MetadataKeyRelativeVolumeAdjustment { get { if (_ID3MetadataKeyRelativeVolumeAdjustment == null) { _ID3MetadataKeyRelativeVolumeAdjustment = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyRelativeVolumeAdjustment"); } return _ID3MetadataKeyRelativeVolumeAdjustment; } } [Field("AVMetadataID3MetadataKeyRelativeVolumeAdjustment2", "AVFoundation")] public static NSString ID3MetadataKeyRelativeVolumeAdjustment2 { get { if (_ID3MetadataKeyRelativeVolumeAdjustment2 == null) { _ID3MetadataKeyRelativeVolumeAdjustment2 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyRelativeVolumeAdjustment2"); } return _ID3MetadataKeyRelativeVolumeAdjustment2; } } [Field("AVMetadataID3MetadataKeyReverb", "AVFoundation")] public static NSString ID3MetadataKeyReverb { get { if (_ID3MetadataKeyReverb == null) { _ID3MetadataKeyReverb = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyReverb"); } return _ID3MetadataKeyReverb; } } [Field("AVMetadataID3MetadataKeySeek", "AVFoundation")] public static NSString ID3MetadataKeySeek { get { if (_ID3MetadataKeySeek == null) { _ID3MetadataKeySeek = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySeek"); } return _ID3MetadataKeySeek; } } [Field("AVMetadataID3MetadataKeySignature", "AVFoundation")] public static NSString ID3MetadataKeySignature { get { if (_ID3MetadataKeySignature == null) { _ID3MetadataKeySignature = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySignature"); } return _ID3MetadataKeySignature; } } [Field("AVMetadataID3MetadataKeySynchronizedLyric", "AVFoundation")] public static NSString ID3MetadataKeySynchronizedLyric { get { if (_ID3MetadataKeySynchronizedLyric == null) { _ID3MetadataKeySynchronizedLyric = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySynchronizedLyric"); } return _ID3MetadataKeySynchronizedLyric; } } [Field("AVMetadataID3MetadataKeySynchronizedTempoCodes", "AVFoundation")] public static NSString ID3MetadataKeySynchronizedTempoCodes { get { if (_ID3MetadataKeySynchronizedTempoCodes == null) { _ID3MetadataKeySynchronizedTempoCodes = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySynchronizedTempoCodes"); } return _ID3MetadataKeySynchronizedTempoCodes; } } [Field("AVMetadataID3MetadataKeyAlbumTitle", "AVFoundation")] public static NSString ID3MetadataKeyAlbumTitle { get { if (_ID3MetadataKeyAlbumTitle == null) { _ID3MetadataKeyAlbumTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyAlbumTitle"); } return _ID3MetadataKeyAlbumTitle; } } [Field("AVMetadataID3MetadataKeyBeatsPerMinute", "AVFoundation")] public static NSString ID3MetadataKeyBeatsPerMinute { get { if (_ID3MetadataKeyBeatsPerMinute == null) { _ID3MetadataKeyBeatsPerMinute = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyBeatsPerMinute"); } return _ID3MetadataKeyBeatsPerMinute; } } [Field("AVMetadataID3MetadataKeyComposer", "AVFoundation")] public static NSString ID3MetadataKeyComposer { get { if (_ID3MetadataKeyComposer == null) { _ID3MetadataKeyComposer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyComposer"); } return _ID3MetadataKeyComposer; } } [Field("AVMetadataID3MetadataKeyContentType", "AVFoundation")] public static NSString ID3MetadataKeyContentType { get { if (_ID3MetadataKeyContentType == null) { _ID3MetadataKeyContentType = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyContentType"); } return _ID3MetadataKeyContentType; } } [Field("AVMetadataID3MetadataKeyCopyright", "AVFoundation")] public static NSString ID3MetadataKeyCopyright { get { if (_ID3MetadataKeyCopyright == null) { _ID3MetadataKeyCopyright = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyCopyright"); } return _ID3MetadataKeyCopyright; } } [Field("AVMetadataID3MetadataKeyDate", "AVFoundation")] public static NSString ID3MetadataKeyDate { get { if (_ID3MetadataKeyDate == null) { _ID3MetadataKeyDate = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyDate"); } return _ID3MetadataKeyDate; } } [Field("AVMetadataID3MetadataKeyEncodingTime", "AVFoundation")] public static NSString ID3MetadataKeyEncodingTime { get { if (_ID3MetadataKeyEncodingTime == null) { _ID3MetadataKeyEncodingTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEncodingTime"); } return _ID3MetadataKeyEncodingTime; } } [Field("AVMetadataID3MetadataKeyPlaylistDelay", "AVFoundation")] public static NSString ID3MetadataKeyPlaylistDelay { get { if (_ID3MetadataKeyPlaylistDelay == null) { _ID3MetadataKeyPlaylistDelay = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPlaylistDelay"); } return _ID3MetadataKeyPlaylistDelay; } } [Field("AVMetadataID3MetadataKeyOriginalReleaseTime", "AVFoundation")] public static NSString ID3MetadataKeyOriginalReleaseTime { get { if (_ID3MetadataKeyOriginalReleaseTime == null) { _ID3MetadataKeyOriginalReleaseTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalReleaseTime"); } return _ID3MetadataKeyOriginalReleaseTime; } } [Field("AVMetadataID3MetadataKeyRecordingTime", "AVFoundation")] public static NSString ID3MetadataKeyRecordingTime { get { if (_ID3MetadataKeyRecordingTime == null) { _ID3MetadataKeyRecordingTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyRecordingTime"); } return _ID3MetadataKeyRecordingTime; } } [Field("AVMetadataID3MetadataKeyReleaseTime", "AVFoundation")] public static NSString ID3MetadataKeyReleaseTime { get { if (_ID3MetadataKeyReleaseTime == null) { _ID3MetadataKeyReleaseTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyReleaseTime"); } return _ID3MetadataKeyReleaseTime; } } [Field("AVMetadataID3MetadataKeyTaggingTime", "AVFoundation")] public static NSString ID3MetadataKeyTaggingTime { get { if (_ID3MetadataKeyTaggingTime == null) { _ID3MetadataKeyTaggingTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTaggingTime"); } return _ID3MetadataKeyTaggingTime; } } [Field("AVMetadataID3MetadataKeyEncodedBy", "AVFoundation")] public static NSString ID3MetadataKeyEncodedBy { get { if (_ID3MetadataKeyEncodedBy == null) { _ID3MetadataKeyEncodedBy = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEncodedBy"); } return _ID3MetadataKeyEncodedBy; } } [Field("AVMetadataID3MetadataKeyLyricist", "AVFoundation")] public static NSString ID3MetadataKeyLyricist { get { if (_ID3MetadataKeyLyricist == null) { _ID3MetadataKeyLyricist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyLyricist"); } return _ID3MetadataKeyLyricist; } } [Field("AVMetadataID3MetadataKeyFileType", "AVFoundation")] public static NSString ID3MetadataKeyFileType { get { if (_ID3MetadataKeyFileType == null) { _ID3MetadataKeyFileType = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyFileType"); } return _ID3MetadataKeyFileType; } } [Field("AVMetadataID3MetadataKeyTime", "AVFoundation")] public static NSString ID3MetadataKeyTime { get { if (_ID3MetadataKeyTime == null) { _ID3MetadataKeyTime = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTime"); } return _ID3MetadataKeyTime; } } [Field("AVMetadataID3MetadataKeyContentGroupDescription", "AVFoundation")] public static NSString ID3MetadataKeyContentGroupDescription { get { if (_ID3MetadataKeyContentGroupDescription == null) { _ID3MetadataKeyContentGroupDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyContentGroupDescription"); } return _ID3MetadataKeyContentGroupDescription; } } [Field("AVMetadataID3MetadataKeyTitleDescription", "AVFoundation")] public static NSString ID3MetadataKeyTitleDescription { get { if (_ID3MetadataKeyTitleDescription == null) { _ID3MetadataKeyTitleDescription = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTitleDescription"); } return _ID3MetadataKeyTitleDescription; } } [Field("AVMetadataID3MetadataKeySubTitle", "AVFoundation")] public static NSString ID3MetadataKeySubTitle { get { if (_ID3MetadataKeySubTitle == null) { _ID3MetadataKeySubTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySubTitle"); } return _ID3MetadataKeySubTitle; } } [Field("AVMetadataID3MetadataKeyInitialKey", "AVFoundation")] public static NSString ID3MetadataKeyInitialKey { get { if (_ID3MetadataKeyInitialKey == null) { _ID3MetadataKeyInitialKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyInitialKey"); } return _ID3MetadataKeyInitialKey; } } [Field("AVMetadataID3MetadataKeyLanguage", "AVFoundation")] public static NSString ID3MetadataKeyLanguage { get { if (_ID3MetadataKeyLanguage == null) { _ID3MetadataKeyLanguage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyLanguage"); } return _ID3MetadataKeyLanguage; } } [Field("AVMetadataID3MetadataKeyLength", "AVFoundation")] public static NSString ID3MetadataKeyLength { get { if (_ID3MetadataKeyLength == null) { _ID3MetadataKeyLength = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyLength"); } return _ID3MetadataKeyLength; } } [Field("AVMetadataID3MetadataKeyMusicianCreditsList", "AVFoundation")] public static NSString ID3MetadataKeyMusicianCreditsList { get { if (_ID3MetadataKeyMusicianCreditsList == null) { _ID3MetadataKeyMusicianCreditsList = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyMusicianCreditsList"); } return _ID3MetadataKeyMusicianCreditsList; } } [Field("AVMetadataID3MetadataKeyMediaType", "AVFoundation")] public static NSString ID3MetadataKeyMediaType { get { if (_ID3MetadataKeyMediaType == null) { _ID3MetadataKeyMediaType = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyMediaType"); } return _ID3MetadataKeyMediaType; } } [Field("AVMetadataID3MetadataKeyMood", "AVFoundation")] public static NSString ID3MetadataKeyMood { get { if (_ID3MetadataKeyMood == null) { _ID3MetadataKeyMood = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyMood"); } return _ID3MetadataKeyMood; } } [Field("AVMetadataID3MetadataKeyOriginalAlbumTitle", "AVFoundation")] public static NSString ID3MetadataKeyOriginalAlbumTitle { get { if (_ID3MetadataKeyOriginalAlbumTitle == null) { _ID3MetadataKeyOriginalAlbumTitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalAlbumTitle"); } return _ID3MetadataKeyOriginalAlbumTitle; } } [Field("AVMetadataID3MetadataKeyOriginalFilename", "AVFoundation")] public static NSString ID3MetadataKeyOriginalFilename { get { if (_ID3MetadataKeyOriginalFilename == null) { _ID3MetadataKeyOriginalFilename = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalFilename"); } return _ID3MetadataKeyOriginalFilename; } } [Field("AVMetadataID3MetadataKeyOriginalLyricist", "AVFoundation")] public static NSString ID3MetadataKeyOriginalLyricist { get { if (_ID3MetadataKeyOriginalLyricist == null) { _ID3MetadataKeyOriginalLyricist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalLyricist"); } return _ID3MetadataKeyOriginalLyricist; } } [Field("AVMetadataID3MetadataKeyOriginalArtist", "AVFoundation")] public static NSString ID3MetadataKeyOriginalArtist { get { if (_ID3MetadataKeyOriginalArtist == null) { _ID3MetadataKeyOriginalArtist = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalArtist"); } return _ID3MetadataKeyOriginalArtist; } } [Field("AVMetadataID3MetadataKeyOriginalReleaseYear", "AVFoundation")] public static NSString ID3MetadataKeyOriginalReleaseYear { get { if (_ID3MetadataKeyOriginalReleaseYear == null) { _ID3MetadataKeyOriginalReleaseYear = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOriginalReleaseYear"); } return _ID3MetadataKeyOriginalReleaseYear; } } [Field("AVMetadataID3MetadataKeyFileOwner", "AVFoundation")] public static NSString ID3MetadataKeyFileOwner { get { if (_ID3MetadataKeyFileOwner == null) { _ID3MetadataKeyFileOwner = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyFileOwner"); } return _ID3MetadataKeyFileOwner; } } [Field("AVMetadataID3MetadataKeyLeadPerformer", "AVFoundation")] public static NSString ID3MetadataKeyLeadPerformer { get { if (_ID3MetadataKeyLeadPerformer == null) { _ID3MetadataKeyLeadPerformer = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyLeadPerformer"); } return _ID3MetadataKeyLeadPerformer; } } [Field("AVMetadataID3MetadataKeyBand", "AVFoundation")] public static NSString ID3MetadataKeyBand { get { if (_ID3MetadataKeyBand == null) { _ID3MetadataKeyBand = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyBand"); } return _ID3MetadataKeyBand; } } [Field("AVMetadataID3MetadataKeyConductor", "AVFoundation")] public static NSString ID3MetadataKeyConductor { get { if (_ID3MetadataKeyConductor == null) { _ID3MetadataKeyConductor = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyConductor"); } return _ID3MetadataKeyConductor; } } [Field("AVMetadataID3MetadataKeyModifiedBy", "AVFoundation")] public static NSString ID3MetadataKeyModifiedBy { get { if (_ID3MetadataKeyModifiedBy == null) { _ID3MetadataKeyModifiedBy = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyModifiedBy"); } return _ID3MetadataKeyModifiedBy; } } [Field("AVMetadataID3MetadataKeyPartOfASet", "AVFoundation")] public static NSString ID3MetadataKeyPartOfASet { get { if (_ID3MetadataKeyPartOfASet == null) { _ID3MetadataKeyPartOfASet = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPartOfASet"); } return _ID3MetadataKeyPartOfASet; } } [Field("AVMetadataID3MetadataKeyProducedNotice", "AVFoundation")] public static NSString ID3MetadataKeyProducedNotice { get { if (_ID3MetadataKeyProducedNotice == null) { _ID3MetadataKeyProducedNotice = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyProducedNotice"); } return _ID3MetadataKeyProducedNotice; } } [Field("AVMetadataID3MetadataKeyPublisher", "AVFoundation")] public static NSString ID3MetadataKeyPublisher { get { if (_ID3MetadataKeyPublisher == null) { _ID3MetadataKeyPublisher = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPublisher"); } return _ID3MetadataKeyPublisher; } } [Field("AVMetadataID3MetadataKeyTrackNumber", "AVFoundation")] public static NSString ID3MetadataKeyTrackNumber { get { if (_ID3MetadataKeyTrackNumber == null) { _ID3MetadataKeyTrackNumber = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTrackNumber"); } return _ID3MetadataKeyTrackNumber; } } [Field("AVMetadataID3MetadataKeyRecordingDates", "AVFoundation")] public static NSString ID3MetadataKeyRecordingDates { get { if (_ID3MetadataKeyRecordingDates == null) { _ID3MetadataKeyRecordingDates = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyRecordingDates"); } return _ID3MetadataKeyRecordingDates; } } [Field("AVMetadataID3MetadataKeyInternetRadioStationName", "AVFoundation")] public static NSString ID3MetadataKeyInternetRadioStationName { get { if (_ID3MetadataKeyInternetRadioStationName == null) { _ID3MetadataKeyInternetRadioStationName = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyInternetRadioStationName"); } return _ID3MetadataKeyInternetRadioStationName; } } [Field("AVMetadataID3MetadataKeyInternetRadioStationOwner", "AVFoundation")] public static NSString ID3MetadataKeyInternetRadioStationOwner { get { if (_ID3MetadataKeyInternetRadioStationOwner == null) { _ID3MetadataKeyInternetRadioStationOwner = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyInternetRadioStationOwner"); } return _ID3MetadataKeyInternetRadioStationOwner; } } [Field("AVMetadataID3MetadataKeySize", "AVFoundation")] public static NSString ID3MetadataKeySize { get { if (_ID3MetadataKeySize == null) { _ID3MetadataKeySize = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySize"); } return _ID3MetadataKeySize; } } [Field("AVMetadataID3MetadataKeyAlbumSortOrder", "AVFoundation")] public static NSString ID3MetadataKeyAlbumSortOrder { get { if (_ID3MetadataKeyAlbumSortOrder == null) { _ID3MetadataKeyAlbumSortOrder = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyAlbumSortOrder"); } return _ID3MetadataKeyAlbumSortOrder; } } [Field("AVMetadataID3MetadataKeyPerformerSortOrder", "AVFoundation")] public static NSString ID3MetadataKeyPerformerSortOrder { get { if (_ID3MetadataKeyPerformerSortOrder == null) { _ID3MetadataKeyPerformerSortOrder = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPerformerSortOrder"); } return _ID3MetadataKeyPerformerSortOrder; } } [Field("AVMetadataID3MetadataKeyTitleSortOrder", "AVFoundation")] public static NSString ID3MetadataKeyTitleSortOrder { get { if (_ID3MetadataKeyTitleSortOrder == null) { _ID3MetadataKeyTitleSortOrder = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTitleSortOrder"); } return _ID3MetadataKeyTitleSortOrder; } } [Field("AVMetadataID3MetadataKeyInternationalStandardRecordingCode", "AVFoundation")] public static NSString ID3MetadataKeyInternationalStandardRecordingCode { get { if (_ID3MetadataKeyInternationalStandardRecordingCode == null) { _ID3MetadataKeyInternationalStandardRecordingCode = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyInternationalStandardRecordingCode"); } return _ID3MetadataKeyInternationalStandardRecordingCode; } } [Field("AVMetadataID3MetadataKeyEncodedWith", "AVFoundation")] public static NSString ID3MetadataKeyEncodedWith { get { if (_ID3MetadataKeyEncodedWith == null) { _ID3MetadataKeyEncodedWith = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyEncodedWith"); } return _ID3MetadataKeyEncodedWith; } } [Field("AVMetadataID3MetadataKeySetSubtitle", "AVFoundation")] public static NSString ID3MetadataKeySetSubtitle { get { if (_ID3MetadataKeySetSubtitle == null) { _ID3MetadataKeySetSubtitle = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeySetSubtitle"); } return _ID3MetadataKeySetSubtitle; } } [Field("AVMetadataID3MetadataKeyYear", "AVFoundation")] public static NSString ID3MetadataKeyYear { get { if (_ID3MetadataKeyYear == null) { _ID3MetadataKeyYear = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyYear"); } return _ID3MetadataKeyYear; } } [Field("AVMetadataID3MetadataKeyUserText", "AVFoundation")] public static NSString ID3MetadataKeyUserText { get { if (_ID3MetadataKeyUserText == null) { _ID3MetadataKeyUserText = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyUserText"); } return _ID3MetadataKeyUserText; } } [Field("AVMetadataID3MetadataKeyUniqueFileIdentifier", "AVFoundation")] public static NSString ID3MetadataKeyUniqueFileIdentifier { get { if (_ID3MetadataKeyUniqueFileIdentifier == null) { _ID3MetadataKeyUniqueFileIdentifier = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyUniqueFileIdentifier"); } return _ID3MetadataKeyUniqueFileIdentifier; } } [Field("AVMetadataID3MetadataKeyTermsOfUse", "AVFoundation")] public static NSString ID3MetadataKeyTermsOfUse { get { if (_ID3MetadataKeyTermsOfUse == null) { _ID3MetadataKeyTermsOfUse = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyTermsOfUse"); } return _ID3MetadataKeyTermsOfUse; } } [Field("AVMetadataID3MetadataKeyUnsynchronizedLyric", "AVFoundation")] public static NSString ID3MetadataKeyUnsynchronizedLyric { get { if (_ID3MetadataKeyUnsynchronizedLyric == null) { _ID3MetadataKeyUnsynchronizedLyric = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyUnsynchronizedLyric"); } return _ID3MetadataKeyUnsynchronizedLyric; } } [Field("AVMetadataID3MetadataKeyCommercialInformation", "AVFoundation")] public static NSString ID3MetadataKeyCommercialInformation { get { if (_ID3MetadataKeyCommercialInformation == null) { _ID3MetadataKeyCommercialInformation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyCommercialInformation"); } return _ID3MetadataKeyCommercialInformation; } } [Field("AVMetadataID3MetadataKeyCopyrightInformation", "AVFoundation")] public static NSString ID3MetadataKeyCopyrightInformation { get { if (_ID3MetadataKeyCopyrightInformation == null) { _ID3MetadataKeyCopyrightInformation = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyCopyrightInformation"); } return _ID3MetadataKeyCopyrightInformation; } } [Field("AVMetadataID3MetadataKeyOfficialAudioFileWebpage", "AVFoundation")] public static NSString ID3MetadataKeyOfficialAudioFileWebpage { get { if (_ID3MetadataKeyOfficialAudioFileWebpage == null) { _ID3MetadataKeyOfficialAudioFileWebpage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOfficialAudioFileWebpage"); } return _ID3MetadataKeyOfficialAudioFileWebpage; } } [Field("AVMetadataID3MetadataKeyOfficialArtistWebpage", "AVFoundation")] public static NSString ID3MetadataKeyOfficialArtistWebpage { get { if (_ID3MetadataKeyOfficialArtistWebpage == null) { _ID3MetadataKeyOfficialArtistWebpage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOfficialArtistWebpage"); } return _ID3MetadataKeyOfficialArtistWebpage; } } [Field("AVMetadataID3MetadataKeyOfficialAudioSourceWebpage", "AVFoundation")] public static NSString ID3MetadataKeyOfficialAudioSourceWebpage { get { if (_ID3MetadataKeyOfficialAudioSourceWebpage == null) { _ID3MetadataKeyOfficialAudioSourceWebpage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOfficialAudioSourceWebpage"); } return _ID3MetadataKeyOfficialAudioSourceWebpage; } } [Field("AVMetadataID3MetadataKeyOfficialInternetRadioStationHomepage", "AVFoundation")] public static NSString ID3MetadataKeyOfficialInternetRadioStationHomepage { get { if (_ID3MetadataKeyOfficialInternetRadioStationHomepage == null) { _ID3MetadataKeyOfficialInternetRadioStationHomepage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOfficialInternetRadioStationHomepage"); } return _ID3MetadataKeyOfficialInternetRadioStationHomepage; } } [Field("AVMetadataID3MetadataKeyPayment", "AVFoundation")] public static NSString ID3MetadataKeyPayment { get { if (_ID3MetadataKeyPayment == null) { _ID3MetadataKeyPayment = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyPayment"); } return _ID3MetadataKeyPayment; } } [Field("AVMetadataID3MetadataKeyOfficialPublisherWebpage", "AVFoundation")] public static NSString ID3MetadataKeyOfficialPublisherWebpage { get { if (_ID3MetadataKeyOfficialPublisherWebpage == null) { _ID3MetadataKeyOfficialPublisherWebpage = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyOfficialPublisherWebpage"); } return _ID3MetadataKeyOfficialPublisherWebpage; } } [Field("AVMetadataID3MetadataKeyUserURL", "AVFoundation")] public static NSString ID3MetadataKeyUserURL { get { if (_ID3MetadataKeyUserURL == null) { _ID3MetadataKeyUserURL = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVMetadataID3MetadataKeyUserURL"); } return _ID3MetadataKeyUserURL; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMetadataItem.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Threading.Tasks; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMetadataItem", true)] public class AVMetadataItem : NSObject { private static readonly IntPtr selCommonKeyHandle = Selector.GetHandle("commonKey"); private static readonly IntPtr selKeySpaceHandle = Selector.GetHandle("keySpace"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selTimeHandle = Selector.GetHandle("time"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selExtraAttributesHandle = Selector.GetHandle("extraAttributes"); private static readonly IntPtr selKeyHandle = Selector.GetHandle("key"); private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selNumberValueHandle = Selector.GetHandle("numberValue"); private static readonly IntPtr selDateValueHandle = Selector.GetHandle("dateValue"); private static readonly IntPtr selDataValueHandle = Selector.GetHandle("dataValue"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selMetadataItemsFromArrayWithLocale_Handle = Selector.GetHandle("metadataItemsFromArray:withLocale:"); private static readonly IntPtr selMetadataItemsFromArrayWithKeyKeySpace_Handle = Selector.GetHandle("metadataItemsFromArray:withKey:keySpace:"); private static readonly IntPtr selStatusOfValueForKeyError_Handle = Selector.GetHandle("statusOfValueForKey:error:"); private static readonly IntPtr selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle = Selector.GetHandle("loadValuesAsynchronouslyForKeys:completionHandler:"); private static readonly IntPtr selMetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages_Handle = Selector.GetHandle("metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMetadataItem"); private object __mt_Locale_var; private object __mt_Value_var; private object __mt_ExtraAttributes_var; private object __mt_Key_var; private object __mt_NumberValue_var; private object __mt_DateValue_var; private object __mt_DataValue_var; public override IntPtr ClassHandle => class_ptr; public virtual string CommonKey { [Export("commonKey", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCommonKeyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommonKeyHandle)); } } public virtual string KeySpace { [Export("keySpace", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeySpaceHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeySpaceHandle)); } } public virtual NSLocale Locale { [Export("locale", ArgumentSemantic.Copy)] get { return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } } public virtual CMTime Time { [Export("time")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeHandle); } return retval; } } public virtual NSObject Value { [Export("value", ArgumentSemantic.Copy)] get { return (NSObject)(__mt_Value_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)))); } } public virtual NSDictionary ExtraAttributes { [Export("extraAttributes", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_ExtraAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtraAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtraAttributesHandle))))); } } public virtual NSObject Key { [Export("key", ArgumentSemantic.Copy)] get { return (NSObject)(__mt_Key_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyHandle)))); } } public virtual string StringValue { [Export("stringValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } } public virtual NSNumber NumberValue { [Export("numberValue")] get { return (NSNumber)(__mt_NumberValue_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNumberValueHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNumberValueHandle))))); } } public virtual NSDate DateValue { [Export("dateValue")] get { return (NSDate)(__mt_DateValue_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateValueHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDateValueHandle))))); } } public virtual NSData DataValue { [Export("dataValue")] get { return (NSData)(__mt_DataValue_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataValueHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataValueHandle))))); } } [Since(4, 2)] public virtual CMTime Duration { [Export("duration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDurationHandle); } return retval; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMetadataItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMetadataItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMetadataItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMetadataItem(IntPtr handle) : base(handle) { } [Export("metadataItemsFromArray:withLocale:")] public static AVMetadataItem[] FilterWithLocale(AVMetadataItem[] arrayToFilter, NSLocale locale) { if (arrayToFilter == null) { throw new ArgumentNullException("arrayToFilter"); } if (locale == null) { throw new ArgumentNullException("locale"); } NSArray nSArray = NSArray.FromNSObjects(arrayToFilter); AVMetadataItem[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMetadataItemsFromArrayWithLocale_Handle, nSArray.Handle, locale.Handle)); nSArray.Dispose(); return result; } [Export("metadataItemsFromArray:withKey:keySpace:")] public static AVMetadataItem[] FilterWithKey(AVMetadataItem[] metadataItems, NSObject key, string keySpace) { if (metadataItems == null) { throw new ArgumentNullException("metadataItems"); } if (key == null) { throw new ArgumentNullException("key"); } if (keySpace == null) { throw new ArgumentNullException("keySpace"); } NSArray nSArray = NSArray.FromNSObjects(metadataItems); IntPtr arg = NSString.CreateNative(keySpace); AVMetadataItem[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selMetadataItemsFromArrayWithKeyKeySpace_Handle, nSArray.Handle, key.Handle, arg)); nSArray.Dispose(); NSString.ReleaseNative(arg); return result; } [Export("statusOfValueForKey:error:")] public virtual AVKeyValueStatus StatusOfValueForKeyerror(string key, out NSError error) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(key); AVKeyValueStatus result = (AVKeyValueStatus)((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStatusOfValueForKeyError_Handle, arg, intPtr) : Messaging.int_objc_msgSend_IntPtr_IntPtr(base.Handle, selStatusOfValueForKeyError_Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("loadValuesAsynchronouslyForKeys:completionHandler:")] public unsafe virtual void LoadValuesAsynchronously(string[] keys, NSAction handler) { if (keys == null) { throw new ArgumentNullException("keys"); } if (handler == null) { throw new ArgumentNullException("handler"); } NSArray nSArray = NSArray.FromStrings(keys); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, handler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selLoadValuesAsynchronouslyForKeysCompletionHandler_Handle, nSArray.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } public virtual Task LoadValuesTaskAsync(string[] keys) { TaskCompletionSource tcs = new TaskCompletionSource(); LoadValuesAsynchronously(keys, delegate { tcs.SetResult(result: true); }); return tcs.Task; } [Export("metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:")] public static AVMetadataItem[] FilterFromPreferredLanguages(AVMetadataItem[] metadataItems, string[] preferredLanguages) { if (metadataItems == null) { throw new ArgumentNullException("metadataItems"); } if (preferredLanguages == null) { throw new ArgumentNullException("preferredLanguages"); } NSArray nSArray = NSArray.FromNSObjects(metadataItems); NSArray nSArray2 = NSArray.FromStrings(preferredLanguages); AVMetadataItem[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages_Handle, nSArray.Handle, nSArray2.Handle)); nSArray.Dispose(); nSArray2.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locale_var = null; __mt_Value_var = null; __mt_ExtraAttributes_var = null; __mt_Key_var = null; __mt_NumberValue_var = null; __mt_DateValue_var = null; __mt_DataValue_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableAudioMix.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableAudioMix", true)] public class AVMutableAudioMix : AVAudioMix { private static readonly IntPtr selInputParametersHandle = Selector.GetHandle("inputParameters"); private static readonly IntPtr selSetInputParameters_Handle = Selector.GetHandle("setInputParameters:"); private static readonly IntPtr selAudioMixHandle = Selector.GetHandle("audioMix"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableAudioMix"); private object __mt_InputParameters_var; public override IntPtr ClassHandle => class_ptr; public new virtual AVAudioMixInputParameters[] InputParameters { [Export("inputParameters", ArgumentSemantic.Copy)] get { return (AVAudioMixInputParameters[])(__mt_InputParameters_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputParametersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputParametersHandle)))); } [Export("setInputParameters:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInputParameters_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInputParameters_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_InputParameters_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableAudioMix() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableAudioMix(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableAudioMix(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableAudioMix(IntPtr handle) : base(handle) { } [Export("audioMix")] public static AVMutableAudioMix Create() { return (AVMutableAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAudioMixHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InputParameters_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableAudioMixInputParameters.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableAudioMixInputParameters", true)] public class AVMutableAudioMixInputParameters : AVAudioMixInputParameters { private static readonly IntPtr selTrackIDHandle = Selector.GetHandle("trackID"); private static readonly IntPtr selSetTrackID_Handle = Selector.GetHandle("setTrackID:"); private static readonly IntPtr selAudioMixInputParametersWithTrack_Handle = Selector.GetHandle("audioMixInputParametersWithTrack:"); private static readonly IntPtr selAudioMixInputParametersHandle = Selector.GetHandle("audioMixInputParameters"); private static readonly IntPtr selSetVolumeRampFromStartVolumeToEndVolumeTimeRange_Handle = Selector.GetHandle("setVolumeRampFromStartVolume:toEndVolume:timeRange:"); private static readonly IntPtr selSetVolumeAtTime_Handle = Selector.GetHandle("setVolume:atTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableAudioMixInputParameters"); public override IntPtr ClassHandle => class_ptr; public new virtual int TrackID { [Export("trackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackIDHandle); } [Export("setTrackID:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTrackID_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTrackID_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableAudioMixInputParameters() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableAudioMixInputParameters(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableAudioMixInputParameters(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableAudioMixInputParameters(IntPtr handle) : base(handle) { } [Export("audioMixInputParametersWithTrack:")] public static AVMutableAudioMixInputParameters FromTrack(AVAssetTrack track) { if (track == null) { throw new ArgumentNullException("track"); } return (AVMutableAudioMixInputParameters)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAudioMixInputParametersWithTrack_Handle, track.Handle)); } [Export("audioMixInputParameters")] public static AVMutableAudioMixInputParameters Create() { return (AVMutableAudioMixInputParameters)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAudioMixInputParametersHandle)); } [Export("setVolumeRampFromStartVolume:toEndVolume:timeRange:")] public virtual void SetVolumeRamp(float startVolume, float endVolume, CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_float_float_CMTimeRange(base.Handle, selSetVolumeRampFromStartVolumeToEndVolumeTimeRange_Handle, startVolume, endVolume, timeRange); } else { Messaging.void_objc_msgSendSuper_float_float_CMTimeRange(base.SuperHandle, selSetVolumeRampFromStartVolumeToEndVolumeTimeRange_Handle, startVolume, endVolume, timeRange); } } [Export("setVolume:atTime:")] public virtual void SetVolume(float volume, CMTime atTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_float_CMTime(base.Handle, selSetVolumeAtTime_Handle, volume, atTime); } else { Messaging.void_objc_msgSendSuper_float_CMTime(base.SuperHandle, selSetVolumeAtTime_Handle, volume, atTime); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableComposition.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableComposition", true)] public class AVMutableComposition : AVComposition { private static readonly IntPtr selNaturalSizeHandle = Selector.GetHandle("naturalSize"); private static readonly IntPtr selSetNaturalSize_Handle = Selector.GetHandle("setNaturalSize:"); private static readonly IntPtr selCompositionHandle = Selector.GetHandle("composition"); private static readonly IntPtr selInsertTimeRangeOfAssetAtTimeError_Handle = Selector.GetHandle("insertTimeRange:ofAsset:atTime:error:"); private static readonly IntPtr selInsertEmptyTimeRange_Handle = Selector.GetHandle("insertEmptyTimeRange:"); private static readonly IntPtr selRemoveTimeRange_Handle = Selector.GetHandle("removeTimeRange:"); private static readonly IntPtr selScaleTimeRangeToDuration_Handle = Selector.GetHandle("scaleTimeRange:toDuration:"); private static readonly IntPtr selAddMutableTrackWithMediaTypePreferredTrackID_Handle = Selector.GetHandle("addMutableTrackWithMediaType:preferredTrackID:"); private static readonly IntPtr selRemoveTrack_Handle = Selector.GetHandle("removeTrack:"); private static readonly IntPtr selMutableTrackCompatibleWithTrack_Handle = Selector.GetHandle("mutableTrackCompatibleWithTrack:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableComposition"); public override IntPtr ClassHandle => class_ptr; [Obsolete("Deprecated in iOS 5.0 and OSX 10.8", false)] public override CGSize NaturalSize { [Export("naturalSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selNaturalSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selNaturalSizeHandle); } [Export("setNaturalSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetNaturalSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetNaturalSize_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableComposition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableComposition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableComposition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableComposition(IntPtr handle) : base(handle) { } [Export("composition")] public static AVMutableComposition Create() { return (AVMutableComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCompositionHandle)); } [Export("insertTimeRange:ofAsset:atTime:error:")] public virtual bool Insert(CMTimeRange insertTimeRange, AVAsset sourceAsset, CMTime atTime, out NSError error) { if (sourceAsset == null) { throw new ArgumentNullException("sourceAsset"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_CMTimeRange_IntPtr_CMTime_IntPtr(base.SuperHandle, selInsertTimeRangeOfAssetAtTimeError_Handle, insertTimeRange, sourceAsset.Handle, atTime, intPtr) : Messaging.bool_objc_msgSend_CMTimeRange_IntPtr_CMTime_IntPtr(base.Handle, selInsertTimeRangeOfAssetAtTimeError_Handle, insertTimeRange, sourceAsset.Handle, atTime, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("insertEmptyTimeRange:")] public virtual void InserEmptyTimeRange(CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selInsertEmptyTimeRange_Handle, timeRange); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selInsertEmptyTimeRange_Handle, timeRange); } } [Export("removeTimeRange:")] public virtual void RemoveTimeRange(CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selRemoveTimeRange_Handle, timeRange); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selRemoveTimeRange_Handle, timeRange); } } [Export("scaleTimeRange:toDuration:")] public virtual void ScaleTimeRange(CMTimeRange timeRange, CMTime duration) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange_CMTime(base.Handle, selScaleTimeRangeToDuration_Handle, timeRange, duration); } else { Messaging.void_objc_msgSendSuper_CMTimeRange_CMTime(base.SuperHandle, selScaleTimeRangeToDuration_Handle, timeRange, duration); } } [Export("addMutableTrackWithMediaType:preferredTrackID:")] public virtual AVMutableCompositionTrack AddMutableTrack(string mediaType, int preferredTrackId) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); AVMutableCompositionTrack result = ((!IsDirectBinding) ? ((AVMutableCompositionTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selAddMutableTrackWithMediaTypePreferredTrackID_Handle, arg, preferredTrackId))) : ((AVMutableCompositionTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_int(base.Handle, selAddMutableTrackWithMediaTypePreferredTrackID_Handle, arg, preferredTrackId)))); NSString.ReleaseNative(arg); return result; } [Export("removeTrack:")] public virtual void RemoveTrack(AVCompositionTrack track) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTrack_Handle, track.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTrack_Handle, track.Handle); } } [Export("mutableTrackCompatibleWithTrack:")] public virtual AVMutableCompositionTrack CreateMutableTrack(AVAssetTrack referenceTrack) { if (referenceTrack == null) { throw new ArgumentNullException("referenceTrack"); } if (IsDirectBinding) { return (AVMutableCompositionTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMutableTrackCompatibleWithTrack_Handle, referenceTrack.Handle)); } return (AVMutableCompositionTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMutableTrackCompatibleWithTrack_Handle, referenceTrack.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableCompositionTrack.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableCompositionTrack", true)] public class AVMutableCompositionTrack : AVCompositionTrack { private static readonly IntPtr selSegmentsHandle = Selector.GetHandle("segments"); private static readonly IntPtr selSetSegments_Handle = Selector.GetHandle("setSegments:"); private static readonly IntPtr selExtendedLanguageTagHandle = Selector.GetHandle("extendedLanguageTag"); private static readonly IntPtr selSetExtendedLanguageTag_Handle = Selector.GetHandle("setExtendedLanguageTag:"); private static readonly IntPtr selLanguageCodeHandle = Selector.GetHandle("languageCode"); private static readonly IntPtr selSetLanguageCode_Handle = Selector.GetHandle("setLanguageCode:"); private static readonly IntPtr selNaturalTimeScaleHandle = Selector.GetHandle("naturalTimeScale"); private static readonly IntPtr selSetNaturalTimeScale_Handle = Selector.GetHandle("setNaturalTimeScale:"); private static readonly IntPtr selPreferredTransformHandle = Selector.GetHandle("preferredTransform"); private static readonly IntPtr selSetPreferredTransform_Handle = Selector.GetHandle("setPreferredTransform:"); private static readonly IntPtr selPreferredVolumeHandle = Selector.GetHandle("preferredVolume"); private static readonly IntPtr selSetPreferredVolume_Handle = Selector.GetHandle("setPreferredVolume:"); private static readonly IntPtr selInsertTimeRangeOfTrackAtTimeError_Handle = Selector.GetHandle("insertTimeRange:ofTrack:atTime:error:"); private static readonly IntPtr selInsertEmptyTimeRange_Handle = Selector.GetHandle("insertEmptyTimeRange:"); private static readonly IntPtr selRemoveTimeRange_Handle = Selector.GetHandle("removeTimeRange:"); private static readonly IntPtr selScaleTimeRangeToDuration_Handle = Selector.GetHandle("scaleTimeRange:toDuration:"); private static readonly IntPtr selValidateTrackSegmentsError_Handle = Selector.GetHandle("validateTrackSegments:error:"); private static readonly IntPtr selInsertTimeRangesOfTracksAtTimeError_Handle = Selector.GetHandle("insertTimeRanges:ofTracks:atTime:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableCompositionTrack"); private object __mt_Segments_var; public override IntPtr ClassHandle => class_ptr; public new virtual AVCompositionTrackSegment[] Segments { [Export("segments", ArgumentSemantic.Copy)] get { return (AVCompositionTrackSegment[])(__mt_Segments_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSegmentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSegmentsHandle)))); } [Export("setSegments:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSegments_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSegments_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Segments_var = value; } } public new virtual string ExtendedLanguageTag { [Export("extendedLanguageTag")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExtendedLanguageTagHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtendedLanguageTagHandle)); } [Export("setExtendedLanguageTag:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetExtendedLanguageTag_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetExtendedLanguageTag_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual string LanguageCode { [Export("languageCode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLanguageCodeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLanguageCodeHandle)); } [Export("setLanguageCode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLanguageCode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLanguageCode_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual int NaturalTimeScale { [Export("naturalTimeScale")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNaturalTimeScaleHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNaturalTimeScaleHandle); } [Export("setNaturalTimeScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetNaturalTimeScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetNaturalTimeScale_Handle, value); } } } public new virtual CGAffineTransform PreferredTransform { [Export("preferredTransform")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selPreferredTransformHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selPreferredTransformHandle); } return retval; } [Export("setPreferredTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform(base.Handle, selSetPreferredTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform(base.SuperHandle, selSetPreferredTransform_Handle, value); } } } public new virtual float PreferredVolume { [Export("preferredVolume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPreferredVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPreferredVolumeHandle); } [Export("setPreferredVolume:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetPreferredVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetPreferredVolume_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableCompositionTrack(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableCompositionTrack(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableCompositionTrack(IntPtr handle) : base(handle) { } [Export("insertTimeRange:ofTrack:atTime:error:")] public virtual bool InsertTimeRange(CMTimeRange timeRange, AVAssetTrack ofTrack, CMTime atTime, out NSError error) { if (ofTrack == null) { throw new ArgumentNullException("ofTrack"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_CMTimeRange_IntPtr_CMTime_IntPtr(base.SuperHandle, selInsertTimeRangeOfTrackAtTimeError_Handle, timeRange, ofTrack.Handle, atTime, intPtr) : Messaging.bool_objc_msgSend_CMTimeRange_IntPtr_CMTime_IntPtr(base.Handle, selInsertTimeRangeOfTrackAtTimeError_Handle, timeRange, ofTrack.Handle, atTime, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("insertEmptyTimeRange:")] public virtual void InsertEmptyTimeRange(CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selInsertEmptyTimeRange_Handle, timeRange); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selInsertEmptyTimeRange_Handle, timeRange); } } [Export("removeTimeRange:")] public virtual void RemoveTimeRange(CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selRemoveTimeRange_Handle, timeRange); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selRemoveTimeRange_Handle, timeRange); } } [Export("scaleTimeRange:toDuration:")] public virtual void ScaleTimeRange(CMTimeRange timeRange, CMTime duration) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange_CMTime(base.Handle, selScaleTimeRangeToDuration_Handle, timeRange, duration); } else { Messaging.void_objc_msgSendSuper_CMTimeRange_CMTime(base.SuperHandle, selScaleTimeRangeToDuration_Handle, timeRange, duration); } } [Export("validateTrackSegments:error:")] public virtual bool ValidateTrackSegments(AVCompositionTrackSegment[] trackSegments, out NSError error) { if (trackSegments == null) { throw new ArgumentNullException("trackSegments"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(trackSegments); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selValidateTrackSegmentsError_Handle, nSArray.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selValidateTrackSegmentsError_Handle, nSArray.Handle, intPtr)); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("insertTimeRanges:ofTracks:atTime:error:")] public virtual bool InsertTimeRanges(NSValue cmTimeRanges, AVAssetTrack[] tracks, CMTime startTime, out NSError error) { if (cmTimeRanges == null) { throw new ArgumentNullException("cmTimeRanges"); } if (tracks == null) { throw new ArgumentNullException("tracks"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(tracks); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_CMTime_IntPtr(base.SuperHandle, selInsertTimeRangesOfTracksAtTimeError_Handle, cmTimeRanges.Handle, nSArray.Handle, startTime, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_CMTime_IntPtr(base.Handle, selInsertTimeRangesOfTracksAtTimeError_Handle, cmTimeRanges.Handle, nSArray.Handle, startTime, intPtr)); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Segments_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableMetadataItem.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableMetadataItem", true)] public class AVMutableMetadataItem : AVMetadataItem { private static readonly IntPtr selKeySpaceHandle = Selector.GetHandle("keySpace"); private static readonly IntPtr selSetKeySpace_Handle = Selector.GetHandle("setKeySpace:"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selTimeHandle = Selector.GetHandle("time"); private static readonly IntPtr selSetTime_Handle = Selector.GetHandle("setTime:"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selSetValue_Handle = Selector.GetHandle("setValue:"); private static readonly IntPtr selExtraAttributesHandle = Selector.GetHandle("extraAttributes"); private static readonly IntPtr selSetExtraAttributes_Handle = Selector.GetHandle("setExtraAttributes:"); private static readonly IntPtr selKeyHandle = Selector.GetHandle("key"); private static readonly IntPtr selSetKey_Handle = Selector.GetHandle("setKey:"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selSetDuration_Handle = Selector.GetHandle("setDuration:"); private static readonly IntPtr selMetadataItemHandle = Selector.GetHandle("metadataItem"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableMetadataItem"); private object __mt_Locale_var; private object __mt_Value_var; private object __mt_ExtraAttributes_var; private object __mt_Key_var; public override IntPtr ClassHandle => class_ptr; public new virtual string KeySpace { [Export("keySpace", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeySpaceHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeySpaceHandle)); } [Export("setKeySpace:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeySpace_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeySpace_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual NSLocale Locale { [Export("locale", ArgumentSemantic.Copy)] get { return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public new virtual CMTime Time { [Export("time")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeHandle); } return retval; } [Export("setTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetTime_Handle, value); } } } public new virtual NSObject Value { [Export("value", ArgumentSemantic.Copy)] get { return (NSObject)(__mt_Value_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)))); } [Export("setValue:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValue_Handle, value.Handle); } __mt_Value_var = value; } } public new virtual NSDictionary ExtraAttributes { [Export("extraAttributes", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_ExtraAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtraAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtraAttributesHandle))))); } [Export("setExtraAttributes:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetExtraAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetExtraAttributes_Handle, value.Handle); } __mt_ExtraAttributes_var = value; } } public new virtual NSObject Key { [Export("key", ArgumentSemantic.Copy)] get { return (NSObject)(__mt_Key_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyHandle)))); } [Export("setKey:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKey_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKey_Handle, value.Handle); } __mt_Key_var = value; } } [Since(4, 2)] public new virtual CMTime Duration { [Export("duration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDurationHandle); } return retval; } [Export("setDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetDuration_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableMetadataItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableMetadataItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableMetadataItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableMetadataItem(IntPtr handle) : base(handle) { } [Export("metadataItem")] public static AVMutableMetadataItem Create() { return (AVMutableMetadataItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMetadataItemHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locale_var = null; __mt_Value_var = null; __mt_ExtraAttributes_var = null; __mt_Key_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableTimedMetadataGroup.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableTimedMetadataGroup", true)] public class AVMutableTimedMetadataGroup : AVTimedMetadataGroup { private static readonly IntPtr selItemsHandle = Selector.GetHandle("items"); private static readonly IntPtr selSetItems_Handle = Selector.GetHandle("setItems:"); private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selSetTimeRange_Handle = Selector.GetHandle("setTimeRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableTimedMetadataGroup"); private object __mt_Items_var; public override IntPtr ClassHandle => class_ptr; public override AVMetadataItem[] Items { [Export("items")] get { return (AVMetadataItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemsHandle)))); } [Export("setItems:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetItems_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetItems_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Items_var = value; } } public override CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } [Export("setTimeRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selSetTimeRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selSetTimeRange_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableTimedMetadataGroup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableTimedMetadataGroup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableTimedMetadataGroup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableTimedMetadataGroup(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Items_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableVideoComposition.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableVideoComposition", true)] public class AVMutableVideoComposition : AVVideoComposition { private static readonly IntPtr selFrameDurationHandle = Selector.GetHandle("frameDuration"); private static readonly IntPtr selSetFrameDuration_Handle = Selector.GetHandle("setFrameDuration:"); private static readonly IntPtr selRenderSizeHandle = Selector.GetHandle("renderSize"); private static readonly IntPtr selSetRenderSize_Handle = Selector.GetHandle("setRenderSize:"); private static readonly IntPtr selInstructionsHandle = Selector.GetHandle("instructions"); private static readonly IntPtr selSetInstructions_Handle = Selector.GetHandle("setInstructions:"); private static readonly IntPtr selAnimationToolHandle = Selector.GetHandle("animationTool"); private static readonly IntPtr selSetAnimationTool_Handle = Selector.GetHandle("setAnimationTool:"); private static readonly IntPtr selVideoCompositionHandle = Selector.GetHandle("videoComposition"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableVideoComposition"); private object __mt_Instructions_var; private object __mt_AnimationTool_var; public override IntPtr ClassHandle => class_ptr; public new virtual CMTime FrameDuration { [Export("frameDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selFrameDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameDurationHandle); } return retval; } [Export("setFrameDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetFrameDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetFrameDuration_Handle, value); } } } public new virtual CGSize RenderSize { [Export("renderSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selRenderSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selRenderSizeHandle); } [Export("setRenderSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetRenderSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetRenderSize_Handle, value); } } } public new virtual AVVideoCompositionInstruction[] Instructions { [Export("instructions", ArgumentSemantic.Copy)] get { return (AVVideoCompositionInstruction[])(__mt_Instructions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInstructionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInstructionsHandle)))); } [Export("setInstructions:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInstructions_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInstructions_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Instructions_var = value; } } public new virtual AVVideoCompositionCoreAnimationTool AnimationTool { [Export("animationTool")] get { return (AVVideoCompositionCoreAnimationTool)(__mt_AnimationTool_var = ((!IsDirectBinding) ? ((AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationToolHandle))) : ((AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationToolHandle))))); } [Export("setAnimationTool:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimationTool_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimationTool_Handle, value.Handle); } __mt_AnimationTool_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableVideoComposition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableVideoComposition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoComposition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoComposition(IntPtr handle) : base(handle) { } [Export("videoComposition")] public static AVMutableVideoComposition Create() { return (AVMutableVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selVideoCompositionHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Instructions_var = null; __mt_AnimationTool_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableVideoCompositionInstruction.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableVideoCompositionInstruction", true)] public class AVMutableVideoCompositionInstruction : AVVideoCompositionInstruction { private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selSetTimeRange_Handle = Selector.GetHandle("setTimeRange:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selEnablePostProcessingHandle = Selector.GetHandle("enablePostProcessing"); private static readonly IntPtr selSetEnablePostProcessing_Handle = Selector.GetHandle("setEnablePostProcessing:"); private static readonly IntPtr selLayerInstructionsHandle = Selector.GetHandle("layerInstructions"); private static readonly IntPtr selSetLayerInstructions_Handle = Selector.GetHandle("setLayerInstructions:"); private static readonly IntPtr selVideoCompositionInstructionHandle = Selector.GetHandle("videoCompositionInstruction"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableVideoCompositionInstruction"); private object __mt_LayerInstructions_var; public override IntPtr ClassHandle => class_ptr; public new virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } [Export("setTimeRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTimeRange(base.Handle, selSetTimeRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTimeRange(base.SuperHandle, selSetTimeRange_Handle, value); } } } public new virtual CGColor BackgroundColor { [Export("backgroundColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle)); } [Export("setBackgroundColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } } } public new virtual bool EnablePostProcessing { [Export("enablePostProcessing")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEnablePostProcessingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEnablePostProcessingHandle); } [Export("setEnablePostProcessing:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnablePostProcessing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnablePostProcessing_Handle, value); } } } public new virtual AVVideoCompositionLayerInstruction[] LayerInstructions { [Export("layerInstructions", ArgumentSemantic.Copy)] get { return (AVVideoCompositionLayerInstruction[])(__mt_LayerInstructions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayerInstructionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLayerInstructionsHandle)))); } [Export("setLayerInstructions:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLayerInstructions_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLayerInstructions_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_LayerInstructions_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableVideoCompositionInstruction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableVideoCompositionInstruction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoCompositionInstruction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoCompositionInstruction(IntPtr handle) : base(handle) { } [Export("videoCompositionInstruction")] public static AVVideoCompositionInstruction Create() { return (AVVideoCompositionInstruction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selVideoCompositionInstructionHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LayerInstructions_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVMutableVideoCompositionLayerInstruction.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVMutableVideoCompositionLayerInstruction", true)] public class AVMutableVideoCompositionLayerInstruction : AVVideoCompositionLayerInstruction { private static readonly IntPtr selTrackIDHandle = Selector.GetHandle("trackID"); private static readonly IntPtr selSetTrackID_Handle = Selector.GetHandle("setTrackID:"); private static readonly IntPtr selVideoCompositionLayerInstructionWithAssetTrack_Handle = Selector.GetHandle("videoCompositionLayerInstructionWithAssetTrack:"); private static readonly IntPtr selVideoCompositionLayerInstructionHandle = Selector.GetHandle("videoCompositionLayerInstruction"); private static readonly IntPtr selSetTransformRampFromStartTransformToEndTransformTimeRange_Handle = Selector.GetHandle("setTransformRampFromStartTransform:toEndTransform:timeRange:"); private static readonly IntPtr selSetTransformAtTime_Handle = Selector.GetHandle("setTransform:atTime:"); private static readonly IntPtr selSetOpacityRampFromStartOpacityToEndOpacityTimeRange_Handle = Selector.GetHandle("setOpacityRampFromStartOpacity:toEndOpacity:timeRange:"); private static readonly IntPtr selSetOpacityAtTime_Handle = Selector.GetHandle("setOpacity:atTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVMutableVideoCompositionLayerInstruction"); public override IntPtr ClassHandle => class_ptr; public new virtual int TrackID { [Export("trackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackIDHandle); } [Export("setTrackID:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTrackID_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTrackID_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVMutableVideoCompositionLayerInstruction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVMutableVideoCompositionLayerInstruction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoCompositionLayerInstruction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVMutableVideoCompositionLayerInstruction(IntPtr handle) : base(handle) { } [Export("videoCompositionLayerInstructionWithAssetTrack:")] public static AVMutableVideoCompositionLayerInstruction FromAssetTrack(AVAssetTrack track) { if (track == null) { throw new ArgumentNullException("track"); } return (AVMutableVideoCompositionLayerInstruction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selVideoCompositionLayerInstructionWithAssetTrack_Handle, track.Handle)); } [Export("videoCompositionLayerInstruction")] public static AVMutableVideoCompositionLayerInstruction Create() { return (AVMutableVideoCompositionLayerInstruction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selVideoCompositionLayerInstructionHandle)); } [Export("setTransformRampFromStartTransform:toEndTransform:timeRange:")] public virtual void SetTransformRamp(CGAffineTransform startTransform, CGAffineTransform endTransform, CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform_CGAffineTransform_CMTimeRange(base.Handle, selSetTransformRampFromStartTransformToEndTransformTimeRange_Handle, startTransform, endTransform, timeRange); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform_CGAffineTransform_CMTimeRange(base.SuperHandle, selSetTransformRampFromStartTransformToEndTransformTimeRange_Handle, startTransform, endTransform, timeRange); } } [Export("setTransform:atTime:")] public virtual void SetTransform(CGAffineTransform transform, CMTime atTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform_CMTime(base.Handle, selSetTransformAtTime_Handle, transform, atTime); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform_CMTime(base.SuperHandle, selSetTransformAtTime_Handle, transform, atTime); } } [Export("setOpacityRampFromStartOpacity:toEndOpacity:timeRange:")] public virtual void SetOpacityRamp(float startOpacity, float endOpacity, CMTimeRange timeRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_float_float_CMTimeRange(base.Handle, selSetOpacityRampFromStartOpacityToEndOpacityTimeRange_Handle, startOpacity, endOpacity, timeRange); } else { Messaging.void_objc_msgSendSuper_float_float_CMTimeRange(base.SuperHandle, selSetOpacityRampFromStartOpacityToEndOpacityTimeRange_Handle, startOpacity, endOpacity, timeRange); } } [Export("setOpacity:atTime:")] public virtual void SetOpacity(float opacity, CMTime time) { if (IsDirectBinding) { Messaging.void_objc_msgSend_float_CMTime(base.Handle, selSetOpacityAtTime_Handle, opacity, time); } else { Messaging.void_objc_msgSendSuper_float_CMTime(base.SuperHandle, selSetOpacityAtTime_Handle, opacity, time); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayer.cs ================================================ using System; using System.ComponentModel; using System.Threading.Tasks; using CoreFoundation; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayer", true)] public class AVPlayer : NSObject { private static readonly IntPtr selCurrentItemHandle = Selector.GetHandle("currentItem"); private static readonly IntPtr selRateHandle = Selector.GetHandle("rate"); private static readonly IntPtr selSetRate_Handle = Selector.GetHandle("setRate:"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selActionAtItemEndHandle = Selector.GetHandle("actionAtItemEnd"); private static readonly IntPtr selSetActionAtItemEnd_Handle = Selector.GetHandle("setActionAtItemEnd:"); private static readonly IntPtr selIsClosedCaptionDisplayEnabledHandle = Selector.GetHandle("isClosedCaptionDisplayEnabled"); private static readonly IntPtr selSetClosedCaptionDisplayEnabled_Handle = Selector.GetHandle("setClosedCaptionDisplayEnabled:"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selStatusHandle = Selector.GetHandle("status"); private static readonly IntPtr selMasterClockHandle = Selector.GetHandle("masterClock"); private static readonly IntPtr selSetMasterClock_Handle = Selector.GetHandle("setMasterClock:"); private static readonly IntPtr selPlayerWithURL_Handle = Selector.GetHandle("playerWithURL:"); private static readonly IntPtr selPlayerWithPlayerItem_Handle = Selector.GetHandle("playerWithPlayerItem:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithPlayerItem_Handle = Selector.GetHandle("initWithPlayerItem:"); private static readonly IntPtr selPlayHandle = Selector.GetHandle("play"); private static readonly IntPtr selPauseHandle = Selector.GetHandle("pause"); private static readonly IntPtr selReplaceCurrentItemWithPlayerItem_Handle = Selector.GetHandle("replaceCurrentItemWithPlayerItem:"); private static readonly IntPtr selAddPeriodicTimeObserverForIntervalQueueUsingBlock_Handle = Selector.GetHandle("addPeriodicTimeObserverForInterval:queue:usingBlock:"); private static readonly IntPtr selAddBoundaryTimeObserverForTimesQueueUsingBlock_Handle = Selector.GetHandle("addBoundaryTimeObserverForTimes:queue:usingBlock:"); private static readonly IntPtr selRemoveTimeObserver_Handle = Selector.GetHandle("removeTimeObserver:"); private static readonly IntPtr selSeekToTime_Handle = Selector.GetHandle("seekToTime:"); private static readonly IntPtr selSeekToTimeToleranceBeforeToleranceAfter_Handle = Selector.GetHandle("seekToTime:toleranceBefore:toleranceAfter:"); private static readonly IntPtr selSeekToTimeCompletionHandler_Handle = Selector.GetHandle("seekToTime:completionHandler:"); private static readonly IntPtr selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle = Selector.GetHandle("seekToTime:toleranceBefore:toleranceAfter:completionHandler:"); private static readonly IntPtr selSetRateTimeAtHostTime_Handle = Selector.GetHandle("setRate:time:atHostTime:"); private static readonly IntPtr selPrerollAtRateCompletionHandler_Handle = Selector.GetHandle("prerollAtRate:completionHandler:"); private static readonly IntPtr selCancelPendingPrerollsHandle = Selector.GetHandle("cancelPendingPrerolls"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayer"); private object __mt_CurrentItem_var; private object __mt_Error_var; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayerItem CurrentItem { [Export("currentItem")] get { return (AVPlayerItem)(__mt_CurrentItem_var = ((!IsDirectBinding) ? ((AVPlayerItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentItemHandle))) : ((AVPlayerItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentItemHandle))))); } } public virtual float Rate { [Export("rate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRateHandle); } [Export("setRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRate_Handle, value); } } } public virtual CMTime CurrentTime { [Export("currentTime")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selCurrentTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selCurrentTimeHandle); } return retval; } } public virtual AVPlayerActionAtItemEnd ActionAtItemEnd { [Export("actionAtItemEnd")] get { if (IsDirectBinding) { return (AVPlayerActionAtItemEnd)Messaging.int_objc_msgSend(base.Handle, selActionAtItemEndHandle); } return (AVPlayerActionAtItemEnd)Messaging.int_objc_msgSendSuper(base.SuperHandle, selActionAtItemEndHandle); } [Export("setActionAtItemEnd:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetActionAtItemEnd_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetActionAtItemEnd_Handle, (int)value); } } } public virtual bool ClosedCaptionDisplayEnabled { [Export("isClosedCaptionDisplayEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsClosedCaptionDisplayEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsClosedCaptionDisplayEnabledHandle); } [Export("setClosedCaptionDisplayEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetClosedCaptionDisplayEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetClosedCaptionDisplayEnabled_Handle, value); } } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } public virtual AVPlayerStatus Status { [Export("status")] get { if (IsDirectBinding) { return (AVPlayerStatus)Messaging.int_objc_msgSend(base.Handle, selStatusHandle); } return (AVPlayerStatus)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStatusHandle); } } [Since(6, 0)] public virtual CMClock MasterClock { [Export("masterClock")] get { if (IsDirectBinding) { return new CMClock(Messaging.IntPtr_objc_msgSend(base.Handle, selMasterClockHandle)); } return new CMClock(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMasterClockHandle)); } [Export("setMasterClock:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMasterClock_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMasterClock_Handle, value.Handle); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayer(IntPtr handle) : base(handle) { } [Export("playerWithURL:")] public static AVPlayer FromUrl(NSUrl URL) { if (URL == null) { throw new ArgumentNullException("URL"); } return (AVPlayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPlayerWithURL_Handle, URL.Handle)); } [Export("playerWithPlayerItem:")] public static AVPlayer FromPlayerItem(AVPlayerItem item) { if (item == null) { throw new ArgumentNullException("item"); } return (AVPlayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPlayerWithPlayerItem_Handle, item.Handle)); } [Export("initWithURL:")] public AVPlayer(NSUrl URL) : base(NSObjectFlag.Empty) { if (URL == null) { throw new ArgumentNullException("URL"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, URL.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, URL.Handle); } } [Export("initWithPlayerItem:")] public AVPlayer(AVPlayerItem item) : base(NSObjectFlag.Empty) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPlayerItem_Handle, item.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPlayerItem_Handle, item.Handle); } } [Export("play")] public virtual void Play() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPlayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPlayHandle); } } [Export("pause")] public virtual void Pause() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPauseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPauseHandle); } } [Export("replaceCurrentItemWithPlayerItem:")] public virtual void ReplaceCurrentItemWithPlayerItem(AVPlayerItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceCurrentItemWithPlayerItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceCurrentItemWithPlayerItem_Handle, item.Handle); } } [Export("addPeriodicTimeObserverForInterval:queue:usingBlock:")] public unsafe virtual NSObject AddPeriodicTimeObserver(CMTime interval, DispatchQueue queue, AVTimeHandler handler) { if (handler == null) { throw new ArgumentNullException("handler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVTimeHandler.Handler, handler); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CMTime_IntPtr_IntPtr(base.SuperHandle, selAddPeriodicTimeObserverForIntervalQueueUsingBlock_Handle, interval, queue.Handle, (IntPtr)ptr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CMTime_IntPtr_IntPtr(base.Handle, selAddPeriodicTimeObserverForIntervalQueueUsingBlock_Handle, interval, queue.Handle, (IntPtr)ptr))); ptr->CleanupBlock(); return result; } [Export("addBoundaryTimeObserverForTimes:queue:usingBlock:")] public unsafe virtual NSObject AddBoundaryTimeObserver(NSValue[] times, DispatchQueue queue, NSAction handler) { if (times == null) { throw new ArgumentNullException("times"); } if (handler == null) { throw new ArgumentNullException("handler"); } NSArray nSArray = NSArray.FromNSObjects(times); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, handler); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddBoundaryTimeObserverForTimesQueueUsingBlock_Handle, nSArray.Handle, queue.Handle, (IntPtr)ptr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selAddBoundaryTimeObserverForTimesQueueUsingBlock_Handle, nSArray.Handle, queue.Handle, (IntPtr)ptr))); nSArray.Dispose(); ptr->CleanupBlock(); return result; } [Export("removeTimeObserver:")] public virtual void RemoveTimeObserver(NSObject observer) { if (observer == null) { throw new ArgumentNullException("observer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTimeObserver_Handle, observer.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTimeObserver_Handle, observer.Handle); } } [Export("seekToTime:")] public virtual void Seek(CMTime toTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSeekToTime_Handle, toTime); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSeekToTime_Handle, toTime); } } [Export("seekToTime:toleranceBefore:toleranceAfter:")] public virtual void Seek(CMTime toTime, CMTime toleranceBefore, CMTime toleranceAfter) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_CMTime_CMTime(base.Handle, selSeekToTimeToleranceBeforeToleranceAfter_Handle, toTime, toleranceBefore, toleranceAfter); } else { Messaging.void_objc_msgSendSuper_CMTime_CMTime_CMTime(base.SuperHandle, selSeekToTimeToleranceBeforeToleranceAfter_Handle, toTime, toleranceBefore, toleranceAfter); } } [Export("seekToTime:completionHandler:")] public unsafe virtual void Seek(CMTime time, AVCompletion completion) { if (completion == null) { throw new ArgumentNullException("completion"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletion.Handler, completion); if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_IntPtr(base.Handle, selSeekToTimeCompletionHandler_Handle, time, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_CMTime_IntPtr(base.SuperHandle, selSeekToTimeCompletionHandler_Handle, time, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task SeekAsync(CMTime time) { TaskCompletionSource tcs = new TaskCompletionSource(); Seek(time, delegate(bool finished) { tcs.SetResult(finished); }); return tcs.Task; } [Export("seekToTime:toleranceBefore:toleranceAfter:completionHandler:")] public unsafe virtual void Seek(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletion completion) { if (completion == null) { throw new ArgumentNullException("completion"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletion.Handler, completion); if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_CMTime_CMTime_IntPtr(base.Handle, selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle, time, toleranceBefore, toleranceAfter, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_CMTime_CMTime_CMTime_IntPtr(base.SuperHandle, selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle, time, toleranceBefore, toleranceAfter, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task SeekAsync(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter) { TaskCompletionSource tcs = new TaskCompletionSource(); Seek(time, toleranceBefore, toleranceAfter, delegate(bool finished) { tcs.SetResult(finished); }); return tcs.Task; } [Export("setRate:time:atHostTime:")] public virtual void SetRate(float rate, CMTime itemTime, CMTime hostClockTime) { if (IsDirectBinding) { Messaging.void_objc_msgSend_float_CMTime_CMTime(base.Handle, selSetRateTimeAtHostTime_Handle, rate, itemTime, hostClockTime); } else { Messaging.void_objc_msgSendSuper_float_CMTime_CMTime(base.SuperHandle, selSetRateTimeAtHostTime_Handle, rate, itemTime, hostClockTime); } } [Export("prerollAtRate:completionHandler:")] public unsafe virtual void Preroll(float rate, AVCompletion onComplete) { if (onComplete == null) { throw new ArgumentNullException("onComplete"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletion.Handler, onComplete); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_IntPtr(base.Handle, selPrerollAtRateCompletionHandler_Handle, rate, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_float_IntPtr(base.SuperHandle, selPrerollAtRateCompletionHandler_Handle, rate, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task PrerollAsync(float rate) { TaskCompletionSource tcs = new TaskCompletionSource(); Preroll(rate, delegate(bool finished) { tcs.SetResult(finished); }); return tcs.Task; } [Export("cancelPendingPrerolls")] public virtual void CancelPendingPrerolls() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelPendingPrerollsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelPendingPrerollsHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CurrentItem_var = null; __mt_Error_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerActionAtItemEnd.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVPlayerActionAtItemEnd { Pause = 1, None } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItem.cs ================================================ using System; using System.ComponentModel; using System.Threading.Tasks; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItem", true)] public class AVPlayerItem : NSObject { public static class Notifications { public static NSObject ObserveDidPlayToEndTime(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidPlayToEndTimeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveItemFailedToPlayToEndTime(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ItemFailedToPlayToEndTimeNotification, delegate(NSNotification notification) { handler(null, new AVPlayerItemErrorEventArgs(notification)); }); } public static NSObject ObserveTimeJumped(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(TimeJumpedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selStatusHandle = Selector.GetHandle("status"); private static readonly IntPtr selAssetHandle = Selector.GetHandle("asset"); private static readonly IntPtr selTracksHandle = Selector.GetHandle("tracks"); private static readonly IntPtr selPresentationSizeHandle = Selector.GetHandle("presentationSize"); private static readonly IntPtr selForwardPlaybackEndTimeHandle = Selector.GetHandle("forwardPlaybackEndTime"); private static readonly IntPtr selSetForwardPlaybackEndTime_Handle = Selector.GetHandle("setForwardPlaybackEndTime:"); private static readonly IntPtr selReversePlaybackEndTimeHandle = Selector.GetHandle("reversePlaybackEndTime"); private static readonly IntPtr selSetReversePlaybackEndTime_Handle = Selector.GetHandle("setReversePlaybackEndTime:"); private static readonly IntPtr selAudioMixHandle = Selector.GetHandle("audioMix"); private static readonly IntPtr selSetAudioMix_Handle = Selector.GetHandle("setAudioMix:"); private static readonly IntPtr selVideoCompositionHandle = Selector.GetHandle("videoComposition"); private static readonly IntPtr selSetVideoComposition_Handle = Selector.GetHandle("setVideoComposition:"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selIsPlaybackLikelyToKeepUpHandle = Selector.GetHandle("isPlaybackLikelyToKeepUp"); private static readonly IntPtr selIsPlaybackBufferFullHandle = Selector.GetHandle("isPlaybackBufferFull"); private static readonly IntPtr selIsPlaybackBufferEmptyHandle = Selector.GetHandle("isPlaybackBufferEmpty"); private static readonly IntPtr selSeekableTimeRangesHandle = Selector.GetHandle("seekableTimeRanges"); private static readonly IntPtr selLoadedTimeRangesHandle = Selector.GetHandle("loadedTimeRanges"); private static readonly IntPtr selTimedMetadataHandle = Selector.GetHandle("timedMetadata"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selAccessLogHandle = Selector.GetHandle("accessLog"); private static readonly IntPtr selErrorLogHandle = Selector.GetHandle("errorLog"); private static readonly IntPtr selCurrentDateHandle = Selector.GetHandle("currentDate"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selCanPlayFastReverseHandle = Selector.GetHandle("canPlayFastReverse"); private static readonly IntPtr selCanPlayFastForwardHandle = Selector.GetHandle("canPlayFastForward"); private static readonly IntPtr selCanPlaySlowForwardHandle = Selector.GetHandle("canPlaySlowForward"); private static readonly IntPtr selCanPlayReverseHandle = Selector.GetHandle("canPlayReverse"); private static readonly IntPtr selCanPlaySlowReverseHandle = Selector.GetHandle("canPlaySlowReverse"); private static readonly IntPtr selCanStepForwardHandle = Selector.GetHandle("canStepForward"); private static readonly IntPtr selCanStepBackwardHandle = Selector.GetHandle("canStepBackward"); private static readonly IntPtr selOutputsHandle = Selector.GetHandle("outputs"); private static readonly IntPtr selTimebaseHandle = Selector.GetHandle("timebase"); private static readonly IntPtr selPlayerItemWithURL_Handle = Selector.GetHandle("playerItemWithURL:"); private static readonly IntPtr selPlayerItemWithAsset_Handle = Selector.GetHandle("playerItemWithAsset:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithAsset_Handle = Selector.GetHandle("initWithAsset:"); private static readonly IntPtr selStepByCount_Handle = Selector.GetHandle("stepByCount:"); private static readonly IntPtr selSeekToDate_Handle = Selector.GetHandle("seekToDate:"); private static readonly IntPtr selSeekToTime_Handle = Selector.GetHandle("seekToTime:"); private static readonly IntPtr selSeekToTimeToleranceBeforeToleranceAfter_Handle = Selector.GetHandle("seekToTime:toleranceBefore:toleranceAfter:"); private static readonly IntPtr selSeekToTimeCompletionHandler_Handle = Selector.GetHandle("seekToTime:completionHandler:"); private static readonly IntPtr selCancelPendingSeeksHandle = Selector.GetHandle("cancelPendingSeeks"); private static readonly IntPtr selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle = Selector.GetHandle("seekToTime:toleranceBefore:toleranceAfter:completionHandler:"); private static readonly IntPtr selAddOutput_Handle = Selector.GetHandle("addOutput:"); private static readonly IntPtr selRemoveOutput_Handle = Selector.GetHandle("removeOutput:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItem"); private object __mt_Asset_var; private object __mt_Tracks_var; private object __mt_AudioMix_var; private object __mt_VideoComposition_var; private object __mt_SeekableTimeRanges_var; private object __mt_LoadedTimeRanges_var; private object __mt_TimedMetadata_var; private object __mt_Error_var; private object __mt_AccessLog_var; private object __mt_ErrorLog_var; private object __mt_CurrentDate_var; private object __mt_Outputs_var; private static NSString _DidPlayToEndTimeNotification; private static NSString _ItemFailedToPlayToEndTimeNotification; private static NSString _ItemFailedToPlayToEndTimeErrorKey; private static NSString _TimeJumpedNotification; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayerItemStatus Status { [Export("status")] get { if (IsDirectBinding) { return (AVPlayerItemStatus)Messaging.int_objc_msgSend(base.Handle, selStatusHandle); } return (AVPlayerItemStatus)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStatusHandle); } } public virtual AVAsset Asset { [Export("asset")] get { return (AVAsset)(__mt_Asset_var = ((!IsDirectBinding) ? ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetHandle))) : ((AVAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetHandle))))); } } public virtual AVPlayerItemTrack[] Tracks { [Export("tracks")] get { return (AVPlayerItemTrack[])(__mt_Tracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTracksHandle)))); } } public virtual CGSize PresentationSize { [Export("presentationSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selPresentationSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selPresentationSizeHandle); } } public virtual CMTime ForwardPlaybackEndTime { [Export("forwardPlaybackEndTime")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selForwardPlaybackEndTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selForwardPlaybackEndTimeHandle); } return retval; } [Export("setForwardPlaybackEndTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetForwardPlaybackEndTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetForwardPlaybackEndTime_Handle, value); } } } public virtual CMTime ReversePlaybackEndTime { [Export("reversePlaybackEndTime")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selReversePlaybackEndTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selReversePlaybackEndTimeHandle); } return retval; } [Export("setReversePlaybackEndTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSetReversePlaybackEndTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSetReversePlaybackEndTime_Handle, value); } } } public virtual AVAudioMix AudioMix { [Export("audioMix", ArgumentSemantic.Copy)] get { return (AVAudioMix)(__mt_AudioMix_var = ((!IsDirectBinding) ? ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAudioMixHandle))) : ((AVAudioMix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAudioMixHandle))))); } [Export("setAudioMix:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAudioMix_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAudioMix_Handle, value.Handle); } __mt_AudioMix_var = value; } } public virtual AVVideoComposition VideoComposition { [Export("videoComposition", ArgumentSemantic.Copy)] get { return (AVVideoComposition)(__mt_VideoComposition_var = ((!IsDirectBinding) ? ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoCompositionHandle))) : ((AVVideoComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoCompositionHandle))))); } [Export("setVideoComposition:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoComposition_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoComposition_Handle, value.Handle); } __mt_VideoComposition_var = value; } } public virtual CMTime CurrentTime { [Export("currentTime")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selCurrentTimeHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selCurrentTimeHandle); } return retval; } } public virtual bool PlaybackLikelyToKeepUp { [Export("isPlaybackLikelyToKeepUp")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlaybackLikelyToKeepUpHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlaybackLikelyToKeepUpHandle); } } public virtual bool PlaybackBufferFull { [Export("isPlaybackBufferFull")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlaybackBufferFullHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlaybackBufferFullHandle); } } public virtual bool PlaybackBufferEmpty { [Export("isPlaybackBufferEmpty")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlaybackBufferEmptyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlaybackBufferEmptyHandle); } } public virtual NSValue[] SeekableTimeRanges { [Export("seekableTimeRanges")] get { return (NSValue[])(__mt_SeekableTimeRanges_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSeekableTimeRangesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSeekableTimeRangesHandle)))); } } public virtual NSValue[] LoadedTimeRanges { [Export("loadedTimeRanges")] get { return (NSValue[])(__mt_LoadedTimeRanges_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLoadedTimeRangesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLoadedTimeRangesHandle)))); } } public virtual NSObject[] TimedMetadata { [Export("timedMetadata")] get { return (NSObject[])(__mt_TimedMetadata_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimedMetadataHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTimedMetadataHandle)))); } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } [Since(4, 3)] public virtual AVPlayerItemAccessLog AccessLog { [Export("accessLog")] get { return (AVPlayerItemAccessLog)(__mt_AccessLog_var = ((!IsDirectBinding) ? ((AVPlayerItemAccessLog)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessLogHandle))) : ((AVPlayerItemAccessLog)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessLogHandle))))); } } [Since(4, 3)] public virtual AVPlayerItemErrorLog ErrorLog { [Export("errorLog")] get { return (AVPlayerItemErrorLog)(__mt_ErrorLog_var = ((!IsDirectBinding) ? ((AVPlayerItemErrorLog)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorLogHandle))) : ((AVPlayerItemErrorLog)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorLogHandle))))); } } [Since(4, 3)] public virtual NSDate CurrentDate { [Export("currentDate")] get { return (NSDate)(__mt_CurrentDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDateHandle))))); } } [Since(4, 3)] public virtual CMTime Duration { [Export("duration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDurationHandle); } return retval; } } [Since(5, 0)] public virtual bool CanPlayFastReverse { [Export("canPlayFastReverse")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPlayFastReverseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPlayFastReverseHandle); } } [Since(5, 0)] public virtual bool CanPlayFastForward { [Export("canPlayFastForward")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPlayFastForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPlayFastForwardHandle); } } [Since(6, 0)] public virtual bool CanPlaySlowForward { [Export("canPlaySlowForward")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPlaySlowForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPlaySlowForwardHandle); } } [Since(6, 0)] public virtual bool CanPlayReverse { [Export("canPlayReverse")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPlayReverseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPlayReverseHandle); } } [Since(6, 0)] public virtual bool CanPlaySlowReverse { [Export("canPlaySlowReverse")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPlaySlowReverseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPlaySlowReverseHandle); } } [Since(6, 0)] public virtual bool CanStepForward { [Export("canStepForward")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanStepForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanStepForwardHandle); } } [Since(6, 0)] public virtual bool CanStepBackward { [Export("canStepBackward")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanStepBackwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanStepBackwardHandle); } } [Since(6, 0)] public virtual AVPlayerItemOutput[] Outputs { [Export("outputs")] get { return (AVPlayerItemOutput[])(__mt_Outputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputsHandle)))); } } [Since(6, 0)] public virtual CMTimebase Timebase { [Export("timebase")] get { if (IsDirectBinding) { return new CMTimebase(Messaging.IntPtr_objc_msgSend(base.Handle, selTimebaseHandle)); } return new CMTimebase(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimebaseHandle)); } } [Field("AVPlayerItemDidPlayToEndTimeNotification", "AVFoundation")] public static NSString DidPlayToEndTimeNotification { get { if (_DidPlayToEndTimeNotification == null) { _DidPlayToEndTimeNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVPlayerItemDidPlayToEndTimeNotification"); } return _DidPlayToEndTimeNotification; } } [Field("AVPlayerItemFailedToPlayToEndTimeNotification", "AVFoundation")] public static NSString ItemFailedToPlayToEndTimeNotification { get { if (_ItemFailedToPlayToEndTimeNotification == null) { _ItemFailedToPlayToEndTimeNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVPlayerItemFailedToPlayToEndTimeNotification"); } return _ItemFailedToPlayToEndTimeNotification; } } [Field("AVPlayerItemFailedToPlayToEndTimeErrorKey", "AVFoundation")] public static NSString ItemFailedToPlayToEndTimeErrorKey { get { if (_ItemFailedToPlayToEndTimeErrorKey == null) { _ItemFailedToPlayToEndTimeErrorKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVPlayerItemFailedToPlayToEndTimeErrorKey"); } return _ItemFailedToPlayToEndTimeErrorKey; } } [Field("AVPlayerItemTimeJumpedNotification", "AVFoundation")] public static NSString TimeJumpedNotification { get { if (_TimeJumpedNotification == null) { _TimeJumpedNotification = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVPlayerItemTimeJumpedNotification"); } return _TimeJumpedNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItem(IntPtr handle) : base(handle) { } [Export("playerItemWithURL:")] public static AVPlayerItem FromUrl(NSUrl URL) { if (URL == null) { throw new ArgumentNullException("URL"); } return (AVPlayerItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPlayerItemWithURL_Handle, URL.Handle)); } [Export("playerItemWithAsset:")] public static AVPlayerItem FromAsset(AVAsset asset) { if (asset == null) { throw new ArgumentNullException("asset"); } return (AVPlayerItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPlayerItemWithAsset_Handle, asset.Handle)); } [Export("initWithURL:")] public AVPlayerItem(NSUrl URL) : base(NSObjectFlag.Empty) { if (URL == null) { throw new ArgumentNullException("URL"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, URL.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, URL.Handle); } } [Export("initWithAsset:")] public AVPlayerItem(AVAsset asset) : base(NSObjectFlag.Empty) { if (asset == null) { throw new ArgumentNullException("asset"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAsset_Handle, asset.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAsset_Handle, asset.Handle); } } [Export("stepByCount:")] public virtual void StepByCount(int stepCount) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selStepByCount_Handle, stepCount); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selStepByCount_Handle, stepCount); } } [Export("seekToDate:")] public virtual bool Seek(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSeekToDate_Handle, date.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSeekToDate_Handle, date.Handle); } [Export("seekToTime:")] public virtual void Seek(CMTime time) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime(base.Handle, selSeekToTime_Handle, time); } else { Messaging.void_objc_msgSendSuper_CMTime(base.SuperHandle, selSeekToTime_Handle, time); } } [Export("seekToTime:toleranceBefore:toleranceAfter:")] public virtual void Seek(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_CMTime_CMTime(base.Handle, selSeekToTimeToleranceBeforeToleranceAfter_Handle, time, toleranceBefore, toleranceAfter); } else { Messaging.void_objc_msgSendSuper_CMTime_CMTime_CMTime(base.SuperHandle, selSeekToTimeToleranceBeforeToleranceAfter_Handle, time, toleranceBefore, toleranceAfter); } } [Export("seekToTime:completionHandler:")] public unsafe virtual void Seek(CMTime time, AVCompletion completion) { if (completion == null) { throw new ArgumentNullException("completion"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletion.Handler, completion); if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_IntPtr(base.Handle, selSeekToTimeCompletionHandler_Handle, time, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_CMTime_IntPtr(base.SuperHandle, selSeekToTimeCompletionHandler_Handle, time, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task SeekAsync(CMTime time) { TaskCompletionSource tcs = new TaskCompletionSource(); Seek(time, delegate(bool finished) { tcs.SetResult(finished); }); return tcs.Task; } [Export("cancelPendingSeeks")] public virtual void CancelPendingSeeks() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelPendingSeeksHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelPendingSeeksHandle); } } [Export("seekToTime:toleranceBefore:toleranceAfter:completionHandler:")] public unsafe virtual void Seek(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletion completion) { if (completion == null) { throw new ArgumentNullException("completion"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAVCompletion.Handler, completion); if (IsDirectBinding) { Messaging.void_objc_msgSend_CMTime_CMTime_CMTime_IntPtr(base.Handle, selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle, time, toleranceBefore, toleranceAfter, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_CMTime_CMTime_CMTime_IntPtr(base.SuperHandle, selSeekToTimeToleranceBeforeToleranceAfterCompletionHandler_Handle, time, toleranceBefore, toleranceAfter, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task SeekAsync(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter) { TaskCompletionSource tcs = new TaskCompletionSource(); Seek(time, toleranceBefore, toleranceAfter, delegate(bool finished) { tcs.SetResult(finished); }); return tcs.Task; } [Export("addOutput:")] public virtual void AddOutput(AVPlayerItemOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddOutput_Handle, output.Handle); } _ = Outputs; } [Export("removeOutput:")] public virtual void RemoveOutput(AVPlayerItemOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveOutput_Handle, output.Handle); } _ = Outputs; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Asset_var = null; __mt_Tracks_var = null; __mt_AudioMix_var = null; __mt_VideoComposition_var = null; __mt_SeekableTimeRanges_var = null; __mt_LoadedTimeRanges_var = null; __mt_TimedMetadata_var = null; __mt_Error_var = null; __mt_AccessLog_var = null; __mt_ErrorLog_var = null; __mt_CurrentDate_var = null; __mt_Outputs_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemAccessLog.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemAccessLog", true)] public class AVPlayerItemAccessLog : NSObject { private static readonly IntPtr selEventsHandle = Selector.GetHandle("events"); private static readonly IntPtr selExtendedLogDataStringEncodingHandle = Selector.GetHandle("extendedLogDataStringEncoding"); private static readonly IntPtr selExtendedLogDataHandle = Selector.GetHandle("extendedLogData"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemAccessLog"); private object __mt_Events_var; private object __mt_ExtendedLogData_var; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayerItemAccessLogEvent[] Events { [Export("events")] get { return (AVPlayerItemAccessLogEvent[])(__mt_Events_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEventsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEventsHandle)))); } } public virtual NSStringEncoding ExtendedLogDataStringEncoding { [Export("extendedLogDataStringEncoding")] get { if (IsDirectBinding) { return (NSStringEncoding)Messaging.UInt32_objc_msgSend(base.Handle, selExtendedLogDataStringEncodingHandle); } return (NSStringEncoding)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selExtendedLogDataStringEncodingHandle); } } public virtual NSData ExtendedLogData { [Export("extendedLogData")] get { return (NSData)(__mt_ExtendedLogData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtendedLogDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtendedLogDataHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemAccessLog() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemAccessLog(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemAccessLog(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemAccessLog(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Events_var = null; __mt_ExtendedLogData_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemAccessLogEvent.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemAccessLogEvent", true)] public class AVPlayerItemAccessLogEvent : NSObject { private static readonly IntPtr selNumberOfSegmentsDownloadedHandle = Selector.GetHandle("numberOfSegmentsDownloaded"); private static readonly IntPtr selPlaybackStartDateHandle = Selector.GetHandle("playbackStartDate"); private static readonly IntPtr selURIHandle = Selector.GetHandle("URI"); private static readonly IntPtr selServerAddressHandle = Selector.GetHandle("serverAddress"); private static readonly IntPtr selNumberOfServerAddressChangesHandle = Selector.GetHandle("numberOfServerAddressChanges"); private static readonly IntPtr selPlaybackSessionIDHandle = Selector.GetHandle("playbackSessionID"); private static readonly IntPtr selPlaybackStartOffsetHandle = Selector.GetHandle("playbackStartOffset"); private static readonly IntPtr selSegmentsDownloadedDurationHandle = Selector.GetHandle("segmentsDownloadedDuration"); private static readonly IntPtr selDurationWatchedHandle = Selector.GetHandle("durationWatched"); private static readonly IntPtr selNumberOfStallsHandle = Selector.GetHandle("numberOfStalls"); private static readonly IntPtr selNumberOfBytesTransferredHandle = Selector.GetHandle("numberOfBytesTransferred"); private static readonly IntPtr selObservedBitrateHandle = Selector.GetHandle("observedBitrate"); private static readonly IntPtr selIndicatedBitrateHandle = Selector.GetHandle("indicatedBitrate"); private static readonly IntPtr selNumberOfDroppedVideoFramesHandle = Selector.GetHandle("numberOfDroppedVideoFrames"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemAccessLogEvent"); private object __mt_PlaybackStartDate_var; public override IntPtr ClassHandle => class_ptr; public virtual int SegmentedDownloadedCount { [Export("numberOfSegmentsDownloaded")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfSegmentsDownloadedHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfSegmentsDownloadedHandle); } } public virtual NSData PlaybackStartDate { [Export("playbackStartDate")] get { return (NSData)(__mt_PlaybackStartDate_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaybackStartDateHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaybackStartDateHandle))))); } } public virtual string Uri { [Export("URI")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURIHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURIHandle)); } } public virtual string ServerAddress { [Export("serverAddress")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selServerAddressHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selServerAddressHandle)); } } public virtual int ServerAddressChangeCount { [Export("numberOfServerAddressChanges")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfServerAddressChangesHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfServerAddressChangesHandle); } } public virtual string PlaybackSessionID { [Export("playbackSessionID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaybackSessionIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaybackSessionIDHandle)); } } public virtual double PlaybackStartOffset { [Export("playbackStartOffset")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPlaybackStartOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPlaybackStartOffsetHandle); } } public virtual double SegmentsDownloadedDuration { [Export("segmentsDownloadedDuration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selSegmentsDownloadedDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selSegmentsDownloadedDurationHandle); } } public virtual double DurationWatched { [Export("durationWatched")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationWatchedHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationWatchedHandle); } } public virtual int StallCount { [Export("numberOfStalls")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfStallsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfStallsHandle); } } public virtual long BytesTransferred { [Export("numberOfBytesTransferred")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfBytesTransferredHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfBytesTransferredHandle); } } public virtual double ObservedBitrate { [Export("observedBitrate")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selObservedBitrateHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selObservedBitrateHandle); } } public virtual double IndicatedBitrate { [Export("indicatedBitrate")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selIndicatedBitrateHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selIndicatedBitrateHandle); } } public virtual int DroppedVideoFrameCount { [Export("numberOfDroppedVideoFrames")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfDroppedVideoFramesHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfDroppedVideoFramesHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemAccessLogEvent() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemAccessLogEvent(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemAccessLogEvent(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemAccessLogEvent(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PlaybackStartDate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemErrorEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AVFoundation; public class AVPlayerItemErrorEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSError Error { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AVFoundation.Handle, "AVPlayerItemFailedToPlayToEndTimeErrorKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSError)Runtime.GetNSObject(intPtr); } } public AVPlayerItemErrorEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemErrorLog.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemErrorLog", true)] public class AVPlayerItemErrorLog : NSObject { private static readonly IntPtr selEventsHandle = Selector.GetHandle("events"); private static readonly IntPtr selExtendedLogDataStringEncodingHandle = Selector.GetHandle("extendedLogDataStringEncoding"); private static readonly IntPtr selExtendedLogDataHandle = Selector.GetHandle("extendedLogData"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemErrorLog"); private object __mt_Events_var; private object __mt_ExtendedLogData_var; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayerItemErrorLogEvent[] Events { [Export("events")] get { return (AVPlayerItemErrorLogEvent[])(__mt_Events_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEventsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEventsHandle)))); } } public virtual NSStringEncoding ExtendedLogDataStringEncoding { [Export("extendedLogDataStringEncoding")] get { if (IsDirectBinding) { return (NSStringEncoding)Messaging.UInt32_objc_msgSend(base.Handle, selExtendedLogDataStringEncodingHandle); } return (NSStringEncoding)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selExtendedLogDataStringEncodingHandle); } } public virtual NSData ExtendedLogData { [Export("extendedLogData")] get { return (NSData)(__mt_ExtendedLogData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtendedLogDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtendedLogDataHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemErrorLog() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemErrorLog(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemErrorLog(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemErrorLog(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Events_var = null; __mt_ExtendedLogData_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemErrorLogEvent.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemErrorLogEvent", true)] public class AVPlayerItemErrorLogEvent : NSObject { private static readonly IntPtr selDateHandle = Selector.GetHandle("date"); private static readonly IntPtr selURIHandle = Selector.GetHandle("URI"); private static readonly IntPtr selServerAddressHandle = Selector.GetHandle("serverAddress"); private static readonly IntPtr selPlaybackSessionIDHandle = Selector.GetHandle("playbackSessionID"); private static readonly IntPtr selErrorStatusCodeHandle = Selector.GetHandle("errorStatusCode"); private static readonly IntPtr selErrorDomainHandle = Selector.GetHandle("errorDomain"); private static readonly IntPtr selErrorCommentHandle = Selector.GetHandle("errorComment"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemErrorLogEvent"); private object __mt_Date_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDate Date { [Export("date")] get { return (NSDate)(__mt_Date_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDateHandle))))); } } public virtual string Uri { [Export("URI")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURIHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURIHandle)); } } public virtual string ServerAddress { [Export("serverAddress")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selServerAddressHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selServerAddressHandle)); } } public virtual string PlaybackSessionID { [Export("playbackSessionID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaybackSessionIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaybackSessionIDHandle)); } } public virtual int ErrorStatusCode { [Export("errorStatusCode")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selErrorStatusCodeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selErrorStatusCodeHandle); } } public virtual string ErrorDomain { [Export("errorDomain")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorDomainHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorDomainHandle)); } } public virtual string ErrorComment { [Export("errorComment")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorCommentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorCommentHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemErrorLogEvent() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemErrorLogEvent(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemErrorLogEvent(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemErrorLogEvent(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Date_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemOutput.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemOutput", true)] public class AVPlayerItemOutput : NSObject { private static readonly IntPtr selSuppressesPlayerRenderingHandle = Selector.GetHandle("suppressesPlayerRendering"); private static readonly IntPtr selSetSuppressesPlayerRendering_Handle = Selector.GetHandle("setSuppressesPlayerRendering:"); private static readonly IntPtr selItemTimeForHostTime_Handle = Selector.GetHandle("itemTimeForHostTime:"); private static readonly IntPtr selItemTimeForMachAbsoluteTime_Handle = Selector.GetHandle("itemTimeForMachAbsoluteTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemOutput"); public override IntPtr ClassHandle => class_ptr; public virtual bool SuppressesPlayerRendering { [Export("suppressesPlayerRendering")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSuppressesPlayerRenderingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSuppressesPlayerRenderingHandle); } [Export("setSuppressesPlayerRendering:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSuppressesPlayerRendering_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSuppressesPlayerRendering_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemOutput(IntPtr handle) : base(handle) { } [Export("itemTimeForHostTime:")] public virtual CMTime GetItemTime(double hostTimeInSeconds) { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret_Double(out retval, base.Handle, selItemTimeForHostTime_Handle, hostTimeInSeconds); } else { Messaging.CMTime_objc_msgSendSuper_stret_Double(out retval, base.SuperHandle, selItemTimeForHostTime_Handle, hostTimeInSeconds); } return retval; } [Export("itemTimeForMachAbsoluteTime:")] public virtual CMTime GetItemTime(long machAbsoluteTime) { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret_Int64(out retval, base.Handle, selItemTimeForMachAbsoluteTime_Handle, machAbsoluteTime); } else { Messaging.CMTime_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selItemTimeForMachAbsoluteTime_Handle, machAbsoluteTime); } return retval; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemOutputPullDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVPlayerItemOutputPullDelegate", true)] [Model] public class AVPlayerItemOutputPullDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemOutputPullDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemOutputPullDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemOutputPullDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemOutputPullDelegate(IntPtr handle) : base(handle) { } [Export("outputMediaDataWillChange:")] public virtual void OutputMediaDataWillChange(AVPlayerItemOutput sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outputSequenceWasFlushed:")] public virtual void OutputSequenceWasFlushed(AVPlayerItemOutput output) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVPlayerItemStatus { Unknown, ReadyToPlay, Failed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemTrack.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemTrack", true)] public class AVPlayerItemTrack : NSObject { private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selAssetTrackHandle = Selector.GetHandle("assetTrack"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemTrack"); private object __mt_AssetTrack_var; public override IntPtr ClassHandle => class_ptr; public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual AVAssetTrack AssetTrack { [Export("assetTrack")] get { return (AVAssetTrack)(__mt_AssetTrack_var = ((!IsDirectBinding) ? ((AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAssetTrackHandle))) : ((AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAssetTrackHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemTrack() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemTrack(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemTrack(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemTrack(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AssetTrack_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerItemVideoOutput.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using CoreMedia; using CoreVideo; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerItemVideoOutput", true)] public class AVPlayerItemVideoOutput : AVPlayerItemOutput { private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selDelegateQueueHandle = Selector.GetHandle("delegateQueue"); private static readonly IntPtr selInitWithPixelBufferAttributes_Handle = Selector.GetHandle("initWithPixelBufferAttributes:"); private static readonly IntPtr selHasNewPixelBufferForItemTime_Handle = Selector.GetHandle("hasNewPixelBufferForItemTime:"); private static readonly IntPtr selCopyPixelBufferForItemTimeItemTimeForDisplay_Handle = Selector.GetHandle("copyPixelBufferForItemTime:itemTimeForDisplay:"); private static readonly IntPtr selSetDelegateQueue_Handle = Selector.GetHandle("setDelegate:queue:"); private static readonly IntPtr selRequestNotificationOfMediaDataChangeWithAdvanceInterval_Handle = Selector.GetHandle("requestNotificationOfMediaDataChangeWithAdvanceInterval:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerItemVideoOutput"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } } public AVPlayerItemOutputPullDelegate Delegate => WeakDelegate as AVPlayerItemOutputPullDelegate; public virtual DispatchQueue DelegateQueue { [Export("delegateQueue")] get { if (IsDirectBinding) { return new DispatchQueue(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateQueueHandle)); } return new DispatchQueue(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateQueueHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerItemVideoOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerItemVideoOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemVideoOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerItemVideoOutput(IntPtr handle) : base(handle) { } [Export("initWithPixelBufferAttributes:")] protected AVPlayerItemVideoOutput(NSDictionary pixelBufferAttributes) : base(NSObjectFlag.Empty) { if (pixelBufferAttributes == null) { throw new ArgumentNullException("pixelBufferAttributes"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPixelBufferAttributes_Handle, pixelBufferAttributes.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPixelBufferAttributes_Handle, pixelBufferAttributes.Handle); } } public AVPlayerItemVideoOutput(CVPixelBufferAttributes attributes) : this(attributes?.Dictionary) { } [Export("hasNewPixelBufferForItemTime:")] public virtual bool HasNewPixelBufferForItemTime(CMTime itemTime) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CMTime(base.Handle, selHasNewPixelBufferForItemTime_Handle, itemTime); } return Messaging.bool_objc_msgSendSuper_CMTime(base.SuperHandle, selHasNewPixelBufferForItemTime_Handle, itemTime); } [Export("copyPixelBufferForItemTime:itemTimeForDisplay:")] protected virtual IntPtr WeakCopyPixelBuffer(CMTime itemTime, ref CMTime outItemTimeForDisplay) { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend_CMTime_out_CMTime(base.Handle, selCopyPixelBufferForItemTimeItemTimeForDisplay_Handle, itemTime, out outItemTimeForDisplay); } return Messaging.IntPtr_objc_msgSendSuper_CMTime_out_CMTime(base.SuperHandle, selCopyPixelBufferForItemTimeItemTimeForDisplay_Handle, itemTime, out outItemTimeForDisplay); } [Export("setDelegate:queue:")] public virtual void SetDelegate(AVPlayerItemOutputPullDelegate delegateClass, DispatchQueue delegateQueue) { if (delegateClass == null) { throw new ArgumentNullException("delegateClass"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDelegateQueue_Handle, delegateClass.Handle, delegateQueue.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDelegateQueue_Handle, delegateClass.Handle, delegateQueue.Handle); } } [Export("requestNotificationOfMediaDataChangeWithAdvanceInterval:")] public virtual void RequestNotificationOfMediaDataChange(double advanceInterval) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selRequestNotificationOfMediaDataChangeWithAdvanceInterval_Handle, advanceInterval); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selRequestNotificationOfMediaDataChangeWithAdvanceInterval_Handle, advanceInterval); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerLayer.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVPlayerLayer", true)] public class AVPlayerLayer : CALayer { private static readonly IntPtr selPlayerHandle = Selector.GetHandle("player"); private static readonly IntPtr selSetPlayer_Handle = Selector.GetHandle("setPlayer:"); private static readonly IntPtr selVideoGravityHandle = Selector.GetHandle("videoGravity"); private static readonly IntPtr selSetVideoGravity_Handle = Selector.GetHandle("setVideoGravity:"); private static readonly IntPtr selIsReadyForDisplayHandle = Selector.GetHandle("isReadyForDisplay"); private static readonly IntPtr selPlayerLayerWithPlayer_Handle = Selector.GetHandle("playerLayerWithPlayer:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVPlayerLayer"); private object __mt_Player_var; private object __mt_WeakVideoGravity_var; private static NSString _GravityResizeAspect; private static NSString _GravityResizeAspectFill; private static NSString _GravityResize; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayer Player { [Export("player")] get { return (AVPlayer)(__mt_Player_var = ((!IsDirectBinding) ? ((AVPlayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlayerHandle))) : ((AVPlayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPlayerHandle))))); } [Export("setPlayer:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlayer_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlayer_Handle, value.Handle); } __mt_Player_var = value; } } public string VideoGravity { get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoGravityHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoGravityHandle)); } set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoGravity_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoGravity_Handle, arg); } NSString.ReleaseNative(arg); } } protected virtual NSString WeakVideoGravity { [Export("videoGravity")] get { return (NSString)(__mt_WeakVideoGravity_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoGravityHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoGravityHandle))))); } [Export("setVideoGravity:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoGravity_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoGravity_Handle, value.Handle); } __mt_WeakVideoGravity_var = value; } } public virtual bool ReadyForDisplay { [Export("isReadyForDisplay")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReadyForDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReadyForDisplayHandle); } } [Field("AVLayerVideoGravityResizeAspect", "AVFoundation")] public new static NSString GravityResizeAspect { get { if (_GravityResizeAspect == null) { _GravityResizeAspect = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLayerVideoGravityResizeAspect"); } return _GravityResizeAspect; } } [Field("AVLayerVideoGravityResizeAspectFill", "AVFoundation")] public new static NSString GravityResizeAspectFill { get { if (_GravityResizeAspectFill == null) { _GravityResizeAspectFill = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLayerVideoGravityResizeAspectFill"); } return _GravityResizeAspectFill; } } [Field("AVLayerVideoGravityResize", "AVFoundation")] public new static NSString GravityResize { get { if (_GravityResize == null) { _GravityResize = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVLayerVideoGravityResize"); } return _GravityResize; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVPlayerLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVPlayerLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVPlayerLayer(IntPtr handle) : base(handle) { } [Export("playerLayerWithPlayer:")] public static AVPlayerLayer FromPlayer(AVPlayer player) { if (player == null) { throw new ArgumentNullException("player"); } return (AVPlayerLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPlayerLayerWithPlayer_Handle, player.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Player_var = null; __mt_WeakVideoGravity_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVPlayerStatus.cs ================================================ using ObjCRuntime; namespace AVFoundation; [Since(4, 0)] public enum AVPlayerStatus { Unknown, ReadyToPlay, Failed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVQueuePlayer.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVQueuePlayer", true)] public class AVQueuePlayer : AVPlayer { private static readonly IntPtr selItemsHandle = Selector.GetHandle("items"); private static readonly IntPtr selQueuePlayerWithItems_Handle = Selector.GetHandle("queuePlayerWithItems:"); private static readonly IntPtr selInitWithItems_Handle = Selector.GetHandle("initWithItems:"); private static readonly IntPtr selAdvanceToNextItemHandle = Selector.GetHandle("advanceToNextItem"); private static readonly IntPtr selCanInsertItemAfterItem_Handle = Selector.GetHandle("canInsertItem:afterItem:"); private static readonly IntPtr selInsertItemAfterItem_Handle = Selector.GetHandle("insertItem:afterItem:"); private static readonly IntPtr selRemoveItem_Handle = Selector.GetHandle("removeItem:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr class_ptr = Class.GetHandle("AVQueuePlayer"); private object __mt_Items_var; public override IntPtr ClassHandle => class_ptr; public virtual AVPlayerItem[] Items { [Export("items")] get { return (AVPlayerItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVQueuePlayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVQueuePlayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVQueuePlayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVQueuePlayer(IntPtr handle) : base(handle) { } [Export("queuePlayerWithItems:")] public static AVQueuePlayer FromItems(AVPlayerItem[] items) { if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); AVQueuePlayer result = (AVQueuePlayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selQueuePlayerWithItems_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("initWithItems:")] public AVQueuePlayer(AVPlayerItem[] items) : base(NSObjectFlag.Empty) { if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithItems_Handle, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithItems_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("advanceToNextItem")] public virtual void AdvanceToNextItem() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAdvanceToNextItemHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAdvanceToNextItemHandle); } } [Export("canInsertItem:afterItem:")] public virtual bool CanInsert(AVPlayerItem item, AVPlayerItem afterItem) { if (item == null) { throw new ArgumentNullException("item"); } if (afterItem == null) { throw new ArgumentNullException("afterItem"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selCanInsertItemAfterItem_Handle, item.Handle, afterItem.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCanInsertItemAfterItem_Handle, item.Handle, afterItem.Handle); } [Export("insertItem:afterItem:")] public virtual void InsertItem(AVPlayerItem item, AVPlayerItem afterItem) { if (item == null) { throw new ArgumentNullException("item"); } if (afterItem == null) { throw new ArgumentNullException("afterItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertItemAfterItem_Handle, item.Handle, afterItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertItemAfterItem_Handle, item.Handle, afterItem.Handle); } } [Export("removeItem:")] public virtual void RemoveItem(AVPlayerItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItem_Handle, item.Handle); } } [Export("removeAllItems")] public virtual void RemoveAllItems() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Items_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVSampleRateEventArgs.cs ================================================ using System; namespace AVFoundation; public class AVSampleRateEventArgs : EventArgs { public double SampleRate { get; private set; } public AVSampleRateEventArgs(double sampleRate) { SampleRate = sampleRate; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVStatusEventArgs.cs ================================================ using System; namespace AVFoundation; public class AVStatusEventArgs : EventArgs { public bool Status { get; private set; } public AVStatusEventArgs(bool status) { Status = status; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVTimeHandler.cs ================================================ using CoreMedia; namespace AVFoundation; public delegate void AVTimeHandler(CMTime time); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVTimedMetadataGroup.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVTimedMetadataGroup", true)] public class AVTimedMetadataGroup : NSObject { private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selSetTimeRange_Handle = Selector.GetHandle("setTimeRange:"); private static readonly IntPtr selItemsHandle = Selector.GetHandle("items"); private static readonly IntPtr selSetItems_Handle = Selector.GetHandle("setItems:"); private static readonly IntPtr selInitWithItemsTimeRange_Handle = Selector.GetHandle("initWithItems:timeRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVTimedMetadataGroup"); private object __mt_Items_var; public override IntPtr ClassHandle => class_ptr; public virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } set { throw new NotImplementedException(); } } public virtual AVMetadataItem[] Items { [Export("items")] get { return (AVMetadataItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemsHandle)))); } set { throw new NotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVTimedMetadataGroup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVTimedMetadataGroup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVTimedMetadataGroup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVTimedMetadataGroup(IntPtr handle) : base(handle) { } [Export("initWithItems:timeRange:")] public AVTimedMetadataGroup(AVMetadataItem[] items, CMTimeRange timeRange) : base(NSObjectFlag.Empty) { if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_CMTimeRange(base.Handle, selInitWithItemsTimeRange_Handle, nSArray.Handle, timeRange); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_CMTimeRange(base.SuperHandle, selInitWithItemsTimeRange_Handle, nSArray.Handle, timeRange); } nSArray.Dispose(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Items_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVUrlAsset.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVURLAsset", true)] public class AVUrlAsset : AVAsset { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selAudiovisualMIMETypesHandle = Selector.GetHandle("audiovisualMIMETypes"); private static readonly IntPtr selAudiovisualTypesHandle = Selector.GetHandle("audiovisualTypes"); private static readonly IntPtr selURLAssetWithURLOptions_Handle = Selector.GetHandle("URLAssetWithURL:options:"); private static readonly IntPtr selInitWithURLOptions_Handle = Selector.GetHandle("initWithURL:options:"); private static readonly IntPtr selCompatibleTrackForCompositionTrack_Handle = Selector.GetHandle("compatibleTrackForCompositionTrack:"); private static readonly IntPtr selIsPlayableExtendedMIMEType_Handle = Selector.GetHandle("isPlayableExtendedMIMEType:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVURLAsset"); private object __mt_Url_var; private static NSString _PreferPreciseDurationAndTimingKey; private static NSString _ReferenceRestrictionsKey; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL", ArgumentSemantic.Copy)] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } [Since(5, 0)] public static string[] AudiovisualMimeTypes { [Export("audiovisualMIMETypes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAudiovisualMIMETypesHandle)); } } [Since(5, 0)] public static string[] AudiovisualTypes { [Export("audiovisualTypes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAudiovisualTypesHandle)); } } [Field("AVURLAssetPreferPreciseDurationAndTimingKey", "AVFoundation")] public static NSString PreferPreciseDurationAndTimingKey { get { if (_PreferPreciseDurationAndTimingKey == null) { _PreferPreciseDurationAndTimingKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVURLAssetPreferPreciseDurationAndTimingKey"); } return _PreferPreciseDurationAndTimingKey; } } [Field("AVURLAssetReferenceRestrictionsKey", "AVFoundation")] public static NSString ReferenceRestrictionsKey { get { if (_ReferenceRestrictionsKey == null) { _ReferenceRestrictionsKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVURLAssetReferenceRestrictionsKey"); } return _ReferenceRestrictionsKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVUrlAsset(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVUrlAsset(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVUrlAsset(IntPtr handle) : base(handle) { } [Export("URLAssetWithURL:options:")] public static AVUrlAsset FromUrl(NSUrl URL, NSDictionary options) { if (URL == null) { throw new ArgumentNullException("URL"); } return (AVUrlAsset)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selURLAssetWithURLOptions_Handle, URL.Handle, options?.Handle ?? IntPtr.Zero)); } public static AVUrlAsset Create(NSUrl url, AVUrlAssetOptions options) { return FromUrl(url, options?.Dictionary); } [Export("initWithURL:options:")] public AVUrlAsset(NSUrl URL, NSDictionary options) : base(NSObjectFlag.Empty) { if (URL == null) { throw new ArgumentNullException("URL"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithURLOptions_Handle, URL.Handle, options?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithURLOptions_Handle, URL.Handle, options?.Handle ?? IntPtr.Zero); } } public AVUrlAsset(NSUrl url, AVUrlAssetOptions options) : this(url, options?.Dictionary) { } [Export("compatibleTrackForCompositionTrack:")] public virtual AVAssetTrack CompatibleTrack(AVCompositionTrack forCompositionTrack) { if (forCompositionTrack == null) { throw new ArgumentNullException("forCompositionTrack"); } if (IsDirectBinding) { return (AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCompatibleTrackForCompositionTrack_Handle, forCompositionTrack.Handle)); } return (AVAssetTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompatibleTrackForCompositionTrack_Handle, forCompositionTrack.Handle)); } [Export("isPlayableExtendedMIMEType:")] public static bool IsPlayable(string extendedMimeType) { if (extendedMimeType == null) { throw new ArgumentNullException("extendedMimeType"); } IntPtr arg = NSString.CreateNative(extendedMimeType); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selIsPlayableExtendedMIMEType_Handle, arg); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVUrlAssetOptions.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public class AVUrlAssetOptions : DictionaryContainer { public bool? PreferPreciseDurationAndTiming { get { return GetBoolValue(AVUrlAsset.PreferPreciseDurationAndTimingKey); } set { SetBooleanValue(AVUrlAsset.PreferPreciseDurationAndTimingKey, value); } } [Since(5, 0)] public AVAssetReferenceRestrictions? ReferenceRestrictions { get { return (AVAssetReferenceRestrictions?)GetInt32Value(AVUrlAsset.ReferenceRestrictionsKey); } set { SetNumberValue(AVUrlAsset.ReferenceRestrictionsKey, (int?)value); } } public AVUrlAssetOptions() : base(new NSMutableDictionary()) { } public AVUrlAssetOptions(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideo.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVVideo { private static NSString _CodecKey; private static NSString _CodecH264; private static NSString _CodecJPEG; private static NSString _WidthKey; private static NSString _HeightKey; private static NSString _ScalingModeKey; private static NSString _CompressionPropertiesKey; private static NSString _AverageBitRateKey; private static NSString _MaxKeyFrameIntervalKey; private static NSString _ProfileLevelKey; private static NSString _QualityKey; private static NSString _ProfileLevelH264Baseline30; private static NSString _ProfileLevelH264Baseline31; private static NSString _ProfileLevelH264Main30; private static NSString _ProfileLevelH264Main31; private static NSString _ProfileLevelH264Baseline41; private static NSString _ProfileLevelH264Main32; private static NSString _ProfileLevelH264Main41; private static NSString _PixelAspectRatioKey; private static NSString _PixelAspectRatioHorizontalSpacingKey; private static NSString _PixelAspectRatioVerticalSpacingKey; private static NSString _CleanApertureKey; private static NSString _CleanApertureWidthKey; private static NSString _CleanApertureHeightKey; private static NSString _CleanApertureHorizontalOffsetKey; private static NSString _CleanApertureVerticalOffsetKey; [Field("AVVideoCodecKey", "AVFoundation")] public static NSString CodecKey { get { if (_CodecKey == null) { _CodecKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCodecKey"); } return _CodecKey; } } [Field("AVVideoCodecH264", "AVFoundation")] public static NSString CodecH264 { get { if (_CodecH264 == null) { _CodecH264 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCodecH264"); } return _CodecH264; } } [Field("AVVideoCodecJPEG", "AVFoundation")] public static NSString CodecJPEG { get { if (_CodecJPEG == null) { _CodecJPEG = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCodecJPEG"); } return _CodecJPEG; } } [Field("AVVideoWidthKey", "AVFoundation")] public static NSString WidthKey { get { if (_WidthKey == null) { _WidthKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoWidthKey"); } return _WidthKey; } } [Field("AVVideoHeightKey", "AVFoundation")] public static NSString HeightKey { get { if (_HeightKey == null) { _HeightKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoHeightKey"); } return _HeightKey; } } [Field("AVVideoScalingModeKey", "AVFoundation")] public static NSString ScalingModeKey { get { if (_ScalingModeKey == null) { _ScalingModeKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoScalingModeKey"); } return _ScalingModeKey; } } [Field("AVVideoCompressionPropertiesKey", "AVFoundation")] public static NSString CompressionPropertiesKey { get { if (_CompressionPropertiesKey == null) { _CompressionPropertiesKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCompressionPropertiesKey"); } return _CompressionPropertiesKey; } } [Field("AVVideoAverageBitRateKey", "AVFoundation")] public static NSString AverageBitRateKey { get { if (_AverageBitRateKey == null) { _AverageBitRateKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoAverageBitRateKey"); } return _AverageBitRateKey; } } [Field("AVVideoMaxKeyFrameIntervalKey", "AVFoundation")] public static NSString MaxKeyFrameIntervalKey { get { if (_MaxKeyFrameIntervalKey == null) { _MaxKeyFrameIntervalKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoMaxKeyFrameIntervalKey"); } return _MaxKeyFrameIntervalKey; } } [Field("AVVideoProfileLevelKey", "AVFoundation")] public static NSString ProfileLevelKey { get { if (_ProfileLevelKey == null) { _ProfileLevelKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelKey"); } return _ProfileLevelKey; } } [Field("AVVideoQualityKey", "AVFoundation")] public static NSString QualityKey { get { if (_QualityKey == null) { _QualityKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoQualityKey"); } return _QualityKey; } } [Field("AVVideoProfileLevelH264Baseline30", "AVFoundation")] public static NSString ProfileLevelH264Baseline30 { get { if (_ProfileLevelH264Baseline30 == null) { _ProfileLevelH264Baseline30 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Baseline30"); } return _ProfileLevelH264Baseline30; } } [Field("AVVideoProfileLevelH264Baseline31", "AVFoundation")] public static NSString ProfileLevelH264Baseline31 { get { if (_ProfileLevelH264Baseline31 == null) { _ProfileLevelH264Baseline31 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Baseline31"); } return _ProfileLevelH264Baseline31; } } [Field("AVVideoProfileLevelH264Main30", "AVFoundation")] public static NSString ProfileLevelH264Main30 { get { if (_ProfileLevelH264Main30 == null) { _ProfileLevelH264Main30 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Main30"); } return _ProfileLevelH264Main30; } } [Field("AVVideoProfileLevelH264Main31", "AVFoundation")] public static NSString ProfileLevelH264Main31 { get { if (_ProfileLevelH264Main31 == null) { _ProfileLevelH264Main31 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Main31"); } return _ProfileLevelH264Main31; } } [Field("AVVideoProfileLevelH264Baseline41", "AVFoundation")] public static NSString ProfileLevelH264Baseline41 { get { if (_ProfileLevelH264Baseline41 == null) { _ProfileLevelH264Baseline41 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Baseline41"); } return _ProfileLevelH264Baseline41; } } [Field("AVVideoProfileLevelH264Main32", "AVFoundation")] [MountainLion] public static NSString ProfileLevelH264Main32 { [MountainLion] get { if (_ProfileLevelH264Main32 == null) { _ProfileLevelH264Main32 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Main32"); } return _ProfileLevelH264Main32; } } [Field("AVVideoProfileLevelH264Main41", "AVFoundation")] public static NSString ProfileLevelH264Main41 { get { if (_ProfileLevelH264Main41 == null) { _ProfileLevelH264Main41 = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoProfileLevelH264Main41"); } return _ProfileLevelH264Main41; } } [Field("AVVideoPixelAspectRatioKey", "AVFoundation")] public static NSString PixelAspectRatioKey { get { if (_PixelAspectRatioKey == null) { _PixelAspectRatioKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoPixelAspectRatioKey"); } return _PixelAspectRatioKey; } } [Field("AVVideoPixelAspectRatioHorizontalSpacingKey", "AVFoundation")] public static NSString PixelAspectRatioHorizontalSpacingKey { get { if (_PixelAspectRatioHorizontalSpacingKey == null) { _PixelAspectRatioHorizontalSpacingKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoPixelAspectRatioHorizontalSpacingKey"); } return _PixelAspectRatioHorizontalSpacingKey; } } [Field("AVVideoPixelAspectRatioVerticalSpacingKey", "AVFoundation")] public static NSString PixelAspectRatioVerticalSpacingKey { get { if (_PixelAspectRatioVerticalSpacingKey == null) { _PixelAspectRatioVerticalSpacingKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoPixelAspectRatioVerticalSpacingKey"); } return _PixelAspectRatioVerticalSpacingKey; } } [Field("AVVideoCleanApertureKey", "AVFoundation")] public static NSString CleanApertureKey { get { if (_CleanApertureKey == null) { _CleanApertureKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCleanApertureKey"); } return _CleanApertureKey; } } [Field("AVVideoCleanApertureWidthKey", "AVFoundation")] public static NSString CleanApertureWidthKey { get { if (_CleanApertureWidthKey == null) { _CleanApertureWidthKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCleanApertureWidthKey"); } return _CleanApertureWidthKey; } } [Field("AVVideoCleanApertureHeightKey", "AVFoundation")] public static NSString CleanApertureHeightKey { get { if (_CleanApertureHeightKey == null) { _CleanApertureHeightKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCleanApertureHeightKey"); } return _CleanApertureHeightKey; } } [Field("AVVideoCleanApertureHorizontalOffsetKey", "AVFoundation")] public static NSString CleanApertureHorizontalOffsetKey { get { if (_CleanApertureHorizontalOffsetKey == null) { _CleanApertureHorizontalOffsetKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCleanApertureHorizontalOffsetKey"); } return _CleanApertureHorizontalOffsetKey; } } [Field("AVVideoCleanApertureVerticalOffsetKey", "AVFoundation")] public static NSString CleanApertureVerticalOffsetKey { get { if (_CleanApertureVerticalOffsetKey == null) { _CleanApertureVerticalOffsetKey = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoCleanApertureVerticalOffsetKey"); } return _CleanApertureVerticalOffsetKey; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCleanApertureSettings.cs ================================================ using Foundation; namespace AVFoundation; public class AVVideoCleanApertureSettings : DictionaryContainer { public int? Width { get { return GetInt32Value(AVVideo.CleanApertureWidthKey); } set { SetNumberValue(AVVideo.CleanApertureWidthKey, value); } } public int? Height { get { return GetInt32Value(AVVideo.CleanApertureHeightKey); } set { SetNumberValue(AVVideo.CleanApertureHeightKey, value); } } public int? HorizontalOffset { get { return GetInt32Value(AVVideo.CleanApertureHorizontalOffsetKey); } set { SetNumberValue(AVVideo.CleanApertureHorizontalOffsetKey, value); } } public int? VerticalOffset { get { return GetInt32Value(AVVideo.CleanApertureVerticalOffsetKey); } set { SetNumberValue(AVVideo.CleanApertureVerticalOffsetKey, value); } } public AVVideoCleanApertureSettings() : base(new NSMutableDictionary()) { } public AVVideoCleanApertureSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCodec.cs ================================================ namespace AVFoundation; public enum AVVideoCodec { H264 = 1, JPEG } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCodecSettings.cs ================================================ using System; using Foundation; namespace AVFoundation; public class AVVideoCodecSettings : DictionaryContainer { public int? AverageBitRate { get { return GetInt32Value(AVVideo.AverageBitRateKey); } set { SetNumberValue(AVVideo.AverageBitRateKey, value); } } public float? JPEGQuality { get { return GetFloatValue(AVVideo.QualityKey); } set { SetNumberValue(AVVideo.QualityKey, value); } } public int? MaxKeyFrameInterval { get { return GetInt32Value(AVVideo.MaxKeyFrameIntervalKey); } set { SetNumberValue(AVVideo.MaxKeyFrameIntervalKey, value); } } public AVVideoProfileLevelH264? ProfileLevelH264 { set { NSString nSString = value switch { AVVideoProfileLevelH264.Baseline30 => AVVideo.ProfileLevelH264Baseline30, AVVideoProfileLevelH264.Baseline31 => AVVideo.ProfileLevelH264Baseline31, AVVideoProfileLevelH264.Baseline41 => AVVideo.ProfileLevelH264Baseline41, AVVideoProfileLevelH264.Main30 => AVVideo.ProfileLevelH264Main30, AVVideoProfileLevelH264.Main31 => AVVideo.ProfileLevelH264Main31, AVVideoProfileLevelH264.Main32 => AVVideo.ProfileLevelH264Main32, AVVideoProfileLevelH264.Main41 => AVVideo.ProfileLevelH264Main41, null => null, _ => throw new ArgumentException("value"), }; if (nSString == null) { RemoveValue(AVVideo.ProfileLevelKey); } else { SetNativeValue(AVVideo.ProfileLevelKey, nSString); } } } public AVVideoPixelAspectRatioSettings PixelAspectRatio { set { SetNativeValue(AVVideo.PixelAspectRatioKey, value?.Dictionary); } } public AVVideoCleanApertureSettings VideoCleanAperture { set { SetNativeValue(AVVideo.CleanApertureKey, value?.Dictionary); } } public AVVideoCodecSettings() : base(new NSMutableDictionary()) { } public AVVideoCodecSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoComposition.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVVideoComposition", true)] public class AVVideoComposition : NSObject { private static readonly IntPtr selFrameDurationHandle = Selector.GetHandle("frameDuration"); private static readonly IntPtr selRenderSizeHandle = Selector.GetHandle("renderSize"); private static readonly IntPtr selInstructionsHandle = Selector.GetHandle("instructions"); private static readonly IntPtr selAnimationToolHandle = Selector.GetHandle("animationTool"); private static readonly IntPtr selIsValidForAssetTimeRangeValidationDelegate_Handle = Selector.GetHandle("isValidForAsset:timeRange:validationDelegate:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVVideoComposition"); private object __mt_Instructions_var; private object __mt_AnimationTool_var; public override IntPtr ClassHandle => class_ptr; public virtual CMTime FrameDuration { [Export("frameDuration")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selFrameDurationHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameDurationHandle); } return retval; } } public virtual CGSize RenderSize { [Export("renderSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selRenderSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selRenderSizeHandle); } } public virtual AVVideoCompositionInstruction[] Instructions { [Export("instructions", ArgumentSemantic.Copy)] get { return (AVVideoCompositionInstruction[])(__mt_Instructions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInstructionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInstructionsHandle)))); } } public virtual AVVideoCompositionCoreAnimationTool AnimationTool { [Export("animationTool", ArgumentSemantic.Retain)] get { return (AVVideoCompositionCoreAnimationTool)(__mt_AnimationTool_var = ((!IsDirectBinding) ? ((AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationToolHandle))) : ((AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationToolHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVVideoComposition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVVideoComposition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoComposition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoComposition(IntPtr handle) : base(handle) { } [Export("isValidForAsset:timeRange:validationDelegate:")] public virtual bool IsValidForAsset(AVAsset asset, CMTimeRange timeRange, AVVideoCompositionValidationHandling validationDelegate) { if (asset == null) { throw new ArgumentNullException("asset"); } if (validationDelegate == null) { throw new ArgumentNullException("validationDelegate"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CMTimeRange_IntPtr(base.Handle, selIsValidForAssetTimeRangeValidationDelegate_Handle, asset.Handle, timeRange, validationDelegate.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_CMTimeRange_IntPtr(base.SuperHandle, selIsValidForAssetTimeRangeValidationDelegate_Handle, asset.Handle, timeRange, validationDelegate.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Instructions_var = null; __mt_AnimationTool_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCompositionCoreAnimationTool.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVVideoCompositionCoreAnimationTool", true)] public class AVVideoCompositionCoreAnimationTool : NSObject { private static readonly IntPtr selVideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID_Handle = Selector.GetHandle("videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:"); private static readonly IntPtr selVideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayerInLayer_Handle = Selector.GetHandle("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVVideoCompositionCoreAnimationTool"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVVideoCompositionCoreAnimationTool() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVVideoCompositionCoreAnimationTool(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionCoreAnimationTool(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionCoreAnimationTool(IntPtr handle) : base(handle) { } [Export("videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:")] public static AVVideoCompositionCoreAnimationTool FromLayer(CALayer layer, int trackID) { if (layer == null) { throw new ArgumentNullException("layer"); } return (AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_int(class_ptr, selVideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID_Handle, layer.Handle, trackID)); } [Export("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:")] public static AVVideoCompositionCoreAnimationTool FromLayer(CALayer videoLayer, CALayer animationLayer) { if (videoLayer == null) { throw new ArgumentNullException("videoLayer"); } if (animationLayer == null) { throw new ArgumentNullException("animationLayer"); } return (AVVideoCompositionCoreAnimationTool)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selVideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayerInLayer_Handle, videoLayer.Handle, animationLayer.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCompositionInstruction.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVVideoCompositionInstruction", true)] public class AVVideoCompositionInstruction : NSObject { private static readonly IntPtr selTimeRangeHandle = Selector.GetHandle("timeRange"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selLayerInstructionsHandle = Selector.GetHandle("layerInstructions"); private static readonly IntPtr selEnablePostProcessingHandle = Selector.GetHandle("enablePostProcessing"); private static readonly IntPtr class_ptr = Class.GetHandle("AVVideoCompositionInstruction"); private object __mt_LayerInstructions_var; public override IntPtr ClassHandle => class_ptr; public virtual CMTimeRange TimeRange { [Export("timeRange")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selTimeRangeHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTimeRangeHandle); } return retval; } } public virtual CGColor BackgroundColor { [Export("backgroundColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle)); } [Export("setBackgroundColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } } } public virtual AVVideoCompositionLayerInstruction[] LayerInstructions { [Export("layerInstructions", ArgumentSemantic.Copy)] get { return (AVVideoCompositionLayerInstruction[])(__mt_LayerInstructions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayerInstructionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLayerInstructionsHandle)))); } } public virtual bool EnablePostProcessing { [Export("enablePostProcessing")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEnablePostProcessingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEnablePostProcessingHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVVideoCompositionInstruction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVVideoCompositionInstruction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionInstruction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionInstruction(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LayerInstructions_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCompositionLayerInstruction.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Register("AVVideoCompositionLayerInstruction", true)] public class AVVideoCompositionLayerInstruction : NSObject { private static readonly IntPtr selTrackIDHandle = Selector.GetHandle("trackID"); private static readonly IntPtr selGetTransformRampForTimeStartTransformEndTransformTimeRange_Handle = Selector.GetHandle("getTransformRampForTime:startTransform:endTransform:timeRange:"); private static readonly IntPtr selGetOpacityRampForTimeStartOpacityEndOpacityTimeRange_Handle = Selector.GetHandle("getOpacityRampForTime:startOpacity:endOpacity:timeRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("AVVideoCompositionLayerInstruction"); public override IntPtr ClassHandle => class_ptr; public virtual int TrackID { [Export("trackID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackIDHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public AVVideoCompositionLayerInstruction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVVideoCompositionLayerInstruction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionLayerInstruction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionLayerInstruction(IntPtr handle) : base(handle) { } [Export("getTransformRampForTime:startTransform:endTransform:timeRange:")] public virtual bool GetTransformRamp(CMTime time, ref CGAffineTransform startTransform, ref CGAffineTransform endTransform, ref CMTimeRange timeRange) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CMTime_out_CGAffineTransform_out_CGAffineTransform_out_CMTimeRange(base.Handle, selGetTransformRampForTimeStartTransformEndTransformTimeRange_Handle, time, out startTransform, out endTransform, out timeRange); } return Messaging.bool_objc_msgSendSuper_CMTime_out_CGAffineTransform_out_CGAffineTransform_out_CMTimeRange(base.SuperHandle, selGetTransformRampForTimeStartTransformEndTransformTimeRange_Handle, time, out startTransform, out endTransform, out timeRange); } [Export("getOpacityRampForTime:startOpacity:endOpacity:timeRange:")] public virtual bool GetOpacityRamp(CMTime time, ref float startOpacity, ref float endOpacity, ref CMTimeRange timeRange) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CMTime_out_Single_out_Single_out_CMTimeRange(base.Handle, selGetOpacityRampForTimeStartOpacityEndOpacityTimeRange_Handle, time, out startOpacity, out endOpacity, out timeRange); } return Messaging.bool_objc_msgSendSuper_CMTime_out_Single_out_Single_out_CMTimeRange(base.SuperHandle, selGetOpacityRampForTimeStartOpacityEndOpacityTimeRange_Handle, time, out startOpacity, out endOpacity, out timeRange); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoCompositionValidationHandling.cs ================================================ using System; using System.ComponentModel; using CoreMedia; using Foundation; using ObjCRuntime; namespace AVFoundation; [Protocol] [Register("AVVideoCompositionValidationHandling", true)] [Model] public class AVVideoCompositionValidationHandling : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public AVVideoCompositionValidationHandling(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionValidationHandling(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public AVVideoCompositionValidationHandling(IntPtr handle) : base(handle) { } [Export("videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:")] public virtual bool ShouldContinueValidatingAfterFindingInvalidValueForKey(AVVideoComposition videoComposition, string key) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:")] public virtual bool ShouldContinueValidatingAfterFindingEmptyTimeRange(AVVideoComposition videoComposition, CMTimeRange timeRange) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("videoComposition:shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:")] public virtual bool ShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(AVVideoComposition videoComposition, AVVideoCompositionInstruction videoCompositionInstruction) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:")] public virtual bool ShouldContinueValidatingAfterFindingInvalidTrackIDInInstruction(AVVideoComposition videoComposition, AVVideoCompositionInstruction videoCompositionInstruction, AVVideoCompositionLayerInstruction layerInstruction, AVAsset asset) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoFieldMode.cs ================================================ namespace AVFoundation; public enum AVVideoFieldMode { Both, TopOnly, BottomOnly, Deinterlace } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoPixelAspectRatioSettings.cs ================================================ using Foundation; namespace AVFoundation; public class AVVideoPixelAspectRatioSettings : DictionaryContainer { public int? HorizontalSpacing { get { return GetInt32Value(AVVideo.PixelAspectRatioHorizontalSpacingKey); } set { SetNumberValue(AVVideo.PixelAspectRatioHorizontalSpacingKey, value); } } public int? VerticalSpacing { get { return GetInt32Value(AVVideo.PixelAspectRatioVerticalSpacingKey); } set { SetNumberValue(AVVideo.PixelAspectRatioVerticalSpacingKey, value); } } public AVVideoPixelAspectRatioSettings() : base(new NSMutableDictionary()) { } public AVVideoPixelAspectRatioSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoProfileLevelH264.cs ================================================ namespace AVFoundation; public enum AVVideoProfileLevelH264 { Baseline30 = 1, Baseline31, Baseline41, Main30, Main31, Main32, Main41 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoScalingMode.cs ================================================ namespace AVFoundation; public enum AVVideoScalingMode { Fit, Resize, ResizeAspect, ResizeAspectFill } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoScalingModeKey.cs ================================================ using Foundation; using ObjCRuntime; namespace AVFoundation; public static class AVVideoScalingModeKey { private static NSString _Fit; private static NSString _Resize; private static NSString _ResizeAspect; private static NSString _ResizeAspectFill; [Field("AVVideoScalingModeFit", "AVFoundation")] public static NSString Fit { get { if (_Fit == null) { _Fit = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoScalingModeFit"); } return _Fit; } } [Field("AVVideoScalingModeResize", "AVFoundation")] public static NSString Resize { get { if (_Resize == null) { _Resize = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoScalingModeResize"); } return _Resize; } } [Field("AVVideoScalingModeResizeAspect", "AVFoundation")] public static NSString ResizeAspect { get { if (_ResizeAspect == null) { _ResizeAspect = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoScalingModeResizeAspect"); } return _ResizeAspect; } } [Field("AVVideoScalingModeResizeAspectFill", "AVFoundation")] public static NSString ResizeAspectFill { get { if (_ResizeAspectFill == null) { _ResizeAspectFill = Dlfcn.GetStringConstant(Libraries.AVFoundation.Handle, "AVVideoScalingModeResizeAspectFill"); } return _ResizeAspectFill; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoSettings.cs ================================================ using CoreVideo; using Foundation; namespace AVFoundation; public class AVVideoSettings { [Advice("Use PixelBufferAttributes")] public CVPixelFormatType? PixelFormat { get; set; } public AVVideoSettings() { } [Advice("Use PixelBufferAttributes")] public AVVideoSettings(CVPixelFormatType formatType) { PixelFormat = formatType; } [Advice("Use PixelBufferAttributes")] public NSDictionary ToDictionary() { if (!PixelFormat.HasValue) { return null; } return NSDictionary.FromObjectAndKey(new NSNumber((int)PixelFormat.Value), CVPixelBuffer.PixelFormatTypeKey); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoSettingsCompressed.cs ================================================ using System; using Foundation; namespace AVFoundation; public class AVVideoSettingsCompressed : DictionaryContainer { public AVVideoCodec? Codec { set { NSString nSString = value switch { AVVideoCodec.H264 => AVVideo.CodecH264, AVVideoCodec.JPEG => AVVideo.CodecJPEG, null => null, _ => throw new ArgumentException("value"), }; if (nSString == null) { RemoveValue(AVVideo.CodecKey); } else { SetNativeValue(AVVideo.CodecKey, nSString); } } } public int? Width { get { return GetInt32Value(AVVideo.WidthKey); } set { SetNumberValue(AVVideo.WidthKey, value); } } public int? Height { get { return GetInt32Value(AVVideo.HeightKey); } set { SetNumberValue(AVVideo.HeightKey, value); } } public AVVideoScalingMode? ScalingMode { set { NSString nSString = value switch { AVVideoScalingMode.Fit => AVVideoScalingModeKey.Fit, AVVideoScalingMode.Resize => AVVideoScalingModeKey.Resize, AVVideoScalingMode.ResizeAspect => AVVideoScalingModeKey.ResizeAspect, AVVideoScalingMode.ResizeAspectFill => AVVideoScalingModeKey.ResizeAspectFill, null => null, _ => throw new ArgumentException("value"), }; if (nSString == null) { RemoveValue(AVVideo.ScalingModeKey); } else { SetNativeValue(AVVideo.ScalingModeKey, nSString); } } } public AVVideoCodecSettings CodecSettings { set { SetNativeValue(AVVideo.CompressionPropertiesKey, value?.Dictionary); } } public AVVideoSettingsCompressed() : base(new NSMutableDictionary()) { } public AVVideoSettingsCompressed(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AVVideoSettingsUncompressed.cs ================================================ using System; using CoreVideo; using Foundation; namespace AVFoundation; public class AVVideoSettingsUncompressed : CVPixelBufferAttributes { public AVVideoScalingMode? ScalingMode { set { NSString nSString = value switch { AVVideoScalingMode.Fit => AVVideoScalingModeKey.Fit, AVVideoScalingMode.Resize => AVVideoScalingModeKey.Resize, AVVideoScalingMode.ResizeAspect => AVVideoScalingModeKey.ResizeAspect, AVVideoScalingMode.ResizeAspectFill => AVVideoScalingModeKey.ResizeAspectFill, null => null, _ => throw new ArgumentException("value"), }; if (nSString == null) { RemoveValue(AVVideo.ScalingModeKey); } else { SetNativeValue(AVVideo.ScalingModeKey, nSString); } } } public AVVideoSettingsUncompressed() { } public AVVideoSettingsUncompressed(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/AudioSettings.cs ================================================ using System; using AudioToolbox; using Foundation; using ObjCRuntime; namespace AVFoundation; [Since(6, 0)] public class AudioSettings : DictionaryContainer { public AudioFormatType? Format { get { return (AudioFormatType?)GetInt32Value(AVAudioSettings.AVFormatIDKey); } set { SetNumberValue(AVAudioSettings.AVFormatIDKey, (int?)value); } } public float? SampleRate { get { return GetFloatValue(AVAudioSettings.AVSampleRateKey); } set { SetNumberValue(AVAudioSettings.AVSampleRateKey, value); } } public int? NumberChannels { get { return GetInt32Value(AVAudioSettings.AVNumberOfChannelsKey); } set { SetNumberValue(AVAudioSettings.AVNumberOfChannelsKey, value); } } public int? LinearPcmBitDepth { get { return GetInt32Value(AVAudioSettings.AVLinearPCMBitDepthKey); } set { if (value != 8 && value != 16 && value != 24 && value != 32) { throw new ArgumentOutOfRangeException("value must be of 8, 16, 24 or 32"); } SetNumberValue(AVAudioSettings.AVLinearPCMBitDepthKey, value); } } public bool? LinearPcmBigEndian { get { return GetBoolValue(AVAudioSettings.AVLinearPCMIsBigEndianKey); } set { SetBooleanValue(AVAudioSettings.AVLinearPCMIsBigEndianKey, value); } } public bool? LinearPcmFloat { get { return GetBoolValue(AVAudioSettings.AVLinearPCMIsFloatKey); } set { SetBooleanValue(AVAudioSettings.AVLinearPCMIsFloatKey, value); } } public bool? LinearPcmNonInterleaved { get { return GetBoolValue(AVAudioSettings.AVLinearPCMIsNonInterleaved); } set { SetBooleanValue(AVAudioSettings.AVLinearPCMIsNonInterleaved, value); } } public AVAudioQuality? AudioQuality { get { return (AVAudioQuality?)GetInt32Value(AVAudioSettings.AVEncoderAudioQualityKey); } set { SetNumberValue(AVAudioSettings.AVEncoderAudioQualityKey, (int?)value); } } public AVAudioQuality? SampleRateConverterAudioQuality { get { return (AVAudioQuality?)GetInt32Value(AVAudioSettings.AVSampleRateConverterAudioQualityKey); } set { SetNumberValue(AVAudioSettings.AVSampleRateConverterAudioQualityKey, (int?)value); } } public int? EncoderBitRate { get { return GetInt32Value(AVAudioSettings.AVEncoderBitRateKey); } set { SetNumberValue(AVAudioSettings.AVEncoderBitRateKey, value); } } public int? EncoderBitRatePerChannel { get { return GetInt32Value(AVAudioSettings.AVEncoderBitRatePerChannelKey); } set { SetNumberValue(AVAudioSettings.AVEncoderBitRatePerChannelKey, value); } } public int? EncoderBitDepthHint { get { return GetInt32Value(AVAudioSettings.AVEncoderBitDepthHintKey); } set { if (value < 8 || value > 32) { throw new ArgumentOutOfRangeException("value is required to be between 8 and 32"); } SetNumberValue(AVAudioSettings.AVEncoderBitDepthHintKey, value); } } public AudioChannelLayout ChannelLayout { set { SetNativeValue(AVAudioSettings.AVChannelLayoutKey, value?.AsData()); } } public AudioSettings() : base(new NSMutableDictionary()) { } public AudioSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/InternalAVAudioPlayerDelegate.cs ================================================ using System; using Foundation; namespace AVFoundation; internal sealed class InternalAVAudioPlayerDelegate : AVAudioPlayerDelegate { internal EventHandler cbEndInterruption; internal EventHandler cbBeginInterruption; internal EventHandler cbFinishedPlaying; internal EventHandler cbDecoderError; [Preserve(Conditional = true)] public override void FinishedPlaying(AVAudioPlayer player, bool flag) { if (cbFinishedPlaying != null) { cbFinishedPlaying(player, new AVStatusEventArgs(flag)); } if (player.Handle == IntPtr.Zero) { throw new ObjectDisposedException("player", "the player object was Dispose()d during the callback, this has corrupted the state of the program"); } } [Preserve(Conditional = true)] public override void DecoderError(AVAudioPlayer player, NSError error) { if (cbDecoderError != null) { cbDecoderError(player, new AVErrorEventArgs(error)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AVFoundation/InternalAVAudioRecorderDelegate.cs ================================================ using System; using Foundation; namespace AVFoundation; internal class InternalAVAudioRecorderDelegate : AVAudioRecorderDelegate { internal EventHandler cbEndInterruption; internal EventHandler cbBeginInterruption; internal EventHandler cbFinishedRecording; internal EventHandler cbEncoderError; [Preserve(Conditional = true)] public override void FinishedRecording(AVAudioRecorder recorder, bool flag) { if (cbFinishedRecording != null) { cbFinishedRecording(recorder, new AVStatusEventArgs(flag)); } } [Preserve(Conditional = true)] public override void EncoderError(AVAudioRecorder recorder, NSError error) { if (cbEncoderError != null) { cbEncoderError(recorder, new AVErrorEventArgs(error)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABAddressBook.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AddressBook; public class ABAddressBook : INativeObject, IDisposable, IEnumerable, IEnumerable { internal delegate void InnerCompleted(IntPtr block, bool success, IntPtr error); private delegate void ABExternalChangeCallback(IntPtr addressBook, IntPtr info, IntPtr context); public static readonly NSString ErrorDomain; private IntPtr handle; private GCHandle sender; private static readonly InnerCompleted static_completionHandler; private object eventLock = new object(); private EventHandler externalChange; public IntPtr Handle { get { AssertValid(); return handle; } } public bool HasUnsavedChanges { get { AssertValid(); return ABAddressBookHasUnsavedChanges(Handle); } } public int PeopleCount { get { AssertValid(); return ABAddressBookGetPersonCount(Handle); } } public int GroupCount { get { AssertValid(); return ABAddressBookGetGroupCount(Handle); } } public event EventHandler ExternalChange { add { lock (eventLock) { if (externalChange == null) { sender = GCHandle.Alloc(this); ABAddressBookRegisterExternalChangeCallback(Handle, ExternalChangeCallback, GCHandle.ToIntPtr(sender)); } externalChange = (EventHandler)Delegate.Combine(externalChange, value); } } remove { lock (eventLock) { externalChange = (EventHandler)Delegate.Remove(externalChange, value); if (externalChange == null) { ABAddressBookUnregisterExternalChangeCallback(Handle, ExternalChangeCallback, GCHandle.ToIntPtr(sender)); sender.Free(); } } } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] [Obsolete("Deprecated in iOS 6.0")] internal static extern IntPtr ABAddressBookCreate(); [Obsolete("Deprecated in iOS 6.0. Use static Create method instead")] public ABAddressBook() { handle = ABAddressBookCreate(); InitConstants.Init(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] internal static extern IntPtr ABAddressBookCreateWithOptions(IntPtr dictionary, out IntPtr cfError); [Since(6, 0)] public static ABAddressBook Create(out NSError error) { IntPtr cfError; IntPtr intPtr = ABAddressBookCreateWithOptions(IntPtr.Zero, out cfError); if (intPtr == IntPtr.Zero) { error = new NSError(cfError); return null; } error = null; return new ABAddressBook(intPtr, owns: true); } internal ABAddressBook(IntPtr handle, bool owns) { InitConstants.Init(); if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } internal ABAddressBook(IntPtr handle) { InitConstants.Init(); this.handle = handle; } static ABAddressBook() { static_completionHandler = TrampolineCompletionHandler; IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { ErrorDomain = Dlfcn.GetStringConstant(intPtr, "ABAddressBookErrorDomain"); } finally { Dlfcn.dlclose(intPtr); } } ~ABAddressBook() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); } if (sender.IsAllocated) { sender.Free(); } handle = IntPtr.Zero; } private void AssertValid() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(""); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern ABAuthorizationStatus ABAddressBookGetAuthorizationStatus(); [Since(6, 0)] public static ABAuthorizationStatus GetAuthorizationStatus() { return ABAddressBookGetAuthorizationStatus(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private unsafe static extern void ABAddressBookRequestAccessWithCompletion(IntPtr addressbook, void* completion); [Since(6, 0)] public unsafe void RequestAccess(Action onCompleted) { if (onCompleted == null) { throw new ArgumentNullException("onCompleted"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(static_completionHandler, onCompleted); ABAddressBookRequestAccessWithCompletion(Handle, ptr); ptr->CleanupBlock(); } [MonoPInvokeCallback(typeof(InnerCompleted))] private unsafe static void TrampolineCompletionHandler(IntPtr block, bool success, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((ptr->global_handle != IntPtr.Zero) ? GCHandle.FromIntPtr(ptr->global_handle).Target : GCHandle.FromIntPtr(ptr->local_handle).Target))?.Invoke(success, (error == IntPtr.Zero) ? null : ((NSError)Runtime.GetNSObject(error))); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABAddressBookHasUnsavedChanges(IntPtr addressBook); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABAddressBookSave(IntPtr addressBook, out IntPtr error); public void Save() { AssertValid(); if (!ABAddressBookSave(Handle, out var error)) { throw CFException.FromCFError(error); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern void ABAddressBookRevert(IntPtr addressBook); public void Revert() { AssertValid(); ABAddressBookRevert(Handle); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABAddressBookAddRecord(IntPtr addressBook, IntPtr record, out IntPtr error); public void Add(ABRecord record) { if (record == null) { throw new ArgumentNullException("record"); } AssertValid(); if (!ABAddressBookAddRecord(Handle, record.Handle, out var error)) { throw CFException.FromCFError(error); } record.AddressBook = this; } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABAddressBookRemoveRecord(IntPtr addressBook, IntPtr record, out IntPtr error); public void Remove(ABRecord record) { if (record == null) { throw new ArgumentNullException("record"); } AssertValid(); if (!ABAddressBookRemoveRecord(Handle, record.Handle, out var error)) { throw CFException.FromCFError(error); } record.AddressBook = null; } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern int ABAddressBookGetPersonCount(IntPtr addressBook); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllPeople(IntPtr addressBook); public ABPerson[] GetPeople() { AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllPeople(Handle), (IntPtr h) => new ABPerson(h, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllPeopleInSource(IntPtr addressBook, IntPtr source); [Since(4, 0)] public ABPerson[] GetPeople(ABRecord source) { if (source == null) { throw new ArgumentNullException("source"); } AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllPeopleInSource(Handle, source.Handle), (IntPtr l) => new ABPerson(l, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering(IntPtr addressBook, IntPtr source, ABPersonSortBy sortOrdering); [Since(4, 0)] public ABPerson[] GetPeople(ABRecord source, ABPersonSortBy sortOrdering) { if (source == null) { throw new ArgumentNullException("source"); } AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering(Handle, source.Handle, sortOrdering), (IntPtr l) => new ABPerson(l, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern int ABAddressBookGetGroupCount(IntPtr addressBook); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllGroups(IntPtr addressBook); public ABGroup[] GetGroups() { AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllGroups(Handle), (IntPtr h) => new ABGroup(h, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllGroupsInSource(IntPtr addressBook, IntPtr source); [Since(4, 0)] public ABGroup[] GetGroups(ABRecord source) { if (source == null) { throw new ArgumentNullException("source"); } AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllGroupsInSource(Handle, source.Handle), (IntPtr l) => new ABGroup(l, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyLocalizedLabel(IntPtr label); public static string LocalizedLabel(NSString label) { if (label == null) { throw new ArgumentNullException("label"); } using NSString nSString = new NSString(ABAddressBookCopyLocalizedLabel(label.Handle)); return nSString.ToString(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern void ABAddressBookRegisterExternalChangeCallback(IntPtr addressBook, ABExternalChangeCallback callback, IntPtr context); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern void ABAddressBookUnregisterExternalChangeCallback(IntPtr addressBook, ABExternalChangeCallback callback, IntPtr context); [MonoPInvokeCallback(typeof(ABExternalChangeCallback))] private static void ExternalChangeCallback(IntPtr addressBook, IntPtr info, IntPtr context) { if (GCHandle.FromIntPtr(context).Target is ABAddressBook aBAddressBook) { aBAddressBook.OnExternalChange(new ExternalChangeEventArgs(new ABAddressBook(addressBook, owns: false), (NSDictionary)Runtime.GetNSObject(info))); } } protected virtual void OnExternalChange(ExternalChangeEventArgs e) { AssertValid(); externalChange?.Invoke(this, e); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public IEnumerator GetEnumerator() { AssertValid(); ABPerson[] people = GetPeople(); for (int i = 0; i < people.Length; i++) { yield return people[i]; } ABGroup[] groups = GetGroups(); for (int i = 0; i < groups.Length; i++) { yield return groups[i]; } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookGetGroupWithRecordID(IntPtr addressBook, int recordId); public ABGroup GetGroup(int recordId) { IntPtr intPtr = ABAddressBookGetGroupWithRecordID(Handle, recordId); if (intPtr == IntPtr.Zero) { return null; } return new ABGroup(intPtr, this); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookGetPersonWithRecordID(IntPtr addressBook, int recordId); public ABPerson GetPerson(int recordId) { IntPtr intPtr = ABAddressBookGetPersonWithRecordID(Handle, recordId); if (intPtr == IntPtr.Zero) { return null; } return new ABPerson(intPtr, this); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyPeopleWithName(IntPtr addressBook, IntPtr name); public ABPerson[] GetPeopleWithName(string name) { IntPtr intPtr; using (NSString nSString = new NSString(name)) { intPtr = ABAddressBookCopyPeopleWithName(Handle, nSString.Handle); } return NSArray.ArrayFromHandle(intPtr, (IntPtr h) => new ABPerson(h, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyArrayOfAllSources(IntPtr addressBook); public ABSource[] GetAllSources() { AssertValid(); return NSArray.ArrayFromHandle(ABAddressBookCopyArrayOfAllSources(Handle), (IntPtr h) => new ABSource(h, this)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookCopyDefaultSource(IntPtr addressBook); public ABSource GetDefaultSource() { AssertValid(); IntPtr intPtr = ABAddressBookCopyDefaultSource(Handle); if (intPtr == IntPtr.Zero) { return null; } return new ABSource(intPtr, this); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABAddressBookGetSourceWithRecordID(IntPtr addressBook, int sourceID); public ABSource GetSource(int sourceID) { AssertValid(); IntPtr intPtr = ABAddressBookGetSourceWithRecordID(Handle, sourceID); if (intPtr == IntPtr.Zero) { return null; } return new ABSource(intPtr, this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABAddressBookError.cs ================================================ namespace AddressBook; public enum ABAddressBookError { OperationNotPermittedByStore, OperationNotPermittedByUserError } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABAuthorizationStatus.cs ================================================ namespace AddressBook; public enum ABAuthorizationStatus { NotDetermined, Restricted, Denied, Authorized } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABGroup.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AddressBook; public class ABGroup : ABRecord, IEnumerable, IEnumerable { public string Name { get { return PropertyToString(ABGroupProperty.Name); } set { SetValue(ABGroupProperty.Name, value); } } [Since(4, 0)] public ABRecord Source { get { IntPtr intPtr = ABGroupCopySource(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return ABRecord.FromHandle(intPtr, null); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABGroupCreate(); public ABGroup() : base(ABGroupCreate(), owns: true) { InitConstants.Init(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABGroupCreateInSource(IntPtr source); [Since(4, 0)] public ABGroup(ABRecord source) : base(IntPtr.Zero, owns: true) { if (source == null) { throw new ArgumentNullException("source"); } base.Handle = ABGroupCreateInSource(source.Handle); } internal ABGroup(IntPtr handle, bool owns) : base(handle, owns) { } internal ABGroup(IntPtr handle, ABAddressBook addressbook) : base(handle, owns: false) { base.AddressBook = addressbook; } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABGroupCopySource(IntPtr group); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABGroupAddMember(IntPtr group, IntPtr person, out IntPtr error); public void Add(ABRecord person) { if (person == null) { throw new ArgumentNullException("person"); } if (!ABGroupAddMember(base.Handle, person.Handle, out var error)) { throw CFException.FromCFError(error); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABGroupCopyArrayOfAllMembers(IntPtr group); IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public IEnumerator GetEnumerator() { IntPtr intPtr = ABGroupCopyArrayOfAllMembers(base.Handle); IEnumerable enumerable = null; enumerable = ((!(intPtr == IntPtr.Zero)) ? NSArray.ArrayFromHandle(intPtr, (IntPtr h) => ABRecord.FromHandle(h, base.AddressBook)) : new ABRecord[0]); return enumerable.GetEnumerator(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABGroupCopyArrayOfAllMembersWithSortOrdering(IntPtr group, ABPersonSortBy sortOrdering); public ABRecord[] GetMembers(ABPersonSortBy sortOrdering) { IntPtr intPtr = ABGroupCopyArrayOfAllMembersWithSortOrdering(base.Handle, sortOrdering); if (intPtr == IntPtr.Zero) { return new ABRecord[0]; } return NSArray.ArrayFromHandle(intPtr, (IntPtr h) => ABRecord.FromHandle(h, base.AddressBook)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABGroupRemoveMember(IntPtr group, IntPtr member, out IntPtr error); public void Remove(ABRecord member) { if (member == null) { throw new ArgumentNullException("member"); } if (!ABGroupRemoveMember(base.Handle, member.Handle, out var error)) { throw CFException.FromCFError(error); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABGroupProperty.cs ================================================ using System; using ObjCRuntime; namespace AddressBook; internal static class ABGroupProperty { public static int Name { get; private set; } static ABGroupProperty() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Name = Dlfcn.GetInt32(intPtr, "kABGroupNameProperty"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABLabel.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABLabel { public static NSString Home { get; private set; } public static NSString Other { get; private set; } public static NSString Work { get; private set; } static ABLabel() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Home = Dlfcn.GetStringConstant(intPtr, "kABHomeLabel"); Other = Dlfcn.GetStringConstant(intPtr, "kABOtherLabel"); Work = Dlfcn.GetStringConstant(intPtr, "kABWorkLabel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMultiValue.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AddressBook; internal static class ABMultiValue { public const int Mask = 256; [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueCopyValueAtIndex")] public static extern IntPtr CopyValueAtIndex(IntPtr multiValue, int index); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueCopyLabelAtIndex")] public static extern IntPtr CopyLabelAtIndex(IntPtr multiValue, int index); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueGetIdentifierAtIndex")] public static extern int GetIdentifierAtIndex(IntPtr multiValue, int index); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueCopyArrayOfAllValues")] public static extern IntPtr CopyArrayOfAllValues(IntPtr multiValue); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueGetCount")] public static extern int GetCount(IntPtr multiValue); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueGetFirstIndexOfValue")] public static extern int GetFirstIndexOfValue(IntPtr multiValue, IntPtr value); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueGetIndexForIdentifier")] public static extern int GetIndexForIdentifier(IntPtr multiValue, int identifier); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueGetPropertyType")] public static extern ABPropertyType GetPropertyType(IntPtr multiValue); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueCreateMutable")] public static extern IntPtr CreateMutable(ABPropertyType type); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueCreateMutableCopy")] public static extern IntPtr CreateMutableCopy(IntPtr multiValue); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueAddValueAndLabel")] public static extern bool AddValueAndLabel(IntPtr multiValue, IntPtr value, IntPtr label, out int outIdentifier); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueReplaceValueAtIndex")] public static extern bool ReplaceValueAtIndex(IntPtr multiValue, IntPtr value, int index); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueReplaceLabelAtIndex")] public static extern bool ReplaceLabelAtIndex(IntPtr multiValue, IntPtr value, int index); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueInsertValueAndLabelAtIndex")] public static extern bool InsertValueAndLabelAtIndex(IntPtr multiValue, IntPtr value, IntPtr label, int index, out int outIdentifier); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook", EntryPoint = "ABMultiValueRemoveValueAndLabelAtIndex")] public static extern bool RemoveValueAndLabelAtIndex(IntPtr multiValue, int index); public static IntPtr ToIntPtr(NSObject value) { return value?.Handle ?? IntPtr.Zero; } } public class ABMultiValue : INativeObject, IDisposable, IEnumerable>, IEnumerable { private IntPtr handle; internal Converter toManaged; internal Converter toNative; public IntPtr Handle { get { AssertValid(); return handle; } } public virtual bool IsReadOnly { get { AssertValid(); return true; } } public ABPropertyType PropertyType => ABMultiValue.GetPropertyType(Handle); public int Count => ABMultiValue.GetCount(Handle); public ABMultiValueEntry this[int index] { get { if (index < 0 || index >= Count) { throw new ArgumentOutOfRangeException(); } return new ABMultiValueEntry(this, index); } } internal ABMultiValue(IntPtr handle) : this(handle, (Converter)((IntPtr v) => (T)(object)Runtime.GetNSObject(v)), (Converter)((T v) => (v != null) ? ((INativeObject)(object)v).Handle : IntPtr.Zero)) { if (!typeof(NSObject).IsAssignableFrom(typeof(T))) { throw new InvalidOperationException("T must be an NSObject!"); } } internal ABMultiValue(IntPtr handle, Converter toManaged, Converter toNative) { if (handle == IntPtr.Zero) { throw new ArgumentException("Handle must not be null.", "handle"); } if (toManaged == null) { throw new ArgumentNullException("toManaged"); } if (toNative == null) { throw new ArgumentNullException("toNative"); } this.handle = handle; this.toManaged = toManaged; this.toNative = toNative; } ~ABMultiValue() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); } handle = IntPtr.Zero; } internal void AssertValid() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(""); } } public T[] GetValues() { return NSArray.ArrayFromHandle(ABMultiValue.CopyArrayOfAllValues(Handle), toManaged) ?? new T[0]; } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public IEnumerator> GetEnumerator() { int c = Count; int i = 0; while (i < c) { yield return this[i]; int num = i + 1; i = num; } } public int GetFirstIndexOfValue(NSObject value) { return ABMultiValue.GetFirstIndexOfValue(Handle, value.Handle); } public int GetIndexForIdentifier(int identifier) { return ABMultiValue.GetIndexForIdentifier(Handle, identifier); } public ABMutableMultiValue ToMutableMultiValue() { return new ABMutableMultiValue(ABMultiValue.CreateMutableCopy(Handle), toManaged, toNative); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMultiValueEntry.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public struct ABMultiValueEntry { private ABMultiValue self; private int index; public bool IsReadOnly => self.IsReadOnly; public T Value { get { AssertValid(); return self.toManaged(ABMultiValue.CopyValueAtIndex(self.Handle, index)); } set { if (IsReadOnly) { throw CreateNotSupportedException(); } AssertValid(); if (!ABMultiValue.ReplaceValueAtIndex(self.Handle, ToIntPtr(value), index)) { throw new ArgumentException("Value cannot be set"); } } } public NSString Label { get { AssertValid(); return (NSString)Runtime.GetNSObject(ABMultiValue.CopyLabelAtIndex(self.Handle, index)); } set { if (IsReadOnly) { throw CreateNotSupportedException(); } AssertValid(); ABMultiValue.ReplaceLabelAtIndex(self.Handle, ABMultiValue.ToIntPtr(value), index); } } public int Identifier { get { AssertValid(); return ABMultiValue.GetIdentifierAtIndex(self.Handle, index); } } internal ABMultiValueEntry(ABMultiValue self, int index) { this.self = self; this.index = index; } internal void AssertValid() { if (self == null) { throw new InvalidOperationException(); } } private IntPtr ToIntPtr(T value) { return ((self as ABMutableMultiValue) ?? throw CreateNotSupportedException()).toNative(value); } private static Exception CreateNotSupportedException() { return new NotSupportedException("ABMultiValue record is read-only. To update properties, use an ABMutableMultiValue. See ABMultiValue.ToMutableMultiValue()."); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMutableDateMultiValue.cs ================================================ using Foundation; namespace AddressBook; public class ABMutableDateMultiValue : ABMutableMultiValue { public ABMutableDateMultiValue() : base(ABMultiValue.CreateMutable(ABPropertyType.MultiDateTime)) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMutableDictionaryMultiValue.cs ================================================ using Foundation; namespace AddressBook; public class ABMutableDictionaryMultiValue : ABMutableMultiValue { public ABMutableDictionaryMultiValue() : base(ABMultiValue.CreateMutable(ABPropertyType.MultiDictionary)) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMutableMultiValue.cs ================================================ using System; using Foundation; namespace AddressBook; public class ABMutableMultiValue : ABMultiValue { public override bool IsReadOnly { get { AssertValid(); return false; } } internal ABMutableMultiValue(IntPtr handle) : base(handle) { } internal ABMutableMultiValue(IntPtr handle, Converter toManaged, Converter toNative) : base(handle, toManaged, toNative) { } public bool Add(T value, NSString label) { int outIdentifier; return ABMultiValue.AddValueAndLabel(base.Handle, toNative(value), ABMultiValue.ToIntPtr(label), out outIdentifier); } public bool Insert(int index, T value, NSString label) { int outIdentifier; return ABMultiValue.InsertValueAndLabelAtIndex(base.Handle, toNative(value), ABMultiValue.ToIntPtr(label), index, out outIdentifier); } public bool RemoveAt(int index) { return ABMultiValue.RemoveValueAndLabelAtIndex(base.Handle, index); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABMutableStringMultiValue.cs ================================================ using System; namespace AddressBook; public class ABMutableStringMultiValue : ABMutableMultiValue { public ABMutableStringMultiValue() : base(ABMultiValue.CreateMutable(ABPropertyType.MultiString), (Converter)ABPerson.ToString, (Converter)ABPerson.ToIntPtr) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPerson.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AddressBook; public class ABPerson : ABRecord, IComparable, IComparable { public NSData Image { get { return (NSData)Runtime.GetNSObject(ABPersonCopyImageData(base.Handle)); } set { if (!ABPersonSetImageData(base.Handle, value?.Handle ?? IntPtr.Zero, out var error)) { throw CFException.FromCFError(error); } } } public bool HasImage => ABPersonHasImageData(base.Handle); public static ABPersonCompositeNameFormat CompositeNameFormat => ABPersonGetCompositeNameFormat(); public static ABPersonSortBy SortOrdering => ABPersonGetSortOrdering(); public string FirstName { get { return PropertyToString(ABPersonPropertyId.FirstName); } set { SetValue(ABPersonPropertyId.FirstName, value); } } public string FirstNamePhonetic { get { return PropertyToString(ABPersonPropertyId.FirstNamePhonetic); } set { SetValue(ABPersonPropertyId.FirstNamePhonetic, value); } } public string LastName { get { return PropertyToString(ABPersonPropertyId.LastName); } set { SetValue(ABPersonPropertyId.LastName, value); } } public string LastNamePhonetic { get { return PropertyToString(ABPersonPropertyId.LastNamePhonetic); } set { SetValue(ABPersonPropertyId.LastNamePhonetic, value); } } public string MiddleName { get { return PropertyToString(ABPersonPropertyId.MiddleName); } set { SetValue(ABPersonPropertyId.MiddleName, value); } } public string MiddleNamePhonetic { get { return PropertyToString(ABPersonPropertyId.MiddleNamePhonetic); } set { SetValue(ABPersonPropertyId.MiddleNamePhonetic, value); } } public string Prefix { get { return PropertyToString(ABPersonPropertyId.Prefix); } set { SetValue(ABPersonPropertyId.Prefix, value); } } public string Suffix { get { return PropertyToString(ABPersonPropertyId.Suffix); } set { SetValue(ABPersonPropertyId.Suffix, value); } } public string Nickname { get { return PropertyToString(ABPersonPropertyId.Nickname); } set { SetValue(ABPersonPropertyId.Nickname, value); } } public string Organization { get { return PropertyToString(ABPersonPropertyId.Organization); } set { SetValue(ABPersonPropertyId.Organization, value); } } public string JobTitle { get { return PropertyToString(ABPersonPropertyId.JobTitle); } set { SetValue(ABPersonPropertyId.JobTitle, value); } } public string Department { get { return PropertyToString(ABPersonPropertyId.Department); } set { SetValue(ABPersonPropertyId.Department, value); } } [Since(4, 0)] public ABRecord Source { get { IntPtr intPtr = ABPersonCopySource(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return ABRecord.FromHandle(intPtr, null); } } public NSDate Birthday { get { return PropertyTo(ABPersonPropertyId.Birthday); } set { SetValue(ABPersonPropertyId.Birthday, value); } } public string Note { get { return PropertyToString(ABPersonPropertyId.Note); } set { SetValue(ABPersonPropertyId.Note, value); } } public NSDate CreationDate { get { return PropertyTo(ABPersonPropertyId.CreationDate); } set { SetValue(ABPersonPropertyId.CreationDate, value); } } public NSDate ModificationDate { get { return PropertyTo(ABPersonPropertyId.ModificationDate); } set { SetValue(ABPersonPropertyId.ModificationDate, value); } } public ABPersonKind PersonKind { get { return ABPersonKindId.ToPersonKind(PropertyTo(ABPersonPropertyId.Kind)); } set { SetValue(ABPersonPropertyId.Kind, ABPersonKindId.FromPersonKind(value)); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCreate(); public ABPerson() : base(ABPersonCreate(), owns: true) { InitConstants.Init(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCreateInSource(IntPtr source); [Since(4, 0)] public ABPerson(ABRecord source) : base(IntPtr.Zero, owns: true) { if (source == null) { throw new ArgumentNullException("source"); } base.Handle = ABPersonCreateInSource(source.Handle); } internal ABPerson(IntPtr handle, bool owns) : base(handle, owns) { } internal ABPerson(IntPtr handle, ABAddressBook addressbook) : base(handle, owns: false) { base.AddressBook = addressbook; } int IComparable.CompareTo(object o) { if (!(o is ABPerson other)) { throw new ArgumentException("Can only compare to other ABPerson instances.", "o"); } return CompareTo(other); } public int CompareTo(ABPerson other) { return CompareTo(other, ABPersonSortBy.LastName); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern int ABPersonComparePeopleByName(IntPtr person1, IntPtr person2, ABPersonSortBy ordering); public int CompareTo(ABPerson other, ABPersonSortBy ordering) { if (other == null) { throw new ArgumentNullException("other"); } if (ordering != 0 && ordering != ABPersonSortBy.LastName) { throw new ArgumentException("Invalid ordering value: " + ordering, "ordering"); } return ABPersonComparePeopleByName(base.Handle, other.Handle, ordering); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCopyLocalizedPropertyName(int propertyId); public static string LocalizedPropertyName(ABPersonProperty property) { return Runtime.GetNSObject(ABPersonCopyLocalizedPropertyName(ABPersonPropertyId.ToId(property))).ToString(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern ABPropertyType ABPersonGetTypeOfProperty(int propertyId); public static ABPropertyType GetPropertyType(ABPersonProperty property) { return ABPersonGetTypeOfProperty(ABPersonPropertyId.ToId(property)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABPersonSetImageData(IntPtr person, IntPtr imageData, out IntPtr error); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCopyImageData(IntPtr person); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABPersonHasImageData(IntPtr person); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABPersonRemoveImageData(IntPtr person, out IntPtr error); public void RemoveImage() { if (!ABPersonRemoveImageData(base.Handle, out var error)) { throw CFException.FromCFError(error); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern ABPersonCompositeNameFormat ABPersonGetCompositeNameFormat(); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern ABPersonSortBy ABPersonGetSortOrdering(); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCopySource(IntPtr group); internal static string ToString(IntPtr value) { if (value == IntPtr.Zero) { return null; } return Runtime.GetNSObject(value).ToString(); } internal static IntPtr ToIntPtr(string value) { if (value == null) { return IntPtr.Zero; } return new NSString(value).Handle; } public ABMultiValue GetEmails() { return CreateStringMultiValue(CopyValue(ABPersonPropertyId.Email)); } private static ABMultiValue CreateStringMultiValue(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } return new ABMultiValue(handle, ToString, ToIntPtr); } public void SetEmails(ABMultiValue value) { SetValue(ABPersonPropertyId.Email, value?.Handle ?? IntPtr.Zero); } [Advice("Use GetAllAddresses")] public ABMultiValue GetAddresses() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.Address)); } public ABMultiValue GetAllAddresses() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.Address), (NSDictionary l) => new PersonAddress(l)); } public void SetAddresses(ABMultiValue value) { SetValue(ABPersonPropertyId.Address, value?.Handle ?? IntPtr.Zero); } public void SetAddresses(ABMultiValue addresses) { SetValue(ABPersonPropertyId.Address, addresses?.Handle ?? IntPtr.Zero); } private static ABMultiValue CreateDictionaryMultiValue(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } return new ABMultiValue(handle); } private static ABMultiValue CreateDictionaryMultiValue(IntPtr handle, Func factory) where T : DictionaryContainer { if (handle == IntPtr.Zero) { return null; } return new ABMultiValue(handle, (IntPtr l) => factory((NSDictionary)Runtime.GetNSObject(l)), (T l) => l.Dictionary.Handle); } public ABMultiValue GetDates() { return CreateDateMultiValue(CopyValue(ABPersonPropertyId.Date)); } private static ABMultiValue CreateDateMultiValue(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } return new ABMultiValue(handle); } public void SetDates(ABMultiValue value) { SetValue(ABPersonPropertyId.Date, value?.Handle ?? IntPtr.Zero); } public ABMultiValue GetPhones() { return CreateStringMultiValue(CopyValue(ABPersonPropertyId.Phone)); } public void SetPhones(ABMultiValue value) { SetValue(ABPersonPropertyId.Phone, value?.Handle ?? IntPtr.Zero); } [Advice("Use GetInstantMessageServices")] public ABMultiValue GetInstantMessages() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.InstantMessage)); } public ABMultiValue GetInstantMessageServices() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.InstantMessage), (NSDictionary l) => new InstantMessageService(l)); } public void SetInstantMessages(ABMultiValue value) { SetValue(ABPersonPropertyId.InstantMessage, value?.Handle ?? IntPtr.Zero); } public void SetInstantMessages(ABMultiValue services) { SetValue(ABPersonPropertyId.InstantMessage, services?.Handle ?? IntPtr.Zero); } [Advice("Use GetSocialProfiles")] public ABMultiValue GetSocialProfile() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.SocialProfile)); } public ABMultiValue GetSocialProfiles() { return CreateDictionaryMultiValue(CopyValue(ABPersonPropertyId.SocialProfile), (NSDictionary l) => new SocialProfile(l)); } public void SetSocialProfile(ABMultiValue value) { SetValue(ABPersonPropertyId.SocialProfile, value?.Handle ?? IntPtr.Zero); } public void SetSocialProfile(ABMultiValue profiles) { SetValue(ABPersonPropertyId.SocialProfile, profiles?.Handle ?? IntPtr.Zero); } public ABMultiValue GetUrls() { return CreateStringMultiValue(CopyValue(ABPersonPropertyId.Url)); } public void SetUrls(ABMultiValue value) { SetValue(ABPersonPropertyId.Url, value?.Handle ?? IntPtr.Zero); } public ABMultiValue GetRelatedNames() { return CreateStringMultiValue(CopyValue(ABPersonPropertyId.RelatedNames)); } public void SetRelatedNames(ABMultiValue value) { SetValue(ABPersonPropertyId.RelatedNames, value?.Handle ?? IntPtr.Zero); } public object GetProperty(ABPersonProperty property) { return property switch { ABPersonProperty.Address => GetAddresses(), ABPersonProperty.Birthday => Birthday, ABPersonProperty.CreationDate => CreationDate, ABPersonProperty.Date => GetDates(), ABPersonProperty.Department => Department, ABPersonProperty.Email => GetEmails(), ABPersonProperty.FirstName => FirstName, ABPersonProperty.FirstNamePhonetic => FirstNamePhonetic, ABPersonProperty.InstantMessage => GetInstantMessages(), ABPersonProperty.JobTitle => JobTitle, ABPersonProperty.Kind => PersonKind, ABPersonProperty.LastName => LastName, ABPersonProperty.LastNamePhonetic => LastNamePhonetic, ABPersonProperty.MiddleName => MiddleName, ABPersonProperty.MiddleNamePhonetic => MiddleNamePhonetic, ABPersonProperty.ModificationDate => ModificationDate, ABPersonProperty.Nickname => Nickname, ABPersonProperty.Note => Note, ABPersonProperty.Organization => Organization, ABPersonProperty.Phone => GetPhones(), ABPersonProperty.Prefix => Prefix, ABPersonProperty.RelatedNames => GetRelatedNames(), ABPersonProperty.Suffix => Suffix, ABPersonProperty.Url => GetUrls(), ABPersonProperty.SocialProfile => GetSocialProfile(), _ => throw new ArgumentException("Invalid property value: " + property), }; } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCopyArrayOfAllLinkedPeople(IntPtr person); [Since(4, 0)] public ABPerson[] GetLinkedPeople() { return NSArray.ArrayFromHandle(ABPersonCopyArrayOfAllLinkedPeople(base.Handle), (IntPtr l) => new ABPerson(l, null)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCopyImageDataWithFormat(IntPtr handle, ABPersonImageFormat format); [Since(4, 1)] public NSData GetImage(ABPersonImageFormat format) { return (NSData)Runtime.GetNSObject(ABPersonCopyImageDataWithFormat(base.Handle, format)); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCreateVCardRepresentationWithPeople(IntPtr people); [Since(5, 0)] public static NSData GetVCards(params ABPerson[] people) { if (people == null) { throw new ArgumentNullException("people"); } IntPtr[] array = new IntPtr[people.Length]; for (int i = 0; i < people.Length; i++) { array[i] = people[i].Handle; } return new NSData(ABPersonCreateVCardRepresentationWithPeople(CFArray.Create(array)), owns: true); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABPersonCreatePeopleInSourceWithVCardRepresentation(IntPtr source, IntPtr vCardData); [Since(5, 0)] public static ABPerson[] CreateFromVCard(ABRecord source, NSData vCardData) { if (vCardData == null) { throw new ArgumentNullException("vCardData"); } return NSArray.ArrayFromHandle(ABPersonCreatePeopleInSourceWithVCardRepresentation(source?.Handle ?? IntPtr.Zero, vCardData.Handle), (IntPtr l) => new ABPerson(l, null)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonAddressKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonAddressKey { public static NSString City { get; private set; } public static NSString Country { get; private set; } public static NSString CountryCode { get; private set; } public static NSString State { get; private set; } public static NSString Street { get; private set; } public static NSString Zip { get; private set; } static ABPersonAddressKey() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { City = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressCityKey"); Country = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressCountryKey"); CountryCode = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressCountryCodeKey"); State = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressStateKey"); Street = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressStreetKey"); Zip = Dlfcn.GetStringConstant(intPtr, "kABPersonAddressZIPKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonCompositeNameFormat.cs ================================================ namespace AddressBook; public enum ABPersonCompositeNameFormat : uint { FirstNameFirst, LastNameFirst } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonDateLabel.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonDateLabel { public static NSString Anniversary { get; private set; } static ABPersonDateLabel() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Anniversary = Dlfcn.GetStringConstant(intPtr, "kABPersonAnniversaryLabel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonImageFormat.cs ================================================ using ObjCRuntime; namespace AddressBook; [Since(4, 1)] public enum ABPersonImageFormat { Thumbnail = 0, OriginalSize = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonInstantMessageKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonInstantMessageKey { public static NSString Service { get; private set; } public static NSString Username { get; private set; } static ABPersonInstantMessageKey() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Service = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceKey"); Username = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageUsernameKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonInstantMessageService.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonInstantMessageService { public static NSString Aim { get; private set; } public static NSString Icq { get; private set; } public static NSString Jabber { get; private set; } public static NSString Msn { get; private set; } public static NSString Yahoo { get; private set; } public static NSString QQ { get; private set; } public static NSString GoogleTalk { get; private set; } public static NSString Skype { get; private set; } public static NSString Facebook { get; private set; } public static NSString GaduGadu { get; private set; } static ABPersonInstantMessageService() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Aim = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceAIM"); Icq = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceICQ"); Jabber = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceJabber"); Msn = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceMSN"); Yahoo = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceYahoo"); QQ = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceQQ"); GoogleTalk = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceGoogleTalk"); Skype = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceSkype"); Facebook = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceFacebook"); GaduGadu = Dlfcn.GetStringConstant(intPtr, "kABPersonInstantMessageServiceGaduGadu"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonKind.cs ================================================ namespace AddressBook; public enum ABPersonKind { None, Organization, Person } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonKindId.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; internal static class ABPersonKindId { public static NSNumber Organization { get; private set; } public static NSNumber Person { get; private set; } static ABPersonKindId() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Organization = Dlfcn.GetNSNumber(intPtr, "kABPersonKindOrganization"); Person = Dlfcn.GetNSNumber(intPtr, "kABPersonKindPerson"); } finally { Dlfcn.dlclose(intPtr); } } public static ABPersonKind ToPersonKind(NSNumber value) { if (Organization == value) { return ABPersonKind.Organization; } if (Person == value) { return ABPersonKind.Person; } return ABPersonKind.None; } public static NSNumber FromPersonKind(ABPersonKind value) { return value switch { ABPersonKind.Organization => Organization, ABPersonKind.Person => Person, _ => null, }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonPhoneLabel.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonPhoneLabel { public static NSString HomeFax { get; private set; } public static NSString iPhone { get; private set; } public static NSString Main { get; private set; } public static NSString Mobile { get; private set; } public static NSString Pager { get; private set; } public static NSString WorkFax { get; private set; } public static NSString OtherFax { get; private set; } static ABPersonPhoneLabel() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { HomeFax = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneHomeFAXLabel"); iPhone = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneIPhoneLabel"); Main = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneMainLabel"); Mobile = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneMobileLabel"); Pager = Dlfcn.GetStringConstant(intPtr, "kABPersonPhonePagerLabel"); WorkFax = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneWorkFAXLabel"); OtherFax = Dlfcn.GetStringConstant(intPtr, "kABPersonPhoneOtherFAXLabel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonProperty.cs ================================================ namespace AddressBook; public enum ABPersonProperty { Address, Birthday, CreationDate, Date, Department, Email, FirstName, FirstNamePhonetic, InstantMessage, JobTitle, Kind, LastName, LastNamePhonetic, MiddleName, MiddleNamePhonetic, ModificationDate, Nickname, Note, Organization, Phone, Prefix, RelatedNames, Suffix, Url, SocialProfile } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonPropertyId.cs ================================================ using System; using ObjCRuntime; namespace AddressBook; internal static class ABPersonPropertyId { public static int Address { get; private set; } public static int Birthday { get; private set; } public static int CreationDate { get; private set; } public static int Date { get; private set; } public static int Department { get; private set; } public static int Email { get; private set; } public static int FirstName { get; private set; } public static int FirstNamePhonetic { get; private set; } public static int InstantMessage { get; private set; } public static int JobTitle { get; private set; } public static int Kind { get; private set; } public static int LastName { get; private set; } public static int LastNamePhonetic { get; private set; } public static int MiddleName { get; private set; } public static int MiddleNamePhonetic { get; private set; } public static int ModificationDate { get; private set; } public static int Nickname { get; private set; } public static int Note { get; private set; } public static int Organization { get; private set; } public static int Phone { get; private set; } public static int Prefix { get; private set; } public static int RelatedNames { get; private set; } public static int Suffix { get; private set; } public static int Url { get; private set; } public static int SocialProfile { get; private set; } static ABPersonPropertyId() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Address = Dlfcn.GetInt32(intPtr, "kABPersonAddressProperty"); Birthday = Dlfcn.GetInt32(intPtr, "kABPersonBirthdayProperty"); CreationDate = Dlfcn.GetInt32(intPtr, "kABPersonCreationDateProperty"); Date = Dlfcn.GetInt32(intPtr, "kABPersonDateProperty"); Department = Dlfcn.GetInt32(intPtr, "kABPersonDepartmentProperty"); Email = Dlfcn.GetInt32(intPtr, "kABPersonEmailProperty"); FirstName = Dlfcn.GetInt32(intPtr, "kABPersonFirstNameProperty"); FirstNamePhonetic = Dlfcn.GetInt32(intPtr, "kABPersonFirstNamePhoneticProperty"); InstantMessage = Dlfcn.GetInt32(intPtr, "kABPersonInstantMessageProperty"); JobTitle = Dlfcn.GetInt32(intPtr, "kABPersonJobTitleProperty"); Kind = Dlfcn.GetInt32(intPtr, "kABPersonKindProperty"); LastName = Dlfcn.GetInt32(intPtr, "kABPersonLastNameProperty"); LastNamePhonetic = Dlfcn.GetInt32(intPtr, "kABPersonLastNamePhoneticProperty"); MiddleName = Dlfcn.GetInt32(intPtr, "kABPersonMiddleNameProperty"); MiddleNamePhonetic = Dlfcn.GetInt32(intPtr, "kABPersonMiddleNamePhoneticProperty"); ModificationDate = Dlfcn.GetInt32(intPtr, "kABPersonModificationDateProperty"); Nickname = Dlfcn.GetInt32(intPtr, "kABPersonNicknameProperty"); Note = Dlfcn.GetInt32(intPtr, "kABPersonNoteProperty"); Organization = Dlfcn.GetInt32(intPtr, "kABPersonOrganizationProperty"); Phone = Dlfcn.GetInt32(intPtr, "kABPersonPhoneProperty"); Prefix = Dlfcn.GetInt32(intPtr, "kABPersonPrefixProperty"); RelatedNames = Dlfcn.GetInt32(intPtr, "kABPersonRelatedNamesProperty"); Suffix = Dlfcn.GetInt32(intPtr, "kABPersonSuffixProperty"); Url = Dlfcn.GetInt32(intPtr, "kABPersonURLProperty"); SocialProfile = Dlfcn.GetInt32(intPtr, "kABPersonSocialProfileProperty"); } finally { Dlfcn.dlclose(intPtr); } } public static int ToId(ABPersonProperty property) { return property switch { ABPersonProperty.Address => Address, ABPersonProperty.Birthday => Birthday, ABPersonProperty.CreationDate => CreationDate, ABPersonProperty.Date => Date, ABPersonProperty.Department => Department, ABPersonProperty.Email => Email, ABPersonProperty.FirstName => FirstName, ABPersonProperty.FirstNamePhonetic => FirstNamePhonetic, ABPersonProperty.InstantMessage => InstantMessage, ABPersonProperty.JobTitle => JobTitle, ABPersonProperty.Kind => Kind, ABPersonProperty.LastName => LastName, ABPersonProperty.LastNamePhonetic => LastNamePhonetic, ABPersonProperty.MiddleName => MiddleName, ABPersonProperty.MiddleNamePhonetic => MiddleNamePhonetic, ABPersonProperty.ModificationDate => ModificationDate, ABPersonProperty.Nickname => Nickname, ABPersonProperty.Note => Note, ABPersonProperty.Organization => Organization, ABPersonProperty.Phone => Phone, ABPersonProperty.Prefix => Prefix, ABPersonProperty.RelatedNames => RelatedNames, ABPersonProperty.Suffix => Suffix, ABPersonProperty.Url => Url, ABPersonProperty.SocialProfile => SocialProfile, _ => throw new NotSupportedException("Invalid ABPersonProperty value: " + property), }; } public static ABPersonProperty ToPersonProperty(int id) { if (id == Address) { return ABPersonProperty.Address; } if (id == Birthday) { return ABPersonProperty.Birthday; } if (id == CreationDate) { return ABPersonProperty.CreationDate; } if (id == Date) { return ABPersonProperty.Date; } if (id == Department) { return ABPersonProperty.Department; } if (id == Email) { return ABPersonProperty.Email; } if (id == FirstName) { return ABPersonProperty.FirstName; } if (id == FirstNamePhonetic) { return ABPersonProperty.FirstNamePhonetic; } if (id == InstantMessage) { return ABPersonProperty.InstantMessage; } if (id == JobTitle) { return ABPersonProperty.JobTitle; } if (id == Kind) { return ABPersonProperty.Kind; } if (id == LastName) { return ABPersonProperty.LastName; } if (id == LastNamePhonetic) { return ABPersonProperty.LastNamePhonetic; } if (id == MiddleName) { return ABPersonProperty.MiddleName; } if (id == MiddleNamePhonetic) { return ABPersonProperty.MiddleNamePhonetic; } if (id == ModificationDate) { return ABPersonProperty.ModificationDate; } if (id == Nickname) { return ABPersonProperty.Nickname; } if (id == Note) { return ABPersonProperty.Note; } if (id == Organization) { return ABPersonProperty.Organization; } if (id == Phone) { return ABPersonProperty.Phone; } if (id == Prefix) { return ABPersonProperty.Prefix; } if (id == RelatedNames) { return ABPersonProperty.RelatedNames; } if (id == Suffix) { return ABPersonProperty.Suffix; } if (id == Url) { return ABPersonProperty.Url; } if (id == SocialProfile) { return ABPersonProperty.SocialProfile; } throw new NotSupportedException("Invalid ABPersonPropertyId value: " + id); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonRelatedNamesLabel.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonRelatedNamesLabel { public static NSString Assistant { get; private set; } public static NSString Brother { get; private set; } public static NSString Child { get; private set; } public static NSString Father { get; private set; } public static NSString Friend { get; private set; } public static NSString Manager { get; private set; } public static NSString Mother { get; private set; } public static NSString Parent { get; private set; } public static NSString Partner { get; private set; } public static NSString Sister { get; private set; } public static NSString Spouse { get; private set; } static ABPersonRelatedNamesLabel() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Assistant = Dlfcn.GetStringConstant(intPtr, "kABPersonAssistantLabel"); Brother = Dlfcn.GetStringConstant(intPtr, "kABPersonBrotherLabel"); Child = Dlfcn.GetStringConstant(intPtr, "kABPersonChildLabel"); Father = Dlfcn.GetStringConstant(intPtr, "kABPersonFatherLabel"); Friend = Dlfcn.GetStringConstant(intPtr, "kABPersonFriendLabel"); Manager = Dlfcn.GetStringConstant(intPtr, "kABPersonManagerLabel"); Mother = Dlfcn.GetStringConstant(intPtr, "kABPersonMotherLabel"); Parent = Dlfcn.GetStringConstant(intPtr, "kABPersonParentLabel"); Partner = Dlfcn.GetStringConstant(intPtr, "kABPersonPartnerLabel"); Sister = Dlfcn.GetStringConstant(intPtr, "kABPersonSisterLabel"); Spouse = Dlfcn.GetStringConstant(intPtr, "kABPersonSpouseLabel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonSocialProfile.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; internal static class ABPersonSocialProfile { public static readonly NSString URLKey; public static readonly NSString ServiceKey; public static readonly NSString UsernameKey; public static readonly NSString UserIdentifierKey; static ABPersonSocialProfile() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { URLKey = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileURLKey"); ServiceKey = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceKey"); UsernameKey = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileUsernameKey"); UserIdentifierKey = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileUserIdentifierKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonSocialProfileService.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonSocialProfileService { public static readonly NSString Twitter; public static readonly NSString GameCenter; public static readonly NSString Facebook; public static readonly NSString Myspace; public static readonly NSString LinkedIn; public static readonly NSString Flickr; public static readonly NSString SinaWeibo; static ABPersonSocialProfileService() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Twitter = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceTwitter"); GameCenter = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceGameCenter"); Facebook = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceFacebook"); Myspace = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceMyspace"); LinkedIn = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceLinkedIn"); Flickr = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceFlickr"); SinaWeibo = Dlfcn.GetStringConstant(intPtr, "kABPersonSocialProfileServiceSinaWeibo"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonSortBy.cs ================================================ namespace AddressBook; public enum ABPersonSortBy : uint { FirstName, LastName } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPersonUrlLabel.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AddressBook; public static class ABPersonUrlLabel { public static NSString HomePage { get; private set; } static ABPersonUrlLabel() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { HomePage = Dlfcn.GetStringConstant(intPtr, "kABPersonHomePageLabel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABPropertyType.cs ================================================ namespace AddressBook; public enum ABPropertyType : uint { Invalid = 0u, String = 1u, Integer = 2u, Real = 3u, DateTime = 4u, Dictionary = 5u, MultiString = 257u, MultiInteger = 258u, MultiReal = 259u, MultiDateTime = 260u, MultiDictionary = 261u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABRecord.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AddressBook; public abstract class ABRecord : INativeObject, IDisposable { public const int InvalidRecordId = -1; public const int InvalidPropertyId = -1; private IntPtr handle; internal ABAddressBook AddressBook { get; set; } public IntPtr Handle { get { AssertValid(); return handle; } internal set { handle = value; } } public int Id => ABRecordGetRecordID(Handle); public ABRecordType Type => ABRecordGetRecordType(Handle); internal ABRecord(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } internal static ABRecord FromHandle(IntPtr handle, ABAddressBook addressbook, bool owns = true) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } ABRecord aBRecord = ABRecordGetRecordType(handle) switch { ABRecordType.Person => new ABPerson(handle, owns), ABRecordType.Group => new ABGroup(handle, owns), ABRecordType.Source => new ABSource(handle, owns), _ => throw new NotSupportedException("Could not determine record type."), }; aBRecord.AddressBook = addressbook; return aBRecord; } ~ABRecord() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); } handle = IntPtr.Zero; AddressBook = null; } private void AssertValid() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(""); } } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern int ABRecordGetRecordID(IntPtr record); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern ABRecordType ABRecordGetRecordType(IntPtr record); [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABRecordCopyCompositeName(IntPtr record); public override string ToString() { using NSString nSString = new NSString(ABRecordCopyCompositeName(Handle)); return nSString.ToString(); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABRecordSetValue(IntPtr record, int property, IntPtr value, out IntPtr error); internal void SetValue(int property, IntPtr value) { if (!ABRecordSetValue(Handle, property, value, out var error)) { throw CFException.FromCFError(error); } } internal void SetValue(int property, NSObject value) { SetValue(property, value?.Handle ?? IntPtr.Zero); } internal void SetValue(int property, string value) { using NSObject value2 = ((value == null) ? null : new NSString(value)); SetValue(property, value2); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern IntPtr ABRecordCopyValue(IntPtr record, int property); internal IntPtr CopyValue(int property) { return ABRecordCopyValue(Handle, property); } [DllImport("/System/Library/Frameworks/AddressBook.framework/AddressBook")] private static extern bool ABRecordRemoveValue(IntPtr record, int property, out IntPtr error); internal void RemoveValue(int property) { if (!ABRecordRemoveValue(Handle, property, out var error) && error != IntPtr.Zero) { throw CFException.FromCFError(error); } } internal T PropertyTo(int id) where T : NSObject { IntPtr intPtr = CopyValue(id); if (intPtr == IntPtr.Zero) { return null; } return (T)Runtime.GetNSObject(intPtr); } internal string PropertyToString(int id) { IntPtr intPtr = CopyValue(id); if (intPtr == IntPtr.Zero) { return null; } using NSString nSString = new NSString(intPtr); return nSString.ToString(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABRecordType.cs ================================================ namespace AddressBook; public enum ABRecordType : uint { Person, Group, Source } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABSource.cs ================================================ using System; using Foundation; namespace AddressBook; public class ABSource : ABRecord { [Advice("Use ABSourceType.SearchableMask")] public const int SearchableMask = 16777216; public string Name { get { return PropertyToString(ABSourcePropertyId.Name); } set { SetValue(ABSourcePropertyId.Name, value); } } public ABSourceType SourceType { get { return (ABSourceType)(int)PropertyTo(ABSourcePropertyId.Type); } set { SetValue(ABSourcePropertyId.Type, new NSNumber((int)value)); } } internal ABSource(IntPtr handle, bool owns) : base(handle, owns) { } internal ABSource(IntPtr handle, ABAddressBook addressbook) : base(handle, owns: false) { base.AddressBook = addressbook; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABSourceProperty.cs ================================================ namespace AddressBook; public enum ABSourceProperty { Name, Type } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABSourcePropertyId.cs ================================================ using System; using ObjCRuntime; namespace AddressBook; internal static class ABSourcePropertyId { public static int Name { get; private set; } public static int Type { get; private set; } static ABSourcePropertyId() { InitConstants.Init(); } internal static void Init() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 0); if (intPtr == IntPtr.Zero) { return; } try { Name = Dlfcn.GetInt32(intPtr, "kABSourceNameProperty"); Type = Dlfcn.GetInt32(intPtr, "kABSourceTypeProperty"); } finally { Dlfcn.dlclose(intPtr); } } public static int ToId(ABSourceProperty property) { return property switch { ABSourceProperty.Name => Name, ABSourceProperty.Type => Type, _ => throw new NotSupportedException("Invalid ABSourceProperty value: " + property), }; } public static ABSourceProperty ToSourceProperty(int id) { if (id == Name) { return ABSourceProperty.Name; } if (id == Type) { return ABSourceProperty.Type; } throw new NotSupportedException("Invalid ABSourcePropertyId value: " + id); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ABSourceType.cs ================================================ namespace AddressBook; public enum ABSourceType { Local = 0, Exchange = 1, ExchangeGAL = 16777217, MobileMe = 2, LDAP = 16777219, CardDAV = 4, DAVSearch = 16777220, SearchableMask = 16777216 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/ExternalChangeEventArgs.cs ================================================ using System; using Foundation; namespace AddressBook; public class ExternalChangeEventArgs : EventArgs { public ABAddressBook AddressBook { get; private set; } public NSDictionary Info { get; private set; } public ExternalChangeEventArgs(ABAddressBook addressBook, NSDictionary info) { AddressBook = addressBook; Info = info; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/InitConstants.cs ================================================ using System; using CoreFoundation; namespace AddressBook; internal class InitConstants { public static void Init() { } static InitConstants() { IntPtr intPtr = ABAddressBook.ABAddressBookCreate(); ABGroupProperty.Init(); ABLabel.Init(); ABPersonAddressKey.Init(); ABPersonDateLabel.Init(); ABPersonInstantMessageKey.Init(); ABPersonInstantMessageService.Init(); ABPersonKindId.Init(); ABPersonPhoneLabel.Init(); ABPersonPropertyId.Init(); ABPersonRelatedNamesLabel.Init(); ABPersonUrlLabel.Init(); ABSourcePropertyId.Init(); if (intPtr != IntPtr.Zero) { CFObject.CFRelease(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/InstantMessageService.cs ================================================ using Foundation; namespace AddressBook; public class InstantMessageService : DictionaryContainer { public string ServiceName { get { return GetStringValue(ABPersonInstantMessageKey.Service); } set { SetStringValue(ABPersonInstantMessageKey.Service, value); } } public NSString Service { set { SetStringValue(ABPersonInstantMessageKey.Service, value); } } public string Username { get { return GetStringValue(ABPersonInstantMessageKey.Username); } set { SetStringValue(ABPersonInstantMessageKey.Username, value); } } public InstantMessageService() { } public InstantMessageService(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/PersonAddress.cs ================================================ using Foundation; namespace AddressBook; public class PersonAddress : DictionaryContainer { public string City { get { return GetStringValue(ABPersonAddressKey.City); } set { SetStringValue(ABPersonAddressKey.City, value); } } public string Country { get { return GetStringValue(ABPersonAddressKey.Country); } set { SetStringValue(ABPersonAddressKey.Country, value); } } public string CountryCode { get { return GetStringValue(ABPersonAddressKey.CountryCode); } set { SetStringValue(ABPersonAddressKey.CountryCode, value); } } public string State { get { return GetStringValue(ABPersonAddressKey.State); } set { SetStringValue(ABPersonAddressKey.State, value); } } public string Street { get { return GetStringValue(ABPersonAddressKey.Street); } set { SetStringValue(ABPersonAddressKey.Street, value); } } public string Zip { get { return GetStringValue(ABPersonAddressKey.Zip); } set { SetStringValue(ABPersonAddressKey.Zip, value); } } public PersonAddress() { } public PersonAddress(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AddressBook/SocialProfile.cs ================================================ using Foundation; namespace AddressBook; public class SocialProfile : DictionaryContainer { public string ServiceName { get { return GetStringValue(ABPersonSocialProfile.ServiceKey); } set { SetStringValue(ABPersonSocialProfile.ServiceKey, value); } } public NSString Service { set { SetStringValue(ABPersonSocialProfile.ServiceKey, value); } } public string Username { get { return GetStringValue(ABPersonSocialProfile.UsernameKey); } set { SetStringValue(ABPersonSocialProfile.UsernameKey, value); } } public string UserIdentifier { get { return GetStringValue(ABPersonSocialProfile.UserIdentifierKey); } set { SetStringValue(ABPersonSocialProfile.UserIdentifierKey, value); } } public string Url { get { return GetStringValue(ABPersonSocialProfile.URLKey); } set { SetStringValue(ABPersonSocialProfile.URLKey, value); } } public SocialProfile() { } public SocialProfile(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/ActionDispatcher.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; [Register("__monomac_internal_ActionDispatcher")] internal class ActionDispatcher : NSObject { private const string skey = "__monomac_internal_ActionDispatcher_activated:"; private const string dkey = "__monomac_internal_ActionDispatcher_doubleActivated:"; public static Selector Action = new Selector("__monomac_internal_ActionDispatcher_activated:"); public static Selector DoubleAction = new Selector("__monomac_internal_ActionDispatcher_doubleActivated:"); public EventHandler Activated; public EventHandler DoubleActivated; [Preserve] [Export("__monomac_internal_ActionDispatcher_activated:")] public void OnActivated(NSObject sender) { Activated?.Invoke(sender, EventArgs.Empty); } [Preserve] [Export("__monomac_internal_ActionDispatcher_doubleActivated:")] public void OnActivated2(NSObject sender) { DoubleActivated?.Invoke(sender, EventArgs.Empty); } public ActionDispatcher(EventHandler handler) { Activated = handler; } public ActionDispatcher() { } public static NSObject SetupAction(NSObject target, EventHandler handler) { ActionDispatcher actionDispatcher = target as ActionDispatcher; if (actionDispatcher == null) { actionDispatcher = new ActionDispatcher(); ActionDispatcher actionDispatcher2 = actionDispatcher; actionDispatcher2.Activated = (EventHandler)Delegate.Combine(actionDispatcher2.Activated, handler); } return actionDispatcher; } public static void RemoveAction(NSObject target, EventHandler handler) { if (target is ActionDispatcher actionDispatcher) { actionDispatcher.Activated = (EventHandler)Delegate.Remove(actionDispatcher.Activated, handler); } } public static NSObject SetupDoubleAction(NSObject target, EventHandler doubleHandler) { ActionDispatcher actionDispatcher = target as ActionDispatcher; if (actionDispatcher == null) { actionDispatcher = new ActionDispatcher(); ActionDispatcher actionDispatcher2 = actionDispatcher; actionDispatcher2.DoubleActivated = (EventHandler)Delegate.Combine(actionDispatcher2.DoubleActivated, doubleHandler); } return actionDispatcher; } public static void RemoveDoubleAction(NSObject target, EventHandler doubleHandler) { if (target is ActionDispatcher actionDispatcher) { actionDispatcher.DoubleActivated = (EventHandler)Delegate.Remove(actionDispatcher.DoubleActivated, doubleHandler); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/AppKitFramework.cs ================================================ using System.Runtime.InteropServices; namespace AppKit; public class AppKitFramework { [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] public static extern void NSBeep(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/AppKitSynchronizationContext.cs ================================================ using System.Threading; using Foundation; namespace AppKit; internal class AppKitSynchronizationContext : SynchronizationContext { public override SynchronizationContext CreateCopy() { return new AppKitSynchronizationContext(); } public override void Post(SendOrPostCallback d, object state) { NSRunLoop.Main.BeginInvokeOnMainThread(delegate { d(state); }); } public override void Send(SendOrPostCallback d, object state) { NSRunLoop.Main.InvokeOnMainThread(delegate { d(state); }); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/AppKitThreadAccessException.cs ================================================ using System; namespace AppKit; public class AppKitThreadAccessException : Exception { public AppKitThreadAccessException() : base("AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.") { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/DrawerShouldCloseDelegate.cs ================================================ namespace AppKit; public delegate bool DrawerShouldCloseDelegate(NSDrawer sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/DrawerShouldOpenDelegate.cs ================================================ namespace AppKit; public delegate bool DrawerShouldOpenDelegate(NSDrawer sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/DrawerWillResizeContentsDelegate.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGSize DrawerWillResizeContentsDelegate(NSDrawer sender, CGSize toSize); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/GlobalEventHandler.cs ================================================ namespace AppKit; public delegate void GlobalEventHandler(NSEvent theEvent); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/INSValidatedUserInterfaceItem.cs ================================================ using Foundation; using ObjCRuntime; namespace AppKit; [Protocol(Name = "NSValidatedUserInterfaceItem", WrapperType = typeof(NSValidatedUserInterfaceItemWrapper))] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "Action", Selector = "action", PropertyType = typeof(Selector), GetterSelector = "action", ArgumentSemantic = ArgumentSemantic.None)] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "Tag", Selector = "tag", PropertyType = typeof(nint), GetterSelector = "tag", ArgumentSemantic = ArgumentSemantic.None)] public interface INSValidatedUserInterfaceItem : INativeObject, IDisposable { [Preserve(Conditional = true)] Selector? Action { [Export("action")] get; } [Preserve(Conditional = true)] long Tag { [Export("tag")] get; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/LocalEventHandler.cs ================================================ namespace AppKit; public delegate NSEvent LocalEventHandler(NSEvent theEvent); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSActionCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSActionCell", true)] public class NSActionCell : NSCell { private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selSetTag_Handle = Selector.GetHandle("setTag:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSActionCell"); private object __mt_Target_var; public override IntPtr ClassHandle => class_ptr; public new virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public new virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public new virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } [Export("setTag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTag_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTag_Handle, value); } } } public event EventHandler Activated { add { Target = ActionDispatcher.SetupAction(Target, value); Action = ActionDispatcher.Action; } remove { ActionDispatcher.RemoveAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSActionCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSActionCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSActionCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSActionCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSActionCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSActionCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Target_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlert.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAlert", true)] public class NSAlert : NSObject { [Register] private sealed class _NSAlertDelegate : NSAlertDelegate { internal NSAlertPredicate showHelp; [Preserve(Conditional = true)] public override bool ShowHelp(NSAlert alert) { return showHelp?.Invoke(alert) ?? false; } } private static readonly IntPtr selMessageTextHandle = Selector.GetHandle("messageText"); private static readonly IntPtr selSetMessageText_Handle = Selector.GetHandle("setMessageText:"); private static readonly IntPtr selInformativeTextHandle = Selector.GetHandle("informativeText"); private static readonly IntPtr selSetInformativeText_Handle = Selector.GetHandle("setInformativeText:"); private static readonly IntPtr selIconHandle = Selector.GetHandle("icon"); private static readonly IntPtr selSetIcon_Handle = Selector.GetHandle("setIcon:"); private static readonly IntPtr selButtonsHandle = Selector.GetHandle("buttons"); private static readonly IntPtr selShowsHelpHandle = Selector.GetHandle("showsHelp"); private static readonly IntPtr selSetShowsHelp_Handle = Selector.GetHandle("setShowsHelp:"); private static readonly IntPtr selHelpAnchorHandle = Selector.GetHandle("helpAnchor"); private static readonly IntPtr selSetHelpAnchor_Handle = Selector.GetHandle("setHelpAnchor:"); private static readonly IntPtr selAlertStyleHandle = Selector.GetHandle("alertStyle"); private static readonly IntPtr selSetAlertStyle_Handle = Selector.GetHandle("setAlertStyle:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selShowsSuppressionButtonHandle = Selector.GetHandle("showsSuppressionButton"); private static readonly IntPtr selSetShowsSuppressionButton_Handle = Selector.GetHandle("setShowsSuppressionButton:"); private static readonly IntPtr selSuppressionButtonHandle = Selector.GetHandle("suppressionButton"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selWindowHandle = Selector.GetHandle("window"); private static readonly IntPtr selAlertWithError_Handle = Selector.GetHandle("alertWithError:"); private static readonly IntPtr selAlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat_Handle = Selector.GetHandle("alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:"); private static readonly IntPtr selAddButtonWithTitle_Handle = Selector.GetHandle("addButtonWithTitle:"); private static readonly IntPtr selLayoutHandle = Selector.GetHandle("layout"); private static readonly IntPtr selRunModalHandle = Selector.GetHandle("runModal"); private static readonly IntPtr selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAlert"); private object __mt_Icon_var; private object __mt_Buttons_var; private object __mt_Delegate_var; private object __mt_SuppressionButton_var; private object __mt_AccessoryView_var; private object __mt_Window_var; public override IntPtr ClassHandle => class_ptr; public virtual string MessageText { [Export("messageText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMessageTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMessageTextHandle)); } [Export("setMessageText:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMessageText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMessageText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string InformativeText { [Export("informativeText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInformativeTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInformativeTextHandle)); } [Export("setInformativeText:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInformativeText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInformativeText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSImage Icon { [Export("icon")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Icon_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIconHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIconHandle))))); } [Export("setIcon:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIcon_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIcon_Handle, value.Handle); } __mt_Icon_var = value; } } public virtual NSButton[] Buttons { [Export("buttons")] get { NSApplication.EnsureUIThread(); return (NSButton[])(__mt_Buttons_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selButtonsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selButtonsHandle)))); } } public virtual bool ShowsHelp { [Export("showsHelp")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsHelpHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsHelpHandle); } [Export("setShowsHelp:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsHelp_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsHelp_Handle, value); } } } public virtual string HelpAnchor { [Export("helpAnchor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHelpAnchorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHelpAnchorHandle)); } [Export("setHelpAnchor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHelpAnchor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHelpAnchor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAlertStyle AlertStyle { [Export("alertStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSAlertStyle)Messaging.UInt64_objc_msgSend(base.Handle, selAlertStyleHandle); } return (NSAlertStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlertStyleHandle); } [Export("setAlertStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlertStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlertStyle_Handle, (ulong)value); } } } public virtual NSAlertDelegate Delegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSAlertDelegate)(__mt_Delegate_var = ((!IsDirectBinding) ? ((NSAlertDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSAlertDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_Delegate_var = value; } } public virtual bool ShowsSuppressionButton { [Export("showsSuppressionButton")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsSuppressionButtonHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsSuppressionButtonHandle); } [Export("setShowsSuppressionButton:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsSuppressionButton_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsSuppressionButton_Handle, value); } } } public virtual NSButton SuppressionButton { [Export("suppressionButton")] get { NSApplication.EnsureUIThread(); return (NSButton)(__mt_SuppressionButton_var = ((!IsDirectBinding) ? ((NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuppressionButtonHandle))) : ((NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSuppressionButtonHandle))))); } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } public virtual NSPanel Window { [Export("window")] get { NSApplication.EnsureUIThread(); return (NSPanel)(__mt_Window_var = ((!IsDirectBinding) ? ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowHandle))) : ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowHandle))))); } } public NSAlertPredicate ShowHelp { get { return EnsureNSAlertDelegate().showHelp; } set { EnsureNSAlertDelegate().showHelp = value; } } public void BeginSheet(NSWindow window) { BeginSheet(window, null, null, IntPtr.Zero); } public void BeginSheet(NSWindow window, NSAction onEnded) { BeginSheetForResponse(window, delegate { if (onEnded != null) { onEnded(); } }); } public void BeginSheetForResponse(NSWindow window, Action onEnded) { BeginSheet(window, new NSAlertDidEndDispatcher(onEnded), NSAlertDidEndDispatcher.Selector, IntPtr.Zero); } public long RunSheetModal(NSWindow window) { return RunSheetModal(window, NSApplication.SharedApplication); } public long RunSheetModal(NSWindow window, NSApplication application) { if (application == null) { throw new ArgumentNullException("application"); } if (window == null) { return RunModal(); } long returnCode = -1000L; BeginSheetForResponse(window, delegate(int r) { returnCode = r; application.StopModal(); }); application.RunModalForWindow(Window); return returnCode; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAlert() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAlert(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAlert(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAlert(IntPtr handle) : base(handle) { } [Export("alertWithError:")] public static NSAlert WithError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } return (NSAlert)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAlertWithError_Handle, error.Handle)); } [Export("alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:")] public static NSAlert WithMessage(string message, string defaultButton, string alternateButton, string otherButton, string full) { NSApplication.EnsureUIThread(); if (full == null) { throw new ArgumentNullException("full"); } IntPtr arg = NSString.CreateNative(message); IntPtr arg2 = NSString.CreateNative(defaultButton); IntPtr arg3 = NSString.CreateNative(alternateButton); IntPtr arg4 = NSString.CreateNative(otherButton); IntPtr arg5 = NSString.CreateNative(full); NSAlert result = (NSAlert)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(class_ptr, selAlertWithMessageTextDefaultButtonAlternateButtonOtherButtonInformativeTextWithFormat_Handle, arg, arg2, arg3, arg4, arg5)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); NSString.ReleaseNative(arg4); NSString.ReleaseNative(arg5); return result; } [Export("addButtonWithTitle:")] public virtual NSButton AddButton(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSButton result = ((!IsDirectBinding) ? ((NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddButtonWithTitle_Handle, arg))) : ((NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAddButtonWithTitle_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("layout")] public virtual void Layout() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutHandle); } } [Export("runModal")] public virtual long RunModal() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRunModalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRunModalHandle); } [Export("beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:")] public virtual void BeginSheet(NSWindow window, NSObject modalDelegate, Selector didEndSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, window?.Handle ?? IntPtr.Zero, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, window?.Handle ?? IntPtr.Zero, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } } private _NSAlertDelegate EnsureNSAlertDelegate() { NSAlertDelegate nSAlertDelegate = Delegate; if (nSAlertDelegate == null || !(nSAlertDelegate is _NSAlertDelegate)) { nSAlertDelegate = (Delegate = new _NSAlertDelegate()); } return (_NSAlertDelegate)nSAlertDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Icon_var = null; __mt_Buttons_var = null; __mt_Delegate_var = null; __mt_SuppressionButton_var = null; __mt_AccessoryView_var = null; __mt_Window_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertButtonReturn.cs ================================================ namespace AppKit; public enum NSAlertButtonReturn { First = 1000, Second, Third } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAlertDelegate", true)] [Model] public class NSAlertDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAlertDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAlertDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAlertDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAlertDelegate(IntPtr handle) : base(handle) { } [Export("alertShowHelp:")] public virtual bool ShowHelp(NSAlert alert) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertDidEndDispatcher.cs ================================================ using System; using System.Collections.Generic; using Foundation; using ObjCRuntime; namespace AppKit; [Register("__MonoMac_NSAlertDidEndDispatcher")] internal class NSAlertDidEndDispatcher : NSObject { private static List pendingInvokes = new List(); private const string selector = "alertDidEnd:returnCode:contextInfo:"; public static readonly Selector Selector = new Selector("alertDidEnd:returnCode:contextInfo:"); private Action action; public NSAlertDidEndDispatcher(Action action) { this.action = action; pendingInvokes.Add(this); } [Export("alertDidEnd:returnCode:contextInfo:")] [Preserve(Conditional = true)] public void OnAlertDidEnd(NSAlert alert, int returnCode, IntPtr context) { try { if (action != null) { action(returnCode); } } finally { action = null; pendingInvokes.Remove(this); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertPredicate.cs ================================================ namespace AppKit; public delegate bool NSAlertPredicate(NSAlert alert); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertStyle.cs ================================================ namespace AppKit; public enum NSAlertStyle : ulong { Warning, Informational, Critical } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAlertType.cs ================================================ namespace AppKit; public enum NSAlertType { ErrorReturn = -2, OtherReturn, AlternateReturn, DefaultReturn } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAnimation", true)] public class NSAnimation : NSObject { [Register] private sealed class _NSAnimationDelegate : NSAnimationDelegate { internal NSAnimationPredicate animationShouldStart; internal EventHandler animationDidStop; internal EventHandler animationDidEnd; internal NSAnimationProgress computeAnimationCurve; internal EventHandler animationDidReachProgressMark; [Preserve(Conditional = true)] public override bool AnimationShouldStart(NSAnimation animation) { return animationShouldStart?.Invoke(animation) ?? true; } [Preserve(Conditional = true)] public override void AnimationDidStop(NSAnimation animation) { animationDidStop?.Invoke(animation, EventArgs.Empty); } [Preserve(Conditional = true)] public override void AnimationDidEnd(NSAnimation animation) { animationDidEnd?.Invoke(animation, EventArgs.Empty); } [Preserve(Conditional = true)] public override double ComputeAnimationCurve(NSAnimation animation, double progress) { return computeAnimationCurve?.Invoke(animation, progress) ?? progress; } [Preserve(Conditional = true)] public override void AnimationDidReachProgressMark(NSAnimation animation, double progress) { EventHandler eventHandler = animationDidReachProgressMark; if (eventHandler != null) { NSAnimationEventArgs e = new NSAnimationEventArgs(progress); eventHandler(animation, e); } } } public static class Notifications { public static NSObject ObserveProgressMark(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ProgressMarkNotification, delegate(NSNotification notification) { handler(null, new NSAnimationProgressMarkEventArgs(notification)); }); } } private static readonly IntPtr selCurrentProgressHandle = Selector.GetHandle("currentProgress"); private static readonly IntPtr selSetCurrentProgress_Handle = Selector.GetHandle("setCurrentProgress:"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selSetDuration_Handle = Selector.GetHandle("setDuration:"); private static readonly IntPtr selAnimationBlockingModeHandle = Selector.GetHandle("animationBlockingMode"); private static readonly IntPtr selSetAnimationBlockingMode_Handle = Selector.GetHandle("setAnimationBlockingMode:"); private static readonly IntPtr selFrameRateHandle = Selector.GetHandle("frameRate"); private static readonly IntPtr selSetFrameRate_Handle = Selector.GetHandle("setFrameRate:"); private static readonly IntPtr selAnimationCurveHandle = Selector.GetHandle("animationCurve"); private static readonly IntPtr selSetAnimationCurve_Handle = Selector.GetHandle("setAnimationCurve:"); private static readonly IntPtr selCurrentValueHandle = Selector.GetHandle("currentValue"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selProgressMarksHandle = Selector.GetHandle("progressMarks"); private static readonly IntPtr selSetProgressMarks_Handle = Selector.GetHandle("setProgressMarks:"); private static readonly IntPtr selInitWithDurationAnimationCurve_Handle = Selector.GetHandle("initWithDuration:animationCurve:"); private static readonly IntPtr selStartAnimationHandle = Selector.GetHandle("startAnimation"); private static readonly IntPtr selStopAnimationHandle = Selector.GetHandle("stopAnimation"); private static readonly IntPtr selIsAnimatingHandle = Selector.GetHandle("isAnimating"); private static readonly IntPtr selAddProgressMark_Handle = Selector.GetHandle("addProgressMark:"); private static readonly IntPtr selRemoveProgressMark_Handle = Selector.GetHandle("removeProgressMark:"); private static readonly IntPtr selStartWhenAnimationReachesProgress_Handle = Selector.GetHandle("startWhenAnimation:reachesProgress:"); private static readonly IntPtr selStopWhenAnimationReachesProgress_Handle = Selector.GetHandle("stopWhenAnimation:reachesProgress:"); private static readonly IntPtr selClearStartAnimationHandle = Selector.GetHandle("clearStartAnimation"); private static readonly IntPtr selClearStopAnimationHandle = Selector.GetHandle("clearStopAnimation"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAnimation"); private object __mt_Delegate_var; private object __mt_ProgressMarks_var; private static NSString _ProgressMarkNotification; private static NSString _ProgressMark; private static NSString _TriggerOrderIn; private static NSString _TriggerOrderOut; public override IntPtr ClassHandle => class_ptr; public virtual double CurrentProgress { [Export("currentProgress")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCurrentProgressHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCurrentProgressHandle); } [Export("setCurrentProgress:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCurrentProgress_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCurrentProgress_Handle, value); } } } public virtual double Duration { [Export("duration")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } [Export("setDuration:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDuration_Handle, value); } } } public virtual NSAnimationBlockingMode AnimationBlockingMode { [Export("animationBlockingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSAnimationBlockingMode)Messaging.UInt64_objc_msgSend(base.Handle, selAnimationBlockingModeHandle); } return (NSAnimationBlockingMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAnimationBlockingModeHandle); } [Export("setAnimationBlockingMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAnimationBlockingMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAnimationBlockingMode_Handle, (ulong)value); } } } public virtual double FrameRate { [Export("frameRate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFrameRateHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFrameRateHandle); } [Export("setFrameRate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetFrameRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetFrameRate_Handle, value); } } } public virtual NSAnimationCurve AnimationCurve { [Export("animationCurve")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSAnimationCurve)Messaging.UInt64_objc_msgSend(base.Handle, selAnimationCurveHandle); } return (NSAnimationCurve)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAnimationCurveHandle); } [Export("setAnimationCurve:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAnimationCurve_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAnimationCurve_Handle, (ulong)value); } } } public virtual double CurrentValue { [Export("currentValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCurrentValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCurrentValueHandle); } } public virtual NSAnimationDelegate Delegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSAnimationDelegate)(__mt_Delegate_var = ((!IsDirectBinding) ? ((NSAnimationDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSAnimationDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_Delegate_var = value; } } public virtual NSNumber[] ProgressMarks { [Export("progressMarks")] get { NSApplication.EnsureUIThread(); return (NSNumber[])(__mt_ProgressMarks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProgressMarksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selProgressMarksHandle)))); } [Export("setProgressMarks:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetProgressMarks_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetProgressMarks_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_ProgressMarks_var = value; } } [Field("NSAnimationProgressMarkNotification", "AppKit")] public static NSString ProgressMarkNotification { get { if (_ProgressMarkNotification == null) { _ProgressMarkNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAnimationProgressMarkNotification"); } return _ProgressMarkNotification; } } [Field("NSAnimationProgressMark", "AppKit")] public static NSString ProgressMark { get { if (_ProgressMark == null) { _ProgressMark = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAnimationProgressMark"); } return _ProgressMark; } } [Field("NSAnimationTriggerOrderIn", "AppKit")] public static NSString TriggerOrderIn { get { if (_TriggerOrderIn == null) { _TriggerOrderIn = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAnimationTriggerOrderIn"); } return _TriggerOrderIn; } } [Field("NSAnimationTriggerOrderOut", "AppKit")] public static NSString TriggerOrderOut { get { if (_TriggerOrderOut == null) { _TriggerOrderOut = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAnimationTriggerOrderOut"); } return _TriggerOrderOut; } } public NSAnimationPredicate AnimationShouldStart { get { return EnsureNSAnimationDelegate().animationShouldStart; } set { EnsureNSAnimationDelegate().animationShouldStart = value; } } public NSAnimationProgress ComputeAnimationCurve { get { return EnsureNSAnimationDelegate().computeAnimationCurve; } set { EnsureNSAnimationDelegate().computeAnimationCurve = value; } } public event EventHandler AnimationDidStop { add { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidStop = (EventHandler)System.Delegate.Combine(nSAnimationDelegate.animationDidStop, value); } remove { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidStop = (EventHandler)System.Delegate.Remove(nSAnimationDelegate.animationDidStop, value); } } public event EventHandler AnimationDidEnd { add { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidEnd = (EventHandler)System.Delegate.Combine(nSAnimationDelegate.animationDidEnd, value); } remove { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidEnd = (EventHandler)System.Delegate.Remove(nSAnimationDelegate.animationDidEnd, value); } } public event EventHandler AnimationDidReachProgressMark { add { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidReachProgressMark = (EventHandler)System.Delegate.Combine(nSAnimationDelegate.animationDidReachProgressMark, value); } remove { _NSAnimationDelegate nSAnimationDelegate = EnsureNSAnimationDelegate(); nSAnimationDelegate.animationDidReachProgressMark = (EventHandler)System.Delegate.Remove(nSAnimationDelegate.animationDidReachProgressMark, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimation(IntPtr handle) : base(handle) { } [Export("initWithDuration:animationCurve:")] public virtual IntPtr Constant(double duration, NSAnimationCurve animationCurve) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend_Double_UInt64(base.Handle, selInitWithDurationAnimationCurve_Handle, duration, (ulong)animationCurve); } return Messaging.IntPtr_objc_msgSendSuper_Double_UInt64(base.SuperHandle, selInitWithDurationAnimationCurve_Handle, duration, (ulong)animationCurve); } [Export("startAnimation")] public virtual void StartAnimation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartAnimationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartAnimationHandle); } } [Export("stopAnimation")] public virtual void StopAnimation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopAnimationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopAnimationHandle); } } [Export("isAnimating")] public virtual bool IsAnimating() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAnimatingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAnimatingHandle); } [Export("addProgressMark:")] public virtual void AddProgressMark(double progressMark) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selAddProgressMark_Handle, progressMark); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selAddProgressMark_Handle, progressMark); } } [Export("removeProgressMark:")] public virtual void RemoveProgressMark(double progressMark) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selRemoveProgressMark_Handle, progressMark); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selRemoveProgressMark_Handle, progressMark); } } [Export("startWhenAnimation:reachesProgress:")] public virtual void StartWhenAnimationReaches(NSAnimation animation, double startProgress) { NSApplication.EnsureUIThread(); if (animation == null) { throw new ArgumentNullException("animation"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Double(base.Handle, selStartWhenAnimationReachesProgress_Handle, animation.Handle, startProgress); } else { Messaging.void_objc_msgSendSuper_IntPtr_Double(base.SuperHandle, selStartWhenAnimationReachesProgress_Handle, animation.Handle, startProgress); } } [Export("stopWhenAnimation:reachesProgress:")] public virtual void StopWhenAnimationReaches(NSAnimation animation, double stopProgress) { NSApplication.EnsureUIThread(); if (animation == null) { throw new ArgumentNullException("animation"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Double(base.Handle, selStopWhenAnimationReachesProgress_Handle, animation.Handle, stopProgress); } else { Messaging.void_objc_msgSendSuper_IntPtr_Double(base.SuperHandle, selStopWhenAnimationReachesProgress_Handle, animation.Handle, stopProgress); } } [Export("clearStartAnimation")] public virtual void ClearStartAnimation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearStartAnimationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearStartAnimationHandle); } } [Export("clearStopAnimation")] public virtual void ClearStopAnimation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearStopAnimationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearStopAnimationHandle); } } private _NSAnimationDelegate EnsureNSAnimationDelegate() { NSAnimationDelegate nSAnimationDelegate = Delegate; if (nSAnimationDelegate == null || !(nSAnimationDelegate is _NSAnimationDelegate)) { nSAnimationDelegate = (Delegate = new _NSAnimationDelegate()); } return (_NSAnimationDelegate)nSAnimationDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Delegate_var = null; __mt_ProgressMarks_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationBlockingMode.cs ================================================ namespace AppKit; public enum NSAnimationBlockingMode : ulong { Blocking, Nonblocking, NonblockingThreaded } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationContext.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreAnimation; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAnimationContext", true)] public class NSAnimationContext : NSObject { private static readonly IntPtr selCurrentContextHandle = Selector.GetHandle("currentContext"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selSetDuration_Handle = Selector.GetHandle("setDuration:"); private static readonly IntPtr selCompletionHandlerHandle = Selector.GetHandle("completionHandler"); private static readonly IntPtr selSetCompletionHandler_Handle = Selector.GetHandle("setCompletionHandler:"); private static readonly IntPtr selTimingFunctionHandle = Selector.GetHandle("timingFunction"); private static readonly IntPtr selSetTimingFunction_Handle = Selector.GetHandle("setTimingFunction:"); private static readonly IntPtr selAllowsImplicitAnimationHandle = Selector.GetHandle("allowsImplicitAnimation"); private static readonly IntPtr selSetAllowsImplicitAnimation_Handle = Selector.GetHandle("setAllowsImplicitAnimation:"); private static readonly IntPtr selBeginGroupingHandle = Selector.GetHandle("beginGrouping"); private static readonly IntPtr selEndGroupingHandle = Selector.GetHandle("endGrouping"); private static readonly IntPtr selRunAnimationGroupCompletionHandler_Handle = Selector.GetHandle("runAnimationGroup:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAnimationContext"); private static object __mt_CurrentContext_var_static; private object __mt_TimingFunction_var; public override IntPtr ClassHandle => class_ptr; public static NSAnimationContext CurrentContext { [Export("currentContext")] get { NSApplication.EnsureUIThread(); return (NSAnimationContext)(__mt_CurrentContext_var_static = (NSAnimationContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentContextHandle))); } } public virtual double Duration { [Export("duration")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } [Export("setDuration:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDuration_Handle, value); } } } public unsafe virtual NSAction CompletionHandler { [Export("completionHandler")] get { NSApplication.EnsureUIThread(); BlockLiteral* ptr = (BlockLiteral*)((!IsDirectBinding) ? ((void*)Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompletionHandlerHandle)) : ((void*)Messaging.IntPtr_objc_msgSend(base.Handle, selCompletionHandlerHandle))); if (ptr == null) { return null; } return (NSAction)((ptr->global_handle != IntPtr.Zero) ? GCHandle.FromIntPtr(ptr->global_handle).Target : GCHandle.FromIntPtr(ptr->local_handle).Target); } [Export("setCompletionHandler:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCompletionHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCompletionHandler_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } } public virtual CAMediaTimingFunction TimingFunction { [Export("timingFunction")] get { NSApplication.EnsureUIThread(); return (CAMediaTimingFunction)(__mt_TimingFunction_var = ((!IsDirectBinding) ? ((CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimingFunctionHandle))) : ((CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimingFunctionHandle))))); } [Export("setTimingFunction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimingFunction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimingFunction_Handle, value.Handle); } __mt_TimingFunction_var = value; } } [MountainLion] public virtual bool AllowsImplicitAnimation { [MountainLion] [Export("allowsImplicitAnimation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsImplicitAnimationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsImplicitAnimationHandle); } [MountainLion] [Export("setAllowsImplicitAnimation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsImplicitAnimation_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsImplicitAnimation_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAnimationContext() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAnimationContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimationContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimationContext(IntPtr handle) : base(handle) { } [Export("beginGrouping")] public static void BeginGrouping() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selBeginGroupingHandle); } [Export("endGrouping")] public static void EndGrouping() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selEndGroupingHandle); } [Export("runAnimationGroup:completionHandler:")] public unsafe static void RunAnimation(Action changes, NSAction completionHandler) { NSApplication.EnsureUIThread(); if (changes == null) { throw new ArgumentNullException("changes"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V0.Handler, changes); BlockLiteral blockLiteral2 = default(BlockLiteral); BlockLiteral* ptr2 = &blockLiteral2; blockLiteral2.SetupBlock(Trampolines.SDNSAction.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selRunAnimationGroupCompletionHandler_Handle, (IntPtr)ptr, (IntPtr)ptr2); ptr->CleanupBlock(); ptr2->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TimingFunction_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationCurve.cs ================================================ namespace AppKit; public enum NSAnimationCurve : ulong { EaseInOut, EaseIn, EaseOut, Linear } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAnimationDelegate", true)] [Model] public class NSAnimationDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAnimationDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAnimationDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimationDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAnimationDelegate(IntPtr handle) : base(handle) { } [Export("animationShouldStart:")] public virtual bool AnimationShouldStart(NSAnimation animation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("animationDidStop:")] public virtual void AnimationDidStop(NSAnimation animation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("animationDidEnd:")] public virtual void AnimationDidEnd(NSAnimation animation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("animation:valueForProgress:")] public virtual double ComputeAnimationCurve(NSAnimation animation, double progress) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("animation:didReachProgressMark:")] public virtual void AnimationDidReachProgressMark(NSAnimation animation, double progress) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationEffect.cs ================================================ namespace AppKit; public enum NSAnimationEffect : ulong { DissapearingItemDefault = 0uL, EffectPoof = 10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationEventArgs.cs ================================================ using System; namespace AppKit; public class NSAnimationEventArgs : EventArgs { public double Progress { get; set; } public NSAnimationEventArgs(double progress) { Progress = progress; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationPredicate.cs ================================================ namespace AppKit; public delegate bool NSAnimationPredicate(NSAnimation animation); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationProgress.cs ================================================ namespace AppKit; public delegate double NSAnimationProgress(NSAnimation animation, double progress); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAnimationProgressMarkEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSAnimationProgressMarkEventArgs : NSNotificationEventArgs { private static IntPtr k0; public double Progress { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSAnimationProgressMark"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return 0.0; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.DoubleValue; } } public NSAnimationProgressMarkEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSAppearance.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSAppearance", true)] public class NSAppearance : NSObject { private static readonly IntPtr selCurrentAppearanceHandle = Selector.GetHandle("currentAppearance"); private static readonly IntPtr selSetCurrentAppearance_Handle = Selector.GetHandle("setCurrentAppearance:"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selAllowsVibrancyHandle = Selector.GetHandle("allowsVibrancy"); private static readonly IntPtr selAppearanceNamed_Handle = Selector.GetHandle("appearanceNamed:"); private static readonly IntPtr selInitWithAppearanceNamedBundle_Handle = Selector.GetHandle("initWithAppearanceNamed:bundle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAppearance"); private static object __mt_CurrentAppearance_var_static; private object __mt_Name_var; private static NSString _NameAqua; private static NSString _NameLightContent; private static NSString _NameVibrantDark; private static NSString _NameVibrantLight; public override IntPtr ClassHandle => class_ptr; public static NSAppearance CurrentAppearance { [Export("currentAppearance")] get { NSApplication.EnsureUIThread(); return (NSAppearance)(__mt_CurrentAppearance_var_static = (NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentAppearanceHandle))); } [Export("setCurrentAppearance:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetCurrentAppearance_Handle, value.Handle); } } public virtual NSString Name { [Export("name")] get { NSApplication.EnsureUIThread(); return (NSString)(__mt_Name_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle))))); } } public virtual bool AllowsVibrancy { [Export("allowsVibrancy")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsVibrancyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsVibrancyHandle); } } [Field("NSAppearanceNameAqua", "AppKit")] public static NSString NameAqua { get { if (_NameAqua == null) { _NameAqua = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAppearanceNameAqua"); } return _NameAqua; } } [Field("NSAppearanceNameLightContent", "AppKit")] public static NSString NameLightContent { get { if (_NameLightContent == null) { _NameLightContent = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAppearanceNameLightContent"); } return _NameLightContent; } } [Field("NSAppearanceNameVibrantDark", "AppKit")] public static NSString NameVibrantDark { get { if (_NameVibrantDark == null) { _NameVibrantDark = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAppearanceNameVibrantDark"); } return _NameVibrantDark; } } [Field("NSAppearanceNameVibrantLight", "AppKit")] public static NSString NameVibrantLight { get { if (_NameVibrantLight == null) { _NameVibrantLight = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAppearanceNameVibrantLight"); } return _NameVibrantLight; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAppearance() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAppearance(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppearance(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppearance(IntPtr handle) : base(handle) { } [Export("appearanceNamed:")] public static NSAppearance GetAppearance(NSString name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } return (NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAppearanceNamed_Handle, name.Handle)); } [Export("initWithAppearanceNamed:bundle:")] public NSAppearance(NSString name, NSBundle bundle) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } if (bundle == null) { throw new ArgumentNullException("bundle"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAppearanceNamedBundle_Handle, name.Handle, bundle.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAppearanceNamedBundle_Handle, name.Handle, bundle.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Name_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplication.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace AppKit; [Register("NSApplication", true)] public class NSApplication : NSResponder { [Register] private sealed class _NSApplicationDelegate : NSApplicationDelegate { internal NSApplicationTermination applicationShouldTerminate; internal NSApplicationFile openFile; internal EventHandler openFiles; internal NSApplicationFile openTempFile; internal NSApplicationPredicate applicationShouldOpenUntitledFile; internal NSApplicationPredicate applicationOpenUntitledFile; internal NSApplicationFileCommand openFileWithoutUI; internal NSApplicationFile printFile; internal NSApplicationPrint printFiles; internal NSApplicationPredicate applicationShouldTerminateAfterLastWindowClosed; internal NSApplicationReopen applicationShouldHandleReopen; internal NSApplicationMenu applicationDockMenu; internal NSApplicationError willPresentError; internal EventHandler willFinishLaunching; internal EventHandler didFinishLaunching; internal EventHandler willHide; internal EventHandler didHide; internal EventHandler willUnhide; internal EventHandler didUnhide; internal EventHandler willBecomeActive; internal EventHandler didBecomeActive; internal EventHandler willResignActive; internal EventHandler didResignActive; internal EventHandler willUpdate; internal EventHandler didUpdate; internal EventHandler willTerminate; internal EventHandler screenParametersChanged; internal EventHandler registerServicesMenu; internal NSApplicationSelection writeSelectionToPasteboard; internal NSPasteboardPredicate readSelectionFromPasteboard; internal EventHandler orderFrontStandardAboutPanel; internal EventHandler orderFrontStandardAboutPanelWithOptions; internal EventHandler registeredForRemoteNotifications; internal EventHandler failedToRegisterForRemoteNotifications; internal EventHandler receivedRemoteNotification; internal EventHandler willEncodeRestorableState; internal EventHandler decodedRestorableState; [Preserve(Conditional = true)] public override NSApplicationTerminateReply ApplicationShouldTerminate(NSApplication sender) { return applicationShouldTerminate?.Invoke(sender) ?? NSApplicationTerminateReply.Now; } [Preserve(Conditional = true)] public override bool OpenFile(NSApplication sender, string filename) { return openFile?.Invoke(sender, filename) ?? false; } [Preserve(Conditional = true)] public override void OpenFiles(NSApplication sender, string[] filenames) { EventHandler eventHandler = openFiles; if (eventHandler != null) { NSApplicationFilesEventArgs e = new NSApplicationFilesEventArgs(filenames); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override bool OpenTempFile(NSApplication sender, string filename) { return openTempFile?.Invoke(sender, filename) ?? false; } [Preserve(Conditional = true)] public override bool ApplicationShouldOpenUntitledFile(NSApplication sender) { return applicationShouldOpenUntitledFile?.Invoke(sender) ?? false; } [Preserve(Conditional = true)] public override bool ApplicationOpenUntitledFile(NSApplication sender) { return applicationOpenUntitledFile?.Invoke(sender) ?? false; } [Preserve(Conditional = true)] public override bool OpenFileWithoutUI(NSObject sender, string filename) { return openFileWithoutUI?.Invoke(sender, filename) ?? false; } [Preserve(Conditional = true)] public override bool PrintFile(NSApplication sender, string filename) { return printFile?.Invoke(sender, filename) ?? false; } [Preserve(Conditional = true)] public override NSApplicationPrintReply PrintFiles(NSApplication application, string[] fileNames, NSDictionary printSettings, bool showPrintPanels) { return printFiles?.Invoke(application, fileNames, printSettings, showPrintPanels) ?? NSApplicationPrintReply.Failure; } [Preserve(Conditional = true)] public override bool ApplicationShouldTerminateAfterLastWindowClosed(NSApplication sender) { return applicationShouldTerminateAfterLastWindowClosed?.Invoke(sender) ?? false; } [Preserve(Conditional = true)] public override bool ApplicationShouldHandleReopen(NSApplication sender, bool hasVisibleWindows) { return applicationShouldHandleReopen?.Invoke(sender, hasVisibleWindows) ?? false; } [Preserve(Conditional = true)] public override NSMenu ApplicationDockMenu(NSApplication sender) { return applicationDockMenu?.Invoke(sender); } [Preserve(Conditional = true)] public override NSError WillPresentError(NSApplication application, NSError error) { return willPresentError?.Invoke(application, error); } [Preserve(Conditional = true)] public override void WillFinishLaunching(NSNotification notification) { willFinishLaunching?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidFinishLaunching(NSNotification notification) { didFinishLaunching?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillHide(NSNotification notification) { willHide?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidHide(NSNotification notification) { didHide?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillUnhide(NSNotification notification) { willUnhide?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidUnhide(NSNotification notification) { didUnhide?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillBecomeActive(NSNotification notification) { willBecomeActive?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidBecomeActive(NSNotification notification) { didBecomeActive?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillResignActive(NSNotification notification) { willResignActive?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidResignActive(NSNotification notification) { didResignActive?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillUpdate(NSNotification notification) { willUpdate?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidUpdate(NSNotification notification) { didUpdate?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillTerminate(NSNotification notification) { willTerminate?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ScreenParametersChanged(NSNotification notification) { screenParametersChanged?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void RegisterServicesMenu(string[] sendTypes, string[] returnTypes) { EventHandler eventHandler = registerServicesMenu; if (eventHandler != null) { NSApplicationRegisterEventArgs e = new NSApplicationRegisterEventArgs(returnTypes); eventHandler(sendTypes, e); } } [Preserve(Conditional = true)] public override bool WriteSelectionToPasteboard(NSPasteboard board, string[] types) { return writeSelectionToPasteboard?.Invoke(board, types) ?? false; } [Preserve(Conditional = true)] public override bool ReadSelectionFromPasteboard(NSPasteboard pboard) { return readSelectionFromPasteboard?.Invoke(pboard) ?? false; } [Preserve(Conditional = true)] public override void OrderFrontStandardAboutPanel(NSObject sender) { orderFrontStandardAboutPanel?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void OrderFrontStandardAboutPanelWithOptions(NSDictionary optionsDictionary) { orderFrontStandardAboutPanelWithOptions?.Invoke(optionsDictionary, EventArgs.Empty); } [Preserve(Conditional = true)] public override void RegisteredForRemoteNotifications(NSApplication application, NSData deviceToken) { EventHandler eventHandler = registeredForRemoteNotifications; if (eventHandler != null) { NSDataEventArgs e = new NSDataEventArgs(deviceToken); eventHandler(application, e); } } [Preserve(Conditional = true)] public override void FailedToRegisterForRemoteNotifications(NSApplication application, NSError error) { EventHandler eventHandler = failedToRegisterForRemoteNotifications; if (eventHandler != null) { NSErrorEventArgs e = new NSErrorEventArgs(error); eventHandler(application, e); } } [Preserve(Conditional = true)] public override void ReceivedRemoteNotification(NSApplication application, NSDictionary userInfo) { EventHandler eventHandler = receivedRemoteNotification; if (eventHandler != null) { NSDictionaryEventArgs e = new NSDictionaryEventArgs(userInfo); eventHandler(application, e); } } [Preserve(Conditional = true)] public override void WillEncodeRestorableState(NSApplication app, NSCoder encoder) { EventHandler eventHandler = willEncodeRestorableState; if (eventHandler != null) { NSCoderEventArgs e = new NSCoderEventArgs(encoder); eventHandler(app, e); } } [Preserve(Conditional = true)] public override void DecodedRestorableState(NSApplication app, NSCoder state) { EventHandler eventHandler = decodedRestorableState; if (eventHandler != null) { NSCoderEventArgs e = new NSCoderEventArgs(state); eventHandler(app, e); } } } public static class Notifications { public static NSObject ObserveDidBecomeActive(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidBecomeActiveNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidHide(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidHideNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidFinishLaunching(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidFinishLaunchingNotification, delegate (NSNotification notification) { handler(null, new NSApplicationDidFinishLaunchingEventArgs(notification)); }); } public static NSObject ObserveDidResignActive(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidResignActiveNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidUnhide(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidUnhideNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidUpdate(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidUpdateNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillBecomeActive(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillBecomeActiveNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillHide(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillHideNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillFinishLaunching(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillFinishLaunchingNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillResignActive(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillResignActiveNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillUnhide(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillUnhideNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillUpdate(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillUpdateNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillTerminate(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillTerminateNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidChangeScreenParameters(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidChangeScreenParametersNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidFinishRestoringWindows(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidFinishRestoringWindowsNotification, delegate (NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } public static bool CheckForIllegalCrossThreadCalls; private static Thread mainThread; private static bool initialized; private static readonly IntPtr selSharedApplicationHandle; private static readonly IntPtr selDelegateHandle; private static readonly IntPtr selSetDelegate_Handle; private static readonly IntPtr selContextHandle; private static readonly IntPtr selMainWindowHandle; private static readonly IntPtr selKeyWindowHandle; private static readonly IntPtr selIsActiveHandle; private static readonly IntPtr selIsHiddenHandle; private static readonly IntPtr selIsRunningHandle; private static readonly IntPtr selModalWindowHandle; private static readonly IntPtr selCurrentEventHandle; private static readonly IntPtr selWindowsHandle; private static readonly IntPtr selMainMenuHandle; private static readonly IntPtr selSetMainMenu_Handle; private static readonly IntPtr selHelpMenuHandle; private static readonly IntPtr selSetHelpMenu_Handle; private static readonly IntPtr selApplicationIconImageHandle; private static readonly IntPtr selSetApplicationIconImage_Handle; private static readonly IntPtr selDockTileHandle; private static readonly IntPtr selPresentationOptionsHandle; private static readonly IntPtr selSetPresentationOptions_Handle; private static readonly IntPtr selCurrentSystemPresentationOptionsHandle; private static readonly IntPtr selWindowsMenuHandle; private static readonly IntPtr selSetWindowsMenu_Handle; private static readonly IntPtr selIsFullKeyboardAccessEnabledHandle; private static readonly IntPtr selServicesProviderHandle; private static readonly IntPtr selSetServicesProvider_Handle; private static readonly IntPtr selUserInterfaceLayoutDirectionHandle; private static readonly IntPtr selServicesMenuHandle; private static readonly IntPtr selSetServicesMenu_Handle; private static readonly IntPtr selHide_Handle; private static readonly IntPtr selUnhide_Handle; private static readonly IntPtr selUnhideWithoutActivationHandle; private static readonly IntPtr selWindowWithWindowNumber_Handle; private static readonly IntPtr selDeactivateHandle; private static readonly IntPtr selActivateIgnoringOtherApps_Handle; private static readonly IntPtr selHideOtherApplications_Handle; private static readonly IntPtr selUnhideAllApplications_Handle; private static readonly IntPtr selFinishLaunchingHandle; private static readonly IntPtr selRunHandle; private static readonly IntPtr selRunModalForWindow_Handle; private static readonly IntPtr selStop_Handle; private static readonly IntPtr selStopModalHandle; private static readonly IntPtr selStopModalWithCode_Handle; private static readonly IntPtr selAbortModalHandle; private static readonly IntPtr selBeginModalSessionForWindow_Handle; private static readonly IntPtr selRunModalSession_Handle; private static readonly IntPtr selEndModalSession_Handle; private static readonly IntPtr selTerminate_Handle; private static readonly IntPtr selRequestUserAttention_Handle; private static readonly IntPtr selCancelUserAttentionRequest_Handle; private static readonly IntPtr selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle; private static readonly IntPtr selEndSheet_Handle; private static readonly IntPtr selEndSheetReturnCode_Handle; private static readonly IntPtr selNextEventMatchingMaskUntilDateInModeDequeue_Handle; private static readonly IntPtr selDiscardEventsMatchingMaskBeforeEvent_Handle; private static readonly IntPtr selPostEventAtStart_Handle; private static readonly IntPtr selSendEvent_Handle; private static readonly IntPtr selPreventWindowOrderingHandle; private static readonly IntPtr selMakeWindowsPerformInOrder_Handle; private static readonly IntPtr selSetWindowsNeedUpdate_Handle; private static readonly IntPtr selUpdateWindowsHandle; private static readonly IntPtr selActivationPolicyHandle; private static readonly IntPtr selSetActivationPolicy_Handle; private static readonly IntPtr selSendActionToFrom_Handle; private static readonly IntPtr selTargetForAction_Handle; private static readonly IntPtr selTargetForActionToFrom_Handle; private static readonly IntPtr selTryToPerformWith_Handle; private static readonly IntPtr selValidRequestorForSendTypeReturnType_Handle; private static readonly IntPtr selReportException_Handle; private static readonly IntPtr selDetachDrawingThreadToTargetWithObject_Handle; private static readonly IntPtr selReplyToApplicationShouldTerminate_Handle; private static readonly IntPtr selReplyToOpenOrPrint_Handle; private static readonly IntPtr selOrderFrontCharacterPalette_Handle; private static readonly IntPtr selArrangeInFront_Handle; private static readonly IntPtr selRemoveWindowsItem_Handle; private static readonly IntPtr selAddWindowsItemTitleFilename_Handle; private static readonly IntPtr selChangeWindowsItemTitleFilename_Handle; private static readonly IntPtr selUpdateWindowsItem_Handle; private static readonly IntPtr selMiniaturizeAll_Handle; private static readonly IntPtr selOrderFrontColorPanel_Handle; private static readonly IntPtr selDisableRelaunchOnLoginHandle; private static readonly IntPtr selEnableRelaunchOnLoginHandle; private static readonly IntPtr selEnabledRemoteNotificationTypesHandle; private static readonly IntPtr selRegisterForRemoteNotificationTypes_Handle; private static readonly IntPtr selUnregisterForRemoteNotificationsHandle; private static readonly IntPtr selRestoreWindowWithIdentifierStateCompletionHandler_Handle; private static readonly IntPtr class_ptr; private static object __mt_SharedApplication_var_static; private object __mt_WeakDelegate_var; private object __mt_Context_var; private object __mt_MainWindow_var; private object __mt_KeyWindow_var; private object __mt_ModalWindow_var; private object __mt_CurrentEvent_var; private object __mt_Windows_var; private object __mt_MainMenu_var; private object __mt_HelpMenu_var; private object __mt_ApplicationIconImage_var; private object __mt_DockTile_var; private object __mt_WindowsMenu_var; private object __mt_ServicesProvider_var; private object __mt_ServicesMenu_var; private static NSString _DidBecomeActiveNotification; private static NSString _DidHideNotification; private static NSString _DidFinishLaunchingNotification; private static NSString _DidResignActiveNotification; private static NSString _DidUnhideNotification; private static NSString _DidUpdateNotification; private static NSString _WillBecomeActiveNotification; private static NSString _WillHideNotification; private static NSString _WillFinishLaunchingNotification; private static NSString _WillResignActiveNotification; private static NSString _WillUnhideNotification; private static NSString _WillUpdateNotification; private static NSString _WillTerminateNotification; private static NSString _DidChangeScreenParametersNotification; private static NSString _LaunchIsDefaultLaunchKey; private static NSString _LaunchRemoteNotificationKey; private static NSString _DidFinishRestoringWindowsNotification; public override IntPtr ClassHandle => class_ptr; static NSApplication() { CheckForIllegalCrossThreadCalls = true; selSharedApplicationHandle = Selector.GetHandle("sharedApplication"); selDelegateHandle = Selector.GetHandle("delegate"); selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); selContextHandle = Selector.GetHandle("context"); selMainWindowHandle = Selector.GetHandle("mainWindow"); selKeyWindowHandle = Selector.GetHandle("keyWindow"); selIsActiveHandle = Selector.GetHandle("isActive"); selIsHiddenHandle = Selector.GetHandle("isHidden"); selIsRunningHandle = Selector.GetHandle("isRunning"); selModalWindowHandle = Selector.GetHandle("modalWindow"); selCurrentEventHandle = Selector.GetHandle("currentEvent"); selWindowsHandle = Selector.GetHandle("windows"); selMainMenuHandle = Selector.GetHandle("mainMenu"); selSetMainMenu_Handle = Selector.GetHandle("setMainMenu:"); selHelpMenuHandle = Selector.GetHandle("helpMenu"); selSetHelpMenu_Handle = Selector.GetHandle("setHelpMenu:"); selApplicationIconImageHandle = Selector.GetHandle("applicationIconImage"); selSetApplicationIconImage_Handle = Selector.GetHandle("setApplicationIconImage:"); selDockTileHandle = Selector.GetHandle("dockTile"); selPresentationOptionsHandle = Selector.GetHandle("presentationOptions"); selSetPresentationOptions_Handle = Selector.GetHandle("setPresentationOptions:"); selCurrentSystemPresentationOptionsHandle = Selector.GetHandle("currentSystemPresentationOptions"); selWindowsMenuHandle = Selector.GetHandle("windowsMenu"); selSetWindowsMenu_Handle = Selector.GetHandle("setWindowsMenu:"); selIsFullKeyboardAccessEnabledHandle = Selector.GetHandle("isFullKeyboardAccessEnabled"); selServicesProviderHandle = Selector.GetHandle("servicesProvider"); selSetServicesProvider_Handle = Selector.GetHandle("setServicesProvider:"); selUserInterfaceLayoutDirectionHandle = Selector.GetHandle("userInterfaceLayoutDirection"); selServicesMenuHandle = Selector.GetHandle("servicesMenu"); selSetServicesMenu_Handle = Selector.GetHandle("setServicesMenu:"); selHide_Handle = Selector.GetHandle("hide:"); selUnhide_Handle = Selector.GetHandle("unhide:"); selUnhideWithoutActivationHandle = Selector.GetHandle("unhideWithoutActivation"); selWindowWithWindowNumber_Handle = Selector.GetHandle("windowWithWindowNumber:"); selDeactivateHandle = Selector.GetHandle("deactivate"); selActivateIgnoringOtherApps_Handle = Selector.GetHandle("activateIgnoringOtherApps:"); selHideOtherApplications_Handle = Selector.GetHandle("hideOtherApplications:"); selUnhideAllApplications_Handle = Selector.GetHandle("unhideAllApplications:"); selFinishLaunchingHandle = Selector.GetHandle("finishLaunching"); selRunHandle = Selector.GetHandle("run"); selRunModalForWindow_Handle = Selector.GetHandle("runModalForWindow:"); selStop_Handle = Selector.GetHandle("stop:"); selStopModalHandle = Selector.GetHandle("stopModal"); selStopModalWithCode_Handle = Selector.GetHandle("stopModalWithCode:"); selAbortModalHandle = Selector.GetHandle("abortModal"); selBeginModalSessionForWindow_Handle = Selector.GetHandle("beginModalSessionForWindow:"); selRunModalSession_Handle = Selector.GetHandle("runModalSession:"); selEndModalSession_Handle = Selector.GetHandle("endModalSession:"); selTerminate_Handle = Selector.GetHandle("terminate:"); selRequestUserAttention_Handle = Selector.GetHandle("requestUserAttention:"); selCancelUserAttentionRequest_Handle = Selector.GetHandle("cancelUserAttentionRequest:"); selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:"); selEndSheet_Handle = Selector.GetHandle("endSheet:"); selEndSheetReturnCode_Handle = Selector.GetHandle("endSheet:returnCode:"); selNextEventMatchingMaskUntilDateInModeDequeue_Handle = Selector.GetHandle("nextEventMatchingMask:untilDate:inMode:dequeue:"); selDiscardEventsMatchingMaskBeforeEvent_Handle = Selector.GetHandle("discardEventsMatchingMask:beforeEvent:"); selPostEventAtStart_Handle = Selector.GetHandle("postEvent:atStart:"); selSendEvent_Handle = Selector.GetHandle("sendEvent:"); selPreventWindowOrderingHandle = Selector.GetHandle("preventWindowOrdering"); selMakeWindowsPerformInOrder_Handle = Selector.GetHandle("makeWindowsPerform:inOrder:"); selSetWindowsNeedUpdate_Handle = Selector.GetHandle("setWindowsNeedUpdate:"); selUpdateWindowsHandle = Selector.GetHandle("updateWindows"); selActivationPolicyHandle = Selector.GetHandle("activationPolicy"); selSetActivationPolicy_Handle = Selector.GetHandle("setActivationPolicy:"); selSendActionToFrom_Handle = Selector.GetHandle("sendAction:to:from:"); selTargetForAction_Handle = Selector.GetHandle("targetForAction:"); selTargetForActionToFrom_Handle = Selector.GetHandle("targetForAction:to:from:"); selTryToPerformWith_Handle = Selector.GetHandle("tryToPerform:with:"); selValidRequestorForSendTypeReturnType_Handle = Selector.GetHandle("validRequestorForSendType:returnType:"); selReportException_Handle = Selector.GetHandle("reportException:"); selDetachDrawingThreadToTargetWithObject_Handle = Selector.GetHandle("detachDrawingThread:toTarget:withObject:"); selReplyToApplicationShouldTerminate_Handle = Selector.GetHandle("replyToApplicationShouldTerminate:"); selReplyToOpenOrPrint_Handle = Selector.GetHandle("replyToOpenOrPrint:"); selOrderFrontCharacterPalette_Handle = Selector.GetHandle("orderFrontCharacterPalette:"); selArrangeInFront_Handle = Selector.GetHandle("arrangeInFront:"); selRemoveWindowsItem_Handle = Selector.GetHandle("removeWindowsItem:"); selAddWindowsItemTitleFilename_Handle = Selector.GetHandle("addWindowsItem:title:filename:"); selChangeWindowsItemTitleFilename_Handle = Selector.GetHandle("changeWindowsItem:title:filename:"); selUpdateWindowsItem_Handle = Selector.GetHandle("updateWindowsItem:"); selMiniaturizeAll_Handle = Selector.GetHandle("miniaturizeAll:"); selOrderFrontColorPanel_Handle = Selector.GetHandle("orderFrontColorPanel:"); selDisableRelaunchOnLoginHandle = Selector.GetHandle("disableRelaunchOnLogin"); selEnableRelaunchOnLoginHandle = Selector.GetHandle("enableRelaunchOnLogin"); selEnabledRemoteNotificationTypesHandle = Selector.GetHandle("enabledRemoteNotificationTypes"); selRegisterForRemoteNotificationTypes_Handle = Selector.GetHandle("registerForRemoteNotificationTypes:"); selUnregisterForRemoteNotificationsHandle = Selector.GetHandle("unregisterForRemoteNotifications"); selRestoreWindowWithIdentifierStateCompletionHandler_Handle = Selector.GetHandle("restoreWindowWithIdentifier:state:completionHandler:"); class_ptr = Class.GetHandle("NSApplication"); RuntimeHelpers.RunClassConstructor(typeof(NSObject).TypeHandle); class_ptr = Class.GetHandle("NSApplication"); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSApplication(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSApplication(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSApplication(IntPtr handle) : base(handle) { } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern void NSApplicationMain(int argc, string[] argv); [ThreadSafe] public static NSApplication SharedApplication { [Export("sharedApplication")] get { return (NSApplication)(__mt_SharedApplication_var_static = (NSApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedApplicationHandle))); } } public static void Init() { if (initialized) throw new InvalidOperationException("Init has already be be invoked; it can only be invoke once"); initialized = true; Assembly assembly = typeof(NSApplication).Assembly; //RuntimeEx.RegisterEntryAssembly(assembly); Runtime.RegisterEntryAssembly(assembly); if (SynchronizationContext.Current == null) SynchronizationContext.SetSynchronizationContext(new AppKitSynchronizationContext()); mainThread = Thread.CurrentThread; } public static void InitDrawingBridge() { FieldInfo field = Type.GetType("System.Drawing.GDIPlus, System.Drawing").GetField("UseCocoaDrawable", BindingFlags.Static | BindingFlags.Public); FieldInfo? field2 = Type.GetType("System.Drawing.GDIPlus, System.Drawing").GetField("UseCarbonDrawable", BindingFlags.Static | BindingFlags.Public); field.SetValue(null, true); field2.SetValue(null, false); } public static void Main(string[] args) { if (SynchronizationContext.Current == null || !typeof(AppKitSynchronizationContext).IsAssignableFrom(SynchronizationContext.Current.GetType())) SynchronizationContext.SetSynchronizationContext(new AppKitSynchronizationContext()); mainThread = Thread.CurrentThread; NSApplicationMain(args.Length, args); } [Export("restoreWindowWithIdentifier:state:completionHandler:")] public unsafe static void RestoreWindow(string identifier, NSCoder state, NSWindowCompletionHandler onCompletion) { EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (state == null) { throw new ArgumentNullException("state"); } if (onCompletion == null) { throw new ArgumentNullException("onCompletion"); } IntPtr arg = NSString.CreateNative(identifier); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSWindowCompletionHandler.Handler, onCompletion); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selRestoreWindowWithIdentifierStateCompletionHandler_Handle, arg, state.Handle, (IntPtr)ptr); NSString.ReleaseNative(arg); ptr->CleanupBlock(); } [Field("NSApplicationDidBecomeActiveNotification", "AppKit")] public static NSString DidBecomeActiveNotification { get { if (_DidBecomeActiveNotification == null) { _DidBecomeActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidBecomeActiveNotification"); } return _DidBecomeActiveNotification; } } [Field("NSApplicationDidHideNotification", "AppKit")] public static NSString DidHideNotification { get { if (_DidHideNotification == null) { _DidHideNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidHideNotification"); } return _DidHideNotification; } } [Field("NSApplicationDidFinishLaunchingNotification", "AppKit")] public static NSString DidFinishLaunchingNotification { get { if (_DidFinishLaunchingNotification == null) { _DidFinishLaunchingNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidFinishLaunchingNotification"); } return _DidFinishLaunchingNotification; } } [Field("NSApplicationDidResignActiveNotification", "AppKit")] public static NSString DidResignActiveNotification { get { if (_DidResignActiveNotification == null) { _DidResignActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidResignActiveNotification"); } return _DidResignActiveNotification; } } [Field("NSApplicationDidUnhideNotification", "AppKit")] public static NSString DidUnhideNotification { get { if (_DidUnhideNotification == null) { _DidUnhideNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidUnhideNotification"); } return _DidUnhideNotification; } } [Field("NSApplicationDidUpdateNotification", "AppKit")] public static NSString DidUpdateNotification { get { if (_DidUpdateNotification == null) { _DidUpdateNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidUpdateNotification"); } return _DidUpdateNotification; } } [Field("NSApplicationWillBecomeActiveNotification", "AppKit")] public static NSString WillBecomeActiveNotification { get { if (_WillBecomeActiveNotification == null) { _WillBecomeActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillBecomeActiveNotification"); } return _WillBecomeActiveNotification; } } [Field("NSApplicationWillHideNotification", "AppKit")] public static NSString WillHideNotification { get { if (_WillHideNotification == null) { _WillHideNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillHideNotification"); } return _WillHideNotification; } } [Field("NSApplicationWillFinishLaunchingNotification", "AppKit")] public static NSString WillFinishLaunchingNotification { get { if (_WillFinishLaunchingNotification == null) { _WillFinishLaunchingNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillFinishLaunchingNotification"); } return _WillFinishLaunchingNotification; } } [Field("NSApplicationWillResignActiveNotification", "AppKit")] public static NSString WillResignActiveNotification { get { if (_WillResignActiveNotification == null) { _WillResignActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillResignActiveNotification"); } return _WillResignActiveNotification; } } [Field("NSApplicationWillUnhideNotification", "AppKit")] public static NSString WillUnhideNotification { get { if (_WillUnhideNotification == null) { _WillUnhideNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillUnhideNotification"); } return _WillUnhideNotification; } } [Field("NSApplicationWillUpdateNotification", "AppKit")] public static NSString WillUpdateNotification { get { if (_WillUpdateNotification == null) { _WillUpdateNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillUpdateNotification"); } return _WillUpdateNotification; } } [Field("NSApplicationWillTerminateNotification", "AppKit")] public static NSString WillTerminateNotification { get { if (_WillTerminateNotification == null) { _WillTerminateNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationWillTerminateNotification"); } return _WillTerminateNotification; } } [Field("NSApplicationDidChangeScreenParametersNotification", "AppKit")] public static NSString DidChangeScreenParametersNotification { get { if (_DidChangeScreenParametersNotification == null) { _DidChangeScreenParametersNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidChangeScreenParametersNotification"); } return _DidChangeScreenParametersNotification; } } [Field("NSApplicationLaunchIsDefaultLaunchKey", "AppKit")] public static NSString LaunchIsDefaultLaunchKey { get { if (_LaunchIsDefaultLaunchKey == null) { _LaunchIsDefaultLaunchKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationLaunchIsDefaultLaunchKey"); } return _LaunchIsDefaultLaunchKey; } } [Field("NSApplicationLaunchRemoteNotificationKey", "AppKit")] public static NSString LaunchRemoteNotificationKey { get { if (_LaunchRemoteNotificationKey == null) { _LaunchRemoteNotificationKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationLaunchRemoteNotificationKey"); } return _LaunchRemoteNotificationKey; } } [Field("NSApplicationDidFinishRestoringWindowsNotification", "AppKit")] public static NSString DidFinishRestoringWindowsNotification { get { if (_DidFinishRestoringWindowsNotification == null) { _DidFinishRestoringWindowsNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSApplicationDidFinishRestoringWindowsNotification"); } return _DidFinishRestoringWindowsNotification; } } public NSApplicationActivationPolicy ActivationPolicy { get { return GetActivationPolicy(); } set { SetActivationPolicy(value); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSApplicationDelegate Delegate { get { return WeakDelegate as NSApplicationDelegate; } set { WeakDelegate = value; } } public virtual NSGraphicsContext Context { [Export("context")] get { EnsureUIThread(); return (NSGraphicsContext)(__mt_Context_var = ((!IsDirectBinding) ? ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selContextHandle))) : ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selContextHandle))))); } } public virtual NSWindow MainWindow { [Export("mainWindow")] get { EnsureUIThread(); return (NSWindow)(__mt_MainWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selMainWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selMainWindowHandle))))); } } public virtual NSWindow KeyWindow { [Export("keyWindow")] get { EnsureUIThread(); return (NSWindow)(__mt_KeyWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selKeyWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selKeyWindowHandle))))); } } public virtual bool Active { [Export("isActive")] get { EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selIsActiveHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsActiveHandle); } } public virtual bool Hidden { [Export("isHidden")] get { EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsHiddenHandle); } } public virtual bool Running { [Export("isRunning")] get { EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsRunningHandle); } } public virtual NSWindow ModalWindow { [Export("modalWindow")] get { EnsureUIThread(); return (NSWindow)(__mt_ModalWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selModalWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selModalWindowHandle))))); } } public virtual NSEvent CurrentEvent { [Export("currentEvent")] get { EnsureUIThread(); return (NSEvent)(__mt_CurrentEvent_var = ((!IsDirectBinding) ? ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCurrentEventHandle))) : ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selCurrentEventHandle))))); } } public virtual NSWindow[] Windows { [Export("windows")] get { EnsureUIThread(); return (NSWindow[])(__mt_Windows_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWindowsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selWindowsHandle)))); } } public virtual NSMenu MainMenu { [Export("mainMenu")] get { EnsureUIThread(); return (NSMenu)(__mt_MainMenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selMainMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selMainMenuHandle))))); } [Export("setMainMenu:")] set { EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetMainMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetMainMenu_Handle, value.Handle); } __mt_MainMenu_var = value; } } public virtual NSMenu HelpMenu { [Export("helpMenu")] get { EnsureUIThread(); return (NSMenu)(__mt_HelpMenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selHelpMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selHelpMenuHandle))))); } [Export("setHelpMenu:")] set { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetHelpMenu_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetHelpMenu_Handle, value?.Handle ?? IntPtr.Zero); } __mt_HelpMenu_var = value; } } public virtual NSImage ApplicationIconImage { [Export("applicationIconImage")] get { EnsureUIThread(); return (NSImage)(__mt_ApplicationIconImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selApplicationIconImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selApplicationIconImageHandle))))); } [Export("setApplicationIconImage:")] set { EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetApplicationIconImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetApplicationIconImage_Handle, value.Handle); } __mt_ApplicationIconImage_var = value; } } public virtual NSDockTile DockTile { [Export("dockTile")] get { EnsureUIThread(); return (NSDockTile)(__mt_DockTile_var = ((!IsDirectBinding) ? ((NSDockTile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDockTileHandle))) : ((NSDockTile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selDockTileHandle))))); } } public virtual NSApplicationPresentationOptions PresentationOptions { [Export("presentationOptions")] get { EnsureUIThread(); if (IsDirectBinding) { return (NSApplicationPresentationOptions)Messaging.UInt64_objc_msgSend(Handle, selPresentationOptionsHandle); } return (NSApplicationPresentationOptions)Messaging.UInt64_objc_msgSendSuper(SuperHandle, selPresentationOptionsHandle); } [Export("setPresentationOptions:")] set { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(Handle, selSetPresentationOptions_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(SuperHandle, selSetPresentationOptions_Handle, (ulong)value); } } } public virtual NSApplicationPresentationOptions CurrentSystemPresentationOptions { [Export("currentSystemPresentationOptions")] get { EnsureUIThread(); if (IsDirectBinding) { return (NSApplicationPresentationOptions)Messaging.UInt64_objc_msgSend(Handle, selCurrentSystemPresentationOptionsHandle); } return (NSApplicationPresentationOptions)Messaging.UInt64_objc_msgSendSuper(SuperHandle, selCurrentSystemPresentationOptionsHandle); } } public virtual NSMenu WindowsMenu { [Export("windowsMenu")] get { EnsureUIThread(); return (NSMenu)(__mt_WindowsMenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWindowsMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selWindowsMenuHandle))))); } [Export("setWindowsMenu:")] set { EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetWindowsMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetWindowsMenu_Handle, value.Handle); } __mt_WindowsMenu_var = value; } } public virtual bool FullKeyboardAccessEnabled { [Export("isFullKeyboardAccessEnabled")] get { EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selIsFullKeyboardAccessEnabledHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsFullKeyboardAccessEnabledHandle); } } public virtual NSObject ServicesProvider { [Export("servicesProvider")] get { EnsureUIThread(); return (NSObject)(__mt_ServicesProvider_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selServicesProviderHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selServicesProviderHandle)))); } [Export("setServicesProvider:")] set { EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetServicesProvider_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetServicesProvider_Handle, value.Handle); } __mt_ServicesProvider_var = value; } } public virtual NSApplicationLayoutDirection UserInterfaceLayoutDirection { [Export("userInterfaceLayoutDirection")] get { EnsureUIThread(); if (IsDirectBinding) { return (NSApplicationLayoutDirection)Messaging.Int64_objc_msgSend(Handle, selUserInterfaceLayoutDirectionHandle); } return (NSApplicationLayoutDirection)Messaging.Int64_objc_msgSendSuper(SuperHandle, selUserInterfaceLayoutDirectionHandle); } } public virtual NSMenu ServicesMenu { [Export("servicesMenu")] get { EnsureUIThread(); return (NSMenu)(__mt_ServicesMenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selServicesMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selServicesMenuHandle))))); } [Export("setServicesMenu:")] set { EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetServicesMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetServicesMenu_Handle, value.Handle); } __mt_ServicesMenu_var = value; } } public NSApplicationTermination ApplicationShouldTerminate { get { return EnsureNSApplicationDelegate().applicationShouldTerminate; } set { EnsureNSApplicationDelegate().applicationShouldTerminate = value; } } public NSApplicationFile OpenFile { get { return EnsureNSApplicationDelegate().openFile; } set { EnsureNSApplicationDelegate().openFile = value; } } public NSApplicationFile OpenTempFile { get { return EnsureNSApplicationDelegate().openTempFile; } set { EnsureNSApplicationDelegate().openTempFile = value; } } public NSApplicationPredicate ApplicationShouldOpenUntitledFile { get { return EnsureNSApplicationDelegate().applicationShouldOpenUntitledFile; } set { EnsureNSApplicationDelegate().applicationShouldOpenUntitledFile = value; } } public NSApplicationPredicate ApplicationOpenUntitledFile { get { return EnsureNSApplicationDelegate().applicationOpenUntitledFile; } set { EnsureNSApplicationDelegate().applicationOpenUntitledFile = value; } } public NSApplicationFileCommand OpenFileWithoutUI { get { return EnsureNSApplicationDelegate().openFileWithoutUI; } set { EnsureNSApplicationDelegate().openFileWithoutUI = value; } } public NSApplicationFile PrintFile { get { return EnsureNSApplicationDelegate().printFile; } set { EnsureNSApplicationDelegate().printFile = value; } } public NSApplicationPrint PrintFiles { get { return EnsureNSApplicationDelegate().printFiles; } set { EnsureNSApplicationDelegate().printFiles = value; } } public NSApplicationPredicate ApplicationShouldTerminateAfterLastWindowClosed { get { return EnsureNSApplicationDelegate().applicationShouldTerminateAfterLastWindowClosed; } set { EnsureNSApplicationDelegate().applicationShouldTerminateAfterLastWindowClosed = value; } } public NSApplicationReopen ApplicationShouldHandleReopen { get { return EnsureNSApplicationDelegate().applicationShouldHandleReopen; } set { EnsureNSApplicationDelegate().applicationShouldHandleReopen = value; } } public NSApplicationMenu ApplicationDockMenu { get { return EnsureNSApplicationDelegate().applicationDockMenu; } set { EnsureNSApplicationDelegate().applicationDockMenu = value; } } public NSApplicationError WillPresentError { get { return EnsureNSApplicationDelegate().willPresentError; } set { EnsureNSApplicationDelegate().willPresentError = value; } } public NSApplicationSelection WriteSelectionToPasteboard { get { return EnsureNSApplicationDelegate().writeSelectionToPasteboard; } set { EnsureNSApplicationDelegate().writeSelectionToPasteboard = value; } } public NSPasteboardPredicate ReadSelectionFromPasteboard { get { return EnsureNSApplicationDelegate().readSelectionFromPasteboard; } set { EnsureNSApplicationDelegate().readSelectionFromPasteboard = value; } } public event EventHandler OpenFiles { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.openFiles = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.openFiles, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.openFiles = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.openFiles, value); } } public event EventHandler WillFinishLaunching { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willFinishLaunching = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willFinishLaunching, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willFinishLaunching = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willFinishLaunching, value); } } public event EventHandler DidFinishLaunching { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didFinishLaunching = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didFinishLaunching, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didFinishLaunching = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didFinishLaunching, value); } } public event EventHandler WillHide { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willHide = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willHide, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willHide = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willHide, value); } } public event EventHandler DidHide { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didHide = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didHide, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didHide = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didHide, value); } } public event EventHandler WillUnhide { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willUnhide = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willUnhide, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willUnhide = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willUnhide, value); } } public event EventHandler DidUnhide { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didUnhide = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didUnhide, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didUnhide = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didUnhide, value); } } public event EventHandler WillBecomeActive { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willBecomeActive = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willBecomeActive, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willBecomeActive = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willBecomeActive, value); } } public event EventHandler DidBecomeActive { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didBecomeActive = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didBecomeActive, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didBecomeActive = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didBecomeActive, value); } } public event EventHandler WillResignActive { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willResignActive = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willResignActive, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willResignActive = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willResignActive, value); } } public event EventHandler DidResignActive { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didResignActive = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didResignActive, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didResignActive = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didResignActive, value); } } public event EventHandler WillUpdate { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willUpdate = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willUpdate, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willUpdate = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willUpdate, value); } } public event EventHandler DidUpdate { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didUpdate = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.didUpdate, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.didUpdate = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.didUpdate, value); } } public event EventHandler WillTerminate { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willTerminate = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willTerminate, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willTerminate = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willTerminate, value); } } public event EventHandler ScreenParametersChanged { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.screenParametersChanged = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.screenParametersChanged, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.screenParametersChanged = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.screenParametersChanged, value); } } public event EventHandler RegisterServicesMenu { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.registerServicesMenu = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.registerServicesMenu, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.registerServicesMenu = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.registerServicesMenu, value); } } public event EventHandler OrderFrontStandardAboutPanel { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.orderFrontStandardAboutPanel = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.orderFrontStandardAboutPanel, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.orderFrontStandardAboutPanel = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.orderFrontStandardAboutPanel, value); } } public event EventHandler OrderFrontStandardAboutPanelWithOptions { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.orderFrontStandardAboutPanelWithOptions = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.orderFrontStandardAboutPanelWithOptions, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.orderFrontStandardAboutPanelWithOptions = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.orderFrontStandardAboutPanelWithOptions, value); } } public event EventHandler RegisteredForRemoteNotifications { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.registeredForRemoteNotifications = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.registeredForRemoteNotifications, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.registeredForRemoteNotifications = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.registeredForRemoteNotifications, value); } } public event EventHandler FailedToRegisterForRemoteNotifications { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.failedToRegisterForRemoteNotifications = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.failedToRegisterForRemoteNotifications, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.failedToRegisterForRemoteNotifications = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.failedToRegisterForRemoteNotifications, value); } } public event EventHandler ReceivedRemoteNotification { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.receivedRemoteNotification = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.receivedRemoteNotification, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.receivedRemoteNotification = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.receivedRemoteNotification, value); } } public event EventHandler WillEncodeRestorableState { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willEncodeRestorableState = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.willEncodeRestorableState, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.willEncodeRestorableState = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.willEncodeRestorableState, value); } } public event EventHandler DecodedRestorableState { add { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.decodedRestorableState = (EventHandler)System.Delegate.Combine(nSApplicationDelegate.decodedRestorableState, value); } remove { _NSApplicationDelegate nSApplicationDelegate = EnsureNSApplicationDelegate(); nSApplicationDelegate.decodedRestorableState = (EventHandler)System.Delegate.Remove(nSApplicationDelegate.decodedRestorableState, value); } } public void BeginSheet(NSWindow sheet, NSWindow docWindow) { BeginSheet(sheet, docWindow, null, null, IntPtr.Zero); } public void BeginSheet(NSWindow sheet, NSWindow docWindow, NSAction onEnded) { NSObject modalDelegate = OneShotTracker.Create(onEnded); BeginSheet(sheet, docWindow, modalDelegate, NSActionDispatcher.Selector, IntPtr.Zero); } public static void EnsureUIThread() { if (CheckForIllegalCrossThreadCalls && mainThread != Thread.CurrentThread) throw new AppKitThreadAccessException(); } public NSEvent NextEvent(NSEventMask mask, NSDate expiration, string mode, bool deqFlag) { return NextEvent((uint)mask, expiration, mode, deqFlag); } public void DiscardEvents(NSEventMask mask, NSEvent lastEvent) { DiscardEvents((uint)mask, lastEvent); } [Export("hide:")] public virtual void Hide(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selHide_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selHide_Handle, sender.Handle); } } [Export("unhide:")] public virtual void Unhide(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selUnhide_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selUnhide_Handle, sender.Handle); } } [Export("unhideWithoutActivation")] public virtual void UnhideWithoutActivation() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selUnhideWithoutActivationHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selUnhideWithoutActivationHandle); } } [Export("windowWithWindowNumber:")] public virtual NSWindow WindowWithWindowNumber(long windowNum) { EnsureUIThread(); if (IsDirectBinding) { return (NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(Handle, selWindowWithWindowNumber_Handle, windowNum)); } return (NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(SuperHandle, selWindowWithWindowNumber_Handle, windowNum)); } [Export("deactivate")] public virtual void Deactivate() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selDeactivateHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selDeactivateHandle); } } [Export("activateIgnoringOtherApps:")] public virtual void ActivateIgnoringOtherApps(bool flag) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selActivateIgnoringOtherApps_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selActivateIgnoringOtherApps_Handle, flag); } } [Export("hideOtherApplications:")] public virtual void HideOtherApplications(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selHideOtherApplications_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selHideOtherApplications_Handle, sender.Handle); } } [Export("unhideAllApplications:")] public virtual void UnhideAllApplications(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selUnhideAllApplications_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selUnhideAllApplications_Handle, sender.Handle); } } [Export("finishLaunching")] public virtual void FinishLaunching() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selFinishLaunchingHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selFinishLaunchingHandle); } } [Export("run")] public virtual void Run() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selRunHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selRunHandle); } } [Export("runModalForWindow:")] public virtual long RunModalForWindow(NSWindow theWindow) { EnsureUIThread(); if (theWindow == null) { throw new ArgumentNullException("theWindow"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(Handle, selRunModalForWindow_Handle, theWindow.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(SuperHandle, selRunModalForWindow_Handle, theWindow.Handle); } [Export("stop:")] public virtual void Stop(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selStop_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selStop_Handle, sender.Handle); } } [Export("stopModal")] public virtual void StopModal() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selStopModalHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selStopModalHandle); } } [Export("stopModalWithCode:")] public virtual void StopModalWithCode(long returnCode) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(Handle, selStopModalWithCode_Handle, returnCode); } else { Messaging.void_objc_msgSendSuper_Int64(SuperHandle, selStopModalWithCode_Handle, returnCode); } } [Export("abortModal")] [ThreadSafe] public virtual void AbortModal() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selAbortModalHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selAbortModalHandle); } } [Export("beginModalSessionForWindow:")] public virtual IntPtr BeginModalSession(NSWindow theWindow) { EnsureUIThread(); if (theWindow == null) { throw new ArgumentNullException("theWindow"); } if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selBeginModalSessionForWindow_Handle, theWindow.Handle); } return Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selBeginModalSessionForWindow_Handle, theWindow.Handle); } [Export("runModalSession:")] public virtual long RunModalSession(IntPtr session) { EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(Handle, selRunModalSession_Handle, session); } return Messaging.Int64_objc_msgSendSuper_IntPtr(SuperHandle, selRunModalSession_Handle, session); } [Export("endModalSession:")] public virtual void EndModalSession(IntPtr session) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selEndModalSession_Handle, session); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selEndModalSession_Handle, session); } } [Export("terminate:")] public virtual void Terminate(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selTerminate_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selTerminate_Handle, sender.Handle); } } [Export("requestUserAttention:")] public virtual long RequestUserAttention(NSRequestUserAttentionType requestType) { EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_UInt64(Handle, selRequestUserAttention_Handle, (ulong)requestType); } return Messaging.Int64_objc_msgSendSuper_UInt64(SuperHandle, selRequestUserAttention_Handle, (ulong)requestType); } [Export("cancelUserAttentionRequest:")] public virtual void CancelUserAttentionRequest(long request) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(Handle, selCancelUserAttentionRequest_Handle, request); } else { Messaging.void_objc_msgSendSuper_Int64(SuperHandle, selCancelUserAttentionRequest_Handle, request); } } [Export("beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:")] public virtual void BeginSheet(NSWindow sheet, NSWindow docWindow, NSObject modalDelegate, Selector didEndSelector, IntPtr contextInfo) { EnsureUIThread(); if (sheet == null) { throw new ArgumentNullException("sheet"); } if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, sheet.Handle, docWindow.Handle, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selBeginSheetModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, sheet.Handle, docWindow.Handle, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } } [Export("endSheet:")] public virtual void EndSheet(NSWindow sheet) { EnsureUIThread(); if (sheet == null) { throw new ArgumentNullException("sheet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selEndSheet_Handle, sheet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selEndSheet_Handle, sheet.Handle); } } [Export("endSheet:returnCode:")] public virtual void EndSheet(NSWindow sheet, long returnCode) { EnsureUIThread(); if (sheet == null) { throw new ArgumentNullException("sheet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(Handle, selEndSheetReturnCode_Handle, sheet.Handle, returnCode); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(SuperHandle, selEndSheetReturnCode_Handle, sheet.Handle, returnCode); } } [Export("nextEventMatchingMask:untilDate:inMode:dequeue:")] protected virtual NSEvent NextEvent(ulong mask, NSDate expiration, string mode, bool deqFlag) { EnsureUIThread(); if (expiration == null) { throw new ArgumentNullException("expiration"); } if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); NSEvent result = ((!IsDirectBinding) ? ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_bool(SuperHandle, selNextEventMatchingMaskUntilDateInModeDequeue_Handle, mask, expiration.Handle, arg, deqFlag))) : ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_bool(Handle, selNextEventMatchingMaskUntilDateInModeDequeue_Handle, mask, expiration.Handle, arg, deqFlag)))); NSString.ReleaseNative(arg); return result; } [Export("discardEventsMatchingMask:beforeEvent:")] protected virtual void DiscardEvents(ulong mask, NSEvent lastEvent) { EnsureUIThread(); if (lastEvent == null) { throw new ArgumentNullException("lastEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(Handle, selDiscardEventsMatchingMaskBeforeEvent_Handle, mask, lastEvent.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(SuperHandle, selDiscardEventsMatchingMaskBeforeEvent_Handle, mask, lastEvent.Handle); } } [Export("postEvent:atStart:")] [ThreadSafe] public virtual void PostEvent(NSEvent theEvent, bool atStart) { if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(Handle, selPostEventAtStart_Handle, theEvent.Handle, atStart); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(SuperHandle, selPostEventAtStart_Handle, theEvent.Handle, atStart); } } [Export("sendEvent:")] public virtual void SendEvent(NSEvent theEvent) { EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSendEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSendEvent_Handle, theEvent.Handle); } } [Export("preventWindowOrdering")] public virtual void PreventWindowOrdering() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selPreventWindowOrderingHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selPreventWindowOrderingHandle); } } [Export("makeWindowsPerform:inOrder:")] public virtual NSWindow MakeWindowsPerform(Selector aSelector, bool inOrder) { EnsureUIThread(); if (aSelector == null) { throw new ArgumentNullException("aSelector"); } if (IsDirectBinding) { return (NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool(Handle, selMakeWindowsPerformInOrder_Handle, aSelector.Handle, inOrder)); } return (NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(SuperHandle, selMakeWindowsPerformInOrder_Handle, aSelector.Handle, inOrder)); } [Export("setWindowsNeedUpdate:")] public virtual void SetWindowsNeedUpdate(bool needUpdate) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetWindowsNeedUpdate_Handle, needUpdate); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetWindowsNeedUpdate_Handle, needUpdate); } } [Export("updateWindows")] public virtual void UpdateWindows() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selUpdateWindowsHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selUpdateWindowsHandle); } } [Export("setMainMenu:")] [Obsolete("Use MainMenu property", false)] public virtual void SetMainMenu(NSMenu aMenu) { EnsureUIThread(); if (aMenu == null) { throw new ArgumentNullException("aMenu"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetMainMenu_Handle, aMenu.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetMainMenu_Handle, aMenu.Handle); } } [Export("activationPolicy")] protected virtual NSApplicationActivationPolicy GetActivationPolicy() { EnsureUIThread(); if (IsDirectBinding) { return (NSApplicationActivationPolicy)Messaging.Int64_objc_msgSend(Handle, selActivationPolicyHandle); } return (NSApplicationActivationPolicy)Messaging.Int64_objc_msgSendSuper(SuperHandle, selActivationPolicyHandle); } [Export("setActivationPolicy:")] protected virtual bool SetActivationPolicy(NSApplicationActivationPolicy activationPolicy) { EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(Handle, selSetActivationPolicy_Handle, (long)activationPolicy); } return Messaging.bool_objc_msgSendSuper_Int64(SuperHandle, selSetActivationPolicy_Handle, (long)activationPolicy); } [Export("sendAction:to:from:")] public virtual bool SendAction(Selector theAction, NSObject theTarget, NSObject sender) { EnsureUIThread(); if (theAction == null) { throw new ArgumentNullException("theAction"); } if (theTarget == null) { throw new ArgumentNullException("theTarget"); } if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selSendActionToFrom_Handle, theAction.Handle, theTarget.Handle, sender.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selSendActionToFrom_Handle, theAction.Handle, theTarget.Handle, sender.Handle); } [Export("targetForAction:")] public virtual NSObject TargetForAction(Selector theAction) { EnsureUIThread(); if (theAction == null) { throw new ArgumentNullException("theAction"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selTargetForAction_Handle, theAction.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selTargetForAction_Handle, theAction.Handle)); } [Export("targetForAction:to:from:")] public virtual NSObject TargetForAction(Selector theAction, NSObject theTarget, NSObject sender) { EnsureUIThread(); if (theAction == null) { throw new ArgumentNullException("theAction"); } if (theTarget == null) { throw new ArgumentNullException("theTarget"); } if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selTargetForActionToFrom_Handle, theAction.Handle, theTarget.Handle, sender.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selTargetForActionToFrom_Handle, theAction.Handle, theTarget.Handle, sender.Handle)); } [Export("tryToPerform:with:")] public virtual bool TryToPerform(Selector anAction, NSObject target) { EnsureUIThread(); if (anAction == null) { throw new ArgumentNullException("anAction"); } if (target == null) { throw new ArgumentNullException("target"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(Handle, selTryToPerformWith_Handle, anAction.Handle, target.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selTryToPerformWith_Handle, anAction.Handle, target.Handle); } [Export("validRequestorForSendType:returnType:")] public virtual NSObject ValidRequestor(string sendType, string returnType) { EnsureUIThread(); if (sendType == null) { throw new ArgumentNullException("sendType"); } if (returnType == null) { throw new ArgumentNullException("returnType"); } IntPtr arg = NSString.CreateNative(sendType); IntPtr arg2 = NSString.CreateNative(returnType); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("reportException:")] public virtual void ReportException(NSException theException) { EnsureUIThread(); if (theException == null) { throw new ArgumentNullException("theException"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selReportException_Handle, theException.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selReportException_Handle, theException.Handle); } } [Export("detachDrawingThread:toTarget:withObject:")] public static void DetachDrawingThread(Selector selector, NSObject target, NSObject argument) { EnsureUIThread(); if (selector == null) { throw new ArgumentNullException("selector"); } if (target == null) { throw new ArgumentNullException("target"); } if (argument == null) { throw new ArgumentNullException("argument"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selDetachDrawingThreadToTargetWithObject_Handle, selector.Handle, target.Handle, argument.Handle); } [Export("replyToApplicationShouldTerminate:")] public virtual void ReplyToApplicationShouldTerminate(bool shouldTerminate) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selReplyToApplicationShouldTerminate_Handle, shouldTerminate); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selReplyToApplicationShouldTerminate_Handle, shouldTerminate); } } [Export("replyToOpenOrPrint:")] public virtual void ReplyToOpenOrPrint(NSApplicationDelegateReply reply) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(Handle, selReplyToOpenOrPrint_Handle, (ulong)reply); } else { Messaging.void_objc_msgSendSuper_UInt64(SuperHandle, selReplyToOpenOrPrint_Handle, (ulong)reply); } } [Export("orderFrontCharacterPalette:")] public virtual void OrderFrontCharacterPalette(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selOrderFrontCharacterPalette_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selOrderFrontCharacterPalette_Handle, sender.Handle); } } [Export("arrangeInFront:")] public virtual void ArrangeInFront(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selArrangeInFront_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selArrangeInFront_Handle, sender.Handle); } } [Export("removeWindowsItem:")] public virtual void RemoveWindowsItem(NSWindow win) { EnsureUIThread(); if (win == null) { throw new ArgumentNullException("win"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveWindowsItem_Handle, win.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selRemoveWindowsItem_Handle, win.Handle); } } [Export("addWindowsItem:title:filename:")] public virtual void AddWindowsItem(NSWindow win, string title, bool isFilename) { EnsureUIThread(); if (win == null) { throw new ArgumentNullException("win"); } if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(Handle, selAddWindowsItemTitleFilename_Handle, win.Handle, arg, isFilename); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(SuperHandle, selAddWindowsItemTitleFilename_Handle, win.Handle, arg, isFilename); } NSString.ReleaseNative(arg); } [Export("changeWindowsItem:title:filename:")] public virtual void ChangeWindowsItem(NSWindow win, string title, bool isFilename) { EnsureUIThread(); if (win == null) { throw new ArgumentNullException("win"); } if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(Handle, selChangeWindowsItemTitleFilename_Handle, win.Handle, arg, isFilename); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(SuperHandle, selChangeWindowsItemTitleFilename_Handle, win.Handle, arg, isFilename); } NSString.ReleaseNative(arg); } [Export("updateWindowsItem:")] public virtual void UpdateWindowsItem(NSWindow win) { EnsureUIThread(); if (win == null) { throw new ArgumentNullException("win"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selUpdateWindowsItem_Handle, win.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selUpdateWindowsItem_Handle, win.Handle); } } [Export("miniaturizeAll:")] public virtual void MiniaturizeAll(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selMiniaturizeAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selMiniaturizeAll_Handle, sender.Handle); } } [Export("orderFrontColorPanel:")] public virtual void OrderFrontColorPanel(NSObject sender) { EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selOrderFrontColorPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selOrderFrontColorPanel_Handle, sender.Handle); } } [Export("disableRelaunchOnLogin")] [ThreadSafe] public virtual void DisableRelaunchOnLogin() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selDisableRelaunchOnLoginHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selDisableRelaunchOnLoginHandle); } } [Export("enableRelaunchOnLogin")] [ThreadSafe] public virtual void EnableRelaunchOnLogin() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selEnableRelaunchOnLoginHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selEnableRelaunchOnLoginHandle); } } [Export("enabledRemoteNotificationTypes")] public virtual NSRemoteNotificationType EnabledRemoteNotificationTypes() { EnsureUIThread(); if (IsDirectBinding) { return (NSRemoteNotificationType)Messaging.UInt64_objc_msgSend(Handle, selEnabledRemoteNotificationTypesHandle); } return (NSRemoteNotificationType)Messaging.UInt64_objc_msgSendSuper(SuperHandle, selEnabledRemoteNotificationTypesHandle); } [Export("registerForRemoteNotificationTypes:")] public virtual void RegisterForRemoteNotificationTypes(NSRemoteNotificationType types) { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(Handle, selRegisterForRemoteNotificationTypes_Handle, (ulong)types); } else { Messaging.void_objc_msgSendSuper_UInt64(SuperHandle, selRegisterForRemoteNotificationTypes_Handle, (ulong)types); } } [Export("unregisterForRemoteNotifications")] public virtual void UnregisterForRemoteNotifications() { EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selUnregisterForRemoteNotificationsHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selUnregisterForRemoteNotificationsHandle); } } private _NSApplicationDelegate EnsureNSApplicationDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSApplicationDelegate)) { nSObject = (WeakDelegate = new _NSApplicationDelegate()); } return (_NSApplicationDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Context_var = null; __mt_MainWindow_var = null; __mt_KeyWindow_var = null; __mt_ModalWindow_var = null; __mt_CurrentEvent_var = null; __mt_Windows_var = null; __mt_MainMenu_var = null; __mt_HelpMenu_var = null; __mt_ApplicationIconImage_var = null; __mt_DockTile_var = null; __mt_WindowsMenu_var = null; __mt_ServicesProvider_var = null; __mt_ServicesMenu_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationActivationOptions.cs ================================================ namespace AppKit; public enum NSApplicationActivationOptions : ulong { ActivateAllWindows = 1uL, ActivateIgnoringOtherWindows } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationActivationPolicy.cs ================================================ namespace AppKit; public enum NSApplicationActivationPolicy : long { Regular, Accessory, Prohibited } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSApplicationDelegate", true)] [Model] public class NSApplicationDelegate : NSObject { [Export("applicationDidFinishLaunching:")] public virtual void FinishedLaunching(NSObject notification) { throw new Exception("model"); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSApplicationDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSApplicationDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSApplicationDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSApplicationDelegate(IntPtr handle) : base(handle) { } [Export("applicationShouldTerminate:")] public virtual NSApplicationTerminateReply ApplicationShouldTerminate(NSApplication sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:openFile:")] public virtual bool OpenFile(NSApplication sender, string filename) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:openFiles:")] public virtual void OpenFiles(NSApplication sender, string[] filenames) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:openTempFile:")] public virtual bool OpenTempFile(NSApplication sender, string filename) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationShouldOpenUntitledFile:")] public virtual bool ApplicationShouldOpenUntitledFile(NSApplication sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationOpenUntitledFile:")] public virtual bool ApplicationOpenUntitledFile(NSApplication sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:openFileWithoutUI:")] public virtual bool OpenFileWithoutUI(NSObject sender, string filename) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:printFile:")] public virtual bool PrintFile(NSApplication sender, string filename) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:printFiles:withSettings:showPrintPanels:")] public virtual NSApplicationPrintReply PrintFiles(NSApplication application, string[] fileNames, NSDictionary printSettings, bool showPrintPanels) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationShouldTerminateAfterLastWindowClosed:")] public virtual bool ApplicationShouldTerminateAfterLastWindowClosed(NSApplication sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationShouldHandleReopen:hasVisibleWindows:")] public virtual bool ApplicationShouldHandleReopen(NSApplication sender, bool hasVisibleWindows) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDockMenu:")] public virtual NSMenu ApplicationDockMenu(NSApplication sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:willPresentError:")] public virtual NSError WillPresentError(NSApplication application, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillFinishLaunching:")] public virtual void WillFinishLaunching(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidFinishLaunching:")] public virtual void DidFinishLaunching(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillHide:")] public virtual void WillHide(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidHide:")] public virtual void DidHide(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillUnhide:")] public virtual void WillUnhide(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidUnhide:")] public virtual void DidUnhide(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillBecomeActive:")] public virtual void WillBecomeActive(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidBecomeActive:")] public virtual void DidBecomeActive(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillResignActive:")] public virtual void WillResignActive(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidResignActive:")] public virtual void DidResignActive(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillUpdate:")] public virtual void WillUpdate(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidUpdate:")] public virtual void DidUpdate(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationWillTerminate:")] public virtual void WillTerminate(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("applicationDidChangeScreenParameters:")] public virtual void ScreenParametersChanged(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("registerServicesMenuSendTypes:returnTypes:")] public virtual void RegisterServicesMenu(string[] sendTypes, string[] returnTypes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("writeSelectionToPasteboard:types:")] public virtual bool WriteSelectionToPasteboard(NSPasteboard board, string[] types) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("readSelectionFromPasteboard:")] public virtual bool ReadSelectionFromPasteboard(NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("orderFrontStandardAboutPanel:")] public virtual void OrderFrontStandardAboutPanel(NSObject sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("orderFrontStandardAboutPanelWithOptions:")] public virtual void OrderFrontStandardAboutPanelWithOptions(NSDictionary optionsDictionary) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:didRegisterForRemoteNotificationsWithDeviceToken:")] public virtual void RegisteredForRemoteNotifications(NSApplication application, NSData deviceToken) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:didFailToRegisterForRemoteNotificationsWithError:")] public virtual void FailedToRegisterForRemoteNotifications(NSApplication application, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:didReceiveRemoteNotification:")] public virtual void ReceivedRemoteNotification(NSApplication application, NSDictionary userInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:willEncodeRestorableState:")] public virtual void WillEncodeRestorableState(NSApplication app, NSCoder encoder) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("application:didDecodeRestorableState:")] public virtual void DecodedRestorableState(NSApplication app, NSCoder state) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationDelegateReply.cs ================================================ namespace AppKit; public enum NSApplicationDelegateReply : ulong { Success, Cancel, Failure } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationDidFinishLaunchingEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSApplicationDidFinishLaunchingEventArgs : NSNotificationEventArgs { private static IntPtr k0; private static IntPtr k1; public bool IsLaunchDefault { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSApplicationLaunchIsDefaultLaunchKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return false; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.BoolValue; } } public bool IsLaunchFromUserNotification { get { if (k1 == IntPtr.Zero) { k1 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSApplicationLaunchUserNotificationKey"); } if (base.Notification.UserInfo == null) { return false; } return base.Notification.UserInfo.LowlevelObjectForKey(k1) != IntPtr.Zero; } } public NSApplicationDidFinishLaunchingEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationError.cs ================================================ using Foundation; namespace AppKit; public delegate NSError NSApplicationError(NSApplication application, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationFile.cs ================================================ namespace AppKit; public delegate bool NSApplicationFile(NSApplication sender, string filename); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationFileCommand.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSApplicationFileCommand(NSObject sender, string filename); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationFilesEventArgs.cs ================================================ using System; namespace AppKit; public class NSApplicationFilesEventArgs : EventArgs { public string[] Filenames { get; set; } public NSApplicationFilesEventArgs(string[] filenames) { Filenames = filenames; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationLayoutDirection.cs ================================================ namespace AppKit; public enum NSApplicationLayoutDirection : long { LeftToRight, RightToLeft } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationMenu.cs ================================================ namespace AppKit; public delegate NSMenu NSApplicationMenu(NSApplication sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationPredicate.cs ================================================ namespace AppKit; public delegate bool NSApplicationPredicate(NSApplication sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationPresentationOptions.cs ================================================ namespace AppKit; public enum NSApplicationPresentationOptions : ulong { Default = 0uL, AutoHideDock = 1uL, HideDock = 2uL, AutoHideMenuBar = 4uL, HideMenuBar = 8uL, DisableAppleMenu = 0x10uL, DisableProcessSwitching = 0x20uL, DisableForceQuit = 0x40uL, DisableSessionTermination = 0x80uL, DisableHideApplication = 0x100uL, DisableMenuBarTransparency = 0x200uL, FullScreen = 0x400uL, AutoHideToolbar = 0x800uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationPrint.cs ================================================ using Foundation; namespace AppKit; public delegate NSApplicationPrintReply NSApplicationPrint(NSApplication application, string[] fileNames, NSDictionary printSettings, bool showPrintPanels); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationPrintReply.cs ================================================ namespace AppKit; public enum NSApplicationPrintReply : ulong { Cancelled, Success, Failure, ReplyLater } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationRegisterEventArgs.cs ================================================ using System; namespace AppKit; public class NSApplicationRegisterEventArgs : EventArgs { public string[] ReturnTypes { get; set; } public NSApplicationRegisterEventArgs(string[] returnTypes) { ReturnTypes = returnTypes; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationReopen.cs ================================================ namespace AppKit; public delegate bool NSApplicationReopen(NSApplication sender, bool hasVisibleWindows); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationSelection.cs ================================================ namespace AppKit; public delegate bool NSApplicationSelection(NSPasteboard board, string[] types); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationTerminateReply.cs ================================================ namespace AppKit; public enum NSApplicationTerminateReply : ulong { Cancel, Now, Later } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSApplicationTermination.cs ================================================ namespace AppKit; public delegate NSApplicationTerminateReply NSApplicationTermination(NSApplication sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSArrayController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSArrayController", true)] public class NSArrayController : NSObjectController { private static readonly IntPtr selAutomaticallyRearrangesObjectsHandle = Selector.GetHandle("automaticallyRearrangesObjects"); private static readonly IntPtr selSetAutomaticallyRearrangesObjects_Handle = Selector.GetHandle("setAutomaticallyRearrangesObjects:"); private static readonly IntPtr selSortDescriptorsHandle = Selector.GetHandle("sortDescriptors"); private static readonly IntPtr selSetSortDescriptors_Handle = Selector.GetHandle("setSortDescriptors:"); private static readonly IntPtr selFilterPredicateHandle = Selector.GetHandle("filterPredicate"); private static readonly IntPtr selSetFilterPredicate_Handle = Selector.GetHandle("setFilterPredicate:"); private static readonly IntPtr selClearsFilterPredicateOnInsertionHandle = Selector.GetHandle("clearsFilterPredicateOnInsertion"); private static readonly IntPtr selSetClearsFilterPredicateOnInsertion_Handle = Selector.GetHandle("setClearsFilterPredicateOnInsertion:"); private static readonly IntPtr selAvoidsEmptySelectionHandle = Selector.GetHandle("avoidsEmptySelection"); private static readonly IntPtr selSetAvoidsEmptySelection_Handle = Selector.GetHandle("setAvoidsEmptySelection:"); private static readonly IntPtr selPreservesSelectionHandle = Selector.GetHandle("preservesSelection"); private static readonly IntPtr selSetPreservesSelection_Handle = Selector.GetHandle("setPreservesSelection:"); private static readonly IntPtr selSelectsInsertedObjectsHandle = Selector.GetHandle("selectsInsertedObjects"); private static readonly IntPtr selSetSelectsInsertedObjects_Handle = Selector.GetHandle("setSelectsInsertedObjects:"); private static readonly IntPtr selAlwaysUsesMultipleValuesMarkerHandle = Selector.GetHandle("alwaysUsesMultipleValuesMarker"); private static readonly IntPtr selSetAlwaysUsesMultipleValuesMarker_Handle = Selector.GetHandle("setAlwaysUsesMultipleValuesMarker:"); private static readonly IntPtr selRearrangeObjectsHandle = Selector.GetHandle("rearrangeObjects"); private static readonly IntPtr selAutomaticRearrangementKeyPathsHandle = Selector.GetHandle("automaticRearrangementKeyPaths"); private static readonly IntPtr selDidChangeArrangementCriteriaHandle = Selector.GetHandle("didChangeArrangementCriteria"); private static readonly IntPtr selArrangeObjects_Handle = Selector.GetHandle("arrangeObjects:"); private static readonly IntPtr selArrangedObjectsHandle = Selector.GetHandle("arrangedObjects"); private static readonly IntPtr selAddSelectionIndexes_Handle = Selector.GetHandle("addSelectionIndexes:"); private static readonly IntPtr selRemoveSelectionIndexes_Handle = Selector.GetHandle("removeSelectionIndexes:"); private static readonly IntPtr selAddSelectedObjects_Handle = Selector.GetHandle("addSelectedObjects:"); private static readonly IntPtr selRemoveSelectedObjects_Handle = Selector.GetHandle("removeSelectedObjects:"); private static readonly IntPtr selAdd_Handle = Selector.GetHandle("add:"); private static readonly IntPtr selRemove_Handle = Selector.GetHandle("remove:"); private static readonly IntPtr selInsert_Handle = Selector.GetHandle("insert:"); private static readonly IntPtr selCanInsertHandle = Selector.GetHandle("canInsert"); private static readonly IntPtr selSelectNext_Handle = Selector.GetHandle("selectNext:"); private static readonly IntPtr selSelectPrevious_Handle = Selector.GetHandle("selectPrevious:"); private static readonly IntPtr selCanSelectNextHandle = Selector.GetHandle("canSelectNext"); private static readonly IntPtr selCanSelectPreviousHandle = Selector.GetHandle("canSelectPrevious"); private static readonly IntPtr selAddObject_Handle = Selector.GetHandle("addObject:"); private static readonly IntPtr selAddObjects_Handle = Selector.GetHandle("addObjects:"); private static readonly IntPtr selInsertObjectAtArrangedObjectIndex_Handle = Selector.GetHandle("insertObject:atArrangedObjectIndex:"); private static readonly IntPtr selInsertObjectsAtArrangedObjectIndexes_Handle = Selector.GetHandle("insertObjects:atArrangedObjectIndexes:"); private static readonly IntPtr selRemoveObjectAtArrangedObjectIndex_Handle = Selector.GetHandle("removeObjectAtArrangedObjectIndex:"); private static readonly IntPtr selRemoveObjectsAtArrangedObjectIndexes_Handle = Selector.GetHandle("removeObjectsAtArrangedObjectIndexes:"); private static readonly IntPtr selRemoveObject_Handle = Selector.GetHandle("removeObject:"); private static readonly IntPtr selRemoveObjects_Handle = Selector.GetHandle("removeObjects:"); private static readonly IntPtr selSelectionIndexesHandle = Selector.GetHandle("selectionIndexes"); private static readonly IntPtr selSetSelectionIndexes_Handle = Selector.GetHandle("setSelectionIndexes:"); private static readonly IntPtr selSelectionIndexHandle = Selector.GetHandle("selectionIndex"); private static readonly IntPtr selSetSelectionIndex_Handle = Selector.GetHandle("setSelectionIndex:"); private static readonly IntPtr selSelectedObjectsHandle = Selector.GetHandle("selectedObjects"); private static readonly IntPtr selSetSelectedObjects_Handle = Selector.GetHandle("setSelectedObjects:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSArrayController"); private object __mt_SortDescriptors_var; private object __mt_FilterPredicate_var; public NSIndexSet SelectionIndexes { get { return GetSelectionIndexes(); } set { SetSelectionIndexes(value); } } public int SelectionIndex { get { return (int)GetSelectionIndex(); } set { SetSelectionIndex((uint)value); } } public new NSObject[] SelectedObjects { get { return GetSelectedObjects(); } set { SetSelectedObjects(value); } } public override IntPtr ClassHandle => class_ptr; public virtual bool AutomaticallyRearrangesObjects { [Export("automaticallyRearrangesObjects")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticallyRearrangesObjectsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticallyRearrangesObjectsHandle); } [Export("setAutomaticallyRearrangesObjects:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticallyRearrangesObjects_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticallyRearrangesObjects_Handle, value); } } } public virtual NSObject[] SortDescriptors { [Export("sortDescriptors")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_SortDescriptors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorsHandle)))); } [Export("setSortDescriptors:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SortDescriptors_var = value; } } public virtual NSPredicate FilterPredicate { [Export("filterPredicate")] get { NSApplication.EnsureUIThread(); return (NSPredicate)(__mt_FilterPredicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterPredicateHandle))))); } [Export("setFilterPredicate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFilterPredicate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFilterPredicate_Handle, value.Handle); } __mt_FilterPredicate_var = value; } } public virtual bool ClearsFilterPredicateOnInsertion { [Export("clearsFilterPredicateOnInsertion")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selClearsFilterPredicateOnInsertionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selClearsFilterPredicateOnInsertionHandle); } [Export("setClearsFilterPredicateOnInsertion:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetClearsFilterPredicateOnInsertion_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetClearsFilterPredicateOnInsertion_Handle, value); } } } public virtual bool AvoidsEmptySelection { [Export("avoidsEmptySelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAvoidsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAvoidsEmptySelectionHandle); } [Export("setAvoidsEmptySelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAvoidsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAvoidsEmptySelection_Handle, value); } } } public virtual bool PreservesSelection { [Export("preservesSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesSelectionHandle); } [Export("setPreservesSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesSelection_Handle, value); } } } public virtual bool SelectsInsertedObjects { [Export("selectsInsertedObjects")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSelectsInsertedObjectsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSelectsInsertedObjectsHandle); } [Export("setSelectsInsertedObjects:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectsInsertedObjects_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectsInsertedObjects_Handle, value); } } } public virtual bool AlwaysUsesMultipleValuesMarker { [Export("alwaysUsesMultipleValuesMarker")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysUsesMultipleValuesMarkerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysUsesMultipleValuesMarkerHandle); } [Export("setAlwaysUsesMultipleValuesMarker:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysUsesMultipleValuesMarker_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysUsesMultipleValuesMarker_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSArrayController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSArrayController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSArrayController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSArrayController(IntPtr handle) : base(handle) { } [Export("rearrangeObjects")] public virtual void RearrangeObjects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRearrangeObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRearrangeObjectsHandle); } } [Export("automaticRearrangementKeyPaths")] public virtual NSObject[] AutomaticRearrangementKeyPaths() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAutomaticRearrangementKeyPathsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutomaticRearrangementKeyPathsHandle)); } [Export("didChangeArrangementCriteria")] public virtual void DidChangeArrangementCriteria() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDidChangeArrangementCriteriaHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDidChangeArrangementCriteriaHandle); } } [Export("arrangeObjects:")] public virtual NSObject[] ArrangeObjects(NSObject[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selArrangeObjects_Handle, nSArray.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selArrangeObjects_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("arrangedObjects")] public virtual NSObject[] ArrangedObjects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selArrangedObjectsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArrangedObjectsHandle)); } [Export("addSelectionIndexes:")] public virtual bool AddSelectionIndexes(NSIndexSet indexes) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAddSelectionIndexes_Handle, indexes.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSelectionIndexes_Handle, indexes.Handle); } [Export("removeSelectionIndexes:")] public virtual bool RemoveSelectionIndexes(NSIndexSet indexes) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemoveSelectionIndexes_Handle, indexes.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveSelectionIndexes_Handle, indexes.Handle); } [Export("addSelectedObjects:")] public virtual bool AddSelectedObjects(NSObject[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSelectedObjects_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAddSelectedObjects_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("removeSelectedObjects:")] public virtual bool RemoveSelectedObjects(NSObject[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveSelectedObjects_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemoveSelectedObjects_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("add:")] public new virtual void Add(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAdd_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAdd_Handle, sender.Handle); } } [Export("remove:")] public virtual void RemoveOp(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemove_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemove_Handle, sender.Handle); } } [Export("insert:")] public virtual void Insert(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsert_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsert_Handle, sender.Handle); } } [Export("canInsert")] public virtual bool CanInsert() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanInsertHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanInsertHandle); } [Export("selectNext:")] public virtual void SelectNext(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNext_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNext_Handle, sender.Handle); } } [Export("selectPrevious:")] public virtual void SelectPrevious(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectPrevious_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectPrevious_Handle, sender.Handle); } } [Export("canSelectNext")] public virtual bool CanSelectNext() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanSelectNextHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanSelectNextHandle); } [Export("canSelectPrevious")] public virtual bool CanSelectPrevious() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanSelectPreviousHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanSelectPreviousHandle); } [Export("addObject:")] public new virtual void AddObject(NSObject aObject) { NSApplication.EnsureUIThread(); if (aObject == null) { throw new ArgumentNullException("aObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, aObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObject_Handle, aObject.Handle); } } [Export("addObjects:")] public virtual void AddObjects(NSArray objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObjects_Handle, objects.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObjects_Handle, objects.Handle); } } [Export("insertObject:atArrangedObjectIndex:")] public virtual void Insert(NSObject aObject, long index) { NSApplication.EnsureUIThread(); if (aObject == null) { throw new ArgumentNullException("aObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertObjectAtArrangedObjectIndex_Handle, aObject.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertObjectAtArrangedObjectIndex_Handle, aObject.Handle, index); } } [Export("insertObjects:atArrangedObjectIndexes:")] public virtual void Insert(NSObject[] objects, NSIndexSet indexes) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } if (indexes == null) { throw new ArgumentNullException("indexes"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertObjectsAtArrangedObjectIndexes_Handle, nSArray.Handle, indexes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertObjectsAtArrangedObjectIndexes_Handle, nSArray.Handle, indexes.Handle); } nSArray.Dispose(); } [Export("removeObjectAtArrangedObjectIndex:")] public virtual void RemoveAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveObjectAtArrangedObjectIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveObjectAtArrangedObjectIndex_Handle, index); } } [Export("removeObjectsAtArrangedObjectIndexes:")] public virtual void Remove(NSIndexSet indexes) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectsAtArrangedObjectIndexes_Handle, indexes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectsAtArrangedObjectIndexes_Handle, indexes.Handle); } } [Export("removeObject:")] public new virtual void Remove(NSObject aObject) { NSApplication.EnsureUIThread(); if (aObject == null) { throw new ArgumentNullException("aObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObject_Handle, aObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObject_Handle, aObject.Handle); } } [Export("removeObjects:")] public virtual void Remove(NSObject[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjects_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjects_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("selectionIndexes")] protected virtual NSIndexSet GetSelectionIndexes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexesHandle)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexesHandle)); } [Export("setSelectionIndexes:")] protected virtual bool SetSelectionIndexes(NSIndexSet indexes) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexes_Handle, indexes.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexes_Handle, indexes.Handle); } [Export("selectionIndex")] protected virtual ulong GetSelectionIndex() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selSelectionIndexHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSelectionIndexHandle); } [Export("setSelectionIndex:")] protected virtual bool SetSelectionIndex(ulong index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_UInt64(base.Handle, selSetSelectionIndex_Handle, index); } return Messaging.bool_objc_msgSendSuper_UInt64(base.SuperHandle, selSetSelectionIndex_Handle, index); } [Export("selectedObjects")] protected virtual NSObject[] GetSelectedObjects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedObjectsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedObjectsHandle)); } [Export("setSelectedObjects:")] protected virtual bool SetSelectedObjects(NSObject[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectedObjects_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetSelectedObjects_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SortDescriptors_var = null; __mt_FilterPredicate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBackgroundStyle.cs ================================================ namespace AppKit; public enum NSBackgroundStyle : long { Light, Dark, Raised, Lowered } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBackingStore.cs ================================================ namespace AppKit; public enum NSBackingStore : ulong { Retained, Nonretained, Buffered } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBezelStyle.cs ================================================ namespace AppKit; public enum NSBezelStyle : ulong { Rounded = 1uL, RegularSquare, ThickSquare, ThickerSquare, Disclosure, ShadowlessSquare, Circular, TexturedSquare, HelpButton, SmallSquare, TexturedRounded, RoundRect, Recessed, RoundedDisclosure, Inline } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBezierPath.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBezierPath", true)] public class NSBezierPath : NSObject { private static readonly IntPtr selIsEmptyHandle = Selector.GetHandle("isEmpty"); private static readonly IntPtr selCurrentPointHandle = Selector.GetHandle("currentPoint"); private static readonly IntPtr selControlPointBoundsHandle = Selector.GetHandle("controlPointBounds"); private static readonly IntPtr selBoundsHandle = Selector.GetHandle("bounds"); private static readonly IntPtr selElementCountHandle = Selector.GetHandle("elementCount"); private static readonly IntPtr selDefaultMiterLimitHandle = Selector.GetHandle("defaultMiterLimit"); private static readonly IntPtr selSetDefaultMiterLimit_Handle = Selector.GetHandle("setDefaultMiterLimit:"); private static readonly IntPtr selDefaultFlatnessHandle = Selector.GetHandle("defaultFlatness"); private static readonly IntPtr selSetDefaultFlatness_Handle = Selector.GetHandle("setDefaultFlatness:"); private static readonly IntPtr selDefaultWindingRuleHandle = Selector.GetHandle("defaultWindingRule"); private static readonly IntPtr selSetDefaultWindingRule_Handle = Selector.GetHandle("setDefaultWindingRule:"); private static readonly IntPtr selDefaultLineCapStyleHandle = Selector.GetHandle("defaultLineCapStyle"); private static readonly IntPtr selSetDefaultLineCapStyle_Handle = Selector.GetHandle("setDefaultLineCapStyle:"); private static readonly IntPtr selDefaultLineJoinStyleHandle = Selector.GetHandle("defaultLineJoinStyle"); private static readonly IntPtr selSetDefaultLineJoinStyle_Handle = Selector.GetHandle("setDefaultLineJoinStyle:"); private static readonly IntPtr selDefaultLineWidthHandle = Selector.GetHandle("defaultLineWidth"); private static readonly IntPtr selSetDefaultLineWidth_Handle = Selector.GetHandle("setDefaultLineWidth:"); private static readonly IntPtr selLineWidthHandle = Selector.GetHandle("lineWidth"); private static readonly IntPtr selSetLineWidth_Handle = Selector.GetHandle("setLineWidth:"); private static readonly IntPtr selLineCapStyleHandle = Selector.GetHandle("lineCapStyle"); private static readonly IntPtr selSetLineCapStyle_Handle = Selector.GetHandle("setLineCapStyle:"); private static readonly IntPtr selLineJoinStyleHandle = Selector.GetHandle("lineJoinStyle"); private static readonly IntPtr selSetLineJoinStyle_Handle = Selector.GetHandle("setLineJoinStyle:"); private static readonly IntPtr selWindingRuleHandle = Selector.GetHandle("windingRule"); private static readonly IntPtr selSetWindingRule_Handle = Selector.GetHandle("setWindingRule:"); private static readonly IntPtr selMiterLimitHandle = Selector.GetHandle("miterLimit"); private static readonly IntPtr selSetMiterLimit_Handle = Selector.GetHandle("setMiterLimit:"); private static readonly IntPtr selFlatnessHandle = Selector.GetHandle("flatness"); private static readonly IntPtr selSetFlatness_Handle = Selector.GetHandle("setFlatness:"); private static readonly IntPtr selBezierPathWithRect_Handle = Selector.GetHandle("bezierPathWithRect:"); private static readonly IntPtr selBezierPathWithOvalInRect_Handle = Selector.GetHandle("bezierPathWithOvalInRect:"); private static readonly IntPtr selBezierPathWithRoundedRectXRadiusYRadius_Handle = Selector.GetHandle("bezierPathWithRoundedRect:xRadius:yRadius:"); private static readonly IntPtr selFillRect_Handle = Selector.GetHandle("fillRect:"); private static readonly IntPtr selStrokeRect_Handle = Selector.GetHandle("strokeRect:"); private static readonly IntPtr selClipRect_Handle = Selector.GetHandle("clipRect:"); private static readonly IntPtr selStrokeLineFromPointToPoint_Handle = Selector.GetHandle("strokeLineFromPoint:toPoint:"); private static readonly IntPtr selDrawPackedGlyphsAtPoint_Handle = Selector.GetHandle("drawPackedGlyphs:atPoint:"); private static readonly IntPtr selMoveToPoint_Handle = Selector.GetHandle("moveToPoint:"); private static readonly IntPtr selLineToPoint_Handle = Selector.GetHandle("lineToPoint:"); private static readonly IntPtr selCurveToPointControlPoint1ControlPoint2_Handle = Selector.GetHandle("curveToPoint:controlPoint1:controlPoint2:"); private static readonly IntPtr selClosePathHandle = Selector.GetHandle("closePath"); private static readonly IntPtr selRemoveAllPointsHandle = Selector.GetHandle("removeAllPoints"); private static readonly IntPtr selRelativeMoveToPoint_Handle = Selector.GetHandle("relativeMoveToPoint:"); private static readonly IntPtr selRelativeLineToPoint_Handle = Selector.GetHandle("relativeLineToPoint:"); private static readonly IntPtr selRelativeCurveToPointControlPoint1ControlPoint2_Handle = Selector.GetHandle("relativeCurveToPoint:controlPoint1:controlPoint2:"); private static readonly IntPtr selGetLineDashCountPhase_Handle = Selector.GetHandle("getLineDash:count:phase:"); private static readonly IntPtr selSetLineDashCountPhase_Handle = Selector.GetHandle("setLineDash:count:phase:"); private static readonly IntPtr selStrokeHandle = Selector.GetHandle("stroke"); private static readonly IntPtr selFillHandle = Selector.GetHandle("fill"); private static readonly IntPtr selAddClipHandle = Selector.GetHandle("addClip"); private static readonly IntPtr selSetClipHandle = Selector.GetHandle("setClip"); private static readonly IntPtr selBezierPathByFlatteningPathHandle = Selector.GetHandle("bezierPathByFlatteningPath"); private static readonly IntPtr selBezierPathByReversingPathHandle = Selector.GetHandle("bezierPathByReversingPath"); private static readonly IntPtr selTransformUsingAffineTransform_Handle = Selector.GetHandle("transformUsingAffineTransform:"); private static readonly IntPtr selElementAtIndexAssociatedPoints_Handle = Selector.GetHandle("elementAtIndex:associatedPoints:"); private static readonly IntPtr selElementAtIndex_Handle = Selector.GetHandle("elementAtIndex:"); private static readonly IntPtr selSetAssociatedPointsAtIndex_Handle = Selector.GetHandle("setAssociatedPoints:atIndex:"); private static readonly IntPtr selAppendBezierPath_Handle = Selector.GetHandle("appendBezierPath:"); private static readonly IntPtr selAppendBezierPathWithRect_Handle = Selector.GetHandle("appendBezierPathWithRect:"); private static readonly IntPtr selAppendBezierPathWithPointsCount_Handle = Selector.GetHandle("appendBezierPathWithPoints:count:"); private static readonly IntPtr selAppendBezierPathWithOvalInRect_Handle = Selector.GetHandle("appendBezierPathWithOvalInRect:"); private static readonly IntPtr selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngleClockwise_Handle = Selector.GetHandle("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:"); private static readonly IntPtr selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle_Handle = Selector.GetHandle("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:"); private static readonly IntPtr selAppendBezierPathWithArcFromPointToPointRadius_Handle = Selector.GetHandle("appendBezierPathWithArcFromPoint:toPoint:radius:"); private static readonly IntPtr selAppendBezierPathWithGlyphInFont_Handle = Selector.GetHandle("appendBezierPathWithGlyph:inFont:"); private static readonly IntPtr selAppendBezierPathWithGlyphsCountInFont_Handle = Selector.GetHandle("appendBezierPathWithGlyphs:count:inFont:"); private static readonly IntPtr selAppendBezierPathWithPackedGlyphs_Handle = Selector.GetHandle("appendBezierPathWithPackedGlyphs:"); private static readonly IntPtr selAppendBezierPathWithRoundedRectXRadiusYRadius_Handle = Selector.GetHandle("appendBezierPathWithRoundedRect:xRadius:yRadius:"); private static readonly IntPtr selContainsPoint_Handle = Selector.GetHandle("containsPoint:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBezierPath"); public override IntPtr ClassHandle => class_ptr; public virtual bool IsEmpty { [Export("isEmpty")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEmptyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEmptyHandle); } } public virtual CGPoint CurrentPoint { [Export("currentPoint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selCurrentPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selCurrentPointHandle); } } public virtual CGRect ControlPointBounds { [Export("controlPointBounds")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selControlPointBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selControlPointBoundsHandle); } return retval; } } public virtual CGRect Bounds { [Export("bounds")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundsHandle); } return retval; } } public virtual long ElementCount { [Export("elementCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selElementCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selElementCountHandle); } } public static double DefaultMiterLimit { [Export("defaultMiterLimit")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selDefaultMiterLimitHandle); } [Export("setDefaultMiterLimit:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_Double(class_ptr, selSetDefaultMiterLimit_Handle, value); } } public static double DefaultFlatness { [Export("defaultFlatness")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selDefaultFlatnessHandle); } [Export("setDefaultFlatness:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_Double(class_ptr, selSetDefaultFlatness_Handle, value); } } public static NSWindingRule DefaultWindingRule { [Export("defaultWindingRule")] get { NSApplication.EnsureUIThread(); return (NSWindingRule)Messaging.int_objc_msgSend(class_ptr, selDefaultWindingRuleHandle); } [Export("setDefaultWindingRule:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_int(class_ptr, selSetDefaultWindingRule_Handle, (int)value); } } public static NSLineCapStyle DefaultLineCapStyle { [Export("defaultLineCapStyle")] get { NSApplication.EnsureUIThread(); return (NSLineCapStyle)Messaging.int_objc_msgSend(class_ptr, selDefaultLineCapStyleHandle); } [Export("setDefaultLineCapStyle:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_int(class_ptr, selSetDefaultLineCapStyle_Handle, (int)value); } } public static NSLineJoinStyle DefaultLineJoinStyle { [Export("defaultLineJoinStyle")] get { NSApplication.EnsureUIThread(); return (NSLineJoinStyle)Messaging.int_objc_msgSend(class_ptr, selDefaultLineJoinStyleHandle); } [Export("setDefaultLineJoinStyle:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_int(class_ptr, selSetDefaultLineJoinStyle_Handle, (int)value); } } public static double DefaultLineWidth { [Export("defaultLineWidth")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selDefaultLineWidthHandle); } [Export("setDefaultLineWidth:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_Double(class_ptr, selSetDefaultLineWidth_Handle, value); } } public virtual double LineWidth { [Export("lineWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineWidthHandle); } [Export("setLineWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLineWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLineWidth_Handle, value); } } } public virtual NSLineCapStyle LineCapStyle { [Export("lineCapStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLineCapStyle)Messaging.int_objc_msgSend(base.Handle, selLineCapStyleHandle); } return (NSLineCapStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selLineCapStyleHandle); } [Export("setLineCapStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetLineCapStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetLineCapStyle_Handle, (int)value); } } } public virtual NSLineJoinStyle LineJoinStyle { [Export("lineJoinStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLineJoinStyle)Messaging.int_objc_msgSend(base.Handle, selLineJoinStyleHandle); } return (NSLineJoinStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selLineJoinStyleHandle); } [Export("setLineJoinStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetLineJoinStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetLineJoinStyle_Handle, (int)value); } } } public virtual NSWindingRule WindingRule { [Export("windingRule")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindingRule)Messaging.int_objc_msgSend(base.Handle, selWindingRuleHandle); } return (NSWindingRule)Messaging.int_objc_msgSendSuper(base.SuperHandle, selWindingRuleHandle); } [Export("setWindingRule:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetWindingRule_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetWindingRule_Handle, (int)value); } } } public virtual double MiterLimit { [Export("miterLimit")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMiterLimitHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMiterLimitHandle); } [Export("setMiterLimit:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMiterLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMiterLimit_Handle, value); } } } public virtual double Flatness { [Export("flatness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFlatnessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFlatnessHandle); } [Export("setFlatness:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetFlatness_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetFlatness_Handle, value); } } } public unsafe void GetLineDash(out double[] pattern, out double phase) { _GetLineDash((IntPtr)(void*)null, out var count, out phase); int num = (int)count; double[] array = new double[num]; IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(array[0]) * num); _GetLineDash(intPtr, out count, out phase); num = (int)count; Marshal.Copy(intPtr, array, 0, num); Marshal.FreeHGlobal(intPtr); pattern = array; } public void SetLineDash(double[] pattern, double phase) { if (pattern == null) { throw new ArgumentNullException("pattern"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(pattern[0]) * pattern.Length); Marshal.Copy(pattern, 0, intPtr, pattern.Length); _SetLineDash(intPtr, pattern.Length, phase); Marshal.FreeHGlobal(intPtr); } public NSBezierPathElement ElementAt(long index, out CGPoint[] points) { IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CGPoint)) * 3); NSBezierPathElement nSBezierPathElement = _ElementAt(index, intPtr); int num = 1; if (nSBezierPathElement == NSBezierPathElement.CurveTo) { num = 3; } points = new CGPoint[num]; IntPtr intPtr2 = intPtr; for (int i = 0; i < num; i++) { points[i] = (CGPoint)Marshal.PtrToStructure(intPtr2, typeof(CGPoint)); intPtr2 = (IntPtr)((long)intPtr2 + Marshal.SizeOf(points[i])); } Marshal.FreeHGlobal(intPtr); return nSBezierPathElement; } public void SetAssociatedPointsAtIndex(CGPoint[] points, long index) { if (points == null) { throw new ArgumentNullException("points"); } if (points.Length < 1) { throw new ArgumentException("points array is empty"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(points[0]) * points.Length); IntPtr intPtr2 = intPtr; for (int i = 0; i < points.Length; i++) { Marshal.StructureToPtr(points[i], intPtr2, fDeleteOld: false); intPtr2 = (IntPtr)((long)intPtr2 + Marshal.SizeOf(points[i])); } _SetAssociatedPointsAtIndex(intPtr, index); Marshal.FreeHGlobal(intPtr); } public void AppendPathWithPoints(CGPoint[] points) { if (points == null) { throw new ArgumentNullException("points"); } if (points.Length < 1) { throw new ArgumentException("points array is empty"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(points[0]) * points.Length); IntPtr intPtr2 = intPtr; for (int i = 0; i < points.Length; i++) { Marshal.StructureToPtr(points[i], intPtr2, fDeleteOld: false); intPtr2 = (IntPtr)((long)intPtr2 + Marshal.SizeOf(points[i])); } _AppendPathWithPoints(intPtr, points.Length); Marshal.FreeHGlobal(intPtr); } public void AppendPathWithGlyphs(uint[] glyphs, NSFont font) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } if (glyphs.Length < 1) { throw new ArgumentException("glyphs array is empty"); } int num = Marshal.SizeOf(glyphs[0]); IntPtr intPtr = Marshal.AllocHGlobal(num * glyphs.Length); IntPtr intPtr2 = intPtr; for (int i = 0; i < glyphs.Length; i++) { Marshal.WriteIntPtr(intPtr2, (IntPtr)glyphs[i]); intPtr2 = (IntPtr)((long)intPtr2 + num); } _AppendPathWithGlyphs(intPtr, glyphs.Length, font); Marshal.FreeHGlobal(intPtr); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBezierPath() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBezierPath(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBezierPath(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBezierPath(IntPtr handle) : base(handle) { } [Export("bezierPathWithRect:")] public static NSBezierPath FromRect(CGRect rect) { NSApplication.EnsureUIThread(); return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(class_ptr, selBezierPathWithRect_Handle, rect)); } [Export("bezierPathWithOvalInRect:")] public static NSBezierPath FromOvalInRect(CGRect rect) { NSApplication.EnsureUIThread(); return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(class_ptr, selBezierPathWithOvalInRect_Handle, rect)); } [Export("bezierPathWithRoundedRect:xRadius:yRadius:")] public static NSBezierPath FromRoundedRect(CGRect rect, double xRadius, double yRadius) { NSApplication.EnsureUIThread(); return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect_Double_Double(class_ptr, selBezierPathWithRoundedRectXRadiusYRadius_Handle, rect, xRadius, yRadius)); } [Export("fillRect:")] public static void FillRect(CGRect rect) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_CGRect(class_ptr, selFillRect_Handle, rect); } [Export("strokeRect:")] public static void StrokeRect(CGRect rect) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_CGRect(class_ptr, selStrokeRect_Handle, rect); } [Export("clipRect:")] public static void ClipRect(CGRect rect) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_CGRect(class_ptr, selClipRect_Handle, rect); } [Export("strokeLineFromPoint:toPoint:")] public static void StrokeLine(CGPoint point1, CGPoint point2) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_CGPoint_CGPoint(class_ptr, selStrokeLineFromPointToPoint_Handle, point1, point2); } [Export("drawPackedGlyphs:atPoint:")] public static void DrawPackedGlyphsAtPoint(IntPtr packedGlyphs, CGPoint point) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_IntPtr_CGPoint(class_ptr, selDrawPackedGlyphsAtPoint_Handle, packedGlyphs, point); } [Export("moveToPoint:")] public virtual void MoveTo(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selMoveToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selMoveToPoint_Handle, point); } } [Export("lineToPoint:")] public virtual void LineTo(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selLineToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selLineToPoint_Handle, point); } } [Export("curveToPoint:controlPoint1:controlPoint2:")] public virtual void CurveTo(CGPoint endPoint, CGPoint controlPoint1, CGPoint controlPoint2) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGPoint_CGPoint(base.Handle, selCurveToPointControlPoint1ControlPoint2_Handle, endPoint, controlPoint1, controlPoint2); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGPoint_CGPoint(base.SuperHandle, selCurveToPointControlPoint1ControlPoint2_Handle, endPoint, controlPoint1, controlPoint2); } } [Export("closePath")] public virtual void ClosePath() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClosePathHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClosePathHandle); } } [Export("removeAllPoints")] public virtual void RemoveAllPoints() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllPointsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllPointsHandle); } } [Export("relativeMoveToPoint:")] public virtual void RelativeMoveTo(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selRelativeMoveToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selRelativeMoveToPoint_Handle, point); } } [Export("relativeLineToPoint:")] public virtual void RelativeLineTo(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selRelativeLineToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selRelativeLineToPoint_Handle, point); } } [Export("relativeCurveToPoint:controlPoint1:controlPoint2:")] public virtual void RelativeCurveTo(CGPoint endPoint, CGPoint controlPoint1, CGPoint controlPoint2) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGPoint_CGPoint(base.Handle, selRelativeCurveToPointControlPoint1ControlPoint2_Handle, endPoint, controlPoint1, controlPoint2); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGPoint_CGPoint(base.SuperHandle, selRelativeCurveToPointControlPoint1ControlPoint2_Handle, endPoint, controlPoint1, controlPoint2); } } [Export("getLineDash:count:phase:")] internal virtual void _GetLineDash(IntPtr pattern, out long count, out double phase) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_out_Int64_out_Double(base.Handle, selGetLineDashCountPhase_Handle, pattern, out count, out phase); } else { Messaging.void_objc_msgSendSuper_IntPtr_out_Int64_out_Double(base.SuperHandle, selGetLineDashCountPhase_Handle, pattern, out count, out phase); } } [Export("setLineDash:count:phase:")] internal virtual void _SetLineDash(IntPtr pattern, long count, double phase) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64_Double(base.Handle, selSetLineDashCountPhase_Handle, pattern, count, phase); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64_Double(base.SuperHandle, selSetLineDashCountPhase_Handle, pattern, count, phase); } } [Export("stroke")] public virtual void Stroke() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStrokeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStrokeHandle); } } [Export("fill")] public virtual void Fill() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFillHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFillHandle); } } [Export("addClip")] public virtual void AddClip() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAddClipHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAddClipHandle); } } [Export("setClip")] public virtual void SetClip() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetClipHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetClipHandle); } } [Export("bezierPathByFlatteningPath")] public virtual NSBezierPath BezierPathByFlatteningPath() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBezierPathByFlatteningPathHandle)); } return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBezierPathByFlatteningPathHandle)); } [Export("bezierPathByReversingPath")] public virtual NSBezierPath BezierPathByReversingPath() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBezierPathByReversingPathHandle)); } return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBezierPathByReversingPathHandle)); } [Export("transformUsingAffineTransform:")] public virtual void TransformUsingAffineTransform(NSAffineTransform transform) { NSApplication.EnsureUIThread(); if (transform == null) { throw new ArgumentNullException("transform"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTransformUsingAffineTransform_Handle, transform.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTransformUsingAffineTransform_Handle, transform.Handle); } } [Export("elementAtIndex:associatedPoints:")] internal virtual NSBezierPathElement _ElementAt(long index, IntPtr points) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezierPathElement)Messaging.int_objc_msgSend_Int64_IntPtr(base.Handle, selElementAtIndexAssociatedPoints_Handle, index, points); } return (NSBezierPathElement)Messaging.int_objc_msgSendSuper_Int64_IntPtr(base.SuperHandle, selElementAtIndexAssociatedPoints_Handle, index, points); } [Export("elementAtIndex:")] public virtual NSBezierPathElement ElementAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezierPathElement)Messaging.int_objc_msgSend_Int64(base.Handle, selElementAtIndex_Handle, index); } return (NSBezierPathElement)Messaging.int_objc_msgSendSuper_Int64(base.SuperHandle, selElementAtIndex_Handle, index); } [Export("setAssociatedPoints:atIndex:")] internal virtual void _SetAssociatedPointsAtIndex(IntPtr points, long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetAssociatedPointsAtIndex_Handle, points, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetAssociatedPointsAtIndex_Handle, points, index); } } [Export("appendBezierPath:")] public virtual void AppendPath(NSBezierPath path) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendBezierPath_Handle, path.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendBezierPath_Handle, path.Handle); } } [Export("appendBezierPathWithRect:")] public virtual void AppendPathWithRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selAppendBezierPathWithRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selAppendBezierPathWithRect_Handle, rect); } } [Export("appendBezierPathWithPoints:count:")] internal virtual void _AppendPathWithPoints(IntPtr points, long count) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selAppendBezierPathWithPointsCount_Handle, points, count); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selAppendBezierPathWithPointsCount_Handle, points, count); } } [Export("appendBezierPathWithOvalInRect:")] public virtual void AppendPathWithOvalInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selAppendBezierPathWithOvalInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selAppendBezierPathWithOvalInRect_Handle, rect); } } [Export("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:")] public virtual void AppendPathWithArc(CGPoint center, double radius, double startAngle, double endAngle, bool clockwise) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_Double_Double_Double_bool(base.Handle, selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngleClockwise_Handle, center, radius, startAngle, endAngle, clockwise); } else { Messaging.void_objc_msgSendSuper_CGPoint_Double_Double_Double_bool(base.SuperHandle, selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngleClockwise_Handle, center, radius, startAngle, endAngle, clockwise); } } [Export("appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:")] public virtual void AppendPathWithArc(CGPoint center, double radius, double startAngle, double endAngle) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_Double_Double_Double(base.Handle, selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle_Handle, center, radius, startAngle, endAngle); } else { Messaging.void_objc_msgSendSuper_CGPoint_Double_Double_Double(base.SuperHandle, selAppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle_Handle, center, radius, startAngle, endAngle); } } [Export("appendBezierPathWithArcFromPoint:toPoint:radius:")] public virtual void AppendPathWithArc(CGPoint point1, CGPoint point2, double radius) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGPoint_Double(base.Handle, selAppendBezierPathWithArcFromPointToPointRadius_Handle, point1, point2, radius); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGPoint_Double(base.SuperHandle, selAppendBezierPathWithArcFromPointToPointRadius_Handle, point1, point2, radius); } } [Export("appendBezierPathWithGlyph:inFont:")] public virtual void AppendPathWithGlyph(ulong glyph, NSFont font) { NSApplication.EnsureUIThread(); if (font == null) { throw new ArgumentNullException("font"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(base.Handle, selAppendBezierPathWithGlyphInFont_Handle, glyph, font.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selAppendBezierPathWithGlyphInFont_Handle, glyph, font.Handle); } } [Export("appendBezierPathWithGlyphs:count:inFont:")] internal virtual void _AppendPathWithGlyphs(IntPtr glyphs, long count, NSFont font) { NSApplication.EnsureUIThread(); if (font == null) { throw new ArgumentNullException("font"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64_IntPtr(base.Handle, selAppendBezierPathWithGlyphsCountInFont_Handle, glyphs, count, font.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64_IntPtr(base.SuperHandle, selAppendBezierPathWithGlyphsCountInFont_Handle, glyphs, count, font.Handle); } } [Export("appendBezierPathWithPackedGlyphs:")] public virtual void AppendPathWithPackedGlyphs(IntPtr packedGlyphs) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendBezierPathWithPackedGlyphs_Handle, packedGlyphs); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendBezierPathWithPackedGlyphs_Handle, packedGlyphs); } } [Export("appendBezierPathWithRoundedRect:xRadius:yRadius:")] public virtual void AppendPathWithRoundedRect(CGRect rect, double xRadius, double yRadius) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_Double_Double(base.Handle, selAppendBezierPathWithRoundedRectXRadiusYRadius_Handle, rect, xRadius, yRadius); } else { Messaging.void_objc_msgSendSuper_CGRect_Double_Double(base.SuperHandle, selAppendBezierPathWithRoundedRectXRadiusYRadius_Handle, rect, xRadius, yRadius); } } [Export("containsPoint:")] public virtual bool Contains(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint(base.Handle, selContainsPoint_Handle, point); } return Messaging.bool_objc_msgSendSuper_CGPoint(base.SuperHandle, selContainsPoint_Handle, point); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBezierPathElement.cs ================================================ namespace AppKit; public enum NSBezierPathElement { MoveTo, LineTo, CurveTo, ClosePath } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBitmapFormat.cs ================================================ using System; namespace AppKit; [Flags] public enum NSBitmapFormat : ulong { AlphaFirst = 1uL, AlphaNonpremultiplied = 2uL, FloatingPointSamples = 4uL, LittleEndian16Bit = 0x100uL, LittleEndian32Bit = 0x200uL, BigEndian16Bit = 0x400uL, BigEndian32Bit = 0x800uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBitmapImageFileType.cs ================================================ namespace AppKit; public enum NSBitmapImageFileType : ulong { Tiff, Bmp, Gif, Jpeg, Png, Jpeg2000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBitmapImageRep.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBitmapImageRep", true)] public class NSBitmapImageRep : NSImageRep { private static IntPtr selInitForIncrementalLoad = Selector.GetHandle("initForIncrementalLoad"); private static readonly IntPtr selBitmapDataHandle = Selector.GetHandle("bitmapData"); private static readonly IntPtr selIsPlanarHandle = Selector.GetHandle("isPlanar"); private static readonly IntPtr selSamplesPerPixelHandle = Selector.GetHandle("samplesPerPixel"); private static readonly IntPtr selBitsPerPixelHandle = Selector.GetHandle("bitsPerPixel"); private static readonly IntPtr selBytesPerRowHandle = Selector.GetHandle("bytesPerRow"); private static readonly IntPtr selBytesPerPlaneHandle = Selector.GetHandle("bytesPerPlane"); private static readonly IntPtr selNumberOfPlanesHandle = Selector.GetHandle("numberOfPlanes"); private static readonly IntPtr selBitmapFormatHandle = Selector.GetHandle("bitmapFormat"); private static readonly IntPtr selTIFFRepresentationHandle = Selector.GetHandle("TIFFRepresentation"); private static readonly IntPtr selCGImageHandle = Selector.GetHandle("CGImage"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selInitWithFocusedViewRect_Handle = Selector.GetHandle("initWithFocusedViewRect:"); private static readonly IntPtr selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel_Handle = Selector.GetHandle("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:"); private static readonly IntPtr selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel_Handle = Selector.GetHandle("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:"); private static readonly IntPtr selInitWithCGImage_Handle = Selector.GetHandle("initWithCGImage:"); private static readonly IntPtr selInitWithCIImage_Handle = Selector.GetHandle("initWithCIImage:"); private static readonly IntPtr selImageRepsWithData_Handle = Selector.GetHandle("imageRepsWithData:"); private static readonly IntPtr selImageRepWithData_Handle = Selector.GetHandle("imageRepWithData:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selGetBitmapDataPlanes_Handle = Selector.GetHandle("getBitmapDataPlanes:"); private static readonly IntPtr selGetCompressionFactor_Handle = Selector.GetHandle("getCompression:factor:"); private static readonly IntPtr selSetCompressionFactor_Handle = Selector.GetHandle("setCompression:factor:"); private static readonly IntPtr selTIFFRepresentationUsingCompressionFactor_Handle = Selector.GetHandle("TIFFRepresentationUsingCompression:factor:"); private static readonly IntPtr selTIFFRepresentationOfImageRepsInArray_Handle = Selector.GetHandle("TIFFRepresentationOfImageRepsInArray:"); private static readonly IntPtr selTIFFRepresentationOfImageRepsInArrayUsingCompressionFactor_Handle = Selector.GetHandle("TIFFRepresentationOfImageRepsInArray:usingCompression:factor:"); private static readonly IntPtr selLocalizedNameForTIFFCompressionType_Handle = Selector.GetHandle("localizedNameForTIFFCompressionType:"); private static readonly IntPtr selCanBeCompressedUsing_Handle = Selector.GetHandle("canBeCompressedUsing:"); private static readonly IntPtr selColorizeByMappingGrayToColorBlackMappingWhiteMapping_Handle = Selector.GetHandle("colorizeByMappingGray:toColor:blackMapping:whiteMapping:"); private static readonly IntPtr selIncrementalLoadFromDataComplete_Handle = Selector.GetHandle("incrementalLoadFromData:complete:"); private static readonly IntPtr selSetColorAtXY_Handle = Selector.GetHandle("setColor:atX:y:"); private static readonly IntPtr selColorAtXY_Handle = Selector.GetHandle("colorAtX:y:"); private static readonly IntPtr selBitmapImageRepByConvertingToColorSpaceRenderingIntent_Handle = Selector.GetHandle("bitmapImageRepByConvertingToColorSpace:renderingIntent:"); private static readonly IntPtr selBitmapImageRepByRetaggingWithColorSpace_Handle = Selector.GetHandle("bitmapImageRepByRetaggingWithColorSpace:"); private static readonly IntPtr selRepresentationUsingTypeProperties_Handle = Selector.GetHandle("representationUsingType:properties:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBitmapImageRep"); private object __mt_TiffRepresentation_var; private object __mt_ColorSpace_var; private static NSString _CompressionMethod; private static NSString _CompressionFactor; private static NSString _DitherTransparency; private static NSString _RGBColorTable; private static NSString _Interlaced; private static NSString _ColorSyncProfileData; private static NSString _FrameCount; private static NSString _CurrentFrame; private static NSString _CurrentFrameDuration; private static NSString _LoopCount; private static NSString _Gamma; private static NSString _Progressive; private static NSString _EXIFData; private static NSString _FallbackBackgroundColor; public override IntPtr ClassHandle => class_ptr; public virtual IntPtr BitmapData { [Export("bitmapData")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selBitmapDataHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBitmapDataHandle); } } public virtual bool IsPlanar { [Export("isPlanar")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlanarHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlanarHandle); } } public virtual long SamplesPerPixel { [Export("samplesPerPixel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSamplesPerPixelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSamplesPerPixelHandle); } } public virtual long BitsPerPixel { [Export("bitsPerPixel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selBitsPerPixelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBitsPerPixelHandle); } } public virtual long BytesPerRow { [Export("bytesPerRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selBytesPerRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBytesPerRowHandle); } } public virtual long BytesPerPlane { [Export("bytesPerPlane")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selBytesPerPlaneHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBytesPerPlaneHandle); } } public virtual long Planes { [Export("numberOfPlanes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfPlanesHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfPlanesHandle); } } public virtual NSBitmapFormat BitmapFormat { [Export("bitmapFormat")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBitmapFormat)Messaging.UInt64_objc_msgSend(base.Handle, selBitmapFormatHandle); } return (NSBitmapFormat)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBitmapFormatHandle); } } public virtual NSData TiffRepresentation { [Export("TIFFRepresentation")] get { NSApplication.EnsureUIThread(); return (NSData)(__mt_TiffRepresentation_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTIFFRepresentationHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTIFFRepresentationHandle))))); } } public new virtual CGImage CGImage { [Export("CGImage")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGImage(Messaging.IntPtr_objc_msgSend(base.Handle, selCGImageHandle)); } return new CGImage(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGImageHandle)); } } public virtual NSColorSpace ColorSpace { [Export("colorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_ColorSpace_var = ((!IsDirectBinding) ? ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle))) : ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle))))); } } [Field("NSImageCompressionMethod", "AppKit")] public static NSString CompressionMethod { get { if (_CompressionMethod == null) { _CompressionMethod = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageCompressionMethod"); } return _CompressionMethod; } } [Field("NSImageCompressionFactor", "AppKit")] public static NSString CompressionFactor { get { if (_CompressionFactor == null) { _CompressionFactor = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageCompressionFactor"); } return _CompressionFactor; } } [Field("NSImageDitherTransparency", "AppKit")] public static NSString DitherTransparency { get { if (_DitherTransparency == null) { _DitherTransparency = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageDitherTransparency"); } return _DitherTransparency; } } [Field("NSImageRGBColorTable", "AppKit")] public static NSString RGBColorTable { get { if (_RGBColorTable == null) { _RGBColorTable = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageRGBColorTable"); } return _RGBColorTable; } } [Field("NSImageInterlaced", "AppKit")] public static NSString Interlaced { get { if (_Interlaced == null) { _Interlaced = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageInterlaced"); } return _Interlaced; } } [Field("NSImageColorSyncProfileData", "AppKit")] public static NSString ColorSyncProfileData { get { if (_ColorSyncProfileData == null) { _ColorSyncProfileData = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageColorSyncProfileData"); } return _ColorSyncProfileData; } } [Field("NSImageFrameCount", "AppKit")] public static NSString FrameCount { get { if (_FrameCount == null) { _FrameCount = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageFrameCount"); } return _FrameCount; } } [Field("NSImageCurrentFrame", "AppKit")] public static NSString CurrentFrame { get { if (_CurrentFrame == null) { _CurrentFrame = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageCurrentFrame"); } return _CurrentFrame; } } [Field("NSImageCurrentFrameDuration", "AppKit")] public static NSString CurrentFrameDuration { get { if (_CurrentFrameDuration == null) { _CurrentFrameDuration = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageCurrentFrameDuration"); } return _CurrentFrameDuration; } } [Field("NSImageLoopCount", "AppKit")] public static NSString LoopCount { get { if (_LoopCount == null) { _LoopCount = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageLoopCount"); } return _LoopCount; } } [Field("NSImageGamma", "AppKit")] public static NSString Gamma { get { if (_Gamma == null) { _Gamma = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageGamma"); } return _Gamma; } } [Field("NSImageProgressive", "AppKit")] public static NSString Progressive { get { if (_Progressive == null) { _Progressive = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageProgressive"); } return _Progressive; } } [Field("NSImageEXIFData", "AppKit")] public static NSString EXIFData { get { if (_EXIFData == null) { _EXIFData = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageEXIFData"); } return _EXIFData; } } [Field("NSImageFallbackBackgroundColor", "AppKit")] public static NSString FallbackBackgroundColor { get { if (_FallbackBackgroundColor == null) { _FallbackBackgroundColor = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageFallbackBackgroundColor"); } return _FallbackBackgroundColor; } } private NSBitmapImageRep(NSObjectFlag a, NSObjectFlag b) : base(a) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, selInitForIncrementalLoad); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitForIncrementalLoad); } } public static NSBitmapImageRep IncrementalLoader() { return new NSBitmapImageRep(NSObjectFlag.Empty, NSObjectFlag.Empty); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBitmapImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBitmapImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBitmapImageRep(IntPtr handle) : base(handle) { } [Export("initWithFocusedViewRect:")] public NSBitmapImageRep(CGRect rect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFocusedViewRect_Handle, rect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFocusedViewRect_Handle, rect); } } [Export("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:")] public NSBitmapImageRep(IntPtr planes, long width, long height, long bps, long spp, bool alpha, bool isPlanar, string colorSpaceName, long rBytes, long pBits) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (colorSpaceName == null) { throw new ArgumentNullException("colorSpaceName"); } IntPtr arg = NSString.CreateNative(colorSpaceName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_Int64_Int64(base.Handle, selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel_Handle, planes, width, height, bps, spp, alpha, isPlanar, arg, rBytes, pBits); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_Int64_Int64(base.SuperHandle, selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel_Handle, planes, width, height, bps, spp, alpha, isPlanar, arg, rBytes, pBits); } NSString.ReleaseNative(arg); } [Export("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:")] public NSBitmapImageRep(IntPtr planes, long width, long height, long bps, long spp, bool alpha, bool isPlanar, string colorSpaceName, NSBitmapFormat bitmapFormat, long rBytes, long pBits) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (colorSpaceName == null) { throw new ArgumentNullException("colorSpaceName"); } IntPtr arg = NSString.CreateNative(colorSpaceName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_UInt64_Int64_Int64(base.Handle, selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel_Handle, planes, width, height, bps, spp, alpha, isPlanar, arg, (ulong)bitmapFormat, rBytes, pBits); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_UInt64_Int64_Int64(base.SuperHandle, selInitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel_Handle, planes, width, height, bps, spp, alpha, isPlanar, arg, (ulong)bitmapFormat, rBytes, pBits); } NSString.ReleaseNative(arg); } [Export("initWithCGImage:")] public NSBitmapImageRep(CGImage cgImage) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCGImage_Handle, cgImage.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCGImage_Handle, cgImage.Handle); } } [Export("initWithCIImage:")] public NSBitmapImageRep(CIImage ciImage) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (ciImage == null) { throw new ArgumentNullException("ciImage"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCIImage_Handle, ciImage.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCIImage_Handle, ciImage.Handle); } } [Export("imageRepsWithData:")] public static NSImageRep[] ImageRepsWithData(NSData data) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepsWithData_Handle, data.Handle)); } [Export("imageRepWithData:")] public static NSImageRep ImageRepFromData(NSData data) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithData_Handle, data.Handle)); } [Export("initWithData:")] public NSBitmapImageRep(NSData data) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("getBitmapDataPlanes:")] public virtual void GetBitmapDataPlanes(IntPtr data) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetBitmapDataPlanes_Handle, data); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetBitmapDataPlanes_Handle, data); } } [Export("getCompression:factor:")] public virtual void GetCompressionFactor(out NSTiffCompression compression, out double factor) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_NSTiffCompression_out_Double(base.Handle, selGetCompressionFactor_Handle, out compression, out factor); } else { Messaging.void_objc_msgSendSuper_out_NSTiffCompression_out_Double(base.SuperHandle, selGetCompressionFactor_Handle, out compression, out factor); } } [Export("setCompression:factor:")] public virtual void SetCompressionFactor(NSTiffCompression compression, double factor) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Double(base.Handle, selSetCompressionFactor_Handle, (ulong)compression, factor); } else { Messaging.void_objc_msgSendSuper_UInt64_Double(base.SuperHandle, selSetCompressionFactor_Handle, (ulong)compression, factor); } } [Export("TIFFRepresentationUsingCompression:factor:")] public virtual NSData TiffRepresentationUsingCompressionFactor(NSTiffCompression comp, double factor) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_Double(base.Handle, selTIFFRepresentationUsingCompressionFactor_Handle, (ulong)comp, factor)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_Double(base.SuperHandle, selTIFFRepresentationUsingCompressionFactor_Handle, (ulong)comp, factor)); } [Export("TIFFRepresentationOfImageRepsInArray:")] public static NSData ImagesAsTiff(NSImageRep[] imageReps) { NSApplication.EnsureUIThread(); if (imageReps == null) { throw new ArgumentNullException("imageReps"); } NSArray nSArray = NSArray.FromNSObjects(imageReps); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selTIFFRepresentationOfImageRepsInArray_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("TIFFRepresentationOfImageRepsInArray:usingCompression:factor:")] public static NSData ImagesAsTiff(NSImageRep[] imageReps, NSTiffCompression comp, double factor) { NSApplication.EnsureUIThread(); if (imageReps == null) { throw new ArgumentNullException("imageReps"); } NSArray nSArray = NSArray.FromNSObjects(imageReps); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_Double(class_ptr, selTIFFRepresentationOfImageRepsInArrayUsingCompressionFactor_Handle, nSArray.Handle, (ulong)comp, factor)); nSArray.Dispose(); return result; } [Export("localizedNameForTIFFCompressionType:")] public static string LocalizedNameForTiffCompressionType(NSTiffCompression compression) { NSApplication.EnsureUIThread(); return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selLocalizedNameForTIFFCompressionType_Handle, (ulong)compression)); } [Export("canBeCompressedUsing:")] public virtual bool CanBeCompressedUsing(NSTiffCompression compression) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_UInt64(base.Handle, selCanBeCompressedUsing_Handle, (ulong)compression); } return Messaging.bool_objc_msgSendSuper_UInt64(base.SuperHandle, selCanBeCompressedUsing_Handle, (ulong)compression); } [Export("colorizeByMappingGray:toColor:blackMapping:whiteMapping:")] public virtual void Colorize(double midPoint, NSColor midPointColor, NSColor shadowColor, NSColor lightColor) { NSApplication.EnsureUIThread(); if (midPointColor == null) { throw new ArgumentNullException("midPointColor"); } if (shadowColor == null) { throw new ArgumentNullException("shadowColor"); } if (lightColor == null) { throw new ArgumentNullException("lightColor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_IntPtr_IntPtr_IntPtr(base.Handle, selColorizeByMappingGrayToColorBlackMappingWhiteMapping_Handle, midPoint, midPointColor.Handle, shadowColor.Handle, lightColor.Handle); } else { Messaging.void_objc_msgSendSuper_Double_IntPtr_IntPtr_IntPtr(base.SuperHandle, selColorizeByMappingGrayToColorBlackMappingWhiteMapping_Handle, midPoint, midPointColor.Handle, shadowColor.Handle, lightColor.Handle); } } [Export("incrementalLoadFromData:complete:")] public virtual long IncrementalLoad(NSData data, bool complete) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr_bool(base.Handle, selIncrementalLoadFromDataComplete_Handle, data.Handle, complete); } return Messaging.Int64_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selIncrementalLoadFromDataComplete_Handle, data.Handle, complete); } [Export("setColor:atX:y:")] public virtual void SetColorAt(NSColor color, long x, long y) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64_Int64(base.Handle, selSetColorAtXY_Handle, color.Handle, x, y); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64_Int64(base.SuperHandle, selSetColorAtXY_Handle, color.Handle, x, y); } } [Export("colorAtX:y:")] public virtual NSColor ColorAt(long x, long y) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selColorAtXY_Handle, x, y)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selColorAtXY_Handle, x, y)); } [Export("bitmapImageRepByConvertingToColorSpace:renderingIntent:")] public virtual NSBitmapImageRep ConvertingToColorSpace(NSColorSpace targetSpace, NSColorRenderingIntent renderingIntent) { NSApplication.EnsureUIThread(); if (targetSpace == null) { throw new ArgumentNullException("targetSpace"); } if (IsDirectBinding) { return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64(base.Handle, selBitmapImageRepByConvertingToColorSpaceRenderingIntent_Handle, targetSpace.Handle, (long)renderingIntent)); } return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selBitmapImageRepByConvertingToColorSpaceRenderingIntent_Handle, targetSpace.Handle, (long)renderingIntent)); } [Export("bitmapImageRepByRetaggingWithColorSpace:")] public virtual NSBitmapImageRep RetaggedWithColorSpace(NSColorSpace newSpace) { NSApplication.EnsureUIThread(); if (newSpace == null) { throw new ArgumentNullException("newSpace"); } if (IsDirectBinding) { return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selBitmapImageRepByRetaggingWithColorSpace_Handle, newSpace.Handle)); } return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selBitmapImageRepByRetaggingWithColorSpace_Handle, newSpace.Handle)); } [Export("representationUsingType:properties:")] public virtual NSData RepresentationUsingTypeProperties(NSBitmapImageFileType storageType, NSDictionary properties) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(base.Handle, selRepresentationUsingTypeProperties_Handle, (ulong)storageType, properties?.Handle ?? IntPtr.Zero)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selRepresentationUsingTypeProperties_Handle, (ulong)storageType, properties?.Handle ?? IntPtr.Zero)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TiffRepresentation_var = null; __mt_ColorSpace_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBorderType.cs ================================================ namespace AppKit; public enum NSBorderType : ulong { NoBorder, LineBorder, BezelBorder, GrooveBorder } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBox.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBox", true)] public class NSBox : NSView { private static readonly IntPtr selBorderTypeHandle = Selector.GetHandle("borderType"); private static readonly IntPtr selSetBorderType_Handle = Selector.GetHandle("setBorderType:"); private static readonly IntPtr selTitlePositionHandle = Selector.GetHandle("titlePosition"); private static readonly IntPtr selSetTitlePosition_Handle = Selector.GetHandle("setTitlePosition:"); private static readonly IntPtr selBoxTypeHandle = Selector.GetHandle("boxType"); private static readonly IntPtr selSetBoxType_Handle = Selector.GetHandle("setBoxType:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selTitleFontHandle = Selector.GetHandle("titleFont"); private static readonly IntPtr selSetTitleFont_Handle = Selector.GetHandle("setTitleFont:"); private static readonly IntPtr selBorderRectHandle = Selector.GetHandle("borderRect"); private static readonly IntPtr selTitleRectHandle = Selector.GetHandle("titleRect"); private static readonly IntPtr selTitleCellHandle = Selector.GetHandle("titleCell"); private static readonly IntPtr selContentViewMarginsHandle = Selector.GetHandle("contentViewMargins"); private static readonly IntPtr selSetContentViewMargins_Handle = Selector.GetHandle("setContentViewMargins:"); private static readonly IntPtr selContentViewHandle = Selector.GetHandle("contentView"); private static readonly IntPtr selSetContentView_Handle = Selector.GetHandle("setContentView:"); private static readonly IntPtr selIsTransparentHandle = Selector.GetHandle("isTransparent"); private static readonly IntPtr selSetTransparent_Handle = Selector.GetHandle("setTransparent:"); private static readonly IntPtr selBorderWidthHandle = Selector.GetHandle("borderWidth"); private static readonly IntPtr selSetBorderWidth_Handle = Selector.GetHandle("setBorderWidth:"); private static readonly IntPtr selCornerRadiusHandle = Selector.GetHandle("cornerRadius"); private static readonly IntPtr selSetCornerRadius_Handle = Selector.GetHandle("setCornerRadius:"); private static readonly IntPtr selBorderColorHandle = Selector.GetHandle("borderColor"); private static readonly IntPtr selSetBorderColor_Handle = Selector.GetHandle("setBorderColor:"); private static readonly IntPtr selFillColorHandle = Selector.GetHandle("fillColor"); private static readonly IntPtr selSetFillColor_Handle = Selector.GetHandle("setFillColor:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr selSetFrameFromContentFrame_Handle = Selector.GetHandle("setFrameFromContentFrame:"); private static readonly IntPtr selSetTitleWithMnemonic_Handle = Selector.GetHandle("setTitleWithMnemonic:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBox"); private object __mt_TitleFont_var; private object __mt_TitleCell_var; private object __mt_ContentView_var; private object __mt_BorderColor_var; private object __mt_FillColor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSBorderType BorderType { [Export("borderType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBorderType)Messaging.UInt64_objc_msgSend(base.Handle, selBorderTypeHandle); } return (NSBorderType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBorderTypeHandle); } [Export("setBorderType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetBorderType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetBorderType_Handle, (ulong)value); } } } public virtual NSTitlePosition TitlePosition { [Export("titlePosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTitlePosition)Messaging.int_objc_msgSend(base.Handle, selTitlePositionHandle); } return (NSTitlePosition)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTitlePositionHandle); } [Export("setTitlePosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTitlePosition_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTitlePosition_Handle, (int)value); } } } public virtual NSBoxType BoxType { [Export("boxType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBoxType)Messaging.int_objc_msgSend(base.Handle, selBoxTypeHandle); } return (NSBoxType)Messaging.int_objc_msgSendSuper(base.SuperHandle, selBoxTypeHandle); } [Export("setBoxType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetBoxType_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetBoxType_Handle, (int)value); } } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSFont TitleFont { [Export("titleFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_TitleFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleFontHandle))))); } [Export("setTitleFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleFont_Handle, value.Handle); } __mt_TitleFont_var = value; } } public virtual CGRect BorderRect { [Export("borderRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBorderRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBorderRectHandle); } return retval; } } public virtual CGRect TitleRect { [Export("titleRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selTitleRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTitleRectHandle); } return retval; } } public virtual NSObject TitleCell { [Export("titleCell")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_TitleCell_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleCellHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleCellHandle)))); } } public virtual CGSize ContentViewMargins { [Export("contentViewMargins")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentViewMarginsHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentViewMarginsHandle); } [Export("setContentViewMargins:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentViewMargins_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentViewMargins_Handle, value); } } } public virtual NSObject ContentView { [Export("contentView")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ContentView_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewHandle)))); } [Export("setContentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentView_Handle, value.Handle); } __mt_ContentView_var = value; } } public virtual bool Transparent { [Export("isTransparent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTransparentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTransparentHandle); } [Export("setTransparent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTransparent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTransparent_Handle, value); } } } public virtual double BorderWidth { [Export("borderWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBorderWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBorderWidthHandle); } [Export("setBorderWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBorderWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBorderWidth_Handle, value); } } } public virtual double CornerRadius { [Export("cornerRadius")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCornerRadiusHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCornerRadiusHandle); } [Export("setCornerRadius:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCornerRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCornerRadius_Handle, value); } } } public virtual NSColor BorderColor { [Export("borderColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BorderColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBorderColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBorderColorHandle))))); } [Export("setBorderColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBorderColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBorderColor_Handle, value.Handle); } __mt_BorderColor_var = value; } } public virtual NSColor FillColor { [Export("fillColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_FillColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFillColorHandle))))); } [Export("setFillColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillColor_Handle, value.Handle); } __mt_FillColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBox() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBox(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBox(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBox(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSBox(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } [Export("setFrameFromContentFrame:")] public virtual void SetFrameFromContentFrame(CGRect contentFrame) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetFrameFromContentFrame_Handle, contentFrame); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetFrameFromContentFrame_Handle, contentFrame); } } [Export("setTitleWithMnemonic:")] public virtual void SetTitleWithMnemonic(string stringWithMnemonic) { NSApplication.EnsureUIThread(); if (stringWithMnemonic == null) { throw new ArgumentNullException("stringWithMnemonic"); } IntPtr arg = NSString.CreateNative(stringWithMnemonic); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TitleFont_var = null; __mt_TitleCell_var = null; __mt_ContentView_var = null; __mt_BorderColor_var = null; __mt_FillColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBoxType.cs ================================================ namespace AppKit; public enum NSBoxType { NSBoxPrimary, NSBoxSecondary, NSBoxSeparator, NSBoxOldStyle, NSBoxCustom } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBrowser.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBrowser", true)] public class NSBrowser : NSControl { private static readonly IntPtr selIsLoadedHandle = Selector.GetHandle("isLoaded"); private static readonly IntPtr selAutohidesScrollerHandle = Selector.GetHandle("autohidesScroller"); private static readonly IntPtr selSetAutohidesScroller_Handle = Selector.GetHandle("setAutohidesScroller:"); private static readonly IntPtr selSelectionIndexPathHandle = Selector.GetHandle("selectionIndexPath"); private static readonly IntPtr selSetSelectionIndexPath_Handle = Selector.GetHandle("setSelectionIndexPath:"); private static readonly IntPtr selSelectionIndexPathsHandle = Selector.GetHandle("selectionIndexPaths"); private static readonly IntPtr selSetSelectionIndexPaths_Handle = Selector.GetHandle("setSelectionIndexPaths:"); private static readonly IntPtr selNumberOfVisibleColumnsHandle = Selector.GetHandle("numberOfVisibleColumns"); private static readonly IntPtr selFirstVisibleColumnHandle = Selector.GetHandle("firstVisibleColumn"); private static readonly IntPtr selLastVisibleColumnHandle = Selector.GetHandle("lastVisibleColumn"); private static readonly IntPtr selTitleHeightHandle = Selector.GetHandle("titleHeight"); private static readonly IntPtr selColumnResizingTypeHandle = Selector.GetHandle("columnResizingType"); private static readonly IntPtr selSetColumnResizingType_Handle = Selector.GetHandle("setColumnResizingType:"); private static readonly IntPtr selPrefersAllColumnUserResizingHandle = Selector.GetHandle("prefersAllColumnUserResizing"); private static readonly IntPtr selSetPrefersAllColumnUserResizing_Handle = Selector.GetHandle("setPrefersAllColumnUserResizing:"); private static readonly IntPtr selRowHeightHandle = Selector.GetHandle("rowHeight"); private static readonly IntPtr selSetRowHeight_Handle = Selector.GetHandle("setRowHeight:"); private static readonly IntPtr selDefaultColumnWidthHandle = Selector.GetHandle("defaultColumnWidth"); private static readonly IntPtr selSetDefaultColumnWidth_Handle = Selector.GetHandle("setDefaultColumnWidth:"); private static readonly IntPtr selColumnsAutosaveNameHandle = Selector.GetHandle("columnsAutosaveName"); private static readonly IntPtr selSetColumnsAutosaveName_Handle = Selector.GetHandle("setColumnsAutosaveName:"); private static readonly IntPtr selAllowsTypeSelectHandle = Selector.GetHandle("allowsTypeSelect"); private static readonly IntPtr selSetAllowsTypeSelect_Handle = Selector.GetHandle("setAllowsTypeSelect:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selMatrixClassHandle = Selector.GetHandle("matrixClass"); private static readonly IntPtr selSetMatrixClass_Handle = Selector.GetHandle("setMatrixClass:"); private static readonly IntPtr selCellClassHandle = Selector.GetHandle("cellClass"); private static readonly IntPtr selCellPrototypeHandle = Selector.GetHandle("cellPrototype"); private static readonly IntPtr selSetCellPrototype_Handle = Selector.GetHandle("setCellPrototype:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selReusesColumnsHandle = Selector.GetHandle("reusesColumns"); private static readonly IntPtr selSetReusesColumns_Handle = Selector.GetHandle("setReusesColumns:"); private static readonly IntPtr selHasHorizontalScrollerHandle = Selector.GetHandle("hasHorizontalScroller"); private static readonly IntPtr selSetHasHorizontalScroller_Handle = Selector.GetHandle("setHasHorizontalScroller:"); private static readonly IntPtr selSeparatesColumnsHandle = Selector.GetHandle("separatesColumns"); private static readonly IntPtr selSetSeparatesColumns_Handle = Selector.GetHandle("setSeparatesColumns:"); private static readonly IntPtr selIsTitledHandle = Selector.GetHandle("isTitled"); private static readonly IntPtr selSetTitled_Handle = Selector.GetHandle("setTitled:"); private static readonly IntPtr selMinColumnWidthHandle = Selector.GetHandle("minColumnWidth"); private static readonly IntPtr selSetMinColumnWidth_Handle = Selector.GetHandle("setMinColumnWidth:"); private static readonly IntPtr selMaxVisibleColumnsHandle = Selector.GetHandle("maxVisibleColumns"); private static readonly IntPtr selSetMaxVisibleColumns_Handle = Selector.GetHandle("setMaxVisibleColumns:"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selAllowsBranchSelectionHandle = Selector.GetHandle("allowsBranchSelection"); private static readonly IntPtr selSetAllowsBranchSelection_Handle = Selector.GetHandle("setAllowsBranchSelection:"); private static readonly IntPtr selAllowsEmptySelectionHandle = Selector.GetHandle("allowsEmptySelection"); private static readonly IntPtr selSetAllowsEmptySelection_Handle = Selector.GetHandle("setAllowsEmptySelection:"); private static readonly IntPtr selTakesTitleFromPreviousColumnHandle = Selector.GetHandle("takesTitleFromPreviousColumn"); private static readonly IntPtr selSetTakesTitleFromPreviousColumn_Handle = Selector.GetHandle("setTakesTitleFromPreviousColumn:"); private static readonly IntPtr selSendsActionOnArrowKeysHandle = Selector.GetHandle("sendsActionOnArrowKeys"); private static readonly IntPtr selSetSendsActionOnArrowKeys_Handle = Selector.GetHandle("setSendsActionOnArrowKeys:"); private static readonly IntPtr selPathSeparatorHandle = Selector.GetHandle("pathSeparator"); private static readonly IntPtr selSetPathSeparator_Handle = Selector.GetHandle("setPathSeparator:"); private static readonly IntPtr selLastColumnHandle = Selector.GetHandle("lastColumn"); private static readonly IntPtr selSetLastColumn_Handle = Selector.GetHandle("setLastColumn:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selLoadColumnZeroHandle = Selector.GetHandle("loadColumnZero"); private static readonly IntPtr selItemAtIndexPath_Handle = Selector.GetHandle("itemAtIndexPath:"); private static readonly IntPtr selItemAtRowInColumn_Handle = Selector.GetHandle("itemAtRow:inColumn:"); private static readonly IntPtr selIndexPathForColumn_Handle = Selector.GetHandle("indexPathForColumn:"); private static readonly IntPtr selIsLeafItem_Handle = Selector.GetHandle("isLeafItem:"); private static readonly IntPtr selReloadDataForRowIndexesInColumn_Handle = Selector.GetHandle("reloadDataForRowIndexes:inColumn:"); private static readonly IntPtr selParentForItemsInColumn_Handle = Selector.GetHandle("parentForItemsInColumn:"); private static readonly IntPtr selScrollRowToVisibleInColumn_Handle = Selector.GetHandle("scrollRowToVisible:inColumn:"); private static readonly IntPtr selSetTitleOfColumn_Handle = Selector.GetHandle("setTitle:ofColumn:"); private static readonly IntPtr selTitleOfColumn_Handle = Selector.GetHandle("titleOfColumn:"); private static readonly IntPtr selPathToColumn_Handle = Selector.GetHandle("pathToColumn:"); private static readonly IntPtr selClickedColumnHandle = Selector.GetHandle("clickedColumn"); private static readonly IntPtr selClickedRowHandle = Selector.GetHandle("clickedRow"); private static readonly IntPtr selSelectedColumnHandle = Selector.GetHandle("selectedColumn"); private static readonly IntPtr selSelectedCellHandle = Selector.GetHandle("selectedCell"); private static readonly IntPtr selSelectedCellInColumn_Handle = Selector.GetHandle("selectedCellInColumn:"); private static readonly IntPtr selSelectedCellsHandle = Selector.GetHandle("selectedCells"); private static readonly IntPtr selSelectRowInColumn_Handle = Selector.GetHandle("selectRow:inColumn:"); private static readonly IntPtr selSelectedRowInColumn_Handle = Selector.GetHandle("selectedRowInColumn:"); private static readonly IntPtr selSelectRowIndexesInColumn_Handle = Selector.GetHandle("selectRowIndexes:inColumn:"); private static readonly IntPtr selSelectedRowIndexesInColumn_Handle = Selector.GetHandle("selectedRowIndexesInColumn:"); private static readonly IntPtr selReloadColumn_Handle = Selector.GetHandle("reloadColumn:"); private static readonly IntPtr selValidateVisibleColumnsHandle = Selector.GetHandle("validateVisibleColumns"); private static readonly IntPtr selScrollColumnsRightBy_Handle = Selector.GetHandle("scrollColumnsRightBy:"); private static readonly IntPtr selScrollColumnsLeftBy_Handle = Selector.GetHandle("scrollColumnsLeftBy:"); private static readonly IntPtr selScrollColumnToVisible_Handle = Selector.GetHandle("scrollColumnToVisible:"); private static readonly IntPtr selAddColumnHandle = Selector.GetHandle("addColumn"); private static readonly IntPtr selColumnOfMatrix_Handle = Selector.GetHandle("columnOfMatrix:"); private static readonly IntPtr selMatrixInColumn_Handle = Selector.GetHandle("matrixInColumn:"); private static readonly IntPtr selLoadedCellAtRowColumn_Handle = Selector.GetHandle("loadedCellAtRow:column:"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selTileHandle = Selector.GetHandle("tile"); private static readonly IntPtr selDoClick_Handle = Selector.GetHandle("doClick:"); private static readonly IntPtr selDoDoubleClick_Handle = Selector.GetHandle("doDoubleClick:"); private static readonly IntPtr selSendActionHandle = Selector.GetHandle("sendAction"); private static readonly IntPtr selTitleFrameOfColumn_Handle = Selector.GetHandle("titleFrameOfColumn:"); private static readonly IntPtr selDrawTitleOfColumnInRect_Handle = Selector.GetHandle("drawTitleOfColumn:inRect:"); private static readonly IntPtr selFrameOfColumn_Handle = Selector.GetHandle("frameOfColumn:"); private static readonly IntPtr selFrameOfInsideOfColumn_Handle = Selector.GetHandle("frameOfInsideOfColumn:"); private static readonly IntPtr selFrameOfRowInColumn_Handle = Selector.GetHandle("frameOfRow:inColumn:"); private static readonly IntPtr selGetRowColumnForPoint_Handle = Selector.GetHandle("getRow:column:forPoint:"); private static readonly IntPtr selColumnWidthForColumnContentWidth_Handle = Selector.GetHandle("columnWidthForColumnContentWidth:"); private static readonly IntPtr selColumnContentWidthForColumnWidth_Handle = Selector.GetHandle("columnContentWidthForColumnWidth:"); private static readonly IntPtr selSetWidthOfColumn_Handle = Selector.GetHandle("setWidth:ofColumn:"); private static readonly IntPtr selWidthOfColumn_Handle = Selector.GetHandle("widthOfColumn:"); private static readonly IntPtr selNoteHeightOfRowsWithIndexesChangedInColumn_Handle = Selector.GetHandle("noteHeightOfRowsWithIndexesChanged:inColumn:"); private static readonly IntPtr selRemoveSavedColumnsWithAutosaveName_Handle = Selector.GetHandle("removeSavedColumnsWithAutosaveName:"); private static readonly IntPtr selCanDragRowsWithIndexesInColumnWithEvent_Handle = Selector.GetHandle("canDragRowsWithIndexes:inColumn:withEvent:"); private static readonly IntPtr selSetDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("setDraggingSourceOperationMask:forLocal:"); private static readonly IntPtr selEditItemAtIndexPathWithEventSelect_Handle = Selector.GetHandle("editItemAtIndexPath:withEvent:select:"); private static readonly IntPtr selSetCellClass_Handle = Selector.GetHandle("setCellClass:"); private static readonly IntPtr selPathHandle = Selector.GetHandle("path"); private static readonly IntPtr selSetPath_Handle = Selector.GetHandle("setPath:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBrowser"); private object __mt_SelectionIndexPath_var; private object __mt_SelectionIndexPaths_var; private object __mt_BackgroundColor_var; private object __mt_CellPrototype_var; private object __mt_WeakDelegate_var; public string Path { get { return GetPath(); } set { SetPath(value); } } public override IntPtr ClassHandle => class_ptr; public virtual bool Loaded { [Export("isLoaded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLoadedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLoadedHandle); } } public virtual bool AutohidesScroller { [Export("autohidesScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutohidesScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutohidesScrollerHandle); } [Export("setAutohidesScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutohidesScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutohidesScroller_Handle, value); } } } public virtual NSIndexPath SelectionIndexPath { [Export("selectionIndexPath")] get { NSApplication.EnsureUIThread(); return (NSIndexPath)(__mt_SelectionIndexPath_var = ((!IsDirectBinding) ? ((NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexPathHandle))) : ((NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexPathHandle))))); } [Export("setSelectionIndexPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexPath_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexPath_Handle, value.Handle); } __mt_SelectionIndexPath_var = value; } } public virtual NSIndexPath[] SelectionIndexPaths { [Export("selectionIndexPaths")] get { NSApplication.EnsureUIThread(); return (NSIndexPath[])(__mt_SelectionIndexPaths_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexPathsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexPathsHandle)))); } [Export("setSelectionIndexPaths:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexPaths_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexPaths_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SelectionIndexPaths_var = value; } } public virtual long VisibleColumns { [Export("numberOfVisibleColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfVisibleColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfVisibleColumnsHandle); } } public virtual long FirstVisibleColumn { [Export("firstVisibleColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFirstVisibleColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFirstVisibleColumnHandle); } } public virtual long LastVisibleColumn { [Export("lastVisibleColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selLastVisibleColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLastVisibleColumnHandle); } } public virtual double TitleHeight { [Export("titleHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTitleHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTitleHeightHandle); } } public virtual NSBrowserColumnResizingType ColumnResizingType { [Export("columnResizingType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBrowserColumnResizingType)Messaging.UInt64_objc_msgSend(base.Handle, selColumnResizingTypeHandle); } return (NSBrowserColumnResizingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selColumnResizingTypeHandle); } [Export("setColumnResizingType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetColumnResizingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetColumnResizingType_Handle, (ulong)value); } } } public virtual bool PrefersAllColumnUserResizing { [Export("prefersAllColumnUserResizing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPrefersAllColumnUserResizingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPrefersAllColumnUserResizingHandle); } [Export("setPrefersAllColumnUserResizing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPrefersAllColumnUserResizing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPrefersAllColumnUserResizing_Handle, value); } } } public virtual double RowHeight { [Export("rowHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRowHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRowHeightHandle); } [Export("setRowHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRowHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRowHeight_Handle, value); } } } public virtual double DefaultColumnWidth { [Export("defaultColumnWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDefaultColumnWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDefaultColumnWidthHandle); } [Export("setDefaultColumnWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDefaultColumnWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDefaultColumnWidth_Handle, value); } } } public virtual string ColumnsAutosaveName { [Export("columnsAutosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selColumnsAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColumnsAutosaveNameHandle)); } [Export("setColumnsAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColumnsAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColumnsAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool AllowsTypeSelect { [Export("allowsTypeSelect")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsTypeSelectHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsTypeSelectHandle); } [Export("setAllowsTypeSelect:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsTypeSelect_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsTypeSelect_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual Class MatrixClass { [Export("matrixClass")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selMatrixClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMatrixClassHandle)); } [Export("setMatrixClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMatrixClass_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMatrixClass_Handle, value.Handle); } } } public new static Class CellClass { [Export("cellClass")] get { NSApplication.EnsureUIThread(); return new Class(Messaging.IntPtr_objc_msgSend(class_ptr, selCellClassHandle)); } } public virtual NSObject CellPrototype { [Export("cellPrototype")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_CellPrototype_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellPrototypeHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCellPrototypeHandle)))); } [Export("setCellPrototype:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCellPrototype_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCellPrototype_Handle, value.Handle); } __mt_CellPrototype_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSBrowserDelegate Delegate { get { return WeakDelegate as NSBrowserDelegate; } set { WeakDelegate = value; } } public virtual bool ReusesColumns { [Export("reusesColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReusesColumnsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReusesColumnsHandle); } [Export("setReusesColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReusesColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReusesColumns_Handle, value); } } } public virtual bool HasHorizontalScroller { [Export("hasHorizontalScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasHorizontalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasHorizontalScrollerHandle); } [Export("setHasHorizontalScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasHorizontalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasHorizontalScroller_Handle, value); } } } public virtual bool SeparatesColumns { [Export("separatesColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSeparatesColumnsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSeparatesColumnsHandle); } [Export("setSeparatesColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSeparatesColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSeparatesColumns_Handle, value); } } } public virtual bool Titled { [Export("isTitled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTitledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTitledHandle); } [Export("setTitled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTitled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTitled_Handle, value); } } } public virtual double MinColumnWidth { [Export("minColumnWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinColumnWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinColumnWidthHandle); } [Export("setMinColumnWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinColumnWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinColumnWidth_Handle, value); } } } public virtual long MaxVisibleColumns { [Export("maxVisibleColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaxVisibleColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaxVisibleColumnsHandle); } [Export("setMaxVisibleColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaxVisibleColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaxVisibleColumns_Handle, value); } } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual bool AllowsBranchSelection { [Export("allowsBranchSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsBranchSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsBranchSelectionHandle); } [Export("setAllowsBranchSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsBranchSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsBranchSelection_Handle, value); } } } public virtual bool AllowsEmptySelection { [Export("allowsEmptySelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEmptySelectionHandle); } [Export("setAllowsEmptySelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEmptySelection_Handle, value); } } } public virtual bool TakesTitleFromPreviousColumn { [Export("takesTitleFromPreviousColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTakesTitleFromPreviousColumnHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTakesTitleFromPreviousColumnHandle); } [Export("setTakesTitleFromPreviousColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTakesTitleFromPreviousColumn_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTakesTitleFromPreviousColumn_Handle, value); } } } public virtual bool SendsActionOnArrowKeys { [Export("sendsActionOnArrowKeys")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendsActionOnArrowKeysHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendsActionOnArrowKeysHandle); } [Export("setSendsActionOnArrowKeys:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSendsActionOnArrowKeys_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSendsActionOnArrowKeys_Handle, value); } } } public virtual string PathSeparator { [Export("pathSeparator")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathSeparatorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathSeparatorHandle)); } [Export("setPathSeparator:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPathSeparator_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPathSeparator_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual long LastColumn { [Export("lastColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selLastColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLastColumnHandle); } [Export("setLastColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetLastColumn_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetLastColumn_Handle, value); } } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBrowser() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBrowser(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowser(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowser(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSBrowser(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("loadColumnZero")] public virtual void LoadColumnZero() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLoadColumnZeroHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLoadColumnZeroHandle); } } [Export("itemAtIndexPath:")] public virtual NSObject ItemAtIndexPath(NSIndexPath indexPath) { NSApplication.EnsureUIThread(); if (indexPath == null) { throw new ArgumentNullException("indexPath"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selItemAtIndexPath_Handle, indexPath.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemAtIndexPath_Handle, indexPath.Handle)); } [Export("itemAtRow:inColumn:")] public virtual NSObject GetItem(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selItemAtRowInColumn_Handle, row, column)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selItemAtRowInColumn_Handle, row, column)); } [Export("indexPathForColumn:")] public virtual NSIndexPath IndexPathForColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selIndexPathForColumn_Handle, column)); } return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selIndexPathForColumn_Handle, column)); } [Export("isLeafItem:")] public virtual bool IsLeafItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsLeafItem_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsLeafItem_Handle, item.Handle); } [Export("reloadDataForRowIndexes:inColumn:")] public virtual void ReloadData(NSIndexSet rowIndexes, long column) { NSApplication.EnsureUIThread(); if (rowIndexes == null) { throw new ArgumentNullException("rowIndexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selReloadDataForRowIndexesInColumn_Handle, rowIndexes.Handle, column); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selReloadDataForRowIndexesInColumn_Handle, rowIndexes.Handle, column); } } [Export("parentForItemsInColumn:")] public virtual NSObject ParentForItems(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selParentForItemsInColumn_Handle, column)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selParentForItemsInColumn_Handle, column)); } [Export("scrollRowToVisible:inColumn:")] public virtual void ScrollRowToVisible(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selScrollRowToVisibleInColumn_Handle, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selScrollRowToVisibleInColumn_Handle, row, column); } } [Export("setTitle:ofColumn:")] public virtual void SetTitle(string aString, long column) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetTitleOfColumn_Handle, arg, column); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetTitleOfColumn_Handle, arg, column); } NSString.ReleaseNative(arg); } [Export("titleOfColumn:")] public virtual string ColumnTitle(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selTitleOfColumn_Handle, column)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selTitleOfColumn_Handle, column)); } [Export("pathToColumn:")] public virtual string ColumnPath(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selPathToColumn_Handle, column)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selPathToColumn_Handle, column)); } [Export("clickedColumn")] public virtual long ClickedColumn() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClickedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClickedColumnHandle); } [Export("clickedRow")] public virtual long ClickedRow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClickedRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClickedRowHandle); } [Export("selectedColumn")] public virtual long SelectedColumn() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedColumnHandle); } [Export("selectedCell")] public new virtual NSObject SelectedCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedCellHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedCellHandle)); } [Export("selectedCellInColumn:")] public virtual NSObject SelectedCellInColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selSelectedCellInColumn_Handle, column)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selSelectedCellInColumn_Handle, column)); } [Export("selectedCells")] public virtual NSCell[] SelectedCells() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedCellsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedCellsHandle)); } [Export("selectRow:inColumn:")] public virtual void Select(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selSelectRowInColumn_Handle, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSelectRowInColumn_Handle, row, column); } } [Export("selectedRowInColumn:")] public virtual long SelectedRow(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selSelectedRowInColumn_Handle, column); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selSelectedRowInColumn_Handle, column); } [Export("selectRowIndexes:inColumn:")] public virtual void SelectRowIndexes(NSIndexSet indexes, long column) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSelectRowIndexesInColumn_Handle, indexes.Handle, column); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSelectRowIndexesInColumn_Handle, indexes.Handle, column); } } [Export("selectedRowIndexesInColumn:")] public virtual NSIndexSet SelectedRowIndexes(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selSelectedRowIndexesInColumn_Handle, column)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selSelectedRowIndexesInColumn_Handle, column)); } [Export("reloadColumn:")] public virtual void ReloadColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selReloadColumn_Handle, column); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selReloadColumn_Handle, column); } } [Export("validateVisibleColumns")] public virtual void ValidateVisibleColumns() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selValidateVisibleColumnsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selValidateVisibleColumnsHandle); } } [Export("scrollColumnsRightBy:")] public virtual void ScrollColumnsRightBy(long shiftAmount) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollColumnsRightBy_Handle, shiftAmount); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollColumnsRightBy_Handle, shiftAmount); } } [Export("scrollColumnsLeftBy:")] public virtual void ScrollColumnsLeftBy(long shiftAmount) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollColumnsLeftBy_Handle, shiftAmount); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollColumnsLeftBy_Handle, shiftAmount); } } [Export("scrollColumnToVisible:")] public virtual void ScrollColumnToVisible(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollColumnToVisible_Handle, column); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollColumnToVisible_Handle, column); } } [Export("addColumn")] public virtual void AddColumn() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAddColumnHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAddColumnHandle); } } [Export("columnOfMatrix:")] public virtual long ColumnOfMatrix(NSMatrix matrix) { NSApplication.EnsureUIThread(); if (matrix == null) { throw new ArgumentNullException("matrix"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selColumnOfMatrix_Handle, matrix.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selColumnOfMatrix_Handle, matrix.Handle); } [Export("matrixInColumn:")] public virtual NSMatrix MatrixInColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMatrix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selMatrixInColumn_Handle, column)); } return (NSMatrix)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selMatrixInColumn_Handle, column)); } [Export("loadedCellAtRow:column:")] public virtual NSCell LoadedCell(long row, long col) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selLoadedCellAtRowColumn_Handle, row, col)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selLoadedCellAtRowColumn_Handle, row, col)); } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender.Handle); } } [Export("tile")] public virtual void Tile() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selTileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selTileHandle); } } [Export("doClick:")] public virtual void DoClick(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDoClick_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDoClick_Handle, sender.Handle); } } [Export("doDoubleClick:")] public virtual void DoDoubleClick(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDoDoubleClick_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDoDoubleClick_Handle, sender.Handle); } } [Export("sendAction")] public virtual bool SendAction() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendActionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendActionHandle); } [Export("titleFrameOfColumn:")] public virtual CGRect TitleFrameOfColumn(long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selTitleFrameOfColumn_Handle, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selTitleFrameOfColumn_Handle, column); } return retval; } [Export("drawTitleOfColumn:inRect:")] public virtual void DrawTitle(long column, CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_CGRect(base.Handle, selDrawTitleOfColumnInRect_Handle, column, aRect); } else { Messaging.void_objc_msgSendSuper_Int64_CGRect(base.SuperHandle, selDrawTitleOfColumnInRect_Handle, column, aRect); } } [Export("frameOfColumn:")] public virtual CGRect ColumnFrame(long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selFrameOfColumn_Handle, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selFrameOfColumn_Handle, column); } return retval; } [Export("frameOfInsideOfColumn:")] public virtual CGRect ColumnInsideFrame(long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selFrameOfInsideOfColumn_Handle, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selFrameOfInsideOfColumn_Handle, column); } return retval; } [Export("frameOfRow:inColumn:")] public virtual CGRect RowFrame(long row, long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64_Int64(out retval, base.Handle, selFrameOfRowInColumn_Handle, row, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64_Int64(out retval, base.SuperHandle, selFrameOfRowInColumn_Handle, row, column); } return retval; } [Export("getRow:column:forPoint:")] public virtual bool GetRowColumnForPoint(out long row, out long column, CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_out_Int64_out_Int64_CGPoint(base.Handle, selGetRowColumnForPoint_Handle, out row, out column, point); } return Messaging.bool_objc_msgSendSuper_out_Int64_out_Int64_CGPoint(base.SuperHandle, selGetRowColumnForPoint_Handle, out row, out column, point); } [Export("columnWidthForColumnContentWidth:")] public virtual double ColumnWidthForColumnContentWidth(double columnContentWidth) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double(base.Handle, selColumnWidthForColumnContentWidth_Handle, columnContentWidth); } return Messaging.Double_objc_msgSendSuper_Double(base.SuperHandle, selColumnWidthForColumnContentWidth_Handle, columnContentWidth); } [Export("columnContentWidthForColumnWidth:")] public virtual double ColumnContentWidthForColumnWidth(double columnWidth) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double(base.Handle, selColumnContentWidthForColumnWidth_Handle, columnWidth); } return Messaging.Double_objc_msgSendSuper_Double(base.SuperHandle, selColumnContentWidthForColumnWidth_Handle, columnWidth); } [Export("setColumnResizingType:")] public virtual void SetColumnResizingType(NSBrowserColumnResizingType columnResizingType) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetColumnResizingType_Handle, (ulong)columnResizingType); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetColumnResizingType_Handle, (ulong)columnResizingType); } } [Export("setWidth:ofColumn:")] public virtual void SetColumnWidth(double columnWidth, long columnIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Int64(base.Handle, selSetWidthOfColumn_Handle, columnWidth, columnIndex); } else { Messaging.void_objc_msgSendSuper_Double_Int64(base.SuperHandle, selSetWidthOfColumn_Handle, columnWidth, columnIndex); } } [Export("widthOfColumn:")] public virtual double GetColumnWidth(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selWidthOfColumn_Handle, column); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selWidthOfColumn_Handle, column); } [Export("noteHeightOfRowsWithIndexesChanged:inColumn:")] public virtual void NoteHeightOfRows(NSIndexSet indexSet, long columnIndex) { NSApplication.EnsureUIThread(); if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selNoteHeightOfRowsWithIndexesChangedInColumn_Handle, indexSet.Handle, columnIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selNoteHeightOfRowsWithIndexesChangedInColumn_Handle, indexSet.Handle, columnIndex); } } [Export("removeSavedColumnsWithAutosaveName:")] public static void RemoveSavedColumnsWithAutosaveName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); Messaging.void_objc_msgSend_IntPtr(class_ptr, selRemoveSavedColumnsWithAutosaveName_Handle, arg); NSString.ReleaseNative(arg); } [Export("canDragRowsWithIndexes:inColumn:withEvent:")] public virtual bool CanDragRowsWithIndexes(NSIndexSet rowIndexes, long column, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (rowIndexes == null) { throw new ArgumentNullException("rowIndexes"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_Int64_IntPtr(base.Handle, selCanDragRowsWithIndexesInColumnWithEvent_Handle, rowIndexes.Handle, column, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_Int64_IntPtr(base.SuperHandle, selCanDragRowsWithIndexesInColumnWithEvent_Handle, rowIndexes.Handle, column, theEvent.Handle); } [Export("setDraggingSourceOperationMask:forLocal:")] public virtual void SetDraggingSourceOperationMask(NSDragOperation mask, bool isLocal) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_bool(base.Handle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)mask, isLocal); } else { Messaging.void_objc_msgSendSuper_UInt64_bool(base.SuperHandle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)mask, isLocal); } } [Export("editItemAtIndexPath:withEvent:select:")] public virtual void EditItemAtIndexPath(NSIndexPath indexPath, NSEvent theEvent, bool select) { NSApplication.EnsureUIThread(); if (indexPath == null) { throw new ArgumentNullException("indexPath"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selEditItemAtIndexPathWithEventSelect_Handle, indexPath.Handle, theEvent.Handle, select); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selEditItemAtIndexPathWithEventSelect_Handle, indexPath.Handle, theEvent.Handle, select); } } [Export("setCellClass:")] public virtual void SetCellClass(Class factoryId) { NSApplication.EnsureUIThread(); if (factoryId == null) { throw new ArgumentNullException("factoryId"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCellClass_Handle, factoryId.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCellClass_Handle, factoryId.Handle); } } [Export("path")] protected virtual string GetPath() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathHandle)); } [Export("setPath:")] protected virtual bool SetPath(string path) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SelectionIndexPath_var = null; __mt_SelectionIndexPaths_var = null; __mt_BackgroundColor_var = null; __mt_CellPrototype_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBrowserCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBrowserCell", true)] public class NSBrowserCell : NSCell { private static readonly IntPtr selBranchImageHandle = Selector.GetHandle("branchImage"); private static readonly IntPtr selHighlightedBranchImageHandle = Selector.GetHandle("highlightedBranchImage"); private static readonly IntPtr selIsLeafHandle = Selector.GetHandle("isLeaf"); private static readonly IntPtr selSetLeaf_Handle = Selector.GetHandle("setLeaf:"); private static readonly IntPtr selIsLoadedHandle = Selector.GetHandle("isLoaded"); private static readonly IntPtr selSetLoaded_Handle = Selector.GetHandle("setLoaded:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selAlternateImageHandle = Selector.GetHandle("alternateImage"); private static readonly IntPtr selSetAlternateImage_Handle = Selector.GetHandle("setAlternateImage:"); private static readonly IntPtr selHighlightColorInView_Handle = Selector.GetHandle("highlightColorInView:"); private static readonly IntPtr selResetHandle = Selector.GetHandle("reset"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBrowserCell"); private static object __mt_BranchImage_var_static; private static object __mt_HighlightedBranchImage_var_static; private object __mt_Image_var; private object __mt_AlternateImage_var; public override IntPtr ClassHandle => class_ptr; public static NSImage BranchImage { [Export("branchImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_BranchImage_var_static = (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selBranchImageHandle))); } } public static NSImage HighlightedBranchImage { [Export("highlightedBranchImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_HighlightedBranchImage_var_static = (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selHighlightedBranchImageHandle))); } } public virtual bool Leaf { [Export("isLeaf")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLeafHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLeafHandle); } [Export("setLeaf:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLeaf_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLeaf_Handle, value); } } } public virtual bool Loaded { [Export("isLoaded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLoadedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLoadedHandle); } [Export("setLoaded:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLoaded_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLoaded_Handle, value); } } } public new virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual NSImage AlternateImage { [Export("alternateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_AlternateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateImageHandle))))); } [Export("setAlternateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateImage_Handle, value.Handle); } __mt_AlternateImage_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBrowserCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBrowserCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowserCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowserCell(IntPtr handle) : base(handle) { } [Export("highlightColorInView:")] public virtual NSColor HighlightColorInView(NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selHighlightColorInView_Handle, controlView.Handle)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selHighlightColorInView_Handle, controlView.Handle)); } [Export("reset")] public virtual void Reset() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetHandle); } } [Export("set")] public virtual void Set() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; __mt_AlternateImage_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBrowserColumnResizingType.cs ================================================ namespace AppKit; public enum NSBrowserColumnResizingType : ulong { None, Auto, User } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBrowserDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSBrowserDelegate", true)] [Model] public class NSBrowserDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBrowserDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBrowserDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowserDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBrowserDelegate(IntPtr handle) : base(handle) { } [Export("browser:numberOfRowsInColumn:")] public virtual long RowsInColumn(NSBrowser sender, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:createRowsForColumn:inMatrix:")] public virtual void CreateRowsForColumn(NSBrowser sender, long column, NSMatrix matrix) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:numberOfChildrenOfItem:")] public virtual long CountChildren(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:child:ofItem:")] public virtual NSObject GetChild(NSBrowser browser, long index, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:isLeafItem:")] public virtual bool IsLeafItem(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:objectValueForItem:")] public virtual NSObject ObjectValueForItem(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:heightOfRow:inColumn:")] public virtual double RowHeight(NSBrowser browser, long row, long columnIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("rootItemForBrowser:")] public virtual NSObject RootItemForBrowser(NSBrowser browser) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:setObjectValue:forItem:")] public virtual void SetObjectValue(NSBrowser browser, NSObject obj, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:shouldEditItem:")] public virtual bool ShouldEditItem(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:willDisplayCell:atRow:column:")] public virtual void WillDisplayCell(NSBrowser sender, NSObject cell, long row, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:titleOfColumn:")] public virtual string ColumnTitle(NSBrowser sender, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:selectCellWithString:inColumn:")] public virtual bool SelectCellWithString(NSBrowser sender, string title, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:selectRow:inColumn:")] public virtual bool SelectRowInColumn(NSBrowser sender, long row, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:isColumnValid:")] public virtual bool IsColumnValid(NSBrowser sender, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browserWillScroll:")] public virtual void WillScroll(NSBrowser sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browserDidScroll:")] public virtual void DidScroll(NSBrowser sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:shouldSizeColumn:forUserResize:toWidth:")] public virtual double ShouldSizeColumn(NSBrowser browser, long columnIndex, bool userResize, double suggestedWidth) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:sizeToFitWidthOfColumn:")] public virtual double SizeToFitWidth(NSBrowser browser, long columnIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browserColumnConfigurationDidChange:")] public virtual void ColumnConfigurationDidChange(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:shouldShowCellExpansionForRow:column:")] public virtual bool ShouldShowCellExpansion(NSBrowser browser, long row, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:writeRowsWithIndexes:inColumn:toPasteboard:")] public virtual bool WriteRowsWithIndexesToPasteboard(NSBrowser browser, NSIndexSet rowIndexes, long column, NSPasteboard pasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:inColumn:")] public virtual string[] PromisedFilesDroppedAtDestination(NSBrowser browser, NSUrl dropDestination, NSIndexSet rowIndexes, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:canDragRowsWithIndexes:inColumn:withEvent:")] public virtual bool CanDragRowsWithIndexes(NSBrowser browser, NSIndexSet rowIndexes, long column, NSEvent theEvent) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:validateDrop:proposedRow:column:dropOperation:")] public virtual NSDragOperation ValidateDrop(NSBrowser browser, NSDraggingInfo info, ref long row, ref long column, NSBrowserDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:acceptDrop:atRow:column:dropOperation:")] public virtual bool AcceptDrop(NSBrowser browser, NSDraggingInfo info, long row, long column, NSBrowserDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:typeSelectStringForRow:inColumn:")] public virtual string TypeSelectString(NSBrowser browser, long row, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:shouldTypeSelectForEvent:withCurrentSearchString:")] public virtual bool ShouldTypeSelectForEvent(NSBrowser browser, NSEvent theEvent, string currentSearchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:")] public virtual long NextTypeSelectMatch(NSBrowser browser, long startRow, long endRow, long column, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:previewViewControllerForLeafItem:")] public virtual NSViewController PreviewViewControllerForLeafItem(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:headerViewControllerForItem:")] public virtual NSViewController HeaderViewControllerForItem(NSBrowser browser, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:didChangeLastColumn:toColumn:")] public virtual void DidChangeLastColumn(NSBrowser browser, long oldLastColumn, long toColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("browser:selectionIndexesForProposedSelection:inColumn:")] public virtual NSIndexSet SelectionIndexesForProposedSelection(NSBrowser browser, NSIndexSet proposedSelectionIndexes, long inColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSBrowserDropOperation.cs ================================================ namespace AppKit; public enum NSBrowserDropOperation : ulong { On, Above } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSButton.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSButton", true)] public class NSButton : NSControl { private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selAlternateTitleHandle = Selector.GetHandle("alternateTitle"); private static readonly IntPtr selSetAlternateTitle_Handle = Selector.GetHandle("setAlternateTitle:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selAlternateImageHandle = Selector.GetHandle("alternateImage"); private static readonly IntPtr selSetAlternateImage_Handle = Selector.GetHandle("setAlternateImage:"); private static readonly IntPtr selImagePositionHandle = Selector.GetHandle("imagePosition"); private static readonly IntPtr selSetImagePosition_Handle = Selector.GetHandle("setImagePosition:"); private static readonly IntPtr selStateHandle = Selector.GetHandle("state"); private static readonly IntPtr selSetState_Handle = Selector.GetHandle("setState:"); private static readonly IntPtr selIsBorderedHandle = Selector.GetHandle("isBordered"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selIsTransparentHandle = Selector.GetHandle("isTransparent"); private static readonly IntPtr selSetTransparent_Handle = Selector.GetHandle("setTransparent:"); private static readonly IntPtr selKeyEquivalentHandle = Selector.GetHandle("keyEquivalent"); private static readonly IntPtr selSetKeyEquivalent_Handle = Selector.GetHandle("setKeyEquivalent:"); private static readonly IntPtr selKeyEquivalentModifierMaskHandle = Selector.GetHandle("keyEquivalentModifierMask"); private static readonly IntPtr selSetKeyEquivalentModifierMask_Handle = Selector.GetHandle("setKeyEquivalentModifierMask:"); private static readonly IntPtr selAttributedTitleHandle = Selector.GetHandle("attributedTitle"); private static readonly IntPtr selSetAttributedTitle_Handle = Selector.GetHandle("setAttributedTitle:"); private static readonly IntPtr selAttributedAlternateTitleHandle = Selector.GetHandle("attributedAlternateTitle"); private static readonly IntPtr selSetAttributedAlternateTitle_Handle = Selector.GetHandle("setAttributedAlternateTitle:"); private static readonly IntPtr selBezelStyleHandle = Selector.GetHandle("bezelStyle"); private static readonly IntPtr selSetBezelStyle_Handle = Selector.GetHandle("setBezelStyle:"); private static readonly IntPtr selAllowsMixedStateHandle = Selector.GetHandle("allowsMixedState"); private static readonly IntPtr selSetAllowsMixedState_Handle = Selector.GetHandle("setAllowsMixedState:"); private static readonly IntPtr selSoundHandle = Selector.GetHandle("sound"); private static readonly IntPtr selSetSound_Handle = Selector.GetHandle("setSound:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSetButtonType_Handle = Selector.GetHandle("setButtonType:"); private static readonly IntPtr selSetPeriodicDelayInterval_Handle = Selector.GetHandle("setPeriodicDelay:interval:"); private static readonly IntPtr selGetPeriodicDelayInterval_Handle = Selector.GetHandle("getPeriodicDelay:interval:"); private static readonly IntPtr selHighlight_Handle = Selector.GetHandle("highlight:"); private static readonly IntPtr selPerformKeyEquivalent_Handle = Selector.GetHandle("performKeyEquivalent:"); private static readonly IntPtr selSetTitleWithMnemonic_Handle = Selector.GetHandle("setTitleWithMnemonic:"); private static readonly IntPtr selSetNextStateHandle = Selector.GetHandle("setNextState"); private static readonly IntPtr selShowsBorderOnlyWhileMouseInsideHandle = Selector.GetHandle("showsBorderOnlyWhileMouseInside"); private static readonly IntPtr class_ptr = Class.GetHandle("NSButton"); private object __mt_Image_var; private object __mt_AlternateImage_var; private object __mt_AttributedTitle_var; private object __mt_AttributedAlternateTitle_var; private object __mt_Sound_var; public new NSButtonCell Cell { get { return (NSButtonCell)base.Cell; } set { base.Cell = value; } } public override IntPtr ClassHandle => class_ptr; public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string AlternateTitle { [Export("alternateTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateTitleHandle)); } [Export("setAlternateTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Image_var = value; } } public virtual NSImage AlternateImage { [Export("alternateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_AlternateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateImageHandle))))); } [Export("setAlternateImage:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateImage_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateImage_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AlternateImage_var = value; } } public virtual NSCellImagePosition ImagePosition { [Export("imagePosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellImagePosition)Messaging.UInt64_objc_msgSend(base.Handle, selImagePositionHandle); } return (NSCellImagePosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImagePositionHandle); } [Export("setImagePosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImagePosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImagePosition_Handle, (ulong)value); } } } public virtual NSCellStateValue State { [Export("state")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellStateValue)Messaging.Int64_objc_msgSend(base.Handle, selStateHandle); } return (NSCellStateValue)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStateHandle); } [Export("setState:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetState_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetState_Handle, (long)value); } } } public virtual bool Bordered { [Export("isBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBorderedHandle); } [Export("setBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, value); } } } public virtual bool Transparent { [Export("isTransparent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTransparentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTransparentHandle); } [Export("setTransparent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTransparent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTransparent_Handle, value); } } } public virtual string KeyEquivalent { [Export("keyEquivalent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyEquivalentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentHandle)); } [Export("setKeyEquivalent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyEquivalent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyEquivalent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSEventModifierMask KeyEquivalentModifierMask { [Export("keyEquivalentModifierMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(base.Handle, selKeyEquivalentModifierMaskHandle); } return (NSEventModifierMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentModifierMaskHandle); } [Export("setKeyEquivalentModifierMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } } } public virtual NSAttributedString AttributedTitle { [Export("attributedTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedTitleHandle))))); } [Export("setAttributedTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedTitle_Handle, value.Handle); } __mt_AttributedTitle_var = value; } } public virtual NSAttributedString AttributedAlternateTitle { [Export("attributedAlternateTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedAlternateTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedAlternateTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedAlternateTitleHandle))))); } [Export("setAttributedAlternateTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedAlternateTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedAlternateTitle_Handle, value.Handle); } __mt_AttributedAlternateTitle_var = value; } } public virtual NSBezelStyle BezelStyle { [Export("bezelStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezelStyle)Messaging.UInt64_objc_msgSend(base.Handle, selBezelStyleHandle); } return (NSBezelStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBezelStyleHandle); } [Export("setBezelStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetBezelStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetBezelStyle_Handle, (ulong)value); } } } public virtual bool AllowsMixedState { [Export("allowsMixedState")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMixedStateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMixedStateHandle); } [Export("setAllowsMixedState:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMixedState_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMixedState_Handle, value); } } } public virtual NSSound Sound { [Export("sound")] get { NSApplication.EnsureUIThread(); return (NSSound)(__mt_Sound_var = ((!IsDirectBinding) ? ((NSSound)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSoundHandle))) : ((NSSound)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSoundHandle))))); } [Export("setSound:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSound_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSound_Handle, value.Handle); } __mt_Sound_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSButton() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSButton(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSButton(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSButton(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSButton(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("setButtonType:")] public virtual void SetButtonType(NSButtonType aType) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetButtonType_Handle, (ulong)aType); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetButtonType_Handle, (ulong)aType); } } [Export("setPeriodicDelay:interval:")] public virtual void SetPeriodicDelay(float delay, float interval) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_float(base.Handle, selSetPeriodicDelayInterval_Handle, delay, interval); } else { Messaging.void_objc_msgSendSuper_float_float(base.SuperHandle, selSetPeriodicDelayInterval_Handle, delay, interval); } } [Export("getPeriodicDelay:interval:")] public virtual void GetPeriodicDelay(ref float delay, ref float interval) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Single_out_Single(base.Handle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } else { Messaging.void_objc_msgSendSuper_out_Single_out_Single(base.SuperHandle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } } [Export("highlight:")] public virtual void Highlight(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selHighlight_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selHighlight_Handle, flag); } } [Export("performKeyEquivalent:")] public new virtual bool PerformKeyEquivalent(NSEvent key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformKeyEquivalent_Handle, key.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformKeyEquivalent_Handle, key.Handle); } [Export("setTitleWithMnemonic:")] public virtual void SetTitleWithMnemonic(string mnemonic) { NSApplication.EnsureUIThread(); if (mnemonic == null) { throw new ArgumentNullException("mnemonic"); } IntPtr arg = NSString.CreateNative(mnemonic); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } [Export("setNextState")] public virtual void SetNextState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetNextStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetNextStateHandle); } } [Export("showsBorderOnlyWhileMouseInside")] public virtual bool ShowsBorderOnlyWhileMouseInside() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsBorderOnlyWhileMouseInsideHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsBorderOnlyWhileMouseInsideHandle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; __mt_AlternateImage_var = null; __mt_AttributedTitle_var = null; __mt_AttributedAlternateTitle_var = null; __mt_Sound_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSButtonCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSButtonCell", true)] public class NSButtonCell : NSActionCell { private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selAlternateTitleHandle = Selector.GetHandle("alternateTitle"); private static readonly IntPtr selSetAlternateTitle_Handle = Selector.GetHandle("setAlternateTitle:"); private static readonly IntPtr selAlternateImageHandle = Selector.GetHandle("alternateImage"); private static readonly IntPtr selSetAlternateImage_Handle = Selector.GetHandle("setAlternateImage:"); private static readonly IntPtr selImagePositionHandle = Selector.GetHandle("imagePosition"); private static readonly IntPtr selSetImagePosition_Handle = Selector.GetHandle("setImagePosition:"); private static readonly IntPtr selImageScalingHandle = Selector.GetHandle("imageScaling"); private static readonly IntPtr selSetImageScaling_Handle = Selector.GetHandle("setImageScaling:"); private static readonly IntPtr selHighlightsByHandle = Selector.GetHandle("highlightsBy"); private static readonly IntPtr selSetHighlightsBy_Handle = Selector.GetHandle("setHighlightsBy:"); private static readonly IntPtr selShowsStateByHandle = Selector.GetHandle("showsStateBy"); private static readonly IntPtr selSetShowsStateBy_Handle = Selector.GetHandle("setShowsStateBy:"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selIsTransparentHandle = Selector.GetHandle("isTransparent"); private static readonly IntPtr selSetTransparent_Handle = Selector.GetHandle("setTransparent:"); private static readonly IntPtr selKeyEquivalentHandle = Selector.GetHandle("keyEquivalent"); private static readonly IntPtr selSetKeyEquivalent_Handle = Selector.GetHandle("setKeyEquivalent:"); private static readonly IntPtr selKeyEquivalentModifierMaskHandle = Selector.GetHandle("keyEquivalentModifierMask"); private static readonly IntPtr selSetKeyEquivalentModifierMask_Handle = Selector.GetHandle("setKeyEquivalentModifierMask:"); private static readonly IntPtr selKeyEquivalentFontHandle = Selector.GetHandle("keyEquivalentFont"); private static readonly IntPtr selSetKeyEquivalentFont_Handle = Selector.GetHandle("setKeyEquivalentFont:"); private static readonly IntPtr selAlternateMnemonicLocationHandle = Selector.GetHandle("alternateMnemonicLocation"); private static readonly IntPtr selSetAlternateMnemonicLocation_Handle = Selector.GetHandle("setAlternateMnemonicLocation:"); private static readonly IntPtr selAlternateMnemonicHandle = Selector.GetHandle("alternateMnemonic"); private static readonly IntPtr selSetAlternateTitleWithMnemonic_Handle = Selector.GetHandle("setAlternateTitleWithMnemonic:"); private static readonly IntPtr selImageDimsWhenDisabledHandle = Selector.GetHandle("imageDimsWhenDisabled"); private static readonly IntPtr selSetImageDimsWhenDisabled_Handle = Selector.GetHandle("setImageDimsWhenDisabled:"); private static readonly IntPtr selShowsBorderOnlyWhileMouseInsideHandle = Selector.GetHandle("showsBorderOnlyWhileMouseInside"); private static readonly IntPtr selSetShowsBorderOnlyWhileMouseInside_Handle = Selector.GetHandle("setShowsBorderOnlyWhileMouseInside:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selAttributedTitleHandle = Selector.GetHandle("attributedTitle"); private static readonly IntPtr selSetAttributedTitle_Handle = Selector.GetHandle("setAttributedTitle:"); private static readonly IntPtr selAttributedAlternateTitleHandle = Selector.GetHandle("attributedAlternateTitle"); private static readonly IntPtr selSetAttributedAlternateTitle_Handle = Selector.GetHandle("setAttributedAlternateTitle:"); private static readonly IntPtr selBezelStyleHandle = Selector.GetHandle("bezelStyle"); private static readonly IntPtr selSetBezelStyle_Handle = Selector.GetHandle("setBezelStyle:"); private static readonly IntPtr selSoundHandle = Selector.GetHandle("sound"); private static readonly IntPtr selSetSound_Handle = Selector.GetHandle("setSound:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSetButtonType_Handle = Selector.GetHandle("setButtonType:"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selSetPeriodicDelayInterval_Handle = Selector.GetHandle("setPeriodicDelay:interval:"); private static readonly IntPtr selGetPeriodicDelayInterval_Handle = Selector.GetHandle("getPeriodicDelay:interval:"); private static readonly IntPtr selSetKeyEquivalentFontSize_Handle = Selector.GetHandle("setKeyEquivalentFont:size:"); private static readonly IntPtr selPerformClick_Handle = Selector.GetHandle("performClick:"); private static readonly IntPtr selDrawImageWithFrameInView_Handle = Selector.GetHandle("drawImage:withFrame:inView:"); private static readonly IntPtr selDrawTitleWithFrameInView_Handle = Selector.GetHandle("drawTitle:withFrame:inView:"); private static readonly IntPtr selDrawBezelWithFrameInView_Handle = Selector.GetHandle("drawBezelWithFrame:inView:"); private static readonly IntPtr selSetGradientType_Handle = Selector.GetHandle("setGradientType:"); private static readonly IntPtr selMouseEntered_Handle = Selector.GetHandle("mouseEntered:"); private static readonly IntPtr selMouseExited_Handle = Selector.GetHandle("mouseExited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSButtonCell"); private object __mt_AlternateImage_var; private object __mt_KeyEquivalentFont_var; private object __mt_BackgroundColor_var; private object __mt_AttributedTitle_var; private object __mt_AttributedAlternateTitle_var; private object __mt_Sound_var; public override IntPtr ClassHandle => class_ptr; public new virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string AlternateTitle { [Export("alternateTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateTitleHandle)); } [Export("setAlternateTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSImage AlternateImage { [Export("alternateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_AlternateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateImageHandle))))); } [Export("setAlternateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateImage_Handle, value.Handle); } __mt_AlternateImage_var = value; } } public virtual NSCellImagePosition ImagePosition { [Export("imagePosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellImagePosition)Messaging.UInt64_objc_msgSend(base.Handle, selImagePositionHandle); } return (NSCellImagePosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImagePositionHandle); } [Export("setImagePosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImagePosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImagePosition_Handle, (ulong)value); } } } public virtual NSImageScale ImageScale { [Export("imageScaling")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScale)Messaging.UInt64_objc_msgSend(base.Handle, selImageScalingHandle); } return (NSImageScale)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageScalingHandle); } [Export("setImageScaling:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageScaling_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageScaling_Handle, (ulong)value); } } } public virtual long HighlightsBy { [Export("highlightsBy")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selHighlightsByHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHighlightsByHandle); } [Export("setHighlightsBy:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetHighlightsBy_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetHighlightsBy_Handle, value); } } } public virtual long ShowsStateBy { [Export("showsStateBy")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selShowsStateByHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selShowsStateByHandle); } [Export("setShowsStateBy:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetShowsStateBy_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetShowsStateBy_Handle, value); } } } public new virtual bool IsOpaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } } public virtual bool Transparent { [Export("isTransparent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTransparentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTransparentHandle); } [Export("setTransparent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTransparent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTransparent_Handle, value); } } } public new virtual string KeyEquivalent { [Export("keyEquivalent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyEquivalentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentHandle)); } [Export("setKeyEquivalent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyEquivalent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyEquivalent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSEventModifierMask KeyEquivalentModifierMask { [Export("keyEquivalentModifierMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(base.Handle, selKeyEquivalentModifierMaskHandle); } return (NSEventModifierMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentModifierMaskHandle); } [Export("setKeyEquivalentModifierMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } } } public virtual NSFont KeyEquivalentFont { [Export("keyEquivalentFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_KeyEquivalentFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyEquivalentFontHandle))))); } [Export("setKeyEquivalentFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyEquivalentFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyEquivalentFont_Handle, value.Handle); } __mt_KeyEquivalentFont_var = value; } } public virtual int AlternateMnemonicLocation { [Export("alternateMnemonicLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selAlternateMnemonicLocationHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selAlternateMnemonicLocationHandle); } [Export("setAlternateMnemonicLocation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetAlternateMnemonicLocation_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetAlternateMnemonicLocation_Handle, value); } } } public virtual string AlternateMnemonic { [Export("alternateMnemonic")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateMnemonicHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateMnemonicHandle)); } [Export("setAlternateTitleWithMnemonic:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ImageDimsWhenDisabled { [Export("imageDimsWhenDisabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selImageDimsWhenDisabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selImageDimsWhenDisabledHandle); } [Export("setImageDimsWhenDisabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetImageDimsWhenDisabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetImageDimsWhenDisabled_Handle, value); } } } public virtual bool ShowsBorderOnlyWhileMouseInside { [Export("showsBorderOnlyWhileMouseInside")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsBorderOnlyWhileMouseInsideHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsBorderOnlyWhileMouseInsideHandle); } [Export("setShowsBorderOnlyWhileMouseInside:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsBorderOnlyWhileMouseInside_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsBorderOnlyWhileMouseInside_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSAttributedString AttributedTitle { [Export("attributedTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedTitleHandle))))); } [Export("setAttributedTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedTitle_Handle, value.Handle); } __mt_AttributedTitle_var = value; } } public virtual NSAttributedString AttributedAlternateTitle { [Export("attributedAlternateTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedAlternateTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedAlternateTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedAlternateTitleHandle))))); } [Export("setAttributedAlternateTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedAlternateTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedAlternateTitle_Handle, value.Handle); } __mt_AttributedAlternateTitle_var = value; } } public virtual NSBezelStyle BezelStyle { [Export("bezelStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBezelStyle)Messaging.UInt64_objc_msgSend(base.Handle, selBezelStyleHandle); } return (NSBezelStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBezelStyleHandle); } [Export("setBezelStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetBezelStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetBezelStyle_Handle, (ulong)value); } } } public virtual NSSound Sound { [Export("sound")] get { NSApplication.EnsureUIThread(); return (NSSound)(__mt_Sound_var = ((!IsDirectBinding) ? ((NSSound)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSoundHandle))) : ((NSSound)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSoundHandle))))); } [Export("setSound:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSound_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSound_Handle, value.Handle); } __mt_Sound_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSButtonCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSButtonCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSButtonCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSButtonCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSButtonCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSButtonCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("setShowsStateBy:")] public virtual void SetShowsStateBy(long aType) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetShowsStateBy_Handle, aType); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetShowsStateBy_Handle, aType); } } [Export("setButtonType:")] public virtual void SetButtonType(NSButtonType aType) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetButtonType_Handle, (ulong)aType); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetButtonType_Handle, (ulong)aType); } } [Export("setFont:")] public virtual void SetFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, fontObj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, fontObj.Handle); } } [Export("setPeriodicDelay:interval:")] public virtual void SetPeriodicDelay(float delay, float interval) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_float(base.Handle, selSetPeriodicDelayInterval_Handle, delay, interval); } else { Messaging.void_objc_msgSendSuper_float_float(base.SuperHandle, selSetPeriodicDelayInterval_Handle, delay, interval); } } [Export("getPeriodicDelay:interval:")] public virtual void GetPeriodicDelay(out float delay, out float interval) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Single_out_Single(base.Handle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } else { Messaging.void_objc_msgSendSuper_out_Single_out_Single(base.SuperHandle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } } [Export("setKeyEquivalentFont:size:")] public virtual void SetKeyEquivalentFont(string fontName, double fontSize) { NSApplication.EnsureUIThread(); if (fontName == null) { throw new ArgumentNullException("fontName"); } IntPtr arg = NSString.CreateNative(fontName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Double(base.Handle, selSetKeyEquivalentFontSize_Handle, arg, fontSize); } else { Messaging.void_objc_msgSendSuper_IntPtr_Double(base.SuperHandle, selSetKeyEquivalentFontSize_Handle, arg, fontSize); } NSString.ReleaseNative(arg); } [Export("performClick:")] public new virtual void PerformClick(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformClick_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformClick_Handle, sender.Handle); } } [Export("drawImage:withFrame:inView:")] public virtual void DrawImage(NSImage image, CGRect frame, NSView controlView) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect_IntPtr(base.Handle, selDrawImageWithFrameInView_Handle, image.Handle, frame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect_IntPtr(base.SuperHandle, selDrawImageWithFrameInView_Handle, image.Handle, frame, controlView.Handle); } } [Export("drawTitle:withFrame:inView:")] public virtual CGRect DrawTitle(NSAttributedString title, CGRect frame, NSView controlView) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_CGRect_IntPtr(out retval, base.Handle, selDrawTitleWithFrameInView_Handle, title.Handle, frame, controlView.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_IntPtr(out retval, base.SuperHandle, selDrawTitleWithFrameInView_Handle, title.Handle, frame, controlView.Handle); } return retval; } [Export("drawBezelWithFrame:inView:")] public virtual void DrawBezelWithFrame(CGRect frame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawBezelWithFrameInView_Handle, frame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawBezelWithFrameInView_Handle, frame, controlView.Handle); } } [Export("setGradientType:")] public virtual void SetGradientType(NSGradientType type) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetGradientType_Handle, (ulong)type); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetGradientType_Handle, (ulong)type); } } [Export("mouseEntered:")] public virtual void MouseEntered(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseEntered_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseEntered_Handle, theEvent.Handle); } } [Export("mouseExited:")] public virtual void MouseExited(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseExited_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseExited_Handle, theEvent.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AlternateImage_var = null; __mt_KeyEquivalentFont_var = null; __mt_BackgroundColor_var = null; __mt_AttributedTitle_var = null; __mt_AttributedAlternateTitle_var = null; __mt_Sound_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSButtonType.cs ================================================ namespace AppKit; public enum NSButtonType : ulong { MomentaryLightButton, PushOnPushOff, Toggle, Switch, Radio, MomentaryChange, OnOff, MomentaryPushIn } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCIImageRep.cs ================================================ using System; using System.ComponentModel; using CoreImage; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCIImageRep", true)] public class NSCIImageRep : NSImageRep { private static readonly IntPtr selCIImageHandle = Selector.GetHandle("CIImage"); private static readonly IntPtr selImageRepWithCIImage_Handle = Selector.GetHandle("imageRepWithCIImage:"); private static readonly IntPtr selInitWithCIImage_Handle = Selector.GetHandle("initWithCIImage:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCIImageRep"); private object __mt_CIImage_var; public override IntPtr ClassHandle => class_ptr; public virtual CIImage CIImage { [Export("CIImage")] get { NSApplication.EnsureUIThread(); return (CIImage)(__mt_CIImage_var = ((!IsDirectBinding) ? ((CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCIImageHandle))) : ((CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCIImageHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCIImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCIImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCIImageRep(IntPtr handle) : base(handle) { } [Export("imageRepWithCIImage:")] public static NSCIImageRep FromCIImage(CIImage image) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } return (NSCIImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithCIImage_Handle, image.Handle)); } [Export("initWithCIImage:")] public NSCIImageRep(CIImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCIImage_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCIImage_Handle, image.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CIImage_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCachedImageRep.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCachedImageRep", true)] public class NSCachedImageRep : NSImageRep { private static readonly IntPtr selWindowHandle = Selector.GetHandle("window"); private static readonly IntPtr selRectHandle = Selector.GetHandle("rect"); private static readonly IntPtr selInitWithIdentifier_Handle = Selector.GetHandle("initWithIdentifier:"); private static readonly IntPtr selInitWithSizeDepthSeparateAlpha_Handle = Selector.GetHandle("initWithSize:depth:separate:alpha:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCachedImageRep"); private object __mt_Window_var; public override IntPtr ClassHandle => class_ptr; [Obsolete("Deprecated in OSX 10.6", false)] public virtual NSWindow Window { [Export("window")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_Window_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowHandle))))); } } [Obsolete("Deprecated in OSX 10.6", false)] public virtual CGRect Rectangle { [Export("rect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRectHandle); } return retval; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCachedImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCachedImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCachedImageRep(IntPtr handle) : base(handle) { } [Export("initWithIdentifier:")] [Obsolete("Deprecated in OSX 10.6", false)] public NSCachedImageRep(NSWindow win, CGRect rect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (win == null) { throw new ArgumentNullException("win"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_CGRect(base.Handle, selInitWithIdentifier_Handle, win.Handle, rect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGRect(base.SuperHandle, selInitWithIdentifier_Handle, win.Handle, rect); } } [Export("initWithSize:depth:separate:alpha:")] [Obsolete("Deprecated in OSX 10.6", false)] public NSCachedImageRep(CGSize size, NSWindowDepth depth, bool separate, bool alpha) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGSize_Int64_bool_bool(base.Handle, selInitWithSizeDepthSeparateAlpha_Handle, size, (long)depth, separate, alpha); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGSize_Int64_bool_bool(base.SuperHandle, selInitWithSizeDepthSeparateAlpha_Handle, size, (long)depth, separate, alpha); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Window_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCell.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCell", true)] public class NSCell : NSObject { public static class Notifications { public static NSObject ObserveControlTintChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ControlTintChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selPrefersTrackingUntilMouseUpHandle = Selector.GetHandle("prefersTrackingUntilMouseUp"); private static readonly IntPtr selControlViewHandle = Selector.GetHandle("controlView"); private static readonly IntPtr selSetControlView_Handle = Selector.GetHandle("setControlView:"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selSetType_Handle = Selector.GetHandle("setType:"); private static readonly IntPtr selStateHandle = Selector.GetHandle("state"); private static readonly IntPtr selSetState_Handle = Selector.GetHandle("setState:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selSetTag_Handle = Selector.GetHandle("setTag:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selIsContinuousHandle = Selector.GetHandle("isContinuous"); private static readonly IntPtr selSetContinuous_Handle = Selector.GetHandle("setContinuous:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selIsSelectableHandle = Selector.GetHandle("isSelectable"); private static readonly IntPtr selSetSelectable_Handle = Selector.GetHandle("setSelectable:"); private static readonly IntPtr selIsBorderedHandle = Selector.GetHandle("isBordered"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selIsBezeledHandle = Selector.GetHandle("isBezeled"); private static readonly IntPtr selSetBezeled_Handle = Selector.GetHandle("setBezeled:"); private static readonly IntPtr selIsScrollableHandle = Selector.GetHandle("isScrollable"); private static readonly IntPtr selSetScrollable_Handle = Selector.GetHandle("setScrollable:"); private static readonly IntPtr selIsHighlightedHandle = Selector.GetHandle("isHighlighted"); private static readonly IntPtr selSetHighlighted_Handle = Selector.GetHandle("setHighlighted:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selWrapsHandle = Selector.GetHandle("wraps"); private static readonly IntPtr selSetWraps_Handle = Selector.GetHandle("setWraps:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selKeyEquivalentHandle = Selector.GetHandle("keyEquivalent"); private static readonly IntPtr selFormatterHandle = Selector.GetHandle("formatter"); private static readonly IntPtr selSetFormatter_Handle = Selector.GetHandle("setFormatter:"); private static readonly IntPtr selObjectValueHandle = Selector.GetHandle("objectValue"); private static readonly IntPtr selSetObjectValue_Handle = Selector.GetHandle("setObjectValue:"); private static readonly IntPtr selHasValidObjectValueHandle = Selector.GetHandle("hasValidObjectValue"); private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selSetStringValue_Handle = Selector.GetHandle("setStringValue:"); private static readonly IntPtr selIntValueHandle = Selector.GetHandle("intValue"); private static readonly IntPtr selSetIntValue_Handle = Selector.GetHandle("setIntValue:"); private static readonly IntPtr selFloatValueHandle = Selector.GetHandle("floatValue"); private static readonly IntPtr selSetFloatValue_Handle = Selector.GetHandle("setFloatValue:"); private static readonly IntPtr selDoubleValueHandle = Selector.GetHandle("doubleValue"); private static readonly IntPtr selSetDoubleValue_Handle = Selector.GetHandle("setDoubleValue:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selControlTintHandle = Selector.GetHandle("controlTint"); private static readonly IntPtr selSetControlTint_Handle = Selector.GetHandle("setControlTint:"); private static readonly IntPtr selControlSizeHandle = Selector.GetHandle("controlSize"); private static readonly IntPtr selSetControlSize_Handle = Selector.GetHandle("setControlSize:"); private static readonly IntPtr selRepresentedObjectHandle = Selector.GetHandle("representedObject"); private static readonly IntPtr selSetRepresentedObject_Handle = Selector.GetHandle("setRepresentedObject:"); private static readonly IntPtr selCellSizeHandle = Selector.GetHandle("cellSize"); private static readonly IntPtr selMouseDownFlagsHandle = Selector.GetHandle("mouseDownFlags"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selDefaultMenuHandle = Selector.GetHandle("defaultMenu"); private static readonly IntPtr selBaseWritingDirectionHandle = Selector.GetHandle("baseWritingDirection"); private static readonly IntPtr selSetBaseWritingDirection_Handle = Selector.GetHandle("setBaseWritingDirection:"); private static readonly IntPtr selLineBreakModeHandle = Selector.GetHandle("lineBreakMode"); private static readonly IntPtr selSetLineBreakMode_Handle = Selector.GetHandle("setLineBreakMode:"); private static readonly IntPtr selAllowsUndoHandle = Selector.GetHandle("allowsUndo"); private static readonly IntPtr selSetAllowsUndo_Handle = Selector.GetHandle("setAllowsUndo:"); private static readonly IntPtr selIntegerValueHandle = Selector.GetHandle("integerValue"); private static readonly IntPtr selSetIntegerValue_Handle = Selector.GetHandle("setIntegerValue:"); private static readonly IntPtr selTruncatesLastVisibleLineHandle = Selector.GetHandle("truncatesLastVisibleLine"); private static readonly IntPtr selSetTruncatesLastVisibleLine_Handle = Selector.GetHandle("setTruncatesLastVisibleLine:"); private static readonly IntPtr selUserInterfaceLayoutDirectionHandle = Selector.GetHandle("userInterfaceLayoutDirection"); private static readonly IntPtr selSetUserInterfaceLayoutDirection_Handle = Selector.GetHandle("setUserInterfaceLayoutDirection:"); private static readonly IntPtr selUsesSingleLineModeHandle = Selector.GetHandle("usesSingleLineMode"); private static readonly IntPtr selSetUsesSingleLineMode_Handle = Selector.GetHandle("setUsesSingleLineMode:"); private static readonly IntPtr selShowsFirstResponderHandle = Selector.GetHandle("showsFirstResponder"); private static readonly IntPtr selSetShowsFirstResponder_Handle = Selector.GetHandle("setShowsFirstResponder:"); private static readonly IntPtr selMnemonicLocationHandle = Selector.GetHandle("mnemonicLocation"); private static readonly IntPtr selSetMnemonicLocation_Handle = Selector.GetHandle("setMnemonicLocation:"); private static readonly IntPtr selMnemonicHandle = Selector.GetHandle("mnemonic"); private static readonly IntPtr selFocusRingTypeHandle = Selector.GetHandle("focusRingType"); private static readonly IntPtr selSetFocusRingType_Handle = Selector.GetHandle("setFocusRingType:"); private static readonly IntPtr selDefaultFocusRingTypeHandle = Selector.GetHandle("defaultFocusRingType"); private static readonly IntPtr selWantsNotificationForMarkedTextHandle = Selector.GetHandle("wantsNotificationForMarkedText"); private static readonly IntPtr selSetWantsNotificationForMarkedText_Handle = Selector.GetHandle("setWantsNotificationForMarkedText:"); private static readonly IntPtr selAttributedStringValueHandle = Selector.GetHandle("attributedStringValue"); private static readonly IntPtr selSetAttributedStringValue_Handle = Selector.GetHandle("setAttributedStringValue:"); private static readonly IntPtr selAllowsEditingTextAttributesHandle = Selector.GetHandle("allowsEditingTextAttributes"); private static readonly IntPtr selSetAllowsEditingTextAttributes_Handle = Selector.GetHandle("setAllowsEditingTextAttributes:"); private static readonly IntPtr selImportsGraphicsHandle = Selector.GetHandle("importsGraphics"); private static readonly IntPtr selSetImportsGraphics_Handle = Selector.GetHandle("setImportsGraphics:"); private static readonly IntPtr selAllowsMixedStateHandle = Selector.GetHandle("allowsMixedState"); private static readonly IntPtr selSetAllowsMixedState_Handle = Selector.GetHandle("setAllowsMixedState:"); private static readonly IntPtr selNextStateHandle = Selector.GetHandle("nextState"); private static readonly IntPtr selBackgroundStyleHandle = Selector.GetHandle("backgroundStyle"); private static readonly IntPtr selSetBackgroundStyle_Handle = Selector.GetHandle("setBackgroundStyle:"); private static readonly IntPtr selInteriorBackgroundStyleHandle = Selector.GetHandle("interiorBackgroundStyle"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSendActionOn_Handle = Selector.GetHandle("sendActionOn:"); private static readonly IntPtr selIsEntryAcceptable_Handle = Selector.GetHandle("isEntryAcceptable:"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr selTakeIntValueFrom_Handle = Selector.GetHandle("takeIntValueFrom:"); private static readonly IntPtr selTakeFloatValueFrom_Handle = Selector.GetHandle("takeFloatValueFrom:"); private static readonly IntPtr selTakeDoubleValueFrom_Handle = Selector.GetHandle("takeDoubleValueFrom:"); private static readonly IntPtr selTakeStringValueFrom_Handle = Selector.GetHandle("takeStringValueFrom:"); private static readonly IntPtr selTakeObjectValueFrom_Handle = Selector.GetHandle("takeObjectValueFrom:"); private static readonly IntPtr selCellAttribute_Handle = Selector.GetHandle("cellAttribute:"); private static readonly IntPtr selSetCellAttributeTo_Handle = Selector.GetHandle("setCellAttribute:to:"); private static readonly IntPtr selImageRectForBounds_Handle = Selector.GetHandle("imageRectForBounds:"); private static readonly IntPtr selTitleRectForBounds_Handle = Selector.GetHandle("titleRectForBounds:"); private static readonly IntPtr selDrawingRectForBounds_Handle = Selector.GetHandle("drawingRectForBounds:"); private static readonly IntPtr selCellSizeForBounds_Handle = Selector.GetHandle("cellSizeForBounds:"); private static readonly IntPtr selHighlightColorWithFrameInView_Handle = Selector.GetHandle("highlightColorWithFrame:inView:"); private static readonly IntPtr selCalcDrawInfo_Handle = Selector.GetHandle("calcDrawInfo:"); private static readonly IntPtr selSetUpFieldEditorAttributes_Handle = Selector.GetHandle("setUpFieldEditorAttributes:"); private static readonly IntPtr selDrawInteriorWithFrameInView_Handle = Selector.GetHandle("drawInteriorWithFrame:inView:"); private static readonly IntPtr selDrawWithFrameInView_Handle = Selector.GetHandle("drawWithFrame:inView:"); private static readonly IntPtr selHighlightWithFrameInView_Handle = Selector.GetHandle("highlight:withFrame:inView:"); private static readonly IntPtr selGetPeriodicDelayInterval_Handle = Selector.GetHandle("getPeriodicDelay:interval:"); private static readonly IntPtr selStartTrackingAtInView_Handle = Selector.GetHandle("startTrackingAt:inView:"); private static readonly IntPtr selContinueTrackingAtInView_Handle = Selector.GetHandle("continueTracking:at:inView:"); private static readonly IntPtr selStopTrackingAtInViewMouseIsUp_Handle = Selector.GetHandle("stopTracking:at:inView:mouseIsUp:"); private static readonly IntPtr selTrackMouseInRectOfViewUntilMouseUp_Handle = Selector.GetHandle("trackMouse:inRect:ofView:untilMouseUp:"); private static readonly IntPtr selEditWithFrameInViewEditorDelegateEvent_Handle = Selector.GetHandle("editWithFrame:inView:editor:delegate:event:"); private static readonly IntPtr selSelectWithFrameInViewEditorDelegateStartLength_Handle = Selector.GetHandle("selectWithFrame:inView:editor:delegate:start:length:"); private static readonly IntPtr selEndEditing_Handle = Selector.GetHandle("endEditing:"); private static readonly IntPtr selResetCursorRectInView_Handle = Selector.GetHandle("resetCursorRect:inView:"); private static readonly IntPtr selMenuForEventInRectOfView_Handle = Selector.GetHandle("menuForEvent:inRect:ofView:"); private static readonly IntPtr selSetSendsActionOnEndEditing_Handle = Selector.GetHandle("setSendsActionOnEndEditing:"); private static readonly IntPtr selSendsActionOnEndEditingHandle = Selector.GetHandle("sendsActionOnEndEditing"); private static readonly IntPtr selTakeIntegerValueFrom_Handle = Selector.GetHandle("takeIntegerValueFrom:"); private static readonly IntPtr selFieldEditorForView_Handle = Selector.GetHandle("fieldEditorForView:"); private static readonly IntPtr selRefusesFirstResponderHandle = Selector.GetHandle("refusesFirstResponder"); private static readonly IntPtr selAcceptsFirstResponderHandle = Selector.GetHandle("acceptsFirstResponder"); private static readonly IntPtr selSetTitleWithMnemonic_Handle = Selector.GetHandle("setTitleWithMnemonic:"); private static readonly IntPtr selPerformClick_Handle = Selector.GetHandle("performClick:"); private static readonly IntPtr selSetNextStateHandle = Selector.GetHandle("setNextState"); private static readonly IntPtr selHitTestForEventInRectOfView_Handle = Selector.GetHandle("hitTestForEvent:inRect:ofView:"); private static readonly IntPtr selExpansionFrameWithFrameInView_Handle = Selector.GetHandle("expansionFrameWithFrame:inView:"); private static readonly IntPtr selDrawWithExpansionFrameInView_Handle = Selector.GetHandle("drawWithExpansionFrame:inView:"); private static readonly IntPtr selDraggingImageComponentsWithFrameInView_Handle = Selector.GetHandle("draggingImageComponentsWithFrame:inView:"); private static readonly IntPtr selDrawFocusRingMaskWithFrameInView_Handle = Selector.GetHandle("drawFocusRingMaskWithFrame:inView:"); private static readonly IntPtr selFocusRingMaskBoundsForFrameInView_Handle = Selector.GetHandle("focusRingMaskBoundsForFrame:inView:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCell"); private object __mt_ControlView_var; private object __mt_Target_var; private object __mt_Font_var; private object __mt_Formatter_var; private object __mt_ObjectValue_var; private object __mt_Image_var; private object __mt_RepresentedObject_var; private object __mt_Menu_var; private static object __mt_DefaultMenu_var_static; private object __mt_AttributedStringValue_var; private static NSString _ControlTintChangedNotification; public override IntPtr ClassHandle => class_ptr; public static bool PrefersTrackingUntilMouseUp { [Export("prefersTrackingUntilMouseUp")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selPrefersTrackingUntilMouseUpHandle); } } public virtual NSView ControlView { [Export("controlView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_ControlView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selControlViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selControlViewHandle))))); } [Export("setControlView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetControlView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetControlView_Handle, value.Handle); } __mt_ControlView_var = value; } } public virtual NSCellType CellType { [Export("type")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellType)Messaging.UInt64_objc_msgSend(base.Handle, selTypeHandle); } return (NSCellType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTypeHandle); } [Export("setType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetType_Handle, (ulong)value); } } } public virtual NSCellStateValue State { [Export("state")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellStateValue)Messaging.Int64_objc_msgSend(base.Handle, selStateHandle); } return (NSCellStateValue)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStateHandle); } [Export("setState:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetState_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetState_Handle, (long)value); } } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } [Export("setTag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTag_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTag_Handle, value); } } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool IsOpaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual bool IsContinuous { [Export("isContinuous")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContinuousHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContinuousHandle); } [Export("setContinuous:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetContinuous_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetContinuous_Handle, value); } } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool Selectable { [Export("isSelectable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectableHandle); } [Export("setSelectable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectable_Handle, value); } } } public virtual bool Bordered { [Export("isBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBorderedHandle); } [Export("setBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, value); } } } public virtual bool Bezeled { [Export("isBezeled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBezeledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBezeledHandle); } [Export("setBezeled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBezeled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBezeled_Handle, value); } } } public virtual bool Scrollable { [Export("isScrollable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsScrollableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsScrollableHandle); } [Export("setScrollable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetScrollable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetScrollable_Handle, value); } } } public virtual bool Highlighted { [Export("isHighlighted")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHighlightedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHighlightedHandle); } [Export("setHighlighted:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHighlighted_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHighlighted_Handle, value); } } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } public virtual bool Wraps { [Export("wraps")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWrapsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWrapsHandle); } [Export("setWraps:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWraps_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWraps_Handle, value); } } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual string KeyEquivalent { [Export("keyEquivalent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyEquivalentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentHandle)); } } public virtual NSFormatter Formatter { [Export("formatter")] get { NSApplication.EnsureUIThread(); return (NSFormatter)(__mt_Formatter_var = ((!IsDirectBinding) ? ((NSFormatter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatterHandle))) : ((NSFormatter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatterHandle))))); } [Export("setFormatter:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFormatter_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFormatter_Handle, value.Handle); } __mt_Formatter_var = value; } } public virtual NSObject ObjectValue { [Export("objectValue")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ObjectValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueHandle)))); } [Export("setObjectValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectValue_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectValue_Handle, value?.Handle ?? IntPtr.Zero); } __mt_ObjectValue_var = value; } } public virtual bool HasValidObjectValue { [Export("hasValidObjectValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasValidObjectValueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasValidObjectValueHandle); } } public virtual string StringValue { [Export("stringValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } [Export("setStringValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStringValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int IntValue { [Export("intValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIntValueHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIntValueHandle); } [Export("setIntValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetIntValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetIntValue_Handle, value); } } } public virtual float FloatValue { [Export("floatValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selFloatValueHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selFloatValueHandle); } [Export("setFloatValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetFloatValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetFloatValue_Handle, value); } } } public virtual double DoubleValue { [Export("doubleValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDoubleValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDoubleValueHandle); } [Export("setDoubleValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDoubleValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDoubleValue_Handle, value); } } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual NSControlTint ControlTint { [Export("controlTint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlTint)Messaging.UInt64_objc_msgSend(base.Handle, selControlTintHandle); } return (NSControlTint)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlTintHandle); } [Export("setControlTint:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlTint_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlTint_Handle, (ulong)value); } } } public virtual NSControlSize ControlSize { [Export("controlSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlSize)Messaging.UInt64_objc_msgSend(base.Handle, selControlSizeHandle); } return (NSControlSize)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlSizeHandle); } [Export("setControlSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlSize_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlSize_Handle, (ulong)value); } } } public virtual NSObject RepresentedObject { [Export("representedObject")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_RepresentedObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedObjectHandle)))); } [Export("setRepresentedObject:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedObject_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedObject_Handle, value.Handle); } __mt_RepresentedObject_var = value; } } public virtual CGSize CellSize { [Export("cellSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selCellSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selCellSizeHandle); } } public virtual long MouseDownFlags { [Export("mouseDownFlags")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMouseDownFlagsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMouseDownFlagsHandle); } } public virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public static NSMenu DefaultMenu { [Export("defaultMenu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_DefaultMenu_var_static = (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultMenuHandle))); } } public virtual NSWritingDirection BaseWritingDirection { [Export("baseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBaseWritingDirectionHandle); } [Export("setBaseWritingDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBaseWritingDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBaseWritingDirection_Handle, (long)value); } } } public virtual NSLineBreakMode LineBreakMode { [Export("lineBreakMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLineBreakMode)Messaging.UInt64_objc_msgSend(base.Handle, selLineBreakModeHandle); } return (NSLineBreakMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLineBreakModeHandle); } [Export("setLineBreakMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLineBreakMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLineBreakMode_Handle, (ulong)value); } } } public virtual bool AllowsUndo { [Export("allowsUndo")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsUndoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsUndoHandle); } [Export("setAllowsUndo:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsUndo_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsUndo_Handle, value); } } } public virtual long IntegerValue { [Export("integerValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIntegerValueHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIntegerValueHandle); } [Export("setIntegerValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetIntegerValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetIntegerValue_Handle, value); } } } public virtual bool TruncatesLastVisibleLine { [Export("truncatesLastVisibleLine")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTruncatesLastVisibleLineHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTruncatesLastVisibleLineHandle); } [Export("setTruncatesLastVisibleLine:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTruncatesLastVisibleLine_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTruncatesLastVisibleLine_Handle, value); } } } public virtual NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { [Export("userInterfaceLayoutDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSUserInterfaceLayoutDirection)Messaging.Int64_objc_msgSend(base.Handle, selUserInterfaceLayoutDirectionHandle); } return (NSUserInterfaceLayoutDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selUserInterfaceLayoutDirectionHandle); } [Export("setUserInterfaceLayoutDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetUserInterfaceLayoutDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetUserInterfaceLayoutDirection_Handle, (long)value); } } } public virtual bool UsesSingleLineMode { [Export("usesSingleLineMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesSingleLineModeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesSingleLineModeHandle); } [Export("setUsesSingleLineMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesSingleLineMode_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesSingleLineMode_Handle, value); } } } public virtual bool ShowsFirstResponder { [Export("showsFirstResponder")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsFirstResponderHandle); } [Export("setShowsFirstResponder:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsFirstResponder_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsFirstResponder_Handle, value); } } } public virtual long MnemonicLocation { [Export("mnemonicLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMnemonicLocationHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMnemonicLocationHandle); } [Export("setMnemonicLocation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMnemonicLocation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMnemonicLocation_Handle, value); } } } public virtual string Mnemonic { [Export("mnemonic")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMnemonicHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMnemonicHandle)); } } public virtual NSFocusRingType FocusRingType { [Export("focusRingType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFocusRingType)Messaging.UInt64_objc_msgSend(base.Handle, selFocusRingTypeHandle); } return (NSFocusRingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFocusRingTypeHandle); } [Export("setFocusRingType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFocusRingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFocusRingType_Handle, (ulong)value); } } } public static NSFocusRingType DefaultFocusRingType { [Export("defaultFocusRingType")] get { NSApplication.EnsureUIThread(); return (NSFocusRingType)Messaging.UInt64_objc_msgSend(class_ptr, selDefaultFocusRingTypeHandle); } } public virtual bool WantsNotificationForMarkedText { [Export("wantsNotificationForMarkedText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsNotificationForMarkedTextHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsNotificationForMarkedTextHandle); } set { throw new NotImplementedException(); } } public virtual NSAttributedString AttributedStringValue { [Export("attributedStringValue")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedStringValue_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedStringValueHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedStringValueHandle))))); } [Export("setAttributedStringValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedStringValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedStringValue_Handle, value.Handle); } __mt_AttributedStringValue_var = value; } } public virtual bool AllowsEditingTextAttributes { [Export("allowsEditingTextAttributes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEditingTextAttributesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEditingTextAttributesHandle); } [Export("setAllowsEditingTextAttributes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEditingTextAttributes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEditingTextAttributes_Handle, value); } } } public virtual bool ImportsGraphics { [Export("importsGraphics")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selImportsGraphicsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selImportsGraphicsHandle); } [Export("setImportsGraphics:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetImportsGraphics_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetImportsGraphics_Handle, value); } } } public virtual bool AllowsMixedState { [Export("allowsMixedState")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMixedStateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMixedStateHandle); } [Export("setAllowsMixedState:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMixedState_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMixedState_Handle, value); } } } public virtual long NextState { [Export("nextState")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNextStateHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNextStateHandle); } } public virtual NSBackgroundStyle BackgroundStyle { [Export("backgroundStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBackgroundStyle)Messaging.Int64_objc_msgSend(base.Handle, selBackgroundStyleHandle); } return (NSBackgroundStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBackgroundStyleHandle); } [Export("setBackgroundStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBackgroundStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBackgroundStyle_Handle, (long)value); } } } public virtual NSBackgroundStyle InteriorBackgroundStyle { [Export("interiorBackgroundStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBackgroundStyle)Messaging.Int64_objc_msgSend(base.Handle, selInteriorBackgroundStyleHandle); } return (NSBackgroundStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selInteriorBackgroundStyleHandle); } } public virtual string Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } [Export("setIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("NSControlTintDidChangeNotification", "AppKit")] public static NSString ControlTintChangedNotification { get { if (_ControlTintChangedNotification == null) { _ControlTintChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSControlTintDidChangeNotification"); } return _ControlTintChangedNotification; } } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern void NSDrawThreePartImage(CGRect rect, IntPtr startCap, IntPtr centerFill, IntPtr endCap, bool vertial, ulong op, double alphaFraction, bool flipped); public void DrawThreePartImage(CGRect frame, NSImage startCap, NSImage centerFill, NSImage endCap, bool vertical, NSCompositingOperation op, double alphaFraction, bool flipped) { NSDrawThreePartImage(frame, startCap?.Handle ?? IntPtr.Zero, centerFill?.Handle ?? IntPtr.Zero, endCap?.Handle ?? IntPtr.Zero, vertical, (ulong)op, alphaFraction, flipped); } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern void NSDrawNinePartImage(CGRect frame, IntPtr topLeftCorner, IntPtr topEdgeFill, IntPtr topRightCorner, IntPtr leftEdgeFill, IntPtr centerFill, IntPtr rightEdgeFill, IntPtr bottomLeftCorner, IntPtr bottomEdgeFill, IntPtr bottomRightCorner, ulong op, double alphaFraction, bool flipped); public void DrawNinePartImage(CGRect frame, NSImage topLeftCorner, NSImage topEdgeFill, NSImage topRightCorner, NSImage leftEdgeFill, NSImage centerFill, NSImage rightEdgeFill, NSImage bottomLeftCorner, NSImage bottomEdgeFill, NSImage bottomRightCorner, NSCompositingOperation op, double alphaFraction, bool flipped) { NSDrawNinePartImage(frame, topLeftCorner?.Handle ?? IntPtr.Zero, topEdgeFill?.Handle ?? IntPtr.Zero, topRightCorner?.Handle ?? IntPtr.Zero, leftEdgeFill?.Handle ?? IntPtr.Zero, centerFill?.Handle ?? IntPtr.Zero, rightEdgeFill?.Handle ?? IntPtr.Zero, bottomLeftCorner?.Handle ?? IntPtr.Zero, bottomEdgeFill?.Handle ?? IntPtr.Zero, bottomRightCorner?.Handle ?? IntPtr.Zero, (ulong)op, alphaFraction, flipped); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("sendActionOn:")] public virtual long SendActionOn(NSEventType mask) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_UInt64(base.Handle, selSendActionOn_Handle, (ulong)mask); } return Messaging.Int64_objc_msgSendSuper_UInt64(base.SuperHandle, selSendActionOn_Handle, (ulong)mask); } [Export("isEntryAcceptable:")] public virtual bool IsEntryAcceptable(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEntryAcceptable_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEntryAcceptable_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("compare:")] public virtual NSComparisonResult Compare(NSObject otherCell) { NSApplication.EnsureUIThread(); if (otherCell == null) { throw new ArgumentNullException("otherCell"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, otherCell.Handle); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, otherCell.Handle); } [Export("takeIntValueFrom:")] public virtual void TakeIntValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeIntValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeIntValueFrom_Handle, sender.Handle); } } [Export("takeFloatValueFrom:")] public virtual void TakeFloatValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeFloatValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeFloatValueFrom_Handle, sender.Handle); } } [Export("takeDoubleValueFrom:")] public virtual void TakeDoubleValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeDoubleValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeDoubleValueFrom_Handle, sender.Handle); } } [Export("takeStringValueFrom:")] public virtual void TakeStringValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeStringValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeStringValueFrom_Handle, sender.Handle); } } [Export("takeObjectValueFrom:")] public virtual void TakeObjectValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeObjectValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeObjectValueFrom_Handle, sender.Handle); } } [Export("cellAttribute:")] public virtual long CellAttribute(NSCellAttribute aParameter) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_UInt64(base.Handle, selCellAttribute_Handle, (ulong)aParameter); } return Messaging.Int64_objc_msgSendSuper_UInt64(base.SuperHandle, selCellAttribute_Handle, (ulong)aParameter); } [Export("setCellAttribute:to:")] public virtual void SetCellAttribute(NSCellAttribute aParameter, long value) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Int64(base.Handle, selSetCellAttributeTo_Handle, (ulong)aParameter, value); } else { Messaging.void_objc_msgSendSuper_UInt64_Int64(base.SuperHandle, selSetCellAttributeTo_Handle, (ulong)aParameter, value); } } [Export("imageRectForBounds:")] public virtual CGRect ImageRectForBounds(CGRect theRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selImageRectForBounds_Handle, theRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selImageRectForBounds_Handle, theRect); } return retval; } [Export("titleRectForBounds:")] public virtual CGRect TitleRectForBounds(CGRect theRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selTitleRectForBounds_Handle, theRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selTitleRectForBounds_Handle, theRect); } return retval; } [Export("drawingRectForBounds:")] public virtual CGRect DrawingRectForBounds(CGRect theRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selDrawingRectForBounds_Handle, theRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selDrawingRectForBounds_Handle, theRect); } return retval; } [Export("cellSizeForBounds:")] public virtual CGSize CellSizeForBounds(CGRect bounds) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGRect(base.Handle, selCellSizeForBounds_Handle, bounds); } return Messaging.CGSize_objc_msgSendSuper_CGRect(base.SuperHandle, selCellSizeForBounds_Handle, bounds); } [Export("highlightColorWithFrame:inView:")] public virtual NSColor HighlightColor(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(base.Handle, selHighlightColorWithFrameInView_Handle, cellFrame, controlView.Handle)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selHighlightColorWithFrameInView_Handle, cellFrame, controlView.Handle)); } [Export("calcDrawInfo:")] public virtual void CalcDrawInfo(CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selCalcDrawInfo_Handle, aRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selCalcDrawInfo_Handle, aRect); } } [Export("setUpFieldEditorAttributes:")] public virtual NSText SetUpFieldEditorAttributes(NSText textObj) { NSApplication.EnsureUIThread(); if (textObj == null) { throw new ArgumentNullException("textObj"); } if (IsDirectBinding) { return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetUpFieldEditorAttributes_Handle, textObj.Handle)); } return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUpFieldEditorAttributes_Handle, textObj.Handle)); } [Export("drawInteriorWithFrame:inView:")] public virtual void DrawInteriorWithFrame(CGRect cellFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawInteriorWithFrameInView_Handle, cellFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawInteriorWithFrameInView_Handle, cellFrame, inView.Handle); } } [Export("drawWithFrame:inView:")] public virtual void DrawWithFrame(CGRect cellFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawWithFrameInView_Handle, cellFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawWithFrameInView_Handle, cellFrame, inView.Handle); } } [Export("highlight:withFrame:inView:")] public virtual void Highlight(bool highlight, CGRect withFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_CGRect_IntPtr(base.Handle, selHighlightWithFrameInView_Handle, highlight, withFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_bool_CGRect_IntPtr(base.SuperHandle, selHighlightWithFrameInView_Handle, highlight, withFrame, inView.Handle); } } [Export("getPeriodicDelay:interval:")] public virtual void GetPeriodicDelay(ref double delay, ref double interval) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_out_Double(base.Handle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } else { Messaging.void_objc_msgSendSuper_out_Double_out_Double(base.SuperHandle, selGetPeriodicDelayInterval_Handle, out delay, out interval); } } [Export("startTrackingAt:inView:")] public virtual bool StartTracking(CGPoint startPoint, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint_IntPtr(base.Handle, selStartTrackingAtInView_Handle, startPoint, inView.Handle); } return Messaging.bool_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selStartTrackingAtInView_Handle, startPoint, inView.Handle); } [Export("continueTracking:at:inView:")] public virtual bool ContinueTracking(CGPoint lastPoint, CGPoint currentPoint, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint_CGPoint_IntPtr(base.Handle, selContinueTrackingAtInView_Handle, lastPoint, currentPoint, inView.Handle); } return Messaging.bool_objc_msgSendSuper_CGPoint_CGPoint_IntPtr(base.SuperHandle, selContinueTrackingAtInView_Handle, lastPoint, currentPoint, inView.Handle); } [Export("stopTracking:at:inView:mouseIsUp:")] public virtual void StopTracking(CGPoint lastPoint, CGPoint stopPoint, NSView inView, bool mouseIsUp) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGPoint_IntPtr_bool(base.Handle, selStopTrackingAtInViewMouseIsUp_Handle, lastPoint, stopPoint, inView.Handle, mouseIsUp); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGPoint_IntPtr_bool(base.SuperHandle, selStopTrackingAtInViewMouseIsUp_Handle, lastPoint, stopPoint, inView.Handle, mouseIsUp); } } [Export("trackMouse:inRect:ofView:untilMouseUp:")] public virtual bool TrackMouse(NSEvent theEvent, CGRect cellFrame, NSView controlView, bool untilMouseUp) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGRect_IntPtr_bool(base.Handle, selTrackMouseInRectOfViewUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, untilMouseUp); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_bool(base.SuperHandle, selTrackMouseInRectOfViewUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, untilMouseUp); } [Export("editWithFrame:inView:editor:delegate:event:")] public virtual void EditWithFrame(CGRect aRect, NSView inView, NSText editor, NSObject delegateObject, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (editor == null) { throw new ArgumentNullException("editor"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selEditWithFrameInViewEditorDelegateEvent_Handle, aRect, inView.Handle, editor.Handle, delegateObject.Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEditWithFrameInViewEditorDelegateEvent_Handle, aRect, inView.Handle, editor.Handle, delegateObject.Handle, theEvent.Handle); } } [Export("selectWithFrame:inView:editor:delegate:start:length:")] public virtual void SelectWithFrame(CGRect aRect, NSView inView, NSText editor, NSObject delegateObject, long selStart, long selLength) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (editor == null) { throw new ArgumentNullException("editor"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_IntPtr_IntPtr_Int64_Int64(base.Handle, selSelectWithFrameInViewEditorDelegateStartLength_Handle, aRect, inView.Handle, editor.Handle, delegateObject.Handle, selStart, selLength); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_IntPtr_IntPtr_Int64_Int64(base.SuperHandle, selSelectWithFrameInViewEditorDelegateStartLength_Handle, aRect, inView.Handle, editor.Handle, delegateObject.Handle, selStart, selLength); } } [Export("endEditing:")] public virtual void EndEditing(NSText textObj) { NSApplication.EnsureUIThread(); if (textObj == null) { throw new ArgumentNullException("textObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEndEditing_Handle, textObj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEndEditing_Handle, textObj.Handle); } } [Export("resetCursorRect:inView:")] public virtual void ResetCursorRect(CGRect cellFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selResetCursorRectInView_Handle, cellFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selResetCursorRectInView_Handle, cellFrame, inView.Handle); } } [Export("menuForEvent:inRect:ofView:")] public virtual NSMenu MenuForEvent(NSEvent theEvent, CGRect cellFrame, NSView view) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr(base.Handle, selMenuForEventInRectOfView_Handle, theEvent.Handle, cellFrame, view.Handle)); } return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGRect_IntPtr(base.SuperHandle, selMenuForEventInRectOfView_Handle, theEvent.Handle, cellFrame, view.Handle)); } [Export("setSendsActionOnEndEditing:")] public virtual void SetSendsActionOnEndEditing(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSendsActionOnEndEditing_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSendsActionOnEndEditing_Handle, flag); } } [Export("sendsActionOnEndEditing")] public virtual bool SendsActionOnEndEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendsActionOnEndEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendsActionOnEndEditingHandle); } [Export("takeIntegerValueFrom:")] public virtual void TakeIntegerValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeIntegerValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeIntegerValueFrom_Handle, sender.Handle); } } [Export("fieldEditorForView:")] public virtual NSTextView FieldEditorForView(NSView aControlView) { NSApplication.EnsureUIThread(); if (aControlView == null) { throw new ArgumentNullException("aControlView"); } if (IsDirectBinding) { return (NSTextView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFieldEditorForView_Handle, aControlView.Handle)); } return (NSTextView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFieldEditorForView_Handle, aControlView.Handle)); } [Export("refusesFirstResponder")] public virtual bool RefusesFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRefusesFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRefusesFirstResponderHandle); } [Export("acceptsFirstResponder")] public virtual bool AcceptsFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsFirstResponderHandle); } [Export("setTitleWithMnemonic:")] public virtual void SetTitleWithMnemonic(string stringWithAmpersand) { NSApplication.EnsureUIThread(); if (stringWithAmpersand == null) { throw new ArgumentNullException("stringWithAmpersand"); } IntPtr arg = NSString.CreateNative(stringWithAmpersand); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } [Export("performClick:")] public virtual void PerformClick(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformClick_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformClick_Handle, sender.Handle); } } [Export("setNextState")] public virtual void SetNextState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetNextStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetNextStateHandle); } } [Export("hitTestForEvent:inRect:ofView:")] public virtual NSCellHit HitTest(NSEvent forEvent, CGRect inRect, NSView ofView) { NSApplication.EnsureUIThread(); if (forEvent == null) { throw new ArgumentNullException("forEvent"); } if (ofView == null) { throw new ArgumentNullException("ofView"); } if (IsDirectBinding) { return (NSCellHit)Messaging.UInt64_objc_msgSend_IntPtr_CGRect_IntPtr(base.Handle, selHitTestForEventInRectOfView_Handle, forEvent.Handle, inRect, ofView.Handle); } return (NSCellHit)Messaging.UInt64_objc_msgSendSuper_IntPtr_CGRect_IntPtr(base.SuperHandle, selHitTestForEventInRectOfView_Handle, forEvent.Handle, inRect, ofView.Handle); } [Export("expansionFrameWithFrame:inView:")] public virtual CGRect ExpansionFrame(CGRect withFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selExpansionFrameWithFrameInView_Handle, withFrame, inView.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selExpansionFrameWithFrameInView_Handle, withFrame, inView.Handle); } return retval; } [Export("drawWithExpansionFrame:inView:")] public virtual void DrawWithExpansionFrame(CGRect cellFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawWithExpansionFrameInView_Handle, cellFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawWithExpansionFrameInView_Handle, cellFrame, inView.Handle); } } [Export("draggingImageComponentsWithFrame:inView:")] public virtual NSDraggingImageComponent[] GenerateDraggingImageComponents(CGRect frame, NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(base.Handle, selDraggingImageComponentsWithFrameInView_Handle, frame, view.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDraggingImageComponentsWithFrameInView_Handle, frame, view.Handle)); } [Export("drawFocusRingMaskWithFrame:inView:")] public virtual void DrawFocusRing(CGRect cellFrameMask, NSView inControlView) { NSApplication.EnsureUIThread(); if (inControlView == null) { throw new ArgumentNullException("inControlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawFocusRingMaskWithFrameInView_Handle, cellFrameMask, inControlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawFocusRingMaskWithFrameInView_Handle, cellFrameMask, inControlView.Handle); } } [Export("focusRingMaskBoundsForFrame:inView:")] public virtual CGRect GetFocusRingMaskBounds(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selFocusRingMaskBoundsForFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selFocusRingMaskBoundsForFrameInView_Handle, cellFrame, controlView.Handle); } return retval; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ControlView_var = null; __mt_Target_var = null; __mt_Font_var = null; __mt_Formatter_var = null; __mt_ObjectValue_var = null; __mt_Image_var = null; __mt_RepresentedObject_var = null; __mt_Menu_var = null; __mt_AttributedStringValue_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellAttribute.cs ================================================ namespace AppKit; public enum NSCellAttribute : ulong { CellDisabled, CellState, PushInCell, CellEditable, ChangeGrayCell, CellHighlighted, CellLightsByContents, CellLightsByGray, ChangeBackgroundCell, CellLightsByBackground, CellIsBordered, CellHasOverlappingImage, CellHasImageHorizontal, CellHasImageOnLeftOrBottom, CellChangesContents, CellIsInsetButton, CellAllowsMixedState } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellHit.cs ================================================ using System; namespace AppKit; [Flags] public enum NSCellHit : ulong { None = 0uL, ContentArea = 1uL, EditableTextArea = 2uL, TrackableArae = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellImagePosition.cs ================================================ namespace AppKit; public enum NSCellImagePosition : ulong { NoImage, ImageOnly, ImageLeft, ImageRight, ImageBelow, ImageAbove, ImageOverlaps } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSCellMask : ulong { NoCell = 0uL, ContentsCell = 1uL, PushInCell = 2uL, ChangeGrayCell = 4uL, ChangeBackgroundCell = 8uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellStateValue.cs ================================================ namespace AppKit; public enum NSCellStateValue : long { Mixed = -1L, Off, On } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCellType.cs ================================================ namespace AppKit; public enum NSCellType : ulong { Null, Text, Image } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSClipView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSClipView", true)] public class NSClipView : NSView { private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selDocumentViewHandle = Selector.GetHandle("documentView"); private static readonly IntPtr selSetDocumentView_Handle = Selector.GetHandle("setDocumentView:"); private static readonly IntPtr selDocumentRectHandle = Selector.GetHandle("documentRect"); private static readonly IntPtr selDocumentCursorHandle = Selector.GetHandle("documentCursor"); private static readonly IntPtr selSetDocumentCursor_Handle = Selector.GetHandle("setDocumentCursor:"); private static readonly IntPtr selCopiesOnScrollHandle = Selector.GetHandle("copiesOnScroll"); private static readonly IntPtr selSetCopiesOnScroll_Handle = Selector.GetHandle("setCopiesOnScroll:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selDocumentVisibleRectHandle = Selector.GetHandle("documentVisibleRect"); private static readonly IntPtr selViewFrameChanged_Handle = Selector.GetHandle("viewFrameChanged:"); private static readonly IntPtr selViewBoundsChanged_Handle = Selector.GetHandle("viewBoundsChanged:"); private static readonly IntPtr selAutoscroll_Handle = Selector.GetHandle("autoscroll:"); private static readonly IntPtr selConstrainScrollPoint_Handle = Selector.GetHandle("constrainScrollPoint:"); private static readonly IntPtr selScrollToPoint_Handle = Selector.GetHandle("scrollToPoint:"); private static readonly IntPtr selScrollClipViewToPoint_Handle = Selector.GetHandle("scrollClipView:toPoint:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSClipView"); private object __mt_BackgroundColor_var; private object __mt_DocumentView_var; private object __mt_DocumentCursor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSView DocumentView { [Export("documentView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_DocumentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentViewHandle))))); } [Export("setDocumentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentView_Handle, value.Handle); } __mt_DocumentView_var = value; } } public virtual CGRect DocumentRect { [Export("documentRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selDocumentRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDocumentRectHandle); } return retval; } } public virtual NSCursor DocumentCursor { [Export("documentCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_DocumentCursor_var = ((!IsDirectBinding) ? ((NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentCursorHandle))) : ((NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentCursorHandle))))); } [Export("setDocumentCursor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentCursor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentCursor_Handle, value.Handle); } __mt_DocumentCursor_var = value; } } public virtual bool CopiesOnScroll { [Export("copiesOnScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCopiesOnScrollHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCopiesOnScrollHandle); } [Export("setCopiesOnScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCopiesOnScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCopiesOnScroll_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSClipView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSClipView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSClipView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSClipView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSClipView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("documentVisibleRect")] public virtual CGRect DocumentVisibleRect() { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selDocumentVisibleRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDocumentVisibleRectHandle); } return retval; } [Export("viewFrameChanged:")] public virtual void ViewFrameChanged(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selViewFrameChanged_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selViewFrameChanged_Handle, notification.Handle); } } [Export("viewBoundsChanged:")] public virtual void ViewBoundsChanged(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selViewBoundsChanged_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selViewBoundsChanged_Handle, notification.Handle); } } [Export("autoscroll:")] public new virtual bool Autoscroll(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAutoscroll_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAutoscroll_Handle, theEvent.Handle); } [Export("constrainScrollPoint:")] public virtual CGPoint ConstrainScrollPoint(CGPoint newOrigin) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConstrainScrollPoint_Handle, newOrigin); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConstrainScrollPoint_Handle, newOrigin); } [Export("scrollToPoint:")] public virtual void ScrollToPoint(CGPoint newOrigin) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selScrollToPoint_Handle, newOrigin); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selScrollToPoint_Handle, newOrigin); } } [Export("scrollClipView:toPoint:")] public virtual void ScrollClipView(NSClipView aClipView, CGPoint aPoint) { NSApplication.EnsureUIThread(); if (aClipView == null) { throw new ArgumentNullException("aClipView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selScrollClipViewToPoint_Handle, aClipView.Handle, aPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selScrollClipViewToPoint_Handle, aClipView.Handle, aPoint); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_DocumentView_var = null; __mt_DocumentCursor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCoderEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSCoderEventArgs : EventArgs { public NSCoder Encoder { get; set; } public NSCoderEventArgs(NSCoder encoder) { Encoder = encoder; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCollectionView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCollectionView", true)] public class NSCollectionView : NSView { private static readonly IntPtr selIsFirstResponderHandle = Selector.GetHandle("isFirstResponder"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selContentHandle = Selector.GetHandle("content"); private static readonly IntPtr selSetContent_Handle = Selector.GetHandle("setContent:"); private static readonly IntPtr selIsSelectableHandle = Selector.GetHandle("isSelectable"); private static readonly IntPtr selSetSelectable_Handle = Selector.GetHandle("setSelectable:"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selSelectionIndexesHandle = Selector.GetHandle("selectionIndexes"); private static readonly IntPtr selSetSelectionIndexes_Handle = Selector.GetHandle("setSelectionIndexes:"); private static readonly IntPtr selItemPrototypeHandle = Selector.GetHandle("itemPrototype"); private static readonly IntPtr selSetItemPrototype_Handle = Selector.GetHandle("setItemPrototype:"); private static readonly IntPtr selMaxNumberOfRowsHandle = Selector.GetHandle("maxNumberOfRows"); private static readonly IntPtr selSetMaxNumberOfRows_Handle = Selector.GetHandle("setMaxNumberOfRows:"); private static readonly IntPtr selMaxNumberOfColumnsHandle = Selector.GetHandle("maxNumberOfColumns"); private static readonly IntPtr selSetMaxNumberOfColumns_Handle = Selector.GetHandle("setMaxNumberOfColumns:"); private static readonly IntPtr selMinItemSizeHandle = Selector.GetHandle("minItemSize"); private static readonly IntPtr selSetMinItemSize_Handle = Selector.GetHandle("setMinItemSize:"); private static readonly IntPtr selMaxItemSizeHandle = Selector.GetHandle("maxItemSize"); private static readonly IntPtr selSetMaxItemSize_Handle = Selector.GetHandle("setMaxItemSize:"); private static readonly IntPtr selBackgroundColorsHandle = Selector.GetHandle("backgroundColors"); private static readonly IntPtr selSetBackgroundColors_Handle = Selector.GetHandle("setBackgroundColors:"); private static readonly IntPtr selWantsPeriodicDraggingUpdatesHandle = Selector.GetHandle("wantsPeriodicDraggingUpdates"); private static readonly IntPtr selIgnoreModifierKeysWhileDraggingHandle = Selector.GetHandle("ignoreModifierKeysWhileDragging"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selNewItemForRepresentedObject_Handle = Selector.GetHandle("newItemForRepresentedObject:"); private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr selFrameForItemAtIndex_Handle = Selector.GetHandle("frameForItemAtIndex:"); private static readonly IntPtr selSetDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("setDraggingSourceOperationMask:forLocal:"); private static readonly IntPtr selFrameForItemAtIndexWithNumberOfItems_Handle = Selector.GetHandle("frameForItemAtIndex:withNumberOfItems:"); private static readonly IntPtr selDraggingEntered_Handle = Selector.GetHandle("draggingEntered:"); private static readonly IntPtr selDraggingUpdated_Handle = Selector.GetHandle("draggingUpdated:"); private static readonly IntPtr selDraggingExited_Handle = Selector.GetHandle("draggingExited:"); private static readonly IntPtr selPrepareForDragOperation_Handle = Selector.GetHandle("prepareForDragOperation:"); private static readonly IntPtr selPerformDragOperation_Handle = Selector.GetHandle("performDragOperation:"); private static readonly IntPtr selConcludeDragOperation_Handle = Selector.GetHandle("concludeDragOperation:"); private static readonly IntPtr selDraggingEnded_Handle = Selector.GetHandle("draggingEnded:"); private static readonly IntPtr selDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("draggingSourceOperationMaskForLocal:"); private static readonly IntPtr selNamesOfPromisedFilesDroppedAtDestination_Handle = Selector.GetHandle("namesOfPromisedFilesDroppedAtDestination:"); private static readonly IntPtr selDraggedImageBeganAt_Handle = Selector.GetHandle("draggedImage:beganAt:"); private static readonly IntPtr selDraggedImageEndedAtOperation_Handle = Selector.GetHandle("draggedImage:endedAt:operation:"); private static readonly IntPtr selDraggedImageMovedTo_Handle = Selector.GetHandle("draggedImage:movedTo:"); private static readonly IntPtr selDraggedImageEndedAtDeposited_Handle = Selector.GetHandle("draggedImage:endedAt:deposited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCollectionView"); private object __mt_WeakDelegate_var; private object __mt_Content_var; private object __mt_SelectionIndexes_var; private object __mt_ItemPrototype_var; private object __mt_BackgroundColors_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsFirstResponder { [Export("isFirstResponder")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFirstResponderHandle); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSCollectionViewDelegate Delegate { get { return WeakDelegate as NSCollectionViewDelegate; } set { WeakDelegate = value; } } public virtual NSObject[] Content { [Export("content")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_Content_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selContentHandle)))); } [Export("setContent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContent_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContent_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Content_var = value; } } public virtual bool Selectable { [Export("isSelectable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectableHandle); } [Export("setSelectable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectable_Handle, value); } } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual NSIndexSet SelectionIndexes { [Export("selectionIndexes")] get { NSApplication.EnsureUIThread(); return (NSIndexSet)(__mt_SelectionIndexes_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexesHandle))))); } [Export("setSelectionIndexes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexes_Handle, value.Handle); } __mt_SelectionIndexes_var = value; } } public virtual NSCollectionViewItem ItemPrototype { [Export("itemPrototype")] get { NSApplication.EnsureUIThread(); return (NSCollectionViewItem)(__mt_ItemPrototype_var = ((!IsDirectBinding) ? ((NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemPrototypeHandle))) : ((NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selItemPrototypeHandle))))); } [Export("setItemPrototype:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetItemPrototype_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetItemPrototype_Handle, value.Handle); } __mt_ItemPrototype_var = value; } } public virtual long MaxNumberOfRows { [Export("maxNumberOfRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaxNumberOfRowsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaxNumberOfRowsHandle); } [Export("setMaxNumberOfRows:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaxNumberOfRows_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaxNumberOfRows_Handle, value); } } } public virtual long MaxNumberOfColumns { [Export("maxNumberOfColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaxNumberOfColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaxNumberOfColumnsHandle); } [Export("setMaxNumberOfColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaxNumberOfColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaxNumberOfColumns_Handle, value); } } } public virtual CGSize MinItemSize { [Export("minItemSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinItemSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinItemSizeHandle); } [Export("setMinItemSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMinItemSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMinItemSize_Handle, value); } } } public virtual CGSize MaxItemSize { [Export("maxItemSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaxItemSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaxItemSizeHandle); } [Export("setMaxItemSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaxItemSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaxItemSize_Handle, value); } } } public virtual NSColor[] BackgroundColors { [Export("backgroundColors")] get { NSApplication.EnsureUIThread(); return (NSColor[])(__mt_BackgroundColors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorsHandle)))); } [Export("setBackgroundColors:")] set { NSApplication.EnsureUIThread(); NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColors_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColors_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_BackgroundColors_var = value; } } public new virtual bool WantsPeriodicDraggingUpdates { [Export("wantsPeriodicDraggingUpdates")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsPeriodicDraggingUpdatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsPeriodicDraggingUpdatesHandle); } } public virtual bool IgnoreModifierKeysWhileDragging { [Export("ignoreModifierKeysWhileDragging")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIgnoreModifierKeysWhileDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIgnoreModifierKeysWhileDraggingHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCollectionView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCollectionView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSCollectionView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("newItemForRepresentedObject:")] public virtual NSCollectionViewItem NewItemForRepresentedObject(NSObject obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return (NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNewItemForRepresentedObject_Handle, obj.Handle)); } return (NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNewItemForRepresentedObject_Handle, obj.Handle)); } [Export("itemAtIndex:")] public virtual NSCollectionViewItem ItemAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemAtIndex_Handle, index)); } return (NSCollectionViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemAtIndex_Handle, index)); } [Export("frameForItemAtIndex:")] public virtual CGRect FrameForItemAtIndex(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selFrameForItemAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selFrameForItemAtIndex_Handle, index); } return retval; } [Export("setDraggingSourceOperationMask:forLocal:")] public virtual void SetDraggingSource(NSDragOperation dragOperationMask, bool localDestination) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_bool(base.Handle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)dragOperationMask, localDestination); } else { Messaging.void_objc_msgSendSuper_UInt64_bool(base.SuperHandle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)dragOperationMask, localDestination); } } [Export("frameForItemAtIndex:withNumberOfItems:")] public virtual CGRect FrameForItemAtIndex(long index, long numberOfItems) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64_Int64(out retval, base.Handle, selFrameForItemAtIndexWithNumberOfItems_Handle, index, numberOfItems); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64_Int64(out retval, base.SuperHandle, selFrameForItemAtIndexWithNumberOfItems_Handle, index, numberOfItems); } return retval; } [Export("draggingEntered:")] public new virtual NSDragOperation DraggingEntered(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selDraggingEntered_Handle, sender.Handle); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingEntered_Handle, sender.Handle); } [Export("draggingUpdated:")] public new virtual NSDragOperation DraggingUpdated(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selDraggingUpdated_Handle, sender.Handle); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingUpdated_Handle, sender.Handle); } [Export("draggingExited:")] public new virtual void DraggingExited(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDraggingExited_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingExited_Handle, sender.Handle); } } [Export("prepareForDragOperation:")] public new virtual bool PrepareForDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPrepareForDragOperation_Handle, sender.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrepareForDragOperation_Handle, sender.Handle); } [Export("performDragOperation:")] public new virtual bool PerformDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformDragOperation_Handle, sender.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformDragOperation_Handle, sender.Handle); } [Export("concludeDragOperation:")] public new virtual void ConcludeDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selConcludeDragOperation_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selConcludeDragOperation_Handle, sender.Handle); } } [Export("draggingEnded:")] public new virtual void DraggingEnded(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDraggingEnded_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingEnded_Handle, sender.Handle); } } [Export("draggingSourceOperationMaskForLocal:")] public virtual NSDragOperation DraggingSourceOperationMaskForLocal(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_bool(base.Handle, selDraggingSourceOperationMaskForLocal_Handle, flag); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_bool(base.SuperHandle, selDraggingSourceOperationMaskForLocal_Handle, flag); } [Export("namesOfPromisedFilesDroppedAtDestination:")] public virtual string[] NamesOfPromisedFilesDroppedAtDestination(NSUrl dropDestination) { NSApplication.EnsureUIThread(); if (dropDestination == null) { throw new ArgumentNullException("dropDestination"); } if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } [Export("draggedImage:beganAt:")] public virtual void DraggedImageBeganAt(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:operation:")] public virtual void DraggedImageEndedAtOperation(NSImage image, CGPoint screenPoint, NSDragOperation operation) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_UInt64(base.Handle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_UInt64(base.SuperHandle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } } [Export("draggedImage:movedTo:")] public virtual void DraggedImageMovedTo(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:deposited:")] [Obsolete("On 10.1 and newer, use DraggedImageEndedAtOperation() instead", false)] public virtual void DraggedImageEndedAtDeposited(NSImage image, CGPoint screenPoint, bool deposited) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_bool(base.Handle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_bool(base.SuperHandle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Content_var = null; __mt_SelectionIndexes_var = null; __mt_ItemPrototype_var = null; __mt_BackgroundColors_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCollectionViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCollectionViewDelegate", true)] [Model] public class NSCollectionViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCollectionViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCollectionViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionViewDelegate(IntPtr handle) : base(handle) { } [Export("collectionView:canDragItemsAtIndexes:withEvent:")] public virtual bool CanDragItems(NSCollectionView collectionView, NSIndexSet indexes, NSEvent evt) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("collectionView:writeItemsAtIndexes:toPasteboard:")] public virtual bool WriteItems(NSCollectionView collectionView, NSIndexSet indexes, NSPasteboard toPasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexes:")] public virtual string[] NamesOfPromisedFilesDroppedAtDestination(NSCollectionView collectionView, NSUrl dropUrl, NSIndexSet indexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("collectionView:validateDrop:proposedIndex:dropOperation:")] public virtual NSDragOperation ValidateDrop(NSCollectionView collectionView, NSDraggingInfo draggingInfo, ref long dropIndex, NSCollectionViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("collectionView:acceptDrop:index:dropOperation:")] public virtual bool AcceptDrop(NSCollectionView collectionView, NSDraggingInfo draggingInfo, long index, NSCollectionViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCollectionViewDropOperation.cs ================================================ namespace AppKit; public enum NSCollectionViewDropOperation : long { On, Before } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCollectionViewItem.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCollectionViewItem", true)] public class NSCollectionViewItem : NSViewController { private static readonly IntPtr selCollectionViewHandle = Selector.GetHandle("collectionView"); private static readonly IntPtr selIsSelectedHandle = Selector.GetHandle("isSelected"); private static readonly IntPtr selSetSelected_Handle = Selector.GetHandle("setSelected:"); private static readonly IntPtr selImageViewHandle = Selector.GetHandle("imageView"); private static readonly IntPtr selSetImageView_Handle = Selector.GetHandle("setImageView:"); private static readonly IntPtr selTextFieldHandle = Selector.GetHandle("textField"); private static readonly IntPtr selSetTextField_Handle = Selector.GetHandle("setTextField:"); private static readonly IntPtr selDraggingImageComponentsHandle = Selector.GetHandle("draggingImageComponents"); private static readonly IntPtr selInitWithNibNameBundle_Handle = Selector.GetHandle("initWithNibName:bundle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCollectionViewItem"); private object __mt_CollectionView_var; private object __mt_ImageView_var; private object __mt_TextField_var; private object __mt_DraggingImageComponents_var; public override IntPtr ClassHandle => class_ptr; public virtual NSCollectionView CollectionView { [Export("collectionView")] get { NSApplication.EnsureUIThread(); return (NSCollectionView)(__mt_CollectionView_var = ((!IsDirectBinding) ? ((NSCollectionView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCollectionViewHandle))) : ((NSCollectionView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCollectionViewHandle))))); } } public virtual bool Selected { [Export("isSelected")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectedHandle); } [Export("setSelected:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelected_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelected_Handle, value); } } } public virtual NSImageView ImageView { [Export("imageView")] get { NSApplication.EnsureUIThread(); return (NSImageView)(__mt_ImageView_var = ((!IsDirectBinding) ? ((NSImageView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageViewHandle))) : ((NSImageView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageViewHandle))))); } [Export("setImageView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImageView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImageView_Handle, value.Handle); } __mt_ImageView_var = value; } } public virtual NSTextField TextField { [Export("textField")] get { NSApplication.EnsureUIThread(); return (NSTextField)(__mt_TextField_var = ((!IsDirectBinding) ? ((NSTextField)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextFieldHandle))) : ((NSTextField)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextFieldHandle))))); } [Export("setTextField:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextField_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextField_Handle, value.Handle); } __mt_TextField_var = value; } } public virtual NSDraggingImageComponent[] DraggingImageComponents { [Export("draggingImageComponents")] get { NSApplication.EnsureUIThread(); return (NSDraggingImageComponent[])(__mt_DraggingImageComponents_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingImageComponentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingImageComponentsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCollectionViewItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCollectionViewItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionViewItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCollectionViewItem(IntPtr handle) : base(handle) { } [Export("initWithNibName:bundle:")] public NSCollectionViewItem(string nibNameOrNull, NSBundle nibBundleOrNull) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(nibNameOrNull); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithNibNameBundle_Handle, arg, nibBundleOrNull?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithNibNameBundle_Handle, arg, nibBundleOrNull?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CollectionView_var = null; __mt_ImageView_var = null; __mt_TextField_var = null; __mt_DraggingImageComponents_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColor.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Text; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColor", true)] public class NSColor : NSObject { private static readonly IntPtr selBlackColorHandle = Selector.GetHandle("blackColor"); private static readonly IntPtr selDarkGrayColorHandle = Selector.GetHandle("darkGrayColor"); private static readonly IntPtr selLightGrayColorHandle = Selector.GetHandle("lightGrayColor"); private static readonly IntPtr selWhiteColorHandle = Selector.GetHandle("whiteColor"); private static readonly IntPtr selGrayColorHandle = Selector.GetHandle("grayColor"); private static readonly IntPtr selRedColorHandle = Selector.GetHandle("redColor"); private static readonly IntPtr selGreenColorHandle = Selector.GetHandle("greenColor"); private static readonly IntPtr selBlueColorHandle = Selector.GetHandle("blueColor"); private static readonly IntPtr selCyanColorHandle = Selector.GetHandle("cyanColor"); private static readonly IntPtr selYellowColorHandle = Selector.GetHandle("yellowColor"); private static readonly IntPtr selMagentaColorHandle = Selector.GetHandle("magentaColor"); private static readonly IntPtr selOrangeColorHandle = Selector.GetHandle("orangeColor"); private static readonly IntPtr selPurpleColorHandle = Selector.GetHandle("purpleColor"); private static readonly IntPtr selBrownColorHandle = Selector.GetHandle("brownColor"); private static readonly IntPtr selClearColorHandle = Selector.GetHandle("clearColor"); private static readonly IntPtr selControlShadowColorHandle = Selector.GetHandle("controlShadowColor"); private static readonly IntPtr selControlDarkShadowColorHandle = Selector.GetHandle("controlDarkShadowColor"); private static readonly IntPtr selControlColorHandle = Selector.GetHandle("controlColor"); private static readonly IntPtr selControlHighlightColorHandle = Selector.GetHandle("controlHighlightColor"); private static readonly IntPtr selControlLightHighlightColorHandle = Selector.GetHandle("controlLightHighlightColor"); private static readonly IntPtr selControlTextColorHandle = Selector.GetHandle("controlTextColor"); private static readonly IntPtr selControlBackgroundColorHandle = Selector.GetHandle("controlBackgroundColor"); private static readonly IntPtr selSelectedControlColorHandle = Selector.GetHandle("selectedControlColor"); private static readonly IntPtr selSecondarySelectedControlColorHandle = Selector.GetHandle("secondarySelectedControlColor"); private static readonly IntPtr selSelectedControlTextColorHandle = Selector.GetHandle("selectedControlTextColor"); private static readonly IntPtr selDisabledControlTextColorHandle = Selector.GetHandle("disabledControlTextColor"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selTextBackgroundColorHandle = Selector.GetHandle("textBackgroundColor"); private static readonly IntPtr selSelectedTextColorHandle = Selector.GetHandle("selectedTextColor"); private static readonly IntPtr selSelectedTextBackgroundColorHandle = Selector.GetHandle("selectedTextBackgroundColor"); private static readonly IntPtr selGridColorHandle = Selector.GetHandle("gridColor"); private static readonly IntPtr selKeyboardFocusIndicatorColorHandle = Selector.GetHandle("keyboardFocusIndicatorColor"); private static readonly IntPtr selWindowBackgroundColorHandle = Selector.GetHandle("windowBackgroundColor"); private static readonly IntPtr selScrollBarColorHandle = Selector.GetHandle("scrollBarColor"); private static readonly IntPtr selKnobColorHandle = Selector.GetHandle("knobColor"); private static readonly IntPtr selSelectedKnobColorHandle = Selector.GetHandle("selectedKnobColor"); private static readonly IntPtr selWindowFrameColorHandle = Selector.GetHandle("windowFrameColor"); private static readonly IntPtr selWindowFrameTextColorHandle = Selector.GetHandle("windowFrameTextColor"); private static readonly IntPtr selSelectedMenuItemColorHandle = Selector.GetHandle("selectedMenuItemColor"); private static readonly IntPtr selSelectedMenuItemTextColorHandle = Selector.GetHandle("selectedMenuItemTextColor"); private static readonly IntPtr selHighlightColorHandle = Selector.GetHandle("highlightColor"); private static readonly IntPtr selShadowColorHandle = Selector.GetHandle("shadowColor"); private static readonly IntPtr selHeaderColorHandle = Selector.GetHandle("headerColor"); private static readonly IntPtr selHeaderTextColorHandle = Selector.GetHandle("headerTextColor"); private static readonly IntPtr selAlternateSelectedControlColorHandle = Selector.GetHandle("alternateSelectedControlColor"); private static readonly IntPtr selAlternateSelectedControlTextColorHandle = Selector.GetHandle("alternateSelectedControlTextColor"); private static readonly IntPtr selUnderPageBackgroundColorHandle = Selector.GetHandle("underPageBackgroundColor"); private static readonly IntPtr selCurrentControlTintHandle = Selector.GetHandle("currentControlTint"); private static readonly IntPtr selColorSpaceNameHandle = Selector.GetHandle("colorSpaceName"); private static readonly IntPtr selCatalogNameComponentHandle = Selector.GetHandle("catalogNameComponent"); private static readonly IntPtr selColorNameComponentHandle = Selector.GetHandle("colorNameComponent"); private static readonly IntPtr selLocalizedCatalogNameComponentHandle = Selector.GetHandle("localizedCatalogNameComponent"); private static readonly IntPtr selLocalizedColorNameComponentHandle = Selector.GetHandle("localizedColorNameComponent"); private static readonly IntPtr selRedComponentHandle = Selector.GetHandle("redComponent"); private static readonly IntPtr selGreenComponentHandle = Selector.GetHandle("greenComponent"); private static readonly IntPtr selBlueComponentHandle = Selector.GetHandle("blueComponent"); private static readonly IntPtr selHueComponentHandle = Selector.GetHandle("hueComponent"); private static readonly IntPtr selSaturationComponentHandle = Selector.GetHandle("saturationComponent"); private static readonly IntPtr selBrightnessComponentHandle = Selector.GetHandle("brightnessComponent"); private static readonly IntPtr selWhiteComponentHandle = Selector.GetHandle("whiteComponent"); private static readonly IntPtr selCyanComponentHandle = Selector.GetHandle("cyanComponent"); private static readonly IntPtr selMagentaComponentHandle = Selector.GetHandle("magentaComponent"); private static readonly IntPtr selYellowComponentHandle = Selector.GetHandle("yellowComponent"); private static readonly IntPtr selBlackComponentHandle = Selector.GetHandle("blackComponent"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selNumberOfComponentsHandle = Selector.GetHandle("numberOfComponents"); private static readonly IntPtr selAlphaComponentHandle = Selector.GetHandle("alphaComponent"); private static readonly IntPtr selPatternImageHandle = Selector.GetHandle("patternImage"); private static readonly IntPtr selCGColorHandle = Selector.GetHandle("CGColor"); private static readonly IntPtr selIgnoresAlphaHandle = Selector.GetHandle("ignoresAlpha"); private static readonly IntPtr selSetIgnoresAlpha_Handle = Selector.GetHandle("setIgnoresAlpha:"); private static readonly IntPtr selColorWithCalibratedWhiteAlpha_Handle = Selector.GetHandle("colorWithCalibratedWhite:alpha:"); private static readonly IntPtr selColorWithCalibratedHueSaturationBrightnessAlpha_Handle = Selector.GetHandle("colorWithCalibratedHue:saturation:brightness:alpha:"); private static readonly IntPtr selColorWithCalibratedRedGreenBlueAlpha_Handle = Selector.GetHandle("colorWithCalibratedRed:green:blue:alpha:"); private static readonly IntPtr selColorWithDeviceWhiteAlpha_Handle = Selector.GetHandle("colorWithDeviceWhite:alpha:"); private static readonly IntPtr selColorWithDeviceHueSaturationBrightnessAlpha_Handle = Selector.GetHandle("colorWithDeviceHue:saturation:brightness:alpha:"); private static readonly IntPtr selColorWithDeviceRedGreenBlueAlpha_Handle = Selector.GetHandle("colorWithDeviceRed:green:blue:alpha:"); private static readonly IntPtr selColorWithDeviceCyanMagentaYellowBlackAlpha_Handle = Selector.GetHandle("colorWithDeviceCyan:magenta:yellow:black:alpha:"); private static readonly IntPtr selColorWithCatalogNameColorName_Handle = Selector.GetHandle("colorWithCatalogName:colorName:"); private static readonly IntPtr selColorWithColorSpaceComponentsCount_Handle = Selector.GetHandle("colorWithColorSpace:components:count:"); private static readonly IntPtr selControlAlternatingRowBackgroundColorsHandle = Selector.GetHandle("controlAlternatingRowBackgroundColors"); private static readonly IntPtr selHighlightWithLevel_Handle = Selector.GetHandle("highlightWithLevel:"); private static readonly IntPtr selShadowWithLevel_Handle = Selector.GetHandle("shadowWithLevel:"); private static readonly IntPtr selColorForControlTint_Handle = Selector.GetHandle("colorForControlTint:"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selSetFillHandle = Selector.GetHandle("setFill"); private static readonly IntPtr selSetStrokeHandle = Selector.GetHandle("setStroke"); private static readonly IntPtr selColorUsingColorSpaceName_Handle = Selector.GetHandle("colorUsingColorSpaceName:"); private static readonly IntPtr selColorUsingColorSpaceNameDevice_Handle = Selector.GetHandle("colorUsingColorSpaceName:device:"); private static readonly IntPtr selColorUsingColorSpace_Handle = Selector.GetHandle("colorUsingColorSpace:"); private static readonly IntPtr selBlendedColorWithFractionOfColor_Handle = Selector.GetHandle("blendedColorWithFraction:ofColor:"); private static readonly IntPtr selColorWithAlphaComponent_Handle = Selector.GetHandle("colorWithAlphaComponent:"); private static readonly IntPtr selGetRedGreenBlueAlpha_Handle = Selector.GetHandle("getRed:green:blue:alpha:"); private static readonly IntPtr selGetHueSaturationBrightnessAlpha_Handle = Selector.GetHandle("getHue:saturation:brightness:alpha:"); private static readonly IntPtr selGetWhiteAlpha_Handle = Selector.GetHandle("getWhite:alpha:"); private static readonly IntPtr selGetCyanMagentaYellowBlackAlpha_Handle = Selector.GetHandle("getCyan:magenta:yellow:black:alpha:"); private static readonly IntPtr selGetComponents_Handle = Selector.GetHandle("getComponents:"); private static readonly IntPtr selColorFromPasteboard_Handle = Selector.GetHandle("colorFromPasteboard:"); private static readonly IntPtr selWriteToPasteboard_Handle = Selector.GetHandle("writeToPasteboard:"); private static readonly IntPtr selColorWithPatternImage_Handle = Selector.GetHandle("colorWithPatternImage:"); private static readonly IntPtr selDrawSwatchInRect_Handle = Selector.GetHandle("drawSwatchInRect:"); private static readonly IntPtr selColorWithCIColor_Handle = Selector.GetHandle("colorWithCIColor:"); private static readonly IntPtr selColorWithCGColor_Handle = Selector.GetHandle("colorWithCGColor:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColor"); private static object __mt_Black_var_static; private static object __mt_DarkGray_var_static; private static object __mt_LightGray_var_static; private static object __mt_White_var_static; private static object __mt_Gray_var_static; private static object __mt_Red_var_static; private static object __mt_Green_var_static; private static object __mt_Blue_var_static; private static object __mt_Cyan_var_static; private static object __mt_Yellow_var_static; private static object __mt_Magenta_var_static; private static object __mt_Orange_var_static; private static object __mt_Purple_var_static; private static object __mt_Brown_var_static; private static object __mt_Clear_var_static; private static object __mt_ControlShadow_var_static; private static object __mt_ControlDarkShadow_var_static; private static object __mt_Control_var_static; private static object __mt_ControlHighlight_var_static; private static object __mt_ControlLightHighlight_var_static; private static object __mt_ControlText_var_static; private static object __mt_ControlBackground_var_static; private static object __mt_SelectedControl_var_static; private static object __mt_SecondarySelectedControl_var_static; private static object __mt_SelectedControlText_var_static; private static object __mt_DisabledControlText_var_static; private static object __mt_Text_var_static; private static object __mt_TextBackground_var_static; private static object __mt_SelectedText_var_static; private static object __mt_SelectedTextBackground_var_static; private static object __mt_Grid_var_static; private static object __mt_KeyboardFocusIndicator_var_static; private static object __mt_WindowBackground_var_static; private static object __mt_ScrollBar_var_static; private static object __mt_Knob_var_static; private static object __mt_SelectedKnob_var_static; private static object __mt_WindowFrame_var_static; private static object __mt_WindowFrameText_var_static; private static object __mt_SelectedMenuItem_var_static; private static object __mt_SelectedMenuItemText_var_static; private static object __mt_Highlight_var_static; private static object __mt_Shadow_var_static; private static object __mt_Header_var_static; private static object __mt_HeaderText_var_static; private static object __mt_AlternateSelectedControl_var_static; private static object __mt_AlternateSelectedControlText_var_static; private static object __mt_UnderPageBackground_var_static; private object __mt_ColorSpace_var; private object __mt_PatternImage_var; public override IntPtr ClassHandle => class_ptr; public static NSColor Black { [Export("blackColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Black_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selBlackColorHandle))); } } public static NSColor DarkGray { [Export("darkGrayColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_DarkGray_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDarkGrayColorHandle))); } } public static NSColor LightGray { [Export("lightGrayColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_LightGray_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLightGrayColorHandle))); } } public static NSColor White { [Export("whiteColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_White_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWhiteColorHandle))); } } public static NSColor Gray { [Export("grayColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Gray_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGrayColorHandle))); } } public static NSColor Red { [Export("redColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Red_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selRedColorHandle))); } } public static NSColor Green { [Export("greenColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Green_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGreenColorHandle))); } } public static NSColor Blue { [Export("blueColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Blue_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selBlueColorHandle))); } } public static NSColor Cyan { [Export("cyanColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Cyan_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCyanColorHandle))); } } public static NSColor Yellow { [Export("yellowColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Yellow_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selYellowColorHandle))); } } public static NSColor Magenta { [Export("magentaColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Magenta_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMagentaColorHandle))); } } public static NSColor Orange { [Export("orangeColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Orange_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOrangeColorHandle))); } } public static NSColor Purple { [Export("purpleColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Purple_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPurpleColorHandle))); } } public static NSColor Brown { [Export("brownColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Brown_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selBrownColorHandle))); } } public static NSColor Clear { [Export("clearColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Clear_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selClearColorHandle))); } } public static NSColor ControlShadow { [Export("controlShadowColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlShadow_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlShadowColorHandle))); } } public static NSColor ControlDarkShadow { [Export("controlDarkShadowColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlDarkShadow_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlDarkShadowColorHandle))); } } public static NSColor Control { [Export("controlColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Control_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlColorHandle))); } } public static NSColor ControlHighlight { [Export("controlHighlightColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlHighlight_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlHighlightColorHandle))); } } public static NSColor ControlLightHighlight { [Export("controlLightHighlightColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlLightHighlight_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlLightHighlightColorHandle))); } } public static NSColor ControlText { [Export("controlTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlTextColorHandle))); } } public static NSColor ControlBackground { [Export("controlBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ControlBackground_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlBackgroundColorHandle))); } } public static NSColor SelectedControl { [Export("selectedControlColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedControl_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedControlColorHandle))); } } public static NSColor SecondarySelectedControl { [Export("secondarySelectedControlColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SecondarySelectedControl_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSecondarySelectedControlColorHandle))); } } public static NSColor SelectedControlText { [Export("selectedControlTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedControlText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedControlTextColorHandle))); } } public static NSColor DisabledControlText { [Export("disabledControlTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_DisabledControlText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDisabledControlTextColorHandle))); } } public static NSColor Text { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Text_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selTextColorHandle))); } } public static NSColor TextBackground { [Export("textBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextBackground_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selTextBackgroundColorHandle))); } } public static NSColor SelectedText { [Export("selectedTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedTextColorHandle))); } } public static NSColor SelectedTextBackground { [Export("selectedTextBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedTextBackground_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedTextBackgroundColorHandle))); } } public static NSColor Grid { [Export("gridColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Grid_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGridColorHandle))); } } public static NSColor KeyboardFocusIndicator { [Export("keyboardFocusIndicatorColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_KeyboardFocusIndicator_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selKeyboardFocusIndicatorColorHandle))); } } public static NSColor WindowBackground { [Export("windowBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_WindowBackground_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWindowBackgroundColorHandle))); } } public static NSColor ScrollBar { [Export("scrollBarColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ScrollBar_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selScrollBarColorHandle))); } } public static NSColor Knob { [Export("knobColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Knob_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selKnobColorHandle))); } } public static NSColor SelectedKnob { [Export("selectedKnobColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedKnob_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedKnobColorHandle))); } } public static NSColor WindowFrame { [Export("windowFrameColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_WindowFrame_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWindowFrameColorHandle))); } } public static NSColor WindowFrameText { [Export("windowFrameTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_WindowFrameText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWindowFrameTextColorHandle))); } } public static NSColor SelectedMenuItem { [Export("selectedMenuItemColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedMenuItem_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedMenuItemColorHandle))); } } public static NSColor SelectedMenuItemText { [Export("selectedMenuItemTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_SelectedMenuItemText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSelectedMenuItemTextColorHandle))); } } public static NSColor Highlight { [Export("highlightColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Highlight_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selHighlightColorHandle))); } } public static NSColor Shadow { [Export("shadowColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Shadow_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selShadowColorHandle))); } } public static NSColor Header { [Export("headerColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Header_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selHeaderColorHandle))); } } public static NSColor HeaderText { [Export("headerTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_HeaderText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selHeaderTextColorHandle))); } } public static NSColor AlternateSelectedControl { [Export("alternateSelectedControlColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_AlternateSelectedControl_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAlternateSelectedControlColorHandle))); } } public static NSColor AlternateSelectedControlText { [Export("alternateSelectedControlTextColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_AlternateSelectedControlText_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAlternateSelectedControlTextColorHandle))); } } [MountainLion] public static NSColor UnderPageBackground { [MountainLion] [Export("underPageBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_UnderPageBackground_var_static = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selUnderPageBackgroundColorHandle))); } } public static NSControlTint CurrentControlTint { [Export("currentControlTint")] get { NSApplication.EnsureUIThread(); return (NSControlTint)Messaging.UInt64_objc_msgSend(class_ptr, selCurrentControlTintHandle); } } public virtual string ColorSpaceName { [Export("colorSpaceName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceNameHandle)); } } public virtual string CatalogNameComponent { [Export("catalogNameComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCatalogNameComponentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCatalogNameComponentHandle)); } } public virtual string ColorNameComponent { [Export("colorNameComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selColorNameComponentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorNameComponentHandle)); } } public virtual string LocalizedCatalogNameComponent { [Export("localizedCatalogNameComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedCatalogNameComponentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedCatalogNameComponentHandle)); } } public virtual string LocalizedColorNameComponent { [Export("localizedColorNameComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedColorNameComponentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedColorNameComponentHandle)); } } public virtual double RedComponent { [Export("redComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRedComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRedComponentHandle); } } public virtual double GreenComponent { [Export("greenComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selGreenComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selGreenComponentHandle); } } public virtual double BlueComponent { [Export("blueComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBlueComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBlueComponentHandle); } } public virtual double HueComponent { [Export("hueComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHueComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHueComponentHandle); } } public virtual double SaturationComponent { [Export("saturationComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selSaturationComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selSaturationComponentHandle); } } public virtual double BrightnessComponent { [Export("brightnessComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBrightnessComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBrightnessComponentHandle); } } public virtual double WhiteComponent { [Export("whiteComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWhiteComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWhiteComponentHandle); } } public virtual double CyanComponent { [Export("cyanComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCyanComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCyanComponentHandle); } } public virtual double MagentaComponent { [Export("magentaComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMagentaComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMagentaComponentHandle); } } public virtual double YellowComponent { [Export("yellowComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selYellowComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selYellowComponentHandle); } } public virtual double BlackComponent { [Export("blackComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBlackComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBlackComponentHandle); } } public virtual NSColorSpace ColorSpace { [Export("colorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_ColorSpace_var = ((!IsDirectBinding) ? ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle))) : ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle))))); } } public virtual long ComponentCount { [Export("numberOfComponents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfComponentsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfComponentsHandle); } } public virtual double AlphaComponent { [Export("alphaComponent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAlphaComponentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAlphaComponentHandle); } } public virtual NSImage PatternImage { [Export("patternImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_PatternImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPatternImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPatternImageHandle))))); } } [MountainLion] public virtual CGColor CGColor { [MountainLion] [Export("CGColor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selCGColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGColorHandle)); } } public static bool IgnoresAlpha { [Export("ignoresAlpha")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIgnoresAlphaHandle); } [Export("setIgnoresAlpha:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetIgnoresAlpha_Handle, value); } } public static NSColor FromColorSpace(NSColorSpace space, double[] components) { if (components == null) { throw new ArgumentNullException("components"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(components[0]) * components.Length); Marshal.Copy(components, 0, intPtr, components.Length); NSColor result = _FromColorSpace(space, intPtr, components.Length); Marshal.FreeHGlobal(intPtr); return result; } public void GetComponents(out double[] components) { int num = (int)ComponentCount; double[] array = new double[num]; IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(array[0]) * num); _GetComponents(intPtr); Marshal.Copy(intPtr, array, 0, num); Marshal.FreeHGlobal(intPtr); components = array; } public override string ToString() { try { string colorSpaceName = ColorSpaceName; if (colorSpaceName == "NSNamedColorSpace") { return LocalizedCatalogNameComponent + "/" + LocalizedColorNameComponent; } if (colorSpaceName == "NSPatternColorSpace") { return "Pattern Color: " + PatternImage.Name; } StringBuilder stringBuilder = new StringBuilder(ColorSpace.LocalizedName); GetComponents(out var components); if (components.Length != 0) { stringBuilder.Append("(" + components[0]); } for (int i = 1; i < components.Length; i++) { stringBuilder.Append("," + components[i]); } stringBuilder.Append(")"); return stringBuilder.ToString(); } catch { return base.ToString(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColor(IntPtr handle) : base(handle) { } [Export("colorWithCalibratedWhite:alpha:")] public static NSColor FromCalibratedWhite(double white, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double(class_ptr, selColorWithCalibratedWhiteAlpha_Handle, white, alpha)); } [Export("colorWithCalibratedHue:saturation:brightness:alpha:")] public static NSColor FromCalibratedHsba(double hue, double saturation, double brightness, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selColorWithCalibratedHueSaturationBrightnessAlpha_Handle, hue, saturation, brightness, alpha)); } [Export("colorWithCalibratedRed:green:blue:alpha:")] public static NSColor FromCalibratedRgba(double red, double green, double blue, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selColorWithCalibratedRedGreenBlueAlpha_Handle, red, green, blue, alpha)); } [Export("colorWithDeviceWhite:alpha:")] public static NSColor FromDeviceWhite(double white, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double(class_ptr, selColorWithDeviceWhiteAlpha_Handle, white, alpha)); } [Export("colorWithDeviceHue:saturation:brightness:alpha:")] public static NSColor FromDeviceHsba(double hue, double saturation, double brightness, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selColorWithDeviceHueSaturationBrightnessAlpha_Handle, hue, saturation, brightness, alpha)); } [Export("colorWithDeviceRed:green:blue:alpha:")] public static NSColor FromDeviceRgba(double red, double green, double blue, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selColorWithDeviceRedGreenBlueAlpha_Handle, red, green, blue, alpha)); } [Export("colorWithDeviceCyan:magenta:yellow:black:alpha:")] public static NSColor FromDeviceCymka(double cyan, double magenta, double yellow, double black, double alpha) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double_Double(class_ptr, selColorWithDeviceCyanMagentaYellowBlackAlpha_Handle, cyan, magenta, yellow, black, alpha)); } [Export("colorWithCatalogName:colorName:")] public static NSColor FromCatalogName(string listName, string colorName) { NSApplication.EnsureUIThread(); if (listName == null) { throw new ArgumentNullException("listName"); } if (colorName == null) { throw new ArgumentNullException("colorName"); } IntPtr arg = NSString.CreateNative(listName); IntPtr arg2 = NSString.CreateNative(colorName); NSColor result = (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selColorWithCatalogNameColorName_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("colorWithColorSpace:components:count:")] internal static NSColor _FromColorSpace(NSColorSpace space, IntPtr components, long numberOfComponents) { NSApplication.EnsureUIThread(); if (space == null) { throw new ArgumentNullException("space"); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Int64(class_ptr, selColorWithColorSpaceComponentsCount_Handle, space.Handle, components, numberOfComponents)); } [Export("controlAlternatingRowBackgroundColors")] public static NSColor[] ControlAlternatingRowBackgroundColors() { NSApplication.EnsureUIThread(); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selControlAlternatingRowBackgroundColorsHandle)); } [Export("highlightWithLevel:")] public virtual NSColor HighlightWithLevel(double highlightLevel) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selHighlightWithLevel_Handle, highlightLevel)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selHighlightWithLevel_Handle, highlightLevel)); } [Export("shadowWithLevel:")] public virtual NSColor ShadowWithLevel(double shadowLevel) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selShadowWithLevel_Handle, shadowLevel)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selShadowWithLevel_Handle, shadowLevel)); } [Export("colorForControlTint:")] public static NSColor FromControlTint(NSControlTint controlTint) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selColorForControlTint_Handle, (ulong)controlTint)); } [Export("set")] public virtual void Set() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } [Export("setFill")] public virtual void SetFill() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetFillHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetFillHandle); } } [Export("setStroke")] public virtual void SetStroke() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetStrokeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetStrokeHandle); } } [Export("colorUsingColorSpaceName:")] public virtual NSColor UsingColorSpace(string colorSpaceName) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(colorSpaceName); NSColor result = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selColorUsingColorSpaceName_Handle, arg))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selColorUsingColorSpaceName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("colorUsingColorSpaceName:device:")] public virtual NSColor UsingColorSpace(string colorSpaceName, NSDictionary deviceDescription) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(colorSpaceName); NSColor result = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selColorUsingColorSpaceNameDevice_Handle, arg, deviceDescription?.Handle ?? IntPtr.Zero))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selColorUsingColorSpaceNameDevice_Handle, arg, deviceDescription?.Handle ?? IntPtr.Zero)))); NSString.ReleaseNative(arg); return result; } [Export("colorUsingColorSpace:")] public virtual NSColor UsingColorSpace(NSColorSpace colorSpace) { NSApplication.EnsureUIThread(); if (colorSpace == null) { throw new ArgumentNullException("colorSpace"); } if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selColorUsingColorSpace_Handle, colorSpace.Handle)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selColorUsingColorSpace_Handle, colorSpace.Handle)); } [Export("blendedColorWithFraction:ofColor:")] public virtual NSColor BlendedColor(double fraction, NSColor color) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_IntPtr(base.Handle, selBlendedColorWithFractionOfColor_Handle, fraction, color.Handle)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selBlendedColorWithFractionOfColor_Handle, fraction, color.Handle)); } [Export("colorWithAlphaComponent:")] public virtual NSColor ColorWithAlphaComponent(double alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selColorWithAlphaComponent_Handle, alpha)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selColorWithAlphaComponent_Handle, alpha)); } [Export("getRed:green:blue:alpha:")] public virtual void GetRgba(out double red, out double green, out double blue, out double alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_out_Double_out_Double_out_Double(base.Handle, selGetRedGreenBlueAlpha_Handle, out red, out green, out blue, out alpha); } else { Messaging.void_objc_msgSendSuper_out_Double_out_Double_out_Double_out_Double(base.SuperHandle, selGetRedGreenBlueAlpha_Handle, out red, out green, out blue, out alpha); } } [Export("getHue:saturation:brightness:alpha:")] public virtual void GetHsba(out double hue, out double saturation, out double brightness, out double alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_out_Double_out_Double_out_Double(base.Handle, selGetHueSaturationBrightnessAlpha_Handle, out hue, out saturation, out brightness, out alpha); } else { Messaging.void_objc_msgSendSuper_out_Double_out_Double_out_Double_out_Double(base.SuperHandle, selGetHueSaturationBrightnessAlpha_Handle, out hue, out saturation, out brightness, out alpha); } } [Export("getWhite:alpha:")] public virtual void GetWhiteAlpha(out double white, out double alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_out_Double(base.Handle, selGetWhiteAlpha_Handle, out white, out alpha); } else { Messaging.void_objc_msgSendSuper_out_Double_out_Double(base.SuperHandle, selGetWhiteAlpha_Handle, out white, out alpha); } } [Export("getCyan:magenta:yellow:black:alpha:")] public virtual void GetCmyka(out double cyan, out double magenta, out double yellow, out double black, out double alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_out_Double_out_Double_out_Double_out_Double(base.Handle, selGetCyanMagentaYellowBlackAlpha_Handle, out cyan, out magenta, out yellow, out black, out alpha); } else { Messaging.void_objc_msgSendSuper_out_Double_out_Double_out_Double_out_Double_out_Double(base.SuperHandle, selGetCyanMagentaYellowBlackAlpha_Handle, out cyan, out magenta, out yellow, out black, out alpha); } } [Export("getComponents:")] internal virtual void _GetComponents(IntPtr components) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetComponents_Handle, components); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetComponents_Handle, components); } } [Export("colorFromPasteboard:")] public static NSColor FromPasteboard(NSPasteboard pasteBoard) { NSApplication.EnsureUIThread(); if (pasteBoard == null) { throw new ArgumentNullException("pasteBoard"); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorFromPasteboard_Handle, pasteBoard.Handle)); } [Export("writeToPasteboard:")] public virtual void WriteToPasteboard(NSPasteboard pasteBoard) { NSApplication.EnsureUIThread(); if (pasteBoard == null) { throw new ArgumentNullException("pasteBoard"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWriteToPasteboard_Handle, pasteBoard.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToPasteboard_Handle, pasteBoard.Handle); } } [Export("colorWithPatternImage:")] public static NSColor FromPatternImage(NSImage image) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorWithPatternImage_Handle, image.Handle)); } [Export("drawSwatchInRect:")] public virtual void DrawSwatchInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawSwatchInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawSwatchInRect_Handle, rect); } } [Export("colorWithCIColor:")] public static NSColor FromCIColor(CIColor color) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorWithCIColor_Handle, color.Handle)); } [Export("colorWithCGColor:")] [MountainLion] public static NSColor FromCGColor(CGColor color) { NSApplication.EnsureUIThread(); return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorWithCGColor_Handle, color.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ColorSpace_var = null; __mt_PatternImage_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorList.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColorList", true)] public class NSColorList : NSObject { private static readonly IntPtr selAvailableColorListsHandle = Selector.GetHandle("availableColorLists"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selColorListNamed_Handle = Selector.GetHandle("colorListNamed:"); private static readonly IntPtr selInitWithName_Handle = Selector.GetHandle("initWithName:"); private static readonly IntPtr selInitWithNameFromFile_Handle = Selector.GetHandle("initWithName:fromFile:"); private static readonly IntPtr selSetColorForKey_Handle = Selector.GetHandle("setColor:forKey:"); private static readonly IntPtr selInsertColorKeyAtIndex_Handle = Selector.GetHandle("insertColor:key:atIndex:"); private static readonly IntPtr selRemoveColorWithKey_Handle = Selector.GetHandle("removeColorWithKey:"); private static readonly IntPtr selColorWithKey_Handle = Selector.GetHandle("colorWithKey:"); private static readonly IntPtr selAllKeysHandle = Selector.GetHandle("allKeys"); private static readonly IntPtr selWriteToFile_Handle = Selector.GetHandle("writeToFile:"); private static readonly IntPtr selRemoveFileHandle = Selector.GetHandle("removeFile"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColorList"); private static object __mt_AvailableColorLists_var_static; public override IntPtr ClassHandle => class_ptr; public static NSColorList[] AvailableColorLists { [Export("availableColorLists")] get { NSApplication.EnsureUIThread(); return (NSColorList[])(__mt_AvailableColorLists_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAvailableColorListsHandle))); } } public virtual string Name { [Export("name")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual bool IsEditable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSColorList() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColorList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorList(IntPtr handle) : base(handle) { } [Export("colorListNamed:")] public static NSColorList ColorListNamed(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSColorList result = (NSColorList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorListNamed_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithName:")] public NSColorList(string name) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithName_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithName:fromFile:")] public NSColorList(string name, string path) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithNameFromFile_Handle, arg, arg2); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithNameFromFile_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("setColor:forKey:")] public virtual void SetColorForKey(NSColor color, string key) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetColorForKey_Handle, color.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetColorForKey_Handle, color.Handle, arg); } NSString.ReleaseNative(arg); } [Export("insertColor:key:atIndex:")] public virtual void InsertColor(NSColor color, string key, long indexPos) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_Int64(base.Handle, selInsertColorKeyAtIndex_Handle, color.Handle, arg, indexPos); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_Int64(base.SuperHandle, selInsertColorKeyAtIndex_Handle, color.Handle, arg, indexPos); } NSString.ReleaseNative(arg); } [Export("removeColorWithKey:")] public virtual void RemoveColor(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveColorWithKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveColorWithKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("colorWithKey:")] public virtual NSColor ColorWithKey(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSColor result = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selColorWithKey_Handle, arg))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selColorWithKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("allKeys")] public virtual string[] AllKeys() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllKeysHandle)); } [Export("writeToFile:")] public virtual bool WriteToFile(string path) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToFile_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selWriteToFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("removeFile")] public virtual void RemoveFile() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveFileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveFileHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColorPanel", true)] public class NSColorPanel : NSPanel { private static readonly IntPtr selSharedColorPanelHandle = Selector.GetHandle("sharedColorPanel"); private static readonly IntPtr selSharedColorPanelExistsHandle = Selector.GetHandle("sharedColorPanelExists"); private static readonly IntPtr selAlphaHandle = Selector.GetHandle("alpha"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selIsContinuousHandle = Selector.GetHandle("isContinuous"); private static readonly IntPtr selSetContinuous_Handle = Selector.GetHandle("setContinuous:"); private static readonly IntPtr selShowsAlphaHandle = Selector.GetHandle("showsAlpha"); private static readonly IntPtr selSetShowsAlpha_Handle = Selector.GetHandle("setShowsAlpha:"); private static readonly IntPtr selModeHandle = Selector.GetHandle("mode"); private static readonly IntPtr selSetMode_Handle = Selector.GetHandle("setMode:"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selDragColorWithEventFromView_Handle = Selector.GetHandle("dragColor:withEvent:fromView:"); private static readonly IntPtr selSetPickerMask_Handle = Selector.GetHandle("setPickerMask:"); private static readonly IntPtr selSetPickerMode_Handle = Selector.GetHandle("setPickerMode:"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selAttachColorList_Handle = Selector.GetHandle("attachColorList:"); private static readonly IntPtr selDetachColorList_Handle = Selector.GetHandle("detachColorList:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColorPanel"); private static object __mt_SharedColorPanel_var_static; private object __mt_AccessoryView_var; private object __mt_Color_var; public override IntPtr ClassHandle => class_ptr; public static NSColorPanel SharedColorPanel { [Export("sharedColorPanel")] get { NSApplication.EnsureUIThread(); return (NSColorPanel)(__mt_SharedColorPanel_var_static = (NSColorPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedColorPanelHandle))); } } public static bool SharedColorPanelExists { [Export("sharedColorPanelExists")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selSharedColorPanelExistsHandle); } } public virtual double Alpha { [Export("alpha")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAlphaHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAlphaHandle); } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } public virtual bool Continuous { [Export("isContinuous")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContinuousHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContinuousHandle); } [Export("setContinuous:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetContinuous_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetContinuous_Handle, value); } } } public virtual bool ShowsAlpha { [Export("showsAlpha")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsAlphaHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsAlphaHandle); } [Export("setShowsAlpha:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsAlpha_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsAlpha_Handle, value); } } } public virtual NSColorPanelFlags Mode { [Export("mode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColorPanelFlags)Messaging.int_objc_msgSend(base.Handle, selModeHandle); } return (NSColorPanelFlags)Messaging.int_objc_msgSendSuper(base.SuperHandle, selModeHandle); } [Export("setMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMode_Handle, (int)value); } } } public virtual NSColor Color { [Export("color")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Color_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle))))); } [Export("setColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } __mt_Color_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSColorPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColorPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorPanel(IntPtr handle) : base(handle) { } [Export("dragColor:withEvent:fromView:")] public static bool DragColor(NSColor color, NSEvent theEvent, NSView sourceView) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (sourceView == null) { throw new ArgumentNullException("sourceView"); } return Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selDragColorWithEventFromView_Handle, color.Handle, theEvent.Handle, sourceView.Handle); } [Export("setPickerMask:")] public static void SetPickerStyle(NSColorPanelFlags mask) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_int(class_ptr, selSetPickerMask_Handle, (int)mask); } [Export("setPickerMode:")] public static void SetPickerMode(NSColorPanelMode mode) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_Int64(class_ptr, selSetPickerMode_Handle, (long)mode); } [Export("setAction:")] public virtual void SetAction(Selector aSelector) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (aSelector == null) ? IntPtr.Zero : aSelector.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (aSelector == null) ? IntPtr.Zero : aSelector.Handle); } } [Export("setTarget:")] public virtual void SetTarget(NSObject anObject) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, anObject?.Handle ?? IntPtr.Zero); } } [Export("attachColorList:")] public virtual void AttachColorList(NSColorList colorList) { NSApplication.EnsureUIThread(); if (colorList == null) { throw new ArgumentNullException("colorList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAttachColorList_Handle, colorList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttachColorList_Handle, colorList.Handle); } } [Export("detachColorList:")] public virtual void DetachColorList(NSColorList colorList) { NSApplication.EnsureUIThread(); if (colorList == null) { throw new ArgumentNullException("colorList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDetachColorList_Handle, colorList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDetachColorList_Handle, colorList.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AccessoryView_var = null; __mt_Color_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorPanelFlags.cs ================================================ using System; namespace AppKit; [Flags] public enum NSColorPanelFlags { Gray = 1, RGB = 2, CMYK = 4, HSB = 8, CustomPalette = 0x10, ColorList = 0x20, Wheel = 0x40, Crayon = 0x80, All = 0xFFFF } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorPanelMode.cs ================================================ namespace AppKit; public enum NSColorPanelMode : long { None = -1L, Gray, RGB, CMYK, HSB, CustomPalette, ColorList, Wheel, Crayon } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorPicker.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColorPicker", true)] public class NSColorPicker : NSObject { private static readonly IntPtr selColorPanelHandle = Selector.GetHandle("colorPanel"); private static readonly IntPtr selButtonToolTipHandle = Selector.GetHandle("buttonToolTip"); private static readonly IntPtr selMinContentSizeHandle = Selector.GetHandle("minContentSize"); private static readonly IntPtr selInitWithPickerMaskColorPanel_Handle = Selector.GetHandle("initWithPickerMask:colorPanel:"); private static readonly IntPtr selProvideNewButtonImageHandle = Selector.GetHandle("provideNewButtonImage"); private static readonly IntPtr selInsertNewButtonImageIn_Handle = Selector.GetHandle("insertNewButtonImage:in:"); private static readonly IntPtr selViewSizeChanged_Handle = Selector.GetHandle("viewSizeChanged:"); private static readonly IntPtr selAttachColorList_Handle = Selector.GetHandle("attachColorList:"); private static readonly IntPtr selDetachColorList_Handle = Selector.GetHandle("detachColorList:"); private static readonly IntPtr selSetMode_Handle = Selector.GetHandle("setMode:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColorPicker"); private object __mt_ColorPanel_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColorPanel ColorPanel { [Export("colorPanel")] get { NSApplication.EnsureUIThread(); return (NSColorPanel)(__mt_ColorPanel_var = ((!IsDirectBinding) ? ((NSColorPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorPanelHandle))) : ((NSColorPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorPanelHandle))))); } } public virtual string ButtonToolTip { [Export("buttonToolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selButtonToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selButtonToolTipHandle)); } } public virtual CGSize MinContentSize { [Export("minContentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinContentSizeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSColorPicker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColorPicker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorPicker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorPicker(IntPtr handle) : base(handle) { } [Export("initWithPickerMask:colorPanel:")] public NSColorPicker(NSColorPanelFlags mask, NSColorPanel owningColorPanel) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (owningColorPanel == null) { throw new ArgumentNullException("owningColorPanel"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int_IntPtr(base.Handle, selInitWithPickerMaskColorPanel_Handle, (int)mask, owningColorPanel.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selInitWithPickerMaskColorPanel_Handle, (int)mask, owningColorPanel.Handle); } } [Export("provideNewButtonImage")] public virtual NSImage ProvideNewButtonImage() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selProvideNewButtonImageHandle)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProvideNewButtonImageHandle)); } [Export("insertNewButtonImage:in:")] public virtual void InsertNewButtonImage(NSImage newButtonImage, NSButtonCell buttonCell) { NSApplication.EnsureUIThread(); if (newButtonImage == null) { throw new ArgumentNullException("newButtonImage"); } if (buttonCell == null) { throw new ArgumentNullException("buttonCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertNewButtonImageIn_Handle, newButtonImage.Handle, buttonCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertNewButtonImageIn_Handle, newButtonImage.Handle, buttonCell.Handle); } } [Export("viewSizeChanged:")] public virtual void ViewSizeChanged(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selViewSizeChanged_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selViewSizeChanged_Handle, sender.Handle); } } [Export("attachColorList:")] public virtual void AttachColorList(NSColorList colorList) { NSApplication.EnsureUIThread(); if (colorList == null) { throw new ArgumentNullException("colorList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAttachColorList_Handle, colorList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttachColorList_Handle, colorList.Handle); } } [Export("detachColorList:")] public virtual void DetachColorList(NSColorList colorList) { NSApplication.EnsureUIThread(); if (colorList == null) { throw new ArgumentNullException("colorList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDetachColorList_Handle, colorList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDetachColorList_Handle, colorList.Handle); } } [Export("setMode:")] public virtual void SetMode(NSColorPanelMode mode) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMode_Handle, (long)mode); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMode_Handle, (long)mode); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ColorPanel_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorRenderingIntent.cs ================================================ namespace AppKit; public enum NSColorRenderingIntent : long { Default, AbsoluteColorimetric, RelativeColorimetric, Perceptual, Saturation } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorSpace.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColorSpace", true)] public class NSColorSpace : NSObject { private static readonly IntPtr selICCProfileDataHandle = Selector.GetHandle("ICCProfileData"); private static readonly IntPtr selColorSyncProfileHandle = Selector.GetHandle("colorSyncProfile"); private static readonly IntPtr selCGColorSpaceHandle = Selector.GetHandle("CGColorSpace"); private static readonly IntPtr selNumberOfColorComponentsHandle = Selector.GetHandle("numberOfColorComponents"); private static readonly IntPtr selColorSpaceModelHandle = Selector.GetHandle("colorSpaceModel"); private static readonly IntPtr selLocalizedNameHandle = Selector.GetHandle("localizedName"); private static readonly IntPtr selGenericRGBColorSpaceHandle = Selector.GetHandle("genericRGBColorSpace"); private static readonly IntPtr selGenericGrayColorSpaceHandle = Selector.GetHandle("genericGrayColorSpace"); private static readonly IntPtr selGenericCMYKColorSpaceHandle = Selector.GetHandle("genericCMYKColorSpace"); private static readonly IntPtr selDeviceRGBColorSpaceHandle = Selector.GetHandle("deviceRGBColorSpace"); private static readonly IntPtr selDeviceGrayColorSpaceHandle = Selector.GetHandle("deviceGrayColorSpace"); private static readonly IntPtr selDeviceCMYKColorSpaceHandle = Selector.GetHandle("deviceCMYKColorSpace"); private static readonly IntPtr selSRGBColorSpaceHandle = Selector.GetHandle("sRGBColorSpace"); private static readonly IntPtr selGenericGamma22GrayColorSpaceHandle = Selector.GetHandle("genericGamma22GrayColorSpace"); private static readonly IntPtr selAdobeRGB1998ColorSpaceHandle = Selector.GetHandle("adobeRGB1998ColorSpace"); private static readonly IntPtr selInitWithICCProfileData_Handle = Selector.GetHandle("initWithICCProfileData:"); private static readonly IntPtr selInitWithCGColorSpace_Handle = Selector.GetHandle("initWithCGColorSpace:"); private static readonly IntPtr selAvailableColorSpacesWithModel_Handle = Selector.GetHandle("availableColorSpacesWithModel:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColorSpace"); private object __mt_ICCProfileData_var; private static object __mt_GenericRGBColorSpace_var_static; private static object __mt_GenericGrayColorSpace_var_static; private static object __mt_GenericCMYKColorSpace_var_static; private static object __mt_DeviceRGBColorSpace_var_static; private static object __mt_DeviceGrayColorSpace_var_static; private static object __mt_DeviceCMYKColorSpace_var_static; private static object __mt_SRGBColorSpace_var_static; private static object __mt_GenericGamma22GrayColorSpace_var_static; private static object __mt_AdobeRGB1998ColorSpace_var_static; private static NSString _CalibratedWhite; private static NSString _CalibratedBlack; private static NSString _CalibratedRGB; private static NSString _DeviceWhite; private static NSString _DeviceBlack; private static NSString _DeviceRGB; private static NSString _DeviceCMYK; private static NSString _Named; private static NSString _Pattern; private static NSString _Custom; public override IntPtr ClassHandle => class_ptr; public virtual NSData ICCProfileData { [Export("ICCProfileData")] get { NSApplication.EnsureUIThread(); return (NSData)(__mt_ICCProfileData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selICCProfileDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selICCProfileDataHandle))))); } } public virtual IntPtr ColorSyncProfile { [Export("colorSyncProfile")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selColorSyncProfileHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSyncProfileHandle); } } public virtual CGColorSpace ColorSpace { [Export("CGColorSpace")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGColorSpace(Messaging.IntPtr_objc_msgSend(base.Handle, selCGColorSpaceHandle)); } return new CGColorSpace(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGColorSpaceHandle)); } } public virtual int ColorComponents { [Export("numberOfColorComponents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfColorComponentsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfColorComponentsHandle); } } public virtual NSColorSpaceModel ColorSpaceModel { [Export("colorSpaceModel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColorSpaceModel)Messaging.Int64_objc_msgSend(base.Handle, selColorSpaceModelHandle); } return (NSColorSpaceModel)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selColorSpaceModelHandle); } } public virtual string LocalizedName { [Export("localizedName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedNameHandle)); } } public static NSColorSpace GenericRGBColorSpace { [Export("genericRGBColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_GenericRGBColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGenericRGBColorSpaceHandle))); } } public static NSColorSpace GenericGrayColorSpace { [Export("genericGrayColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_GenericGrayColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGenericGrayColorSpaceHandle))); } } public static NSColorSpace GenericCMYKColorSpace { [Export("genericCMYKColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_GenericCMYKColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGenericCMYKColorSpaceHandle))); } } public static NSColorSpace DeviceRGBColorSpace { [Export("deviceRGBColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_DeviceRGBColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDeviceRGBColorSpaceHandle))); } } public static NSColorSpace DeviceGrayColorSpace { [Export("deviceGrayColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_DeviceGrayColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDeviceGrayColorSpaceHandle))); } } public static NSColorSpace DeviceCMYKColorSpace { [Export("deviceCMYKColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_DeviceCMYKColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDeviceCMYKColorSpaceHandle))); } } public static NSColorSpace SRGBColorSpace { [Export("sRGBColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_SRGBColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSRGBColorSpaceHandle))); } } public static NSColorSpace GenericGamma22GrayColorSpace { [Export("genericGamma22GrayColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_GenericGamma22GrayColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGenericGamma22GrayColorSpaceHandle))); } } public static NSColorSpace AdobeRGB1998ColorSpace { [Export("adobeRGB1998ColorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_AdobeRGB1998ColorSpace_var_static = (NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAdobeRGB1998ColorSpaceHandle))); } } [Field("NSCalibratedWhiteColorSpace", "AppKit")] public static NSString CalibratedWhite { get { if (_CalibratedWhite == null) { _CalibratedWhite = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSCalibratedWhiteColorSpace"); } return _CalibratedWhite; } } [Field("NSCalibratedBlackColorSpace", "AppKit")] public static NSString CalibratedBlack { get { if (_CalibratedBlack == null) { _CalibratedBlack = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSCalibratedBlackColorSpace"); } return _CalibratedBlack; } } [Field("NSCalibratedRGBColorSpace", "AppKit")] public static NSString CalibratedRGB { get { if (_CalibratedRGB == null) { _CalibratedRGB = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSCalibratedRGBColorSpace"); } return _CalibratedRGB; } } [Field("NSDeviceWhiteColorSpace", "AppKit")] public static NSString DeviceWhite { get { if (_DeviceWhite == null) { _DeviceWhite = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDeviceWhiteColorSpace"); } return _DeviceWhite; } } [Field("NSDeviceBlackColorSpace", "AppKit")] public static NSString DeviceBlack { get { if (_DeviceBlack == null) { _DeviceBlack = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDeviceBlackColorSpace"); } return _DeviceBlack; } } [Field("NSDeviceRGBColorSpace", "AppKit")] public static NSString DeviceRGB { get { if (_DeviceRGB == null) { _DeviceRGB = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDeviceRGBColorSpace"); } return _DeviceRGB; } } [Field("NSDeviceCMYKColorSpace", "AppKit")] public static NSString DeviceCMYK { get { if (_DeviceCMYK == null) { _DeviceCMYK = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDeviceCMYKColorSpace"); } return _DeviceCMYK; } } [Field("NSNamedColorSpace", "AppKit")] public static NSString Named { get { if (_Named == null) { _Named = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSNamedColorSpace"); } return _Named; } } [Field("NSPatternColorSpace", "AppKit")] public static NSString Pattern { get { if (_Pattern == null) { _Pattern = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPatternColorSpace"); } return _Pattern; } } [Field("NSCustomColorSpace", "AppKit")] public static NSString Custom { get { if (_Custom == null) { _Custom = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSCustomColorSpace"); } return _Custom; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSColorSpace() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColorSpace(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorSpace(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorSpace(IntPtr handle) : base(handle) { } [Export("initWithICCProfileData:")] public NSColorSpace(NSData iccData) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (iccData == null) { throw new ArgumentNullException("iccData"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithICCProfileData_Handle, iccData.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithICCProfileData_Handle, iccData.Handle); } } [Export("initWithCGColorSpace:")] public NSColorSpace(CGColorSpace cgColorSpace) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCGColorSpace_Handle, cgColorSpace.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCGColorSpace_Handle, cgColorSpace.Handle); } } [Export("availableColorSpacesWithModel:")] public static NSColorSpace[] AvailableColorSpacesWithModel(NSColorSpaceModel model) { NSApplication.EnsureUIThread(); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_Int64(class_ptr, selAvailableColorSpacesWithModel_Handle, (long)model)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ICCProfileData_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorSpaceModel.cs ================================================ namespace AppKit; public enum NSColorSpaceModel : long { Unknown = -1L, Gray, RGB, CMYK, LAB, DeviceN, Indexed, Pattern } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSColorWell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSColorWell", true)] public class NSColorWell : NSControl { private static readonly IntPtr selIsActiveHandle = Selector.GetHandle("isActive"); private static readonly IntPtr selIsBorderedHandle = Selector.GetHandle("isBordered"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selDeactivateHandle = Selector.GetHandle("deactivate"); private static readonly IntPtr selActivate_Handle = Selector.GetHandle("activate:"); private static readonly IntPtr selDrawWellInside_Handle = Selector.GetHandle("drawWellInside:"); private static readonly IntPtr selTakeColorFrom_Handle = Selector.GetHandle("takeColorFrom:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSColorWell"); private object __mt_Color_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsActive { [Export("isActive")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsActiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsActiveHandle); } } public virtual bool Bordered { [Export("isBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBorderedHandle); } [Export("setBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, value); } } } public virtual NSColor Color { [Export("color")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Color_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle))))); } [Export("setColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } __mt_Color_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSColorWell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSColorWell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorWell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSColorWell(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSColorWell(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("deactivate")] public virtual void Deactivate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeactivateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeactivateHandle); } } [Export("activate:")] public virtual void Activate(bool exclusive) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selActivate_Handle, exclusive); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selActivate_Handle, exclusive); } } [Export("drawWellInside:")] public virtual void DrawWellInside(CGRect insideRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawWellInside_Handle, insideRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawWellInside_Handle, insideRect); } } [Export("takeColorFrom:")] public virtual void TakeColorFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeColorFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeColorFrom_Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Color_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSComboBox.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSComboBox", true)] public class NSComboBox : NSTextField { public new static class Notifications { public static NSObject ObserveSelectionDidChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(SelectionDidChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveSelectionIsChanging(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(SelectionIsChangingNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillDismiss(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillDismissNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillPopUp(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillPopUpNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selHasVerticalScrollerHandle = Selector.GetHandle("hasVerticalScroller"); private static readonly IntPtr selSetHasVerticalScroller_Handle = Selector.GetHandle("setHasVerticalScroller:"); private static readonly IntPtr selIntercellSpacingHandle = Selector.GetHandle("intercellSpacing"); private static readonly IntPtr selSetIntercellSpacing_Handle = Selector.GetHandle("setIntercellSpacing:"); private static readonly IntPtr selItemHeightHandle = Selector.GetHandle("itemHeight"); private static readonly IntPtr selSetItemHeight_Handle = Selector.GetHandle("setItemHeight:"); private static readonly IntPtr selNumberOfVisibleItemsHandle = Selector.GetHandle("numberOfVisibleItems"); private static readonly IntPtr selSetNumberOfVisibleItems_Handle = Selector.GetHandle("setNumberOfVisibleItems:"); private static readonly IntPtr selIsButtonBorderedHandle = Selector.GetHandle("isButtonBordered"); private static readonly IntPtr selSetButtonBordered_Handle = Selector.GetHandle("setButtonBordered:"); private static readonly IntPtr selUsesDataSourceHandle = Selector.GetHandle("usesDataSource"); private static readonly IntPtr selSetUsesDataSource_Handle = Selector.GetHandle("setUsesDataSource:"); private static readonly IntPtr selIndexOfSelectedItemHandle = Selector.GetHandle("indexOfSelectedItem"); private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selCompletesHandle = Selector.GetHandle("completes"); private static readonly IntPtr selSetCompletes_Handle = Selector.GetHandle("setCompletes:"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selObjectValueOfSelectedItemHandle = Selector.GetHandle("objectValueOfSelectedItem"); private static readonly IntPtr selObjectValuesHandle = Selector.GetHandle("objectValues"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr selNoteNumberOfItemsChangedHandle = Selector.GetHandle("noteNumberOfItemsChanged"); private static readonly IntPtr selScrollItemAtIndexToTop_Handle = Selector.GetHandle("scrollItemAtIndexToTop:"); private static readonly IntPtr selScrollItemAtIndexToVisible_Handle = Selector.GetHandle("scrollItemAtIndexToVisible:"); private static readonly IntPtr selSelectItemAtIndex_Handle = Selector.GetHandle("selectItemAtIndex:"); private static readonly IntPtr selDeselectItemAtIndex_Handle = Selector.GetHandle("deselectItemAtIndex:"); private static readonly IntPtr selAddItemWithObjectValue_Handle = Selector.GetHandle("addItemWithObjectValue:"); private static readonly IntPtr selAddItemsWithObjectValues_Handle = Selector.GetHandle("addItemsWithObjectValues:"); private static readonly IntPtr selInsertItemWithObjectValueAtIndex_Handle = Selector.GetHandle("insertItemWithObjectValue:atIndex:"); private static readonly IntPtr selRemoveItemWithObjectValue_Handle = Selector.GetHandle("removeItemWithObjectValue:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr selSelectItemWithObjectValue_Handle = Selector.GetHandle("selectItemWithObjectValue:"); private static readonly IntPtr selItemObjectValueAtIndex_Handle = Selector.GetHandle("itemObjectValueAtIndex:"); private static readonly IntPtr selIndexOfItemWithObjectValue_Handle = Selector.GetHandle("indexOfItemWithObjectValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSComboBox"); private object __mt_DataSource_var; private object __mt_SelectedValue_var; private object __mt_Values_var; private static NSString _SelectionDidChangeNotification; private static NSString _SelectionIsChangingNotification; private static NSString _WillDismissNotification; private static NSString _WillPopUpNotification; public override IntPtr ClassHandle => class_ptr; public virtual bool HasVerticalScroller { [Export("hasVerticalScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasVerticalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasVerticalScrollerHandle); } [Export("setHasVerticalScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasVerticalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasVerticalScroller_Handle, value); } } } public virtual CGSize IntercellSpacing { [Export("intercellSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntercellSpacingHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntercellSpacingHandle); } [Export("setIntercellSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetIntercellSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetIntercellSpacing_Handle, value); } } } public virtual double ItemHeight { [Export("itemHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selItemHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selItemHeightHandle); } [Export("setItemHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetItemHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetItemHeight_Handle, value); } } } public virtual long VisibleItems { [Export("numberOfVisibleItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfVisibleItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfVisibleItemsHandle); } [Export("setNumberOfVisibleItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfVisibleItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfVisibleItems_Handle, value); } } } public virtual bool ButtonBordered { [Export("isButtonBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsButtonBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsButtonBorderedHandle); } [Export("setButtonBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetButtonBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetButtonBordered_Handle, value); } } } public virtual bool UsesDataSource { [Export("usesDataSource")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesDataSourceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesDataSourceHandle); } [Export("setUsesDataSource:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesDataSource_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesDataSource_Handle, value); } } } public virtual long SelectedIndex { [Export("indexOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndexOfSelectedItemHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndexOfSelectedItemHandle); } } public virtual long Count { [Export("numberOfItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } public virtual bool Completes { [Export("completes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCompletesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCompletesHandle); } [Export("setCompletes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCompletes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCompletes_Handle, value); } } } public virtual NSComboBoxDataSource DataSource { [Export("dataSource")] get { NSApplication.EnsureUIThread(); return (NSComboBoxDataSource)(__mt_DataSource_var = ((!IsDirectBinding) ? ((NSComboBoxDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle))) : ((NSComboBoxDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle))))); } [Export("setDataSource:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value.Handle); } __mt_DataSource_var = value; } } public virtual NSObject SelectedValue { [Export("objectValueOfSelectedItem")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_SelectedValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueOfSelectedItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueOfSelectedItemHandle)))); } } public virtual NSObject[] Values { [Export("objectValues")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_Values_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValuesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValuesHandle)))); } } [Field("NSComboBoxSelectionDidChangeNotification", "AppKit")] public static NSString SelectionDidChangeNotification { get { if (_SelectionDidChangeNotification == null) { _SelectionDidChangeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSComboBoxSelectionDidChangeNotification"); } return _SelectionDidChangeNotification; } } [Field("NSComboBoxSelectionIsChangingNotification", "AppKit")] public static NSString SelectionIsChangingNotification { get { if (_SelectionIsChangingNotification == null) { _SelectionIsChangingNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSComboBoxSelectionIsChangingNotification"); } return _SelectionIsChangingNotification; } } [Field("NSComboBoxWillDismissNotification", "AppKit")] public static NSString WillDismissNotification { get { if (_WillDismissNotification == null) { _WillDismissNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSComboBoxWillDismissNotification"); } return _WillDismissNotification; } } [Field("NSComboBoxWillPopUpNotification", "AppKit")] public static NSString WillPopUpNotification { get { if (_WillPopUpNotification == null) { _WillPopUpNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSComboBoxWillPopUpNotification"); } return _WillPopUpNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSComboBox() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSComboBox(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBox(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBox(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSComboBox(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("reloadData")] public virtual void ReloadData() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } [Export("noteNumberOfItemsChanged")] public virtual void NoteNumberOfItemsChanged() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selNoteNumberOfItemsChangedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selNoteNumberOfItemsChangedHandle); } } [Export("scrollItemAtIndexToTop:")] public virtual void ScrollItemAtIndexToTop(long scrollItemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollItemAtIndexToTop_Handle, scrollItemIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollItemAtIndexToTop_Handle, scrollItemIndex); } } [Export("scrollItemAtIndexToVisible:")] public virtual void ScrollItemAtIndexToVisible(long scrollItemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollItemAtIndexToVisible_Handle, scrollItemIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollItemAtIndexToVisible_Handle, scrollItemIndex); } } [Export("selectItemAtIndex:")] public virtual void SelectItem(long itemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSelectItemAtIndex_Handle, itemIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSelectItemAtIndex_Handle, itemIndex); } } [Export("deselectItemAtIndex:")] public virtual void DeselectItem(long itemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selDeselectItemAtIndex_Handle, itemIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selDeselectItemAtIndex_Handle, itemIndex); } } [Export("addItemWithObjectValue:")] public virtual void Add(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemWithObjectValue_Handle, object1.Handle); } } [Export("addItemsWithObjectValues:")] public virtual void Add(NSObject[] items) { NSApplication.EnsureUIThread(); if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemsWithObjectValues_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemsWithObjectValues_Handle, nSArray.Handle); } nSArray.Dispose(); _ = Values; } [Export("insertItemWithObjectValue:atIndex:")] public virtual void Insert(NSObject object1, long index) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertItemWithObjectValueAtIndex_Handle, object1.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertItemWithObjectValueAtIndex_Handle, object1.Handle, index); } _ = Values; } [Export("removeItemWithObjectValue:")] public virtual void Remove(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItemWithObjectValue_Handle, object1.Handle); } _ = Values; } [Export("removeItemAtIndex:")] public virtual void RemoveAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } _ = Values; } [Export("removeAllItems")] public virtual void RemoveAll() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } _ = Values; } [Export("selectItemWithObjectValue:")] public virtual void Select(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItemWithObjectValue_Handle, object1.Handle); } } [Export("itemObjectValueAtIndex:")] public virtual NSComboBox GetItem(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSComboBox)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemObjectValueAtIndex_Handle, index)); } return (NSComboBox)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemObjectValueAtIndex_Handle, index)); } [Export("indexOfItemWithObjectValue:")] public virtual long IndexOf(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithObjectValue_Handle, object1.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithObjectValue_Handle, object1.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DataSource_var = null; __mt_SelectedValue_var = null; __mt_Values_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSComboBoxCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSComboBoxCell", true)] public class NSComboBoxCell : NSTextFieldCell { private static readonly IntPtr selHasVerticalScrollerHandle = Selector.GetHandle("hasVerticalScroller"); private static readonly IntPtr selSetHasVerticalScroller_Handle = Selector.GetHandle("setHasVerticalScroller:"); private static readonly IntPtr selIntercellSpacingHandle = Selector.GetHandle("intercellSpacing"); private static readonly IntPtr selSetIntercellSpacing_Handle = Selector.GetHandle("setIntercellSpacing:"); private static readonly IntPtr selItemHeightHandle = Selector.GetHandle("itemHeight"); private static readonly IntPtr selSetItemHeight_Handle = Selector.GetHandle("setItemHeight:"); private static readonly IntPtr selNumberOfVisibleItemsHandle = Selector.GetHandle("numberOfVisibleItems"); private static readonly IntPtr selSetNumberOfVisibleItems_Handle = Selector.GetHandle("setNumberOfVisibleItems:"); private static readonly IntPtr selIsButtonBorderedHandle = Selector.GetHandle("isButtonBordered"); private static readonly IntPtr selSetButtonBordered_Handle = Selector.GetHandle("setButtonBordered:"); private static readonly IntPtr selUsesDataSourceHandle = Selector.GetHandle("usesDataSource"); private static readonly IntPtr selSetUsesDataSource_Handle = Selector.GetHandle("setUsesDataSource:"); private static readonly IntPtr selIndexOfSelectedItemHandle = Selector.GetHandle("indexOfSelectedItem"); private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selCompletesHandle = Selector.GetHandle("completes"); private static readonly IntPtr selSetCompletes_Handle = Selector.GetHandle("setCompletes:"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selObjectValueOfSelectedItemHandle = Selector.GetHandle("objectValueOfSelectedItem"); private static readonly IntPtr selObjectValuesHandle = Selector.GetHandle("objectValues"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr selNoteNumberOfItemsChangedHandle = Selector.GetHandle("noteNumberOfItemsChanged"); private static readonly IntPtr selScrollItemAtIndexToTop_Handle = Selector.GetHandle("scrollItemAtIndexToTop:"); private static readonly IntPtr selScrollItemAtIndexToVisible_Handle = Selector.GetHandle("scrollItemAtIndexToVisible:"); private static readonly IntPtr selSelectItemAtIndex_Handle = Selector.GetHandle("selectItemAtIndex:"); private static readonly IntPtr selDeselectItemAtIndex_Handle = Selector.GetHandle("deselectItemAtIndex:"); private static readonly IntPtr selAddItemWithObjectValue_Handle = Selector.GetHandle("addItemWithObjectValue:"); private static readonly IntPtr selAddItemsWithObjectValues_Handle = Selector.GetHandle("addItemsWithObjectValues:"); private static readonly IntPtr selInsertItemWithObjectValueAtIndex_Handle = Selector.GetHandle("insertItemWithObjectValue:atIndex:"); private static readonly IntPtr selRemoveItemWithObjectValue_Handle = Selector.GetHandle("removeItemWithObjectValue:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr selSelectItemWithObjectValue_Handle = Selector.GetHandle("selectItemWithObjectValue:"); private static readonly IntPtr selItemObjectValueAtIndex_Handle = Selector.GetHandle("itemObjectValueAtIndex:"); private static readonly IntPtr selIndexOfItemWithObjectValue_Handle = Selector.GetHandle("indexOfItemWithObjectValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSComboBoxCell"); private object __mt_DataSource_var; private object __mt_SelectedValue_var; private object __mt_Values_var; public override IntPtr ClassHandle => class_ptr; public virtual bool HasVerticalScroller { [Export("hasVerticalScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasVerticalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasVerticalScrollerHandle); } [Export("setHasVerticalScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasVerticalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasVerticalScroller_Handle, value); } } } public virtual CGSize IntercellSpacing { [Export("intercellSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntercellSpacingHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntercellSpacingHandle); } [Export("setIntercellSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetIntercellSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetIntercellSpacing_Handle, value); } } } public virtual double ItemHeight { [Export("itemHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selItemHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selItemHeightHandle); } [Export("setItemHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetItemHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetItemHeight_Handle, value); } } } public virtual long VisibleItems { [Export("numberOfVisibleItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfVisibleItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfVisibleItemsHandle); } [Export("setNumberOfVisibleItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfVisibleItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfVisibleItems_Handle, value); } } } public virtual bool ButtonBordered { [Export("isButtonBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsButtonBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsButtonBorderedHandle); } [Export("setButtonBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetButtonBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetButtonBordered_Handle, value); } } } public virtual bool UsesDataSource { [Export("usesDataSource")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesDataSourceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesDataSourceHandle); } [Export("setUsesDataSource:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesDataSource_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesDataSource_Handle, value); } } } public virtual long SelectedIndex { [Export("indexOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndexOfSelectedItemHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndexOfSelectedItemHandle); } } public virtual long Count { [Export("numberOfItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } public virtual bool Completes { [Export("completes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCompletesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCompletesHandle); } [Export("setCompletes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCompletes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCompletes_Handle, value); } } } public virtual NSComboBoxCellDataSource DataSource { [Export("dataSource")] get { NSApplication.EnsureUIThread(); return (NSComboBoxCellDataSource)(__mt_DataSource_var = ((!IsDirectBinding) ? ((NSComboBoxCellDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle))) : ((NSComboBoxCellDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle))))); } [Export("setDataSource:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value.Handle); } __mt_DataSource_var = value; } } public virtual NSObject SelectedValue { [Export("objectValueOfSelectedItem")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_SelectedValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueOfSelectedItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueOfSelectedItemHandle)))); } } public virtual NSObject[] Values { [Export("objectValues")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_Values_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValuesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValuesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSComboBoxCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSComboBoxCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxCell(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSComboBoxCell(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("reloadData")] public virtual void ReloadData() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } [Export("noteNumberOfItemsChanged")] public virtual void NoteNumberOfItemsChanged() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selNoteNumberOfItemsChangedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selNoteNumberOfItemsChangedHandle); } } [Export("scrollItemAtIndexToTop:")] public virtual void ScrollItemAtIndexToTop(int scrollItemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selScrollItemAtIndexToTop_Handle, scrollItemIndex); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selScrollItemAtIndexToTop_Handle, scrollItemIndex); } } [Export("scrollItemAtIndexToVisible:")] public virtual void ScrollItemAtIndexToVisible(int scrollItemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selScrollItemAtIndexToVisible_Handle, scrollItemIndex); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selScrollItemAtIndexToVisible_Handle, scrollItemIndex); } } [Export("selectItemAtIndex:")] public virtual void SelectItem(int itemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSelectItemAtIndex_Handle, itemIndex); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSelectItemAtIndex_Handle, itemIndex); } } [Export("deselectItemAtIndex:")] public virtual void DeselectItem(int itemIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selDeselectItemAtIndex_Handle, itemIndex); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selDeselectItemAtIndex_Handle, itemIndex); } } [Export("addItemWithObjectValue:")] public virtual void Add(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemWithObjectValue_Handle, object1.Handle); } } [Export("addItemsWithObjectValues:")] public virtual void Add(NSObject[] items) { NSApplication.EnsureUIThread(); if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemsWithObjectValues_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemsWithObjectValues_Handle, nSArray.Handle); } nSArray.Dispose(); _ = Values; } [Export("insertItemWithObjectValue:atIndex:")] public virtual void Insert(NSObject object1, int index) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertItemWithObjectValueAtIndex_Handle, object1.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertItemWithObjectValueAtIndex_Handle, object1.Handle, index); } _ = Values; } [Export("removeItemWithObjectValue:")] public virtual void Remove(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItemWithObjectValue_Handle, object1.Handle); } _ = Values; } [Export("removeItemAtIndex:")] public virtual void RemoveAt(int index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } _ = Values; } [Export("removeAllItems")] public virtual void RemoveAll() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } _ = Values; } [Export("selectItemWithObjectValue:")] public virtual void Select(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItemWithObjectValue_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItemWithObjectValue_Handle, object1.Handle); } } [Export("itemObjectValueAtIndex:")] public virtual NSComboBox GetItem(int index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSComboBox)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItemObjectValueAtIndex_Handle, index)); } return (NSComboBox)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItemObjectValueAtIndex_Handle, index)); } [Export("indexOfItemWithObjectValue:")] public virtual long IndexOf(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithObjectValue_Handle, object1.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithObjectValue_Handle, object1.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DataSource_var = null; __mt_SelectedValue_var = null; __mt_Values_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSComboBoxCellDataSource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSComboBoxCellDataSource", true)] [Model] public class NSComboBoxCellDataSource : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSComboBoxCellDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSComboBoxCellDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxCellDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxCellDataSource(IntPtr handle) : base(handle) { } [Export("comboBoxCell:objectValueForItemAtIndex:")] public virtual NSObject ObjectValueForItem(NSComboBoxCell comboBox, int index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("numberOfItemsInComboBoxCell:")] public virtual int ItemCount(NSComboBoxCell comboBox) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("comboBoxCell:completedString:")] public virtual string CompletedString(NSComboBoxCell comboBox, string uncompletedString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("comboBoxCell:indexOfItemWithStringValue:")] public virtual uint IndexOfItem(NSComboBoxCell comboBox, string value) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSComboBoxDataSource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSComboBoxDataSource", true)] [Model] public class NSComboBoxDataSource : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSComboBoxDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSComboBoxDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComboBoxDataSource(IntPtr handle) : base(handle) { } [Export("comboBox:objectValueForItemAtIndex:")] public virtual NSObject ObjectValueForItem(NSComboBox comboBox, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("numberOfItemsInComboBox:")] public virtual long ItemCount(NSComboBox comboBox) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("comboBox:completedString:")] public virtual string CompletedString(NSComboBox comboBox, string uncompletedString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("comboBox:indexOfItemWithStringValue:")] public virtual long IndexOfItem(NSComboBox comboBox, string value) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSComposite.cs ================================================ namespace AppKit; public enum NSComposite : ulong { Clear, Copy, SourceOver, SourceIn, SourceOut, SourceAtop, DestinationOver, DestinationIn, DestinationOut, DestinationAtop, XOR, PlusDarker, Highlight, PlusLighter } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCompositingOperation.cs ================================================ namespace AppKit; public enum NSCompositingOperation : ulong { Clear, Copy, SourceOver, SourceIn, SourceOut, SourceAtop, DestinationOver, DestinationIn, DestinationOut, DestinationAtop, Xor, PlusDarker, Highlight, PlusLighter } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControl.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSControl", true)] public class NSControl : NSView { private static readonly IntPtr selSelectedCellHandle = Selector.GetHandle("selectedCell"); private static readonly IntPtr selSelectedTagHandle = Selector.GetHandle("selectedTag"); private static readonly IntPtr selCurrentEditorHandle = Selector.GetHandle("currentEditor"); private static readonly IntPtr selCellClassHandle = Selector.GetHandle("cellClass"); private static readonly IntPtr selSetCellClass_Handle = Selector.GetHandle("setCellClass:"); private static readonly IntPtr selCellHandle = Selector.GetHandle("cell"); private static readonly IntPtr selSetCell_Handle = Selector.GetHandle("setCell:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selSetTag_Handle = Selector.GetHandle("setTag:"); private static readonly IntPtr selIgnoresMultiClickHandle = Selector.GetHandle("ignoresMultiClick"); private static readonly IntPtr selSetIgnoresMultiClick_Handle = Selector.GetHandle("setIgnoresMultiClick:"); private static readonly IntPtr selIsContinuousHandle = Selector.GetHandle("isContinuous"); private static readonly IntPtr selSetContinuous_Handle = Selector.GetHandle("setContinuous:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selFormatterHandle = Selector.GetHandle("formatter"); private static readonly IntPtr selSetFormatter_Handle = Selector.GetHandle("setFormatter:"); private static readonly IntPtr selObjectValueHandle = Selector.GetHandle("objectValue"); private static readonly IntPtr selSetObjectValue_Handle = Selector.GetHandle("setObjectValue:"); private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selSetStringValue_Handle = Selector.GetHandle("setStringValue:"); private static readonly IntPtr selAttributedStringValueHandle = Selector.GetHandle("attributedStringValue"); private static readonly IntPtr selSetAttributedStringValue_Handle = Selector.GetHandle("setAttributedStringValue:"); private static readonly IntPtr selIntValueHandle = Selector.GetHandle("intValue"); private static readonly IntPtr selSetIntValue_Handle = Selector.GetHandle("setIntValue:"); private static readonly IntPtr selFloatValueHandle = Selector.GetHandle("floatValue"); private static readonly IntPtr selSetFloatValue_Handle = Selector.GetHandle("setFloatValue:"); private static readonly IntPtr selDoubleValueHandle = Selector.GetHandle("doubleValue"); private static readonly IntPtr selSetDoubleValue_Handle = Selector.GetHandle("setDoubleValue:"); private static readonly IntPtr selBaseWritingDirectionHandle = Selector.GetHandle("baseWritingDirection"); private static readonly IntPtr selSetBaseWritingDirection_Handle = Selector.GetHandle("setBaseWritingDirection:"); private static readonly IntPtr selIntegerValueHandle = Selector.GetHandle("integerValue"); private static readonly IntPtr selSetIntegerValue_Handle = Selector.GetHandle("setIntegerValue:"); private static readonly IntPtr selRefusesFirstResponderHandle = Selector.GetHandle("refusesFirstResponder"); private static readonly IntPtr selSetRefusesFirstResponder_Handle = Selector.GetHandle("setRefusesFirstResponder:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr selCalcSizeHandle = Selector.GetHandle("calcSize"); private static readonly IntPtr selSendActionOn_Handle = Selector.GetHandle("sendActionOn:"); private static readonly IntPtr selSetNeedsDisplayHandle = Selector.GetHandle("setNeedsDisplay"); private static readonly IntPtr selUpdateCell_Handle = Selector.GetHandle("updateCell:"); private static readonly IntPtr selUpdateCellInside_Handle = Selector.GetHandle("updateCellInside:"); private static readonly IntPtr selDrawCellInside_Handle = Selector.GetHandle("drawCellInside:"); private static readonly IntPtr selDrawCell_Handle = Selector.GetHandle("drawCell:"); private static readonly IntPtr selSelectCell_Handle = Selector.GetHandle("selectCell:"); private static readonly IntPtr selSendActionTo_Handle = Selector.GetHandle("sendAction:to:"); private static readonly IntPtr selTakeIntValueFrom_Handle = Selector.GetHandle("takeIntValueFrom:"); private static readonly IntPtr selTakeFloatValueFrom_Handle = Selector.GetHandle("takeFloatValueFrom:"); private static readonly IntPtr selTakeDoubleValueFrom_Handle = Selector.GetHandle("takeDoubleValueFrom:"); private static readonly IntPtr selTakeStringValueFrom_Handle = Selector.GetHandle("takeStringValueFrom:"); private static readonly IntPtr selTakeObjectValueFrom_Handle = Selector.GetHandle("takeObjectValueFrom:"); private static readonly IntPtr selAbortEditingHandle = Selector.GetHandle("abortEditing"); private static readonly IntPtr selValidateEditingHandle = Selector.GetHandle("validateEditing"); private static readonly IntPtr selMouseDown_Handle = Selector.GetHandle("mouseDown:"); private static readonly IntPtr selTakeIntegerValueFrom_Handle = Selector.GetHandle("takeIntegerValueFrom:"); private static readonly IntPtr selInvalidateIntrinsicContentSizeForCell_Handle = Selector.GetHandle("invalidateIntrinsicContentSizeForCell:"); private static readonly IntPtr selPerformClick_Handle = Selector.GetHandle("performClick:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSControl"); private object __mt_SelectedCell_var; private object __mt_CurrentEditor_var; private object __mt_Cell_var; private object __mt_Target_var; private object __mt_Font_var; private object __mt_Formatter_var; private object __mt_ObjectValue_var; private object __mt_AttributedStringValue_var; public override IntPtr ClassHandle => class_ptr; public virtual NSCell SelectedCell { [Export("selectedCell")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_SelectedCell_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedCellHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedCellHandle))))); } } public virtual long SelectedTag { [Export("selectedTag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedTagHandle); } } public virtual NSText CurrentEditor { [Export("currentEditor")] get { NSApplication.EnsureUIThread(); return (NSText)(__mt_CurrentEditor_var = ((!IsDirectBinding) ? ((NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentEditorHandle))) : ((NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentEditorHandle))))); } } public static Class CellClass { [Export("cellClass")] get { NSApplication.EnsureUIThread(); return new Class(Messaging.IntPtr_objc_msgSend(class_ptr, selCellClassHandle)); } [Export("setCellClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetCellClass_Handle, value.Handle); } } public virtual NSCell Cell { [Export("cell")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_Cell_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCellHandle))))); } [Export("setCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCell_Handle, value.Handle); } __mt_Cell_var = value; } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public new virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } [Export("setTag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTag_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTag_Handle, value); } } } public virtual bool IgnoresMultiClick { [Export("ignoresMultiClick")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIgnoresMultiClickHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIgnoresMultiClickHandle); } [Export("setIgnoresMultiClick:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIgnoresMultiClick_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIgnoresMultiClick_Handle, value); } } } public virtual bool Continuous { [Export("isContinuous")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContinuousHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContinuousHandle); } [Export("setContinuous:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetContinuous_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetContinuous_Handle, value); } } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSObject Formatter { [Export("formatter")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Formatter_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatterHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatterHandle)))); } [Export("setFormatter:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFormatter_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFormatter_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Formatter_var = value; } } public virtual NSObject ObjectValue { [Export("objectValue")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ObjectValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueHandle)))); } [Export("setObjectValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectValue_Handle, value.Handle); } __mt_ObjectValue_var = value; } } public virtual string StringValue { [Export("stringValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } [Export("setStringValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStringValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString AttributedStringValue { [Export("attributedStringValue")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedStringValue_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedStringValueHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedStringValueHandle))))); } [Export("setAttributedStringValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedStringValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedStringValue_Handle, value.Handle); } __mt_AttributedStringValue_var = value; } } public virtual int IntValue { [Export("intValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIntValueHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIntValueHandle); } [Export("setIntValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetIntValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetIntValue_Handle, value); } } } public virtual float FloatValue { [Export("floatValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selFloatValueHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selFloatValueHandle); } [Export("setFloatValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetFloatValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetFloatValue_Handle, value); } } } public virtual double DoubleValue { [Export("doubleValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDoubleValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDoubleValueHandle); } [Export("setDoubleValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDoubleValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDoubleValue_Handle, value); } } } public virtual NSWritingDirection BaseWritingDirection { [Export("baseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBaseWritingDirectionHandle); } [Export("setBaseWritingDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBaseWritingDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBaseWritingDirection_Handle, (long)value); } } } public virtual long IntegerValue { [Export("integerValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIntegerValueHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIntegerValueHandle); } [Export("setIntegerValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetIntegerValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetIntegerValue_Handle, value); } } } public virtual bool RefusesFirstResponder { [Export("refusesFirstResponder")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRefusesFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRefusesFirstResponderHandle); } [Export("setRefusesFirstResponder:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRefusesFirstResponder_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRefusesFirstResponder_Handle, value); } } } public event EventHandler Activated { add { Target = ActionDispatcher.SetupAction(Target, value); Action = ActionDispatcher.Action; } remove { ActionDispatcher.RemoveAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSControl() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSControl(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSControl(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSControl(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSControl(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } [Export("calcSize")] public virtual void CalcSize() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCalcSizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCalcSizeHandle); } } [Export("sendActionOn:")] public virtual long SendActionOn(NSEventType mask) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_UInt64(base.Handle, selSendActionOn_Handle, (ulong)mask); } return Messaging.Int64_objc_msgSendSuper_UInt64(base.SuperHandle, selSendActionOn_Handle, (ulong)mask); } [Export("setNeedsDisplay")] public virtual void SetNeedsDisplay() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetNeedsDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetNeedsDisplayHandle); } } [Export("updateCell:")] public virtual void UpdateCell(NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUpdateCell_Handle, aCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUpdateCell_Handle, aCell.Handle); } } [Export("updateCellInside:")] public virtual void UpdateCellInside(NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUpdateCellInside_Handle, aCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUpdateCellInside_Handle, aCell.Handle); } } [Export("drawCellInside:")] public virtual void DrawCellInside(NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDrawCellInside_Handle, aCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDrawCellInside_Handle, aCell.Handle); } } [Export("drawCell:")] public virtual void DrawCell(NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDrawCell_Handle, aCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDrawCell_Handle, aCell.Handle); } } [Export("selectCell:")] public virtual void SelectCell(NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectCell_Handle, aCell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectCell_Handle, aCell.Handle); } } [Export("sendAction:to:")] public virtual bool SendAction(Selector theAction, NSObject theTarget) { NSApplication.EnsureUIThread(); if (theAction == null) { throw new ArgumentNullException("theAction"); } if (theTarget == null) { throw new ArgumentNullException("theTarget"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSendActionTo_Handle, theAction.Handle, theTarget.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSendActionTo_Handle, theAction.Handle, theTarget.Handle); } [Export("takeIntValueFrom:")] public virtual void TakeIntValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeIntValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeIntValueFrom_Handle, sender.Handle); } } [Export("takeFloatValueFrom:")] public virtual void TakeFloatValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeFloatValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeFloatValueFrom_Handle, sender.Handle); } } [Export("takeDoubleValueFrom:")] public virtual void TakeDoubleValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeDoubleValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeDoubleValueFrom_Handle, sender.Handle); } } [Export("takeStringValueFrom:")] public virtual void TakeStringValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeStringValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeStringValueFrom_Handle, sender.Handle); } } [Export("takeObjectValueFrom:")] public virtual void TakeObjectValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeObjectValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeObjectValueFrom_Handle, sender.Handle); } } [Export("abortEditing")] public virtual bool AbortEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAbortEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAbortEditingHandle); } [Export("validateEditing")] public virtual void ValidateEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selValidateEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selValidateEditingHandle); } } [Export("mouseDown:")] public new virtual void MouseDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseDown_Handle, theEvent.Handle); } } [Export("takeIntegerValueFrom:")] public virtual void TakeIntegerValueFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeIntegerValueFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeIntegerValueFrom_Handle, sender.Handle); } } [Export("invalidateIntrinsicContentSizeForCell:")] public virtual void InvalidateIntrinsicContentSizeForCell(NSCell cell) { NSApplication.EnsureUIThread(); if (cell == null) { throw new ArgumentNullException("cell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInvalidateIntrinsicContentSizeForCell_Handle, cell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInvalidateIntrinsicContentSizeForCell_Handle, cell.Handle); } } [Export("performClick:")] public virtual void PerformClick(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformClick_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformClick_Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SelectedCell_var = null; __mt_CurrentEditor_var = null; __mt_Cell_var = null; __mt_Target_var = null; __mt_Font_var = null; __mt_Formatter_var = null; __mt_ObjectValue_var = null; __mt_AttributedStringValue_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlCommand.cs ================================================ using ObjCRuntime; namespace AppKit; public delegate bool NSControlCommand(NSControl control, NSTextView textView, Selector commandSelector); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlSize.cs ================================================ namespace AppKit; public enum NSControlSize : ulong { Regular, Small, Mini } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlText.cs ================================================ namespace AppKit; public delegate bool NSControlText(NSControl control, NSText fieldEditor); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTextCompletion.cs ================================================ using Foundation; namespace AppKit; public delegate string[] NSControlTextCompletion(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTextError.cs ================================================ namespace AppKit; public delegate bool NSControlTextError(NSControl control, string str, string error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTextErrorEventArgs.cs ================================================ using System; namespace AppKit; public class NSControlTextErrorEventArgs : EventArgs { public string Str { get; set; } public string Error { get; set; } public NSControlTextErrorEventArgs(string str, string error) { Str = str; Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTextFilter.cs ================================================ using Foundation; namespace AppKit; public delegate string[] NSControlTextFilter(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTextValidation.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSControlTextValidation(NSControl control, NSObject objectToValidate); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSControlTint.cs ================================================ namespace AppKit; public enum NSControlTint : ulong { Default = 0uL, Blue = 1uL, Graphite = 6uL, Clear = 7uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSController", true)] public class NSController : NSObject { private static readonly IntPtr selCommitEditingHandle = Selector.GetHandle("commitEditing"); private static readonly IntPtr selIsEditingHandle = Selector.GetHandle("isEditing"); private static readonly IntPtr selObjectDidBeginEditing_Handle = Selector.GetHandle("objectDidBeginEditing:"); private static readonly IntPtr selObjectDidEndEditing_Handle = Selector.GetHandle("objectDidEndEditing:"); private static readonly IntPtr selDiscardEditingHandle = Selector.GetHandle("discardEditing"); private static readonly IntPtr selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle = Selector.GetHandle("commitEditingWithDelegate:didCommitSelector:contextInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSController"); public override IntPtr ClassHandle => class_ptr; public new virtual bool CommitEditing { [Export("commitEditing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCommitEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCommitEditingHandle); } } public virtual bool IsEditing { [Export("isEditing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditingHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSController(IntPtr handle) : base(handle) { } [Export("objectDidBeginEditing:")] public virtual void ObjectDidBeginEditing(NSObject editor) { NSApplication.EnsureUIThread(); if (editor == null) { throw new ArgumentNullException("editor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selObjectDidBeginEditing_Handle, editor.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectDidBeginEditing_Handle, editor.Handle); } } [Export("objectDidEndEditing:")] public new virtual void ObjectDidEndEditing(NSObject editor) { NSApplication.EnsureUIThread(); if (editor == null) { throw new ArgumentNullException("editor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selObjectDidEndEditing_Handle, editor.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectDidEndEditing_Handle, editor.Handle); } } [Export("discardEditing")] public virtual void DiscardEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardEditingHandle); } } [Export("commitEditingWithDelegate:didCommitSelector:contextInfo:")] public virtual void CommitEditingWithDelegate(NSObject delegate1, Selector didCommitSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegate1 == null) { throw new ArgumentNullException("delegate1"); } if (didCommitSelector == null) { throw new ArgumentNullException("didCommitSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, delegate1.Handle, didCommitSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, delegate1.Handle, didCommitSelector.Handle, contextInfo); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCursor.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCursor", true)] public class NSCursor : NSObject { private static readonly IntPtr selCurrentCursorHandle = Selector.GetHandle("currentCursor"); private static readonly IntPtr selCurrentSystemCursorHandle = Selector.GetHandle("currentSystemCursor"); private static readonly IntPtr selArrowCursorHandle = Selector.GetHandle("arrowCursor"); private static readonly IntPtr selIBeamCursorHandle = Selector.GetHandle("IBeamCursor"); private static readonly IntPtr selPointingHandCursorHandle = Selector.GetHandle("pointingHandCursor"); private static readonly IntPtr selClosedHandCursorHandle = Selector.GetHandle("closedHandCursor"); private static readonly IntPtr selOpenHandCursorHandle = Selector.GetHandle("openHandCursor"); private static readonly IntPtr selResizeLeftCursorHandle = Selector.GetHandle("resizeLeftCursor"); private static readonly IntPtr selResizeRightCursorHandle = Selector.GetHandle("resizeRightCursor"); private static readonly IntPtr selResizeLeftRightCursorHandle = Selector.GetHandle("resizeLeftRightCursor"); private static readonly IntPtr selResizeUpCursorHandle = Selector.GetHandle("resizeUpCursor"); private static readonly IntPtr selResizeDownCursorHandle = Selector.GetHandle("resizeDownCursor"); private static readonly IntPtr selResizeUpDownCursorHandle = Selector.GetHandle("resizeUpDownCursor"); private static readonly IntPtr selCrosshairCursorHandle = Selector.GetHandle("crosshairCursor"); private static readonly IntPtr selDisappearingItemCursorHandle = Selector.GetHandle("disappearingItemCursor"); private static readonly IntPtr selOperationNotAllowedCursorHandle = Selector.GetHandle("operationNotAllowedCursor"); private static readonly IntPtr selDragLinkCursorHandle = Selector.GetHandle("dragLinkCursor"); private static readonly IntPtr selDragCopyCursorHandle = Selector.GetHandle("dragCopyCursor"); private static readonly IntPtr selContextualMenuCursorHandle = Selector.GetHandle("contextualMenuCursor"); private static readonly IntPtr selIBeamCursorForVerticalLayoutHandle = Selector.GetHandle("IBeamCursorForVerticalLayout"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selHotSpotHandle = Selector.GetHandle("hotSpot"); private static readonly IntPtr selInitWithImageHotSpot_Handle = Selector.GetHandle("initWithImage:hotSpot:"); private static readonly IntPtr selInitWithImageForegroundColorHintBackgroundColorHintHotSpot_Handle = Selector.GetHandle("initWithImage:foregroundColorHint:backgroundColorHint:hotSpot:"); private static readonly IntPtr selHideHandle = Selector.GetHandle("hide"); private static readonly IntPtr selUnhideHandle = Selector.GetHandle("unhide"); private static readonly IntPtr selSetHiddenUntilMouseMoves_Handle = Selector.GetHandle("setHiddenUntilMouseMoves:"); private static readonly IntPtr selPushHandle = Selector.GetHandle("push"); private static readonly IntPtr selPopHandle = Selector.GetHandle("pop"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selSetOnMouseExited_Handle = Selector.GetHandle("setOnMouseExited:"); private static readonly IntPtr selSetOnMouseEntered_Handle = Selector.GetHandle("setOnMouseEntered:"); private static readonly IntPtr selIsSetOnMouseExitedHandle = Selector.GetHandle("isSetOnMouseExited"); private static readonly IntPtr selIsSetOnMouseEnteredHandle = Selector.GetHandle("isSetOnMouseEntered"); private static readonly IntPtr selMouseEntered_Handle = Selector.GetHandle("mouseEntered:"); private static readonly IntPtr selMouseExited_Handle = Selector.GetHandle("mouseExited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCursor"); private static object __mt_CurrentCursor_var_static; private static object __mt_CurrentSystemCursor_var_static; private static object __mt_ArrowCursor_var_static; private static object __mt_IBeamCursor_var_static; private static object __mt_PointingHandCursor_var_static; private static object __mt_ClosedHandCursor_var_static; private static object __mt_OpenHandCursor_var_static; private static object __mt_ResizeLeftCursor_var_static; private static object __mt_ResizeRightCursor_var_static; private static object __mt_ResizeLeftRightCursor_var_static; private static object __mt_ResizeUpCursor_var_static; private static object __mt_ResizeDownCursor_var_static; private static object __mt_ResizeUpDownCursor_var_static; private static object __mt_CrosshairCursor_var_static; private static object __mt_DisappearingItemCursor_var_static; private static object __mt_OperationNotAllowedCursor_var_static; private static object __mt_DragLinkCursor_var_static; private static object __mt_DragCopyCursor_var_static; private static object __mt_ContextualMenuCursor_var_static; private static object __mt_IBeamCursorForVerticalLayout_var_static; private object __mt_Image_var; public override IntPtr ClassHandle => class_ptr; public static NSCursor CurrentCursor { [Export("currentCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_CurrentCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentCursorHandle))); } } public static NSCursor CurrentSystemCursor { [Export("currentSystemCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_CurrentSystemCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentSystemCursorHandle))); } } public static NSCursor ArrowCursor { [Export("arrowCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ArrowCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selArrowCursorHandle))); } } public static NSCursor IBeamCursor { [Export("IBeamCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_IBeamCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selIBeamCursorHandle))); } } public static NSCursor PointingHandCursor { [Export("pointingHandCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_PointingHandCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPointingHandCursorHandle))); } } public static NSCursor ClosedHandCursor { [Export("closedHandCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ClosedHandCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selClosedHandCursorHandle))); } } public static NSCursor OpenHandCursor { [Export("openHandCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_OpenHandCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOpenHandCursorHandle))); } } public static NSCursor ResizeLeftCursor { [Export("resizeLeftCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeLeftCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeLeftCursorHandle))); } } public static NSCursor ResizeRightCursor { [Export("resizeRightCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeRightCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeRightCursorHandle))); } } public static NSCursor ResizeLeftRightCursor { [Export("resizeLeftRightCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeLeftRightCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeLeftRightCursorHandle))); } } public static NSCursor ResizeUpCursor { [Export("resizeUpCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeUpCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeUpCursorHandle))); } } public static NSCursor ResizeDownCursor { [Export("resizeDownCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeDownCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeDownCursorHandle))); } } public static NSCursor ResizeUpDownCursor { [Export("resizeUpDownCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ResizeUpDownCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selResizeUpDownCursorHandle))); } } public static NSCursor CrosshairCursor { [Export("crosshairCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_CrosshairCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCrosshairCursorHandle))); } } public static NSCursor DisappearingItemCursor { [Export("disappearingItemCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_DisappearingItemCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDisappearingItemCursorHandle))); } } public static NSCursor OperationNotAllowedCursor { [Export("operationNotAllowedCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_OperationNotAllowedCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOperationNotAllowedCursorHandle))); } } public static NSCursor DragLinkCursor { [Export("dragLinkCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_DragLinkCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDragLinkCursorHandle))); } } public static NSCursor DragCopyCursor { [Export("dragCopyCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_DragCopyCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDragCopyCursorHandle))); } } public static NSCursor ContextualMenuCursor { [Export("contextualMenuCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_ContextualMenuCursor_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selContextualMenuCursorHandle))); } } public static NSCursor IBeamCursorForVerticalLayout { [Export("IBeamCursorForVerticalLayout")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_IBeamCursorForVerticalLayout_var_static = (NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selIBeamCursorForVerticalLayoutHandle))); } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } } public virtual CGPoint HotSpot { [Export("hotSpot")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selHotSpotHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selHotSpotHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCursor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCursor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCursor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCursor(IntPtr handle) : base(handle) { } [Export("initWithImage:hotSpot:")] public NSCursor(NSImage newImage, CGPoint aPoint) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (newImage == null) { throw new ArgumentNullException("newImage"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_CGPoint(base.Handle, selInitWithImageHotSpot_Handle, newImage.Handle, aPoint); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selInitWithImageHotSpot_Handle, newImage.Handle, aPoint); } } [Export("initWithImage:foregroundColorHint:backgroundColorHint:hotSpot:")] public NSCursor(NSImage newImage, NSColor fg, NSColor bg, CGPoint hotSpot) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (newImage == null) { throw new ArgumentNullException("newImage"); } if (fg == null) { throw new ArgumentNullException("fg"); } if (bg == null) { throw new ArgumentNullException("bg"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_CGPoint(base.Handle, selInitWithImageForegroundColorHintBackgroundColorHintHotSpot_Handle, newImage.Handle, fg.Handle, bg.Handle, hotSpot); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_CGPoint(base.SuperHandle, selInitWithImageForegroundColorHintBackgroundColorHintHotSpot_Handle, newImage.Handle, fg.Handle, bg.Handle, hotSpot); } } [Export("hide")] public static void Hide() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selHideHandle); } [Export("unhide")] public static void Unhide() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selUnhideHandle); } [Export("setHiddenUntilMouseMoves:")] public static void SetHiddenUntilMouseMoves(bool flag) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetHiddenUntilMouseMoves_Handle, flag); } [Export("push")] public virtual void Push() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPushHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPushHandle); } } [Export("pop")] public virtual void Pop() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPopHandle); } } [Export("set")] public virtual void Set() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } [Export("setOnMouseExited:")] public virtual void SetOnMouseExited(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOnMouseExited_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOnMouseExited_Handle, flag); } } [Export("setOnMouseEntered:")] public virtual void SetOnMouseEntered(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOnMouseEntered_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOnMouseEntered_Handle, flag); } } [Export("isSetOnMouseExited")] public virtual bool IsSetOnMouseExited() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSetOnMouseExitedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSetOnMouseExitedHandle); } [Export("isSetOnMouseEntered")] public virtual bool IsSetOnMouseEntered() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSetOnMouseEnteredHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSetOnMouseEnteredHandle); } [Export("mouseEntered:")] public virtual void MouseEntered(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseEntered_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseEntered_Handle, theEvent.Handle); } } [Export("mouseExited:")] public virtual void MouseExited(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseExited_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseExited_Handle, theEvent.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSCustomImageRep.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSCustomImageRep", true)] public class NSCustomImageRep : NSImageRep { private static readonly IntPtr selDrawSelectorHandle = Selector.GetHandle("drawSelector"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selInitWithDrawSelectorDelegate_Handle = Selector.GetHandle("initWithDrawSelector:delegate:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCustomImageRep"); private object __mt_Delegate_var; public override IntPtr ClassHandle => class_ptr; public virtual Selector DrawSelector { [Export("drawSelector")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDrawSelectorHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDrawSelectorHandle)); } } public virtual NSObject Delegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Delegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCustomImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCustomImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCustomImageRep(IntPtr handle) : base(handle) { } [Export("initWithDrawSelector:delegate:")] public NSCustomImageRep(Selector drawSelectorMethod, NSObject delegateObject) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (drawSelectorMethod == null) { throw new ArgumentNullException("drawSelectorMethod"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDrawSelectorDelegate_Handle, drawSelectorMethod.Handle, delegateObject.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDrawSelectorDelegate_Handle, drawSelectorMethod.Handle, delegateObject.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Delegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDataEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSDataEventArgs : EventArgs { public NSData DeviceToken { get; set; } public NSDataEventArgs(NSData deviceToken) { DeviceToken = deviceToken; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePicker.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDatePicker", true)] public class NSDatePicker : NSControl { [Register] private sealed class _NSDatePickerCellDelegate : NSDatePickerCellDelegate { internal EventHandler validateProposedDateValue; [Preserve(Conditional = true)] public override void ValidateProposedDateValue(NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval) { EventHandler eventHandler = validateProposedDateValue; if (eventHandler != null) { NSDatePickerValidatorEventArgs nSDatePickerValidatorEventArgs = new NSDatePickerValidatorEventArgs(proposedDateValue, proposedTimeInterval); eventHandler(aDatePickerCell, nSDatePickerValidatorEventArgs); proposedDateValue = nSDatePickerValidatorEventArgs.ProposedDateValue; } } } private static readonly IntPtr selDatePickerStyleHandle = Selector.GetHandle("datePickerStyle"); private static readonly IntPtr selSetDatePickerStyle_Handle = Selector.GetHandle("setDatePickerStyle:"); private static readonly IntPtr selIsBezeledHandle = Selector.GetHandle("isBezeled"); private static readonly IntPtr selSetBezeled_Handle = Selector.GetHandle("setBezeled:"); private static readonly IntPtr selIsBorderedHandle = Selector.GetHandle("isBordered"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selCellHandle = Selector.GetHandle("cell"); private static readonly IntPtr selSetCell_Handle = Selector.GetHandle("setCell:"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selSetTextColor_Handle = Selector.GetHandle("setTextColor:"); private static readonly IntPtr selDatePickerModeHandle = Selector.GetHandle("datePickerMode"); private static readonly IntPtr selSetDatePickerMode_Handle = Selector.GetHandle("setDatePickerMode:"); private static readonly IntPtr selDatePickerElementsHandle = Selector.GetHandle("datePickerElements"); private static readonly IntPtr selSetDatePickerElements_Handle = Selector.GetHandle("setDatePickerElements:"); private static readonly IntPtr selCalendarHandle = Selector.GetHandle("calendar"); private static readonly IntPtr selSetCalendar_Handle = Selector.GetHandle("setCalendar:"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selTimeZoneHandle = Selector.GetHandle("timeZone"); private static readonly IntPtr selSetTimeZone_Handle = Selector.GetHandle("setTimeZone:"); private static readonly IntPtr selDateValueHandle = Selector.GetHandle("dateValue"); private static readonly IntPtr selSetDateValue_Handle = Selector.GetHandle("setDateValue:"); private static readonly IntPtr selTimeIntervalHandle = Selector.GetHandle("timeInterval"); private static readonly IntPtr selSetTimeInterval_Handle = Selector.GetHandle("setTimeInterval:"); private static readonly IntPtr selMinDateHandle = Selector.GetHandle("minDate"); private static readonly IntPtr selSetMinDate_Handle = Selector.GetHandle("setMinDate:"); private static readonly IntPtr selMaxDateHandle = Selector.GetHandle("maxDate"); private static readonly IntPtr selSetMaxDate_Handle = Selector.GetHandle("setMaxDate:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDatePicker"); private object __mt_BackgroundColor_var; private object __mt_Cell_var; private object __mt_TextColor_var; private object __mt_Calendar_var; private object __mt_Locale_var; private object __mt_TimeZone_var; private object __mt_DateValue_var; private object __mt_MinDate_var; private object __mt_MaxDate_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDatePickerStyle DatePickerStyle { [Export("datePickerStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerStyle)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerStyleHandle); } return (NSDatePickerStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerStyleHandle); } [Export("setDatePickerStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerStyle_Handle, (ulong)value); } } } public virtual bool Bezeled { [Export("isBezeled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBezeledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBezeledHandle); } [Export("setBezeled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBezeled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBezeled_Handle, value); } } } public virtual bool Bordered { [Export("isBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBorderedHandle); } [Export("setBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, value); } } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public new virtual NSDatePickerCell Cell { [Export("cell")] get { NSApplication.EnsureUIThread(); return (NSDatePickerCell)(__mt_Cell_var = ((!IsDirectBinding) ? ((NSDatePickerCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellHandle))) : ((NSDatePickerCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCellHandle))))); } [Export("setCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCell_Handle, value.Handle); } __mt_Cell_var = value; } } public virtual NSColor TextColor { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextColorHandle))))); } [Export("setTextColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextColor_Handle, value.Handle); } __mt_TextColor_var = value; } } public virtual NSDatePickerMode DatePickerMode { [Export("datePickerMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerMode)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerModeHandle); } return (NSDatePickerMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerModeHandle); } [Export("setDatePickerMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerMode_Handle, (ulong)value); } } } public virtual NSDatePickerElementFlags DatePickerElements { [Export("datePickerElements")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerElementFlags)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerElementsHandle); } return (NSDatePickerElementFlags)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerElementsHandle); } [Export("setDatePickerElements:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerElements_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerElements_Handle, (ulong)value); } } } public virtual NSCalendar Calendar { [Export("calendar")] get { NSApplication.EnsureUIThread(); return (NSCalendar)(__mt_Calendar_var = ((!IsDirectBinding) ? ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalendarHandle))) : ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCalendarHandle))))); } [Export("setCalendar:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCalendar_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCalendar_Handle, value.Handle); } __mt_Calendar_var = value; } } public virtual NSLocale Locale { [Export("locale")] get { NSApplication.EnsureUIThread(); return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public virtual NSTimeZone TimeZone { [Export("timeZone")] get { NSApplication.EnsureUIThread(); return (NSTimeZone)(__mt_TimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimeZoneHandle))))); } [Export("setTimeZone:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimeZone_Handle, value.Handle); } __mt_TimeZone_var = value; } } public virtual NSDate DateValue { [Export("dateValue")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_DateValue_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateValueHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDateValueHandle))))); } [Export("setDateValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDateValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDateValue_Handle, value.Handle); } __mt_DateValue_var = value; } } public virtual double TimeInterval { [Export("timeInterval")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeIntervalHandle); } [Export("setTimeInterval:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTimeInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTimeInterval_Handle, value); } } } public virtual NSDate MinDate { [Export("minDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_MinDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMinDateHandle))))); } [Export("setMinDate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinDate_Handle, value.Handle); } __mt_MinDate_var = value; } } public virtual NSDate MaxDate { [Export("maxDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_MaxDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMaxDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMaxDateHandle))))); } [Export("setMaxDate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMaxDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMaxDate_Handle, value.Handle); } __mt_MaxDate_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSDatePickerCellDelegate Delegate { get { return WeakDelegate as NSDatePickerCellDelegate; } set { WeakDelegate = value; } } public event EventHandler ValidateProposedDateValue { add { _NSDatePickerCellDelegate nSDatePickerCellDelegate = EnsureNSDatePickerCellDelegate(); nSDatePickerCellDelegate.validateProposedDateValue = (EventHandler)System.Delegate.Combine(nSDatePickerCellDelegate.validateProposedDateValue, value); } remove { _NSDatePickerCellDelegate nSDatePickerCellDelegate = EnsureNSDatePickerCellDelegate(); nSDatePickerCellDelegate.validateProposedDateValue = (EventHandler)System.Delegate.Remove(nSDatePickerCellDelegate.validateProposedDateValue, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDatePicker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDatePicker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePicker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePicker(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSDatePicker(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } private _NSDatePickerCellDelegate EnsureNSDatePickerCellDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSDatePickerCellDelegate)) { nSObject = (WeakDelegate = new _NSDatePickerCellDelegate()); } return (_NSDatePickerCellDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_Cell_var = null; __mt_TextColor_var = null; __mt_Calendar_var = null; __mt_Locale_var = null; __mt_TimeZone_var = null; __mt_DateValue_var = null; __mt_MinDate_var = null; __mt_MaxDate_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDatePickerCell", true)] public class NSDatePickerCell : NSActionCell { [Register] private sealed class _NSDatePickerCellDelegate : NSDatePickerCellDelegate { internal EventHandler validateProposedDateValue; [Preserve(Conditional = true)] public override void ValidateProposedDateValue(NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval) { EventHandler eventHandler = validateProposedDateValue; if (eventHandler != null) { NSDatePickerValidatorEventArgs nSDatePickerValidatorEventArgs = new NSDatePickerValidatorEventArgs(proposedDateValue, proposedTimeInterval); eventHandler(aDatePickerCell, nSDatePickerValidatorEventArgs); proposedDateValue = nSDatePickerValidatorEventArgs.ProposedDateValue; } } } private static readonly IntPtr selDatePickerStyleHandle = Selector.GetHandle("datePickerStyle"); private static readonly IntPtr selSetDatePickerStyle_Handle = Selector.GetHandle("setDatePickerStyle:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selSetTextColor_Handle = Selector.GetHandle("setTextColor:"); private static readonly IntPtr selDatePickerModeHandle = Selector.GetHandle("datePickerMode"); private static readonly IntPtr selSetDatePickerMode_Handle = Selector.GetHandle("setDatePickerMode:"); private static readonly IntPtr selDatePickerElementsHandle = Selector.GetHandle("datePickerElements"); private static readonly IntPtr selSetDatePickerElements_Handle = Selector.GetHandle("setDatePickerElements:"); private static readonly IntPtr selCalendarHandle = Selector.GetHandle("calendar"); private static readonly IntPtr selSetCalendar_Handle = Selector.GetHandle("setCalendar:"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selTimeZoneHandle = Selector.GetHandle("timeZone"); private static readonly IntPtr selSetTimeZone_Handle = Selector.GetHandle("setTimeZone:"); private static readonly IntPtr selDateValueHandle = Selector.GetHandle("dateValue"); private static readonly IntPtr selSetDateValue_Handle = Selector.GetHandle("setDateValue:"); private static readonly IntPtr selTimeIntervalHandle = Selector.GetHandle("timeInterval"); private static readonly IntPtr selSetTimeInterval_Handle = Selector.GetHandle("setTimeInterval:"); private static readonly IntPtr selMinDateHandle = Selector.GetHandle("minDate"); private static readonly IntPtr selSetMinDate_Handle = Selector.GetHandle("setMinDate:"); private static readonly IntPtr selMaxDateHandle = Selector.GetHandle("maxDate"); private static readonly IntPtr selSetMaxDate_Handle = Selector.GetHandle("setMaxDate:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDatePickerCell"); private object __mt_BackgroundColor_var; private object __mt_TextColor_var; private object __mt_Calendar_var; private object __mt_Locale_var; private object __mt_TimeZone_var; private object __mt_DateValue_var; private object __mt_MinDate_var; private object __mt_MaxDate_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDatePickerStyle DatePickerStyle { [Export("datePickerStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerStyle)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerStyleHandle); } return (NSDatePickerStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerStyleHandle); } [Export("setDatePickerStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerStyle_Handle, (ulong)value); } } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSColor TextColor { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextColorHandle))))); } [Export("setTextColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextColor_Handle, value.Handle); } __mt_TextColor_var = value; } } public virtual NSDatePickerMode DatePickerMode { [Export("datePickerMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerMode)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerModeHandle); } return (NSDatePickerMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerModeHandle); } [Export("setDatePickerMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerMode_Handle, (ulong)value); } } } public virtual NSDatePickerElementFlags DatePickerElements { [Export("datePickerElements")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDatePickerElementFlags)Messaging.UInt64_objc_msgSend(base.Handle, selDatePickerElementsHandle); } return (NSDatePickerElementFlags)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDatePickerElementsHandle); } [Export("setDatePickerElements:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDatePickerElements_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDatePickerElements_Handle, (ulong)value); } } } public virtual NSCalendar Calendar { [Export("calendar")] get { NSApplication.EnsureUIThread(); return (NSCalendar)(__mt_Calendar_var = ((!IsDirectBinding) ? ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalendarHandle))) : ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCalendarHandle))))); } [Export("setCalendar:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCalendar_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCalendar_Handle, value.Handle); } __mt_Calendar_var = value; } } public virtual NSLocale Locale { [Export("locale")] get { NSApplication.EnsureUIThread(); return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public virtual NSTimeZone TimeZone { [Export("timeZone")] get { NSApplication.EnsureUIThread(); return (NSTimeZone)(__mt_TimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimeZoneHandle))))); } [Export("setTimeZone:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimeZone_Handle, value.Handle); } __mt_TimeZone_var = value; } } public virtual NSDate DateValue { [Export("dateValue")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_DateValue_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateValueHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDateValueHandle))))); } [Export("setDateValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDateValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDateValue_Handle, value.Handle); } __mt_DateValue_var = value; } } public virtual double TimeInterval { [Export("timeInterval")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeIntervalHandle); } [Export("setTimeInterval:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTimeInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTimeInterval_Handle, value); } } } public virtual NSDate MinDate { [Export("minDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_MinDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMinDateHandle))))); } [Export("setMinDate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinDate_Handle, value.Handle); } __mt_MinDate_var = value; } } public virtual NSDate MaxDate { [Export("maxDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_MaxDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMaxDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMaxDateHandle))))); } [Export("setMaxDate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMaxDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMaxDate_Handle, value.Handle); } __mt_MaxDate_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSDatePickerCellDelegate Delegate { get { return WeakDelegate as NSDatePickerCellDelegate; } set { WeakDelegate = value; } } public event EventHandler ValidateProposedDateValue { add { _NSDatePickerCellDelegate nSDatePickerCellDelegate = EnsureNSDatePickerCellDelegate(); nSDatePickerCellDelegate.validateProposedDateValue = (EventHandler)System.Delegate.Combine(nSDatePickerCellDelegate.validateProposedDateValue, value); } remove { _NSDatePickerCellDelegate nSDatePickerCellDelegate = EnsureNSDatePickerCellDelegate(); nSDatePickerCellDelegate.validateProposedDateValue = (EventHandler)System.Delegate.Remove(nSDatePickerCellDelegate.validateProposedDateValue, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDatePickerCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDatePickerCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePickerCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePickerCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSDatePickerCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSDatePickerCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } private _NSDatePickerCellDelegate EnsureNSDatePickerCellDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSDatePickerCellDelegate)) { nSObject = (WeakDelegate = new _NSDatePickerCellDelegate()); } return (_NSDatePickerCellDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_TextColor_var = null; __mt_Calendar_var = null; __mt_Locale_var = null; __mt_TimeZone_var = null; __mt_DateValue_var = null; __mt_MinDate_var = null; __mt_MaxDate_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerCellDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDatePickerCellDelegate", true)] [Model] public class NSDatePickerCellDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDatePickerCellDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDatePickerCellDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePickerCellDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDatePickerCellDelegate(IntPtr handle) : base(handle) { } [Export("datePickerCell:validateProposedDateValue:timeInterval:")] public virtual void ValidateProposedDateValue(NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerElementFlags.cs ================================================ using System; namespace AppKit; [Flags] public enum NSDatePickerElementFlags : ulong { HourMinute = 0xCuL, HourMinuteSecond = 0xEuL, TimeZone = 0x10uL, YearMonthDate = 0xC0uL, YearMonthDateDay = 0xE0uL, Era = 0x100uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerMode.cs ================================================ namespace AppKit; public enum NSDatePickerMode : ulong { Single, Range } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerStyle.cs ================================================ namespace AppKit; public enum NSDatePickerStyle : ulong { TextFieldAndStepper, ClockAndCalendar, TextField } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDatePickerValidatorEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSDatePickerValidatorEventArgs : EventArgs { public NSDate ProposedDateValue { get; set; } public double ProposedTimeInterval { get; set; } public NSDatePickerValidatorEventArgs(NSDate proposedDateValue, double proposedTimeInterval) { ProposedDateValue = proposedDateValue; ProposedTimeInterval = proposedTimeInterval; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDictionaryEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSDictionaryEventArgs : EventArgs { public NSDictionary UserInfo { get; set; } public NSDictionaryEventArgs(NSDictionary userInfo) { UserInfo = userInfo; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDockTile.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDockTile", true)] public class NSDockTile : NSObject { private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selOwnerHandle = Selector.GetHandle("owner"); private static readonly IntPtr selContentViewHandle = Selector.GetHandle("contentView"); private static readonly IntPtr selSetContentView_Handle = Selector.GetHandle("setContentView:"); private static readonly IntPtr selShowsApplicationBadgeHandle = Selector.GetHandle("showsApplicationBadge"); private static readonly IntPtr selSetShowsApplicationBadge_Handle = Selector.GetHandle("setShowsApplicationBadge:"); private static readonly IntPtr selBadgeLabelHandle = Selector.GetHandle("badgeLabel"); private static readonly IntPtr selSetBadgeLabel_Handle = Selector.GetHandle("setBadgeLabel:"); private static readonly IntPtr selDisplayHandle = Selector.GetHandle("display"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDockTile"); private object __mt_Owner_var; private object __mt_ContentView_var; public override IntPtr ClassHandle => class_ptr; public virtual CGSize Size { [Export("size")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeHandle); } } public virtual NSObject Owner { [Export("owner")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Owner_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerHandle)))); } } public virtual NSView ContentView { [Export("contentView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_ContentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewHandle))))); } [Export("setContentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentView_Handle, value.Handle); } __mt_ContentView_var = value; } } public virtual bool ShowsApplicationBadge { [Export("showsApplicationBadge")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsApplicationBadgeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsApplicationBadgeHandle); } [Export("setShowsApplicationBadge:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsApplicationBadge_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsApplicationBadge_Handle, value); } } } public virtual string BadgeLabel { [Export("badgeLabel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBadgeLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBadgeLabelHandle)); } [Export("setBadgeLabel:")] set { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBadgeLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBadgeLabel_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDockTile() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDockTile(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDockTile(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDockTile(IntPtr handle) : base(handle) { } [Export("display")] public virtual void Display() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Owner_var = null; __mt_ContentView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDockTilePlugIn.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDockTilePlugIn", true)] [Model] public abstract class NSDockTilePlugIn : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDockTilePlugIn() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDockTilePlugIn(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDockTilePlugIn(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDockTilePlugIn(IntPtr handle) : base(handle) { } [Export("setDockTile:")] public abstract void SetDockTile(NSDockTile dockTile); [Export("dockMenu")] public abstract NSMenu DockMenu(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDocument.cs ================================================ using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDocument", true)] public class NSDocument : NSObject { public delegate void DuplicateCallback(NSDocument document, bool didDuplicate); [Register("__NSDocumentDuplicateCallback")] internal class Callback : NSObject { private DuplicateCallback callback; public Callback(DuplicateCallback callback) { this.callback = callback; } [Export("document:didDuplicate:contextInfo:")] private void SelectorCallback(NSDocument source, bool didDuplicate, IntPtr contextInfo) { callback(source, didDuplicate); if (proxies != null) { proxies.Remove(this); if (proxies.Count == 0) { proxies = null; } } } } private static List proxies; private static readonly IntPtr selShouldRunSavePanelWithAccessoryViewHandle = Selector.GetHandle("shouldRunSavePanelWithAccessoryView"); private static readonly IntPtr selFileNameExtensionWasHiddenInLastRunSavePanelHandle = Selector.GetHandle("fileNameExtensionWasHiddenInLastRunSavePanel"); private static readonly IntPtr selFileTypeFromLastRunSavePanelHandle = Selector.GetHandle("fileTypeFromLastRunSavePanel"); private static readonly IntPtr selHasUnautosavedChangesHandle = Selector.GetHandle("hasUnautosavedChanges"); private static readonly IntPtr selAutosavingFileTypeHandle = Selector.GetHandle("autosavingFileType"); private static readonly IntPtr selIsDocumentEditedHandle = Selector.GetHandle("isDocumentEdited"); private static readonly IntPtr selWindowNibNameHandle = Selector.GetHandle("windowNibName"); private static readonly IntPtr selWindowControllersHandle = Selector.GetHandle("windowControllers"); private static readonly IntPtr selDisplayNameHandle = Selector.GetHandle("displayName"); private static readonly IntPtr selSetDisplayName_Handle = Selector.GetHandle("setDisplayName:"); private static readonly IntPtr selWindowForSheetHandle = Selector.GetHandle("windowForSheet"); private static readonly IntPtr selReadableTypesHandle = Selector.GetHandle("readableTypes"); private static readonly IntPtr selFileTypeHandle = Selector.GetHandle("fileType"); private static readonly IntPtr selSetFileType_Handle = Selector.GetHandle("setFileType:"); private static readonly IntPtr selFileURLHandle = Selector.GetHandle("fileURL"); private static readonly IntPtr selSetFileURL_Handle = Selector.GetHandle("setFileURL:"); private static readonly IntPtr selFileModificationDateHandle = Selector.GetHandle("fileModificationDate"); private static readonly IntPtr selSetFileModificationDate_Handle = Selector.GetHandle("setFileModificationDate:"); private static readonly IntPtr selAutosavedContentsFileURLHandle = Selector.GetHandle("autosavedContentsFileURL"); private static readonly IntPtr selSetAutosavedContentsFileURL_Handle = Selector.GetHandle("setAutosavedContentsFileURL:"); private static readonly IntPtr selPrintInfoHandle = Selector.GetHandle("printInfo"); private static readonly IntPtr selSetPrintInfo_Handle = Selector.GetHandle("setPrintInfo:"); private static readonly IntPtr selUndoManagerHandle = Selector.GetHandle("undoManager"); private static readonly IntPtr selSetUndoManager_Handle = Selector.GetHandle("setUndoManager:"); private static readonly IntPtr selHasUndoManagerHandle = Selector.GetHandle("hasUndoManager"); private static readonly IntPtr selSetHasUndoManager_Handle = Selector.GetHandle("setHasUndoManager:"); private static readonly IntPtr selIsEntireFileLoadedHandle = Selector.GetHandle("isEntireFileLoaded"); private static readonly IntPtr selAutosavingIsImplicitlyCancellableHandle = Selector.GetHandle("autosavingIsImplicitlyCancellable"); private static readonly IntPtr selIsInViewingModeHandle = Selector.GetHandle("isInViewingMode"); private static readonly IntPtr selInitWithTypeError_Handle = Selector.GetHandle("initWithType:error:"); private static readonly IntPtr selCanConcurrentlyReadDocumentsOfType_Handle = Selector.GetHandle("canConcurrentlyReadDocumentsOfType:"); private static readonly IntPtr selInitWithContentsOfURLOfTypeError_Handle = Selector.GetHandle("initWithContentsOfURL:ofType:error:"); private static readonly IntPtr selInitForURLWithContentsOfURLOfTypeError_Handle = Selector.GetHandle("initForURL:withContentsOfURL:ofType:error:"); private static readonly IntPtr selRevertDocumentToSaved_Handle = Selector.GetHandle("revertDocumentToSaved:"); private static readonly IntPtr selRevertToContentsOfURLOfTypeError_Handle = Selector.GetHandle("revertToContentsOfURL:ofType:error:"); private static readonly IntPtr selReadFromURLOfTypeError_Handle = Selector.GetHandle("readFromURL:ofType:error:"); private static readonly IntPtr selReadFromFileWrapperOfTypeError_Handle = Selector.GetHandle("readFromFileWrapper:ofType:error:"); private static readonly IntPtr selReadFromDataOfTypeError_Handle = Selector.GetHandle("readFromData:ofType:error:"); private static readonly IntPtr selWriteToURLOfTypeError_Handle = Selector.GetHandle("writeToURL:ofType:error:"); private static readonly IntPtr selFileWrapperOfTypeError_Handle = Selector.GetHandle("fileWrapperOfType:error:"); private static readonly IntPtr selDataOfTypeError_Handle = Selector.GetHandle("dataOfType:error:"); private static readonly IntPtr selWriteSafelyToURLOfTypeForSaveOperationError_Handle = Selector.GetHandle("writeSafelyToURL:ofType:forSaveOperation:error:"); private static readonly IntPtr selWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle = Selector.GetHandle("writeToURL:ofType:forSaveOperation:originalContentsURL:error:"); private static readonly IntPtr selFileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle = Selector.GetHandle("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:"); private static readonly IntPtr selKeepBackupFileHandle = Selector.GetHandle("keepBackupFile"); private static readonly IntPtr selSaveDocument_Handle = Selector.GetHandle("saveDocument:"); private static readonly IntPtr selSaveDocumentAs_Handle = Selector.GetHandle("saveDocumentAs:"); private static readonly IntPtr selSaveDocumentTo_Handle = Selector.GetHandle("saveDocumentTo:"); private static readonly IntPtr selSaveDocumentWithDelegateDidSaveSelectorContextInfo_Handle = Selector.GetHandle("saveDocumentWithDelegate:didSaveSelector:contextInfo:"); private static readonly IntPtr selRunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo_Handle = Selector.GetHandle("runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:"); private static readonly IntPtr selPrepareSavePanel_Handle = Selector.GetHandle("prepareSavePanel:"); private static readonly IntPtr selSaveToURLOfTypeForSaveOperationDelegateDidSaveSelectorContextInfo_Handle = Selector.GetHandle("saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:"); private static readonly IntPtr selSaveToURLOfTypeForSaveOperationError_Handle = Selector.GetHandle("saveToURL:ofType:forSaveOperation:error:"); private static readonly IntPtr selAutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo_Handle = Selector.GetHandle("autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:"); private static readonly IntPtr selCanCloseDocumentWithDelegateShouldCloseSelectorContextInfo_Handle = Selector.GetHandle("canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selRunPageLayout_Handle = Selector.GetHandle("runPageLayout:"); private static readonly IntPtr selRunModalPageLayoutWithPrintInfoDelegateDidRunSelectorContextInfo_Handle = Selector.GetHandle("runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:"); private static readonly IntPtr selPreparePageLayout_Handle = Selector.GetHandle("preparePageLayout:"); private static readonly IntPtr selShouldChangePrintInfo_Handle = Selector.GetHandle("shouldChangePrintInfo:"); private static readonly IntPtr selPrintDocument_Handle = Selector.GetHandle("printDocument:"); private static readonly IntPtr selPrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo_Handle = Selector.GetHandle("printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:"); private static readonly IntPtr selPrintOperationWithSettingsError_Handle = Selector.GetHandle("printOperationWithSettings:error:"); private static readonly IntPtr selRunModalPrintOperationDelegateDidRunSelectorContextInfo_Handle = Selector.GetHandle("runModalPrintOperation:delegate:didRunSelector:contextInfo:"); private static readonly IntPtr selUpdateChangeCount_Handle = Selector.GetHandle("updateChangeCount:"); private static readonly IntPtr selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle = Selector.GetHandle("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"); private static readonly IntPtr selPresentError_Handle = Selector.GetHandle("presentError:"); private static readonly IntPtr selWillPresentError_Handle = Selector.GetHandle("willPresentError:"); private static readonly IntPtr selMakeWindowControllersHandle = Selector.GetHandle("makeWindowControllers"); private static readonly IntPtr selWindowControllerWillLoadNib_Handle = Selector.GetHandle("windowControllerWillLoadNib:"); private static readonly IntPtr selWindowControllerDidLoadNib_Handle = Selector.GetHandle("windowControllerDidLoadNib:"); private static readonly IntPtr selSetWindow_Handle = Selector.GetHandle("setWindow:"); private static readonly IntPtr selAddWindowController_Handle = Selector.GetHandle("addWindowController:"); private static readonly IntPtr selRemoveWindowController_Handle = Selector.GetHandle("removeWindowController:"); private static readonly IntPtr selShowWindowsHandle = Selector.GetHandle("showWindows"); private static readonly IntPtr selShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo_Handle = Selector.GetHandle("shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:"); private static readonly IntPtr selWritableTypesHandle = Selector.GetHandle("writableTypes"); private static readonly IntPtr selIsNativeType_Handle = Selector.GetHandle("isNativeType:"); private static readonly IntPtr selWritableTypesForSaveOperation_Handle = Selector.GetHandle("writableTypesForSaveOperation:"); private static readonly IntPtr selFileNameExtensionForTypeSaveOperation_Handle = Selector.GetHandle("fileNameExtensionForType:saveOperation:"); private static readonly IntPtr selValidateUserInterfaceItem_Handle = Selector.GetHandle("validateUserInterfaceItem:"); private static readonly IntPtr selPerformActivityWithSynchronousWaitingUsingBlock_Handle = Selector.GetHandle("performActivityWithSynchronousWaiting:usingBlock:"); private static readonly IntPtr selContinueActivityUsingBlock_Handle = Selector.GetHandle("continueActivityUsingBlock:"); private static readonly IntPtr selContinueAsynchronousWorkOnMainThreadUsingBlock_Handle = Selector.GetHandle("continueAsynchronousWorkOnMainThreadUsingBlock:"); private static readonly IntPtr selPerformSynchronousFileAccessUsingBlock_Handle = Selector.GetHandle("performSynchronousFileAccessUsingBlock:"); private static readonly IntPtr selPerformAsynchronousFileAccessUsingBlock_Handle = Selector.GetHandle("performAsynchronousFileAccessUsingBlock:"); private static readonly IntPtr selUnblockUserInteractionHandle = Selector.GetHandle("unblockUserInteraction"); private static readonly IntPtr selSaveToURLOfTypeForSaveOperationCompletionHandler_Handle = Selector.GetHandle("saveToURL:ofType:forSaveOperation:completionHandler:"); private static readonly IntPtr selCanAsynchronouslyWriteToURLOfTypeForSaveOperation_Handle = Selector.GetHandle("canAsynchronouslyWriteToURL:ofType:forSaveOperation:"); private static readonly IntPtr selCheckAutosavingSafetyAndReturnError_Handle = Selector.GetHandle("checkAutosavingSafetyAndReturnError:"); private static readonly IntPtr selScheduleAutosavingHandle = Selector.GetHandle("scheduleAutosaving"); private static readonly IntPtr selAutosaveWithImplicitCancellabilityCompletionHandler_Handle = Selector.GetHandle("autosaveWithImplicitCancellability:completionHandler:"); private static readonly IntPtr selAutosavesInPlaceHandle = Selector.GetHandle("autosavesInPlace"); private static readonly IntPtr selPreservesVersionsHandle = Selector.GetHandle("preservesVersions"); private static readonly IntPtr selDuplicateDocument_Handle = Selector.GetHandle("duplicateDocument:"); private static readonly IntPtr selDuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo_Handle = Selector.GetHandle("duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:"); private static readonly IntPtr selDuplicateAndReturnError_Handle = Selector.GetHandle("duplicateAndReturnError:"); private static readonly IntPtr selChangeCountTokenForSaveOperation_Handle = Selector.GetHandle("changeCountTokenForSaveOperation:"); private static readonly IntPtr selUpdateChangeCountWithTokenForSaveOperation_Handle = Selector.GetHandle("updateChangeCountWithToken:forSaveOperation:"); private static readonly IntPtr selWillNotPresentError_Handle = Selector.GetHandle("willNotPresentError:"); private static readonly IntPtr selRestoreDocumentWindowWithIdentifierStateCompletionHandler_Handle = Selector.GetHandle("restoreDocumentWindowWithIdentifier:state:completionHandler:"); private static readonly IntPtr selEncodeRestorableStateWithCoder_Handle = Selector.GetHandle("encodeRestorableStateWithCoder:"); private static readonly IntPtr selRestoreStateWithCoder_Handle = Selector.GetHandle("restoreStateWithCoder:"); private static readonly IntPtr selInvalidateRestorableStateHandle = Selector.GetHandle("invalidateRestorableState"); private static readonly IntPtr selRestorableStateKeyPathsHandle = Selector.GetHandle("restorableStateKeyPaths"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDocument"); private object __mt_WindowControllers_var; private object __mt_WindowForSheet_var; private object __mt_FileUrl_var; private object __mt_FileModificationDate_var; private object __mt_AutosavedContentsFileUrl_var; private object __mt_PrintInfo_var; private object __mt_UndoManager_var; public override IntPtr ClassHandle => class_ptr; public virtual bool ShouldRunSavePanelWithAccessoryView { [Export("shouldRunSavePanelWithAccessoryView")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldRunSavePanelWithAccessoryViewHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldRunSavePanelWithAccessoryViewHandle); } } public virtual bool FileNameExtensionWasHiddenInLastRunSavePanel { [Export("fileNameExtensionWasHiddenInLastRunSavePanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selFileNameExtensionWasHiddenInLastRunSavePanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFileNameExtensionWasHiddenInLastRunSavePanelHandle); } } public virtual string FileTypeFromLastRunSavePanel { [Export("fileTypeFromLastRunSavePanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFileTypeFromLastRunSavePanelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileTypeFromLastRunSavePanelHandle)); } } public virtual bool HasUnautosavedChanges { [Export("hasUnautosavedChanges")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasUnautosavedChangesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasUnautosavedChangesHandle); } } public virtual string AutosavingFileType { [Export("autosavingFileType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAutosavingFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutosavingFileTypeHandle)); } } public virtual bool IsDocumentEdited { [Export("isDocumentEdited")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDocumentEditedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDocumentEditedHandle); } } public virtual string WindowNibName { [Export("windowNibName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowNibNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowNibNameHandle)); } } public virtual NSWindowController[] WindowControllers { [Export("windowControllers")] get { NSApplication.EnsureUIThread(); return (NSWindowController[])(__mt_WindowControllers_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowControllersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowControllersHandle)))); } } public virtual string DisplayName { [Export("displayName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDisplayNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDisplayNameHandle)); } [Export("setDisplayName:")] set { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDisplayName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDisplayName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSWindow WindowForSheet { [Export("windowForSheet")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_WindowForSheet_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowForSheetHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowForSheetHandle))))); } } public static string[] ReadableTypes { [Export("readableTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selReadableTypesHandle)); } } public virtual string FileType { [Export("fileType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileTypeHandle)); } [Export("setFileType:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFileType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFileType_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSUrl FileUrl { [Export("fileURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_FileUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileURLHandle))))); } [Export("setFileURL:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFileURL_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFileURL_Handle, value?.Handle ?? IntPtr.Zero); } __mt_FileUrl_var = value; } } public virtual NSDate FileModificationDate { [Export("fileModificationDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_FileModificationDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileModificationDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileModificationDateHandle))))); } [Export("setFileModificationDate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFileModificationDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFileModificationDate_Handle, value.Handle); } __mt_FileModificationDate_var = value; } } public virtual NSUrl AutosavedContentsFileUrl { [Export("autosavedContentsFileURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_AutosavedContentsFileUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutosavedContentsFileURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAutosavedContentsFileURLHandle))))); } [Export("setAutosavedContentsFileURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAutosavedContentsFileURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAutosavedContentsFileURL_Handle, value.Handle); } __mt_AutosavedContentsFileUrl_var = value; } } public virtual NSPrintInfo PrintInfo { [Export("printInfo")] get { NSApplication.EnsureUIThread(); return (NSPrintInfo)(__mt_PrintInfo_var = ((!IsDirectBinding) ? ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintInfoHandle))) : ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintInfoHandle))))); } [Export("setPrintInfo:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrintInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrintInfo_Handle, value.Handle); } __mt_PrintInfo_var = value; } } public virtual NSUndoManager UndoManager { [Export("undoManager")] get { NSApplication.EnsureUIThread(); return (NSUndoManager)(__mt_UndoManager_var = ((!IsDirectBinding) ? ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUndoManagerHandle))) : ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUndoManagerHandle))))); } [Export("setUndoManager:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUndoManager_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUndoManager_Handle, value.Handle); } __mt_UndoManager_var = value; } } public virtual bool HasUndoManager { [Export("hasUndoManager")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasUndoManagerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasUndoManagerHandle); } [Export("setHasUndoManager:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasUndoManager_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasUndoManager_Handle, value); } } } public virtual bool IsEntireFileLoaded { [Export("isEntireFileLoaded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEntireFileLoadedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEntireFileLoadedHandle); } } public virtual bool AutosavingIsImplicitlyCancellable { [Export("autosavingIsImplicitlyCancellable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosavingIsImplicitlyCancellableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosavingIsImplicitlyCancellableHandle); } } public virtual bool IsInViewingMode { [Export("isInViewingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsInViewingModeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsInViewingModeHandle); } } public void DuplicateDocument(DuplicateCallback callback) { if (callback == null) { _DuplicateDocument(null, null, IntPtr.Zero); } Callback callback2 = new Callback(callback); if (proxies == null) { proxies = new List(); } proxies.Add(callback2); _DuplicateDocument(callback2, new Selector("document:didDuplicate:contextInfo:"), IntPtr.Zero); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDocument() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDocument(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDocument(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDocument(IntPtr handle) : base(handle) { } [Export("initWithType:error:")] public NSDocument(string typeName, out NSError outError) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithTypeError_Handle, arg, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithTypeError_Handle, arg, intPtr); } NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("canConcurrentlyReadDocumentsOfType:")] public static bool CanConcurrentlyReadDocumentsOfType(string typeName) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanConcurrentlyReadDocumentsOfType_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("initWithContentsOfURL:ofType:error:")] public NSDocument(NSUrl url, string typeName, out NSError outError) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr); } NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initForURL:withContentsOfURL:ofType:error:")] public NSDocument(NSUrl documentUrl, NSUrl documentContentsUrl, string typeName, out NSError outError) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (documentContentsUrl == null) { throw new ArgumentNullException("documentContentsUrl"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitForURLWithContentsOfURLOfTypeError_Handle, documentUrl?.Handle ?? IntPtr.Zero, documentContentsUrl.Handle, arg, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitForURLWithContentsOfURLOfTypeError_Handle, documentUrl?.Handle ?? IntPtr.Zero, documentContentsUrl.Handle, arg, intPtr); } NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("revertDocumentToSaved:")] public virtual void RevertDocumentToSaved(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRevertDocumentToSaved_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRevertDocumentToSaved_Handle, sender.Handle); } } [Export("revertToContentsOfURL:ofType:error:")] public virtual bool RevertToContentsOfUrl(NSUrl url, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRevertToContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRevertToContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("readFromURL:ofType:error:")] public virtual bool ReadFromUrl(NSUrl url, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selReadFromURLOfTypeError_Handle, url.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selReadFromURLOfTypeError_Handle, url.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("readFromFileWrapper:ofType:error:")] public virtual bool ReadFromFileWrapper(NSFileWrapper fileWrapper, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (fileWrapper == null) { throw new ArgumentNullException("fileWrapper"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selReadFromFileWrapperOfTypeError_Handle, fileWrapper.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selReadFromFileWrapperOfTypeError_Handle, fileWrapper.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("readFromData:ofType:error:")] public virtual bool ReadFromData(NSData data, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selReadFromDataOfTypeError_Handle, data.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selReadFromDataOfTypeError_Handle, data.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writeToURL:ofType:error:")] public virtual bool WriteToUrl(NSUrl url, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selWriteToURLOfTypeError_Handle, url.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selWriteToURLOfTypeError_Handle, url.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("fileWrapperOfType:error:")] public virtual NSFileWrapper GetAsFileWrapper(string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSFileWrapper result = ((!IsDirectBinding) ? ((NSFileWrapper)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFileWrapperOfTypeError_Handle, arg, intPtr))) : ((NSFileWrapper)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selFileWrapperOfTypeError_Handle, arg, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("dataOfType:error:")] public virtual NSData GetAsData(string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDataOfTypeError_Handle, arg, intPtr))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDataOfTypeError_Handle, arg, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writeSafelyToURL:ofType:forSaveOperation:error:")] public virtual bool WriteSafelyToUrl(NSUrl url, string typeName, NSSaveOperationType saveOperation, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(base.SuperHandle, selWriteSafelyToURLOfTypeForSaveOperationError_Handle, url.Handle, arg, (ulong)saveOperation, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(base.Handle, selWriteSafelyToURLOfTypeForSaveOperationError_Handle, url.Handle, arg, (ulong)saveOperation, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writeToURL:ofType:forSaveOperation:originalContentsURL:error:")] public virtual bool WriteToUrl(NSUrl url, string typeName, NSSaveOperationType saveOperation, NSUrl absoluteOriginalContentsUrl, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } if (absoluteOriginalContentsUrl == null) { throw new ArgumentNullException("absoluteOriginalContentsUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle, url.Handle, arg, (ulong)saveOperation, absoluteOriginalContentsUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle, url.Handle, arg, (ulong)saveOperation, absoluteOriginalContentsUrl.Handle, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:")] public virtual NSDictionary FileAttributesToWrite(NSUrl toUrl, string typeName, NSSaveOperationType saveOperation, NSUrl absoluteOriginalContentsUrl, out NSError outError) { NSApplication.EnsureUIThread(); if (toUrl == null) { throw new ArgumentNullException("toUrl"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } if (absoluteOriginalContentsUrl == null) { throw new ArgumentNullException("absoluteOriginalContentsUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selFileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle, toUrl.Handle, arg, (ulong)saveOperation, absoluteOriginalContentsUrl.Handle, intPtr))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selFileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError_Handle, toUrl.Handle, arg, (ulong)saveOperation, absoluteOriginalContentsUrl.Handle, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("keepBackupFile")] public virtual bool KeepBackupFile() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selKeepBackupFileHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selKeepBackupFileHandle); } [Export("saveDocument:")] public virtual void SaveDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSaveDocument_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSaveDocument_Handle, sender.Handle); } } [Export("saveDocumentAs:")] public virtual void SaveDocumentAs(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSaveDocumentAs_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSaveDocumentAs_Handle, sender.Handle); } } [Export("saveDocumentTo:")] public virtual void SaveDocumentTo(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSaveDocumentTo_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSaveDocumentTo_Handle, sender.Handle); } } [Export("saveDocumentWithDelegate:didSaveSelector:contextInfo:")] public virtual void SaveDocument(NSObject delegateObject, Selector didSaveSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didSaveSelector == null) { throw new ArgumentNullException("didSaveSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSaveDocumentWithDelegateDidSaveSelectorContextInfo_Handle, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSaveDocumentWithDelegateDidSaveSelectorContextInfo_Handle, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } } [Export("runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:")] public virtual void RunModalSavePanelForSaveOperation(NSSaveOperationType saveOperation, NSObject delegateObject, Selector didSaveSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didSaveSelector == null) { throw new ArgumentNullException("didSaveSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr(base.Handle, selRunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo_Handle, (ulong)saveOperation, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo_Handle, (ulong)saveOperation, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } } [Export("prepareSavePanel:")] public virtual bool PrepareSavePanel(NSSavePanel savePanel) { NSApplication.EnsureUIThread(); if (savePanel == null) { throw new ArgumentNullException("savePanel"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPrepareSavePanel_Handle, savePanel.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrepareSavePanel_Handle, savePanel.Handle); } [Export("saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:")] public virtual void SaveToUrl(NSUrl url, string typeName, NSSaveOperationType saveOperation, NSObject delegateObject, Selector didSaveSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didSaveSelector == null) { throw new ArgumentNullException("didSaveSelector"); } IntPtr arg = NSString.CreateNative(typeName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr_IntPtr(base.Handle, selSaveToURLOfTypeForSaveOperationDelegateDidSaveSelectorContextInfo_Handle, url.Handle, arg, (ulong)saveOperation, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSaveToURLOfTypeForSaveOperationDelegateDidSaveSelectorContextInfo_Handle, url.Handle, arg, (ulong)saveOperation, delegateObject.Handle, didSaveSelector.Handle, contextInfo); } NSString.ReleaseNative(arg); } [Export("saveToURL:ofType:forSaveOperation:error:")] public virtual bool SaveToUrl(NSUrl url, string typeName, NSSaveOperationType saveOperation, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(base.SuperHandle, selSaveToURLOfTypeForSaveOperationError_Handle, url.Handle, arg, (ulong)saveOperation, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(base.Handle, selSaveToURLOfTypeForSaveOperationError_Handle, url.Handle, arg, (ulong)saveOperation, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:")] public virtual void AutosaveDocument(NSObject delegateObject, Selector didAutosaveSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didAutosaveSelector == null) { throw new ArgumentNullException("didAutosaveSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selAutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo_Handle, delegateObject.Handle, didAutosaveSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAutosaveDocumentWithDelegateDidAutosaveSelectorContextInfo_Handle, delegateObject.Handle, didAutosaveSelector.Handle, contextInfo); } } [Export("canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:")] public virtual void CanCloseDocument(NSObject delegateObject, Selector shouldCloseSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (shouldCloseSelector == null) { throw new ArgumentNullException("shouldCloseSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCanCloseDocumentWithDelegateShouldCloseSelectorContextInfo_Handle, delegateObject.Handle, shouldCloseSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCanCloseDocumentWithDelegateShouldCloseSelectorContextInfo_Handle, delegateObject.Handle, shouldCloseSelector.Handle, contextInfo); } } [Export("close")] public virtual void Close() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("runPageLayout:")] public virtual void RunPageLayout(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRunPageLayout_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunPageLayout_Handle, sender.Handle); } } [Export("runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:")] public virtual void RunModalPageLayout(NSPrintInfo printInfo, NSObject delegateObject, Selector didRunSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didRunSelector == null) { throw new ArgumentNullException("didRunSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selRunModalPageLayoutWithPrintInfoDelegateDidRunSelectorContextInfo_Handle, printInfo.Handle, delegateObject.Handle, didRunSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunModalPageLayoutWithPrintInfoDelegateDidRunSelectorContextInfo_Handle, printInfo.Handle, delegateObject.Handle, didRunSelector.Handle, contextInfo); } } [Export("preparePageLayout:")] public virtual bool PreparePageLayout(NSPageLayout pageLayout) { NSApplication.EnsureUIThread(); if (pageLayout == null) { throw new ArgumentNullException("pageLayout"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPreparePageLayout_Handle, pageLayout.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPreparePageLayout_Handle, pageLayout.Handle); } [Export("shouldChangePrintInfo:")] public virtual bool ShouldChangePrintInfo(NSPrintInfo newPrintInfo) { NSApplication.EnsureUIThread(); if (newPrintInfo == null) { throw new ArgumentNullException("newPrintInfo"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShouldChangePrintInfo_Handle, newPrintInfo.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShouldChangePrintInfo_Handle, newPrintInfo.Handle); } [Export("printDocument:")] public virtual void PrintDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPrintDocument_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrintDocument_Handle, sender.Handle); } } [Export("printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:")] public virtual void PrintDocument(NSDictionary printSettings, bool showPrintPanel, NSObject delegateObject, Selector didPrintSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (printSettings == null) { throw new ArgumentNullException("printSettings"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didPrintSelector == null) { throw new ArgumentNullException("didPrintSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool_IntPtr_IntPtr_IntPtr(base.Handle, selPrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo_Handle, printSettings.Handle, showPrintPanel, delegateObject.Handle, didPrintSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo_Handle, printSettings.Handle, showPrintPanel, delegateObject.Handle, didPrintSelector.Handle, contextInfo); } } [Export("printOperationWithSettings:error:")] public virtual NSPrintOperation PrintOperation(NSDictionary printSettings, out NSError outError) { NSApplication.EnsureUIThread(); if (printSettings == null) { throw new ArgumentNullException("printSettings"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSPrintOperation result = ((!IsDirectBinding) ? ((NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPrintOperationWithSettingsError_Handle, printSettings.Handle, intPtr))) : ((NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selPrintOperationWithSettingsError_Handle, printSettings.Handle, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("runModalPrintOperation:delegate:didRunSelector:contextInfo:")] public virtual void RunModalPrintOperation(NSPrintOperation printOperation, NSObject delegateObject, Selector didRunSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (printOperation == null) { throw new ArgumentNullException("printOperation"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didRunSelector == null) { throw new ArgumentNullException("didRunSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selRunModalPrintOperationDelegateDidRunSelectorContextInfo_Handle, printOperation.Handle, delegateObject.Handle, didRunSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunModalPrintOperationDelegateDidRunSelectorContextInfo_Handle, printOperation.Handle, delegateObject.Handle, didRunSelector.Handle, contextInfo); } } [Export("updateChangeCount:")] public virtual void UpdateChangeCount(NSDocumentChangeType change) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selUpdateChangeCount_Handle, (ulong)change); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selUpdateChangeCount_Handle, (ulong)change); } } [Export("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:")] public virtual void PresentError(NSError error, NSWindow window, NSObject delegateObject, Selector didPresentSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (window == null) { throw new ArgumentNullException("window"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didPresentSelector == null) { throw new ArgumentNullException("didPresentSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle, error.Handle, window.Handle, delegateObject.Handle, didPresentSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle, error.Handle, window.Handle, delegateObject.Handle, didPresentSelector.Handle, contextInfo); } } [Export("presentError:")] public virtual bool PresentError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPresentError_Handle, error.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPresentError_Handle, error.Handle); } [Export("willPresentError:")] public virtual NSError WillPresentError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { return (NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selWillPresentError_Handle, error.Handle)); } return (NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillPresentError_Handle, error.Handle)); } [Export("makeWindowControllers")] public virtual void MakeWindowControllers() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakeWindowControllersHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakeWindowControllersHandle); } } [Export("windowControllerWillLoadNib:")] public virtual void WindowControllerWillLoadNib(NSWindowController windowController) { NSApplication.EnsureUIThread(); if (windowController == null) { throw new ArgumentNullException("windowController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWindowControllerWillLoadNib_Handle, windowController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWindowControllerWillLoadNib_Handle, windowController.Handle); } } [Export("windowControllerDidLoadNib:")] public virtual void WindowControllerDidLoadNib(NSWindowController windowController) { NSApplication.EnsureUIThread(); if (windowController == null) { throw new ArgumentNullException("windowController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWindowControllerDidLoadNib_Handle, windowController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWindowControllerDidLoadNib_Handle, windowController.Handle); } } [Export("setWindow:")] public virtual void SetWindow(NSWindow window) { NSApplication.EnsureUIThread(); if (window == null) { throw new ArgumentNullException("window"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWindow_Handle, window.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWindow_Handle, window.Handle); } } [Export("addWindowController:")] public virtual void AddWindowController(NSWindowController windowController) { NSApplication.EnsureUIThread(); if (windowController == null) { throw new ArgumentNullException("windowController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddWindowController_Handle, windowController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddWindowController_Handle, windowController.Handle); } _ = WindowControllers; } [Export("removeWindowController:")] public virtual void RemoveWindowController(NSWindowController windowController) { NSApplication.EnsureUIThread(); if (windowController == null) { throw new ArgumentNullException("windowController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveWindowController_Handle, windowController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveWindowController_Handle, windowController.Handle); } _ = WindowControllers; } [Export("showWindows")] public virtual void ShowWindows() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selShowWindowsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selShowWindowsHandle); } } [Export("shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:")] public virtual void ShouldCloseWindowController(NSWindowController windowController, NSObject delegateObject, Selector shouldCloseSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (windowController == null) { throw new ArgumentNullException("windowController"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (shouldCloseSelector == null) { throw new ArgumentNullException("shouldCloseSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo_Handle, windowController.Handle, delegateObject.Handle, shouldCloseSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selShouldCloseWindowControllerDelegateShouldCloseSelectorContextInfo_Handle, windowController.Handle, delegateObject.Handle, shouldCloseSelector.Handle, contextInfo); } } [Export("writableTypes")] public static string[] WritableTypes() { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selWritableTypesHandle)); } [Export("isNativeType:")] public static bool IsNativeType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selIsNativeType_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("writableTypesForSaveOperation:")] public virtual string[] WritableTypesForSaveOperation(NSSaveOperationType saveOperation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selWritableTypesForSaveOperation_Handle, (ulong)saveOperation)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selWritableTypesForSaveOperation_Handle, (ulong)saveOperation)); } [Export("fileNameExtensionForType:saveOperation:")] public virtual string FileNameExtensionForSaveOperation(string typeName, NSSaveOperationType saveOperation) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selFileNameExtensionForTypeSaveOperation_Handle, arg, (ulong)saveOperation)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selFileNameExtensionForTypeSaveOperation_Handle, arg, (ulong)saveOperation))); NSString.ReleaseNative(arg); return result; } [Export("validateUserInterfaceItem:")] public virtual bool ValidateUserInterfaceItem(NSObject anItem) { NSApplication.EnsureUIThread(); if (anItem == null) { throw new ArgumentNullException("anItem"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateUserInterfaceItem_Handle, anItem.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateUserInterfaceItem_Handle, anItem.Handle); } [Export("performActivityWithSynchronousWaiting:usingBlock:")] public unsafe virtual void PerformActivity(bool waitSynchronously, NSAction activityCompletionHandler) { NSApplication.EnsureUIThread(); if (activityCompletionHandler == null) { throw new ArgumentNullException("activityCompletionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, activityCompletionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_IntPtr(base.Handle, selPerformActivityWithSynchronousWaitingUsingBlock_Handle, waitSynchronously, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selPerformActivityWithSynchronousWaitingUsingBlock_Handle, waitSynchronously, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("continueActivityUsingBlock:")] public unsafe virtual void ContinueActivity(NSAction resume) { NSApplication.EnsureUIThread(); if (resume == null) { throw new ArgumentNullException("resume"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, resume); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selContinueActivityUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selContinueActivityUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("continueAsynchronousWorkOnMainThreadUsingBlock:")] public unsafe virtual void ContinueAsynchronousWorkOnMainThread(NSAction work) { NSApplication.EnsureUIThread(); if (work == null) { throw new ArgumentNullException("work"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, work); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selContinueAsynchronousWorkOnMainThreadUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selContinueAsynchronousWorkOnMainThreadUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("performSynchronousFileAccessUsingBlock:")] public unsafe virtual void PerformSynchronousFileAccess(NSAction fileAccessCallback) { NSApplication.EnsureUIThread(); if (fileAccessCallback == null) { throw new ArgumentNullException("fileAccessCallback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, fileAccessCallback); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformSynchronousFileAccessUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformSynchronousFileAccessUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("performAsynchronousFileAccessUsingBlock:")] public unsafe virtual void PerformAsynchronousFileAccess(NSAction ioCode) { NSApplication.EnsureUIThread(); if (ioCode == null) { throw new ArgumentNullException("ioCode"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, ioCode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformAsynchronousFileAccessUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformAsynchronousFileAccessUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("unblockUserInteraction")] public virtual void UnblockUserInteraction() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnblockUserInteractionHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnblockUserInteractionHandle); } } [Export("saveToURL:ofType:forSaveOperation:completionHandler:")] public unsafe virtual void SaveTo(NSUrl url, string typeName, NSSaveOperationType saveOperation, NSDocumentCompletionHandler completionHandler) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr arg = NSString.CreateNative(typeName); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSDocumentCompletionHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(base.Handle, selSaveToURLOfTypeForSaveOperationCompletionHandler_Handle, url.Handle, arg, (ulong)saveOperation, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(base.SuperHandle, selSaveToURLOfTypeForSaveOperationCompletionHandler_Handle, url.Handle, arg, (ulong)saveOperation, (IntPtr)ptr); } NSString.ReleaseNative(arg); ptr->CleanupBlock(); } [Export("canAsynchronouslyWriteToURL:ofType:forSaveOperation:")] public virtual bool CanWriteAsynchronously(NSUrl toUrl, string typeName, NSSaveOperationType saveOperation) { NSApplication.EnsureUIThread(); if (toUrl == null) { throw new ArgumentNullException("toUrl"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selCanAsynchronouslyWriteToURLOfTypeForSaveOperation_Handle, toUrl.Handle, arg, (ulong)saveOperation) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selCanAsynchronouslyWriteToURLOfTypeForSaveOperation_Handle, toUrl.Handle, arg, (ulong)saveOperation)); NSString.ReleaseNative(arg); return result; } [Export("checkAutosavingSafetyAndReturnError:")] public virtual bool CheckAutosavingSafety(out NSError outError) { NSApplication.EnsureUIThread(); IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCheckAutosavingSafetyAndReturnError_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCheckAutosavingSafetyAndReturnError_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("scheduleAutosaving")] public virtual void ScheduleAutosaving() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selScheduleAutosavingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selScheduleAutosavingHandle); } } [Export("autosaveWithImplicitCancellability:completionHandler:")] public unsafe virtual void Autosave(bool autosavingIsImplicitlyCancellable, NSDocumentCompletionHandler completionHandler) { NSApplication.EnsureUIThread(); if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSDocumentCompletionHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_IntPtr(base.Handle, selAutosaveWithImplicitCancellabilityCompletionHandler_Handle, autosavingIsImplicitlyCancellable, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selAutosaveWithImplicitCancellabilityCompletionHandler_Handle, autosavingIsImplicitlyCancellable, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("autosavesInPlace")] public static bool AutosavesInPlace() { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selAutosavesInPlaceHandle); } [Export("preservesVersions")] public static bool PreservesVersions() { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selPreservesVersionsHandle); } [Export("duplicateDocument:")] public virtual void DuplicateDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDuplicateDocument_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDuplicateDocument_Handle, sender.Handle); } } [Export("duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:")] internal virtual void _DuplicateDocument(NSObject cbackobject, Selector didDuplicateSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selDuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo_Handle, cbackobject?.Handle ?? IntPtr.Zero, (didDuplicateSelector == null) ? IntPtr.Zero : didDuplicateSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selDuplicateDocumentWithDelegateDidDuplicateSelectorContextInfo_Handle, cbackobject?.Handle ?? IntPtr.Zero, (didDuplicateSelector == null) ? IntPtr.Zero : didDuplicateSelector.Handle, contextInfo); } } [Export("duplicateAndReturnError:")] public virtual NSDocument Duplicate(out NSError outError) { NSApplication.EnsureUIThread(); IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSDocument result = ((!IsDirectBinding) ? ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDuplicateAndReturnError_Handle, intPtr))) : ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDuplicateAndReturnError_Handle, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("changeCountTokenForSaveOperation:")] public virtual NSObject ChangeCountToken(NSSaveOperationType saveOperation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selChangeCountTokenForSaveOperation_Handle, (ulong)saveOperation)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selChangeCountTokenForSaveOperation_Handle, (ulong)saveOperation)); } [Export("updateChangeCountWithToken:forSaveOperation:")] public virtual void UpdateChangeCount(NSObject changeCountToken, NSSaveOperationType saveOperation) { NSApplication.EnsureUIThread(); if (changeCountToken == null) { throw new ArgumentNullException("changeCountToken"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selUpdateChangeCountWithTokenForSaveOperation_Handle, changeCountToken.Handle, (ulong)saveOperation); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selUpdateChangeCountWithTokenForSaveOperation_Handle, changeCountToken.Handle, (ulong)saveOperation); } } [Export("willNotPresentError:")] public virtual void WillNotPresentError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillNotPresentError_Handle, error.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillNotPresentError_Handle, error.Handle); } } [Export("setDisplayName:")] public virtual void SetDisplayName(string displayNameOrNull) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(displayNameOrNull); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDisplayName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDisplayName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("restoreDocumentWindowWithIdentifier:state:completionHandler:")] public unsafe virtual void RestoreDocumentWindow(string identifier, NSCoder state, NSWindowCompletionHandler completionHandler) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (state == null) { throw new ArgumentNullException("state"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr arg = NSString.CreateNative(identifier); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSWindowCompletionHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRestoreDocumentWindowWithIdentifierStateCompletionHandler_Handle, arg, state.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRestoreDocumentWindowWithIdentifierStateCompletionHandler_Handle, arg, state.Handle, (IntPtr)ptr); } NSString.ReleaseNative(arg); ptr->CleanupBlock(); } [Export("encodeRestorableStateWithCoder:")] public virtual void EncodeRestorableState(NSCoder coder) { NSApplication.EnsureUIThread(); if (coder == null) { throw new ArgumentNullException("coder"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEncodeRestorableStateWithCoder_Handle, coder.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEncodeRestorableStateWithCoder_Handle, coder.Handle); } } [Export("restoreStateWithCoder:")] public virtual void RestoreState(NSCoder coder) { NSApplication.EnsureUIThread(); if (coder == null) { throw new ArgumentNullException("coder"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRestoreStateWithCoder_Handle, coder.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRestoreStateWithCoder_Handle, coder.Handle); } } [Export("invalidateRestorableState")] public virtual void InvalidateRestorableState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateRestorableStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateRestorableStateHandle); } } [Export("restorableStateKeyPaths")] public static string[] RestorableStateKeyPaths() { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selRestorableStateKeyPathsHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WindowControllers_var = null; __mt_WindowForSheet_var = null; __mt_FileUrl_var = null; __mt_FileModificationDate_var = null; __mt_AutosavedContentsFileUrl_var = null; __mt_PrintInfo_var = null; __mt_UndoManager_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDocumentChangeType.cs ================================================ namespace AppKit; public enum NSDocumentChangeType : ulong { Done = 0uL, Undone = 1uL, Cleared = 2uL, ReadOtherContents = 3uL, Autosaved = 4uL, Redone = 5uL, Discardable = 256uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDocumentCompletionHandler.cs ================================================ using System; namespace AppKit; public delegate void NSDocumentCompletionHandler(IntPtr nsErrorPointerOrZero); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDocumentController.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDocumentController", true)] public class NSDocumentController : NSObject { private static readonly IntPtr selSharedDocumentControllerHandle = Selector.GetHandle("sharedDocumentController"); private static readonly IntPtr selDocumentsHandle = Selector.GetHandle("documents"); private static readonly IntPtr selCurrentDocumentHandle = Selector.GetHandle("currentDocument"); private static readonly IntPtr selCurrentDirectoryHandle = Selector.GetHandle("currentDirectory"); private static readonly IntPtr selHasEditedDocumentsHandle = Selector.GetHandle("hasEditedDocuments"); private static readonly IntPtr selMaximumRecentDocumentCountHandle = Selector.GetHandle("maximumRecentDocumentCount"); private static readonly IntPtr selRecentDocumentURLsHandle = Selector.GetHandle("recentDocumentURLs"); private static readonly IntPtr selDefaultTypeHandle = Selector.GetHandle("defaultType"); private static readonly IntPtr selDocumentClassNamesHandle = Selector.GetHandle("documentClassNames"); private static readonly IntPtr selAutosavingDelayHandle = Selector.GetHandle("autosavingDelay"); private static readonly IntPtr selSetAutosavingDelay_Handle = Selector.GetHandle("setAutosavingDelay:"); private static readonly IntPtr selDocumentForURL_Handle = Selector.GetHandle("documentForURL:"); private static readonly IntPtr selDocumentForWindow_Handle = Selector.GetHandle("documentForWindow:"); private static readonly IntPtr selAddDocument_Handle = Selector.GetHandle("addDocument:"); private static readonly IntPtr selRemoveDocument_Handle = Selector.GetHandle("removeDocument:"); private static readonly IntPtr selNewDocument_Handle = Selector.GetHandle("newDocument:"); private static readonly IntPtr selOpenUntitledDocumentAndDisplayError_Handle = Selector.GetHandle("openUntitledDocumentAndDisplay:error:"); private static readonly IntPtr selMakeUntitledDocumentOfTypeError_Handle = Selector.GetHandle("makeUntitledDocumentOfType:error:"); private static readonly IntPtr selOpenDocument_Handle = Selector.GetHandle("openDocument:"); private static readonly IntPtr selURLsFromRunningOpenPanelHandle = Selector.GetHandle("URLsFromRunningOpenPanel"); private static readonly IntPtr selRunModalOpenPanelForTypes_Handle = Selector.GetHandle("runModalOpenPanel:forTypes:"); private static readonly IntPtr selOpenDocumentWithContentsOfURLDisplayError_Handle = Selector.GetHandle("openDocumentWithContentsOfURL:display:error:"); private static readonly IntPtr selOpenDocumentWithContentsOfURLDisplayCompletionHandler_Handle = Selector.GetHandle("openDocumentWithContentsOfURL:display:completionHandler:"); private static readonly IntPtr selMakeDocumentWithContentsOfURLOfTypeError_Handle = Selector.GetHandle("makeDocumentWithContentsOfURL:ofType:error:"); private static readonly IntPtr selReopenDocumentForURLWithContentsOfURLError_Handle = Selector.GetHandle("reopenDocumentForURL:withContentsOfURL:error:"); private static readonly IntPtr selMakeDocumentForURLWithContentsOfURLOfTypeError_Handle = Selector.GetHandle("makeDocumentForURL:withContentsOfURL:ofType:error:"); private static readonly IntPtr selSaveAllDocuments_Handle = Selector.GetHandle("saveAllDocuments:"); private static readonly IntPtr selReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo_Handle = Selector.GetHandle("reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:"); private static readonly IntPtr selCloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo_Handle = Selector.GetHandle("closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:"); private static readonly IntPtr selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle = Selector.GetHandle("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:"); private static readonly IntPtr selPresentError_Handle = Selector.GetHandle("presentError:"); private static readonly IntPtr selWillPresentError_Handle = Selector.GetHandle("willPresentError:"); private static readonly IntPtr selClearRecentDocuments_Handle = Selector.GetHandle("clearRecentDocuments:"); private static readonly IntPtr selNoteNewRecentDocument_Handle = Selector.GetHandle("noteNewRecentDocument:"); private static readonly IntPtr selNoteNewRecentDocumentURL_Handle = Selector.GetHandle("noteNewRecentDocumentURL:"); private static readonly IntPtr selTypeForContentsOfURLError_Handle = Selector.GetHandle("typeForContentsOfURL:error:"); private static readonly IntPtr selDocumentClassForType_Handle = Selector.GetHandle("documentClassForType:"); private static readonly IntPtr selDisplayNameForType_Handle = Selector.GetHandle("displayNameForType:"); private static readonly IntPtr selValidateUserInterfaceItem_Handle = Selector.GetHandle("validateUserInterfaceItem:"); private static readonly IntPtr selRestoreWindowWithIdentifierStateCompletionHandler_Handle = Selector.GetHandle("restoreWindowWithIdentifier:state:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDocumentController"); private static object __mt_SharedDocumentController_var_static; private object __mt_Documents_var; private object __mt_CurrentDocument_var; private object __mt_RecentDocumentUrls_var; public override IntPtr ClassHandle => class_ptr; public static NSObject SharedDocumentController { [Export("sharedDocumentController")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_SharedDocumentController_var_static = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedDocumentControllerHandle))); } } public virtual NSDocument[] Documents { [Export("documents")] get { NSApplication.EnsureUIThread(); return (NSDocument[])(__mt_Documents_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentsHandle)))); } } public virtual NSDocument CurrentDocument { [Export("currentDocument")] get { NSApplication.EnsureUIThread(); return (NSDocument)(__mt_CurrentDocument_var = ((!IsDirectBinding) ? ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDocumentHandle))) : ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDocumentHandle))))); } } public virtual string CurrentDirectory { [Export("currentDirectory")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDirectoryHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDirectoryHandle)); } } public virtual bool HasEditedDocuments { [Export("hasEditedDocuments")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasEditedDocumentsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasEditedDocumentsHandle); } } public virtual long MaximumRecentDocumentCount { [Export("maximumRecentDocumentCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaximumRecentDocumentCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaximumRecentDocumentCountHandle); } } public virtual NSUrl[] RecentDocumentUrls { [Export("recentDocumentURLs")] get { NSApplication.EnsureUIThread(); return (NSUrl[])(__mt_RecentDocumentUrls_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRecentDocumentURLsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRecentDocumentURLsHandle)))); } } public virtual string DefaultType { [Export("defaultType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultTypeHandle)); } } public virtual string[] DocumentClassNames { [Export("documentClassNames")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentClassNamesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentClassNamesHandle)); } } public virtual double AutosavingDelay { [Export("autosavingDelay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAutosavingDelayHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAutosavingDelayHandle); } [Export("setAutosavingDelay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAutosavingDelay_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAutosavingDelay_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDocumentController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDocumentController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDocumentController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDocumentController(IntPtr handle) : base(handle) { } [Export("documentForURL:")] public virtual NSDocument DocumentForUrl(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return (NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDocumentForURL_Handle, url.Handle)); } return (NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDocumentForURL_Handle, url.Handle)); } [Export("documentForWindow:")] public virtual NSDocument DocumentForWindow(NSWindow window) { NSApplication.EnsureUIThread(); if (window == null) { throw new ArgumentNullException("window"); } if (IsDirectBinding) { return (NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDocumentForWindow_Handle, window.Handle)); } return (NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDocumentForWindow_Handle, window.Handle)); } [Export("addDocument:")] public virtual void AddDocument(NSDocument document) { NSApplication.EnsureUIThread(); if (document == null) { throw new ArgumentNullException("document"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddDocument_Handle, document.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddDocument_Handle, document.Handle); } _ = Documents; } [Export("removeDocument:")] public virtual void RemoveDocument(NSDocument document) { NSApplication.EnsureUIThread(); if (document == null) { throw new ArgumentNullException("document"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveDocument_Handle, document.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveDocument_Handle, document.Handle); } _ = Documents; } [Export("newDocument:")] public virtual void NewDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNewDocument_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNewDocument_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("openUntitledDocumentAndDisplay:error:")] public virtual NSObject OpenUntitledDocument(bool displayDocument, out NSError outError) { NSApplication.EnsureUIThread(); IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selOpenUntitledDocumentAndDisplayError_Handle, displayDocument, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool_IntPtr(base.Handle, selOpenUntitledDocumentAndDisplayError_Handle, displayDocument, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("makeUntitledDocumentOfType:error:")] public virtual NSObject MakeUntitledDocument(string typeName, out NSError error) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selMakeUntitledDocumentOfTypeError_Handle, arg, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selMakeUntitledDocumentOfTypeError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("openDocument:")] public virtual void OpenDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOpenDocument_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOpenDocument_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("URLsFromRunningOpenPanel")] public virtual NSUrl[] UrlsFromRunningOpenPanel() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURLsFromRunningOpenPanelHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLsFromRunningOpenPanelHandle)); } [Export("runModalOpenPanel:forTypes:")] public virtual long RunModalOpenPanel(NSOpenPanel openPanel, string[] types) { NSApplication.EnsureUIThread(); if (openPanel == null) { throw new ArgumentNullException("openPanel"); } if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRunModalOpenPanelForTypes_Handle, openPanel.Handle, nSArray.Handle) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selRunModalOpenPanelForTypes_Handle, openPanel.Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("openDocumentWithContentsOfURL:display:error:")] public virtual NSObject OpenDocument(NSUrl url, bool displayDocument, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool_IntPtr(base.SuperHandle, selOpenDocumentWithContentsOfURLDisplayError_Handle, url.Handle, displayDocument, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool_IntPtr(base.Handle, selOpenDocumentWithContentsOfURLDisplayError_Handle, url.Handle, displayDocument, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("openDocumentWithContentsOfURL:display:completionHandler:")] public unsafe virtual void OpenDocument(NSUrl url, bool display, OpenDocumentCompletionHandler completionHandler) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDOpenDocumentCompletionHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool_IntPtr(base.Handle, selOpenDocumentWithContentsOfURLDisplayCompletionHandler_Handle, url.Handle, display, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool_IntPtr(base.SuperHandle, selOpenDocumentWithContentsOfURLDisplayCompletionHandler_Handle, url.Handle, display, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("makeDocumentWithContentsOfURL:ofType:error:")] public virtual NSObject MakeDocument(NSUrl url, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMakeDocumentWithContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selMakeDocumentWithContentsOfURLOfTypeError_Handle, url.Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("reopenDocumentForURL:withContentsOfURL:error:")] public virtual bool ReopenDocument(NSUrl url, NSUrl contentsUrl, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (contentsUrl == null) { throw new ArgumentNullException("contentsUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selReopenDocumentForURLWithContentsOfURLError_Handle, url.Handle, contentsUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selReopenDocumentForURLWithContentsOfURLError_Handle, url.Handle, contentsUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("makeDocumentForURL:withContentsOfURL:ofType:error:")] public virtual NSObject MakeDocument(NSUrl urlOrNil, NSUrl contentsUrl, string typeName, out NSError outError) { NSApplication.EnsureUIThread(); if (contentsUrl == null) { throw new ArgumentNullException("contentsUrl"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(typeName); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMakeDocumentForURLWithContentsOfURLOfTypeError_Handle, urlOrNil?.Handle ?? IntPtr.Zero, contentsUrl.Handle, arg, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selMakeDocumentForURLWithContentsOfURLOfTypeError_Handle, urlOrNil?.Handle ?? IntPtr.Zero, contentsUrl.Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("saveAllDocuments:")] public virtual void SaveAllDocuments(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSaveAllDocuments_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSaveAllDocuments_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:")] public virtual void ReviewUnsavedDocuments(string title, bool cancellable, NSObject delegateObject, Selector didReviewAllSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didReviewAllSelector == null) { throw new ArgumentNullException("didReviewAllSelector"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool_IntPtr_IntPtr_IntPtr(base.Handle, selReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo_Handle, arg, cancellable, delegateObject.Handle, didReviewAllSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr_IntPtr(base.SuperHandle, selReviewUnsavedDocumentsWithAlertTitleCancellableDelegateDidReviewAllSelectorContextInfo_Handle, arg, cancellable, delegateObject.Handle, didReviewAllSelector.Handle, contextInfo); } NSString.ReleaseNative(arg); } [Export("closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:")] public virtual void CloseAllDocuments(NSObject delegateObject, Selector didCloseAllSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didCloseAllSelector == null) { throw new ArgumentNullException("didCloseAllSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo_Handle, delegateObject.Handle, didCloseAllSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCloseAllDocumentsWithDelegateDidCloseAllSelectorContextInfo_Handle, delegateObject.Handle, didCloseAllSelector.Handle, contextInfo); } } [Export("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:")] public virtual void PresentError(NSError error, NSWindow window, NSObject delegateObject, Selector didPresentSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (window == null) { throw new ArgumentNullException("window"); } if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didPresentSelector == null) { throw new ArgumentNullException("didPresentSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle, error.Handle, window.Handle, delegateObject.Handle, didPresentSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPresentErrorModalForWindowDelegateDidPresentSelectorContextInfo_Handle, error.Handle, window.Handle, delegateObject.Handle, didPresentSelector.Handle, contextInfo); } } [Export("presentError:")] public virtual bool PresentError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPresentError_Handle, error.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPresentError_Handle, error.Handle); } [Export("willPresentError:")] public virtual NSError WillPresentError(NSError error) { NSApplication.EnsureUIThread(); if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { return (NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selWillPresentError_Handle, error.Handle)); } return (NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillPresentError_Handle, error.Handle)); } [Export("clearRecentDocuments:")] public virtual void ClearRecentDocuments(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selClearRecentDocuments_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selClearRecentDocuments_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("noteNewRecentDocument:")] public virtual void NoteNewRecentDocument(NSDocument document) { NSApplication.EnsureUIThread(); if (document == null) { throw new ArgumentNullException("document"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNoteNewRecentDocument_Handle, document.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNoteNewRecentDocument_Handle, document.Handle); } } [Export("noteNewRecentDocumentURL:")] public virtual void NoteNewRecentDocumentURL(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNoteNewRecentDocumentURL_Handle, url.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNoteNewRecentDocumentURL_Handle, url.Handle); } } [Export("typeForContentsOfURL:error:")] public virtual string TypeForUrl(NSUrl url, out NSError outError) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTypeForContentsOfURLError_Handle, url.Handle, intPtr)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selTypeForContentsOfURLError_Handle, url.Handle, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("documentClassForType:")] public virtual Class DocumentClassForType(string typeName) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); Class result = ((!IsDirectBinding) ? new Class(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDocumentClassForType_Handle, arg)) : new Class(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDocumentClassForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("displayNameForType:")] public virtual string DisplayNameForType(string typeName) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDisplayNameForType_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDisplayNameForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("validateUserInterfaceItem:")] public virtual bool ValidateUserInterfaceItem(NSObject anItem) { NSApplication.EnsureUIThread(); if (anItem == null) { throw new ArgumentNullException("anItem"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateUserInterfaceItem_Handle, anItem.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateUserInterfaceItem_Handle, anItem.Handle); } [Export("restoreWindowWithIdentifier:state:completionHandler:")] public unsafe static void RestoreWindow(string identifier, NSCoder state, NSWindowCompletionHandler onCompletion) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (state == null) { throw new ArgumentNullException("state"); } if (onCompletion == null) { throw new ArgumentNullException("onCompletion"); } IntPtr arg = NSString.CreateNative(identifier); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSWindowCompletionHandler.Handler, onCompletion); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selRestoreWindowWithIdentifierStateCompletionHandler_Handle, arg, state.Handle, (IntPtr)ptr); NSString.ReleaseNative(arg); ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Documents_var = null; __mt_CurrentDocument_var = null; __mt_RecentDocumentUrls_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDragOperation.cs ================================================ using System; namespace AppKit; [Flags] public enum NSDragOperation : ulong { None = 0uL, Copy = 1uL, Link = 2uL, Generic = 4uL, Private = 8uL, AllObsolete = 0xFuL, Move = 0x10uL, Delete = 0x20uL, All = ulong.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingContext.cs ================================================ namespace AppKit; public enum NSDraggingContext : long { OutsideApplication, WithinApplication } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingDestination.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDraggingDestination", true)] [Model] public class NSDraggingDestination : NSObject { public virtual bool WantsPeriodicDraggingUpdates { [Export("wantsPeriodicDraggingUpdates")] get { throw new ModelNotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDraggingDestination() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingDestination(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingDestination(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingDestination(IntPtr handle) : base(handle) { } [Export("draggingEntered:")] public virtual NSDragOperation DraggingEntered(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggingUpdated:")] public virtual NSDragOperation DraggingUpdated(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggingExited:")] public virtual void DraggingExited(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("prepareForDragOperation:")] public virtual bool PrepareForDragOperation(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("performDragOperation:")] public virtual bool PerformDragOperation(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("concludeDragOperation:")] public virtual void ConcludeDragOperation(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggingEnded:")] public virtual void DraggingEnded(NSDraggingInfo sender) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingEnumerator.cs ================================================ namespace AppKit; public delegate void NSDraggingEnumerator(NSDraggingItem draggingItem, int idx, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingFormation.cs ================================================ namespace AppKit; public enum NSDraggingFormation : long { Default, None, Pile, List, Stack } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingImageComponent.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDraggingImageComponent", true)] public class NSDraggingImageComponent : NSObject { private static readonly IntPtr selKeyHandle = Selector.GetHandle("key"); private static readonly IntPtr selSetKey_Handle = Selector.GetHandle("setKey:"); private static readonly IntPtr selContentsHandle = Selector.GetHandle("contents"); private static readonly IntPtr selSetContents_Handle = Selector.GetHandle("setContents:"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selSetFrame_Handle = Selector.GetHandle("setFrame:"); private static readonly IntPtr selDraggingImageComponentWithKey_Handle = Selector.GetHandle("draggingImageComponentWithKey:"); private static readonly IntPtr selInitWithKey_Handle = Selector.GetHandle("initWithKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDraggingImageComponent"); private object __mt_Contents_var; private static NSString _IconKey; private static NSString _LabelKey; public override IntPtr ClassHandle => class_ptr; public virtual string Key { [Export("key")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyHandle)); } [Export("setKey:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKey_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject Contents { [Export("contents")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Contents_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentsHandle)))); } [Export("setContents:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContents_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContents_Handle, value.Handle); } __mt_Contents_var = value; } } public virtual CGRect Frame { [Export("frame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } [Export("setFrame:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetFrame_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetFrame_Handle, value); } } } [Field("NSDraggingImageComponentIconKey", "AppKit")] public static NSString IconKey { get { if (_IconKey == null) { _IconKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDraggingImageComponentIconKey"); } return _IconKey; } } [Field("NSDraggingImageComponentLabelKey", "AppKit")] public static NSString LabelKey { get { if (_LabelKey == null) { _LabelKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDraggingImageComponentLabelKey"); } return _LabelKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDraggingImageComponent() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingImageComponent(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingImageComponent(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingImageComponent(IntPtr handle) : base(handle) { } [Export("draggingImageComponentWithKey:")] public static NSDraggingImageComponent FromKey(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSDraggingImageComponent result = (NSDraggingImageComponent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDraggingImageComponentWithKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithKey:")] public NSDraggingImageComponent(string key) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithKey_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithKey_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Contents_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingInfo.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDragDestination", true)] public class NSDraggingInfo : NSObject { private static readonly IntPtr selDraggingDestinationWindowHandle = Selector.GetHandle("draggingDestinationWindow"); private static readonly IntPtr selDraggingSourceOperationMaskHandle = Selector.GetHandle("draggingSourceOperationMask"); private static readonly IntPtr selDraggingLocationHandle = Selector.GetHandle("draggingLocation"); private static readonly IntPtr selDraggedImageLocationHandle = Selector.GetHandle("draggedImageLocation"); private static readonly IntPtr selDraggedImageHandle = Selector.GetHandle("draggedImage"); private static readonly IntPtr selDraggingPasteboardHandle = Selector.GetHandle("draggingPasteboard"); private static readonly IntPtr selDraggingSourceHandle = Selector.GetHandle("draggingSource"); private static readonly IntPtr selDraggingSequenceNumberHandle = Selector.GetHandle("draggingSequenceNumber"); private static readonly IntPtr selAnimatesToDestinationHandle = Selector.GetHandle("animatesToDestination"); private static readonly IntPtr selSetAnimatesToDestination_Handle = Selector.GetHandle("setAnimatesToDestination:"); private static readonly IntPtr selNumberOfValidItemsForDropHandle = Selector.GetHandle("numberOfValidItemsForDrop"); private static readonly IntPtr selSetNumberOfValidItemsForDrop_Handle = Selector.GetHandle("setNumberOfValidItemsForDrop:"); private static readonly IntPtr selDraggingFormationHandle = Selector.GetHandle("draggingFormation"); private static readonly IntPtr selSetDraggingFormation_Handle = Selector.GetHandle("setDraggingFormation:"); private static readonly IntPtr selSlideDraggedImageTo_Handle = Selector.GetHandle("slideDraggedImageTo:"); private static readonly IntPtr selNamesOfPromisedFilesDroppedAtDestination_Handle = Selector.GetHandle("namesOfPromisedFilesDroppedAtDestination:"); private static readonly IntPtr selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle = Selector.GetHandle("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDragDestination"); private object __mt_DraggingDestinationWindow_var; private object __mt_DraggedImage_var; private object __mt_DraggingPasteboard_var; private object __mt_DraggingSource_var; public override IntPtr ClassHandle => class_ptr; public virtual NSWindow DraggingDestinationWindow { [Export("draggingDestinationWindow")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_DraggingDestinationWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingDestinationWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingDestinationWindowHandle))))); } } public virtual NSDragOperation DraggingSourceOperationMask { [Export("draggingSourceOperationMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend(base.Handle, selDraggingSourceOperationMaskHandle); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDraggingSourceOperationMaskHandle); } } public virtual CGPoint DraggingLocation { [Export("draggingLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selDraggingLocationHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selDraggingLocationHandle); } } public virtual CGPoint DraggedImageLocation { [Export("draggedImageLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selDraggedImageLocationHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selDraggedImageLocationHandle); } } public virtual NSImage DraggedImage { [Export("draggedImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_DraggedImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggedImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggedImageHandle))))); } } public virtual NSPasteboard DraggingPasteboard { [Export("draggingPasteboard")] get { NSApplication.EnsureUIThread(); return (NSPasteboard)(__mt_DraggingPasteboard_var = ((!IsDirectBinding) ? ((NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingPasteboardHandle))) : ((NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingPasteboardHandle))))); } } public virtual NSObject DraggingSource { [Export("draggingSource")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_DraggingSource_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingSourceHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingSourceHandle)))); } } public virtual long DraggingSequenceNumber { [Export("draggingSequenceNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selDraggingSequenceNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingSequenceNumberHandle); } } public virtual bool AnimatesToDestination { [Export("animatesToDestination")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAnimatesToDestinationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAnimatesToDestinationHandle); } [Export("setAnimatesToDestination:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAnimatesToDestination_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAnimatesToDestination_Handle, value); } } } public virtual long NumberOfValidItemsForDrop { [Export("numberOfValidItemsForDrop")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfValidItemsForDropHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfValidItemsForDropHandle); } [Export("setNumberOfValidItemsForDrop:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfValidItemsForDrop_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfValidItemsForDrop_Handle, value); } } } public virtual NSDraggingFormation DraggingFormation { [Export("draggingFormation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDraggingFormation)Messaging.Int64_objc_msgSend(base.Handle, selDraggingFormationHandle); } return (NSDraggingFormation)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingFormationHandle); } [Export("setDraggingFormation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDraggingFormation_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDraggingFormation_Handle, (long)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDraggingInfo() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingInfo(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingInfo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingInfo(IntPtr handle) : base(handle) { } [Export("slideDraggedImageTo:")] public virtual void SlideDraggedImageTo(CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSlideDraggedImageTo_Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSlideDraggedImageTo_Handle, screenPoint); } } [Export("namesOfPromisedFilesDroppedAtDestination:")] public virtual string[] PromisedFilesDroppedAtDestination(NSUrl dropDestination) { NSApplication.EnsureUIThread(); if (dropDestination == null) { throw new ArgumentNullException("dropDestination"); } if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } [Export("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:")] public unsafe virtual void EnumerateDraggingItems(NSDraggingItemEnumerationOptions enumOpts, NSView view, NSPasteboardReading[] classArray, NSDictionary searchOptions, NSDraggingEnumerator enumerator) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (classArray == null) { throw new ArgumentNullException("classArray"); } if (searchOptions == null) { throw new ArgumentNullException("searchOptions"); } if (enumerator == null) { throw new ArgumentNullException("enumerator"); } NSArray nSArray = NSArray.FromNSObjects(classArray); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSDraggingEnumerator.Handler, enumerator); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle, (ulong)enumOpts, view.Handle, nSArray.Handle, searchOptions.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle, (ulong)enumOpts, view.Handle, nSArray.Handle, searchOptions.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DraggingDestinationWindow_var = null; __mt_DraggedImage_var = null; __mt_DraggingPasteboard_var = null; __mt_DraggingSource_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingItem.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDraggingItem", true)] public class NSDraggingItem : NSObject { private static readonly IntPtr selItemHandle = Selector.GetHandle("item"); private static readonly IntPtr selDraggingFrameHandle = Selector.GetHandle("draggingFrame"); private static readonly IntPtr selSetDraggingFrame_Handle = Selector.GetHandle("setDraggingFrame:"); private static readonly IntPtr selImageComponentsHandle = Selector.GetHandle("imageComponents"); private static readonly IntPtr selInitWithPasteboardWriter_Handle = Selector.GetHandle("initWithPasteboardWriter:"); private static readonly IntPtr selSetImageComponentsProvider_Handle = Selector.GetHandle("setImageComponentsProvider:"); private static readonly IntPtr selSetDraggingFrameContents_Handle = Selector.GetHandle("setDraggingFrame:contents:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDraggingItem"); private object __mt_Item_var; private object __mt_ImageComponents_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Item { [Export("item")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Item_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selItemHandle)))); } } public virtual CGRect DraggingFrame { [Export("draggingFrame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selDraggingFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDraggingFrameHandle); } return retval; } [Export("setDraggingFrame:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetDraggingFrame_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetDraggingFrame_Handle, value); } } } public virtual NSDraggingImageComponent[] ImageComponents { [Export("imageComponents")] get { NSApplication.EnsureUIThread(); return (NSDraggingImageComponent[])(__mt_ImageComponents_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageComponentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selImageComponentsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDraggingItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingItem(IntPtr handle) : base(handle) { } [Export("initWithPasteboardWriter:")] public NSDraggingItem(NSPasteboardWriting pasteboardWriter) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (pasteboardWriter == null) { throw new ArgumentNullException("pasteboardWriter"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPasteboardWriter_Handle, pasteboardWriter.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPasteboardWriter_Handle, pasteboardWriter.Handle); } } [Export("setImageComponentsProvider:")] public unsafe virtual void SetImagesContentProvider(NSDraggingItemImagesContentProvider provider) { NSApplication.EnsureUIThread(); BlockLiteral* ptr; if (provider == null) { ptr = null; } else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSDraggingItemImagesContentProvider.Handler, provider); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImageComponentsProvider_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImageComponentsProvider_Handle, (IntPtr)ptr); } if (ptr != null) { ptr->CleanupBlock(); } } [Export("setDraggingFrame:contents:")] public virtual void SetDraggingFrame(CGRect frame, NSObject contents) { NSApplication.EnsureUIThread(); if (contents == null) { throw new ArgumentNullException("contents"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selSetDraggingFrameContents_Handle, frame, contents.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selSetDraggingFrameContents_Handle, frame, contents.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Item_var = null; __mt_ImageComponents_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingItemEnumerationOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSDraggingItemEnumerationOptions : ulong { Concurrent = 1uL, ClearNonenumeratedImages = 0x10000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingItemImagesContentProvider.cs ================================================ namespace AppKit; public delegate NSDraggingImageComponent[] NSDraggingItemImagesContentProvider(); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingSession.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDraggingSession", true)] public class NSDraggingSession : NSObject { private static readonly IntPtr selDraggingFormationHandle = Selector.GetHandle("draggingFormation"); private static readonly IntPtr selSetDraggingFormation_Handle = Selector.GetHandle("setDraggingFormation:"); private static readonly IntPtr selAnimatesToStartingPositionsOnCancelOrFailHandle = Selector.GetHandle("animatesToStartingPositionsOnCancelOrFail"); private static readonly IntPtr selSetAnimatesToStartingPositionsOnCancelOrFail_Handle = Selector.GetHandle("setAnimatesToStartingPositionsOnCancelOrFail:"); private static readonly IntPtr selDraggingLeaderIndexHandle = Selector.GetHandle("draggingLeaderIndex"); private static readonly IntPtr selSetDraggingLeaderIndex_Handle = Selector.GetHandle("setDraggingLeaderIndex:"); private static readonly IntPtr selDraggingPasteboardHandle = Selector.GetHandle("draggingPasteboard"); private static readonly IntPtr selDraggingSequenceNumberHandle = Selector.GetHandle("draggingSequenceNumber"); private static readonly IntPtr selDraggingLocationHandle = Selector.GetHandle("draggingLocation"); private static readonly IntPtr selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle = Selector.GetHandle("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDraggingSession"); private object __mt_DraggingPasteboard_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDraggingFormation DraggingFormation { [Export("draggingFormation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDraggingFormation)Messaging.Int64_objc_msgSend(base.Handle, selDraggingFormationHandle); } return (NSDraggingFormation)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingFormationHandle); } [Export("setDraggingFormation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDraggingFormation_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDraggingFormation_Handle, (long)value); } } } public virtual bool AnimatesToStartingPositionsOnCancelOrFail { [Export("animatesToStartingPositionsOnCancelOrFail")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAnimatesToStartingPositionsOnCancelOrFailHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAnimatesToStartingPositionsOnCancelOrFailHandle); } [Export("setAnimatesToStartingPositionsOnCancelOrFail:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAnimatesToStartingPositionsOnCancelOrFail_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAnimatesToStartingPositionsOnCancelOrFail_Handle, value); } } } public virtual long DraggingLeaderIndex { [Export("draggingLeaderIndex")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selDraggingLeaderIndexHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingLeaderIndexHandle); } [Export("setDraggingLeaderIndex:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDraggingLeaderIndex_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDraggingLeaderIndex_Handle, value); } } } public virtual NSPasteboard DraggingPasteboard { [Export("draggingPasteboard")] get { NSApplication.EnsureUIThread(); return (NSPasteboard)(__mt_DraggingPasteboard_var = ((!IsDirectBinding) ? ((NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingPasteboardHandle))) : ((NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingPasteboardHandle))))); } } public virtual long DraggingSequenceNumber { [Export("draggingSequenceNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selDraggingSequenceNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingSequenceNumberHandle); } } public virtual CGPoint DraggingLocation { [Export("draggingLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selDraggingLocationHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selDraggingLocationHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingSession(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingSession(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingSession(IntPtr handle) : base(handle) { } [Export("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:")] public unsafe virtual void EnumerateDraggingItems(NSDraggingItemEnumerationOptions enumOpts, NSView view, NSPasteboardReading[] classArray, NSDictionary searchOptions, NSDraggingEnumerator enumerator) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (classArray == null) { throw new ArgumentNullException("classArray"); } if (searchOptions == null) { throw new ArgumentNullException("searchOptions"); } if (enumerator == null) { throw new ArgumentNullException("enumerator"); } NSArray nSArray = NSArray.FromNSObjects(classArray); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSDraggingEnumerator.Handler, enumerator); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle, (ulong)enumOpts, view.Handle, nSArray.Handle, searchOptions.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock_Handle, (ulong)enumOpts, view.Handle, nSArray.Handle, searchOptions.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DraggingPasteboard_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDraggingSource.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDraggingSource", true)] [Model] public class NSDraggingSource : NSObject { public virtual bool IgnoreModifierKeysWhileDragging { [Export("ignoreModifierKeysWhileDragging")] get { throw new ModelNotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDraggingSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDraggingSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDraggingSource(IntPtr handle) : base(handle) { } [Export("draggingSourceOperationMaskForLocal:")] public virtual NSDragOperation DraggingSourceOperationMaskForLocal(bool flag) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("namesOfPromisedFilesDroppedAtDestination:")] public virtual string[] NamesOfPromisedFilesDroppedAtDestination(NSUrl dropDestination) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggedImage:beganAt:")] public virtual void DraggedImageBeganAt(NSImage image, CGPoint screenPoint) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggedImage:endedAt:operation:")] public virtual void DraggedImageEndedAtOperation(NSImage image, CGPoint screenPoint, NSDragOperation operation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggedImage:movedTo:")] public virtual void DraggedImageMovedTo(NSImage image, CGPoint screenPoint) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("draggedImage:endedAt:deposited:")] [Obsolete("On 10.1 and newer, use DraggedImageEndedAtOperation() instead", false)] public virtual void DraggedImageEndedAtDeposited(NSImage image, CGPoint screenPoint, bool deposited) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDrawer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDrawer", true)] public class NSDrawer : NSResponder { [Register] private sealed class _NSDrawerDelegate : NSDrawerDelegate { internal EventHandler drawerDidClose; internal EventHandler drawerDidOpen; internal DrawerShouldCloseDelegate drawerShouldClose; internal DrawerShouldOpenDelegate drawerShouldOpen; internal EventHandler drawerWillClose; internal EventHandler drawerWillOpen; internal DrawerWillResizeContentsDelegate drawerWillResizeContents; [Preserve(Conditional = true)] public override void DrawerDidClose(NSNotification notification) { drawerDidClose?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DrawerDidOpen(NSNotification notification) { drawerDidOpen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override bool DrawerShouldClose(NSDrawer sender) { return drawerShouldClose?.Invoke(sender) ?? true; } [Preserve(Conditional = true)] public override bool DrawerShouldOpen(NSDrawer sender) { return drawerShouldOpen?.Invoke(sender) ?? true; } [Preserve(Conditional = true)] public override void DrawerWillClose(NSNotification notification) { drawerWillClose?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DrawerWillOpen(NSNotification notification) { drawerWillOpen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override CGSize DrawerWillResizeContents(NSDrawer sender, CGSize toSize) { DrawerWillResizeContentsDelegate drawerWillResizeContentsDelegate = drawerWillResizeContents; if (drawerWillResizeContentsDelegate != null) { return drawerWillResizeContentsDelegate(sender, toSize); } throw new Exception("No event handler has been added to the DrawerWillResizeContents event."); } } private static readonly IntPtr selParentWindowHandle = Selector.GetHandle("parentWindow"); private static readonly IntPtr selSetParentWindow_Handle = Selector.GetHandle("setParentWindow:"); private static readonly IntPtr selContentViewHandle = Selector.GetHandle("contentView"); private static readonly IntPtr selSetContentView_Handle = Selector.GetHandle("setContentView:"); private static readonly IntPtr selPreferredEdgeHandle = Selector.GetHandle("preferredEdge"); private static readonly IntPtr selSetPreferredEdge_Handle = Selector.GetHandle("setPreferredEdge:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selStateHandle = Selector.GetHandle("state"); private static readonly IntPtr selEdgeHandle = Selector.GetHandle("edge"); private static readonly IntPtr selContentSizeHandle = Selector.GetHandle("contentSize"); private static readonly IntPtr selSetContentSize_Handle = Selector.GetHandle("setContentSize:"); private static readonly IntPtr selMinContentSizeHandle = Selector.GetHandle("minContentSize"); private static readonly IntPtr selSetMinContentSize_Handle = Selector.GetHandle("setMinContentSize:"); private static readonly IntPtr selMaxContentSizeHandle = Selector.GetHandle("maxContentSize"); private static readonly IntPtr selSetMaxContentSize_Handle = Selector.GetHandle("setMaxContentSize:"); private static readonly IntPtr selLeadingOffsetHandle = Selector.GetHandle("leadingOffset"); private static readonly IntPtr selSetLeadingOffset_Handle = Selector.GetHandle("setLeadingOffset:"); private static readonly IntPtr selTrailingOffsetHandle = Selector.GetHandle("trailingOffset"); private static readonly IntPtr selSetTrailingOffset_Handle = Selector.GetHandle("setTrailingOffset:"); private static readonly IntPtr selInitWithContentSizePreferredEdge_Handle = Selector.GetHandle("initWithContentSize:preferredEdge:"); private static readonly IntPtr selOpenOnEdge_Handle = Selector.GetHandle("openOnEdge:"); private static readonly IntPtr selOpen_Handle = Selector.GetHandle("open:"); private static readonly IntPtr selClose_Handle = Selector.GetHandle("close:"); private static readonly IntPtr selToggle_Handle = Selector.GetHandle("toggle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDrawer"); private object __mt_ParentWindow_var; private object __mt_ContentView_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSWindow ParentWindow { [Export("parentWindow")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_ParentWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentWindowHandle))))); } [Export("setParentWindow:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetParentWindow_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetParentWindow_Handle, value.Handle); } __mt_ParentWindow_var = value; } } public virtual NSView ContentView { [Export("contentView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_ContentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewHandle))))); } [Export("setContentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentView_Handle, value.Handle); } __mt_ContentView_var = value; } } public virtual NSRectEdge PreferredEdge { [Export("preferredEdge")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRectEdge)Messaging.int_objc_msgSend(base.Handle, selPreferredEdgeHandle); } return (NSRectEdge)Messaging.int_objc_msgSendSuper(base.SuperHandle, selPreferredEdgeHandle); } [Export("setPreferredEdge:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetPreferredEdge_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetPreferredEdge_Handle, (int)value); } } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSDrawerDelegate Delegate { get { return WeakDelegate as NSDrawerDelegate; } set { WeakDelegate = value; } } public virtual NSDrawerState State { [Export("state")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDrawerState)Messaging.UInt64_objc_msgSend(base.Handle, selStateHandle); } return (NSDrawerState)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStateHandle); } } public virtual NSRectEdge Edge { [Export("edge")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRectEdge)Messaging.int_objc_msgSend(base.Handle, selEdgeHandle); } return (NSRectEdge)Messaging.int_objc_msgSendSuper(base.SuperHandle, selEdgeHandle); } } public virtual CGSize ContentSize { [Export("contentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentSizeHandle); } [Export("setContentSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentSize_Handle, value); } } } public virtual CGSize MinContentSize { [Export("minContentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinContentSizeHandle); } [Export("setMinContentSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMinContentSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMinContentSize_Handle, value); } } } public virtual CGSize MaxContentSize { [Export("maxContentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaxContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaxContentSizeHandle); } [Export("setMaxContentSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaxContentSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaxContentSize_Handle, value); } } } public virtual double LeadingOffset { [Export("leadingOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLeadingOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLeadingOffsetHandle); } [Export("setLeadingOffset:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLeadingOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLeadingOffset_Handle, value); } } } public virtual double TrailingOffset { [Export("trailingOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTrailingOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTrailingOffsetHandle); } [Export("setTrailingOffset:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTrailingOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTrailingOffset_Handle, value); } } } public DrawerShouldCloseDelegate DrawerShouldClose { get { return EnsureNSDrawerDelegate().drawerShouldClose; } set { EnsureNSDrawerDelegate().drawerShouldClose = value; } } public DrawerShouldOpenDelegate DrawerShouldOpen { get { return EnsureNSDrawerDelegate().drawerShouldOpen; } set { EnsureNSDrawerDelegate().drawerShouldOpen = value; } } public DrawerWillResizeContentsDelegate DrawerWillResizeContents { get { return EnsureNSDrawerDelegate().drawerWillResizeContents; } set { EnsureNSDrawerDelegate().drawerWillResizeContents = value; } } public event EventHandler DrawerDidClose { add { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerDidClose = (EventHandler)System.Delegate.Combine(nSDrawerDelegate.drawerDidClose, value); } remove { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerDidClose = (EventHandler)System.Delegate.Remove(nSDrawerDelegate.drawerDidClose, value); } } public event EventHandler DrawerDidOpen { add { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerDidOpen = (EventHandler)System.Delegate.Combine(nSDrawerDelegate.drawerDidOpen, value); } remove { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerDidOpen = (EventHandler)System.Delegate.Remove(nSDrawerDelegate.drawerDidOpen, value); } } public event EventHandler DrawerWillClose { add { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerWillClose = (EventHandler)System.Delegate.Combine(nSDrawerDelegate.drawerWillClose, value); } remove { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerWillClose = (EventHandler)System.Delegate.Remove(nSDrawerDelegate.drawerWillClose, value); } } public event EventHandler DrawerWillOpen { add { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerWillOpen = (EventHandler)System.Delegate.Combine(nSDrawerDelegate.drawerWillOpen, value); } remove { _NSDrawerDelegate nSDrawerDelegate = EnsureNSDrawerDelegate(); nSDrawerDelegate.drawerWillOpen = (EventHandler)System.Delegate.Remove(nSDrawerDelegate.drawerWillOpen, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDrawer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDrawer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDrawer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDrawer(IntPtr handle) : base(handle) { } [Export("initWithContentSize:preferredEdge:")] public NSDrawer(CGSize contentSize, NSRectEdge edge) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGSize_int(base.Handle, selInitWithContentSizePreferredEdge_Handle, contentSize, (int)edge); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGSize_int(base.SuperHandle, selInitWithContentSizePreferredEdge_Handle, contentSize, (int)edge); } } [Export("openOnEdge:")] public virtual void OpenOnEdge(NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selOpenOnEdge_Handle, (int)edge); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selOpenOnEdge_Handle, (int)edge); } } [Export("open:")] public virtual void Open(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOpen_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOpen_Handle, sender.Handle); } } [Export("close:")] public virtual void Close(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selClose_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selClose_Handle, sender.Handle); } } [Export("toggle:")] public virtual void Toggle(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggle_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggle_Handle, sender.Handle); } } private _NSDrawerDelegate EnsureNSDrawerDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSDrawerDelegate)) { nSObject = (WeakDelegate = new _NSDrawerDelegate()); } return (_NSDrawerDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ParentWindow_var = null; __mt_ContentView_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDrawerDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSDrawerDelegate", true)] [Model] public class NSDrawerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDrawerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDrawerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDrawerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDrawerDelegate(IntPtr handle) : base(handle) { } [Export("drawerDidClose:")] public virtual void DrawerDidClose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerDidOpen:")] public virtual void DrawerDidOpen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerShouldClose:")] public virtual bool DrawerShouldClose(NSDrawer sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerShouldOpen:")] public virtual bool DrawerShouldOpen(NSDrawer sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerWillClose:")] public virtual void DrawerWillClose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerWillOpen:")] public virtual void DrawerWillOpen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawerWillResizeContents:toSize:")] public virtual CGSize DrawerWillResizeContents(NSDrawer sender, CGSize toSize) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSDrawerState.cs ================================================ namespace AppKit; public enum NSDrawerState : ulong { Closed, Opening, Open, Closing } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEPSImageRep.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSEPSImageRep", true)] public class NSEPSImageRep : NSImageRep { private static readonly IntPtr selEPSRepresentationHandle = Selector.GetHandle("EPSRepresentation"); private static readonly IntPtr selBoundingBoxHandle = Selector.GetHandle("boundingBox"); private static readonly IntPtr selImageRepWithData_Handle = Selector.GetHandle("imageRepWithData:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selPrepareGStateHandle = Selector.GetHandle("prepareGState"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEPSImageRep"); private object __mt_EPSRepresentation_var; public override IntPtr ClassHandle => class_ptr; public virtual NSData EPSRepresentation { [Export("EPSRepresentation")] get { NSApplication.EnsureUIThread(); return (NSData)(__mt_EPSRepresentation_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEPSRepresentationHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEPSRepresentationHandle))))); } } public virtual CGRect BoundingBox { [Export("boundingBox")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundingBoxHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundingBoxHandle); } return retval; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEPSImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEPSImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEPSImageRep(IntPtr handle) : base(handle) { } [Export("imageRepWithData:")] public static NSObject FromData(NSData epsData) { NSApplication.EnsureUIThread(); if (epsData == null) { throw new ArgumentNullException("epsData"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithData_Handle, epsData.Handle)); } [Export("initWithData:")] public NSEPSImageRep(NSData epsData) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (epsData == null) { throw new ArgumentNullException("epsData"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, epsData.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, epsData.Handle); } } [Export("prepareGState")] public virtual void PrepareGState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPrepareGStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPrepareGStateHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_EPSRepresentation_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEdgeInsets.cs ================================================ namespace AppKit; public struct NSEdgeInsets { public double Top; public double Left; public double Bottom; public double Right; public NSEdgeInsets(double top, double left, double bottom, double right) { Top = top; Left = left; Bottom = bottom; Right = right; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSErrorEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSErrorEventArgs : EventArgs { public NSError Error { get; set; } public NSErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEvent.cs ================================================ using System; using System.ComponentModel; using System.Diagnostics; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [DebuggerTypeProxy(typeof(NSEventDebuggerProxy))] [Register("NSEvent", true)] public class NSEvent : NSObject { private class NSEventDebuggerProxy { private NSEvent target; private const int TabletPointEventSubtype = 1; private const int TabletProximityEventSubtype = 2; internal NSGraphicsContext Context => target.Context; public CGPoint LocationInWindow => target.LocationInWindow; public NSEventModifierMask ModifierFlags => target.ModifierFlags; public double Timestamp => target.Timestamp; public NSEventType Type => target.Type; public NSWindow Window => target.Window; public long WindowNumber => target.WindowNumber; public IntPtr CGEvent => target.CGEvent; public string Characters { get { CheckKeyEvent(); return target.Characters; } } public string CharactersIgnoringModifiers { get { CheckKeyEvent(); return target.CharactersIgnoringModifiers; } } public bool IsARepeat { get { CheckKeyEvent(); return target.IsARepeat; } } public ushort KeyCode { get { CheckKeyEvent(); return target.KeyCode; } } public long AbsoluteX { get { CheckTabletPointingEvent(); return target.AbsoluteX; } } public long AbsoluteY { get { CheckTabletPointingEvent(); return target.AbsoluteY; } } public long AbsoluteZ { get { CheckTabletPointingEvent(); return target.AbsoluteZ; } } public ulong ButtonMask { get { CheckTabletPointingEvent(); return target.ButtonMask; } } public double Rotation { get { CheckTabletPointingEvent(); return target.Rotation; } } public double TangentialPressure { get { CheckTabletPointingEvent(); return target.TangentialPressure; } } public CGPoint Tilt { get { CheckTabletPointingEvent(); return target.Tilt; } } public NSObject VendorDefined { get { CheckTabletPointingEvent(); return target.VendorDefined; } } public long ButtonNumber { get { CheckMouseEvent(); return target.ButtonNumber; } } public long ClickCount { get { CheckMouseEvent(); return target.ClickCount; } } public double Pressure { get { CheckMouseEvent(); return target.Pressure; } } internal long EventNumber { get { CheckMouseTrackingEvent(); return target.EventNumber; } } internal long TrackingNumber { get { CheckMouseTrackingEvent(); return target.TrackingNumber; } } internal NSTrackingArea TrackingArea { get { CheckMouseTrackingEvent(); return target.TrackingArea; } } internal IntPtr UserData { get { CheckMouseTrackingEvent(); return target.UserData; } } public short Subtype { get { CheckCustomEvent(); return target.Subtype; } } public long Data1 { get { CheckCustomEvent(); return target.Data1; } } public long Data2 { get { CheckCustomEvent(); return target.Data1; } } public double DeltaX { get { CheckScrollWheelEvent(); return target.Data1; } } public double DeltaY { get { CheckScrollWheelEvent(); return target.Data1; } } public double DeltaZ { get { CheckScrollWheelEvent(); return target.Data1; } } public ulong CapabilityMask { get { CheckTabletProximityEvent(); return target.CapabilityMask; } } public ulong DeviceID { get { CheckTabletProximityEvent(); return target.DeviceID; } } public bool IsEnteringProximity { get { CheckTabletProximityEvent(); return target.IsEnteringProximity; } } public ulong PointingDeviceSerialNumber { get { CheckTabletProximityEvent(); return target.PointingDeviceSerialNumber; } } public ulong PointingDeviceID { get { CheckTabletProximityEvent(); return target.PointingDeviceID(); } } public NSPointingDeviceType PointingDeviceType { get { CheckTabletProximityEvent(); return target.PointingDeviceType; } } public ulong SystemTabletID { get { CheckTabletProximityEvent(); return target.SystemTabletID; } } public ulong TabletID { get { CheckTabletProximityEvent(); return target.TabletID; } } public long UniqueID { get { CheckTabletProximityEvent(); return target.UniqueID; } } public ulong VendorID { get { CheckTabletProximityEvent(); return target.VendorID; } } public ulong VendorPointingDeviceType { get { CheckTabletProximityEvent(); return target.VendorPointingDeviceType; } } internal double Magnification { get { CheckTouchOrGestureEvent(); return target.Magnification; } } public bool HasPreciseScrollingDeltas { get { CheckScrollWheelOrFlickEvent(); return target.HasPreciseScrollingDeltas; } } public double ScrollingDeltaX { get { CheckScrollWheelOrFlickEvent(); return target.ScrollingDeltaX; } } public double ScrollingDeltaY { get { CheckScrollWheelOrFlickEvent(); return target.ScrollingDeltaY; } } public NSEventPhase MomentumPhase { get { CheckScrollWheelOrFlickEvent(); return target.MomentumPhase; } } public NSEventPhase Phase { get { CheckScrollWheelOrFlickEvent(); return target.Phase; } } public bool IsDirectionInvertedFromDevice { get { CheckScrollWheelOrFlickEvent(); return target.IsDirectionInvertedFromDevice; } } public NSEventDebuggerProxy(NSEvent target) { this.target = target; } private bool IsKeyEvent() { NSEventType type = target.Type; if (type - 10 <= NSEventType.LeftMouseDown) { return true; } return false; } private void CheckKeyEvent() { if (IsKeyEvent()) { return; } throw new InvalidOperationException("Not a key event."); } private bool IsMouseEvent() { NSEventType type = target.Type; if (type - 1 <= NSEventType.MouseEntered || type - 25 <= NSEventType.LeftMouseUp) { return true; } return false; } private bool IsTabletPointingEvent() { if (IsMouseEvent()) { return target.Subtype == 1; } return target.Type == NSEventType.TabletPoint; } private void CheckTabletPointingEvent() { if (IsTabletPointingEvent()) { return; } throw new InvalidOperationException("Not a tablet pointing event."); } private void CheckMouseEvent() { if (IsMouseEvent()) { return; } throw new InvalidOperationException("Not a mouse event."); } private bool IsMouseTrackingEvent() { return false; } private void CheckMouseTrackingEvent() { if (IsMouseTrackingEvent()) { return; } throw new InvalidOperationException("Not a mouse tracking event."); } private bool IsCustomEvent() { NSEventType type = target.Type; if (type - 13 <= NSEventType.RightMouseDown) { return true; } return false; } private void CheckCustomEvent() { if (IsCustomEvent()) { return; } throw new InvalidOperationException("Not a custom event."); } private bool IsScrollWheelEvent() { NSEventType type = target.Type; if (type == NSEventType.ScrollWheel) { return true; } return false; } private void CheckScrollWheelEvent() { if (IsScrollWheelEvent()) { return; } throw new InvalidOperationException("Not a scroll wheel event."); } private bool IsTabletProximityEvent() { if (IsMouseEvent()) { return target.Subtype == 2; } return target.Type == NSEventType.TabletProximity; } private void CheckTabletProximityEvent() { if (IsTabletProximityEvent()) { return; } throw new InvalidOperationException("Not a tablet proximity event."); } private bool IsTouchOrGestureEvent() { return false; } private void CheckTouchOrGestureEvent() { if (IsTouchOrGestureEvent()) { return; } throw new InvalidOperationException("Not a touch or gesture event."); } private bool IsScrollWheelOrFlickEvent() { if (IsScrollWheelEvent()) { return true; } return false; } private void CheckScrollWheelOrFlickEvent() { if (IsScrollWheelOrFlickEvent()) { return; } throw new InvalidOperationException("Not a scroll wheel or flick event."); } } private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selModifierFlagsHandle = Selector.GetHandle("modifierFlags"); private static readonly IntPtr selTimestampHandle = Selector.GetHandle("timestamp"); private static readonly IntPtr selWindowHandle = Selector.GetHandle("window"); private static readonly IntPtr selWindowNumberHandle = Selector.GetHandle("windowNumber"); private static readonly IntPtr selContextHandle = Selector.GetHandle("context"); private static readonly IntPtr selClickCountHandle = Selector.GetHandle("clickCount"); private static readonly IntPtr selButtonNumberHandle = Selector.GetHandle("buttonNumber"); private static readonly IntPtr selEventNumberHandle = Selector.GetHandle("eventNumber"); private static readonly IntPtr selPressureHandle = Selector.GetHandle("pressure"); private static readonly IntPtr selLocationInWindowHandle = Selector.GetHandle("locationInWindow"); private static readonly IntPtr selDeltaXHandle = Selector.GetHandle("deltaX"); private static readonly IntPtr selDeltaYHandle = Selector.GetHandle("deltaY"); private static readonly IntPtr selDeltaZHandle = Selector.GetHandle("deltaZ"); private static readonly IntPtr selCharactersHandle = Selector.GetHandle("characters"); private static readonly IntPtr selCharactersIgnoringModifiersHandle = Selector.GetHandle("charactersIgnoringModifiers"); private static readonly IntPtr selIsARepeatHandle = Selector.GetHandle("isARepeat"); private static readonly IntPtr selKeyCodeHandle = Selector.GetHandle("keyCode"); private static readonly IntPtr selTrackingNumberHandle = Selector.GetHandle("trackingNumber"); private static readonly IntPtr selUserDataHandle = Selector.GetHandle("userData"); private static readonly IntPtr selTrackingAreaHandle = Selector.GetHandle("trackingArea"); private static readonly IntPtr selSubtypeHandle = Selector.GetHandle("subtype"); private static readonly IntPtr selData1Handle = Selector.GetHandle("data1"); private static readonly IntPtr selData2Handle = Selector.GetHandle("data2"); private static readonly IntPtr selCGEventHandle = Selector.GetHandle("CGEvent"); private static readonly IntPtr selMagnificationHandle = Selector.GetHandle("magnification"); private static readonly IntPtr selDeviceIDHandle = Selector.GetHandle("deviceID"); private static readonly IntPtr selRotationHandle = Selector.GetHandle("rotation"); private static readonly IntPtr selAbsoluteXHandle = Selector.GetHandle("absoluteX"); private static readonly IntPtr selAbsoluteYHandle = Selector.GetHandle("absoluteY"); private static readonly IntPtr selAbsoluteZHandle = Selector.GetHandle("absoluteZ"); private static readonly IntPtr selButtonMaskHandle = Selector.GetHandle("buttonMask"); private static readonly IntPtr selTiltHandle = Selector.GetHandle("tilt"); private static readonly IntPtr selTangentialPressureHandle = Selector.GetHandle("tangentialPressure"); private static readonly IntPtr selVendorDefinedHandle = Selector.GetHandle("vendorDefined"); private static readonly IntPtr selVendorIDHandle = Selector.GetHandle("vendorID"); private static readonly IntPtr selTabletIDHandle = Selector.GetHandle("tabletID"); private static readonly IntPtr selSystemTabletIDHandle = Selector.GetHandle("systemTabletID"); private static readonly IntPtr selVendorPointingDeviceTypeHandle = Selector.GetHandle("vendorPointingDeviceType"); private static readonly IntPtr selPointingDeviceSerialNumberHandle = Selector.GetHandle("pointingDeviceSerialNumber"); private static readonly IntPtr selUniqueIDHandle = Selector.GetHandle("uniqueID"); private static readonly IntPtr selCapabilityMaskHandle = Selector.GetHandle("capabilityMask"); private static readonly IntPtr selPointingDeviceTypeHandle = Selector.GetHandle("pointingDeviceType"); private static readonly IntPtr selIsEnteringProximityHandle = Selector.GetHandle("isEnteringProximity"); private static readonly IntPtr selMouseLocationHandle = Selector.GetHandle("mouseLocation"); private static readonly IntPtr selPressedMouseButtonsHandle = Selector.GetHandle("pressedMouseButtons"); private static readonly IntPtr selDoubleClickIntervalHandle = Selector.GetHandle("doubleClickInterval"); private static readonly IntPtr selKeyRepeatDelayHandle = Selector.GetHandle("keyRepeatDelay"); private static readonly IntPtr selKeyRepeatIntervalHandle = Selector.GetHandle("keyRepeatInterval"); private static readonly IntPtr selIsMouseCoalescingEnabledHandle = Selector.GetHandle("isMouseCoalescingEnabled"); private static readonly IntPtr selSetMouseCoalescingEnabled_Handle = Selector.GetHandle("setMouseCoalescingEnabled:"); private static readonly IntPtr selHasPreciseScrollingDeltasHandle = Selector.GetHandle("hasPreciseScrollingDeltas"); private static readonly IntPtr selScrollingDeltaXHandle = Selector.GetHandle("scrollingDeltaX"); private static readonly IntPtr selScrollingDeltaYHandle = Selector.GetHandle("scrollingDeltaY"); private static readonly IntPtr selMomentumPhaseHandle = Selector.GetHandle("momentumPhase"); private static readonly IntPtr selIsDirectionInvertedFromDeviceHandle = Selector.GetHandle("isDirectionInvertedFromDevice"); private static readonly IntPtr selPhaseHandle = Selector.GetHandle("phase"); private static readonly IntPtr selIsSwipeTrackingFromScrollEventsEnabledHandle = Selector.GetHandle("isSwipeTrackingFromScrollEventsEnabled"); private static readonly IntPtr selEventWithEventRef_Handle = Selector.GetHandle("eventWithEventRef:"); private static readonly IntPtr selEventWithCGEvent_Handle = Selector.GetHandle("eventWithCGEvent:"); private static readonly IntPtr selPointingDeviceIDHandle = Selector.GetHandle("pointingDeviceID"); private static readonly IntPtr selTouchesMatchingPhaseInView_Handle = Selector.GetHandle("touchesMatchingPhase:inView:"); private static readonly IntPtr selStartPeriodicEventsAfterDelayWithPeriod_Handle = Selector.GetHandle("startPeriodicEventsAfterDelay:withPeriod:"); private static readonly IntPtr selStopPeriodicEventsHandle = Selector.GetHandle("stopPeriodicEvents"); private static readonly IntPtr selMouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure_Handle = Selector.GetHandle("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:"); private static readonly IntPtr selKeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextCharactersCharactersIgnoringModifiersIsARepeatKeyCode_Handle = Selector.GetHandle("keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:"); private static readonly IntPtr selEnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData_Handle = Selector.GetHandle("enterExitEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:trackingNumber:userData:"); private static readonly IntPtr selOtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2_Handle = Selector.GetHandle("otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:"); private static readonly IntPtr selAddGlobalMonitorForEventsMatchingMaskHandler_Handle = Selector.GetHandle("addGlobalMonitorForEventsMatchingMask:handler:"); private static readonly IntPtr selAddLocalMonitorForEventsMatchingMaskHandler_Handle = Selector.GetHandle("addLocalMonitorForEventsMatchingMask:handler:"); private static readonly IntPtr selRemoveMonitor_Handle = Selector.GetHandle("removeMonitor:"); private static readonly IntPtr selTrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler_Handle = Selector.GetHandle("trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEvent"); private object __mt_Window_var; private object __mt_Context_var; private object __mt_TrackingArea_var; private object __mt_VendorDefined_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEventType Type { [Export("type")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventType)Messaging.UInt64_objc_msgSend(base.Handle, selTypeHandle); } return (NSEventType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTypeHandle); } } public virtual NSEventModifierMask ModifierFlags { [Export("modifierFlags")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(base.Handle, selModifierFlagsHandle); } return (NSEventModifierMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selModifierFlagsHandle); } } public virtual double Timestamp { [Export("timestamp")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimestampHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimestampHandle); } } public virtual NSWindow Window { [Export("window")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_Window_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowHandle))))); } } public virtual long WindowNumber { [Export("windowNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWindowNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWindowNumberHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSGraphicsContext Context { [Export("context")] get { NSApplication.EnsureUIThread(); return (NSGraphicsContext)(__mt_Context_var = ((!IsDirectBinding) ? ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContextHandle))) : ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContextHandle))))); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long ClickCount { [Export("clickCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClickCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClickCountHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long ButtonNumber { [Export("buttonNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selButtonNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selButtonNumberHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long EventNumber { [Export("eventNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selEventNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEventNumberHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double Pressure { [Export("pressure")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPressureHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPressureHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual CGPoint LocationInWindow { [Export("locationInWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selLocationInWindowHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selLocationInWindowHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double DeltaX { [Export("deltaX")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDeltaXHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDeltaXHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double DeltaY { [Export("deltaY")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDeltaYHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDeltaYHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double DeltaZ { [Export("deltaZ")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDeltaZHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDeltaZHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual string Characters { [Export("characters")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCharactersHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCharactersHandle)); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual string CharactersIgnoringModifiers { [Export("charactersIgnoringModifiers")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCharactersIgnoringModifiersHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCharactersIgnoringModifiersHandle)); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual bool IsARepeat { [Export("isARepeat")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsARepeatHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsARepeatHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ushort KeyCode { [Export("keyCode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt16_objc_msgSend(base.Handle, selKeyCodeHandle); } return Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selKeyCodeHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long TrackingNumber { [Export("trackingNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTrackingNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTrackingNumberHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual IntPtr UserData { [Export("userData")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selUserDataHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserDataHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSTrackingArea TrackingArea { [Export("trackingArea")] get { NSApplication.EnsureUIThread(); return (NSTrackingArea)(__mt_TrackingArea_var = ((!IsDirectBinding) ? ((NSTrackingArea)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTrackingAreaHandle))) : ((NSTrackingArea)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTrackingAreaHandle))))); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual short Subtype { [Export("subtype")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.short_objc_msgSend(base.Handle, selSubtypeHandle); } return Messaging.short_objc_msgSendSuper(base.SuperHandle, selSubtypeHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long Data1 { [Export("data1")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selData1Handle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selData1Handle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long Data2 { [Export("data2")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selData2Handle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selData2Handle); } } public virtual IntPtr CGEvent { [Export("CGEvent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selCGEventHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGEventHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double Magnification { [Export("magnification")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMagnificationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMagnificationHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong DeviceID { [Export("deviceID")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selDeviceIDHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDeviceIDHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double Rotation { [Export("rotation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRotationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRotationHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long AbsoluteX { [Export("absoluteX")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selAbsoluteXHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selAbsoluteXHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long AbsoluteY { [Export("absoluteY")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selAbsoluteYHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selAbsoluteYHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long AbsoluteZ { [Export("absoluteZ")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selAbsoluteZHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selAbsoluteZHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong ButtonMask { [Export("buttonMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selButtonMaskHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selButtonMaskHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual CGPoint Tilt { [Export("tilt")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selTiltHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selTiltHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double TangentialPressure { [Export("tangentialPressure")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTangentialPressureHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTangentialPressureHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSObject VendorDefined { [Export("vendorDefined")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_VendorDefined_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVendorDefinedHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVendorDefinedHandle)))); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong VendorID { [Export("vendorID")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selVendorIDHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selVendorIDHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong TabletID { [Export("tabletID")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selTabletIDHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTabletIDHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong SystemTabletID { [Export("systemTabletID")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selSystemTabletIDHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSystemTabletIDHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong VendorPointingDeviceType { [Export("vendorPointingDeviceType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selVendorPointingDeviceTypeHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selVendorPointingDeviceTypeHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong PointingDeviceSerialNumber { [Export("pointingDeviceSerialNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selPointingDeviceSerialNumberHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPointingDeviceSerialNumberHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual long UniqueID { [Export("uniqueID")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selUniqueIDHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selUniqueIDHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual ulong CapabilityMask { [Export("capabilityMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCapabilityMaskHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCapabilityMaskHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSPointingDeviceType PointingDeviceType { [Export("pointingDeviceType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPointingDeviceType)Messaging.UInt64_objc_msgSend(base.Handle, selPointingDeviceTypeHandle); } return (NSPointingDeviceType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPointingDeviceTypeHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual bool IsEnteringProximity { [Export("isEnteringProximity")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnteringProximityHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnteringProximityHandle); } } public static CGPoint CurrentMouseLocation { [Export("mouseLocation")] get { NSApplication.EnsureUIThread(); return Messaging.CGPoint_objc_msgSend(class_ptr, selMouseLocationHandle); } } public static NSEventModifierMask CurrentModifierFlags { [Export("modifierFlags")] get { NSApplication.EnsureUIThread(); return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(class_ptr, selModifierFlagsHandle); } } public static ulong CurrentPressedMouseButtons { [Export("pressedMouseButtons")] get { NSApplication.EnsureUIThread(); return Messaging.UInt64_objc_msgSend(class_ptr, selPressedMouseButtonsHandle); } } public static double DoubleClickInterval { [Export("doubleClickInterval")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selDoubleClickIntervalHandle); } } public static double KeyRepeatDelay { [Export("keyRepeatDelay")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selKeyRepeatDelayHandle); } } public static double KeyRepeatInterval { [Export("keyRepeatInterval")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selKeyRepeatIntervalHandle); } } public static bool MouseCoalescingEnabled { [Export("isMouseCoalescingEnabled")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIsMouseCoalescingEnabledHandle); } [Export("setMouseCoalescingEnabled:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetMouseCoalescingEnabled_Handle, value); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual bool HasPreciseScrollingDeltas { [Export("hasPreciseScrollingDeltas")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasPreciseScrollingDeltasHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasPreciseScrollingDeltasHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double ScrollingDeltaX { [Export("scrollingDeltaX")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selScrollingDeltaXHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selScrollingDeltaXHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual double ScrollingDeltaY { [Export("scrollingDeltaY")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selScrollingDeltaYHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selScrollingDeltaYHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSEventPhase MomentumPhase { [Export("momentumPhase")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventPhase)Messaging.UInt64_objc_msgSend(base.Handle, selMomentumPhaseHandle); } return (NSEventPhase)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMomentumPhaseHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual bool IsDirectionInvertedFromDevice { [Export("isDirectionInvertedFromDevice")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDirectionInvertedFromDeviceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDirectionInvertedFromDeviceHandle); } } [DebuggerBrowsable(DebuggerBrowsableState.Never)] public virtual NSEventPhase Phase { [Export("phase")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventPhase)Messaging.UInt64_objc_msgSend(base.Handle, selPhaseHandle); } return (NSEventPhase)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPhaseHandle); } } public static bool IsSwipeTrackingFromScrollEventsEnabled { [Export("isSwipeTrackingFromScrollEventsEnabled")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIsSwipeTrackingFromScrollEventsEnabledHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSEvent() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEvent(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEvent(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEvent(IntPtr handle) : base(handle) { } [Export("eventWithEventRef:")] public static NSEvent EventWithEventRef(IntPtr cgEventRef) { NSApplication.EnsureUIThread(); return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selEventWithEventRef_Handle, cgEventRef)); } [Export("eventWithCGEvent:")] public static NSEvent EventWithCGEvent(IntPtr cgEventPtr) { NSApplication.EnsureUIThread(); return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selEventWithCGEvent_Handle, cgEventPtr)); } [Export("pointingDeviceID")] public virtual ulong PointingDeviceID() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selPointingDeviceIDHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPointingDeviceIDHandle); } [Export("touchesMatchingPhase:inView:")] public virtual NSSet TouchesMatchingPhase(NSTouchPhase phase, NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(base.Handle, selTouchesMatchingPhaseInView_Handle, (ulong)phase, view.Handle)); } return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selTouchesMatchingPhaseInView_Handle, (ulong)phase, view.Handle)); } [Export("startPeriodicEventsAfterDelay:withPeriod:")] public static void StartPeriodicEventsAfterDelay(double delay, double period) { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_Double_Double(class_ptr, selStartPeriodicEventsAfterDelayWithPeriod_Handle, delay, period); } [Export("stopPeriodicEvents")] public static void StopPeriodicEvents() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selStopPeriodicEventsHandle); } [Export("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:")] public static NSEvent MouseEvent(NSEventType type, CGPoint location, NSEventModifierMask flags, double time, long wNum, NSGraphicsContext context, long eNum, long cNum, double pressure) { NSApplication.EnsureUIThread(); return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_Double(class_ptr, selMouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure_Handle, (ulong)type, location, (ulong)flags, time, wNum, context?.Handle ?? IntPtr.Zero, eNum, cNum, pressure)); } [Export("keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:")] public static NSEvent KeyEvent(NSEventType type, CGPoint location, NSEventModifierMask flags, double time, long wNum, NSGraphicsContext context, string keys, string ukeys, bool isARepeat, ushort code) { NSApplication.EnsureUIThread(); if (keys == null) { throw new ArgumentNullException("keys"); } if (ukeys == null) { throw new ArgumentNullException("ukeys"); } IntPtr arg = NSString.CreateNative(keys); IntPtr arg2 = NSString.CreateNative(ukeys); NSEvent result = (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_IntPtr_IntPtr_bool_UInt16(class_ptr, selKeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextCharactersCharactersIgnoringModifiersIsARepeatKeyCode_Handle, (ulong)type, location, (ulong)flags, time, wNum, context?.Handle ?? IntPtr.Zero, arg, arg2, isARepeat, code)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("enterExitEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:trackingNumber:userData:")] public static NSEvent EnterExitEvent(NSEventType type, CGPoint location, NSEventModifierMask flags, double time, long wNum, NSGraphicsContext context, long eNum, long tNum, IntPtr data) { NSApplication.EnsureUIThread(); return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_IntPtr(class_ptr, selEnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData_Handle, (ulong)type, location, (ulong)flags, time, wNum, context?.Handle ?? IntPtr.Zero, eNum, tNum, data)); } [Export("otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:")] public static NSEvent OtherEvent(NSEventType type, CGPoint location, NSEventModifierMask flags, double time, long wNum, NSGraphicsContext context, short subtype, long d1, long d2) { NSApplication.EnsureUIThread(); return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_short_Int64_Int64(class_ptr, selOtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2_Handle, (ulong)type, location, (ulong)flags, time, wNum, context?.Handle ?? IntPtr.Zero, subtype, d1, d2)); } [Export("addGlobalMonitorForEventsMatchingMask:handler:")] public unsafe static NSObject AddGlobalMonitorForEventsMatchingMask(NSEventMask mask, GlobalEventHandler handler) { NSApplication.EnsureUIThread(); if (handler == null) { throw new ArgumentNullException("handler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDGlobalEventHandler.Handler, handler); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(class_ptr, selAddGlobalMonitorForEventsMatchingMaskHandler_Handle, (ulong)mask, (IntPtr)ptr)); ptr->CleanupBlock(); return nSObject; } [Export("addLocalMonitorForEventsMatchingMask:handler:")] public unsafe static NSObject AddLocalMonitorForEventsMatchingMask(NSEventMask mask, LocalEventHandler handler) { NSApplication.EnsureUIThread(); if (handler == null) { throw new ArgumentNullException("handler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDLocalEventHandler.Handler, handler); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(class_ptr, selAddLocalMonitorForEventsMatchingMaskHandler_Handle, (ulong)mask, (IntPtr)ptr)); ptr->CleanupBlock(); return nSObject; } [Export("removeMonitor:")] public static void RemoveMonitor(NSObject eventMonitor) { NSApplication.EnsureUIThread(); if (eventMonitor == null) { throw new ArgumentNullException("eventMonitor"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selRemoveMonitor_Handle, eventMonitor.Handle); } [Export("trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:")] public unsafe virtual void TrackSwipeEvent(NSEventSwipeTrackingOptions options, double minDampenThreshold, double maxDampenThreshold, NSEventTrackHandler trackingHandler) { NSApplication.EnsureUIThread(); if (trackingHandler == null) { throw new ArgumentNullException("trackingHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSEventTrackHandler.Handler, trackingHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Double_Double_IntPtr(base.Handle, selTrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler_Handle, (ulong)options, minDampenThreshold, maxDampenThreshold, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_UInt64_Double_Double_IntPtr(base.SuperHandle, selTrackSwipeEventWithOptionsDampenAmountThresholdMinMaxUsingHandler_Handle, (ulong)options, minDampenThreshold, maxDampenThreshold, (IntPtr)ptr); } ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Window_var = null; __mt_Context_var = null; __mt_TrackingArea_var = null; __mt_VendorDefined_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventGestureAxis.cs ================================================ namespace AppKit; public enum NSEventGestureAxis : long { None, Horizontal, Vertical } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSEventMask : ulong { LeftMouseDown = 2uL, LeftMouseUp = 4uL, RightMouseDown = 8uL, RightMouseUp = 0x10uL, MouseMoved = 0x20uL, LeftMouseDragged = 0x40uL, RightMouseDragged = 0x80uL, MouseEntered = 0x100uL, MouseExited = 0x200uL, KeyDown = 0x400uL, KeyUp = 0x800uL, FlagsChanged = 0x1000uL, AppKitDefined = 0x2000uL, SystemDefined = 0x4000uL, ApplicationDefined = 0x8000uL, Periodic = 0x10000uL, CursorUpdate = 0x20000uL, ScrollWheel = 0x400000uL, TabletPoint = 0x800000uL, TabletProximity = 0x1000000uL, OtherMouseDown = 0x2000000uL, OtherMouseUp = 0x4000000uL, OtherMouseDragged = 0x8000000uL, EventGesture = 0x20000000uL, EventMagnify = 0x40000000uL, EventSwipe = 0x80000000uL, EventRotate = 0x40000uL, EventBeginGesture = 0x80000uL, EventEndGesture = 0x100000uL, AnyEvent = 0xFFFFFFFFuL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventModifierMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSEventModifierMask : ulong { AlphaShiftKeyMask = 0x10000uL, ShiftKeyMask = 0x20000uL, ControlKeyMask = 0x40000uL, AlternateKeyMask = 0x80000uL, CommandKeyMask = 0x100000uL, NumericPadKeyMask = 0x200000uL, HelpKeyMask = 0x400000uL, FunctionKeyMask = 0x800000uL, DeviceIndependentModifierFlagsMask = 0xFFFF0000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventMouseSubtype.cs ================================================ namespace AppKit; public enum NSEventMouseSubtype { Mouse, TablePoint, TabletProximity, Touch } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventPhase.cs ================================================ using System; namespace AppKit; [Flags] public enum NSEventPhase : ulong { None = 0uL, Began = 1uL, Stationary = 2uL, Changed = 4uL, Ended = 8uL, Cancelled = 0x10uL, MayBegin = 0x20uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventSubtype.cs ================================================ namespace AppKit; public enum NSEventSubtype : ulong { WindowExposed = 0uL, ApplicationActivated = 1uL, ApplicationDeactivated = 2uL, WindowMoved = 4uL, ScreenChanged = 8uL, AWT = 0x10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventSwipeTrackingOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSEventSwipeTrackingOptions : ulong { LockDirection = 1uL, ClampGestureAmount = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventTrackHandler.cs ================================================ namespace AppKit; public delegate void NSEventTrackHandler(double gestureAmount, NSEventPhase eventPhase, bool isComplete, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSEventType.cs ================================================ namespace AppKit; public enum NSEventType : ulong { LeftMouseDown = 1uL, LeftMouseUp = 2uL, RightMouseDown = 3uL, RightMouseUp = 4uL, MouseMoved = 5uL, LeftMouseDragged = 6uL, RightMouseDragged = 7uL, MouseEntered = 8uL, MouseExited = 9uL, KeyDown = 10uL, KeyUp = 11uL, FlagsChanged = 12uL, AppKitDefined = 13uL, SystemDefined = 14uL, ApplicationDefined = 15uL, Periodic = 16uL, CursorUpdate = 17uL, ScrollWheel = 22uL, TabletPoint = 23uL, TabletProximity = 24uL, OtherMouseDown = 25uL, OtherMouseUp = 26uL, OtherMouseDragged = 27uL, Gesture = 29uL, Magnify = 30uL, Swipe = 31uL, Rotate = 18uL, BeginGesture = 19uL, EndGesture = 20uL, SmartMagnify = 32uL, QuickLook = 33uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFileTypeForHFSTypeCode.cs ================================================ namespace AppKit; public static class NSFileTypeForHFSTypeCode { public static readonly string ComputerIcon = "root"; public static readonly string DesktopIcon = "desk"; public static readonly string FinderIcon = "FNDR"; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFileWrapperReadingOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFileWrapperReadingOptions : ulong { Immediate = 1uL, WithoutMapping = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFocusRingPlacement.cs ================================================ namespace AppKit; public enum NSFocusRingPlacement : ulong { RingOnly, RingBelow, RingAbove } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFocusRingType.cs ================================================ namespace AppKit; public enum NSFocusRingType : ulong { Default, None, Exterior } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFont.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFont", true)] public class NSFont : NSObject { private static readonly IntPtr selSystemFontSizeHandle = Selector.GetHandle("systemFontSize"); private static readonly IntPtr selSmallSystemFontSizeHandle = Selector.GetHandle("smallSystemFontSize"); private static readonly IntPtr selLabelFontSizeHandle = Selector.GetHandle("labelFontSize"); private static readonly IntPtr selFontNameHandle = Selector.GetHandle("fontName"); private static readonly IntPtr selPointSizeHandle = Selector.GetHandle("pointSize"); private static readonly IntPtr selFamilyNameHandle = Selector.GetHandle("familyName"); private static readonly IntPtr selDisplayNameHandle = Selector.GetHandle("displayName"); private static readonly IntPtr selFontDescriptorHandle = Selector.GetHandle("fontDescriptor"); private static readonly IntPtr selTextTransformHandle = Selector.GetHandle("textTransform"); private static readonly IntPtr selNumberOfGlyphsHandle = Selector.GetHandle("numberOfGlyphs"); private static readonly IntPtr selMostCompatibleStringEncodingHandle = Selector.GetHandle("mostCompatibleStringEncoding"); private static readonly IntPtr selCoveredCharacterSetHandle = Selector.GetHandle("coveredCharacterSet"); private static readonly IntPtr selBoundingRectForFontHandle = Selector.GetHandle("boundingRectForFont"); private static readonly IntPtr selMaximumAdvancementHandle = Selector.GetHandle("maximumAdvancement"); private static readonly IntPtr selAscenderHandle = Selector.GetHandle("ascender"); private static readonly IntPtr selDescenderHandle = Selector.GetHandle("descender"); private static readonly IntPtr selLeadingHandle = Selector.GetHandle("leading"); private static readonly IntPtr selUnderlinePositionHandle = Selector.GetHandle("underlinePosition"); private static readonly IntPtr selUnderlineThicknessHandle = Selector.GetHandle("underlineThickness"); private static readonly IntPtr selItalicAngleHandle = Selector.GetHandle("italicAngle"); private static readonly IntPtr selCapHeightHandle = Selector.GetHandle("capHeight"); private static readonly IntPtr selXHeightHandle = Selector.GetHandle("xHeight"); private static readonly IntPtr selIsFixedPitchHandle = Selector.GetHandle("isFixedPitch"); private static readonly IntPtr selPrinterFontHandle = Selector.GetHandle("printerFont"); private static readonly IntPtr selScreenFontHandle = Selector.GetHandle("screenFont"); private static readonly IntPtr selRenderingModeHandle = Selector.GetHandle("renderingMode"); private static readonly IntPtr selIsVerticalHandle = Selector.GetHandle("isVertical"); private static readonly IntPtr selFontWithNameSize_Handle = Selector.GetHandle("fontWithName:size:"); private static readonly IntPtr selFontWithDescriptorSize_Handle = Selector.GetHandle("fontWithDescriptor:size:"); private static readonly IntPtr selFontWithDescriptorTextTransform_Handle = Selector.GetHandle("fontWithDescriptor:textTransform:"); private static readonly IntPtr selUserFontOfSize_Handle = Selector.GetHandle("userFontOfSize:"); private static readonly IntPtr selUserFixedPitchFontOfSize_Handle = Selector.GetHandle("userFixedPitchFontOfSize:"); private static readonly IntPtr selSetUserFont_Handle = Selector.GetHandle("setUserFont:"); private static readonly IntPtr selSetUserFixedPitchFont_Handle = Selector.GetHandle("setUserFixedPitchFont:"); private static readonly IntPtr selSystemFontOfSize_Handle = Selector.GetHandle("systemFontOfSize:"); private static readonly IntPtr selBoldSystemFontOfSize_Handle = Selector.GetHandle("boldSystemFontOfSize:"); private static readonly IntPtr selLabelFontOfSize_Handle = Selector.GetHandle("labelFontOfSize:"); private static readonly IntPtr selTitleBarFontOfSize_Handle = Selector.GetHandle("titleBarFontOfSize:"); private static readonly IntPtr selMenuFontOfSize_Handle = Selector.GetHandle("menuFontOfSize:"); private static readonly IntPtr selMenuBarFontOfSize_Handle = Selector.GetHandle("menuBarFontOfSize:"); private static readonly IntPtr selMessageFontOfSize_Handle = Selector.GetHandle("messageFontOfSize:"); private static readonly IntPtr selPaletteFontOfSize_Handle = Selector.GetHandle("paletteFontOfSize:"); private static readonly IntPtr selToolTipsFontOfSize_Handle = Selector.GetHandle("toolTipsFontOfSize:"); private static readonly IntPtr selControlContentFontOfSize_Handle = Selector.GetHandle("controlContentFontOfSize:"); private static readonly IntPtr selSystemFontSizeForControlSize_Handle = Selector.GetHandle("systemFontSizeForControlSize:"); private static readonly IntPtr selGlyphWithName_Handle = Selector.GetHandle("glyphWithName:"); private static readonly IntPtr selBoundingRectForGlyph_Handle = Selector.GetHandle("boundingRectForGlyph:"); private static readonly IntPtr selAdvancementForGlyph_Handle = Selector.GetHandle("advancementForGlyph:"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selSetInContext_Handle = Selector.GetHandle("setInContext:"); private static readonly IntPtr selScreenFontWithRenderingMode_Handle = Selector.GetHandle("screenFontWithRenderingMode:"); private static readonly IntPtr selVerticalFontHandle = Selector.GetHandle("verticalFont"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFont"); private object __mt_FontDescriptor_var; private object __mt_TextTransform_var; private object __mt_CoveredCharacterSet_var; private object __mt_PrinterFont_var; private object __mt_ScreenFont_var; public override IntPtr ClassHandle => class_ptr; public static double SystemFontSize { [Export("systemFontSize")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selSystemFontSizeHandle); } } public static double SmallSystemFontSize { [Export("smallSystemFontSize")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selSmallSystemFontSizeHandle); } } public static double LabelFontSize { [Export("labelFontSize")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selLabelFontSizeHandle); } } public virtual string FontName { [Export("fontName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFontNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontNameHandle)); } } public virtual double PointSize { [Export("pointSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPointSizeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPointSizeHandle); } } public virtual string FamilyName { [Export("familyName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFamilyNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFamilyNameHandle)); } } public virtual string DisplayName { [Export("displayName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDisplayNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDisplayNameHandle)); } } public virtual NSFontDescriptor FontDescriptor { [Export("fontDescriptor")] get { NSApplication.EnsureUIThread(); return (NSFontDescriptor)(__mt_FontDescriptor_var = ((!IsDirectBinding) ? ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontDescriptorHandle))) : ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontDescriptorHandle))))); } } public virtual NSAffineTransform TextTransform { [Export("textTransform")] get { NSApplication.EnsureUIThread(); return (NSAffineTransform)(__mt_TextTransform_var = ((!IsDirectBinding) ? ((NSAffineTransform)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextTransformHandle))) : ((NSAffineTransform)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextTransformHandle))))); } } public virtual ulong GlyphCount { [Export("numberOfGlyphs")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selNumberOfGlyphsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNumberOfGlyphsHandle); } } public virtual NSStringEncoding MostCompatibleStringEncoding { [Export("mostCompatibleStringEncoding")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSStringEncoding)Messaging.UInt32_objc_msgSend(base.Handle, selMostCompatibleStringEncodingHandle); } return (NSStringEncoding)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMostCompatibleStringEncodingHandle); } } public virtual NSCharacterSet CoveredCharacterSet { [Export("coveredCharacterSet")] get { NSApplication.EnsureUIThread(); return (NSCharacterSet)(__mt_CoveredCharacterSet_var = ((!IsDirectBinding) ? ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCoveredCharacterSetHandle))) : ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCoveredCharacterSetHandle))))); } } public virtual CGRect BoundingRectForFont { [Export("boundingRectForFont")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundingRectForFontHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundingRectForFontHandle); } return retval; } } public virtual CGSize MaximumAdvancement { [Export("maximumAdvancement")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaximumAdvancementHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaximumAdvancementHandle); } } public virtual double Ascender { [Export("ascender")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAscenderHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAscenderHandle); } } public virtual double Descender { [Export("descender")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDescenderHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDescenderHandle); } } public virtual double Leading { [Export("leading")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLeadingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLeadingHandle); } } public virtual double UnderlinePosition { [Export("underlinePosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selUnderlinePositionHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selUnderlinePositionHandle); } } public virtual double UnderlineThickness { [Export("underlineThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selUnderlineThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selUnderlineThicknessHandle); } } public virtual double ItalicAngle { [Export("italicAngle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selItalicAngleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selItalicAngleHandle); } } public virtual double CapHeight { [Export("capHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCapHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCapHeightHandle); } } public virtual double XHeight { [Export("xHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selXHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selXHeightHandle); } } public virtual bool IsFixedPitch { [Export("isFixedPitch")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFixedPitchHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFixedPitchHandle); } } public virtual NSFont PrinterFont { [Export("printerFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_PrinterFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrinterFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrinterFontHandle))))); } } public virtual NSFont ScreenFont { [Export("screenFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_ScreenFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScreenFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selScreenFontHandle))))); } } public virtual NSFontRenderingMode RenderingMode { [Export("renderingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontRenderingMode)Messaging.UInt64_objc_msgSend(base.Handle, selRenderingModeHandle); } return (NSFontRenderingMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selRenderingModeHandle); } } public virtual bool IsVertical { [Export("isVertical")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVerticalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVerticalHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFont(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFont(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFont(IntPtr handle) : base(handle) { } [Export("fontWithName:size:")] public static NSFont FromFontName(string fontName, double fontSize) { NSApplication.EnsureUIThread(); if (fontName == null) { throw new ArgumentNullException("fontName"); } IntPtr arg = NSString.CreateNative(fontName); NSFont result = (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Double(class_ptr, selFontWithNameSize_Handle, arg, fontSize)); NSString.ReleaseNative(arg); return result; } [Export("fontWithDescriptor:size:")] public static NSFont FromDescription(NSFontDescriptor fontDescriptor, double fontSize) { NSApplication.EnsureUIThread(); if (fontDescriptor == null) { throw new ArgumentNullException("fontDescriptor"); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Double(class_ptr, selFontWithDescriptorSize_Handle, fontDescriptor.Handle, fontSize)); } [Export("fontWithDescriptor:textTransform:")] public static NSFont FromDescription(NSFontDescriptor fontDescriptor, NSAffineTransform textTransform) { NSApplication.EnsureUIThread(); if (fontDescriptor == null) { throw new ArgumentNullException("fontDescriptor"); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selFontWithDescriptorTextTransform_Handle, fontDescriptor.Handle, textTransform?.Handle ?? IntPtr.Zero)); } [Export("userFontOfSize:")] public static NSFont UserFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selUserFontOfSize_Handle, fontSize)); } [Export("userFixedPitchFontOfSize:")] public static NSFont UserFixedPitchFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selUserFixedPitchFontOfSize_Handle, fontSize)); } [Export("setUserFont:")] public static void SetUserFont(NSFont aFont) { NSApplication.EnsureUIThread(); if (aFont == null) { throw new ArgumentNullException("aFont"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetUserFont_Handle, aFont.Handle); } [Export("setUserFixedPitchFont:")] public static void SetUserFixedPitchFont(NSFont aFont) { NSApplication.EnsureUIThread(); if (aFont == null) { throw new ArgumentNullException("aFont"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetUserFixedPitchFont_Handle, aFont.Handle); } [Export("systemFontOfSize:")] public static NSFont SystemFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selSystemFontOfSize_Handle, fontSize)); } [Export("boldSystemFontOfSize:")] public static NSFont BoldSystemFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selBoldSystemFontOfSize_Handle, fontSize)); } [Export("labelFontOfSize:")] public static NSFont LabelFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selLabelFontOfSize_Handle, fontSize)); } [Export("titleBarFontOfSize:")] public static NSFont TitleBarFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selTitleBarFontOfSize_Handle, fontSize)); } [Export("menuFontOfSize:")] public static NSFont MenuFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selMenuFontOfSize_Handle, fontSize)); } [Export("menuBarFontOfSize:")] public static NSFont MenuBarFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selMenuBarFontOfSize_Handle, fontSize)); } [Export("messageFontOfSize:")] public static NSFont MessageFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selMessageFontOfSize_Handle, fontSize)); } [Export("paletteFontOfSize:")] public static NSFont PaletteFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selPaletteFontOfSize_Handle, fontSize)); } [Export("toolTipsFontOfSize:")] public static NSFont ToolTipsFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selToolTipsFontOfSize_Handle, fontSize)); } [Export("controlContentFontOfSize:")] public static NSFont ControlContentFontOfSize(double fontSize) { NSApplication.EnsureUIThread(); return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selControlContentFontOfSize_Handle, fontSize)); } [Export("systemFontSizeForControlSize:")] public static double SystemFontSizeForControlSize(NSControlSize controlSize) { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend_UInt64(class_ptr, selSystemFontSizeForControlSize_Handle, (ulong)controlSize); } [Export("glyphWithName:")] public virtual uint GlyphWithName(string aName) { NSApplication.EnsureUIThread(); if (aName == null) { throw new ArgumentNullException("aName"); } IntPtr arg = NSString.CreateNative(aName); uint result = ((!IsDirectBinding) ? Messaging.UInt32_objc_msgSendSuper_IntPtr(base.SuperHandle, selGlyphWithName_Handle, arg) : Messaging.UInt32_objc_msgSend_IntPtr(base.Handle, selGlyphWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("boundingRectForGlyph:")] public virtual CGRect BoundingRectForGlyph(uint aGlyph) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_UInt32(out retval, base.Handle, selBoundingRectForGlyph_Handle, aGlyph); } else { Messaging.CGRect_objc_msgSendSuper_stret_UInt32(out retval, base.SuperHandle, selBoundingRectForGlyph_Handle, aGlyph); } return retval; } [Export("advancementForGlyph:")] public virtual CGSize AdvancementForGlyph(uint ag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_UInt32(base.Handle, selAdvancementForGlyph_Handle, ag); } return Messaging.CGSize_objc_msgSendSuper_UInt32(base.SuperHandle, selAdvancementForGlyph_Handle, ag); } [Export("set")] public virtual void Set() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } [Export("setInContext:")] public virtual void SetInContext(NSGraphicsContext graphicsContext) { NSApplication.EnsureUIThread(); if (graphicsContext == null) { throw new ArgumentNullException("graphicsContext"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInContext_Handle, graphicsContext.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInContext_Handle, graphicsContext.Handle); } } [Export("screenFontWithRenderingMode:")] public virtual NSFont ScreenFontWithRenderingMode(NSFontRenderingMode renderingMode) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selScreenFontWithRenderingMode_Handle, (ulong)renderingMode)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selScreenFontWithRenderingMode_Handle, (ulong)renderingMode)); } [Export("verticalFont")] public virtual NSFont GetVerticalFont() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVerticalFontHandle)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVerticalFontHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FontDescriptor_var = null; __mt_TextTransform_var = null; __mt_CoveredCharacterSet_var = null; __mt_PrinterFont_var = null; __mt_ScreenFont_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontCollection.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFontCollection", true)] public class NSFontCollection : NSObject { public static class Notifications { public static NSObject ObserveChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ChangedNotification, delegate(NSNotification notification) { handler(null, new NSFontCollectionChangedEventArgs(notification)); }); } } private static readonly IntPtr selAllFontCollectionNamesHandle = Selector.GetHandle("allFontCollectionNames"); private static readonly IntPtr selFontCollectionWithDescriptors_Handle = Selector.GetHandle("fontCollectionWithDescriptors:"); private static readonly IntPtr selFontCollectionWithAllAvailableDescriptorsHandle = Selector.GetHandle("fontCollectionWithAllAvailableDescriptors"); private static readonly IntPtr selFontCollectionWithLocale_Handle = Selector.GetHandle("fontCollectionWithLocale:"); private static readonly IntPtr selShowFontCollectionWithNameVisibilityError_Handle = Selector.GetHandle("showFontCollection:withName:visibility:error:"); private static readonly IntPtr selHideFontCollectionWithNameVisibilityError_Handle = Selector.GetHandle("hideFontCollectionWithName:visibility:error:"); private static readonly IntPtr selRenameFontCollectionWithNameVisibilityToNameError_Handle = Selector.GetHandle("renameFontCollectionWithName:visibility:toName:error:"); private static readonly IntPtr selFontCollectionWithName_Handle = Selector.GetHandle("fontCollectionWithName:"); private static readonly IntPtr selFontCollectionWithNameVisibility_Handle = Selector.GetHandle("fontCollectionWithName:visibility:"); private static readonly IntPtr selQueryDescriptorsHandle = Selector.GetHandle("queryDescriptors"); private static readonly IntPtr selExclusionDescriptorsHandle = Selector.GetHandle("exclusionDescriptors"); private static readonly IntPtr selMatchingDescriptorsHandle = Selector.GetHandle("matchingDescriptors"); private static readonly IntPtr selMatchingDescriptorsWithOptions_Handle = Selector.GetHandle("matchingDescriptorsWithOptions:"); private static readonly IntPtr selMatchingDescriptorsForFamily_Handle = Selector.GetHandle("matchingDescriptorsForFamily:"); private static readonly IntPtr selMatchingDescriptorsForFamilyOptions_Handle = Selector.GetHandle("matchingDescriptorsForFamily:options:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFontCollection"); private static NSString _IncludeDisabledFontsOption; private static NSString _RemoveDuplicatesOption; private static NSString _DisallowAutoActivationOption; private static NSString _ChangedNotification; private static NSString _ActionKey; private static NSString _NameKey; private static NSString _OldNameKey; private static NSString _VisibilityKey; private static NSString _ActionWasShown; private static NSString _ActionWasHidden; private static NSString _ActionWasRenamed; private static NSString _NameAllFonts; private static NSString _NameUser; private static NSString _NameFavorites; private static NSString _NameRecentlyUsed; public override IntPtr ClassHandle => class_ptr; public static string[] AllFontCollectionNames { [Export("allFontCollectionNames")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllFontCollectionNamesHandle)); } } [Field("NSFontCollectionIncludeDisabledFontsOption", "AppKit")] public static NSString IncludeDisabledFontsOption { get { if (_IncludeDisabledFontsOption == null) { _IncludeDisabledFontsOption = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionIncludeDisabledFontsOption"); } return _IncludeDisabledFontsOption; } } [Field("NSFontCollectionRemoveDuplicatesOption", "AppKit")] public static NSString RemoveDuplicatesOption { get { if (_RemoveDuplicatesOption == null) { _RemoveDuplicatesOption = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionRemoveDuplicatesOption"); } return _RemoveDuplicatesOption; } } [Field("NSFontCollectionDisallowAutoActivationOption", "AppKit")] public static NSString DisallowAutoActivationOption { get { if (_DisallowAutoActivationOption == null) { _DisallowAutoActivationOption = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionDisallowAutoActivationOption"); } return _DisallowAutoActivationOption; } } [Field("NSFontCollectionDidChangeNotification", "AppKit")] public static NSString ChangedNotification { get { if (_ChangedNotification == null) { _ChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionDidChangeNotification"); } return _ChangedNotification; } } [Field("NSFontCollectionActionKey", "AppKit")] public static NSString ActionKey { get { if (_ActionKey == null) { _ActionKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionActionKey"); } return _ActionKey; } } [Field("NSFontCollectionNameKey", "AppKit")] public static NSString NameKey { get { if (_NameKey == null) { _NameKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionNameKey"); } return _NameKey; } } [Field("NSFontCollectionOldNameKey", "AppKit")] public static NSString OldNameKey { get { if (_OldNameKey == null) { _OldNameKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionOldNameKey"); } return _OldNameKey; } } [Field("NSFontCollectionVisibilityKey", "AppKit")] public static NSString VisibilityKey { get { if (_VisibilityKey == null) { _VisibilityKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionVisibilityKey"); } return _VisibilityKey; } } [Field("NSFontCollectionWasShown", "AppKit")] public static NSString ActionWasShown { get { if (_ActionWasShown == null) { _ActionWasShown = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionWasShown"); } return _ActionWasShown; } } [Field("NSFontCollectionWasHidden", "AppKit")] public static NSString ActionWasHidden { get { if (_ActionWasHidden == null) { _ActionWasHidden = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionWasHidden"); } return _ActionWasHidden; } } [Field("NSFontCollectionWasRenamed", "AppKit")] public static NSString ActionWasRenamed { get { if (_ActionWasRenamed == null) { _ActionWasRenamed = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionWasRenamed"); } return _ActionWasRenamed; } } [Field("NSFontCollectionAllFonts", "AppKit")] public static NSString NameAllFonts { get { if (_NameAllFonts == null) { _NameAllFonts = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionAllFonts"); } return _NameAllFonts; } } [Field("NSFontCollectionUser", "AppKit")] public static NSString NameUser { get { if (_NameUser == null) { _NameUser = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionUser"); } return _NameUser; } } [Field("NSFontCollectionFavorites", "AppKit")] public static NSString NameFavorites { get { if (_NameFavorites == null) { _NameFavorites = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionFavorites"); } return _NameFavorites; } } [Field("NSFontCollectionRecentlyUsed", "AppKit")] public static NSString NameRecentlyUsed { get { if (_NameRecentlyUsed == null) { _NameRecentlyUsed = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontCollectionRecentlyUsed"); } return _NameRecentlyUsed; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFontCollection() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFontCollection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontCollection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontCollection(IntPtr handle) : base(handle) { } [Export("fontCollectionWithDescriptors:")] public static NSFontCollection FromDescriptors(NSFontDescriptor[] queryDescriptors) { NSApplication.EnsureUIThread(); if (queryDescriptors == null) { throw new ArgumentNullException("queryDescriptors"); } NSArray nSArray = NSArray.FromNSObjects(queryDescriptors); NSFontCollection result = (NSFontCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFontCollectionWithDescriptors_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("fontCollectionWithAllAvailableDescriptors")] public static NSFontCollection GetAllAvailableFonts() { NSApplication.EnsureUIThread(); return (NSFontCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFontCollectionWithAllAvailableDescriptorsHandle)); } [Export("fontCollectionWithLocale:")] public static NSFontCollection FromLocale(NSLocale locale) { NSApplication.EnsureUIThread(); if (locale == null) { throw new ArgumentNullException("locale"); } return (NSFontCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFontCollectionWithLocale_Handle, locale.Handle)); } [Export("showFontCollection:withName:visibility:error:")] public static bool ShowFontCollection(NSFontCollection fontCollection, string name, NSFontCollectionVisibility visibility, out NSError error) { NSApplication.EnsureUIThread(); if (fontCollection == null) { throw new ArgumentNullException("fontCollection"); } if (name == null) { throw new ArgumentNullException("name"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(name); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(class_ptr, selShowFontCollectionWithNameVisibilityError_Handle, fontCollection.Handle, arg, (ulong)visibility, intPtr); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("hideFontCollectionWithName:visibility:error:")] public static bool HideFontCollection(string name, NSFontCollectionVisibility visibility, out NSError error) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(name); bool result = Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selHideFontCollectionWithNameVisibilityError_Handle, arg, (ulong)visibility, intPtr); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("renameFontCollectionWithName:visibility:toName:error:")] public static bool RenameFontCollection(string fromName, NSFontCollectionVisibility visibility, string toName, out NSError error) { NSApplication.EnsureUIThread(); if (fromName == null) { throw new ArgumentNullException("fromName"); } if (toName == null) { throw new ArgumentNullException("toName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(fromName); IntPtr arg2 = NSString.CreateNative(toName); bool result = Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(class_ptr, selRenameFontCollectionWithNameVisibilityToNameError_Handle, arg, (ulong)visibility, arg2, intPtr); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("fontCollectionWithName:")] public static NSFontCollection FromName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSFontCollection result = (NSFontCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFontCollectionWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fontCollectionWithName:visibility:")] public static NSFontCollection FromName(string name, NSFontCollectionVisibility visibility) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSFontCollection result = (NSFontCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(class_ptr, selFontCollectionWithNameVisibility_Handle, arg, (ulong)visibility)); NSString.ReleaseNative(arg); return result; } [Export("queryDescriptors")] public virtual NSFontDescriptor[] GetQueryDescriptors() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selQueryDescriptorsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQueryDescriptorsHandle)); } [Export("exclusionDescriptors")] public virtual NSFontDescriptor[] GetExclusionDescriptors() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExclusionDescriptorsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExclusionDescriptorsHandle)); } [Export("matchingDescriptors")] public virtual NSFontDescriptor[] GetMatchingDescriptors() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMatchingDescriptorsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMatchingDescriptorsHandle)); } [Export("matchingDescriptorsWithOptions:")] public virtual NSFontDescriptor[] GetMatchingDescriptors(NSDictionary options) { NSApplication.EnsureUIThread(); if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMatchingDescriptorsWithOptions_Handle, options.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchingDescriptorsWithOptions_Handle, options.Handle)); } [Export("matchingDescriptorsForFamily:")] public virtual NSFontDescriptor[] GetMatchingDescriptors(string family) { NSApplication.EnsureUIThread(); if (family == null) { throw new ArgumentNullException("family"); } IntPtr arg = NSString.CreateNative(family); NSFontDescriptor[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchingDescriptorsForFamily_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMatchingDescriptorsForFamily_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("matchingDescriptorsForFamily:options:")] public virtual NSFontDescriptor[] GetMatchingDescriptors(string family, NSDictionary options) { NSApplication.EnsureUIThread(); if (family == null) { throw new ArgumentNullException("family"); } if (options == null) { throw new ArgumentNullException("options"); } IntPtr arg = NSString.CreateNative(family); NSFontDescriptor[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selMatchingDescriptorsForFamilyOptions_Handle, arg, options.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selMatchingDescriptorsForFamilyOptions_Handle, arg, options.Handle))); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontCollectionAction.cs ================================================ namespace AppKit; public enum NSFontCollectionAction { Unknown, Shown, Hidden, Renamed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontCollectionChangedEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSFontCollectionChangedEventArgs : NSNotificationEventArgs { private static IntPtr k0; private static IntPtr k1; private static IntPtr k2; private static IntPtr k3; public NSFontCollectionAction Action { get { if (_Action == NSFontCollection.ActionWasShown) { return NSFontCollectionAction.Shown; } if (_Action == NSFontCollection.ActionWasHidden) { return NSFontCollectionAction.Hidden; } if (_Action == NSFontCollection.ActionWasRenamed) { return NSFontCollectionAction.Renamed; } return NSFontCollectionAction.Unknown; } } public NSFontCollectionVisibility Visibility => (NSFontCollectionVisibility)(int)_Visibility; internal NSString _Action { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSFontCollectionActionKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSString)Runtime.GetNSObject(intPtr); } } public string Name { get { if (k1 == IntPtr.Zero) { k1 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSFontCollectionNameKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k1); if (intPtr == IntPtr.Zero) { return null; } return NSString.FromHandle(intPtr); } } public string OldName { get { if (k2 == IntPtr.Zero) { k2 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSFontCollectionOldNameKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k2); if (intPtr == IntPtr.Zero) { return null; } return NSString.FromHandle(intPtr); } } internal NSNumber _Visibility { get { if (k3 == IntPtr.Zero) { k3 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSFontCollectionVisibilityKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k3); if (intPtr == IntPtr.Zero) { return null; } return (NSNumber)Runtime.GetNSObject(intPtr); } } public NSFontCollectionChangedEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontCollectionOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFontCollectionOptions : ulong { ApplicationOnlyMask = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontCollectionVisibility.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFontCollectionVisibility : ulong { Process = 1uL, User = 2uL, Computer = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontDescriptor.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFontDescriptor", true)] public class NSFontDescriptor : NSObject { private static readonly IntPtr selPostscriptNameHandle = Selector.GetHandle("postscriptName"); private static readonly IntPtr selPointSizeHandle = Selector.GetHandle("pointSize"); private static readonly IntPtr selMatrixHandle = Selector.GetHandle("matrix"); private static readonly IntPtr selSymbolicTraitsHandle = Selector.GetHandle("symbolicTraits"); private static readonly IntPtr selFontAttributesHandle = Selector.GetHandle("fontAttributes"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selFontDescriptorWithFontAttributes_Handle = Selector.GetHandle("fontDescriptorWithFontAttributes:"); private static readonly IntPtr selFontDescriptorWithNameSize_Handle = Selector.GetHandle("fontDescriptorWithName:size:"); private static readonly IntPtr selFontDescriptorWithNameMatrix_Handle = Selector.GetHandle("fontDescriptorWithName:matrix:"); private static readonly IntPtr selInitWithFontAttributes_Handle = Selector.GetHandle("initWithFontAttributes:"); private static readonly IntPtr selMatchingFontDescriptorsWithMandatoryKeys_Handle = Selector.GetHandle("matchingFontDescriptorsWithMandatoryKeys:"); private static readonly IntPtr selMatchingFontDescriptorWithMandatoryKeys_Handle = Selector.GetHandle("matchingFontDescriptorWithMandatoryKeys:"); private static readonly IntPtr selFontDescriptorByAddingAttributes_Handle = Selector.GetHandle("fontDescriptorByAddingAttributes:"); private static readonly IntPtr selFontDescriptorWithSymbolicTraits_Handle = Selector.GetHandle("fontDescriptorWithSymbolicTraits:"); private static readonly IntPtr selFontDescriptorWithSize_Handle = Selector.GetHandle("fontDescriptorWithSize:"); private static readonly IntPtr selFontDescriptorWithMatrix_Handle = Selector.GetHandle("fontDescriptorWithMatrix:"); private static readonly IntPtr selFontDescriptorWithFace_Handle = Selector.GetHandle("fontDescriptorWithFace:"); private static readonly IntPtr selFontDescriptorWithFamily_Handle = Selector.GetHandle("fontDescriptorWithFamily:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFontDescriptor"); private object __mt_Matrix_var; private object __mt_FontAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual string PostscriptName { [Export("postscriptName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPostscriptNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPostscriptNameHandle)); } } public virtual double PointSize { [Export("pointSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPointSizeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPointSizeHandle); } } public virtual NSAffineTransform Matrix { [Export("matrix")] get { NSApplication.EnsureUIThread(); return (NSAffineTransform)(__mt_Matrix_var = ((!IsDirectBinding) ? ((NSAffineTransform)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMatrixHandle))) : ((NSAffineTransform)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMatrixHandle))))); } } public virtual NSFontSymbolicTraits SymbolicTraits { [Export("symbolicTraits")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontSymbolicTraits)Messaging.int_objc_msgSend(base.Handle, selSymbolicTraitsHandle); } return (NSFontSymbolicTraits)Messaging.int_objc_msgSendSuper(base.SuperHandle, selSymbolicTraitsHandle); } } public virtual NSDictionary FontAttributes { [Export("fontAttributes")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_FontAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontAttributesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFontDescriptor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFontDescriptor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontDescriptor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontDescriptor(IntPtr handle) : base(handle) { } [Export("objectForKey:")] public virtual NSObject ObjectForKey(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("fontDescriptorWithFontAttributes:")] public static NSFontDescriptor FromAttributes(NSDictionary attributes) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFontDescriptorWithFontAttributes_Handle, attributes.Handle)); } [Export("fontDescriptorWithName:size:")] public static NSFontDescriptor FromNameSize(string fontName, double size) { NSApplication.EnsureUIThread(); if (fontName == null) { throw new ArgumentNullException("fontName"); } IntPtr arg = NSString.CreateNative(fontName); NSFontDescriptor result = (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Double(class_ptr, selFontDescriptorWithNameSize_Handle, arg, size)); NSString.ReleaseNative(arg); return result; } [Export("fontDescriptorWithName:matrix:")] public static NSFontDescriptor FromNameMatrix(string fontName, NSAffineTransform matrix) { NSApplication.EnsureUIThread(); if (fontName == null) { throw new ArgumentNullException("fontName"); } if (matrix == null) { throw new ArgumentNullException("matrix"); } IntPtr arg = NSString.CreateNative(fontName); NSFontDescriptor result = (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selFontDescriptorWithNameMatrix_Handle, arg, matrix.Handle)); NSString.ReleaseNative(arg); return result; } [Export("initWithFontAttributes:")] public NSFontDescriptor(NSDictionary attributes) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithFontAttributes_Handle, attributes.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithFontAttributes_Handle, attributes.Handle); } } [Export("matchingFontDescriptorsWithMandatoryKeys:")] public virtual NSFontDescriptor[] MatchingFontDescriptors(NSSet mandatoryKeys) { NSApplication.EnsureUIThread(); if (mandatoryKeys == null) { throw new ArgumentNullException("mandatoryKeys"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMatchingFontDescriptorsWithMandatoryKeys_Handle, mandatoryKeys.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchingFontDescriptorsWithMandatoryKeys_Handle, mandatoryKeys.Handle)); } [Export("matchingFontDescriptorWithMandatoryKeys:")] public virtual NSFontDescriptor MatchingFontDescriptorWithMandatoryKeys(NSSet mandatoryKeys) { NSApplication.EnsureUIThread(); if (mandatoryKeys == null) { throw new ArgumentNullException("mandatoryKeys"); } if (IsDirectBinding) { return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMatchingFontDescriptorWithMandatoryKeys_Handle, mandatoryKeys.Handle)); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchingFontDescriptorWithMandatoryKeys_Handle, mandatoryKeys.Handle)); } [Export("fontDescriptorByAddingAttributes:")] public virtual NSFontDescriptor FontDescriptorByAddingAttributes(NSDictionary attributes) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFontDescriptorByAddingAttributes_Handle, attributes.Handle)); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFontDescriptorByAddingAttributes_Handle, attributes.Handle)); } [Export("fontDescriptorWithSymbolicTraits:")] public virtual NSFontDescriptor FontDescriptorWithSymbolicTraits(NSFontSymbolicTraits symbolicTraits) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selFontDescriptorWithSymbolicTraits_Handle, (int)symbolicTraits)); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selFontDescriptorWithSymbolicTraits_Handle, (int)symbolicTraits)); } [Export("fontDescriptorWithSize:")] public virtual NSFontDescriptor FontDescriptorWithSize(double newPointSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selFontDescriptorWithSize_Handle, newPointSize)); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selFontDescriptorWithSize_Handle, newPointSize)); } [Export("fontDescriptorWithMatrix:")] public virtual NSFontDescriptor FontDescriptorWithMatrix(NSAffineTransform matrix) { NSApplication.EnsureUIThread(); if (matrix == null) { throw new ArgumentNullException("matrix"); } if (IsDirectBinding) { return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFontDescriptorWithMatrix_Handle, matrix.Handle)); } return (NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFontDescriptorWithMatrix_Handle, matrix.Handle)); } [Export("fontDescriptorWithFace:")] public virtual NSFontDescriptor FontDescriptorWithFace(string newFace) { NSApplication.EnsureUIThread(); if (newFace == null) { throw new ArgumentNullException("newFace"); } IntPtr arg = NSString.CreateNative(newFace); NSFontDescriptor result = ((!IsDirectBinding) ? ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFontDescriptorWithFace_Handle, arg))) : ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFontDescriptorWithFace_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("fontDescriptorWithFamily:")] public virtual NSFontDescriptor FontDescriptorWithFamily(string newFamily) { NSApplication.EnsureUIThread(); if (newFamily == null) { throw new ArgumentNullException("newFamily"); } IntPtr arg = NSString.CreateNative(newFamily); NSFontDescriptor result = ((!IsDirectBinding) ? ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFontDescriptorWithFamily_Handle, arg))) : ((NSFontDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFontDescriptorWithFamily_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Matrix_var = null; __mt_FontAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontManager.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFontManager", true)] public class NSFontManager : NSObject { private static readonly IntPtr selSharedFontManagerHandle = Selector.GetHandle("sharedFontManager"); private static readonly IntPtr selIsMultipleHandle = Selector.GetHandle("isMultiple"); private static readonly IntPtr selSelectedFontHandle = Selector.GetHandle("selectedFont"); private static readonly IntPtr selAvailableFontsHandle = Selector.GetHandle("availableFonts"); private static readonly IntPtr selAvailableFontFamiliesHandle = Selector.GetHandle("availableFontFamilies"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selSendActionHandle = Selector.GetHandle("sendAction"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCollectionNamesHandle = Selector.GetHandle("collectionNames"); private static readonly IntPtr selCurrentFontActionHandle = Selector.GetHandle("currentFontAction"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selSetFontPanelFactory_Handle = Selector.GetHandle("setFontPanelFactory:"); private static readonly IntPtr selSetFontManagerFactory_Handle = Selector.GetHandle("setFontManagerFactory:"); private static readonly IntPtr selSetSelectedFontIsMultiple_Handle = Selector.GetHandle("setSelectedFont:isMultiple:"); private static readonly IntPtr selSetFontMenu_Handle = Selector.GetHandle("setFontMenu:"); private static readonly IntPtr selFontMenu_Handle = Selector.GetHandle("fontMenu:"); private static readonly IntPtr selFontPanel_Handle = Selector.GetHandle("fontPanel:"); private static readonly IntPtr selFontWithFamilyTraitsWeightSize_Handle = Selector.GetHandle("fontWithFamily:traits:weight:size:"); private static readonly IntPtr selTraitsOfFont_Handle = Selector.GetHandle("traitsOfFont:"); private static readonly IntPtr selWeightOfFont_Handle = Selector.GetHandle("weightOfFont:"); private static readonly IntPtr selAvailableMembersOfFontFamily_Handle = Selector.GetHandle("availableMembersOfFontFamily:"); private static readonly IntPtr selConvertFont_Handle = Selector.GetHandle("convertFont:"); private static readonly IntPtr selConvertFontToSize_Handle = Selector.GetHandle("convertFont:toSize:"); private static readonly IntPtr selConvertFontToFace_Handle = Selector.GetHandle("convertFont:toFace:"); private static readonly IntPtr selConvertFontToFamily_Handle = Selector.GetHandle("convertFont:toFamily:"); private static readonly IntPtr selConvertFontToHaveTrait_Handle = Selector.GetHandle("convertFont:toHaveTrait:"); private static readonly IntPtr selConvertFontToNotHaveTrait_Handle = Selector.GetHandle("convertFont:toNotHaveTrait:"); private static readonly IntPtr selConvertWeightOfFont_Handle = Selector.GetHandle("convertWeight:ofFont:"); private static readonly IntPtr selLocalizedNameForFamilyFace_Handle = Selector.GetHandle("localizedNameForFamily:face:"); private static readonly IntPtr selSetSelectedAttributesIsMultiple_Handle = Selector.GetHandle("setSelectedAttributes:isMultiple:"); private static readonly IntPtr selConvertAttributes_Handle = Selector.GetHandle("convertAttributes:"); private static readonly IntPtr selAvailableFontNamesMatchingFontDescriptor_Handle = Selector.GetHandle("availableFontNamesMatchingFontDescriptor:"); private static readonly IntPtr selFontDescriptorsInCollection_Handle = Selector.GetHandle("fontDescriptorsInCollection:"); private static readonly IntPtr selAddCollectionOptions_Handle = Selector.GetHandle("addCollection:options:"); private static readonly IntPtr selRemoveCollection_Handle = Selector.GetHandle("removeCollection:"); private static readonly IntPtr selAddFontDescriptorsToCollection_Handle = Selector.GetHandle("addFontDescriptors:toCollection:"); private static readonly IntPtr selRemoveFontDescriptorFromCollection_Handle = Selector.GetHandle("removeFontDescriptor:fromCollection:"); private static readonly IntPtr selConvertFontTraits_Handle = Selector.GetHandle("convertFontTraits:"); private static readonly IntPtr selFontNamedHasTraits_Handle = Selector.GetHandle("fontNamed:hasTraits:"); private static readonly IntPtr selAvailableFontNamesWithTraits_Handle = Selector.GetHandle("availableFontNamesWithTraits:"); private static readonly IntPtr selAddFontTrait_Handle = Selector.GetHandle("addFontTrait:"); private static readonly IntPtr selRemoveFontTrait_Handle = Selector.GetHandle("removeFontTrait:"); private static readonly IntPtr selModifyFontViaPanel_Handle = Selector.GetHandle("modifyFontViaPanel:"); private static readonly IntPtr selModifyFont_Handle = Selector.GetHandle("modifyFont:"); private static readonly IntPtr selOrderFrontFontPanel_Handle = Selector.GetHandle("orderFrontFontPanel:"); private static readonly IntPtr selOrderFrontStylesPanel_Handle = Selector.GetHandle("orderFrontStylesPanel:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFontManager"); private static object __mt_SharedFontManager_var_static; private object __mt_SelectedFont_var; private object __mt_WeakDelegate_var; private object __mt_Target_var; public override IntPtr ClassHandle => class_ptr; public static NSFontManager SharedFontManager { [Export("sharedFontManager")] get { NSApplication.EnsureUIThread(); return (NSFontManager)(__mt_SharedFontManager_var_static = (NSFontManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedFontManagerHandle))); } } public virtual bool IsMultiple { [Export("isMultiple")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMultipleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMultipleHandle); } } public virtual NSFont SelectedFont { [Export("selectedFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_SelectedFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedFontHandle))))); } } public virtual string[] AvailableFonts { [Export("availableFonts")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableFontsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableFontsHandle)); } } public virtual string[] AvailableFontFamilies { [Export("availableFontFamilies")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableFontFamiliesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableFontFamiliesHandle)); } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual bool SendAction { [Export("sendAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendActionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendActionHandle); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public virtual string[] CollectionNames { [Export("collectionNames")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCollectionNamesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCollectionNamesHandle)); } } public virtual long CurrentFontAction { [Export("currentFontAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selCurrentFontActionHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selCurrentFontActionHandle); } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFontManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFontManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontManager(IntPtr handle) : base(handle) { } [Export("setFontPanelFactory:")] public static void SetFontPanelFactory(Class factoryId) { NSApplication.EnsureUIThread(); if (factoryId == null) { throw new ArgumentNullException("factoryId"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetFontPanelFactory_Handle, factoryId.Handle); } [Export("setFontManagerFactory:")] public static void SetFontManagerFactory(Class factoryId) { NSApplication.EnsureUIThread(); if (factoryId == null) { throw new ArgumentNullException("factoryId"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetFontManagerFactory_Handle, factoryId.Handle); } [Export("setSelectedFont:isMultiple:")] public virtual void SetSelectedFont(NSFont fontObj, bool isMultiple) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetSelectedFontIsMultiple_Handle, fontObj.Handle, isMultiple); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetSelectedFontIsMultiple_Handle, fontObj.Handle, isMultiple); } } [Export("setFontMenu:")] public virtual void SetFontMenu(NSMenu newMenu) { NSApplication.EnsureUIThread(); if (newMenu == null) { throw new ArgumentNullException("newMenu"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFontMenu_Handle, newMenu.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFontMenu_Handle, newMenu.Handle); } } [Export("fontMenu:")] public virtual NSMenu FontMenu(bool create) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(base.Handle, selFontMenu_Handle, create)); } return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool(base.SuperHandle, selFontMenu_Handle, create)); } [Export("fontPanel:")] public virtual NSFontPanel FontPanel(bool create) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(base.Handle, selFontPanel_Handle, create)); } return (NSFontPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool(base.SuperHandle, selFontPanel_Handle, create)); } [Export("fontWithFamily:traits:weight:size:")] public virtual NSFont FontWithFamily(string family, NSFontTraitMask traits, long weight, double size) { NSApplication.EnsureUIThread(); if (family == null) { throw new ArgumentNullException("family"); } IntPtr arg = NSString.CreateNative(family); NSFont result = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_Int64_Double(base.SuperHandle, selFontWithFamilyTraitsWeightSize_Handle, arg, (ulong)traits, weight, size))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_Int64_Double(base.Handle, selFontWithFamilyTraitsWeightSize_Handle, arg, (ulong)traits, weight, size)))); NSString.ReleaseNative(arg); return result; } [Export("traitsOfFont:")] public virtual NSFontTraitMask TraitsOfFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFontTraitMask)Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selTraitsOfFont_Handle, fontObj.Handle); } return (NSFontTraitMask)Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selTraitsOfFont_Handle, fontObj.Handle); } [Export("weightOfFont:")] public virtual long WeightOfFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selWeightOfFont_Handle, fontObj.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selWeightOfFont_Handle, fontObj.Handle); } [Export("availableMembersOfFontFamily:")] public virtual NSArray[] AvailableMembersOfFontFamily(string fam) { NSApplication.EnsureUIThread(); if (fam == null) { throw new ArgumentNullException("fam"); } IntPtr arg = NSString.CreateNative(fam); NSArray[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAvailableMembersOfFontFamily_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAvailableMembersOfFontFamily_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("convertFont:")] public virtual NSFont ConvertFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selConvertFont_Handle, fontObj.Handle)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selConvertFont_Handle, fontObj.Handle)); } [Export("convertFont:toSize:")] public virtual NSFont ConvertFont(NSFont fontObj, double size) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Double(base.Handle, selConvertFontToSize_Handle, fontObj.Handle, size)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_Double(base.SuperHandle, selConvertFontToSize_Handle, fontObj.Handle, size)); } [Export("convertFont:toFace:")] public virtual NSFont ConvertFont(NSFont fontObj, string typeface) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (typeface == null) { throw new ArgumentNullException("typeface"); } IntPtr arg = NSString.CreateNative(typeface); NSFont result = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selConvertFontToFace_Handle, fontObj.Handle, arg))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selConvertFontToFace_Handle, fontObj.Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("convertFont:toFamily:")] public virtual NSFont ConvertFontToFamily(NSFont fontObj, string family) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (family == null) { throw new ArgumentNullException("family"); } IntPtr arg = NSString.CreateNative(family); NSFont result = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selConvertFontToFamily_Handle, fontObj.Handle, arg))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selConvertFontToFamily_Handle, fontObj.Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("convertFont:toHaveTrait:")] public virtual NSFont ConvertFont(NSFont fontObj, NSFontTraitMask trait) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selConvertFontToHaveTrait_Handle, fontObj.Handle, (ulong)trait)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selConvertFontToHaveTrait_Handle, fontObj.Handle, (ulong)trait)); } [Export("convertFont:toNotHaveTrait:")] public virtual NSFont ConvertFontToNotHaveTrait(NSFont fontObj, NSFontTraitMask trait) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selConvertFontToNotHaveTrait_Handle, fontObj.Handle, (ulong)trait)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selConvertFontToNotHaveTrait_Handle, fontObj.Handle, (ulong)trait)); } [Export("convertWeight:ofFont:")] public virtual NSFont ConvertWeight(bool increaseWeight, NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool_IntPtr(base.Handle, selConvertWeightOfFont_Handle, increaseWeight, fontObj.Handle)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selConvertWeightOfFont_Handle, increaseWeight, fontObj.Handle)); } [Export("localizedNameForFamily:face:")] public virtual string LocalizedNameForFamily(string family, string faceKey) { NSApplication.EnsureUIThread(); if (family == null) { throw new ArgumentNullException("family"); } if (faceKey == null) { throw new ArgumentNullException("faceKey"); } IntPtr arg = NSString.CreateNative(family); IntPtr arg2 = NSString.CreateNative(faceKey); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selLocalizedNameForFamilyFace_Handle, arg, arg2)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selLocalizedNameForFamilyFace_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setSelectedAttributes:isMultiple:")] public virtual void SetSelectedAttributes(NSDictionary attributes, bool isMultiple) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetSelectedAttributesIsMultiple_Handle, attributes.Handle, isMultiple); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetSelectedAttributesIsMultiple_Handle, attributes.Handle, isMultiple); } } [Export("convertAttributes:")] public virtual NSDictionary ConvertAttributes(NSDictionary attributes) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selConvertAttributes_Handle, attributes.Handle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selConvertAttributes_Handle, attributes.Handle)); } [Export("availableFontNamesMatchingFontDescriptor:")] public virtual string[] AvailableFontNamesMatchingFontDescriptor(NSFontDescriptor descriptor) { NSApplication.EnsureUIThread(); if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAvailableFontNamesMatchingFontDescriptor_Handle, descriptor.Handle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAvailableFontNamesMatchingFontDescriptor_Handle, descriptor.Handle)); } [Export("fontDescriptorsInCollection:")] public virtual NSArray FontDescriptorsInCollection(string collectionNames) { NSApplication.EnsureUIThread(); if (collectionNames == null) { throw new ArgumentNullException("collectionNames"); } IntPtr arg = NSString.CreateNative(collectionNames); NSArray result = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFontDescriptorsInCollection_Handle, arg))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFontDescriptorsInCollection_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("addCollection:options:")] public virtual bool AddCollection(string collectionName, NSFontCollectionOptions collectionOptions) { NSApplication.EnsureUIThread(); if (collectionName == null) { throw new ArgumentNullException("collectionName"); } IntPtr arg = NSString.CreateNative(collectionName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selAddCollectionOptions_Handle, arg, (ulong)collectionOptions) : Messaging.bool_objc_msgSend_IntPtr_UInt64(base.Handle, selAddCollectionOptions_Handle, arg, (ulong)collectionOptions)); NSString.ReleaseNative(arg); return result; } [Export("removeCollection:")] public virtual bool RemoveCollection(string collectionName) { NSApplication.EnsureUIThread(); if (collectionName == null) { throw new ArgumentNullException("collectionName"); } IntPtr arg = NSString.CreateNative(collectionName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveCollection_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemoveCollection_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("addFontDescriptors:toCollection:")] public virtual void AddFontDescriptors(NSFontDescriptor[] descriptors, string collectionName) { NSApplication.EnsureUIThread(); if (descriptors == null) { throw new ArgumentNullException("descriptors"); } if (collectionName == null) { throw new ArgumentNullException("collectionName"); } NSArray nSArray = NSArray.FromNSObjects(descriptors); IntPtr arg = NSString.CreateNative(collectionName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddFontDescriptorsToCollection_Handle, nSArray.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddFontDescriptorsToCollection_Handle, nSArray.Handle, arg); } nSArray.Dispose(); NSString.ReleaseNative(arg); } [Export("removeFontDescriptor:fromCollection:")] public virtual void RemoveFontDescriptor(NSFontDescriptor descriptor, string collection) { NSApplication.EnsureUIThread(); if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (collection == null) { throw new ArgumentNullException("collection"); } IntPtr arg = NSString.CreateNative(collection); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveFontDescriptorFromCollection_Handle, descriptor.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveFontDescriptorFromCollection_Handle, descriptor.Handle, arg); } NSString.ReleaseNative(arg); } [Export("convertFontTraits:")] public virtual NSFontTraitMask ConvertFontTraits(NSFontTraitMask traits) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFontTraitMask)Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selConvertFontTraits_Handle, (ulong)traits); } return (NSFontTraitMask)Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selConvertFontTraits_Handle, (ulong)traits); } [Export("fontNamed:hasTraits:")] public virtual bool FontNamedHasTraits(string fName, NSFontTraitMask someTraits) { NSApplication.EnsureUIThread(); if (fName == null) { throw new ArgumentNullException("fName"); } IntPtr arg = NSString.CreateNative(fName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selFontNamedHasTraits_Handle, arg, (ulong)someTraits) : Messaging.bool_objc_msgSend_IntPtr_UInt64(base.Handle, selFontNamedHasTraits_Handle, arg, (ulong)someTraits)); NSString.ReleaseNative(arg); return result; } [Export("availableFontNamesWithTraits:")] public virtual string[] AvailableFontNamesWithTraits(NSFontTraitMask someTraits) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selAvailableFontNamesWithTraits_Handle, (ulong)someTraits)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selAvailableFontNamesWithTraits_Handle, (ulong)someTraits)); } [Export("addFontTrait:")] public virtual void AddFontTrait(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddFontTrait_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddFontTrait_Handle, sender.Handle); } } [Export("removeFontTrait:")] public virtual void RemoveFontTrait(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveFontTrait_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveFontTrait_Handle, sender.Handle); } } [Export("modifyFontViaPanel:")] public virtual void ModifyFontViaPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selModifyFontViaPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selModifyFontViaPanel_Handle, sender.Handle); } } [Export("modifyFont:")] public virtual void ModifyFont(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selModifyFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selModifyFont_Handle, sender.Handle); } } [Export("orderFrontFontPanel:")] public virtual void OrderFrontFontPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontFontPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontFontPanel_Handle, sender.Handle); } } [Export("orderFrontStylesPanel:")] public virtual void OrderFrontStylesPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontStylesPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontStylesPanel_Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SelectedFont_var = null; __mt_WeakDelegate_var = null; __mt_Target_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFontPanel", true)] public class NSFontPanel : NSPanel { private static readonly IntPtr selSharedFontPanelHandle = Selector.GetHandle("sharedFontPanel"); private static readonly IntPtr selSharedFontPanelExistsHandle = Selector.GetHandle("sharedFontPanelExists"); private static readonly IntPtr selWorksWhenModalHandle = Selector.GetHandle("worksWhenModal"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selSetPanelFontIsMultiple_Handle = Selector.GetHandle("setPanelFont:isMultiple:"); private static readonly IntPtr selPanelConvertFont_Handle = Selector.GetHandle("panelConvertFont:"); private static readonly IntPtr selReloadDefaultFontFamiliesHandle = Selector.GetHandle("reloadDefaultFontFamilies"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFontPanel"); private static object __mt_SharedFontPanel_var_static; private object __mt_AccessoryView_var; public override IntPtr ClassHandle => class_ptr; public static NSFontPanel SharedFontPanel { [Export("sharedFontPanel")] get { NSApplication.EnsureUIThread(); return (NSFontPanel)(__mt_SharedFontPanel_var_static = (NSFontPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedFontPanelHandle))); } } public static bool SharedFontPanelExists { [Export("sharedFontPanelExists")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selSharedFontPanelExistsHandle); } } public new virtual bool WorksWhenModal { [Export("worksWhenModal")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWorksWhenModalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWorksWhenModalHandle); } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFontPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFontPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFontPanel(IntPtr handle) : base(handle) { } [Export("setPanelFont:isMultiple:")] public virtual void SetPanelFont(NSFont fontObj, bool isMultiple) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetPanelFontIsMultiple_Handle, fontObj.Handle, isMultiple); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetPanelFontIsMultiple_Handle, fontObj.Handle, isMultiple); } } [Export("panelConvertFont:")] public virtual NSFont PanelConvertFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPanelConvertFont_Handle, fontObj.Handle)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPanelConvertFont_Handle, fontObj.Handle)); } [Export("reloadDefaultFontFamilies")] public virtual void ReloadDefaultFontFamilies() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDefaultFontFamiliesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDefaultFontFamiliesHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AccessoryView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontPanelMode.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFontPanelMode { FaceMask = 1, SizeMask = 2, CollectionMask = 4, UnderlineEffectMask = 0x100, StrikethroughEffectMask = 0x200, TextColorEffectMask = 0x400, DocumentColorEffectMask = 0x800, ShadowEffectMask = 0x1000, AllEffectsMask = 0xFFF00, StandardMask = 0xFFFF, AllModesMask = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontRenderingMode.cs ================================================ namespace AppKit; public enum NSFontRenderingMode : ulong { Default, Antialiased, IntegerAdvancements, AntialiasedIntegerAdvancements } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontSymbolicTraits.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFontSymbolicTraits { ItalicTrait = 1, BoldTrait = 2, ExpandedTrait = 0x20, CondensedTrait = 0x40, MonoSpaceTrait = 0x400, VerticalTrait = 0x800, UIOptimizedTrait = 0x1000, UnknownClass = 0, OldStyleSerifsClass = 0x10000000, TransitionalSerifsClass = 0x20000000, ModernSerifsClass = 0x30000000, ClarendonSerifsClass = 0x40000000, SlabSerifsClass = 0x50000000, FreeformSerifsClass = 0x70000000, SansSerifClass = int.MinValue, OrnamentalsClass = -1879048192, ScriptsClass = -1610612736, SymbolicClass = -1073741824, FamilyClassMask = -268435456 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFontTraitMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSFontTraitMask : ulong { Italic = 1uL, Bold = 2uL, Unbold = 4uL, NonStandardCharacterSet = 8uL, Narrow = 0x10uL, Expanded = 0x20uL, Condensed = 0x40uL, SmallCaps = 0x80uL, Poster = 0x100uL, Compressed = 0x200uL, FixedPitch = 0x400uL, Unitalic = 0x1000000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSForm.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSForm", true)] public class NSForm : NSMatrix { private static readonly IntPtr selIndexOfSelectedItemHandle = Selector.GetHandle("indexOfSelectedItem"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle = Selector.GetHandle("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"); private static readonly IntPtr selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle = Selector.GetHandle("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:"); private static readonly IntPtr selSetEntryWidth_Handle = Selector.GetHandle("setEntryWidth:"); private static readonly IntPtr selSetInterlineSpacing_Handle = Selector.GetHandle("setInterlineSpacing:"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selSetBezeled_Handle = Selector.GetHandle("setBezeled:"); private static readonly IntPtr selSetTitleAlignment_Handle = Selector.GetHandle("setTitleAlignment:"); private static readonly IntPtr selSetTextAlignment_Handle = Selector.GetHandle("setTextAlignment:"); private static readonly IntPtr selSetTitleFont_Handle = Selector.GetHandle("setTitleFont:"); private static readonly IntPtr selSetTextFont_Handle = Selector.GetHandle("setTextFont:"); private static readonly IntPtr selCellAtIndex_Handle = Selector.GetHandle("cellAtIndex:"); private static readonly IntPtr selDrawCellAtIndex_Handle = Selector.GetHandle("drawCellAtIndex:"); private static readonly IntPtr selAddEntry_Handle = Selector.GetHandle("addEntry:"); private static readonly IntPtr selInsertEntryAtIndex_Handle = Selector.GetHandle("insertEntry:atIndex:"); private static readonly IntPtr selRemoveEntryAtIndex_Handle = Selector.GetHandle("removeEntryAtIndex:"); private static readonly IntPtr selIndexOfCellWithTag_Handle = Selector.GetHandle("indexOfCellWithTag:"); private static readonly IntPtr selSelectTextAtIndex_Handle = Selector.GetHandle("selectTextAtIndex:"); private static readonly IntPtr selSetFrameSize_Handle = Selector.GetHandle("setFrameSize:"); private static readonly IntPtr selSetTitleBaseWritingDirection_Handle = Selector.GetHandle("setTitleBaseWritingDirection:"); private static readonly IntPtr selSetTextBaseWritingDirection_Handle = Selector.GetHandle("setTextBaseWritingDirection:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSForm"); public override IntPtr ClassHandle => class_ptr; public virtual long SelectedItemIndex { [Export("indexOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndexOfSelectedItemHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndexOfSelectedItemHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSForm() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSForm(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSForm(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSForm(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSForm(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:")] public NSForm(CGRect frameRect, NSMatrixMode aMode, NSCell aCell, long rowsHigh, long colsWide) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_int_IntPtr_Int64_Int64(base.Handle, selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, aCell.Handle, rowsHigh, colsWide); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_int_IntPtr_Int64_Int64(base.SuperHandle, selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, aCell.Handle, rowsHigh, colsWide); } } [Export("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:")] public NSForm(CGRect frameRect, NSMatrixMode aMode, Class factoryId, long rowsHigh, long colsWide) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (factoryId == null) { throw new ArgumentNullException("factoryId"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_int_IntPtr_Int64_Int64(base.Handle, selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, factoryId.Handle, rowsHigh, colsWide); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_int_IntPtr_Int64_Int64(base.SuperHandle, selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, factoryId.Handle, rowsHigh, colsWide); } } [Export("setEntryWidth:")] public virtual void SetEntryWidth(double width) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetEntryWidth_Handle, width); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetEntryWidth_Handle, width); } } [Export("setInterlineSpacing:")] public virtual void SetInterlineSpacing(double spacing) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetInterlineSpacing_Handle, spacing); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetInterlineSpacing_Handle, spacing); } } [Export("setBordered:")] public virtual void SetBordered(bool bordered) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, bordered); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, bordered); } } [Export("setBezeled:")] public virtual void SetBezeled(bool bezeled) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBezeled_Handle, bezeled); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBezeled_Handle, bezeled); } } [Export("setTitleAlignment:")] public virtual void SetTitleAlignment(NSTextAlignment mode) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTitleAlignment_Handle, (ulong)mode); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTitleAlignment_Handle, (ulong)mode); } } [Export("setTextAlignment:")] public virtual void SetTextAlignment(NSTextAlignment mode) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTextAlignment_Handle, (ulong)mode); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTextAlignment_Handle, (ulong)mode); } } [Export("setTitleFont:")] public virtual void SetTitleFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleFont_Handle, fontObj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleFont_Handle, fontObj.Handle); } } [Export("setTextFont:")] public virtual void SetTextFont(NSFont fontObj) { NSApplication.EnsureUIThread(); if (fontObj == null) { throw new ArgumentNullException("fontObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextFont_Handle, fontObj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextFont_Handle, fontObj.Handle); } } [Export("cellAtIndex:")] public virtual NSObject CellAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selCellAtIndex_Handle, index)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selCellAtIndex_Handle, index)); } [Export("drawCellAtIndex:")] public virtual void DrawCellAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selDrawCellAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selDrawCellAtIndex_Handle, index); } } [Export("addEntry:")] public virtual NSFormCell AddEntry(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSFormCell result = ((!IsDirectBinding) ? ((NSFormCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddEntry_Handle, arg))) : ((NSFormCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAddEntry_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("insertEntry:atIndex:")] public virtual NSFormCell InsertEntryatIndex(string title, long index) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSFormCell result = ((!IsDirectBinding) ? ((NSFormCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertEntryAtIndex_Handle, arg, index))) : ((NSFormCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64(base.Handle, selInsertEntryAtIndex_Handle, arg, index)))); NSString.ReleaseNative(arg); return result; } [Export("removeEntryAtIndex:")] public virtual void RemoveEntryAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveEntryAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveEntryAtIndex_Handle, index); } } [Export("indexOfCellWithTag:")] public virtual long IndexOfCellWithTag(long aTag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selIndexOfCellWithTag_Handle, aTag); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selIndexOfCellWithTag_Handle, aTag); } [Export("selectTextAtIndex:")] public virtual void SelectTextAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSelectTextAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSelectTextAtIndex_Handle, index); } } [Export("setFrameSize:")] public new virtual void SetFrameSize(CGSize newSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetFrameSize_Handle, newSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetFrameSize_Handle, newSize); } } [Export("setTitleBaseWritingDirection:")] public virtual void SetTitleBaseWritingDirection(NSWritingDirection writingDirection) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTitleBaseWritingDirection_Handle, (long)writingDirection); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTitleBaseWritingDirection_Handle, (long)writingDirection); } } [Export("setTextBaseWritingDirection:")] public virtual void SetTextBaseWritingDirection(NSWritingDirection writingDirection) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTextBaseWritingDirection_Handle, (long)writingDirection); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTextBaseWritingDirection_Handle, (long)writingDirection); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSFormCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSFormCell", true)] public class NSFormCell : NSActionCell { private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selTitleWidthHandle = Selector.GetHandle("titleWidth"); private static readonly IntPtr selSetTitleWidth_Handle = Selector.GetHandle("setTitleWidth:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selTitleFontHandle = Selector.GetHandle("titleFont"); private static readonly IntPtr selSetTitleFont_Handle = Selector.GetHandle("setTitleFont:"); private static readonly IntPtr selTitleAlignmentHandle = Selector.GetHandle("titleAlignment"); private static readonly IntPtr selSetTitleAlignment_Handle = Selector.GetHandle("setTitleAlignment:"); private static readonly IntPtr selPlaceholderStringHandle = Selector.GetHandle("placeholderString"); private static readonly IntPtr selSetPlaceholderString_Handle = Selector.GetHandle("setPlaceholderString:"); private static readonly IntPtr selPlaceholderAttributedStringHandle = Selector.GetHandle("placeholderAttributedString"); private static readonly IntPtr selSetPlaceholderAttributedString_Handle = Selector.GetHandle("setPlaceholderAttributedString:"); private static readonly IntPtr selTitleBaseWritingDirectionHandle = Selector.GetHandle("titleBaseWritingDirection"); private static readonly IntPtr selSetTitleBaseWritingDirection_Handle = Selector.GetHandle("setTitleBaseWritingDirection:"); private static readonly IntPtr selAttributedTitleHandle = Selector.GetHandle("attributedTitle"); private static readonly IntPtr selSetAttributedTitle_Handle = Selector.GetHandle("setAttributedTitle:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSetTitleWithMnemonic_Handle = Selector.GetHandle("setTitleWithMnemonic:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFormCell"); private object __mt_TitleFont_var; private object __mt_PlaceholderAttributedString_var; private object __mt_AttributedTitle_var; public override IntPtr ClassHandle => class_ptr; public new virtual bool IsOpaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } } public virtual double TitleWidth { [Export("titleWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTitleWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTitleWidthHandle); } [Export("setTitleWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTitleWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTitleWidth_Handle, value); } } } public new virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSFont TitleFont { [Export("titleFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_TitleFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleFontHandle))))); } [Export("setTitleFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleFont_Handle, value.Handle); } __mt_TitleFont_var = value; } } public virtual NSTextAlignment TitleAlignment { [Export("titleAlignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selTitleAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTitleAlignmentHandle); } [Export("setTitleAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTitleAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTitleAlignment_Handle, (ulong)value); } } } public virtual string PlaceholderString { [Export("placeholderString")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderStringHandle)); } [Export("setPlaceholderString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderString_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString PlaceholderAttributedString { [Export("placeholderAttributedString")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_PlaceholderAttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderAttributedStringHandle))))); } [Export("setPlaceholderAttributedString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderAttributedString_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderAttributedString_Handle, value.Handle); } __mt_PlaceholderAttributedString_var = value; } } public virtual NSWritingDirection TitleBaseWritingDirection { [Export("titleBaseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selTitleBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTitleBaseWritingDirectionHandle); } [Export("setTitleBaseWritingDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTitleBaseWritingDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTitleBaseWritingDirection_Handle, (long)value); } } } public virtual NSAttributedString AttributedTitle { [Export("attributedTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedTitleHandle))))); } [Export("setAttributedTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedTitle_Handle, value.Handle); } __mt_AttributedTitle_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFormCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFormCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFormCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFormCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSFormCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSFormCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("initTextCell:")] public virtual IntPtr ConstrainScrollPoint(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg) : Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setTitleWithMnemonic:")] public new virtual void SetTitleWithMnemonic(string stringWithAmpersand) { NSApplication.EnsureUIThread(); if (stringWithAmpersand == null) { throw new ArgumentNullException("stringWithAmpersand"); } IntPtr arg = NSString.CreateNative(stringWithAmpersand); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TitleFont_var = null; __mt_PlaceholderAttributedString_var = null; __mt_AttributedTitle_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGLColorBuffer.cs ================================================ namespace AppKit; public enum NSGLColorBuffer { Front = 1028, Back = 1029, Aux0 = 1033 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGLFormat.cs ================================================ namespace AppKit; public enum NSGLFormat { RGB = 6407, RGBA = 6408, DepthComponent = 6402 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGLTextureCubeMap.cs ================================================ namespace AppKit; public enum NSGLTextureCubeMap { None = 0, PositiveX = 34069, PositiveY = 34071, PositiveZ = 34073, NegativeX = 34070, NegativeY = 34071, NegativeZ = 34074 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGLTextureTarget.cs ================================================ namespace AppKit; public enum NSGLTextureTarget { T2D = 3553, CubeMap = 34067, RectangleExt = 34037 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGlyphGenerator.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSGlyphGenerator", true)] public class NSGlyphGenerator : NSObject { private static readonly IntPtr selSharedGlyphGeneratorHandle = Selector.GetHandle("sharedGlyphGenerator"); private static readonly IntPtr selGenerateGlyphsForGlyphStorageDesiredNumberOfCharactersGlyphIndexCharacterIndex_Handle = Selector.GetHandle("generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:characterIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSGlyphGenerator"); private static object __mt_SharedGlyphGenerator_var_static; public override IntPtr ClassHandle => class_ptr; public static NSGlyphGenerator SharedGlyphGenerator { [Export("sharedGlyphGenerator")] get { NSApplication.EnsureUIThread(); return (NSGlyphGenerator)(__mt_SharedGlyphGenerator_var_static = (NSGlyphGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedGlyphGeneratorHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSGlyphGenerator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSGlyphGenerator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGlyphGenerator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGlyphGenerator(IntPtr handle) : base(handle) { } [Export("generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:characterIndex:")] public virtual void GenerateGlyphs(NSObject nsGlyphStorageOrNSLayoutManager, ulong nchars, ref ulong glyphIndex, ref ulong charIndex) { NSApplication.EnsureUIThread(); if (nsGlyphStorageOrNSLayoutManager == null) { throw new ArgumentNullException("nsGlyphStorageOrNSLayoutManager"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_out_UInt64_out_UInt64(base.Handle, selGenerateGlyphsForGlyphStorageDesiredNumberOfCharactersGlyphIndexCharacterIndex_Handle, nsGlyphStorageOrNSLayoutManager.Handle, nchars, out glyphIndex, out charIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_out_UInt64_out_UInt64(base.SuperHandle, selGenerateGlyphsForGlyphStorageDesiredNumberOfCharactersGlyphIndexCharacterIndex_Handle, nsGlyphStorageOrNSLayoutManager.Handle, nchars, out glyphIndex, out charIndex); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGlyphInscription.cs ================================================ namespace AppKit; public enum NSGlyphInscription : ulong { Base, Below, Above, Overstrike, OverBelow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGlyphStorageOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSGlyphStorageOptions : ulong { ShowControlGlyphs = 1uL, ShowInvisibleGlyphs = 2uL, WantsBidiLevels = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGradient.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSGradient", true)] public class NSGradient : NSObject { private static IntPtr selInitWithColorsAtLocationsColorSpace = Selector.GetHandle("initWithColors:atLocations:colorSpace:"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selNumberOfColorStopsHandle = Selector.GetHandle("numberOfColorStops"); private static readonly IntPtr selInitWithStartingColorEndingColor_Handle = Selector.GetHandle("initWithStartingColor:endingColor:"); private static readonly IntPtr selInitWithColors_Handle = Selector.GetHandle("initWithColors:"); private static readonly IntPtr selDrawFromPointToPointOptions_Handle = Selector.GetHandle("drawFromPoint:toPoint:options:"); private static readonly IntPtr selDrawInRectAngle_Handle = Selector.GetHandle("drawInRect:angle:"); private static readonly IntPtr selDrawInBezierPathAngle_Handle = Selector.GetHandle("drawInBezierPath:angle:"); private static readonly IntPtr selDrawFromCenterRadiusToCenterRadiusOptions_Handle = Selector.GetHandle("drawFromCenter:radius:toCenter:radius:options:"); private static readonly IntPtr selDrawInRectRelativeCenterPosition_Handle = Selector.GetHandle("drawInRect:relativeCenterPosition:"); private static readonly IntPtr selDrawInBezierPathRelativeCenterPosition_Handle = Selector.GetHandle("drawInBezierPath:relativeCenterPosition:"); private static readonly IntPtr selGetColorLocationAtIndex_Handle = Selector.GetHandle("getColor:location:atIndex:"); private static readonly IntPtr selInterpolatedColorAtLocation_Handle = Selector.GetHandle("interpolatedColorAtLocation:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSGradient"); private object __mt_ColorSpace_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColorSpace ColorSpace { [Export("colorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_ColorSpace_var = ((!IsDirectBinding) ? ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle))) : ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle))))); } } public virtual long ColorStopsCount { [Export("numberOfColorStops")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfColorStopsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfColorStopsHandle); } } [Export("initWithColorsAndLocations:")] public NSGradient(NSColor[] colors, double[] locations) : this(colors, locations, NSColorSpace.GenericRGBColorSpace) { } [Export("initWithColors:atLocations:colorSpace:")] public NSGradient(NSColor[] colors, double[] locations, NSColorSpace colorSpace) : base(NSObjectFlag.Empty) { if (colors == null) { throw new ArgumentNullException("colors"); } if (locations == null) { throw new ArgumentNullException("locations"); } if (colorSpace == null) { throw new ArgumentNullException("colorSpace"); } NSArray nSArray = NSArray.FromNSObjects(colors); IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(locations[0]) * locations.Length); Marshal.Copy(locations, 0, intPtr, locations.Length); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithColorsAtLocationsColorSpace, nSArray.Handle, intPtr, colorSpace.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithColorsAtLocationsColorSpace, nSArray.Handle, intPtr, colorSpace.Handle); } nSArray.Dispose(); Marshal.FreeHGlobal(intPtr); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSGradient() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSGradient(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGradient(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGradient(IntPtr handle) : base(handle) { } [Export("initWithStartingColor:endingColor:")] public NSGradient(NSColor startingColor, NSColor endingColor) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (startingColor == null) { throw new ArgumentNullException("startingColor"); } if (endingColor == null) { throw new ArgumentNullException("endingColor"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithStartingColorEndingColor_Handle, startingColor.Handle, endingColor.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithStartingColorEndingColor_Handle, startingColor.Handle, endingColor.Handle); } } [Export("initWithColors:")] public NSGradient(NSColor[] colorArray) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (colorArray == null) { throw new ArgumentNullException("colorArray"); } NSArray nSArray = NSArray.FromNSObjects(colorArray); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithColors_Handle, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithColors_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("drawFromPoint:toPoint:options:")] public virtual void DrawFromPoint(CGPoint startingPoint, CGPoint endingPoint, NSGradientDrawingOptions options) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGPoint_UInt64(base.Handle, selDrawFromPointToPointOptions_Handle, startingPoint, endingPoint, (ulong)options); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGPoint_UInt64(base.SuperHandle, selDrawFromPointToPointOptions_Handle, startingPoint, endingPoint, (ulong)options); } } [Export("drawInRect:angle:")] public virtual void DrawInRect(CGRect rect, double angle) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_Double(base.Handle, selDrawInRectAngle_Handle, rect, angle); } else { Messaging.void_objc_msgSendSuper_CGRect_Double(base.SuperHandle, selDrawInRectAngle_Handle, rect, angle); } } [Export("drawInBezierPath:angle:")] public virtual void DrawInBezierPath(NSBezierPath path, double angle) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Double(base.Handle, selDrawInBezierPathAngle_Handle, path.Handle, angle); } else { Messaging.void_objc_msgSendSuper_IntPtr_Double(base.SuperHandle, selDrawInBezierPathAngle_Handle, path.Handle, angle); } } [Export("drawFromCenter:radius:toCenter:radius:options:")] public virtual void DrawFromCenterRadius(CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, NSGradientDrawingOptions options) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_Double_CGPoint_Double_UInt64(base.Handle, selDrawFromCenterRadiusToCenterRadiusOptions_Handle, startCenter, startRadius, endCenter, endRadius, (ulong)options); } else { Messaging.void_objc_msgSendSuper_CGPoint_Double_CGPoint_Double_UInt64(base.SuperHandle, selDrawFromCenterRadiusToCenterRadiusOptions_Handle, startCenter, startRadius, endCenter, endRadius, (ulong)options); } } [Export("drawInRect:relativeCenterPosition:")] public virtual void DrawInRect(CGRect rect, CGPoint relativeCenterPosition) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGPoint(base.Handle, selDrawInRectRelativeCenterPosition_Handle, rect, relativeCenterPosition); } else { Messaging.void_objc_msgSendSuper_CGRect_CGPoint(base.SuperHandle, selDrawInRectRelativeCenterPosition_Handle, rect, relativeCenterPosition); } } [Export("drawInBezierPath:relativeCenterPosition:")] public virtual void DrawInBezierPath(NSBezierPath path, CGPoint relativeCenterPosition) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDrawInBezierPathRelativeCenterPosition_Handle, path.Handle, relativeCenterPosition); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDrawInBezierPathRelativeCenterPosition_Handle, path.Handle, relativeCenterPosition); } } [Export("getColor:location:atIndex:")] public virtual void GetColor(out NSColor color, out double location, long index) { NSApplication.EnsureUIThread(); IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_out_Double_Int64(base.Handle, selGetColorLocationAtIndex_Handle, intPtr, out location, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_out_Double_Int64(base.SuperHandle, selGetColorLocationAtIndex_Handle, intPtr, out location, index); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); color = ((intPtr2 != IntPtr.Zero) ? ((NSColor)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("interpolatedColorAtLocation:")] public virtual NSColor GetInterpolatedColor(double location) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selInterpolatedColorAtLocation_Handle, location)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selInterpolatedColorAtLocation_Handle, location)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ColorSpace_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGradientDrawingOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSGradientDrawingOptions : ulong { None = 0uL, BeforeStartingLocation = 1uL, AfterEndingLocation = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGradientType.cs ================================================ namespace AppKit; public enum NSGradientType : ulong { None, ConcaveWeak, ConcaveStrong, ConvexWeak, ConvexStrong } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGraphics.cs ================================================ using System; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; public static class NSGraphics { public static readonly double White = 1.0; public static readonly double Black = 0.0; public static readonly double LightGray = 2.0 / 3.0; public static readonly double DarkGray = 1.0 / 3.0; public static NSWindowDepth[] AvailableWindowDepths { get { IntPtr ptr = NSAvailableWindowDepths(); int i; for (i = 0; Marshal.ReadInt32(ptr, i) != 0; i++) { } NSWindowDepth[] array = new NSWindowDepth[i]; for (int num = 0; num < i; i++) { array[num] = (NSWindowDepth)Marshal.ReadInt32(ptr, num); } return array; } } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern NSWindowDepth NSBestDepth(IntPtr colorspaceHandle, long bitsPerSample, long bitsPerPixel, bool planar, ref bool exactMatch); public static NSWindowDepth BestDepth(NSString colorspace, long bitsPerSample, long bitsPerPixel, bool planar, ref bool exactMatch) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } return NSBestDepth(colorspace.Handle, bitsPerSample, bitsPerPixel, planar, ref exactMatch); } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern int NSPlanarFromDepth(NSWindowDepth depth); public static bool PlanarFromDepth(NSWindowDepth depth) { return NSPlanarFromDepth(depth) != 0; } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern IntPtr NSColorSpaceFromDepth(NSWindowDepth depth); public static NSString ColorSpaceFromDepth(NSWindowDepth depth) { return new NSString(NSColorSpaceFromDepth(depth)); } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSBitsPerSampleFromDepth")] public static extern int BitsPerSampleFromDepth(NSWindowDepth depth); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSBitsPerPixelFromDepth")] public static extern int BitsPerPixelFromDepth(NSWindowDepth depth); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern int NSNumberOfColorComponents(IntPtr str); public static int NumberOfColorComponents(NSString colorspaceName) { if (colorspaceName == null) { throw new ArgumentNullException("colorspaceName"); } return NSNumberOfColorComponents(colorspaceName.Handle); } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")] private static extern IntPtr NSAvailableWindowDepths(); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSRectFill")] public static extern void RectFill(CGRect rect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSRectFillList")] private unsafe static extern void RectFillList(CGRect* rects, int count); public unsafe static void RectFill(CGRect[] rects) { if (rects == null) { throw new ArgumentNullException("rects"); } fixed (CGRect* rects2 = &rects[0]) { RectFillList(rects2, rects.Length); } } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSRectClip")] public static extern void RectClip(CGRect rect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSFrameRect")] public static extern void FrameRect(CGRect rect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSFrameRectWithWidth")] public static extern void FrameRect(CGRect rect, double frameWidth); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSFrameRectWithWidth")] public static extern void FrameRectWithWidth(CGRect rect, double frameWidth); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSFrameRectWithWidthUsingOperation")] public static extern void FrameRect(CGRect rect, double frameWidth, NSCompositingOperation operation); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSShowAnimationEffect")] public static extern void ShowAnimationEffect(NSAnimationEffect animationEffect, CGPoint centerLocation, CGSize size, NSObject animationDelegate, Selector didEndSelector, IntPtr contextInfo); public static void ShowAnimationEffect(NSAnimationEffect animationEffect, CGPoint centerLocation, CGSize size, NSAction endedCallback) { NSAsyncActionDispatcher nSAsyncActionDispatcher = new NSAsyncActionDispatcher(endedCallback); ShowAnimationEffect(animationEffect, centerLocation, size, nSAsyncActionDispatcher, NSActionDispatcher.Selector, IntPtr.Zero); GC.KeepAlive(nSAsyncActionDispatcher); } [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawWhiteBezel")] public static extern void DrawWhiteBezel(CGRect aRect, CGRect clipRect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawLightBezel")] public static extern void DrawLightBezel(CGRect aRect, CGRect clipRect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawGrayBezel")] public static extern void DrawGrayBezel(CGRect aRect, CGRect clipRect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawDarkBezel")] public static extern void DrawDarkBezel(CGRect aRect, CGRect clipRect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawGroove")] public static extern void DrawGroove(CGRect aRect, CGRect clipRect); [DllImport("/System/Library/Frameworks/AppKit.framework/AppKit", EntryPoint = "NSDrawTiledRects")] private unsafe static extern CGRect DrawTiledRects(CGRect aRect, CGRect clipRect, NSRectEdge* sides, double* grays, long count); public unsafe static CGRect DrawTiledRects(CGRect aRect, CGRect clipRect, NSRectEdge[] sides, double[] grays) { if (sides == null) { throw new ArgumentNullException("sides"); } if (grays == null) { throw new ArgumentNullException("grays"); } if (sides.Length != grays.Length) { throw new ArgumentOutOfRangeException("grays", "Both array parameters must have the same length"); } fixed (NSRectEdge* sides2 = &sides[0]) { fixed (double* grays2 = &grays[0]) { return DrawTiledRects(aRect, clipRect, sides2, grays2, sides.Length); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSGraphicsContext.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSGraphicsContext", true)] public class NSGraphicsContext : NSObject { private static readonly IntPtr selCurrentContextHandle = Selector.GetHandle("currentContext"); private static readonly IntPtr selSetCurrentContext_Handle = Selector.GetHandle("setCurrentContext:"); private static readonly IntPtr selCurrentContextDrawingToScreenHandle = Selector.GetHandle("currentContextDrawingToScreen"); private static readonly IntPtr selAttributesHandle = Selector.GetHandle("attributes"); private static readonly IntPtr selIsDrawingToScreenHandle = Selector.GetHandle("isDrawingToScreen"); private static readonly IntPtr selGraphicsPortHandle = Selector.GetHandle("graphicsPort"); private static readonly IntPtr selIsFlippedHandle = Selector.GetHandle("isFlipped"); private static readonly IntPtr selShouldAntialiasHandle = Selector.GetHandle("shouldAntialias"); private static readonly IntPtr selSetShouldAntialias_Handle = Selector.GetHandle("setShouldAntialias:"); private static readonly IntPtr selImageInterpolationHandle = Selector.GetHandle("imageInterpolation"); private static readonly IntPtr selSetImageInterpolation_Handle = Selector.GetHandle("setImageInterpolation:"); private static readonly IntPtr selPatternPhaseHandle = Selector.GetHandle("patternPhase"); private static readonly IntPtr selSetPatternPhase_Handle = Selector.GetHandle("setPatternPhase:"); private static readonly IntPtr selCompositingOperationHandle = Selector.GetHandle("compositingOperation"); private static readonly IntPtr selSetCompositingOperation_Handle = Selector.GetHandle("setCompositingOperation:"); private static readonly IntPtr selColorRenderingIntentHandle = Selector.GetHandle("colorRenderingIntent"); private static readonly IntPtr selSetColorRenderingIntent_Handle = Selector.GetHandle("setColorRenderingIntent:"); private static readonly IntPtr selCIContextHandle = Selector.GetHandle("CIContext"); private static readonly IntPtr selGraphicsContextWithAttributes_Handle = Selector.GetHandle("graphicsContextWithAttributes:"); private static readonly IntPtr selGraphicsContextWithWindow_Handle = Selector.GetHandle("graphicsContextWithWindow:"); private static readonly IntPtr selGraphicsContextWithBitmapImageRep_Handle = Selector.GetHandle("graphicsContextWithBitmapImageRep:"); private static readonly IntPtr selGraphicsContextWithGraphicsPortFlipped_Handle = Selector.GetHandle("graphicsContextWithGraphicsPort:flipped:"); private static readonly IntPtr selSaveGraphicsStateHandle = Selector.GetHandle("saveGraphicsState"); private static readonly IntPtr selRestoreGraphicsStateHandle = Selector.GetHandle("restoreGraphicsState"); private static readonly IntPtr selSetGraphicsState_Handle = Selector.GetHandle("setGraphicsState:"); private static readonly IntPtr selFlushGraphicsHandle = Selector.GetHandle("flushGraphics"); private static readonly IntPtr class_ptr = Class.GetHandle("NSGraphicsContext"); private static object __mt_CurrentContext_var_static; private object __mt_Attributes_var; private object __mt_CIContext_var; public virtual CGContext GraphicsPort => new CGContext(GraphicsPortHandle); public override IntPtr ClassHandle => class_ptr; public static NSGraphicsContext CurrentContext { [Export("currentContext")] get { return (NSGraphicsContext)(__mt_CurrentContext_var_static = (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentContextHandle))); } [Export("setCurrentContext:")] set { if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetCurrentContext_Handle, value.Handle); } } public static bool IsCurrentContextDrawingToScreen { [Export("currentContextDrawingToScreen")] get { return Messaging.bool_objc_msgSend(class_ptr, selCurrentContextDrawingToScreenHandle); } } public virtual NSDictionary Attributes { [Export("attributes")] get { return (NSDictionary)(__mt_Attributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesHandle))))); } } public virtual bool IsDrawingToScreen { [Export("isDrawingToScreen")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDrawingToScreenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDrawingToScreenHandle); } } public virtual IntPtr GraphicsPortHandle { [Export("graphicsPort")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selGraphicsPortHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGraphicsPortHandle); } } public virtual bool IsFlipped { [Export("isFlipped")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFlippedHandle); } } public virtual bool ShouldAntialias { [Export("shouldAntialias")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldAntialiasHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldAntialiasHandle); } [Export("setShouldAntialias:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldAntialias_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldAntialias_Handle, value); } } } public virtual NSImageInterpolation ImageInterpolation { [Export("imageInterpolation")] get { if (IsDirectBinding) { return (NSImageInterpolation)Messaging.UInt64_objc_msgSend(base.Handle, selImageInterpolationHandle); } return (NSImageInterpolation)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageInterpolationHandle); } [Export("setImageInterpolation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageInterpolation_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageInterpolation_Handle, (ulong)value); } } } public virtual CGPoint PatternPhase { [Export("patternPhase")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selPatternPhaseHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selPatternPhaseHandle); } [Export("setPatternPhase:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetPatternPhase_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetPatternPhase_Handle, value); } } } public virtual NSComposite CompositingOperation { [Export("compositingOperation")] get { if (IsDirectBinding) { return (NSComposite)Messaging.UInt64_objc_msgSend(base.Handle, selCompositingOperationHandle); } return (NSComposite)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCompositingOperationHandle); } [Export("setCompositingOperation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCompositingOperation_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCompositingOperation_Handle, (ulong)value); } } } public virtual NSColorRenderingIntent ColorRenderingIntent { [Export("colorRenderingIntent")] get { if (IsDirectBinding) { return (NSColorRenderingIntent)Messaging.Int64_objc_msgSend(base.Handle, selColorRenderingIntentHandle); } return (NSColorRenderingIntent)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selColorRenderingIntentHandle); } [Export("setColorRenderingIntent:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetColorRenderingIntent_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetColorRenderingIntent_Handle, (long)value); } } } public virtual CIContext CIContext { [Export("CIContext")] get { return (CIContext)(__mt_CIContext_var = ((!IsDirectBinding) ? ((CIContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCIContextHandle))) : ((CIContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCIContextHandle))))); } } public static NSGraphicsContext FromGraphicsPort(CGContext context, bool initialFlippedState) { if (context == null) { throw new ArgumentNullException("context"); } return FromGraphicsPort(context.Handle, initialFlippedState); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSGraphicsContext() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSGraphicsContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGraphicsContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSGraphicsContext(IntPtr handle) : base(handle) { } [Export("graphicsContextWithAttributes:")] public static NSGraphicsContext FromAttributes(NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selGraphicsContextWithAttributes_Handle, attributes.Handle)); } [Export("graphicsContextWithWindow:")] public static NSGraphicsContext FromWindow(NSWindow window) { if (window == null) { throw new ArgumentNullException("window"); } return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selGraphicsContextWithWindow_Handle, window.Handle)); } [Export("graphicsContextWithBitmapImageRep:")] public static NSGraphicsContext FromBitmap(NSBitmapImageRep bitmapRep) { if (bitmapRep == null) { throw new ArgumentNullException("bitmapRep"); } return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selGraphicsContextWithBitmapImageRep_Handle, bitmapRep.Handle)); } [Export("graphicsContextWithGraphicsPort:flipped:")] public static NSGraphicsContext FromGraphicsPort(IntPtr graphicsPort, bool initialFlippedState) { return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool(class_ptr, selGraphicsContextWithGraphicsPortFlipped_Handle, graphicsPort, initialFlippedState)); } [Export("saveGraphicsState")] public static void GlobalSaveGraphicsState() { Messaging.void_objc_msgSend(class_ptr, selSaveGraphicsStateHandle); } [Export("restoreGraphicsState")] public static void GlobalRestoreGraphicsState() { Messaging.void_objc_msgSend(class_ptr, selRestoreGraphicsStateHandle); } [Export("setGraphicsState:")] public static void SetGraphicsState(long gState) { Messaging.void_objc_msgSend_Int64(class_ptr, selSetGraphicsState_Handle, gState); } [Export("saveGraphicsState")] public virtual void SaveGraphicsState() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSaveGraphicsStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSaveGraphicsStateHandle); } } [Export("restoreGraphicsState")] public virtual void RestoreGraphicsState() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRestoreGraphicsStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRestoreGraphicsStateHandle); } } [Export("flushGraphics")] public virtual void FlushGraphics() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlushGraphicsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlushGraphicsHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Attributes_var = null; __mt_CIContext_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSHelpManager.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSHelpManager", true)] public class NSHelpManager : NSObject { private static readonly IntPtr selIsContextHelpModeActiveHandle = Selector.GetHandle("isContextHelpModeActive"); private static readonly IntPtr selSetContextHelpModeActive_Handle = Selector.GetHandle("setContextHelpModeActive:"); private static readonly IntPtr selSharedHelpManagerHandle = Selector.GetHandle("sharedHelpManager"); private static readonly IntPtr selSetContextHelpForObject_Handle = Selector.GetHandle("setContextHelp:forObject:"); private static readonly IntPtr selRemoveContextHelpForObject_Handle = Selector.GetHandle("removeContextHelpForObject:"); private static readonly IntPtr selContextHelpForObject_Handle = Selector.GetHandle("contextHelpForObject:"); private static readonly IntPtr selShowContextHelpForObjectLocationHint_Handle = Selector.GetHandle("showContextHelpForObject:locationHint:"); private static readonly IntPtr selOpenHelpAnchorInBook_Handle = Selector.GetHandle("openHelpAnchor:inBook:"); private static readonly IntPtr selFindStringInBook_Handle = Selector.GetHandle("findString:inBook:"); private static readonly IntPtr selRegisterBooksInBundle_Handle = Selector.GetHandle("registerBooksInBundle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSHelpManager"); public override IntPtr ClassHandle => class_ptr; public static bool ContextHelpModeActive { [Export("isContextHelpModeActive")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIsContextHelpModeActiveHandle); } [Export("setContextHelpModeActive:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetContextHelpModeActive_Handle, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSHelpManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSHelpManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHelpManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHelpManager(IntPtr handle) : base(handle) { } [Export("sharedHelpManager")] public static NSHelpManager SharedHelpManager() { NSApplication.EnsureUIThread(); return (NSHelpManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedHelpManagerHandle)); } [Export("setContextHelp:forObject:")] public virtual void SetContext(NSAttributedString attrString, NSObject theObject) { NSApplication.EnsureUIThread(); if (attrString == null) { throw new ArgumentNullException("attrString"); } if (theObject == null) { throw new ArgumentNullException("theObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetContextHelpForObject_Handle, attrString.Handle, theObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetContextHelpForObject_Handle, attrString.Handle, theObject.Handle); } } [Export("removeContextHelpForObject:")] public virtual void RemoveContext(NSObject theObject) { NSApplication.EnsureUIThread(); if (theObject == null) { throw new ArgumentNullException("theObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveContextHelpForObject_Handle, theObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveContextHelpForObject_Handle, theObject.Handle); } } [Export("contextHelpForObject:")] public virtual NSAttributedString Context(NSObject theObject) { NSApplication.EnsureUIThread(); if (theObject == null) { throw new ArgumentNullException("theObject"); } if (IsDirectBinding) { return (NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selContextHelpForObject_Handle, theObject.Handle)); } return (NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selContextHelpForObject_Handle, theObject.Handle)); } [Export("showContextHelpForObject:locationHint:")] public virtual bool ShowContext(NSObject theObject, CGPoint pt) { NSApplication.EnsureUIThread(); if (theObject == null) { throw new ArgumentNullException("theObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGPoint(base.Handle, selShowContextHelpForObjectLocationHint_Handle, theObject.Handle, pt); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selShowContextHelpForObjectLocationHint_Handle, theObject.Handle, pt); } [Export("openHelpAnchor:inBook:")] public virtual void OpenHelpAnchor(string anchor, string book) { NSApplication.EnsureUIThread(); if (anchor == null) { throw new ArgumentNullException("anchor"); } if (book == null) { throw new ArgumentNullException("book"); } IntPtr arg = NSString.CreateNative(anchor); IntPtr arg2 = NSString.CreateNative(book); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selOpenHelpAnchorInBook_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selOpenHelpAnchorInBook_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("findString:inBook:")] public virtual void FindString(string query, string book) { NSApplication.EnsureUIThread(); if (query == null) { throw new ArgumentNullException("query"); } if (book == null) { throw new ArgumentNullException("book"); } IntPtr arg = NSString.CreateNative(query); IntPtr arg2 = NSString.CreateNative(book); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selFindStringInBook_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFindStringInBook_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("registerBooksInBundle:")] public virtual bool RegisterBooks(NSBundle bundle) { NSApplication.EnsureUIThread(); if (bundle == null) { throw new ArgumentNullException("bundle"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRegisterBooksInBundle_Handle, bundle.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterBooksInBundle_Handle, bundle.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImage.cs ================================================ using System; using System.ComponentModel; using System.IO; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSImage", true)] public class NSImage : NSObject { [Register] private sealed class _NSImageDelegate : NSImageDelegate { internal NSImageRect imageDidNotDraw; internal EventHandler willLoadRepresentation; internal EventHandler didLoadRepresentationHeader; internal EventHandler didLoadPartOfRepresentation; internal EventHandler didLoadRepresentation; [Preserve(Conditional = true)] public override NSImage ImageDidNotDraw(NSObject sender, CGRect aRect) { return imageDidNotDraw?.Invoke(sender, aRect); } [Preserve(Conditional = true)] public override void WillLoadRepresentation(NSImage image, NSImageRep rep) { EventHandler eventHandler = willLoadRepresentation; if (eventHandler != null) { NSImageLoadEventArgs e = new NSImageLoadEventArgs(rep); eventHandler(image, e); } } [Preserve(Conditional = true)] public override void DidLoadRepresentationHeader(NSImage image, NSImageRep rep) { EventHandler eventHandler = didLoadRepresentationHeader; if (eventHandler != null) { NSImageLoadEventArgs e = new NSImageLoadEventArgs(rep); eventHandler(image, e); } } [Preserve(Conditional = true)] public override void DidLoadPartOfRepresentation(NSImage image, NSImageRep rep, long rows) { EventHandler eventHandler = didLoadPartOfRepresentation; if (eventHandler != null) { NSImagePartialEventArgs e = new NSImagePartialEventArgs(rep, rows); eventHandler(image, e); } } [Preserve(Conditional = true)] public override void DidLoadRepresentation(NSImage image, NSImageRep rep, NSImageLoadStatus status) { EventHandler eventHandler = didLoadRepresentation; if (eventHandler != null) { NSImageLoadRepresentationEventArgs e = new NSImageLoadRepresentationEventArgs(rep, status); eventHandler(image, e); } } } private object __mt_reps_var; private static readonly IntPtr selIsValidHandle = Selector.GetHandle("isValid"); private static readonly IntPtr selImageFileTypesHandle = Selector.GetHandle("imageFileTypes"); private static readonly IntPtr selImagePasteboardTypesHandle = Selector.GetHandle("imagePasteboardTypes"); private static readonly IntPtr selImageTypesHandle = Selector.GetHandle("imageTypes"); private static readonly IntPtr selImageUnfilteredTypesHandle = Selector.GetHandle("imageUnfilteredTypes"); private static readonly IntPtr selAccessibilityDescriptionHandle = Selector.GetHandle("accessibilityDescription"); private static readonly IntPtr selSetAccessibilityDescription_Handle = Selector.GetHandle("setAccessibilityDescription:"); private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selSetSize_Handle = Selector.GetHandle("setSize:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selUsesEPSOnResolutionMismatchHandle = Selector.GetHandle("usesEPSOnResolutionMismatch"); private static readonly IntPtr selSetUsesEPSOnResolutionMismatch_Handle = Selector.GetHandle("setUsesEPSOnResolutionMismatch:"); private static readonly IntPtr selPrefersColorMatchHandle = Selector.GetHandle("prefersColorMatch"); private static readonly IntPtr selSetPrefersColorMatch_Handle = Selector.GetHandle("setPrefersColorMatch:"); private static readonly IntPtr selMatchesOnMultipleResolutionHandle = Selector.GetHandle("matchesOnMultipleResolution"); private static readonly IntPtr selSetMatchesOnMultipleResolution_Handle = Selector.GetHandle("setMatchesOnMultipleResolution:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCacheModeHandle = Selector.GetHandle("cacheMode"); private static readonly IntPtr selSetCacheMode_Handle = Selector.GetHandle("setCacheMode:"); private static readonly IntPtr selAlignmentRectHandle = Selector.GetHandle("alignmentRect"); private static readonly IntPtr selSetAlignmentRect_Handle = Selector.GetHandle("setAlignmentRect:"); private static readonly IntPtr selIsTemplateHandle = Selector.GetHandle("isTemplate"); private static readonly IntPtr selSetTemplate_Handle = Selector.GetHandle("setTemplate:"); private static readonly IntPtr selIsFlippedHandle = Selector.GetHandle("isFlipped"); private static readonly IntPtr selSetFlipped_Handle = Selector.GetHandle("setFlipped:"); private static readonly IntPtr selImageNamed_Handle = Selector.GetHandle("imageNamed:"); private static readonly IntPtr selInitWithSize_Handle = Selector.GetHandle("initWithSize:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selInitWithContentsOfFile_Handle = Selector.GetHandle("initWithContentsOfFile:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selInitWithPasteboard_Handle = Selector.GetHandle("initWithPasteboard:"); private static readonly IntPtr selDrawAtPointFromRectOperationFraction_Handle = Selector.GetHandle("drawAtPoint:fromRect:operation:fraction:"); private static readonly IntPtr selDrawInRectFromRectOperationFraction_Handle = Selector.GetHandle("drawInRect:fromRect:operation:fraction:"); private static readonly IntPtr selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle = Selector.GetHandle("drawInRect:fromRect:operation:fraction:respectFlipped:hints:"); private static readonly IntPtr selDrawRepresentationInRect_Handle = Selector.GetHandle("drawRepresentation:inRect:"); private static readonly IntPtr selRecacheHandle = Selector.GetHandle("recache"); private static readonly IntPtr selTIFFRepresentationHandle = Selector.GetHandle("TIFFRepresentation"); private static readonly IntPtr selTIFFRepresentationUsingCompressionFactor_Handle = Selector.GetHandle("TIFFRepresentationUsingCompression:factor:"); private static readonly IntPtr selRepresentationsHandle = Selector.GetHandle("representations"); private static readonly IntPtr selAddRepresentations_Handle = Selector.GetHandle("addRepresentations:"); private static readonly IntPtr selAddRepresentation_Handle = Selector.GetHandle("addRepresentation:"); private static readonly IntPtr selRemoveRepresentation_Handle = Selector.GetHandle("removeRepresentation:"); private static readonly IntPtr selLockFocusHandle = Selector.GetHandle("lockFocus"); private static readonly IntPtr selLockFocusFlipped_Handle = Selector.GetHandle("lockFocusFlipped:"); private static readonly IntPtr selUnlockFocusHandle = Selector.GetHandle("unlockFocus"); private static readonly IntPtr selBestRepresentationForDevice_Handle = Selector.GetHandle("bestRepresentationForDevice:"); private static readonly IntPtr selImageUnfilteredFileTypesHandle = Selector.GetHandle("imageUnfilteredFileTypes"); private static readonly IntPtr selImageUnfilteredPasteboardTypesHandle = Selector.GetHandle("imageUnfilteredPasteboardTypes"); private static readonly IntPtr selCanInitWithPasteboard_Handle = Selector.GetHandle("canInitWithPasteboard:"); private static readonly IntPtr selCancelIncrementalLoadHandle = Selector.GetHandle("cancelIncrementalLoad"); private static readonly IntPtr selInitWithCGImageSize_Handle = Selector.GetHandle("initWithCGImage:size:"); private static readonly IntPtr selCGImageForProposedRectContextHints_Handle = Selector.GetHandle("CGImageForProposedRect:context:hints:"); private static readonly IntPtr selBestRepresentationForRectContextHints_Handle = Selector.GetHandle("bestRepresentationForRect:context:hints:"); private static readonly IntPtr selHitTestRectWithImageDestinationRectContextHintsFlipped_Handle = Selector.GetHandle("hitTestRect:withImageDestinationRect:context:hints:flipped:"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selSizeWithAttributes_Handle = Selector.GetHandle("sizeWithAttributes:"); private static readonly IntPtr selDrawInRectWithAttributes_Handle = Selector.GetHandle("drawInRect:withAttributes:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSImage"); private object __mt_BackgroundColor_var; private object __mt_WeakDelegate_var; private static NSString _NSImageNameQuickLookTemplate; private static NSString _NSImageNameBluetoothTemplate; private static NSString _NSImageNameIChatTheaterTemplate; private static NSString _NSImageNameSlideshowTemplate; private static NSString _NSImageNameActionTemplate; private static NSString _NSImageNameSmartBadgeTemplate; private static NSString _NSImageNamePathTemplate; private static NSString _NSImageNameInvalidDataFreestandingTemplate; private static NSString _NSImageNameLockLockedTemplate; private static NSString _NSImageNameLockUnlockedTemplate; private static NSString _NSImageNameGoRightTemplate; private static NSString _NSImageNameGoLeftTemplate; private static NSString _NSImageNameRightFacingTriangleTemplate; private static NSString _NSImageNameLeftFacingTriangleTemplate; private static NSString _NSImageNameAddTemplate; private static NSString _NSImageNameRemoveTemplate; private static NSString _NSImageNameRevealFreestandingTemplate; private static NSString _NSImageNameFollowLinkFreestandingTemplate; private static NSString _NSImageNameEnterFullScreenTemplate; private static NSString _NSImageNameExitFullScreenTemplate; private static NSString _NSImageNameStopProgressTemplate; private static NSString _NSImageNameStopProgressFreestandingTemplate; private static NSString _NSImageNameRefreshTemplate; private static NSString _NSImageNameRefreshFreestandingTemplate; private static NSString _NSImageNameFolder; private static NSString _NSImageNameTrashEmpty; private static NSString _NSImageNameTrashFull; private static NSString _NSImageNameHomeTemplate; private static NSString _NSImageNameBookmarksTemplate; private static NSString _NSImageNameCaution; private static NSString _NSImageNameStatusAvailable; private static NSString _NSImageNameStatusPartiallyAvailable; private static NSString _NSImageNameStatusUnavailable; private static NSString _NSImageNameStatusNone; private static NSString _NSImageNameApplicationIcon; private static NSString _NSImageNameMenuOnStateTemplate; private static NSString _NSImageNameMenuMixedStateTemplate; private static NSString _NSImageNameUserGuest; private static NSString _NSImageNameMobileMe; public CGImage CGImage { get { CGRect proposedDestRect = CGRect.Empty; return AsCGImage(ref proposedDestRect, null, null); } } public string Name { get { return GetName(); } set { SetName(value); } } public override IntPtr ClassHandle => class_ptr; public virtual bool IsValid { [Export("isValid")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsValidHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsValidHandle); } } public static string[] ImageFileTypes { [Export("imageFileTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageFileTypesHandle)); } } public static string[] ImagePasteboardTypes { [Export("imagePasteboardTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImagePasteboardTypesHandle)); } } public static string[] ImageTypes { [Export("imageTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageTypesHandle)); } } public static string[] ImageUnfilteredTypes { [Export("imageUnfilteredTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredTypesHandle)); } } public virtual string AccessibilityDescription { [Export("accessibilityDescription")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessibilityDescriptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessibilityDescriptionHandle)); } [Export("setAccessibilityDescription:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessibilityDescription_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessibilityDescription_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual CGSize Size { [Export("size")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeHandle); } [Export("setSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetSize_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool UsesEpsOnResolutionMismatch { [Export("usesEPSOnResolutionMismatch")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesEPSOnResolutionMismatchHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesEPSOnResolutionMismatchHandle); } [Export("setUsesEPSOnResolutionMismatch:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesEPSOnResolutionMismatch_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesEPSOnResolutionMismatch_Handle, value); } } } public virtual bool PrefersColorMatch { [Export("prefersColorMatch")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPrefersColorMatchHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPrefersColorMatchHandle); } [Export("setPrefersColorMatch:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPrefersColorMatch_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPrefersColorMatch_Handle, value); } } } public virtual bool MatchesOnMultipleResolution { [Export("matchesOnMultipleResolution")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMatchesOnMultipleResolutionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMatchesOnMultipleResolutionHandle); } [Export("setMatchesOnMultipleResolution:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMatchesOnMultipleResolution_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMatchesOnMultipleResolution_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSImageDelegate Delegate { get { return WeakDelegate as NSImageDelegate; } set { WeakDelegate = value; } } public virtual NSImageCacheMode CacheMode { [Export("cacheMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageCacheMode)Messaging.UInt64_objc_msgSend(base.Handle, selCacheModeHandle); } return (NSImageCacheMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCacheModeHandle); } [Export("setCacheMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCacheMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCacheMode_Handle, (ulong)value); } } } public virtual CGRect AlignmentRect { [Export("alignmentRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selAlignmentRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selAlignmentRectHandle); } return retval; } [Export("setAlignmentRect:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetAlignmentRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetAlignmentRect_Handle, value); } } } public virtual bool Template { [Export("isTemplate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTemplateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTemplateHandle); } [Export("setTemplate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTemplate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTemplate_Handle, value); } } } [Obsolete("On 10.6 and newer use DrawInRect with respectContextIsFlipped instead", false)] public virtual bool Flipped { [Export("isFlipped")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFlippedHandle); } [Export("setFlipped:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFlipped_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFlipped_Handle, value); } } } [Field("NSImageNameQuickLookTemplate", "AppKit")] internal static NSString NSImageNameQuickLookTemplate { get { if (_NSImageNameQuickLookTemplate == null) { _NSImageNameQuickLookTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameQuickLookTemplate"); } return _NSImageNameQuickLookTemplate; } } [Field("NSImageNameBluetoothTemplate", "AppKit")] internal static NSString NSImageNameBluetoothTemplate { get { if (_NSImageNameBluetoothTemplate == null) { _NSImageNameBluetoothTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameBluetoothTemplate"); } return _NSImageNameBluetoothTemplate; } } [Field("NSImageNameIChatTheaterTemplate", "AppKit")] internal static NSString NSImageNameIChatTheaterTemplate { get { if (_NSImageNameIChatTheaterTemplate == null) { _NSImageNameIChatTheaterTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameIChatTheaterTemplate"); } return _NSImageNameIChatTheaterTemplate; } } [Field("NSImageNameSlideshowTemplate", "AppKit")] internal static NSString NSImageNameSlideshowTemplate { get { if (_NSImageNameSlideshowTemplate == null) { _NSImageNameSlideshowTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameSlideshowTemplate"); } return _NSImageNameSlideshowTemplate; } } [Field("NSImageNameActionTemplate", "AppKit")] internal static NSString NSImageNameActionTemplate { get { if (_NSImageNameActionTemplate == null) { _NSImageNameActionTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameActionTemplate"); } return _NSImageNameActionTemplate; } } [Field("NSImageNameSmartBadgeTemplate", "AppKit")] internal static NSString NSImageNameSmartBadgeTemplate { get { if (_NSImageNameSmartBadgeTemplate == null) { _NSImageNameSmartBadgeTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameSmartBadgeTemplate"); } return _NSImageNameSmartBadgeTemplate; } } [Field("NSImageNamePathTemplate", "AppKit")] internal static NSString NSImageNamePathTemplate { get { if (_NSImageNamePathTemplate == null) { _NSImageNamePathTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNamePathTemplate"); } return _NSImageNamePathTemplate; } } [Field("NSImageNameInvalidDataFreestandingTemplate", "AppKit")] internal static NSString NSImageNameInvalidDataFreestandingTemplate { get { if (_NSImageNameInvalidDataFreestandingTemplate == null) { _NSImageNameInvalidDataFreestandingTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameInvalidDataFreestandingTemplate"); } return _NSImageNameInvalidDataFreestandingTemplate; } } [Field("NSImageNameLockLockedTemplate", "AppKit")] internal static NSString NSImageNameLockLockedTemplate { get { if (_NSImageNameLockLockedTemplate == null) { _NSImageNameLockLockedTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameLockLockedTemplate"); } return _NSImageNameLockLockedTemplate; } } [Field("NSImageNameLockUnlockedTemplate", "AppKit")] internal static NSString NSImageNameLockUnlockedTemplate { get { if (_NSImageNameLockUnlockedTemplate == null) { _NSImageNameLockUnlockedTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameLockUnlockedTemplate"); } return _NSImageNameLockUnlockedTemplate; } } [Field("NSImageNameGoRightTemplate", "AppKit")] internal static NSString NSImageNameGoRightTemplate { get { if (_NSImageNameGoRightTemplate == null) { _NSImageNameGoRightTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameGoRightTemplate"); } return _NSImageNameGoRightTemplate; } } [Field("NSImageNameGoLeftTemplate", "AppKit")] internal static NSString NSImageNameGoLeftTemplate { get { if (_NSImageNameGoLeftTemplate == null) { _NSImageNameGoLeftTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameGoLeftTemplate"); } return _NSImageNameGoLeftTemplate; } } [Field("NSImageNameRightFacingTriangleTemplate", "AppKit")] internal static NSString NSImageNameRightFacingTriangleTemplate { get { if (_NSImageNameRightFacingTriangleTemplate == null) { _NSImageNameRightFacingTriangleTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameRightFacingTriangleTemplate"); } return _NSImageNameRightFacingTriangleTemplate; } } [Field("NSImageNameLeftFacingTriangleTemplate", "AppKit")] internal static NSString NSImageNameLeftFacingTriangleTemplate { get { if (_NSImageNameLeftFacingTriangleTemplate == null) { _NSImageNameLeftFacingTriangleTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameLeftFacingTriangleTemplate"); } return _NSImageNameLeftFacingTriangleTemplate; } } [Field("NSImageNameAddTemplate", "AppKit")] internal static NSString NSImageNameAddTemplate { get { if (_NSImageNameAddTemplate == null) { _NSImageNameAddTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameAddTemplate"); } return _NSImageNameAddTemplate; } } [Field("NSImageNameRemoveTemplate", "AppKit")] internal static NSString NSImageNameRemoveTemplate { get { if (_NSImageNameRemoveTemplate == null) { _NSImageNameRemoveTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameRemoveTemplate"); } return _NSImageNameRemoveTemplate; } } [Field("NSImageNameRevealFreestandingTemplate", "AppKit")] internal static NSString NSImageNameRevealFreestandingTemplate { get { if (_NSImageNameRevealFreestandingTemplate == null) { _NSImageNameRevealFreestandingTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameRevealFreestandingTemplate"); } return _NSImageNameRevealFreestandingTemplate; } } [Field("NSImageNameFollowLinkFreestandingTemplate", "AppKit")] internal static NSString NSImageNameFollowLinkFreestandingTemplate { get { if (_NSImageNameFollowLinkFreestandingTemplate == null) { _NSImageNameFollowLinkFreestandingTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameFollowLinkFreestandingTemplate"); } return _NSImageNameFollowLinkFreestandingTemplate; } } [Field("NSImageNameEnterFullScreenTemplate", "AppKit")] internal static NSString NSImageNameEnterFullScreenTemplate { get { if (_NSImageNameEnterFullScreenTemplate == null) { _NSImageNameEnterFullScreenTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameEnterFullScreenTemplate"); } return _NSImageNameEnterFullScreenTemplate; } } [Field("NSImageNameExitFullScreenTemplate", "AppKit")] internal static NSString NSImageNameExitFullScreenTemplate { get { if (_NSImageNameExitFullScreenTemplate == null) { _NSImageNameExitFullScreenTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameExitFullScreenTemplate"); } return _NSImageNameExitFullScreenTemplate; } } [Field("NSImageNameStopProgressTemplate", "AppKit")] internal static NSString NSImageNameStopProgressTemplate { get { if (_NSImageNameStopProgressTemplate == null) { _NSImageNameStopProgressTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStopProgressTemplate"); } return _NSImageNameStopProgressTemplate; } } [Field("NSImageNameStopProgressFreestandingTemplate", "AppKit")] internal static NSString NSImageNameStopProgressFreestandingTemplate { get { if (_NSImageNameStopProgressFreestandingTemplate == null) { _NSImageNameStopProgressFreestandingTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStopProgressFreestandingTemplate"); } return _NSImageNameStopProgressFreestandingTemplate; } } [Field("NSImageNameRefreshTemplate", "AppKit")] internal static NSString NSImageNameRefreshTemplate { get { if (_NSImageNameRefreshTemplate == null) { _NSImageNameRefreshTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameRefreshTemplate"); } return _NSImageNameRefreshTemplate; } } [Field("NSImageNameRefreshFreestandingTemplate", "AppKit")] internal static NSString NSImageNameRefreshFreestandingTemplate { get { if (_NSImageNameRefreshFreestandingTemplate == null) { _NSImageNameRefreshFreestandingTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameRefreshFreestandingTemplate"); } return _NSImageNameRefreshFreestandingTemplate; } } [Field("NSImageNameFolder", "AppKit")] internal static NSString NSImageNameFolder { get { if (_NSImageNameFolder == null) { _NSImageNameFolder = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameFolder"); } return _NSImageNameFolder; } } [Field("NSImageNameTrashEmpty", "AppKit")] internal static NSString NSImageNameTrashEmpty { get { if (_NSImageNameTrashEmpty == null) { _NSImageNameTrashEmpty = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameTrashEmpty"); } return _NSImageNameTrashEmpty; } } [Field("NSImageNameTrashFull", "AppKit")] internal static NSString NSImageNameTrashFull { get { if (_NSImageNameTrashFull == null) { _NSImageNameTrashFull = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameTrashFull"); } return _NSImageNameTrashFull; } } [Field("NSImageNameHomeTemplate", "AppKit")] internal static NSString NSImageNameHomeTemplate { get { if (_NSImageNameHomeTemplate == null) { _NSImageNameHomeTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameHomeTemplate"); } return _NSImageNameHomeTemplate; } } [Field("NSImageNameBookmarksTemplate", "AppKit")] internal static NSString NSImageNameBookmarksTemplate { get { if (_NSImageNameBookmarksTemplate == null) { _NSImageNameBookmarksTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameBookmarksTemplate"); } return _NSImageNameBookmarksTemplate; } } [Field("NSImageNameCaution", "AppKit")] internal static NSString NSImageNameCaution { get { if (_NSImageNameCaution == null) { _NSImageNameCaution = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameCaution"); } return _NSImageNameCaution; } } [Field("NSImageNameStatusAvailable", "AppKit")] internal static NSString NSImageNameStatusAvailable { get { if (_NSImageNameStatusAvailable == null) { _NSImageNameStatusAvailable = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStatusAvailable"); } return _NSImageNameStatusAvailable; } } [Field("NSImageNameStatusPartiallyAvailable", "AppKit")] internal static NSString NSImageNameStatusPartiallyAvailable { get { if (_NSImageNameStatusPartiallyAvailable == null) { _NSImageNameStatusPartiallyAvailable = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStatusPartiallyAvailable"); } return _NSImageNameStatusPartiallyAvailable; } } [Field("NSImageNameStatusUnavailable", "AppKit")] internal static NSString NSImageNameStatusUnavailable { get { if (_NSImageNameStatusUnavailable == null) { _NSImageNameStatusUnavailable = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStatusUnavailable"); } return _NSImageNameStatusUnavailable; } } [Field("NSImageNameStatusNone", "AppKit")] internal static NSString NSImageNameStatusNone { get { if (_NSImageNameStatusNone == null) { _NSImageNameStatusNone = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameStatusNone"); } return _NSImageNameStatusNone; } } [Field("NSImageNameApplicationIcon", "AppKit")] internal static NSString NSImageNameApplicationIcon { get { if (_NSImageNameApplicationIcon == null) { _NSImageNameApplicationIcon = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameApplicationIcon"); } return _NSImageNameApplicationIcon; } } [Field("NSImageNameMenuOnStateTemplate", "AppKit")] internal static NSString NSImageNameMenuOnStateTemplate { get { if (_NSImageNameMenuOnStateTemplate == null) { _NSImageNameMenuOnStateTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameMenuOnStateTemplate"); } return _NSImageNameMenuOnStateTemplate; } } [Field("NSImageNameMenuMixedStateTemplate", "AppKit")] internal static NSString NSImageNameMenuMixedStateTemplate { get { if (_NSImageNameMenuMixedStateTemplate == null) { _NSImageNameMenuMixedStateTemplate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameMenuMixedStateTemplate"); } return _NSImageNameMenuMixedStateTemplate; } } [Field("NSImageNameUserGuest", "AppKit")] internal static NSString NSImageNameUserGuest { get { if (_NSImageNameUserGuest == null) { _NSImageNameUserGuest = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameUserGuest"); } return _NSImageNameUserGuest; } } [Field("NSImageNameMobileMe", "AppKit")] internal static NSString NSImageNameMobileMe { get { if (_NSImageNameMobileMe == null) { _NSImageNameMobileMe = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSImageNameMobileMe"); } return _NSImageNameMobileMe; } } public NSImageRect ImageDidNotDraw { get { return EnsureNSImageDelegate().imageDidNotDraw; } set { EnsureNSImageDelegate().imageDidNotDraw = value; } } public event EventHandler WillLoadRepresentation { add { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.willLoadRepresentation = (EventHandler)System.Delegate.Combine(nSImageDelegate.willLoadRepresentation, value); } remove { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.willLoadRepresentation = (EventHandler)System.Delegate.Remove(nSImageDelegate.willLoadRepresentation, value); } } public event EventHandler DidLoadRepresentationHeader { add { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadRepresentationHeader = (EventHandler)System.Delegate.Combine(nSImageDelegate.didLoadRepresentationHeader, value); } remove { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadRepresentationHeader = (EventHandler)System.Delegate.Remove(nSImageDelegate.didLoadRepresentationHeader, value); } } public event EventHandler DidLoadPartOfRepresentation { add { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadPartOfRepresentation = (EventHandler)System.Delegate.Combine(nSImageDelegate.didLoadPartOfRepresentation, value); } remove { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadPartOfRepresentation = (EventHandler)System.Delegate.Remove(nSImageDelegate.didLoadPartOfRepresentation, value); } } public event EventHandler DidLoadRepresentation { add { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadRepresentation = (EventHandler)System.Delegate.Combine(nSImageDelegate.didLoadRepresentation, value); } remove { _NSImageDelegate nSImageDelegate = EnsureNSImageDelegate(); nSImageDelegate.didLoadRepresentation = (EventHandler)System.Delegate.Remove(nSImageDelegate.didLoadRepresentation, value); } } public static NSImage FromStream(Stream stream) { using NSData data = NSData.FromStream(stream); return new NSImage(data); } public static NSImage ImageNamed(NSImageName name) { return name switch { NSImageName.QuickLookTemplate => ImageNamed(NSImageNameQuickLookTemplate), NSImageName.BluetoothTemplate => ImageNamed(NSImageNameBluetoothTemplate), NSImageName.IChatTheaterTemplate => ImageNamed(NSImageNameIChatTheaterTemplate), NSImageName.SlideshowTemplate => ImageNamed(NSImageNameSlideshowTemplate), NSImageName.ActionTemplate => ImageNamed(NSImageNameActionTemplate), NSImageName.SmartBadgeTemplate => ImageNamed(NSImageNameSmartBadgeTemplate), NSImageName.PathTemplate => ImageNamed(NSImageNamePathTemplate), NSImageName.InvalidDataFreestandingTemplate => ImageNamed(NSImageNameInvalidDataFreestandingTemplate), NSImageName.LockLockedTemplate => ImageNamed(NSImageNameLockLockedTemplate), NSImageName.LockUnlockedTemplate => ImageNamed(NSImageNameLockUnlockedTemplate), NSImageName.GoRightTemplate => ImageNamed(NSImageNameGoRightTemplate), NSImageName.GoLeftTemplate => ImageNamed(NSImageNameGoLeftTemplate), NSImageName.RightFacingTriangleTemplate => ImageNamed(NSImageNameRightFacingTriangleTemplate), NSImageName.LeftFacingTriangleTemplate => ImageNamed(NSImageNameLeftFacingTriangleTemplate), NSImageName.AddTemplate => ImageNamed(NSImageNameAddTemplate), NSImageName.RemoveTemplate => ImageNamed(NSImageNameRemoveTemplate), NSImageName.RevealFreestandingTemplate => ImageNamed(NSImageNameRevealFreestandingTemplate), NSImageName.FollowLinkFreestandingTemplate => ImageNamed(NSImageNameFollowLinkFreestandingTemplate), NSImageName.EnterFullScreenTemplate => ImageNamed(NSImageNameEnterFullScreenTemplate), NSImageName.ExitFullScreenTemplate => ImageNamed(NSImageNameExitFullScreenTemplate), NSImageName.StopProgressTemplate => ImageNamed(NSImageNameStopProgressTemplate), NSImageName.StopProgressFreestandingTemplate => ImageNamed(NSImageNameStopProgressFreestandingTemplate), NSImageName.RefreshTemplate => ImageNamed(NSImageNameRefreshTemplate), NSImageName.RefreshFreestandingTemplate => ImageNamed(NSImageNameRefreshFreestandingTemplate), NSImageName.Folder => ImageNamed(NSImageNameFolder), NSImageName.TrashEmpty => ImageNamed(NSImageNameTrashEmpty), NSImageName.TrashFull => ImageNamed(NSImageNameTrashFull), NSImageName.HomeTemplate => ImageNamed(NSImageNameHomeTemplate), NSImageName.BookmarksTemplate => ImageNamed(NSImageNameBookmarksTemplate), NSImageName.Caution => ImageNamed(NSImageNameCaution), NSImageName.StatusAvailable => ImageNamed(NSImageNameStatusAvailable), NSImageName.StatusPartiallyAvailable => ImageNamed(NSImageNameStatusPartiallyAvailable), NSImageName.StatusUnavailable => ImageNamed(NSImageNameStatusUnavailable), NSImageName.StatusNone => ImageNamed(NSImageNameStatusNone), NSImageName.ApplicationIcon => ImageNamed(NSImageNameApplicationIcon), NSImageName.MenuOnStateTemplate => ImageNamed(NSImageNameMenuOnStateTemplate), NSImageName.MenuMixedStateTemplate => ImageNamed(NSImageNameMenuMixedStateTemplate), NSImageName.UserGuest => ImageNamed(NSImageNameUserGuest), NSImageName.MobileMe => ImageNamed(NSImageNameMobileMe), _ => throw new ArgumentException("Invalid enum value", "name"), }; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSImage() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSImage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImage(IntPtr handle) : base(handle) { } [Export("imageNamed:")] public static NSImage ImageNamed(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSImage result = (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageNamed_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithSize:")] public NSImage(CGSize aSize) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGSize(base.Handle, selInitWithSize_Handle, aSize); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGSize(base.SuperHandle, selInitWithSize_Handle, aSize); } } [Export("initWithData:")] public NSImage(NSData data) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("initWithContentsOfFile:")] public NSImage(string fileName) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr arg = NSString.CreateNative(fileName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfFile_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfFile_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithContentsOfURL:")] public NSImage(NSUrl url) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } [Export("initWithPasteboard:")] public NSImage(NSPasteboard pasteboard) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPasteboard_Handle, pasteboard.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPasteboard_Handle, pasteboard.Handle); } } [Export("drawAtPoint:fromRect:operation:fraction:")] public virtual void Draw(CGPoint point, CGRect fromRect, NSCompositingOperation op, double delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGRect_UInt64_Double(base.Handle, selDrawAtPointFromRectOperationFraction_Handle, point, fromRect, (ulong)op, delta); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGRect_UInt64_Double(base.SuperHandle, selDrawAtPointFromRectOperationFraction_Handle, point, fromRect, (ulong)op, delta); } } [Export("drawInRect:fromRect:operation:fraction:")] public virtual void Draw(CGRect rect, CGRect fromRect, NSCompositingOperation op, double delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGRect_UInt64_Double(base.Handle, selDrawInRectFromRectOperationFraction_Handle, rect, fromRect, (ulong)op, delta); } else { Messaging.void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double(base.SuperHandle, selDrawInRectFromRectOperationFraction_Handle, rect, fromRect, (ulong)op, delta); } } [Export("drawInRect:fromRect:operation:fraction:respectFlipped:hints:")] public virtual void Draw(CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, double requestedAlpha, bool respectContextIsFlipped, NSDictionary hints) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGRect_UInt64_Double_bool_IntPtr(base.Handle, selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle, dstSpacePortionRect, srcSpacePortionRect, (ulong)op, requestedAlpha, respectContextIsFlipped, hints?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double_bool_IntPtr(base.SuperHandle, selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle, dstSpacePortionRect, srcSpacePortionRect, (ulong)op, requestedAlpha, respectContextIsFlipped, hints?.Handle ?? IntPtr.Zero); } } [Export("drawRepresentation:inRect:")] public virtual bool Draw(NSImageRep imageRep, CGRect rect) { NSApplication.EnsureUIThread(); if (imageRep == null) { throw new ArgumentNullException("imageRep"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGRect(base.Handle, selDrawRepresentationInRect_Handle, imageRep.Handle, rect); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGRect(base.SuperHandle, selDrawRepresentationInRect_Handle, imageRep.Handle, rect); } [Export("recache")] public virtual void Recache() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRecacheHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRecacheHandle); } } [Export("TIFFRepresentation")] public virtual NSData AsTiff() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTIFFRepresentationHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTIFFRepresentationHandle)); } [Export("TIFFRepresentationUsingCompression:factor:")] public virtual NSData AsTiff(NSTiffCompression comp, double aFloat) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_Double(base.Handle, selTIFFRepresentationUsingCompressionFactor_Handle, (ulong)comp, aFloat)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_Double(base.SuperHandle, selTIFFRepresentationUsingCompressionFactor_Handle, (ulong)comp, aFloat)); } [Export("representations")] public virtual NSImageRep[] Representations() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentationsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentationsHandle)); } [Export("addRepresentations:")] public virtual void AddRepresentations(NSImageRep[] imageReps) { NSApplication.EnsureUIThread(); if (imageReps == null) { throw new ArgumentNullException("imageReps"); } NSArray nSArray = NSArray.FromNSObjects(imageReps); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRepresentations_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRepresentations_Handle, nSArray.Handle); } __mt_reps_var = Representations(); nSArray.Dispose(); } [Export("addRepresentation:")] public virtual void AddRepresentation(NSImageRep imageRep) { NSApplication.EnsureUIThread(); if (imageRep == null) { throw new ArgumentNullException("imageRep"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRepresentation_Handle, imageRep.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRepresentation_Handle, imageRep.Handle); } __mt_reps_var = Representations(); } [Export("removeRepresentation:")] public virtual void RemoveRepresentation(NSImageRep imageRep) { NSApplication.EnsureUIThread(); if (imageRep == null) { throw new ArgumentNullException("imageRep"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveRepresentation_Handle, imageRep.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveRepresentation_Handle, imageRep.Handle); } __mt_reps_var = Representations(); } [Export("lockFocus")] public virtual void LockFocus() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLockFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLockFocusHandle); } } [Export("lockFocusFlipped:")] public virtual void LockFocusFlipped(bool flipped) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selLockFocusFlipped_Handle, flipped); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selLockFocusFlipped_Handle, flipped); } } [Export("unlockFocus")] public virtual void UnlockFocus() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnlockFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnlockFocusHandle); } } [Export("bestRepresentationForDevice:")] public virtual NSImageRep BestRepresentationForDevice(NSDictionary deviceDescription) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selBestRepresentationForDevice_Handle, deviceDescription?.Handle ?? IntPtr.Zero)); } return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selBestRepresentationForDevice_Handle, deviceDescription?.Handle ?? IntPtr.Zero)); } [Export("imageUnfilteredFileTypes")] public static NSObject[] ImageUnfilteredFileTypes() { NSApplication.EnsureUIThread(); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredFileTypesHandle)); } [Export("imageUnfilteredPasteboardTypes")] public static string[] ImageUnfilteredPasteboardTypes() { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredPasteboardTypesHandle)); } [Export("canInitWithPasteboard:")] public static bool CanInitWithPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithPasteboard_Handle, pasteboard.Handle); } [Export("cancelIncrementalLoad")] public virtual void CancelIncrementalLoad() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelIncrementalLoadHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelIncrementalLoadHandle); } } [Export("initWithCGImage:size:")] public NSImage(CGImage cgImage, CGSize size) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_CGSize(base.Handle, selInitWithCGImageSize_Handle, cgImage.Handle, size); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGSize(base.SuperHandle, selInitWithCGImageSize_Handle, cgImage.Handle, size); } } [Export("CGImageForProposedRect:context:hints:")] public virtual CGImage AsCGImage(ref CGRect proposedDestRect, NSGraphicsContext referenceContext, NSDictionary hints) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGImage(Messaging.IntPtr_objc_msgSend_out_CGRect_IntPtr_IntPtr(base.Handle, selCGImageForProposedRectContextHints_Handle, out proposedDestRect, referenceContext?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } return new CGImage(Messaging.IntPtr_objc_msgSendSuper_out_CGRect_IntPtr_IntPtr(base.SuperHandle, selCGImageForProposedRectContextHints_Handle, out proposedDestRect, referenceContext?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } [Export("bestRepresentationForRect:context:hints:")] public virtual NSImageRep BestRepresentation(CGRect rect, NSGraphicsContext referenceContext, NSDictionary hints) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect_IntPtr_IntPtr(base.Handle, selBestRepresentationForRectContextHints_Handle, rect, referenceContext?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr_IntPtr(base.SuperHandle, selBestRepresentationForRectContextHints_Handle, rect, referenceContext?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } [Export("hitTestRect:withImageDestinationRect:context:hints:flipped:")] public virtual bool HitTestRect(CGRect testRectDestSpace, CGRect imageRectDestSpace, NSGraphicsContext context, NSDictionary hints, bool flipped) { NSApplication.EnsureUIThread(); if (context == null) { throw new ArgumentNullException("context"); } if (hints == null) { throw new ArgumentNullException("hints"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGRect_CGRect_IntPtr_IntPtr_bool(base.Handle, selHitTestRectWithImageDestinationRectContextHintsFlipped_Handle, testRectDestSpace, imageRectDestSpace, context.Handle, hints.Handle, flipped); } return Messaging.bool_objc_msgSendSuper_CGRect_CGRect_IntPtr_IntPtr_bool(base.SuperHandle, selHitTestRectWithImageDestinationRectContextHintsFlipped_Handle, testRectDestSpace, imageRectDestSpace, context.Handle, hints.Handle, flipped); } [Export("name")] internal virtual string GetName() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] internal virtual bool SetName(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg)); NSString.ReleaseNative(arg); return result; } public CGSize StringSize(string str, NSDictionary attributes) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr receiver = NSString.CreateNative(str); CGSize result = Messaging.CGSize_objc_msgSend_IntPtr(receiver, selSizeWithAttributes_Handle, attributes.Handle); NSString.ReleaseNative(receiver); return result; } public void DrawInRect(string str, CGRect rect, NSDictionary attributes) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr receiver = NSString.CreateNative(str); Messaging.void_objc_msgSend_CGRect_IntPtr(receiver, selDrawInRectWithAttributes_Handle, rect, attributes.Handle); NSString.ReleaseNative(receiver); } [Export("drawInRect:fromRect:operation:fraction:")] public virtual void DrawInRect(CGRect dstRect, CGRect srcRect, NSCompositingOperation operation, double delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGRect_UInt64_Double(base.Handle, selDrawInRectFromRectOperationFraction_Handle, dstRect, srcRect, (ulong)operation, delta); } else { Messaging.void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double(base.SuperHandle, selDrawInRectFromRectOperationFraction_Handle, dstRect, srcRect, (ulong)operation, delta); } } private _NSImageDelegate EnsureNSImageDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSImageDelegate)) { nSObject = (WeakDelegate = new _NSImageDelegate()); } return (_NSImageDelegate)nSObject; } protected override void Dispose(bool disposing) { __mt_reps_var = null; base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageAlignment.cs ================================================ namespace AppKit; public enum NSImageAlignment : ulong { Center, Top, TopLeft, TopRight, Left, Bottom, BottomLeft, BottomRight, Right } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageCacheMode.cs ================================================ namespace AppKit; public enum NSImageCacheMode : ulong { Default, Always, BySize, Never } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSImageCell", true)] public class NSImageCell : NSCell { private static readonly IntPtr selImageAlignmentHandle = Selector.GetHandle("imageAlignment"); private static readonly IntPtr selSetImageAlignment_Handle = Selector.GetHandle("setImageAlignment:"); private static readonly IntPtr selImageScalingHandle = Selector.GetHandle("imageScaling"); private static readonly IntPtr selSetImageScaling_Handle = Selector.GetHandle("setImageScaling:"); private static readonly IntPtr selImageFrameStyleHandle = Selector.GetHandle("imageFrameStyle"); private static readonly IntPtr selSetImageFrameStyle_Handle = Selector.GetHandle("setImageFrameStyle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSImageCell"); public override IntPtr ClassHandle => class_ptr; public virtual NSImageAlignment ImageAlignment { [Export("imageAlignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selImageAlignmentHandle); } return (NSImageAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageAlignmentHandle); } [Export("setImageAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageAlignment_Handle, (ulong)value); } } } public virtual NSImageScale ImageScaling { [Export("imageScaling")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScale)Messaging.UInt64_objc_msgSend(base.Handle, selImageScalingHandle); } return (NSImageScale)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageScalingHandle); } [Export("setImageScaling:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageScaling_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageScaling_Handle, (ulong)value); } } } public virtual NSImageFrameStyle ImageFrameStyle { [Export("imageFrameStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageFrameStyle)Messaging.UInt64_objc_msgSend(base.Handle, selImageFrameStyleHandle); } return (NSImageFrameStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageFrameStyleHandle); } [Export("setImageFrameStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageFrameStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageFrameStyle_Handle, (ulong)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSImageCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSImageCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageCell(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSImageDelegate", true)] [Model] public class NSImageDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSImageDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSImageDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageDelegate(IntPtr handle) : base(handle) { } [Export("imageDidNotDraw:inRect:")] public virtual NSImage ImageDidNotDraw(NSObject sender, CGRect aRect) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("image:willLoadRepresentation:")] public virtual void WillLoadRepresentation(NSImage image, NSImageRep rep) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("image:didLoadRepresentationHeader:")] public virtual void DidLoadRepresentationHeader(NSImage image, NSImageRep rep) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("image:didLoadPartOfRepresentation:withValidRows:")] public virtual void DidLoadPartOfRepresentation(NSImage image, NSImageRep rep, long rows) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("image:didLoadRepresentation:withStatus:")] public virtual void DidLoadRepresentation(NSImage image, NSImageRep rep, NSImageLoadStatus status) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageFrameStyle.cs ================================================ namespace AppKit; public enum NSImageFrameStyle : ulong { None, Photo, GrayBezel, Groove, Button } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageInterpolation.cs ================================================ namespace AppKit; public enum NSImageInterpolation : ulong { Default, None, Low, Medium, High } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageLoadEventArgs.cs ================================================ using System; namespace AppKit; public class NSImageLoadEventArgs : EventArgs { public NSImageRep Rep { get; set; } public NSImageLoadEventArgs(NSImageRep rep) { Rep = rep; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageLoadRepresentationEventArgs.cs ================================================ using System; namespace AppKit; public class NSImageLoadRepresentationEventArgs : EventArgs { public NSImageRep Rep { get; set; } public NSImageLoadStatus Status { get; set; } public NSImageLoadRepresentationEventArgs(NSImageRep rep, NSImageLoadStatus status) { Rep = rep; Status = status; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageLoadStatus.cs ================================================ namespace AppKit; public enum NSImageLoadStatus : ulong { Completed, Cancelled, InvalidData, UnexpectedEOF, ReadError } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageName.cs ================================================ namespace AppKit; public enum NSImageName { QuickLookTemplate, BluetoothTemplate, IChatTheaterTemplate, SlideshowTemplate, ActionTemplate, SmartBadgeTemplate, PathTemplate, InvalidDataFreestandingTemplate, LockLockedTemplate, LockUnlockedTemplate, GoRightTemplate, GoLeftTemplate, RightFacingTriangleTemplate, LeftFacingTriangleTemplate, AddTemplate, RemoveTemplate, RevealFreestandingTemplate, FollowLinkFreestandingTemplate, EnterFullScreenTemplate, ExitFullScreenTemplate, StopProgressTemplate, StopProgressFreestandingTemplate, RefreshTemplate, RefreshFreestandingTemplate, Folder, TrashEmpty, TrashFull, HomeTemplate, BookmarksTemplate, Caution, StatusAvailable, StatusPartiallyAvailable, StatusUnavailable, StatusNone, ApplicationIcon, MenuOnStateTemplate, MenuMixedStateTemplate, UserGuest, MobileMe } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImagePartialEventArgs.cs ================================================ using System; namespace AppKit; public class NSImagePartialEventArgs : EventArgs { public NSImageRep Rep { get; set; } public long Rows { get; set; } public NSImagePartialEventArgs(NSImageRep rep, long rows) { Rep = rep; Rows = rows; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageRect.cs ================================================ using CoreGraphics; using Foundation; namespace AppKit; public delegate NSImage NSImageRect(NSObject sender, CGRect aRect); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageRep.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSImageRep", true)] public class NSImageRep : NSObject { private static readonly IntPtr selHasAlphaHandle = Selector.GetHandle("hasAlpha"); private static readonly IntPtr selImageUnfilteredFileTypesHandle = Selector.GetHandle("imageUnfilteredFileTypes"); private static readonly IntPtr selImageUnfilteredPasteboardTypesHandle = Selector.GetHandle("imageUnfilteredPasteboardTypes"); private static readonly IntPtr selImageFileTypesHandle = Selector.GetHandle("imageFileTypes"); private static readonly IntPtr selImagePasteboardTypesHandle = Selector.GetHandle("imagePasteboardTypes"); private static readonly IntPtr selImageUnfilteredTypesHandle = Selector.GetHandle("imageUnfilteredTypes"); private static readonly IntPtr selImageTypesHandle = Selector.GetHandle("imageTypes"); private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selSetSize_Handle = Selector.GetHandle("setSize:"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selSetOpaque_Handle = Selector.GetHandle("setOpaque:"); private static readonly IntPtr selColorSpaceNameHandle = Selector.GetHandle("colorSpaceName"); private static readonly IntPtr selSetColorSpaceName_Handle = Selector.GetHandle("setColorSpaceName:"); private static readonly IntPtr selBitsPerSampleHandle = Selector.GetHandle("bitsPerSample"); private static readonly IntPtr selSetBitsPerSample_Handle = Selector.GetHandle("setBitsPerSample:"); private static readonly IntPtr selPixelsWideHandle = Selector.GetHandle("pixelsWide"); private static readonly IntPtr selSetPixelsWide_Handle = Selector.GetHandle("setPixelsWide:"); private static readonly IntPtr selPixelsHighHandle = Selector.GetHandle("pixelsHigh"); private static readonly IntPtr selSetPixelsHigh_Handle = Selector.GetHandle("setPixelsHigh:"); private static readonly IntPtr selDrawHandle = Selector.GetHandle("draw"); private static readonly IntPtr selDrawAtPoint_Handle = Selector.GetHandle("drawAtPoint:"); private static readonly IntPtr selDrawInRect_Handle = Selector.GetHandle("drawInRect:"); private static readonly IntPtr selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle = Selector.GetHandle("drawInRect:fromRect:operation:fraction:respectFlipped:hints:"); private static readonly IntPtr selSetAlpha_Handle = Selector.GetHandle("setAlpha:"); private static readonly IntPtr selRegisterImageRepClass_Handle = Selector.GetHandle("registerImageRepClass:"); private static readonly IntPtr selUnregisterImageRepClass_Handle = Selector.GetHandle("unregisterImageRepClass:"); private static readonly IntPtr selImageRepClassForFileType_Handle = Selector.GetHandle("imageRepClassForFileType:"); private static readonly IntPtr selImageRepClassForPasteboardType_Handle = Selector.GetHandle("imageRepClassForPasteboardType:"); private static readonly IntPtr selImageRepClassForType_Handle = Selector.GetHandle("imageRepClassForType:"); private static readonly IntPtr selImageRepClassForData_Handle = Selector.GetHandle("imageRepClassForData:"); private static readonly IntPtr selCanInitWithData_Handle = Selector.GetHandle("canInitWithData:"); private static readonly IntPtr selCanInitWithPasteboard_Handle = Selector.GetHandle("canInitWithPasteboard:"); private static readonly IntPtr selImageRepsWithContentsOfFile_Handle = Selector.GetHandle("imageRepsWithContentsOfFile:"); private static readonly IntPtr selImageRepWithContentsOfFile_Handle = Selector.GetHandle("imageRepWithContentsOfFile:"); private static readonly IntPtr selImageRepsWithContentsOfURL_Handle = Selector.GetHandle("imageRepsWithContentsOfURL:"); private static readonly IntPtr selImageRepWithContentsOfURL_Handle = Selector.GetHandle("imageRepWithContentsOfURL:"); private static readonly IntPtr selImageRepsWithPasteboard_Handle = Selector.GetHandle("imageRepsWithPasteboard:"); private static readonly IntPtr selImageRepWithPasteboard_Handle = Selector.GetHandle("imageRepWithPasteboard:"); private static readonly IntPtr selCGImageForProposedRectContextHints_Handle = Selector.GetHandle("CGImageForProposedRect:context:hints:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSImageRep"); public CGImage CGImage { get { CGRect proposedDestRect = CGRect.Empty; return AsCGImage(ref proposedDestRect, null, null); } } public override IntPtr ClassHandle => class_ptr; public virtual bool HasAlpha { [Export("hasAlpha")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasAlphaHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasAlphaHandle); } } public static string[] ImageUnfilteredFileTypes { [Export("imageUnfilteredFileTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredFileTypesHandle)); } } public static string[] ImageUnfilteredPasteboardTypes { [Export("imageUnfilteredPasteboardTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredPasteboardTypesHandle)); } } public static string[] ImageFileTypes { [Export("imageFileTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageFileTypesHandle)); } } public static string[] ImagePasteboardTypes { [Export("imagePasteboardTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImagePasteboardTypesHandle)); } } public static string[] ImageUnfilteredTypes { [Export("imageUnfilteredTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageUnfilteredTypesHandle)); } } public static string[] ImageTypes { [Export("imageTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selImageTypesHandle)); } } public virtual CGSize Size { [Export("size")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeHandle); } [Export("setSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetSize_Handle, value); } } } public virtual bool Opaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } [Export("setOpaque:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOpaque_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOpaque_Handle, value); } } } public virtual string ColorSpaceName { [Export("colorSpaceName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceNameHandle)); } [Export("setColorSpaceName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColorSpaceName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColorSpaceName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual long BitsPerSample { [Export("bitsPerSample")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selBitsPerSampleHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBitsPerSampleHandle); } [Export("setBitsPerSample:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBitsPerSample_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBitsPerSample_Handle, value); } } } public virtual long PixelsWide { [Export("pixelsWide")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selPixelsWideHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPixelsWideHandle); } [Export("setPixelsWide:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetPixelsWide_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetPixelsWide_Handle, value); } } } public virtual long PixelsHigh { [Export("pixelsHigh")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selPixelsHighHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPixelsHighHandle); } [Export("setPixelsHigh:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetPixelsHigh_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetPixelsHigh_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSImageRep() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSImageRep(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageRep(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageRep(IntPtr handle) : base(handle) { } [Export("draw")] public virtual bool Draw() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawHandle); } [Export("drawAtPoint:")] public virtual bool DrawAtPoint(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint(base.Handle, selDrawAtPoint_Handle, point); } return Messaging.bool_objc_msgSendSuper_CGPoint(base.SuperHandle, selDrawAtPoint_Handle, point); } [Export("drawInRect:")] public virtual bool DrawInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGRect(base.Handle, selDrawInRect_Handle, rect); } return Messaging.bool_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawInRect_Handle, rect); } [Export("drawInRect:fromRect:operation:fraction:respectFlipped:hints:")] public virtual bool DrawInRect(CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, double requestedAlpha, bool respectContextIsFlipped, NSDictionary hints) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGRect_CGRect_UInt64_Double_bool_IntPtr(base.Handle, selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle, dstSpacePortionRect, srcSpacePortionRect, (ulong)op, requestedAlpha, respectContextIsFlipped, hints?.Handle ?? IntPtr.Zero); } return Messaging.bool_objc_msgSendSuper_CGRect_CGRect_UInt64_Double_bool_IntPtr(base.SuperHandle, selDrawInRectFromRectOperationFractionRespectFlippedHints_Handle, dstSpacePortionRect, srcSpacePortionRect, (ulong)op, requestedAlpha, respectContextIsFlipped, hints?.Handle ?? IntPtr.Zero); } [Export("setAlpha:")] public virtual void SetAlpha(bool alpha) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlpha_Handle, alpha); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlpha_Handle, alpha); } } [Export("registerImageRepClass:")] public static void RegisterImageRepClass(Class imageRepClass) { NSApplication.EnsureUIThread(); if (imageRepClass == null) { throw new ArgumentNullException("imageRepClass"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selRegisterImageRepClass_Handle, imageRepClass.Handle); } [Export("unregisterImageRepClass:")] public static void UnregisterImageRepClass(Class imageRepClass) { NSApplication.EnsureUIThread(); if (imageRepClass == null) { throw new ArgumentNullException("imageRepClass"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selUnregisterImageRepClass_Handle, imageRepClass.Handle); } [Export("imageRepClassForFileType:")] public static Class ImageRepClassForFileType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); Class result = new Class(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepClassForFileType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("imageRepClassForPasteboardType:")] public static Class ImageRepClassForPasteboardType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); Class result = new Class(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepClassForPasteboardType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("imageRepClassForType:")] public static Class ImageRepClassForType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); Class result = new Class(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepClassForType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("imageRepClassForData:")] public static Class ImageRepClassForData(NSData data) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } return new Class(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepClassForData_Handle, data.Handle)); } [Export("canInitWithData:")] public static bool CanInitWithData(NSData data) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithData_Handle, data.Handle); } [Export("canInitWithPasteboard:")] public static bool CanInitWithPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithPasteboard_Handle, pasteboard.Handle); } [Export("imageRepsWithContentsOfFile:")] public static NSImageRep[] ImageRepsFromFile(string filename) { NSApplication.EnsureUIThread(); if (filename == null) { throw new ArgumentNullException("filename"); } IntPtr arg = NSString.CreateNative(filename); NSImageRep[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepsWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("imageRepWithContentsOfFile:")] public static NSImageRep ImageRepFromFile(string filename) { NSApplication.EnsureUIThread(); if (filename == null) { throw new ArgumentNullException("filename"); } IntPtr arg = NSString.CreateNative(filename); NSImageRep result = (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("imageRepsWithContentsOfURL:")] public static NSImageRep[] ImageRepsFromUrl(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepsWithContentsOfURL_Handle, url.Handle)); } [Export("imageRepWithContentsOfURL:")] public static NSImageRep ImageRepFromUrl(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithContentsOfURL_Handle, url.Handle)); } [Export("imageRepsWithPasteboard:")] public static NSImageRep[] ImageRepsFromPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepsWithPasteboard_Handle, pasteboard.Handle)); } [Export("imageRepWithPasteboard:")] public static NSImageRep ImageRepFromPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return (NSImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageRepWithPasteboard_Handle, pasteboard.Handle)); } [Export("CGImageForProposedRect:context:hints:")] public virtual CGImage AsCGImage(ref CGRect proposedDestRect, NSGraphicsContext context, NSDictionary hints) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGImage(Messaging.IntPtr_objc_msgSend_out_CGRect_IntPtr_IntPtr(base.Handle, selCGImageForProposedRectContextHints_Handle, out proposedDestRect, context?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } return new CGImage(Messaging.IntPtr_objc_msgSendSuper_out_CGRect_IntPtr_IntPtr(base.SuperHandle, selCGImageForProposedRectContextHints_Handle, out proposedDestRect, context?.Handle ?? IntPtr.Zero, hints?.Handle ?? IntPtr.Zero)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageRepLoadStatus.cs ================================================ namespace AppKit; public enum NSImageRepLoadStatus : long { UnknownType = -1L, ReadingHeader = -2L, WillNeedAllData = -3L, InvalidData = -4L, UnexpectedEOF = -5L, Completed = -6L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageScale.cs ================================================ namespace AppKit; public enum NSImageScale : ulong { ProportionallyDown, AxesIndependently, None, ProportionallyUpOrDown } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageScaling.cs ================================================ namespace AppKit; public enum NSImageScaling : ulong { ProportionallyDown, AxesIndependently, None, ProportionallyUpOrDown } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSImageView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSImageView", true)] public class NSImageView : NSControl { private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selImageAlignmentHandle = Selector.GetHandle("imageAlignment"); private static readonly IntPtr selSetImageAlignment_Handle = Selector.GetHandle("setImageAlignment:"); private static readonly IntPtr selImageScalingHandle = Selector.GetHandle("imageScaling"); private static readonly IntPtr selSetImageScaling_Handle = Selector.GetHandle("setImageScaling:"); private static readonly IntPtr selImageFrameStyleHandle = Selector.GetHandle("imageFrameStyle"); private static readonly IntPtr selSetImageFrameStyle_Handle = Selector.GetHandle("setImageFrameStyle:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selAnimatesHandle = Selector.GetHandle("animates"); private static readonly IntPtr selSetAnimates_Handle = Selector.GetHandle("setAnimates:"); private static readonly IntPtr selAllowsCutCopyPasteHandle = Selector.GetHandle("allowsCutCopyPaste"); private static readonly IntPtr selSetAllowsCutCopyPaste_Handle = Selector.GetHandle("setAllowsCutCopyPaste:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSImageView"); private object __mt_Image_var; public override IntPtr ClassHandle => class_ptr; public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Image_var = value; } } public virtual NSImageAlignment ImageAlignment { [Export("imageAlignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selImageAlignmentHandle); } return (NSImageAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageAlignmentHandle); } [Export("setImageAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageAlignment_Handle, (ulong)value); } } } public virtual NSImageScale ImageScaling { [Export("imageScaling")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScale)Messaging.UInt64_objc_msgSend(base.Handle, selImageScalingHandle); } return (NSImageScale)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageScalingHandle); } [Export("setImageScaling:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageScaling_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageScaling_Handle, (ulong)value); } } } public virtual NSImageFrameStyle ImageFrameStyle { [Export("imageFrameStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageFrameStyle)Messaging.UInt64_objc_msgSend(base.Handle, selImageFrameStyleHandle); } return (NSImageFrameStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageFrameStyleHandle); } [Export("setImageFrameStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetImageFrameStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetImageFrameStyle_Handle, (ulong)value); } } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool Animates { [Export("animates")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAnimatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAnimatesHandle); } [Export("setAnimates:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAnimates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAnimates_Handle, value); } } } public virtual bool AllowsCutCopyPaste { [Export("allowsCutCopyPaste")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsCutCopyPasteHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsCutCopyPasteHandle); } [Export("setAllowsCutCopyPaste:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsCutCopyPaste_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsCutCopyPaste_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSImageView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSImageView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSImageView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSImageView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSKey.cs ================================================ namespace AppKit; public enum NSKey : ulong { A = 0uL, S = 1uL, D = 2uL, F = 3uL, H = 4uL, G = 5uL, Z = 6uL, X = 7uL, C = 8uL, V = 9uL, B = 11uL, Q = 12uL, W = 13uL, E = 14uL, R = 15uL, Y = 16uL, T = 17uL, D1 = 18uL, D2 = 19uL, D3 = 20uL, D4 = 21uL, D6 = 22uL, D5 = 23uL, Equal = 24uL, D9 = 25uL, D7 = 26uL, Minus = 27uL, D8 = 28uL, D0 = 29uL, RightBracket = 30uL, O = 31uL, U = 32uL, LeftBracket = 33uL, I = 34uL, P = 35uL, L = 37uL, J = 38uL, Quote = 39uL, K = 40uL, Semicolon = 41uL, Backslash = 42uL, Comma = 43uL, Slash = 44uL, N = 45uL, M = 46uL, Period = 47uL, Grave = 50uL, KeypadDecimal = 65uL, KeypadMultiply = 67uL, KeypadPlus = 69uL, KeypadClear = 71uL, KeypadDivide = 75uL, KeypadEnter = 76uL, KeypadMinus = 78uL, KeypadEquals = 81uL, Keypad0 = 82uL, Keypad1 = 83uL, Keypad2 = 84uL, Keypad3 = 85uL, Keypad4 = 86uL, Keypad5 = 87uL, Keypad6 = 88uL, Keypad7 = 89uL, Keypad8 = 91uL, Keypad9 = 92uL, Return = 36uL, Tab = 48uL, Space = 49uL, Escape = 53uL, Command = 55uL, Shift = 56uL, CapsLock = 57uL, Option = 58uL, Control = 59uL, RightShift = 60uL, RightOption = 61uL, RightControl = 62uL, Function = 63uL, VolumeUp = 72uL, VolumeDown = 73uL, Mute = 74uL, ForwardDelete = 117uL, UpArrow = 63232uL, DownArrow = 63233uL, LeftArrow = 63234uL, RightArrow = 63235uL, F1 = 63236uL, F2 = 63237uL, F3 = 63238uL, F4 = 63239uL, F5 = 63240uL, F6 = 63241uL, F7 = 63242uL, F8 = 63243uL, F9 = 63244uL, F10 = 63245uL, F11 = 63246uL, F12 = 63247uL, F13 = 63248uL, F14 = 63249uL, F15 = 63250uL, F16 = 63251uL, F17 = 63252uL, F18 = 63253uL, F19 = 63254uL, F20 = 63255uL, F21 = 63256uL, F22 = 63257uL, F23 = 63258uL, F24 = 63259uL, F25 = 63260uL, F26 = 63261uL, F27 = 63262uL, F28 = 63263uL, F29 = 63264uL, F30 = 63265uL, F31 = 63266uL, F32 = 63267uL, F33 = 63268uL, F34 = 63269uL, F35 = 63270uL, Insert = 63271uL, Delete = 51uL, Home = 63273uL, Begin = 63274uL, End = 63275uL, PageUp = 63276uL, PageDown = 63277uL, PrintScreen = 63278uL, ScrollLock = 63279uL, Pause = 63280uL, SysReq = 63281uL, Break = 63282uL, Reset = 63283uL, Stop = 63284uL, Menu = 63285uL, User = 63286uL, System = 63287uL, Print = 63288uL, ClearLine = 63289uL, ClearDisplay = 63290uL, InsertLine = 63291uL, DeleteLine = 63292uL, InsertChar = 63293uL, DeleteChar = 63294uL, Prev = 63295uL, Next = 63296uL, Select = 63297uL, Execute = 63298uL, Undo = 63299uL, Redo = 63300uL, Find = 63301uL, Help = 63302uL, ModeSwitch = 63303uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutAttribute.cs ================================================ namespace AppKit; public enum NSLayoutAttribute : long { NoAttribute, Left, Right, Top, Bottom, Leading, Trailing, Width, Height, CenterX, CenterY, Baseline } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutConstraint.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSLayoutConstraint", true)] public class NSLayoutConstraint : NSObject { private static readonly IntPtr selPriorityHandle = Selector.GetHandle("priority"); private static readonly IntPtr selSetPriority_Handle = Selector.GetHandle("setPriority:"); private static readonly IntPtr selShouldBeArchivedHandle = Selector.GetHandle("shouldBeArchived"); private static readonly IntPtr selSetShouldBeArchived_Handle = Selector.GetHandle("setShouldBeArchived:"); private static readonly IntPtr selFirstItemHandle = Selector.GetHandle("firstItem"); private static readonly IntPtr selFirstAttributeHandle = Selector.GetHandle("firstAttribute"); private static readonly IntPtr selRelationHandle = Selector.GetHandle("relation"); private static readonly IntPtr selSecondItemHandle = Selector.GetHandle("secondItem"); private static readonly IntPtr selSecondAttributeHandle = Selector.GetHandle("secondAttribute"); private static readonly IntPtr selMultiplierHandle = Selector.GetHandle("multiplier"); private static readonly IntPtr selConstantHandle = Selector.GetHandle("constant"); private static readonly IntPtr selSetConstant_Handle = Selector.GetHandle("setConstant:"); private static readonly IntPtr selAnimatorHandle = Selector.GetHandle("animator"); private static readonly IntPtr selAnimationsHandle = Selector.GetHandle("animations"); private static readonly IntPtr selSetAnimations_Handle = Selector.GetHandle("setAnimations:"); private static readonly IntPtr selConstraintsWithVisualFormatOptionsMetricsViews_Handle = Selector.GetHandle("constraintsWithVisualFormat:options:metrics:views:"); private static readonly IntPtr selConstraintWithItemAttributeRelatedByToItemAttributeMultiplierConstant_Handle = Selector.GetHandle("constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:"); private static readonly IntPtr selAnimationForKey_Handle = Selector.GetHandle("animationForKey:"); private static readonly IntPtr selDefaultAnimationForKey_Handle = Selector.GetHandle("defaultAnimationForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLayoutConstraint"); private object __mt_FirstItem_var; private object __mt_SecondItem_var; private object __mt_Animator_var; private object __mt_Animations_var; public override IntPtr ClassHandle => class_ptr; public virtual float Priority { [Export("priority")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selPriorityHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selPriorityHandle); } [Export("setPriority:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetPriority_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetPriority_Handle, value); } } } public virtual bool ShouldBeArchived { [Export("shouldBeArchived")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldBeArchivedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldBeArchivedHandle); } [Export("setShouldBeArchived:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldBeArchived_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldBeArchived_Handle, value); } } } public virtual NSObject FirstItem { [Export("firstItem")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_FirstItem_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFirstItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFirstItemHandle)))); } } public virtual NSLayoutAttribute FirstAttribute { [Export("firstAttribute")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLayoutAttribute)Messaging.Int64_objc_msgSend(base.Handle, selFirstAttributeHandle); } return (NSLayoutAttribute)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFirstAttributeHandle); } } public virtual NSLayoutRelation Relation { [Export("relation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLayoutRelation)Messaging.Int64_objc_msgSend(base.Handle, selRelationHandle); } return (NSLayoutRelation)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRelationHandle); } } public virtual NSObject SecondItem { [Export("secondItem")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_SecondItem_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSecondItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSecondItemHandle)))); } } public virtual NSLayoutAttribute SecondAttribute { [Export("secondAttribute")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLayoutAttribute)Messaging.Int64_objc_msgSend(base.Handle, selSecondAttributeHandle); } return (NSLayoutAttribute)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSecondAttributeHandle); } } public virtual double Multiplier { [Export("multiplier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMultiplierHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMultiplierHandle); } } public virtual double Constant { [Export("constant")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selConstantHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selConstantHandle); } [Export("setConstant:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetConstant_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetConstant_Handle, value); } } } public virtual NSObject Animator { [Export("animator")] get { NSApplication.EnsureUIThread(); NSObject nSObject = (NSObject)(__mt_Animator_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimatorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimatorHandle)))); nSObject.SetAsProxy(); return nSObject; } } public virtual NSDictionary Animations { [Export("animations")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_Animations_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationsHandle))))); } [Export("setAnimations:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimations_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimations_Handle, value.Handle); } __mt_Animations_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLayoutConstraint() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLayoutConstraint(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutConstraint(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutConstraint(IntPtr handle) : base(handle) { } [Export("constraintsWithVisualFormat:options:metrics:views:")] public static NSLayoutConstraint[] FromVisualFormat(string format, NSLayoutFormatOptions formatOptions, NSDictionary metrics, NSDictionary views) { NSApplication.EnsureUIThread(); if (format == null) { throw new ArgumentNullException("format"); } if (views == null) { throw new ArgumentNullException("views"); } IntPtr arg = NSString.CreateNative(format); NSLayoutConstraint[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(class_ptr, selConstraintsWithVisualFormatOptionsMetricsViews_Handle, arg, (ulong)formatOptions, metrics?.Handle ?? IntPtr.Zero, views.Handle)); NSString.ReleaseNative(arg); return result; } [Export("constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:")] public static NSLayoutConstraint Create(NSObject view1, NSLayoutAttribute attribute1, NSLayoutRelation relation, NSObject view2, NSLayoutAttribute attribute2, double multiplier, double constant) { NSApplication.EnsureUIThread(); if (view1 == null) { throw new ArgumentNullException("view1"); } return (NSLayoutConstraint)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64_Int64_IntPtr_Int64_Double_Double(class_ptr, selConstraintWithItemAttributeRelatedByToItemAttributeMultiplierConstant_Handle, view1.Handle, (long)attribute1, (long)relation, view2?.Handle ?? IntPtr.Zero, (long)attribute2, multiplier, constant)); } [Export("animationForKey:")] public virtual NSObject AnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAnimationForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnimationForKey_Handle, key.Handle)); } [Export("defaultAnimationForKey:")] public static NSObject DefaultAnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultAnimationForKey_Handle, key.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FirstItem_var = null; __mt_SecondItem_var = null; __mt_Animator_var = null; __mt_Animations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutConstraintOrientation.cs ================================================ namespace AppKit; public enum NSLayoutConstraintOrientation : long { Horizontal, Vertical } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutFormatOptions.cs ================================================ namespace AppKit; public enum NSLayoutFormatOptions : ulong { None = 0uL, AlignAllLeft = 2uL, AlignAllRight = 4uL, AlignAllTop = 8uL, AlignAllBottom = 16uL, AlignAllLeading = 32uL, AlignAllTrailing = 64uL, AlignAllCenterX = 512uL, AlignAllCenterY = 1024uL, AlignAllBaseline = 2048uL, AlignmentMask = 65535uL, DirectionLeadingToTrailing = 0uL, DirectionLeftToRight = 65536uL, DirectionRightToLeft = 131072uL, DirectionMask = 196608uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutManager.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSLayoutManager", true)] public class NSLayoutManager : NSObject { private static readonly IntPtr selAttributedStringHandle = Selector.GetHandle("attributedString"); private static readonly IntPtr selTextContainersHandle = Selector.GetHandle("textContainers"); private static readonly IntPtr selLayoutOptionsHandle = Selector.GetHandle("layoutOptions"); private static readonly IntPtr selHasNonContiguousLayoutHandle = Selector.GetHandle("hasNonContiguousLayout"); private static readonly IntPtr selNumberOfGlyphsHandle = Selector.GetHandle("numberOfGlyphs"); private static readonly IntPtr selFirstUnlaidCharacterIndexHandle = Selector.GetHandle("firstUnlaidCharacterIndex"); private static readonly IntPtr selFirstUnlaidGlyphIndexHandle = Selector.GetHandle("firstUnlaidGlyphIndex"); private static readonly IntPtr selExtraLineFragmentRectHandle = Selector.GetHandle("extraLineFragmentRect"); private static readonly IntPtr selExtraLineFragmentUsedRectHandle = Selector.GetHandle("extraLineFragmentUsedRect"); private static readonly IntPtr selExtraLineFragmentTextContainerHandle = Selector.GetHandle("extraLineFragmentTextContainer"); private static readonly IntPtr selTextStorageHandle = Selector.GetHandle("textStorage"); private static readonly IntPtr selSetTextStorage_Handle = Selector.GetHandle("setTextStorage:"); private static readonly IntPtr selGlyphGeneratorHandle = Selector.GetHandle("glyphGenerator"); private static readonly IntPtr selSetGlyphGenerator_Handle = Selector.GetHandle("setGlyphGenerator:"); private static readonly IntPtr selTypesetterHandle = Selector.GetHandle("typesetter"); private static readonly IntPtr selSetTypesetter_Handle = Selector.GetHandle("setTypesetter:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selBackgroundLayoutEnabledHandle = Selector.GetHandle("backgroundLayoutEnabled"); private static readonly IntPtr selSetBackgroundLayoutEnabled_Handle = Selector.GetHandle("setBackgroundLayoutEnabled:"); private static readonly IntPtr selUsesScreenFontsHandle = Selector.GetHandle("usesScreenFonts"); private static readonly IntPtr selSetUsesScreenFonts_Handle = Selector.GetHandle("setUsesScreenFonts:"); private static readonly IntPtr selShowsInvisibleCharactersHandle = Selector.GetHandle("showsInvisibleCharacters"); private static readonly IntPtr selSetShowsInvisibleCharacters_Handle = Selector.GetHandle("setShowsInvisibleCharacters:"); private static readonly IntPtr selShowsControlCharactersHandle = Selector.GetHandle("showsControlCharacters"); private static readonly IntPtr selSetShowsControlCharacters_Handle = Selector.GetHandle("setShowsControlCharacters:"); private static readonly IntPtr selHyphenationFactorHandle = Selector.GetHandle("hyphenationFactor"); private static readonly IntPtr selSetHyphenationFactor_Handle = Selector.GetHandle("setHyphenationFactor:"); private static readonly IntPtr selDefaultAttachmentScalingHandle = Selector.GetHandle("defaultAttachmentScaling"); private static readonly IntPtr selSetDefaultAttachmentScaling_Handle = Selector.GetHandle("setDefaultAttachmentScaling:"); private static readonly IntPtr selTypesetterBehaviorHandle = Selector.GetHandle("typesetterBehavior"); private static readonly IntPtr selSetTypesetterBehavior_Handle = Selector.GetHandle("setTypesetterBehavior:"); private static readonly IntPtr selAllowsNonContiguousLayoutHandle = Selector.GetHandle("allowsNonContiguousLayout"); private static readonly IntPtr selSetAllowsNonContiguousLayout_Handle = Selector.GetHandle("setAllowsNonContiguousLayout:"); private static readonly IntPtr selUsesFontLeadingHandle = Selector.GetHandle("usesFontLeading"); private static readonly IntPtr selSetUsesFontLeading_Handle = Selector.GetHandle("setUsesFontLeading:"); private static readonly IntPtr selReplaceTextStorage_Handle = Selector.GetHandle("replaceTextStorage:"); private static readonly IntPtr selAddTextContainer_Handle = Selector.GetHandle("addTextContainer:"); private static readonly IntPtr selInsertTextContainerAtIndex_Handle = Selector.GetHandle("insertTextContainer:atIndex:"); private static readonly IntPtr selRemoveTextContainerAtIndex_Handle = Selector.GetHandle("removeTextContainerAtIndex:"); private static readonly IntPtr selTextContainerChangedGeometry_Handle = Selector.GetHandle("textContainerChangedGeometry:"); private static readonly IntPtr selTextContainerChangedTextView_Handle = Selector.GetHandle("textContainerChangedTextView:"); private static readonly IntPtr selInvalidateDisplayForCharacterRange_Handle = Selector.GetHandle("invalidateDisplayForCharacterRange:"); private static readonly IntPtr selInvalidateDisplayForGlyphRange_Handle = Selector.GetHandle("invalidateDisplayForGlyphRange:"); private static readonly IntPtr selTextStorageEditedRangeChangeInLengthInvalidatedRange_Handle = Selector.GetHandle("textStorage:edited:range:changeInLength:invalidatedRange:"); private static readonly IntPtr selEnsureGlyphsForCharacterRange_Handle = Selector.GetHandle("ensureGlyphsForCharacterRange:"); private static readonly IntPtr selEnsureGlyphsForGlyphRange_Handle = Selector.GetHandle("ensureGlyphsForGlyphRange:"); private static readonly IntPtr selEnsureLayoutForCharacterRange_Handle = Selector.GetHandle("ensureLayoutForCharacterRange:"); private static readonly IntPtr selEnsureLayoutForGlyphRange_Handle = Selector.GetHandle("ensureLayoutForGlyphRange:"); private static readonly IntPtr selEnsureLayoutForTextContainer_Handle = Selector.GetHandle("ensureLayoutForTextContainer:"); private static readonly IntPtr selEnsureLayoutForBoundingRectInTextContainer_Handle = Selector.GetHandle("ensureLayoutForBoundingRect:inTextContainer:"); private static readonly IntPtr selInsertGlyphAtGlyphIndexCharacterIndex_Handle = Selector.GetHandle("insertGlyph:atGlyphIndex:characterIndex:"); private static readonly IntPtr selReplaceGlyphAtIndexWithGlyph_Handle = Selector.GetHandle("replaceGlyphAtIndex:withGlyph:"); private static readonly IntPtr selDeleteGlyphsInRange_Handle = Selector.GetHandle("deleteGlyphsInRange:"); private static readonly IntPtr selSetCharacterIndexForGlyphAtIndex_Handle = Selector.GetHandle("setCharacterIndex:forGlyphAtIndex:"); private static readonly IntPtr selSetIntAttributeValueForGlyphAtIndex_Handle = Selector.GetHandle("setIntAttribute:value:forGlyphAtIndex:"); private static readonly IntPtr selInvalidateGlyphsOnLayoutInvalidationForGlyphRange_Handle = Selector.GetHandle("invalidateGlyphsOnLayoutInvalidationForGlyphRange:"); private static readonly IntPtr selGlyphAtIndexIsValidIndex_Handle = Selector.GetHandle("glyphAtIndex:isValidIndex:"); private static readonly IntPtr selGlyphAtIndex_Handle = Selector.GetHandle("glyphAtIndex:"); private static readonly IntPtr selIsValidGlyphIndex_Handle = Selector.GetHandle("isValidGlyphIndex:"); private static readonly IntPtr selCharacterIndexForGlyphAtIndex_Handle = Selector.GetHandle("characterIndexForGlyphAtIndex:"); private static readonly IntPtr selGlyphIndexForCharacterAtIndex_Handle = Selector.GetHandle("glyphIndexForCharacterAtIndex:"); private static readonly IntPtr selIntAttributeForGlyphAtIndex_Handle = Selector.GetHandle("intAttribute:forGlyphAtIndex:"); private static readonly IntPtr selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBits_Handle = Selector.GetHandle("getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:"); private static readonly IntPtr selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels_Handle = Selector.GetHandle("getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:"); private static readonly IntPtr selGetGlyphsRange_Handle = Selector.GetHandle("getGlyphs:range:"); private static readonly IntPtr selSetTextContainerForGlyphRange_Handle = Selector.GetHandle("setTextContainer:forGlyphRange:"); private static readonly IntPtr selSetLineFragmentRectForGlyphRangeUsedRect_Handle = Selector.GetHandle("setLineFragmentRect:forGlyphRange:usedRect:"); private static readonly IntPtr selSetExtraLineFragmentRectUsedRectTextContainer_Handle = Selector.GetHandle("setExtraLineFragmentRect:usedRect:textContainer:"); private static readonly IntPtr selSetLocationForStartOfGlyphRange_Handle = Selector.GetHandle("setLocation:forStartOfGlyphRange:"); private static readonly IntPtr selSetNotShownAttributeForGlyphAtIndex_Handle = Selector.GetHandle("setNotShownAttribute:forGlyphAtIndex:"); private static readonly IntPtr selSetDrawsOutsideLineFragmentForGlyphAtIndex_Handle = Selector.GetHandle("setDrawsOutsideLineFragment:forGlyphAtIndex:"); private static readonly IntPtr selSetAttachmentSizeForGlyphRange_Handle = Selector.GetHandle("setAttachmentSize:forGlyphRange:"); private static readonly IntPtr selGetFirstUnlaidCharacterIndexGlyphIndex_Handle = Selector.GetHandle("getFirstUnlaidCharacterIndex:glyphIndex:"); private static readonly IntPtr selUsedRectForTextContainer_Handle = Selector.GetHandle("usedRectForTextContainer:"); private static readonly IntPtr selLocationForGlyphAtIndex_Handle = Selector.GetHandle("locationForGlyphAtIndex:"); private static readonly IntPtr selNotShownAttributeForGlyphAtIndex_Handle = Selector.GetHandle("notShownAttributeForGlyphAtIndex:"); private static readonly IntPtr selDrawsOutsideLineFragmentForGlyphAtIndex_Handle = Selector.GetHandle("drawsOutsideLineFragmentForGlyphAtIndex:"); private static readonly IntPtr selAttachmentSizeForGlyphAtIndex_Handle = Selector.GetHandle("attachmentSizeForGlyphAtIndex:"); private static readonly IntPtr selSetLayoutRectForTextBlockGlyphRange_Handle = Selector.GetHandle("setLayoutRect:forTextBlock:glyphRange:"); private static readonly IntPtr selSetBoundsRectForTextBlockGlyphRange_Handle = Selector.GetHandle("setBoundsRect:forTextBlock:glyphRange:"); private static readonly IntPtr selLayoutRectForTextBlockGlyphRange_Handle = Selector.GetHandle("layoutRectForTextBlock:glyphRange:"); private static readonly IntPtr selBoundsRectForTextBlockGlyphRange_Handle = Selector.GetHandle("boundsRectForTextBlock:glyphRange:"); private static readonly IntPtr selGlyphRangeForTextContainer_Handle = Selector.GetHandle("glyphRangeForTextContainer:"); private static readonly IntPtr selRangeOfNominallySpacedGlyphsContainingIndex_Handle = Selector.GetHandle("rangeOfNominallySpacedGlyphsContainingIndex:"); private static readonly IntPtr selBoundingRectForGlyphRangeInTextContainer_Handle = Selector.GetHandle("boundingRectForGlyphRange:inTextContainer:"); private static readonly IntPtr selGlyphRangeForBoundingRectInTextContainer_Handle = Selector.GetHandle("glyphRangeForBoundingRect:inTextContainer:"); private static readonly IntPtr selGlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer_Handle = Selector.GetHandle("glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:"); private static readonly IntPtr selGlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph_Handle = Selector.GetHandle("glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:"); private static readonly IntPtr selGlyphIndexForPointInTextContainer_Handle = Selector.GetHandle("glyphIndexForPoint:inTextContainer:"); private static readonly IntPtr selFractionOfDistanceThroughGlyphForPointInTextContainer_Handle = Selector.GetHandle("fractionOfDistanceThroughGlyphForPoint:inTextContainer:"); private static readonly IntPtr selCharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints_Handle = Selector.GetHandle("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:"); private static readonly IntPtr selGetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes_Handle = Selector.GetHandle("getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:"); private static readonly IntPtr selSetTemporaryAttributesForCharacterRange_Handle = Selector.GetHandle("setTemporaryAttributes:forCharacterRange:"); private static readonly IntPtr selAddTemporaryAttributesForCharacterRange_Handle = Selector.GetHandle("addTemporaryAttributes:forCharacterRange:"); private static readonly IntPtr selRemoveTemporaryAttributeForCharacterRange_Handle = Selector.GetHandle("removeTemporaryAttribute:forCharacterRange:"); private static readonly IntPtr selAddTemporaryAttributeValueForCharacterRange_Handle = Selector.GetHandle("addTemporaryAttribute:value:forCharacterRange:"); private static readonly IntPtr selSubstituteFontForFont_Handle = Selector.GetHandle("substituteFontForFont:"); private static readonly IntPtr selDefaultLineHeightForFont_Handle = Selector.GetHandle("defaultLineHeightForFont:"); private static readonly IntPtr selDefaultBaselineOffsetForFont_Handle = Selector.GetHandle("defaultBaselineOffsetForFont:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLayoutManager"); private object __mt_AttributedString_var; private object __mt_TextContainers_var; private object __mt_ExtraLineFragmentTextContainer_var; private object __mt_TextStorage_var; private object __mt_GlyphGenerator_var; private object __mt_Typesetter_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSAttributedString AttributedString { [Export("attributedString")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedStringHandle))))); } } public virtual NSTextContainer[] TextContainers { [Export("textContainers")] get { NSApplication.EnsureUIThread(); return (NSTextContainer[])(__mt_TextContainers_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextContainersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextContainersHandle)))); } } public virtual NSGlyphStorageOptions LayoutOptions { [Export("layoutOptions")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSGlyphStorageOptions)Messaging.UInt64_objc_msgSend(base.Handle, selLayoutOptionsHandle); } return (NSGlyphStorageOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLayoutOptionsHandle); } } public virtual bool HasNonContiguousLayout { [Export("hasNonContiguousLayout")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasNonContiguousLayoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasNonContiguousLayoutHandle); } } public virtual long NumberOfGlyphs { [Export("numberOfGlyphs")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfGlyphsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfGlyphsHandle); } } public virtual long FirstUnlaidCharacterIndex { [Export("firstUnlaidCharacterIndex")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFirstUnlaidCharacterIndexHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFirstUnlaidCharacterIndexHandle); } } public virtual long FirstUnlaidGlyphIndex { [Export("firstUnlaidGlyphIndex")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFirstUnlaidGlyphIndexHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFirstUnlaidGlyphIndexHandle); } } public virtual CGRect ExtraLineFragmentRect { [Export("extraLineFragmentRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selExtraLineFragmentRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selExtraLineFragmentRectHandle); } return retval; } } public virtual CGRect ExtraLineFragmentUsedRect { [Export("extraLineFragmentUsedRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selExtraLineFragmentUsedRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selExtraLineFragmentUsedRectHandle); } return retval; } } public virtual NSTextContainer ExtraLineFragmentTextContainer { [Export("extraLineFragmentTextContainer")] get { NSApplication.EnsureUIThread(); return (NSTextContainer)(__mt_ExtraLineFragmentTextContainer_var = ((!IsDirectBinding) ? ((NSTextContainer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtraLineFragmentTextContainerHandle))) : ((NSTextContainer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtraLineFragmentTextContainerHandle))))); } } public virtual NSTextStorage TextStorage { [Export("textStorage")] get { NSApplication.EnsureUIThread(); return (NSTextStorage)(__mt_TextStorage_var = ((!IsDirectBinding) ? ((NSTextStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextStorageHandle))) : ((NSTextStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextStorageHandle))))); } [Export("setTextStorage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextStorage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextStorage_Handle, value.Handle); } __mt_TextStorage_var = value; } } public virtual NSGlyphGenerator GlyphGenerator { [Export("glyphGenerator")] get { NSApplication.EnsureUIThread(); return (NSGlyphGenerator)(__mt_GlyphGenerator_var = ((!IsDirectBinding) ? ((NSGlyphGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGlyphGeneratorHandle))) : ((NSGlyphGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGlyphGeneratorHandle))))); } [Export("setGlyphGenerator:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGlyphGenerator_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGlyphGenerator_Handle, value.Handle); } __mt_GlyphGenerator_var = value; } } public virtual NSTypesetter Typesetter { [Export("typesetter")] get { NSApplication.EnsureUIThread(); return (NSTypesetter)(__mt_Typesetter_var = ((!IsDirectBinding) ? ((NSTypesetter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypesetterHandle))) : ((NSTypesetter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTypesetterHandle))))); } [Export("setTypesetter:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTypesetter_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTypesetter_Handle, value.Handle); } __mt_Typesetter_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public NSLayoutManagerDelegate Delegate { get { return WeakDelegate as NSLayoutManagerDelegate; } set { WeakDelegate = value; } } public virtual bool BackgroundLayoutEnabled { [Export("backgroundLayoutEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBackgroundLayoutEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBackgroundLayoutEnabledHandle); } [Export("setBackgroundLayoutEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBackgroundLayoutEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBackgroundLayoutEnabled_Handle, value); } } } public virtual bool UsesScreenFonts { [Export("usesScreenFonts")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesScreenFontsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesScreenFontsHandle); } [Export("setUsesScreenFonts:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesScreenFonts_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesScreenFonts_Handle, value); } } } public virtual bool ShowsInvisibleCharacters { [Export("showsInvisibleCharacters")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsInvisibleCharactersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsInvisibleCharactersHandle); } [Export("setShowsInvisibleCharacters:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsInvisibleCharacters_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsInvisibleCharacters_Handle, value); } } } public virtual bool ShowsControlCharacters { [Export("showsControlCharacters")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsControlCharactersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsControlCharactersHandle); } [Export("setShowsControlCharacters:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsControlCharacters_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsControlCharacters_Handle, value); } } } public virtual float HyphenationFactor { [Export("hyphenationFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selHyphenationFactorHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selHyphenationFactorHandle); } [Export("setHyphenationFactor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetHyphenationFactor_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetHyphenationFactor_Handle, value); } } } public virtual NSImageScaling DefaultAttachmentScaling { [Export("defaultAttachmentScaling")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScaling)Messaging.UInt64_objc_msgSend(base.Handle, selDefaultAttachmentScalingHandle); } return (NSImageScaling)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDefaultAttachmentScalingHandle); } [Export("setDefaultAttachmentScaling:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDefaultAttachmentScaling_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDefaultAttachmentScaling_Handle, (ulong)value); } } } public virtual NSTypesetterBehavior TypesetterBehavior { [Export("typesetterBehavior")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTypesetterBehavior)Messaging.Int64_objc_msgSend(base.Handle, selTypesetterBehaviorHandle); } return (NSTypesetterBehavior)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTypesetterBehaviorHandle); } [Export("setTypesetterBehavior:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTypesetterBehavior_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTypesetterBehavior_Handle, (long)value); } } } public virtual bool AllowsNonContiguousLayout { [Export("allowsNonContiguousLayout")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsNonContiguousLayoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsNonContiguousLayoutHandle); } [Export("setAllowsNonContiguousLayout:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsNonContiguousLayout_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsNonContiguousLayout_Handle, value); } } } public virtual bool UsesFontLeading { [Export("usesFontLeading")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesFontLeadingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesFontLeadingHandle); } [Export("setUsesFontLeading:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesFontLeading_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesFontLeading_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLayoutManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLayoutManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutManager(IntPtr handle) : base(handle) { } [Export("replaceTextStorage:")] public virtual void ReplaceTextStorage(NSTextStorage newTextStorage) { NSApplication.EnsureUIThread(); if (newTextStorage == null) { throw new ArgumentNullException("newTextStorage"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceTextStorage_Handle, newTextStorage.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceTextStorage_Handle, newTextStorage.Handle); } } [Export("addTextContainer:")] public virtual void AddTextContainer(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddTextContainer_Handle, container.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddTextContainer_Handle, container.Handle); } _ = TextContainers; } [Export("insertTextContainer:atIndex:")] public virtual void InsertTextContainer(NSTextContainer container, long index) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertTextContainerAtIndex_Handle, container.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertTextContainerAtIndex_Handle, container.Handle, index); } _ = TextContainers; } [Export("removeTextContainerAtIndex:")] public virtual void RemoveTextContainer(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveTextContainerAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveTextContainerAtIndex_Handle, index); } _ = TextContainers; } [Export("textContainerChangedGeometry:")] public virtual void TextContainerChangedGeometry(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextContainerChangedGeometry_Handle, container.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextContainerChangedGeometry_Handle, container.Handle); } } [Export("textContainerChangedTextView:")] public virtual void TextContainerChangedTextView(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextContainerChangedTextView_Handle, container.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextContainerChangedTextView_Handle, container.Handle); } } [Export("invalidateDisplayForCharacterRange:")] public virtual void InvalidateDisplayForCharacterRange(NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selInvalidateDisplayForCharacterRange_Handle, charRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selInvalidateDisplayForCharacterRange_Handle, charRange); } } [Export("invalidateDisplayForGlyphRange:")] public virtual void InvalidateDisplayForGlyphRange(NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selInvalidateDisplayForGlyphRange_Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selInvalidateDisplayForGlyphRange_Handle, glyphRange); } } [Export("textStorage:edited:range:changeInLength:invalidatedRange:")] public virtual void TextStorageEdited(NSTextStorage str, NSTextStorageEditedFlags editedMask, NSRange newCharRange, long changeInLength, NSRange invalidatedCharRange) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_NSRange_Int64_NSRange(base.Handle, selTextStorageEditedRangeChangeInLengthInvalidatedRange_Handle, str.Handle, (ulong)editedMask, newCharRange, changeInLength, invalidatedCharRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_NSRange_Int64_NSRange(base.SuperHandle, selTextStorageEditedRangeChangeInLengthInvalidatedRange_Handle, str.Handle, (ulong)editedMask, newCharRange, changeInLength, invalidatedCharRange); } } [Export("ensureGlyphsForCharacterRange:")] public virtual void EnsureGlyphsForCharacterRange(NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selEnsureGlyphsForCharacterRange_Handle, charRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selEnsureGlyphsForCharacterRange_Handle, charRange); } } [Export("ensureGlyphsForGlyphRange:")] public virtual void EnsureGlyphsForGlyphRange(NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selEnsureGlyphsForGlyphRange_Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selEnsureGlyphsForGlyphRange_Handle, glyphRange); } } [Export("ensureLayoutForCharacterRange:")] public virtual void EnsureLayoutForCharacterRange(NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selEnsureLayoutForCharacterRange_Handle, charRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selEnsureLayoutForCharacterRange_Handle, charRange); } } [Export("ensureLayoutForGlyphRange:")] public virtual void EnsureLayoutForGlyphRange(NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selEnsureLayoutForGlyphRange_Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selEnsureLayoutForGlyphRange_Handle, glyphRange); } } [Export("ensureLayoutForTextContainer:")] public virtual void EnsureLayoutForTextContainer(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEnsureLayoutForTextContainer_Handle, container.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEnsureLayoutForTextContainer_Handle, container.Handle); } } [Export("ensureLayoutForBoundingRect:inTextContainer:")] public virtual void EnsureLayoutForBoundingRect(CGRect bounds, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selEnsureLayoutForBoundingRectInTextContainer_Handle, bounds, container.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selEnsureLayoutForBoundingRectInTextContainer_Handle, bounds, container.Handle); } } [Export("insertGlyph:atGlyphIndex:characterIndex:")] public virtual void InsertGlyph(ulong glyph, long glyphIndex, long charIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Int64_Int64(base.Handle, selInsertGlyphAtGlyphIndexCharacterIndex_Handle, glyph, glyphIndex, charIndex); } else { Messaging.void_objc_msgSendSuper_UInt64_Int64_Int64(base.SuperHandle, selInsertGlyphAtGlyphIndexCharacterIndex_Handle, glyph, glyphIndex, charIndex); } } [Export("replaceGlyphAtIndex:withGlyph:")] public virtual void ReplaceGlyphAtIndex(long glyphIndex, ulong newGlyph) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_UInt64(base.Handle, selReplaceGlyphAtIndexWithGlyph_Handle, glyphIndex, newGlyph); } else { Messaging.void_objc_msgSendSuper_Int64_UInt64(base.SuperHandle, selReplaceGlyphAtIndexWithGlyph_Handle, glyphIndex, newGlyph); } } [Export("deleteGlyphsInRange:")] public virtual void DeleteGlyphs(NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selDeleteGlyphsInRange_Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selDeleteGlyphsInRange_Handle, glyphRange); } } [Export("setCharacterIndex:forGlyphAtIndex:")] public virtual void SetCharacterIndex(long charIndex, long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selSetCharacterIndexForGlyphAtIndex_Handle, charIndex, glyphIndex); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSetCharacterIndexForGlyphAtIndex_Handle, charIndex, glyphIndex); } } [Export("setIntAttribute:value:forGlyphAtIndex:")] public virtual void SetIntAttribute(long attributeTag, long value, long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64_Int64(base.Handle, selSetIntAttributeValueForGlyphAtIndex_Handle, attributeTag, value, glyphIndex); } else { Messaging.void_objc_msgSendSuper_Int64_Int64_Int64(base.SuperHandle, selSetIntAttributeValueForGlyphAtIndex_Handle, attributeTag, value, glyphIndex); } } [Export("invalidateGlyphsOnLayoutInvalidationForGlyphRange:")] public virtual void InvalidateGlyphsOnLayoutInvalidation(NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selInvalidateGlyphsOnLayoutInvalidationForGlyphRange_Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selInvalidateGlyphsOnLayoutInvalidationForGlyphRange_Handle, glyphRange); } } [Export("glyphAtIndex:isValidIndex:")] public virtual ulong GlyphAtIndexisValidIndex(ulong glyphIndex, ref bool isValidIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64_out_Boolean(base.Handle, selGlyphAtIndexIsValidIndex_Handle, glyphIndex, out isValidIndex); } return Messaging.UInt64_objc_msgSendSuper_UInt64_out_Boolean(base.SuperHandle, selGlyphAtIndexIsValidIndex_Handle, glyphIndex, out isValidIndex); } [Export("glyphAtIndex:")] public virtual ulong GlyphCount(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_Int64(base.Handle, selGlyphAtIndex_Handle, glyphIndex); } return Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selGlyphAtIndex_Handle, glyphIndex); } [Export("isValidGlyphIndex:")] public virtual bool IsValidGlyphIndex(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsValidGlyphIndex_Handle, glyphIndex); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsValidGlyphIndex_Handle, glyphIndex); } [Export("characterIndexForGlyphAtIndex:")] public virtual ulong CharacterIndexForGlyphAtIndex(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_Int64(base.Handle, selCharacterIndexForGlyphAtIndex_Handle, glyphIndex); } return Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selCharacterIndexForGlyphAtIndex_Handle, glyphIndex); } [Export("glyphIndexForCharacterAtIndex:")] public virtual ulong GlyphIndexForCharacterAtIndex(long charIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_Int64(base.Handle, selGlyphIndexForCharacterAtIndex_Handle, charIndex); } return Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selGlyphIndexForCharacterAtIndex_Handle, charIndex); } [Export("intAttribute:forGlyphAtIndex:")] public virtual long IntAttributeforGlyphAtIndex(long attributeTag, long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64_Int64(base.Handle, selIntAttributeForGlyphAtIndex_Handle, attributeTag, glyphIndex); } return Messaging.Int64_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selIntAttributeForGlyphAtIndex_Handle, attributeTag, glyphIndex); } [Export("getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:")] internal virtual long GetGlyphs(NSRange glyphRange, IntPtr glyphBuffer, IntPtr charIndexBuffer, IntPtr inscribeBuffer, IntPtr elasticBuffer) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_NSRange_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBits_Handle, glyphRange, glyphBuffer, charIndexBuffer, inscribeBuffer, elasticBuffer); } return Messaging.Int64_objc_msgSendSuper_NSRange_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBits_Handle, glyphRange, glyphBuffer, charIndexBuffer, inscribeBuffer, elasticBuffer); } [Export("getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:")] internal virtual long GetGlyphs(NSRange glyphRange, IntPtr glyphBuffer, IntPtr charIndexBuffer, IntPtr inscribeBuffer, IntPtr elasticBuffer, IntPtr bidiLevelBuffer) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_NSRange_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels_Handle, glyphRange, glyphBuffer, charIndexBuffer, inscribeBuffer, elasticBuffer, bidiLevelBuffer); } return Messaging.Int64_objc_msgSendSuper_NSRange_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selGetGlyphsInRangeGlyphsCharacterIndexesGlyphInscriptionsElasticBitsBidiLevels_Handle, glyphRange, glyphBuffer, charIndexBuffer, inscribeBuffer, elasticBuffer, bidiLevelBuffer); } [Export("getGlyphs:range:")] internal virtual ulong GetGlyphsrange(IntPtr glyphArray, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_IntPtr_NSRange(base.Handle, selGetGlyphsRange_Handle, glyphArray, glyphRange); } return Messaging.UInt64_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selGetGlyphsRange_Handle, glyphArray, glyphRange); } [Export("setTextContainer:forGlyphRange:")] public virtual void SetTextContainerForRange(NSTextContainer container, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetTextContainerForGlyphRange_Handle, container.Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetTextContainerForGlyphRange_Handle, container.Handle, glyphRange); } } [Export("setLineFragmentRect:forGlyphRange:usedRect:")] public virtual void SetLineFragmentRect(CGRect fragmentRect, NSRange glyphRange, CGRect usedRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_NSRange_CGRect(base.Handle, selSetLineFragmentRectForGlyphRangeUsedRect_Handle, fragmentRect, glyphRange, usedRect); } else { Messaging.void_objc_msgSendSuper_CGRect_NSRange_CGRect(base.SuperHandle, selSetLineFragmentRectForGlyphRangeUsedRect_Handle, fragmentRect, glyphRange, usedRect); } } [Export("setExtraLineFragmentRect:usedRect:textContainer:")] public virtual void SetExtraLineFragmentRect(CGRect fragmentRect, CGRect usedRect, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGRect_IntPtr(base.Handle, selSetExtraLineFragmentRectUsedRectTextContainer_Handle, fragmentRect, usedRect, container.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_CGRect_IntPtr(base.SuperHandle, selSetExtraLineFragmentRectUsedRectTextContainer_Handle, fragmentRect, usedRect, container.Handle); } } [Export("setLocation:forStartOfGlyphRange:")] public virtual void SetLocation(CGPoint location, NSRange forStartOfGlyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_NSRange(base.Handle, selSetLocationForStartOfGlyphRange_Handle, location, forStartOfGlyphRange); } else { Messaging.void_objc_msgSendSuper_CGPoint_NSRange(base.SuperHandle, selSetLocationForStartOfGlyphRange_Handle, location, forStartOfGlyphRange); } } [Export("setNotShownAttribute:forGlyphAtIndex:")] public virtual void SetNotShownAttribute(bool flag, long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetNotShownAttributeForGlyphAtIndex_Handle, flag, glyphIndex); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetNotShownAttributeForGlyphAtIndex_Handle, flag, glyphIndex); } } [Export("setDrawsOutsideLineFragment:forGlyphAtIndex:")] public virtual void SetDrawsOutsideLineFragment(bool flag, long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetDrawsOutsideLineFragmentForGlyphAtIndex_Handle, flag, glyphIndex); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetDrawsOutsideLineFragmentForGlyphAtIndex_Handle, flag, glyphIndex); } } [Export("setAttachmentSize:forGlyphRange:")] public virtual void SetAttachmentSize(CGSize attachmentSize, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize_NSRange(base.Handle, selSetAttachmentSizeForGlyphRange_Handle, attachmentSize, glyphRange); } else { Messaging.void_objc_msgSendSuper_CGSize_NSRange(base.SuperHandle, selSetAttachmentSizeForGlyphRange_Handle, attachmentSize, glyphRange); } } [Export("getFirstUnlaidCharacterIndex:glyphIndex:")] public virtual void GetFirstUnlaidCharacterIndex(ref ulong charIndex, ref ulong glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_UInt64_out_UInt64(base.Handle, selGetFirstUnlaidCharacterIndexGlyphIndex_Handle, out charIndex, out glyphIndex); } else { Messaging.void_objc_msgSendSuper_out_UInt64_out_UInt64(base.SuperHandle, selGetFirstUnlaidCharacterIndexGlyphIndex_Handle, out charIndex, out glyphIndex); } } [Export("usedRectForTextContainer:")] public virtual CGRect GetUsedRectForTextContainer(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr(out retval, base.Handle, selUsedRectForTextContainer_Handle, container.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr(out retval, base.SuperHandle, selUsedRectForTextContainer_Handle, container.Handle); } return retval; } [Export("locationForGlyphAtIndex:")] public virtual CGPoint LocationForGlyphAtIndex(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_Int64(base.Handle, selLocationForGlyphAtIndex_Handle, glyphIndex); } return Messaging.CGPoint_objc_msgSendSuper_Int64(base.SuperHandle, selLocationForGlyphAtIndex_Handle, glyphIndex); } [Export("notShownAttributeForGlyphAtIndex:")] public virtual bool NotShownAttributeForGlyphAtIndex(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selNotShownAttributeForGlyphAtIndex_Handle, glyphIndex); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selNotShownAttributeForGlyphAtIndex_Handle, glyphIndex); } [Export("drawsOutsideLineFragmentForGlyphAtIndex:")] public virtual bool DrawsOutsideLineFragmentForGlyphAt(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selDrawsOutsideLineFragmentForGlyphAtIndex_Handle, glyphIndex); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selDrawsOutsideLineFragmentForGlyphAtIndex_Handle, glyphIndex); } [Export("attachmentSizeForGlyphAtIndex:")] public virtual CGSize AttachmentSizeForGlyphAt(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_Int64(base.Handle, selAttachmentSizeForGlyphAtIndex_Handle, glyphIndex); } return Messaging.CGSize_objc_msgSendSuper_Int64(base.SuperHandle, selAttachmentSizeForGlyphAtIndex_Handle, glyphIndex); } [Export("setLayoutRect:forTextBlock:glyphRange:")] public virtual void SetLayoutRect(CGRect layoutRect, NSTextBlock forTextBlock, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (forTextBlock == null) { throw new ArgumentNullException("forTextBlock"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_NSRange(base.Handle, selSetLayoutRectForTextBlockGlyphRange_Handle, layoutRect, forTextBlock.Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_NSRange(base.SuperHandle, selSetLayoutRectForTextBlockGlyphRange_Handle, layoutRect, forTextBlock.Handle, glyphRange); } } [Export("setBoundsRect:forTextBlock:glyphRange:")] public virtual void SetBoundsRect(CGRect boundsRect, NSTextBlock forTextBlock, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (forTextBlock == null) { throw new ArgumentNullException("forTextBlock"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_NSRange(base.Handle, selSetBoundsRectForTextBlockGlyphRange_Handle, boundsRect, forTextBlock.Handle, glyphRange); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_NSRange(base.SuperHandle, selSetBoundsRectForTextBlockGlyphRange_Handle, boundsRect, forTextBlock.Handle, glyphRange); } } [Export("layoutRectForTextBlock:glyphRange:")] public virtual CGRect LayoutRect(NSTextBlock block, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (block == null) { throw new ArgumentNullException("block"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_NSRange(out retval, base.Handle, selLayoutRectForTextBlockGlyphRange_Handle, block.Handle, glyphRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_NSRange(out retval, base.SuperHandle, selLayoutRectForTextBlockGlyphRange_Handle, block.Handle, glyphRange); } return retval; } [Export("boundsRectForTextBlock:glyphRange:")] public virtual CGRect BoundsRect(NSTextBlock block, NSRange glyphRange) { NSApplication.EnsureUIThread(); if (block == null) { throw new ArgumentNullException("block"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_NSRange(out retval, base.Handle, selBoundsRectForTextBlockGlyphRange_Handle, block.Handle, glyphRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_NSRange(out retval, base.SuperHandle, selBoundsRectForTextBlockGlyphRange_Handle, block.Handle, glyphRange); } return retval; } [Export("glyphRangeForTextContainer:")] public virtual NSRange GetGlyphRange(NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_IntPtr(base.Handle, selGlyphRangeForTextContainer_Handle, container.Handle); } return Messaging.NSRange_objc_msgSendSuper_IntPtr(base.SuperHandle, selGlyphRangeForTextContainer_Handle, container.Handle); } [Export("rangeOfNominallySpacedGlyphsContainingIndex:")] public virtual NSRange RangeOfNominallySpacedGlyphsContainingIndex(long glyphIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_Int64(base.Handle, selRangeOfNominallySpacedGlyphsContainingIndex_Handle, glyphIndex); } return Messaging.NSRange_objc_msgSendSuper_Int64(base.SuperHandle, selRangeOfNominallySpacedGlyphsContainingIndex_Handle, glyphIndex); } [Export("boundingRectForGlyphRange:inTextContainer:")] public virtual CGRect BoundingRectForGlyphRange(NSRange glyphRange, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_NSRange_IntPtr(out retval, base.Handle, selBoundingRectForGlyphRangeInTextContainer_Handle, glyphRange, container.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_NSRange_IntPtr(out retval, base.SuperHandle, selBoundingRectForGlyphRangeInTextContainer_Handle, glyphRange, container.Handle); } return retval; } [Export("glyphRangeForBoundingRect:inTextContainer:")] public virtual NSRange GlyphRangeForBoundingRect(CGRect bounds, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_CGRect_IntPtr(base.Handle, selGlyphRangeForBoundingRectInTextContainer_Handle, bounds, container.Handle); } return Messaging.NSRange_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selGlyphRangeForBoundingRectInTextContainer_Handle, bounds, container.Handle); } [Export("glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:")] public virtual NSRange GlyphRangeForBoundingRectWithoutAdditionalLayout(CGRect bounds, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_CGRect_IntPtr(base.Handle, selGlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer_Handle, bounds, container.Handle); } return Messaging.NSRange_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selGlyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer_Handle, bounds, container.Handle); } [Export("glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:")] public virtual ulong GlyphIndexForPointInTextContainer(CGPoint point, NSTextContainer container, ref double fractionOfDistanceThroughGlyph) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_CGPoint_IntPtr_out_Double(base.Handle, selGlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph_Handle, point, container.Handle, out fractionOfDistanceThroughGlyph); } return Messaging.UInt64_objc_msgSendSuper_CGPoint_IntPtr_out_Double(base.SuperHandle, selGlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph_Handle, point, container.Handle, out fractionOfDistanceThroughGlyph); } [Export("glyphIndexForPoint:inTextContainer:")] public virtual ulong GlyphIndexForPoint(CGPoint point, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_CGPoint_IntPtr(base.Handle, selGlyphIndexForPointInTextContainer_Handle, point, container.Handle); } return Messaging.UInt64_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selGlyphIndexForPointInTextContainer_Handle, point, container.Handle); } [Export("fractionOfDistanceThroughGlyphForPoint:inTextContainer:")] public virtual double FractionOfDistanceThroughGlyphForPoint(CGPoint point, NSTextContainer container) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_CGPoint_IntPtr(base.Handle, selFractionOfDistanceThroughGlyphForPointInTextContainer_Handle, point, container.Handle); } return Messaging.Double_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selFractionOfDistanceThroughGlyphForPointInTextContainer_Handle, point, container.Handle); } [Export("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:")] public virtual ulong CharacterIndexForPoint(CGPoint point, NSTextContainer container, ref double fractionOfDistanceBetweenInsertionPoints) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_CGPoint_IntPtr_out_Double(base.Handle, selCharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints_Handle, point, container.Handle, out fractionOfDistanceBetweenInsertionPoints); } return Messaging.UInt64_objc_msgSendSuper_CGPoint_IntPtr_out_Double(base.SuperHandle, selCharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints_Handle, point, container.Handle, out fractionOfDistanceBetweenInsertionPoints); } [Export("getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:")] public virtual ulong GetLineFragmentInsertionPoints(ulong charIndex, bool aFlag, bool dFlag, IntPtr positions, IntPtr charIndexes) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64_bool_bool_IntPtr_IntPtr(base.Handle, selGetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes_Handle, charIndex, aFlag, dFlag, positions, charIndexes); } return Messaging.UInt64_objc_msgSendSuper_UInt64_bool_bool_IntPtr_IntPtr(base.SuperHandle, selGetLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes_Handle, charIndex, aFlag, dFlag, positions, charIndexes); } [Export("setTemporaryAttributes:forCharacterRange:")] public virtual void SetTemporaryAttributes(NSDictionary attrs, NSRange charRange) { NSApplication.EnsureUIThread(); if (attrs == null) { throw new ArgumentNullException("attrs"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetTemporaryAttributesForCharacterRange_Handle, attrs.Handle, charRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetTemporaryAttributesForCharacterRange_Handle, attrs.Handle, charRange); } } [Export("addTemporaryAttributes:forCharacterRange:")] public virtual void AddTemporaryAttributes(NSDictionary attrs, NSRange charRange) { NSApplication.EnsureUIThread(); if (attrs == null) { throw new ArgumentNullException("attrs"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selAddTemporaryAttributesForCharacterRange_Handle, attrs.Handle, charRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selAddTemporaryAttributesForCharacterRange_Handle, attrs.Handle, charRange); } } [Export("removeTemporaryAttribute:forCharacterRange:")] public virtual void RemoveTemporaryAttribute(string attrName, NSRange charRange) { NSApplication.EnsureUIThread(); if (attrName == null) { throw new ArgumentNullException("attrName"); } IntPtr arg = NSString.CreateNative(attrName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selRemoveTemporaryAttributeForCharacterRange_Handle, arg, charRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selRemoveTemporaryAttributeForCharacterRange_Handle, arg, charRange); } NSString.ReleaseNative(arg); } [Export("addTemporaryAttribute:value:forCharacterRange:")] public virtual void AddTemporaryAttribute(string attrName, NSObject value, NSRange charRange) { NSApplication.EnsureUIThread(); if (attrName == null) { throw new ArgumentNullException("attrName"); } if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(attrName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_NSRange(base.Handle, selAddTemporaryAttributeValueForCharacterRange_Handle, arg, value.Handle, charRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_NSRange(base.SuperHandle, selAddTemporaryAttributeValueForCharacterRange_Handle, arg, value.Handle, charRange); } NSString.ReleaseNative(arg); } [Export("substituteFontForFont:")] public virtual NSFont SubstituteFontForFont(NSFont originalFont) { NSApplication.EnsureUIThread(); if (originalFont == null) { throw new ArgumentNullException("originalFont"); } if (IsDirectBinding) { return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSubstituteFontForFont_Handle, originalFont.Handle)); } return (NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSubstituteFontForFont_Handle, originalFont.Handle)); } [Export("defaultLineHeightForFont:")] public virtual double DefaultLineHeightForFont(NSFont theFont) { NSApplication.EnsureUIThread(); if (theFont == null) { throw new ArgumentNullException("theFont"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDefaultLineHeightForFont_Handle, theFont.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDefaultLineHeightForFont_Handle, theFont.Handle); } [Export("defaultBaselineOffsetForFont:")] public virtual double DefaultBaselineOffsetForFont(NSFont theFont) { NSApplication.EnsureUIThread(); if (theFont == null) { throw new ArgumentNullException("theFont"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDefaultBaselineOffsetForFont_Handle, theFont.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDefaultBaselineOffsetForFont_Handle, theFont.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AttributedString_var = null; __mt_TextContainers_var = null; __mt_ExtraLineFragmentTextContainer_var = null; __mt_TextStorage_var = null; __mt_GlyphGenerator_var = null; __mt_Typesetter_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutManagerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSLayoutManagerDelegate", true)] [Model] public class NSLayoutManagerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLayoutManagerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLayoutManagerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutManagerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLayoutManagerDelegate(IntPtr handle) : base(handle) { } [Export("layoutManagerDidInvalidateLayout:")] public virtual void LayoutInvalidated(NSLayoutManager sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("layoutManager:didCompleteLayoutForTextContainer:atEnd:")] public virtual void LayoutCompleted(NSLayoutManager layoutManager, NSTextContainer textContainer, bool layoutFinishedFlag) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")] public virtual NSDictionary ShouldUseTemporaryAttributes(NSLayoutManager layoutManager, NSDictionary temporaryAttributes, bool drawingToScreen, long charIndex, IntPtr effectiveCharRange) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutPriority.cs ================================================ namespace AppKit; public enum NSLayoutPriority { Required = 1000, DefaultHigh = 750, DragThatCanResizeWindow = 510, WindowSizeStayPut = 500, DragThatCannotResizeWindow = 490, DefaultLow = 250, FittingSizeCompression = 50 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLayoutRelation.cs ================================================ namespace AppKit; public enum NSLayoutRelation : long { LessThanOrEqual = -1L, Equal, GreaterThanOrEqual } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLevelIndicator.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSLevelIndicator", true)] public class NSLevelIndicator : NSControl { private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selWarningValueHandle = Selector.GetHandle("warningValue"); private static readonly IntPtr selSetWarningValue_Handle = Selector.GetHandle("setWarningValue:"); private static readonly IntPtr selCriticalValueHandle = Selector.GetHandle("criticalValue"); private static readonly IntPtr selSetCriticalValue_Handle = Selector.GetHandle("setCriticalValue:"); private static readonly IntPtr selTickMarkPositionHandle = Selector.GetHandle("tickMarkPosition"); private static readonly IntPtr selSetTickMarkPosition_Handle = Selector.GetHandle("setTickMarkPosition:"); private static readonly IntPtr selNumberOfTickMarksHandle = Selector.GetHandle("numberOfTickMarks"); private static readonly IntPtr selSetNumberOfTickMarks_Handle = Selector.GetHandle("setNumberOfTickMarks:"); private static readonly IntPtr selNumberOfMajorTickMarksHandle = Selector.GetHandle("numberOfMajorTickMarks"); private static readonly IntPtr selSetNumberOfMajorTickMarks_Handle = Selector.GetHandle("setNumberOfMajorTickMarks:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selTickMarkValueAtIndex_Handle = Selector.GetHandle("tickMarkValueAtIndex:"); private static readonly IntPtr selRectOfTickMarkAtIndex_Handle = Selector.GetHandle("rectOfTickMarkAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLevelIndicator"); public new NSLevelIndicatorCell Cell { get { return (NSLevelIndicatorCell)base.Cell; } set { base.Cell = value; } } public override IntPtr ClassHandle => class_ptr; public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual double WarningValue { [Export("warningValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWarningValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWarningValueHandle); } [Export("setWarningValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetWarningValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetWarningValue_Handle, value); } } } public virtual double CriticalValue { [Export("criticalValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCriticalValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCriticalValueHandle); } [Export("setCriticalValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCriticalValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCriticalValue_Handle, value); } } } public virtual NSTickMarkPosition TickMarkPosition { [Export("tickMarkPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTickMarkPosition)Messaging.UInt64_objc_msgSend(base.Handle, selTickMarkPositionHandle); } return (NSTickMarkPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTickMarkPositionHandle); } [Export("setTickMarkPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTickMarkPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTickMarkPosition_Handle, (ulong)value); } } } public virtual long TickMarkCount { [Export("numberOfTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfTickMarksHandle); } [Export("setNumberOfTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfTickMarks_Handle, value); } } } public virtual long MajorTickMarkCount { [Export("numberOfMajorTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfMajorTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfMajorTickMarksHandle); } [Export("setNumberOfMajorTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfMajorTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfMajorTickMarks_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLevelIndicator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLevelIndicator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLevelIndicator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLevelIndicator(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSLevelIndicator(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("tickMarkValueAtIndex:")] public virtual double TickMarkValueAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selTickMarkValueAtIndex_Handle, index); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selTickMarkValueAtIndex_Handle, index); } [Export("rectOfTickMarkAtIndex:")] public virtual CGRect RectOfTickMark(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfTickMarkAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfTickMarkAtIndex_Handle, index); } return retval; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLevelIndicatorCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSLevelIndicatorCell", true)] public class NSLevelIndicatorCell : NSActionCell { private static readonly IntPtr selLevelIndicatorStyleHandle = Selector.GetHandle("levelIndicatorStyle"); private static readonly IntPtr selSetLevelIndicatorStyle_Handle = Selector.GetHandle("setLevelIndicatorStyle:"); private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selWarningValueHandle = Selector.GetHandle("warningValue"); private static readonly IntPtr selSetWarningValue_Handle = Selector.GetHandle("setWarningValue:"); private static readonly IntPtr selCriticalValueHandle = Selector.GetHandle("criticalValue"); private static readonly IntPtr selSetCriticalValue_Handle = Selector.GetHandle("setCriticalValue:"); private static readonly IntPtr selTickMarkPositionHandle = Selector.GetHandle("tickMarkPosition"); private static readonly IntPtr selSetTickMarkPosition_Handle = Selector.GetHandle("setTickMarkPosition:"); private static readonly IntPtr selNumberOfTickMarksHandle = Selector.GetHandle("numberOfTickMarks"); private static readonly IntPtr selSetNumberOfTickMarks_Handle = Selector.GetHandle("setNumberOfTickMarks:"); private static readonly IntPtr selNumberOfMajorTickMarksHandle = Selector.GetHandle("numberOfMajorTickMarks"); private static readonly IntPtr selSetNumberOfMajorTickMarks_Handle = Selector.GetHandle("setNumberOfMajorTickMarks:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selInitWithLevelIndicatorStyle_Handle = Selector.GetHandle("initWithLevelIndicatorStyle:"); private static readonly IntPtr selRectOfTickMarkAtIndex_Handle = Selector.GetHandle("rectOfTickMarkAtIndex:"); private static readonly IntPtr selTickMarkValueAtIndex_Handle = Selector.GetHandle("tickMarkValueAtIndex:"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLevelIndicatorCell"); public override IntPtr ClassHandle => class_ptr; public virtual NSLevelIndicatorStyle LevelIndicatorStyle { [Export("levelIndicatorStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLevelIndicatorStyle)Messaging.UInt64_objc_msgSend(base.Handle, selLevelIndicatorStyleHandle); } return (NSLevelIndicatorStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLevelIndicatorStyleHandle); } [Export("setLevelIndicatorStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLevelIndicatorStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLevelIndicatorStyle_Handle, (ulong)value); } } } public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual double WarningValue { [Export("warningValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWarningValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWarningValueHandle); } [Export("setWarningValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetWarningValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetWarningValue_Handle, value); } } } public virtual double CriticalValue { [Export("criticalValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCriticalValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCriticalValueHandle); } [Export("setCriticalValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCriticalValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCriticalValue_Handle, value); } } } public virtual NSTickMarkPosition TickMarkPosition { [Export("tickMarkPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTickMarkPosition)Messaging.UInt64_objc_msgSend(base.Handle, selTickMarkPositionHandle); } return (NSTickMarkPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTickMarkPositionHandle); } [Export("setTickMarkPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTickMarkPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTickMarkPosition_Handle, (ulong)value); } } } public virtual long TickMarkCount { [Export("numberOfTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfTickMarksHandle); } [Export("setNumberOfTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfTickMarks_Handle, value); } } } public virtual long MajorTickMarkCount { [Export("numberOfMajorTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfMajorTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfMajorTickMarksHandle); } [Export("setNumberOfMajorTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfMajorTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfMajorTickMarks_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLevelIndicatorCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLevelIndicatorCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLevelIndicatorCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLevelIndicatorCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSLevelIndicatorCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSLevelIndicatorCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("initWithLevelIndicatorStyle:")] public NSLevelIndicatorCell(NSLevelIndicatorStyle levelIndicatorStyle) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithLevelIndicatorStyle_Handle, (ulong)levelIndicatorStyle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithLevelIndicatorStyle_Handle, (ulong)levelIndicatorStyle); } } [Export("rectOfTickMarkAtIndex:")] public virtual CGRect RectOfTickMarkAt(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfTickMarkAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfTickMarkAtIndex_Handle, index); } return retval; } [Export("tickMarkValueAtIndex:")] public virtual double TickMarkValueAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selTickMarkValueAtIndex_Handle, index); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selTickMarkValueAtIndex_Handle, index); } [Export("setImage:")] public virtual void SetImage(NSImage image) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, image.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, image.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLevelIndicatorStyle.cs ================================================ namespace AppKit; public enum NSLevelIndicatorStyle : ulong { Relevancy, ContinuousCapacity, DiscreteCapacity, RatingLevel } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLineBreakMode.cs ================================================ namespace AppKit; public enum NSLineBreakMode : ulong { ByWordWrapping, CharWrapping, Clipping, TruncatingHead, TruncatingTail, TruncatingMiddle } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLineCapStyle.cs ================================================ namespace AppKit; public enum NSLineCapStyle { Butt, Round, Square } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLineJoinStyle.cs ================================================ namespace AppKit; public enum NSLineJoinStyle { Miter, Round, Bevel } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLineMovementDirection.cs ================================================ namespace AppKit; public enum NSLineMovementDirection : ulong { None, Left, Right, Down, Up } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSLineSweepDirection.cs ================================================ namespace AppKit; public enum NSLineSweepDirection : ulong { NSLineSweepLeft, NSLineSweepRight, NSLineSweepDown, NSLineSweepUp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMatrix.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMatrix", true)] public class NSMatrix : NSControl { [Register] private sealed class _NSMatrixDelegate : NSMatrixDelegate { internal NSControlText textShouldBeginEditing; internal NSControlText textShouldEndEditing; internal NSControlTextError didFailToFormatString; internal EventHandler didFailToValidatePartialString; internal NSControlTextValidation isValidObject; internal NSControlCommand doCommandBySelector; internal NSControlTextCompletion getCompletions; [Preserve(Conditional = true)] public override bool TextShouldBeginEditing(NSControl control, NSText fieldEditor) { return textShouldBeginEditing?.Invoke(control, fieldEditor) ?? true; } [Preserve(Conditional = true)] public override bool TextShouldEndEditing(NSControl control, NSText fieldEditor) { return textShouldEndEditing?.Invoke(control, fieldEditor) ?? true; } [Preserve(Conditional = true)] public override bool DidFailToFormatString(NSControl control, string str, string error) { return didFailToFormatString?.Invoke(control, str, error) ?? true; } [Preserve(Conditional = true)] public override void DidFailToValidatePartialString(NSControl control, string str, string error) { EventHandler eventHandler = didFailToValidatePartialString; if (eventHandler != null) { NSControlTextErrorEventArgs e = new NSControlTextErrorEventArgs(str, error); eventHandler(control, e); } } [Preserve(Conditional = true)] public override bool IsValidObject(NSControl control, NSObject objectToValidate) { return isValidObject?.Invoke(control, objectToValidate) ?? true; } [Preserve(Conditional = true)] public override bool DoCommandBySelector(NSControl control, NSTextView textView, Selector commandSelector) { return doCommandBySelector?.Invoke(control, textView, commandSelector) ?? false; } [Preserve(Conditional = true)] public override string[] GetCompletions(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index) { return getCompletions?.Invoke(control, textView, words, charRange, index); } } private static readonly IntPtr selCellsHandle = Selector.GetHandle("cells"); private static readonly IntPtr selSelectedCellHandle = Selector.GetHandle("selectedCell"); private static readonly IntPtr selSelectedCellsHandle = Selector.GetHandle("selectedCells"); private static readonly IntPtr selSelectedRowHandle = Selector.GetHandle("selectedRow"); private static readonly IntPtr selSelectedColumnHandle = Selector.GetHandle("selectedColumn"); private static readonly IntPtr selNumberOfRowsHandle = Selector.GetHandle("numberOfRows"); private static readonly IntPtr selNumberOfColumnsHandle = Selector.GetHandle("numberOfColumns"); private static readonly IntPtr selCellClassHandle = Selector.GetHandle("cellClass"); private static readonly IntPtr selSetCellClass_Handle = Selector.GetHandle("setCellClass:"); private static readonly IntPtr selPrototypeHandle = Selector.GetHandle("prototype"); private static readonly IntPtr selSetPrototype_Handle = Selector.GetHandle("setPrototype:"); private static readonly IntPtr selModeHandle = Selector.GetHandle("mode"); private static readonly IntPtr selSetMode_Handle = Selector.GetHandle("setMode:"); private static readonly IntPtr selAllowsEmptySelectionHandle = Selector.GetHandle("allowsEmptySelection"); private static readonly IntPtr selSetAllowsEmptySelection_Handle = Selector.GetHandle("setAllowsEmptySelection:"); private static readonly IntPtr selIsSelectionByRectHandle = Selector.GetHandle("isSelectionByRect"); private static readonly IntPtr selSetSelectionByRect_Handle = Selector.GetHandle("setSelectionByRect:"); private static readonly IntPtr selCellSizeHandle = Selector.GetHandle("cellSize"); private static readonly IntPtr selSetCellSize_Handle = Selector.GetHandle("setCellSize:"); private static readonly IntPtr selIntercellSpacingHandle = Selector.GetHandle("intercellSpacing"); private static readonly IntPtr selSetIntercellSpacing_Handle = Selector.GetHandle("setIntercellSpacing:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selCellBackgroundColorHandle = Selector.GetHandle("cellBackgroundColor"); private static readonly IntPtr selSetCellBackgroundColor_Handle = Selector.GetHandle("setCellBackgroundColor:"); private static readonly IntPtr selDrawsCellBackgroundHandle = Selector.GetHandle("drawsCellBackground"); private static readonly IntPtr selSetDrawsCellBackground_Handle = Selector.GetHandle("setDrawsCellBackground:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selAutosizesCellsHandle = Selector.GetHandle("autosizesCells"); private static readonly IntPtr selSetAutosizesCells_Handle = Selector.GetHandle("setAutosizesCells:"); private static readonly IntPtr selIsAutoscrollHandle = Selector.GetHandle("isAutoscroll"); private static readonly IntPtr selSetAutoscroll_Handle = Selector.GetHandle("setAutoscroll:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selTabKeyTraversesCellsHandle = Selector.GetHandle("tabKeyTraversesCells"); private static readonly IntPtr selSetTabKeyTraversesCells_Handle = Selector.GetHandle("setTabKeyTraversesCells:"); private static readonly IntPtr selKeyCellHandle = Selector.GetHandle("keyCell"); private static readonly IntPtr selSetKeyCell_Handle = Selector.GetHandle("setKeyCell:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle = Selector.GetHandle("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:"); private static readonly IntPtr selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle = Selector.GetHandle("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:"); private static readonly IntPtr selMakeCellAtRowColumn_Handle = Selector.GetHandle("makeCellAtRow:column:"); private static readonly IntPtr selSendActionToForAllCells_Handle = Selector.GetHandle("sendAction:to:forAllCells:"); private static readonly IntPtr selSortUsingSelector_Handle = Selector.GetHandle("sortUsingSelector:"); private static readonly IntPtr selSetSelectionFromToAnchorHighlight_Handle = Selector.GetHandle("setSelectionFrom:to:anchor:highlight:"); private static readonly IntPtr selDeselectSelectedCellHandle = Selector.GetHandle("deselectSelectedCell"); private static readonly IntPtr selDeselectAllCellsHandle = Selector.GetHandle("deselectAllCells"); private static readonly IntPtr selSelectCellAtRowColumn_Handle = Selector.GetHandle("selectCellAtRow:column:"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selSelectCellWithTag_Handle = Selector.GetHandle("selectCellWithTag:"); private static readonly IntPtr selSetScrollable_Handle = Selector.GetHandle("setScrollable:"); private static readonly IntPtr selSetStateAtRowColumn_Handle = Selector.GetHandle("setState:atRow:column:"); private static readonly IntPtr selGetNumberOfRowsColumns_Handle = Selector.GetHandle("getNumberOfRows:columns:"); private static readonly IntPtr selCellAtRowColumn_Handle = Selector.GetHandle("cellAtRow:column:"); private static readonly IntPtr selCellFrameAtRowColumn_Handle = Selector.GetHandle("cellFrameAtRow:column:"); private static readonly IntPtr selGetRowColumnOfCell_Handle = Selector.GetHandle("getRow:column:ofCell:"); private static readonly IntPtr selGetRowColumnForPoint_Handle = Selector.GetHandle("getRow:column:forPoint:"); private static readonly IntPtr selRenewRowsColumns_Handle = Selector.GetHandle("renewRows:columns:"); private static readonly IntPtr selPutCellAtRowColumn_Handle = Selector.GetHandle("putCell:atRow:column:"); private static readonly IntPtr selAddRowHandle = Selector.GetHandle("addRow"); private static readonly IntPtr selAddRowWithCells_Handle = Selector.GetHandle("addRowWithCells:"); private static readonly IntPtr selInsertRow_Handle = Selector.GetHandle("insertRow:"); private static readonly IntPtr selInsertRowWithCells_Handle = Selector.GetHandle("insertRow:withCells:"); private static readonly IntPtr selRemoveRow_Handle = Selector.GetHandle("removeRow:"); private static readonly IntPtr selAddColumnHandle = Selector.GetHandle("addColumn"); private static readonly IntPtr selAddColumnWithCells_Handle = Selector.GetHandle("addColumnWithCells:"); private static readonly IntPtr selInsertColumn_Handle = Selector.GetHandle("insertColumn:"); private static readonly IntPtr selInsertColumnWithCells_Handle = Selector.GetHandle("insertColumn:withCells:"); private static readonly IntPtr selRemoveColumn_Handle = Selector.GetHandle("removeColumn:"); private static readonly IntPtr selCellWithTag_Handle = Selector.GetHandle("cellWithTag:"); private static readonly IntPtr selSizeToCellsHandle = Selector.GetHandle("sizeToCells"); private static readonly IntPtr selSetValidateSize_Handle = Selector.GetHandle("setValidateSize:"); private static readonly IntPtr selDrawCellAtRowColumn_Handle = Selector.GetHandle("drawCellAtRow:column:"); private static readonly IntPtr selHighlightCellAtRowColumn_Handle = Selector.GetHandle("highlightCell:atRow:column:"); private static readonly IntPtr selScrollCellToVisibleAtRowColumn_Handle = Selector.GetHandle("scrollCellToVisibleAtRow:column:"); private static readonly IntPtr selMouseDownFlagsHandle = Selector.GetHandle("mouseDownFlags"); private static readonly IntPtr selMouseDown_Handle = Selector.GetHandle("mouseDown:"); private static readonly IntPtr selPerformKeyEquivalent_Handle = Selector.GetHandle("performKeyEquivalent:"); private static readonly IntPtr selSendActionHandle = Selector.GetHandle("sendAction"); private static readonly IntPtr selSendDoubleActionHandle = Selector.GetHandle("sendDoubleAction"); private static readonly IntPtr selTextShouldBeginEditing_Handle = Selector.GetHandle("textShouldBeginEditing:"); private static readonly IntPtr selTextShouldEndEditing_Handle = Selector.GetHandle("textShouldEndEditing:"); private static readonly IntPtr selTextDidBeginEditing_Handle = Selector.GetHandle("textDidBeginEditing:"); private static readonly IntPtr selTextDidEndEditing_Handle = Selector.GetHandle("textDidEndEditing:"); private static readonly IntPtr selTextDidChange_Handle = Selector.GetHandle("textDidChange:"); private static readonly IntPtr selSelectText_Handle = Selector.GetHandle("selectText:"); private static readonly IntPtr selSelectTextAtRowColumn_Handle = Selector.GetHandle("selectTextAtRow:column:"); private static readonly IntPtr selAcceptsFirstMouse_Handle = Selector.GetHandle("acceptsFirstMouse:"); private static readonly IntPtr selResetCursorRectsHandle = Selector.GetHandle("resetCursorRects"); private static readonly IntPtr selSetToolTipForCell_Handle = Selector.GetHandle("setToolTip:forCell:"); private static readonly IntPtr selToolTipForCell_Handle = Selector.GetHandle("toolTipForCell:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMatrix"); private object __mt_Cells_var; private object __mt_SelectedCell_var; private object __mt_SelectedCells_var; private object __mt_Prototype_var; private object __mt_BackgroundColor_var; private object __mt_CellBackgroundColor_var; private object __mt_WeakDelegate_var; private object __mt_KeyCell_var; public NSCell this[int col, int row] => CellAtRowColumn(row, col); public override IntPtr ClassHandle => class_ptr; public virtual NSCell[] Cells { [Export("cells")] get { NSApplication.EnsureUIThread(); return (NSCell[])(__mt_Cells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCellsHandle)))); } } public new virtual NSCell SelectedCell { [Export("selectedCell")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_SelectedCell_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedCellHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedCellHandle))))); } } public virtual NSCell[] SelectedCells { [Export("selectedCells")] get { NSApplication.EnsureUIThread(); return (NSCell[])(__mt_SelectedCells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedCellsHandle)))); } } public virtual long SelectedRow { [Export("selectedRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedRowHandle); } } public virtual long SelectedColumn { [Export("selectedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedColumnHandle); } } public virtual long Rows { [Export("numberOfRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfRowsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfRowsHandle); } } public virtual long Columns { [Export("numberOfColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfColumnsHandle); } } public new virtual Class CellClass { [Export("cellClass")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selCellClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellClassHandle)); } [Export("setCellClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCellClass_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCellClass_Handle, value.Handle); } } } public virtual NSCell Prototype { [Export("prototype")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_Prototype_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrototypeHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrototypeHandle))))); } [Export("setPrototype:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrototype_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrototype_Handle, value.Handle); } __mt_Prototype_var = value; } } public virtual NSMatrixMode Mode { [Export("mode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMatrixMode)Messaging.int_objc_msgSend(base.Handle, selModeHandle); } return (NSMatrixMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selModeHandle); } [Export("setMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMode_Handle, (int)value); } } } public virtual bool AllowsEmptySelection { [Export("allowsEmptySelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEmptySelectionHandle); } [Export("setAllowsEmptySelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEmptySelection_Handle, value); } } } public virtual bool SelectionByRect { [Export("isSelectionByRect")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectionByRectHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectionByRectHandle); } [Export("setSelectionByRect:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectionByRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectionByRect_Handle, value); } } } public virtual CGSize CellSize { [Export("cellSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selCellSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selCellSizeHandle); } [Export("setCellSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetCellSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetCellSize_Handle, value); } } } public virtual CGSize IntercellSpacing { [Export("intercellSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntercellSpacingHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntercellSpacingHandle); } [Export("setIntercellSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetIntercellSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetIntercellSpacing_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSColor CellBackgroundColor { [Export("cellBackgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_CellBackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCellBackgroundColorHandle))))); } [Export("setCellBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCellBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCellBackgroundColor_Handle, value.Handle); } __mt_CellBackgroundColor_var = value; } } public virtual bool DrawsCellBackground { [Export("drawsCellBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsCellBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsCellBackgroundHandle); } [Export("setDrawsCellBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsCellBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsCellBackground_Handle, value); } } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual bool AutosizesCells { [Export("autosizesCells")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosizesCellsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosizesCellsHandle); } [Export("setAutosizesCells:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutosizesCells_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutosizesCells_Handle, value); } } } public new virtual bool Autoscroll { [Export("isAutoscroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutoscrollHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutoscrollHandle); } [Export("setAutoscroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoscroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoscroll_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSMatrixDelegate Delegate { get { return WeakDelegate as NSMatrixDelegate; } set { WeakDelegate = value; } } public virtual bool TabKeyTraversesCells { [Export("tabKeyTraversesCells")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTabKeyTraversesCellsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTabKeyTraversesCellsHandle); } [Export("setTabKeyTraversesCells:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTabKeyTraversesCells_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTabKeyTraversesCells_Handle, value); } } } public virtual NSObject KeyCell { [Export("keyCell")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_KeyCell_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyCellHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyCellHandle)))); } [Export("setKeyCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyCell_Handle, value.Handle); } __mt_KeyCell_var = value; } } public NSControlText TextShouldBeginEditing { get { return EnsureNSMatrixDelegate().textShouldBeginEditing; } set { EnsureNSMatrixDelegate().textShouldBeginEditing = value; } } public NSControlText TextShouldEndEditing { get { return EnsureNSMatrixDelegate().textShouldEndEditing; } set { EnsureNSMatrixDelegate().textShouldEndEditing = value; } } public NSControlTextError DidFailToFormatString { get { return EnsureNSMatrixDelegate().didFailToFormatString; } set { EnsureNSMatrixDelegate().didFailToFormatString = value; } } public NSControlTextValidation IsValidObject { get { return EnsureNSMatrixDelegate().isValidObject; } set { EnsureNSMatrixDelegate().isValidObject = value; } } public NSControlCommand DoCommandBySelector { get { return EnsureNSMatrixDelegate().doCommandBySelector; } set { EnsureNSMatrixDelegate().doCommandBySelector = value; } } public NSControlTextCompletion GetCompletions { get { return EnsureNSMatrixDelegate().getCompletions; } set { EnsureNSMatrixDelegate().getCompletions = value; } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } public event EventHandler DidFailToValidatePartialString { add { _NSMatrixDelegate nSMatrixDelegate = EnsureNSMatrixDelegate(); nSMatrixDelegate.didFailToValidatePartialString = (EventHandler)System.Delegate.Combine(nSMatrixDelegate.didFailToValidatePartialString, value); } remove { _NSMatrixDelegate nSMatrixDelegate = EnsureNSMatrixDelegate(); nSMatrixDelegate.didFailToValidatePartialString = (EventHandler)System.Delegate.Remove(nSMatrixDelegate.didFailToValidatePartialString, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMatrix() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMatrix(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMatrix(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMatrix(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSMatrix(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("initWithFrame:mode:prototype:numberOfRows:numberOfColumns:")] public NSMatrix(CGRect frameRect, NSMatrixMode aMode, NSCell aCell, long rowsHigh, long colsWide) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_int_IntPtr_Int64_Int64(base.Handle, selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, aCell.Handle, rowsHigh, colsWide); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_int_IntPtr_Int64_Int64(base.SuperHandle, selInitWithFrameModePrototypeNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, aCell.Handle, rowsHigh, colsWide); } } [Export("initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:")] public NSMatrix(CGRect frameRect, NSMatrixMode aMode, Class factoryId, long rowsHigh, long colsWide) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (factoryId == null) { throw new ArgumentNullException("factoryId"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_int_IntPtr_Int64_Int64(base.Handle, selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, factoryId.Handle, rowsHigh, colsWide); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_int_IntPtr_Int64_Int64(base.SuperHandle, selInitWithFrameModeCellClassNumberOfRowsNumberOfColumns_Handle, frameRect, (int)aMode, factoryId.Handle, rowsHigh, colsWide); } } [Export("makeCellAtRow:column:")] public virtual NSCell MakeCell(long row, long col) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selMakeCellAtRowColumn_Handle, row, col)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selMakeCellAtRowColumn_Handle, row, col)); } [Export("sendAction:to:forAllCells:")] public virtual void SendAction(Selector aSelector, NSObject anObject, bool forAllCells) { NSApplication.EnsureUIThread(); if (aSelector == null) { throw new ArgumentNullException("aSelector"); } if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selSendActionToForAllCells_Handle, aSelector.Handle, anObject.Handle, forAllCells); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selSendActionToForAllCells_Handle, aSelector.Handle, anObject.Handle, forAllCells); } } [Export("sortUsingSelector:")] public virtual void Sort(Selector comparator) { NSApplication.EnsureUIThread(); if (comparator == null) { throw new ArgumentNullException("comparator"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSortUsingSelector_Handle, comparator.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSortUsingSelector_Handle, comparator.Handle); } } [Export("setSelectionFrom:to:anchor:highlight:")] public virtual void SetSelection(long startPos, long endPos, long anchorPos, bool highlight) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64_Int64_bool(base.Handle, selSetSelectionFromToAnchorHighlight_Handle, startPos, endPos, anchorPos, highlight); } else { Messaging.void_objc_msgSendSuper_Int64_Int64_Int64_bool(base.SuperHandle, selSetSelectionFromToAnchorHighlight_Handle, startPos, endPos, anchorPos, highlight); } } [Export("deselectSelectedCell")] public virtual void DeselectSelectedCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeselectSelectedCellHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeselectSelectedCellHandle); } } [Export("deselectAllCells")] public virtual void DeselectAllCells() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeselectAllCellsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeselectAllCellsHandle); } } [Export("selectCellAtRow:column:")] public virtual void SelectCell(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selSelectCellAtRowColumn_Handle, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSelectCellAtRowColumn_Handle, row, column); } } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender.Handle); } } [Export("selectCellWithTag:")] public virtual bool SelectCellWithTag(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selSelectCellWithTag_Handle, tag); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selSelectCellWithTag_Handle, tag); } [Export("setScrollable:")] public virtual void SetScrollable(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetScrollable_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetScrollable_Handle, flag); } } [Export("setState:atRow:column:")] public virtual void SetState(long state, long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64_Int64(base.Handle, selSetStateAtRowColumn_Handle, state, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64_Int64(base.SuperHandle, selSetStateAtRowColumn_Handle, state, row, column); } } [Export("getNumberOfRows:columns:")] public virtual void GetRowsAndColumnsCount(out long rowCount, out long colCount) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Int64_out_Int64(base.Handle, selGetNumberOfRowsColumns_Handle, out rowCount, out colCount); } else { Messaging.void_objc_msgSendSuper_out_Int64_out_Int64(base.SuperHandle, selGetNumberOfRowsColumns_Handle, out rowCount, out colCount); } } [Export("cellAtRow:column:")] internal virtual NSCell CellAtRowColumn(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selCellAtRowColumn_Handle, row, column)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selCellAtRowColumn_Handle, row, column)); } [Export("cellFrameAtRow:column:")] public virtual CGRect CellFrameAtRowColumn(long row, long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64_Int64(out retval, base.Handle, selCellFrameAtRowColumn_Handle, row, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64_Int64(out retval, base.SuperHandle, selCellFrameAtRowColumn_Handle, row, column); } return retval; } [Export("getRow:column:ofCell:")] public virtual bool GetRowColumn(out long row, out long column, NSCell aCell) { NSApplication.EnsureUIThread(); if (aCell == null) { throw new ArgumentNullException("aCell"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_out_Int64_out_Int64_IntPtr(base.Handle, selGetRowColumnOfCell_Handle, out row, out column, aCell.Handle); } return Messaging.bool_objc_msgSendSuper_out_Int64_out_Int64_IntPtr(base.SuperHandle, selGetRowColumnOfCell_Handle, out row, out column, aCell.Handle); } [Export("getRow:column:forPoint:")] public virtual bool GetRowColumnForPoint(out long row, out long column, CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_out_Int64_out_Int64_CGPoint(base.Handle, selGetRowColumnForPoint_Handle, out row, out column, aPoint); } return Messaging.bool_objc_msgSendSuper_out_Int64_out_Int64_CGPoint(base.SuperHandle, selGetRowColumnForPoint_Handle, out row, out column, aPoint); } [Export("renewRows:columns:")] public virtual void RenewRowsColumns(long newRows, long newCols) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selRenewRowsColumns_Handle, newRows, newCols); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selRenewRowsColumns_Handle, newRows, newCols); } } [Export("putCell:atRow:column:")] public virtual void PutCell(NSCell newCell, long row, long column) { NSApplication.EnsureUIThread(); if (newCell == null) { throw new ArgumentNullException("newCell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64_Int64(base.Handle, selPutCellAtRowColumn_Handle, newCell.Handle, row, column); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64_Int64(base.SuperHandle, selPutCellAtRowColumn_Handle, newCell.Handle, row, column); } } [Export("addRow")] public virtual void AddRow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAddRowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAddRowHandle); } } [Export("addRowWithCells:")] public virtual void AddRowWithCells(NSCell[] newCells) { NSApplication.EnsureUIThread(); if (newCells == null) { throw new ArgumentNullException("newCells"); } NSArray nSArray = NSArray.FromNSObjects(newCells); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRowWithCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRowWithCells_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertRow:")] public virtual void InsertRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selInsertRow_Handle, row); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selInsertRow_Handle, row); } } [Export("insertRow:withCells:")] public virtual void InsertRow(long row, NSCell[] newCells) { NSApplication.EnsureUIThread(); if (newCells == null) { throw new ArgumentNullException("newCells"); } NSArray nSArray = NSArray.FromNSObjects(newCells); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_IntPtr(base.Handle, selInsertRowWithCells_Handle, row, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_Int64_IntPtr(base.SuperHandle, selInsertRowWithCells_Handle, row, nSArray.Handle); } nSArray.Dispose(); } [Export("removeRow:")] public virtual void RemoveRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveRow_Handle, row); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveRow_Handle, row); } } [Export("addColumn")] public virtual void AddColumn() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAddColumnHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAddColumnHandle); } } [Export("addColumnWithCells:")] public virtual void AddColumnWithCells(NSCell[] newCells) { NSApplication.EnsureUIThread(); if (newCells == null) { throw new ArgumentNullException("newCells"); } NSArray nSArray = NSArray.FromNSObjects(newCells); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddColumnWithCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddColumnWithCells_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertColumn:")] public virtual void InsertColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selInsertColumn_Handle, column); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selInsertColumn_Handle, column); } } [Export("insertColumn:withCells:")] public virtual void InsertColumn(long column, NSCell[] newCells) { NSApplication.EnsureUIThread(); if (newCells == null) { throw new ArgumentNullException("newCells"); } NSArray nSArray = NSArray.FromNSObjects(newCells); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_IntPtr(base.Handle, selInsertColumnWithCells_Handle, column, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_Int64_IntPtr(base.SuperHandle, selInsertColumnWithCells_Handle, column, nSArray.Handle); } nSArray.Dispose(); } [Export("removeColumn:")] public virtual void RemoveColumn(long col) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveColumn_Handle, col); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveColumn_Handle, col); } } [Export("cellWithTag:")] public virtual NSCell CellWithTag(long anInt) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selCellWithTag_Handle, anInt)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selCellWithTag_Handle, anInt)); } [Export("sizeToCells")] public virtual void SizeToCells() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToCellsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToCellsHandle); } } [Export("setValidateSize:")] public virtual void SetValidateSize(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetValidateSize_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetValidateSize_Handle, flag); } } [Export("drawCellAtRow:column:")] public virtual void DrawCellAtRowColumn(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selDrawCellAtRowColumn_Handle, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selDrawCellAtRowColumn_Handle, row, column); } } [Export("highlightCell:atRow:column:")] public virtual void HighlightCell(bool highlight, long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64_Int64(base.Handle, selHighlightCellAtRowColumn_Handle, highlight, row, column); } else { Messaging.void_objc_msgSendSuper_bool_Int64_Int64(base.SuperHandle, selHighlightCellAtRowColumn_Handle, highlight, row, column); } } [Export("scrollCellToVisibleAtRow:column:")] public virtual void ScrollCellToVisible(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selScrollCellToVisibleAtRowColumn_Handle, row, column); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selScrollCellToVisibleAtRowColumn_Handle, row, column); } } [Export("mouseDownFlags")] public virtual long MouseDownFlags() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMouseDownFlagsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMouseDownFlagsHandle); } [Export("mouseDown:")] public new virtual void MouseDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseDown_Handle, theEvent.Handle); } } [Export("performKeyEquivalent:")] public new virtual bool PerformKeyEquivalent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformKeyEquivalent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformKeyEquivalent_Handle, theEvent.Handle); } [Export("sendAction")] public virtual bool SendAction() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendActionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendActionHandle); } [Export("sendDoubleAction")] public virtual void SendDoubleAction() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSendDoubleActionHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSendDoubleActionHandle); } } [Export("textShouldBeginEditing:")] public virtual bool ShouldBeginEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldBeginEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldBeginEditing_Handle, textObject.Handle); } [Export("textShouldEndEditing:")] public virtual bool ShouldEndEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldEndEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldEndEditing_Handle, textObject.Handle); } [Export("textDidBeginEditing:")] public virtual void DidBeginEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidBeginEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidBeginEditing_Handle, notification.Handle); } } [Export("textDidEndEditing:")] public virtual void DidEndEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidEndEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidEndEditing_Handle, notification.Handle); } } [Export("textDidChange:")] public virtual void Changed(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidChange_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidChange_Handle, notification.Handle); } } [Export("selectText:")] public virtual void SelectText(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectText_Handle, sender.Handle); } } [Export("selectTextAtRow:column:")] public virtual NSObject SelectTextAtRowColumn(long row, long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selSelectTextAtRowColumn_Handle, row, column)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSelectTextAtRowColumn_Handle, row, column)); } [Export("acceptsFirstMouse:")] public new virtual bool AcceptsFirstMouse(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAcceptsFirstMouse_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAcceptsFirstMouse_Handle, theEvent.Handle); } [Export("resetCursorRects")] public new virtual void ResetCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetCursorRectsHandle); } } [Export("setToolTip:forCell:")] public virtual void SetToolTipForCell(string toolTipString, NSCell cell) { NSApplication.EnsureUIThread(); if (toolTipString == null) { throw new ArgumentNullException("toolTipString"); } if (cell == null) { throw new ArgumentNullException("cell"); } IntPtr arg = NSString.CreateNative(toolTipString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetToolTipForCell_Handle, arg, cell.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetToolTipForCell_Handle, arg, cell.Handle); } NSString.ReleaseNative(arg); } [Export("toolTipForCell:")] public virtual string ToolTipForCell(NSCell cell) { NSApplication.EnsureUIThread(); if (cell == null) { throw new ArgumentNullException("cell"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selToolTipForCell_Handle, cell.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selToolTipForCell_Handle, cell.Handle)); } private _NSMatrixDelegate EnsureNSMatrixDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSMatrixDelegate)) { nSObject = (WeakDelegate = new _NSMatrixDelegate()); } return (_NSMatrixDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Cells_var = null; __mt_SelectedCell_var = null; __mt_SelectedCells_var = null; __mt_Prototype_var = null; __mt_BackgroundColor_var = null; __mt_CellBackgroundColor_var = null; __mt_WeakDelegate_var = null; __mt_KeyCell_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMatrixDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMatrixDelegate", true)] [Model] public class NSMatrixDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMatrixDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMatrixDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMatrixDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMatrixDelegate(IntPtr handle) : base(handle) { } [Export("control:textShouldBeginEditing:")] public virtual bool TextShouldBeginEditing(NSControl control, NSText fieldEditor) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textShouldEndEditing:")] public virtual bool TextShouldEndEditing(NSControl control, NSText fieldEditor) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:didFailToFormatString:errorDescription:")] public virtual bool DidFailToFormatString(NSControl control, string str, string error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:didFailToValidatePartialString:errorDescription:")] public virtual void DidFailToValidatePartialString(NSControl control, string str, string error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:isValidObject:")] public virtual bool IsValidObject(NSControl control, NSObject objectToValidate) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textView:doCommandBySelector:")] public virtual bool DoCommandBySelector(NSControl control, NSTextView textView, Selector commandSelector) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textView:completions:forPartialWordRange:indexOfSelectedItem:")] public virtual string[] GetCompletions(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMatrixMode.cs ================================================ namespace AppKit; public enum NSMatrixMode { Radio, Highlight, List, Track } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenu.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMenu", true)] public class NSMenu : NSObject { private object __mt_items_var; private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selMenuBarHeightHandle = Selector.GetHandle("menuBarHeight"); private static readonly IntPtr selHighlightedItemHandle = Selector.GetHandle("highlightedItem"); private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selIsTornOffHandle = Selector.GetHandle("isTornOff"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selMenuBarVisibleHandle = Selector.GetHandle("menuBarVisible"); private static readonly IntPtr selSetMenuBarVisible_Handle = Selector.GetHandle("setMenuBarVisible:"); private static readonly IntPtr selSupermenuHandle = Selector.GetHandle("supermenu"); private static readonly IntPtr selSetSupermenu_Handle = Selector.GetHandle("setSupermenu:"); private static readonly IntPtr selAutoenablesItemsHandle = Selector.GetHandle("autoenablesItems"); private static readonly IntPtr selSetAutoenablesItems_Handle = Selector.GetHandle("setAutoenablesItems:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selMinimumWidthHandle = Selector.GetHandle("minimumWidth"); private static readonly IntPtr selSetMinimumWidth_Handle = Selector.GetHandle("setMinimumWidth:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selAllowsContextMenuPlugInsHandle = Selector.GetHandle("allowsContextMenuPlugIns"); private static readonly IntPtr selSetAllowsContextMenuPlugIns_Handle = Selector.GetHandle("setAllowsContextMenuPlugIns:"); private static readonly IntPtr selShowsStateColumnHandle = Selector.GetHandle("showsStateColumn"); private static readonly IntPtr selSetShowsStateColumn_Handle = Selector.GetHandle("setShowsStateColumn:"); private static readonly IntPtr selMenuChangedMessagesEnabledHandle = Selector.GetHandle("menuChangedMessagesEnabled"); private static readonly IntPtr selSetMenuChangedMessagesEnabled_Handle = Selector.GetHandle("setMenuChangedMessagesEnabled:"); private static readonly IntPtr selInitWithTitle_Handle = Selector.GetHandle("initWithTitle:"); private static readonly IntPtr selPopUpContextMenuWithEventForView_Handle = Selector.GetHandle("popUpContextMenu:withEvent:forView:"); private static readonly IntPtr selPopUpContextMenuWithEventForViewWithFont_Handle = Selector.GetHandle("popUpContextMenu:withEvent:forView:withFont:"); private static readonly IntPtr selPopUpMenuPositioningItemAtLocationInView_Handle = Selector.GetHandle("popUpMenuPositioningItem:atLocation:inView:"); private static readonly IntPtr selInsertItemAtIndex_Handle = Selector.GetHandle("insertItem:atIndex:"); private static readonly IntPtr selAddItem_Handle = Selector.GetHandle("addItem:"); private static readonly IntPtr selInsertItemWithTitleActionKeyEquivalentAtIndex_Handle = Selector.GetHandle("insertItemWithTitle:action:keyEquivalent:atIndex:"); private static readonly IntPtr selAddItemWithTitleActionKeyEquivalent_Handle = Selector.GetHandle("addItemWithTitle:action:keyEquivalent:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRemoveItem_Handle = Selector.GetHandle("removeItem:"); private static readonly IntPtr selSetSubmenuForItem_Handle = Selector.GetHandle("setSubmenu:forItem:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr selItemArrayHandle = Selector.GetHandle("itemArray"); private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr selIndexOfItem_Handle = Selector.GetHandle("indexOfItem:"); private static readonly IntPtr selIndexOfItemWithTitle_Handle = Selector.GetHandle("indexOfItemWithTitle:"); private static readonly IntPtr selIndexOfItemWithTag_Handle = Selector.GetHandle("indexOfItemWithTag:"); private static readonly IntPtr selIndexOfItemWithRepresentedObject_Handle = Selector.GetHandle("indexOfItemWithRepresentedObject:"); private static readonly IntPtr selIndexOfItemWithSubmenu_Handle = Selector.GetHandle("indexOfItemWithSubmenu:"); private static readonly IntPtr selIndexOfItemWithTargetAndAction_Handle = Selector.GetHandle("indexOfItemWithTarget:andAction:"); private static readonly IntPtr selItemWithTitle_Handle = Selector.GetHandle("itemWithTitle:"); private static readonly IntPtr selItemWithTag_Handle = Selector.GetHandle("itemWithTag:"); private static readonly IntPtr selUpdateHandle = Selector.GetHandle("update"); private static readonly IntPtr selPerformKeyEquivalent_Handle = Selector.GetHandle("performKeyEquivalent:"); private static readonly IntPtr selItemChanged_Handle = Selector.GetHandle("itemChanged:"); private static readonly IntPtr selPerformActionForItemAtIndex_Handle = Selector.GetHandle("performActionForItemAtIndex:"); private static readonly IntPtr selCancelTrackingHandle = Selector.GetHandle("cancelTracking"); private static readonly IntPtr selCancelTrackingWithoutAnimationHandle = Selector.GetHandle("cancelTrackingWithoutAnimation"); private static readonly IntPtr selHelpRequested_Handle = Selector.GetHandle("helpRequested:"); private static readonly IntPtr selPropertiesToUpdateHandle = Selector.GetHandle("propertiesToUpdate"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMenu"); private object __mt_HighlightedItem_var; private object __mt_Supermenu_var; private object __mt_WeakDelegate_var; private object __mt_Font_var; public override IntPtr ClassHandle => class_ptr; public virtual long Count { [Export("numberOfItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } public virtual double MenuBarHeight { [Export("menuBarHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMenuBarHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMenuBarHeightHandle); } } public virtual NSMenuItem HighlightedItem { [Export("highlightedItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_HighlightedItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHighlightedItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHighlightedItemHandle))))); } } public virtual CGSize Size { [Export("size")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeHandle); } } public virtual bool IsTornOff { [Export("isTornOff")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTornOffHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTornOffHandle); } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public static bool MenuBarVisible { [Export("menuBarVisible")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selMenuBarVisibleHandle); } [Export("setMenuBarVisible:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetMenuBarVisible_Handle, value); } } public virtual NSMenu Supermenu { [Export("supermenu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Supermenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSupermenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSupermenuHandle))))); } [Export("setSupermenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSupermenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSupermenu_Handle, value.Handle); } __mt_Supermenu_var = value; } } public virtual bool AutoEnablesItems { [Export("autoenablesItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoenablesItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoenablesItemsHandle); } [Export("setAutoenablesItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoenablesItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoenablesItems_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public NSMenuDelegate Delegate { get { return WeakDelegate as NSMenuDelegate; } set { WeakDelegate = value; } } public virtual double MinimumWidth { [Export("minimumWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinimumWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinimumWidthHandle); } [Export("setMinimumWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinimumWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinimumWidth_Handle, value); } } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual bool AllowsContextMenuPlugIns { [Export("allowsContextMenuPlugIns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsContextMenuPlugInsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsContextMenuPlugInsHandle); } [Export("setAllowsContextMenuPlugIns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsContextMenuPlugIns_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsContextMenuPlugIns_Handle, value); } } } public virtual bool ShowsStateColumn { [Export("showsStateColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsStateColumnHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsStateColumnHandle); } [Export("setShowsStateColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsStateColumn_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsStateColumn_Handle, value); } } } public virtual bool MenuChangedMessagesEnabled { [Export("menuChangedMessagesEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMenuChangedMessagesEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMenuChangedMessagesEnabledHandle); } [Export("setMenuChangedMessagesEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMenuChangedMessagesEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMenuChangedMessagesEnabled_Handle, value); } } } private NSMenuItem InsertItem(string title, string charCode, int index) { return InsertItem(title, null, charCode, index); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMenu() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMenu(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenu(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenu(IntPtr handle) : base(handle) { } [Export("initWithTitle:")] public NSMenu(string aTitle) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aTitle == null) { throw new ArgumentNullException("aTitle"); } IntPtr arg = NSString.CreateNative(aTitle); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithTitle_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("popUpContextMenu:withEvent:forView:")] public static void PopUpContextMenu(NSMenu menu, NSEvent theEvent, NSView view) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (view == null) { throw new ArgumentNullException("view"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selPopUpContextMenuWithEventForView_Handle, menu.Handle, theEvent.Handle, view.Handle); } [Export("popUpContextMenu:withEvent:forView:withFont:")] public static void PopUpContextMenu(NSMenu menu, NSEvent theEvent, NSView view, NSFont font) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (view == null) { throw new ArgumentNullException("view"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(class_ptr, selPopUpContextMenuWithEventForViewWithFont_Handle, menu.Handle, theEvent.Handle, view.Handle, font?.Handle ?? IntPtr.Zero); } [Export("popUpMenuPositioningItem:atLocation:inView:")] public virtual bool PopUpMenu(NSMenuItem item, CGPoint location, NSView view) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGPoint_IntPtr(base.Handle, selPopUpMenuPositioningItemAtLocationInView_Handle, item?.Handle ?? IntPtr.Zero, location, view?.Handle ?? IntPtr.Zero); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGPoint_IntPtr(base.SuperHandle, selPopUpMenuPositioningItemAtLocationInView_Handle, item?.Handle ?? IntPtr.Zero, location, view?.Handle ?? IntPtr.Zero); } [Export("insertItem:atIndex:")] public virtual void InsertItem(NSMenuItem newItem, long index) { NSApplication.EnsureUIThread(); if (newItem == null) { throw new ArgumentNullException("newItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertItemAtIndex_Handle, newItem.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertItemAtIndex_Handle, newItem.Handle, index); } __mt_items_var = ItemArray(); } [Export("addItem:")] public virtual void AddItem(NSMenuItem newItem) { NSApplication.EnsureUIThread(); if (newItem == null) { throw new ArgumentNullException("newItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItem_Handle, newItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItem_Handle, newItem.Handle); } __mt_items_var = ItemArray(); } [Export("insertItemWithTitle:action:keyEquivalent:atIndex:")] public virtual NSMenuItem InsertItem(string title, Selector action, string charCode, long index) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (charCode == null) { throw new ArgumentNullException("charCode"); } IntPtr arg = NSString.CreateNative(title); IntPtr arg2 = NSString.CreateNative(charCode); NSMenuItem result = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_Int64(base.SuperHandle, selInsertItemWithTitleActionKeyEquivalentAtIndex_Handle, arg, (action == null) ? IntPtr.Zero : action.Handle, arg2, index))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_Int64(base.Handle, selInsertItemWithTitleActionKeyEquivalentAtIndex_Handle, arg, (action == null) ? IntPtr.Zero : action.Handle, arg2, index)))); __mt_items_var = ItemArray(); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("addItemWithTitle:action:keyEquivalent:")] public virtual NSMenuItem AddItem(string title, Selector action, string charCode) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (charCode == null) { throw new ArgumentNullException("charCode"); } IntPtr arg = NSString.CreateNative(title); IntPtr arg2 = NSString.CreateNative(charCode); NSMenuItem result = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddItemWithTitleActionKeyEquivalent_Handle, arg, (action == null) ? IntPtr.Zero : action.Handle, arg2))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selAddItemWithTitleActionKeyEquivalent_Handle, arg, (action == null) ? IntPtr.Zero : action.Handle, arg2)))); __mt_items_var = ItemArray(); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("removeItemAtIndex:")] public virtual void RemoveItemAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } __mt_items_var = ItemArray(); } [Export("removeItem:")] public virtual void RemoveItem(NSMenuItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItem_Handle, item.Handle); } __mt_items_var = ItemArray(); } [Export("setSubmenu:forItem:")] public virtual void SetSubmenu(NSMenu aMenu, NSMenuItem anItem) { NSApplication.EnsureUIThread(); if (aMenu == null) { throw new ArgumentNullException("aMenu"); } if (anItem == null) { throw new ArgumentNullException("anItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetSubmenuForItem_Handle, aMenu.Handle, anItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetSubmenuForItem_Handle, aMenu.Handle, anItem.Handle); } } [Export("removeAllItems")] public virtual void RemoveAllItems() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } __mt_items_var = ItemArray(); } [Export("itemArray")] public virtual NSMenuItem[] ItemArray() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemArrayHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemArrayHandle)); } [Export("itemAtIndex:")] public virtual NSMenuItem ItemAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemAtIndex_Handle, index)); } return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemAtIndex_Handle, index)); } [Export("indexOfItem:")] public virtual long IndexOf(NSMenuItem index) { NSApplication.EnsureUIThread(); if (index == null) { throw new ArgumentNullException("index"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItem_Handle, index.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItem_Handle, index.Handle); } [Export("indexOfItemWithTitle:")] public virtual long IndexOf(string aTitle) { NSApplication.EnsureUIThread(); if (aTitle == null) { throw new ArgumentNullException("aTitle"); } IntPtr arg = NSString.CreateNative(aTitle); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithTitle_Handle, arg) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithTitle_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("indexOfItemWithTag:")] public virtual long IndexOf(long itemTag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selIndexOfItemWithTag_Handle, itemTag); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selIndexOfItemWithTag_Handle, itemTag); } [Export("indexOfItemWithRepresentedObject:")] public virtual long IndexOfItem(NSObject obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } [Export("indexOfItemWithSubmenu:")] public virtual long IndexOfItem(NSMenu submenu) { NSApplication.EnsureUIThread(); if (submenu == null) { throw new ArgumentNullException("submenu"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithSubmenu_Handle, submenu.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithSubmenu_Handle, submenu.Handle); } [Export("indexOfItemWithTarget:andAction:")] public virtual long IndexOfItem(NSObject target, Selector actionSelector) { NSApplication.EnsureUIThread(); if (target == null) { throw new ArgumentNullException("target"); } if (actionSelector == null) { throw new ArgumentNullException("actionSelector"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } [Export("itemWithTitle:")] public virtual NSMenuItem ItemWithTitle(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSMenuItem result = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemWithTitle_Handle, arg))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selItemWithTitle_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("itemWithTag:")] public virtual NSMenuItem ItemWithTag(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemWithTag_Handle, tag)); } return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemWithTag_Handle, tag)); } [Export("update")] public virtual void Update() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateHandle); } } [Export("performKeyEquivalent:")] public virtual bool PerformKeyEquivalent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformKeyEquivalent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformKeyEquivalent_Handle, theEvent.Handle); } [Export("itemChanged:")] public virtual void ItemChanged(NSMenuItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selItemChanged_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemChanged_Handle, item.Handle); } } [Export("performActionForItemAtIndex:")] public virtual void PerformActionForItem(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selPerformActionForItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selPerformActionForItemAtIndex_Handle, index); } } [Export("cancelTracking")] public virtual void CancelTracking() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelTrackingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelTrackingHandle); } } [Export("cancelTrackingWithoutAnimation")] public virtual void CancelTrackingWithoutAnimation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelTrackingWithoutAnimationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelTrackingWithoutAnimationHandle); } } [Export("helpRequested:")] public virtual void HelpRequested(NSEvent eventPtr) { NSApplication.EnsureUIThread(); if (eventPtr == null) { throw new ArgumentNullException("eventPtr"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selHelpRequested_Handle, eventPtr.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selHelpRequested_Handle, eventPtr.Handle); } } [Export("propertiesToUpdate")] public virtual NSMenuProperty PropertiesToUpdate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuProperty)Messaging.UInt64_objc_msgSend(base.Handle, selPropertiesToUpdateHandle); } return (NSMenuProperty)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPropertiesToUpdateHandle); } protected override void Dispose(bool disposing) { __mt_items_var = null; base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_HighlightedItem_var = null; __mt_Supermenu_var = null; __mt_WeakDelegate_var = null; __mt_Font_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenuDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMenuDelegate", true)] [Model] public abstract class NSMenuDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMenuDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMenuDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuDelegate(IntPtr handle) : base(handle) { } [Export("menuNeedsUpdate:")] public virtual void NeedsUpdate(NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("numberOfItemsInMenu:")] public virtual long MenuItemCount(NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("menu:updateItem:atIndex:shouldCancel:")] public virtual bool UpdateItem(NSMenu menu, NSMenuItem item, long atIndex, bool shouldCancel) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("menuHasKeyEquivalent:forEvent:target:action:")] public virtual bool HasKeyEquivalentForEvent(NSMenu menu, NSEvent theEvent, NSObject target, Selector action) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("menuWillOpen:")] public virtual void MenuWillOpen(NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("menuDidClose:")] public virtual void MenuDidClose(NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("menu:willHighlightItem:")] public abstract void MenuWillHighlightItem(NSMenu menu, NSMenuItem item); [Export("confinementRectForMenu:onScreen:")] public virtual CGRect ConfinementRectForMenu(NSMenu menu, NSScreen screen) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenuItem.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMenuItem", true)] public class NSMenuItem : NSObject { private static readonly IntPtr selSeparatorItemHandle = Selector.GetHandle("separatorItem"); private static readonly IntPtr selHasSubmenuHandle = Selector.GetHandle("hasSubmenu"); private static readonly IntPtr selParentItemHandle = Selector.GetHandle("parentItem"); private static readonly IntPtr selIsSeparatorItemHandle = Selector.GetHandle("isSeparatorItem"); private static readonly IntPtr selUserKeyEquivalentHandle = Selector.GetHandle("userKeyEquivalent"); private static readonly IntPtr selIsHighlightedHandle = Selector.GetHandle("isHighlighted"); private static readonly IntPtr selIsHiddenOrHasHiddenAncestorHandle = Selector.GetHandle("isHiddenOrHasHiddenAncestor"); private static readonly IntPtr selUsesUserKeyEquivalentsHandle = Selector.GetHandle("usesUserKeyEquivalents"); private static readonly IntPtr selSetUsesUserKeyEquivalents_Handle = Selector.GetHandle("setUsesUserKeyEquivalents:"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selSubmenuHandle = Selector.GetHandle("submenu"); private static readonly IntPtr selSetSubmenu_Handle = Selector.GetHandle("setSubmenu:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selAttributedTitleHandle = Selector.GetHandle("attributedTitle"); private static readonly IntPtr selSetAttributedTitle_Handle = Selector.GetHandle("setAttributedTitle:"); private static readonly IntPtr selKeyEquivalentHandle = Selector.GetHandle("keyEquivalent"); private static readonly IntPtr selSetKeyEquivalent_Handle = Selector.GetHandle("setKeyEquivalent:"); private static readonly IntPtr selKeyEquivalentModifierMaskHandle = Selector.GetHandle("keyEquivalentModifierMask"); private static readonly IntPtr selSetKeyEquivalentModifierMask_Handle = Selector.GetHandle("setKeyEquivalentModifierMask:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selStateHandle = Selector.GetHandle("state"); private static readonly IntPtr selSetState_Handle = Selector.GetHandle("setState:"); private static readonly IntPtr selOnStateImageHandle = Selector.GetHandle("onStateImage"); private static readonly IntPtr selSetOnStateImage_Handle = Selector.GetHandle("setOnStateImage:"); private static readonly IntPtr selOffStateImageHandle = Selector.GetHandle("offStateImage"); private static readonly IntPtr selSetOffStateImage_Handle = Selector.GetHandle("setOffStateImage:"); private static readonly IntPtr selMixedStateImageHandle = Selector.GetHandle("mixedStateImage"); private static readonly IntPtr selSetMixedStateImage_Handle = Selector.GetHandle("setMixedStateImage:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selIsAlternateHandle = Selector.GetHandle("isAlternate"); private static readonly IntPtr selSetAlternate_Handle = Selector.GetHandle("setAlternate:"); private static readonly IntPtr selIndentationLevelHandle = Selector.GetHandle("indentationLevel"); private static readonly IntPtr selSetIndentationLevel_Handle = Selector.GetHandle("setIndentationLevel:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selSetTag_Handle = Selector.GetHandle("setTag:"); private static readonly IntPtr selRepresentedObjectHandle = Selector.GetHandle("representedObject"); private static readonly IntPtr selSetRepresentedObject_Handle = Selector.GetHandle("setRepresentedObject:"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selIsHiddenHandle = Selector.GetHandle("isHidden"); private static readonly IntPtr selSetHidden_Handle = Selector.GetHandle("setHidden:"); private static readonly IntPtr selToolTipHandle = Selector.GetHandle("toolTip"); private static readonly IntPtr selSetToolTip_Handle = Selector.GetHandle("setToolTip:"); private static readonly IntPtr selInitWithTitleActionKeyEquivalent_Handle = Selector.GetHandle("initWithTitle:action:keyEquivalent:"); private static readonly IntPtr selSetTitleWithMnemonic_Handle = Selector.GetHandle("setTitleWithMnemonic:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMenuItem"); private static object __mt_SeparatorItem_var_static; private object __mt_ParentItem_var; private object __mt_Menu_var; private object __mt_Submenu_var; private object __mt_AttributedTitle_var; private object __mt_Image_var; private object __mt_OnStateImage_var; private object __mt_OffStateImage_var; private object __mt_MixedStateImage_var; private object __mt_Target_var; private object __mt_RepresentedObject_var; private object __mt_View_var; public override IntPtr ClassHandle => class_ptr; public static NSMenuItem SeparatorItem { [Export("separatorItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_SeparatorItem_var_static = (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSeparatorItemHandle))); } } public virtual bool HasSubmenu { [Export("hasSubmenu")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasSubmenuHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasSubmenuHandle); } } public virtual NSMenuItem ParentItem { [Export("parentItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_ParentItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentItemHandle))))); } } public virtual bool IsSeparatorItem { [Export("isSeparatorItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSeparatorItemHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSeparatorItemHandle); } } public virtual string UserKeyEquivalent { [Export("userKeyEquivalent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserKeyEquivalentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserKeyEquivalentHandle)); } } public virtual bool Highlighted { [Export("isHighlighted")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHighlightedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHighlightedHandle); } } public virtual bool IsHiddenOrHasHiddenAncestor { [Export("isHiddenOrHasHiddenAncestor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenOrHasHiddenAncestorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenOrHasHiddenAncestorHandle); } } public static bool UsesUserKeyEquivalents { [Export("usesUserKeyEquivalents")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selUsesUserKeyEquivalentsHandle); } [Export("setUsesUserKeyEquivalents:")] set { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend_bool(class_ptr, selSetUsesUserKeyEquivalents_Handle, value); } } public virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public virtual NSMenu Submenu { [Export("submenu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Submenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubmenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSubmenuHandle))))); } [Export("setSubmenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubmenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubmenu_Handle, value.Handle); } __mt_Submenu_var = value; } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString AttributedTitle { [Export("attributedTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedTitleHandle))))); } [Export("setAttributedTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedTitle_Handle, value.Handle); } __mt_AttributedTitle_var = value; } } public virtual string KeyEquivalent { [Export("keyEquivalent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyEquivalentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentHandle)); } [Export("setKeyEquivalent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyEquivalent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyEquivalent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSEventModifierMask KeyEquivalentModifierMask { [Export("keyEquivalentModifierMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(base.Handle, selKeyEquivalentModifierMaskHandle); } return (NSEventModifierMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentModifierMaskHandle); } [Export("setKeyEquivalentModifierMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetKeyEquivalentModifierMask_Handle, (ulong)value); } } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Image_var = value; } } public virtual NSCellStateValue State { [Export("state")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCellStateValue)Messaging.Int64_objc_msgSend(base.Handle, selStateHandle); } return (NSCellStateValue)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStateHandle); } [Export("setState:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetState_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetState_Handle, (long)value); } } } public virtual NSImage OnStateImage { [Export("onStateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_OnStateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOnStateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOnStateImageHandle))))); } [Export("setOnStateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOnStateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOnStateImage_Handle, value.Handle); } __mt_OnStateImage_var = value; } } public virtual NSImage OffStateImage { [Export("offStateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_OffStateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOffStateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOffStateImageHandle))))); } [Export("setOffStateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOffStateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOffStateImage_Handle, value.Handle); } __mt_OffStateImage_var = value; } } public virtual NSImage MixedStateImage { [Export("mixedStateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_MixedStateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMixedStateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMixedStateImageHandle))))); } [Export("setMixedStateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMixedStateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMixedStateImage_Handle, value.Handle); } __mt_MixedStateImage_var = value; } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual bool Alternate { [Export("isAlternate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAlternateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAlternateHandle); } [Export("setAlternate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlternate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlternate_Handle, value); } } } public virtual long IndentationLevel { [Export("indentationLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndentationLevelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndentationLevelHandle); } [Export("setIndentationLevel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetIndentationLevel_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetIndentationLevel_Handle, value); } } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } [Export("setTag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTag_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTag_Handle, value); } } } public virtual NSObject RepresentedObject { [Export("representedObject")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_RepresentedObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedObjectHandle)))); } [Export("setRepresentedObject:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedObject_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedObject_Handle, value.Handle); } __mt_RepresentedObject_var = value; } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_View_var = value; } } public virtual bool Hidden { [Export("isHidden")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenHandle); } [Export("setHidden:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidden_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidden_Handle, value); } } } public virtual string ToolTip { [Export("toolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolTipHandle)); } [Export("setToolTip:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToolTip_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToolTip_Handle, arg); } NSString.ReleaseNative(arg); } } public event EventHandler Activated { add { Target = ActionDispatcher.SetupAction(Target, value); Action = ActionDispatcher.Action; } remove { ActionDispatcher.RemoveAction(Target, value); } } public NSMenuItem(string title, EventHandler handler) : this(title, "", handler) { } public NSMenuItem(string title, string charCode, EventHandler handler) : this(title, null, charCode) { Activated += handler; } public NSMenuItem(string title, string charCode) : this(title, null, charCode) { } public NSMenuItem(string title) : this(title, null, "") { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMenuItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMenuItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuItem(IntPtr handle) : base(handle) { } [Export("initWithTitle:action:keyEquivalent:")] public NSMenuItem(string title, Selector selectorAction, string charCode) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (charCode == null) { throw new ArgumentNullException("charCode"); } IntPtr arg = NSString.CreateNative(title); IntPtr arg2 = NSString.CreateNative(charCode); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithTitleActionKeyEquivalent_Handle, arg, (selectorAction == null) ? IntPtr.Zero : selectorAction.Handle, arg2); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithTitleActionKeyEquivalent_Handle, arg, (selectorAction == null) ? IntPtr.Zero : selectorAction.Handle, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("setTitleWithMnemonic:")] public virtual void SetTitleWithMnemonic(string stringWithAmpersand) { NSApplication.EnsureUIThread(); if (stringWithAmpersand == null) { throw new ArgumentNullException("stringWithAmpersand"); } IntPtr arg = NSString.CreateNative(stringWithAmpersand); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithMnemonic_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithMnemonic_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ParentItem_var = null; __mt_Menu_var = null; __mt_Submenu_var = null; __mt_AttributedTitle_var = null; __mt_Image_var = null; __mt_OnStateImage_var = null; __mt_OffStateImage_var = null; __mt_MixedStateImage_var = null; __mt_Target_var = null; __mt_RepresentedObject_var = null; __mt_View_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenuItemCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMenuItemCell", true)] public class NSMenuItemCell : NSButtonCell { private static readonly IntPtr selImageWidthHandle = Selector.GetHandle("imageWidth"); private static readonly IntPtr selTitleWidthHandle = Selector.GetHandle("titleWidth"); private static readonly IntPtr selKeyEquivalentWidthHandle = Selector.GetHandle("keyEquivalentWidth"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selMenuItemHandle = Selector.GetHandle("menuItem"); private static readonly IntPtr selSetMenuItem_Handle = Selector.GetHandle("setMenuItem:"); private static readonly IntPtr selMenuViewHandle = Selector.GetHandle("menuView"); private static readonly IntPtr selSetMenuView_Handle = Selector.GetHandle("setMenuView:"); private static readonly IntPtr selNeedsSizingHandle = Selector.GetHandle("needsSizing"); private static readonly IntPtr selSetNeedsSizing_Handle = Selector.GetHandle("setNeedsSizing:"); private static readonly IntPtr selNeedsDisplayHandle = Selector.GetHandle("needsDisplay"); private static readonly IntPtr selSetNeedsDisplay_Handle = Selector.GetHandle("setNeedsDisplay:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selCalcSizeHandle = Selector.GetHandle("calcSize"); private static readonly IntPtr selStateImageWidthHandle = Selector.GetHandle("stateImageWidth"); private static readonly IntPtr selStateImageRectForBounds_Handle = Selector.GetHandle("stateImageRectForBounds:"); private static readonly IntPtr selTitleRectForBounds_Handle = Selector.GetHandle("titleRectForBounds:"); private static readonly IntPtr selKeyEquivalentRectForBounds_Handle = Selector.GetHandle("keyEquivalentRectForBounds:"); private static readonly IntPtr selDrawSeparatorItemWithFrameInView_Handle = Selector.GetHandle("drawSeparatorItemWithFrame:inView:"); private static readonly IntPtr selDrawStateImageWithFrameInView_Handle = Selector.GetHandle("drawStateImageWithFrame:inView:"); private static readonly IntPtr selDrawImageWithFrameInView_Handle = Selector.GetHandle("drawImageWithFrame:inView:"); private static readonly IntPtr selDrawTitleWithFrameInView_Handle = Selector.GetHandle("drawTitleWithFrame:inView:"); private static readonly IntPtr selDrawKeyEquivalentWithFrameInView_Handle = Selector.GetHandle("drawKeyEquivalentWithFrame:inView:"); private static readonly IntPtr selDrawBorderAndBackgroundWithFrameInView_Handle = Selector.GetHandle("drawBorderAndBackgroundWithFrame:inView:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMenuItemCell"); private object __mt_MenuItem_var; private object __mt_MenuView_var; public override IntPtr ClassHandle => class_ptr; public virtual double ImageWidth { [Export("imageWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selImageWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selImageWidthHandle); } } public virtual double TitleWidth { [Export("titleWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTitleWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTitleWidthHandle); } } public virtual double KeyEquivalentWidth { [Export("keyEquivalentWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKeyEquivalentWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentWidthHandle); } } public new virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } } public virtual NSMenuItem MenuItem { [Export("menuItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_MenuItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuItemHandle))))); } [Export("setMenuItem:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenuItem_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenuItem_Handle, value.Handle); } __mt_MenuItem_var = value; } } public virtual NSMenuView MenuView { [Export("menuView")] get { NSApplication.EnsureUIThread(); return (NSMenuView)(__mt_MenuView_var = ((!IsDirectBinding) ? ((NSMenuView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuViewHandle))) : ((NSMenuView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuViewHandle))))); } [Export("setMenuView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenuView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenuView_Handle, value.Handle); } __mt_MenuView_var = value; } } public virtual bool NeedsSizing { [Export("needsSizing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsSizingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsSizingHandle); } [Export("setNeedsSizing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsSizing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsSizing_Handle, value); } } } public virtual bool NeedsDisplay { [Export("needsDisplay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsDisplayHandle); } [Export("setNeedsDisplay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsDisplay_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsDisplay_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMenuItemCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMenuItemCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuItemCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuItemCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSMenuItemCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSMenuItemCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("calcSize")] public virtual void CalcSize() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCalcSizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCalcSizeHandle); } } [Export("stateImageWidth")] public virtual double StateImageWidth() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selStateImageWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selStateImageWidthHandle); } [Export("stateImageRectForBounds:")] public virtual CGRect StateImageRectForBounds(CGRect cellFrame) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selStateImageRectForBounds_Handle, cellFrame); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selStateImageRectForBounds_Handle, cellFrame); } return retval; } [Export("titleRectForBounds:")] public new virtual CGRect TitleRectForBounds(CGRect cellFrame) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selTitleRectForBounds_Handle, cellFrame); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selTitleRectForBounds_Handle, cellFrame); } return retval; } [Export("keyEquivalentRectForBounds:")] public virtual CGRect KeyEquivalentRectForBounds(CGRect cellFrame) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selKeyEquivalentRectForBounds_Handle, cellFrame); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selKeyEquivalentRectForBounds_Handle, cellFrame); } return retval; } [Export("drawSeparatorItemWithFrame:inView:")] public virtual void DrawSeparatorItem(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawSeparatorItemWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawSeparatorItemWithFrameInView_Handle, cellFrame, controlView.Handle); } } [Export("drawStateImageWithFrame:inView:")] public virtual void DrawStateImage(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawStateImageWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawStateImageWithFrameInView_Handle, cellFrame, controlView.Handle); } } [Export("drawImageWithFrame:inView:")] public virtual void DrawImage(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawImageWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawImageWithFrameInView_Handle, cellFrame, controlView.Handle); } } [Export("drawTitleWithFrame:inView:")] public virtual void DrawTitle(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawTitleWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawTitleWithFrameInView_Handle, cellFrame, controlView.Handle); } } [Export("drawKeyEquivalentWithFrame:inView:")] public virtual void DrawKeyEquivalent(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawKeyEquivalentWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawKeyEquivalentWithFrameInView_Handle, cellFrame, controlView.Handle); } } [Export("drawBorderAndBackgroundWithFrame:inView:")] public virtual void DrawBorderAndBackground(CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawBorderAndBackgroundWithFrameInView_Handle, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDrawBorderAndBackgroundWithFrameInView_Handle, cellFrame, controlView.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_MenuItem_var = null; __mt_MenuView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenuProperty.cs ================================================ using System; namespace AppKit; [Flags] public enum NSMenuProperty : ulong { Title = 1uL, AttributedTitle = 2uL, KeyEquivalent = 4uL, Image = 8uL, Enabled = 0x10uL, AccessibilityDescription = 0x20uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMenuView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMenuView", true)] public class NSMenuView : NSView { private static readonly IntPtr selMenuBarHeightHandle = Selector.GetHandle("menuBarHeight"); private static readonly IntPtr selInnerRectHandle = Selector.GetHandle("innerRect"); private static readonly IntPtr selStateImageOffsetHandle = Selector.GetHandle("stateImageOffset"); private static readonly IntPtr selStateImageWidthHandle = Selector.GetHandle("stateImageWidth"); private static readonly IntPtr selImageAndTitleOffsetHandle = Selector.GetHandle("imageAndTitleOffset"); private static readonly IntPtr selImageAndTitleWidthHandle = Selector.GetHandle("imageAndTitleWidth"); private static readonly IntPtr selKeyEquivalentOffsetHandle = Selector.GetHandle("keyEquivalentOffset"); private static readonly IntPtr selKeyEquivalentWidthHandle = Selector.GetHandle("keyEquivalentWidth"); private static readonly IntPtr selAttachedMenuViewHandle = Selector.GetHandle("attachedMenuView"); private static readonly IntPtr selAttachedMenuHandle = Selector.GetHandle("attachedMenu"); private static readonly IntPtr selIsAttachedHandle = Selector.GetHandle("isAttached"); private static readonly IntPtr selIsTornOffHandle = Selector.GetHandle("isTornOff"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selIsHorizontalHandle = Selector.GetHandle("isHorizontal"); private static readonly IntPtr selSetHorizontal_Handle = Selector.GetHandle("setHorizontal:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selHighlightedItemIndexHandle = Selector.GetHandle("highlightedItemIndex"); private static readonly IntPtr selSetHighlightedItemIndex_Handle = Selector.GetHandle("setHighlightedItemIndex:"); private static readonly IntPtr selNeedsSizingHandle = Selector.GetHandle("needsSizing"); private static readonly IntPtr selSetNeedsSizing_Handle = Selector.GetHandle("setNeedsSizing:"); private static readonly IntPtr selHorizontalEdgePaddingHandle = Selector.GetHandle("horizontalEdgePadding"); private static readonly IntPtr selSetHorizontalEdgePadding_Handle = Selector.GetHandle("setHorizontalEdgePadding:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selItemChanged_Handle = Selector.GetHandle("itemChanged:"); private static readonly IntPtr selItemAdded_Handle = Selector.GetHandle("itemAdded:"); private static readonly IntPtr selItemRemoved_Handle = Selector.GetHandle("itemRemoved:"); private static readonly IntPtr selUpdateHandle = Selector.GetHandle("update"); private static readonly IntPtr selRectOfItemAtIndex_Handle = Selector.GetHandle("rectOfItemAtIndex:"); private static readonly IntPtr selIndexOfItemAtPoint_Handle = Selector.GetHandle("indexOfItemAtPoint:"); private static readonly IntPtr selSetNeedsDisplayForItemAtIndex_Handle = Selector.GetHandle("setNeedsDisplayForItemAtIndex:"); private static readonly IntPtr selSetMenuItemCellForItemAtIndex_Handle = Selector.GetHandle("setMenuItemCell:forItemAtIndex:"); private static readonly IntPtr selMenuItemCellForItemAtIndex_Handle = Selector.GetHandle("menuItemCellForItemAtIndex:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr selLocationForSubmenu_Handle = Selector.GetHandle("locationForSubmenu:"); private static readonly IntPtr selSetWindowFrameForAttachingToRectOnScreenPreferredEdgePopUpSelectedItem_Handle = Selector.GetHandle("setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:"); private static readonly IntPtr selDetachSubmenuHandle = Selector.GetHandle("detachSubmenu"); private static readonly IntPtr selAttachSubmenuForItemAtIndex_Handle = Selector.GetHandle("attachSubmenuForItemAtIndex:"); private static readonly IntPtr selPerformActionWithHighlightingForItemAtIndex_Handle = Selector.GetHandle("performActionWithHighlightingForItemAtIndex:"); private static readonly IntPtr selTrackWithEvent_Handle = Selector.GetHandle("trackWithEvent:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMenuView"); private object __mt_AttachedMenuView_var; private object __mt_AttachedMenu_var; private object __mt_Menu_var; private object __mt_Font_var; public override IntPtr ClassHandle => class_ptr; public static double MenuBarHeight { [Export("menuBarHeight")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selMenuBarHeightHandle); } } public virtual CGRect InnerRect { [Export("innerRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selInnerRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selInnerRectHandle); } return retval; } } public virtual double StateImageOffset { [Export("stateImageOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selStateImageOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selStateImageOffsetHandle); } } public virtual double StateImageWidth { [Export("stateImageWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selStateImageWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selStateImageWidthHandle); } } public virtual double ImageAndTitleOffset { [Export("imageAndTitleOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selImageAndTitleOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selImageAndTitleOffsetHandle); } } public virtual double ImageAndTitleWidth { [Export("imageAndTitleWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selImageAndTitleWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selImageAndTitleWidthHandle); } } public virtual double KeyEquivalentOffset { [Export("keyEquivalentOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKeyEquivalentOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentOffsetHandle); } } public virtual double KeyEquivalentWidth { [Export("keyEquivalentWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKeyEquivalentWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKeyEquivalentWidthHandle); } } public virtual NSMenuView AttachedMenuView { [Export("attachedMenuView")] get { NSApplication.EnsureUIThread(); return (NSMenuView)(__mt_AttachedMenuView_var = ((!IsDirectBinding) ? ((NSMenuView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttachedMenuViewHandle))) : ((NSMenuView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttachedMenuViewHandle))))); } } public virtual NSMenu AttachedMenu { [Export("attachedMenu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_AttachedMenu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttachedMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttachedMenuHandle))))); } } public virtual bool IsAttached { [Export("isAttached")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAttachedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAttachedHandle); } } public virtual bool IsTornOff { [Export("isTornOff")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTornOffHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTornOffHandle); } } public new virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public virtual bool Horizontal { [Export("isHorizontal")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHorizontalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHorizontalHandle); } [Export("setHorizontal:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHorizontal_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHorizontal_Handle, value); } } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual long HighlightedItemIndex { [Export("highlightedItemIndex")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selHighlightedItemIndexHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHighlightedItemIndexHandle); } [Export("setHighlightedItemIndex:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetHighlightedItemIndex_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetHighlightedItemIndex_Handle, value); } } } public virtual bool NeedsSizing { [Export("needsSizing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsSizingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsSizingHandle); } [Export("setNeedsSizing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsSizing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsSizing_Handle, value); } } } public virtual double HorizontalEdgePadding { [Export("horizontalEdgePadding")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHorizontalEdgePaddingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHorizontalEdgePaddingHandle); } [Export("setHorizontalEdgePadding:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetHorizontalEdgePadding_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetHorizontalEdgePadding_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMenuView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMenuView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMenuView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSMenuView(CGRect frame) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frame); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frame); } } [Export("itemChanged:")] public virtual void ItemChanged(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selItemChanged_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemChanged_Handle, notification.Handle); } } [Export("itemAdded:")] public virtual void ItemAdded(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selItemAdded_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemAdded_Handle, notification.Handle); } } [Export("itemRemoved:")] public virtual void ItemRemoved(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selItemRemoved_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemRemoved_Handle, notification.Handle); } } [Export("update")] public virtual void Update() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateHandle); } } [Export("rectOfItemAtIndex:")] public virtual CGRect RectOfItemAtIndex(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfItemAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfItemAtIndex_Handle, index); } return retval; } [Export("indexOfItemAtPoint:")] public virtual long IndexOfItemAtPoint(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selIndexOfItemAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selIndexOfItemAtPoint_Handle, point); } [Export("setNeedsDisplayForItemAtIndex:")] public virtual void SetNeedsDisplay(long itemAtIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNeedsDisplayForItemAtIndex_Handle, itemAtIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNeedsDisplayForItemAtIndex_Handle, itemAtIndex); } } [Export("setMenuItemCell:forItemAtIndex:")] public virtual void SetMenuItemCell(NSMenuItemCell cell, long itemAtIndex) { NSApplication.EnsureUIThread(); if (cell == null) { throw new ArgumentNullException("cell"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetMenuItemCellForItemAtIndex_Handle, cell.Handle, itemAtIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetMenuItemCellForItemAtIndex_Handle, cell.Handle, itemAtIndex); } } [Export("menuItemCellForItemAtIndex:")] public virtual NSMenuItemCell GetMenuItemCell(long itemAtIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuItemCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selMenuItemCellForItemAtIndex_Handle, itemAtIndex)); } return (NSMenuItemCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selMenuItemCellForItemAtIndex_Handle, itemAtIndex)); } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } [Export("locationForSubmenu:")] public virtual CGPoint LocationForSubmenu(NSMenu aSubmenu) { NSApplication.EnsureUIThread(); if (aSubmenu == null) { throw new ArgumentNullException("aSubmenu"); } if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_IntPtr(base.Handle, selLocationForSubmenu_Handle, aSubmenu.Handle); } return Messaging.CGPoint_objc_msgSendSuper_IntPtr(base.SuperHandle, selLocationForSubmenu_Handle, aSubmenu.Handle); } [Export("setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:")] public virtual void SetWindowFrameForAttachingToRect(CGRect screenRect, NSScreen onScreen, NSRectEdge preferredEdge, long popupSelectedItem) { NSApplication.EnsureUIThread(); if (onScreen == null) { throw new ArgumentNullException("onScreen"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_int_Int64(base.Handle, selSetWindowFrameForAttachingToRectOnScreenPreferredEdgePopUpSelectedItem_Handle, screenRect, onScreen.Handle, (int)preferredEdge, popupSelectedItem); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_int_Int64(base.SuperHandle, selSetWindowFrameForAttachingToRectOnScreenPreferredEdgePopUpSelectedItem_Handle, screenRect, onScreen.Handle, (int)preferredEdge, popupSelectedItem); } } [Export("detachSubmenu")] public virtual void DetachSubmenu() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDetachSubmenuHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDetachSubmenuHandle); } } [Export("attachSubmenuForItemAtIndex:")] public virtual void AttachSubmenuForItemAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selAttachSubmenuForItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selAttachSubmenuForItemAtIndex_Handle, index); } } [Export("performActionWithHighlightingForItemAtIndex:")] public virtual void PerformActionWithHighlighting(long forItemAtIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selPerformActionWithHighlightingForItemAtIndex_Handle, forItemAtIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selPerformActionWithHighlightingForItemAtIndex_Handle, forItemAtIndex); } } [Export("trackWithEvent:")] public virtual bool TrackWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTrackWithEvent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTrackWithEvent_Handle, theEvent.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AttachedMenuView_var = null; __mt_AttachedMenu_var = null; __mt_Menu_var = null; __mt_Font_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMutableFontCollection.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMutableFontCollection", true)] public class NSMutableFontCollection : NSFontCollection { private static readonly IntPtr selSetQueryDescriptors_Handle = Selector.GetHandle("setQueryDescriptors:"); private static readonly IntPtr selSetExclusionDescriptors_Handle = Selector.GetHandle("setExclusionDescriptors:"); private static readonly IntPtr selAddQueryForDescriptors_Handle = Selector.GetHandle("addQueryForDescriptors:"); private static readonly IntPtr selRemoveQueryForDescriptors_Handle = Selector.GetHandle("removeQueryForDescriptors:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableFontCollection"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableFontCollection() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableFontCollection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableFontCollection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableFontCollection(IntPtr handle) : base(handle) { } [Export("setQueryDescriptors:")] public virtual void SetQueryDescriptors(NSFontDescriptor[] descriptors) { NSApplication.EnsureUIThread(); if (descriptors == null) { throw new ArgumentNullException("descriptors"); } NSArray nSArray = NSArray.FromNSObjects(descriptors); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetQueryDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetQueryDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("setExclusionDescriptors:")] public virtual void SetExclusionDescriptors(NSFontDescriptor[] descriptors) { NSApplication.EnsureUIThread(); if (descriptors == null) { throw new ArgumentNullException("descriptors"); } NSArray nSArray = NSArray.FromNSObjects(descriptors); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetExclusionDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetExclusionDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("addQueryForDescriptors:")] public virtual void AddQueryForDescriptors(NSFontDescriptor[] descriptors) { NSApplication.EnsureUIThread(); if (descriptors == null) { throw new ArgumentNullException("descriptors"); } NSArray nSArray = NSArray.FromNSObjects(descriptors); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddQueryForDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddQueryForDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("removeQueryForDescriptors:")] public virtual void RemoveQueryForDescriptors(NSFontDescriptor[] descriptors) { NSApplication.EnsureUIThread(); if (descriptors == null) { throw new ArgumentNullException("descriptors"); } NSArray nSArray = NSArray.FromNSObjects(descriptors); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveQueryForDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveQueryForDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSMutableParagraphStyle.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSMutableParagraphStyle", true)] public class NSMutableParagraphStyle : NSParagraphStyle { private static readonly IntPtr selTabStopsHandle = Selector.GetHandle("tabStops"); private static readonly IntPtr selSetTabStops_Handle = Selector.GetHandle("setTabStops:"); private static readonly IntPtr selDefaultTabIntervalHandle = Selector.GetHandle("defaultTabInterval"); private static readonly IntPtr selSetDefaultTabInterval_Handle = Selector.GetHandle("setDefaultTabInterval:"); private static readonly IntPtr selTighteningFactorForTruncationHandle = Selector.GetHandle("tighteningFactorForTruncation"); private static readonly IntPtr selSetTighteningFactorForTruncation_Handle = Selector.GetHandle("setTighteningFactorForTruncation:"); private static readonly IntPtr selHeaderLevelHandle = Selector.GetHandle("headerLevel"); private static readonly IntPtr selSetHeaderLevel_Handle = Selector.GetHandle("setHeaderLevel:"); private static readonly IntPtr selLineSpacingHandle = Selector.GetHandle("lineSpacing"); private static readonly IntPtr selSetLineSpacing_Handle = Selector.GetHandle("setLineSpacing:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selHeadIndentHandle = Selector.GetHandle("headIndent"); private static readonly IntPtr selSetHeadIndent_Handle = Selector.GetHandle("setHeadIndent:"); private static readonly IntPtr selTailIndentHandle = Selector.GetHandle("tailIndent"); private static readonly IntPtr selSetTailIndent_Handle = Selector.GetHandle("setTailIndent:"); private static readonly IntPtr selFirstLineHeadIndentHandle = Selector.GetHandle("firstLineHeadIndent"); private static readonly IntPtr selSetFirstLineHeadIndent_Handle = Selector.GetHandle("setFirstLineHeadIndent:"); private static readonly IntPtr selMinimumLineHeightHandle = Selector.GetHandle("minimumLineHeight"); private static readonly IntPtr selSetMinimumLineHeight_Handle = Selector.GetHandle("setMinimumLineHeight:"); private static readonly IntPtr selMaximumLineHeightHandle = Selector.GetHandle("maximumLineHeight"); private static readonly IntPtr selSetMaximumLineHeight_Handle = Selector.GetHandle("setMaximumLineHeight:"); private static readonly IntPtr selLineBreakModeHandle = Selector.GetHandle("lineBreakMode"); private static readonly IntPtr selSetLineBreakMode_Handle = Selector.GetHandle("setLineBreakMode:"); private static readonly IntPtr selBaseWritingDirectionHandle = Selector.GetHandle("baseWritingDirection"); private static readonly IntPtr selSetBaseWritingDirection_Handle = Selector.GetHandle("setBaseWritingDirection:"); private static readonly IntPtr selLineHeightMultipleHandle = Selector.GetHandle("lineHeightMultiple"); private static readonly IntPtr selSetLineHeightMultiple_Handle = Selector.GetHandle("setLineHeightMultiple:"); private static readonly IntPtr selParagraphSpacingHandle = Selector.GetHandle("paragraphSpacing"); private static readonly IntPtr selSetParagraphSpacing_Handle = Selector.GetHandle("setParagraphSpacing:"); private static readonly IntPtr selParagraphSpacingBeforeHandle = Selector.GetHandle("paragraphSpacingBefore"); private static readonly IntPtr selSetParagraphSpacingBefore_Handle = Selector.GetHandle("setParagraphSpacingBefore:"); private static readonly IntPtr selHyphenationFactorHandle = Selector.GetHandle("hyphenationFactor"); private static readonly IntPtr selSetHyphenationFactor_Handle = Selector.GetHandle("setHyphenationFactor:"); private static readonly IntPtr selAddTabStop_Handle = Selector.GetHandle("addTabStop:"); private static readonly IntPtr selRemoveTabStop_Handle = Selector.GetHandle("removeTabStop:"); private static readonly IntPtr selSetParagraphStyle_Handle = Selector.GetHandle("setParagraphStyle:"); private static readonly IntPtr selSetTextBlocks_Handle = Selector.GetHandle("setTextBlocks:"); private static readonly IntPtr selSetTextLists_Handle = Selector.GetHandle("setTextLists:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableParagraphStyle"); private object __mt_TabStops_var; public override IntPtr ClassHandle => class_ptr; public override NSTextTab[] TabStops { [Export("tabStops")] get { NSApplication.EnsureUIThread(); return (NSTextTab[])(__mt_TabStops_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTabStopsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTabStopsHandle)))); } [Export("setTabStops:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTabStops_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTabStops_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_TabStops_var = value; } } public override double DefaultTabInterval { [Export("defaultTabInterval")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDefaultTabIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDefaultTabIntervalHandle); } [Export("setDefaultTabInterval:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDefaultTabInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDefaultTabInterval_Handle, value); } } } public override float TighteningFactorForTruncation { [Export("tighteningFactorForTruncation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selTighteningFactorForTruncationHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selTighteningFactorForTruncationHandle); } [Export("setTighteningFactorForTruncation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetTighteningFactorForTruncation_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetTighteningFactorForTruncation_Handle, value); } } } public override long HeaderLevel { [Export("headerLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selHeaderLevelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHeaderLevelHandle); } [Export("setHeaderLevel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetHeaderLevel_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetHeaderLevel_Handle, value); } } } public override double LineSpacing { [Export("lineSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineSpacingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineSpacingHandle); } [Export("setLineSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLineSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLineSpacing_Handle, value); } } } public override NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } public override double HeadIndent { [Export("headIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHeadIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHeadIndentHandle); } [Export("setHeadIndent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetHeadIndent_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetHeadIndent_Handle, value); } } } public override double TailIndent { [Export("tailIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTailIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTailIndentHandle); } [Export("setTailIndent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTailIndent_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTailIndent_Handle, value); } } } public override double FirstLineHeadIndent { [Export("firstLineHeadIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFirstLineHeadIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFirstLineHeadIndentHandle); } [Export("setFirstLineHeadIndent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetFirstLineHeadIndent_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetFirstLineHeadIndent_Handle, value); } } } public override double MinimumLineHeight { [Export("minimumLineHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinimumLineHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinimumLineHeightHandle); } [Export("setMinimumLineHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinimumLineHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinimumLineHeight_Handle, value); } } } public override double MaximumLineHeight { [Export("maximumLineHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaximumLineHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaximumLineHeightHandle); } [Export("setMaximumLineHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaximumLineHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaximumLineHeight_Handle, value); } } } public override NSLineBreakMode LineBreakMode { [Export("lineBreakMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLineBreakMode)Messaging.UInt64_objc_msgSend(base.Handle, selLineBreakModeHandle); } return (NSLineBreakMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLineBreakModeHandle); } [Export("setLineBreakMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLineBreakMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLineBreakMode_Handle, (ulong)value); } } } public override NSWritingDirection BaseWritingDirection { [Export("baseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBaseWritingDirectionHandle); } [Export("setBaseWritingDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBaseWritingDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBaseWritingDirection_Handle, (long)value); } } } public override double LineHeightMultiple { [Export("lineHeightMultiple")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineHeightMultipleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineHeightMultipleHandle); } [Export("setLineHeightMultiple:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLineHeightMultiple_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLineHeightMultiple_Handle, value); } } } public override double ParagraphSpacing { [Export("paragraphSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selParagraphSpacingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selParagraphSpacingHandle); } [Export("setParagraphSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetParagraphSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetParagraphSpacing_Handle, value); } } } public override double ParagraphSpacingBefore { [Export("paragraphSpacingBefore")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selParagraphSpacingBeforeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selParagraphSpacingBeforeHandle); } [Export("setParagraphSpacingBefore:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetParagraphSpacingBefore_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetParagraphSpacingBefore_Handle, value); } } } public override float HyphenationFactor { [Export("hyphenationFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selHyphenationFactorHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selHyphenationFactorHandle); } [Export("setHyphenationFactor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetHyphenationFactor_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetHyphenationFactor_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableParagraphStyle() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableParagraphStyle(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableParagraphStyle(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableParagraphStyle(IntPtr handle) : base(handle) { } [Export("addTabStop:")] public virtual void AddTabStop(NSTextTab anObject) { NSApplication.EnsureUIThread(); if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddTabStop_Handle, anObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddTabStop_Handle, anObject.Handle); } _ = TabStops; } [Export("removeTabStop:")] public virtual void RemoveTabStop(NSTextTab anObject) { NSApplication.EnsureUIThread(); if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTabStop_Handle, anObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTabStop_Handle, anObject.Handle); } _ = TabStops; } [Export("setParagraphStyle:")] public virtual void SetParagraphStyle(NSParagraphStyle obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetParagraphStyle_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetParagraphStyle_Handle, obj.Handle); } } [Export("setTextBlocks:")] public virtual void SetTextBlocks(NSTextBlock[] array) { NSApplication.EnsureUIThread(); if (array == null) { throw new ArgumentNullException("array"); } NSArray nSArray = NSArray.FromNSObjects(array); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextBlocks_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextBlocks_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("setTextLists:")] public virtual void SetTextLists(NSTextList[] array) { NSApplication.EnsureUIThread(); if (array == null) { throw new ArgumentNullException("array"); } NSArray nSArray = NSArray.FromNSObjects(array); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextLists_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextLists_Handle, nSArray.Handle); } nSArray.Dispose(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TabStops_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSNib.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSNib", true)] public class NSNib : NSObject { private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selInitWithNibNamedBundle_Handle = Selector.GetHandle("initWithNibNamed:bundle:"); private static readonly IntPtr selInstantiateNibWithExternalNameTable_Handle = Selector.GetHandle("instantiateNibWithExternalNameTable:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNib"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNib() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNib(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNib(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNib(IntPtr handle) : base(handle) { } [Export("initWithContentsOfURL:")] public NSNib(NSUrl nibFileUrl) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (nibFileUrl == null) { throw new ArgumentNullException("nibFileUrl"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, nibFileUrl.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, nibFileUrl.Handle); } } [Export("initWithNibNamed:bundle:")] public NSNib(string nibName, NSBundle bundle) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (nibName == null) { throw new ArgumentNullException("nibName"); } if (bundle == null) { throw new ArgumentNullException("bundle"); } IntPtr arg = NSString.CreateNative(nibName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithNibNamedBundle_Handle, arg, bundle.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithNibNamedBundle_Handle, arg, bundle.Handle); } NSString.ReleaseNative(arg); } [Export("instantiateNibWithExternalNameTable:")] public virtual bool InstantiateNib(NSDictionary externalNameTable) { NSApplication.EnsureUIThread(); if (externalNameTable == null) { throw new ArgumentNullException("externalNameTable"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selInstantiateNibWithExternalNameTable_Handle, externalNameTable.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selInstantiateNibWithExternalNameTable_Handle, externalNameTable.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSObjectController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSObjectController", true)] public class NSObjectController : NSController { private static readonly IntPtr selContentHandle = Selector.GetHandle("content"); private static readonly IntPtr selSetContent_Handle = Selector.GetHandle("setContent:"); private static readonly IntPtr selSelectionHandle = Selector.GetHandle("selection"); private static readonly IntPtr selSelectedObjectsHandle = Selector.GetHandle("selectedObjects"); private static readonly IntPtr selSetSelectedObjects_Handle = Selector.GetHandle("setSelectedObjects:"); private static readonly IntPtr selAutomaticallyPreparesContentHandle = Selector.GetHandle("automaticallyPreparesContent"); private static readonly IntPtr selSetAutomaticallyPreparesContent_Handle = Selector.GetHandle("setAutomaticallyPreparesContent:"); private static readonly IntPtr selObjectClassHandle = Selector.GetHandle("objectClass"); private static readonly IntPtr selSetObjectClass_Handle = Selector.GetHandle("setObjectClass:"); private static readonly IntPtr selNewObjectHandle = Selector.GetHandle("newObject"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selCanAddHandle = Selector.GetHandle("canAdd"); private static readonly IntPtr selCanRemoveHandle = Selector.GetHandle("canRemove"); private static readonly IntPtr selEntityNameHandle = Selector.GetHandle("entityName"); private static readonly IntPtr selSetEntityName_Handle = Selector.GetHandle("setEntityName:"); private static readonly IntPtr selFetchPredicateHandle = Selector.GetHandle("fetchPredicate"); private static readonly IntPtr selSetFetchPredicate_Handle = Selector.GetHandle("setFetchPredicate:"); private static readonly IntPtr selUsesLazyFetchingHandle = Selector.GetHandle("usesLazyFetching"); private static readonly IntPtr selSetUsesLazyFetching_Handle = Selector.GetHandle("setUsesLazyFetching:"); private static readonly IntPtr selInitWithContent_Handle = Selector.GetHandle("initWithContent:"); private static readonly IntPtr selPrepareContentHandle = Selector.GetHandle("prepareContent"); private static readonly IntPtr selAddObject_Handle = Selector.GetHandle("addObject:"); private static readonly IntPtr selRemoveObject_Handle = Selector.GetHandle("removeObject:"); private static readonly IntPtr selAdd_Handle = Selector.GetHandle("add:"); private static readonly IntPtr selRemove_Handle = Selector.GetHandle("remove:"); private static readonly IntPtr selValidateUserInterfaceItem_Handle = Selector.GetHandle("validateUserInterfaceItem:"); private static readonly IntPtr selFetch_Handle = Selector.GetHandle("fetch:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSObjectController"); private object __mt_Content_var; private object __mt_Selection_var; private object __mt_SelectedObjects_var; private object __mt_NewObject_var; private object __mt_FetchPredicate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Content { [Export("content")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Content_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentHandle)))); } [Export("setContent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContent_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContent_Handle, value.Handle); } __mt_Content_var = value; } } public virtual NSObjectController Selection { [Export("selection")] get { NSApplication.EnsureUIThread(); return (NSObjectController)(__mt_Selection_var = ((!IsDirectBinding) ? ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionHandle))) : ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionHandle))))); } } public virtual NSObject[] SelectedObjects { [Export("selectedObjects")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_SelectedObjects_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedObjectsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedObjectsHandle)))); } set { throw new NotImplementedException(); } } public virtual bool AutomaticallyPreparesContent { [Export("automaticallyPreparesContent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticallyPreparesContentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticallyPreparesContentHandle); } [Export("setAutomaticallyPreparesContent:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticallyPreparesContent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticallyPreparesContent_Handle, value); } } } public virtual Class ObjectClass { [Export("objectClass")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectClassHandle)); } [Export("setObjectClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectClass_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectClass_Handle, value.Handle); } } } public virtual NSObjectController NewObject { [Export("newObject")] get { NSApplication.EnsureUIThread(); return (NSObjectController)(__mt_NewObject_var = ((!IsDirectBinding) ? ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNewObjectHandle))) : ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNewObjectHandle))))); } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool CanAdd { [Export("canAdd")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanAddHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanAddHandle); } } public virtual bool CanRemove { [Export("canRemove")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanRemoveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanRemoveHandle); } } public virtual string EntityName { [Export("entityName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityNameHandle)); } [Export("setEntityName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEntityName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEntityName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSPredicate FetchPredicate { [Export("fetchPredicate")] get { NSApplication.EnsureUIThread(); return (NSPredicate)(__mt_FetchPredicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFetchPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFetchPredicateHandle))))); } [Export("setFetchPredicate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFetchPredicate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFetchPredicate_Handle, value.Handle); } __mt_FetchPredicate_var = value; } } public virtual bool UsesLazyFetching { [Export("usesLazyFetching")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesLazyFetchingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesLazyFetchingHandle); } [Export("setUsesLazyFetching:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesLazyFetching_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesLazyFetching_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSObjectController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSObjectController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSObjectController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSObjectController(IntPtr handle) : base(handle) { } [Export("initWithContent:")] public NSObjectController(NSObject content) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (content == null) { throw new ArgumentNullException("content"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContent_Handle, content.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContent_Handle, content.Handle); } } [Export("prepareContent")] public virtual void PrepareContent() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPrepareContentHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPrepareContentHandle); } } [Export("addObject:")] public virtual void AddObject(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObject_Handle, object1.Handle); } } [Export("removeObject:")] public virtual void RemoveObject(NSObject object1) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObject_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObject_Handle, object1.Handle); } } [Export("setEditable:")] public virtual void SetEditable(bool editable) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, editable); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, editable); } } [Export("add:")] public virtual void Add(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAdd_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAdd_Handle, sender.Handle); } } [Export("remove:")] public virtual void Remove(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemove_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemove_Handle, sender.Handle); } } [Export("validateUserInterfaceItem:")] public virtual bool ValidateUserInterfaceItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateUserInterfaceItem_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateUserInterfaceItem_Handle, item.Handle); } [Export("fetch:")] public virtual void Fetch(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFetch_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFetch_Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Content_var = null; __mt_Selection_var = null; __mt_SelectedObjects_var = null; __mt_NewObject_var = null; __mt_FetchPredicate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSObjectPredicate.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSObjectPredicate(NSObject sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLContext.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; using OpenGL; namespace AppKit; [Register("NSOpenGLContext", true)] public class NSOpenGLContext : NSObject { private static readonly IntPtr selCurrentContextHandle = Selector.GetHandle("currentContext"); private static readonly IntPtr selCGLContextObjHandle = Selector.GetHandle("CGLContextObj"); private static readonly IntPtr selPixelBufferHandle = Selector.GetHandle("pixelBuffer"); private static readonly IntPtr selPixelBufferCubeMapFaceHandle = Selector.GetHandle("pixelBufferCubeMapFace"); private static readonly IntPtr selPixelBufferMipMapLevelHandle = Selector.GetHandle("pixelBufferMipMapLevel"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selCurrentVirtualScreenHandle = Selector.GetHandle("currentVirtualScreen"); private static readonly IntPtr selSetCurrentVirtualScreen_Handle = Selector.GetHandle("setCurrentVirtualScreen:"); private static readonly IntPtr selInitWithFormatShareContext_Handle = Selector.GetHandle("initWithFormat:shareContext:"); private static readonly IntPtr selSetFullScreenHandle = Selector.GetHandle("setFullScreen"); private static readonly IntPtr selSetOffScreenWidthHeightRowbytes_Handle = Selector.GetHandle("setOffScreen:width:height:rowbytes:"); private static readonly IntPtr selClearDrawableHandle = Selector.GetHandle("clearDrawable"); private static readonly IntPtr selUpdateHandle = Selector.GetHandle("update"); private static readonly IntPtr selFlushBufferHandle = Selector.GetHandle("flushBuffer"); private static readonly IntPtr selMakeCurrentContextHandle = Selector.GetHandle("makeCurrentContext"); private static readonly IntPtr selClearCurrentContextHandle = Selector.GetHandle("clearCurrentContext"); private static readonly IntPtr selCopyAttributesFromContextWithMask_Handle = Selector.GetHandle("copyAttributesFromContext:withMask:"); private static readonly IntPtr selSetValuesForParameter_Handle = Selector.GetHandle("setValues:forParameter:"); private static readonly IntPtr selGetValuesForParameter_Handle = Selector.GetHandle("getValues:forParameter:"); private static readonly IntPtr selCreateTextureFromViewInternalFormat_Handle = Selector.GetHandle("createTexture:fromView:internalFormat:"); private static readonly IntPtr selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen_Handle = Selector.GetHandle("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:"); private static readonly IntPtr selSetTextureImageToPixelBufferColorBuffer_Handle = Selector.GetHandle("setTextureImageToPixelBuffer:colorBuffer:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOpenGLContext"); private static object __mt_CurrentContext_var_static; private object __mt_PixelBuffer_var; private object __mt_View_var; public bool SwapRectangleEnabled { get { return GetValue(NSOpenGLContextParameter.SwapRectangleEnable) != 0; } set { SetValue(value ? 1 : 0, NSOpenGLContextParameter.SwapRectangleEnable); } } public bool RasterizationEnabled { get { return GetValue(NSOpenGLContextParameter.RasterizationEnable) != 0; } set { SetValue(value ? 1 : 0, NSOpenGLContextParameter.RasterizationEnable); } } public bool SwapInterval { get { return GetValue(NSOpenGLContextParameter.SwapInterval) != 0; } set { SetValue(value ? 1 : 0, NSOpenGLContextParameter.SwapInterval); } } public NSSurfaceOrder SurfaceOrder { get { int value = GetValue(NSOpenGLContextParameter.SurfaceOrder); if (value == -1) { return NSSurfaceOrder.BelowWindow; } return NSSurfaceOrder.AboveWindow; } set { SetValue((value != NSSurfaceOrder.BelowWindow) ? 1 : (-1), NSOpenGLContextParameter.SurfaceOrder); } } public bool SurfaceOpaque { get { return GetValue(NSOpenGLContextParameter.SurfaceOpacity) != 0; } set { SetValue(value ? 1 : 0, NSOpenGLContextParameter.SurfaceOpacity); } } public bool StateValidation { get { return GetValue(NSOpenGLContextParameter.StateValidation) != 0; } set { SetValue(value ? 1 : 0, NSOpenGLContextParameter.StateValidation); } } public override IntPtr ClassHandle => class_ptr; public static NSOpenGLContext CurrentContext { [Export("currentContext")] get { NSApplication.EnsureUIThread(); return (NSOpenGLContext)(__mt_CurrentContext_var_static = (NSOpenGLContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentContextHandle))); } } [ThreadSafe] public virtual CGLContext CGLContext { [Export("CGLContextObj")] get { if (IsDirectBinding) { return new CGLContext(Messaging.IntPtr_objc_msgSend(base.Handle, selCGLContextObjHandle)); } return new CGLContext(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGLContextObjHandle)); } } public virtual NSOpenGLPixelBuffer PixelBuffer { [Export("pixelBuffer")] get { NSApplication.EnsureUIThread(); return (NSOpenGLPixelBuffer)(__mt_PixelBuffer_var = ((!IsDirectBinding) ? ((NSOpenGLPixelBuffer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPixelBufferHandle))) : ((NSOpenGLPixelBuffer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPixelBufferHandle))))); } } public virtual int PixelBufferCubeMapFace { [Export("pixelBufferCubeMapFace")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPixelBufferCubeMapFaceHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPixelBufferCubeMapFaceHandle); } } public virtual int PixelBufferMipMapLevel { [Export("pixelBufferMipMapLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPixelBufferMipMapLevelHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPixelBufferMipMapLevelHandle); } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value.Handle); } __mt_View_var = value; } } public virtual int CurrentVirtualScreen { [Export("currentVirtualScreen")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selCurrentVirtualScreenHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selCurrentVirtualScreenHandle); } [Export("setCurrentVirtualScreen:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetCurrentVirtualScreen_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetCurrentVirtualScreen_Handle, value); } } } private unsafe void SetValue(int val, NSOpenGLContextParameter par) { int* ptr = &val; SetValues((IntPtr)ptr, par); } private unsafe int GetValue(NSOpenGLContextParameter par) { int result = default(int); int* ptr = &result; GetValues((IntPtr)ptr, par); return result; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenGLContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLContext(IntPtr handle) : base(handle) { } [Export("initWithFormat:shareContext:")] public NSOpenGLContext(NSOpenGLPixelFormat format, NSOpenGLContext shareContext) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (format == null) { throw new ArgumentNullException("format"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithFormatShareContext_Handle, format.Handle, shareContext?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithFormatShareContext_Handle, format.Handle, shareContext?.Handle ?? IntPtr.Zero); } } [Export("setFullScreen")] public virtual void SetFullScreen() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetFullScreenHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetFullScreenHandle); } } [Export("setOffScreen:width:height:rowbytes:")] public virtual void SetOffScreen(IntPtr baseaddr, int width, int height, int rowbytes) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int_int_int(base.Handle, selSetOffScreenWidthHeightRowbytes_Handle, baseaddr, width, height, rowbytes); } else { Messaging.void_objc_msgSendSuper_IntPtr_int_int_int(base.SuperHandle, selSetOffScreenWidthHeightRowbytes_Handle, baseaddr, width, height, rowbytes); } } [Export("clearDrawable")] public virtual void ClearDrawable() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearDrawableHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearDrawableHandle); } } [Export("update")] public virtual void Update() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateHandle); } } [Export("flushBuffer")] [ThreadSafe] public virtual void FlushBuffer() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlushBufferHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlushBufferHandle); } } [Export("makeCurrentContext")] [ThreadSafe] public virtual void MakeCurrentContext() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakeCurrentContextHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakeCurrentContextHandle); } } [Export("clearCurrentContext")] public static void ClearCurrentContext() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selClearCurrentContextHandle); } [Export("copyAttributesFromContext:withMask:")] public virtual void CopyAttributes(NSOpenGLContext context, uint mask) { NSApplication.EnsureUIThread(); if (context == null) { throw new ArgumentNullException("context"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt32(base.Handle, selCopyAttributesFromContextWithMask_Handle, context.Handle, mask); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selCopyAttributesFromContextWithMask_Handle, context.Handle, mask); } } [Export("setValues:forParameter:")] public virtual void SetValues(IntPtr vals, NSOpenGLContextParameter param) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetValuesForParameter_Handle, vals, (long)param); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetValuesForParameter_Handle, vals, (long)param); } } [Export("getValues:forParameter:")] public virtual void GetValues(IntPtr vals, NSOpenGLContextParameter param) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selGetValuesForParameter_Handle, vals, (long)param); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selGetValuesForParameter_Handle, vals, (long)param); } } [Export("createTexture:fromView:internalFormat:")] public virtual void CreateTexture(int targetIdentifier, NSView view, int format) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr_int(base.Handle, selCreateTextureFromViewInternalFormat_Handle, targetIdentifier, view.Handle, format); } else { Messaging.void_objc_msgSendSuper_int_IntPtr_int(base.SuperHandle, selCreateTextureFromViewInternalFormat_Handle, targetIdentifier, view.Handle, format); } } [Export("setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:")] public virtual void SetPixelBuffer(NSOpenGLPixelBuffer pixelBuffer, NSGLTextureCubeMap face, int level, int screen) { NSApplication.EnsureUIThread(); if (pixelBuffer == null) { throw new ArgumentNullException("pixelBuffer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int_int_int(base.Handle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen_Handle, pixelBuffer.Handle, (int)face, level, screen); } else { Messaging.void_objc_msgSendSuper_IntPtr_int_int_int(base.SuperHandle, selSetPixelBufferCubeMapFaceMipMapLevelCurrentVirtualScreen_Handle, pixelBuffer.Handle, (int)face, level, screen); } } [Export("setTextureImageToPixelBuffer:colorBuffer:")] public virtual void SetTextureImage(NSOpenGLPixelBuffer pixelBuffer, NSGLColorBuffer source) { NSApplication.EnsureUIThread(); if (pixelBuffer == null) { throw new ArgumentNullException("pixelBuffer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetTextureImageToPixelBufferColorBuffer_Handle, pixelBuffer.Handle, (int)source); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetTextureImageToPixelBufferColorBuffer_Handle, pixelBuffer.Handle, (int)source); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PixelBuffer_var = null; __mt_View_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLContextParameter.cs ================================================ using System; using ObjCRuntime; namespace AppKit; public enum NSOpenGLContextParameter : long { [Obsolete] SwapRectangle = 200L, [Obsolete] SwapRectangleEnable = 201L, [Obsolete] RasterizationEnable = 221L, [Obsolete] StateValidation = 301L, [Obsolete] SurfaceSurfaceVolatile = 306L, SwapInterval = 222L, SurfaceOrder = 235L, SurfaceOpacity = 236L, [Lion] SurfaceBackingSize = 304L, [Lion] ReclaimResources = 308L, [Lion] CurrentRendererID = 309L, [Lion] GpuVertexProcessing = 310L, [Lion] GpuFragmentProcessing = 311L, [Lion] HasDrawable = 314L, [Lion] MpsSwapsInFlight = 315L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLGlobalOption.cs ================================================ using System; using ObjCRuntime; namespace AppKit; public enum NSOpenGLGlobalOption { FormatCacheSize = 501, ClearFormatCache = 502, RetainRenderers = 503, [Lion] UseBuildCache = 506, [Obsolete] ResetLibrary = 504 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLPixelBuffer.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOpenGLPixelBuffer", true)] public class NSOpenGLPixelBuffer : NSObject { private static readonly IntPtr selCGLPBufferObjHandle = Selector.GetHandle("CGLPBufferObj"); private static readonly IntPtr selPixelsWideHandle = Selector.GetHandle("pixelsWide"); private static readonly IntPtr selPixelsHighHandle = Selector.GetHandle("pixelsHigh"); private static readonly IntPtr selTextureTargetHandle = Selector.GetHandle("textureTarget"); private static readonly IntPtr selTextureInternalFormatHandle = Selector.GetHandle("textureInternalFormat"); private static readonly IntPtr selTextureMaxMipMapLevelHandle = Selector.GetHandle("textureMaxMipMapLevel"); private static readonly IntPtr selInitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh_Handle = Selector.GetHandle("initWithTextureTarget:textureInternalFormat:textureMaxMipMapLevel:pixelsWide:pixelsHigh:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOpenGLPixelBuffer"); public override IntPtr ClassHandle => class_ptr; public virtual IntPtr CGLPBuffer { [Export("CGLPBufferObj")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selCGLPBufferObjHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGLPBufferObjHandle); } } public virtual int PixelsWide { [Export("pixelsWide")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPixelsWideHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPixelsWideHandle); } } public virtual int PixelsHigh { [Export("pixelsHigh")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPixelsHighHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPixelsHighHandle); } } public virtual NSGLTextureTarget TextureTarget { [Export("textureTarget")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSGLTextureTarget)Messaging.int_objc_msgSend(base.Handle, selTextureTargetHandle); } return (NSGLTextureTarget)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTextureTargetHandle); } } public virtual NSGLFormat TextureInternalFormat { [Export("textureInternalFormat")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSGLFormat)Messaging.int_objc_msgSend(base.Handle, selTextureInternalFormatHandle); } return (NSGLFormat)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTextureInternalFormatHandle); } } public virtual int TextureMaxMipMapLevel { [Export("textureMaxMipMapLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTextureMaxMipMapLevelHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTextureMaxMipMapLevelHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOpenGLPixelBuffer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenGLPixelBuffer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLPixelBuffer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLPixelBuffer(IntPtr handle) : base(handle) { } [Export("initWithTextureTarget:textureInternalFormat:textureMaxMipMapLevel:pixelsWide:pixelsHigh:")] public NSOpenGLPixelBuffer(NSGLTextureTarget targetGlEnum, NSGLFormat format, int maxLevel, int pixelsWide, int pixelsHigh) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int_int_int_int_int(base.Handle, selInitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh_Handle, (int)targetGlEnum, (int)format, maxLevel, pixelsWide, pixelsHigh); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int_int_int_int_int(base.SuperHandle, selInitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh_Handle, (int)targetGlEnum, (int)format, maxLevel, pixelsWide, pixelsHigh); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLPixelFormat.cs ================================================ using System; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; using OpenGL; namespace AppKit; [Register("NSOpenGLPixelFormat", true)] public class NSOpenGLPixelFormat : NSObject { private static IntPtr selInitWithAttributes = Selector.GetHandle("initWithAttributes:"); private static readonly IntPtr selNumberOfVirtualScreensHandle = Selector.GetHandle("numberOfVirtualScreens"); private static readonly IntPtr selCGLPixelFormatObjHandle = Selector.GetHandle("CGLPixelFormatObj"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selGetValuesForAttributeForVirtualScreen_Handle = Selector.GetHandle("getValues:forAttribute:forVirtualScreen:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOpenGLPixelFormat"); public override IntPtr ClassHandle => class_ptr; public virtual int NumberOfVirtualScreens { [Export("numberOfVirtualScreens")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfVirtualScreensHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfVirtualScreensHandle); } } public virtual CGLPixelFormat CGLPixelFormat { [Export("CGLPixelFormatObj")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new CGLPixelFormat(Messaging.IntPtr_objc_msgSend(base.Handle, selCGLPixelFormatObjHandle)); } return new CGLPixelFormat(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCGLPixelFormatObjHandle)); } } public unsafe NSOpenGLPixelFormat(NSOpenGLPixelFormatAttribute[] attribs) : base(NSObjectFlag.Empty) { if (attribs == null) { throw new ArgumentNullException("attribs"); } NSOpenGLPixelFormatAttribute[] array = new NSOpenGLPixelFormatAttribute[attribs.Length + 1]; Array.Copy(attribs, 0, array, 0, attribs.Length); fixed (NSOpenGLPixelFormatAttribute* value = array) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAttributes, new IntPtr(value)); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAttributes, new IntPtr(value)); } } } private static NSOpenGLPixelFormatAttribute[] ConvertToAttributes(object[] args) { List list = new List(); for (int i = 0; i < args.Length; i++) { NSOpenGLPixelFormatAttribute nSOpenGLPixelFormatAttribute = (NSOpenGLPixelFormatAttribute)args[i]; switch (nSOpenGLPixelFormatAttribute) { case NSOpenGLPixelFormatAttribute.AllRenderers: case NSOpenGLPixelFormatAttribute.DoubleBuffer: case NSOpenGLPixelFormatAttribute.Stereo: case NSOpenGLPixelFormatAttribute.MinimumPolicy: case NSOpenGLPixelFormatAttribute.MaximumPolicy: case NSOpenGLPixelFormatAttribute.OffScreen: case NSOpenGLPixelFormatAttribute.FullScreen: case NSOpenGLPixelFormatAttribute.AuxDepthStencil: case NSOpenGLPixelFormatAttribute.ColorFloat: case NSOpenGLPixelFormatAttribute.Multisample: case NSOpenGLPixelFormatAttribute.Supersample: case NSOpenGLPixelFormatAttribute.SampleAlpha: case NSOpenGLPixelFormatAttribute.SingleRenderer: case NSOpenGLPixelFormatAttribute.NoRecovery: case NSOpenGLPixelFormatAttribute.Accelerated: case NSOpenGLPixelFormatAttribute.ClosestPolicy: case NSOpenGLPixelFormatAttribute.Robust: case NSOpenGLPixelFormatAttribute.BackingStore: case NSOpenGLPixelFormatAttribute.MPSafe: case NSOpenGLPixelFormatAttribute.Window: case NSOpenGLPixelFormatAttribute.MultiScreen: case NSOpenGLPixelFormatAttribute.Compliant: case NSOpenGLPixelFormatAttribute.PixelBuffer: case NSOpenGLPixelFormatAttribute.RemotePixelBuffer: case NSOpenGLPixelFormatAttribute.AllowOfflineRenderers: case NSOpenGLPixelFormatAttribute.AcceleratedCompute: list.Add(nSOpenGLPixelFormatAttribute); break; case NSOpenGLPixelFormatAttribute.AuxBuffers: case NSOpenGLPixelFormatAttribute.ColorSize: case NSOpenGLPixelFormatAttribute.AlphaSize: case NSOpenGLPixelFormatAttribute.DepthSize: case NSOpenGLPixelFormatAttribute.StencilSize: case NSOpenGLPixelFormatAttribute.AccumSize: case NSOpenGLPixelFormatAttribute.SampleBuffers: case NSOpenGLPixelFormatAttribute.Samples: case NSOpenGLPixelFormatAttribute.RendererID: case NSOpenGLPixelFormatAttribute.ScreenMask: case NSOpenGLPixelFormatAttribute.VirtualScreenCount: list.Add(nSOpenGLPixelFormatAttribute); i++; if (i >= args.Length) { throw new ArgumentException(string.Concat("Attribute ", nSOpenGLPixelFormatAttribute, " needs a value")); } list.Add((NSOpenGLPixelFormatAttribute)args[i]); break; } } return list.ToArray(); } public unsafe NSOpenGLPixelFormat(params object[] attribs) : this(ConvertToAttributes(attribs)) { if (attribs == null) { throw new ArgumentNullException("attribs"); } NSOpenGLPixelFormatAttribute[] array = new NSOpenGLPixelFormatAttribute[attribs.Length + 1]; Array.Copy(attribs, 0, array, 0, attribs.Length); fixed (NSOpenGLPixelFormatAttribute* value = array) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAttributes, new IntPtr(value)); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAttributes, new IntPtr(value)); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOpenGLPixelFormat() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenGLPixelFormat(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLPixelFormat(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLPixelFormat(IntPtr handle) : base(handle) { } [Export("initWithData:")] public NSOpenGLPixelFormat(NSData attribs) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (attribs == null) { throw new ArgumentNullException("attribs"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, attribs.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, attribs.Handle); } } [Export("getValues:forAttribute:forVirtualScreen:")] public virtual void GetValue(ref int vals, NSOpenGLPixelFormatAttribute attrib, int screen) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Int32_int_int(base.Handle, selGetValuesForAttributeForVirtualScreen_Handle, out vals, (int)attrib, screen); } else { Messaging.void_objc_msgSendSuper_out_Int32_int_int(base.SuperHandle, selGetValuesForAttributeForVirtualScreen_Handle, out vals, (int)attrib, screen); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLPixelFormatAttribute.cs ================================================ using System; using ObjCRuntime; namespace AppKit; public enum NSOpenGLPixelFormatAttribute { AllRenderers = 1, DoubleBuffer = 5, [Lion] TrippleBuffer = 3, Stereo = 6, AuxBuffers = 7, ColorSize = 8, AlphaSize = 11, DepthSize = 12, StencilSize = 13, AccumSize = 14, MinimumPolicy = 51, MaximumPolicy = 52, OffScreen = 53, FullScreen = 54, SampleBuffers = 55, Samples = 56, AuxDepthStencil = 57, ColorFloat = 58, Multisample = 59, Supersample = 60, SampleAlpha = 61, RendererID = 70, SingleRenderer = 71, NoRecovery = 72, Accelerated = 73, ClosestPolicy = 74, BackingStore = 76, Window = 80, Compliant = 83, ScreenMask = 84, PixelBuffer = 90, RemotePixelBuffer = 91, AllowOfflineRenderers = 96, AcceleratedCompute = 97, [Lion] OpenGLProfile = 99, VirtualScreenCount = 128, [Obsolete] Robust = 75, [Obsolete] MPSafe = 78, [Obsolete] MultiScreen = 81 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLProfile.cs ================================================ namespace AppKit; public enum NSOpenGLProfile { VersionLegacy = 4096, Version3_2Core = 12800 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenGLView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOpenGLView", true)] public class NSOpenGLView : NSView { private static readonly IntPtr selDefaultPixelFormatHandle = Selector.GetHandle("defaultPixelFormat"); private static readonly IntPtr selOpenGLContextHandle = Selector.GetHandle("openGLContext"); private static readonly IntPtr selSetOpenGLContext_Handle = Selector.GetHandle("setOpenGLContext:"); private static readonly IntPtr selPixelFormatHandle = Selector.GetHandle("pixelFormat"); private static readonly IntPtr selSetPixelFormat_Handle = Selector.GetHandle("setPixelFormat:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selInitWithFramePixelFormat_Handle = Selector.GetHandle("initWithFrame:pixelFormat:"); private static readonly IntPtr selClearGLContextHandle = Selector.GetHandle("clearGLContext"); private static readonly IntPtr selUpdateHandle = Selector.GetHandle("update"); private static readonly IntPtr selReshapeHandle = Selector.GetHandle("reshape"); private static readonly IntPtr selPrepareOpenGLHandle = Selector.GetHandle("prepareOpenGL"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOpenGLView"); private static object __mt_DefaultPixelFormat_var_static; private object __mt_OpenGLContext_var; private object __mt_PixelFormat_var; public override IntPtr ClassHandle => class_ptr; public static NSOpenGLPixelFormat DefaultPixelFormat { [Export("defaultPixelFormat")] get { NSApplication.EnsureUIThread(); return (NSOpenGLPixelFormat)(__mt_DefaultPixelFormat_var_static = (NSOpenGLPixelFormat)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultPixelFormatHandle))); } } public virtual NSOpenGLContext OpenGLContext { [Export("openGLContext")] get { NSApplication.EnsureUIThread(); return (NSOpenGLContext)(__mt_OpenGLContext_var = ((!IsDirectBinding) ? ((NSOpenGLContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOpenGLContextHandle))) : ((NSOpenGLContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOpenGLContextHandle))))); } [Export("setOpenGLContext:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOpenGLContext_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOpenGLContext_Handle, value.Handle); } __mt_OpenGLContext_var = value; } } public virtual NSOpenGLPixelFormat PixelFormat { [Export("pixelFormat")] get { NSApplication.EnsureUIThread(); return (NSOpenGLPixelFormat)(__mt_PixelFormat_var = ((!IsDirectBinding) ? ((NSOpenGLPixelFormat)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPixelFormatHandle))) : ((NSOpenGLPixelFormat)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPixelFormatHandle))))); } [Export("setPixelFormat:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPixelFormat_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPixelFormat_Handle, value.Handle); } __mt_PixelFormat_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOpenGLView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenGLView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenGLView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSOpenGLView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("initWithFrame:pixelFormat:")] public NSOpenGLView(CGRect frameRect, NSOpenGLPixelFormat format) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (format == null) { throw new ArgumentNullException("format"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(base.Handle, selInitWithFramePixelFormat_Handle, frameRect, format.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selInitWithFramePixelFormat_Handle, frameRect, format.Handle); } } [Export("clearGLContext")] public virtual void ClearGLContext() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearGLContextHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearGLContextHandle); } } [Export("update")] public virtual void Update() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateHandle); } } [Export("reshape")] public virtual void Reshape() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReshapeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReshapeHandle); } } [Export("prepareOpenGL")] public virtual void PrepareOpenGL() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPrepareOpenGLHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPrepareOpenGLHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OpenGLContext_var = null; __mt_PixelFormat_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOpenPanel", true)] public class NSOpenPanel : NSSavePanel { private static readonly IntPtr selOpenPanelHandle = Selector.GetHandle("openPanel"); private static readonly IntPtr selURLsHandle = Selector.GetHandle("URLs"); private static readonly IntPtr selResolvesAliasesHandle = Selector.GetHandle("resolvesAliases"); private static readonly IntPtr selSetResolvesAliases_Handle = Selector.GetHandle("setResolvesAliases:"); private static readonly IntPtr selCanChooseDirectoriesHandle = Selector.GetHandle("canChooseDirectories"); private static readonly IntPtr selSetCanChooseDirectories_Handle = Selector.GetHandle("setCanChooseDirectories:"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selCanChooseFilesHandle = Selector.GetHandle("canChooseFiles"); private static readonly IntPtr selSetCanChooseFiles_Handle = Selector.GetHandle("setCanChooseFiles:"); private static readonly IntPtr selFilenamesHandle = Selector.GetHandle("filenames"); private static readonly IntPtr selBeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selBeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selRunModalForDirectoryFileTypes_Handle = Selector.GetHandle("runModalForDirectory:file:types:"); private static readonly IntPtr selRunModalForTypes_Handle = Selector.GetHandle("runModalForTypes:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOpenPanel"); private static object __mt_OpenPanel_var_static; private object __mt_Urls_var; public override IntPtr ClassHandle => class_ptr; public static NSOpenPanel OpenPanel { [Export("openPanel")] get { NSApplication.EnsureUIThread(); return (NSOpenPanel)(__mt_OpenPanel_var_static = (NSOpenPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOpenPanelHandle))); } } public virtual NSUrl[] Urls { [Export("URLs")] get { NSApplication.EnsureUIThread(); return (NSUrl[])(__mt_Urls_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURLsHandle)))); } } public virtual bool ResolvesAliases { [Export("resolvesAliases")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selResolvesAliasesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selResolvesAliasesHandle); } [Export("setResolvesAliases:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetResolvesAliases_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetResolvesAliases_Handle, value); } } } public virtual bool CanChooseDirectories { [Export("canChooseDirectories")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanChooseDirectoriesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanChooseDirectoriesHandle); } [Export("setCanChooseDirectories:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanChooseDirectories_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanChooseDirectories_Handle, value); } } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual bool CanChooseFiles { [Export("canChooseFiles")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanChooseFilesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanChooseFilesHandle); } [Export("setCanChooseFiles:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanChooseFiles_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanChooseFiles_Handle, value); } } } [Obsolete("On 10.6 and newer, use Uris", false)] public virtual string[] Filenames { [Export("filenames")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFilenamesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilenamesHandle)); } } public void BeginSheet(string directory, string fileName, string[] fileTypes, NSWindow modalForWindow) { BeginSheet(directory, fileName, fileTypes, modalForWindow, null, null, IntPtr.Zero); } public void BeginSheet(string directory, string fileName, string[] fileTypes, NSWindow modalForWindow, NSAction onEnded) { NSObject modalDelegate = OneShotTracker.Create(onEnded); BeginSheet(directory, fileName, fileTypes, modalForWindow, modalDelegate, NSActionDispatcher.Selector, IntPtr.Zero); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOpenPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenPanel(IntPtr handle) : base(handle) { } [Export("beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:")] [Obsolete("On 10.6 and newer use runModalForWindow:", false)] public virtual void BeginSheet(string directory, string fileName, string[] fileTypes, NSWindow modalForWindow, NSObject modalDelegate, Selector didEndSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(directory); IntPtr arg2 = NSString.CreateNative(fileName); NSArray nSArray = ((fileTypes == null) ? null : NSArray.FromStrings(fileTypes)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero, modalForWindow?.Handle ?? IntPtr.Zero, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetForDirectoryFileTypesModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero, modalForWindow?.Handle ?? IntPtr.Zero, modalDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray?.Dispose(); } [Export("beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:")] [Obsolete("On 10.6 and newer use runWithCompletionHandler:", false)] public virtual void Begin(string directory, string fileName, string[] fileTypes, NSObject modelessDelegate, Selector didEndSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(directory); IntPtr arg2 = NSString.CreateNative(fileName); NSArray nSArray = ((fileTypes == null) ? null : NSArray.FromStrings(fileTypes)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero, modelessDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginForDirectoryFileTypesModelessDelegateDidEndSelectorContextInfo_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero, modelessDelegate?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray?.Dispose(); } [Export("runModalForDirectory:file:types:")] [Obsolete("On 10.6 and newer use runModal:", false)] public virtual long RunModal(string directory, string fileName, string[] types) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(directory); IntPtr arg2 = NSString.CreateNative(fileName); NSArray nSArray = ((types == null) ? null : NSArray.FromStrings(types)); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunModalForDirectoryFileTypes_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRunModalForDirectoryFileTypes_Handle, arg, arg2, nSArray?.Handle ?? IntPtr.Zero)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray?.Dispose(); return result; } [Export("runModalForTypes:")] [Obsolete("On 10.6 and newer use runModal:", false)] public virtual long RunModal(string[] types) { NSApplication.EnsureUIThread(); if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunModalForTypes_Handle, nSArray.Handle) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRunModalForTypes_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Urls_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSaveCompare.cs ================================================ using Foundation; namespace AppKit; public delegate NSComparisonResult NSOpenSaveCompare(NSSavePanel panel, string name1, string name2, bool caseSensitive); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSaveExpandingEventArgs.cs ================================================ using System; namespace AppKit; public class NSOpenSaveExpandingEventArgs : EventArgs { public bool Expanding { get; set; } public NSOpenSaveExpandingEventArgs(bool expanding) { Expanding = expanding; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSaveFilename.cs ================================================ namespace AppKit; public delegate bool NSOpenSaveFilename(NSSavePanel panel, string fileName); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSaveFilenameConfirmation.cs ================================================ namespace AppKit; public delegate string NSOpenSaveFilenameConfirmation(NSSavePanel panel, string filename, bool confirmed); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSaveFilenameEventArgs.cs ================================================ using System; namespace AppKit; public class NSOpenSaveFilenameEventArgs : EventArgs { public string Path { get; set; } public NSOpenSaveFilenameEventArgs(string path) { Path = path; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSavePanelDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOpenSavePanelDelegate", true)] [Model] public class NSOpenSavePanelDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOpenSavePanelDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOpenSavePanelDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenSavePanelDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOpenSavePanelDelegate(IntPtr handle) : base(handle) { } [Export("panel:shouldEnableURL:")] public virtual bool ShouldEnableUrl(NSSavePanel panel, NSUrl url) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:validateURL:error:")] public virtual bool ValidateUrl(NSSavePanel panel, NSUrl url, out NSError outError) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:didChangeToDirectoryURL:")] public virtual void DidChangeToDirectory(NSSavePanel panel, NSUrl newDirectoryUrl) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:userEnteredFilename:confirmed:")] public virtual string UserEnteredFilename(NSSavePanel panel, string filename, bool confirmed) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:willExpand:")] public virtual void WillExpand(NSSavePanel panel, bool expanding) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panelSelectionDidChange:")] public virtual void SelectionDidChange(NSSavePanel panel) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:isValidFilename:")] [Obsolete("On 10.6 and newer use ValidateUrlError", false)] public virtual bool IsValidFilename(NSSavePanel panel, string fileName) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:directoryDidChange:")] [Obsolete("On 10.6 and newer Use DidChangeToDirectoryUrl instead", false)] public virtual void DirectoryDidChange(NSSavePanel panel, string path) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:compareFilename:with:caseSensitive")] [Obsolete("After 10.6, this method is obsolete and does not control sorting order", false)] public virtual NSComparisonResult CompareFilenames(NSSavePanel panel, string name1, string name2, bool caseSensitive) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("panel:shouldShowFilename:")] [Obsolete("On 10.6 and newer use ShouldEnableUrl", false)] public virtual bool ShouldShowFilename(NSSavePanel panel, string filename) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSavePanelUrl.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSOpenSavePanelUrl(NSSavePanel panel, NSUrl url); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSavePanelUrlEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSOpenSavePanelUrlEventArgs : EventArgs { public NSUrl NewDirectoryUrl { get; set; } public NSOpenSavePanelUrlEventArgs(NSUrl newDirectoryUrl) { NewDirectoryUrl = newDirectoryUrl; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOpenSavePanelValidate.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSOpenSavePanelValidate(NSSavePanel panel, NSUrl url, out NSError outError); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOutlineView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOutlineView", true)] public class NSOutlineView : NSTableView { private static readonly IntPtr selOutlineTableColumnHandle = Selector.GetHandle("outlineTableColumn"); private static readonly IntPtr selSetOutlineTableColumn_Handle = Selector.GetHandle("setOutlineTableColumn:"); private static readonly IntPtr selIndentationPerLevelHandle = Selector.GetHandle("indentationPerLevel"); private static readonly IntPtr selSetIndentationPerLevel_Handle = Selector.GetHandle("setIndentationPerLevel:"); private static readonly IntPtr selIndentationMarkerFollowsCellHandle = Selector.GetHandle("indentationMarkerFollowsCell"); private static readonly IntPtr selSetIndentationMarkerFollowsCell_Handle = Selector.GetHandle("setIndentationMarkerFollowsCell:"); private static readonly IntPtr selAutoresizesOutlineColumnHandle = Selector.GetHandle("autoresizesOutlineColumn"); private static readonly IntPtr selSetAutoresizesOutlineColumn_Handle = Selector.GetHandle("setAutoresizesOutlineColumn:"); private static readonly IntPtr selAutosaveExpandedItemsHandle = Selector.GetHandle("autosaveExpandedItems"); private static readonly IntPtr selSetAutosaveExpandedItems_Handle = Selector.GetHandle("setAutosaveExpandedItems:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selIsExpandable_Handle = Selector.GetHandle("isExpandable:"); private static readonly IntPtr selExpandItemExpandChildren_Handle = Selector.GetHandle("expandItem:expandChildren:"); private static readonly IntPtr selExpandItem_Handle = Selector.GetHandle("expandItem:"); private static readonly IntPtr selCollapseItemCollapseChildren_Handle = Selector.GetHandle("collapseItem:collapseChildren:"); private static readonly IntPtr selCollapseItem_Handle = Selector.GetHandle("collapseItem:"); private static readonly IntPtr selReloadItemReloadChildren_Handle = Selector.GetHandle("reloadItem:reloadChildren:"); private static readonly IntPtr selReloadItem_Handle = Selector.GetHandle("reloadItem:"); private static readonly IntPtr selParentForItem_Handle = Selector.GetHandle("parentForItem:"); private static readonly IntPtr selItemAtRow_Handle = Selector.GetHandle("itemAtRow:"); private static readonly IntPtr selRowForItem_Handle = Selector.GetHandle("rowForItem:"); private static readonly IntPtr selLevelForItem_Handle = Selector.GetHandle("levelForItem:"); private static readonly IntPtr selLevelForRow_Handle = Selector.GetHandle("levelForRow:"); private static readonly IntPtr selIsItemExpanded_Handle = Selector.GetHandle("isItemExpanded:"); private static readonly IntPtr selFrameOfOutlineCellAtRow_Handle = Selector.GetHandle("frameOfOutlineCellAtRow:"); private static readonly IntPtr selSetDropItemDropChildIndex_Handle = Selector.GetHandle("setDropItem:dropChildIndex:"); private static readonly IntPtr selShouldCollapseAutoExpandedItemsForDeposited_Handle = Selector.GetHandle("shouldCollapseAutoExpandedItemsForDeposited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOutlineView"); private object __mt_OutlineTableColumn_var; private object __mt_WeakDelegate_var; private object __mt_WeakDataSource_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTableColumn OutlineTableColumn { [Export("outlineTableColumn")] get { NSApplication.EnsureUIThread(); return (NSTableColumn)(__mt_OutlineTableColumn_var = ((!IsDirectBinding) ? ((NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutlineTableColumnHandle))) : ((NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutlineTableColumnHandle))))); } [Export("setOutlineTableColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutlineTableColumn_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutlineTableColumn_Handle, value?.Handle ?? IntPtr.Zero); } __mt_OutlineTableColumn_var = value; } } public virtual double IndentationPerLevel { [Export("indentationPerLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selIndentationPerLevelHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selIndentationPerLevelHandle); } [Export("setIndentationPerLevel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetIndentationPerLevel_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetIndentationPerLevel_Handle, value); } } } public virtual bool IndentationMarkerFollowsCell { [Export("indentationMarkerFollowsCell")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIndentationMarkerFollowsCellHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIndentationMarkerFollowsCellHandle); } [Export("setIndentationMarkerFollowsCell:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndentationMarkerFollowsCell_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndentationMarkerFollowsCell_Handle, value); } } } public virtual bool AutoresizesOutlineColumn { [Export("autoresizesOutlineColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoresizesOutlineColumnHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoresizesOutlineColumnHandle); } [Export("setAutoresizesOutlineColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoresizesOutlineColumn_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoresizesOutlineColumn_Handle, value); } } } public virtual bool AutosaveExpandedItems { [Export("autosaveExpandedItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosaveExpandedItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosaveExpandedItemsHandle); } [Export("setAutosaveExpandedItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutosaveExpandedItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutosaveExpandedItems_Handle, value); } } } public new virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public new NSOutlineViewDelegate Delegate { get { return WeakDelegate as NSOutlineViewDelegate; } set { WeakDelegate = value; } } public new virtual NSObject WeakDataSource { [Export("dataSource")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDataSource_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle)))); } [Export("setDataSource:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value.Handle); } __mt_WeakDataSource_var = value; } } public new NSOutlineViewDataSource DataSource { get { return WeakDataSource as NSOutlineViewDataSource; } set { WeakDataSource = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOutlineView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOutlineView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineView(IntPtr handle) : base(handle) { } [Export("isExpandable:")] public virtual bool IsExpandable(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsExpandable_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsExpandable_Handle, item.Handle); } [Export("expandItem:expandChildren:")] public virtual void ExpandItem(NSObject item, bool expandChildren) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selExpandItemExpandChildren_Handle, item?.Handle ?? IntPtr.Zero, expandChildren); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selExpandItemExpandChildren_Handle, item?.Handle ?? IntPtr.Zero, expandChildren); } } [Export("expandItem:")] public virtual void ExpandItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selExpandItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selExpandItem_Handle, item.Handle); } } [Export("collapseItem:collapseChildren:")] public virtual void CollapseItem(NSObject item, bool collapseChildren) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selCollapseItemCollapseChildren_Handle, item?.Handle ?? IntPtr.Zero, collapseChildren); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selCollapseItemCollapseChildren_Handle, item?.Handle ?? IntPtr.Zero, collapseChildren); } } [Export("collapseItem:")] public virtual void CollapseItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCollapseItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCollapseItem_Handle, item.Handle); } } [Export("reloadItem:reloadChildren:")] public virtual void ReloadItem(NSObject item, bool reloadChildren) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selReloadItemReloadChildren_Handle, item?.Handle ?? IntPtr.Zero, reloadChildren); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selReloadItemReloadChildren_Handle, item?.Handle ?? IntPtr.Zero, reloadChildren); } } [Export("reloadItem:")] public virtual void ReloadItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReloadItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReloadItem_Handle, item.Handle); } } [Export("parentForItem:")] public virtual NSObject GetParent(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selParentForItem_Handle, item.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selParentForItem_Handle, item.Handle)); } [Export("itemAtRow:")] public virtual NSObject ItemAtRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemAtRow_Handle, row)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemAtRow_Handle, row)); } [Export("rowForItem:")] public virtual long RowForItem(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRowForItem_Handle, item.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRowForItem_Handle, item.Handle); } [Export("levelForItem:")] public virtual long LevelForItem(NSObject item) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selLevelForItem_Handle, item?.Handle ?? IntPtr.Zero); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selLevelForItem_Handle, item?.Handle ?? IntPtr.Zero); } [Export("levelForRow:")] public virtual long LevelForRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selLevelForRow_Handle, row); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selLevelForRow_Handle, row); } [Export("isItemExpanded:")] public virtual bool IsItemExpanded(NSObject item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsItemExpanded_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsItemExpanded_Handle, item.Handle); } [Export("frameOfOutlineCellAtRow:")] public virtual CGRect FrameOfOutlineCellAtRow(long row) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selFrameOfOutlineCellAtRow_Handle, row); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selFrameOfOutlineCellAtRow_Handle, row); } return retval; } [Export("setDropItem:dropChildIndex:")] public virtual void SetDropItem(NSObject item, long index) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetDropItemDropChildIndex_Handle, item.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetDropItemDropChildIndex_Handle, item.Handle, index); } } [Export("shouldCollapseAutoExpandedItemsForDeposited:")] public virtual bool ShouldCollapseAutoExpandedItems(bool forDeposited) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_bool(base.Handle, selShouldCollapseAutoExpandedItemsForDeposited_Handle, forDeposited); } return Messaging.bool_objc_msgSendSuper_bool(base.SuperHandle, selShouldCollapseAutoExpandedItemsForDeposited_Handle, forDeposited); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OutlineTableColumn_var = null; __mt_WeakDelegate_var = null; __mt_WeakDataSource_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOutlineViewDataSource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOutlineViewDataSource", true)] [Model] public class NSOutlineViewDataSource : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOutlineViewDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOutlineViewDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineViewDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineViewDataSource(IntPtr handle) : base(handle) { } [Export("outlineView:child:ofItem:")] public virtual NSObject GetChild(NSOutlineView outlineView, long childIndex, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:isItemExpandable:")] public virtual bool ItemExpandable(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:numberOfChildrenOfItem:")] public virtual long GetChildrenCount(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:objectValueForTableColumn:byItem:")] public virtual NSObject GetObjectValue(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:setObjectValue:forTableColumn:byItem:")] public virtual void SetObjectValue(NSOutlineView outlineView, NSObject theObject, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:itemForPersistentObject:")] public virtual NSObject ItemForPersistentObject(NSOutlineView outlineView, NSObject theObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:persistentObjectForItem:")] public virtual NSObject PersistentObjectForItem(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:sortDescriptorsDidChange:")] public virtual void SortDescriptorsChanged(NSOutlineView outlineView, NSSortDescriptor[] oldDescriptors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:writeItems:toPasteboard:")] public virtual bool OutlineViewwriteItemstoPasteboard(NSOutlineView outlineView, NSArray items, NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:validateDrop:proposedItem:proposedChildIndex:")] public virtual NSDragOperation ValidateDrop(NSOutlineView outlineView, NSDraggingInfo info, NSObject item, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:acceptDrop:item:childIndex:")] public virtual bool AcceptDrop(NSOutlineView outlineView, NSDraggingInfo info, NSObject item, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems:")] public virtual string[] FilesDropped(NSOutlineView outlineView, NSUrl dropDestination, NSArray items) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSOutlineViewDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSOutlineViewDelegate", true)] [Model] public class NSOutlineViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOutlineViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOutlineViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutlineViewDelegate(IntPtr handle) : base(handle) { } [Export("outlineView:willDisplayCell:forTableColumn:item:")] public virtual void WillDisplayCell(NSOutlineView outlineView, NSObject cell, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldEditTableColumn:item:")] public virtual bool ShouldEditTableColumn(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("selectionShouldChangeInOutlineView:")] public virtual bool SelectionShouldChange(NSOutlineView outlineView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldSelectItem:")] public virtual bool ShouldSelectItem(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:selectionIndexesForProposedSelection:")] public virtual NSIndexSet GetSelectionIndexes(NSOutlineView outlineView, NSIndexSet proposedSelectionIndexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldSelectTableColumn:")] public virtual bool ShouldSelectTableColumn(NSOutlineView outlineView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:mouseDownInHeaderOfTableColumn:")] public virtual void MouseDown(NSOutlineView outlineView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:didClickTableColumn:")] public virtual void DidClickTableColumn(NSOutlineView outlineView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:didDragTableColumn:")] public virtual void DidDragTableColumn(NSOutlineView outlineView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:")] public virtual string ToolTipForCell(NSOutlineView outlineView, NSCell cell, ref CGRect rect, NSTableColumn tableColumn, NSObject item, CGPoint mouseLocation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:heightOfRowByItem:")] public virtual double GetRowHeight(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:typeSelectStringForTableColumn:item:")] public virtual string GetSelectString(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:nextTypeSelectMatchFromItem:toItem:forString:")] public virtual NSObject GetNextTypeSelectMatch(NSOutlineView outlineView, NSObject startItem, NSObject endItem, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldTypeSelectForEvent:withCurrentSearchString:")] public virtual bool ShouldTypeSelect(NSOutlineView outlineView, NSEvent theEvent, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldShowCellExpansionForTableColumn:item:")] public virtual bool ShouldShowCellExpansion(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldTrackCell:forTableColumn:item:")] public virtual bool ShouldTrackCell(NSOutlineView outlineView, NSCell cell, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:dataCellForTableColumn:item:")] public virtual NSCell GetCell(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:viewForTableColumn:item:")] public virtual NSView GetView(NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:isGroupItem:")] public virtual bool IsGroupItem(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldExpandItem:")] public virtual bool ShouldExpandItem(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldCollapseItem:")] public virtual bool ShouldCollapseItem(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:willDisplayOutlineCell:forTableColumn:item:")] public virtual void WillDisplayOutlineCell(NSOutlineView outlineView, NSObject cell, NSTableColumn tableColumn, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:sizeToFitWidthOfColumn:")] public virtual double GetSizeToFitColumnWidth(NSOutlineView outlineView, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldReorderColumn:toColumn:")] public virtual bool ShouldReorder(NSOutlineView outlineView, long columnIndex, long newColumnIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineView:shouldShowOutlineCellForItem:")] public virtual bool ShouldShowOutlineCell(NSOutlineView outlineView, NSObject item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewColumnDidMove:")] public virtual void ColumnDidMove(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewColumnDidResize:")] public virtual void ColumnDidResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewSelectionIsChanging:")] public virtual void SelectionIsChanging(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewItemWillExpand:")] public virtual void ItemWillExpand(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewItemDidExpand:")] public virtual void ItemDidExpand(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewItemWillCollapse:")] public virtual void ItemWillCollapse(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewItemDidCollapse:")] public virtual void ItemDidCollapse(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("outlineViewSelectionDidChange:")] public virtual void SelectionDidChange(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPageLayout.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPageLayout", true)] public class NSPageLayout : NSObject { private object __mt_accessory_var; private static readonly IntPtr selPageLayoutHandle = Selector.GetHandle("pageLayout"); private static readonly IntPtr selPrintInfoHandle = Selector.GetHandle("printInfo"); private static readonly IntPtr selAddAccessoryController_Handle = Selector.GetHandle("addAccessoryController:"); private static readonly IntPtr selRemoveAccessoryController_Handle = Selector.GetHandle("removeAccessoryController:"); private static readonly IntPtr selAccessoryControllersHandle = Selector.GetHandle("accessoryControllers"); private static readonly IntPtr selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:"); private static readonly IntPtr selRunModalWithPrintInfo_Handle = Selector.GetHandle("runModalWithPrintInfo:"); private static readonly IntPtr selRunModalHandle = Selector.GetHandle("runModal"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPageLayout"); private static object __mt_PageLayout_var_static; private object __mt_PrintInfo_var; public override IntPtr ClassHandle => class_ptr; public static NSPageLayout PageLayout { [Export("pageLayout")] get { NSApplication.EnsureUIThread(); return (NSPageLayout)(__mt_PageLayout_var_static = (NSPageLayout)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPageLayoutHandle))); } } public virtual NSPrintInfo PrintInfo { [Export("printInfo")] get { NSApplication.EnsureUIThread(); return (NSPrintInfo)(__mt_PrintInfo_var = ((!IsDirectBinding) ? ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintInfoHandle))) : ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintInfoHandle))))); } } public void BeginSheet(NSPrintInfo printInfo, NSWindow docWindow) { BeginSheet(printInfo, docWindow, null, null, IntPtr.Zero); } public void BeginSheet(NSPrintInfo printInfo, NSWindow docWindow, NSAction onEnded) { NSObject del = OneShotTracker.Create(onEnded); BeginSheet(printInfo, docWindow, del, NSActionDispatcher.Selector, IntPtr.Zero); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPageLayout() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPageLayout(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPageLayout(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPageLayout(IntPtr handle) : base(handle) { } [Export("addAccessoryController:")] public virtual void AddAccessoryController(NSViewController accessoryController) { NSApplication.EnsureUIThread(); if (accessoryController == null) { throw new ArgumentNullException("accessoryController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddAccessoryController_Handle, accessoryController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddAccessoryController_Handle, accessoryController.Handle); } __mt_accessory_var = AccessoryControllers(); } [Export("removeAccessoryController:")] public virtual void RemoveAccessoryController(NSViewController accessoryController) { NSApplication.EnsureUIThread(); if (accessoryController == null) { throw new ArgumentNullException("accessoryController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAccessoryController_Handle, accessoryController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAccessoryController_Handle, accessoryController.Handle); } __mt_accessory_var = AccessoryControllers(); } [Export("accessoryControllers")] public virtual NSViewController[] AccessoryControllers() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryControllersHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryControllersHandle)); } [Export("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:")] public virtual void BeginSheet(NSPrintInfo printInfo, NSWindow docWindow, NSObject del, Selector didEndSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle, printInfo.Handle, docWindow.Handle, del?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle, printInfo.Handle, docWindow.Handle, del?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } } [Export("runModalWithPrintInfo:")] public virtual long RunModalWithPrintInfo(NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRunModalWithPrintInfo_Handle, printInfo.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunModalWithPrintInfo_Handle, printInfo.Handle); } [Export("runModal")] public virtual long RunModal() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRunModalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRunModalHandle); } protected override void Dispose(bool disposing) { __mt_accessory_var = null; base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PrintInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPanel", true)] public class NSPanel : NSWindow { private static readonly IntPtr selIsFloatingPanelHandle = Selector.GetHandle("isFloatingPanel"); private static readonly IntPtr selSetFloatingPanel_Handle = Selector.GetHandle("setFloatingPanel:"); private static readonly IntPtr selBecomesKeyOnlyIfNeededHandle = Selector.GetHandle("becomesKeyOnlyIfNeeded"); private static readonly IntPtr selSetBecomesKeyOnlyIfNeeded_Handle = Selector.GetHandle("setBecomesKeyOnlyIfNeeded:"); private static readonly IntPtr selWorksWhenModalHandle = Selector.GetHandle("worksWhenModal"); private static readonly IntPtr selSetWorksWhenModal_Handle = Selector.GetHandle("setWorksWhenModal:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPanel"); public override IntPtr ClassHandle => class_ptr; public virtual bool FloatingPanel { [Export("isFloatingPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFloatingPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFloatingPanelHandle); } [Export("setFloatingPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFloatingPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFloatingPanel_Handle, value); } } } public virtual bool BecomesKeyOnlyIfNeeded { [Export("becomesKeyOnlyIfNeeded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBecomesKeyOnlyIfNeededHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBecomesKeyOnlyIfNeededHandle); } [Export("setBecomesKeyOnlyIfNeeded:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBecomesKeyOnlyIfNeeded_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBecomesKeyOnlyIfNeeded_Handle, value); } } } public new virtual bool WorksWhenModal { [Export("worksWhenModal")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWorksWhenModalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWorksWhenModalHandle); } [Export("setWorksWhenModal:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWorksWhenModal_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWorksWhenModal_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPanel(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPanelButtonType.cs ================================================ namespace AppKit; public enum NSPanelButtonType { Cancel, Ok } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSParagraphStyle.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSParagraphStyle", true)] public class NSParagraphStyle : NSObject { private static readonly IntPtr selDefaultParagraphStyleHandle = Selector.GetHandle("defaultParagraphStyle"); private static readonly IntPtr selSetDefaultParagraphStyle_Handle = Selector.GetHandle("setDefaultParagraphStyle:"); private static readonly IntPtr selLineSpacingHandle = Selector.GetHandle("lineSpacing"); private static readonly IntPtr selSetLineSpacing_Handle = Selector.GetHandle("setLineSpacing:"); private static readonly IntPtr selParagraphSpacingHandle = Selector.GetHandle("paragraphSpacing"); private static readonly IntPtr selSetParagraphSpacing_Handle = Selector.GetHandle("setParagraphSpacing:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selHeadIndentHandle = Selector.GetHandle("headIndent"); private static readonly IntPtr selSetHeadIndent_Handle = Selector.GetHandle("setHeadIndent:"); private static readonly IntPtr selTailIndentHandle = Selector.GetHandle("tailIndent"); private static readonly IntPtr selSetTailIndent_Handle = Selector.GetHandle("setTailIndent:"); private static readonly IntPtr selFirstLineHeadIndentHandle = Selector.GetHandle("firstLineHeadIndent"); private static readonly IntPtr selSetFirstLineHeadIndent_Handle = Selector.GetHandle("setFirstLineHeadIndent:"); private static readonly IntPtr selTabStopsHandle = Selector.GetHandle("tabStops"); private static readonly IntPtr selSetTabStops_Handle = Selector.GetHandle("setTabStops:"); private static readonly IntPtr selMinimumLineHeightHandle = Selector.GetHandle("minimumLineHeight"); private static readonly IntPtr selSetMinimumLineHeight_Handle = Selector.GetHandle("setMinimumLineHeight:"); private static readonly IntPtr selMaximumLineHeightHandle = Selector.GetHandle("maximumLineHeight"); private static readonly IntPtr selSetMaximumLineHeight_Handle = Selector.GetHandle("setMaximumLineHeight:"); private static readonly IntPtr selLineBreakModeHandle = Selector.GetHandle("lineBreakMode"); private static readonly IntPtr selSetLineBreakMode_Handle = Selector.GetHandle("setLineBreakMode:"); private static readonly IntPtr selBaseWritingDirectionHandle = Selector.GetHandle("baseWritingDirection"); private static readonly IntPtr selSetBaseWritingDirection_Handle = Selector.GetHandle("setBaseWritingDirection:"); private static readonly IntPtr selLineHeightMultipleHandle = Selector.GetHandle("lineHeightMultiple"); private static readonly IntPtr selSetLineHeightMultiple_Handle = Selector.GetHandle("setLineHeightMultiple:"); private static readonly IntPtr selParagraphSpacingBeforeHandle = Selector.GetHandle("paragraphSpacingBefore"); private static readonly IntPtr selSetParagraphSpacingBefore_Handle = Selector.GetHandle("setParagraphSpacingBefore:"); private static readonly IntPtr selDefaultTabIntervalHandle = Selector.GetHandle("defaultTabInterval"); private static readonly IntPtr selSetDefaultTabInterval_Handle = Selector.GetHandle("setDefaultTabInterval:"); private static readonly IntPtr selTextBlocksHandle = Selector.GetHandle("textBlocks"); private static readonly IntPtr selSetTextBlocks_Handle = Selector.GetHandle("setTextBlocks:"); private static readonly IntPtr selTextListsHandle = Selector.GetHandle("textLists"); private static readonly IntPtr selSetTextLists_Handle = Selector.GetHandle("setTextLists:"); private static readonly IntPtr selHyphenationFactorHandle = Selector.GetHandle("hyphenationFactor"); private static readonly IntPtr selSetHyphenationFactor_Handle = Selector.GetHandle("setHyphenationFactor:"); private static readonly IntPtr selTighteningFactorForTruncationHandle = Selector.GetHandle("tighteningFactorForTruncation"); private static readonly IntPtr selSetTighteningFactorForTruncation_Handle = Selector.GetHandle("setTighteningFactorForTruncation:"); private static readonly IntPtr selHeaderLevelHandle = Selector.GetHandle("headerLevel"); private static readonly IntPtr selSetHeaderLevel_Handle = Selector.GetHandle("setHeaderLevel:"); private static readonly IntPtr selDefaultWritingDirectionForLanguage_Handle = Selector.GetHandle("defaultWritingDirectionForLanguage:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSParagraphStyle"); private static object __mt_DefaultParagraphStyle_var_static; private object __mt_TabStops_var; private object __mt_TextBlocks_var; private object __mt_TextLists_var; public override IntPtr ClassHandle => class_ptr; public static NSParagraphStyle DefaultParagraphStyle { [Export("defaultParagraphStyle")] get { NSApplication.EnsureUIThread(); return (NSParagraphStyle)(__mt_DefaultParagraphStyle_var_static = (NSParagraphStyle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultParagraphStyleHandle))); } set { throw new NotImplementedException(); } } public virtual double LineSpacing { [Export("lineSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineSpacingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineSpacingHandle); } set { throw new NotImplementedException(); } } public virtual double ParagraphSpacing { [Export("paragraphSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selParagraphSpacingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selParagraphSpacingHandle); } set { throw new NotImplementedException(); } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } set { throw new NotImplementedException(); } } public virtual double HeadIndent { [Export("headIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHeadIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHeadIndentHandle); } set { throw new NotImplementedException(); } } public virtual double TailIndent { [Export("tailIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTailIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTailIndentHandle); } set { throw new NotImplementedException(); } } public virtual double FirstLineHeadIndent { [Export("firstLineHeadIndent")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFirstLineHeadIndentHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFirstLineHeadIndentHandle); } set { throw new NotImplementedException(); } } public virtual NSTextTab[] TabStops { [Export("tabStops")] get { NSApplication.EnsureUIThread(); return (NSTextTab[])(__mt_TabStops_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTabStopsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTabStopsHandle)))); } set { throw new NotImplementedException(); } } public virtual double MinimumLineHeight { [Export("minimumLineHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinimumLineHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinimumLineHeightHandle); } set { throw new NotImplementedException(); } } public virtual double MaximumLineHeight { [Export("maximumLineHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaximumLineHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaximumLineHeightHandle); } set { throw new NotImplementedException(); } } public virtual NSLineBreakMode LineBreakMode { [Export("lineBreakMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSLineBreakMode)Messaging.UInt64_objc_msgSend(base.Handle, selLineBreakModeHandle); } return (NSLineBreakMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLineBreakModeHandle); } set { throw new NotImplementedException(); } } public virtual NSWritingDirection BaseWritingDirection { [Export("baseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBaseWritingDirectionHandle); } set { throw new NotImplementedException(); } } public virtual double LineHeightMultiple { [Export("lineHeightMultiple")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineHeightMultipleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineHeightMultipleHandle); } set { throw new NotImplementedException(); } } public virtual double ParagraphSpacingBefore { [Export("paragraphSpacingBefore")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selParagraphSpacingBeforeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selParagraphSpacingBeforeHandle); } set { throw new NotImplementedException(); } } public virtual double DefaultTabInterval { [Export("defaultTabInterval")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDefaultTabIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDefaultTabIntervalHandle); } set { throw new NotImplementedException(); } } public virtual NSTextTableBlock[] TextBlocks { [Export("textBlocks")] get { NSApplication.EnsureUIThread(); return (NSTextTableBlock[])(__mt_TextBlocks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextBlocksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextBlocksHandle)))); } set { throw new NotImplementedException(); } } public virtual NSTextList[] TextLists { [Export("textLists")] get { NSApplication.EnsureUIThread(); return (NSTextList[])(__mt_TextLists_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextListsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextListsHandle)))); } set { throw new NotImplementedException(); } } public virtual float HyphenationFactor { [Export("hyphenationFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selHyphenationFactorHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selHyphenationFactorHandle); } set { throw new NotImplementedException(); } } public virtual float TighteningFactorForTruncation { [Export("tighteningFactorForTruncation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selTighteningFactorForTruncationHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selTighteningFactorForTruncationHandle); } set { throw new NotImplementedException(); } } public virtual long HeaderLevel { [Export("headerLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selHeaderLevelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHeaderLevelHandle); } set { throw new NotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSParagraphStyle() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSParagraphStyle(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSParagraphStyle(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSParagraphStyle(IntPtr handle) : base(handle) { } [Export("defaultWritingDirectionForLanguage:")] public static NSWritingDirection DefaultWritingDirection(string languageName) { NSApplication.EnsureUIThread(); if (languageName == null) { throw new ArgumentNullException("languageName"); } IntPtr arg = NSString.CreateNative(languageName); long result = Messaging.Int64_objc_msgSend_IntPtr(class_ptr, selDefaultWritingDirectionForLanguage_Handle, arg); NSString.ReleaseNative(arg); return (NSWritingDirection)result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TabStops_var = null; __mt_TextBlocks_var = null; __mt_TextLists_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboard.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPasteboard", true)] public class NSPasteboard : NSObject { private static readonly IntPtr selGeneralPasteboardHandle = Selector.GetHandle("generalPasteboard"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selChangeCountHandle = Selector.GetHandle("changeCount"); private static readonly IntPtr selPasteboardItemsHandle = Selector.GetHandle("pasteboardItems"); private static readonly IntPtr selTypesHandle = Selector.GetHandle("types"); private static readonly IntPtr selPasteboardWithName_Handle = Selector.GetHandle("pasteboardWithName:"); private static readonly IntPtr selPasteboardWithUniqueNameHandle = Selector.GetHandle("pasteboardWithUniqueName"); private static readonly IntPtr selReleaseGloballyHandle = Selector.GetHandle("releaseGlobally"); private static readonly IntPtr selClearContentsHandle = Selector.GetHandle("clearContents"); private static readonly IntPtr selWriteObjects_Handle = Selector.GetHandle("writeObjects:"); private static readonly IntPtr selReadObjectsForClassesOptions_Handle = Selector.GetHandle("readObjectsForClasses:options:"); private static readonly IntPtr selIndexOfPasteboardItem_Handle = Selector.GetHandle("indexOfPasteboardItem:"); private static readonly IntPtr selCanReadItemWithDataConformingToTypes_Handle = Selector.GetHandle("canReadItemWithDataConformingToTypes:"); private static readonly IntPtr selCanReadObjectForClassesOptions_Handle = Selector.GetHandle("canReadObjectForClasses:options:"); private static readonly IntPtr selDeclareTypesOwner_Handle = Selector.GetHandle("declareTypes:owner:"); private static readonly IntPtr selAddTypesOwner_Handle = Selector.GetHandle("addTypes:owner:"); private static readonly IntPtr selAvailableTypeFromArray_Handle = Selector.GetHandle("availableTypeFromArray:"); private static readonly IntPtr selSetDataForType_Handle = Selector.GetHandle("setData:forType:"); private static readonly IntPtr selSetPropertyListForType_Handle = Selector.GetHandle("setPropertyList:forType:"); private static readonly IntPtr selSetStringForType_Handle = Selector.GetHandle("setString:forType:"); private static readonly IntPtr selDataForType_Handle = Selector.GetHandle("dataForType:"); private static readonly IntPtr selPropertyListForType_Handle = Selector.GetHandle("propertyListForType:"); private static readonly IntPtr selStringForType_Handle = Selector.GetHandle("stringForType:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPasteboard"); private static object __mt_GeneralPasteboard_var_static; private object __mt_PasteboardItems_var; private static NSString _NSStringType; private static NSString _NSFilenamesType; private static NSString _NSPostScriptType; private static NSString _NSTiffType; private static NSString _NSRtfType; private static NSString _NSTabularTextType; private static NSString _NSFontType; private static NSString _NSRulerType; private static NSString _NSFileContentsType; private static NSString _NSColorType; private static NSString _NSRtfdType; private static NSString _NSHtmlType; private static NSString _NSPictType; private static NSString _NSUrlType; private static NSString _NSPdfType; private static NSString _NSVCardType; private static NSString _NSFilesPromiseType; private static NSString _NSMultipleTextSelectionType; private static NSString _NSGeneralPasteboardName; private static NSString _NSFontPasteboardName; private static NSString _NSRulerPasteboardName; private static NSString _NSFindPasteboardName; private static NSString _NSDragPasteboardName; public override IntPtr ClassHandle => class_ptr; public static NSPasteboard GeneralPasteboard { [Export("generalPasteboard")] get { NSApplication.EnsureUIThread(); return (NSPasteboard)(__mt_GeneralPasteboard_var_static = (NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selGeneralPasteboardHandle))); } } public virtual string Name { [Export("name")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual long ChangeCount { [Export("changeCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selChangeCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selChangeCountHandle); } } public virtual NSPasteboardItem[] PasteboardItems { [Export("pasteboardItems")] get { NSApplication.EnsureUIThread(); return (NSPasteboardItem[])(__mt_PasteboardItems_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPasteboardItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPasteboardItemsHandle)))); } } public virtual string[] Types { [Export("types")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypesHandle)); } } [Field("NSStringPboardType", "AppKit")] public static NSString NSStringType { get { if (_NSStringType == null) { _NSStringType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSStringPboardType"); } return _NSStringType; } } [Field("NSFilenamesPboardType", "AppKit")] public static NSString NSFilenamesType { get { if (_NSFilenamesType == null) { _NSFilenamesType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFilenamesPboardType"); } return _NSFilenamesType; } } [Field("NSPostScriptPboardType", "AppKit")] public static NSString NSPostScriptType { get { if (_NSPostScriptType == null) { _NSPostScriptType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPostScriptPboardType"); } return _NSPostScriptType; } } [Field("NSTIFFPboardType", "AppKit")] public static NSString NSTiffType { get { if (_NSTiffType == null) { _NSTiffType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSTIFFPboardType"); } return _NSTiffType; } } [Field("NSRTFPboardType", "AppKit")] public static NSString NSRtfType { get { if (_NSRtfType == null) { _NSRtfType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSRTFPboardType"); } return _NSRtfType; } } [Field("NSTabularTextPboardType", "AppKit")] public static NSString NSTabularTextType { get { if (_NSTabularTextType == null) { _NSTabularTextType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSTabularTextPboardType"); } return _NSTabularTextType; } } [Field("NSFontPboardType", "AppKit")] public static NSString NSFontType { get { if (_NSFontType == null) { _NSFontType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontPboardType"); } return _NSFontType; } } [Field("NSRulerPboardType", "AppKit")] public static NSString NSRulerType { get { if (_NSRulerType == null) { _NSRulerType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSRulerPboardType"); } return _NSRulerType; } } [Field("NSFileContentsPboardType", "AppKit")] public static NSString NSFileContentsType { get { if (_NSFileContentsType == null) { _NSFileContentsType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFileContentsPboardType"); } return _NSFileContentsType; } } [Field("NSColorPboardType", "AppKit")] public static NSString NSColorType { get { if (_NSColorType == null) { _NSColorType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSColorPboardType"); } return _NSColorType; } } [Field("NSRTFDPboardType", "AppKit")] public static NSString NSRtfdType { get { if (_NSRtfdType == null) { _NSRtfdType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSRTFDPboardType"); } return _NSRtfdType; } } [Field("NSHTMLPboardType", "AppKit")] public static NSString NSHtmlType { get { if (_NSHtmlType == null) { _NSHtmlType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSHTMLPboardType"); } return _NSHtmlType; } } [Field("NSPICTPboardType", "AppKit")] public static NSString NSPictType { get { if (_NSPictType == null) { _NSPictType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPICTPboardType"); } return _NSPictType; } } [Field("NSURLPboardType", "AppKit")] public static NSString NSUrlType { get { if (_NSUrlType == null) { _NSUrlType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSURLPboardType"); } return _NSUrlType; } } [Field("NSPDFPboardType", "AppKit")] public static NSString NSPdfType { get { if (_NSPdfType == null) { _NSPdfType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPDFPboardType"); } return _NSPdfType; } } [Field("NSVCardPboardType", "AppKit")] public static NSString NSVCardType { get { if (_NSVCardType == null) { _NSVCardType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSVCardPboardType"); } return _NSVCardType; } } [Field("NSFilesPromisePboardType", "AppKit")] public static NSString NSFilesPromiseType { get { if (_NSFilesPromiseType == null) { _NSFilesPromiseType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFilesPromisePboardType"); } return _NSFilesPromiseType; } } [Field("NSMultipleTextSelectionPboardType", "AppKit")] public static NSString NSMultipleTextSelectionType { get { if (_NSMultipleTextSelectionType == null) { _NSMultipleTextSelectionType = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSMultipleTextSelectionPboardType"); } return _NSMultipleTextSelectionType; } } [Field("NSGeneralPboard", "AppKit")] public static NSString NSGeneralPasteboardName { get { if (_NSGeneralPasteboardName == null) { _NSGeneralPasteboardName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSGeneralPboard"); } return _NSGeneralPasteboardName; } } [Field("NSFontPboard", "AppKit")] public static NSString NSFontPasteboardName { get { if (_NSFontPasteboardName == null) { _NSFontPasteboardName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontPboard"); } return _NSFontPasteboardName; } } [Field("NSRulerPboard", "AppKit")] public static NSString NSRulerPasteboardName { get { if (_NSRulerPasteboardName == null) { _NSRulerPasteboardName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSRulerPboard"); } return _NSRulerPasteboardName; } } [Field("NSFindPboard", "AppKit")] public static NSString NSFindPasteboardName { get { if (_NSFindPasteboardName == null) { _NSFindPasteboardName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFindPboard"); } return _NSFindPasteboardName; } } [Field("NSDragPboard", "AppKit")] public static NSString NSDragPasteboardName { get { if (_NSDragPasteboardName == null) { _NSDragPasteboardName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSDragPboard"); } return _NSDragPasteboardName; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPasteboard(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboard(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboard(IntPtr handle) : base(handle) { } [Export("pasteboardWithName:")] public static NSPasteboard FromName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSPasteboard result = (NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPasteboardWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("pasteboardWithUniqueName")] public static NSPasteboard CreateWithUniqueName() { NSApplication.EnsureUIThread(); return (NSPasteboard)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPasteboardWithUniqueNameHandle)); } [Export("releaseGlobally")] public virtual void ReleaseGlobally() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReleaseGloballyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReleaseGloballyHandle); } } [Export("clearContents")] public virtual long ClearContents() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClearContentsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClearContentsHandle); } [Export("writeObjects:")] public virtual bool WriteObjects(NSPasteboardReading[] objects) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteObjects_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selWriteObjects_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("readObjectsForClasses:options:")] public virtual NSObject[] ReadObjectsForClasses(NSPasteboardReading[] classArray, NSDictionary options) { NSApplication.EnsureUIThread(); if (classArray == null) { throw new ArgumentNullException("classArray"); } if (options == null) { throw new ArgumentNullException("options"); } NSArray nSArray = NSArray.FromNSObjects(classArray); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReadObjectsForClassesOptions_Handle, nSArray.Handle, options.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selReadObjectsForClassesOptions_Handle, nSArray.Handle, options.Handle))); nSArray.Dispose(); return result; } [Export("indexOfPasteboardItem:")] public virtual ulong IndexOf(NSPasteboardItem pasteboardItem) { NSApplication.EnsureUIThread(); if (pasteboardItem == null) { throw new ArgumentNullException("pasteboardItem"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selIndexOfPasteboardItem_Handle, pasteboardItem.Handle); } return Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfPasteboardItem_Handle, pasteboardItem.Handle); } [Export("canReadItemWithDataConformingToTypes:")] public virtual bool CanReadItemWithDataConformingToTypes(string[] utiTypes) { NSApplication.EnsureUIThread(); if (utiTypes == null) { throw new ArgumentNullException("utiTypes"); } NSArray nSArray = NSArray.FromStrings(utiTypes); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanReadItemWithDataConformingToTypes_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanReadItemWithDataConformingToTypes_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("canReadObjectForClasses:options:")] public virtual bool CanReadObjectForClasses(NSObject[] classArray, NSDictionary options) { NSApplication.EnsureUIThread(); if (classArray == null) { throw new ArgumentNullException("classArray"); } if (options == null) { throw new ArgumentNullException("options"); } NSArray nSArray = NSArray.FromNSObjects(classArray); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCanReadObjectForClassesOptions_Handle, nSArray.Handle, options.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selCanReadObjectForClassesOptions_Handle, nSArray.Handle, options.Handle)); nSArray.Dispose(); return result; } [Export("declareTypes:owner:")] public virtual long DeclareTypes(string[] newTypes, NSObject newOwner) { NSApplication.EnsureUIThread(); if (newTypes == null) { throw new ArgumentNullException("newTypes"); } NSArray nSArray = NSArray.FromStrings(newTypes); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDeclareTypesOwner_Handle, nSArray.Handle, newOwner?.Handle ?? IntPtr.Zero) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selDeclareTypesOwner_Handle, nSArray.Handle, newOwner?.Handle ?? IntPtr.Zero)); nSArray.Dispose(); return result; } [Export("addTypes:owner:")] public virtual long AddTypes(string[] newTypes, NSObject newOwner) { NSApplication.EnsureUIThread(); if (newTypes == null) { throw new ArgumentNullException("newTypes"); } NSArray nSArray = NSArray.FromStrings(newTypes); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddTypesOwner_Handle, nSArray.Handle, newOwner?.Handle ?? IntPtr.Zero) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddTypesOwner_Handle, nSArray.Handle, newOwner?.Handle ?? IntPtr.Zero)); nSArray.Dispose(); return result; } [Export("availableTypeFromArray:")] public virtual string GetAvailableTypeFromArray(string[] types) { NSApplication.EnsureUIThread(); if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAvailableTypeFromArray_Handle, nSArray.Handle)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAvailableTypeFromArray_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("setData:forType:")] public virtual bool SetDataForType(NSData data, string dataType) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(dataType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDataForType_Handle, data.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDataForType_Handle, data.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setPropertyList:forType:")] public virtual bool SetPropertyListForType(NSObject plist, string dataType) { NSApplication.EnsureUIThread(); if (plist == null) { throw new ArgumentNullException("plist"); } if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(dataType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetPropertyListForType_Handle, plist.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetPropertyListForType_Handle, plist.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setString:forType:")] public virtual bool SetStringForType(string str, string dataType) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(str); IntPtr arg2 = NSString.CreateNative(dataType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetStringForType_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetStringForType_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("dataForType:")] public virtual NSData GetDataForType(string dataType) { NSApplication.EnsureUIThread(); if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(dataType); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDataForType_Handle, arg))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDataForType_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("propertyListForType:")] public virtual NSObject GetPropertyListForType(string dataType) { NSApplication.EnsureUIThread(); if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(dataType); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPropertyListForType_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPropertyListForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("stringForType:")] public virtual string GetStringForType(string dataType) { NSApplication.EnsureUIThread(); if (dataType == null) { throw new ArgumentNullException("dataType"); } IntPtr arg = NSString.CreateNative(dataType); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringForType_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PasteboardItems_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardItem.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPasteboardItem", true)] public class NSPasteboardItem : NSObject { private static readonly IntPtr selTypesHandle = Selector.GetHandle("types"); private static readonly IntPtr selAvailableTypeFromArray_Handle = Selector.GetHandle("availableTypeFromArray:"); private static readonly IntPtr selSetDataProviderForTypes_Handle = Selector.GetHandle("setDataProvider:forTypes:"); private static readonly IntPtr selSetDataForType_Handle = Selector.GetHandle("setData:forType:"); private static readonly IntPtr selSetStringForType_Handle = Selector.GetHandle("setString:forType:"); private static readonly IntPtr selSetPropertyListForType_Handle = Selector.GetHandle("setPropertyList:forType:"); private static readonly IntPtr selDataForType_Handle = Selector.GetHandle("dataForType:"); private static readonly IntPtr selStringForType_Handle = Selector.GetHandle("stringForType:"); private static readonly IntPtr selPropertyListForType_Handle = Selector.GetHandle("propertyListForType:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPasteboardItem"); public override IntPtr ClassHandle => class_ptr; public virtual string[] Types { [Export("types")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypesHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPasteboardItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPasteboardItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardItem(IntPtr handle) : base(handle) { } [Export("availableTypeFromArray:")] public virtual string GetAvailableTypeFromArray(string[] types) { NSApplication.EnsureUIThread(); if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAvailableTypeFromArray_Handle, nSArray.Handle)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAvailableTypeFromArray_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("setDataProvider:forTypes:")] public virtual bool SetDataProviderForTypes(NSPasteboardItemDataProvider dataProvider, string[] types) { NSApplication.EnsureUIThread(); if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDataProviderForTypes_Handle, dataProvider.Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDataProviderForTypes_Handle, dataProvider.Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("setData:forType:")] public virtual bool SetDataForType(NSData data, string type) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDataForType_Handle, data.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDataForType_Handle, data.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setString:forType:")] public virtual bool SetStringForType(string str, string type) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(str); IntPtr arg2 = NSString.CreateNative(type); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetStringForType_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetStringForType_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setPropertyList:forType:")] public virtual bool SetPropertyListForType(NSObject propertyList, string type) { NSApplication.EnsureUIThread(); if (propertyList == null) { throw new ArgumentNullException("propertyList"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetPropertyListForType_Handle, propertyList.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetPropertyListForType_Handle, propertyList.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("dataForType:")] public virtual NSData GetDataForType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDataForType_Handle, arg))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDataForType_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("stringForType:")] public virtual string GetStringForType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringForType_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("propertyListForType:")] public virtual NSObject GetPropertyListForType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPropertyListForType_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPropertyListForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardItemDataProvider.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPasteboardItemDataProvider", true)] [Model] public abstract class NSPasteboardItemDataProvider : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPasteboardItemDataProvider() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPasteboardItemDataProvider(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardItemDataProvider(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardItemDataProvider(IntPtr handle) : base(handle) { } [Export("pasteboard:item:provideDataForType:")] public abstract void ProvideDataForType(NSPasteboard pasteboard, NSPasteboardItem item, string type); [Export("pasteboardFinishedWithDataProvider:")] public abstract void FinishedWithDataProvider(NSPasteboard pasteboard); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardPredicate.cs ================================================ namespace AppKit; public delegate bool NSPasteboardPredicate(NSPasteboard pboard); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardReading.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPasteboardReading", true)] [Model] public abstract class NSPasteboardReading : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPasteboardReading() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPasteboardReading(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardReading(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardReading(IntPtr handle) : base(handle) { } [Export("readableTypesForPasteboard:")] public abstract string[] GetReadableTypesForPasteboard(NSPasteboard pasteboard); [Export("readingOptionsForType:pasteboard:")] public abstract NSPasteboardReadingOptions GetReadingOptionsForType(string type, NSPasteboard pasteboard); [Export("initWithPasteboardPropertyList:ofType:")] public abstract NSObject InitWithPasteboardPropertyList(NSObject propertyList, string type); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardReadingOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSPasteboardReadingOptions : ulong { AsData = 0uL, AsString = 1uL, AsPropertyList = 2uL, AsKeyedArchive = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardWriting.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPasteboardWriting", true)] [Model] public class NSPasteboardWriting : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPasteboardWriting() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPasteboardWriting(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardWriting(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPasteboardWriting(IntPtr handle) : base(handle) { } [Export("writableTypesForPasteboard:")] public virtual string[] GetWritableTypesForPasteboard(NSPasteboard pasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("writingOptionsForType:pasteboard:")] public virtual NSPasteboardWritingOptions GetWritingOptionsForType(string type, NSPasteboard pasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("pasteboardPropertyListForType:")] public virtual NSObject GetPasteboardPropertyListForType(string type) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPasteboardWritingOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSPasteboardWritingOptions : ulong { WritingPromised = 0x200uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPathCell", true)] public class NSPathCell : NSActionCell { [Register] private sealed class _NSPathCellDelegate : NSPathCellDelegate { internal EventHandler willDisplayOpenPanel; internal EventHandler willPopupMenu; [Preserve(Conditional = true)] public override void WillDisplayOpenPanel(NSPathCell pathCell, NSOpenPanel openPanel) { EventHandler eventHandler = willDisplayOpenPanel; if (eventHandler != null) { NSPathCellDisplayPanelEventArgs e = new NSPathCellDisplayPanelEventArgs(openPanel); eventHandler(pathCell, e); } } [Preserve(Conditional = true)] public override void WillPopupMenu(NSPathCell pathCell, NSMenu menu) { EventHandler eventHandler = willPopupMenu; if (eventHandler != null) { NSPathCellMenuEventArgs e = new NSPathCellMenuEventArgs(menu); eventHandler(pathCell, e); } } } private static readonly IntPtr selPathStyleHandle = Selector.GetHandle("pathStyle"); private static readonly IntPtr selSetPathStyle_Handle = Selector.GetHandle("setPathStyle:"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selAllowedTypesHandle = Selector.GetHandle("allowedTypes"); private static readonly IntPtr selSetAllowedTypes_Handle = Selector.GetHandle("setAllowedTypes:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selPathComponentCellClassHandle = Selector.GetHandle("pathComponentCellClass"); private static readonly IntPtr selPathComponentCellsHandle = Selector.GetHandle("pathComponentCells"); private static readonly IntPtr selSetPathComponentCells_Handle = Selector.GetHandle("setPathComponentCells:"); private static readonly IntPtr selClickedPathComponentCellHandle = Selector.GetHandle("clickedPathComponentCell"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selPlaceholderStringHandle = Selector.GetHandle("placeholderString"); private static readonly IntPtr selSetPlaceholderString_Handle = Selector.GetHandle("setPlaceholderString:"); private static readonly IntPtr selPlaceholderAttributedStringHandle = Selector.GetHandle("placeholderAttributedString"); private static readonly IntPtr selSetPlaceholderAttributedString_Handle = Selector.GetHandle("setPlaceholderAttributedString:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSetObjectValue_Handle = Selector.GetHandle("setObjectValue:"); private static readonly IntPtr selRectOfPathComponentCellWithFrameInView_Handle = Selector.GetHandle("rectOfPathComponentCell:withFrame:inView:"); private static readonly IntPtr selPathComponentCellAtPointWithFrameInView_Handle = Selector.GetHandle("pathComponentCellAtPoint:withFrame:inView:"); private static readonly IntPtr selMouseEnteredWithFrameInView_Handle = Selector.GetHandle("mouseEntered:withFrame:inView:"); private static readonly IntPtr selMouseExitedWithFrameInView_Handle = Selector.GetHandle("mouseExited:withFrame:inView:"); private static readonly IntPtr selSetControlSize_Handle = Selector.GetHandle("setControlSize:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPathCell"); private object __mt_Url_var; private object __mt_WeakDelegate_var; private object __mt_PathComponentCells_var; private object __mt_ClickedPathComponentCell_var; private object __mt_BackgroundColor_var; private object __mt_PlaceholderAttributedString_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPathStyle PathStyle { [Export("pathStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPathStyle)Messaging.Int64_objc_msgSend(base.Handle, selPathStyleHandle); } return (NSPathStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPathStyleHandle); } [Export("setPathStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetPathStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetPathStyle_Handle, (long)value); } } } public virtual NSUrl Url { [Export("URL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } public virtual string[] AllowedTypes { [Export("allowedTypes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllowedTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllowedTypesHandle)); } [Export("setAllowedTypes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAllowedTypes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAllowedTypes_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSPathCellDelegate Delegate { get { return WeakDelegate as NSPathCellDelegate; } set { WeakDelegate = value; } } public static Class PathComponentCellClass { [Export("pathComponentCellClass")] get { NSApplication.EnsureUIThread(); return new Class(Messaging.IntPtr_objc_msgSend(class_ptr, selPathComponentCellClassHandle)); } } public virtual NSPathComponentCell[] PathComponentCells { [Export("pathComponentCells")] get { NSApplication.EnsureUIThread(); return (NSPathComponentCell[])(__mt_PathComponentCells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathComponentCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathComponentCellsHandle)))); } [Export("setPathComponentCells:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPathComponentCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPathComponentCells_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_PathComponentCells_var = value; } } public virtual NSPathComponentCell ClickedPathComponentCell { [Export("clickedPathComponentCell")] get { NSApplication.EnsureUIThread(); return (NSPathComponentCell)(__mt_ClickedPathComponentCell_var = ((!IsDirectBinding) ? ((NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClickedPathComponentCellHandle))) : ((NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selClickedPathComponentCellHandle))))); } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual string PlaceholderString { [Export("placeholderString")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderStringHandle)); } [Export("setPlaceholderString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderString_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString PlaceholderAttributedString { [Export("placeholderAttributedString")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_PlaceholderAttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderAttributedStringHandle))))); } [Export("setPlaceholderAttributedString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderAttributedString_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderAttributedString_Handle, value.Handle); } __mt_PlaceholderAttributedString_var = value; } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } public event EventHandler WillDisplayOpenPanel { add { _NSPathCellDelegate nSPathCellDelegate = EnsureNSPathCellDelegate(); nSPathCellDelegate.willDisplayOpenPanel = (EventHandler)System.Delegate.Combine(nSPathCellDelegate.willDisplayOpenPanel, value); } remove { _NSPathCellDelegate nSPathCellDelegate = EnsureNSPathCellDelegate(); nSPathCellDelegate.willDisplayOpenPanel = (EventHandler)System.Delegate.Remove(nSPathCellDelegate.willDisplayOpenPanel, value); } } public event EventHandler WillPopupMenu { add { _NSPathCellDelegate nSPathCellDelegate = EnsureNSPathCellDelegate(); nSPathCellDelegate.willPopupMenu = (EventHandler)System.Delegate.Combine(nSPathCellDelegate.willPopupMenu, value); } remove { _NSPathCellDelegate nSPathCellDelegate = EnsureNSPathCellDelegate(); nSPathCellDelegate.willPopupMenu = (EventHandler)System.Delegate.Remove(nSPathCellDelegate.willPopupMenu, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPathCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPathCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSPathCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSPathCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("setObjectValue:")] public virtual void SetObjectValue(NSObject obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectValue_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectValue_Handle, obj.Handle); } } [Export("rectOfPathComponentCell:withFrame:inView:")] public virtual CGRect GetRect(NSPathComponentCell componentCell, CGRect withFrame, NSView inView) { NSApplication.EnsureUIThread(); if (componentCell == null) { throw new ArgumentNullException("componentCell"); } if (inView == null) { throw new ArgumentNullException("inView"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_CGRect_IntPtr(out retval, base.Handle, selRectOfPathComponentCellWithFrameInView_Handle, componentCell.Handle, withFrame, inView.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_IntPtr(out retval, base.SuperHandle, selRectOfPathComponentCellWithFrameInView_Handle, componentCell.Handle, withFrame, inView.Handle); } return retval; } [Export("pathComponentCellAtPoint:withFrame:inView:")] public virtual NSPathComponentCell GetPathComponent(CGPoint point, CGRect frame, NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return (NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint_CGRect_IntPtr(base.Handle, selPathComponentCellAtPointWithFrameInView_Handle, point, frame, view.Handle)); } return (NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint_CGRect_IntPtr(base.SuperHandle, selPathComponentCellAtPointWithFrameInView_Handle, point, frame, view.Handle)); } [Export("mouseEntered:withFrame:inView:")] public virtual void MouseEntered(NSEvent evt, CGRect frame, NSView view) { NSApplication.EnsureUIThread(); if (evt == null) { throw new ArgumentNullException("evt"); } if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect_IntPtr(base.Handle, selMouseEnteredWithFrameInView_Handle, evt.Handle, frame, view.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect_IntPtr(base.SuperHandle, selMouseEnteredWithFrameInView_Handle, evt.Handle, frame, view.Handle); } } [Export("mouseExited:withFrame:inView:")] public virtual void MouseExited(NSEvent evt, CGRect frame, NSView view) { NSApplication.EnsureUIThread(); if (evt == null) { throw new ArgumentNullException("evt"); } if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect_IntPtr(base.Handle, selMouseExitedWithFrameInView_Handle, evt.Handle, frame, view.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect_IntPtr(base.SuperHandle, selMouseExitedWithFrameInView_Handle, evt.Handle, frame, view.Handle); } } [Export("setControlSize:")] public virtual void SetControlSize(NSControlSize size) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlSize_Handle, (ulong)size); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlSize_Handle, (ulong)size); } } private _NSPathCellDelegate EnsureNSPathCellDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSPathCellDelegate)) { nSObject = (WeakDelegate = new _NSPathCellDelegate()); } return (_NSPathCellDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_WeakDelegate_var = null; __mt_PathComponentCells_var = null; __mt_ClickedPathComponentCell_var = null; __mt_BackgroundColor_var = null; __mt_PlaceholderAttributedString_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathCellDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPathCellDelegate", true)] [Model] public class NSPathCellDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPathCellDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPathCellDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathCellDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathCellDelegate(IntPtr handle) : base(handle) { } [Export("pathCell:willDisplayOpenPanel:")] public virtual void WillDisplayOpenPanel(NSPathCell pathCell, NSOpenPanel openPanel) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("pathCell:willPopUpMenu:")] public virtual void WillPopupMenu(NSPathCell pathCell, NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathCellDisplayPanelEventArgs.cs ================================================ using System; namespace AppKit; public class NSPathCellDisplayPanelEventArgs : EventArgs { public NSOpenPanel OpenPanel { get; set; } public NSPathCellDisplayPanelEventArgs(NSOpenPanel openPanel) { OpenPanel = openPanel; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathCellMenuEventArgs.cs ================================================ using System; namespace AppKit; public class NSPathCellMenuEventArgs : EventArgs { public NSMenu Menu { get; set; } public NSPathCellMenuEventArgs(NSMenu menu) { Menu = menu; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathComponentCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPathComponentCell", true)] public class NSPathComponentCell : NSTextFieldCell { private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPathComponentCell"); private object __mt_Image_var; private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public new virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual NSUrl Url { [Export("URL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPathComponentCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPathComponentCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathComponentCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathComponentCell(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathControl.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPathControl", true)] public class NSPathControl : NSControl { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selClickedPathComponentCellHandle = Selector.GetHandle("clickedPathComponentCell"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selPathStyleHandle = Selector.GetHandle("pathStyle"); private static readonly IntPtr selSetPathStyle_Handle = Selector.GetHandle("setPathStyle:"); private static readonly IntPtr selPathComponentCellsHandle = Selector.GetHandle("pathComponentCells"); private static readonly IntPtr selSetPathComponentCells_Handle = Selector.GetHandle("setPathComponentCells:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSetDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("setDraggingSourceOperationMask:forLocal:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPathControl"); private object __mt_Url_var; private object __mt_ClickedPathComponentCell_var; private object __mt_PathComponentCells_var; private object __mt_BackgroundColor_var; private object __mt_WeakDelegate_var; private object __mt_Menu_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } public virtual NSPathComponentCell ClickedPathComponentCell { [Export("clickedPathComponentCell")] get { NSApplication.EnsureUIThread(); return (NSPathComponentCell)(__mt_ClickedPathComponentCell_var = ((!IsDirectBinding) ? ((NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClickedPathComponentCellHandle))) : ((NSPathComponentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selClickedPathComponentCellHandle))))); } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual NSPathStyle PathStyle { [Export("pathStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPathStyle)Messaging.Int64_objc_msgSend(base.Handle, selPathStyleHandle); } return (NSPathStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPathStyleHandle); } [Export("setPathStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetPathStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetPathStyle_Handle, (long)value); } } } public virtual NSPathComponentCell[] PathComponentCells { [Export("pathComponentCells")] get { NSApplication.EnsureUIThread(); return (NSPathComponentCell[])(__mt_PathComponentCells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathComponentCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathComponentCellsHandle)))); } [Export("setPathComponentCells:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPathComponentCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPathComponentCells_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_PathComponentCells_var = value; } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value?.Handle ?? IntPtr.Zero); } __mt_BackgroundColor_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSPathControlDelegate Delegate { get { return WeakDelegate as NSPathControlDelegate; } set { WeakDelegate = value; } } public new virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPathControl() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPathControl(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathControl(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathControl(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSPathControl(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("setDraggingSourceOperationMask:forLocal:")] public virtual void SetDraggingSource(NSDragOperation operationMask, bool isLocal) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_bool(base.Handle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)operationMask, isLocal); } else { Messaging.void_objc_msgSendSuper_UInt64_bool(base.SuperHandle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)operationMask, isLocal); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_ClickedPathComponentCell_var = null; __mt_PathComponentCells_var = null; __mt_BackgroundColor_var = null; __mt_WeakDelegate_var = null; __mt_Menu_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathControlDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPathControlDelegate", true)] [Model] public abstract class NSPathControlDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPathControlDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPathControlDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathControlDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPathControlDelegate(IntPtr handle) : base(handle) { } [Export("pathControl:shouldDragPathComponentCell:withPasteboard:")] public abstract bool ShouldDragPathComponentCell(NSPathControl pathControl, NSPathComponentCell pathComponentCell, NSPasteboard pasteboard); [Export("pathControl:validateDrop:")] public abstract NSDragOperation ValidateDrop(NSPathControl pathControl, NSDraggingInfo info); [Export("pathControl:acceptDrop:")] public abstract bool AcceptDrop(NSPathControl pathControl, NSDraggingInfo info); [Export("pathControl:willDisplayOpenPanel:")] public abstract void WillDisplayOpenPanel(NSPathControl pathControl, NSOpenPanel openPanel); [Export("pathControl:willPopUpMenu:")] public abstract void WillPopUpMenu(NSPathControl pathControl, NSMenu menu); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPathStyle.cs ================================================ namespace AppKit; public enum NSPathStyle : long { NSPathStyleStandard, NSPathStyleNavigationBar, NSPathStylePopUp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPointingDeviceMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSPointingDeviceMask { Pen = 1, PenLower = 2, PenUpper = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPointingDeviceType.cs ================================================ namespace AppKit; public enum NSPointingDeviceType : ulong { Unknown, Pen, Cursor, Eraser } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopUpArrowPosition.cs ================================================ namespace AppKit; public enum NSPopUpArrowPosition : ulong { None, Center, Bottom } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopUpButton.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPopUpButton", true)] public class NSPopUpButton : NSButton { private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selLastItemHandle = Selector.GetHandle("lastItem"); private static readonly IntPtr selSelectedItemHandle = Selector.GetHandle("selectedItem"); private static readonly IntPtr selIndexOfSelectedItemHandle = Selector.GetHandle("indexOfSelectedItem"); private static readonly IntPtr selTitleOfSelectedItemHandle = Selector.GetHandle("titleOfSelectedItem"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selPullsDownHandle = Selector.GetHandle("pullsDown"); private static readonly IntPtr selSetPullsDown_Handle = Selector.GetHandle("setPullsDown:"); private static readonly IntPtr selAutoenablesItemsHandle = Selector.GetHandle("autoenablesItems"); private static readonly IntPtr selSetAutoenablesItems_Handle = Selector.GetHandle("setAutoenablesItems:"); private static readonly IntPtr selPreferredEdgeHandle = Selector.GetHandle("preferredEdge"); private static readonly IntPtr selSetPreferredEdge_Handle = Selector.GetHandle("setPreferredEdge:"); private static readonly IntPtr selInitWithFramePullsDown_Handle = Selector.GetHandle("initWithFrame:pullsDown:"); private static readonly IntPtr selAddItemWithTitle_Handle = Selector.GetHandle("addItemWithTitle:"); private static readonly IntPtr selAddItemsWithTitles_Handle = Selector.GetHandle("addItemsWithTitles:"); private static readonly IntPtr selInsertItemWithTitleAtIndex_Handle = Selector.GetHandle("insertItemWithTitle:atIndex:"); private static readonly IntPtr selRemoveItemWithTitle_Handle = Selector.GetHandle("removeItemWithTitle:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr selItemArrayHandle = Selector.GetHandle("itemArray"); private static readonly IntPtr selIndexOfItem_Handle = Selector.GetHandle("indexOfItem:"); private static readonly IntPtr selIndexOfItemWithTitle_Handle = Selector.GetHandle("indexOfItemWithTitle:"); private static readonly IntPtr selIndexOfItemWithTag_Handle = Selector.GetHandle("indexOfItemWithTag:"); private static readonly IntPtr selIndexOfItemWithRepresentedObject_Handle = Selector.GetHandle("indexOfItemWithRepresentedObject:"); private static readonly IntPtr selIndexOfItemWithTargetAndAction_Handle = Selector.GetHandle("indexOfItemWithTarget:andAction:"); private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr selItemWithTitle_Handle = Selector.GetHandle("itemWithTitle:"); private static readonly IntPtr selSelectItem_Handle = Selector.GetHandle("selectItem:"); private static readonly IntPtr selSelectItemAtIndex_Handle = Selector.GetHandle("selectItemAtIndex:"); private static readonly IntPtr selSelectItemWithTitle_Handle = Selector.GetHandle("selectItemWithTitle:"); private static readonly IntPtr selSelectItemWithTag_Handle = Selector.GetHandle("selectItemWithTag:"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selSynchronizeTitleAndSelectedItemHandle = Selector.GetHandle("synchronizeTitleAndSelectedItem"); private static readonly IntPtr selItemTitleAtIndex_Handle = Selector.GetHandle("itemTitleAtIndex:"); private static readonly IntPtr selItemTitlesHandle = Selector.GetHandle("itemTitles"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPopUpButton"); private object __mt_LastItem_var; private object __mt_SelectedItem_var; private object __mt_Menu_var; public new NSPopUpButtonCell Cell { get { return (NSPopUpButtonCell)base.Cell; } set { base.Cell = value; } } public override IntPtr ClassHandle => class_ptr; public virtual long ItemCount { [Export("numberOfItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } public virtual NSMenuItem LastItem { [Export("lastItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_LastItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastItemHandle))))); } } public virtual NSMenuItem SelectedItem { [Export("selectedItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_SelectedItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedItemHandle))))); } } public virtual long IndexOfSelectedItem { [Export("indexOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndexOfSelectedItemHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndexOfSelectedItemHandle); } } public virtual string TitleOfSelectedItem { [Export("titleOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleOfSelectedItemHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleOfSelectedItemHandle)); } } public new virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public virtual bool PullsDown { [Export("pullsDown")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPullsDownHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPullsDownHandle); } [Export("setPullsDown:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPullsDown_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPullsDown_Handle, value); } } } public virtual bool AutoEnablesItems { [Export("autoenablesItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoenablesItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoenablesItemsHandle); } [Export("setAutoenablesItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoenablesItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoenablesItems_Handle, value); } } } public virtual NSRectEdge PreferredEdge { [Export("preferredEdge")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRectEdge)Messaging.int_objc_msgSend(base.Handle, selPreferredEdgeHandle); } return (NSRectEdge)Messaging.int_objc_msgSendSuper(base.SuperHandle, selPreferredEdgeHandle); } [Export("setPreferredEdge:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetPreferredEdge_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetPreferredEdge_Handle, (int)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPopUpButton() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPopUpButton(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopUpButton(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopUpButton(IntPtr handle) : base(handle) { } [Export("initWithFrame:pullsDown:")] public NSPopUpButton(CGRect buttonFrame, bool pullsDown) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_bool(base.Handle, selInitWithFramePullsDown_Handle, buttonFrame, pullsDown); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selInitWithFramePullsDown_Handle, buttonFrame, pullsDown); } } [Export("addItemWithTitle:")] public virtual void AddItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("addItemsWithTitles:")] public virtual void AddItems(string[] itemTitles) { NSApplication.EnsureUIThread(); if (itemTitles == null) { throw new ArgumentNullException("itemTitles"); } NSArray nSArray = NSArray.FromStrings(itemTitles); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemsWithTitles_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemsWithTitles_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertItemWithTitle:atIndex:")] public virtual void InsertItem(string title, long index) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertItemWithTitleAtIndex_Handle, arg, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertItemWithTitleAtIndex_Handle, arg, index); } NSString.ReleaseNative(arg); } [Export("removeItemWithTitle:")] public virtual void RemoveItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeItemAtIndex:")] public virtual void RemoveItem(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } } [Export("removeAllItems")] public virtual void RemoveAllItems() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } } [Export("itemArray")] public virtual NSMenuItem[] Items() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemArrayHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemArrayHandle)); } [Export("indexOfItem:")] public virtual long IndexOfItem(NSMenuItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItem_Handle, item.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItem_Handle, item.Handle); } [Export("indexOfItemWithTitle:")] public virtual long IndexOfItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithTitle_Handle, arg) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithTitle_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("indexOfItemWithTag:")] public virtual long IndexOfItem(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selIndexOfItemWithTag_Handle, tag); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selIndexOfItemWithTag_Handle, tag); } [Export("indexOfItemWithRepresentedObject:")] public virtual long IndexOfItem(NSObject obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } [Export("indexOfItemWithTarget:andAction:")] public virtual long IndexOfItem(NSObject target, Selector actionSelector) { NSApplication.EnsureUIThread(); if (target == null) { throw new ArgumentNullException("target"); } if (actionSelector == null) { throw new ArgumentNullException("actionSelector"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } [Export("itemAtIndex:")] public virtual NSMenuItem ItemAtIndex(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemAtIndex_Handle, index)); } return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemAtIndex_Handle, index)); } [Export("itemWithTitle:")] public virtual NSMenuItem ItemWithTitle(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSMenuItem result = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemWithTitle_Handle, arg))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selItemWithTitle_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("selectItem:")] public virtual void SelectItem(NSMenuItem item) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItem_Handle, item?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItem_Handle, item?.Handle ?? IntPtr.Zero); } } [Export("selectItemAtIndex:")] public virtual void SelectItem(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSelectItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSelectItemAtIndex_Handle, index); } } [Export("selectItemWithTitle:")] public virtual void SelectItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("selectItemWithTag:")] public virtual bool SelectItemWithTag(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selSelectItemWithTag_Handle, tag); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selSelectItemWithTag_Handle, tag); } [Export("setTitle:")] public virtual void SetTitle(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("synchronizeTitleAndSelectedItem")] public virtual void SynchronizeTitleAndSelectedItem() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSynchronizeTitleAndSelectedItemHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSynchronizeTitleAndSelectedItemHandle); } } [Export("itemTitleAtIndex:")] public virtual string ItemTitle(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemTitleAtIndex_Handle, index)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemTitleAtIndex_Handle, index)); } [Export("itemTitles")] public virtual string[] ItemTitles() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemTitlesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemTitlesHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LastItem_var = null; __mt_SelectedItem_var = null; __mt_Menu_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopUpButtonCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPopUpButtonCell", true)] public class NSPopUpButtonCell : NSMenuItemCell { private static readonly IntPtr selItemArrayHandle = Selector.GetHandle("itemArray"); private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selLastItemHandle = Selector.GetHandle("lastItem"); private static readonly IntPtr selSelectedItemHandle = Selector.GetHandle("selectedItem"); private static readonly IntPtr selIndexOfSelectedItemHandle = Selector.GetHandle("indexOfSelectedItem"); private static readonly IntPtr selItemTitlesHandle = Selector.GetHandle("itemTitles"); private static readonly IntPtr selTitleOfSelectedItemHandle = Selector.GetHandle("titleOfSelectedItem"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selPullsDownHandle = Selector.GetHandle("pullsDown"); private static readonly IntPtr selSetPullsDown_Handle = Selector.GetHandle("setPullsDown:"); private static readonly IntPtr selAutoenablesItemsHandle = Selector.GetHandle("autoenablesItems"); private static readonly IntPtr selSetAutoenablesItems_Handle = Selector.GetHandle("setAutoenablesItems:"); private static readonly IntPtr selPreferredEdgeHandle = Selector.GetHandle("preferredEdge"); private static readonly IntPtr selSetPreferredEdge_Handle = Selector.GetHandle("setPreferredEdge:"); private static readonly IntPtr selUsesItemFromMenuHandle = Selector.GetHandle("usesItemFromMenu"); private static readonly IntPtr selSetUsesItemFromMenu_Handle = Selector.GetHandle("setUsesItemFromMenu:"); private static readonly IntPtr selAltersStateOfSelectedItemHandle = Selector.GetHandle("altersStateOfSelectedItem"); private static readonly IntPtr selSetAltersStateOfSelectedItem_Handle = Selector.GetHandle("setAltersStateOfSelectedItem:"); private static readonly IntPtr selArrowPositionHandle = Selector.GetHandle("arrowPosition"); private static readonly IntPtr selSetArrowPosition_Handle = Selector.GetHandle("setArrowPosition:"); private static readonly IntPtr selObjectValueHandle = Selector.GetHandle("objectValue"); private static readonly IntPtr selSetObjectValue_Handle = Selector.GetHandle("setObjectValue:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selInitTextCellPullsDown_Handle = Selector.GetHandle("initTextCell:pullsDown:"); private static readonly IntPtr selAddItemWithTitle_Handle = Selector.GetHandle("addItemWithTitle:"); private static readonly IntPtr selAddItemsWithTitles_Handle = Selector.GetHandle("addItemsWithTitles:"); private static readonly IntPtr selInsertItemWithTitleAtIndex_Handle = Selector.GetHandle("insertItemWithTitle:atIndex:"); private static readonly IntPtr selRemoveItemWithTitle_Handle = Selector.GetHandle("removeItemWithTitle:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRemoveAllItemsHandle = Selector.GetHandle("removeAllItems"); private static readonly IntPtr selIndexOfItem_Handle = Selector.GetHandle("indexOfItem:"); private static readonly IntPtr selIndexOfItemWithTitle_Handle = Selector.GetHandle("indexOfItemWithTitle:"); private static readonly IntPtr selIndexOfItemWithTag_Handle = Selector.GetHandle("indexOfItemWithTag:"); private static readonly IntPtr selIndexOfItemWithRepresentedObject_Handle = Selector.GetHandle("indexOfItemWithRepresentedObject:"); private static readonly IntPtr selIndexOfItemWithTargetAndAction_Handle = Selector.GetHandle("indexOfItemWithTarget:andAction:"); private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr selItemWithTitle_Handle = Selector.GetHandle("itemWithTitle:"); private static readonly IntPtr selSelectItem_Handle = Selector.GetHandle("selectItem:"); private static readonly IntPtr selSelectItemAtIndex_Handle = Selector.GetHandle("selectItemAtIndex:"); private static readonly IntPtr selSelectItemWithTitle_Handle = Selector.GetHandle("selectItemWithTitle:"); private static readonly IntPtr selSelectItemWithTag_Handle = Selector.GetHandle("selectItemWithTag:"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selSynchronizeTitleAndSelectedItemHandle = Selector.GetHandle("synchronizeTitleAndSelectedItem"); private static readonly IntPtr selItemTitleAtIndex_Handle = Selector.GetHandle("itemTitleAtIndex:"); private static readonly IntPtr selAttachPopUpWithFrameInView_Handle = Selector.GetHandle("attachPopUpWithFrame:inView:"); private static readonly IntPtr selDismissPopUpHandle = Selector.GetHandle("dismissPopUp"); private static readonly IntPtr selPerformClickWithFrameInView_Handle = Selector.GetHandle("performClickWithFrame:inView:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPopUpButtonCell"); private object __mt_Items_var; private object __mt_LastItem_var; private object __mt_SelectedItem_var; private object __mt_Menu_var; private object __mt_ObjectValue_var; public NSMenuItem this[int idx] => ItemAt(idx); public NSMenuItem this[string title] => ItemWithTitle(title); public override IntPtr ClassHandle => class_ptr; public virtual NSMenuItem[] Items { [Export("itemArray")] get { NSApplication.EnsureUIThread(); return (NSMenuItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemArrayHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemArrayHandle)))); } } public virtual long Count { [Export("numberOfItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } public virtual NSMenuItem LastItem { [Export("lastItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_LastItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastItemHandle))))); } } public virtual NSMenuItem SelectedItem { [Export("selectedItem")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_SelectedItem_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedItemHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedItemHandle))))); } } public virtual long SelectedItemIndex { [Export("indexOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIndexOfSelectedItemHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIndexOfSelectedItemHandle); } } public virtual string[] ItemTitles { [Export("itemTitles")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemTitlesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemTitlesHandle)); } } public virtual string TitleOfSelectedItem { [Export("titleOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleOfSelectedItemHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleOfSelectedItemHandle)); } } public new virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public virtual bool PullsDown { [Export("pullsDown")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPullsDownHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPullsDownHandle); } [Export("setPullsDown:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPullsDown_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPullsDown_Handle, value); } } } public virtual bool AutoenablesItems { [Export("autoenablesItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoenablesItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoenablesItemsHandle); } [Export("setAutoenablesItems:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoenablesItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoenablesItems_Handle, value); } } } public virtual NSRectEdge PreferredEdge { [Export("preferredEdge")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRectEdge)Messaging.int_objc_msgSend(base.Handle, selPreferredEdgeHandle); } return (NSRectEdge)Messaging.int_objc_msgSendSuper(base.SuperHandle, selPreferredEdgeHandle); } [Export("setPreferredEdge:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetPreferredEdge_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetPreferredEdge_Handle, (int)value); } } } public virtual bool UsesItemFromMenu { [Export("usesItemFromMenu")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesItemFromMenuHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesItemFromMenuHandle); } [Export("setUsesItemFromMenu:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesItemFromMenu_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesItemFromMenu_Handle, value); } } } public virtual bool AltersStateOfSelectedItem { [Export("altersStateOfSelectedItem")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAltersStateOfSelectedItemHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAltersStateOfSelectedItemHandle); } [Export("setAltersStateOfSelectedItem:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAltersStateOfSelectedItem_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAltersStateOfSelectedItem_Handle, value); } } } public virtual NSPopUpArrowPosition ArrowPosition { [Export("arrowPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPopUpArrowPosition)Messaging.UInt64_objc_msgSend(base.Handle, selArrowPositionHandle); } return (NSPopUpArrowPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selArrowPositionHandle); } [Export("setArrowPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetArrowPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetArrowPosition_Handle, (ulong)value); } } } public new virtual NSObject ObjectValue { [Export("objectValue")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ObjectValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueHandle)))); } [Export("setObjectValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectValue_Handle, value.Handle); } __mt_ObjectValue_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPopUpButtonCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPopUpButtonCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopUpButtonCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopUpButtonCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSPopUpButtonCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSPopUpButtonCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("initTextCell:pullsDown:")] public NSPopUpButtonCell(string stringValue, bool pullDown) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (stringValue == null) { throw new ArgumentNullException("stringValue"); } IntPtr arg = NSString.CreateNative(stringValue); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitTextCellPullsDown_Handle, arg, pullDown); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitTextCellPullsDown_Handle, arg, pullDown); } NSString.ReleaseNative(arg); } [Export("addItemWithTitle:")] public virtual void AddItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("addItemsWithTitles:")] public virtual void AddItems(string[] itemTitles) { NSApplication.EnsureUIThread(); if (itemTitles == null) { throw new ArgumentNullException("itemTitles"); } NSArray nSArray = NSArray.FromStrings(itemTitles); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItemsWithTitles_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItemsWithTitles_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertItemWithTitle:atIndex:")] public virtual void InsertItem(string title, long index) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertItemWithTitleAtIndex_Handle, arg, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertItemWithTitleAtIndex_Handle, arg, index); } NSString.ReleaseNative(arg); } [Export("removeItemWithTitle:")] public virtual void RemoveItem(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeItemAtIndex:")] public virtual void RemoveItemAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } } [Export("removeAllItems")] public virtual void RemoveAllItems() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllItemsHandle); } } [Export("indexOfItem:")] public virtual long IndexOf(NSMenuItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItem_Handle, item.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItem_Handle, item.Handle); } [Export("indexOfItemWithTitle:")] public virtual long IndexOfItemWithTitle(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithTitle_Handle, arg) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithTitle_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("indexOfItemWithTag:")] public virtual long IndexOfItemWithTag(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selIndexOfItemWithTag_Handle, tag); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selIndexOfItemWithTag_Handle, tag); } [Export("indexOfItemWithRepresentedObject:")] public virtual long IndexOfItemWithRepresentedObject(NSObject obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfItemWithRepresentedObject_Handle, obj.Handle); } [Export("indexOfItemWithTarget:andAction:")] public virtual long IndexOfItemWithTargetandAction(NSObject target, Selector actionSelector) { NSApplication.EnsureUIThread(); if (target == null) { throw new ArgumentNullException("target"); } if (actionSelector == null) { throw new ArgumentNullException("actionSelector"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIndexOfItemWithTargetAndAction_Handle, target.Handle, actionSelector.Handle); } [Export("itemAtIndex:")] public virtual NSMenuItem ItemAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selItemAtIndex_Handle, index)); } return (NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selItemAtIndex_Handle, index)); } [Export("itemWithTitle:")] public virtual NSMenuItem ItemWithTitle(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); NSMenuItem result = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selItemWithTitle_Handle, arg))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selItemWithTitle_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("selectItem:")] public virtual void SelectItem(NSMenuItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItem_Handle, item.Handle); } } [Export("selectItemAtIndex:")] public virtual void SelectItemAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSelectItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSelectItemAtIndex_Handle, index); } } [Export("selectItemWithTitle:")] public virtual void SelectItemWithTitle(string title) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectItemWithTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectItemWithTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("selectItemWithTag:")] public virtual bool SelectItemWithTag(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selSelectItemWithTag_Handle, tag); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selSelectItemWithTag_Handle, tag); } [Export("setTitle:")] public virtual void SetTitle(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } [Export("synchronizeTitleAndSelectedItem")] public virtual void SynchronizeTitleAndSelectedItem() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSynchronizeTitleAndSelectedItemHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSynchronizeTitleAndSelectedItemHandle); } } [Export("itemTitleAtIndex:")] public virtual string GetItemTitle(int index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItemTitleAtIndex_Handle, index)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItemTitleAtIndex_Handle, index)); } [Export("attachPopUpWithFrame:inView:")] public virtual void AttachPopUp(CGRect cellFrame, NSView inView) { NSApplication.EnsureUIThread(); if (inView == null) { throw new ArgumentNullException("inView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selAttachPopUpWithFrameInView_Handle, cellFrame, inView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selAttachPopUpWithFrameInView_Handle, cellFrame, inView.Handle); } } [Export("dismissPopUp")] public virtual void DismissPopUp() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDismissPopUpHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDismissPopUpHandle); } } [Export("performClickWithFrame:inView:")] public virtual void PerformClick(CGRect withFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selPerformClickWithFrameInView_Handle, withFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selPerformClickWithFrameInView_Handle, withFrame, controlView.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Items_var = null; __mt_LastItem_var = null; __mt_SelectedItem_var = null; __mt_Menu_var = null; __mt_ObjectValue_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopover.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPopover", true)] public class NSPopover : NSResponder { public static class Notifications { public static NSObject ObserveWillShow(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillShowNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidShow(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidShowNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillClose(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillCloseNotification, delegate(NSNotification notification) { handler(null, new NSPopoverCloseEventArgs(notification)); }); } public static NSObject ObserveDidClose(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidCloseNotification, delegate(NSNotification notification) { handler(null, new NSPopoverCloseEventArgs(notification)); }); } } private static readonly IntPtr selAppearanceHandle = Selector.GetHandle("appearance"); private static readonly IntPtr selSetAppearance_Handle = Selector.GetHandle("setAppearance:"); private static readonly IntPtr selBehaviorHandle = Selector.GetHandle("behavior"); private static readonly IntPtr selSetBehavior_Handle = Selector.GetHandle("setBehavior:"); private static readonly IntPtr selAnimatesHandle = Selector.GetHandle("animates"); private static readonly IntPtr selSetAnimates_Handle = Selector.GetHandle("setAnimates:"); private static readonly IntPtr selContentViewControllerHandle = Selector.GetHandle("contentViewController"); private static readonly IntPtr selSetContentViewController_Handle = Selector.GetHandle("setContentViewController:"); private static readonly IntPtr selContentSizeHandle = Selector.GetHandle("contentSize"); private static readonly IntPtr selSetContentSize_Handle = Selector.GetHandle("setContentSize:"); private static readonly IntPtr selIsShownHandle = Selector.GetHandle("isShown"); private static readonly IntPtr selPositioningRectHandle = Selector.GetHandle("positioningRect"); private static readonly IntPtr selSetPositioningRect_Handle = Selector.GetHandle("setPositioningRect:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selShowRelativeToRectOfViewPreferredEdge_Handle = Selector.GetHandle("showRelativeToRect:ofView:preferredEdge:"); private static readonly IntPtr selPerformClose_Handle = Selector.GetHandle("performClose:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPopover"); private object __mt_ContentViewController_var; private object __mt_WeakDelegate_var; private static NSString _CloseReasonKey; private static NSString _CloseReasonStandard; private static NSString _CloseReasonDetachToWindow; private static NSString _WillShowNotification; private static NSString _DidShowNotification; private static NSString _WillCloseNotification; private static NSString _DidCloseNotification; public override IntPtr ClassHandle => class_ptr; public virtual NSPopoverAppearance Appearance { [Export("appearance")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPopoverAppearance)Messaging.Int64_objc_msgSend(base.Handle, selAppearanceHandle); } return (NSPopoverAppearance)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selAppearanceHandle); } [Export("setAppearance:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetAppearance_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetAppearance_Handle, (long)value); } } } public virtual NSPopoverBehavior Behavior { [Export("behavior")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPopoverBehavior)Messaging.Int64_objc_msgSend(base.Handle, selBehaviorHandle); } return (NSPopoverBehavior)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBehaviorHandle); } [Export("setBehavior:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBehavior_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBehavior_Handle, (long)value); } } } public virtual bool Animates { [Export("animates")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAnimatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAnimatesHandle); } [Export("setAnimates:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAnimates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAnimates_Handle, value); } } } public virtual NSViewController ContentViewController { [Export("contentViewController")] get { NSApplication.EnsureUIThread(); return (NSViewController)(__mt_ContentViewController_var = ((!IsDirectBinding) ? ((NSViewController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewControllerHandle))) : ((NSViewController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewControllerHandle))))); } [Export("setContentViewController:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentViewController_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentViewController_Handle, value.Handle); } __mt_ContentViewController_var = value; } } public virtual CGSize ContentSize { [Export("contentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentSizeHandle); } [Export("setContentSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentSize_Handle, value); } } } public virtual bool Shown { [Export("isShown")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsShownHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsShownHandle); } } public virtual CGRect PositioningRect { [Export("positioningRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selPositioningRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selPositioningRectHandle); } return retval; } [Export("setPositioningRect:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetPositioningRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetPositioningRect_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSPopoverDelegate Delegate { get { return WeakDelegate as NSPopoverDelegate; } set { WeakDelegate = value; } } [Field("NSPopoverCloseReasonKey", "AppKit")] public static NSString CloseReasonKey { get { if (_CloseReasonKey == null) { _CloseReasonKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverCloseReasonKey"); } return _CloseReasonKey; } } [Field("NSPopoverCloseReasonStandard", "AppKit")] public static NSString CloseReasonStandard { get { if (_CloseReasonStandard == null) { _CloseReasonStandard = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverCloseReasonStandard"); } return _CloseReasonStandard; } } [Field("NSPopoverCloseReasonDetachToWindow", "AppKit")] public static NSString CloseReasonDetachToWindow { get { if (_CloseReasonDetachToWindow == null) { _CloseReasonDetachToWindow = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverCloseReasonDetachToWindow"); } return _CloseReasonDetachToWindow; } } [Field("NSPopoverWillShowNotification", "AppKit")] public static NSString WillShowNotification { get { if (_WillShowNotification == null) { _WillShowNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverWillShowNotification"); } return _WillShowNotification; } } [Field("NSPopoverDidShowNotification", "AppKit")] public static NSString DidShowNotification { get { if (_DidShowNotification == null) { _DidShowNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverDidShowNotification"); } return _DidShowNotification; } } [Field("NSPopoverWillCloseNotification", "AppKit")] public static NSString WillCloseNotification { get { if (_WillCloseNotification == null) { _WillCloseNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverWillCloseNotification"); } return _WillCloseNotification; } } [Field("NSPopoverDidCloseNotification", "AppKit")] public static NSString DidCloseNotification { get { if (_DidCloseNotification == null) { _DidCloseNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPopoverDidCloseNotification"); } return _DidCloseNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPopover() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPopover(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopover(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopover(IntPtr handle) : base(handle) { } [Export("showRelativeToRect:ofView:preferredEdge:")] public virtual void Show(CGRect relativePositioningRect, NSView positioningView, NSRectEdge preferredEdge) { NSApplication.EnsureUIThread(); if (positioningView == null) { throw new ArgumentNullException("positioningView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_int(base.Handle, selShowRelativeToRectOfViewPreferredEdge_Handle, relativePositioningRect, positioningView.Handle, (int)preferredEdge); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_int(base.SuperHandle, selShowRelativeToRectOfViewPreferredEdge_Handle, relativePositioningRect, positioningView.Handle, (int)preferredEdge); } } [Export("performClose:")] public virtual void PerformClose(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformClose_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformClose_Handle, sender.Handle); } } [Export("close")] public virtual void Close() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ContentViewController_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopoverAppearance.cs ================================================ namespace AppKit; public enum NSPopoverAppearance : long { Minimal, HUD } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopoverBehavior.cs ================================================ namespace AppKit; public enum NSPopoverBehavior : long { ApplicationDefined, Transient, Semitransient } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopoverCloseEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSPopoverCloseEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSPopoverCloseReason Reason { get { if (_Reason == NSPopover.CloseReasonStandard) { return NSPopoverCloseReason.Standard; } if (_Reason == NSPopover.CloseReasonDetachToWindow) { return NSPopoverCloseReason.DetachToWindow; } return NSPopoverCloseReason.Unknown; } } internal NSString _Reason { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSPopoverCloseReasonKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSString)Runtime.GetNSObject(intPtr); } } public NSPopoverCloseEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopoverCloseReason.cs ================================================ namespace AppKit; public enum NSPopoverCloseReason { Unknown, Standard, DetachToWindow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPopoverDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPopoverDelegate", true)] [Model] public class NSPopoverDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPopoverDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPopoverDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopoverDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPopoverDelegate(IntPtr handle) : base(handle) { } [Export("popoverShouldClose:")] public virtual bool ShouldClose(NSPopover popover) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("detachableWindowForPopover:")] public virtual NSWindow GetDetachableWindowForPopover(NSPopover popover) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("popoverWillShow:")] public virtual void WillShow(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("popoverDidShow:")] public virtual void DidShow(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("popoverWillClose:")] public virtual void WillClose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("popoverDidClose:")] public virtual void DidClose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPredicateEditor.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPredicateEditor", true)] public class NSPredicateEditor : NSRuleEditor { private static readonly IntPtr selRowTemplatesHandle = Selector.GetHandle("rowTemplates"); private static readonly IntPtr selSetRowTemplates_Handle = Selector.GetHandle("setRowTemplates:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPredicateEditor"); private object __mt_RowTemplates_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPredicateEditorRowTemplate[] RowTemplates { [Export("rowTemplates")] get { NSApplication.EnsureUIThread(); return (NSPredicateEditorRowTemplate[])(__mt_RowTemplates_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRowTemplatesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRowTemplatesHandle)))); } [Export("setRowTemplates:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRowTemplates_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRowTemplates_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_RowTemplates_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPredicateEditor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPredicateEditor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicateEditor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicateEditor(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_RowTemplates_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPredicateEditorRowTemplate.cs ================================================ using System; using System.ComponentModel; using CoreData; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPredicateEditorRowTemplate", true)] public class NSPredicateEditorRowTemplate : NSObject { private static readonly IntPtr selTemplateViewsHandle = Selector.GetHandle("templateViews"); private static readonly IntPtr selLeftExpressionsHandle = Selector.GetHandle("leftExpressions"); private static readonly IntPtr selRightExpressionsHandle = Selector.GetHandle("rightExpressions"); private static readonly IntPtr selRightExpressionAttributeTypeHandle = Selector.GetHandle("rightExpressionAttributeType"); private static readonly IntPtr selModifierHandle = Selector.GetHandle("modifier"); private static readonly IntPtr selOperatorsHandle = Selector.GetHandle("operators"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selCompoundTypesHandle = Selector.GetHandle("compoundTypes"); private static readonly IntPtr selMatchForPredicate_Handle = Selector.GetHandle("matchForPredicate:"); private static readonly IntPtr selSetPredicate_Handle = Selector.GetHandle("setPredicate:"); private static readonly IntPtr selPredicateWithSubpredicates_Handle = Selector.GetHandle("predicateWithSubpredicates:"); private static readonly IntPtr selDisplayableSubpredicatesOfPredicate_Handle = Selector.GetHandle("displayableSubpredicatesOfPredicate:"); private static readonly IntPtr selInitWithLeftExpressionsRightExpressionsModifierOperatorsOptions_Handle = Selector.GetHandle("initWithLeftExpressions:rightExpressions:modifier:operators:options:"); private static readonly IntPtr selInitWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions_Handle = Selector.GetHandle("initWithLeftExpressions:rightExpressionAttributeType:modifier:operators:options:"); private static readonly IntPtr selInitWithCompoundTypes_Handle = Selector.GetHandle("initWithCompoundTypes:"); private static readonly IntPtr selTemplatesWithAttributeKeyPathsInEntityDescription_Handle = Selector.GetHandle("templatesWithAttributeKeyPaths:inEntityDescription:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPredicateEditorRowTemplate"); private object __mt_TemplateViews_var; private object __mt_LeftExpressions_var; private object __mt_RightExpressions_var; private object __mt_Operators_var; private object __mt_CompoundTypes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject[] TemplateViews { [Export("templateViews")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_TemplateViews_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTemplateViewsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTemplateViewsHandle)))); } } public virtual NSExpression[] LeftExpressions { [Export("leftExpressions")] get { NSApplication.EnsureUIThread(); return (NSExpression[])(__mt_LeftExpressions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLeftExpressionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLeftExpressionsHandle)))); } } public virtual NSExpression[] RightExpressions { [Export("rightExpressions")] get { NSApplication.EnsureUIThread(); return (NSExpression[])(__mt_RightExpressions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRightExpressionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRightExpressionsHandle)))); } } public virtual NSAttributeType RightExpressionAttributeType { [Export("rightExpressionAttributeType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSAttributeType)Messaging.UInt64_objc_msgSend(base.Handle, selRightExpressionAttributeTypeHandle); } return (NSAttributeType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selRightExpressionAttributeTypeHandle); } } public virtual NSComparisonPredicateModifier Modifier { [Export("modifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSComparisonPredicateModifier)Messaging.UInt64_objc_msgSend(base.Handle, selModifierHandle); } return (NSComparisonPredicateModifier)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selModifierHandle); } } public virtual NSObject[] Operators { [Export("operators")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_Operators_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOperatorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOperatorsHandle)))); } } public virtual NSComparisonPredicateOptions Options { [Export("options")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSComparisonPredicateOptions)Messaging.UInt64_objc_msgSend(base.Handle, selOptionsHandle); } return (NSComparisonPredicateOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOptionsHandle); } } public virtual NSNumber[] CompoundTypes { [Export("compoundTypes")] get { NSApplication.EnsureUIThread(); return (NSNumber[])(__mt_CompoundTypes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompoundTypesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCompoundTypesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPredicateEditorRowTemplate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPredicateEditorRowTemplate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicateEditorRowTemplate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicateEditorRowTemplate(IntPtr handle) : base(handle) { } [Export("matchForPredicate:")] public virtual double MatchForPredicate(NSPredicate predicate) { NSApplication.EnsureUIThread(); if (predicate == null) { throw new ArgumentNullException("predicate"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selMatchForPredicate_Handle, predicate.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchForPredicate_Handle, predicate.Handle); } [Export("setPredicate:")] public virtual void SetPredicate(NSPredicate predicate) { NSApplication.EnsureUIThread(); if (predicate == null) { throw new ArgumentNullException("predicate"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPredicate_Handle, predicate.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPredicate_Handle, predicate.Handle); } } [Export("predicateWithSubpredicates:")] public virtual NSPredicate PredicateWithSubpredicates(NSPredicate[] subpredicates) { NSApplication.EnsureUIThread(); if (subpredicates == null) { throw new ArgumentNullException("subpredicates"); } NSArray nSArray = NSArray.FromNSObjects(subpredicates); NSPredicate result = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPredicateWithSubpredicates_Handle, nSArray.Handle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPredicateWithSubpredicates_Handle, nSArray.Handle)))); nSArray.Dispose(); return result; } [Export("displayableSubpredicatesOfPredicate:")] public virtual NSPredicate[] DisplayableSubpredicatesOfPredicate(NSPredicate predicate) { NSApplication.EnsureUIThread(); if (predicate == null) { throw new ArgumentNullException("predicate"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDisplayableSubpredicatesOfPredicate_Handle, predicate.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDisplayableSubpredicatesOfPredicate_Handle, predicate.Handle)); } [Export("initWithLeftExpressions:rightExpressions:modifier:operators:options:")] public NSPredicateEditorRowTemplate(NSExpression[] leftExpressions, NSExpression[] rightExpressions, NSComparisonPredicateModifier modifier, NSObject[] operators, NSComparisonPredicateOptions options) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (leftExpressions == null) { throw new ArgumentNullException("leftExpressions"); } if (rightExpressions == null) { throw new ArgumentNullException("rightExpressions"); } if (operators == null) { throw new ArgumentNullException("operators"); } NSArray nSArray = NSArray.FromNSObjects(leftExpressions); NSArray nSArray2 = NSArray.FromNSObjects(rightExpressions); NSArray nSArray3 = NSArray.FromNSObjects(operators); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_UInt64(base.Handle, selInitWithLeftExpressionsRightExpressionsModifierOperatorsOptions_Handle, nSArray.Handle, nSArray2.Handle, (ulong)modifier, nSArray3.Handle, (ulong)options); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_UInt64(base.SuperHandle, selInitWithLeftExpressionsRightExpressionsModifierOperatorsOptions_Handle, nSArray.Handle, nSArray2.Handle, (ulong)modifier, nSArray3.Handle, (ulong)options); } nSArray.Dispose(); nSArray2.Dispose(); nSArray3.Dispose(); } [Export("initWithLeftExpressions:rightExpressionAttributeType:modifier:operators:options:")] public NSPredicateEditorRowTemplate(NSExpression[] leftExpressions, NSAttributeType attributeType, NSComparisonPredicateModifier modifier, NSObject[] operators, NSComparisonPredicateOptions options) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (leftExpressions == null) { throw new ArgumentNullException("leftExpressions"); } if (operators == null) { throw new ArgumentNullException("operators"); } NSArray nSArray = NSArray.FromNSObjects(leftExpressions); NSArray nSArray2 = NSArray.FromNSObjects(operators); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr_UInt64(base.Handle, selInitWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions_Handle, nSArray.Handle, (ulong)attributeType, (ulong)modifier, nSArray2.Handle, (ulong)options); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_UInt64_IntPtr_UInt64(base.SuperHandle, selInitWithLeftExpressionsRightExpressionAttributeTypeModifierOperatorsOptions_Handle, nSArray.Handle, (ulong)attributeType, (ulong)modifier, nSArray2.Handle, (ulong)options); } nSArray.Dispose(); nSArray2.Dispose(); } [Export("initWithCompoundTypes:")] public NSPredicateEditorRowTemplate(NSNumber[] compoundTypes) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (compoundTypes == null) { throw new ArgumentNullException("compoundTypes"); } NSArray nSArray = NSArray.FromNSObjects(compoundTypes); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCompoundTypes_Handle, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCompoundTypes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("templatesWithAttributeKeyPaths:inEntityDescription:")] public static NSPredicateEditorRowTemplate[] GetTemplates(string[] keyPaths, NSEntityDescription entityDescription) { NSApplication.EnsureUIThread(); if (keyPaths == null) { throw new ArgumentNullException("keyPaths"); } if (entityDescription == null) { throw new ArgumentNullException("entityDescription"); } NSArray nSArray = NSArray.FromStrings(keyPaths); NSPredicateEditorRowTemplate[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selTemplatesWithAttributeKeyPathsInEntityDescription_Handle, nSArray.Handle, entityDescription.Handle)); nSArray.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TemplateViews_var = null; __mt_LeftExpressions_var = null; __mt_RightExpressions_var = null; __mt_Operators_var = null; __mt_CompoundTypes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintInfo.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrintInfo", true)] public class NSPrintInfo : NSObject { private static readonly IntPtr selDictionaryHandle = Selector.GetHandle("dictionary"); private static readonly IntPtr selImageablePageBoundsHandle = Selector.GetHandle("imageablePageBounds"); private static readonly IntPtr selLocalizedPaperNameHandle = Selector.GetHandle("localizedPaperName"); private static readonly IntPtr selDefaultPrinterHandle = Selector.GetHandle("defaultPrinter"); private static readonly IntPtr selPrintSettingsHandle = Selector.GetHandle("printSettings"); private static readonly IntPtr selSharedPrintInfoHandle = Selector.GetHandle("sharedPrintInfo"); private static readonly IntPtr selSetSharedPrintInfo_Handle = Selector.GetHandle("setSharedPrintInfo:"); private static readonly IntPtr selPaperNameHandle = Selector.GetHandle("paperName"); private static readonly IntPtr selSetPaperName_Handle = Selector.GetHandle("setPaperName:"); private static readonly IntPtr selPaperSizeHandle = Selector.GetHandle("paperSize"); private static readonly IntPtr selSetPaperSize_Handle = Selector.GetHandle("setPaperSize:"); private static readonly IntPtr selOrientationHandle = Selector.GetHandle("orientation"); private static readonly IntPtr selSetOrientation_Handle = Selector.GetHandle("setOrientation:"); private static readonly IntPtr selScalingFactorHandle = Selector.GetHandle("scalingFactor"); private static readonly IntPtr selSetScalingFactor_Handle = Selector.GetHandle("setScalingFactor:"); private static readonly IntPtr selLeftMarginHandle = Selector.GetHandle("leftMargin"); private static readonly IntPtr selSetLeftMargin_Handle = Selector.GetHandle("setLeftMargin:"); private static readonly IntPtr selRightMarginHandle = Selector.GetHandle("rightMargin"); private static readonly IntPtr selSetRightMargin_Handle = Selector.GetHandle("setRightMargin:"); private static readonly IntPtr selTopMarginHandle = Selector.GetHandle("topMargin"); private static readonly IntPtr selSetTopMargin_Handle = Selector.GetHandle("setTopMargin:"); private static readonly IntPtr selBottomMarginHandle = Selector.GetHandle("bottomMargin"); private static readonly IntPtr selSetBottomMargin_Handle = Selector.GetHandle("setBottomMargin:"); private static readonly IntPtr selIsHorizontallyCenteredHandle = Selector.GetHandle("isHorizontallyCentered"); private static readonly IntPtr selSetHorizontallyCentered_Handle = Selector.GetHandle("setHorizontallyCentered:"); private static readonly IntPtr selIsVerticallyCenteredHandle = Selector.GetHandle("isVerticallyCentered"); private static readonly IntPtr selSetVerticallyCentered_Handle = Selector.GetHandle("setVerticallyCentered:"); private static readonly IntPtr selHorizontalPaginationHandle = Selector.GetHandle("horizontalPagination"); private static readonly IntPtr selSetHorizontalPagination_Handle = Selector.GetHandle("setHorizontalPagination:"); private static readonly IntPtr selVerticalPaginationHandle = Selector.GetHandle("verticalPagination"); private static readonly IntPtr selSetVerticalPagination_Handle = Selector.GetHandle("setVerticalPagination:"); private static readonly IntPtr selJobDispositionHandle = Selector.GetHandle("jobDisposition"); private static readonly IntPtr selSetJobDisposition_Handle = Selector.GetHandle("setJobDisposition:"); private static readonly IntPtr selPrinterHandle = Selector.GetHandle("printer"); private static readonly IntPtr selSetPrinter_Handle = Selector.GetHandle("setPrinter:"); private static readonly IntPtr selIsSelectionOnlyHandle = Selector.GetHandle("isSelectionOnly"); private static readonly IntPtr selSetSelectionOnly_Handle = Selector.GetHandle("setSelectionOnly:"); private static readonly IntPtr selInitWithDictionary_Handle = Selector.GetHandle("initWithDictionary:"); private static readonly IntPtr selSetUpPrintOperationDefaultValuesHandle = Selector.GetHandle("setUpPrintOperationDefaultValues"); private static readonly IntPtr selPMPrintSessionHandle = Selector.GetHandle("PMPrintSession"); private static readonly IntPtr selPMPageFormatHandle = Selector.GetHandle("PMPageFormat"); private static readonly IntPtr selPMPrintSettingsHandle = Selector.GetHandle("PMPrintSettings"); private static readonly IntPtr selUpdateFromPMPageFormatHandle = Selector.GetHandle("updateFromPMPageFormat"); private static readonly IntPtr selUpdateFromPMPrintSettingsHandle = Selector.GetHandle("updateFromPMPrintSettings"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPrintInfo"); private object __mt_Dictionary_var; private static object __mt_DefaultPrinter_var_static; private object __mt_PrintSettings_var; private static object __mt_SharedPrintInfo_var_static; private object __mt_Printer_var; public override IntPtr ClassHandle => class_ptr; public virtual NSMutableDictionary Dictionary { [Export("dictionary")] get { NSApplication.EnsureUIThread(); return (NSMutableDictionary)(__mt_Dictionary_var = ((!IsDirectBinding) ? ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDictionaryHandle))) : ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDictionaryHandle))))); } } public virtual CGRect ImageablePageBounds { [Export("imageablePageBounds")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selImageablePageBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selImageablePageBoundsHandle); } return retval; } } public virtual string LocalizedPaperName { [Export("localizedPaperName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedPaperNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedPaperNameHandle)); } } public static NSPrinter DefaultPrinter { [Export("defaultPrinter")] get { NSApplication.EnsureUIThread(); return (NSPrinter)(__mt_DefaultPrinter_var_static = (NSPrinter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultPrinterHandle))); } } public virtual NSMutableDictionary PrintSettings { [Export("printSettings")] get { NSApplication.EnsureUIThread(); return (NSMutableDictionary)(__mt_PrintSettings_var = ((!IsDirectBinding) ? ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintSettingsHandle))) : ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintSettingsHandle))))); } } public static NSPrintInfo SharedPrintInfo { [Export("sharedPrintInfo")] get { NSApplication.EnsureUIThread(); return (NSPrintInfo)(__mt_SharedPrintInfo_var_static = (NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedPrintInfoHandle))); } [Export("setSharedPrintInfo:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetSharedPrintInfo_Handle, value.Handle); } } public virtual string PaperName { [Export("paperName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPaperNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPaperNameHandle)); } [Export("setPaperName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPaperName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPaperName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual CGSize PaperSize { [Export("paperSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selPaperSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selPaperSizeHandle); } [Export("setPaperSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetPaperSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetPaperSize_Handle, value); } } } public virtual NSPrintingOrientation Orientation { [Export("orientation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPrintingOrientation)Messaging.UInt64_objc_msgSend(base.Handle, selOrientationHandle); } return (NSPrintingOrientation)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOrientationHandle); } [Export("setOrientation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetOrientation_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetOrientation_Handle, (ulong)value); } } } public virtual double ScalingFactor { [Export("scalingFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selScalingFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selScalingFactorHandle); } [Export("setScalingFactor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetScalingFactor_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetScalingFactor_Handle, value); } } } public virtual double LeftMargin { [Export("leftMargin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLeftMarginHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLeftMarginHandle); } [Export("setLeftMargin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLeftMargin_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLeftMargin_Handle, value); } } } public virtual double RightMargin { [Export("rightMargin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRightMarginHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRightMarginHandle); } [Export("setRightMargin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRightMargin_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRightMargin_Handle, value); } } } public virtual double TopMargin { [Export("topMargin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTopMarginHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTopMarginHandle); } [Export("setTopMargin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTopMargin_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTopMargin_Handle, value); } } } public virtual double BottomMargin { [Export("bottomMargin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBottomMarginHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBottomMarginHandle); } [Export("setBottomMargin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBottomMargin_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBottomMargin_Handle, value); } } } public virtual bool HorizontallyCentered { [Export("isHorizontallyCentered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHorizontallyCenteredHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHorizontallyCenteredHandle); } [Export("setHorizontallyCentered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHorizontallyCentered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHorizontallyCentered_Handle, value); } } } public virtual bool VerticallyCentered { [Export("isVerticallyCentered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVerticallyCenteredHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVerticallyCenteredHandle); } [Export("setVerticallyCentered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVerticallyCentered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVerticallyCentered_Handle, value); } } } public virtual NSPrintingPaginationMode HorizontalPagination { [Export("horizontalPagination")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPrintingPaginationMode)Messaging.UInt64_objc_msgSend(base.Handle, selHorizontalPaginationHandle); } return (NSPrintingPaginationMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selHorizontalPaginationHandle); } [Export("setHorizontalPagination:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetHorizontalPagination_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetHorizontalPagination_Handle, (ulong)value); } } } public virtual NSPrintingPaginationMode VerticalPagination { [Export("verticalPagination")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPrintingPaginationMode)Messaging.UInt64_objc_msgSend(base.Handle, selVerticalPaginationHandle); } return (NSPrintingPaginationMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selVerticalPaginationHandle); } [Export("setVerticalPagination:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetVerticalPagination_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetVerticalPagination_Handle, (ulong)value); } } } public virtual string JobDisposition { [Export("jobDisposition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selJobDispositionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selJobDispositionHandle)); } [Export("setJobDisposition:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetJobDisposition_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetJobDisposition_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSPrinter Printer { [Export("printer")] get { NSApplication.EnsureUIThread(); return (NSPrinter)(__mt_Printer_var = ((!IsDirectBinding) ? ((NSPrinter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrinterHandle))) : ((NSPrinter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrinterHandle))))); } [Export("setPrinter:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrinter_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrinter_Handle, value.Handle); } __mt_Printer_var = value; } } public virtual bool SelectionOnly { [Export("isSelectionOnly")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectionOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectionOnlyHandle); } [Export("setSelectionOnly:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectionOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectionOnly_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPrintInfo() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrintInfo(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintInfo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintInfo(IntPtr handle) : base(handle) { } [Export("initWithDictionary:")] public NSPrintInfo(NSDictionary attributes) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithDictionary_Handle, attributes.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithDictionary_Handle, attributes.Handle); } } [Export("setUpPrintOperationDefaultValues")] public virtual void SetUpPrintOperationDefaultValues() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetUpPrintOperationDefaultValuesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetUpPrintOperationDefaultValuesHandle); } } [Export("PMPrintSession")] public virtual IntPtr GetPMPrintSession() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selPMPrintSessionHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPMPrintSessionHandle); } [Export("PMPageFormat")] public virtual IntPtr GetPMPageFormat() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selPMPageFormatHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPMPageFormatHandle); } [Export("PMPrintSettings")] public virtual IntPtr GetPMPrintSettings() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selPMPrintSettingsHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPMPrintSettingsHandle); } [Export("updateFromPMPageFormat")] public virtual void UpdateFromPMPageFormat() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateFromPMPageFormatHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateFromPMPageFormatHandle); } } [Export("updateFromPMPrintSettings")] public virtual void UpdateFromPMPrintSettings() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateFromPMPrintSettingsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateFromPMPrintSettingsHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Dictionary_var = null; __mt_PrintSettings_var = null; __mt_Printer_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintOperation.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrintOperation", true)] public class NSPrintOperation : NSObject { private static readonly IntPtr selIsCopyingOperationHandle = Selector.GetHandle("isCopyingOperation"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selContextHandle = Selector.GetHandle("context"); private static readonly IntPtr selPageRangeHandle = Selector.GetHandle("pageRange"); private static readonly IntPtr selCurrentPageHandle = Selector.GetHandle("currentPage"); private static readonly IntPtr selCurrentOperationHandle = Selector.GetHandle("currentOperation"); private static readonly IntPtr selSetCurrentOperation_Handle = Selector.GetHandle("setCurrentOperation:"); private static readonly IntPtr selJobTitleHandle = Selector.GetHandle("jobTitle"); private static readonly IntPtr selSetJobTitle_Handle = Selector.GetHandle("setJobTitle:"); private static readonly IntPtr selShowsPrintPanelHandle = Selector.GetHandle("showsPrintPanel"); private static readonly IntPtr selSetShowsPrintPanel_Handle = Selector.GetHandle("setShowsPrintPanel:"); private static readonly IntPtr selShowsProgressPanelHandle = Selector.GetHandle("showsProgressPanel"); private static readonly IntPtr selSetShowsProgressPanel_Handle = Selector.GetHandle("setShowsProgressPanel:"); private static readonly IntPtr selPrintPanelHandle = Selector.GetHandle("printPanel"); private static readonly IntPtr selSetPrintPanel_Handle = Selector.GetHandle("setPrintPanel:"); private static readonly IntPtr selCanSpawnSeparateThreadHandle = Selector.GetHandle("canSpawnSeparateThread"); private static readonly IntPtr selSetCanSpawnSeparateThread_Handle = Selector.GetHandle("setCanSpawnSeparateThread:"); private static readonly IntPtr selPageOrderHandle = Selector.GetHandle("pageOrder"); private static readonly IntPtr selSetPageOrder_Handle = Selector.GetHandle("setPageOrder:"); private static readonly IntPtr selPrintInfoHandle = Selector.GetHandle("printInfo"); private static readonly IntPtr selSetPrintInfo_Handle = Selector.GetHandle("setPrintInfo:"); private static readonly IntPtr selPrintOperationWithViewPrintInfo_Handle = Selector.GetHandle("printOperationWithView:printInfo:"); private static readonly IntPtr selPDFOperationWithViewInsideRectToDataPrintInfo_Handle = Selector.GetHandle("PDFOperationWithView:insideRect:toData:printInfo:"); private static readonly IntPtr selPDFOperationWithViewInsideRectToPathPrintInfo_Handle = Selector.GetHandle("PDFOperationWithView:insideRect:toPath:printInfo:"); private static readonly IntPtr selEPSOperationWithViewInsideRectToDataPrintInfo_Handle = Selector.GetHandle("EPSOperationWithView:insideRect:toData:printInfo:"); private static readonly IntPtr selEPSOperationWithViewInsideRectToPathPrintInfo_Handle = Selector.GetHandle("EPSOperationWithView:insideRect:toPath:printInfo:"); private static readonly IntPtr selPrintOperationWithView_Handle = Selector.GetHandle("printOperationWithView:"); private static readonly IntPtr selPDFOperationWithViewInsideRectToData_Handle = Selector.GetHandle("PDFOperationWithView:insideRect:toData:"); private static readonly IntPtr selEPSOperationWithViewInsideRectToData_Handle = Selector.GetHandle("EPSOperationWithView:insideRect:toData:"); private static readonly IntPtr selRunOperationModalForWindowDelegateDidRunSelectorContextInfo_Handle = Selector.GetHandle("runOperationModalForWindow:delegate:didRunSelector:contextInfo:"); private static readonly IntPtr selRunOperationHandle = Selector.GetHandle("runOperation"); private static readonly IntPtr selCreateContextHandle = Selector.GetHandle("createContext"); private static readonly IntPtr selDestroyContextHandle = Selector.GetHandle("destroyContext"); private static readonly IntPtr selDeliverResultHandle = Selector.GetHandle("deliverResult"); private static readonly IntPtr selCleanUpOperationHandle = Selector.GetHandle("cleanUpOperation"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPrintOperation"); private object __mt_View_var; private object __mt_Context_var; private static object __mt_CurrentOperation_var_static; private object __mt_PrintPanel_var; private object __mt_PrintInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsCopyingOperation { [Export("isCopyingOperation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCopyingOperationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCopyingOperationHandle); } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } } public virtual NSGraphicsContext Context { [Export("context")] get { NSApplication.EnsureUIThread(); return (NSGraphicsContext)(__mt_Context_var = ((!IsDirectBinding) ? ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContextHandle))) : ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContextHandle))))); } } public virtual NSRange PageRange { [Export("pageRange")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selPageRangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selPageRangeHandle); } } public virtual long CurrentPage { [Export("currentPage")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selCurrentPageHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selCurrentPageHandle); } } public static NSPrintOperation CurrentOperation { [Export("currentOperation")] get { NSApplication.EnsureUIThread(); return (NSPrintOperation)(__mt_CurrentOperation_var_static = (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentOperationHandle))); } [Export("setCurrentOperation:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetCurrentOperation_Handle, value.Handle); } } public virtual string JobTitle { [Export("jobTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selJobTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selJobTitleHandle)); } [Export("setJobTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetJobTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetJobTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ShowsPrintPanel { [Export("showsPrintPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsPrintPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsPrintPanelHandle); } [Export("setShowsPrintPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsPrintPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsPrintPanel_Handle, value); } } } public virtual bool ShowsProgressPanel { [Export("showsProgressPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsProgressPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsProgressPanelHandle); } [Export("setShowsProgressPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsProgressPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsProgressPanel_Handle, value); } } } public virtual NSPrintPanel PrintPanel { [Export("printPanel")] get { NSApplication.EnsureUIThread(); return (NSPrintPanel)(__mt_PrintPanel_var = ((!IsDirectBinding) ? ((NSPrintPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintPanelHandle))) : ((NSPrintPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintPanelHandle))))); } [Export("setPrintPanel:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrintPanel_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrintPanel_Handle, value.Handle); } __mt_PrintPanel_var = value; } } public virtual bool CanSpawnSeparateThread { [Export("canSpawnSeparateThread")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanSpawnSeparateThreadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanSpawnSeparateThreadHandle); } [Export("setCanSpawnSeparateThread:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanSpawnSeparateThread_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanSpawnSeparateThread_Handle, value); } } } public virtual NSPrintingPageOrder PageOrder { [Export("pageOrder")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPrintingPageOrder)Messaging.Int64_objc_msgSend(base.Handle, selPageOrderHandle); } return (NSPrintingPageOrder)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPageOrderHandle); } [Export("setPageOrder:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetPageOrder_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetPageOrder_Handle, (long)value); } } } public virtual NSPrintInfo PrintInfo { [Export("printInfo")] get { NSApplication.EnsureUIThread(); return (NSPrintInfo)(__mt_PrintInfo_var = ((!IsDirectBinding) ? ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintInfoHandle))) : ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintInfoHandle))))); } [Export("setPrintInfo:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrintInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrintInfo_Handle, value.Handle); } __mt_PrintInfo_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPrintOperation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrintOperation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintOperation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintOperation(IntPtr handle) : base(handle) { } [Export("printOperationWithView:printInfo:")] public static NSPrintOperation FromView(NSView view, NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (printInfo == null) { throw new ArgumentNullException("printInfo"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selPrintOperationWithViewPrintInfo_Handle, view.Handle, printInfo.Handle)); } [Export("PDFOperationWithView:insideRect:toData:printInfo:")] public static NSPrintOperation PdfFromView(NSView view, CGRect rect, NSMutableData data, NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (data == null) { throw new ArgumentNullException("data"); } if (printInfo == null) { throw new ArgumentNullException("printInfo"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr_IntPtr(class_ptr, selPDFOperationWithViewInsideRectToDataPrintInfo_Handle, view.Handle, rect, data.Handle, printInfo.Handle)); } [Export("PDFOperationWithView:insideRect:toPath:printInfo:")] public static NSPrintOperation PdfFromView(NSView view, CGRect rect, string path, NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (path == null) { throw new ArgumentNullException("path"); } if (printInfo == null) { throw new ArgumentNullException("printInfo"); } IntPtr arg = NSString.CreateNative(path); NSPrintOperation result = (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr_IntPtr(class_ptr, selPDFOperationWithViewInsideRectToPathPrintInfo_Handle, view.Handle, rect, arg, printInfo.Handle)); NSString.ReleaseNative(arg); return result; } [Export("EPSOperationWithView:insideRect:toData:printInfo:")] public static NSPrintOperation EpsFromView(NSView view, CGRect rect, NSMutableData data, NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (data == null) { throw new ArgumentNullException("data"); } if (printInfo == null) { throw new ArgumentNullException("printInfo"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr_IntPtr(class_ptr, selEPSOperationWithViewInsideRectToDataPrintInfo_Handle, view.Handle, rect, data.Handle, printInfo.Handle)); } [Export("EPSOperationWithView:insideRect:toPath:printInfo:")] public static NSPrintOperation EpsFromView(NSView view, CGRect rect, string path, NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (path == null) { throw new ArgumentNullException("path"); } if (printInfo == null) { throw new ArgumentNullException("printInfo"); } IntPtr arg = NSString.CreateNative(path); NSPrintOperation result = (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr_IntPtr(class_ptr, selEPSOperationWithViewInsideRectToPathPrintInfo_Handle, view.Handle, rect, arg, printInfo.Handle)); NSString.ReleaseNative(arg); return result; } [Export("printOperationWithView:")] public static NSPrintOperation FromView(NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPrintOperationWithView_Handle, view.Handle)); } [Export("PDFOperationWithView:insideRect:toData:")] public static NSPrintOperation PdfFromView(NSView view, CGRect rect, NSMutableData data) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (data == null) { throw new ArgumentNullException("data"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr(class_ptr, selPDFOperationWithViewInsideRectToData_Handle, view.Handle, rect, data.Handle)); } [Export("EPSOperationWithView:insideRect:toData:")] public static NSPrintOperation EpsFromView(NSView view, CGRect rect, NSMutableData data) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (data == null) { throw new ArgumentNullException("data"); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr(class_ptr, selEPSOperationWithViewInsideRectToData_Handle, view.Handle, rect, data.Handle)); } [Export("runOperationModalForWindow:delegate:didRunSelector:contextInfo:")] public virtual void RunOperationModal(NSWindow docWindow, NSObject del, Selector didRunSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (del == null) { throw new ArgumentNullException("del"); } if (didRunSelector == null) { throw new ArgumentNullException("didRunSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selRunOperationModalForWindowDelegateDidRunSelectorContextInfo_Handle, docWindow.Handle, del.Handle, didRunSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunOperationModalForWindowDelegateDidRunSelectorContextInfo_Handle, docWindow.Handle, del.Handle, didRunSelector.Handle, contextInfo); } } [Export("runOperation")] public virtual bool RunOperation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRunOperationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRunOperationHandle); } [Export("createContext")] public virtual NSGraphicsContext CreateContext() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCreateContextHandle)); } return (NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCreateContextHandle)); } [Export("destroyContext")] public virtual void DestroyContext() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDestroyContextHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDestroyContextHandle); } } [Export("deliverResult")] public virtual bool DeliverResult() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDeliverResultHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDeliverResultHandle); } [Export("cleanUpOperation")] public virtual void CleanUpOperation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCleanUpOperationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCleanUpOperationHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_View_var = null; __mt_Context_var = null; __mt_PrintPanel_var = null; __mt_PrintInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrintPanel", true)] public class NSPrintPanel : NSObject { private object __mt_accessory_var; private static readonly IntPtr selPrintPanelHandle = Selector.GetHandle("printPanel"); private static readonly IntPtr selPrintInfoHandle = Selector.GetHandle("printInfo"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selSetOptions_Handle = Selector.GetHandle("setOptions:"); private static readonly IntPtr selDefaultButtonTitleHandle = Selector.GetHandle("defaultButtonTitle"); private static readonly IntPtr selSetDefaultButtonTitle_Handle = Selector.GetHandle("setDefaultButtonTitle:"); private static readonly IntPtr selHelpAnchorHandle = Selector.GetHandle("helpAnchor"); private static readonly IntPtr selSetHelpAnchor_Handle = Selector.GetHandle("setHelpAnchor:"); private static readonly IntPtr selJobStyleHintHandle = Selector.GetHandle("jobStyleHint"); private static readonly IntPtr selSetJobStyleHint_Handle = Selector.GetHandle("setJobStyleHint:"); private static readonly IntPtr selAddAccessoryController_Handle = Selector.GetHandle("addAccessoryController:"); private static readonly IntPtr selRemoveAccessoryController_Handle = Selector.GetHandle("removeAccessoryController:"); private static readonly IntPtr selAccessoryControllersHandle = Selector.GetHandle("accessoryControllers"); private static readonly IntPtr selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:"); private static readonly IntPtr selRunModalWithPrintInfo_Handle = Selector.GetHandle("runModalWithPrintInfo:"); private static readonly IntPtr selRunModalHandle = Selector.GetHandle("runModal"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPrintPanel"); private static object __mt_PrintPanel_var_static; private object __mt_PrintInfo_var; public override IntPtr ClassHandle => class_ptr; public static NSPrintPanel PrintPanel { [Export("printPanel")] get { NSApplication.EnsureUIThread(); return (NSPrintPanel)(__mt_PrintPanel_var_static = (NSPrintPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPrintPanelHandle))); } } public virtual NSPrintInfo PrintInfo { [Export("printInfo")] get { NSApplication.EnsureUIThread(); return (NSPrintInfo)(__mt_PrintInfo_var = ((!IsDirectBinding) ? ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintInfoHandle))) : ((NSPrintInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintInfoHandle))))); } } public virtual NSPrintPanelOptions Options { [Export("options")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPrintPanelOptions)Messaging.UInt64_objc_msgSend(base.Handle, selOptionsHandle); } return (NSPrintPanelOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOptionsHandle); } [Export("setOptions:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetOptions_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetOptions_Handle, (ulong)value); } } } public virtual string DefaultButtonTitle { [Export("defaultButtonTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultButtonTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultButtonTitleHandle)); } [Export("setDefaultButtonTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultButtonTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultButtonTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string HelpAnchor { [Export("helpAnchor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHelpAnchorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHelpAnchorHandle)); } [Export("setHelpAnchor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHelpAnchor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHelpAnchor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string JobStyleHint { [Export("jobStyleHint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selJobStyleHintHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selJobStyleHintHandle)); } [Export("setJobStyleHint:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetJobStyleHint_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetJobStyleHint_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPrintPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrintPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPanel(IntPtr handle) : base(handle) { } [Export("addAccessoryController:")] public virtual void AddAccessoryController(NSViewController accessoryController) { NSApplication.EnsureUIThread(); if (accessoryController == null) { throw new ArgumentNullException("accessoryController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddAccessoryController_Handle, accessoryController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddAccessoryController_Handle, accessoryController.Handle); } __mt_accessory_var = AccessoryControllers(); } [Export("removeAccessoryController:")] public virtual void RemoveAccessoryController(NSViewController accessoryController) { NSApplication.EnsureUIThread(); if (accessoryController == null) { throw new ArgumentNullException("accessoryController"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAccessoryController_Handle, accessoryController.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAccessoryController_Handle, accessoryController.Handle); } __mt_accessory_var = AccessoryControllers(); } [Export("accessoryControllers")] public virtual NSViewController[] AccessoryControllers() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryControllersHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryControllersHandle)); } [Export("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:")] public virtual void BeginSheet(NSPrintInfo printInfo, NSWindow docWindow, NSObject del, Selector didEndSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle, printInfo.Handle, docWindow.Handle, del?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetWithPrintInfoModalForWindowDelegateDidEndSelectorContextInfo_Handle, printInfo.Handle, docWindow.Handle, del?.Handle ?? IntPtr.Zero, (didEndSelector == null) ? IntPtr.Zero : didEndSelector.Handle, contextInfo); } } [Export("runModalWithPrintInfo:")] public virtual long RunModalWithPrintInfo(NSPrintInfo printInfo) { NSApplication.EnsureUIThread(); if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRunModalWithPrintInfo_Handle, printInfo.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunModalWithPrintInfo_Handle, printInfo.Handle); } [Export("runModal")] public virtual long RunModal() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRunModalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRunModalHandle); } protected override void Dispose(bool disposing) { __mt_accessory_var = null; base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PrintInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintPanelAccessorizing.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrintPanelAccessorizing", true)] [Model] public abstract class NSPrintPanelAccessorizing : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPrintPanelAccessorizing() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrintPanelAccessorizing(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPanelAccessorizing(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPanelAccessorizing(IntPtr handle) : base(handle) { } [Export("localizedSummaryItems")] public abstract NSDictionary[] LocalizedSummaryItems(); [Export("keyPathsForValuesAffectingPreview")] public abstract NSSet KeyPathsForValuesAffectingPreview(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintPanelOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSPrintPanelOptions : ulong { ShowsCopies = 1uL, ShowsPageRange = 2uL, ShowsPaperSize = 4uL, ShowsOrientation = 8uL, ShowsScaling = 0x10uL, ShowsPrintSelection = 0x20uL, ShowsPageSetupAccessory = 0x100uL, ShowsPreview = 0x20000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintPreviewGraphicsContext.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrintPreviewGraphicsContext", true)] public class NSPrintPreviewGraphicsContext : NSGraphicsContext { private static readonly IntPtr class_ptr = Class.GetHandle("NSPrintPreviewGraphicsContext"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrintPreviewGraphicsContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPreviewGraphicsContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrintPreviewGraphicsContext(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrinter.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSPrinter", true)] public class NSPrinter : NSObject { private static readonly IntPtr selPrinterNamesHandle = Selector.GetHandle("printerNames"); private static readonly IntPtr selPrinterTypesHandle = Selector.GetHandle("printerTypes"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selLanguageLevelHandle = Selector.GetHandle("languageLevel"); private static readonly IntPtr selDeviceDescriptionHandle = Selector.GetHandle("deviceDescription"); private static readonly IntPtr selPrinterWithName_Handle = Selector.GetHandle("printerWithName:"); private static readonly IntPtr selPrinterWithType_Handle = Selector.GetHandle("printerWithType:"); private static readonly IntPtr selPageSizeForPaper_Handle = Selector.GetHandle("pageSizeForPaper:"); private static readonly IntPtr selStatusForTable_Handle = Selector.GetHandle("statusForTable:"); private static readonly IntPtr selIsKeyInTable_Handle = Selector.GetHandle("isKey:inTable:"); private static readonly IntPtr selBooleanForKeyInTable_Handle = Selector.GetHandle("booleanForKey:inTable:"); private static readonly IntPtr selFloatForKeyInTable_Handle = Selector.GetHandle("floatForKey:inTable:"); private static readonly IntPtr selIntForKeyInTable_Handle = Selector.GetHandle("intForKey:inTable:"); private static readonly IntPtr selRectForKeyInTable_Handle = Selector.GetHandle("rectForKey:inTable:"); private static readonly IntPtr selSizeForKeyInTable_Handle = Selector.GetHandle("sizeForKey:inTable:"); private static readonly IntPtr selStringForKeyInTable_Handle = Selector.GetHandle("stringForKey:inTable:"); private static readonly IntPtr selStringListForKeyInTable_Handle = Selector.GetHandle("stringListForKey:inTable:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPrinter"); private object __mt_DeviceDescription_var; public override IntPtr ClassHandle => class_ptr; public static string[] PrinterNames { [Export("printerNames")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selPrinterNamesHandle)); } } public static string[] PrinterTypes { [Export("printerTypes")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selPrinterTypesHandle)); } } public virtual string Name { [Export("name")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual string Type { [Export("type")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual long LanguageLevel { [Export("languageLevel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selLanguageLevelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLanguageLevelHandle); } } public virtual NSDictionary DeviceDescription { [Export("deviceDescription")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_DeviceDescription_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceDescriptionHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceDescriptionHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPrinter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPrinter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrinter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPrinter(IntPtr handle) : base(handle) { } [Export("printerWithName:")] public static NSPrinter PrinterWithName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSPrinter result = (NSPrinter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPrinterWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("printerWithType:")] public static NSPrinter PrinterWithType(string type) { NSApplication.EnsureUIThread(); if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); NSPrinter result = (NSPrinter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPrinterWithType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("pageSizeForPaper:")] public virtual CGSize PageSizeForPaper(string paperName) { NSApplication.EnsureUIThread(); if (paperName == null) { throw new ArgumentNullException("paperName"); } IntPtr arg = NSString.CreateNative(paperName); CGSize result = ((!IsDirectBinding) ? Messaging.CGSize_objc_msgSendSuper_IntPtr(base.SuperHandle, selPageSizeForPaper_Handle, arg) : Messaging.CGSize_objc_msgSend_IntPtr(base.Handle, selPageSizeForPaper_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("statusForTable:")] public virtual NSPrinterTableStatus StatusForTable(string tableName) { NSApplication.EnsureUIThread(); if (tableName == null) { throw new ArgumentNullException("tableName"); } IntPtr arg = NSString.CreateNative(tableName); NSPrinterTableStatus result = (NSPrinterTableStatus)((!IsDirectBinding) ? Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selStatusForTable_Handle, arg) : Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selStatusForTable_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("isKey:inTable:")] public virtual bool IsKeyInTable(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIsKeyInTable_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selIsKeyInTable_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("booleanForKey:inTable:")] public virtual bool BooleanForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selBooleanForKeyInTable_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selBooleanForKeyInTable_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("floatForKey:inTable:")] public virtual float FloatForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); float result = ((!IsDirectBinding) ? Messaging.float_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFloatForKeyInTable_Handle, arg, arg2) : Messaging.float_objc_msgSend_IntPtr_IntPtr(base.Handle, selFloatForKeyInTable_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("intForKey:inTable:")] public virtual int IntForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); int result = ((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIntForKeyInTable_Handle, arg, arg2) : Messaging.int_objc_msgSend_IntPtr_IntPtr(base.Handle, selIntForKeyInTable_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("rectForKey:inTable:")] public virtual CGRect RectForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_IntPtr(out retval, base.Handle, selRectForKeyInTable_Handle, arg, arg2); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_IntPtr(out retval, base.SuperHandle, selRectForKeyInTable_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return retval; } [Export("sizeForKey:inTable:")] public virtual CGSize SizeForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); CGSize result = ((!IsDirectBinding) ? Messaging.CGSize_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSizeForKeyInTable_Handle, arg, arg2) : Messaging.CGSize_objc_msgSend_IntPtr_IntPtr(base.Handle, selSizeForKeyInTable_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("stringForKey:inTable:")] public virtual string StringForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStringForKeyInTable_Handle, arg, arg2)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selStringForKeyInTable_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("stringListForKey:inTable:")] public virtual string[] StringListForKey(string key, string table) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (table == null) { throw new ArgumentNullException("table"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(table); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStringListForKeyInTable_Handle, arg, arg2)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selStringListForKeyInTable_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DeviceDescription_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrinterTableStatus.cs ================================================ namespace AppKit; public enum NSPrinterTableStatus : ulong { Ok, NotFound, Error } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintingOrientation.cs ================================================ namespace AppKit; public enum NSPrintingOrientation : ulong { Portrait, Landscape } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintingPageOrder.cs ================================================ namespace AppKit; public enum NSPrintingPageOrder : long { Descending = -1L, Special, Ascending, Unknown } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSPrintingPaginationMode.cs ================================================ namespace AppKit; public enum NSPrintingPaginationMode : ulong { Auto, Fit, Clip } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSProgressIndicator.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSProgressIndicator", true)] public class NSProgressIndicator : NSView { private static readonly IntPtr selStyleHandle = Selector.GetHandle("style"); private static readonly IntPtr selSetStyle_Handle = Selector.GetHandle("setStyle:"); private static readonly IntPtr selIsDisplayedWhenStoppedHandle = Selector.GetHandle("isDisplayedWhenStopped"); private static readonly IntPtr selSetDisplayedWhenStopped_Handle = Selector.GetHandle("setDisplayedWhenStopped:"); private static readonly IntPtr selIsIndeterminateHandle = Selector.GetHandle("isIndeterminate"); private static readonly IntPtr selSetIndeterminate_Handle = Selector.GetHandle("setIndeterminate:"); private static readonly IntPtr selIsBezeledHandle = Selector.GetHandle("isBezeled"); private static readonly IntPtr selSetBezeled_Handle = Selector.GetHandle("setBezeled:"); private static readonly IntPtr selControlTintHandle = Selector.GetHandle("controlTint"); private static readonly IntPtr selSetControlTint_Handle = Selector.GetHandle("setControlTint:"); private static readonly IntPtr selControlSizeHandle = Selector.GetHandle("controlSize"); private static readonly IntPtr selSetControlSize_Handle = Selector.GetHandle("setControlSize:"); private static readonly IntPtr selDoubleValueHandle = Selector.GetHandle("doubleValue"); private static readonly IntPtr selSetDoubleValue_Handle = Selector.GetHandle("setDoubleValue:"); private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selUsesThreadedAnimationHandle = Selector.GetHandle("usesThreadedAnimation"); private static readonly IntPtr selSetUsesThreadedAnimation_Handle = Selector.GetHandle("setUsesThreadedAnimation:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selIncrementBy_Handle = Selector.GetHandle("incrementBy:"); private static readonly IntPtr selStartAnimation_Handle = Selector.GetHandle("startAnimation:"); private static readonly IntPtr selStopAnimation_Handle = Selector.GetHandle("stopAnimation:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr class_ptr = Class.GetHandle("NSProgressIndicator"); public override IntPtr ClassHandle => class_ptr; public virtual NSProgressIndicatorStyle Style { [Export("style")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSProgressIndicatorStyle)Messaging.UInt64_objc_msgSend(base.Handle, selStyleHandle); } return (NSProgressIndicatorStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStyleHandle); } [Export("setStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetStyle_Handle, (ulong)value); } } } public virtual bool IsDisplayedWhenStopped { [Export("isDisplayedWhenStopped")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDisplayedWhenStoppedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDisplayedWhenStoppedHandle); } [Export("setDisplayedWhenStopped:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplayedWhenStopped_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplayedWhenStopped_Handle, value); } } } public virtual bool Indeterminate { [Export("isIndeterminate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsIndeterminateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsIndeterminateHandle); } [Export("setIndeterminate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndeterminate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndeterminate_Handle, value); } } } public virtual bool Bezeled { [Export("isBezeled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBezeledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBezeledHandle); } [Export("setBezeled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBezeled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBezeled_Handle, value); } } } public virtual NSControlTint ControlTint { [Export("controlTint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlTint)Messaging.UInt64_objc_msgSend(base.Handle, selControlTintHandle); } return (NSControlTint)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlTintHandle); } [Export("setControlTint:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlTint_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlTint_Handle, (ulong)value); } } } public virtual NSControlSize ControlSize { [Export("controlSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlSize)Messaging.UInt64_objc_msgSend(base.Handle, selControlSizeHandle); } return (NSControlSize)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlSizeHandle); } [Export("setControlSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlSize_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlSize_Handle, (ulong)value); } } } public virtual double DoubleValue { [Export("doubleValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDoubleValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDoubleValueHandle); } [Export("setDoubleValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDoubleValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDoubleValue_Handle, value); } } } public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual bool UsesThreadedAnimation { [Export("usesThreadedAnimation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesThreadedAnimationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesThreadedAnimationHandle); } [Export("setUsesThreadedAnimation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesThreadedAnimation_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesThreadedAnimation_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSProgressIndicator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSProgressIndicator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSProgressIndicator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSProgressIndicator(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSProgressIndicator(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("incrementBy:")] public virtual void IncrementBy(double delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selIncrementBy_Handle, delta); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selIncrementBy_Handle, delta); } } [Export("startAnimation:")] public virtual void StartAnimation(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStartAnimation_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStartAnimation_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("stopAnimation:")] public virtual void StopAnimation(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStopAnimation_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStopAnimation_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSProgressIndicatorStyle.cs ================================================ namespace AppKit; public enum NSProgressIndicatorStyle : ulong { Bar, Spinning } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSProgressIndicatorThickness.cs ================================================ namespace AppKit; public enum NSProgressIndicatorThickness : ulong { Small = 10uL, Regular = 14uL, Aqua = 12uL, Large = 18uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRectEdge.cs ================================================ namespace AppKit; public enum NSRectEdge { MinXEdge, MinYEdge, MaxXEdge, MaxYEdge } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRemoteNotificationType.cs ================================================ using System; namespace AppKit; [Flags] public enum NSRemoteNotificationType : ulong { None = 0uL, Badge = 1uL, Sound = 2uL, Alert = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRemoteOpenPanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRemoteOpenPanel", true)] public class NSRemoteOpenPanel : NSOpenPanel { private static readonly IntPtr class_ptr = Class.GetHandle("NSRemoteOpenPanel"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRemoteOpenPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRemoteOpenPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRemoteOpenPanel(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRemoteSavePanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRemoteSavePanel", true)] public class NSRemoteSavePanel : NSSavePanel { private static readonly IntPtr class_ptr = Class.GetHandle("NSRemoteSavePanel"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRemoteSavePanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRemoteSavePanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRemoteSavePanel(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRequestUserAttentionType.cs ================================================ namespace AppKit; public enum NSRequestUserAttentionType : ulong { CriticalRequest = 0uL, InformationalRequest = 10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSResponder.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSResponder", true)] public class NSResponder : NSObject { private static readonly IntPtr selNextResponderHandle = Selector.GetHandle("nextResponder"); private static readonly IntPtr selSetNextResponder_Handle = Selector.GetHandle("setNextResponder:"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selTryToPerformWith_Handle = Selector.GetHandle("tryToPerform:with:"); private static readonly IntPtr selPerformKeyEquivalent_Handle = Selector.GetHandle("performKeyEquivalent:"); private static readonly IntPtr selValidRequestorForSendTypeReturnType_Handle = Selector.GetHandle("validRequestorForSendType:returnType:"); private static readonly IntPtr selMouseDown_Handle = Selector.GetHandle("mouseDown:"); private static readonly IntPtr selRightMouseDown_Handle = Selector.GetHandle("rightMouseDown:"); private static readonly IntPtr selOtherMouseDown_Handle = Selector.GetHandle("otherMouseDown:"); private static readonly IntPtr selMouseUp_Handle = Selector.GetHandle("mouseUp:"); private static readonly IntPtr selRightMouseUp_Handle = Selector.GetHandle("rightMouseUp:"); private static readonly IntPtr selOtherMouseUp_Handle = Selector.GetHandle("otherMouseUp:"); private static readonly IntPtr selMouseMoved_Handle = Selector.GetHandle("mouseMoved:"); private static readonly IntPtr selMouseDragged_Handle = Selector.GetHandle("mouseDragged:"); private static readonly IntPtr selScrollWheel_Handle = Selector.GetHandle("scrollWheel:"); private static readonly IntPtr selRightMouseDragged_Handle = Selector.GetHandle("rightMouseDragged:"); private static readonly IntPtr selOtherMouseDragged_Handle = Selector.GetHandle("otherMouseDragged:"); private static readonly IntPtr selMouseEntered_Handle = Selector.GetHandle("mouseEntered:"); private static readonly IntPtr selMouseExited_Handle = Selector.GetHandle("mouseExited:"); private static readonly IntPtr selKeyDown_Handle = Selector.GetHandle("keyDown:"); private static readonly IntPtr selKeyUp_Handle = Selector.GetHandle("keyUp:"); private static readonly IntPtr selFlagsChanged_Handle = Selector.GetHandle("flagsChanged:"); private static readonly IntPtr selTabletPoint_Handle = Selector.GetHandle("tabletPoint:"); private static readonly IntPtr selTabletProximity_Handle = Selector.GetHandle("tabletProximity:"); private static readonly IntPtr selCursorUpdate_Handle = Selector.GetHandle("cursorUpdate:"); private static readonly IntPtr selMagnifyWithEvent_Handle = Selector.GetHandle("magnifyWithEvent:"); private static readonly IntPtr selRotateWithEvent_Handle = Selector.GetHandle("rotateWithEvent:"); private static readonly IntPtr selSwipeWithEvent_Handle = Selector.GetHandle("swipeWithEvent:"); private static readonly IntPtr selBeginGestureWithEvent_Handle = Selector.GetHandle("beginGestureWithEvent:"); private static readonly IntPtr selEndGestureWithEvent_Handle = Selector.GetHandle("endGestureWithEvent:"); private static readonly IntPtr selTouchesBeganWithEvent_Handle = Selector.GetHandle("touchesBeganWithEvent:"); private static readonly IntPtr selTouchesMovedWithEvent_Handle = Selector.GetHandle("touchesMovedWithEvent:"); private static readonly IntPtr selTouchesEndedWithEvent_Handle = Selector.GetHandle("touchesEndedWithEvent:"); private static readonly IntPtr selTouchesCancelledWithEvent_Handle = Selector.GetHandle("touchesCancelledWithEvent:"); private static readonly IntPtr selNoResponderFor_Handle = Selector.GetHandle("noResponderFor:"); private static readonly IntPtr selAcceptsFirstResponderHandle = Selector.GetHandle("acceptsFirstResponder"); private static readonly IntPtr selBecomeFirstResponderHandle = Selector.GetHandle("becomeFirstResponder"); private static readonly IntPtr selResignFirstResponderHandle = Selector.GetHandle("resignFirstResponder"); private static readonly IntPtr selInterpretKeyEvents_Handle = Selector.GetHandle("interpretKeyEvents:"); private static readonly IntPtr selFlushBufferedKeyEventsHandle = Selector.GetHandle("flushBufferedKeyEvents"); private static readonly IntPtr selShowContextHelp_Handle = Selector.GetHandle("showContextHelp:"); private static readonly IntPtr selHelpRequested_Handle = Selector.GetHandle("helpRequested:"); private static readonly IntPtr selShouldBeTreatedAsInkEvent_Handle = Selector.GetHandle("shouldBeTreatedAsInkEvent:"); private static readonly IntPtr selEncodeRestorableStateWithCoder_Handle = Selector.GetHandle("encodeRestorableStateWithCoder:"); private static readonly IntPtr selRestoreStateWithCoder_Handle = Selector.GetHandle("restoreStateWithCoder:"); private static readonly IntPtr selInvalidateRestorableStateHandle = Selector.GetHandle("invalidateRestorableState"); private static readonly IntPtr selRestorableStateKeyPathsHandle = Selector.GetHandle("restorableStateKeyPaths"); private static readonly IntPtr selWantsForwardedScrollEventsForAxis_Handle = Selector.GetHandle("wantsForwardedScrollEventsForAxis:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSResponder"); private object __mt_NextResponder_var; private object __mt_Menu_var; public override IntPtr ClassHandle => class_ptr; public virtual NSResponder NextResponder { [Export("nextResponder")] get { NSApplication.EnsureUIThread(); return (NSResponder)(__mt_NextResponder_var = ((!IsDirectBinding) ? ((NSResponder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextResponderHandle))) : ((NSResponder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextResponderHandle))))); } [Export("setNextResponder:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNextResponder_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNextResponder_Handle, value?.Handle ?? IntPtr.Zero); } __mt_NextResponder_var = value; } } public virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSResponder() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSResponder(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSResponder(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSResponder(IntPtr handle) : base(handle) { } [Export("tryToPerform:with:")] public virtual bool TryToPerformwith(Selector anAction, NSObject anObject) { NSApplication.EnsureUIThread(); if (anAction == null) { throw new ArgumentNullException("anAction"); } if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selTryToPerformWith_Handle, anAction.Handle, anObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTryToPerformWith_Handle, anAction.Handle, anObject.Handle); } [Export("performKeyEquivalent:")] public virtual bool PerformKeyEquivalent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformKeyEquivalent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformKeyEquivalent_Handle, theEvent.Handle); } [Export("validRequestorForSendType:returnType:")] public virtual NSObject ValidRequestorForSendTypereturnType(string sendType, string returnType) { NSApplication.EnsureUIThread(); if (sendType == null) { throw new ArgumentNullException("sendType"); } if (returnType == null) { throw new ArgumentNullException("returnType"); } IntPtr arg = NSString.CreateNative(sendType); IntPtr arg2 = NSString.CreateNative(returnType); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("mouseDown:")] public virtual void MouseDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseDown_Handle, theEvent.Handle); } } [Export("rightMouseDown:")] public virtual void RightMouseDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRightMouseDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRightMouseDown_Handle, theEvent.Handle); } } [Export("otherMouseDown:")] public virtual void OtherMouseDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOtherMouseDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOtherMouseDown_Handle, theEvent.Handle); } } [Export("mouseUp:")] public virtual void MouseUp(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseUp_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseUp_Handle, theEvent.Handle); } } [Export("rightMouseUp:")] public virtual void RightMouseUp(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRightMouseUp_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRightMouseUp_Handle, theEvent.Handle); } } [Export("otherMouseUp:")] public virtual void OtherMouseUp(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOtherMouseUp_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOtherMouseUp_Handle, theEvent.Handle); } } [Export("mouseMoved:")] public virtual void MouseMoved(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseMoved_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseMoved_Handle, theEvent.Handle); } } [Export("mouseDragged:")] public virtual void MouseDragged(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseDragged_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseDragged_Handle, theEvent.Handle); } } [Export("scrollWheel:")] public virtual void ScrollWheel(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selScrollWheel_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selScrollWheel_Handle, theEvent.Handle); } } [Export("rightMouseDragged:")] public virtual void RightMouseDragged(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRightMouseDragged_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRightMouseDragged_Handle, theEvent.Handle); } } [Export("otherMouseDragged:")] public virtual void OtherMouseDragged(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOtherMouseDragged_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOtherMouseDragged_Handle, theEvent.Handle); } } [Export("mouseEntered:")] public virtual void MouseEntered(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseEntered_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseEntered_Handle, theEvent.Handle); } } [Export("mouseExited:")] public virtual void MouseExited(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMouseExited_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMouseExited_Handle, theEvent.Handle); } } [Export("keyDown:")] public virtual void KeyDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selKeyDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selKeyDown_Handle, theEvent.Handle); } } [Export("keyUp:")] public virtual void KeyUp(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selKeyUp_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selKeyUp_Handle, theEvent.Handle); } } [Export("flagsChanged:")] public virtual void FlagsChanged(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFlagsChanged_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFlagsChanged_Handle, theEvent.Handle); } } [Export("tabletPoint:")] public virtual void TabletPoint(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTabletPoint_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTabletPoint_Handle, theEvent.Handle); } } [Export("tabletProximity:")] public virtual void TabletProximity(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTabletProximity_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTabletProximity_Handle, theEvent.Handle); } } [Export("cursorUpdate:")] public virtual void CursorUpdate(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCursorUpdate_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCursorUpdate_Handle, theEvent.Handle); } } [Export("magnifyWithEvent:")] public virtual void MagnifyWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMagnifyWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMagnifyWithEvent_Handle, theEvent.Handle); } } [Export("rotateWithEvent:")] public virtual void RotateWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRotateWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRotateWithEvent_Handle, theEvent.Handle); } } [Export("swipeWithEvent:")] public virtual void SwipeWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSwipeWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSwipeWithEvent_Handle, theEvent.Handle); } } [Export("beginGestureWithEvent:")] public virtual void BeginGestureWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selBeginGestureWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selBeginGestureWithEvent_Handle, theEvent.Handle); } } [Export("endGestureWithEvent:")] public virtual void EndGestureWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEndGestureWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEndGestureWithEvent_Handle, theEvent.Handle); } } [Export("touchesBeganWithEvent:")] public virtual void TouchesBeganWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTouchesBeganWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTouchesBeganWithEvent_Handle, theEvent.Handle); } } [Export("touchesMovedWithEvent:")] public virtual void TouchesMovedWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTouchesMovedWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTouchesMovedWithEvent_Handle, theEvent.Handle); } } [Export("touchesEndedWithEvent:")] public virtual void TouchesEndedWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTouchesEndedWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTouchesEndedWithEvent_Handle, theEvent.Handle); } } [Export("touchesCancelledWithEvent:")] public virtual void TouchesCancelledWithEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTouchesCancelledWithEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTouchesCancelledWithEvent_Handle, theEvent.Handle); } } [Export("noResponderFor:")] public virtual void NoResponderFor(Selector eventSelector) { NSApplication.EnsureUIThread(); if (eventSelector == null) { throw new ArgumentNullException("eventSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNoResponderFor_Handle, eventSelector.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNoResponderFor_Handle, eventSelector.Handle); } } [Export("acceptsFirstResponder")] public virtual bool AcceptsFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsFirstResponderHandle); } [Export("becomeFirstResponder")] public virtual bool BecomeFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBecomeFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBecomeFirstResponderHandle); } [Export("resignFirstResponder")] public virtual bool ResignFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selResignFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selResignFirstResponderHandle); } [Export("interpretKeyEvents:")] public virtual void InterpretKeyEvents(NSEvent[] eventArray) { NSApplication.EnsureUIThread(); if (eventArray == null) { throw new ArgumentNullException("eventArray"); } NSArray nSArray = NSArray.FromNSObjects(eventArray); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInterpretKeyEvents_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInterpretKeyEvents_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("flushBufferedKeyEvents")] public virtual void FlushBufferedKeyEvents() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlushBufferedKeyEventsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlushBufferedKeyEventsHandle); } } [Export("showContextHelp:")] public virtual void ShowContextHelp(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selShowContextHelp_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selShowContextHelp_Handle, sender.Handle); } } [Export("helpRequested:")] public virtual void HelpRequested(NSEvent theEventPtr) { NSApplication.EnsureUIThread(); if (theEventPtr == null) { throw new ArgumentNullException("theEventPtr"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selHelpRequested_Handle, theEventPtr.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selHelpRequested_Handle, theEventPtr.Handle); } } [Export("shouldBeTreatedAsInkEvent:")] public virtual bool ShouldBeTreatedAsInkEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShouldBeTreatedAsInkEvent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShouldBeTreatedAsInkEvent_Handle, theEvent.Handle); } [Export("encodeRestorableStateWithCoder:")] public virtual void EncodeRestorableState(NSCoder coder) { NSApplication.EnsureUIThread(); if (coder == null) { throw new ArgumentNullException("coder"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEncodeRestorableStateWithCoder_Handle, coder.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEncodeRestorableStateWithCoder_Handle, coder.Handle); } } [Export("restoreStateWithCoder:")] public virtual void RestoreState(NSCoder coder) { NSApplication.EnsureUIThread(); if (coder == null) { throw new ArgumentNullException("coder"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRestoreStateWithCoder_Handle, coder.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRestoreStateWithCoder_Handle, coder.Handle); } } [Export("invalidateRestorableState")] public virtual void InvalidateRestorableState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateRestorableStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateRestorableStateHandle); } } [Export("restorableStateKeyPaths")] public static string[] RestorableStateKeyPaths() { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selRestorableStateKeyPathsHandle)); } [Export("wantsForwardedScrollEventsForAxis:")] public virtual bool WantsForwardedScrollEventsForAxis(NSEventGestureAxis axis) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selWantsForwardedScrollEventsForAxis_Handle, (long)axis); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selWantsForwardedScrollEventsForAxis_Handle, (long)axis); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_NextResponder_var = null; __mt_Menu_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRuleEditor.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRuleEditor", true)] public class NSRuleEditor : NSControl { [Register] private sealed class _NSRuleEditorDelegate : NSRuleEditorDelegate { internal NSRuleEditorNumberOfChildren numberOfChildren; internal NSRulerEditorChildCriterion childForCriterion; internal NSRulerEditorDisplayValue displayValue; internal NSRulerEditorPredicateParts predicateParts; internal EventHandler rowsDidChange; internal EventHandler editingEnded; internal EventHandler changed; internal EventHandler editingBegan; [Preserve(Conditional = true)] public override long NumberOfChildren(NSRuleEditor editor, NSObject criterion, NSRuleEditorRowType rowType) { return numberOfChildren?.Invoke(editor, criterion, rowType) ?? 0; } [Preserve(Conditional = true)] public override NSObject ChildForCriterion(NSRuleEditor editor, long index, NSObject criterion, NSRuleEditorRowType rowType) { return childForCriterion?.Invoke(editor, index, criterion, rowType); } [Preserve(Conditional = true)] public override NSObject DisplayValue(NSRuleEditor editor, NSObject criterion, long row) { return displayValue?.Invoke(editor, criterion, row); } [Preserve(Conditional = true)] public override NSDictionary PredicateParts(NSRuleEditor editor, NSObject criterion, NSObject value, long row) { return predicateParts?.Invoke(editor, criterion, value, row); } [Preserve(Conditional = true)] public override void RowsDidChange(NSNotification notification) { rowsDidChange?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void EditingEnded(NSNotification notification) { editingEnded?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void Changed(NSNotification notification) { changed?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void EditingBegan(NSNotification notification) { editingBegan?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selPredicateHandle = Selector.GetHandle("predicate"); private static readonly IntPtr selNumberOfRowsHandle = Selector.GetHandle("numberOfRows"); private static readonly IntPtr selSelectedRowIndexesHandle = Selector.GetHandle("selectedRowIndexes"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selFormattingStringsFilenameHandle = Selector.GetHandle("formattingStringsFilename"); private static readonly IntPtr selSetFormattingStringsFilename_Handle = Selector.GetHandle("setFormattingStringsFilename:"); private static readonly IntPtr selFormattingDictionaryHandle = Selector.GetHandle("formattingDictionary"); private static readonly IntPtr selSetFormattingDictionary_Handle = Selector.GetHandle("setFormattingDictionary:"); private static readonly IntPtr selNestingModeHandle = Selector.GetHandle("nestingMode"); private static readonly IntPtr selSetNestingMode_Handle = Selector.GetHandle("setNestingMode:"); private static readonly IntPtr selRowHeightHandle = Selector.GetHandle("rowHeight"); private static readonly IntPtr selSetRowHeight_Handle = Selector.GetHandle("setRowHeight:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selCanRemoveAllRowsHandle = Selector.GetHandle("canRemoveAllRows"); private static readonly IntPtr selSetCanRemoveAllRows_Handle = Selector.GetHandle("setCanRemoveAllRows:"); private static readonly IntPtr selRowClassHandle = Selector.GetHandle("rowClass"); private static readonly IntPtr selSetRowClass_Handle = Selector.GetHandle("setRowClass:"); private static readonly IntPtr selRowTypeKeyPathHandle = Selector.GetHandle("rowTypeKeyPath"); private static readonly IntPtr selSetRowTypeKeyPath_Handle = Selector.GetHandle("setRowTypeKeyPath:"); private static readonly IntPtr selSubrowsKeyPathHandle = Selector.GetHandle("subrowsKeyPath"); private static readonly IntPtr selSetSubrowsKeyPath_Handle = Selector.GetHandle("setSubrowsKeyPath:"); private static readonly IntPtr selCriteriaKeyPathHandle = Selector.GetHandle("criteriaKeyPath"); private static readonly IntPtr selSetCriteriaKeyPath_Handle = Selector.GetHandle("setCriteriaKeyPath:"); private static readonly IntPtr selDisplayValuesKeyPathHandle = Selector.GetHandle("displayValuesKeyPath"); private static readonly IntPtr selSetDisplayValuesKeyPath_Handle = Selector.GetHandle("setDisplayValuesKeyPath:"); private static readonly IntPtr selReloadCriteriaHandle = Selector.GetHandle("reloadCriteria"); private static readonly IntPtr selReloadPredicateHandle = Selector.GetHandle("reloadPredicate"); private static readonly IntPtr selPredicateForRow_Handle = Selector.GetHandle("predicateForRow:"); private static readonly IntPtr selSubrowIndexesForRow_Handle = Selector.GetHandle("subrowIndexesForRow:"); private static readonly IntPtr selCriteriaForRow_Handle = Selector.GetHandle("criteriaForRow:"); private static readonly IntPtr selDisplayValuesForRow_Handle = Selector.GetHandle("displayValuesForRow:"); private static readonly IntPtr selRowForDisplayValue_Handle = Selector.GetHandle("rowForDisplayValue:"); private static readonly IntPtr selRowTypeForRow_Handle = Selector.GetHandle("rowTypeForRow:"); private static readonly IntPtr selParentRowForRow_Handle = Selector.GetHandle("parentRowForRow:"); private static readonly IntPtr selAddRow_Handle = Selector.GetHandle("addRow:"); private static readonly IntPtr selInsertRowAtIndexWithTypeAsSubrowOfRowAnimate_Handle = Selector.GetHandle("insertRowAtIndex:withType:asSubrowOfRow:animate:"); private static readonly IntPtr selSetCriteriaAndDisplayValuesForRowAtIndex_Handle = Selector.GetHandle("setCriteria:andDisplayValues:forRowAtIndex:"); private static readonly IntPtr selRemoveRowAtIndex_Handle = Selector.GetHandle("removeRowAtIndex:"); private static readonly IntPtr selRemoveRowsAtIndexesIncludeSubrows_Handle = Selector.GetHandle("removeRowsAtIndexes:includeSubrows:"); private static readonly IntPtr selSelectRowIndexesByExtendingSelection_Handle = Selector.GetHandle("selectRowIndexes:byExtendingSelection:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRuleEditor"); private object __mt_Predicate_var; private object __mt_SelectedRows_var; private object __mt_WeakDelegate_var; private object __mt_FormattingDictionary_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPredicate Predicate { [Export("predicate")] get { NSApplication.EnsureUIThread(); return (NSPredicate)(__mt_Predicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPredicateHandle))))); } } public virtual long NumberOfRows { [Export("numberOfRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfRowsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfRowsHandle); } } public virtual NSIndexSet SelectedRows { [Export("selectedRowIndexes")] get { NSApplication.EnsureUIThread(); return (NSIndexSet)(__mt_SelectedRows_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedRowIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedRowIndexesHandle))))); } } public virtual NSRuleEditorDelegate WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSRuleEditorDelegate)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? ((NSRuleEditorDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSRuleEditorDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSRuleEditorDelegate Delegate { get { return WeakDelegate; } set { WeakDelegate = value; } } public virtual string FormattingStringsFilename { [Export("formattingStringsFilename")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFormattingStringsFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormattingStringsFilenameHandle)); } [Export("setFormattingStringsFilename:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFormattingStringsFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFormattingStringsFilename_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary FormattingDictionary { [Export("formattingDictionary")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_FormattingDictionary_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormattingDictionaryHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormattingDictionaryHandle))))); } [Export("setFormattingDictionary:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFormattingDictionary_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFormattingDictionary_Handle, value.Handle); } __mt_FormattingDictionary_var = value; } } public virtual NSRuleEditorNestingMode NestingMode { [Export("nestingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRuleEditorNestingMode)Messaging.UInt64_objc_msgSend(base.Handle, selNestingModeHandle); } return (NSRuleEditorNestingMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNestingModeHandle); } [Export("setNestingMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetNestingMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetNestingMode_Handle, (ulong)value); } } } public virtual double RowHeight { [Export("rowHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRowHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRowHeightHandle); } [Export("setRowHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRowHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRowHeight_Handle, value); } } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool CanRemoveAllRows { [Export("canRemoveAllRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanRemoveAllRowsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanRemoveAllRowsHandle); } [Export("setCanRemoveAllRows:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanRemoveAllRows_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanRemoveAllRows_Handle, value); } } } public virtual Class RowClass { [Export("rowClass")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selRowClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRowClassHandle)); } [Export("setRowClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRowClass_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRowClass_Handle, value.Handle); } } } public virtual string RowTypeKeyPath { [Export("rowTypeKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRowTypeKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRowTypeKeyPathHandle)); } [Export("setRowTypeKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRowTypeKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRowTypeKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string SubrowsKeyPath { [Export("subrowsKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubrowsKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubrowsKeyPathHandle)); } [Export("setSubrowsKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubrowsKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubrowsKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CriteriaKeyPath { [Export("criteriaKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCriteriaKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCriteriaKeyPathHandle)); } [Export("setCriteriaKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCriteriaKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCriteriaKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string DisplayValuesKeyPath { [Export("displayValuesKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDisplayValuesKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDisplayValuesKeyPathHandle)); } [Export("setDisplayValuesKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDisplayValuesKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDisplayValuesKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public NSRuleEditorNumberOfChildren NumberOfChildren { get { return EnsureNSRuleEditorDelegate().numberOfChildren; } set { EnsureNSRuleEditorDelegate().numberOfChildren = value; } } public NSRulerEditorChildCriterion ChildForCriterion { get { return EnsureNSRuleEditorDelegate().childForCriterion; } set { EnsureNSRuleEditorDelegate().childForCriterion = value; } } public NSRulerEditorDisplayValue DisplayValue { get { return EnsureNSRuleEditorDelegate().displayValue; } set { EnsureNSRuleEditorDelegate().displayValue = value; } } public NSRulerEditorPredicateParts PredicateParts { get { return EnsureNSRuleEditorDelegate().predicateParts; } set { EnsureNSRuleEditorDelegate().predicateParts = value; } } public event EventHandler RowsDidChange { add { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.rowsDidChange = (EventHandler)System.Delegate.Combine(nSRuleEditorDelegate.rowsDidChange, value); } remove { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.rowsDidChange = (EventHandler)System.Delegate.Remove(nSRuleEditorDelegate.rowsDidChange, value); } } public event EventHandler EditingEnded { add { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.editingEnded = (EventHandler)System.Delegate.Combine(nSRuleEditorDelegate.editingEnded, value); } remove { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.editingEnded = (EventHandler)System.Delegate.Remove(nSRuleEditorDelegate.editingEnded, value); } } public event EventHandler Changed { add { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.changed = (EventHandler)System.Delegate.Combine(nSRuleEditorDelegate.changed, value); } remove { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.changed = (EventHandler)System.Delegate.Remove(nSRuleEditorDelegate.changed, value); } } public event EventHandler EditingBegan { add { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.editingBegan = (EventHandler)System.Delegate.Combine(nSRuleEditorDelegate.editingBegan, value); } remove { _NSRuleEditorDelegate nSRuleEditorDelegate = EnsureNSRuleEditorDelegate(); nSRuleEditorDelegate.editingBegan = (EventHandler)System.Delegate.Remove(nSRuleEditorDelegate.editingBegan, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRuleEditor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRuleEditor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRuleEditor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRuleEditor(IntPtr handle) : base(handle) { } [Export("reloadCriteria")] public virtual void ReloadCriteria() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadCriteriaHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadCriteriaHandle); } } [Export("reloadPredicate")] public virtual void ReloadPredicate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadPredicateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadPredicateHandle); } } [Export("predicateForRow:")] public virtual NSPredicate GetPredicate(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selPredicateForRow_Handle, row)); } return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selPredicateForRow_Handle, row)); } [Export("subrowIndexesForRow:")] public virtual NSIndexSet SubrowIndexes(long rowIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selSubrowIndexesForRow_Handle, rowIndex)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selSubrowIndexesForRow_Handle, rowIndex)); } [Export("criteriaForRow:")] public virtual NSArray Criteria(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selCriteriaForRow_Handle, row)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selCriteriaForRow_Handle, row)); } [Export("displayValuesForRow:")] public virtual NSObject[] DisplayValues(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selDisplayValuesForRow_Handle, row)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selDisplayValuesForRow_Handle, row)); } [Export("rowForDisplayValue:")] public virtual long Row(NSObject displayValue) { NSApplication.EnsureUIThread(); if (displayValue == null) { throw new ArgumentNullException("displayValue"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRowForDisplayValue_Handle, displayValue.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRowForDisplayValue_Handle, displayValue.Handle); } [Export("rowTypeForRow:")] public virtual NSRuleEditorRowType RowType(long rowIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRuleEditorRowType)Messaging.UInt64_objc_msgSend_Int64(base.Handle, selRowTypeForRow_Handle, rowIndex); } return (NSRuleEditorRowType)Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selRowTypeForRow_Handle, rowIndex); } [Export("parentRowForRow:")] public virtual long ParentRow(long rowIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selParentRowForRow_Handle, rowIndex); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selParentRowForRow_Handle, rowIndex); } [Export("addRow:")] public virtual void AddRow(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRow_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRow_Handle, sender.Handle); } } [Export("insertRowAtIndex:withType:asSubrowOfRow:animate:")] public virtual void InsertRowAtIndex(long rowIndex, NSRuleEditorRowType rowType, long parentRow, bool shouldAnimate) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_UInt64_Int64_bool(base.Handle, selInsertRowAtIndexWithTypeAsSubrowOfRowAnimate_Handle, rowIndex, (ulong)rowType, parentRow, shouldAnimate); } else { Messaging.void_objc_msgSendSuper_Int64_UInt64_Int64_bool(base.SuperHandle, selInsertRowAtIndexWithTypeAsSubrowOfRowAnimate_Handle, rowIndex, (ulong)rowType, parentRow, shouldAnimate); } } [Export("setCriteria:andDisplayValues:forRowAtIndex:")] public virtual void SetCriteria(NSArray criteria, NSArray values, long rowIndex) { NSApplication.EnsureUIThread(); if (criteria == null) { throw new ArgumentNullException("criteria"); } if (values == null) { throw new ArgumentNullException("values"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_Int64(base.Handle, selSetCriteriaAndDisplayValuesForRowAtIndex_Handle, criteria.Handle, values.Handle, rowIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_Int64(base.SuperHandle, selSetCriteriaAndDisplayValuesForRowAtIndex_Handle, criteria.Handle, values.Handle, rowIndex); } } [Export("removeRowAtIndex:")] public virtual void RemoveRowAtIndex(long rowIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveRowAtIndex_Handle, rowIndex); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveRowAtIndex_Handle, rowIndex); } } [Export("removeRowsAtIndexes:includeSubrows:")] public virtual void RemoveRowsAtIndexes(NSIndexSet rowIndexes, bool includeSubrows) { NSApplication.EnsureUIThread(); if (rowIndexes == null) { throw new ArgumentNullException("rowIndexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selRemoveRowsAtIndexesIncludeSubrows_Handle, rowIndexes.Handle, includeSubrows); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selRemoveRowsAtIndexesIncludeSubrows_Handle, rowIndexes.Handle, includeSubrows); } } [Export("selectRowIndexes:byExtendingSelection:")] public virtual void SelectRows(NSIndexSet indexes, bool extend) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSelectRowIndexesByExtendingSelection_Handle, indexes.Handle, extend); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSelectRowIndexesByExtendingSelection_Handle, indexes.Handle, extend); } } private _NSRuleEditorDelegate EnsureNSRuleEditorDelegate() { NSRuleEditorDelegate nSRuleEditorDelegate = Delegate; if (nSRuleEditorDelegate == null || !(nSRuleEditorDelegate is _NSRuleEditorDelegate)) { nSRuleEditorDelegate = (Delegate = new _NSRuleEditorDelegate()); } return (_NSRuleEditorDelegate)nSRuleEditorDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Predicate_var = null; __mt_SelectedRows_var = null; __mt_WeakDelegate_var = null; __mt_FormattingDictionary_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRuleEditorDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRuleEditorDelegate", true)] [Model] public abstract class NSRuleEditorDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRuleEditorDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRuleEditorDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRuleEditorDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRuleEditorDelegate(IntPtr handle) : base(handle) { } [Export("ruleEditor:numberOfChildrenForCriterion:withRowType:")] public abstract long NumberOfChildren(NSRuleEditor editor, NSObject criterion, NSRuleEditorRowType rowType); [Export("ruleEditor:child:forCriterion:withRowType:")] public abstract NSObject ChildForCriterion(NSRuleEditor editor, long index, NSObject criterion, NSRuleEditorRowType rowType); [Export("ruleEditor:displayValueForCriterion:inRow:")] public abstract NSObject DisplayValue(NSRuleEditor editor, NSObject criterion, long row); [Export("ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:")] public abstract NSDictionary PredicateParts(NSRuleEditor editor, NSObject criterion, NSObject value, long row); [Export("ruleEditorRowsDidChange:")] public abstract void RowsDidChange(NSNotification notification); [Export("controlTextDidEndEditing:")] public virtual void EditingEnded(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("controlTextDidChange:")] public virtual void Changed(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("controlTextDidBeginEditing:")] public virtual void EditingBegan(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRuleEditorNestingMode.cs ================================================ namespace AppKit; public enum NSRuleEditorNestingMode : ulong { Single, List, Compound, Simple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRuleEditorNumberOfChildren.cs ================================================ using Foundation; namespace AppKit; public delegate long NSRuleEditorNumberOfChildren(NSRuleEditor editor, NSObject criterion, NSRuleEditorRowType rowType); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRuleEditorRowType.cs ================================================ namespace AppKit; public enum NSRuleEditorRowType : ulong { Simple, Compound } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerEditorChildCriterion.cs ================================================ using Foundation; namespace AppKit; public delegate NSObject NSRulerEditorChildCriterion(NSRuleEditor editor, long index, NSObject criterion, NSRuleEditorRowType rowType); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerEditorDisplayValue.cs ================================================ using Foundation; namespace AppKit; public delegate NSObject NSRulerEditorDisplayValue(NSRuleEditor editor, NSObject criterion, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerEditorPredicateParts.cs ================================================ using Foundation; namespace AppKit; public delegate NSDictionary NSRulerEditorPredicateParts(NSRuleEditor editor, NSObject criterion, NSObject value, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerMarker.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRulerMarker", true)] public class NSRulerMarker : NSObject { private static readonly IntPtr selRulerHandle = Selector.GetHandle("ruler"); private static readonly IntPtr selIsDraggingHandle = Selector.GetHandle("isDragging"); private static readonly IntPtr selImageRectInRulerHandle = Selector.GetHandle("imageRectInRuler"); private static readonly IntPtr selThicknessRequiredInRulerHandle = Selector.GetHandle("thicknessRequiredInRuler"); private static readonly IntPtr selMarkerLocationHandle = Selector.GetHandle("markerLocation"); private static readonly IntPtr selSetMarkerLocation_Handle = Selector.GetHandle("setMarkerLocation:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selImageOriginHandle = Selector.GetHandle("imageOrigin"); private static readonly IntPtr selSetImageOrigin_Handle = Selector.GetHandle("setImageOrigin:"); private static readonly IntPtr selIsMovableHandle = Selector.GetHandle("isMovable"); private static readonly IntPtr selSetMovable_Handle = Selector.GetHandle("setMovable:"); private static readonly IntPtr selIsRemovableHandle = Selector.GetHandle("isRemovable"); private static readonly IntPtr selSetRemovable_Handle = Selector.GetHandle("setRemovable:"); private static readonly IntPtr selRepresentedObjectHandle = Selector.GetHandle("representedObject"); private static readonly IntPtr selSetRepresentedObject_Handle = Selector.GetHandle("setRepresentedObject:"); private static readonly IntPtr selInitWithRulerViewMarkerLocationImageImageOrigin_Handle = Selector.GetHandle("initWithRulerView:markerLocation:image:imageOrigin:"); private static readonly IntPtr selDrawRect_Handle = Selector.GetHandle("drawRect:"); private static readonly IntPtr selTrackMouseAdding_Handle = Selector.GetHandle("trackMouse:adding:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRulerMarker"); private object __mt_Ruler_var; private object __mt_Image_var; private object __mt_RepresentedObject_var; public override IntPtr ClassHandle => class_ptr; public virtual NSRulerView Ruler { [Export("ruler")] get { NSApplication.EnsureUIThread(); return (NSRulerView)(__mt_Ruler_var = ((!IsDirectBinding) ? ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRulerHandle))) : ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRulerHandle))))); } } public virtual bool IsDragging { [Export("isDragging")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDraggingHandle); } } public virtual CGRect ImageRectInRuler { [Export("imageRectInRuler")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selImageRectInRulerHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selImageRectInRulerHandle); } return retval; } } public virtual double ThicknessRequiredInRuler { [Export("thicknessRequiredInRuler")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selThicknessRequiredInRulerHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selThicknessRequiredInRulerHandle); } } public virtual double MarkerLocation { [Export("markerLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMarkerLocationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMarkerLocationHandle); } [Export("setMarkerLocation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMarkerLocation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMarkerLocation_Handle, value); } } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual CGPoint ImageOrigin { [Export("imageOrigin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selImageOriginHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selImageOriginHandle); } [Export("setImageOrigin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetImageOrigin_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetImageOrigin_Handle, value); } } } public virtual bool Movable { [Export("isMovable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMovableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMovableHandle); } [Export("setMovable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMovable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMovable_Handle, value); } } } public virtual bool Removable { [Export("isRemovable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRemovableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRemovableHandle); } [Export("setRemovable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRemovable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRemovable_Handle, value); } } } public virtual NSObject RepresentedObject { [Export("representedObject")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_RepresentedObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedObjectHandle)))); } [Export("setRepresentedObject:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedObject_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedObject_Handle, value.Handle); } __mt_RepresentedObject_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRulerMarker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRulerMarker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRulerMarker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRulerMarker(IntPtr handle) : base(handle) { } [Export("initWithRulerView:markerLocation:image:imageOrigin:")] public NSRulerMarker(NSRulerView ruler, double location, NSImage image, CGPoint imageOrigin) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Double_IntPtr_CGPoint(base.Handle, selInitWithRulerViewMarkerLocationImageImageOrigin_Handle, ruler.Handle, location, image.Handle, imageOrigin); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Double_IntPtr_CGPoint(base.SuperHandle, selInitWithRulerViewMarkerLocationImageImageOrigin_Handle, ruler.Handle, location, image.Handle, imageOrigin); } } [Export("drawRect:")] public virtual void DrawRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawRect_Handle, rect); } } [Export("trackMouse:adding:")] public virtual bool TrackMouse(NSEvent mouseDownEvent, bool isAdding) { NSApplication.EnsureUIThread(); if (mouseDownEvent == null) { throw new ArgumentNullException("mouseDownEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_bool(base.Handle, selTrackMouseAdding_Handle, mouseDownEvent.Handle, isAdding); } return Messaging.bool_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selTrackMouseAdding_Handle, mouseDownEvent.Handle, isAdding); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Ruler_var = null; __mt_Image_var = null; __mt_RepresentedObject_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerOrientation.cs ================================================ namespace AppKit; public enum NSRulerOrientation { Horizontal, Vertical } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRulerView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRulerView", true)] public class NSRulerView : NSView { private static readonly IntPtr selBaselineLocationHandle = Selector.GetHandle("baselineLocation"); private static readonly IntPtr selRequiredThicknessHandle = Selector.GetHandle("requiredThickness"); private static readonly IntPtr selIsFlippedHandle = Selector.GetHandle("isFlipped"); private static readonly IntPtr selScrollViewHandle = Selector.GetHandle("scrollView"); private static readonly IntPtr selSetScrollView_Handle = Selector.GetHandle("setScrollView:"); private static readonly IntPtr selOrientationHandle = Selector.GetHandle("orientation"); private static readonly IntPtr selSetOrientation_Handle = Selector.GetHandle("setOrientation:"); private static readonly IntPtr selRuleThicknessHandle = Selector.GetHandle("ruleThickness"); private static readonly IntPtr selSetRuleThickness_Handle = Selector.GetHandle("setRuleThickness:"); private static readonly IntPtr selReservedThicknessForMarkersHandle = Selector.GetHandle("reservedThicknessForMarkers"); private static readonly IntPtr selSetReservedThicknessForMarkers_Handle = Selector.GetHandle("setReservedThicknessForMarkers:"); private static readonly IntPtr selReservedThicknessForAccessoryViewHandle = Selector.GetHandle("reservedThicknessForAccessoryView"); private static readonly IntPtr selSetReservedThicknessForAccessoryView_Handle = Selector.GetHandle("setReservedThicknessForAccessoryView:"); private static readonly IntPtr selMeasurementUnitsHandle = Selector.GetHandle("measurementUnits"); private static readonly IntPtr selSetMeasurementUnits_Handle = Selector.GetHandle("setMeasurementUnits:"); private static readonly IntPtr selOriginOffsetHandle = Selector.GetHandle("originOffset"); private static readonly IntPtr selSetOriginOffset_Handle = Selector.GetHandle("setOriginOffset:"); private static readonly IntPtr selClientViewHandle = Selector.GetHandle("clientView"); private static readonly IntPtr selSetClientView_Handle = Selector.GetHandle("setClientView:"); private static readonly IntPtr selMarkersHandle = Selector.GetHandle("markers"); private static readonly IntPtr selSetMarkers_Handle = Selector.GetHandle("setMarkers:"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selRegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepUpCycleStepDownCycle_Handle = Selector.GetHandle("registerUnitWithName:abbreviation:unitToPointsConversionFactor:stepUpCycle:stepDownCycle:"); private static readonly IntPtr selInitWithScrollViewOrientation_Handle = Selector.GetHandle("initWithScrollView:orientation:"); private static readonly IntPtr selAddMarker_Handle = Selector.GetHandle("addMarker:"); private static readonly IntPtr selRemoveMarker_Handle = Selector.GetHandle("removeMarker:"); private static readonly IntPtr selTrackMarkerWithMouseEvent_Handle = Selector.GetHandle("trackMarker:withMouseEvent:"); private static readonly IntPtr selMoveRulerlineFromLocationToLocation_Handle = Selector.GetHandle("moveRulerlineFromLocation:toLocation:"); private static readonly IntPtr selInvalidateHashMarksHandle = Selector.GetHandle("invalidateHashMarks"); private static readonly IntPtr selDrawHashMarksAndLabelsInRect_Handle = Selector.GetHandle("drawHashMarksAndLabelsInRect:"); private static readonly IntPtr selDrawMarkersInRect_Handle = Selector.GetHandle("drawMarkersInRect:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRulerView"); private object __mt_ScrollView_var; private object __mt_ClientView_var; private object __mt_Markers_var; private object __mt_AccessoryView_var; public override IntPtr ClassHandle => class_ptr; public virtual double BaselineLocation { [Export("baselineLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBaselineLocationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBaselineLocationHandle); } } public virtual double RequiredThickness { [Export("requiredThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRequiredThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRequiredThicknessHandle); } } public new virtual bool IsFlipped { [Export("isFlipped")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFlippedHandle); } } public virtual NSScrollView ScrollView { [Export("scrollView")] get { NSApplication.EnsureUIThread(); return (NSScrollView)(__mt_ScrollView_var = ((!IsDirectBinding) ? ((NSScrollView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScrollViewHandle))) : ((NSScrollView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selScrollViewHandle))))); } [Export("setScrollView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetScrollView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetScrollView_Handle, value.Handle); } __mt_ScrollView_var = value; } } public virtual NSRulerOrientation Orientation { [Export("orientation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSRulerOrientation)Messaging.int_objc_msgSend(base.Handle, selOrientationHandle); } return (NSRulerOrientation)Messaging.int_objc_msgSendSuper(base.SuperHandle, selOrientationHandle); } [Export("setOrientation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetOrientation_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetOrientation_Handle, (int)value); } } } public virtual double RuleThickness { [Export("ruleThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRuleThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRuleThicknessHandle); } [Export("setRuleThickness:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRuleThickness_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRuleThickness_Handle, value); } } } public virtual double ReservedThicknessForMarkers { [Export("reservedThicknessForMarkers")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selReservedThicknessForMarkersHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selReservedThicknessForMarkersHandle); } [Export("setReservedThicknessForMarkers:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetReservedThicknessForMarkers_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetReservedThicknessForMarkers_Handle, value); } } } public virtual double ReservedThicknessForAccessoryView { [Export("reservedThicknessForAccessoryView")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selReservedThicknessForAccessoryViewHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selReservedThicknessForAccessoryViewHandle); } [Export("setReservedThicknessForAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetReservedThicknessForAccessoryView_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetReservedThicknessForAccessoryView_Handle, value); } } } public virtual string MeasurementUnits { [Export("measurementUnits")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMeasurementUnitsHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMeasurementUnitsHandle)); } [Export("setMeasurementUnits:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMeasurementUnits_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMeasurementUnits_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual double OriginOffset { [Export("originOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selOriginOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selOriginOffsetHandle); } [Export("setOriginOffset:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetOriginOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetOriginOffset_Handle, value); } } } public virtual NSView ClientView { [Export("clientView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_ClientView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClientViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selClientViewHandle))))); } [Export("setClientView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetClientView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetClientView_Handle, value.Handle); } __mt_ClientView_var = value; } } public virtual NSRulerMarker[] Markers { [Export("markers")] get { NSApplication.EnsureUIThread(); return (NSRulerMarker[])(__mt_Markers_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMarkersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMarkersHandle)))); } [Export("setMarkers:")] set { NSApplication.EnsureUIThread(); NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMarkers_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMarkers_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_Markers_var = value; } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRulerView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRulerView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRulerView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRulerView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSRulerView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("registerUnitWithName:abbreviation:unitToPointsConversionFactor:stepUpCycle:stepDownCycle:")] public static void RegisterUnit(string unitName, string abbreviation, double conversionFactor, NSNumber[] stepUpCycle, NSNumber[] stepDownCycle) { NSApplication.EnsureUIThread(); if (unitName == null) { throw new ArgumentNullException("unitName"); } if (abbreviation == null) { throw new ArgumentNullException("abbreviation"); } if (stepUpCycle == null) { throw new ArgumentNullException("stepUpCycle"); } if (stepDownCycle == null) { throw new ArgumentNullException("stepDownCycle"); } IntPtr arg = NSString.CreateNative(unitName); IntPtr arg2 = NSString.CreateNative(abbreviation); NSArray nSArray = NSArray.FromNSObjects(stepUpCycle); NSArray nSArray2 = NSArray.FromNSObjects(stepDownCycle); Messaging.void_objc_msgSend_IntPtr_IntPtr_Double_IntPtr_IntPtr(class_ptr, selRegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepUpCycleStepDownCycle_Handle, arg, arg2, conversionFactor, nSArray.Handle, nSArray2.Handle); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray.Dispose(); nSArray2.Dispose(); } [Export("initWithScrollView:orientation:")] public NSRulerView(NSScrollView scrollView, NSRulerOrientation orientation) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (scrollView == null) { throw new ArgumentNullException("scrollView"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_int(base.Handle, selInitWithScrollViewOrientation_Handle, scrollView.Handle, (int)orientation); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInitWithScrollViewOrientation_Handle, scrollView.Handle, (int)orientation); } } [Export("addMarker:")] public virtual void AddMarker(NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddMarker_Handle, marker.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddMarker_Handle, marker.Handle); } _ = Markers; } [Export("removeMarker:")] public virtual void RemoveMarker(NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveMarker_Handle, marker.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveMarker_Handle, marker.Handle); } _ = Markers; } [Export("trackMarker:withMouseEvent:")] public virtual bool TrackMarker(NSRulerMarker marker, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (marker == null) { throw new ArgumentNullException("marker"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selTrackMarkerWithMouseEvent_Handle, marker.Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTrackMarkerWithMouseEvent_Handle, marker.Handle, theEvent.Handle); } [Export("moveRulerlineFromLocation:toLocation:")] public virtual void MoveRulerline(double oldLocation, double newLocation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Double(base.Handle, selMoveRulerlineFromLocationToLocation_Handle, oldLocation, newLocation); } else { Messaging.void_objc_msgSendSuper_Double_Double(base.SuperHandle, selMoveRulerlineFromLocationToLocation_Handle, oldLocation, newLocation); } } [Export("invalidateHashMarks")] public virtual void InvalidateHashMarks() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateHashMarksHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateHashMarksHandle); } } [Export("drawHashMarksAndLabelsInRect:")] public virtual void DrawHashMarksAndLabels(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawHashMarksAndLabelsInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawHashMarksAndLabelsInRect_Handle, rect); } } [Export("drawMarkersInRect:")] public virtual void DrawMarkers(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawMarkersInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawMarkersInRect_Handle, rect); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ScrollView_var = null; __mt_ClientView_var = null; __mt_Markers_var = null; __mt_AccessoryView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRunResponse.cs ================================================ namespace AppKit; public enum NSRunResponse : long { Stopped = -1000L, Aborted = -1001L, Continues = -1002L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSRunningApplication.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSRunningApplication", true)] public class NSRunningApplication : NSObject { private static readonly IntPtr selIsTerminatedHandle = Selector.GetHandle("isTerminated"); private static readonly IntPtr selIsFinishedLaunchingHandle = Selector.GetHandle("isFinishedLaunching"); private static readonly IntPtr selIsHiddenHandle = Selector.GetHandle("isHidden"); private static readonly IntPtr selIsActiveHandle = Selector.GetHandle("isActive"); private static readonly IntPtr selActivationPolicyHandle = Selector.GetHandle("activationPolicy"); private static readonly IntPtr selLocalizedNameHandle = Selector.GetHandle("localizedName"); private static readonly IntPtr selBundleIdentifierHandle = Selector.GetHandle("bundleIdentifier"); private static readonly IntPtr selBundleURLHandle = Selector.GetHandle("bundleURL"); private static readonly IntPtr selExecutableURLHandle = Selector.GetHandle("executableURL"); private static readonly IntPtr selProcessIdentifierHandle = Selector.GetHandle("processIdentifier"); private static readonly IntPtr selLaunchDateHandle = Selector.GetHandle("launchDate"); private static readonly IntPtr selIconHandle = Selector.GetHandle("icon"); private static readonly IntPtr selExecutableArchitectureHandle = Selector.GetHandle("executableArchitecture"); private static readonly IntPtr selCurrentApplicationHandle = Selector.GetHandle("currentApplication"); private static readonly IntPtr selHideHandle = Selector.GetHandle("hide"); private static readonly IntPtr selUnhideHandle = Selector.GetHandle("unhide"); private static readonly IntPtr selActivateWithOptions_Handle = Selector.GetHandle("activateWithOptions:"); private static readonly IntPtr selTerminateHandle = Selector.GetHandle("terminate"); private static readonly IntPtr selForceTerminateHandle = Selector.GetHandle("forceTerminate"); private static readonly IntPtr selRunningApplicationsWithBundleIdentifier_Handle = Selector.GetHandle("runningApplicationsWithBundleIdentifier:"); private static readonly IntPtr selRunningApplicationWithProcessIdentifier_Handle = Selector.GetHandle("runningApplicationWithProcessIdentifier:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRunningApplication"); private object __mt_BundleUrl_var; private object __mt_ExecutableUrl_var; private object __mt_LaunchDate_var; private object __mt_Icon_var; private static object __mt_CurrentApplication_var_static; public override IntPtr ClassHandle => class_ptr; public virtual bool Terminated { [Export("isTerminated")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTerminatedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTerminatedHandle); } } public virtual bool FinishedLaunching { [Export("isFinishedLaunching")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFinishedLaunchingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFinishedLaunchingHandle); } } public virtual bool Hidden { [Export("isHidden")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenHandle); } } public virtual bool Active { [Export("isActive")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsActiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsActiveHandle); } } public virtual NSApplicationActivationPolicy ActivationPolicy { [Export("activationPolicy")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSApplicationActivationPolicy)Messaging.Int64_objc_msgSend(base.Handle, selActivationPolicyHandle); } return (NSApplicationActivationPolicy)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selActivationPolicyHandle); } } public virtual string LocalizedName { [Export("localizedName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedNameHandle)); } } public virtual string BundleIdentifier { [Export("bundleIdentifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBundleIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBundleIdentifierHandle)); } } public virtual NSUrl BundleUrl { [Export("bundleURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_BundleUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBundleURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBundleURLHandle))))); } } public virtual NSUrl ExecutableUrl { [Export("executableURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_ExecutableUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExecutableURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExecutableURLHandle))))); } } public virtual int ProcessIdentifier { [Export("processIdentifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selProcessIdentifierHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selProcessIdentifierHandle); } } public virtual NSDate LaunchDate { [Export("launchDate")] get { NSApplication.EnsureUIThread(); return (NSDate)(__mt_LaunchDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLaunchDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLaunchDateHandle))))); } } public virtual NSImage Icon { [Export("icon")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Icon_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIconHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIconHandle))))); } } public virtual int ExecutableArchitecture { [Export("executableArchitecture")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selExecutableArchitectureHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selExecutableArchitectureHandle); } } [ThreadSafe] public static NSRunningApplication CurrentApplication { [Export("currentApplication")] get { return (NSRunningApplication)(__mt_CurrentApplication_var_static = (NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentApplicationHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRunningApplication() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRunningApplication(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRunningApplication(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRunningApplication(IntPtr handle) : base(handle) { } [Export("hide")] public virtual bool Hide() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHideHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHideHandle); } [Export("unhide")] public virtual bool Unhide() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUnhideHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUnhideHandle); } [Export("activateWithOptions:")] public virtual bool Activate(NSApplicationActivationOptions options) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_UInt64(base.Handle, selActivateWithOptions_Handle, (ulong)options); } return Messaging.bool_objc_msgSendSuper_UInt64(base.SuperHandle, selActivateWithOptions_Handle, (ulong)options); } [Export("terminate")] public virtual bool Terminate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTerminateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTerminateHandle); } [Export("forceTerminate")] public virtual bool ForceTerminate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selForceTerminateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selForceTerminateHandle); } [Export("runningApplicationsWithBundleIdentifier:")] public static NSRunningApplication[] GetRunningApplications(string bundleIdentifier) { NSApplication.EnsureUIThread(); if (bundleIdentifier == null) { throw new ArgumentNullException("bundleIdentifier"); } IntPtr arg = NSString.CreateNative(bundleIdentifier); NSRunningApplication[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selRunningApplicationsWithBundleIdentifier_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("runningApplicationWithProcessIdentifier:")] public static NSRunningApplication GetRunningApplication(int pid) { NSApplication.EnsureUIThread(); return (NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(class_ptr, selRunningApplicationWithProcessIdentifier_Handle, pid)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BundleUrl_var = null; __mt_ExecutableUrl_var = null; __mt_LaunchDate_var = null; __mt_Icon_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSaveOperationType.cs ================================================ namespace AppKit; public enum NSSaveOperationType : ulong { Save = 0uL, SaveAs = 1uL, SaveTo = 2uL, Autosave = 3uL, Elsewhere = 3uL, InPlace = 4uL, AutoSaveAs = 5uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSavePanel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSavePanel", true)] public class NSSavePanel : NSPanel { [Register] private sealed class _NSOpenSavePanelDelegate : NSOpenSavePanelDelegate { internal NSOpenSavePanelUrl shouldEnableUrl; internal NSOpenSavePanelValidate validateUrl; internal EventHandler didChangeToDirectory; internal NSOpenSaveFilenameConfirmation userEnteredFilename; internal EventHandler willExpand; internal EventHandler selectionDidChange; internal NSOpenSaveFilename isValidFilename; internal EventHandler directoryDidChange; internal NSOpenSaveCompare compareFilenames; internal NSOpenSaveFilename shouldShowFilename; [Preserve(Conditional = true)] public override bool ShouldEnableUrl(NSSavePanel panel, NSUrl url) { return shouldEnableUrl?.Invoke(panel, url) ?? true; } [Preserve(Conditional = true)] public override bool ValidateUrl(NSSavePanel panel, NSUrl url, out NSError outError) { NSOpenSavePanelValidate nSOpenSavePanelValidate = validateUrl; if (nSOpenSavePanelValidate != null) { return nSOpenSavePanelValidate(panel, url, out outError); } outError = null; return true; } [Preserve(Conditional = true)] public override void DidChangeToDirectory(NSSavePanel panel, NSUrl newDirectoryUrl) { EventHandler eventHandler = didChangeToDirectory; if (eventHandler != null) { NSOpenSavePanelUrlEventArgs e = new NSOpenSavePanelUrlEventArgs(newDirectoryUrl); eventHandler(panel, e); } } [Preserve(Conditional = true)] public override string UserEnteredFilename(NSSavePanel panel, string filename, bool confirmed) { NSOpenSaveFilenameConfirmation nSOpenSaveFilenameConfirmation = userEnteredFilename; if (nSOpenSaveFilenameConfirmation != null) { return nSOpenSaveFilenameConfirmation(panel, filename, confirmed); } return filename; } [Preserve(Conditional = true)] public override void WillExpand(NSSavePanel panel, bool expanding) { EventHandler eventHandler = willExpand; if (eventHandler != null) { NSOpenSaveExpandingEventArgs e = new NSOpenSaveExpandingEventArgs(expanding); eventHandler(panel, e); } } [Preserve(Conditional = true)] public override void SelectionDidChange(NSSavePanel panel) { selectionDidChange?.Invoke(panel, EventArgs.Empty); } [Preserve(Conditional = true)] public override bool IsValidFilename(NSSavePanel panel, string fileName) { return isValidFilename?.Invoke(panel, fileName) ?? true; } [Preserve(Conditional = true)] public override void DirectoryDidChange(NSSavePanel panel, string path) { EventHandler eventHandler = directoryDidChange; if (eventHandler != null) { NSOpenSaveFilenameEventArgs e = new NSOpenSaveFilenameEventArgs(path); eventHandler(panel, e); } } [Preserve(Conditional = true)] public override NSComparisonResult CompareFilenames(NSSavePanel panel, string name1, string name2, bool caseSensitive) { return compareFilenames?.Invoke(panel, name1, name2, caseSensitive) ?? NSComparisonResult.Same; } [Preserve(Conditional = true)] public override bool ShouldShowFilename(NSSavePanel panel, string filename) { return shouldShowFilename?.Invoke(panel, filename) ?? true; } } private static readonly IntPtr selSavePanelHandle = Selector.GetHandle("savePanel"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selIsExpandedHandle = Selector.GetHandle("isExpanded"); private static readonly IntPtr selDirectoryURLHandle = Selector.GetHandle("directoryURL"); private static readonly IntPtr selSetDirectoryURL_Handle = Selector.GetHandle("setDirectoryURL:"); private static readonly IntPtr selAllowedFileTypesHandle = Selector.GetHandle("allowedFileTypes"); private static readonly IntPtr selSetAllowedFileTypes_Handle = Selector.GetHandle("setAllowedFileTypes:"); private static readonly IntPtr selAllowsOtherFileTypesHandle = Selector.GetHandle("allowsOtherFileTypes"); private static readonly IntPtr selSetAllowsOtherFileTypes_Handle = Selector.GetHandle("setAllowsOtherFileTypes:"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCanCreateDirectoriesHandle = Selector.GetHandle("canCreateDirectories"); private static readonly IntPtr selSetCanCreateDirectories_Handle = Selector.GetHandle("setCanCreateDirectories:"); private static readonly IntPtr selCanSelectHiddenExtensionHandle = Selector.GetHandle("canSelectHiddenExtension"); private static readonly IntPtr selSetCanSelectHiddenExtension_Handle = Selector.GetHandle("setCanSelectHiddenExtension:"); private static readonly IntPtr selIsExtensionHiddenHandle = Selector.GetHandle("isExtensionHidden"); private static readonly IntPtr selSetExtensionHidden_Handle = Selector.GetHandle("setExtensionHidden:"); private static readonly IntPtr selTreatsFilePackagesAsDirectoriesHandle = Selector.GetHandle("treatsFilePackagesAsDirectories"); private static readonly IntPtr selSetTreatsFilePackagesAsDirectories_Handle = Selector.GetHandle("setTreatsFilePackagesAsDirectories:"); private static readonly IntPtr selPromptHandle = Selector.GetHandle("prompt"); private static readonly IntPtr selSetPrompt_Handle = Selector.GetHandle("setPrompt:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selNameFieldLabelHandle = Selector.GetHandle("nameFieldLabel"); private static readonly IntPtr selSetNameFieldLabel_Handle = Selector.GetHandle("setNameFieldLabel:"); private static readonly IntPtr selNameFieldStringValueHandle = Selector.GetHandle("nameFieldStringValue"); private static readonly IntPtr selSetNameFieldStringValue_Handle = Selector.GetHandle("setNameFieldStringValue:"); private static readonly IntPtr selMessageHandle = Selector.GetHandle("message"); private static readonly IntPtr selSetMessage_Handle = Selector.GetHandle("setMessage:"); private static readonly IntPtr selShowsHiddenFilesHandle = Selector.GetHandle("showsHiddenFiles"); private static readonly IntPtr selSetShowsHiddenFiles_Handle = Selector.GetHandle("setShowsHiddenFiles:"); private static readonly IntPtr selFilenameHandle = Selector.GetHandle("filename"); private static readonly IntPtr selDirectoryHandle = Selector.GetHandle("directory"); private static readonly IntPtr selSetDirectory_Handle = Selector.GetHandle("setDirectory:"); private static readonly IntPtr selRequiredFileTypeHandle = Selector.GetHandle("requiredFileType"); private static readonly IntPtr selSetRequiredFileType_Handle = Selector.GetHandle("setRequiredFileType:"); private static readonly IntPtr selValidateVisibleColumnsHandle = Selector.GetHandle("validateVisibleColumns"); private static readonly IntPtr selOk_Handle = Selector.GetHandle("ok:"); private static readonly IntPtr selCancel_Handle = Selector.GetHandle("cancel:"); private static readonly IntPtr selBeginSheetModalForWindowCompletionHandler_Handle = Selector.GetHandle("beginSheetModalForWindow:completionHandler:"); private static readonly IntPtr selBeginWithCompletionHandler_Handle = Selector.GetHandle("beginWithCompletionHandler:"); private static readonly IntPtr selRunModalHandle = Selector.GetHandle("runModal"); private static readonly IntPtr selBeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selRunModalForDirectoryFile_Handle = Selector.GetHandle("runModalForDirectory:file:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSavePanel"); private static object __mt_SavePanel_var_static; private object __mt_Url_var; private object __mt_DirectoryUrl_var; private object __mt_AccessoryView_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public static NSSavePanel SavePanel { [Export("savePanel")] get { NSApplication.EnsureUIThread(); return (NSSavePanel)(__mt_SavePanel_var_static = (NSSavePanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSavePanelHandle))); } } public virtual NSUrl Url { [Export("URL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } public virtual bool IsExpanded { [Export("isExpanded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExpandedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExpandedHandle); } } public virtual NSUrl DirectoryUrl { [Export("directoryURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_DirectoryUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDirectoryURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDirectoryURLHandle))))); } [Export("setDirectoryURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDirectoryURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDirectoryURL_Handle, value.Handle); } __mt_DirectoryUrl_var = value; } } public virtual string[] AllowedFileTypes { [Export("allowedFileTypes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllowedFileTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllowedFileTypesHandle)); } [Export("setAllowedFileTypes:")] set { NSApplication.EnsureUIThread(); NSArray nSArray = ((value == null) ? null : NSArray.FromStrings(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAllowedFileTypes_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAllowedFileTypes_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); } } public virtual bool AllowsOtherFileTypes { [Export("allowsOtherFileTypes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsOtherFileTypesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsOtherFileTypesHandle); } [Export("setAllowsOtherFileTypes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsOtherFileTypes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsOtherFileTypes_Handle, value); } } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } public new virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public new NSOpenSavePanelDelegate Delegate { get { return WeakDelegate as NSOpenSavePanelDelegate; } set { WeakDelegate = value; } } public virtual bool CanCreateDirectories { [Export("canCreateDirectories")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanCreateDirectoriesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanCreateDirectoriesHandle); } [Export("setCanCreateDirectories:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanCreateDirectories_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanCreateDirectories_Handle, value); } } } public virtual bool CanSelectHiddenExtension { [Export("canSelectHiddenExtension")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanSelectHiddenExtensionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanSelectHiddenExtensionHandle); } [Export("setCanSelectHiddenExtension:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanSelectHiddenExtension_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanSelectHiddenExtension_Handle, value); } } } public virtual bool ExtensionHidden { [Export("isExtensionHidden")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExtensionHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExtensionHiddenHandle); } [Export("setExtensionHidden:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetExtensionHidden_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetExtensionHidden_Handle, value); } } } public virtual bool TreatsFilePackagesAsDirectories { [Export("treatsFilePackagesAsDirectories")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTreatsFilePackagesAsDirectoriesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTreatsFilePackagesAsDirectoriesHandle); } [Export("setTreatsFilePackagesAsDirectories:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTreatsFilePackagesAsDirectories_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTreatsFilePackagesAsDirectories_Handle, value); } } } public virtual string Prompt { [Export("prompt")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPromptHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPromptHandle)); } [Export("setPrompt:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrompt_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrompt_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string NameFieldLabel { [Export("nameFieldLabel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameFieldLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameFieldLabelHandle)); } [Export("setNameFieldLabel:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNameFieldLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNameFieldLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string NameFieldStringValue { [Export("nameFieldStringValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameFieldStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameFieldStringValueHandle)); } [Export("setNameFieldStringValue:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNameFieldStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNameFieldStringValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Message { [Export("message")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMessageHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMessageHandle)); } [Export("setMessage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMessage_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMessage_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ShowsHiddenFiles { [Export("showsHiddenFiles")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsHiddenFilesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsHiddenFilesHandle); } [Export("setShowsHiddenFiles:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsHiddenFiles_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsHiddenFiles_Handle, value); } } } [Obsolete("On 10.6 and newer use Url instead", false)] public virtual string Filename { [Export("filename")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilenameHandle)); } } [Obsolete("On 10.6 and newer use DirectoryUrl instead", false)] public virtual string Directory { [Export("directory")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDirectoryHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDirectoryHandle)); } [Export("setDirectory:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDirectory_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDirectory_Handle, arg); } NSString.ReleaseNative(arg); } } [Obsolete("On 10.6 and newer use AllowedFileTypes instead", false)] public virtual string RequiredFileType { [Export("requiredFileType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRequiredFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRequiredFileTypeHandle)); } [Export("setRequiredFileType:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRequiredFileType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRequiredFileType_Handle, arg); } NSString.ReleaseNative(arg); } } public NSOpenSavePanelUrl ShouldEnableUrl { get { return EnsureNSOpenSavePanelDelegate().shouldEnableUrl; } set { EnsureNSOpenSavePanelDelegate().shouldEnableUrl = value; } } public NSOpenSavePanelValidate ValidateUrl { get { return EnsureNSOpenSavePanelDelegate().validateUrl; } set { EnsureNSOpenSavePanelDelegate().validateUrl = value; } } public NSOpenSaveFilenameConfirmation UserEnteredFilename { get { return EnsureNSOpenSavePanelDelegate().userEnteredFilename; } set { EnsureNSOpenSavePanelDelegate().userEnteredFilename = value; } } public NSOpenSaveFilename IsValidFilename { get { return EnsureNSOpenSavePanelDelegate().isValidFilename; } set { EnsureNSOpenSavePanelDelegate().isValidFilename = value; } } public NSOpenSaveCompare CompareFilenames { get { return EnsureNSOpenSavePanelDelegate().compareFilenames; } set { EnsureNSOpenSavePanelDelegate().compareFilenames = value; } } public NSOpenSaveFilename ShouldShowFilename { get { return EnsureNSOpenSavePanelDelegate().shouldShowFilename; } set { EnsureNSOpenSavePanelDelegate().shouldShowFilename = value; } } public event EventHandler DidChangeToDirectory { add { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.didChangeToDirectory = (EventHandler)System.Delegate.Combine(nSOpenSavePanelDelegate.didChangeToDirectory, value); } remove { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.didChangeToDirectory = (EventHandler)System.Delegate.Remove(nSOpenSavePanelDelegate.didChangeToDirectory, value); } } public event EventHandler WillExpand { add { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.willExpand = (EventHandler)System.Delegate.Combine(nSOpenSavePanelDelegate.willExpand, value); } remove { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.willExpand = (EventHandler)System.Delegate.Remove(nSOpenSavePanelDelegate.willExpand, value); } } public event EventHandler SelectionDidChange { add { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.selectionDidChange = (EventHandler)System.Delegate.Combine(nSOpenSavePanelDelegate.selectionDidChange, value); } remove { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.selectionDidChange = (EventHandler)System.Delegate.Remove(nSOpenSavePanelDelegate.selectionDidChange, value); } } [Obsolete("On 10.6 and newer Use DidChangeToDirectoryUrl instead", false)] public event EventHandler DirectoryDidChange { add { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.directoryDidChange = (EventHandler)System.Delegate.Combine(nSOpenSavePanelDelegate.directoryDidChange, value); } remove { _NSOpenSavePanelDelegate nSOpenSavePanelDelegate = EnsureNSOpenSavePanelDelegate(); nSOpenSavePanelDelegate.directoryDidChange = (EventHandler)System.Delegate.Remove(nSOpenSavePanelDelegate.directoryDidChange, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSavePanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSavePanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSavePanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSavePanel(IntPtr handle) : base(handle) { } [Export("validateVisibleColumns")] public virtual void ValidateVisibleColumns() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selValidateVisibleColumnsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selValidateVisibleColumnsHandle); } } [Export("ok:")] public virtual void Ok(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOk_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOk_Handle, sender.Handle); } } [Export("cancel:")] public virtual void Cancel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCancel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCancel_Handle, sender.Handle); } } [Export("beginSheetModalForWindow:completionHandler:")] public unsafe virtual void BeginSheet(NSWindow window, NSSavePanelComplete onComplete) { NSApplication.EnsureUIThread(); if (window == null) { throw new ArgumentNullException("window"); } if (onComplete == null) { throw new ArgumentNullException("onComplete"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSSavePanelComplete.Handler, onComplete); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selBeginSheetModalForWindowCompletionHandler_Handle, window.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selBeginSheetModalForWindowCompletionHandler_Handle, window.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("beginWithCompletionHandler:")] public unsafe virtual void Begin(NSSavePanelComplete onComplete) { NSApplication.EnsureUIThread(); if (onComplete == null) { throw new ArgumentNullException("onComplete"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSSavePanelComplete.Handler, onComplete); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selBeginWithCompletionHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selBeginWithCompletionHandler_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("runModal")] public virtual long RunModal() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRunModalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRunModalHandle); } [Export("beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:")] [Obsolete("On 10.6 and newer use Begin with the callback", false)] public virtual void Begin(string directory, string filename, NSWindow docWindow, NSObject modalDelegate, Selector selector, IntPtr context) { NSApplication.EnsureUIThread(); if (directory == null) { throw new ArgumentNullException("directory"); } if (filename == null) { throw new ArgumentNullException("filename"); } if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (modalDelegate == null) { throw new ArgumentNullException("modalDelegate"); } if (selector == null) { throw new ArgumentNullException("selector"); } IntPtr arg = NSString.CreateNative(directory); IntPtr arg2 = NSString.CreateNative(filename); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, arg, arg2, docWindow.Handle, modalDelegate.Handle, selector.Handle, context); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, arg, arg2, docWindow.Handle, modalDelegate.Handle, selector.Handle, context); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("runModalForDirectory:file:")] [Obsolete("On 10.6 and newer use RunModal without parameters instead", false)] public virtual long RunModal(string directory, string filename) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(directory); IntPtr arg2 = NSString.CreateNative(filename); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRunModalForDirectoryFile_Handle, arg, arg2) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selRunModalForDirectoryFile_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } private _NSOpenSavePanelDelegate EnsureNSOpenSavePanelDelegate() { NSOpenSavePanelDelegate nSOpenSavePanelDelegate = Delegate; if (nSOpenSavePanelDelegate == null || !(nSOpenSavePanelDelegate is _NSOpenSavePanelDelegate)) { nSOpenSavePanelDelegate = (Delegate = new _NSOpenSavePanelDelegate()); } return (_NSOpenSavePanelDelegate)nSOpenSavePanelDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_DirectoryUrl_var = null; __mt_AccessoryView_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSavePanelComplete.cs ================================================ namespace AppKit; public delegate void NSSavePanelComplete(int result); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScreen.cs ================================================ using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSScreen", true)] public class NSScreen : NSObject { private static readonly IntPtr selScreensHandle = Selector.GetHandle("screens"); private static readonly IntPtr selMainScreenHandle = Selector.GetHandle("mainScreen"); private static readonly IntPtr selDeepestScreenHandle = Selector.GetHandle("deepestScreen"); private static readonly IntPtr selDepthHandle = Selector.GetHandle("depth"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selVisibleFrameHandle = Selector.GetHandle("visibleFrame"); private static readonly IntPtr selDeviceDescriptionHandle = Selector.GetHandle("deviceDescription"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selUserSpaceScaleFactorHandle = Selector.GetHandle("userSpaceScaleFactor"); private static readonly IntPtr selBackingScaleFactorHandle = Selector.GetHandle("backingScaleFactor"); private static readonly IntPtr selSupportedWindowDepthsHandle = Selector.GetHandle("supportedWindowDepths"); private static readonly IntPtr selConvertRectToBacking_Handle = Selector.GetHandle("convertRectToBacking:"); private static readonly IntPtr selConvertRectFromBacking_Handle = Selector.GetHandle("convertRectFromBacking:"); private static readonly IntPtr selBackingAlignedRectOptions_Handle = Selector.GetHandle("backingAlignedRect:options:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSScreen"); private static object __mt_Screens_var_static; private static object __mt_MainScreen_var_static; private static object __mt_DeepestScreen_var_static; private object __mt_DeviceDescription_var; private object __mt_ColorSpace_var; public NSWindowDepth[] SupportedWindowDepths { get { List list = new List(); IntPtr intPtr = GetSupportedWindowDepths(); if (intPtr != IntPtr.Zero) { for (int num = Marshal.ReadInt32(intPtr); num != 0; num = Marshal.ReadInt32(intPtr)) { list.Add((NSWindowDepth)num); intPtr = (IntPtr)(intPtr.ToInt64() + IntPtr.Size); } } return list.ToArray(); } } public override IntPtr ClassHandle => class_ptr; public static NSScreen[] Screens { [Export("screens")] get { NSApplication.EnsureUIThread(); return (NSScreen[])(__mt_Screens_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selScreensHandle))); } } public static NSScreen MainScreen { [Export("mainScreen")] get { NSApplication.EnsureUIThread(); return (NSScreen)(__mt_MainScreen_var_static = (NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMainScreenHandle))); } } public static NSScreen DeepestScreen { [Export("deepestScreen")] get { NSApplication.EnsureUIThread(); return (NSScreen)(__mt_DeepestScreen_var_static = (NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDeepestScreenHandle))); } } public virtual NSWindowDepth Depth { [Export("depth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowDepth)Messaging.Int64_objc_msgSend(base.Handle, selDepthHandle); } return (NSWindowDepth)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDepthHandle); } } public virtual CGRect Frame { [Export("frame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } } public virtual CGRect VisibleFrame { [Export("visibleFrame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selVisibleFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selVisibleFrameHandle); } return retval; } } public virtual NSDictionary DeviceDescription { [Export("deviceDescription")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_DeviceDescription_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceDescriptionHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceDescriptionHandle))))); } } public virtual NSColorSpace ColorSpace { [Export("colorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_ColorSpace_var = ((!IsDirectBinding) ? ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle))) : ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle))))); } } [Obsolete("On Lion", false)] public virtual double UserSpaceScaleFactor { [Export("userSpaceScaleFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selUserSpaceScaleFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selUserSpaceScaleFactorHandle); } } public virtual double BackingScaleFactor { [Export("backingScaleFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBackingScaleFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBackingScaleFactorHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSScreen() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSScreen(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScreen(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScreen(IntPtr handle) : base(handle) { } [Export("supportedWindowDepths")] internal virtual IntPtr GetSupportedWindowDepths() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selSupportedWindowDepthsHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSupportedWindowDepthsHandle); } [Export("convertRectToBacking:")] public virtual CGRect ConvertRectToBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToBacking_Handle, aRect); } return retval; } [Export("convertRectFromBacking:")] public virtual CGRect ConvertRectfromBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromBacking_Handle, aRect); } return retval; } [Export("backingAlignedRect:options:")] public virtual CGRect GetBackingAlignedRect(CGRect globalScreenCoordRect, NSAlignmentOptions options) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_UInt64(out retval, base.Handle, selBackingAlignedRectOptions_Handle, globalScreenCoordRect, (ulong)options); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_UInt64(out retval, base.SuperHandle, selBackingAlignedRectOptions_Handle, globalScreenCoordRect, (ulong)options); } return retval; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DeviceDescription_var = null; __mt_ColorSpace_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollArrowPosition.cs ================================================ namespace AppKit; public enum NSScrollArrowPosition : ulong { MaxEnd, MinEnd, DefaultSetting, None } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollElasticity.cs ================================================ namespace AppKit; public enum NSScrollElasticity : long { Automatic, None, Allowed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSScrollView", true)] public class NSScrollView : NSView { private static readonly IntPtr selDocumentVisibleRectHandle = Selector.GetHandle("documentVisibleRect"); private static readonly IntPtr selContentSizeHandle = Selector.GetHandle("contentSize"); private static readonly IntPtr selDocumentViewHandle = Selector.GetHandle("documentView"); private static readonly IntPtr selSetDocumentView_Handle = Selector.GetHandle("setDocumentView:"); private static readonly IntPtr selContentViewHandle = Selector.GetHandle("contentView"); private static readonly IntPtr selSetContentView_Handle = Selector.GetHandle("setContentView:"); private static readonly IntPtr selDocumentCursorHandle = Selector.GetHandle("documentCursor"); private static readonly IntPtr selSetDocumentCursor_Handle = Selector.GetHandle("setDocumentCursor:"); private static readonly IntPtr selBorderTypeHandle = Selector.GetHandle("borderType"); private static readonly IntPtr selSetBorderType_Handle = Selector.GetHandle("setBorderType:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selHasVerticalScrollerHandle = Selector.GetHandle("hasVerticalScroller"); private static readonly IntPtr selSetHasVerticalScroller_Handle = Selector.GetHandle("setHasVerticalScroller:"); private static readonly IntPtr selHasHorizontalScrollerHandle = Selector.GetHandle("hasHorizontalScroller"); private static readonly IntPtr selSetHasHorizontalScroller_Handle = Selector.GetHandle("setHasHorizontalScroller:"); private static readonly IntPtr selVerticalScrollerHandle = Selector.GetHandle("verticalScroller"); private static readonly IntPtr selSetVerticalScroller_Handle = Selector.GetHandle("setVerticalScroller:"); private static readonly IntPtr selHorizontalScrollerHandle = Selector.GetHandle("horizontalScroller"); private static readonly IntPtr selSetHorizontalScroller_Handle = Selector.GetHandle("setHorizontalScroller:"); private static readonly IntPtr selAutohidesScrollersHandle = Selector.GetHandle("autohidesScrollers"); private static readonly IntPtr selSetAutohidesScrollers_Handle = Selector.GetHandle("setAutohidesScrollers:"); private static readonly IntPtr selHorizontalLineScrollHandle = Selector.GetHandle("horizontalLineScroll"); private static readonly IntPtr selSetHorizontalLineScroll_Handle = Selector.GetHandle("setHorizontalLineScroll:"); private static readonly IntPtr selVerticalLineScrollHandle = Selector.GetHandle("verticalLineScroll"); private static readonly IntPtr selSetVerticalLineScroll_Handle = Selector.GetHandle("setVerticalLineScroll:"); private static readonly IntPtr selLineScrollHandle = Selector.GetHandle("lineScroll"); private static readonly IntPtr selSetLineScroll_Handle = Selector.GetHandle("setLineScroll:"); private static readonly IntPtr selHorizontalPageScrollHandle = Selector.GetHandle("horizontalPageScroll"); private static readonly IntPtr selSetHorizontalPageScroll_Handle = Selector.GetHandle("setHorizontalPageScroll:"); private static readonly IntPtr selVerticalPageScrollHandle = Selector.GetHandle("verticalPageScroll"); private static readonly IntPtr selSetVerticalPageScroll_Handle = Selector.GetHandle("setVerticalPageScroll:"); private static readonly IntPtr selPageScrollHandle = Selector.GetHandle("pageScroll"); private static readonly IntPtr selSetPageScroll_Handle = Selector.GetHandle("setPageScroll:"); private static readonly IntPtr selScrollsDynamicallyHandle = Selector.GetHandle("scrollsDynamically"); private static readonly IntPtr selSetScrollsDynamically_Handle = Selector.GetHandle("setScrollsDynamically:"); private static readonly IntPtr selHasVerticalRulerHandle = Selector.GetHandle("hasVerticalRuler"); private static readonly IntPtr selSetHasVerticalRuler_Handle = Selector.GetHandle("setHasVerticalRuler:"); private static readonly IntPtr selHasHorizontalRulerHandle = Selector.GetHandle("hasHorizontalRuler"); private static readonly IntPtr selSetHasHorizontalRuler_Handle = Selector.GetHandle("setHasHorizontalRuler:"); private static readonly IntPtr selRulersVisibleHandle = Selector.GetHandle("rulersVisible"); private static readonly IntPtr selSetRulersVisible_Handle = Selector.GetHandle("setRulersVisible:"); private static readonly IntPtr selHorizontalRulerViewHandle = Selector.GetHandle("horizontalRulerView"); private static readonly IntPtr selSetHorizontalRulerView_Handle = Selector.GetHandle("setHorizontalRulerView:"); private static readonly IntPtr selVerticalRulerViewHandle = Selector.GetHandle("verticalRulerView"); private static readonly IntPtr selSetVerticalRulerView_Handle = Selector.GetHandle("setVerticalRulerView:"); private static readonly IntPtr selFindBarPositionHandle = Selector.GetHandle("findBarPosition"); private static readonly IntPtr selSetFindBarPosition_Handle = Selector.GetHandle("setFindBarPosition:"); private static readonly IntPtr selHorizontalScrollElasticityHandle = Selector.GetHandle("horizontalScrollElasticity"); private static readonly IntPtr selSetHorizontalScrollElasticity_Handle = Selector.GetHandle("setHorizontalScrollElasticity:"); private static readonly IntPtr selScrollerKnobStyleHandle = Selector.GetHandle("scrollerKnobStyle"); private static readonly IntPtr selSetScrollerKnobStyle_Handle = Selector.GetHandle("setScrollerKnobStyle:"); private static readonly IntPtr selScrollerStyleHandle = Selector.GetHandle("scrollerStyle"); private static readonly IntPtr selSetScrollerStyle_Handle = Selector.GetHandle("setScrollerStyle:"); private static readonly IntPtr selUsesPredominantAxisScrollingHandle = Selector.GetHandle("usesPredominantAxisScrolling"); private static readonly IntPtr selSetUsesPredominantAxisScrolling_Handle = Selector.GetHandle("setUsesPredominantAxisScrolling:"); private static readonly IntPtr selVerticalScrollElasticityHandle = Selector.GetHandle("verticalScrollElasticity"); private static readonly IntPtr selSetVerticalScrollElasticity_Handle = Selector.GetHandle("setVerticalScrollElasticity:"); private static readonly IntPtr selIsFindBarVisibleHandle = Selector.GetHandle("isFindBarVisible"); private static readonly IntPtr selSetFindBarVisible_Handle = Selector.GetHandle("setFindBarVisible:"); private static readonly IntPtr selFindBarViewHandle = Selector.GetHandle("findBarView"); private static readonly IntPtr selSetFindBarView_Handle = Selector.GetHandle("setFindBarView:"); private static readonly IntPtr selFrameSizeForContentSizeHasHorizontalScrollerHasVerticalScrollerBorderType_Handle = Selector.GetHandle("frameSizeForContentSize:hasHorizontalScroller:hasVerticalScroller:borderType:"); private static readonly IntPtr selContentSizeForFrameSizeHasHorizontalScrollerHasVerticalScrollerBorderType_Handle = Selector.GetHandle("contentSizeForFrameSize:hasHorizontalScroller:hasVerticalScroller:borderType:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selTileHandle = Selector.GetHandle("tile"); private static readonly IntPtr selReflectScrolledClipView_Handle = Selector.GetHandle("reflectScrolledClipView:"); private static readonly IntPtr selScrollWheel_Handle = Selector.GetHandle("scrollWheel:"); private static readonly IntPtr selContentSizeForFrameSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle_Handle = Selector.GetHandle("contentSizeForFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:"); private static readonly IntPtr selFlashScrollersHandle = Selector.GetHandle("flashScrollers"); private static readonly IntPtr selFrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle_Handle = Selector.GetHandle("frameSizeForContentSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:"); private static readonly IntPtr selFindBarViewDidChangeHeightHandle = Selector.GetHandle("findBarViewDidChangeHeight"); private static readonly IntPtr class_ptr = Class.GetHandle("NSScrollView"); private object __mt_DocumentView_var; private object __mt_ContentView_var; private object __mt_DocumentCursor_var; private object __mt_BackgroundColor_var; private object __mt_VerticalScroller_var; private object __mt_HorizontalScroller_var; private object __mt_HorizontalRulerView_var; private object __mt_VerticalRulerView_var; private object __mt_FindBarView_var; public override IntPtr ClassHandle => class_ptr; public virtual CGRect DocumentVisibleRect { [Export("documentVisibleRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selDocumentVisibleRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDocumentVisibleRectHandle); } return retval; } } public virtual CGSize ContentSize { [Export("contentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentSizeHandle); } } public virtual NSObject DocumentView { [Export("documentView")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_DocumentView_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentViewHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentViewHandle)))); } [Export("setDocumentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentView_Handle, value.Handle); } __mt_DocumentView_var = value; } } public virtual NSClipView ContentView { [Export("contentView")] get { NSApplication.EnsureUIThread(); return (NSClipView)(__mt_ContentView_var = ((!IsDirectBinding) ? ((NSClipView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewHandle))) : ((NSClipView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewHandle))))); } [Export("setContentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentView_Handle, value.Handle); } __mt_ContentView_var = value; } } public virtual NSCursor DocumentCursor { [Export("documentCursor")] get { NSApplication.EnsureUIThread(); return (NSCursor)(__mt_DocumentCursor_var = ((!IsDirectBinding) ? ((NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentCursorHandle))) : ((NSCursor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentCursorHandle))))); } [Export("setDocumentCursor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentCursor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentCursor_Handle, value.Handle); } __mt_DocumentCursor_var = value; } } public virtual NSBorderType BorderType { [Export("borderType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBorderType)Messaging.UInt64_objc_msgSend(base.Handle, selBorderTypeHandle); } return (NSBorderType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBorderTypeHandle); } [Export("setBorderType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetBorderType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetBorderType_Handle, (ulong)value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual bool HasVerticalScroller { [Export("hasVerticalScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasVerticalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasVerticalScrollerHandle); } [Export("setHasVerticalScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasVerticalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasVerticalScroller_Handle, value); } } } public virtual bool HasHorizontalScroller { [Export("hasHorizontalScroller")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasHorizontalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasHorizontalScrollerHandle); } [Export("setHasHorizontalScroller:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasHorizontalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasHorizontalScroller_Handle, value); } } } public virtual NSScroller VerticalScroller { [Export("verticalScroller")] get { NSApplication.EnsureUIThread(); return (NSScroller)(__mt_VerticalScroller_var = ((!IsDirectBinding) ? ((NSScroller)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVerticalScrollerHandle))) : ((NSScroller)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVerticalScrollerHandle))))); } [Export("setVerticalScroller:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVerticalScroller_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVerticalScroller_Handle, value.Handle); } __mt_VerticalScroller_var = value; } } public virtual NSScroller HorizontalScroller { [Export("horizontalScroller")] get { NSApplication.EnsureUIThread(); return (NSScroller)(__mt_HorizontalScroller_var = ((!IsDirectBinding) ? ((NSScroller)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHorizontalScrollerHandle))) : ((NSScroller)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHorizontalScrollerHandle))))); } [Export("setHorizontalScroller:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHorizontalScroller_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHorizontalScroller_Handle, value.Handle); } __mt_HorizontalScroller_var = value; } } public virtual bool AutohidesScrollers { [Export("autohidesScrollers")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutohidesScrollersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutohidesScrollersHandle); } [Export("setAutohidesScrollers:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutohidesScrollers_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutohidesScrollers_Handle, value); } } } public virtual double HorizontalLineScroll { [Export("horizontalLineScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHorizontalLineScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHorizontalLineScrollHandle); } [Export("setHorizontalLineScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetHorizontalLineScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetHorizontalLineScroll_Handle, value); } } } public virtual double VerticalLineScroll { [Export("verticalLineScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selVerticalLineScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selVerticalLineScrollHandle); } [Export("setVerticalLineScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetVerticalLineScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetVerticalLineScroll_Handle, value); } } } public virtual double LineScroll { [Export("lineScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineScrollHandle); } [Export("setLineScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLineScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLineScroll_Handle, value); } } } public virtual double HorizontalPageScroll { [Export("horizontalPageScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHorizontalPageScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHorizontalPageScrollHandle); } [Export("setHorizontalPageScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetHorizontalPageScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetHorizontalPageScroll_Handle, value); } } } public virtual double VerticalPageScroll { [Export("verticalPageScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selVerticalPageScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selVerticalPageScrollHandle); } [Export("setVerticalPageScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetVerticalPageScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetVerticalPageScroll_Handle, value); } } } public virtual double PageScroll { [Export("pageScroll")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPageScrollHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPageScrollHandle); } [Export("setPageScroll:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetPageScroll_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetPageScroll_Handle, value); } } } public virtual bool ScrollsDynamically { [Export("scrollsDynamically")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selScrollsDynamicallyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selScrollsDynamicallyHandle); } [Export("setScrollsDynamically:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetScrollsDynamically_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetScrollsDynamically_Handle, value); } } } public virtual bool HasVerticalRuler { [Export("hasVerticalRuler")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasVerticalRulerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasVerticalRulerHandle); } [Export("setHasVerticalRuler:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasVerticalRuler_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasVerticalRuler_Handle, value); } } } public virtual bool HasHorizontalRuler { [Export("hasHorizontalRuler")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasHorizontalRulerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasHorizontalRulerHandle); } [Export("setHasHorizontalRuler:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasHorizontalRuler_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasHorizontalRuler_Handle, value); } } } public virtual bool RulersVisible { [Export("rulersVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRulersVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRulersVisibleHandle); } [Export("setRulersVisible:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRulersVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRulersVisible_Handle, value); } } } public virtual NSRulerView HorizontalRulerView { [Export("horizontalRulerView")] get { NSApplication.EnsureUIThread(); return (NSRulerView)(__mt_HorizontalRulerView_var = ((!IsDirectBinding) ? ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHorizontalRulerViewHandle))) : ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHorizontalRulerViewHandle))))); } [Export("setHorizontalRulerView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHorizontalRulerView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHorizontalRulerView_Handle, value.Handle); } __mt_HorizontalRulerView_var = value; } } public virtual NSRulerView VerticalRulerView { [Export("verticalRulerView")] get { NSApplication.EnsureUIThread(); return (NSRulerView)(__mt_VerticalRulerView_var = ((!IsDirectBinding) ? ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVerticalRulerViewHandle))) : ((NSRulerView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVerticalRulerViewHandle))))); } [Export("setVerticalRulerView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVerticalRulerView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVerticalRulerView_Handle, value.Handle); } __mt_VerticalRulerView_var = value; } } public virtual NSScrollViewFindBarPosition FindBarPosition { [Export("findBarPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollViewFindBarPosition)Messaging.Int64_objc_msgSend(base.Handle, selFindBarPositionHandle); } return (NSScrollViewFindBarPosition)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFindBarPositionHandle); } [Export("setFindBarPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetFindBarPosition_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetFindBarPosition_Handle, (long)value); } } } public virtual NSScrollElasticity HorizontalScrollElasticity { [Export("horizontalScrollElasticity")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollElasticity)Messaging.Int64_objc_msgSend(base.Handle, selHorizontalScrollElasticityHandle); } return (NSScrollElasticity)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHorizontalScrollElasticityHandle); } [Export("setHorizontalScrollElasticity:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetHorizontalScrollElasticity_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetHorizontalScrollElasticity_Handle, (long)value); } } } public virtual NSScrollerKnobStyle ScrollerKnobStyle { [Export("scrollerKnobStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerKnobStyle)Messaging.Int64_objc_msgSend(base.Handle, selScrollerKnobStyleHandle); } return (NSScrollerKnobStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selScrollerKnobStyleHandle); } [Export("setScrollerKnobStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetScrollerKnobStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetScrollerKnobStyle_Handle, (long)value); } } } public virtual NSScrollerStyle ScrollerStyle { [Export("scrollerStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerStyle)Messaging.Int64_objc_msgSend(base.Handle, selScrollerStyleHandle); } return (NSScrollerStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selScrollerStyleHandle); } [Export("setScrollerStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetScrollerStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetScrollerStyle_Handle, (long)value); } } } public virtual bool UsesPredominantAxisScrolling { [Export("usesPredominantAxisScrolling")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesPredominantAxisScrollingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesPredominantAxisScrollingHandle); } [Export("setUsesPredominantAxisScrolling:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesPredominantAxisScrolling_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesPredominantAxisScrolling_Handle, value); } } } public virtual NSScrollElasticity VerticalScrollElasticity { [Export("verticalScrollElasticity")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollElasticity)Messaging.Int64_objc_msgSend(base.Handle, selVerticalScrollElasticityHandle); } return (NSScrollElasticity)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selVerticalScrollElasticityHandle); } [Export("setVerticalScrollElasticity:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetVerticalScrollElasticity_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetVerticalScrollElasticity_Handle, (long)value); } } } public virtual bool FindBarVisible { [Export("isFindBarVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFindBarVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFindBarVisibleHandle); } [Export("setFindBarVisible:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFindBarVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFindBarVisible_Handle, value); } } } public virtual NSView FindBarView { [Export("findBarView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_FindBarView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFindBarViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFindBarViewHandle))))); } [Export("setFindBarView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFindBarView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFindBarView_Handle, value.Handle); } __mt_FindBarView_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSScrollView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSScrollView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScrollView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScrollView(IntPtr handle) : base(handle) { } [Export("frameSizeForContentSize:hasHorizontalScroller:hasVerticalScroller:borderType:")] public static CGSize FrameSizeForContentSize(CGSize cSize, bool hFlag, bool vFlag, NSBorderType aType) { NSApplication.EnsureUIThread(); return Messaging.CGSize_objc_msgSend_CGSize_bool_bool_UInt64(class_ptr, selFrameSizeForContentSizeHasHorizontalScrollerHasVerticalScrollerBorderType_Handle, cSize, hFlag, vFlag, (ulong)aType); } [Export("contentSizeForFrameSize:hasHorizontalScroller:hasVerticalScroller:borderType:")] public static CGSize ContentSizeForFrame(CGSize fSize, bool hFlag, bool vFlag, NSBorderType aType) { NSApplication.EnsureUIThread(); return Messaging.CGSize_objc_msgSend_CGSize_bool_bool_UInt64(class_ptr, selContentSizeForFrameSizeHasHorizontalScrollerHasVerticalScrollerBorderType_Handle, fSize, hFlag, vFlag, (ulong)aType); } [Export("initWithFrame:")] public NSScrollView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("tile")] public virtual void Tile() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selTileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selTileHandle); } } [Export("reflectScrolledClipView:")] public virtual void ReflectScrolledClipView(NSClipView cView) { NSApplication.EnsureUIThread(); if (cView == null) { throw new ArgumentNullException("cView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReflectScrolledClipView_Handle, cView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReflectScrolledClipView_Handle, cView.Handle); } } [Export("scrollWheel:")] public new virtual void ScrollWheel(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selScrollWheel_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selScrollWheel_Handle, theEvent.Handle); } } [Export("contentSizeForFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:")] public static CGSize GetContentSizeForFrame(CGSize forFrameSize, Class horizontalScrollerClass, Class verticalScrollerClass, NSBorderType borderType, NSControlSize controlSize, NSScrollerStyle scrollerStyle) { NSApplication.EnsureUIThread(); if (horizontalScrollerClass == null) { throw new ArgumentNullException("horizontalScrollerClass"); } if (verticalScrollerClass == null) { throw new ArgumentNullException("verticalScrollerClass"); } return Messaging.CGSize_objc_msgSend_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(class_ptr, selContentSizeForFrameSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle_Handle, forFrameSize, horizontalScrollerClass.Handle, verticalScrollerClass.Handle, (ulong)borderType, (ulong)controlSize, (long)scrollerStyle); } [Export("flashScrollers")] public virtual void FlashScrollers() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlashScrollersHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlashScrollersHandle); } } [Export("frameSizeForContentSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:")] public static CGSize GetFrameSizeForContent(CGSize contentSize, Class horizontalScrollerClass, Class verticalScrollerClass, NSBorderType borderType, NSControlSize controlSize, NSScrollerStyle scrollerStyle) { NSApplication.EnsureUIThread(); if (horizontalScrollerClass == null) { throw new ArgumentNullException("horizontalScrollerClass"); } if (verticalScrollerClass == null) { throw new ArgumentNullException("verticalScrollerClass"); } return Messaging.CGSize_objc_msgSend_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(class_ptr, selFrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle_Handle, contentSize, horizontalScrollerClass.Handle, verticalScrollerClass.Handle, (ulong)borderType, (ulong)controlSize, (long)scrollerStyle); } [Export("findBarViewDidChangeHeight")] public virtual void FindBarViewDidChangeHeight() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFindBarViewDidChangeHeightHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFindBarViewDidChangeHeightHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DocumentView_var = null; __mt_ContentView_var = null; __mt_DocumentCursor_var = null; __mt_BackgroundColor_var = null; __mt_VerticalScroller_var = null; __mt_HorizontalScroller_var = null; __mt_HorizontalRulerView_var = null; __mt_VerticalRulerView_var = null; __mt_FindBarView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollViewFindBarPosition.cs ================================================ namespace AppKit; public enum NSScrollViewFindBarPosition : long { AboveHorizontalRuler, AboveContent, BelowContent } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScroller.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSScroller", true)] public class NSScroller : NSControl { public new static class Notifications { public static NSObject ObservePreferredStyleChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(PreferredStyleChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selScrollerWidthHandle = Selector.GetHandle("scrollerWidth"); private static readonly IntPtr selUsablePartsHandle = Selector.GetHandle("usableParts"); private static readonly IntPtr selHitPartHandle = Selector.GetHandle("hitPart"); private static readonly IntPtr selArrowsPositionHandle = Selector.GetHandle("arrowsPosition"); private static readonly IntPtr selSetArrowsPosition_Handle = Selector.GetHandle("setArrowsPosition:"); private static readonly IntPtr selControlTintHandle = Selector.GetHandle("controlTint"); private static readonly IntPtr selSetControlTint_Handle = Selector.GetHandle("setControlTint:"); private static readonly IntPtr selControlSizeHandle = Selector.GetHandle("controlSize"); private static readonly IntPtr selSetControlSize_Handle = Selector.GetHandle("setControlSize:"); private static readonly IntPtr selKnobProportionHandle = Selector.GetHandle("knobProportion"); private static readonly IntPtr selSetKnobProportion_Handle = Selector.GetHandle("setKnobProportion:"); private static readonly IntPtr selIsCompatibleWithOverlayScrollersHandle = Selector.GetHandle("isCompatibleWithOverlayScrollers"); private static readonly IntPtr selKnobStyleHandle = Selector.GetHandle("knobStyle"); private static readonly IntPtr selSetKnobStyle_Handle = Selector.GetHandle("setKnobStyle:"); private static readonly IntPtr selPreferredScrollerStyleHandle = Selector.GetHandle("preferredScrollerStyle"); private static readonly IntPtr selScrollerStyleHandle = Selector.GetHandle("scrollerStyle"); private static readonly IntPtr selSetScrollerStyle_Handle = Selector.GetHandle("setScrollerStyle:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selScrollerWidthForControlSize_Handle = Selector.GetHandle("scrollerWidthForControlSize:"); private static readonly IntPtr selDrawPartsHandle = Selector.GetHandle("drawParts"); private static readonly IntPtr selRectForPart_Handle = Selector.GetHandle("rectForPart:"); private static readonly IntPtr selCheckSpaceForPartsHandle = Selector.GetHandle("checkSpaceForParts"); private static readonly IntPtr selDrawArrowHighlight_Handle = Selector.GetHandle("drawArrow:highlight:"); private static readonly IntPtr selDrawKnobHandle = Selector.GetHandle("drawKnob"); private static readonly IntPtr selDrawKnobSlotInRectHighlight_Handle = Selector.GetHandle("drawKnobSlotInRect:highlight:"); private static readonly IntPtr selHighlight_Handle = Selector.GetHandle("highlight:"); private static readonly IntPtr selTestPart_Handle = Selector.GetHandle("testPart:"); private static readonly IntPtr selTrackKnob_Handle = Selector.GetHandle("trackKnob:"); private static readonly IntPtr selTrackScrollButtons_Handle = Selector.GetHandle("trackScrollButtons:"); private static readonly IntPtr selScrollerWidthForControlSizeScrollerStyle_Handle = Selector.GetHandle("scrollerWidthForControlSize:scrollerStyle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSScroller"); private static NSString _PreferredStyleChangedNotification; public override IntPtr ClassHandle => class_ptr; public static double ScrollerWidth { [Export("scrollerWidth")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selScrollerWidthHandle); } } public virtual NSUsableScrollerParts UsableParts { [Export("usableParts")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSUsableScrollerParts)Messaging.UInt64_objc_msgSend(base.Handle, selUsablePartsHandle); } return (NSUsableScrollerParts)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selUsablePartsHandle); } } public virtual NSScrollerPart HitPart { [Export("hitPart")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerPart)Messaging.UInt64_objc_msgSend(base.Handle, selHitPartHandle); } return (NSScrollerPart)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selHitPartHandle); } } public virtual NSScrollArrowPosition ArrowsPosition { [Export("arrowsPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollArrowPosition)Messaging.UInt64_objc_msgSend(base.Handle, selArrowsPositionHandle); } return (NSScrollArrowPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selArrowsPositionHandle); } [Export("setArrowsPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetArrowsPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetArrowsPosition_Handle, (ulong)value); } } } public virtual NSControlTint ControlTint { [Export("controlTint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlTint)Messaging.UInt64_objc_msgSend(base.Handle, selControlTintHandle); } return (NSControlTint)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlTintHandle); } [Export("setControlTint:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlTint_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlTint_Handle, (ulong)value); } } } public virtual NSControlSize ControlSize { [Export("controlSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlSize)Messaging.UInt64_objc_msgSend(base.Handle, selControlSizeHandle); } return (NSControlSize)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlSizeHandle); } [Export("setControlSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlSize_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlSize_Handle, (ulong)value); } } } public virtual double KnobProportion { [Export("knobProportion")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKnobProportionHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKnobProportionHandle); } [Export("setKnobProportion:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetKnobProportion_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetKnobProportion_Handle, value); } } } public static bool CompatibleWithOverlayScrollers { [Export("isCompatibleWithOverlayScrollers")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIsCompatibleWithOverlayScrollersHandle); } } public virtual NSScrollerKnobStyle KnobStyle { [Export("knobStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerKnobStyle)Messaging.Int64_objc_msgSend(base.Handle, selKnobStyleHandle); } return (NSScrollerKnobStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selKnobStyleHandle); } [Export("setKnobStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetKnobStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetKnobStyle_Handle, (long)value); } } } public static NSScrollerStyle PreferredScrollerStyle { [Export("preferredScrollerStyle")] get { NSApplication.EnsureUIThread(); return (NSScrollerStyle)Messaging.Int64_objc_msgSend(class_ptr, selPreferredScrollerStyleHandle); } } public virtual NSScrollerStyle ScrollerStyle { [Export("scrollerStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerStyle)Messaging.Int64_objc_msgSend(base.Handle, selScrollerStyleHandle); } return (NSScrollerStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selScrollerStyleHandle); } [Export("setScrollerStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetScrollerStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetScrollerStyle_Handle, (long)value); } } } [Field("NSPreferredScrollerStyleDidChangeNotification", "AppKit")] public static NSString PreferredStyleChangedNotification { get { if (_PreferredStyleChangedNotification == null) { _PreferredStyleChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSPreferredScrollerStyleDidChangeNotification"); } return _PreferredStyleChangedNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSScroller() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSScroller(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScroller(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSScroller(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSScroller(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("scrollerWidthForControlSize:")] public static double ScrollerWidthForControlSize(NSControlSize controlSize) { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend_UInt64(class_ptr, selScrollerWidthForControlSize_Handle, (ulong)controlSize); } [Export("drawParts")] [Obsolete("", false)] public virtual void DrawParts() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDrawPartsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDrawPartsHandle); } } [Export("rectForPart:")] public virtual CGRect RectForPart(NSScrollerPart partCode) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_UInt64(out retval, base.Handle, selRectForPart_Handle, (ulong)partCode); } else { Messaging.CGRect_objc_msgSendSuper_stret_UInt64(out retval, base.SuperHandle, selRectForPart_Handle, (ulong)partCode); } return retval; } [Export("checkSpaceForParts")] public virtual void CheckSpaceForParts() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCheckSpaceForPartsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCheckSpaceForPartsHandle); } } [Export("drawArrow:highlight:")] public virtual void DrawArrow(NSScrollerArrow whichArrow, bool highlight) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_bool(base.Handle, selDrawArrowHighlight_Handle, (ulong)whichArrow, highlight); } else { Messaging.void_objc_msgSendSuper_UInt64_bool(base.SuperHandle, selDrawArrowHighlight_Handle, (ulong)whichArrow, highlight); } } [Export("drawKnob")] public virtual void DrawKnob() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDrawKnobHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDrawKnobHandle); } } [Export("drawKnobSlotInRect:highlight:")] public virtual void DrawKnobSlot(CGRect slotRect, bool highlight) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool(base.Handle, selDrawKnobSlotInRectHighlight_Handle, slotRect, highlight); } else { Messaging.void_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selDrawKnobSlotInRectHighlight_Handle, slotRect, highlight); } } [Export("highlight:")] public virtual void Highlight(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selHighlight_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selHighlight_Handle, flag); } } [Export("testPart:")] public virtual NSScrollerPart TestPart(CGPoint thePoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSScrollerPart)Messaging.UInt64_objc_msgSend_CGPoint(base.Handle, selTestPart_Handle, thePoint); } return (NSScrollerPart)Messaging.UInt64_objc_msgSendSuper_CGPoint(base.SuperHandle, selTestPart_Handle, thePoint); } [Export("trackKnob:")] public virtual void TrackKnob(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTrackKnob_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTrackKnob_Handle, theEvent.Handle); } } [Export("trackScrollButtons:")] public virtual void TrackScrollButtons(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTrackScrollButtons_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTrackScrollButtons_Handle, theEvent.Handle); } } [Export("scrollerWidthForControlSize:scrollerStyle:")] public static double GetScrollerWidth(NSControlSize forControlSize, NSScrollerStyle scrollerStyle) { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend_UInt64_Int64(class_ptr, selScrollerWidthForControlSizeScrollerStyle_Handle, (ulong)forControlSize, (long)scrollerStyle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollerArrow.cs ================================================ namespace AppKit; public enum NSScrollerArrow : ulong { IncrementArrow, DecrementArrow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollerKnobStyle.cs ================================================ namespace AppKit; public enum NSScrollerKnobStyle : long { Default, Dark, Light } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollerPart.cs ================================================ namespace AppKit; public enum NSScrollerPart : ulong { None, DecrementPage, Knob, IncrementPage, DecrementLine, IncrementLine, KnobSlot } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSScrollerStyle.cs ================================================ namespace AppKit; public enum NSScrollerStyle : long { Legacy, Overlay } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSearchField.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSearchField", true)] public class NSSearchField : NSTextField { private static readonly IntPtr selRecentSearchesHandle = Selector.GetHandle("recentSearches"); private static readonly IntPtr selSetRecentSearches_Handle = Selector.GetHandle("setRecentSearches:"); private static readonly IntPtr selRecentsAutosaveNameHandle = Selector.GetHandle("recentsAutosaveName"); private static readonly IntPtr selSetRecentsAutosaveName_Handle = Selector.GetHandle("setRecentsAutosaveName:"); private static readonly IntPtr selCellHandle = Selector.GetHandle("cell"); private static readonly IntPtr selSetCell_Handle = Selector.GetHandle("setCell:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSearchField"); private object __mt_Cell_var; public override IntPtr ClassHandle => class_ptr; public virtual string[] RecentSearches { [Export("recentSearches")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRecentSearchesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRecentSearchesHandle)); } [Export("setRecentSearches:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRecentSearches_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRecentSearches_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string RecentsAutosaveName { [Export("recentsAutosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRecentsAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRecentsAutosaveNameHandle)); } [Export("setRecentsAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRecentsAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRecentsAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual NSSearchFieldCell Cell { [Export("cell")] get { NSApplication.EnsureUIThread(); return (NSSearchFieldCell)(__mt_Cell_var = ((!IsDirectBinding) ? ((NSSearchFieldCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCellHandle))) : ((NSSearchFieldCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCellHandle))))); } [Export("setCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCell_Handle, value.Handle); } __mt_Cell_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSearchField() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSearchField(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSearchField(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSearchField(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSSearchField(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Cell_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSearchFieldCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSearchFieldCell", true)] public class NSSearchFieldCell : NSTextFieldCell { private static readonly IntPtr selSearchButtonCellHandle = Selector.GetHandle("searchButtonCell"); private static readonly IntPtr selSetSearchButtonCell_Handle = Selector.GetHandle("setSearchButtonCell:"); private static readonly IntPtr selCancelButtonCellHandle = Selector.GetHandle("cancelButtonCell"); private static readonly IntPtr selSetCancelButtonCell_Handle = Selector.GetHandle("setCancelButtonCell:"); private static readonly IntPtr selSearchMenuTemplateHandle = Selector.GetHandle("searchMenuTemplate"); private static readonly IntPtr selSetSearchMenuTemplate_Handle = Selector.GetHandle("setSearchMenuTemplate:"); private static readonly IntPtr selSendsWholeSearchStringHandle = Selector.GetHandle("sendsWholeSearchString"); private static readonly IntPtr selSetSendsWholeSearchString_Handle = Selector.GetHandle("setSendsWholeSearchString:"); private static readonly IntPtr selMaximumRecentsHandle = Selector.GetHandle("maximumRecents"); private static readonly IntPtr selSetMaximumRecents_Handle = Selector.GetHandle("setMaximumRecents:"); private static readonly IntPtr selRecentSearchesHandle = Selector.GetHandle("recentSearches"); private static readonly IntPtr selSetRecentSearches_Handle = Selector.GetHandle("setRecentSearches:"); private static readonly IntPtr selRecentsAutosaveNameHandle = Selector.GetHandle("recentsAutosaveName"); private static readonly IntPtr selSetRecentsAutosaveName_Handle = Selector.GetHandle("setRecentsAutosaveName:"); private static readonly IntPtr selSendsSearchStringImmediatelyHandle = Selector.GetHandle("sendsSearchStringImmediately"); private static readonly IntPtr selSetSendsSearchStringImmediately_Handle = Selector.GetHandle("setSendsSearchStringImmediately:"); private static readonly IntPtr selResetSearchButtonCellHandle = Selector.GetHandle("resetSearchButtonCell"); private static readonly IntPtr selResetCancelButtonCellHandle = Selector.GetHandle("resetCancelButtonCell"); private static readonly IntPtr selSearchTextRectForBounds_Handle = Selector.GetHandle("searchTextRectForBounds:"); private static readonly IntPtr selSearchButtonRectForBounds_Handle = Selector.GetHandle("searchButtonRectForBounds:"); private static readonly IntPtr selCancelButtonRectForBounds_Handle = Selector.GetHandle("cancelButtonRectForBounds:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSearchFieldCell"); private object __mt_SearchButtonCell_var; private object __mt_CancelButtonCell_var; private object __mt_SearchMenuTemplate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSButtonCell SearchButtonCell { [Export("searchButtonCell")] get { NSApplication.EnsureUIThread(); return (NSButtonCell)(__mt_SearchButtonCell_var = ((!IsDirectBinding) ? ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSearchButtonCellHandle))) : ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSearchButtonCellHandle))))); } [Export("setSearchButtonCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSearchButtonCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSearchButtonCell_Handle, value.Handle); } __mt_SearchButtonCell_var = value; } } public virtual NSButtonCell CancelButtonCell { [Export("cancelButtonCell")] get { NSApplication.EnsureUIThread(); return (NSButtonCell)(__mt_CancelButtonCell_var = ((!IsDirectBinding) ? ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCancelButtonCellHandle))) : ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCancelButtonCellHandle))))); } [Export("setCancelButtonCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCancelButtonCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCancelButtonCell_Handle, value.Handle); } __mt_CancelButtonCell_var = value; } } public virtual NSMenu SearchMenuTemplate { [Export("searchMenuTemplate")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_SearchMenuTemplate_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSearchMenuTemplateHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSearchMenuTemplateHandle))))); } [Export("setSearchMenuTemplate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSearchMenuTemplate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSearchMenuTemplate_Handle, value.Handle); } __mt_SearchMenuTemplate_var = value; } } public virtual bool SendsWholeSearchString { [Export("sendsWholeSearchString")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendsWholeSearchStringHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendsWholeSearchStringHandle); } [Export("setSendsWholeSearchString:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSendsWholeSearchString_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSendsWholeSearchString_Handle, value); } } } public virtual long MaximumRecents { [Export("maximumRecents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaximumRecentsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaximumRecentsHandle); } [Export("setMaximumRecents:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaximumRecents_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaximumRecents_Handle, value); } } } public virtual string[] RecentSearches { [Export("recentSearches")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRecentSearchesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRecentSearchesHandle)); } [Export("setRecentSearches:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRecentSearches_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRecentSearches_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string RecentsAutosaveName { [Export("recentsAutosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRecentsAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRecentsAutosaveNameHandle)); } [Export("setRecentsAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRecentsAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRecentsAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool SendsSearchStringImmediately { [Export("sendsSearchStringImmediately")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSendsSearchStringImmediatelyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSendsSearchStringImmediatelyHandle); } [Export("setSendsSearchStringImmediately:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSendsSearchStringImmediately_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSendsSearchStringImmediately_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSearchFieldCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSearchFieldCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSearchFieldCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSearchFieldCell(IntPtr handle) : base(handle) { } [Export("resetSearchButtonCell")] public virtual void ResetSearchButtonCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetSearchButtonCellHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetSearchButtonCellHandle); } } [Export("resetCancelButtonCell")] public virtual void ResetCancelButtonCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetCancelButtonCellHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetCancelButtonCellHandle); } } [Export("searchTextRectForBounds:")] public virtual CGRect SearchTextRectForBounds(CGRect rect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selSearchTextRectForBounds_Handle, rect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selSearchTextRectForBounds_Handle, rect); } return retval; } [Export("searchButtonRectForBounds:")] public virtual CGRect SearchButtonRectForBounds(CGRect rect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selSearchButtonRectForBounds_Handle, rect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selSearchButtonRectForBounds_Handle, rect); } return retval; } [Export("cancelButtonRectForBounds:")] public virtual CGRect CancelButtonRectForBounds(CGRect rect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selCancelButtonRectForBounds_Handle, rect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selCancelButtonRectForBounds_Handle, rect); } return retval; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SearchButtonCell_var = null; __mt_CancelButtonCell_var = null; __mt_SearchMenuTemplate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSecureTextField.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSecureTextField", true)] public class NSSecureTextField : NSTextField { private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSecureTextField"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSecureTextField() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSecureTextField(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSecureTextField(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSecureTextField(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSSecureTextField(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSecureTextFieldCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSecureTextFieldCell", true)] public class NSSecureTextFieldCell : NSTextFieldCell { private static readonly IntPtr selEchosBulletsHandle = Selector.GetHandle("echosBullets"); private static readonly IntPtr selSetEchosBullets_Handle = Selector.GetHandle("setEchosBullets:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSecureTextFieldCell"); public override IntPtr ClassHandle => class_ptr; public virtual bool EchosBullets { [Export("echosBullets")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEchosBulletsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEchosBulletsHandle); } [Export("setEchosBullets:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEchosBullets_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEchosBullets_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSecureTextFieldCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSecureTextFieldCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSecureTextFieldCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSecureTextFieldCell(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSegmentStyle.cs ================================================ namespace AppKit; public enum NSSegmentStyle : long { Automatic, Rounded, TexturedRounded, RoundRect, TexturedSquare, Capsule, SmallSquare } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSegmentSwitchTracking.cs ================================================ namespace AppKit; public enum NSSegmentSwitchTracking : ulong { SelectOne, SelectAny, Momentary, MomentaryAccelerator } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSegmentedCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSegmentedCell", true)] public class NSSegmentedCell : NSActionCell { private static readonly IntPtr selSegmentCountHandle = Selector.GetHandle("segmentCount"); private static readonly IntPtr selSetSegmentCount_Handle = Selector.GetHandle("setSegmentCount:"); private static readonly IntPtr selSelectedSegmentHandle = Selector.GetHandle("selectedSegment"); private static readonly IntPtr selSetSelectedSegment_Handle = Selector.GetHandle("setSelectedSegment:"); private static readonly IntPtr selTrackingModeHandle = Selector.GetHandle("trackingMode"); private static readonly IntPtr selSetTrackingMode_Handle = Selector.GetHandle("setTrackingMode:"); private static readonly IntPtr selSegmentStyleHandle = Selector.GetHandle("segmentStyle"); private static readonly IntPtr selSetSegmentStyle_Handle = Selector.GetHandle("setSegmentStyle:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSelectSegmentWithTag_Handle = Selector.GetHandle("selectSegmentWithTag:"); private static readonly IntPtr selMakeNextSegmentKeyHandle = Selector.GetHandle("makeNextSegmentKey"); private static readonly IntPtr selMakePreviousSegmentKeyHandle = Selector.GetHandle("makePreviousSegmentKey"); private static readonly IntPtr selSetWidthForSegment_Handle = Selector.GetHandle("setWidth:forSegment:"); private static readonly IntPtr selWidthForSegment_Handle = Selector.GetHandle("widthForSegment:"); private static readonly IntPtr selSetImageForSegment_Handle = Selector.GetHandle("setImage:forSegment:"); private static readonly IntPtr selImageForSegment_Handle = Selector.GetHandle("imageForSegment:"); private static readonly IntPtr selSetImageScalingForSegment_Handle = Selector.GetHandle("setImageScaling:forSegment:"); private static readonly IntPtr selImageScalingForSegment_Handle = Selector.GetHandle("imageScalingForSegment:"); private static readonly IntPtr selSetLabelForSegment_Handle = Selector.GetHandle("setLabel:forSegment:"); private static readonly IntPtr selLabelForSegment_Handle = Selector.GetHandle("labelForSegment:"); private static readonly IntPtr selSetSelectedForSegment_Handle = Selector.GetHandle("setSelected:forSegment:"); private static readonly IntPtr selIsSelectedForSegment_Handle = Selector.GetHandle("isSelectedForSegment:"); private static readonly IntPtr selSetEnabledForSegment_Handle = Selector.GetHandle("setEnabled:forSegment:"); private static readonly IntPtr selIsEnabledForSegment_Handle = Selector.GetHandle("isEnabledForSegment:"); private static readonly IntPtr selSetMenuForSegment_Handle = Selector.GetHandle("setMenu:forSegment:"); private static readonly IntPtr selMenuForSegment_Handle = Selector.GetHandle("menuForSegment:"); private static readonly IntPtr selSetToolTipForSegment_Handle = Selector.GetHandle("setToolTip:forSegment:"); private static readonly IntPtr selToolTipForSegment_Handle = Selector.GetHandle("toolTipForSegment:"); private static readonly IntPtr selSetTagForSegment_Handle = Selector.GetHandle("setTag:forSegment:"); private static readonly IntPtr selTagForSegment_Handle = Selector.GetHandle("tagForSegment:"); private static readonly IntPtr selDrawSegmentInFrameWithView_Handle = Selector.GetHandle("drawSegment:inFrame:withView:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSegmentedCell"); public override IntPtr ClassHandle => class_ptr; public virtual long SegmentCount { [Export("segmentCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSegmentCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSegmentCountHandle); } [Export("setSegmentCount:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSegmentCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSegmentCount_Handle, value); } } } public virtual long SelectedSegment { [Export("selectedSegment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedSegmentHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedSegmentHandle); } [Export("setSelectedSegment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSelectedSegment_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSelectedSegment_Handle, value); } } } public virtual NSSegmentSwitchTracking TrackingMode { [Export("trackingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSegmentSwitchTracking)Messaging.UInt64_objc_msgSend(base.Handle, selTrackingModeHandle); } return (NSSegmentSwitchTracking)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTrackingModeHandle); } [Export("setTrackingMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTrackingMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTrackingMode_Handle, (ulong)value); } } } public virtual NSSegmentStyle SegmentStyle { [Export("segmentStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSegmentStyle)Messaging.Int64_objc_msgSend(base.Handle, selSegmentStyleHandle); } return (NSSegmentStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSegmentStyleHandle); } [Export("setSegmentStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSegmentStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSegmentStyle_Handle, (long)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSegmentedCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSegmentedCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSegmentedCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSegmentedCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSSegmentedCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSSegmentedCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("selectSegmentWithTag:")] public virtual bool SelectSegment(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selSelectSegmentWithTag_Handle, tag); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selSelectSegmentWithTag_Handle, tag); } [Export("makeNextSegmentKey")] public virtual void InsertSegmentAfterSelection() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakeNextSegmentKeyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakeNextSegmentKeyHandle); } } [Export("makePreviousSegmentKey")] public virtual void InsertSegmentBeforeSelection() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakePreviousSegmentKeyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakePreviousSegmentKeyHandle); } } [Export("setWidth:forSegment:")] public virtual void SetWidth(double width, long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Int64(base.Handle, selSetWidthForSegment_Handle, width, forSegment); } else { Messaging.void_objc_msgSendSuper_Double_Int64(base.SuperHandle, selSetWidthForSegment_Handle, width, forSegment); } } [Export("widthForSegment:")] public virtual double GetWidth(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selWidthForSegment_Handle, forSegment); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selWidthForSegment_Handle, forSegment); } [Export("setImage:forSegment:")] public virtual void SetImage(NSImage image, long forSegment) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetImageForSegment_Handle, image.Handle, forSegment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetImageForSegment_Handle, image.Handle, forSegment); } } [Export("imageForSegment:")] public virtual NSImage GetImageForSegment(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selImageForSegment_Handle, forSegment)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selImageForSegment_Handle, forSegment)); } [Export("setImageScaling:forSegment:")] public virtual void SetImageScaling(NSImageScaling scaling, long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Int64(base.Handle, selSetImageScalingForSegment_Handle, (ulong)scaling, forSegment); } else { Messaging.void_objc_msgSendSuper_UInt64_Int64(base.SuperHandle, selSetImageScalingForSegment_Handle, (ulong)scaling, forSegment); } } [Export("imageScalingForSegment:")] public virtual NSImageScaling GetImageScaling(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScaling)Messaging.UInt64_objc_msgSend_Int64(base.Handle, selImageScalingForSegment_Handle, forSegment); } return (NSImageScaling)Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selImageScalingForSegment_Handle, forSegment); } [Export("setLabel:forSegment:")] public virtual void SetLabel(string label, long forSegment) { NSApplication.EnsureUIThread(); if (label == null) { throw new ArgumentNullException("label"); } IntPtr arg = NSString.CreateNative(label); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetLabelForSegment_Handle, arg, forSegment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetLabelForSegment_Handle, arg, forSegment); } NSString.ReleaseNative(arg); } [Export("labelForSegment:")] public virtual string GetLabel(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selLabelForSegment_Handle, forSegment)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selLabelForSegment_Handle, forSegment)); } [Export("setSelected:forSegment:")] public virtual void SetSelected(bool selected, long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetSelectedForSegment_Handle, selected, forSegment); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetSelectedForSegment_Handle, selected, forSegment); } } [Export("isSelectedForSegment:")] public virtual bool IsSelected(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsSelectedForSegment_Handle, forSegment); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsSelectedForSegment_Handle, forSegment); } [Export("setEnabled:forSegment:")] public virtual void SetEnabled(bool enabled, long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetEnabledForSegment_Handle, enabled, forSegment); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetEnabledForSegment_Handle, enabled, forSegment); } } [Export("isEnabledForSegment:")] public virtual bool IsEnabled(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsEnabledForSegment_Handle, forSegment); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsEnabledForSegment_Handle, forSegment); } [Export("setMenu:forSegment:")] public virtual void SetMenu(NSMenu menu, long forSegment) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetMenuForSegment_Handle, menu.Handle, forSegment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetMenuForSegment_Handle, menu.Handle, forSegment); } } [Export("menuForSegment:")] public virtual NSMenu GetMenu(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selMenuForSegment_Handle, forSegment)); } return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selMenuForSegment_Handle, forSegment)); } [Export("setToolTip:forSegment:")] public virtual void SetToolTip(string toolTip, long forSegment) { NSApplication.EnsureUIThread(); if (toolTip == null) { throw new ArgumentNullException("toolTip"); } IntPtr arg = NSString.CreateNative(toolTip); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetToolTipForSegment_Handle, arg, forSegment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetToolTipForSegment_Handle, arg, forSegment); } NSString.ReleaseNative(arg); } [Export("toolTipForSegment:")] public virtual string GetToolTip(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selToolTipForSegment_Handle, forSegment)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selToolTipForSegment_Handle, forSegment)); } [Export("setTag:forSegment:")] public virtual void SetTag(long tag, long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selSetTagForSegment_Handle, tag, forSegment); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSetTagForSegment_Handle, tag, forSegment); } } [Export("tagForSegment:")] public virtual long GetTag(long forSegment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selTagForSegment_Handle, forSegment); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selTagForSegment_Handle, forSegment); } [Export("drawSegment:inFrame:withView:")] public virtual void DrawSegment(long segment, CGRect frame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_CGRect_IntPtr(base.Handle, selDrawSegmentInFrameWithView_Handle, segment, frame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_Int64_CGRect_IntPtr(base.SuperHandle, selDrawSegmentInFrameWithView_Handle, segment, frame, controlView.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSegmentedControl.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSegmentedControl", true)] public class NSSegmentedControl : NSControl { private static readonly IntPtr selSegmentCountHandle = Selector.GetHandle("segmentCount"); private static readonly IntPtr selSetSegmentCount_Handle = Selector.GetHandle("setSegmentCount:"); private static readonly IntPtr selSelectedSegmentHandle = Selector.GetHandle("selectedSegment"); private static readonly IntPtr selSetSelectedSegment_Handle = Selector.GetHandle("setSelectedSegment:"); private static readonly IntPtr selSegmentStyleHandle = Selector.GetHandle("segmentStyle"); private static readonly IntPtr selSetSegmentStyle_Handle = Selector.GetHandle("setSegmentStyle:"); private static readonly IntPtr selTrackingModeHandle = Selector.GetHandle("trackingMode"); private static readonly IntPtr selSetTrackingMode_Handle = Selector.GetHandle("setTrackingMode:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSelectSegmentWithTag_Handle = Selector.GetHandle("selectSegmentWithTag:"); private static readonly IntPtr selSetWidthForSegment_Handle = Selector.GetHandle("setWidth:forSegment:"); private static readonly IntPtr selWidthForSegment_Handle = Selector.GetHandle("widthForSegment:"); private static readonly IntPtr selSetImageForSegment_Handle = Selector.GetHandle("setImage:forSegment:"); private static readonly IntPtr selImageForSegment_Handle = Selector.GetHandle("imageForSegment:"); private static readonly IntPtr selSetImageScalingForSegment_Handle = Selector.GetHandle("setImageScaling:forSegment:"); private static readonly IntPtr selImageScalingForSegment_Handle = Selector.GetHandle("imageScalingForSegment:"); private static readonly IntPtr selSetLabelForSegment_Handle = Selector.GetHandle("setLabel:forSegment:"); private static readonly IntPtr selLabelForSegment_Handle = Selector.GetHandle("labelForSegment:"); private static readonly IntPtr selSetMenuForSegment_Handle = Selector.GetHandle("setMenu:forSegment:"); private static readonly IntPtr selMenuForSegment_Handle = Selector.GetHandle("menuForSegment:"); private static readonly IntPtr selSetSelectedForSegment_Handle = Selector.GetHandle("setSelected:forSegment:"); private static readonly IntPtr selIsSelectedForSegment_Handle = Selector.GetHandle("isSelectedForSegment:"); private static readonly IntPtr selSetEnabledForSegment_Handle = Selector.GetHandle("setEnabled:forSegment:"); private static readonly IntPtr selIsEnabledForSegment_Handle = Selector.GetHandle("isEnabledForSegment:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSegmentedControl"); public new NSSegmentedCell Cell { get { return (NSSegmentedCell)base.Cell; } set { base.Cell = value; } } public override IntPtr ClassHandle => class_ptr; public virtual long SegmentCount { [Export("segmentCount")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSegmentCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSegmentCountHandle); } [Export("setSegmentCount:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSegmentCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSegmentCount_Handle, value); } } } public virtual long SelectedSegment { [Export("selectedSegment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedSegmentHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedSegmentHandle); } [Export("setSelectedSegment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSelectedSegment_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSelectedSegment_Handle, value); } } } public virtual NSSegmentStyle SegmentStyle { [Export("segmentStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSegmentStyle)Messaging.Int64_objc_msgSend(base.Handle, selSegmentStyleHandle); } return (NSSegmentStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSegmentStyleHandle); } [Export("setSegmentStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSegmentStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSegmentStyle_Handle, (long)value); } } } public virtual NSSegmentSwitchTracking TrackingMode { [Export("trackingMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSegmentSwitchTracking)Messaging.UInt64_objc_msgSend(base.Handle, selTrackingModeHandle); } return (NSSegmentSwitchTracking)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTrackingModeHandle); } [Export("setTrackingMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTrackingMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTrackingMode_Handle, (ulong)value); } } } public void UnselectAllSegments() { NSSegmentSwitchTracking trackingMode = Cell.TrackingMode; Cell.TrackingMode = NSSegmentSwitchTracking.Momentary; for (int i = 0; i < SegmentCount; i++) { SetSelected(selected: false, i); } Cell.TrackingMode = trackingMode; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSegmentedControl() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSegmentedControl(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSegmentedControl(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSegmentedControl(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSSegmentedControl(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("selectSegmentWithTag:")] public virtual bool SelectSegment(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selSelectSegmentWithTag_Handle, tag); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selSelectSegmentWithTag_Handle, tag); } [Export("setWidth:forSegment:")] public virtual void SetWidth(double width, long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Int64(base.Handle, selSetWidthForSegment_Handle, width, segment); } else { Messaging.void_objc_msgSendSuper_Double_Int64(base.SuperHandle, selSetWidthForSegment_Handle, width, segment); } } [Export("widthForSegment:")] public virtual double GetWidth(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selWidthForSegment_Handle, segment); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selWidthForSegment_Handle, segment); } [Export("setImage:forSegment:")] public virtual void SetImage(NSImage image, long segment) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetImageForSegment_Handle, image.Handle, segment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetImageForSegment_Handle, image.Handle, segment); } } [Export("imageForSegment:")] public virtual NSImage GetImage(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selImageForSegment_Handle, segment)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selImageForSegment_Handle, segment)); } [Export("setImageScaling:forSegment:")] public virtual void SetImageScaling(NSImageScaling scaling, long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Int64(base.Handle, selSetImageScalingForSegment_Handle, (ulong)scaling, segment); } else { Messaging.void_objc_msgSendSuper_UInt64_Int64(base.SuperHandle, selSetImageScalingForSegment_Handle, (ulong)scaling, segment); } } [Export("imageScalingForSegment:")] public virtual NSImageScaling GetImageScaling(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSImageScaling)Messaging.UInt64_objc_msgSend_Int64(base.Handle, selImageScalingForSegment_Handle, segment); } return (NSImageScaling)Messaging.UInt64_objc_msgSendSuper_Int64(base.SuperHandle, selImageScalingForSegment_Handle, segment); } [Export("setLabel:forSegment:")] public virtual void SetLabel(string label, long segment) { NSApplication.EnsureUIThread(); if (label == null) { throw new ArgumentNullException("label"); } IntPtr arg = NSString.CreateNative(label); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetLabelForSegment_Handle, arg, segment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetLabelForSegment_Handle, arg, segment); } NSString.ReleaseNative(arg); } [Export("labelForSegment:")] public virtual string GetLabel(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selLabelForSegment_Handle, segment)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selLabelForSegment_Handle, segment)); } [Export("setMenu:forSegment:")] public virtual void SetMenu(NSMenu menu, long segment) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetMenuForSegment_Handle, menu.Handle, segment); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetMenuForSegment_Handle, menu.Handle, segment); } } [Export("menuForSegment:")] public virtual NSMenu GetMenu(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selMenuForSegment_Handle, segment)); } return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selMenuForSegment_Handle, segment)); } [Export("setSelected:forSegment:")] public virtual void SetSelected(bool selected, long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetSelectedForSegment_Handle, selected, segment); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetSelectedForSegment_Handle, selected, segment); } } [Export("isSelectedForSegment:")] public virtual bool IsSelectedForSegment(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsSelectedForSegment_Handle, segment); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsSelectedForSegment_Handle, segment); } [Export("setEnabled:forSegment:")] public virtual void SetEnabled(bool enabled, long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_Int64(base.Handle, selSetEnabledForSegment_Handle, enabled, segment); } else { Messaging.void_objc_msgSendSuper_bool_Int64(base.SuperHandle, selSetEnabledForSegment_Handle, enabled, segment); } } [Export("isEnabledForSegment:")] public virtual bool IsEnabled(long segment) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsEnabledForSegment_Handle, segment); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsEnabledForSegment_Handle, segment); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSelectionAffinity.cs ================================================ namespace AppKit; public enum NSSelectionAffinity : ulong { Upstream, Downstream } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSelectionDirection.cs ================================================ namespace AppKit; public enum NSSelectionDirection : ulong { Direct, Next, Previous } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSelectionGranularity.cs ================================================ namespace AppKit; public enum NSSelectionGranularity : ulong { Character, Word, Paragraph } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSShadow.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSShadow", true)] public class NSShadow : NSObject { private static readonly IntPtr selShadowOffsetHandle = Selector.GetHandle("shadowOffset"); private static readonly IntPtr selSetShadowOffset_Handle = Selector.GetHandle("setShadowOffset:"); private static readonly IntPtr selShadowBlurRadiusHandle = Selector.GetHandle("shadowBlurRadius"); private static readonly IntPtr selSetShadowBlurRadius_Handle = Selector.GetHandle("setShadowBlurRadius:"); private static readonly IntPtr selShadowColorHandle = Selector.GetHandle("shadowColor"); private static readonly IntPtr selSetShadowColor_Handle = Selector.GetHandle("setShadowColor:"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr class_ptr = Class.GetHandle("NSShadow"); private object __mt_ShadowColor_var; public override IntPtr ClassHandle => class_ptr; public virtual CGSize ShadowOffset { [Export("shadowOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selShadowOffsetHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selShadowOffsetHandle); } [Export("setShadowOffset:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetShadowOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetShadowOffset_Handle, value); } } } public virtual double ShadowBlurRadius { [Export("shadowBlurRadius")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selShadowBlurRadiusHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selShadowBlurRadiusHandle); } [Export("setShadowBlurRadius:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetShadowBlurRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetShadowBlurRadius_Handle, value); } } } public virtual NSColor ShadowColor { [Export("shadowColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_ShadowColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShadowColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selShadowColorHandle))))); } [Export("setShadowColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShadowColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShadowColor_Handle, value.Handle); } __mt_ShadowColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSShadow() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSShadow(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSShadow(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSShadow(IntPtr handle) : base(handle) { } [Export("set")] public virtual void Set() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ShadowColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingContentScope.cs ================================================ namespace AppKit; public enum NSSharingContentScope : long { Item, Partial, Full } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingService.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSharingService", true)] [MountainLion] public class NSSharingService : NSObject { [Register] private sealed class _NSSharingServiceDelegate : NSSharingServiceDelegate { internal EventHandler willShareItems; internal EventHandler didFailToShareItems; internal EventHandler didShareItems; internal NSSharingServiceSourceFrameOnScreenForShareItem sourceFrameOnScreenForShareItem; internal NSSharingServiceTransitionImageForShareItem transitionImageForShareItem; internal NSSharingServiceSourceWindowForShareItems sourceWindowForShareItems; [Preserve(Conditional = true)] public override void WillShareItems(NSSharingService sharingService, NSObject[] items) { EventHandler eventHandler = willShareItems; if (eventHandler != null) { NSSharingServiceItemsEventArgs e = new NSSharingServiceItemsEventArgs(items); eventHandler(sharingService, e); } } [Preserve(Conditional = true)] public override void DidFailToShareItems(NSSharingService sharingService, NSObject[] items, NSError error) { EventHandler eventHandler = didFailToShareItems; if (eventHandler != null) { NSSharingServiceDidFailToShareItemsEventArgs e = new NSSharingServiceDidFailToShareItemsEventArgs(items, error); eventHandler(sharingService, e); } } [Preserve(Conditional = true)] public override void DidShareItems(NSSharingService sharingService, NSObject[] items) { EventHandler eventHandler = didShareItems; if (eventHandler != null) { NSSharingServiceItemsEventArgs e = new NSSharingServiceItemsEventArgs(items); eventHandler(sharingService, e); } } [Preserve(Conditional = true)] public override CGRect SourceFrameOnScreenForShareItem(NSSharingService sharingService, NSPasteboardWriting item) { NSSharingServiceSourceFrameOnScreenForShareItem nSSharingServiceSourceFrameOnScreenForShareItem = sourceFrameOnScreenForShareItem; if (nSSharingServiceSourceFrameOnScreenForShareItem != null) { return nSSharingServiceSourceFrameOnScreenForShareItem(sharingService, item); } throw new Exception("No event handler has been added to the SourceFrameOnScreenForShareItem event."); } [Preserve(Conditional = true)] public override NSImage TransitionImageForShareItem(NSSharingService sharingService, NSPasteboardWriting item, CGRect contentRect) { return transitionImageForShareItem?.Invoke(sharingService, item, contentRect); } [Preserve(Conditional = true)] public override NSWindow SourceWindowForShareItems(NSSharingService sharingService, NSObject[] items, NSSharingContentScope sharingContentScope) { return sourceWindowForShareItems?.Invoke(sharingService, items, sharingContentScope); } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selAlternateImageHandle = Selector.GetHandle("alternateImage"); private static readonly IntPtr selSharingServicesForItems_Handle = Selector.GetHandle("sharingServicesForItems:"); private static readonly IntPtr selSharingServiceNamed_Handle = Selector.GetHandle("sharingServiceNamed:"); private static readonly IntPtr selInitWithTitleImageAlternateImageHandler_Handle = Selector.GetHandle("initWithTitle:image:alternateImage:handler:"); private static readonly IntPtr selCanPerformWithItems_Handle = Selector.GetHandle("canPerformWithItems:"); private static readonly IntPtr selPerformWithItems_Handle = Selector.GetHandle("performWithItems:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSharingService"); private object __mt_WeakDelegate_var; private object __mt_Image_var; private object __mt_AlternateImage_var; private static NSString _NSSharingServiceNamePostOnFacebook; private static NSString _NSSharingServiceNamePostOnTwitter; private static NSString _NSSharingServiceNamePostOnSinaWeibo; private static NSString _NSSharingServiceNameComposeEmail; private static NSString _NSSharingServiceNameComposeMessage; private static NSString _NSSharingServiceNameSendViaAirDrop; private static NSString _NSSharingServiceNameAddToSafariReadingList; private static NSString _NSSharingServiceNameAddToIPhoto; private static NSString _NSSharingServiceNameAddToAperture; private static NSString _NSSharingServiceNameUseAsTwitterProfileImage; private static NSString _NSSharingServiceNameUseAsDesktopPicture; private static NSString _NSSharingServiceNamePostImageOnFlickr; private static NSString _NSSharingServiceNamePostVideoOnVimeo; private static NSString _NSSharingServiceNamePostVideoOnYouku; private static NSString _NSSharingServiceNamePostVideoOnTudou; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSharingServiceDelegate Delegate { get { return WeakDelegate as NSSharingServiceDelegate; } set { WeakDelegate = value; } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } } public virtual NSImage AlternateImage { [Export("alternateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_AlternateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateImageHandle))))); } } [Field("NSSharingServiceNamePostOnFacebook", "AppKit")] internal static NSString NSSharingServiceNamePostOnFacebook { get { if (_NSSharingServiceNamePostOnFacebook == null) { _NSSharingServiceNamePostOnFacebook = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostOnFacebook"); } return _NSSharingServiceNamePostOnFacebook; } } [Field("NSSharingServiceNamePostOnTwitter", "AppKit")] internal static NSString NSSharingServiceNamePostOnTwitter { get { if (_NSSharingServiceNamePostOnTwitter == null) { _NSSharingServiceNamePostOnTwitter = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostOnTwitter"); } return _NSSharingServiceNamePostOnTwitter; } } [Field("NSSharingServiceNamePostOnSinaWeibo", "AppKit")] internal static NSString NSSharingServiceNamePostOnSinaWeibo { get { if (_NSSharingServiceNamePostOnSinaWeibo == null) { _NSSharingServiceNamePostOnSinaWeibo = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostOnSinaWeibo"); } return _NSSharingServiceNamePostOnSinaWeibo; } } [Field("NSSharingServiceNameComposeEmail", "AppKit")] internal static NSString NSSharingServiceNameComposeEmail { get { if (_NSSharingServiceNameComposeEmail == null) { _NSSharingServiceNameComposeEmail = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameComposeEmail"); } return _NSSharingServiceNameComposeEmail; } } [Field("NSSharingServiceNameComposeMessage", "AppKit")] internal static NSString NSSharingServiceNameComposeMessage { get { if (_NSSharingServiceNameComposeMessage == null) { _NSSharingServiceNameComposeMessage = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameComposeMessage"); } return _NSSharingServiceNameComposeMessage; } } [Field("NSSharingServiceNameSendViaAirDrop", "AppKit")] internal static NSString NSSharingServiceNameSendViaAirDrop { get { if (_NSSharingServiceNameSendViaAirDrop == null) { _NSSharingServiceNameSendViaAirDrop = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameSendViaAirDrop"); } return _NSSharingServiceNameSendViaAirDrop; } } [Field("NSSharingServiceNameAddToSafariReadingList", "AppKit")] internal static NSString NSSharingServiceNameAddToSafariReadingList { get { if (_NSSharingServiceNameAddToSafariReadingList == null) { _NSSharingServiceNameAddToSafariReadingList = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameAddToSafariReadingList"); } return _NSSharingServiceNameAddToSafariReadingList; } } [Field("NSSharingServiceNameAddToIPhoto", "AppKit")] internal static NSString NSSharingServiceNameAddToIPhoto { get { if (_NSSharingServiceNameAddToIPhoto == null) { _NSSharingServiceNameAddToIPhoto = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameAddToIPhoto"); } return _NSSharingServiceNameAddToIPhoto; } } [Field("NSSharingServiceNameAddToAperture", "AppKit")] internal static NSString NSSharingServiceNameAddToAperture { get { if (_NSSharingServiceNameAddToAperture == null) { _NSSharingServiceNameAddToAperture = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameAddToAperture"); } return _NSSharingServiceNameAddToAperture; } } [Field("NSSharingServiceNameUseAsTwitterProfileImage", "AppKit")] internal static NSString NSSharingServiceNameUseAsTwitterProfileImage { get { if (_NSSharingServiceNameUseAsTwitterProfileImage == null) { _NSSharingServiceNameUseAsTwitterProfileImage = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameUseAsTwitterProfileImage"); } return _NSSharingServiceNameUseAsTwitterProfileImage; } } [Field("NSSharingServiceNameUseAsDesktopPicture", "AppKit")] internal static NSString NSSharingServiceNameUseAsDesktopPicture { get { if (_NSSharingServiceNameUseAsDesktopPicture == null) { _NSSharingServiceNameUseAsDesktopPicture = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNameUseAsDesktopPicture"); } return _NSSharingServiceNameUseAsDesktopPicture; } } [Field("NSSharingServiceNamePostImageOnFlickr", "AppKit")] internal static NSString NSSharingServiceNamePostImageOnFlickr { get { if (_NSSharingServiceNamePostImageOnFlickr == null) { _NSSharingServiceNamePostImageOnFlickr = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostImageOnFlickr"); } return _NSSharingServiceNamePostImageOnFlickr; } } [Field("NSSharingServiceNamePostVideoOnVimeo", "AppKit")] internal static NSString NSSharingServiceNamePostVideoOnVimeo { get { if (_NSSharingServiceNamePostVideoOnVimeo == null) { _NSSharingServiceNamePostVideoOnVimeo = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostVideoOnVimeo"); } return _NSSharingServiceNamePostVideoOnVimeo; } } [Field("NSSharingServiceNamePostVideoOnYouku", "AppKit")] internal static NSString NSSharingServiceNamePostVideoOnYouku { get { if (_NSSharingServiceNamePostVideoOnYouku == null) { _NSSharingServiceNamePostVideoOnYouku = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostVideoOnYouku"); } return _NSSharingServiceNamePostVideoOnYouku; } } [Field("NSSharingServiceNamePostVideoOnTudou", "AppKit")] internal static NSString NSSharingServiceNamePostVideoOnTudou { get { if (_NSSharingServiceNamePostVideoOnTudou == null) { _NSSharingServiceNamePostVideoOnTudou = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSharingServiceNamePostVideoOnTudou"); } return _NSSharingServiceNamePostVideoOnTudou; } } public NSSharingServiceSourceFrameOnScreenForShareItem SourceFrameOnScreenForShareItem { get { return EnsureNSSharingServiceDelegate().sourceFrameOnScreenForShareItem; } set { EnsureNSSharingServiceDelegate().sourceFrameOnScreenForShareItem = value; } } public NSSharingServiceTransitionImageForShareItem TransitionImageForShareItem { get { return EnsureNSSharingServiceDelegate().transitionImageForShareItem; } set { EnsureNSSharingServiceDelegate().transitionImageForShareItem = value; } } public NSSharingServiceSourceWindowForShareItems SourceWindowForShareItems { get { return EnsureNSSharingServiceDelegate().sourceWindowForShareItems; } set { EnsureNSSharingServiceDelegate().sourceWindowForShareItems = value; } } public event EventHandler WillShareItems { add { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.willShareItems = (EventHandler)System.Delegate.Combine(nSSharingServiceDelegate.willShareItems, value); } remove { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.willShareItems = (EventHandler)System.Delegate.Remove(nSSharingServiceDelegate.willShareItems, value); } } public event EventHandler DidFailToShareItems { add { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.didFailToShareItems = (EventHandler)System.Delegate.Combine(nSSharingServiceDelegate.didFailToShareItems, value); } remove { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.didFailToShareItems = (EventHandler)System.Delegate.Remove(nSSharingServiceDelegate.didFailToShareItems, value); } } public event EventHandler DidShareItems { add { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.didShareItems = (EventHandler)System.Delegate.Combine(nSSharingServiceDelegate.didShareItems, value); } remove { _NSSharingServiceDelegate nSSharingServiceDelegate = EnsureNSSharingServiceDelegate(); nSSharingServiceDelegate.didShareItems = (EventHandler)System.Delegate.Remove(nSSharingServiceDelegate.didShareItems, value); } } public static NSSharingService GetSharingService(NSSharingServiceName service) { return service switch { NSSharingServiceName.PostOnFacebook => GetSharingService(NSSharingServiceNamePostOnFacebook), NSSharingServiceName.PostOnTwitter => GetSharingService(NSSharingServiceNamePostOnTwitter), NSSharingServiceName.PostOnSinaWeibo => GetSharingService(NSSharingServiceNamePostOnSinaWeibo), NSSharingServiceName.ComposeEmail => GetSharingService(NSSharingServiceNameComposeEmail), NSSharingServiceName.ComposeMessage => GetSharingService(NSSharingServiceNameComposeMessage), NSSharingServiceName.SendViaAirDrop => GetSharingService(NSSharingServiceNameSendViaAirDrop), NSSharingServiceName.AddToSafariReadingList => GetSharingService(NSSharingServiceNameAddToSafariReadingList), NSSharingServiceName.AddToIPhoto => GetSharingService(NSSharingServiceNameAddToIPhoto), NSSharingServiceName.AddToAperture => GetSharingService(NSSharingServiceNameAddToAperture), NSSharingServiceName.UseAsTwitterProfileImage => GetSharingService(NSSharingServiceNameUseAsTwitterProfileImage), NSSharingServiceName.UseAsDesktopPicture => GetSharingService(NSSharingServiceNameUseAsDesktopPicture), NSSharingServiceName.PostImageOnFlickr => GetSharingService(NSSharingServiceNamePostImageOnFlickr), NSSharingServiceName.PostVideoOnVimeo => GetSharingService(NSSharingServiceNamePostVideoOnVimeo), NSSharingServiceName.PostVideoOnYouku => GetSharingService(NSSharingServiceNamePostVideoOnYouku), NSSharingServiceName.PostVideoOnTudou => GetSharingService(NSSharingServiceNamePostVideoOnTudou), _ => null, }; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSharingService() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSharingService(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingService(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingService(IntPtr handle) : base(handle) { } [Export("sharingServicesForItems:")] public static NSSharingService[] SharingServicesForItems(NSObject[] items) { NSApplication.EnsureUIThread(); if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); NSSharingService[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSharingServicesForItems_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("sharingServiceNamed:")] public static NSSharingService GetSharingService(NSString serviceName) { NSApplication.EnsureUIThread(); if (serviceName == null) { throw new ArgumentNullException("serviceName"); } return (NSSharingService)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSharingServiceNamed_Handle, serviceName.Handle)); } [Export("initWithTitle:image:alternateImage:handler:")] public unsafe NSSharingService(string title, NSImage image, NSImage alternateImage, NSSharingServiceHandler handler) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (title == null) { throw new ArgumentNullException("title"); } if (image == null) { throw new ArgumentNullException("image"); } if (alternateImage == null) { throw new ArgumentNullException("alternateImage"); } if (handler == null) { throw new ArgumentNullException("handler"); } IntPtr arg = NSString.CreateNative(title); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSSharingServiceHandler.Handler, handler); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithTitleImageAlternateImageHandler_Handle, arg, image.Handle, alternateImage.Handle, (IntPtr)ptr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithTitleImageAlternateImageHandler_Handle, arg, image.Handle, alternateImage.Handle, (IntPtr)ptr); } NSString.ReleaseNative(arg); ptr->CleanupBlock(); } [Export("canPerformWithItems:")] public virtual bool CanPerformWithItems(NSObject[] items) { NSApplication.EnsureUIThread(); NSArray nSArray = ((items == null) ? null : NSArray.FromNSObjects(items)); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selCanPerformWithItems_Handle, nSArray?.Handle ?? IntPtr.Zero) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selCanPerformWithItems_Handle, nSArray?.Handle ?? IntPtr.Zero)); nSArray?.Dispose(); return result; } [Export("performWithItems:")] public virtual void PerformWithItems(NSObject[] items) { NSApplication.EnsureUIThread(); if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformWithItems_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformWithItems_Handle, nSArray.Handle); } nSArray.Dispose(); } private _NSSharingServiceDelegate EnsureNSSharingServiceDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSSharingServiceDelegate)) { nSObject = (WeakDelegate = new _NSSharingServiceDelegate()); } return (_NSSharingServiceDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Image_var = null; __mt_AlternateImage_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSharingServiceDelegate", true)] [Model] [MountainLion] public class NSSharingServiceDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSharingServiceDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSharingServiceDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServiceDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServiceDelegate(IntPtr handle) : base(handle) { } [Export("sharingService:willShareItems:")] public virtual void WillShareItems(NSSharingService sharingService, NSObject[] items) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingService:didFailToShareItems:error:")] public virtual void DidFailToShareItems(NSSharingService sharingService, NSObject[] items, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingService:didShareItems:")] public virtual void DidShareItems(NSSharingService sharingService, NSObject[] items) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingService:sourceFrameOnScreenForShareItem:")] public virtual CGRect SourceFrameOnScreenForShareItem(NSSharingService sharingService, NSPasteboardWriting item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingService:transitionImageForShareItem:contentRect:")] public virtual NSImage TransitionImageForShareItem(NSSharingService sharingService, NSPasteboardWriting item, CGRect contentRect) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingService:sourceWindowForShareItems:sharingContentScope:")] public virtual NSWindow SourceWindowForShareItems(NSSharingService sharingService, NSObject[] items, NSSharingContentScope sharingContentScope) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceDidFailToShareItemsEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSSharingServiceDidFailToShareItemsEventArgs : EventArgs { public NSObject[] Items { get; set; } public NSError Error { get; set; } public NSSharingServiceDidFailToShareItemsEventArgs(NSObject[] items, NSError error) { Items = items; Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceHandler.cs ================================================ namespace AppKit; public delegate void NSSharingServiceHandler(); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceItemsEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSSharingServiceItemsEventArgs : EventArgs { public NSObject[] Items { get; set; } public NSSharingServiceItemsEventArgs(NSObject[] items) { Items = items; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceName.cs ================================================ namespace AppKit; public enum NSSharingServiceName { PostOnFacebook, PostOnTwitter, PostOnSinaWeibo, ComposeEmail, ComposeMessage, SendViaAirDrop, AddToSafariReadingList, AddToIPhoto, AddToAperture, UseAsTwitterProfileImage, UseAsDesktopPicture, PostImageOnFlickr, PostVideoOnVimeo, PostVideoOnYouku, PostVideoOnTudou } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServicePicker.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSharingServicePicker", true)] [MountainLion] public class NSSharingServicePicker : NSObject { [Register] private sealed class _NSSharingServicePickerDelegate : NSSharingServicePickerDelegate { internal NSSharingServicePickerSharingServicesForItems sharingServicesForItems; internal NSSharingServicePickerDelegateForSharingService delegateForSharingService; internal EventHandler didChooseSharingService; [Preserve(Conditional = true)] public override NSSharingService[] SharingServicesForItems(NSSharingServicePicker sharingServicePicker, NSObject[] items, NSSharingService[] proposedServices) { NSSharingServicePickerSharingServicesForItems nSSharingServicePickerSharingServicesForItems = sharingServicesForItems; if (nSSharingServicePickerSharingServicesForItems != null) { return nSSharingServicePickerSharingServicesForItems(sharingServicePicker, items, proposedServices); } return proposedServices; } [Preserve(Conditional = true)] public override NSSharingServiceDelegate DelegateForSharingService(NSSharingServicePicker sharingServicePicker, NSSharingService sharingService) { return delegateForSharingService?.Invoke(sharingServicePicker, sharingService); } [Preserve(Conditional = true)] public override void DidChooseSharingService(NSSharingServicePicker sharingServicePicker, NSSharingService service) { EventHandler eventHandler = didChooseSharingService; if (eventHandler != null) { NSSharingServicePickerDidChooseSharingServiceEventArgs e = new NSSharingServicePickerDidChooseSharingServiceEventArgs(service); eventHandler(sharingServicePicker, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitWithItems_Handle = Selector.GetHandle("initWithItems:"); private static readonly IntPtr selShowRelativeToRectOfViewPreferredEdge_Handle = Selector.GetHandle("showRelativeToRect:ofView:preferredEdge:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSharingServicePicker"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSharingServicePickerDelegate Delegate { get { return WeakDelegate as NSSharingServicePickerDelegate; } set { WeakDelegate = value; } } public NSSharingServicePickerSharingServicesForItems SharingServicesForItems { get { return EnsureNSSharingServicePickerDelegate().sharingServicesForItems; } set { EnsureNSSharingServicePickerDelegate().sharingServicesForItems = value; } } public NSSharingServicePickerDelegateForSharingService DelegateForSharingService { get { return EnsureNSSharingServicePickerDelegate().delegateForSharingService; } set { EnsureNSSharingServicePickerDelegate().delegateForSharingService = value; } } public event EventHandler DidChooseSharingService { add { _NSSharingServicePickerDelegate nSSharingServicePickerDelegate = EnsureNSSharingServicePickerDelegate(); nSSharingServicePickerDelegate.didChooseSharingService = (EventHandler)System.Delegate.Combine(nSSharingServicePickerDelegate.didChooseSharingService, value); } remove { _NSSharingServicePickerDelegate nSSharingServicePickerDelegate = EnsureNSSharingServicePickerDelegate(); nSSharingServicePickerDelegate.didChooseSharingService = (EventHandler)System.Delegate.Remove(nSSharingServicePickerDelegate.didChooseSharingService, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSharingServicePicker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSharingServicePicker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServicePicker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServicePicker(IntPtr handle) : base(handle) { } [Export("initWithItems:")] public NSSharingServicePicker(NSObject[] items) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (items == null) { throw new ArgumentNullException("items"); } NSArray nSArray = NSArray.FromNSObjects(items); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithItems_Handle, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithItems_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("showRelativeToRect:ofView:preferredEdge:")] public virtual void ShowRelativeToRect(CGRect rect, NSView view, NSRectEdge preferredEdge) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_int(base.Handle, selShowRelativeToRectOfViewPreferredEdge_Handle, rect, view.Handle, (int)preferredEdge); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_int(base.SuperHandle, selShowRelativeToRectOfViewPreferredEdge_Handle, rect, view.Handle, (int)preferredEdge); } } private _NSSharingServicePickerDelegate EnsureNSSharingServicePickerDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSSharingServicePickerDelegate)) { nSObject = (WeakDelegate = new _NSSharingServicePickerDelegate()); } return (_NSSharingServicePickerDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServicePickerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSharingServicePickerDelegate", true)] [Model] [MountainLion] public class NSSharingServicePickerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSharingServicePickerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSharingServicePickerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServicePickerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSharingServicePickerDelegate(IntPtr handle) : base(handle) { } [Export("sharingServicePicker:sharingServicesForItems:proposedSharingServices:")] public virtual NSSharingService[] SharingServicesForItems(NSSharingServicePicker sharingServicePicker, NSObject[] items, NSSharingService[] proposedServices) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingServicePicker:delegateForSharingService:")] public virtual NSSharingServiceDelegate DelegateForSharingService(NSSharingServicePicker sharingServicePicker, NSSharingService sharingService) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("sharingServicePicker:didChooseSharingService:")] public virtual void DidChooseSharingService(NSSharingServicePicker sharingServicePicker, NSSharingService service) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServicePickerDelegateForSharingService.cs ================================================ namespace AppKit; public delegate NSSharingServiceDelegate NSSharingServicePickerDelegateForSharingService(NSSharingServicePicker sharingServicePicker, NSSharingService sharingService); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServicePickerDidChooseSharingServiceEventArgs.cs ================================================ using System; namespace AppKit; public class NSSharingServicePickerDidChooseSharingServiceEventArgs : EventArgs { public NSSharingService Service { get; set; } public NSSharingServicePickerDidChooseSharingServiceEventArgs(NSSharingService service) { Service = service; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServicePickerSharingServicesForItems.cs ================================================ using Foundation; namespace AppKit; public delegate NSSharingService[] NSSharingServicePickerSharingServicesForItems(NSSharingServicePicker sharingServicePicker, NSObject[] items, NSSharingService[] proposedServices); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceSourceFrameOnScreenForShareItem.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGRect NSSharingServiceSourceFrameOnScreenForShareItem(NSSharingService sharingService, NSPasteboardWriting item); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceSourceWindowForShareItems.cs ================================================ using Foundation; namespace AppKit; public delegate NSWindow NSSharingServiceSourceWindowForShareItems(NSSharingService sharingService, NSObject[] items, NSSharingContentScope sharingContentScope); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSharingServiceTransitionImageForShareItem.cs ================================================ using CoreGraphics; namespace AppKit; public delegate NSImage NSSharingServiceTransitionImageForShareItem(NSSharingService sharingService, NSPasteboardWriting item, CGRect contentRect); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSlider.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSlider", true)] public class NSSlider : NSControl { private static readonly IntPtr selIsVerticalHandle = Selector.GetHandle("isVertical"); private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selAltIncrementValueHandle = Selector.GetHandle("altIncrementValue"); private static readonly IntPtr selSetAltIncrementValue_Handle = Selector.GetHandle("setAltIncrementValue:"); private static readonly IntPtr selTitleCellHandle = Selector.GetHandle("titleCell"); private static readonly IntPtr selSetTitleCell_Handle = Selector.GetHandle("setTitleCell:"); private static readonly IntPtr selTitleColorHandle = Selector.GetHandle("titleColor"); private static readonly IntPtr selSetTitleColor_Handle = Selector.GetHandle("setTitleColor:"); private static readonly IntPtr selTitleFontHandle = Selector.GetHandle("titleFont"); private static readonly IntPtr selSetTitleFont_Handle = Selector.GetHandle("setTitleFont:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selKnobThicknessHandle = Selector.GetHandle("knobThickness"); private static readonly IntPtr selSetKnobThickness_Handle = Selector.GetHandle("setKnobThickness:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selNumberOfTickMarksHandle = Selector.GetHandle("numberOfTickMarks"); private static readonly IntPtr selSetNumberOfTickMarks_Handle = Selector.GetHandle("setNumberOfTickMarks:"); private static readonly IntPtr selTickMarkPositionHandle = Selector.GetHandle("tickMarkPosition"); private static readonly IntPtr selSetTickMarkPosition_Handle = Selector.GetHandle("setTickMarkPosition:"); private static readonly IntPtr selAllowsTickMarkValuesOnlyHandle = Selector.GetHandle("allowsTickMarkValuesOnly"); private static readonly IntPtr selSetAllowsTickMarkValuesOnly_Handle = Selector.GetHandle("setAllowsTickMarkValuesOnly:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selAcceptsFirstMouse_Handle = Selector.GetHandle("acceptsFirstMouse:"); private static readonly IntPtr selTickMarkValueAtIndex_Handle = Selector.GetHandle("tickMarkValueAtIndex:"); private static readonly IntPtr selRectOfTickMarkAtIndex_Handle = Selector.GetHandle("rectOfTickMarkAtIndex:"); private static readonly IntPtr selIndexOfTickMarkAtPoint_Handle = Selector.GetHandle("indexOfTickMarkAtPoint:"); private static readonly IntPtr selClosestTickMarkValueToValue_Handle = Selector.GetHandle("closestTickMarkValueToValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSlider"); private object __mt_TitleCell_var; private object __mt_TitleColor_var; private object __mt_TitleFont_var; private object __mt_Image_var; public override IntPtr ClassHandle => class_ptr; public virtual long IsVertical { [Export("isVertical")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIsVerticalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIsVerticalHandle); } } public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual double AltIncrementValue { [Export("altIncrementValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAltIncrementValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAltIncrementValueHandle); } [Export("setAltIncrementValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAltIncrementValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAltIncrementValue_Handle, value); } } } public virtual NSObject TitleCell { [Export("titleCell")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_TitleCell_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleCellHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleCellHandle)))); } [Export("setTitleCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleCell_Handle, value.Handle); } __mt_TitleCell_var = value; } } public virtual NSColor TitleColor { [Export("titleColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TitleColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleColorHandle))))); } [Export("setTitleColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleColor_Handle, value.Handle); } __mt_TitleColor_var = value; } } public virtual NSFont TitleFont { [Export("titleFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_TitleFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleFontHandle))))); } [Export("setTitleFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleFont_Handle, value.Handle); } __mt_TitleFont_var = value; } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual double KnobThickness { [Export("knobThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKnobThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKnobThicknessHandle); } [Export("setKnobThickness:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetKnobThickness_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetKnobThickness_Handle, value); } } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual long TickMarksCount { [Export("numberOfTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfTickMarksHandle); } [Export("setNumberOfTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfTickMarks_Handle, value); } } } public virtual NSTickMarkPosition TickMarkPosition { [Export("tickMarkPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTickMarkPosition)Messaging.UInt64_objc_msgSend(base.Handle, selTickMarkPositionHandle); } return (NSTickMarkPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTickMarkPositionHandle); } [Export("setTickMarkPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTickMarkPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTickMarkPosition_Handle, (ulong)value); } } } public virtual bool AllowsTickMarkValuesOnly { [Export("allowsTickMarkValuesOnly")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsTickMarkValuesOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsTickMarkValuesOnlyHandle); } [Export("setAllowsTickMarkValuesOnly:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsTickMarkValuesOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsTickMarkValuesOnly_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSlider() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSlider(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSlider(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSlider(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSSlider(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("acceptsFirstMouse:")] public new virtual bool AcceptsFirstMouse(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAcceptsFirstMouse_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAcceptsFirstMouse_Handle, theEvent.Handle); } [Export("tickMarkValueAtIndex:")] public virtual double TickMarkValue(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selTickMarkValueAtIndex_Handle, index); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selTickMarkValueAtIndex_Handle, index); } [Export("rectOfTickMarkAtIndex:")] public virtual CGRect RectOfTick(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfTickMarkAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfTickMarkAtIndex_Handle, index); } return retval; } [Export("indexOfTickMarkAtPoint:")] public virtual long IndexOfTickMark(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selIndexOfTickMarkAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selIndexOfTickMarkAtPoint_Handle, point); } [Export("closestTickMarkValueToValue:")] public virtual double ClosestTickMarkValue(double value) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double(base.Handle, selClosestTickMarkValueToValue_Handle, value); } return Messaging.Double_objc_msgSendSuper_Double(base.SuperHandle, selClosestTickMarkValueToValue_Handle, value); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TitleCell_var = null; __mt_TitleColor_var = null; __mt_TitleFont_var = null; __mt_Image_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSliderCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSliderCell", true)] public class NSSliderCell : NSActionCell { private static readonly IntPtr selIsVerticalHandle = Selector.GetHandle("isVertical"); private static readonly IntPtr selTrackRectHandle = Selector.GetHandle("trackRect"); private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selAltIncrementValueHandle = Selector.GetHandle("altIncrementValue"); private static readonly IntPtr selSetAltIncrementValue_Handle = Selector.GetHandle("setAltIncrementValue:"); private static readonly IntPtr selTitleColorHandle = Selector.GetHandle("titleColor"); private static readonly IntPtr selSetTitleColor_Handle = Selector.GetHandle("setTitleColor:"); private static readonly IntPtr selTitleFontHandle = Selector.GetHandle("titleFont"); private static readonly IntPtr selSetTitleFont_Handle = Selector.GetHandle("setTitleFont:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selTitleCellHandle = Selector.GetHandle("titleCell"); private static readonly IntPtr selSetTitleCell_Handle = Selector.GetHandle("setTitleCell:"); private static readonly IntPtr selKnobThicknessHandle = Selector.GetHandle("knobThickness"); private static readonly IntPtr selSetKnobThickness_Handle = Selector.GetHandle("setKnobThickness:"); private static readonly IntPtr selSliderTypeHandle = Selector.GetHandle("sliderType"); private static readonly IntPtr selSetSliderType_Handle = Selector.GetHandle("setSliderType:"); private static readonly IntPtr selNumberOfTickMarksHandle = Selector.GetHandle("numberOfTickMarks"); private static readonly IntPtr selSetNumberOfTickMarks_Handle = Selector.GetHandle("setNumberOfTickMarks:"); private static readonly IntPtr selTickMarkPositionHandle = Selector.GetHandle("tickMarkPosition"); private static readonly IntPtr selSetTickMarkPosition_Handle = Selector.GetHandle("setTickMarkPosition:"); private static readonly IntPtr selAllowsTickMarkValuesOnlyHandle = Selector.GetHandle("allowsTickMarkValuesOnly"); private static readonly IntPtr selSetAllowsTickMarkValuesOnly_Handle = Selector.GetHandle("setAllowsTickMarkValuesOnly:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selPrefersTrackingUntilMouseUpHandle = Selector.GetHandle("prefersTrackingUntilMouseUp"); private static readonly IntPtr selKnobRectFlipped_Handle = Selector.GetHandle("knobRectFlipped:"); private static readonly IntPtr selDrawKnob_Handle = Selector.GetHandle("drawKnob:"); private static readonly IntPtr selDrawKnobHandle = Selector.GetHandle("drawKnob"); private static readonly IntPtr selDrawBarInsideFlipped_Handle = Selector.GetHandle("drawBarInside:flipped:"); private static readonly IntPtr selTickMarkValueAtIndex_Handle = Selector.GetHandle("tickMarkValueAtIndex:"); private static readonly IntPtr selRectOfTickMarkAtIndex_Handle = Selector.GetHandle("rectOfTickMarkAtIndex:"); private static readonly IntPtr selIndexOfTickMarkAtPoint_Handle = Selector.GetHandle("indexOfTickMarkAtPoint:"); private static readonly IntPtr selClosestTickMarkValueToValue_Handle = Selector.GetHandle("closestTickMarkValueToValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSliderCell"); private object __mt_TitleColor_var; private object __mt_TitleFont_var; private object __mt_TitleCell_var; public override IntPtr ClassHandle => class_ptr; public virtual int IsVertical { [Export("isVertical")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIsVerticalHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIsVerticalHandle); } } public virtual CGRect TrackRect { [Export("trackRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selTrackRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTrackRectHandle); } return retval; } } public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual double AltIncrementValue { [Export("altIncrementValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAltIncrementValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAltIncrementValueHandle); } [Export("setAltIncrementValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAltIncrementValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAltIncrementValue_Handle, value); } } } public virtual NSColor TitleColor { [Export("titleColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TitleColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleColorHandle))))); } [Export("setTitleColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleColor_Handle, value.Handle); } __mt_TitleColor_var = value; } } public virtual NSFont TitleFont { [Export("titleFont")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_TitleFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleFontHandle))))); } [Export("setTitleFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleFont_Handle, value.Handle); } __mt_TitleFont_var = value; } } public new virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject TitleCell { [Export("titleCell")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_TitleCell_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleCellHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleCellHandle)))); } [Export("setTitleCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleCell_Handle, value.Handle); } __mt_TitleCell_var = value; } } public virtual double KnobThickness { [Export("knobThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selKnobThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selKnobThicknessHandle); } [Export("setKnobThickness:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetKnobThickness_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetKnobThickness_Handle, value); } } } public virtual NSSliderType SliderType { [Export("sliderType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSliderType)Messaging.UInt64_objc_msgSend(base.Handle, selSliderTypeHandle); } return (NSSliderType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSliderTypeHandle); } [Export("setSliderType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetSliderType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetSliderType_Handle, (ulong)value); } } } public virtual long TickMarks { [Export("numberOfTickMarks")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfTickMarksHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfTickMarksHandle); } [Export("setNumberOfTickMarks:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfTickMarks_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfTickMarks_Handle, value); } } } public virtual NSTickMarkPosition TickMarkPosition { [Export("tickMarkPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTickMarkPosition)Messaging.UInt64_objc_msgSend(base.Handle, selTickMarkPositionHandle); } return (NSTickMarkPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTickMarkPositionHandle); } [Export("setTickMarkPosition:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTickMarkPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTickMarkPosition_Handle, (ulong)value); } } } public virtual bool AllowsTickMarkValuesOnly { [Export("allowsTickMarkValuesOnly")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsTickMarkValuesOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsTickMarkValuesOnlyHandle); } [Export("setAllowsTickMarkValuesOnly:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsTickMarkValuesOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsTickMarkValuesOnly_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSliderCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSliderCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSliderCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSliderCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSSliderCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSSliderCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("prefersTrackingUntilMouseUp")] public new static bool PrefersTrackingUntilMouseUp() { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selPrefersTrackingUntilMouseUpHandle); } [Export("knobRectFlipped:")] public virtual CGRect KnobRectFlipped(bool flipped) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_bool(out retval, base.Handle, selKnobRectFlipped_Handle, flipped); } else { Messaging.CGRect_objc_msgSendSuper_stret_bool(out retval, base.SuperHandle, selKnobRectFlipped_Handle, flipped); } return retval; } [Export("drawKnob:")] public virtual void DrawKnob(CGRect knobRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawKnob_Handle, knobRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawKnob_Handle, knobRect); } } [Export("drawKnob")] public virtual void DrawKnob() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDrawKnobHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDrawKnobHandle); } } [Export("drawBarInside:flipped:")] public virtual void DrawBar(CGRect aRect, bool flipped) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool(base.Handle, selDrawBarInsideFlipped_Handle, aRect, flipped); } else { Messaging.void_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selDrawBarInsideFlipped_Handle, aRect, flipped); } } [Export("tickMarkValueAtIndex:")] public virtual double TickMarkValue(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selTickMarkValueAtIndex_Handle, index); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selTickMarkValueAtIndex_Handle, index); } [Export("rectOfTickMarkAtIndex:")] public virtual CGRect RectOfTickMark(long index) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfTickMarkAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfTickMarkAtIndex_Handle, index); } return retval; } [Export("indexOfTickMarkAtPoint:")] public virtual long IndexOfTickMark(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selIndexOfTickMarkAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selIndexOfTickMarkAtPoint_Handle, point); } [Export("closestTickMarkValueToValue:")] public virtual double ClosestTickMarkValue(double value) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double(base.Handle, selClosestTickMarkValueToValue_Handle, value); } return Messaging.Double_objc_msgSendSuper_Double(base.SuperHandle, selClosestTickMarkValueToValue_Handle, value); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TitleColor_var = null; __mt_TitleFont_var = null; __mt_TitleCell_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSliderType.cs ================================================ namespace AppKit; public enum NSSliderType : ulong { Linear, Circular } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSound.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSound", true)] public class NSSound : NSObject { [Register] private sealed class _NSSoundDelegate : NSSoundDelegate { internal EventHandler didFinishPlaying; [Preserve(Conditional = true)] public override void DidFinishPlaying(NSSound sound, bool finished) { EventHandler eventHandler = didFinishPlaying; if (eventHandler != null) { NSSoundFinishedEventArgs e = new NSSoundFinishedEventArgs(finished); eventHandler(sound, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selSetCurrentTime_Handle = Selector.GetHandle("setCurrentTime:"); private static readonly IntPtr selLoopsHandle = Selector.GetHandle("loops"); private static readonly IntPtr selSetLoops_Handle = Selector.GetHandle("setLoops:"); private static readonly IntPtr selPlaybackDeviceIdentifierHandle = Selector.GetHandle("playbackDeviceIdentifier"); private static readonly IntPtr selSetPlaybackDeviceIdentifier_Handle = Selector.GetHandle("setPlaybackDeviceIdentifier:"); private static readonly IntPtr selChannelMappingHandle = Selector.GetHandle("channelMapping"); private static readonly IntPtr selSetChannelMapping_Handle = Selector.GetHandle("setChannelMapping:"); private static readonly IntPtr selSoundNamed_Handle = Selector.GetHandle("soundNamed:"); private static readonly IntPtr selInitWithContentsOfURLByReference_Handle = Selector.GetHandle("initWithContentsOfURL:byReference:"); private static readonly IntPtr selInitWithContentsOfFileByReference_Handle = Selector.GetHandle("initWithContentsOfFile:byReference:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selCanInitWithPasteboard_Handle = Selector.GetHandle("canInitWithPasteboard:"); private static readonly IntPtr selSoundUnfilteredTypesHandle = Selector.GetHandle("soundUnfilteredTypes"); private static readonly IntPtr selInitWithPasteboard_Handle = Selector.GetHandle("initWithPasteboard:"); private static readonly IntPtr selWriteToPasteboard_Handle = Selector.GetHandle("writeToPasteboard:"); private static readonly IntPtr selPlayHandle = Selector.GetHandle("play"); private static readonly IntPtr selPauseHandle = Selector.GetHandle("pause"); private static readonly IntPtr selResumeHandle = Selector.GetHandle("resume"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr selIsPlayingHandle = Selector.GetHandle("isPlaying"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSound"); private object __mt_WeakDelegate_var; private object __mt_ChannelMapping_var; public string Name { get { return GetName(); } set { SetName(value); } } public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSoundDelegate Delegate { get { return WeakDelegate as NSSoundDelegate; } set { WeakDelegate = value; } } public virtual float Volume { [Export("volume")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } public virtual double CurrentTime { [Export("currentTime")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCurrentTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCurrentTimeHandle); } [Export("setCurrentTime:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCurrentTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCurrentTime_Handle, value); } } } public virtual bool Loops { [Export("loops")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selLoopsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selLoopsHandle); } [Export("setLoops:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLoops_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLoops_Handle, value); } } } public virtual string PlaybackDeviceID { [Export("playbackDeviceIdentifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaybackDeviceIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaybackDeviceIdentifierHandle)); } [Export("setPlaybackDeviceIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaybackDeviceIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaybackDeviceIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject ChannelMapping { [Export("channelMapping")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ChannelMapping_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChannelMappingHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChannelMappingHandle)))); } [Export("setChannelMapping:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetChannelMapping_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetChannelMapping_Handle, value.Handle); } __mt_ChannelMapping_var = value; } } public event EventHandler DidFinishPlaying { add { _NSSoundDelegate nSSoundDelegate = EnsureNSSoundDelegate(); nSSoundDelegate.didFinishPlaying = (EventHandler)System.Delegate.Combine(nSSoundDelegate.didFinishPlaying, value); } remove { _NSSoundDelegate nSSoundDelegate = EnsureNSSoundDelegate(); nSSoundDelegate.didFinishPlaying = (EventHandler)System.Delegate.Remove(nSSoundDelegate.didFinishPlaying, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSound(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSound(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSound(IntPtr handle) : base(handle) { } [Export("soundNamed:")] public static NSSound FromName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSSound result = (NSSound)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSoundNamed_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithContentsOfURL:byReference:")] public NSSound(NSUrl url, bool byRef) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitWithContentsOfURLByReference_Handle, url.Handle, byRef); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitWithContentsOfURLByReference_Handle, url.Handle, byRef); } } [Export("initWithContentsOfFile:byReference:")] public NSSound(string path, bool byRef) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitWithContentsOfFileByReference_Handle, arg, byRef); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitWithContentsOfFileByReference_Handle, arg, byRef); } NSString.ReleaseNative(arg); } [Export("initWithData:")] public NSSound(NSData data) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("canInitWithPasteboard:")] public static bool CanCreateFromPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithPasteboard_Handle, pasteboard.Handle); } [Export("soundUnfilteredTypes")] public static string[] SoundUnfilteredTypes() { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selSoundUnfilteredTypesHandle)); } [Export("initWithPasteboard:")] public NSSound(NSPasteboard pasteboard) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPasteboard_Handle, pasteboard.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPasteboard_Handle, pasteboard.Handle); } } [Export("writeToPasteboard:")] public virtual void WriteToPasteboard(NSPasteboard pasteboard) { NSApplication.EnsureUIThread(); if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWriteToPasteboard_Handle, pasteboard.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToPasteboard_Handle, pasteboard.Handle); } } [Export("play")] public virtual bool Play() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPlayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPlayHandle); } [Export("pause")] public virtual bool Pause() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPauseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPauseHandle); } [Export("resume")] public virtual bool Resume() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selResumeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selResumeHandle); } [Export("stop")] public virtual bool Stop() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selStopHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selStopHandle); } [Export("isPlaying")] public virtual bool IsPlaying() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPlayingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPlayingHandle); } [Export("duration")] public virtual double Duration() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } [Export("name")] protected virtual string GetName() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] protected virtual bool SetName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg)); NSString.ReleaseNative(arg); return result; } private _NSSoundDelegate EnsureNSSoundDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSSoundDelegate)) { nSObject = (WeakDelegate = new _NSSoundDelegate()); } return (_NSSoundDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_ChannelMapping_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSoundDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSoundDelegate", true)] [Model] public class NSSoundDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSoundDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSoundDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSoundDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSoundDelegate(IntPtr handle) : base(handle) { } [Export("sound:didFinishPlaying:")] public virtual void DidFinishPlaying(NSSound sound, bool finished) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSoundFinishedEventArgs.cs ================================================ using System; namespace AppKit; public class NSSoundFinishedEventArgs : EventArgs { public bool Finished { get; set; } public NSSoundFinishedEventArgs(bool finished) { Finished = finished; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpeechBoundary.cs ================================================ namespace AppKit; public enum NSSpeechBoundary : ulong { Immediate, hWord, Sentence } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpeechRecognizer.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSpeechRecognizer", true)] public class NSSpeechRecognizer : NSObject { private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCommandsHandle = Selector.GetHandle("commands"); private static readonly IntPtr selSetCommands_Handle = Selector.GetHandle("setCommands:"); private static readonly IntPtr selDisplayedCommandsTitleHandle = Selector.GetHandle("displayedCommandsTitle"); private static readonly IntPtr selSetDisplayedCommandsTitle_Handle = Selector.GetHandle("setDisplayedCommandsTitle:"); private static readonly IntPtr selListensInForegroundOnlyHandle = Selector.GetHandle("listensInForegroundOnly"); private static readonly IntPtr selSetListensInForegroundOnly_Handle = Selector.GetHandle("setListensInForegroundOnly:"); private static readonly IntPtr selBlocksOtherRecognizersHandle = Selector.GetHandle("blocksOtherRecognizers"); private static readonly IntPtr selSetBlocksOtherRecognizers_Handle = Selector.GetHandle("setBlocksOtherRecognizers:"); private static readonly IntPtr selStartListeningHandle = Selector.GetHandle("startListening"); private static readonly IntPtr selStopListeningHandle = Selector.GetHandle("stopListening"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSpeechRecognizer"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSpeechRecognizerDelegate Delegate { get { return WeakDelegate as NSSpeechRecognizerDelegate; } set { WeakDelegate = value; } } public virtual string[] Commands { [Export("commands")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCommandsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommandsHandle)); } [Export("setCommands:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCommands_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCommands_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string DisplayedCommandsTitle { [Export("displayedCommandsTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDisplayedCommandsTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDisplayedCommandsTitleHandle)); } [Export("setDisplayedCommandsTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDisplayedCommandsTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDisplayedCommandsTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ListensInForegroundOnly { [Export("listensInForegroundOnly")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selListensInForegroundOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selListensInForegroundOnlyHandle); } [Export("setListensInForegroundOnly:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetListensInForegroundOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetListensInForegroundOnly_Handle, value); } } } public virtual bool BlocksOtherRecognizers { [Export("blocksOtherRecognizers")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBlocksOtherRecognizersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBlocksOtherRecognizersHandle); } [Export("setBlocksOtherRecognizers:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBlocksOtherRecognizers_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBlocksOtherRecognizers_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSpeechRecognizer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSpeechRecognizer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechRecognizer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechRecognizer(IntPtr handle) : base(handle) { } [Export("startListening")] public virtual void StartListening() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartListeningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartListeningHandle); } } [Export("stopListening")] public virtual void StopListening() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopListeningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopListeningHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpeechRecognizerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSpeechRecognizerDelegate", true)] [Model] public class NSSpeechRecognizerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSpeechRecognizerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSpeechRecognizerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechRecognizerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechRecognizerDelegate(IntPtr handle) : base(handle) { } [Export("speechRecognizer:didRecognizeCommand:")] public virtual void DidRecognizeCommand(NSSpeechRecognizer sender, string command) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpeechSynthesizer.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSpeechSynthesizer", true)] public class NSSpeechSynthesizer : NSObject { private static readonly IntPtr selIsSpeakingHandle = Selector.GetHandle("isSpeaking"); private static readonly IntPtr selIsAnyApplicationSpeakingHandle = Selector.GetHandle("isAnyApplicationSpeaking"); private static readonly IntPtr selDefaultVoiceHandle = Selector.GetHandle("defaultVoice"); private static readonly IntPtr selAvailableVoicesHandle = Selector.GetHandle("availableVoices"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selRateHandle = Selector.GetHandle("rate"); private static readonly IntPtr selSetRate_Handle = Selector.GetHandle("setRate:"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr selUsesFeedbackWindowHandle = Selector.GetHandle("usesFeedbackWindow"); private static readonly IntPtr selSetUsesFeedbackWindow_Handle = Selector.GetHandle("setUsesFeedbackWindow:"); private static readonly IntPtr selInitWithVoice_Handle = Selector.GetHandle("initWithVoice:"); private static readonly IntPtr selStartSpeakingString_Handle = Selector.GetHandle("startSpeakingString:"); private static readonly IntPtr selStartSpeakingStringToURL_Handle = Selector.GetHandle("startSpeakingString:toURL:"); private static readonly IntPtr selStopSpeakingHandle = Selector.GetHandle("stopSpeaking"); private static readonly IntPtr selStopSpeakingAtBoundary_Handle = Selector.GetHandle("stopSpeakingAtBoundary:"); private static readonly IntPtr selPauseSpeakingAtBoundary_Handle = Selector.GetHandle("pauseSpeakingAtBoundary:"); private static readonly IntPtr selContinueSpeakingHandle = Selector.GetHandle("continueSpeaking"); private static readonly IntPtr selAddSpeechDictionary_Handle = Selector.GetHandle("addSpeechDictionary:"); private static readonly IntPtr selPhonemesFromText_Handle = Selector.GetHandle("phonemesFromText:"); private static readonly IntPtr selObjectForPropertyError_Handle = Selector.GetHandle("objectForProperty:error:"); private static readonly IntPtr selSetObjectForPropertyError_Handle = Selector.GetHandle("setObject:forProperty:error:"); private static readonly IntPtr selAttributesForVoice_Handle = Selector.GetHandle("attributesForVoice:"); private static readonly IntPtr selVoiceHandle = Selector.GetHandle("voice"); private static readonly IntPtr selSetVoice_Handle = Selector.GetHandle("setVoice:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSpeechSynthesizer"); private object __mt_WeakDelegate_var; public string Voice { get { return GetVoice(); } set { SetVoice(value); } } public override IntPtr ClassHandle => class_ptr; public virtual bool IsSpeaking { [Export("isSpeaking")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSpeakingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSpeakingHandle); } } public static bool IsAnyApplicationSpeaking { [Export("isAnyApplicationSpeaking")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selIsAnyApplicationSpeakingHandle); } } public static string DefaultVoice { [Export("defaultVoice")] get { NSApplication.EnsureUIThread(); return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultVoiceHandle)); } } public static string[] AvailableVoices { [Export("availableVoices")] get { NSApplication.EnsureUIThread(); return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAvailableVoicesHandle)); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSpeechSynthesizerDelegate Delegate { get { return WeakDelegate as NSSpeechSynthesizerDelegate; } set { WeakDelegate = value; } } public virtual float Rate { [Export("rate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRateHandle); } [Export("setRate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRate_Handle, value); } } } public virtual float Volume { [Export("volume")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } public virtual bool UsesFeedbackWindow { [Export("usesFeedbackWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesFeedbackWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesFeedbackWindowHandle); } [Export("setUsesFeedbackWindow:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesFeedbackWindow_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesFeedbackWindow_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSpeechSynthesizer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSpeechSynthesizer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechSynthesizer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechSynthesizer(IntPtr handle) : base(handle) { } [Export("initWithVoice:")] public NSSpeechSynthesizer(string voice) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (voice == null) { throw new ArgumentNullException("voice"); } IntPtr arg = NSString.CreateNative(voice); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithVoice_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithVoice_Handle, arg); } NSString.ReleaseNative(arg); } [Export("startSpeakingString:")] public virtual bool StartSpeakingString(string theString) { NSApplication.EnsureUIThread(); if (theString == null) { throw new ArgumentNullException("theString"); } IntPtr arg = NSString.CreateNative(theString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selStartSpeakingString_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selStartSpeakingString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("startSpeakingString:toURL:")] public virtual bool StartSpeakingStringtoURL(string theString, NSUrl url) { NSApplication.EnsureUIThread(); if (theString == null) { throw new ArgumentNullException("theString"); } if (url == null) { throw new ArgumentNullException("url"); } IntPtr arg = NSString.CreateNative(theString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStartSpeakingStringToURL_Handle, arg, url.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selStartSpeakingStringToURL_Handle, arg, url.Handle)); NSString.ReleaseNative(arg); return result; } [Export("stopSpeaking")] public virtual void StopSpeaking() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopSpeakingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopSpeakingHandle); } } [Export("stopSpeakingAtBoundary:")] public virtual void StopSpeaking(NSSpeechBoundary boundary) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selStopSpeakingAtBoundary_Handle, (ulong)boundary); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selStopSpeakingAtBoundary_Handle, (ulong)boundary); } } [Export("pauseSpeakingAtBoundary:")] public virtual void PauseSpeaking(NSSpeechBoundary boundary) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selPauseSpeakingAtBoundary_Handle, (ulong)boundary); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selPauseSpeakingAtBoundary_Handle, (ulong)boundary); } } [Export("continueSpeaking")] public virtual void ContinueSpeaking() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selContinueSpeakingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selContinueSpeakingHandle); } } [Export("addSpeechDictionary:")] public virtual void AddSpeechDictionary(NSDictionary speechDictionary) { NSApplication.EnsureUIThread(); if (speechDictionary == null) { throw new ArgumentNullException("speechDictionary"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSpeechDictionary_Handle, speechDictionary.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSpeechDictionary_Handle, speechDictionary.Handle); } } [Export("phonemesFromText:")] public virtual string PhonemesFromText(string text) { NSApplication.EnsureUIThread(); if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPhonemesFromText_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPhonemesFromText_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("objectForProperty:error:")] public virtual NSObject ObjectForProperty(string property, out NSError outError) { NSApplication.EnsureUIThread(); if (property == null) { throw new ArgumentNullException("property"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(property); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selObjectForPropertyError_Handle, arg, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selObjectForPropertyError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setObject:forProperty:error:")] public virtual bool SetObjectforProperty(NSObject theObject, string property, out NSError outError) { NSApplication.EnsureUIThread(); if (theObject == null) { throw new ArgumentNullException("theObject"); } if (property == null) { throw new ArgumentNullException("property"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(property); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetObjectForPropertyError_Handle, theObject.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetObjectForPropertyError_Handle, theObject.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("attributesForVoice:")] public static NSDictionary AttributesForVoice(string voice) { NSApplication.EnsureUIThread(); if (voice == null) { throw new ArgumentNullException("voice"); } IntPtr arg = NSString.CreateNative(voice); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAttributesForVoice_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("voice")] protected virtual string GetVoice() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVoiceHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVoiceHandle)); } [Export("setVoice:")] protected virtual bool SetVoice(string voice) { NSApplication.EnsureUIThread(); if (voice == null) { throw new ArgumentNullException("voice"); } IntPtr arg = NSString.CreateNative(voice); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVoice_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetVoice_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpeechSynthesizerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSpeechSynthesizerDelegate", true)] [Model] public class NSSpeechSynthesizerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSpeechSynthesizerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSpeechSynthesizerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechSynthesizerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpeechSynthesizerDelegate(IntPtr handle) : base(handle) { } [Export("speechSynthesizer:didFinishSpeaking:")] public virtual void DidFinishSpeaking(NSSpeechSynthesizer sender, bool finishedSpeaking) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("speechSynthesizer:willSpeakWord:ofString:")] public virtual void WillSpeakWord(NSSpeechSynthesizer sender, NSRange wordCharacterRange, string ofString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("speechSynthesizer:willSpeakPhoneme:")] public virtual void WillSpeakPhoneme(NSSpeechSynthesizer sender, short phonemeOpcode) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("speechSynthesizer:didEncounterErrorAtIndex:ofString:message:")] public virtual void DidEncounterError(NSSpeechSynthesizer sender, uint characterIndex, string theString, string message) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("speechSynthesizer:didEncounterSyncMessage:")] public virtual void DidEncounterSyncMessage(NSSpeechSynthesizer sender, string message) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSpellChecker.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSpellChecker", true)] public class NSSpellChecker : NSObject { private static readonly IntPtr selSharedSpellCheckerHandle = Selector.GetHandle("sharedSpellChecker"); private static readonly IntPtr selSharedSpellCheckerExistsHandle = Selector.GetHandle("sharedSpellCheckerExists"); private static readonly IntPtr selUniqueSpellDocumentTagHandle = Selector.GetHandle("uniqueSpellDocumentTag"); private static readonly IntPtr selUserReplacementsDictionaryHandle = Selector.GetHandle("userReplacementsDictionary"); private static readonly IntPtr selSpellingPanelHandle = Selector.GetHandle("spellingPanel"); private static readonly IntPtr selSubstitutionsPanelHandle = Selector.GetHandle("substitutionsPanel"); private static readonly IntPtr selAvailableLanguagesHandle = Selector.GetHandle("availableLanguages"); private static readonly IntPtr selUserPreferredLanguagesHandle = Selector.GetHandle("userPreferredLanguages"); private static readonly IntPtr selAccessoryViewHandle = Selector.GetHandle("accessoryView"); private static readonly IntPtr selSetAccessoryView_Handle = Selector.GetHandle("setAccessoryView:"); private static readonly IntPtr selSubstitutionsPanelAccessoryViewControllerHandle = Selector.GetHandle("substitutionsPanelAccessoryViewController"); private static readonly IntPtr selSetSubstitutionsPanelAccessoryViewController_Handle = Selector.GetHandle("setSubstitutionsPanelAccessoryViewController:"); private static readonly IntPtr selAutomaticallyIdentifiesLanguagesHandle = Selector.GetHandle("automaticallyIdentifiesLanguages"); private static readonly IntPtr selSetAutomaticallyIdentifiesLanguages_Handle = Selector.GetHandle("setAutomaticallyIdentifiesLanguages:"); private static readonly IntPtr selCheckSpellingOfStringStartingAtLanguageWrapInSpellDocumentWithTagWordCount_Handle = Selector.GetHandle("checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:"); private static readonly IntPtr selCheckSpellingOfStringStartingAt_Handle = Selector.GetHandle("checkSpellingOfString:startingAt:"); private static readonly IntPtr selCountWordsInStringLanguage_Handle = Selector.GetHandle("countWordsInString:language:"); private static readonly IntPtr selCheckGrammarOfStringStartingAtLanguageWrapInSpellDocumentWithTagDetails_Handle = Selector.GetHandle("checkGrammarOfString:startingAt:language:wrap:inSpellDocumentWithTag:details:"); private static readonly IntPtr selCheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount_Handle = Selector.GetHandle("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:"); private static readonly IntPtr selMenuForResultStringOptionsAtLocationInView_Handle = Selector.GetHandle("menuForResult:string:options:atLocation:inView:"); private static readonly IntPtr selUserQuotesArrayForLanguage_Handle = Selector.GetHandle("userQuotesArrayForLanguage:"); private static readonly IntPtr selUpdateSpellingPanelWithMisspelledWord_Handle = Selector.GetHandle("updateSpellingPanelWithMisspelledWord:"); private static readonly IntPtr selUpdateSpellingPanelWithGrammarStringDetail_Handle = Selector.GetHandle("updateSpellingPanelWithGrammarString:detail:"); private static readonly IntPtr selUpdatePanelsHandle = Selector.GetHandle("updatePanels"); private static readonly IntPtr selIgnoreWordInSpellDocumentWithTag_Handle = Selector.GetHandle("ignoreWord:inSpellDocumentWithTag:"); private static readonly IntPtr selIgnoredWordsInSpellDocumentWithTag_Handle = Selector.GetHandle("ignoredWordsInSpellDocumentWithTag:"); private static readonly IntPtr selSetIgnoredWordsInSpellDocumentWithTag_Handle = Selector.GetHandle("setIgnoredWords:inSpellDocumentWithTag:"); private static readonly IntPtr selGuessesForWordRangeInStringLanguageInSpellDocumentWithTag_Handle = Selector.GetHandle("guessesForWordRange:inString:language:inSpellDocumentWithTag:"); private static readonly IntPtr selCompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag_Handle = Selector.GetHandle("completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:"); private static readonly IntPtr selCloseSpellDocumentWithTag_Handle = Selector.GetHandle("closeSpellDocumentWithTag:"); private static readonly IntPtr selSetWordFieldStringValue_Handle = Selector.GetHandle("setWordFieldStringValue:"); private static readonly IntPtr selLearnWord_Handle = Selector.GetHandle("learnWord:"); private static readonly IntPtr selHasLearnedWord_Handle = Selector.GetHandle("hasLearnedWord:"); private static readonly IntPtr selUnlearnWord_Handle = Selector.GetHandle("unlearnWord:"); private static readonly IntPtr selLanguageHandle = Selector.GetHandle("language"); private static readonly IntPtr selSetLanguage_Handle = Selector.GetHandle("setLanguage:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSpellChecker"); private static object __mt_SharedSpellChecker_var_static; private object __mt_UserReplacementsDictionary_var; private object __mt_SpellingPanel_var; private object __mt_SubstitutionsPanel_var; private object __mt_AccessoryView_var; private object __mt_SubstitutionsPanelAccessoryViewController_var; public string Language { get { return GetLanguage(); } set { SetLanguage(value); } } public override IntPtr ClassHandle => class_ptr; public static NSSpellChecker SharedSpellChecker { [Export("sharedSpellChecker")] get { NSApplication.EnsureUIThread(); return (NSSpellChecker)(__mt_SharedSpellChecker_var_static = (NSSpellChecker)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedSpellCheckerHandle))); } } public static bool SharedSpellCheckerExists { [Export("sharedSpellCheckerExists")] get { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selSharedSpellCheckerExistsHandle); } } public static long UniqueSpellDocumentTag { [Export("uniqueSpellDocumentTag")] get { NSApplication.EnsureUIThread(); return Messaging.Int64_objc_msgSend(class_ptr, selUniqueSpellDocumentTagHandle); } } public virtual NSDictionary UserReplacementsDictionary { [Export("userReplacementsDictionary")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_UserReplacementsDictionary_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserReplacementsDictionaryHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserReplacementsDictionaryHandle))))); } } public virtual NSPanel SpellingPanel { [Export("spellingPanel")] get { NSApplication.EnsureUIThread(); return (NSPanel)(__mt_SpellingPanel_var = ((!IsDirectBinding) ? ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSpellingPanelHandle))) : ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSpellingPanelHandle))))); } } public virtual NSPanel SubstitutionsPanel { [Export("substitutionsPanel")] get { NSApplication.EnsureUIThread(); return (NSPanel)(__mt_SubstitutionsPanel_var = ((!IsDirectBinding) ? ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubstitutionsPanelHandle))) : ((NSPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSubstitutionsPanelHandle))))); } } public virtual string[] AvailableLanguages { [Export("availableLanguages")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableLanguagesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableLanguagesHandle)); } } public virtual string[] UserPreferredLanguages { [Export("userPreferredLanguages")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserPreferredLanguagesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserPreferredLanguagesHandle)); } } public virtual NSView AccessoryView { [Export("accessoryView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_AccessoryView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessoryViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessoryViewHandle))))); } [Export("setAccessoryView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessoryView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_AccessoryView_var = value; } } public virtual NSViewController SubstitutionsPanelAccessoryViewController { [Export("substitutionsPanelAccessoryViewController")] get { NSApplication.EnsureUIThread(); return (NSViewController)(__mt_SubstitutionsPanelAccessoryViewController_var = ((!IsDirectBinding) ? ((NSViewController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubstitutionsPanelAccessoryViewControllerHandle))) : ((NSViewController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSubstitutionsPanelAccessoryViewControllerHandle))))); } [Export("setSubstitutionsPanelAccessoryViewController:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubstitutionsPanelAccessoryViewController_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubstitutionsPanelAccessoryViewController_Handle, value.Handle); } __mt_SubstitutionsPanelAccessoryViewController_var = value; } } public virtual bool AutomaticallyIdentifiesLanguages { [Export("automaticallyIdentifiesLanguages")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticallyIdentifiesLanguagesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticallyIdentifiesLanguagesHandle); } [Export("setAutomaticallyIdentifiesLanguages:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticallyIdentifiesLanguages_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticallyIdentifiesLanguages_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSpellChecker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSpellChecker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpellChecker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSpellChecker(IntPtr handle) : base(handle) { } [Export("checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:")] public virtual NSRange CheckSpelling(string stringToCheck, long startingOffset, string language, bool wrapFlag, long documentTag, out long wordCount) { NSApplication.EnsureUIThread(); if (stringToCheck == null) { throw new ArgumentNullException("stringToCheck"); } if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(stringToCheck); IntPtr arg2 = NSString.CreateNative(language); NSRange result = ((!IsDirectBinding) ? Messaging.NSRange_objc_msgSendSuper_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(base.SuperHandle, selCheckSpellingOfStringStartingAtLanguageWrapInSpellDocumentWithTagWordCount_Handle, arg, startingOffset, arg2, wrapFlag, documentTag, out wordCount) : Messaging.NSRange_objc_msgSend_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(base.Handle, selCheckSpellingOfStringStartingAtLanguageWrapInSpellDocumentWithTagWordCount_Handle, arg, startingOffset, arg2, wrapFlag, documentTag, out wordCount)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("checkSpellingOfString:startingAt:")] public virtual NSRange CheckSpelling(string stringToCheck, long startingOffset) { NSApplication.EnsureUIThread(); if (stringToCheck == null) { throw new ArgumentNullException("stringToCheck"); } IntPtr arg = NSString.CreateNative(stringToCheck); NSRange result = ((!IsDirectBinding) ? Messaging.NSRange_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selCheckSpellingOfStringStartingAt_Handle, arg, startingOffset) : Messaging.NSRange_objc_msgSend_IntPtr_Int64(base.Handle, selCheckSpellingOfStringStartingAt_Handle, arg, startingOffset)); NSString.ReleaseNative(arg); return result; } [Export("countWordsInString:language:")] public virtual long CountWords(string stringToCount, string language) { NSApplication.EnsureUIThread(); if (stringToCount == null) { throw new ArgumentNullException("stringToCount"); } if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(stringToCount); IntPtr arg2 = NSString.CreateNative(language); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCountWordsInStringLanguage_Handle, arg, arg2) : Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selCountWordsInStringLanguage_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("checkGrammarOfString:startingAt:language:wrap:inSpellDocumentWithTag:details:")] public virtual NSRange CheckGrammar(string stringToCheck, int startingOffset, string language, bool wrapFlag, long documentTag, NSDictionary[] details) { NSApplication.EnsureUIThread(); if (stringToCheck == null) { throw new ArgumentNullException("stringToCheck"); } if (language == null) { throw new ArgumentNullException("language"); } if (details == null) { throw new ArgumentNullException("details"); } IntPtr arg = NSString.CreateNative(stringToCheck); IntPtr arg2 = NSString.CreateNative(language); NSArray nSArray = NSArray.FromNSObjects(details); NSRange result = ((!IsDirectBinding) ? Messaging.NSRange_objc_msgSendSuper_IntPtr_int_IntPtr_bool_Int64_IntPtr(base.SuperHandle, selCheckGrammarOfStringStartingAtLanguageWrapInSpellDocumentWithTagDetails_Handle, arg, startingOffset, arg2, wrapFlag, documentTag, nSArray.Handle) : Messaging.NSRange_objc_msgSend_IntPtr_int_IntPtr_bool_Int64_IntPtr(base.Handle, selCheckGrammarOfStringStartingAtLanguageWrapInSpellDocumentWithTagDetails_Handle, arg, startingOffset, arg2, wrapFlag, documentTag, nSArray.Handle)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray.Dispose(); return result; } [Export("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:")] public virtual NSTextCheckingResult[] CheckString(string stringToCheck, NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options, long tag, out NSOrthography orthography, out long wordCount) { NSApplication.EnsureUIThread(); if (stringToCheck == null) { throw new ArgumentNullException("stringToCheck"); } if (options == null) { throw new ArgumentNullException("options"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(stringToCheck); NSTextCheckingResult[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr_Int64_IntPtr_out_Int64(base.SuperHandle, selCheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount_Handle, arg, range, (ulong)checkingTypes, options.Handle, tag, intPtr, out wordCount)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr_Int64_IntPtr_out_Int64(base.Handle, selCheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount_Handle, arg, range, (ulong)checkingTypes, options.Handle, tag, intPtr, out wordCount))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); orthography = ((intPtr2 != IntPtr.Zero) ? ((NSOrthography)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("menuForResult:string:options:atLocation:inView:")] public virtual NSMenu MenuForResults(NSTextCheckingResult result, string checkedString, NSDictionary options, CGPoint location, NSView view) { NSApplication.EnsureUIThread(); if (result == null) { throw new ArgumentNullException("result"); } if (checkedString == null) { throw new ArgumentNullException("checkedString"); } if (options == null) { throw new ArgumentNullException("options"); } if (view == null) { throw new ArgumentNullException("view"); } IntPtr arg = NSString.CreateNative(checkedString); NSMenu result2 = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_CGPoint_IntPtr(base.SuperHandle, selMenuForResultStringOptionsAtLocationInView_Handle, result.Handle, arg, options.Handle, location, view.Handle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_CGPoint_IntPtr(base.Handle, selMenuForResultStringOptionsAtLocationInView_Handle, result.Handle, arg, options.Handle, location, view.Handle)))); NSString.ReleaseNative(arg); return result2; } [Export("userQuotesArrayForLanguage:")] public virtual string[] UserQuotesArrayForLanguage(string language) { NSApplication.EnsureUIThread(); if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(language); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selUserQuotesArrayForLanguage_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selUserQuotesArrayForLanguage_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("updateSpellingPanelWithMisspelledWord:")] public virtual void UpdateSpellingPanelWithMisspelledWord(string word) { NSApplication.EnsureUIThread(); if (word == null) { throw new ArgumentNullException("word"); } IntPtr arg = NSString.CreateNative(word); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUpdateSpellingPanelWithMisspelledWord_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUpdateSpellingPanelWithMisspelledWord_Handle, arg); } NSString.ReleaseNative(arg); } [Export("updateSpellingPanelWithGrammarString:detail:")] public virtual void UpdateSpellingPanelWithGrammarl(string theString, NSDictionary detail) { NSApplication.EnsureUIThread(); if (theString == null) { throw new ArgumentNullException("theString"); } if (detail == null) { throw new ArgumentNullException("detail"); } IntPtr arg = NSString.CreateNative(theString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selUpdateSpellingPanelWithGrammarStringDetail_Handle, arg, detail.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUpdateSpellingPanelWithGrammarStringDetail_Handle, arg, detail.Handle); } NSString.ReleaseNative(arg); } [Export("updatePanels")] public virtual void UpdatePanels() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdatePanelsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdatePanelsHandle); } } [Export("ignoreWord:inSpellDocumentWithTag:")] public virtual void IgnoreWord(string wordToIgnore, long documentTag) { NSApplication.EnsureUIThread(); if (wordToIgnore == null) { throw new ArgumentNullException("wordToIgnore"); } IntPtr arg = NSString.CreateNative(wordToIgnore); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selIgnoreWordInSpellDocumentWithTag_Handle, arg, documentTag); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selIgnoreWordInSpellDocumentWithTag_Handle, arg, documentTag); } NSString.ReleaseNative(arg); } [Export("ignoredWordsInSpellDocumentWithTag:")] public virtual string[] IgnoredWords(long documentTag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selIgnoredWordsInSpellDocumentWithTag_Handle, documentTag)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selIgnoredWordsInSpellDocumentWithTag_Handle, documentTag)); } [Export("setIgnoredWords:inSpellDocumentWithTag:")] public virtual void SetIgnoredWords(string[] words, long documentTag) { NSApplication.EnsureUIThread(); if (words == null) { throw new ArgumentNullException("words"); } NSArray nSArray = NSArray.FromStrings(words); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selSetIgnoredWordsInSpellDocumentWithTag_Handle, nSArray.Handle, documentTag); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selSetIgnoredWordsInSpellDocumentWithTag_Handle, nSArray.Handle, documentTag); } nSArray.Dispose(); } [Export("guessesForWordRange:inString:language:inSpellDocumentWithTag:")] public virtual string[] GuessesForWordRange(NSRange range, string theString, string language, long documentTag) { NSApplication.EnsureUIThread(); if (theString == null) { throw new ArgumentNullException("theString"); } if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(theString); IntPtr arg2 = NSString.CreateNative(language); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_NSRange_IntPtr_IntPtr_Int64(base.SuperHandle, selGuessesForWordRangeInStringLanguageInSpellDocumentWithTag_Handle, range, arg, arg2, documentTag)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_NSRange_IntPtr_IntPtr_Int64(base.Handle, selGuessesForWordRangeInStringLanguageInSpellDocumentWithTag_Handle, range, arg, arg2, documentTag))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("completionsForPartialWordRange:inString:language:inSpellDocumentWithTag:")] public virtual string[] CompletionsForPartialWordRange(NSRange range, string theString, string language, long documentTag) { NSApplication.EnsureUIThread(); if (theString == null) { throw new ArgumentNullException("theString"); } if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(theString); IntPtr arg2 = NSString.CreateNative(language); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_NSRange_IntPtr_IntPtr_Int64(base.SuperHandle, selCompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag_Handle, range, arg, arg2, documentTag)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_NSRange_IntPtr_IntPtr_Int64(base.Handle, selCompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag_Handle, range, arg, arg2, documentTag))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("closeSpellDocumentWithTag:")] public virtual void CloseSpellDocument(long documentTag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selCloseSpellDocumentWithTag_Handle, documentTag); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selCloseSpellDocumentWithTag_Handle, documentTag); } } [Export("setWordFieldStringValue:")] public virtual void SetWordFieldStringValue(string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWordFieldStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWordFieldStringValue_Handle, arg); } NSString.ReleaseNative(arg); } [Export("learnWord:")] public virtual void LearnWord(string word) { NSApplication.EnsureUIThread(); if (word == null) { throw new ArgumentNullException("word"); } IntPtr arg = NSString.CreateNative(word); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selLearnWord_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selLearnWord_Handle, arg); } NSString.ReleaseNative(arg); } [Export("hasLearnedWord:")] public virtual bool HasLearnedWord(string word) { NSApplication.EnsureUIThread(); if (word == null) { throw new ArgumentNullException("word"); } IntPtr arg = NSString.CreateNative(word); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasLearnedWord_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasLearnedWord_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("unlearnWord:")] public virtual void UnlearnWord(string word) { NSApplication.EnsureUIThread(); if (word == null) { throw new ArgumentNullException("word"); } IntPtr arg = NSString.CreateNative(word); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUnlearnWord_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnlearnWord_Handle, arg); } NSString.ReleaseNative(arg); } [Export("language")] protected virtual string GetLanguage() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLanguageHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLanguageHandle)); } [Export("setLanguage:")] protected virtual bool SetLanguage(string language) { NSApplication.EnsureUIThread(); if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(language); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLanguage_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetLanguage_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_UserReplacementsDictionary_var = null; __mt_SpellingPanel_var = null; __mt_SubstitutionsPanel_var = null; __mt_AccessoryView_var = null; __mt_SubstitutionsPanelAccessoryViewController_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSplitView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSplitView", true)] public class NSSplitView : NSView { private static readonly IntPtr selDividerColorHandle = Selector.GetHandle("dividerColor"); private static readonly IntPtr selDividerThicknessHandle = Selector.GetHandle("dividerThickness"); private static readonly IntPtr selIsVerticalHandle = Selector.GetHandle("isVertical"); private static readonly IntPtr selSetVertical_Handle = Selector.GetHandle("setVertical:"); private static readonly IntPtr selDividerStyleHandle = Selector.GetHandle("dividerStyle"); private static readonly IntPtr selSetDividerStyle_Handle = Selector.GetHandle("setDividerStyle:"); private static readonly IntPtr selAutosaveNameHandle = Selector.GetHandle("autosaveName"); private static readonly IntPtr selSetAutosaveName_Handle = Selector.GetHandle("setAutosaveName:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selDrawDividerInRect_Handle = Selector.GetHandle("drawDividerInRect:"); private static readonly IntPtr selAdjustSubviewsHandle = Selector.GetHandle("adjustSubviews"); private static readonly IntPtr selIsSubviewCollapsed_Handle = Selector.GetHandle("isSubviewCollapsed:"); private static readonly IntPtr selMinPossiblePositionOfDividerAtIndex_Handle = Selector.GetHandle("minPossiblePositionOfDividerAtIndex:"); private static readonly IntPtr selMaxPossiblePositionOfDividerAtIndex_Handle = Selector.GetHandle("maxPossiblePositionOfDividerAtIndex:"); private static readonly IntPtr selSetPositionOfDividerAtIndex_Handle = Selector.GetHandle("setPosition:ofDividerAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSplitView"); private object __mt_DividerColor_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColor DividerColor { [Export("dividerColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_DividerColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDividerColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDividerColorHandle))))); } } public virtual double DividerThickness { [Export("dividerThickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDividerThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDividerThicknessHandle); } } public virtual bool IsVertical { [Export("isVertical")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVerticalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVerticalHandle); } [Export("setVertical:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVertical_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVertical_Handle, value); } } } public virtual NSSplitViewDividerStyle DividerStyle { [Export("dividerStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSplitViewDividerStyle)Messaging.Int64_objc_msgSend(base.Handle, selDividerStyleHandle); } return (NSSplitViewDividerStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDividerStyleHandle); } [Export("setDividerStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDividerStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDividerStyle_Handle, (long)value); } } } public virtual string AutosaveName { [Export("autosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutosaveNameHandle)); } [Export("setAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSSplitViewDelegate Delegate { get { return WeakDelegate as NSSplitViewDelegate; } set { WeakDelegate = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSplitView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSplitView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSplitView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSplitView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSSplitView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("drawDividerInRect:")] public virtual void DrawDivider(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawDividerInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawDividerInRect_Handle, rect); } } [Export("adjustSubviews")] public virtual void AdjustSubviews() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAdjustSubviewsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAdjustSubviewsHandle); } } [Export("isSubviewCollapsed:")] public virtual bool IsSubviewCollapsed(NSView subview) { NSApplication.EnsureUIThread(); if (subview == null) { throw new ArgumentNullException("subview"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsSubviewCollapsed_Handle, subview.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsSubviewCollapsed_Handle, subview.Handle); } [Export("minPossiblePositionOfDividerAtIndex:")] public virtual double MinPositionOfDivider(long dividerIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selMinPossiblePositionOfDividerAtIndex_Handle, dividerIndex); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selMinPossiblePositionOfDividerAtIndex_Handle, dividerIndex); } [Export("maxPossiblePositionOfDividerAtIndex:")] public virtual double MaxPositionOfDivider(long dividerIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selMaxPossiblePositionOfDividerAtIndex_Handle, dividerIndex); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selMaxPossiblePositionOfDividerAtIndex_Handle, dividerIndex); } [Export("setPosition:ofDividerAtIndex:")] public virtual void SetPositionOfDivider(double position, long dividerIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Int64(base.Handle, selSetPositionOfDividerAtIndex_Handle, position, dividerIndex); } else { Messaging.void_objc_msgSendSuper_Double_Int64(base.SuperHandle, selSetPositionOfDividerAtIndex_Handle, position, dividerIndex); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DividerColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSplitViewDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSSplitViewDelegate", true)] [Model] public class NSSplitViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSplitViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSplitViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSplitViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSplitViewDelegate(IntPtr handle) : base(handle) { } [Export("splitView:canCollapseSubview:")] public virtual bool CanCollapse(NSSplitView splitView, NSView subview) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:")] public virtual bool ShouldCollapseForDoubleClick(NSSplitView splitView, NSView subview, long doubleClickAtDividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:constrainMinCoordinate:ofSubviewAt:")] public virtual double SetMinCoordinateOfSubview(NSSplitView splitView, double proposedMinimumPosition, long subviewDividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:constrainMaxCoordinate:ofSubviewAt:")] public virtual double SetMaxCoordinateOfSubview(NSSplitView splitView, double proposedMaximumPosition, long subviewDividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:constrainSplitPosition:ofSubviewAt:")] public virtual double ConstrainSplitPosition(NSSplitView splitView, double proposedPosition, long subviewDividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:resizeSubviewsWithOldSize:")] public virtual void Resize(NSSplitView splitView, CGSize oldSize) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:shouldAdjustSizeOfSubview:")] public virtual bool ShouldAdjustSize(NSSplitView splitView, NSView view) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:shouldHideDividerAtIndex:")] public virtual bool ShouldHideDivider(NSSplitView splitView, long dividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:")] public virtual CGRect GetEffectiveRect(NSSplitView splitView, CGRect proposedEffectiveRect, CGRect drawnRect, long dividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitView:additionalEffectiveRectOfDividerAtIndex:")] public virtual CGRect GetAdditionalEffectiveRect(NSSplitView splitView, long dividerIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitViewWillResizeSubviews:")] public virtual void SplitViewWillResizeSubviews(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("splitViewDidResizeSubviews:")] public virtual void DidResizeSubviews(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSplitViewDividerStyle.cs ================================================ namespace AppKit; public enum NSSplitViewDividerStyle : long { Thick = 1L, Thin, PaneSplitter } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSStatusBar.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSStatusBar", true)] public class NSStatusBar : NSObject { private static readonly IntPtr selSystemStatusBarHandle = Selector.GetHandle("systemStatusBar"); private static readonly IntPtr selIsVerticalHandle = Selector.GetHandle("isVertical"); private static readonly IntPtr selThicknessHandle = Selector.GetHandle("thickness"); private static readonly IntPtr selStatusItemWithLength_Handle = Selector.GetHandle("statusItemWithLength:"); private static readonly IntPtr selRemoveStatusItem_Handle = Selector.GetHandle("removeStatusItem:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSStatusBar"); private static object __mt_SystemStatusBar_var_static; public override IntPtr ClassHandle => class_ptr; public static NSStatusBar SystemStatusBar { [Export("systemStatusBar")] get { NSApplication.EnsureUIThread(); return (NSStatusBar)(__mt_SystemStatusBar_var_static = (NSStatusBar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSystemStatusBarHandle))); } } public virtual bool IsVertical { [Export("isVertical")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVerticalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVerticalHandle); } } public virtual double Thickness { [Export("thickness")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selThicknessHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selThicknessHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSStatusBar() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSStatusBar(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStatusBar(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStatusBar(IntPtr handle) : base(handle) { } [Export("statusItemWithLength:")] public virtual NSStatusItem CreateStatusItem(double length) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSStatusItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selStatusItemWithLength_Handle, length)); } return (NSStatusItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selStatusItemWithLength_Handle, length)); } [Export("removeStatusItem:")] public virtual void RemoveStatusItem(NSStatusItem item) { NSApplication.EnsureUIThread(); if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveStatusItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveStatusItem_Handle, item.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSStatusItem.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSStatusItem", true)] public class NSStatusItem : NSObject { private static readonly IntPtr selStatusBarHandle = Selector.GetHandle("statusBar"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selSetLength_Handle = Selector.GetHandle("setLength:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selAttributedTitleHandle = Selector.GetHandle("attributedTitle"); private static readonly IntPtr selSetAttributedTitle_Handle = Selector.GetHandle("setAttributedTitle:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selAlternateImageHandle = Selector.GetHandle("alternateImage"); private static readonly IntPtr selSetAlternateImage_Handle = Selector.GetHandle("setAlternateImage:"); private static readonly IntPtr selMenuHandle = Selector.GetHandle("menu"); private static readonly IntPtr selSetMenu_Handle = Selector.GetHandle("setMenu:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selToolTipHandle = Selector.GetHandle("toolTip"); private static readonly IntPtr selSetToolTip_Handle = Selector.GetHandle("setToolTip:"); private static readonly IntPtr selHighlightModeHandle = Selector.GetHandle("highlightMode"); private static readonly IntPtr selSetHighlightMode_Handle = Selector.GetHandle("setHighlightMode:"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selSendActionOn_Handle = Selector.GetHandle("sendActionOn:"); private static readonly IntPtr selPopUpStatusItemMenu_Handle = Selector.GetHandle("popUpStatusItemMenu:"); private static readonly IntPtr selDrawStatusBarBackgroundInRectWithHighlight_Handle = Selector.GetHandle("drawStatusBarBackgroundInRect:withHighlight:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSStatusItem"); private object __mt_StatusBar_var; private object __mt_Target_var; private object __mt_AttributedTitle_var; private object __mt_Image_var; private object __mt_AlternateImage_var; private object __mt_Menu_var; private object __mt_View_var; public override IntPtr ClassHandle => class_ptr; public virtual NSStatusBar StatusBar { [Export("statusBar")] get { NSApplication.EnsureUIThread(); return (NSStatusBar)(__mt_StatusBar_var = ((!IsDirectBinding) ? ((NSStatusBar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStatusBarHandle))) : ((NSStatusBar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStatusBarHandle))))); } } public virtual double Length { [Export("length")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } [Export("setLength:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLength_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLength_Handle, value); } } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString AttributedTitle { [Export("attributedTitle")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_AttributedTitle_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedTitleHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedTitleHandle))))); } [Export("setAttributedTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedTitle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedTitle_Handle, value.Handle); } __mt_AttributedTitle_var = value; } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } public virtual NSImage AlternateImage { [Export("alternateImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_AlternateImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateImageHandle))))); } [Export("setAlternateImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateImage_Handle, value.Handle); } __mt_AlternateImage_var = value; } } public virtual NSMenu Menu { [Export("menu")] get { NSApplication.EnsureUIThread(); return (NSMenu)(__mt_Menu_var = ((!IsDirectBinding) ? ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuHandle))) : ((NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuHandle))))); } [Export("setMenu:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenu_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenu_Handle, value.Handle); } __mt_Menu_var = value; } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual string ToolTip { [Export("toolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolTipHandle)); } [Export("setToolTip:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToolTip_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToolTip_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool HighlightMode { [Export("highlightMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHighlightModeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHighlightModeHandle); } [Export("setHighlightMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHighlightMode_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHighlightMode_Handle, value); } } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value.Handle); } __mt_View_var = value; } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] private NSStatusItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSStatusItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStatusItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStatusItem(IntPtr handle) : base(handle) { } [Export("sendActionOn:")] public virtual long SendActionOn(NSTouchPhase mask) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_UInt64(base.Handle, selSendActionOn_Handle, (ulong)mask); } return Messaging.Int64_objc_msgSendSuper_UInt64(base.SuperHandle, selSendActionOn_Handle, (ulong)mask); } [Export("popUpStatusItemMenu:")] public virtual void PopUpStatusItemMenu(NSMenu menu) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPopUpStatusItemMenu_Handle, menu.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPopUpStatusItemMenu_Handle, menu.Handle); } } [Export("drawStatusBarBackgroundInRect:withHighlight:")] public virtual void DrawStatusBarBackground(CGRect rect, bool highlight) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool(base.Handle, selDrawStatusBarBackgroundInRectWithHighlight_Handle, rect, highlight); } else { Messaging.void_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selDrawStatusBarBackgroundInRectWithHighlight_Handle, rect, highlight); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_StatusBar_var = null; __mt_Target_var = null; __mt_AttributedTitle_var = null; __mt_Image_var = null; __mt_AlternateImage_var = null; __mt_Menu_var = null; __mt_View_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSStepper.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSStepper", true)] public class NSStepper : NSControl { private static readonly IntPtr selMinValueHandle = Selector.GetHandle("minValue"); private static readonly IntPtr selSetMinValue_Handle = Selector.GetHandle("setMinValue:"); private static readonly IntPtr selMaxValueHandle = Selector.GetHandle("maxValue"); private static readonly IntPtr selSetMaxValue_Handle = Selector.GetHandle("setMaxValue:"); private static readonly IntPtr selIncrementHandle = Selector.GetHandle("increment"); private static readonly IntPtr selSetIncrement_Handle = Selector.GetHandle("setIncrement:"); private static readonly IntPtr selValueWrapsHandle = Selector.GetHandle("valueWraps"); private static readonly IntPtr selSetValueWraps_Handle = Selector.GetHandle("setValueWraps:"); private static readonly IntPtr selAutorepeatHandle = Selector.GetHandle("autorepeat"); private static readonly IntPtr selSetAutorepeat_Handle = Selector.GetHandle("setAutorepeat:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSStepper"); public override IntPtr ClassHandle => class_ptr; public virtual double MinValue { [Export("minValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinValueHandle); } [Export("setMinValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinValue_Handle, value); } } } public virtual double MaxValue { [Export("maxValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxValueHandle); } [Export("setMaxValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxValue_Handle, value); } } } public virtual double Increment { [Export("increment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selIncrementHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selIncrementHandle); } [Export("setIncrement:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetIncrement_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetIncrement_Handle, value); } } } public virtual bool ValueWraps { [Export("valueWraps")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selValueWrapsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selValueWrapsHandle); } [Export("setValueWraps:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetValueWraps_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetValueWraps_Handle, value); } } } public virtual bool Autorepeat { [Export("autorepeat")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutorepeatHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutorepeatHandle); } [Export("setAutorepeat:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutorepeat_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutorepeat_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSStepper() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSStepper(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStepper(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStepper(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSStepper(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSurfaceOrder.cs ================================================ namespace AppKit; public enum NSSurfaceOrder { AboveWindow = 1, BelowWindow = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSSystemDefinedEvents.cs ================================================ namespace AppKit; public enum NSSystemDefinedEvents : ulong { NSPowerOffEventType = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabState.cs ================================================ namespace AppKit; public enum NSTabState : ulong { Selected, Background, Pressed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTabView", true)] public class NSTabView : NSView { [Register] private sealed class _NSTabViewDelegate : NSTabViewDelegate { internal NSTabViewPredicate shouldSelectTabViewItem; internal EventHandler willSelect; internal EventHandler didSelect; internal EventHandler numberOfItemsChanged; [Preserve(Conditional = true)] public override bool ShouldSelectTabViewItem(NSTabView tabView, NSTabViewItem item) { return shouldSelectTabViewItem?.Invoke(tabView, item) ?? true; } [Preserve(Conditional = true)] public override void WillSelect(NSTabView tabView, NSTabViewItem item) { EventHandler eventHandler = willSelect; if (eventHandler != null) { NSTabViewItemEventArgs e = new NSTabViewItemEventArgs(item); eventHandler(tabView, e); } } [Preserve(Conditional = true)] public override void DidSelect(NSTabView tabView, NSTabViewItem item) { EventHandler eventHandler = didSelect; if (eventHandler != null) { NSTabViewItemEventArgs e = new NSTabViewItemEventArgs(item); eventHandler(tabView, e); } } [Preserve(Conditional = true)] public override void NumberOfItemsChanged(NSTabView tabView) { numberOfItemsChanged?.Invoke(tabView, EventArgs.Empty); } } private static readonly IntPtr selSelectedTabViewItemHandle = Selector.GetHandle("selectedTabViewItem"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selTabViewTypeHandle = Selector.GetHandle("tabViewType"); private static readonly IntPtr selSetTabViewType_Handle = Selector.GetHandle("setTabViewType:"); private static readonly IntPtr selTabViewItemsHandle = Selector.GetHandle("tabViewItems"); private static readonly IntPtr selAllowsTruncatedLabelsHandle = Selector.GetHandle("allowsTruncatedLabels"); private static readonly IntPtr selSetAllowsTruncatedLabels_Handle = Selector.GetHandle("setAllowsTruncatedLabels:"); private static readonly IntPtr selMinimumSizeHandle = Selector.GetHandle("minimumSize"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selControlTintHandle = Selector.GetHandle("controlTint"); private static readonly IntPtr selSetControlTint_Handle = Selector.GetHandle("setControlTint:"); private static readonly IntPtr selControlSizeHandle = Selector.GetHandle("controlSize"); private static readonly IntPtr selSetControlSize_Handle = Selector.GetHandle("setControlSize:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selContentRectHandle = Selector.GetHandle("contentRect"); private static readonly IntPtr selNumberOfTabViewItemsHandle = Selector.GetHandle("numberOfTabViewItems"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSelectTabViewItem_Handle = Selector.GetHandle("selectTabViewItem:"); private static readonly IntPtr selSelectTabViewItemAtIndex_Handle = Selector.GetHandle("selectTabViewItemAtIndex:"); private static readonly IntPtr selSelectTabViewItemWithIdentifier_Handle = Selector.GetHandle("selectTabViewItemWithIdentifier:"); private static readonly IntPtr selTakeSelectedTabViewItemFromSender_Handle = Selector.GetHandle("takeSelectedTabViewItemFromSender:"); private static readonly IntPtr selSelectFirstTabViewItem_Handle = Selector.GetHandle("selectFirstTabViewItem:"); private static readonly IntPtr selSelectLastTabViewItem_Handle = Selector.GetHandle("selectLastTabViewItem:"); private static readonly IntPtr selSelectNextTabViewItem_Handle = Selector.GetHandle("selectNextTabViewItem:"); private static readonly IntPtr selSelectPreviousTabViewItem_Handle = Selector.GetHandle("selectPreviousTabViewItem:"); private static readonly IntPtr selAddTabViewItem_Handle = Selector.GetHandle("addTabViewItem:"); private static readonly IntPtr selInsertTabViewItemAtIndex_Handle = Selector.GetHandle("insertTabViewItem:atIndex:"); private static readonly IntPtr selRemoveTabViewItem_Handle = Selector.GetHandle("removeTabViewItem:"); private static readonly IntPtr selTabViewItemAtPoint_Handle = Selector.GetHandle("tabViewItemAtPoint:"); private static readonly IntPtr selIndexOfTabViewItem_Handle = Selector.GetHandle("indexOfTabViewItem:"); private static readonly IntPtr selTabViewItemAtIndex_Handle = Selector.GetHandle("tabViewItemAtIndex:"); private static readonly IntPtr selIndexOfTabViewItemWithIdentifier_Handle = Selector.GetHandle("indexOfTabViewItemWithIdentifier:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTabView"); private object __mt_Selected_var; private object __mt_Font_var; private object __mt_Items_var; private object __mt_Delegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTabViewItem Selected { [Export("selectedTabViewItem")] get { NSApplication.EnsureUIThread(); return (NSTabViewItem)(__mt_Selected_var = ((!IsDirectBinding) ? ((NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedTabViewItemHandle))) : ((NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedTabViewItemHandle))))); } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSTabViewType TabViewType { [Export("tabViewType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTabViewType)Messaging.UInt64_objc_msgSend(base.Handle, selTabViewTypeHandle); } return (NSTabViewType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTabViewTypeHandle); } [Export("setTabViewType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTabViewType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTabViewType_Handle, (ulong)value); } } } public virtual NSTabViewItem[] Items { [Export("tabViewItems")] get { NSApplication.EnsureUIThread(); return (NSTabViewItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTabViewItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTabViewItemsHandle)))); } } public virtual bool AllowsTruncatedLabels { [Export("allowsTruncatedLabels")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsTruncatedLabelsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsTruncatedLabelsHandle); } [Export("setAllowsTruncatedLabels:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsTruncatedLabels_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsTruncatedLabels_Handle, value); } } } public virtual CGSize MinimumSize { [Export("minimumSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinimumSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinimumSizeHandle); } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSControlTint ControlTint { [Export("controlTint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlTint)Messaging.UInt64_objc_msgSend(base.Handle, selControlTintHandle); } return (NSControlTint)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlTintHandle); } [Export("setControlTint:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlTint_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlTint_Handle, (ulong)value); } } } public virtual NSControlSize ControlSize { [Export("controlSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSControlSize)Messaging.UInt64_objc_msgSend(base.Handle, selControlSizeHandle); } return (NSControlSize)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selControlSizeHandle); } [Export("setControlSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetControlSize_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetControlSize_Handle, (ulong)value); } } } public virtual NSTabViewDelegate Delegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSTabViewDelegate)(__mt_Delegate_var = ((!IsDirectBinding) ? ((NSTabViewDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSTabViewDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Delegate_var = value; } } public virtual CGRect ContentRect { [Export("contentRect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selContentRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selContentRectHandle); } return retval; } } public virtual long Count { [Export("numberOfTabViewItems")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfTabViewItemsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfTabViewItemsHandle); } } public NSTabViewPredicate ShouldSelectTabViewItem { get { return EnsureNSTabViewDelegate().shouldSelectTabViewItem; } set { EnsureNSTabViewDelegate().shouldSelectTabViewItem = value; } } public event EventHandler WillSelect { add { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.willSelect = (EventHandler)System.Delegate.Combine(nSTabViewDelegate.willSelect, value); } remove { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.willSelect = (EventHandler)System.Delegate.Remove(nSTabViewDelegate.willSelect, value); } } public event EventHandler DidSelect { add { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.didSelect = (EventHandler)System.Delegate.Combine(nSTabViewDelegate.didSelect, value); } remove { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.didSelect = (EventHandler)System.Delegate.Remove(nSTabViewDelegate.didSelect, value); } } public event EventHandler NumberOfItemsChanged { add { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.numberOfItemsChanged = (EventHandler)System.Delegate.Combine(nSTabViewDelegate.numberOfItemsChanged, value); } remove { _NSTabViewDelegate nSTabViewDelegate = EnsureNSTabViewDelegate(); nSTabViewDelegate.numberOfItemsChanged = (EventHandler)System.Delegate.Remove(nSTabViewDelegate.numberOfItemsChanged, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTabView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTabView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSTabView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("selectTabViewItem:")] public virtual void Select(NSTabViewItem tabViewItem) { NSApplication.EnsureUIThread(); if (tabViewItem == null) { throw new ArgumentNullException("tabViewItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectTabViewItem_Handle, tabViewItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectTabViewItem_Handle, tabViewItem.Handle); } } [Export("selectTabViewItemAtIndex:")] public virtual void SelectAt(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSelectTabViewItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSelectTabViewItemAtIndex_Handle, index); } } [Export("selectTabViewItemWithIdentifier:")] public virtual void Select(NSObject identifier) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectTabViewItemWithIdentifier_Handle, identifier.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectTabViewItemWithIdentifier_Handle, identifier.Handle); } } [Export("takeSelectedTabViewItemFromSender:")] public virtual void TakeSelectedTabViewItemFrom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeSelectedTabViewItemFromSender_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeSelectedTabViewItemFromSender_Handle, sender.Handle); } } [Export("selectFirstTabViewItem:")] public virtual void SelectFirst(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectFirstTabViewItem_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectFirstTabViewItem_Handle, sender.Handle); } } [Export("selectLastTabViewItem:")] public virtual void SelectLast(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectLastTabViewItem_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectLastTabViewItem_Handle, sender.Handle); } } [Export("selectNextTabViewItem:")] public virtual void SelectNext(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNextTabViewItem_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNextTabViewItem_Handle, sender.Handle); } } [Export("selectPreviousTabViewItem:")] public virtual void SelectPrevious(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectPreviousTabViewItem_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectPreviousTabViewItem_Handle, sender.Handle); } } [Export("addTabViewItem:")] public virtual void Add(NSTabViewItem tabViewItem) { NSApplication.EnsureUIThread(); if (tabViewItem == null) { throw new ArgumentNullException("tabViewItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddTabViewItem_Handle, tabViewItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddTabViewItem_Handle, tabViewItem.Handle); } _ = Items; } [Export("insertTabViewItem:atIndex:")] public virtual void Insert(NSTabViewItem tabViewItem, long index) { NSApplication.EnsureUIThread(); if (tabViewItem == null) { throw new ArgumentNullException("tabViewItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertTabViewItemAtIndex_Handle, tabViewItem.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertTabViewItemAtIndex_Handle, tabViewItem.Handle, index); } _ = Items; } [Export("removeTabViewItem:")] public virtual void Remove(NSTabViewItem tabViewItem) { NSApplication.EnsureUIThread(); if (tabViewItem == null) { throw new ArgumentNullException("tabViewItem"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTabViewItem_Handle, tabViewItem.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTabViewItem_Handle, tabViewItem.Handle); } _ = Items; } [Export("tabViewItemAtPoint:")] public virtual NSTabViewItem TabViewItemAtPoint(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selTabViewItemAtPoint_Handle, point)); } return (NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selTabViewItemAtPoint_Handle, point)); } [Export("indexOfTabViewItem:")] public virtual long IndexOf(NSTabViewItem tabViewItem) { NSApplication.EnsureUIThread(); if (tabViewItem == null) { throw new ArgumentNullException("tabViewItem"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfTabViewItem_Handle, tabViewItem.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfTabViewItem_Handle, tabViewItem.Handle); } [Export("tabViewItemAtIndex:")] public virtual NSTabViewItem Item(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selTabViewItemAtIndex_Handle, index)); } return (NSTabViewItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selTabViewItemAtIndex_Handle, index)); } [Export("indexOfTabViewItemWithIdentifier:")] public virtual long IndexOf(NSObject identifier) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selIndexOfTabViewItemWithIdentifier_Handle, identifier.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfTabViewItemWithIdentifier_Handle, identifier.Handle); } private _NSTabViewDelegate EnsureNSTabViewDelegate() { NSTabViewDelegate nSTabViewDelegate = Delegate; if (nSTabViewDelegate == null || !(nSTabViewDelegate is _NSTabViewDelegate)) { nSTabViewDelegate = (Delegate = new _NSTabViewDelegate()); } return (_NSTabViewDelegate)nSTabViewDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Selected_var = null; __mt_Font_var = null; __mt_Items_var = null; __mt_Delegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTabViewDelegate", true)] [Model] public class NSTabViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTabViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTabViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabViewDelegate(IntPtr handle) : base(handle) { } [Export("tabView:shouldSelectTabViewItem:")] public virtual bool ShouldSelectTabViewItem(NSTabView tabView, NSTabViewItem item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tabView:willSelectTabViewItem:")] public virtual void WillSelect(NSTabView tabView, NSTabViewItem item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tabView:didSelectTabViewItem:")] public virtual void DidSelect(NSTabView tabView, NSTabViewItem item) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tabViewDidChangeNumberOfTabViewItems:")] public virtual void NumberOfItemsChanged(NSTabView tabView) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabViewItem.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTabViewItem", true)] public class NSTabViewItem : NSObject { private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selInitialFirstResponderHandle = Selector.GetHandle("initialFirstResponder"); private static readonly IntPtr selSetInitialFirstResponder_Handle = Selector.GetHandle("setInitialFirstResponder:"); private static readonly IntPtr selLabelHandle = Selector.GetHandle("label"); private static readonly IntPtr selSetLabel_Handle = Selector.GetHandle("setLabel:"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selTabStateHandle = Selector.GetHandle("tabState"); private static readonly IntPtr selTabViewHandle = Selector.GetHandle("tabView"); private static readonly IntPtr selInitWithIdentifier_Handle = Selector.GetHandle("initWithIdentifier:"); private static readonly IntPtr selDrawLabelInRect_Handle = Selector.GetHandle("drawLabel:inRect:"); private static readonly IntPtr selSizeOfLabel_Handle = Selector.GetHandle("sizeOfLabel:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTabViewItem"); private object __mt_Identifier_var; private object __mt_View_var; private object __mt_InitialFirstResponder_var; private object __mt_Color_var; private object __mt_TabView_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Identifier_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)))); } [Export("setIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, value.Handle); } __mt_Identifier_var = value; } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value.Handle); } __mt_View_var = value; } } public virtual NSObject InitialFirstResponder { [Export("initialFirstResponder")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_InitialFirstResponder_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitialFirstResponderHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInitialFirstResponderHandle)))); } [Export("setInitialFirstResponder:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInitialFirstResponder_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInitialFirstResponder_Handle, value.Handle); } __mt_InitialFirstResponder_var = value; } } public virtual string Label { [Export("label")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLabelHandle)); } [Export("setLabel:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSColor Color { [Export("color")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_Color_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle))))); } [Export("setColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } __mt_Color_var = value; } } public virtual NSTabState TabState { [Export("tabState")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTabState)Messaging.UInt64_objc_msgSend(base.Handle, selTabStateHandle); } return (NSTabState)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTabStateHandle); } } public virtual NSTabView TabView { [Export("tabView")] get { NSApplication.EnsureUIThread(); return (NSTabView)(__mt_TabView_var = ((!IsDirectBinding) ? ((NSTabView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTabViewHandle))) : ((NSTabView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTabViewHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTabViewItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTabViewItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabViewItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTabViewItem(IntPtr handle) : base(handle) { } [Export("initWithIdentifier:")] public NSTabViewItem(NSObject identifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, identifier.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, identifier.Handle); } } [Export("drawLabel:inRect:")] public virtual void DrawLabel(bool shouldTruncateLabel, CGRect labelRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_CGRect(base.Handle, selDrawLabelInRect_Handle, shouldTruncateLabel, labelRect); } else { Messaging.void_objc_msgSendSuper_bool_CGRect(base.SuperHandle, selDrawLabelInRect_Handle, shouldTruncateLabel, labelRect); } } [Export("sizeOfLabel:")] public virtual CGSize SizeOfLabel(bool computeMin) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_bool(base.Handle, selSizeOfLabel_Handle, computeMin); } return Messaging.CGSize_objc_msgSendSuper_bool(base.SuperHandle, selSizeOfLabel_Handle, computeMin); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Identifier_var = null; __mt_View_var = null; __mt_InitialFirstResponder_var = null; __mt_Color_var = null; __mt_TabView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabViewItemEventArgs.cs ================================================ using System; namespace AppKit; public class NSTabViewItemEventArgs : EventArgs { public NSTabViewItem Item { get; set; } public NSTabViewItemEventArgs(NSTabViewItem item) { Item = item; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabViewPredicate.cs ================================================ namespace AppKit; public delegate bool NSTabViewPredicate(NSTabView tabView, NSTabViewItem item); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTabViewType.cs ================================================ namespace AppKit; public enum NSTabViewType : ulong { NSTopTabsBezelBorder, NSLeftTabsBezelBorder, NSBottomTabsBezelBorder, NSRightTabsBezelBorder, NSNoTabsBezelBorder, NSNoTabsLineBorder, NSNoTabsNoBorder } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableCellView.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableCellView", true)] public class NSTableCellView : NSView { private static readonly IntPtr selBackgroundStyleHandle = Selector.GetHandle("backgroundStyle"); private static readonly IntPtr selSetBackgroundStyle_Handle = Selector.GetHandle("setBackgroundStyle:"); private static readonly IntPtr selImageViewHandle = Selector.GetHandle("imageView"); private static readonly IntPtr selSetImageView_Handle = Selector.GetHandle("setImageView:"); private static readonly IntPtr selObjectValueHandle = Selector.GetHandle("objectValue"); private static readonly IntPtr selSetObjectValue_Handle = Selector.GetHandle("setObjectValue:"); private static readonly IntPtr selRowSizeStyleHandle = Selector.GetHandle("rowSizeStyle"); private static readonly IntPtr selSetRowSizeStyle_Handle = Selector.GetHandle("setRowSizeStyle:"); private static readonly IntPtr selTextFieldHandle = Selector.GetHandle("textField"); private static readonly IntPtr selSetTextField_Handle = Selector.GetHandle("setTextField:"); private static readonly IntPtr selDraggingImageComponentsHandle = Selector.GetHandle("draggingImageComponents"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableCellView"); private object __mt_ImageView_var; private object __mt_ObjectValue_var; private object __mt_TextField_var; private object __mt_DraggingImageComponents_var; public override IntPtr ClassHandle => class_ptr; public virtual NSBackgroundStyle BackgroundStyle { [Export("backgroundStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBackgroundStyle)Messaging.Int64_objc_msgSend(base.Handle, selBackgroundStyleHandle); } return (NSBackgroundStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBackgroundStyleHandle); } [Export("setBackgroundStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBackgroundStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBackgroundStyle_Handle, (long)value); } } } public virtual NSImageView ImageView { [Export("imageView", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSImageView)(__mt_ImageView_var = ((!IsDirectBinding) ? ((NSImageView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageViewHandle))) : ((NSImageView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageViewHandle))))); } [Export("setImageView:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImageView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImageView_Handle, value.Handle); } __mt_ImageView_var = value; } } public virtual NSObject ObjectValue { [Export("objectValue", ArgumentSemantic.Retain)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ObjectValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectValueHandle)))); } [Export("setObjectValue:", ArgumentSemantic.Retain)] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObjectValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObjectValue_Handle, value.Handle); } __mt_ObjectValue_var = value; } } public virtual NSTableViewRowSizeStyle RowSizeStyle { [Export("rowSizeStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSend(base.Handle, selRowSizeStyleHandle); } return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRowSizeStyleHandle); } [Export("setRowSizeStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetRowSizeStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetRowSizeStyle_Handle, (long)value); } } } public virtual NSTextField TextField { [Export("textField", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSTextField)(__mt_TextField_var = ((!IsDirectBinding) ? ((NSTextField)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextFieldHandle))) : ((NSTextField)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextFieldHandle))))); } [Export("setTextField:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextField_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextField_Handle, value.Handle); } __mt_TextField_var = value; } } public virtual NSArray DraggingImageComponents { [Export("draggingImageComponents", ArgumentSemantic.Retain)] get { NSApplication.EnsureUIThread(); return (NSArray)(__mt_DraggingImageComponents_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingImageComponentsHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingImageComponentsHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableCellView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableCellView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableCellView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableCellView(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ImageView_var = null; __mt_ObjectValue_var = null; __mt_TextField_var = null; __mt_DraggingImageComponents_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableColumn.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableColumn", true)] public class NSTableColumn : NSObject { private static readonly IntPtr selTableViewHandle = Selector.GetHandle("tableView"); private static readonly IntPtr selSetTableView_Handle = Selector.GetHandle("setTableView:"); private static readonly IntPtr selWidthHandle = Selector.GetHandle("width"); private static readonly IntPtr selSetWidth_Handle = Selector.GetHandle("setWidth:"); private static readonly IntPtr selMinWidthHandle = Selector.GetHandle("minWidth"); private static readonly IntPtr selSetMinWidth_Handle = Selector.GetHandle("setMinWidth:"); private static readonly IntPtr selMaxWidthHandle = Selector.GetHandle("maxWidth"); private static readonly IntPtr selSetMaxWidth_Handle = Selector.GetHandle("setMaxWidth:"); private static readonly IntPtr selHeaderCellHandle = Selector.GetHandle("headerCell"); private static readonly IntPtr selSetHeaderCell_Handle = Selector.GetHandle("setHeaderCell:"); private static readonly IntPtr selDataCellHandle = Selector.GetHandle("dataCell"); private static readonly IntPtr selSetDataCell_Handle = Selector.GetHandle("setDataCell:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selSortDescriptorPrototypeHandle = Selector.GetHandle("sortDescriptorPrototype"); private static readonly IntPtr selSetSortDescriptorPrototype_Handle = Selector.GetHandle("setSortDescriptorPrototype:"); private static readonly IntPtr selResizingMaskHandle = Selector.GetHandle("resizingMask"); private static readonly IntPtr selSetResizingMask_Handle = Selector.GetHandle("setResizingMask:"); private static readonly IntPtr selHeaderToolTipHandle = Selector.GetHandle("headerToolTip"); private static readonly IntPtr selSetHeaderToolTip_Handle = Selector.GetHandle("setHeaderToolTip:"); private static readonly IntPtr selIsHiddenHandle = Selector.GetHandle("isHidden"); private static readonly IntPtr selSetHidden_Handle = Selector.GetHandle("setHidden:"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selInitWithIdentifier_Handle = Selector.GetHandle("initWithIdentifier:"); private static readonly IntPtr selDataCellForRow_Handle = Selector.GetHandle("dataCellForRow:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableColumn"); private object __mt_TableView_var; private object __mt_HeaderCell_var; private object __mt_DataCell_var; private object __mt_SortDescriptorPrototype_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTableView TableView { [Export("tableView")] get { NSApplication.EnsureUIThread(); return (NSTableView)(__mt_TableView_var = ((!IsDirectBinding) ? ((NSTableView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTableViewHandle))) : ((NSTableView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTableViewHandle))))); } [Export("setTableView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTableView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTableView_Handle, value.Handle); } __mt_TableView_var = value; } } public virtual double Width { [Export("width")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWidthHandle); } [Export("setWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetWidth_Handle, value); } } } public virtual double MinWidth { [Export("minWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinWidthHandle); } [Export("setMinWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinWidth_Handle, value); } } } public virtual double MaxWidth { [Export("maxWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMaxWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMaxWidthHandle); } [Export("setMaxWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMaxWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMaxWidth_Handle, value); } } } public virtual NSCell HeaderCell { [Export("headerCell")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_HeaderCell_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHeaderCellHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHeaderCellHandle))))); } [Export("setHeaderCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHeaderCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHeaderCell_Handle, value.Handle); } __mt_HeaderCell_var = value; } } public virtual NSCell DataCell { [Export("dataCell")] get { NSApplication.EnsureUIThread(); return (NSCell)(__mt_DataCell_var = ((!IsDirectBinding) ? ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataCellHandle))) : ((NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataCellHandle))))); } [Export("setDataCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataCell_Handle, value.Handle); } __mt_DataCell_var = value; } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual NSSortDescriptor SortDescriptorPrototype { [Export("sortDescriptorPrototype")] get { NSApplication.EnsureUIThread(); return (NSSortDescriptor)(__mt_SortDescriptorPrototype_var = ((!IsDirectBinding) ? ((NSSortDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorPrototypeHandle))) : ((NSSortDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorPrototypeHandle))))); } [Export("setSortDescriptorPrototype:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptorPrototype_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptorPrototype_Handle, value?.Handle ?? IntPtr.Zero); } __mt_SortDescriptorPrototype_var = value; } } public virtual NSTableColumnResizing ResizingMask { [Export("resizingMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableColumnResizing)Messaging.UInt64_objc_msgSend(base.Handle, selResizingMaskHandle); } return (NSTableColumnResizing)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selResizingMaskHandle); } [Export("setResizingMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetResizingMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetResizingMask_Handle, (ulong)value); } } } public virtual string HeaderToolTip { [Export("headerToolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHeaderToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHeaderToolTipHandle)); } [Export("setHeaderToolTip:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHeaderToolTip_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHeaderToolTip_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Hidden { [Export("isHidden")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenHandle); } [Export("setHidden:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidden_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidden_Handle, value); } } } public virtual string Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } [Export("setIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableColumn() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableColumn(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableColumn(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableColumn(IntPtr handle) : base(handle) { } [Export("initWithIdentifier:")] public NSTableColumn(string identifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithIdentifier:")] public NSTableColumn(NSString identifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, identifier.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, identifier.Handle); } } [Export("initWithIdentifier:")] [Obsolete("", false)] public NSTableColumn(NSObject identifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, identifier.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, identifier.Handle); } } [Export("dataCellForRow:")] public virtual NSCell DataCellForRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selDataCellForRow_Handle, row)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selDataCellForRow_Handle, row)); } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TableView_var = null; __mt_HeaderCell_var = null; __mt_DataCell_var = null; __mt_SortDescriptorPrototype_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableColumnResizing.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTableColumnResizing : ulong { None = 0uL, Autoresizing = 1uL, UserResizingMask = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableHeaderCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableHeaderCell", true)] public class NSTableHeaderCell : NSTextFieldCell { private static readonly IntPtr selDrawSortIndicatorWithFrameInViewAscendingPriority_Handle = Selector.GetHandle("drawSortIndicatorWithFrame:inView:ascending:priority:"); private static readonly IntPtr selSortIndicatorRectForBounds_Handle = Selector.GetHandle("sortIndicatorRectForBounds:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableHeaderCell"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableHeaderCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableHeaderCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableHeaderCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableHeaderCell(IntPtr handle) : base(handle) { } [Export("drawSortIndicatorWithFrame:inView:ascending:priority:")] public virtual void DrawSortIndicator(CGRect cellFrame, NSView controlView, bool ascending, long priority) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_bool_Int64(base.Handle, selDrawSortIndicatorWithFrameInViewAscendingPriority_Handle, cellFrame, controlView.Handle, ascending, priority); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_bool_Int64(base.SuperHandle, selDrawSortIndicatorWithFrameInViewAscendingPriority_Handle, cellFrame, controlView.Handle, ascending, priority); } } [Export("sortIndicatorRectForBounds:")] public virtual CGRect GetSortIndicatorRect(CGRect theRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selSortIndicatorRectForBounds_Handle, theRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selSortIndicatorRectForBounds_Handle, theRect); } return retval; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableHeaderView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableHeaderView", true)] public class NSTableHeaderView : NSView { private static readonly IntPtr selDraggedColumnHandle = Selector.GetHandle("draggedColumn"); private static readonly IntPtr selDraggedDistanceHandle = Selector.GetHandle("draggedDistance"); private static readonly IntPtr selResizedColumnHandle = Selector.GetHandle("resizedColumn"); private static readonly IntPtr selTableViewHandle = Selector.GetHandle("tableView"); private static readonly IntPtr selSetTableView_Handle = Selector.GetHandle("setTableView:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selHeaderRectOfColumn_Handle = Selector.GetHandle("headerRectOfColumn:"); private static readonly IntPtr selColumnAtPoint_Handle = Selector.GetHandle("columnAtPoint:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableHeaderView"); private object __mt_TableView_var; public override IntPtr ClassHandle => class_ptr; public virtual long DraggedColumn { [Export("draggedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selDraggedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggedColumnHandle); } } public virtual double DraggedDistance { [Export("draggedDistance")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDraggedDistanceHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDraggedDistanceHandle); } } public virtual long ResizedColumn { [Export("resizedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selResizedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selResizedColumnHandle); } } public virtual NSTableView TableView { [Export("tableView")] get { NSApplication.EnsureUIThread(); return (NSTableView)(__mt_TableView_var = ((!IsDirectBinding) ? ((NSTableView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTableViewHandle))) : ((NSTableView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTableViewHandle))))); } [Export("setTableView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTableView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTableView_Handle, value.Handle); } __mt_TableView_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableHeaderView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableHeaderView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableHeaderView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableHeaderView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSTableHeaderView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("headerRectOfColumn:")] public virtual CGRect GetHeaderRect(long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selHeaderRectOfColumn_Handle, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selHeaderRectOfColumn_Handle, column); } return retval; } [Export("columnAtPoint:")] public virtual long GetColumn(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selColumnAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selColumnAtPoint_Handle, point); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TableView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableReorder.cs ================================================ namespace AppKit; public delegate bool NSTableReorder(NSTableView tableView, long columnIndex, long newColumnIndex); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableRowView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableRowView", true)] public class NSTableRowView : NSView { private static readonly IntPtr selSelectionHighlightStyleHandle = Selector.GetHandle("selectionHighlightStyle"); private static readonly IntPtr selSetSelectionHighlightStyle_Handle = Selector.GetHandle("setSelectionHighlightStyle:"); private static readonly IntPtr selIsEmphasizedHandle = Selector.GetHandle("isEmphasized"); private static readonly IntPtr selSetEmphasized_Handle = Selector.GetHandle("setEmphasized:"); private static readonly IntPtr selIsGroupRowStyleHandle = Selector.GetHandle("isGroupRowStyle"); private static readonly IntPtr selSetGroupRowStyle_Handle = Selector.GetHandle("setGroupRowStyle:"); private static readonly IntPtr selIsSelectedHandle = Selector.GetHandle("isSelected"); private static readonly IntPtr selSetSelected_Handle = Selector.GetHandle("setSelected:"); private static readonly IntPtr selIsFloatingHandle = Selector.GetHandle("isFloating"); private static readonly IntPtr selSetFloating_Handle = Selector.GetHandle("setFloating:"); private static readonly IntPtr selDraggingDestinationFeedbackStyleHandle = Selector.GetHandle("draggingDestinationFeedbackStyle"); private static readonly IntPtr selSetDraggingDestinationFeedbackStyle_Handle = Selector.GetHandle("setDraggingDestinationFeedbackStyle:"); private static readonly IntPtr selIndentationForDropOperationHandle = Selector.GetHandle("indentationForDropOperation"); private static readonly IntPtr selSetIndentationForDropOperation_Handle = Selector.GetHandle("setIndentationForDropOperation:"); private static readonly IntPtr selInteriorBackgroundStyleHandle = Selector.GetHandle("interiorBackgroundStyle"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selNumberOfColumnsHandle = Selector.GetHandle("numberOfColumns"); private static readonly IntPtr selIsTargetForDropOperationHandle = Selector.GetHandle("isTargetForDropOperation"); private static readonly IntPtr selSetTargetForDropOperation_Handle = Selector.GetHandle("setTargetForDropOperation:"); private static readonly IntPtr selDrawBackgroundInRect_Handle = Selector.GetHandle("drawBackgroundInRect:"); private static readonly IntPtr selDrawSelectionInRect_Handle = Selector.GetHandle("drawSelectionInRect:"); private static readonly IntPtr selDrawSeparatorInRect_Handle = Selector.GetHandle("drawSeparatorInRect:"); private static readonly IntPtr selDrawDraggingDestinationFeedbackInRect_Handle = Selector.GetHandle("drawDraggingDestinationFeedbackInRect:"); private static readonly IntPtr selViewAtColumn_Handle = Selector.GetHandle("viewAtColumn:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableRowView"); private object __mt_BackgroundColor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTableViewSelectionHighlightStyle SelectionHighlightStyle { [Export("selectionHighlightStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewSelectionHighlightStyle)Messaging.Int64_objc_msgSend(base.Handle, selSelectionHighlightStyleHandle); } return (NSTableViewSelectionHighlightStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectionHighlightStyleHandle); } [Export("setSelectionHighlightStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSelectionHighlightStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSelectionHighlightStyle_Handle, (long)value); } } } public virtual bool Emphasized { [Export("isEmphasized")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEmphasizedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEmphasizedHandle); } [Export("setEmphasized:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEmphasized_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEmphasized_Handle, value); } } } public virtual bool GroupRowStyle { [Export("isGroupRowStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsGroupRowStyleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsGroupRowStyleHandle); } [Export("setGroupRowStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGroupRowStyle_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGroupRowStyle_Handle, value); } } } public virtual bool Selected { [Export("isSelected")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectedHandle); } [Export("setSelected:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelected_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelected_Handle, value); } } } public virtual bool Floating { [Export("isFloating")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFloatingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFloatingHandle); } [Export("setFloating:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFloating_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFloating_Handle, value); } } } public virtual NSTableViewDraggingDestinationFeedbackStyle DraggingDestinationFeedbackStyle { [Export("draggingDestinationFeedbackStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewDraggingDestinationFeedbackStyle)Messaging.Int64_objc_msgSend(base.Handle, selDraggingDestinationFeedbackStyleHandle); } return (NSTableViewDraggingDestinationFeedbackStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingDestinationFeedbackStyleHandle); } [Export("setDraggingDestinationFeedbackStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDraggingDestinationFeedbackStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDraggingDestinationFeedbackStyle_Handle, (long)value); } } } public virtual double IndentationForDropOperation { [Export("indentationForDropOperation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selIndentationForDropOperationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selIndentationForDropOperationHandle); } [Export("setIndentationForDropOperation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetIndentationForDropOperation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetIndentationForDropOperation_Handle, value); } } } public virtual NSBackgroundStyle InteriorBackgroundStyle { [Export("interiorBackgroundStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBackgroundStyle)Messaging.Int64_objc_msgSend(base.Handle, selInteriorBackgroundStyleHandle); } return (NSBackgroundStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selInteriorBackgroundStyleHandle); } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual long NumberOfColumns { [Export("numberOfColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfColumnsHandle); } } public virtual bool TargetForDropOperation { [Export("isTargetForDropOperation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTargetForDropOperationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTargetForDropOperationHandle); } [Export("setTargetForDropOperation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTargetForDropOperation_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTargetForDropOperation_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableRowView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableRowView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableRowView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableRowView(IntPtr handle) : base(handle) { } [Export("drawBackgroundInRect:")] public virtual void DrawBackground(CGRect dirtyRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawBackgroundInRect_Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawBackgroundInRect_Handle, dirtyRect); } } [Export("drawSelectionInRect:")] public virtual void DrawSelection(CGRect dirtyRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawSelectionInRect_Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawSelectionInRect_Handle, dirtyRect); } } [Export("drawSeparatorInRect:")] public virtual void DrawSeparator(CGRect dirtyRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawSeparatorInRect_Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawSeparatorInRect_Handle, dirtyRect); } } [Export("drawDraggingDestinationFeedbackInRect:")] public virtual void DrawDraggingDestinationFeedback(CGRect dirtyRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawDraggingDestinationFeedbackInRect_Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawDraggingDestinationFeedbackInRect_Handle, dirtyRect); } } [Export("viewAtColumn:")] public virtual NSView ViewAtColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selViewAtColumn_Handle, column)); } return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selViewAtColumn_Handle, column)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableView", true)] public class NSTableView : NSControl { [Register] private sealed class _NSTableViewDelegate : NSTableViewDelegate { internal EventHandler willDisplayCell; internal NSTableViewColumnRowPredicate shouldEditTableColumn; internal NSTableViewPredicate selectionShouldChange; internal NSTableViewRowPredicate shouldSelectRow; internal NSTableViewIndexFilter getSelectionIndexes; internal NSTableViewColumnPredicate shouldSelectTableColumn; internal EventHandler mouseDownInHeaderOfTableColumn; internal EventHandler didClickTableColumn; internal EventHandler didDragTableColumn; internal NSTableViewRowHeight getRowHeight; internal NSTableViewColumnRowString getSelectString; internal NSTableViewSearchString getNextTypeSelectMatch; internal NSTableViewEventString shouldTypeSelect; internal NSTableViewColumnRowPredicate shouldShowCellExpansion; internal NSTableViewCell shouldTrackCell; internal NSTableViewCellGetter getDataCell; internal NSTableViewRowPredicate isGroupRow; internal NSTableViewColumnWidth getSizeToFitColumnWidth; internal NSTableReorder shouldReorder; internal EventHandler selectionDidChange; internal EventHandler columnDidMove; internal EventHandler columnDidResize; internal EventHandler selectionIsChanging; internal NSTableViewViewGetter getViewForItem; internal NSTableViewRowGetter coreGetRowView; internal EventHandler didAddRowView; internal EventHandler didRemoveRowView; private static IntPtr selGetRowHeightHandle = Selector.GetHandle("tableView:heightOfRow:"); private static IntPtr selGetDataCellHandle = Selector.GetHandle("tableView:dataCellForTableColumn:row:"); private static IntPtr selGetViewForItemHandle = Selector.GetHandle("tableView:viewForTableColumn:row:"); private static IntPtr selRespondsToSelector = Selector.GetHandle("respondsToSelector:"); [Preserve(Conditional = true)] public override void WillDisplayCell(NSTableView tableView, NSObject cell, NSTableColumn tableColumn, long row) { EventHandler eventHandler = willDisplayCell; if (eventHandler != null) { NSTableViewCellEventArgs e = new NSTableViewCellEventArgs(cell, tableColumn, row); eventHandler(tableView, e); } } [Preserve(Conditional = true)] public override bool ShouldEditTableColumn(NSTableView tableView, NSTableColumn tableColumn, long row) { return shouldEditTableColumn?.Invoke(tableView, tableColumn, row) ?? false; } [Preserve(Conditional = true)] public override bool SelectionShouldChange(NSTableView tableView) { return selectionShouldChange?.Invoke(tableView) ?? false; } [Preserve(Conditional = true)] public override bool ShouldSelectRow(NSTableView tableView, long row) { return shouldSelectRow?.Invoke(tableView, row) ?? true; } [Preserve(Conditional = true)] public override NSIndexSet GetSelectionIndexes(NSTableView tableView, NSIndexSet proposedSelectionIndexes) { NSTableViewIndexFilter nSTableViewIndexFilter = getSelectionIndexes; if (nSTableViewIndexFilter != null) { return nSTableViewIndexFilter(tableView, proposedSelectionIndexes); } return proposedSelectionIndexes; } [Preserve(Conditional = true)] public override bool ShouldSelectTableColumn(NSTableView tableView, NSTableColumn tableColumn) { return shouldSelectTableColumn?.Invoke(tableView, tableColumn) ?? true; } [Preserve(Conditional = true)] public override void MouseDownInHeaderOfTableColumn(NSTableView tableView, NSTableColumn tableColumn) { EventHandler eventHandler = mouseDownInHeaderOfTableColumn; if (eventHandler != null) { NSTableViewTableEventArgs e = new NSTableViewTableEventArgs(tableColumn); eventHandler(tableView, e); } } [Preserve(Conditional = true)] public override void DidClickTableColumn(NSTableView tableView, NSTableColumn tableColumn) { EventHandler eventHandler = didClickTableColumn; if (eventHandler != null) { NSTableViewTableEventArgs e = new NSTableViewTableEventArgs(tableColumn); eventHandler(tableView, e); } } [Preserve(Conditional = true)] public override void DidDragTableColumn(NSTableView tableView, NSTableColumn tableColumn) { EventHandler eventHandler = didDragTableColumn; if (eventHandler != null) { NSTableViewTableEventArgs e = new NSTableViewTableEventArgs(tableColumn); eventHandler(tableView, e); } } [Preserve(Conditional = true)] public override double GetRowHeight(NSTableView tableView, long row) { NSTableViewRowHeight nSTableViewRowHeight = getRowHeight; if (nSTableViewRowHeight != null) { return nSTableViewRowHeight(tableView, row); } throw new You_Should_Not_Call_base_In_This_Method(); } [Preserve(Conditional = true)] public override string GetSelectString(NSTableView tableView, NSTableColumn tableColumn, long row) { NSTableViewColumnRowString nSTableViewColumnRowString = getSelectString; if (nSTableViewColumnRowString != null) { return nSTableViewColumnRowString(tableView, tableColumn, row); } return string.Empty; } [Preserve(Conditional = true)] public override long GetNextTypeSelectMatch(NSTableView tableView, long startRow, long endRow, string searchString) { return getNextTypeSelectMatch?.Invoke(tableView, startRow, endRow, searchString) ?? (-1); } [Preserve(Conditional = true)] public override bool ShouldTypeSelect(NSTableView tableView, NSEvent theEvent, string searchString) { return shouldTypeSelect?.Invoke(tableView, theEvent, searchString) ?? false; } [Preserve(Conditional = true)] public override bool ShouldShowCellExpansion(NSTableView tableView, NSTableColumn tableColumn, long row) { return shouldShowCellExpansion?.Invoke(tableView, tableColumn, row) ?? false; } [Preserve(Conditional = true)] public override bool ShouldTrackCell(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, long row) { return shouldTrackCell?.Invoke(tableView, cell, tableColumn, row) ?? false; } [Preserve(Conditional = true)] public override NSCell GetDataCell(NSTableView tableView, NSTableColumn tableColumn, long row) { NSTableViewCellGetter nSTableViewCellGetter = getDataCell; if (nSTableViewCellGetter != null) { return nSTableViewCellGetter(tableView, tableColumn, row); } throw new You_Should_Not_Call_base_In_This_Method(); } [Preserve(Conditional = true)] public override bool IsGroupRow(NSTableView tableView, long row) { return isGroupRow?.Invoke(tableView, row) ?? false; } [Preserve(Conditional = true)] public override double GetSizeToFitColumnWidth(NSTableView tableView, long column) { return getSizeToFitColumnWidth?.Invoke(tableView, column) ?? 80.0; } [Preserve(Conditional = true)] public override bool ShouldReorder(NSTableView tableView, long columnIndex, long newColumnIndex) { return shouldReorder?.Invoke(tableView, columnIndex, newColumnIndex) ?? false; } [Preserve(Conditional = true)] public override void SelectionDidChange(NSNotification notification) { selectionDidChange?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ColumnDidMove(NSNotification notification) { columnDidMove?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ColumnDidResize(NSNotification notification) { columnDidResize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void SelectionIsChanging(NSNotification notification) { selectionIsChanging?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override NSView GetViewForItem(NSTableView tableView, NSTableColumn tableColumn, long row) { NSTableViewViewGetter nSTableViewViewGetter = getViewForItem; if (nSTableViewViewGetter != null) { return nSTableViewViewGetter(tableView, tableColumn, row); } throw new You_Should_Not_Call_base_In_This_Method(); } [Preserve(Conditional = true)] public override NSTableRowView CoreGetRowView(NSTableView tableView, long row) { return coreGetRowView?.Invoke(tableView, row); } [Preserve(Conditional = true)] public override void DidAddRowView(NSTableView tableView, NSTableRowView rowView, long row) { EventHandler eventHandler = didAddRowView; if (eventHandler != null) { NSTableViewRowEventArgs e = new NSTableViewRowEventArgs(rowView, row); eventHandler(tableView, e); } } [Preserve(Conditional = true)] public override void DidRemoveRowView(NSTableView tableView, NSTableRowView rowView, long row) { EventHandler eventHandler = didRemoveRowView; if (eventHandler != null) { NSTableViewRowEventArgs e = new NSTableViewRowEventArgs(rowView, row); eventHandler(tableView, e); } } public override bool RespondsToSelector(Selector sel) { IntPtr arg = sel.Handle; if (arg.Equals((object?)(nint)selGetRowHeightHandle)) { return getRowHeight != null; } if (arg.Equals((object?)(nint)selGetDataCellHandle)) { return getDataCell != null; } if (arg.Equals((object?)(nint)selGetViewForItemHandle)) { return getViewForItem != null; } return Messaging.bool_objc_msgSendSuper_intptr(base.SuperHandle, selRespondsToSelector, arg); } } private static readonly IntPtr selNumberOfColumnsHandle = Selector.GetHandle("numberOfColumns"); private static readonly IntPtr selNumberOfRowsHandle = Selector.GetHandle("numberOfRows"); private static readonly IntPtr selEditedColumnHandle = Selector.GetHandle("editedColumn"); private static readonly IntPtr selEditedRowHandle = Selector.GetHandle("editedRow"); private static readonly IntPtr selClickedColumnHandle = Selector.GetHandle("clickedColumn"); private static readonly IntPtr selClickedRowHandle = Selector.GetHandle("clickedRow"); private static readonly IntPtr selSelectedColumnIndexesHandle = Selector.GetHandle("selectedColumnIndexes"); private static readonly IntPtr selSelectedRowIndexesHandle = Selector.GetHandle("selectedRowIndexes"); private static readonly IntPtr selSelectedColumnHandle = Selector.GetHandle("selectedColumn"); private static readonly IntPtr selSelectedRowHandle = Selector.GetHandle("selectedRow"); private static readonly IntPtr selNumberOfSelectedColumnsHandle = Selector.GetHandle("numberOfSelectedColumns"); private static readonly IntPtr selNumberOfSelectedRowsHandle = Selector.GetHandle("numberOfSelectedRows"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selHeaderViewHandle = Selector.GetHandle("headerView"); private static readonly IntPtr selSetHeaderView_Handle = Selector.GetHandle("setHeaderView:"); private static readonly IntPtr selCornerViewHandle = Selector.GetHandle("cornerView"); private static readonly IntPtr selSetCornerView_Handle = Selector.GetHandle("setCornerView:"); private static readonly IntPtr selAllowsColumnReorderingHandle = Selector.GetHandle("allowsColumnReordering"); private static readonly IntPtr selSetAllowsColumnReordering_Handle = Selector.GetHandle("setAllowsColumnReordering:"); private static readonly IntPtr selAllowsColumnResizingHandle = Selector.GetHandle("allowsColumnResizing"); private static readonly IntPtr selSetAllowsColumnResizing_Handle = Selector.GetHandle("setAllowsColumnResizing:"); private static readonly IntPtr selColumnAutoresizingStyleHandle = Selector.GetHandle("columnAutoresizingStyle"); private static readonly IntPtr selSetColumnAutoresizingStyle_Handle = Selector.GetHandle("setColumnAutoresizingStyle:"); private static readonly IntPtr selGridStyleMaskHandle = Selector.GetHandle("gridStyleMask"); private static readonly IntPtr selSetGridStyleMask_Handle = Selector.GetHandle("setGridStyleMask:"); private static readonly IntPtr selIntercellSpacingHandle = Selector.GetHandle("intercellSpacing"); private static readonly IntPtr selSetIntercellSpacing_Handle = Selector.GetHandle("setIntercellSpacing:"); private static readonly IntPtr selUsesAlternatingRowBackgroundColorsHandle = Selector.GetHandle("usesAlternatingRowBackgroundColors"); private static readonly IntPtr selSetUsesAlternatingRowBackgroundColors_Handle = Selector.GetHandle("setUsesAlternatingRowBackgroundColors:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selGridColorHandle = Selector.GetHandle("gridColor"); private static readonly IntPtr selSetGridColor_Handle = Selector.GetHandle("setGridColor:"); private static readonly IntPtr selRowHeightHandle = Selector.GetHandle("rowHeight"); private static readonly IntPtr selSetRowHeight_Handle = Selector.GetHandle("setRowHeight:"); private static readonly IntPtr selDoubleActionHandle = Selector.GetHandle("doubleAction"); private static readonly IntPtr selSetDoubleAction_Handle = Selector.GetHandle("setDoubleAction:"); private static readonly IntPtr selSortDescriptorsHandle = Selector.GetHandle("sortDescriptors"); private static readonly IntPtr selSetSortDescriptors_Handle = Selector.GetHandle("setSortDescriptors:"); private static readonly IntPtr selHighlightedTableColumnHandle = Selector.GetHandle("highlightedTableColumn"); private static readonly IntPtr selSetHighlightedTableColumn_Handle = Selector.GetHandle("setHighlightedTableColumn:"); private static readonly IntPtr selVerticalMotionCanBeginDragHandle = Selector.GetHandle("verticalMotionCanBeginDrag"); private static readonly IntPtr selSetVerticalMotionCanBeginDrag_Handle = Selector.GetHandle("setVerticalMotionCanBeginDrag:"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selAllowsEmptySelectionHandle = Selector.GetHandle("allowsEmptySelection"); private static readonly IntPtr selSetAllowsEmptySelection_Handle = Selector.GetHandle("setAllowsEmptySelection:"); private static readonly IntPtr selAllowsColumnSelectionHandle = Selector.GetHandle("allowsColumnSelection"); private static readonly IntPtr selSetAllowsColumnSelection_Handle = Selector.GetHandle("setAllowsColumnSelection:"); private static readonly IntPtr selAllowsTypeSelectHandle = Selector.GetHandle("allowsTypeSelect"); private static readonly IntPtr selSetAllowsTypeSelect_Handle = Selector.GetHandle("setAllowsTypeSelect:"); private static readonly IntPtr selSelectionHighlightStyleHandle = Selector.GetHandle("selectionHighlightStyle"); private static readonly IntPtr selSetSelectionHighlightStyle_Handle = Selector.GetHandle("setSelectionHighlightStyle:"); private static readonly IntPtr selDraggingDestinationFeedbackStyleHandle = Selector.GetHandle("draggingDestinationFeedbackStyle"); private static readonly IntPtr selSetDraggingDestinationFeedbackStyle_Handle = Selector.GetHandle("setDraggingDestinationFeedbackStyle:"); private static readonly IntPtr selAutosaveNameHandle = Selector.GetHandle("autosaveName"); private static readonly IntPtr selSetAutosaveName_Handle = Selector.GetHandle("setAutosaveName:"); private static readonly IntPtr selAutosaveTableColumnsHandle = Selector.GetHandle("autosaveTableColumns"); private static readonly IntPtr selSetAutosaveTableColumns_Handle = Selector.GetHandle("setAutosaveTableColumns:"); private static readonly IntPtr selFocusedColumnHandle = Selector.GetHandle("focusedColumn"); private static readonly IntPtr selSetFocusedColumn_Handle = Selector.GetHandle("setFocusedColumn:"); private static readonly IntPtr selEffectiveRowSizeStyleHandle = Selector.GetHandle("effectiveRowSizeStyle"); private static readonly IntPtr selRowSizeStyleHandle = Selector.GetHandle("rowSizeStyle"); private static readonly IntPtr selSetRowSizeStyle_Handle = Selector.GetHandle("setRowSizeStyle:"); private static readonly IntPtr selFloatsGroupRowsHandle = Selector.GetHandle("floatsGroupRows"); private static readonly IntPtr selSetFloatsGroupRows_Handle = Selector.GetHandle("setFloatsGroupRows:"); private static readonly IntPtr selIgnoreModifierKeysWhileDraggingHandle = Selector.GetHandle("ignoreModifierKeysWhileDragging"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selNoteHeightOfRowsWithIndexesChanged_Handle = Selector.GetHandle("noteHeightOfRowsWithIndexesChanged:"); private static readonly IntPtr selTableColumnsHandle = Selector.GetHandle("tableColumns"); private static readonly IntPtr selAddTableColumn_Handle = Selector.GetHandle("addTableColumn:"); private static readonly IntPtr selRemoveTableColumn_Handle = Selector.GetHandle("removeTableColumn:"); private static readonly IntPtr selMoveColumnToColumn_Handle = Selector.GetHandle("moveColumn:toColumn:"); private static readonly IntPtr selColumnWithIdentifier_Handle = Selector.GetHandle("columnWithIdentifier:"); private static readonly IntPtr selTableColumnWithIdentifier_Handle = Selector.GetHandle("tableColumnWithIdentifier:"); private static readonly IntPtr selTileHandle = Selector.GetHandle("tile"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr selSizeLastColumnToFitHandle = Selector.GetHandle("sizeLastColumnToFit"); private static readonly IntPtr selScrollRowToVisible_Handle = Selector.GetHandle("scrollRowToVisible:"); private static readonly IntPtr selScrollColumnToVisible_Handle = Selector.GetHandle("scrollColumnToVisible:"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr selNoteNumberOfRowsChangedHandle = Selector.GetHandle("noteNumberOfRowsChanged"); private static readonly IntPtr selReloadDataForRowIndexesColumnIndexes_Handle = Selector.GetHandle("reloadDataForRowIndexes:columnIndexes:"); private static readonly IntPtr selSetIndicatorImageInTableColumn_Handle = Selector.GetHandle("setIndicatorImage:inTableColumn:"); private static readonly IntPtr selIndicatorImageInTableColumn_Handle = Selector.GetHandle("indicatorImageInTableColumn:"); private static readonly IntPtr selCanDragRowsWithIndexesAtPoint_Handle = Selector.GetHandle("canDragRowsWithIndexes:atPoint:"); private static readonly IntPtr selSetDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("setDraggingSourceOperationMask:forLocal:"); private static readonly IntPtr selSetDropRowDropOperation_Handle = Selector.GetHandle("setDropRow:dropOperation:"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selDeselectAll_Handle = Selector.GetHandle("deselectAll:"); private static readonly IntPtr selSelectColumnIndexesByExtendingSelection_Handle = Selector.GetHandle("selectColumnIndexes:byExtendingSelection:"); private static readonly IntPtr selSelectRowIndexesByExtendingSelection_Handle = Selector.GetHandle("selectRowIndexes:byExtendingSelection:"); private static readonly IntPtr selDeselectColumn_Handle = Selector.GetHandle("deselectColumn:"); private static readonly IntPtr selDeselectRow_Handle = Selector.GetHandle("deselectRow:"); private static readonly IntPtr selIsColumnSelected_Handle = Selector.GetHandle("isColumnSelected:"); private static readonly IntPtr selIsRowSelected_Handle = Selector.GetHandle("isRowSelected:"); private static readonly IntPtr selRectOfColumn_Handle = Selector.GetHandle("rectOfColumn:"); private static readonly IntPtr selRectOfRow_Handle = Selector.GetHandle("rectOfRow:"); private static readonly IntPtr selColumnIndexesInRect_Handle = Selector.GetHandle("columnIndexesInRect:"); private static readonly IntPtr selRowsInRect_Handle = Selector.GetHandle("rowsInRect:"); private static readonly IntPtr selColumnAtPoint_Handle = Selector.GetHandle("columnAtPoint:"); private static readonly IntPtr selRowAtPoint_Handle = Selector.GetHandle("rowAtPoint:"); private static readonly IntPtr selFrameOfCellAtColumnRow_Handle = Selector.GetHandle("frameOfCellAtColumn:row:"); private static readonly IntPtr selPreparedCellAtColumnRow_Handle = Selector.GetHandle("preparedCellAtColumn:row:"); private static readonly IntPtr selTextShouldBeginEditing_Handle = Selector.GetHandle("textShouldBeginEditing:"); private static readonly IntPtr selTextShouldEndEditing_Handle = Selector.GetHandle("textShouldEndEditing:"); private static readonly IntPtr selTextDidBeginEditing_Handle = Selector.GetHandle("textDidBeginEditing:"); private static readonly IntPtr selTextDidEndEditing_Handle = Selector.GetHandle("textDidEndEditing:"); private static readonly IntPtr selTextDidChange_Handle = Selector.GetHandle("textDidChange:"); private static readonly IntPtr selShouldFocusCellAtColumnRow_Handle = Selector.GetHandle("shouldFocusCell:atColumn:row:"); private static readonly IntPtr selPerformClickOnCellAtColumnRow_Handle = Selector.GetHandle("performClickOnCellAtColumn:row:"); private static readonly IntPtr selEditColumnRowWithEventSelect_Handle = Selector.GetHandle("editColumn:row:withEvent:select:"); private static readonly IntPtr selDrawRowClipRect_Handle = Selector.GetHandle("drawRow:clipRect:"); private static readonly IntPtr selHighlightSelectionInClipRect_Handle = Selector.GetHandle("highlightSelectionInClipRect:"); private static readonly IntPtr selDrawGridInClipRect_Handle = Selector.GetHandle("drawGridInClipRect:"); private static readonly IntPtr selDrawBackgroundInClipRect_Handle = Selector.GetHandle("drawBackgroundInClipRect:"); private static readonly IntPtr selViewAtColumnRowMakeIfNecessary_Handle = Selector.GetHandle("viewAtColumn:row:makeIfNecessary:"); private static readonly IntPtr selRowViewAtRowMakeIfNecessary_Handle = Selector.GetHandle("rowViewAtRow:makeIfNecessary:"); private static readonly IntPtr selRowForView_Handle = Selector.GetHandle("rowForView:"); private static readonly IntPtr selColumnForView_Handle = Selector.GetHandle("columnForView:"); private static readonly IntPtr selMakeViewWithIdentifierOwner_Handle = Selector.GetHandle("makeViewWithIdentifier:owner:"); private static readonly IntPtr selEnumerateAvailableRowViewsUsingBlock_Handle = Selector.GetHandle("enumerateAvailableRowViewsUsingBlock:"); private static readonly IntPtr selBeginUpdatesHandle = Selector.GetHandle("beginUpdates"); private static readonly IntPtr selEndUpdatesHandle = Selector.GetHandle("endUpdates"); private static readonly IntPtr selInsertRowsAtIndexesWithAnimation_Handle = Selector.GetHandle("insertRowsAtIndexes:withAnimation:"); private static readonly IntPtr selRemoveRowsAtIndexesWithAnimation_Handle = Selector.GetHandle("removeRowsAtIndexes:withAnimation:"); private static readonly IntPtr selMoveRowAtIndexToIndex_Handle = Selector.GetHandle("moveRowAtIndex:toIndex:"); private static readonly IntPtr selDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("draggingSourceOperationMaskForLocal:"); private static readonly IntPtr selNamesOfPromisedFilesDroppedAtDestination_Handle = Selector.GetHandle("namesOfPromisedFilesDroppedAtDestination:"); private static readonly IntPtr selDraggedImageBeganAt_Handle = Selector.GetHandle("draggedImage:beganAt:"); private static readonly IntPtr selDraggedImageEndedAtOperation_Handle = Selector.GetHandle("draggedImage:endedAt:operation:"); private static readonly IntPtr selDraggedImageMovedTo_Handle = Selector.GetHandle("draggedImage:movedTo:"); private static readonly IntPtr selDraggedImageEndedAtDeposited_Handle = Selector.GetHandle("draggedImage:endedAt:deposited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTableView"); private object __mt_SelectedColumns_var; private object __mt_SelectedRows_var; private object __mt_WeakDataSource_var; private object __mt_WeakDelegate_var; private object __mt_HeaderView_var; private object __mt_CornerView_var; private object __mt_BackgroundColor_var; private object __mt_GridColor_var; private object __mt_SortDescriptors_var; private object __mt_HighlightedTableColumn_var; private static NSString _RowViewKey; public NSTableViewSource Source { get { if (WeakDelegate is NSTableViewSource result) { return result; } return null; } set { WeakDelegate = value; WeakDataSource = value; } } public override IntPtr ClassHandle => class_ptr; public virtual long ColumnCount { [Export("numberOfColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfColumnsHandle); } } public virtual long RowCount { [Export("numberOfRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfRowsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfRowsHandle); } } public virtual long EditedColumn { [Export("editedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selEditedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEditedColumnHandle); } } public virtual long EditedRow { [Export("editedRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selEditedRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEditedRowHandle); } } public virtual long ClickedColumn { [Export("clickedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClickedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClickedColumnHandle); } } public virtual long ClickedRow { [Export("clickedRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selClickedRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selClickedRowHandle); } } public virtual NSIndexSet SelectedColumns { [Export("selectedColumnIndexes")] get { NSApplication.EnsureUIThread(); return (NSIndexSet)(__mt_SelectedColumns_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedColumnIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedColumnIndexesHandle))))); } } public virtual NSIndexSet SelectedRows { [Export("selectedRowIndexes")] get { NSApplication.EnsureUIThread(); return (NSIndexSet)(__mt_SelectedRows_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedRowIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedRowIndexesHandle))))); } } public virtual int SelectedColumn { [Export("selectedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSelectedColumnHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSelectedColumnHandle); } } public virtual long SelectedRow { [Export("selectedRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSelectedRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectedRowHandle); } } public virtual long SelectedColumnsCount { [Export("numberOfSelectedColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfSelectedColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfSelectedColumnsHandle); } } public virtual long SelectedRowCount { [Export("numberOfSelectedRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfSelectedRowsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfSelectedRowsHandle); } } public virtual NSObject WeakDataSource { [Export("dataSource")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDataSource_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle)))); } [Export("setDataSource:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDataSource_var = value; } } public NSTableViewDataSource DataSource { get { return WeakDataSource as NSTableViewDataSource; } set { WeakDataSource = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSTableViewDelegate Delegate { get { return WeakDelegate as NSTableViewDelegate; } set { WeakDelegate = value; } } public virtual NSTableHeaderView HeaderView { [Export("headerView")] get { NSApplication.EnsureUIThread(); return (NSTableHeaderView)(__mt_HeaderView_var = ((!IsDirectBinding) ? ((NSTableHeaderView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHeaderViewHandle))) : ((NSTableHeaderView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHeaderViewHandle))))); } [Export("setHeaderView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHeaderView_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHeaderView_Handle, value?.Handle ?? IntPtr.Zero); } __mt_HeaderView_var = value; } } public virtual NSView CornerView { [Export("cornerView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_CornerView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCornerViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCornerViewHandle))))); } [Export("setCornerView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCornerView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCornerView_Handle, value.Handle); } __mt_CornerView_var = value; } } public virtual bool AllowsColumnReordering { [Export("allowsColumnReordering")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsColumnReorderingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsColumnReorderingHandle); } [Export("setAllowsColumnReordering:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsColumnReordering_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsColumnReordering_Handle, value); } } } public virtual bool AllowsColumnResizing { [Export("allowsColumnResizing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsColumnResizingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsColumnResizingHandle); } [Export("setAllowsColumnResizing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsColumnResizing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsColumnResizing_Handle, value); } } } public virtual NSTableViewColumnAutoresizingStyle ColumnAutoresizingStyle { [Export("columnAutoresizingStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewColumnAutoresizingStyle)Messaging.UInt64_objc_msgSend(base.Handle, selColumnAutoresizingStyleHandle); } return (NSTableViewColumnAutoresizingStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selColumnAutoresizingStyleHandle); } [Export("setColumnAutoresizingStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetColumnAutoresizingStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetColumnAutoresizingStyle_Handle, (ulong)value); } } } public virtual NSTableViewGridStyle GridStyleMask { [Export("gridStyleMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewGridStyle)Messaging.UInt64_objc_msgSend(base.Handle, selGridStyleMaskHandle); } return (NSTableViewGridStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selGridStyleMaskHandle); } [Export("setGridStyleMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetGridStyleMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetGridStyleMask_Handle, (ulong)value); } } } public virtual CGSize IntercellSpacing { [Export("intercellSpacing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntercellSpacingHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntercellSpacingHandle); } [Export("setIntercellSpacing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetIntercellSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetIntercellSpacing_Handle, value); } } } public virtual bool UsesAlternatingRowBackgroundColors { [Export("usesAlternatingRowBackgroundColors")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesAlternatingRowBackgroundColorsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesAlternatingRowBackgroundColorsHandle); } [Export("setUsesAlternatingRowBackgroundColors:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesAlternatingRowBackgroundColors_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesAlternatingRowBackgroundColors_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSColor GridColor { [Export("gridColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_GridColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGridColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGridColorHandle))))); } [Export("setGridColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGridColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGridColor_Handle, value.Handle); } __mt_GridColor_var = value; } } public virtual double RowHeight { [Export("rowHeight")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRowHeightHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRowHeightHandle); } [Export("setRowHeight:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRowHeight_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRowHeight_Handle, value); } } } public virtual Selector DoubleAction { [Export("doubleAction")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDoubleActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoubleActionHandle)); } [Export("setDoubleAction:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDoubleAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDoubleAction_Handle, value.Handle); } } } public virtual NSSortDescriptor[] SortDescriptors { [Export("sortDescriptors")] get { NSApplication.EnsureUIThread(); return (NSSortDescriptor[])(__mt_SortDescriptors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorsHandle)))); } [Export("setSortDescriptors:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SortDescriptors_var = value; } } public virtual NSTableColumn HighlightedTableColumn { [Export("highlightedTableColumn")] get { NSApplication.EnsureUIThread(); return (NSTableColumn)(__mt_HighlightedTableColumn_var = ((!IsDirectBinding) ? ((NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHighlightedTableColumnHandle))) : ((NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHighlightedTableColumnHandle))))); } [Export("setHighlightedTableColumn:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHighlightedTableColumn_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHighlightedTableColumn_Handle, value.Handle); } __mt_HighlightedTableColumn_var = value; } } public virtual bool VerticalMotionCanBeginDrag { [Export("verticalMotionCanBeginDrag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selVerticalMotionCanBeginDragHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selVerticalMotionCanBeginDragHandle); } [Export("setVerticalMotionCanBeginDrag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVerticalMotionCanBeginDrag_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVerticalMotionCanBeginDrag_Handle, value); } } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual bool AllowsEmptySelection { [Export("allowsEmptySelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEmptySelectionHandle); } [Export("setAllowsEmptySelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEmptySelection_Handle, value); } } } public virtual bool AllowsColumnSelection { [Export("allowsColumnSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsColumnSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsColumnSelectionHandle); } [Export("setAllowsColumnSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsColumnSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsColumnSelection_Handle, value); } } } public virtual bool AllowsTypeSelect { [Export("allowsTypeSelect")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsTypeSelectHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsTypeSelectHandle); } [Export("setAllowsTypeSelect:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsTypeSelect_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsTypeSelect_Handle, value); } } } public virtual NSTableViewSelectionHighlightStyle SelectionHighlightStyle { [Export("selectionHighlightStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewSelectionHighlightStyle)Messaging.Int64_objc_msgSend(base.Handle, selSelectionHighlightStyleHandle); } return (NSTableViewSelectionHighlightStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSelectionHighlightStyleHandle); } [Export("setSelectionHighlightStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSelectionHighlightStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSelectionHighlightStyle_Handle, (long)value); } } } public virtual NSTableViewDraggingDestinationFeedbackStyle DraggingDestinationFeedbackStyle { [Export("draggingDestinationFeedbackStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewDraggingDestinationFeedbackStyle)Messaging.Int64_objc_msgSend(base.Handle, selDraggingDestinationFeedbackStyleHandle); } return (NSTableViewDraggingDestinationFeedbackStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDraggingDestinationFeedbackStyleHandle); } [Export("setDraggingDestinationFeedbackStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDraggingDestinationFeedbackStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDraggingDestinationFeedbackStyle_Handle, (long)value); } } } public virtual string AutosaveName { [Export("autosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutosaveNameHandle)); } [Export("setAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool AutosaveTableColumns { [Export("autosaveTableColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosaveTableColumnsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosaveTableColumnsHandle); } [Export("setAutosaveTableColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutosaveTableColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutosaveTableColumns_Handle, value); } } } public virtual long FocusedColumn { [Export("focusedColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFocusedColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFocusedColumnHandle); } [Export("setFocusedColumn:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetFocusedColumn_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetFocusedColumn_Handle, value); } } } public virtual NSTableViewRowSizeStyle EffectiveRowSizeStyle { [Export("effectiveRowSizeStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSend(base.Handle, selEffectiveRowSizeStyleHandle); } return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEffectiveRowSizeStyleHandle); } } public virtual NSTableViewRowSizeStyle RowSizeStyle { [Export("rowSizeStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSend(base.Handle, selRowSizeStyleHandle); } return (NSTableViewRowSizeStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRowSizeStyleHandle); } [Export("setRowSizeStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetRowSizeStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetRowSizeStyle_Handle, (long)value); } } } public virtual bool FloatsGroupRows { [Export("floatsGroupRows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selFloatsGroupRowsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFloatsGroupRowsHandle); } [Export("setFloatsGroupRows:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFloatsGroupRows_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFloatsGroupRows_Handle, value); } } } public virtual bool IgnoreModifierKeysWhileDragging { [Export("ignoreModifierKeysWhileDragging")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIgnoreModifierKeysWhileDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIgnoreModifierKeysWhileDraggingHandle); } } [Field("NSTableViewRowViewKey", "AppKit")] public static NSString RowViewKey { get { if (_RowViewKey == null) { _RowViewKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSTableViewRowViewKey"); } return _RowViewKey; } } public NSTableViewColumnRowPredicate ShouldEditTableColumn { get { return EnsureNSTableViewDelegate().shouldEditTableColumn; } set { EnsureNSTableViewDelegate().shouldEditTableColumn = value; } } public NSTableViewPredicate SelectionShouldChange { get { return EnsureNSTableViewDelegate().selectionShouldChange; } set { EnsureNSTableViewDelegate().selectionShouldChange = value; } } public NSTableViewRowPredicate ShouldSelectRow { get { return EnsureNSTableViewDelegate().shouldSelectRow; } set { EnsureNSTableViewDelegate().shouldSelectRow = value; } } public NSTableViewIndexFilter GetSelectionIndexes { get { return EnsureNSTableViewDelegate().getSelectionIndexes; } set { EnsureNSTableViewDelegate().getSelectionIndexes = value; } } public NSTableViewColumnPredicate ShouldSelectTableColumn { get { return EnsureNSTableViewDelegate().shouldSelectTableColumn; } set { EnsureNSTableViewDelegate().shouldSelectTableColumn = value; } } public NSTableViewRowHeight GetRowHeight { get { return EnsureNSTableViewDelegate().getRowHeight; } set { EnsureNSTableViewDelegate().getRowHeight = value; } } public NSTableViewColumnRowString GetSelectString { get { return EnsureNSTableViewDelegate().getSelectString; } set { EnsureNSTableViewDelegate().getSelectString = value; } } public NSTableViewSearchString GetNextTypeSelectMatch { get { return EnsureNSTableViewDelegate().getNextTypeSelectMatch; } set { EnsureNSTableViewDelegate().getNextTypeSelectMatch = value; } } public NSTableViewEventString ShouldTypeSelect { get { return EnsureNSTableViewDelegate().shouldTypeSelect; } set { EnsureNSTableViewDelegate().shouldTypeSelect = value; } } public NSTableViewColumnRowPredicate ShouldShowCellExpansion { get { return EnsureNSTableViewDelegate().shouldShowCellExpansion; } set { EnsureNSTableViewDelegate().shouldShowCellExpansion = value; } } public NSTableViewCell ShouldTrackCell { get { return EnsureNSTableViewDelegate().shouldTrackCell; } set { EnsureNSTableViewDelegate().shouldTrackCell = value; } } public NSTableViewCellGetter GetDataCell { get { return EnsureNSTableViewDelegate().getDataCell; } set { EnsureNSTableViewDelegate().getDataCell = value; } } public NSTableViewRowPredicate IsGroupRow { get { return EnsureNSTableViewDelegate().isGroupRow; } set { EnsureNSTableViewDelegate().isGroupRow = value; } } public NSTableViewColumnWidth GetSizeToFitColumnWidth { get { return EnsureNSTableViewDelegate().getSizeToFitColumnWidth; } set { EnsureNSTableViewDelegate().getSizeToFitColumnWidth = value; } } public NSTableReorder ShouldReorder { get { return EnsureNSTableViewDelegate().shouldReorder; } set { EnsureNSTableViewDelegate().shouldReorder = value; } } public NSTableViewViewGetter GetViewForItem { get { return EnsureNSTableViewDelegate().getViewForItem; } set { EnsureNSTableViewDelegate().getViewForItem = value; } } public NSTableViewRowGetter CoreGetRowView { get { return EnsureNSTableViewDelegate().coreGetRowView; } set { EnsureNSTableViewDelegate().coreGetRowView = value; } } public event EventHandler DoubleClick { add { Target = ActionDispatcher.SetupDoubleAction(Target, value); DoubleAction = ActionDispatcher.DoubleAction; } remove { ActionDispatcher.RemoveDoubleAction(Target, value); } } public event EventHandler WillDisplayCell { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.willDisplayCell = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.willDisplayCell, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.willDisplayCell = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.willDisplayCell, value); } } public event EventHandler MouseDownInHeaderOfTableColumn { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.mouseDownInHeaderOfTableColumn = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.mouseDownInHeaderOfTableColumn, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.mouseDownInHeaderOfTableColumn = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.mouseDownInHeaderOfTableColumn, value); } } public event EventHandler DidClickTableColumn { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didClickTableColumn = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.didClickTableColumn, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didClickTableColumn = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.didClickTableColumn, value); } } public event EventHandler DidDragTableColumn { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didDragTableColumn = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.didDragTableColumn, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didDragTableColumn = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.didDragTableColumn, value); } } public event EventHandler SelectionDidChange { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.selectionDidChange = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.selectionDidChange, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.selectionDidChange = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.selectionDidChange, value); } } public event EventHandler ColumnDidMove { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.columnDidMove = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.columnDidMove, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.columnDidMove = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.columnDidMove, value); } } public event EventHandler ColumnDidResize { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.columnDidResize = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.columnDidResize, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.columnDidResize = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.columnDidResize, value); } } public event EventHandler SelectionIsChanging { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.selectionIsChanging = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.selectionIsChanging, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.selectionIsChanging = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.selectionIsChanging, value); } } public event EventHandler DidAddRowView { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didAddRowView = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.didAddRowView, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didAddRowView = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.didAddRowView, value); } } public event EventHandler DidRemoveRowView { add { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didRemoveRowView = (EventHandler)System.Delegate.Combine(nSTableViewDelegate.didRemoveRowView, value); } remove { _NSTableViewDelegate nSTableViewDelegate = EnsureNSTableViewDelegate(); nSTableViewDelegate.didRemoveRowView = (EventHandler)System.Delegate.Remove(nSTableViewDelegate.didRemoveRowView, value); } } public void SelectRow(ulong row, bool byExtendingSelection) { SelectRows(NSIndexSet.FromIndex(row), byExtendingSelection); } public void SelectColumn(ulong column, bool byExtendingSelection) { SelectColumns(NSIndexSet.FromIndex(column), byExtendingSelection); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSTableView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("noteHeightOfRowsWithIndexesChanged:")] public virtual void NoteHeightOfRowsWithIndexesChanged(NSIndexSet indexSet) { NSApplication.EnsureUIThread(); if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNoteHeightOfRowsWithIndexesChanged_Handle, indexSet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNoteHeightOfRowsWithIndexesChanged_Handle, indexSet.Handle); } } [Export("tableColumns")] public virtual NSTableColumn[] TableColumns() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTableColumnsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTableColumnsHandle)); } [Export("addTableColumn:")] public virtual void AddColumn(NSTableColumn tableColumn) { NSApplication.EnsureUIThread(); if (tableColumn == null) { throw new ArgumentNullException("tableColumn"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddTableColumn_Handle, tableColumn.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddTableColumn_Handle, tableColumn.Handle); } } [Export("removeTableColumn:")] public virtual void RemoveColumn(NSTableColumn tableColumn) { NSApplication.EnsureUIThread(); if (tableColumn == null) { throw new ArgumentNullException("tableColumn"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTableColumn_Handle, tableColumn.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTableColumn_Handle, tableColumn.Handle); } } [Export("moveColumn:toColumn:")] public virtual void MoveColumn(long oldIndex, long newIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selMoveColumnToColumn_Handle, oldIndex, newIndex); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selMoveColumnToColumn_Handle, oldIndex, newIndex); } } [Export("columnWithIdentifier:")] public virtual long FindColumn(NSString identifier) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selColumnWithIdentifier_Handle, identifier.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selColumnWithIdentifier_Handle, identifier.Handle); } [Export("tableColumnWithIdentifier:")] public virtual NSTableColumn FindTableColumn(NSString identifier) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { return (NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTableColumnWithIdentifier_Handle, identifier.Handle)); } return (NSTableColumn)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTableColumnWithIdentifier_Handle, identifier.Handle)); } [Export("tile")] public virtual void Tile() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selTileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selTileHandle); } } [Export("sizeToFit")] public new virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } [Export("sizeLastColumnToFit")] public virtual void SizeLastColumnToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeLastColumnToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeLastColumnToFitHandle); } } [Export("scrollRowToVisible:")] public virtual void ScrollRowToVisible(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollRowToVisible_Handle, row); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollRowToVisible_Handle, row); } } [Export("scrollColumnToVisible:")] public virtual void ScrollColumnToVisible(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selScrollColumnToVisible_Handle, column); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selScrollColumnToVisible_Handle, column); } } [Export("reloadData")] public virtual void ReloadData() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } [Export("noteNumberOfRowsChanged")] public virtual void NoteNumberOfRowsChanged() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selNoteNumberOfRowsChangedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selNoteNumberOfRowsChangedHandle); } } [Export("reloadDataForRowIndexes:columnIndexes:")] public virtual void ReloadData(NSIndexSet rowIndexes, NSIndexSet columnIndexes) { NSApplication.EnsureUIThread(); if (rowIndexes == null) { throw new ArgumentNullException("rowIndexes"); } if (columnIndexes == null) { throw new ArgumentNullException("columnIndexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selReloadDataForRowIndexesColumnIndexes_Handle, rowIndexes.Handle, columnIndexes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReloadDataForRowIndexesColumnIndexes_Handle, rowIndexes.Handle, columnIndexes.Handle); } } [Export("setIndicatorImage:inTableColumn:")] public virtual void SetIndicatorImage(NSImage anImage, NSTableColumn tableColumn) { NSApplication.EnsureUIThread(); if (tableColumn == null) { throw new ArgumentNullException("tableColumn"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetIndicatorImageInTableColumn_Handle, anImage?.Handle ?? IntPtr.Zero, tableColumn.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetIndicatorImageInTableColumn_Handle, anImage?.Handle ?? IntPtr.Zero, tableColumn.Handle); } } [Export("indicatorImageInTableColumn:")] public virtual NSImage GetIndicatorImage(NSTableColumn tableColumn) { NSApplication.EnsureUIThread(); if (tableColumn == null) { throw new ArgumentNullException("tableColumn"); } if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selIndicatorImageInTableColumn_Handle, tableColumn.Handle)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndicatorImageInTableColumn_Handle, tableColumn.Handle)); } [Export("canDragRowsWithIndexes:atPoint:")] public virtual bool CanDragRows(NSIndexSet rowIndexes, CGPoint mouseDownPoint) { NSApplication.EnsureUIThread(); if (rowIndexes == null) { throw new ArgumentNullException("rowIndexes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGPoint(base.Handle, selCanDragRowsWithIndexesAtPoint_Handle, rowIndexes.Handle, mouseDownPoint); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selCanDragRowsWithIndexesAtPoint_Handle, rowIndexes.Handle, mouseDownPoint); } [Export("setDraggingSourceOperationMask:forLocal:")] public virtual void SetDraggingSourceOperationMask(NSDragOperation mask, bool isLocal) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_bool(base.Handle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)mask, isLocal); } else { Messaging.void_objc_msgSendSuper_UInt64_bool(base.SuperHandle, selSetDraggingSourceOperationMaskForLocal_Handle, (ulong)mask, isLocal); } } [Export("setDropRow:dropOperation:")] public virtual void SetDropRowDropOperation(long row, NSTableViewDropOperation dropOperation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_UInt64(base.Handle, selSetDropRowDropOperation_Handle, row, (ulong)dropOperation); } else { Messaging.void_objc_msgSendSuper_Int64_UInt64(base.SuperHandle, selSetDropRowDropOperation_Handle, row, (ulong)dropOperation); } } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("deselectAll:")] public virtual void DeselectAll(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeselectAll_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeselectAll_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("selectColumnIndexes:byExtendingSelection:")] public virtual void SelectColumns(NSIndexSet indexes, bool byExtendingSelection) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSelectColumnIndexesByExtendingSelection_Handle, indexes.Handle, byExtendingSelection); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSelectColumnIndexesByExtendingSelection_Handle, indexes.Handle, byExtendingSelection); } } [Export("selectRowIndexes:byExtendingSelection:")] public virtual void SelectRows(NSIndexSet indexes, bool byExtendingSelection) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSelectRowIndexesByExtendingSelection_Handle, indexes.Handle, byExtendingSelection); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSelectRowIndexesByExtendingSelection_Handle, indexes.Handle, byExtendingSelection); } } [Export("deselectColumn:")] public virtual void DeselectColumn(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selDeselectColumn_Handle, column); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selDeselectColumn_Handle, column); } } [Export("deselectRow:")] public virtual void DeselectRow(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selDeselectRow_Handle, row); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selDeselectRow_Handle, row); } } [Export("isColumnSelected:")] public virtual bool IsColumnSelected(long column) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsColumnSelected_Handle, column); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsColumnSelected_Handle, column); } [Export("isRowSelected:")] public virtual bool IsRowSelected(long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Int64(base.Handle, selIsRowSelected_Handle, row); } return Messaging.bool_objc_msgSendSuper_Int64(base.SuperHandle, selIsRowSelected_Handle, row); } [Export("rectOfColumn:")] public virtual CGRect RectForColumn(long column) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfColumn_Handle, column); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfColumn_Handle, column); } return retval; } [Export("rectOfRow:")] public virtual CGRect RectForRow(long row) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectOfRow_Handle, row); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectOfRow_Handle, row); } return retval; } [Export("columnIndexesInRect:")] public virtual NSIndexSet GetColumnIndexesInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selColumnIndexesInRect_Handle, rect)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selColumnIndexesInRect_Handle, rect)); } [Export("rowsInRect:")] public virtual NSRange RowsInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_CGRect(base.Handle, selRowsInRect_Handle, rect); } return Messaging.NSRange_objc_msgSendSuper_CGRect(base.SuperHandle, selRowsInRect_Handle, rect); } [Export("columnAtPoint:")] public virtual long GetColumn(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selColumnAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selColumnAtPoint_Handle, point); } [Export("rowAtPoint:")] public virtual long GetRow(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selRowAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selRowAtPoint_Handle, point); } [Export("frameOfCellAtColumn:row:")] public virtual CGRect GetCellFrame(long column, long row) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64_Int64(out retval, base.Handle, selFrameOfCellAtColumnRow_Handle, column, row); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64_Int64(out retval, base.SuperHandle, selFrameOfCellAtColumnRow_Handle, column, row); } return retval; } [Export("preparedCellAtColumn:row:")] public virtual NSCell GetCell(long column, long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selPreparedCellAtColumnRow_Handle, column, row)); } return (NSCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selPreparedCellAtColumnRow_Handle, column, row)); } [Export("textShouldBeginEditing:")] public virtual bool TextShouldBeginEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldBeginEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldBeginEditing_Handle, textObject.Handle); } [Export("textShouldEndEditing:")] public virtual bool TextShouldEndEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldEndEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldEndEditing_Handle, textObject.Handle); } [Export("textDidBeginEditing:")] public virtual void TextDidBeginEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidBeginEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidBeginEditing_Handle, notification.Handle); } } [Export("textDidEndEditing:")] public virtual void TextDidEndEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidEndEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidEndEditing_Handle, notification.Handle); } } [Export("textDidChange:")] public virtual void TextDidChange(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidChange_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidChange_Handle, notification.Handle); } } [Export("shouldFocusCell:atColumn:row:")] public virtual bool ShouldFocusCell(NSCell cell, long column, long row) { NSApplication.EnsureUIThread(); if (cell == null) { throw new ArgumentNullException("cell"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_Int64_Int64(base.Handle, selShouldFocusCellAtColumnRow_Handle, cell.Handle, column, row); } return Messaging.bool_objc_msgSendSuper_IntPtr_Int64_Int64(base.SuperHandle, selShouldFocusCellAtColumnRow_Handle, cell.Handle, column, row); } [Export("performClickOnCellAtColumn:row:")] public virtual void PerformClick(long column, long row) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selPerformClickOnCellAtColumnRow_Handle, column, row); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selPerformClickOnCellAtColumnRow_Handle, column, row); } } [Export("editColumn:row:withEvent:select:")] public virtual void EditColumn(long column, long row, NSEvent theEvent, bool select) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64_IntPtr_bool(base.Handle, selEditColumnRowWithEventSelect_Handle, column, row, theEvent.Handle, select); } else { Messaging.void_objc_msgSendSuper_Int64_Int64_IntPtr_bool(base.SuperHandle, selEditColumnRowWithEventSelect_Handle, column, row, theEvent.Handle, select); } } [Export("drawRow:clipRect:")] public virtual void DrawRow(long row, CGRect clipRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_CGRect(base.Handle, selDrawRowClipRect_Handle, row, clipRect); } else { Messaging.void_objc_msgSendSuper_Int64_CGRect(base.SuperHandle, selDrawRowClipRect_Handle, row, clipRect); } } [Export("highlightSelectionInClipRect:")] public virtual void HighlightSelection(CGRect clipRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selHighlightSelectionInClipRect_Handle, clipRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selHighlightSelectionInClipRect_Handle, clipRect); } } [Export("drawGridInClipRect:")] public virtual void DrawGrid(CGRect clipRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawGridInClipRect_Handle, clipRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawGridInClipRect_Handle, clipRect); } } [Export("drawBackgroundInClipRect:")] public virtual void DrawBackground(CGRect clipRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawBackgroundInClipRect_Handle, clipRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawBackgroundInClipRect_Handle, clipRect); } } [Export("viewAtColumn:row:makeIfNecessary:")] public virtual NSView GetView(long column, long row, bool makeIfNecessary) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64_bool(base.Handle, selViewAtColumnRowMakeIfNecessary_Handle, column, row, makeIfNecessary)); } return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64_bool(base.SuperHandle, selViewAtColumnRowMakeIfNecessary_Handle, column, row, makeIfNecessary)); } [Export("rowViewAtRow:makeIfNecessary:")] public virtual NSTableRowView GetRowView(long row, bool makeIfNecessary) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTableRowView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_bool(base.Handle, selRowViewAtRowMakeIfNecessary_Handle, row, makeIfNecessary)); } return (NSTableRowView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_bool(base.SuperHandle, selRowViewAtRowMakeIfNecessary_Handle, row, makeIfNecessary)); } [Export("rowForView:")] public virtual long RowForView(NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selRowForView_Handle, view.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selRowForView_Handle, view.Handle); } [Export("columnForView:")] public virtual long ColumnForView(NSView view) { NSApplication.EnsureUIThread(); if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selColumnForView_Handle, view.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selColumnForView_Handle, view.Handle); } [Export("makeViewWithIdentifier:owner:")] public virtual NSView MakeView(string identifier, NSObject owner) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } if (owner == null) { throw new ArgumentNullException("owner"); } IntPtr arg = NSString.CreateNative(identifier); NSView result = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selMakeViewWithIdentifierOwner_Handle, arg, owner.Handle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selMakeViewWithIdentifierOwner_Handle, arg, owner.Handle)))); NSString.ReleaseNative(arg); return result; } [Export("enumerateAvailableRowViewsUsingBlock:")] public unsafe virtual void EnumerateAvailableRowViews(NSTableViewRowHandler callback) { NSApplication.EnsureUIThread(); if (callback == null) { throw new ArgumentNullException("callback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSTableViewRowHandler.Handler, callback); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEnumerateAvailableRowViewsUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEnumerateAvailableRowViewsUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("beginUpdates")] public virtual void BeginUpdates() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBeginUpdatesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBeginUpdatesHandle); } } [Export("endUpdates")] public virtual void EndUpdates() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEndUpdatesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEndUpdatesHandle); } } [Export("insertRowsAtIndexes:withAnimation:")] public virtual void InsertRows(NSIndexSet indexes, NSTableViewAnimation animationOptions) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selInsertRowsAtIndexesWithAnimation_Handle, indexes.Handle, (ulong)animationOptions); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selInsertRowsAtIndexesWithAnimation_Handle, indexes.Handle, (ulong)animationOptions); } } [Export("removeRowsAtIndexes:withAnimation:")] public virtual void RemoveRows(NSIndexSet indexes, NSTableViewAnimation animationOptions) { NSApplication.EnsureUIThread(); if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selRemoveRowsAtIndexesWithAnimation_Handle, indexes.Handle, (ulong)animationOptions); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selRemoveRowsAtIndexesWithAnimation_Handle, indexes.Handle, (ulong)animationOptions); } } [Export("moveRowAtIndex:toIndex:")] public virtual void MoveRow(long oldIndex, long newIndex) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selMoveRowAtIndexToIndex_Handle, oldIndex, newIndex); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selMoveRowAtIndexToIndex_Handle, oldIndex, newIndex); } } [Export("draggingSourceOperationMaskForLocal:")] public virtual NSDragOperation DraggingSourceOperationMaskForLocal(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_bool(base.Handle, selDraggingSourceOperationMaskForLocal_Handle, flag); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_bool(base.SuperHandle, selDraggingSourceOperationMaskForLocal_Handle, flag); } [Export("namesOfPromisedFilesDroppedAtDestination:")] public virtual string[] NamesOfPromisedFilesDroppedAtDestination(NSUrl dropDestination) { NSApplication.EnsureUIThread(); if (dropDestination == null) { throw new ArgumentNullException("dropDestination"); } if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } [Export("draggedImage:beganAt:")] public virtual void DraggedImageBeganAt(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:operation:")] public virtual void DraggedImageEndedAtOperation(NSImage image, CGPoint screenPoint, NSDragOperation operation) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_UInt64(base.Handle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_UInt64(base.SuperHandle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } } [Export("draggedImage:movedTo:")] public virtual void DraggedImageMovedTo(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:deposited:")] [Obsolete("On 10.1 and newer, use DraggedImageEndedAtOperation() instead", false)] public virtual void DraggedImageEndedAtDeposited(NSImage image, CGPoint screenPoint, bool deposited) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_bool(base.Handle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_bool(base.SuperHandle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } } private _NSTableViewDelegate EnsureNSTableViewDelegate() { NSTableViewDelegate nSTableViewDelegate = Delegate; if (nSTableViewDelegate == null || !(nSTableViewDelegate is _NSTableViewDelegate)) { nSTableViewDelegate = (Delegate = new _NSTableViewDelegate()); } return (_NSTableViewDelegate)nSTableViewDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SelectedColumns_var = null; __mt_SelectedRows_var = null; __mt_WeakDataSource_var = null; __mt_WeakDelegate_var = null; __mt_HeaderView_var = null; __mt_CornerView_var = null; __mt_BackgroundColor_var = null; __mt_GridColor_var = null; __mt_SortDescriptors_var = null; __mt_HighlightedTableColumn_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewAnimation.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTableViewAnimation : ulong { None = 0uL, Fade = 1uL, Gap = 2uL, SlideUp = 0x10uL, SlideDown = 0x20uL, SlideLeft = 0x30uL, SlideRight = 0x40uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewCell.cs ================================================ namespace AppKit; public delegate bool NSTableViewCell(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewCellEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSTableViewCellEventArgs : EventArgs { public NSObject Cell { get; set; } public NSTableColumn TableColumn { get; set; } public long Row { get; set; } public NSTableViewCellEventArgs(NSObject cell, NSTableColumn tableColumn, long row) { Cell = cell; TableColumn = tableColumn; Row = row; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewCellGetter.cs ================================================ namespace AppKit; public delegate NSCell NSTableViewCellGetter(NSTableView tableView, NSTableColumn tableColumn, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewColumnAutoresizingStyle.cs ================================================ namespace AppKit; public enum NSTableViewColumnAutoresizingStyle : ulong { None, Uniform, Sequential, ReverseSequential, LastColumnOnly, FirstColumnOnly } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewColumnPredicate.cs ================================================ namespace AppKit; public delegate bool NSTableViewColumnPredicate(NSTableView tableView, NSTableColumn tableColumn); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewColumnRowPredicate.cs ================================================ namespace AppKit; public delegate bool NSTableViewColumnRowPredicate(NSTableView tableView, NSTableColumn tableColumn, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewColumnRowString.cs ================================================ namespace AppKit; public delegate string NSTableViewColumnRowString(NSTableView tableView, NSTableColumn tableColumn, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewColumnWidth.cs ================================================ namespace AppKit; public delegate double NSTableViewColumnWidth(NSTableView tableView, long column); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewDataSource.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableViewDataSource", true)] [Model] public class NSTableViewDataSource : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableViewDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableViewDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewDataSource(IntPtr handle) : base(handle) { } [Export("numberOfRowsInTableView:")] public virtual long GetRowCount(NSTableView tableView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:objectValueForTableColumn:row:")] public virtual NSObject GetObjectValue(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:setObjectValue:forTableColumn:row:")] public virtual void SetObjectValue(NSTableView tableView, NSObject theObject, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:sortDescriptorsDidChange:")] public virtual void SortDescriptorsChanged(NSTableView tableView, NSSortDescriptor[] oldDescriptors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:writeRowsWithIndexes:toPasteboard:")] public virtual bool WriteRows(NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:validateDrop:proposedRow:proposedDropOperation:")] public virtual NSDragOperation ValidateDrop(NSTableView tableView, NSDraggingInfo info, long row, NSTableViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:acceptDrop:row:dropOperation:")] public virtual bool AcceptDrop(NSTableView tableView, NSDraggingInfo info, long row, NSTableViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:")] public virtual string[] FilesDropped(NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:pasteboardWriterForRow:")] public virtual NSPasteboardWriting GetPasteboardWriterForRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:draggingSession:willBeginAtPoint:forRowIndexes:")] public virtual void DraggingSessionWillBegin(NSTableView tableView, NSDraggingSession draggingSession, CGPoint willBeginAtScreenPoint, NSIndexSet rowIndexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:draggingSession:endedAtPoint:operation:")] public virtual void DraggingSessionEnded(NSTableView tableView, NSDraggingSession draggingSession, CGPoint endedAtScreenPoint, NSDragOperation operation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:updateDraggingItemsForDrag:")] public virtual void UpdateDraggingItems(NSTableView tableView, NSDraggingInfo draggingInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableViewDelegate", true)] [Model] public class NSTableViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewDelegate(IntPtr handle) : base(handle) { } [Export("tableView:willDisplayCell:forTableColumn:row:")] public virtual void WillDisplayCell(NSTableView tableView, NSObject cell, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldEditTableColumn:row:")] public virtual bool ShouldEditTableColumn(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("selectionShouldChangeInTableView:")] public virtual bool SelectionShouldChange(NSTableView tableView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldSelectRow:")] public virtual bool ShouldSelectRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:selectionIndexesForProposedSelection:")] public virtual NSIndexSet GetSelectionIndexes(NSTableView tableView, NSIndexSet proposedSelectionIndexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldSelectTableColumn:")] public virtual bool ShouldSelectTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:mouseDownInHeaderOfTableColumn:")] public virtual void MouseDownInHeaderOfTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didClickTableColumn:")] public virtual void DidClickTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didDragTableColumn:")] public virtual void DidDragTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:heightOfRow:")] public virtual double GetRowHeight(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:typeSelectStringForTableColumn:row:")] public virtual string GetSelectString(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:nextTypeSelectMatchFromRow:toRow:forString:")] public virtual long GetNextTypeSelectMatch(NSTableView tableView, long startRow, long endRow, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldTypeSelectForEvent:withCurrentSearchString:")] public virtual bool ShouldTypeSelect(NSTableView tableView, NSEvent theEvent, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldShowCellExpansionForTableColumn:row:")] public virtual bool ShouldShowCellExpansion(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldTrackCell:forTableColumn:row:")] public virtual bool ShouldTrackCell(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:dataCellForTableColumn:row:")] public virtual NSCell GetDataCell(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:isGroupRow:")] public virtual bool IsGroupRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:sizeToFitWidthOfColumn:")] public virtual double GetSizeToFitColumnWidth(NSTableView tableView, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldReorderColumn:toColumn:")] public virtual bool ShouldReorder(NSTableView tableView, long columnIndex, long newColumnIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewSelectionDidChange:")] public virtual void SelectionDidChange(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewColumnDidMove:")] public virtual void ColumnDidMove(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewColumnDidResize:")] public virtual void ColumnDidResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewSelectionIsChanging:")] public virtual void SelectionIsChanging(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:viewForTableColumn:row:")] public virtual NSView GetViewForItem(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:rowViewForRow:")] public virtual NSTableRowView CoreGetRowView(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didAddRowView:forRow:")] public virtual void DidAddRowView(NSTableView tableView, NSTableRowView rowView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didRemoveRowView:forRow:")] public virtual void DidRemoveRowView(NSTableView tableView, NSTableRowView rowView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewDraggingDestinationFeedbackStyle.cs ================================================ namespace AppKit; public enum NSTableViewDraggingDestinationFeedbackStyle : long { None = -1L, Regular, SourceList } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewDropOperation.cs ================================================ namespace AppKit; public enum NSTableViewDropOperation : ulong { On, Above } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewEventString.cs ================================================ namespace AppKit; public delegate bool NSTableViewEventString(NSTableView tableView, NSEvent theEvent, string searchString); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewGridStyle.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTableViewGridStyle : ulong { None = 0uL, SolidVerticalLine = 1uL, SolidHorizontalLine = 2uL, DashedHorizontalGridLine = 8uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewIndexFilter.cs ================================================ using Foundation; namespace AppKit; public delegate NSIndexSet NSTableViewIndexFilter(NSTableView tableView, NSIndexSet proposedSelectionIndexes); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewPredicate.cs ================================================ namespace AppKit; public delegate bool NSTableViewPredicate(NSTableView tableView); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowEventArgs.cs ================================================ using System; namespace AppKit; public class NSTableViewRowEventArgs : EventArgs { public NSTableRowView RowView { get; set; } public long Row { get; set; } public NSTableViewRowEventArgs(NSTableRowView rowView, long row) { RowView = rowView; Row = row; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowGetter.cs ================================================ namespace AppKit; public delegate NSTableRowView NSTableViewRowGetter(NSTableView tableView, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowHandler.cs ================================================ namespace AppKit; public delegate void NSTableViewRowHandler(NSTableRowView rowView, int row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowHeight.cs ================================================ namespace AppKit; public delegate double NSTableViewRowHeight(NSTableView tableView, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowPredicate.cs ================================================ namespace AppKit; public delegate bool NSTableViewRowPredicate(NSTableView tableView, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewRowSizeStyle.cs ================================================ namespace AppKit; public enum NSTableViewRowSizeStyle : long { Default = -1L, Custom, Small, Medium, Large } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewSearchString.cs ================================================ namespace AppKit; public delegate long NSTableViewSearchString(NSTableView tableView, long startRow, long endRow, string searchString); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewSelectionHighlightStyle.cs ================================================ namespace AppKit; public enum NSTableViewSelectionHighlightStyle : long { None = -1L, Regular, SourceList } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewSource.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTableViewSource", true)] [Model] public class NSTableViewSource : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTableViewSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTableViewSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTableViewSource(IntPtr handle) : base(handle) { } [Export("tableView:willDisplayCell:forTableColumn:row:")] public virtual void WillDisplayCell(NSTableView tableView, NSObject cell, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldEditTableColumn:row:")] public virtual bool ShouldEditTableColumn(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("selectionShouldChangeInTableView:")] public virtual bool SelectionShouldChange(NSTableView tableView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldSelectRow:")] public virtual bool ShouldSelectRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:selectionIndexesForProposedSelection:")] public virtual NSIndexSet GetSelectionIndexes(NSTableView tableView, NSIndexSet proposedSelectionIndexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldSelectTableColumn:")] public virtual bool ShouldSelectTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:mouseDownInHeaderOfTableColumn:")] public virtual void MouseDown(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didClickTableColumn:")] public virtual void DidClickTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didDragTableColumn:")] public virtual void DidDragTableColumn(NSTableView tableView, NSTableColumn tableColumn) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:heightOfRow:")] public virtual double GetRowHeight(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:typeSelectStringForTableColumn:row:")] public virtual string GetSelectString(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:nextTypeSelectMatchFromRow:toRow:forString:")] public virtual long GetNextTypeSelectMatch(NSTableView tableView, long startRow, long endRow, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldTypeSelectForEvent:withCurrentSearchString:")] public virtual bool ShouldTypeSelect(NSTableView tableView, NSEvent theEvent, string searchString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldShowCellExpansionForTableColumn:row:")] public virtual bool ShouldShowCellExpansion(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldTrackCell:forTableColumn:row:")] public virtual bool ShouldTrackCell(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:dataCellForTableColumn:row:")] public virtual NSCell GetCell(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:isGroupRow:")] public virtual bool IsGroupRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:sizeToFitWidthOfColumn:")] public virtual double GetSizeToFitColumnWidth(NSTableView tableView, long column) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:shouldReorderColumn:toColumn:")] public virtual bool ShouldReorder(NSTableView tableView, long columnIndex, long newColumnIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewSelectionDidChange:")] public virtual void SelectionDidChange(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewColumnDidMove:")] public virtual void ColumnDidMove(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewColumnDidResize:")] public virtual void ColumnDidResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableViewSelectionIsChanging:")] public virtual void SelectionIsChanging(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("numberOfRowsInTableView:")] public virtual long GetRowCount(NSTableView tableView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:objectValueForTableColumn:row:")] public virtual NSObject GetObjectValue(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:setObjectValue:forTableColumn:row:")] public virtual void SetObjectValue(NSTableView tableView, NSObject theObject, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:sortDescriptorsDidChange:")] public virtual void SortDescriptorsChanged(NSTableView tableView, NSSortDescriptor[] oldDescriptors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:writeRowsWithIndexes:toPasteboard:")] public virtual bool WriteRows(NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:validateDrop:proposedRow:proposedDropOperation:")] public virtual NSDragOperation ValidateDrop(NSTableView tableView, NSDraggingInfo info, long row, NSTableViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:acceptDrop:row:dropOperation:")] public virtual bool AcceptDrop(NSTableView tableView, NSDraggingInfo info, long row, NSTableViewDropOperation dropOperation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:")] public virtual string[] FilesDropped(NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:viewForTableColumn:row:")] public virtual NSView GetViewForItem(NSTableView tableView, NSTableColumn tableColumn, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:rowViewForRow:")] public virtual NSTableRowView GetRowView(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didAddRowView:forRow:")] public virtual void DidAddRowView(NSTableView tableView, NSTableRowView rowView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:didRemoveRowView:forRow:")] public virtual void DidRemoveRowView(NSTableView tableView, NSTableRowView rowView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:pasteboardWriterForRow:")] public virtual NSPasteboardWriting GetPasteboardWriterForRow(NSTableView tableView, long row) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:draggingSession:willBeginAtPoint:forRowIndexes:")] public virtual void DraggingSessionWillBegin(NSTableView tableView, NSDraggingSession draggingSession, CGPoint willBeginAtScreenPoint, NSIndexSet rowIndexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:draggingSession:endedAtPoint:operation:")] public virtual void DraggingSessionEnded(NSTableView tableView, NSDraggingSession draggingSession, CGPoint endedAtScreenPoint, NSDragOperation operation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tableView:updateDraggingItemsForDrag:")] public virtual void UpdateDraggingItems(NSTableView tableView, NSDraggingInfo draggingInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewTableEventArgs.cs ================================================ using System; namespace AppKit; public class NSTableViewTableEventArgs : EventArgs { public NSTableColumn TableColumn { get; set; } public NSTableViewTableEventArgs(NSTableColumn tableColumn) { TableColumn = tableColumn; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTableViewViewGetter.cs ================================================ namespace AppKit; public delegate NSView NSTableViewViewGetter(NSTableView tableView, NSTableColumn tableColumn, long row); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSText.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSText", true)] public class NSText : NSView { [Register] private sealed class _NSTextDelegate : NSTextDelegate { internal NSTextPredicate textShouldBeginEditing; internal NSTextPredicate textShouldEndEditing; internal EventHandler textDidBeginEditing; internal EventHandler textDidEndEditing; internal EventHandler textDidChange; [Preserve(Conditional = true)] public override bool TextShouldBeginEditing(NSText textObject) { return textShouldBeginEditing?.Invoke(textObject) ?? true; } [Preserve(Conditional = true)] public override bool TextShouldEndEditing(NSText textObject) { return textShouldEndEditing?.Invoke(textObject) ?? true; } [Preserve(Conditional = true)] public override void TextDidBeginEditing(NSNotification notification) { textDidBeginEditing?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void TextDidEndEditing(NSNotification notification) { textDidEndEditing?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void TextDidChange(NSNotification notification) { textDidChange?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selIsRulerVisibleHandle = Selector.GetHandle("isRulerVisible"); private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selSetString_Handle = Selector.GetHandle("setString:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selIsSelectableHandle = Selector.GetHandle("isSelectable"); private static readonly IntPtr selSetSelectable_Handle = Selector.GetHandle("setSelectable:"); private static readonly IntPtr selIsRichTextHandle = Selector.GetHandle("isRichText"); private static readonly IntPtr selSetRichText_Handle = Selector.GetHandle("setRichText:"); private static readonly IntPtr selImportsGraphicsHandle = Selector.GetHandle("importsGraphics"); private static readonly IntPtr selSetImportsGraphics_Handle = Selector.GetHandle("setImportsGraphics:"); private static readonly IntPtr selIsFieldEditorHandle = Selector.GetHandle("isFieldEditor"); private static readonly IntPtr selSetFieldEditor_Handle = Selector.GetHandle("setFieldEditor:"); private static readonly IntPtr selUsesFontPanelHandle = Selector.GetHandle("usesFontPanel"); private static readonly IntPtr selSetUsesFontPanel_Handle = Selector.GetHandle("setUsesFontPanel:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selSelectedRangeHandle = Selector.GetHandle("selectedRange"); private static readonly IntPtr selSetSelectedRange_Handle = Selector.GetHandle("setSelectedRange:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selSetTextColor_Handle = Selector.GetHandle("setTextColor:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selBaseWritingDirectionHandle = Selector.GetHandle("baseWritingDirection"); private static readonly IntPtr selSetBaseWritingDirection_Handle = Selector.GetHandle("setBaseWritingDirection:"); private static readonly IntPtr selMaxSizeHandle = Selector.GetHandle("maxSize"); private static readonly IntPtr selSetMaxSize_Handle = Selector.GetHandle("setMaxSize:"); private static readonly IntPtr selMinSizeHandle = Selector.GetHandle("minSize"); private static readonly IntPtr selSetMinSize_Handle = Selector.GetHandle("setMinSize:"); private static readonly IntPtr selIsHorizontallyResizableHandle = Selector.GetHandle("isHorizontallyResizable"); private static readonly IntPtr selSetHorizontallyResizable_Handle = Selector.GetHandle("setHorizontallyResizable:"); private static readonly IntPtr selIsVerticallyResizableHandle = Selector.GetHandle("isVerticallyResizable"); private static readonly IntPtr selSetVerticallyResizable_Handle = Selector.GetHandle("setVerticallyResizable:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selReplaceCharactersInRangeWithString_Handle = Selector.GetHandle("replaceCharactersInRange:withString:"); private static readonly IntPtr selReplaceCharactersInRangeWithRTF_Handle = Selector.GetHandle("replaceCharactersInRange:withRTF:"); private static readonly IntPtr selReplaceCharactersInRangeWithRTFD_Handle = Selector.GetHandle("replaceCharactersInRange:withRTFD:"); private static readonly IntPtr selRTFFromRange_Handle = Selector.GetHandle("RTFFromRange:"); private static readonly IntPtr selRTFDFromRange_Handle = Selector.GetHandle("RTFDFromRange:"); private static readonly IntPtr selWriteRTFDToFileAtomically_Handle = Selector.GetHandle("writeRTFDToFile:atomically:"); private static readonly IntPtr selReadRTFDFromFile_Handle = Selector.GetHandle("readRTFDFromFile:"); private static readonly IntPtr selScrollRangeToVisible_Handle = Selector.GetHandle("scrollRangeToVisible:"); private static readonly IntPtr selSetTextColorRange_Handle = Selector.GetHandle("setTextColor:range:"); private static readonly IntPtr selSetFontRange_Handle = Selector.GetHandle("setFont:range:"); private static readonly IntPtr selSizeToFitHandle = Selector.GetHandle("sizeToFit"); private static readonly IntPtr selCopy_Handle = Selector.GetHandle("copy:"); private static readonly IntPtr selCopyFont_Handle = Selector.GetHandle("copyFont:"); private static readonly IntPtr selCopyRuler_Handle = Selector.GetHandle("copyRuler:"); private static readonly IntPtr selCut_Handle = Selector.GetHandle("cut:"); private static readonly IntPtr selDelete_Handle = Selector.GetHandle("delete:"); private static readonly IntPtr selPaste_Handle = Selector.GetHandle("paste:"); private static readonly IntPtr selPasteFont_Handle = Selector.GetHandle("pasteFont:"); private static readonly IntPtr selPasteRuler_Handle = Selector.GetHandle("pasteRuler:"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selChangeFont_Handle = Selector.GetHandle("changeFont:"); private static readonly IntPtr selAlignLeft_Handle = Selector.GetHandle("alignLeft:"); private static readonly IntPtr selAlignRight_Handle = Selector.GetHandle("alignRight:"); private static readonly IntPtr selAlignCenter_Handle = Selector.GetHandle("alignCenter:"); private static readonly IntPtr selSubscript_Handle = Selector.GetHandle("subscript:"); private static readonly IntPtr selSuperscript_Handle = Selector.GetHandle("superscript:"); private static readonly IntPtr selUnderline_Handle = Selector.GetHandle("underline:"); private static readonly IntPtr selUnscript_Handle = Selector.GetHandle("unscript:"); private static readonly IntPtr selShowGuessPanel_Handle = Selector.GetHandle("showGuessPanel:"); private static readonly IntPtr selCheckSpelling_Handle = Selector.GetHandle("checkSpelling:"); private static readonly IntPtr selToggleRuler_Handle = Selector.GetHandle("toggleRuler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSText"); private object __mt_WeakDelegate_var; private object __mt_BackgroundColor_var; private object __mt_Font_var; private object __mt_TextColor_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsRulerVisible { [Export("isRulerVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRulerVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRulerVisibleHandle); } } public virtual string Value { [Export("string")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } [Export("setString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetString_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSTextDelegate Delegate { get { return WeakDelegate as NSTextDelegate; } set { WeakDelegate = value; } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool Selectable { [Export("isSelectable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectableHandle); } [Export("setSelectable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectable_Handle, value); } } } public virtual bool RichText { [Export("isRichText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRichTextHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRichTextHandle); } [Export("setRichText:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRichText_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRichText_Handle, value); } } } public virtual bool ImportsGraphics { [Export("importsGraphics")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selImportsGraphicsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selImportsGraphicsHandle); } [Export("setImportsGraphics:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetImportsGraphics_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetImportsGraphics_Handle, value); } } } public virtual bool FieldEditor { [Export("isFieldEditor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFieldEditorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFieldEditorHandle); } [Export("setFieldEditor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFieldEditor_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFieldEditor_Handle, value); } } } public virtual bool UsesFontPanel { [Export("usesFontPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesFontPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesFontPanelHandle); } [Export("setUsesFontPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesFontPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesFontPanel_Handle, value); } } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSRange SelectedRange { [Export("selectedRange")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selSelectedRangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selSelectedRangeHandle); } [Export("setSelectedRange:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selSetSelectedRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selSetSelectedRange_Handle, value); } } } public virtual NSFont Font { [Export("font")] get { NSApplication.EnsureUIThread(); return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSColor TextColor { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextColorHandle))))); } [Export("setTextColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextColor_Handle, value.Handle); } __mt_TextColor_var = value; } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } public virtual NSWritingDirection BaseWritingDirection { [Export("baseWritingDirection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWritingDirection)Messaging.Int64_objc_msgSend(base.Handle, selBaseWritingDirectionHandle); } return (NSWritingDirection)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selBaseWritingDirectionHandle); } [Export("setBaseWritingDirection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetBaseWritingDirection_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetBaseWritingDirection_Handle, (long)value); } } } public virtual CGSize MaxSize { [Export("maxSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaxSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaxSizeHandle); } [Export("setMaxSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaxSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaxSize_Handle, value); } } } public virtual CGSize MinSize { [Export("minSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinSizeHandle); } [Export("setMinSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMinSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMinSize_Handle, value); } } } public virtual bool HorizontallyResizable { [Export("isHorizontallyResizable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHorizontallyResizableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHorizontallyResizableHandle); } [Export("setHorizontallyResizable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHorizontallyResizable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHorizontallyResizable_Handle, value); } } } public virtual bool VerticallyResizable { [Export("isVerticallyResizable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVerticallyResizableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVerticallyResizableHandle); } [Export("setVerticallyResizable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVerticallyResizable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVerticallyResizable_Handle, value); } } } public NSTextPredicate TextShouldBeginEditing { get { return EnsureNSTextDelegate().textShouldBeginEditing; } set { EnsureNSTextDelegate().textShouldBeginEditing = value; } } public NSTextPredicate TextShouldEndEditing { get { return EnsureNSTextDelegate().textShouldEndEditing; } set { EnsureNSTextDelegate().textShouldEndEditing = value; } } public event EventHandler TextDidBeginEditing { add { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidBeginEditing = (EventHandler)System.Delegate.Combine(nSTextDelegate.textDidBeginEditing, value); } remove { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidBeginEditing = (EventHandler)System.Delegate.Remove(nSTextDelegate.textDidBeginEditing, value); } } public event EventHandler TextDidEndEditing { add { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidEndEditing = (EventHandler)System.Delegate.Combine(nSTextDelegate.textDidEndEditing, value); } remove { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidEndEditing = (EventHandler)System.Delegate.Remove(nSTextDelegate.textDidEndEditing, value); } } public event EventHandler TextDidChange { add { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidChange = (EventHandler)System.Delegate.Combine(nSTextDelegate.textDidChange, value); } remove { _NSTextDelegate nSTextDelegate = EnsureNSTextDelegate(); nSTextDelegate.textDidChange = (EventHandler)System.Delegate.Remove(nSTextDelegate.textDidChange, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSText() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSText(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSText(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSText(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSText(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("replaceCharactersInRange:withString:")] public virtual void Replace(NSRange range, string aString) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr(base.Handle, selReplaceCharactersInRangeWithString_Handle, range, arg); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selReplaceCharactersInRangeWithString_Handle, range, arg); } NSString.ReleaseNative(arg); } [Export("replaceCharactersInRange:withRTF:")] public virtual void ReplaceWithRtf(NSRange range, NSData rtfData) { NSApplication.EnsureUIThread(); if (rtfData == null) { throw new ArgumentNullException("rtfData"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr(base.Handle, selReplaceCharactersInRangeWithRTF_Handle, range, rtfData.Handle); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selReplaceCharactersInRangeWithRTF_Handle, range, rtfData.Handle); } } [Export("replaceCharactersInRange:withRTFD:")] public virtual void ReplaceWithRtfd(NSRange range, NSData rtfdData) { NSApplication.EnsureUIThread(); if (rtfdData == null) { throw new ArgumentNullException("rtfdData"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr(base.Handle, selReplaceCharactersInRangeWithRTFD_Handle, range, rtfdData.Handle); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selReplaceCharactersInRangeWithRTFD_Handle, range, rtfdData.Handle); } } [Export("RTFFromRange:")] public virtual NSData RtfFromRange(NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(base.Handle, selRTFFromRange_Handle, range)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_NSRange(base.SuperHandle, selRTFFromRange_Handle, range)); } [Export("RTFDFromRange:")] public virtual NSData RtfdFromRange(NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(base.Handle, selRTFDFromRange_Handle, range)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_NSRange(base.SuperHandle, selRTFDFromRange_Handle, range)); } [Export("writeRTFDToFile:atomically:")] public virtual bool WriteRtfd(string path, bool atomically) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selWriteRTFDToFileAtomically_Handle, arg, atomically) : Messaging.bool_objc_msgSend_IntPtr_bool(base.Handle, selWriteRTFDToFileAtomically_Handle, arg, atomically)); NSString.ReleaseNative(arg); return result; } [Export("readRTFDFromFile:")] public virtual bool FromRtfdFile(string path) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selReadRTFDFromFile_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selReadRTFDFromFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("scrollRangeToVisible:")] public virtual void ScrollRangeToVisible(NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selScrollRangeToVisible_Handle, range); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selScrollRangeToVisible_Handle, range); } } [Export("setTextColor:range:")] public virtual void SetTextColor(NSColor color, NSRange range) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetTextColorRange_Handle, color.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetTextColorRange_Handle, color.Handle, range); } } [Export("setFont:range:")] public virtual void SetFont(NSFont font, NSRange range) { NSApplication.EnsureUIThread(); if (font == null) { throw new ArgumentNullException("font"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetFontRange_Handle, font.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetFontRange_Handle, font.Handle, range); } } [Export("sizeToFit")] public virtual void SizeToFit() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSizeToFitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSizeToFitHandle); } } [Export("copy:")] public virtual void Copy(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopy_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopy_Handle, sender.Handle); } } [Export("copyFont:")] public virtual void CopyFont(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopyFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopyFont_Handle, sender.Handle); } } [Export("copyRuler:")] public virtual void CopyRuler(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopyRuler_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopyRuler_Handle, sender.Handle); } } [Export("cut:")] public virtual void Cut(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCut_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCut_Handle, sender.Handle); } } [Export("delete:")] public virtual void Delete(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDelete_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDelete_Handle, sender.Handle); } } [Export("paste:")] public virtual void Paste(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPaste_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPaste_Handle, sender.Handle); } } [Export("pasteFont:")] public virtual void PasteFont(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteFont_Handle, sender.Handle); } } [Export("pasteRuler:")] public virtual void PasteRuler(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteRuler_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteRuler_Handle, sender.Handle); } } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender.Handle); } } [Export("changeFont:")] public virtual void ChangeFont(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeFont_Handle, sender.Handle); } } [Export("alignLeft:")] public virtual void AlignLeft(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignLeft_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignLeft_Handle, sender.Handle); } } [Export("alignRight:")] public virtual void AlignRight(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignRight_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignRight_Handle, sender.Handle); } } [Export("alignCenter:")] public virtual void AlignCenter(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignCenter_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignCenter_Handle, sender.Handle); } } [Export("subscript:")] public virtual void Subscript(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSubscript_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSubscript_Handle, sender.Handle); } } [Export("superscript:")] public virtual void Superscript(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSuperscript_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSuperscript_Handle, sender.Handle); } } [Export("underline:")] public virtual void Underline(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUnderline_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnderline_Handle, sender.Handle); } } [Export("unscript:")] public virtual void Unscript(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUnscript_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnscript_Handle, sender.Handle); } } [Export("showGuessPanel:")] public virtual void ShowGuessPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selShowGuessPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selShowGuessPanel_Handle, sender.Handle); } } [Export("checkSpelling:")] public virtual void CheckSpelling(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCheckSpelling_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCheckSpelling_Handle, sender.Handle); } } [Export("toggleRuler:")] public virtual void ToggleRuler(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleRuler_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleRuler_Handle, sender.Handle); } } private _NSTextDelegate EnsureNSTextDelegate() { NSTextDelegate nSTextDelegate = Delegate; if (nSTextDelegate == null || !(nSTextDelegate is _NSTextDelegate)) { nSTextDelegate = (Delegate = new _NSTextDelegate()); } return (_NSTextDelegate)nSTextDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_BackgroundColor_var = null; __mt_Font_var = null; __mt_TextColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextAlignment.cs ================================================ namespace AppKit; public enum NSTextAlignment : ulong { Left, Right, Center, Justified, Natural } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextAttachment.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextAttachment", true)] public class NSTextAttachment : NSObject { private static readonly IntPtr selFileWrapperHandle = Selector.GetHandle("fileWrapper"); private static readonly IntPtr selSetFileWrapper_Handle = Selector.GetHandle("setFileWrapper:"); private static readonly IntPtr selAttachmentCellHandle = Selector.GetHandle("attachmentCell"); private static readonly IntPtr selSetAttachmentCell_Handle = Selector.GetHandle("setAttachmentCell:"); private static readonly IntPtr selInitWithFileWrapper_Handle = Selector.GetHandle("initWithFileWrapper:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextAttachment"); private object __mt_FileWrapper_var; private object __mt_AttachmentCell_var; public override IntPtr ClassHandle => class_ptr; public virtual NSFileWrapper FileWrapper { [Export("fileWrapper")] get { NSApplication.EnsureUIThread(); return (NSFileWrapper)(__mt_FileWrapper_var = ((!IsDirectBinding) ? ((NSFileWrapper)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileWrapperHandle))) : ((NSFileWrapper)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileWrapperHandle))))); } [Export("setFileWrapper:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFileWrapper_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFileWrapper_Handle, value.Handle); } __mt_FileWrapper_var = value; } } public virtual NSTextAttachmentCell AttachmentCell { [Export("attachmentCell")] get { NSApplication.EnsureUIThread(); return (NSTextAttachmentCell)(__mt_AttachmentCell_var = ((!IsDirectBinding) ? ((NSTextAttachmentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttachmentCellHandle))) : ((NSTextAttachmentCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttachmentCellHandle))))); } [Export("setAttachmentCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttachmentCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttachmentCell_Handle, value.Handle); } __mt_AttachmentCell_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextAttachment() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextAttachment(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextAttachment(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextAttachment(IntPtr handle) : base(handle) { } [Export("initWithFileWrapper:")] public NSTextAttachment(NSFileWrapper fileWrapper) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (fileWrapper == null) { throw new ArgumentNullException("fileWrapper"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithFileWrapper_Handle, fileWrapper.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithFileWrapper_Handle, fileWrapper.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FileWrapper_var = null; __mt_AttachmentCell_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextAttachmentCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextAttachmentCell", true)] public class NSTextAttachmentCell : NSCell { private static readonly IntPtr selCellSizeHandle = Selector.GetHandle("cellSize"); private static readonly IntPtr selCellBaselineOffsetHandle = Selector.GetHandle("cellBaselineOffset"); private static readonly IntPtr selAttachmentHandle = Selector.GetHandle("attachment"); private static readonly IntPtr selSetAttachment_Handle = Selector.GetHandle("setAttachment:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selWantsToTrackMouseHandle = Selector.GetHandle("wantsToTrackMouse"); private static readonly IntPtr selHighlightWithFrameInView_Handle = Selector.GetHandle("highlight:withFrame:inView:"); private static readonly IntPtr selTrackMouseInRectOfViewUntilMouseUp_Handle = Selector.GetHandle("trackMouse:inRect:ofView:untilMouseUp:"); private static readonly IntPtr selDrawWithFrameInViewCharacterIndex_Handle = Selector.GetHandle("drawWithFrame:inView:characterIndex:"); private static readonly IntPtr selDrawWithFrameInViewCharacterIndexLayoutManager_Handle = Selector.GetHandle("drawWithFrame:inView:characterIndex:layoutManager:"); private static readonly IntPtr selWantsToTrackMouseForEventInRectOfViewAtCharacterIndex_Handle = Selector.GetHandle("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:"); private static readonly IntPtr selTrackMouseInRectOfViewAtCharacterIndexUntilMouseUp_Handle = Selector.GetHandle("trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:"); private static readonly IntPtr selCellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex_Handle = Selector.GetHandle("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextAttachmentCell"); private object __mt_Attachment_var; public override IntPtr ClassHandle => class_ptr; public new virtual CGSize CellSize { [Export("cellSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selCellSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selCellSizeHandle); } } public virtual CGPoint CellBaselineOffset { [Export("cellBaselineOffset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selCellBaselineOffsetHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selCellBaselineOffsetHandle); } } public virtual NSTextAttachment Attachment { [Export("attachment")] get { NSApplication.EnsureUIThread(); return (NSTextAttachment)(__mt_Attachment_var = ((!IsDirectBinding) ? ((NSTextAttachment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttachmentHandle))) : ((NSTextAttachment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttachmentHandle))))); } [Export("setAttachment:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttachment_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttachment_Handle, value.Handle); } __mt_Attachment_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextAttachmentCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextAttachmentCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextAttachmentCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextAttachmentCell(IntPtr handle) : base(handle) { } [Export("initImageCell:")] public NSTextAttachmentCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("wantsToTrackMouse")] public virtual bool WantsToTrackMouse() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsToTrackMouseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsToTrackMouseHandle); } [Export("highlight:withFrame:inView:")] public new virtual void Highlight(bool highlight, CGRect cellFrame, NSView controlView) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_CGRect_IntPtr(base.Handle, selHighlightWithFrameInView_Handle, highlight, cellFrame, controlView.Handle); } else { Messaging.void_objc_msgSendSuper_bool_CGRect_IntPtr(base.SuperHandle, selHighlightWithFrameInView_Handle, highlight, cellFrame, controlView.Handle); } } [Export("trackMouse:inRect:ofView:untilMouseUp:")] public new virtual bool TrackMouse(NSEvent theEvent, CGRect cellFrame, NSView controlView, bool untilMouseUp) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGRect_IntPtr_bool(base.Handle, selTrackMouseInRectOfViewUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, untilMouseUp); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_bool(base.SuperHandle, selTrackMouseInRectOfViewUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, untilMouseUp); } [Export("drawWithFrame:inView:characterIndex:")] public virtual void DrawWithFrame(CGRect cellFrame, NSView controlView, ulong charIndex) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_UInt64(base.Handle, selDrawWithFrameInViewCharacterIndex_Handle, cellFrame, controlView.Handle, charIndex); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_UInt64(base.SuperHandle, selDrawWithFrameInViewCharacterIndex_Handle, cellFrame, controlView.Handle, charIndex); } } [Export("drawWithFrame:inView:characterIndex:layoutManager:")] public virtual void DrawWithFrame(CGRect cellFrame, NSView controlView, ulong charIndex, NSLayoutManager layoutManager) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (layoutManager == null) { throw new ArgumentNullException("layoutManager"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_UInt64_IntPtr(base.Handle, selDrawWithFrameInViewCharacterIndexLayoutManager_Handle, cellFrame, controlView.Handle, charIndex, layoutManager.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_UInt64_IntPtr(base.SuperHandle, selDrawWithFrameInViewCharacterIndexLayoutManager_Handle, cellFrame, controlView.Handle, charIndex, layoutManager.Handle); } } [Export("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:")] public virtual bool WantsToTrackMouse(NSEvent theEvent, CGRect cellFrame, NSView controlView, ulong charIndex) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGRect_IntPtr_UInt64(base.Handle, selWantsToTrackMouseForEventInRectOfViewAtCharacterIndex_Handle, theEvent.Handle, cellFrame, controlView.Handle, charIndex); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_UInt64(base.SuperHandle, selWantsToTrackMouseForEventInRectOfViewAtCharacterIndex_Handle, theEvent.Handle, cellFrame, controlView.Handle, charIndex); } [Export("trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:")] public virtual bool TrackMouse(NSEvent theEvent, CGRect cellFrame, NSView controlView, ulong charIndex, bool untilMouseUp) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_CGRect_IntPtr_UInt64_bool(base.Handle, selTrackMouseInRectOfViewAtCharacterIndexUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, charIndex, untilMouseUp); } return Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_UInt64_bool(base.SuperHandle, selTrackMouseInRectOfViewAtCharacterIndexUntilMouseUp_Handle, theEvent.Handle, cellFrame, controlView.Handle, charIndex, untilMouseUp); } [Export("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:")] public virtual CGRect CellFrameForTextContainer(NSTextContainer textContainer, CGRect lineFrag, CGPoint position, ulong charIndex) { NSApplication.EnsureUIThread(); if (textContainer == null) { throw new ArgumentNullException("textContainer"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_CGRect_CGPoint_UInt64(out retval, base.Handle, selCellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex_Handle, textContainer.Handle, lineFrag, position, charIndex); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_CGPoint_UInt64(out retval, base.SuperHandle, selCellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex_Handle, textContainer.Handle, lineFrag, position, charIndex); } return retval; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Attachment_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextBlock.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextBlock", true)] public class NSTextBlock : NSObject { private static readonly IntPtr selContentWidthHandle = Selector.GetHandle("contentWidth"); private static readonly IntPtr selContentWidthValueTypeHandle = Selector.GetHandle("contentWidthValueType"); private static readonly IntPtr selVerticalAlignmentHandle = Selector.GetHandle("verticalAlignment"); private static readonly IntPtr selSetVerticalAlignment_Handle = Selector.GetHandle("setVerticalAlignment:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selSetValueTypeForDimension_Handle = Selector.GetHandle("setValue:type:forDimension:"); private static readonly IntPtr selValueForDimension_Handle = Selector.GetHandle("valueForDimension:"); private static readonly IntPtr selValueTypeForDimension_Handle = Selector.GetHandle("valueTypeForDimension:"); private static readonly IntPtr selSetContentWidthType_Handle = Selector.GetHandle("setContentWidth:type:"); private static readonly IntPtr selSetWidthTypeForLayerEdge_Handle = Selector.GetHandle("setWidth:type:forLayer:edge:"); private static readonly IntPtr selSetWidthTypeForLayer_Handle = Selector.GetHandle("setWidth:type:forLayer:"); private static readonly IntPtr selWidthForLayerEdge_Handle = Selector.GetHandle("widthForLayer:edge:"); private static readonly IntPtr selWidthValueTypeForLayerEdge_Handle = Selector.GetHandle("widthValueTypeForLayer:edge:"); private static readonly IntPtr selSetBorderColorForEdge_Handle = Selector.GetHandle("setBorderColor:forEdge:"); private static readonly IntPtr selSetBorderColor_Handle = Selector.GetHandle("setBorderColor:"); private static readonly IntPtr selBorderColorForEdge_Handle = Selector.GetHandle("borderColorForEdge:"); private static readonly IntPtr selRectForLayoutAtPointInRectTextContainerCharacterRange_Handle = Selector.GetHandle("rectForLayoutAtPoint:inRect:textContainer:characterRange:"); private static readonly IntPtr selBoundsRectForContentRectInRectTextContainerCharacterRange_Handle = Selector.GetHandle("boundsRectForContentRect:inRect:textContainer:characterRange:"); private static readonly IntPtr selDrawBackgroundWithFrameInViewCharacterRangeLayoutManager_Handle = Selector.GetHandle("drawBackgroundWithFrame:inView:characterRange:layoutManager:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextBlock"); private object __mt_BackgroundColor_var; public override IntPtr ClassHandle => class_ptr; public virtual double ContentWidth { [Export("contentWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selContentWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selContentWidthHandle); } } public virtual NSTextBlockValueType ContentWidthValueType { [Export("contentWidthValueType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextBlockValueType)Messaging.UInt64_objc_msgSend(base.Handle, selContentWidthValueTypeHandle); } return (NSTextBlockValueType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selContentWidthValueTypeHandle); } } public virtual NSTextBlockVerticalAlignment VerticalAlignment { [Export("verticalAlignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextBlockVerticalAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selVerticalAlignmentHandle); } return (NSTextBlockVerticalAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selVerticalAlignmentHandle); } [Export("setVerticalAlignment:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetVerticalAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetVerticalAlignment_Handle, (ulong)value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextBlock() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextBlock(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextBlock(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextBlock(IntPtr handle) : base(handle) { } [Export("setValue:type:forDimension:")] public virtual void SetValue(double val, NSTextBlockValueType type, NSTextBlockDimension dimension) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_UInt64_UInt64(base.Handle, selSetValueTypeForDimension_Handle, val, (ulong)type, (ulong)dimension); } else { Messaging.void_objc_msgSendSuper_Double_UInt64_UInt64(base.SuperHandle, selSetValueTypeForDimension_Handle, val, (ulong)type, (ulong)dimension); } } [Export("valueForDimension:")] public virtual double GetValue(NSTextBlockDimension dimension) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_UInt64(base.Handle, selValueForDimension_Handle, (ulong)dimension); } return Messaging.Double_objc_msgSendSuper_UInt64(base.SuperHandle, selValueForDimension_Handle, (ulong)dimension); } [Export("valueTypeForDimension:")] public virtual NSTextBlockValueType GetValueType(NSTextBlockDimension dimension) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextBlockValueType)Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selValueTypeForDimension_Handle, (ulong)dimension); } return (NSTextBlockValueType)Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selValueTypeForDimension_Handle, (ulong)dimension); } [Export("setContentWidth:type:")] public virtual void SetContentWidth(double val, NSTextBlockValueType type) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_UInt64(base.Handle, selSetContentWidthType_Handle, val, (ulong)type); } else { Messaging.void_objc_msgSendSuper_Double_UInt64(base.SuperHandle, selSetContentWidthType_Handle, val, (ulong)type); } } [Export("setWidth:type:forLayer:edge:")] public virtual void SetWidth(double val, NSTextBlockValueType type, NSTextBlockLayer layer, NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_UInt64_Int64_int(base.Handle, selSetWidthTypeForLayerEdge_Handle, val, (ulong)type, (long)layer, (int)edge); } else { Messaging.void_objc_msgSendSuper_Double_UInt64_Int64_int(base.SuperHandle, selSetWidthTypeForLayerEdge_Handle, val, (ulong)type, (long)layer, (int)edge); } } [Export("setWidth:type:forLayer:")] public virtual void SetWidth(double val, NSTextBlockValueType type, NSTextBlockLayer layer) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_UInt64_Int64(base.Handle, selSetWidthTypeForLayer_Handle, val, (ulong)type, (long)layer); } else { Messaging.void_objc_msgSendSuper_Double_UInt64_Int64(base.SuperHandle, selSetWidthTypeForLayer_Handle, val, (ulong)type, (long)layer); } } [Export("widthForLayer:edge:")] public virtual double GetWidth(NSTextBlockLayer layer, NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64_int(base.Handle, selWidthForLayerEdge_Handle, (long)layer, (int)edge); } return Messaging.Double_objc_msgSendSuper_Int64_int(base.SuperHandle, selWidthForLayerEdge_Handle, (long)layer, (int)edge); } [Export("widthValueTypeForLayer:edge:")] public virtual NSTextBlockValueType WidthValueTypeForLayer(NSTextBlockLayer layer, NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextBlockValueType)Messaging.UInt64_objc_msgSend_Int64_int(base.Handle, selWidthValueTypeForLayerEdge_Handle, (long)layer, (int)edge); } return (NSTextBlockValueType)Messaging.UInt64_objc_msgSendSuper_Int64_int(base.SuperHandle, selWidthValueTypeForLayerEdge_Handle, (long)layer, (int)edge); } [Export("setBorderColor:forEdge:")] public virtual void SetBorderColor(NSColor color, NSRectEdge edge) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetBorderColorForEdge_Handle, color.Handle, (int)edge); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetBorderColorForEdge_Handle, color.Handle, (int)edge); } } [Export("setBorderColor:")] public virtual void SetBorderColor(NSColor color) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBorderColor_Handle, color.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBorderColor_Handle, color.Handle); } } [Export("borderColorForEdge:")] public virtual NSColor GetBorderColor(NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selBorderColorForEdge_Handle, (int)edge)); } return (NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selBorderColorForEdge_Handle, (int)edge)); } [Export("rectForLayoutAtPoint:inRect:textContainer:characterRange:")] public virtual CGRect GetRectForLayout(CGPoint startingPoint, CGRect rect, NSTextContainer textContainer, NSRange charRange) { NSApplication.EnsureUIThread(); if (textContainer == null) { throw new ArgumentNullException("textContainer"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGPoint_CGRect_IntPtr_NSRange(out retval, base.Handle, selRectForLayoutAtPointInRectTextContainerCharacterRange_Handle, startingPoint, rect, textContainer.Handle, charRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGPoint_CGRect_IntPtr_NSRange(out retval, base.SuperHandle, selRectForLayoutAtPointInRectTextContainerCharacterRange_Handle, startingPoint, rect, textContainer.Handle, charRange); } return retval; } [Export("boundsRectForContentRect:inRect:textContainer:characterRange:")] public virtual CGRect GetBoundsRect(CGRect contentRect, CGRect rect, NSTextContainer textContainer, NSRange charRange) { NSApplication.EnsureUIThread(); if (textContainer == null) { throw new ArgumentNullException("textContainer"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_CGRect_IntPtr_NSRange(out retval, base.Handle, selBoundsRectForContentRectInRectTextContainerCharacterRange_Handle, contentRect, rect, textContainer.Handle, charRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_CGRect_IntPtr_NSRange(out retval, base.SuperHandle, selBoundsRectForContentRectInRectTextContainerCharacterRange_Handle, contentRect, rect, textContainer.Handle, charRange); } return retval; } [Export("drawBackgroundWithFrame:inView:characterRange:layoutManager:")] public virtual void DrawBackground(CGRect frameRect, NSView controlView, NSRange charRange, NSLayoutManager layoutManager) { NSApplication.EnsureUIThread(); if (controlView == null) { throw new ArgumentNullException("controlView"); } if (layoutManager == null) { throw new ArgumentNullException("layoutManager"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_NSRange_IntPtr(base.Handle, selDrawBackgroundWithFrameInViewCharacterRangeLayoutManager_Handle, frameRect, controlView.Handle, charRange, layoutManager.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_NSRange_IntPtr(base.SuperHandle, selDrawBackgroundWithFrameInViewCharacterRangeLayoutManager_Handle, frameRect, controlView.Handle, charRange, layoutManager.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextBlockDimension.cs ================================================ namespace AppKit; public enum NSTextBlockDimension : ulong { Width, MinimumWidth, MaximumWidth, Height, MinimumHeight, MaximumHeight } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextBlockLayer.cs ================================================ namespace AppKit; public enum NSTextBlockLayer : long { Padding = -1L, Border, Margin } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextBlockValueType.cs ================================================ namespace AppKit; public enum NSTextBlockValueType : ulong { Absolute, Percentage } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextBlockVerticalAlignment.cs ================================================ namespace AppKit; public enum NSTextBlockVerticalAlignment : ulong { Top, Middle, Bottom, Baseline } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextContainer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextContainer", true)] public class NSTextContainer : NSObject { private static readonly IntPtr selIsSimpleRectangularTextContainerHandle = Selector.GetHandle("isSimpleRectangularTextContainer"); private static readonly IntPtr selLayoutManagerHandle = Selector.GetHandle("layoutManager"); private static readonly IntPtr selSetLayoutManager_Handle = Selector.GetHandle("setLayoutManager:"); private static readonly IntPtr selTextViewHandle = Selector.GetHandle("textView"); private static readonly IntPtr selSetTextView_Handle = Selector.GetHandle("setTextView:"); private static readonly IntPtr selWidthTracksTextViewHandle = Selector.GetHandle("widthTracksTextView"); private static readonly IntPtr selSetWidthTracksTextView_Handle = Selector.GetHandle("setWidthTracksTextView:"); private static readonly IntPtr selHeightTracksTextViewHandle = Selector.GetHandle("heightTracksTextView"); private static readonly IntPtr selSetHeightTracksTextView_Handle = Selector.GetHandle("setHeightTracksTextView:"); private static readonly IntPtr selContainerSizeHandle = Selector.GetHandle("containerSize"); private static readonly IntPtr selSetContainerSize_Handle = Selector.GetHandle("setContainerSize:"); private static readonly IntPtr selLineFragmentPaddingHandle = Selector.GetHandle("lineFragmentPadding"); private static readonly IntPtr selSetLineFragmentPadding_Handle = Selector.GetHandle("setLineFragmentPadding:"); private static readonly IntPtr selInitWithContainerSize_Handle = Selector.GetHandle("initWithContainerSize:"); private static readonly IntPtr selReplaceLayoutManager_Handle = Selector.GetHandle("replaceLayoutManager:"); private static readonly IntPtr selContainsPoint_Handle = Selector.GetHandle("containsPoint:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextContainer"); private object __mt_LayoutManager_var; private object __mt_TextView_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsSimpleRectangularTextContainer { [Export("isSimpleRectangularTextContainer")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSimpleRectangularTextContainerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSimpleRectangularTextContainerHandle); } } public virtual NSLayoutManager LayoutManager { [Export("layoutManager")] get { NSApplication.EnsureUIThread(); return (NSLayoutManager)(__mt_LayoutManager_var = ((!IsDirectBinding) ? ((NSLayoutManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayoutManagerHandle))) : ((NSLayoutManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLayoutManagerHandle))))); } [Export("setLayoutManager:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLayoutManager_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLayoutManager_Handle, value.Handle); } __mt_LayoutManager_var = value; } } public virtual NSTextView TextView { [Export("textView")] get { NSApplication.EnsureUIThread(); return (NSTextView)(__mt_TextView_var = ((!IsDirectBinding) ? ((NSTextView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextViewHandle))) : ((NSTextView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextViewHandle))))); } [Export("setTextView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextView_Handle, value.Handle); } __mt_TextView_var = value; } } public virtual bool WidthTracksTextView { [Export("widthTracksTextView")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWidthTracksTextViewHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWidthTracksTextViewHandle); } [Export("setWidthTracksTextView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWidthTracksTextView_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWidthTracksTextView_Handle, value); } } } public virtual bool HeightTracksTextView { [Export("heightTracksTextView")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHeightTracksTextViewHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHeightTracksTextViewHandle); } [Export("setHeightTracksTextView:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHeightTracksTextView_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHeightTracksTextView_Handle, value); } } } public virtual CGSize ContainerSize { [Export("containerSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContainerSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContainerSizeHandle); } [Export("setContainerSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContainerSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContainerSize_Handle, value); } } } public virtual double LineFragmentPadding { [Export("lineFragmentPadding")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLineFragmentPaddingHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLineFragmentPaddingHandle); } [Export("setLineFragmentPadding:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetLineFragmentPadding_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetLineFragmentPadding_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextContainer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextContainer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextContainer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextContainer(IntPtr handle) : base(handle) { } [Export("initWithContainerSize:")] public NSTextContainer(CGSize size) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGSize(base.Handle, selInitWithContainerSize_Handle, size); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGSize(base.SuperHandle, selInitWithContainerSize_Handle, size); } } [Export("replaceLayoutManager:")] public virtual void ReplaceLayoutManager(NSLayoutManager newLayoutManager) { NSApplication.EnsureUIThread(); if (newLayoutManager == null) { throw new ArgumentNullException("newLayoutManager"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceLayoutManager_Handle, newLayoutManager.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceLayoutManager_Handle, newLayoutManager.Handle); } } [Export("containsPoint:")] public virtual bool ContainsPoint(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint(base.Handle, selContainsPoint_Handle, point); } return Messaging.bool_objc_msgSendSuper_CGPoint(base.SuperHandle, selContainsPoint_Handle, point); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LayoutManager_var = null; __mt_TextView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextDelegate", true)] [Model] public class NSTextDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextDelegate(IntPtr handle) : base(handle) { } [Export("textShouldBeginEditing:")] public virtual bool TextShouldBeginEditing(NSText textObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textShouldEndEditing:")] public virtual bool TextShouldEndEditing(NSText textObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textDidBeginEditing:")] public virtual void TextDidBeginEditing(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textDidEndEditing:")] public virtual void TextDidEndEditing(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textDidChange:")] public virtual void TextDidChange(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextField.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextField", true)] public class NSTextField : NSControl { [Register] private sealed class _NSTextFieldDelegate : NSTextFieldDelegate { internal NSControlText textShouldBeginEditing; internal NSControlText textShouldEndEditing; internal NSControlTextError didFailToFormatString; internal EventHandler didFailToValidatePartialString; internal NSControlTextValidation isValidObject; internal NSControlCommand doCommandBySelector; internal NSControlTextFilter getCompletions; internal EventHandler editingEnded; internal EventHandler changed; internal EventHandler editingBegan; [Preserve(Conditional = true)] public override bool TextShouldBeginEditing(NSControl control, NSText fieldEditor) { return textShouldBeginEditing?.Invoke(control, fieldEditor) ?? true; } [Preserve(Conditional = true)] public override bool TextShouldEndEditing(NSControl control, NSText fieldEditor) { return textShouldEndEditing?.Invoke(control, fieldEditor) ?? true; } [Preserve(Conditional = true)] public override bool DidFailToFormatString(NSControl control, string str, string error) { return didFailToFormatString?.Invoke(control, str, error) ?? true; } [Preserve(Conditional = true)] public override void DidFailToValidatePartialString(NSControl control, string str, string error) { EventHandler eventHandler = didFailToValidatePartialString; if (eventHandler != null) { NSControlTextErrorEventArgs e = new NSControlTextErrorEventArgs(str, error); eventHandler(control, e); } } [Preserve(Conditional = true)] public override bool IsValidObject(NSControl control, NSObject objectToValidate) { return isValidObject?.Invoke(control, objectToValidate) ?? true; } [Preserve(Conditional = true)] public override bool DoCommandBySelector(NSControl control, NSTextView textView, Selector commandSelector) { return doCommandBySelector?.Invoke(control, textView, commandSelector) ?? false; } [Preserve(Conditional = true)] public override string[] GetCompletions(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index) { NSControlTextFilter nSControlTextFilter = getCompletions; if (nSControlTextFilter != null) { return nSControlTextFilter(control, textView, words, charRange, index); } return new string[0]; } [Preserve(Conditional = true)] public override void EditingEnded(NSNotification notification) { editingEnded?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void Changed(NSNotification notification) { changed?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void EditingBegan(NSNotification notification) { editingBegan?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selSetTextColor_Handle = Selector.GetHandle("setTextColor:"); private static readonly IntPtr selIsBorderedHandle = Selector.GetHandle("isBordered"); private static readonly IntPtr selSetBordered_Handle = Selector.GetHandle("setBordered:"); private static readonly IntPtr selIsBezeledHandle = Selector.GetHandle("isBezeled"); private static readonly IntPtr selSetBezeled_Handle = Selector.GetHandle("setBezeled:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selIsSelectableHandle = Selector.GetHandle("isSelectable"); private static readonly IntPtr selSetSelectable_Handle = Selector.GetHandle("setSelectable:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selBezelStyleHandle = Selector.GetHandle("bezelStyle"); private static readonly IntPtr selSetBezelStyle_Handle = Selector.GetHandle("setBezelStyle:"); private static readonly IntPtr selAllowsEditingTextAttributesHandle = Selector.GetHandle("allowsEditingTextAttributes"); private static readonly IntPtr selSetAllowsEditingTextAttributes_Handle = Selector.GetHandle("setAllowsEditingTextAttributes:"); private static readonly IntPtr selImportsGraphicsHandle = Selector.GetHandle("importsGraphics"); private static readonly IntPtr selSetImportsGraphics_Handle = Selector.GetHandle("setImportsGraphics:"); private static readonly IntPtr selPreferredMaxLayoutWidthHandle = Selector.GetHandle("preferredMaxLayoutWidth"); private static readonly IntPtr selSetPreferredMaxLayoutWidth_Handle = Selector.GetHandle("setPreferredMaxLayoutWidth:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selSelectText_Handle = Selector.GetHandle("selectText:"); private static readonly IntPtr selTextShouldBeginEditing_Handle = Selector.GetHandle("textShouldBeginEditing:"); private static readonly IntPtr selTextShouldEndEditing_Handle = Selector.GetHandle("textShouldEndEditing:"); private static readonly IntPtr selTextDidBeginEditing_Handle = Selector.GetHandle("textDidBeginEditing:"); private static readonly IntPtr selTextDidEndEditing_Handle = Selector.GetHandle("textDidEndEditing:"); private static readonly IntPtr selTextDidChange_Handle = Selector.GetHandle("textDidChange:"); private static readonly IntPtr selAcceptsFirstResponderHandle = Selector.GetHandle("acceptsFirstResponder"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextField"); private object __mt_BackgroundColor_var; private object __mt_TextColor_var; private object __mt_WeakDelegate_var; public new NSTextFieldCell Cell { get { return (NSTextFieldCell)base.Cell; } set { base.Cell = value; } } public override IntPtr ClassHandle => class_ptr; public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSColor TextColor { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextColorHandle))))); } [Export("setTextColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextColor_Handle, value.Handle); } __mt_TextColor_var = value; } } public virtual bool Bordered { [Export("isBordered")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBorderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBorderedHandle); } [Export("setBordered:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBordered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBordered_Handle, value); } } } public virtual bool Bezeled { [Export("isBezeled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBezeledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBezeledHandle); } [Export("setBezeled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBezeled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBezeled_Handle, value); } } } public virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool Selectable { [Export("isSelectable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectableHandle); } [Export("setSelectable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectable_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSTextFieldDelegate Delegate { get { return WeakDelegate as NSTextFieldDelegate; } set { WeakDelegate = value; } } public virtual NSTextFieldBezelStyle BezelStyle { [Export("bezelStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextFieldBezelStyle)Messaging.int_objc_msgSend(base.Handle, selBezelStyleHandle); } return (NSTextFieldBezelStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selBezelStyleHandle); } [Export("setBezelStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetBezelStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetBezelStyle_Handle, (int)value); } } } public virtual bool AllowsEditingTextAttributes { [Export("allowsEditingTextAttributes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEditingTextAttributesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEditingTextAttributesHandle); } [Export("setAllowsEditingTextAttributes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEditingTextAttributes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEditingTextAttributes_Handle, value); } } } public virtual bool ImportsGraphics { [Export("importsGraphics")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selImportsGraphicsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selImportsGraphicsHandle); } [Export("setImportsGraphics:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetImportsGraphics_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetImportsGraphics_Handle, value); } } } [MountainLion] public virtual double PreferredMaxLayoutWidth { [MountainLion] [Export("preferredMaxLayoutWidth")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selPreferredMaxLayoutWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selPreferredMaxLayoutWidthHandle); } [MountainLion] [Export("setPreferredMaxLayoutWidth:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetPreferredMaxLayoutWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetPreferredMaxLayoutWidth_Handle, value); } } } public NSControlText TextShouldBeginEditing { get { return EnsureNSTextFieldDelegate().textShouldBeginEditing; } set { EnsureNSTextFieldDelegate().textShouldBeginEditing = value; } } public NSControlText TextShouldEndEditing { get { return EnsureNSTextFieldDelegate().textShouldEndEditing; } set { EnsureNSTextFieldDelegate().textShouldEndEditing = value; } } public NSControlTextError DidFailToFormatString { get { return EnsureNSTextFieldDelegate().didFailToFormatString; } set { EnsureNSTextFieldDelegate().didFailToFormatString = value; } } public NSControlTextValidation IsValidObject { get { return EnsureNSTextFieldDelegate().isValidObject; } set { EnsureNSTextFieldDelegate().isValidObject = value; } } public NSControlCommand DoCommandBySelector { get { return EnsureNSTextFieldDelegate().doCommandBySelector; } set { EnsureNSTextFieldDelegate().doCommandBySelector = value; } } public NSControlTextFilter GetCompletions { get { return EnsureNSTextFieldDelegate().getCompletions; } set { EnsureNSTextFieldDelegate().getCompletions = value; } } public event EventHandler DidFailToValidatePartialString { add { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.didFailToValidatePartialString = (EventHandler)System.Delegate.Combine(nSTextFieldDelegate.didFailToValidatePartialString, value); } remove { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.didFailToValidatePartialString = (EventHandler)System.Delegate.Remove(nSTextFieldDelegate.didFailToValidatePartialString, value); } } public event EventHandler EditingEnded { add { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.editingEnded = (EventHandler)System.Delegate.Combine(nSTextFieldDelegate.editingEnded, value); } remove { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.editingEnded = (EventHandler)System.Delegate.Remove(nSTextFieldDelegate.editingEnded, value); } } public event EventHandler Changed { add { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.changed = (EventHandler)System.Delegate.Combine(nSTextFieldDelegate.changed, value); } remove { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.changed = (EventHandler)System.Delegate.Remove(nSTextFieldDelegate.changed, value); } } public event EventHandler EditingBegan { add { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.editingBegan = (EventHandler)System.Delegate.Combine(nSTextFieldDelegate.editingBegan, value); } remove { _NSTextFieldDelegate nSTextFieldDelegate = EnsureNSTextFieldDelegate(); nSTextFieldDelegate.editingBegan = (EventHandler)System.Delegate.Remove(nSTextFieldDelegate.editingBegan, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextField() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextField(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextField(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextField(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSTextField(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("selectText:")] public virtual void SelectText(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectText_Handle, sender.Handle); } } [Export("textShouldBeginEditing:")] public virtual bool ShouldBeginEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldBeginEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldBeginEditing_Handle, textObject.Handle); } [Export("textShouldEndEditing:")] public virtual bool ShouldEndEditing(NSText textObject) { NSApplication.EnsureUIThread(); if (textObject == null) { throw new ArgumentNullException("textObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selTextShouldEndEditing_Handle, textObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextShouldEndEditing_Handle, textObject.Handle); } [Export("textDidBeginEditing:")] public virtual void DidBeginEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidBeginEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidBeginEditing_Handle, notification.Handle); } } [Export("textDidEndEditing:")] public virtual void DidEndEditing(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidEndEditing_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidEndEditing_Handle, notification.Handle); } } [Export("textDidChange:")] public virtual void DidChange(NSNotification notification) { NSApplication.EnsureUIThread(); if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTextDidChange_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTextDidChange_Handle, notification.Handle); } } [Export("acceptsFirstResponder")] public new virtual bool AcceptsFirstResponder() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsFirstResponderHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsFirstResponderHandle); } private _NSTextFieldDelegate EnsureNSTextFieldDelegate() { NSTextFieldDelegate nSTextFieldDelegate = Delegate; if (nSTextFieldDelegate == null || !(nSTextFieldDelegate is _NSTextFieldDelegate)) { nSTextFieldDelegate = (Delegate = new _NSTextFieldDelegate()); } return (_NSTextFieldDelegate)nSTextFieldDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_TextColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextFieldBezelStyle.cs ================================================ namespace AppKit; public enum NSTextFieldBezelStyle { Square, Rounded } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextFieldCell.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextFieldCell", true)] public class NSTextFieldCell : NSActionCell { private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selTextColorHandle = Selector.GetHandle("textColor"); private static readonly IntPtr selSetTextColor_Handle = Selector.GetHandle("setTextColor:"); private static readonly IntPtr selBezelStyleHandle = Selector.GetHandle("bezelStyle"); private static readonly IntPtr selSetBezelStyle_Handle = Selector.GetHandle("setBezelStyle:"); private static readonly IntPtr selPlaceholderStringHandle = Selector.GetHandle("placeholderString"); private static readonly IntPtr selSetPlaceholderString_Handle = Selector.GetHandle("setPlaceholderString:"); private static readonly IntPtr selPlaceholderAttributedStringHandle = Selector.GetHandle("placeholderAttributedString"); private static readonly IntPtr selSetPlaceholderAttributedString_Handle = Selector.GetHandle("setPlaceholderAttributedString:"); private static readonly IntPtr selAllowedInputSourceLocalesHandle = Selector.GetHandle("allowedInputSourceLocales"); private static readonly IntPtr selSetAllowedInputSourceLocales_Handle = Selector.GetHandle("setAllowedInputSourceLocales:"); private static readonly IntPtr selWantsNotificationForMarkedTextHandle = Selector.GetHandle("wantsNotificationForMarkedText"); private static readonly IntPtr selSetWantsNotificationForMarkedText_Handle = Selector.GetHandle("setWantsNotificationForMarkedText:"); private static readonly IntPtr selInitTextCell_Handle = Selector.GetHandle("initTextCell:"); private static readonly IntPtr selInitImageCell_Handle = Selector.GetHandle("initImageCell:"); private static readonly IntPtr selSetUpFieldEditorAttributes_Handle = Selector.GetHandle("setUpFieldEditorAttributes:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextFieldCell"); private object __mt_BackgroundColor_var; private object __mt_TextColor_var; private object __mt_PlaceholderAttributedString_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual NSColor TextColor { [Export("textColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_TextColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextColorHandle))))); } [Export("setTextColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextColor_Handle, value.Handle); } __mt_TextColor_var = value; } } public virtual NSTextFieldBezelStyle BezelStyle { [Export("bezelStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextFieldBezelStyle)Messaging.int_objc_msgSend(base.Handle, selBezelStyleHandle); } return (NSTextFieldBezelStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selBezelStyleHandle); } [Export("setBezelStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetBezelStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetBezelStyle_Handle, (int)value); } } } public virtual string PlaceholderString { [Export("placeholderString")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderStringHandle)); } [Export("setPlaceholderString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderString_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSAttributedString PlaceholderAttributedString { [Export("placeholderAttributedString")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_PlaceholderAttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlaceholderAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPlaceholderAttributedStringHandle))))); } [Export("setPlaceholderAttributedString:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlaceholderAttributedString_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlaceholderAttributedString_Handle, value.Handle); } __mt_PlaceholderAttributedString_var = value; } } public virtual string[] AllowedInputSourceLocales { [Export("allowedInputSourceLocales")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllowedInputSourceLocalesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllowedInputSourceLocalesHandle)); } [Export("setAllowedInputSourceLocales:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAllowedInputSourceLocales_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAllowedInputSourceLocales_Handle, nSArray.Handle); } nSArray.Dispose(); } } public override bool WantsNotificationForMarkedText { [Export("wantsNotificationForMarkedText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsNotificationForMarkedTextHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsNotificationForMarkedTextHandle); } [Export("setWantsNotificationForMarkedText:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWantsNotificationForMarkedText_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWantsNotificationForMarkedText_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextFieldCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextFieldCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextFieldCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextFieldCell(IntPtr handle) : base(handle) { } [Export("initTextCell:")] public NSTextFieldCell(string aString) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitTextCell_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitTextCell_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initImageCell:")] public NSTextFieldCell(NSImage image) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitImageCell_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitImageCell_Handle, image.Handle); } } [Export("setUpFieldEditorAttributes:")] public new virtual NSText SetUpFieldEditorAttributes(NSText textObj) { NSApplication.EnsureUIThread(); if (textObj == null) { throw new ArgumentNullException("textObj"); } if (IsDirectBinding) { return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetUpFieldEditorAttributes_Handle, textObj.Handle)); } return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUpFieldEditorAttributes_Handle, textObj.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_TextColor_var = null; __mt_PlaceholderAttributedString_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextFieldDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextFieldDelegate", true)] [Model] public class NSTextFieldDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextFieldDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextFieldDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextFieldDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextFieldDelegate(IntPtr handle) : base(handle) { } [Export("control:textShouldBeginEditing:")] public virtual bool TextShouldBeginEditing(NSControl control, NSText fieldEditor) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textShouldEndEditing:")] public virtual bool TextShouldEndEditing(NSControl control, NSText fieldEditor) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:didFailToFormatString:errorDescription:")] public virtual bool DidFailToFormatString(NSControl control, string str, string error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:didFailToValidatePartialString:errorDescription:")] public virtual void DidFailToValidatePartialString(NSControl control, string str, string error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:isValidObject:")] public virtual bool IsValidObject(NSControl control, NSObject objectToValidate) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textView:doCommandBySelector:")] public virtual bool DoCommandBySelector(NSControl control, NSTextView textView, Selector commandSelector) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("control:textView:completions:forPartialWordRange:indexOfSelectedItem:")] public virtual string[] GetCompletions(NSControl control, NSTextView textView, string[] words, NSRange charRange, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("controlTextDidEndEditing:")] public virtual void EditingEnded(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("controlTextDidChange:")] public virtual void Changed(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("controlTextDidBeginEditing:")] public virtual void EditingBegan(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextFinderAction.cs ================================================ using ObjCRuntime; namespace AppKit; [Lion] public enum NSTextFinderAction : long { ShowFindInterface = 1L, NextMatch, PreviousMatch, ReplaceAll, Replace, ReplaceAndFind, SetSearchString, ReplaceAllInSelection, SelectAll, SelectAllInSelection, HideFindInterface, ShowReplaceInterface, HideReplaceInterface } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextInputContext.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextInputContext", true)] public class NSTextInputContext : NSObject { private static readonly IntPtr selCurrentInputContextHandle = Selector.GetHandle("currentInputContext"); private static readonly IntPtr selActivateHandle = Selector.GetHandle("activate"); private static readonly IntPtr selDeactivateHandle = Selector.GetHandle("deactivate"); private static readonly IntPtr selHandleEvent_Handle = Selector.GetHandle("handleEvent:"); private static readonly IntPtr selDiscardMarkedTextHandle = Selector.GetHandle("discardMarkedText"); private static readonly IntPtr selInvalidateCharacterCoordinatesHandle = Selector.GetHandle("invalidateCharacterCoordinates"); private static readonly IntPtr selLocalizedNameForInputSource_Handle = Selector.GetHandle("localizedNameForInputSource:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextInputContext"); private static object __mt_CurrentInputContext_var_static; public override IntPtr ClassHandle => class_ptr; public static NSTextInputContext CurrentInputContext { [Export("currentInputContext")] get { NSApplication.EnsureUIThread(); return (NSTextInputContext)(__mt_CurrentInputContext_var_static = (NSTextInputContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentInputContextHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextInputContext() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextInputContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextInputContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextInputContext(IntPtr handle) : base(handle) { } [Export("activate")] public virtual void Activate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selActivateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selActivateHandle); } } [Export("deactivate")] public virtual void Deactivate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeactivateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeactivateHandle); } } [Export("handleEvent:")] public virtual bool HandleEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHandleEvent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHandleEvent_Handle, theEvent.Handle); } [Export("discardMarkedText")] public virtual void DiscardMarkedText() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardMarkedTextHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardMarkedTextHandle); } } [Export("invalidateCharacterCoordinates")] public virtual void InvalidateCharacterCoordinates() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateCharacterCoordinatesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateCharacterCoordinatesHandle); } } [Export("localizedNameForInputSource:")] public static string LocalizedNameForInputSource(string inputSourceIdentifier) { NSApplication.EnsureUIThread(); if (inputSourceIdentifier == null) { throw new ArgumentNullException("inputSourceIdentifier"); } IntPtr arg = NSString.CreateNative(inputSourceIdentifier); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocalizedNameForInputSource_Handle, arg)); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextList.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextList", true)] public class NSTextList : NSObject { private static readonly IntPtr selMarkerFormatHandle = Selector.GetHandle("markerFormat"); private static readonly IntPtr selListOptionsHandle = Selector.GetHandle("listOptions"); private static readonly IntPtr selStartingItemNumberHandle = Selector.GetHandle("startingItemNumber"); private static readonly IntPtr selSetStartingItemNumber_Handle = Selector.GetHandle("setStartingItemNumber:"); private static readonly IntPtr selInitWithMarkerFormatOptions_Handle = Selector.GetHandle("initWithMarkerFormat:options:"); private static readonly IntPtr selMarkerForItemNumber_Handle = Selector.GetHandle("markerForItemNumber:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextList"); public override IntPtr ClassHandle => class_ptr; public virtual string MarkerFormat { [Export("markerFormat")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMarkerFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMarkerFormatHandle)); } } public virtual NSTextListOptions ListOptions { [Export("listOptions")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextListOptions)Messaging.UInt64_objc_msgSend(base.Handle, selListOptionsHandle); } return (NSTextListOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selListOptionsHandle); } } public virtual long StartingItemNumber { [Export("startingItemNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selStartingItemNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStartingItemNumberHandle); } [Export("setStartingItemNumber:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetStartingItemNumber_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetStartingItemNumber_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextList() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextList(IntPtr handle) : base(handle) { } [Export("initWithMarkerFormat:options:")] public NSTextList(string format, NSTextListOptions mask) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (format == null) { throw new ArgumentNullException("format"); } IntPtr arg = NSString.CreateNative(format); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selInitWithMarkerFormatOptions_Handle, arg, (ulong)mask); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selInitWithMarkerFormatOptions_Handle, arg, (ulong)mask); } NSString.ReleaseNative(arg); } [Export("markerForItemNumber:")] public virtual string GetMarker(long itemNum) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selMarkerForItemNumber_Handle, itemNum)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selMarkerForItemNumber_Handle, itemNum)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextListOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTextListOptions : ulong { PrependEnclosingMarker = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextMovement.cs ================================================ namespace AppKit; public enum NSTextMovement : ulong { Other = 0uL, Return = 16uL, Tab = 17uL, Backtab = 18uL, Left = 19uL, Right = 20uL, Up = 21uL, Down = 22uL, Cancel = 23uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextPredicate.cs ================================================ namespace AppKit; public delegate bool NSTextPredicate(NSText textObject); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextStorage.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextStorage", true)] public class NSTextStorage : NSMutableAttributedString { [Register] private sealed class _NSTextStorageDelegate : NSTextStorageDelegate { internal EventHandler textStorageWillProcessEditing; internal EventHandler textStorageDidProcessEditing; [Preserve(Conditional = true)] public override void TextStorageWillProcessEditing(NSNotification notification) { textStorageWillProcessEditing?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void TextStorageDidProcessEditing(NSNotification notification) { textStorageDidProcessEditing?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selLayoutManagersHandle = Selector.GetHandle("layoutManagers"); private static readonly IntPtr selFixesAttributesLazilyHandle = Selector.GetHandle("fixesAttributesLazily"); private static readonly IntPtr selEditedMaskHandle = Selector.GetHandle("editedMask"); private static readonly IntPtr selEditedRangeHandle = Selector.GetHandle("editedRange"); private static readonly IntPtr selChangeInLengthHandle = Selector.GetHandle("changeInLength"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selAddLayoutManager_Handle = Selector.GetHandle("addLayoutManager:"); private static readonly IntPtr selRemoveLayoutManager_Handle = Selector.GetHandle("removeLayoutManager:"); private static readonly IntPtr selEditedRangeChangeInLength_Handle = Selector.GetHandle("edited:range:changeInLength:"); private static readonly IntPtr selProcessEditingHandle = Selector.GetHandle("processEditing"); private static readonly IntPtr selInvalidateAttributesInRange_Handle = Selector.GetHandle("invalidateAttributesInRange:"); private static readonly IntPtr selEnsureAttributesAreFixedInRange_Handle = Selector.GetHandle("ensureAttributesAreFixedInRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextStorage"); private object __mt_LayoutManagers_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSLayoutManager[] LayoutManagers { [Export("layoutManagers")] get { NSApplication.EnsureUIThread(); return (NSLayoutManager[])(__mt_LayoutManagers_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayoutManagersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLayoutManagersHandle)))); } } public virtual bool FixesAttributesLazily { [Export("fixesAttributesLazily")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selFixesAttributesLazilyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFixesAttributesLazilyHandle); } } public virtual NSTextStorageEditedFlags EditedMask { [Export("editedMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextStorageEditedFlags)Messaging.UInt64_objc_msgSend(base.Handle, selEditedMaskHandle); } return (NSTextStorageEditedFlags)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selEditedMaskHandle); } } public virtual NSRange EditedRange { [Export("editedRange")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selEditedRangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selEditedRangeHandle); } } public virtual long ChangeInLength { [Export("changeInLength")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selChangeInLengthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selChangeInLengthHandle); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public NSTextStorageDelegate Delegate { get { return WeakDelegate as NSTextStorageDelegate; } set { WeakDelegate = value; } } public event EventHandler TextStorageWillProcessEditing { add { _NSTextStorageDelegate nSTextStorageDelegate = EnsureNSTextStorageDelegate(); nSTextStorageDelegate.textStorageWillProcessEditing = (EventHandler)System.Delegate.Combine(nSTextStorageDelegate.textStorageWillProcessEditing, value); } remove { _NSTextStorageDelegate nSTextStorageDelegate = EnsureNSTextStorageDelegate(); nSTextStorageDelegate.textStorageWillProcessEditing = (EventHandler)System.Delegate.Remove(nSTextStorageDelegate.textStorageWillProcessEditing, value); } } public event EventHandler TextStorageDidProcessEditing { add { _NSTextStorageDelegate nSTextStorageDelegate = EnsureNSTextStorageDelegate(); nSTextStorageDelegate.textStorageDidProcessEditing = (EventHandler)System.Delegate.Combine(nSTextStorageDelegate.textStorageDidProcessEditing, value); } remove { _NSTextStorageDelegate nSTextStorageDelegate = EnsureNSTextStorageDelegate(); nSTextStorageDelegate.textStorageDidProcessEditing = (EventHandler)System.Delegate.Remove(nSTextStorageDelegate.textStorageDidProcessEditing, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextStorage() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextStorage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextStorage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextStorage(IntPtr handle) : base(handle) { } [Export("addLayoutManager:")] public virtual void AddLayoutManager(NSLayoutManager obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddLayoutManager_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddLayoutManager_Handle, obj.Handle); } _ = LayoutManagers; } [Export("removeLayoutManager:")] public virtual void RemoveLayoutManager(NSLayoutManager obj) { NSApplication.EnsureUIThread(); if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveLayoutManager_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveLayoutManager_Handle, obj.Handle); } _ = LayoutManagers; } [Export("edited:range:changeInLength:")] public virtual void Edited(ulong editedMask, NSRange range, long delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_NSRange_Int64(base.Handle, selEditedRangeChangeInLength_Handle, editedMask, range, delta); } else { Messaging.void_objc_msgSendSuper_UInt64_NSRange_Int64(base.SuperHandle, selEditedRangeChangeInLength_Handle, editedMask, range, delta); } } [Export("processEditing")] public virtual void ProcessEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selProcessEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selProcessEditingHandle); } } [Export("invalidateAttributesInRange:")] public virtual void InvalidateAttributes(NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selInvalidateAttributesInRange_Handle, range); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selInvalidateAttributesInRange_Handle, range); } } [Export("ensureAttributesAreFixedInRange:")] public virtual void EnsureAttributesAreFixed(NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selEnsureAttributesAreFixedInRange_Handle, range); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selEnsureAttributesAreFixedInRange_Handle, range); } } private _NSTextStorageDelegate EnsureNSTextStorageDelegate() { NSTextStorageDelegate nSTextStorageDelegate = Delegate; if (nSTextStorageDelegate == null || !(nSTextStorageDelegate is _NSTextStorageDelegate)) { nSTextStorageDelegate = (Delegate = new _NSTextStorageDelegate()); } return (_NSTextStorageDelegate)nSTextStorageDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LayoutManagers_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextStorageDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextStorageDelegate", true)] [Model] public class NSTextStorageDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextStorageDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextStorageDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextStorageDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextStorageDelegate(IntPtr handle) : base(handle) { } [Export("textStorageWillProcessEditing:")] public virtual void TextStorageWillProcessEditing(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textStorageDidProcessEditing:")] public virtual void TextStorageDidProcessEditing(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextStorageEditedFlags.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTextStorageEditedFlags : ulong { EditedAttributed = 1uL, EditedCharacters = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextTab.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextTab", true)] public class NSTextTab : NSObject { private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selLocationHandle = Selector.GetHandle("location"); private static readonly IntPtr selTabStopTypeHandle = Selector.GetHandle("tabStopType"); private static readonly IntPtr selInitWithTextAlignmentLocationOptions_Handle = Selector.GetHandle("initWithTextAlignment:location:options:"); private static readonly IntPtr selInitWithTypeLocation_Handle = Selector.GetHandle("initWithType:location:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextTab"); private object __mt_Options_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTextAlignment Alignment { [Export("alignment")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } } public virtual NSDictionary Options { [Export("options")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_Options_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOptionsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOptionsHandle))))); } } public virtual double Location { [Export("location")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLocationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLocationHandle); } } public virtual NSTextTabType TabStopType { [Export("tabStopType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextTabType)Messaging.UInt64_objc_msgSend(base.Handle, selTabStopTypeHandle); } return (NSTextTabType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTabStopTypeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextTab() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextTab(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTab(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTab(IntPtr handle) : base(handle) { } [Export("initWithTextAlignment:location:options:")] public NSTextTab(NSTextAlignment alignment, double loc, NSDictionary options) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64_Double_IntPtr(base.Handle, selInitWithTextAlignmentLocationOptions_Handle, (ulong)alignment, loc, options.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64_Double_IntPtr(base.SuperHandle, selInitWithTextAlignmentLocationOptions_Handle, (ulong)alignment, loc, options.Handle); } } [Export("initWithType:location:")] public NSTextTab(NSTextTabType type, double loc) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64_Double(base.Handle, selInitWithTypeLocation_Handle, (ulong)type, loc); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64_Double(base.SuperHandle, selInitWithTypeLocation_Handle, (ulong)type, loc); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Options_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextTabType.cs ================================================ namespace AppKit; public enum NSTextTabType : ulong { Left, Right, Center, Decimal } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextTable.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextTable", true)] public class NSTextTable : NSTextBlock { private static readonly IntPtr selNumberOfColumnsHandle = Selector.GetHandle("numberOfColumns"); private static readonly IntPtr selSetNumberOfColumns_Handle = Selector.GetHandle("setNumberOfColumns:"); private static readonly IntPtr selLayoutAlgorithmHandle = Selector.GetHandle("layoutAlgorithm"); private static readonly IntPtr selSetLayoutAlgorithm_Handle = Selector.GetHandle("setLayoutAlgorithm:"); private static readonly IntPtr selCollapsesBordersHandle = Selector.GetHandle("collapsesBorders"); private static readonly IntPtr selSetCollapsesBorders_Handle = Selector.GetHandle("setCollapsesBorders:"); private static readonly IntPtr selHidesEmptyCellsHandle = Selector.GetHandle("hidesEmptyCells"); private static readonly IntPtr selSetHidesEmptyCells_Handle = Selector.GetHandle("setHidesEmptyCells:"); private static readonly IntPtr selRectForBlockLayoutAtPointInRectTextContainerCharacterRange_Handle = Selector.GetHandle("rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:"); private static readonly IntPtr selBoundsRectForBlockContentRectInRectTextContainerCharacterRange_Handle = Selector.GetHandle("boundsRectForBlock:contentRect:inRect:textContainer:characterRange:"); private static readonly IntPtr selDrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutManager_Handle = Selector.GetHandle("drawBackgroundForBlock:withFrame:inView:characterRange:layoutManager:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextTable"); public override IntPtr ClassHandle => class_ptr; public virtual long Columns { [Export("numberOfColumns")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selNumberOfColumnsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selNumberOfColumnsHandle); } [Export("setNumberOfColumns:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetNumberOfColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetNumberOfColumns_Handle, value); } } } public virtual NSTextTableLayoutAlgorithm LayoutAlgorithm { [Export("layoutAlgorithm")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextTableLayoutAlgorithm)Messaging.UInt64_objc_msgSend(base.Handle, selLayoutAlgorithmHandle); } return (NSTextTableLayoutAlgorithm)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLayoutAlgorithmHandle); } [Export("setLayoutAlgorithm:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLayoutAlgorithm_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLayoutAlgorithm_Handle, (ulong)value); } } } public virtual bool CollapsesBorders { [Export("collapsesBorders")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCollapsesBordersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCollapsesBordersHandle); } [Export("setCollapsesBorders:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCollapsesBorders_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCollapsesBorders_Handle, value); } } } public virtual bool HidesEmptyCells { [Export("hidesEmptyCells")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHidesEmptyCellsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHidesEmptyCellsHandle); } [Export("setHidesEmptyCells:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidesEmptyCells_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidesEmptyCells_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextTable() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextTable(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTable(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTable(IntPtr handle) : base(handle) { } [Export("rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:")] public virtual CGRect GetRectForBlock(NSTextTableBlock block, CGPoint startingPoint, CGRect rect, NSTextContainer textContainer, NSRange charRange) { NSApplication.EnsureUIThread(); if (block == null) { throw new ArgumentNullException("block"); } if (textContainer == null) { throw new ArgumentNullException("textContainer"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_CGPoint_CGRect_IntPtr_NSRange(out retval, base.Handle, selRectForBlockLayoutAtPointInRectTextContainerCharacterRange_Handle, block.Handle, startingPoint, rect, textContainer.Handle, charRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_CGPoint_CGRect_IntPtr_NSRange(out retval, base.SuperHandle, selRectForBlockLayoutAtPointInRectTextContainerCharacterRange_Handle, block.Handle, startingPoint, rect, textContainer.Handle, charRange); } return retval; } [Export("boundsRectForBlock:contentRect:inRect:textContainer:characterRange:")] public virtual CGRect GetBoundsRect(NSTextTableBlock block, CGRect contentRect, CGRect rect, NSTextContainer textContainer, NSRange charRange) { NSApplication.EnsureUIThread(); if (block == null) { throw new ArgumentNullException("block"); } if (textContainer == null) { throw new ArgumentNullException("textContainer"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr_CGRect_CGRect_IntPtr_NSRange(out retval, base.Handle, selBoundsRectForBlockContentRectInRectTextContainerCharacterRange_Handle, block.Handle, contentRect, rect, textContainer.Handle, charRange); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_CGRect_IntPtr_NSRange(out retval, base.SuperHandle, selBoundsRectForBlockContentRectInRectTextContainerCharacterRange_Handle, block.Handle, contentRect, rect, textContainer.Handle, charRange); } return retval; } [Export("drawBackgroundForBlock:withFrame:inView:characterRange:layoutManager:")] public virtual void DrawBackground(NSTextTableBlock block, CGRect frameRect, NSView controlView, NSRange charRange, NSLayoutManager layoutManager) { NSApplication.EnsureUIThread(); if (block == null) { throw new ArgumentNullException("block"); } if (controlView == null) { throw new ArgumentNullException("controlView"); } if (layoutManager == null) { throw new ArgumentNullException("layoutManager"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect_IntPtr_NSRange_IntPtr(base.Handle, selDrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutManager_Handle, block.Handle, frameRect, controlView.Handle, charRange, layoutManager.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect_IntPtr_NSRange_IntPtr(base.SuperHandle, selDrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutManager_Handle, block.Handle, frameRect, controlView.Handle, charRange, layoutManager.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextTableBlock.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextTableBlock", true)] public class NSTextTableBlock : NSTextBlock { private static readonly IntPtr selTableHandle = Selector.GetHandle("table"); private static readonly IntPtr selStartingRowHandle = Selector.GetHandle("startingRow"); private static readonly IntPtr selRowSpanHandle = Selector.GetHandle("rowSpan"); private static readonly IntPtr selStartingColumnHandle = Selector.GetHandle("startingColumn"); private static readonly IntPtr selColumnSpanHandle = Selector.GetHandle("columnSpan"); private static readonly IntPtr selInitWithTableStartingRowRowSpanStartingColumnColumnSpan_Handle = Selector.GetHandle("initWithTable:startingRow:rowSpan:startingColumn:columnSpan:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextTableBlock"); private object __mt_Table_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTextTable Table { [Export("table")] get { NSApplication.EnsureUIThread(); return (NSTextTable)(__mt_Table_var = ((!IsDirectBinding) ? ((NSTextTable)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTableHandle))) : ((NSTextTable)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTableHandle))))); } } public virtual long StartingRow { [Export("startingRow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selStartingRowHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStartingRowHandle); } } public virtual long RowSpan { [Export("rowSpan")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRowSpanHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRowSpanHandle); } } public virtual long StartingColumn { [Export("startingColumn")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selStartingColumnHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStartingColumnHandle); } } public virtual long ColumnSpan { [Export("columnSpan")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selColumnSpanHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selColumnSpanHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextTableBlock() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextTableBlock(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTableBlock(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextTableBlock(IntPtr handle) : base(handle) { } [Export("initWithTable:startingRow:rowSpan:startingColumn:columnSpan:")] public NSTextTableBlock(NSTextTable table, long row, long rowSpan, long col, long colSpan) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (table == null) { throw new ArgumentNullException("table"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64(base.Handle, selInitWithTableStartingRowRowSpanStartingColumnColumnSpan_Handle, table.Handle, row, rowSpan, col, colSpan); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64(base.SuperHandle, selInitWithTableStartingRowRowSpanStartingColumnColumnSpan_Handle, table.Handle, row, rowSpan, col, colSpan); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Table_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextTableLayoutAlgorithm.cs ================================================ namespace AppKit; public enum NSTextTableLayoutAlgorithm : ulong { Automatic, Fixed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextView.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextView", true)] public class NSTextView : NSText { [Register] private sealed class _NSTextViewDelegate : NSTextViewDelegate { internal NSTextViewLink linkClicked; internal EventHandler cellClicked; internal EventHandler cellDoubleClicked; internal NSTextViewCellPosition getWritablePasteboardTypes; internal NSTextViewCellPasteboard writeCell; internal NSTextViewSelectionChange willChangeSelection; internal NSTextViewSelectionWillChange willChangeSelectionFromRanges; internal NSTextViewSelectionShouldChange shouldChangeTextInRanges; internal NSTextViewTypeAttribute shouldChangeTypingAttributes; internal EventHandler didChangeSelection; internal EventHandler didChangeTypingAttributes; internal NSTextViewTooltip willDisplayToolTip; internal NSTextViewCompletion getCompletions; internal NSTextViewChangeText shouldChangeTextInRange; internal NSTextViewSelectorCommand doCommandBySelector; internal NSTextViewSpellingQuery shouldSetSpellingState; internal NSTextViewEventMenu menuForEvent; internal NSTextViewOnTextCheck willCheckText; internal NSTextViewTextChecked didCheckText; internal EventHandler draggedCell; internal NSTextViewGetUndoManager getUndoManager; [Preserve(Conditional = true)] public override bool LinkClicked(NSTextView textView, NSObject link, ulong charIndex) { return linkClicked?.Invoke(textView, link, charIndex) ?? false; } [Preserve(Conditional = true)] public override void CellClicked(NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { EventHandler eventHandler = cellClicked; if (eventHandler != null) { NSTextViewClickedEventArgs e = new NSTextViewClickedEventArgs(cell, cellFrame, charIndex); eventHandler(textView, e); } } [Preserve(Conditional = true)] public override void CellDoubleClicked(NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { EventHandler eventHandler = cellDoubleClicked; if (eventHandler != null) { NSTextViewDoubleClickEventArgs e = new NSTextViewDoubleClickEventArgs(cell, cellFrame, charIndex); eventHandler(textView, e); } } [Preserve(Conditional = true)] public override string[] GetWritablePasteboardTypes(NSTextView view, NSTextAttachmentCell forCell, ulong charIndex) { return getWritablePasteboardTypes?.Invoke(view, forCell, charIndex); } [Preserve(Conditional = true)] public override bool WriteCell(NSTextView view, NSTextAttachmentCell cell, uint charIndex, NSPasteboard pboard, string type) { return writeCell?.Invoke(view, cell, charIndex, pboard, type) ?? true; } [Preserve(Conditional = true)] public override NSRange WillChangeSelection(NSTextView textView, NSRange oldSelectedCharRange, NSRange newSelectedCharRange) { return willChangeSelection?.Invoke(textView, oldSelectedCharRange, newSelectedCharRange) ?? newSelectedCharRange; } [Preserve(Conditional = true)] public override NSValue[] WillChangeSelectionFromRanges(NSTextView textView, NSValue[] oldSelectedCharRanges, NSValue[] newSelectedCharRanges) { NSTextViewSelectionWillChange nSTextViewSelectionWillChange = willChangeSelectionFromRanges; if (nSTextViewSelectionWillChange != null) { return nSTextViewSelectionWillChange(textView, oldSelectedCharRanges, newSelectedCharRanges); } return newSelectedCharRanges; } [Preserve(Conditional = true)] public override bool ShouldChangeTextInRanges(NSTextView textView, NSValue[] affectedRanges, string[] replacementStrings) { NSTextViewSelectionShouldChange nSTextViewSelectionShouldChange = shouldChangeTextInRanges; if (nSTextViewSelectionShouldChange != null) { return nSTextViewSelectionShouldChange(textView, affectedRanges, replacementStrings); } throw new Exception("No event handler has been added to the ShouldChangeTextInRanges event."); } [Preserve(Conditional = true)] public override NSDictionary ShouldChangeTypingAttributes(NSTextView textView, NSDictionary oldTypingAttributes, NSDictionary newTypingAttributes) { NSTextViewTypeAttribute nSTextViewTypeAttribute = shouldChangeTypingAttributes; if (nSTextViewTypeAttribute != null) { return nSTextViewTypeAttribute(textView, oldTypingAttributes, newTypingAttributes); } return newTypingAttributes; } [Preserve(Conditional = true)] public override void DidChangeSelection(NSNotification notification) { didChangeSelection?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidChangeTypingAttributes(NSNotification notification) { didChangeTypingAttributes?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override string WillDisplayToolTip(NSTextView textView, string tooltip, ulong characterIndex) { NSTextViewTooltip nSTextViewTooltip = willDisplayToolTip; if (nSTextViewTooltip != null) { return nSTextViewTooltip(textView, tooltip, characterIndex); } return tooltip; } [Preserve(Conditional = true)] public override string[] GetCompletions(NSTextView textView, string[] words, NSRange charRange, long index) { return getCompletions?.Invoke(textView, words, charRange, index); } [Preserve(Conditional = true)] public override bool ShouldChangeTextInRange(NSTextView textView, NSRange affectedCharRange, string replacementString) { return shouldChangeTextInRange?.Invoke(textView, affectedCharRange, replacementString) ?? true; } [Preserve(Conditional = true)] public override bool DoCommandBySelector(NSTextView textView, Selector commandSelector) { return doCommandBySelector?.Invoke(textView, commandSelector) ?? false; } [Preserve(Conditional = true)] public override long ShouldSetSpellingState(NSTextView textView, long value, NSRange affectedCharRange) { return shouldSetSpellingState?.Invoke(textView, value, affectedCharRange) ?? 0; } [Preserve(Conditional = true)] public override NSMenu MenuForEvent(NSTextView view, NSMenu menu, NSEvent theEvent, ulong charIndex) { NSTextViewEventMenu nSTextViewEventMenu = menuForEvent; if (nSTextViewEventMenu != null) { return nSTextViewEventMenu(view, menu, theEvent, charIndex); } return menu; } [Preserve(Conditional = true)] public override NSDictionary WillCheckText(NSTextView view, NSRange range, NSDictionary options, NSTextCheckingTypes checkingTypes) { NSTextViewOnTextCheck nSTextViewOnTextCheck = willCheckText; if (nSTextViewOnTextCheck != null) { return nSTextViewOnTextCheck(view, range, options, checkingTypes); } return options; } [Preserve(Conditional = true)] public override NSTextCheckingResult[] DidCheckText(NSTextView view, NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options, NSTextCheckingResult[] results, NSOrthography orthography, long wordCount) { NSTextViewTextChecked nSTextViewTextChecked = didCheckText; if (nSTextViewTextChecked != null) { return nSTextViewTextChecked(view, range, checkingTypes, options, results, orthography, wordCount); } return results; } [Preserve(Conditional = true)] public override void DraggedCell(NSTextView view, NSTextAttachmentCell cell, CGRect rect, NSEvent theevent) { EventHandler eventHandler = draggedCell; if (eventHandler != null) { NSTextViewDraggedCellEventArgs e = new NSTextViewDraggedCellEventArgs(cell, rect, theevent); eventHandler(view, e); } } [Preserve(Conditional = true)] public override NSUndoManager GetUndoManager(NSTextView view) { return getUndoManager?.Invoke(view); } } private static readonly IntPtr selTextContainerOriginHandle = Selector.GetHandle("textContainerOrigin"); private static readonly IntPtr selLayoutManagerHandle = Selector.GetHandle("layoutManager"); private static readonly IntPtr selTextStorageHandle = Selector.GetHandle("textStorage"); private static readonly IntPtr selShouldDrawInsertionPointHandle = Selector.GetHandle("shouldDrawInsertionPoint"); private static readonly IntPtr selTextContainerHandle = Selector.GetHandle("textContainer"); private static readonly IntPtr selSetTextContainer_Handle = Selector.GetHandle("setTextContainer:"); private static readonly IntPtr selTextContainerInsetHandle = Selector.GetHandle("textContainerInset"); private static readonly IntPtr selSetTextContainerInset_Handle = Selector.GetHandle("setTextContainerInset:"); private static readonly IntPtr selSelectedRangesHandle = Selector.GetHandle("selectedRanges"); private static readonly IntPtr selSetSelectedRanges_Handle = Selector.GetHandle("setSelectedRanges:"); private static readonly IntPtr selSelectionGranularityHandle = Selector.GetHandle("selectionGranularity"); private static readonly IntPtr selSetSelectionGranularity_Handle = Selector.GetHandle("setSelectionGranularity:"); private static readonly IntPtr selSelectedTextAttributesHandle = Selector.GetHandle("selectedTextAttributes"); private static readonly IntPtr selSetSelectedTextAttributes_Handle = Selector.GetHandle("setSelectedTextAttributes:"); private static readonly IntPtr selInsertionPointColorHandle = Selector.GetHandle("insertionPointColor"); private static readonly IntPtr selSetInsertionPointColor_Handle = Selector.GetHandle("setInsertionPointColor:"); private static readonly IntPtr selMarkedTextAttributesHandle = Selector.GetHandle("markedTextAttributes"); private static readonly IntPtr selSetMarkedTextAttributes_Handle = Selector.GetHandle("setMarkedTextAttributes:"); private static readonly IntPtr selLinkTextAttributesHandle = Selector.GetHandle("linkTextAttributes"); private static readonly IntPtr selSetLinkTextAttributes_Handle = Selector.GetHandle("setLinkTextAttributes:"); private static readonly IntPtr selDisplaysLinkToolTipsHandle = Selector.GetHandle("displaysLinkToolTips"); private static readonly IntPtr selSetDisplaysLinkToolTips_Handle = Selector.GetHandle("setDisplaysLinkToolTips:"); private static readonly IntPtr selAcceptsGlyphInfoHandle = Selector.GetHandle("acceptsGlyphInfo"); private static readonly IntPtr selSetAcceptsGlyphInfo_Handle = Selector.GetHandle("setAcceptsGlyphInfo:"); private static readonly IntPtr selIsRulerVisibleHandle = Selector.GetHandle("isRulerVisible"); private static readonly IntPtr selSetRulerVisible_Handle = Selector.GetHandle("setRulerVisible:"); private static readonly IntPtr selUsesRulerHandle = Selector.GetHandle("usesRuler"); private static readonly IntPtr selSetUsesRuler_Handle = Selector.GetHandle("setUsesRuler:"); private static readonly IntPtr selIsContinuousSpellCheckingEnabledHandle = Selector.GetHandle("isContinuousSpellCheckingEnabled"); private static readonly IntPtr selSetContinuousSpellCheckingEnabled_Handle = Selector.GetHandle("setContinuousSpellCheckingEnabled:"); private static readonly IntPtr selIsGrammarCheckingEnabledHandle = Selector.GetHandle("isGrammarCheckingEnabled"); private static readonly IntPtr selSetGrammarCheckingEnabled_Handle = Selector.GetHandle("setGrammarCheckingEnabled:"); private static readonly IntPtr selTypingAttributesHandle = Selector.GetHandle("typingAttributes"); private static readonly IntPtr selSetTypingAttributes_Handle = Selector.GetHandle("setTypingAttributes:"); private static readonly IntPtr selUsesFindPanelHandle = Selector.GetHandle("usesFindPanel"); private static readonly IntPtr selSetUsesFindPanel_Handle = Selector.GetHandle("setUsesFindPanel:"); private static readonly IntPtr selAllowsDocumentBackgroundColorChangeHandle = Selector.GetHandle("allowsDocumentBackgroundColorChange"); private static readonly IntPtr selSetAllowsDocumentBackgroundColorChange_Handle = Selector.GetHandle("setAllowsDocumentBackgroundColorChange:"); private static readonly IntPtr selDefaultParagraphStyleHandle = Selector.GetHandle("defaultParagraphStyle"); private static readonly IntPtr selSetDefaultParagraphStyle_Handle = Selector.GetHandle("setDefaultParagraphStyle:"); private static readonly IntPtr selAllowsUndoHandle = Selector.GetHandle("allowsUndo"); private static readonly IntPtr selSetAllowsUndo_Handle = Selector.GetHandle("setAllowsUndo:"); private static readonly IntPtr selAllowsImageEditingHandle = Selector.GetHandle("allowsImageEditing"); private static readonly IntPtr selSetAllowsImageEditing_Handle = Selector.GetHandle("setAllowsImageEditing:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selIsSelectableHandle = Selector.GetHandle("isSelectable"); private static readonly IntPtr selSetSelectable_Handle = Selector.GetHandle("setSelectable:"); private static readonly IntPtr selIsRichTextHandle = Selector.GetHandle("isRichText"); private static readonly IntPtr selSetRichText_Handle = Selector.GetHandle("setRichText:"); private static readonly IntPtr selImportsGraphicsHandle = Selector.GetHandle("importsGraphics"); private static readonly IntPtr selSetImportsGraphics_Handle = Selector.GetHandle("setImportsGraphics:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selIsFieldEditorHandle = Selector.GetHandle("isFieldEditor"); private static readonly IntPtr selSetFieldEditor_Handle = Selector.GetHandle("setFieldEditor:"); private static readonly IntPtr selUsesFontPanelHandle = Selector.GetHandle("usesFontPanel"); private static readonly IntPtr selSetUsesFontPanel_Handle = Selector.GetHandle("setUsesFontPanel:"); private static readonly IntPtr selAllowedInputSourceLocalesHandle = Selector.GetHandle("allowedInputSourceLocales"); private static readonly IntPtr selSetAllowedInputSourceLocales_Handle = Selector.GetHandle("setAllowedInputSourceLocales:"); private static readonly IntPtr selSmartInsertDeleteEnabledHandle = Selector.GetHandle("smartInsertDeleteEnabled"); private static readonly IntPtr selSetSmartInsertDeleteEnabled_Handle = Selector.GetHandle("setSmartInsertDeleteEnabled:"); private static readonly IntPtr selIsAutomaticQuoteSubstitutionEnabledHandle = Selector.GetHandle("isAutomaticQuoteSubstitutionEnabled"); private static readonly IntPtr selSetAutomaticQuoteSubstitutionEnabled_Handle = Selector.GetHandle("setAutomaticQuoteSubstitutionEnabled:"); private static readonly IntPtr selIsAutomaticLinkDetectionEnabledHandle = Selector.GetHandle("isAutomaticLinkDetectionEnabled"); private static readonly IntPtr selSetAutomaticLinkDetectionEnabled_Handle = Selector.GetHandle("setAutomaticLinkDetectionEnabled:"); private static readonly IntPtr selIsAutomaticDataDetectionEnabledHandle = Selector.GetHandle("isAutomaticDataDetectionEnabled"); private static readonly IntPtr selSetAutomaticDataDetectionEnabled_Handle = Selector.GetHandle("setAutomaticDataDetectionEnabled:"); private static readonly IntPtr selIsAutomaticDashSubstitutionEnabledHandle = Selector.GetHandle("isAutomaticDashSubstitutionEnabled"); private static readonly IntPtr selSetAutomaticDashSubstitutionEnabled_Handle = Selector.GetHandle("setAutomaticDashSubstitutionEnabled:"); private static readonly IntPtr selIsAutomaticTextReplacementEnabledHandle = Selector.GetHandle("isAutomaticTextReplacementEnabled"); private static readonly IntPtr selSetAutomaticTextReplacementEnabled_Handle = Selector.GetHandle("setAutomaticTextReplacementEnabled:"); private static readonly IntPtr selIsAutomaticSpellingCorrectionEnabledHandle = Selector.GetHandle("isAutomaticSpellingCorrectionEnabled"); private static readonly IntPtr selSetAutomaticSpellingCorrectionEnabled_Handle = Selector.GetHandle("setAutomaticSpellingCorrectionEnabled:"); private static readonly IntPtr selEnabledTextCheckingTypesHandle = Selector.GetHandle("enabledTextCheckingTypes"); private static readonly IntPtr selSetEnabledTextCheckingTypes_Handle = Selector.GetHandle("setEnabledTextCheckingTypes:"); private static readonly IntPtr selIgnoreModifierKeysWhileDraggingHandle = Selector.GetHandle("ignoreModifierKeysWhileDragging"); private static readonly IntPtr selInitWithFrameTextContainer_Handle = Selector.GetHandle("initWithFrame:textContainer:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selReplaceTextContainer_Handle = Selector.GetHandle("replaceTextContainer:"); private static readonly IntPtr selInvalidateTextContainerOriginHandle = Selector.GetHandle("invalidateTextContainerOrigin"); private static readonly IntPtr selInsertText_Handle = Selector.GetHandle("insertText:"); private static readonly IntPtr selSetConstrainedFrameSize_Handle = Selector.GetHandle("setConstrainedFrameSize:"); private static readonly IntPtr selSetAlignmentRange_Handle = Selector.GetHandle("setAlignment:range:"); private static readonly IntPtr selSetBaseWritingDirectionRange_Handle = Selector.GetHandle("setBaseWritingDirection:range:"); private static readonly IntPtr selTurnOffKerning_Handle = Selector.GetHandle("turnOffKerning:"); private static readonly IntPtr selTightenKerning_Handle = Selector.GetHandle("tightenKerning:"); private static readonly IntPtr selLoosenKerning_Handle = Selector.GetHandle("loosenKerning:"); private static readonly IntPtr selUseStandardKerning_Handle = Selector.GetHandle("useStandardKerning:"); private static readonly IntPtr selTurnOffLigatures_Handle = Selector.GetHandle("turnOffLigatures:"); private static readonly IntPtr selUseStandardLigatures_Handle = Selector.GetHandle("useStandardLigatures:"); private static readonly IntPtr selUseAllLigatures_Handle = Selector.GetHandle("useAllLigatures:"); private static readonly IntPtr selRaiseBaseline_Handle = Selector.GetHandle("raiseBaseline:"); private static readonly IntPtr selLowerBaseline_Handle = Selector.GetHandle("lowerBaseline:"); private static readonly IntPtr selToggleTraditionalCharacterShape_Handle = Selector.GetHandle("toggleTraditionalCharacterShape:"); private static readonly IntPtr selOutline_Handle = Selector.GetHandle("outline:"); private static readonly IntPtr selPerformFindPanelAction_Handle = Selector.GetHandle("performFindPanelAction:"); private static readonly IntPtr selAlignJustified_Handle = Selector.GetHandle("alignJustified:"); private static readonly IntPtr selChangeColor_Handle = Selector.GetHandle("changeColor:"); private static readonly IntPtr selChangeAttributes_Handle = Selector.GetHandle("changeAttributes:"); private static readonly IntPtr selChangeDocumentBackgroundColor_Handle = Selector.GetHandle("changeDocumentBackgroundColor:"); private static readonly IntPtr selOrderFrontSpacingPanel_Handle = Selector.GetHandle("orderFrontSpacingPanel:"); private static readonly IntPtr selOrderFrontLinkPanel_Handle = Selector.GetHandle("orderFrontLinkPanel:"); private static readonly IntPtr selOrderFrontListPanel_Handle = Selector.GetHandle("orderFrontListPanel:"); private static readonly IntPtr selOrderFrontTablePanel_Handle = Selector.GetHandle("orderFrontTablePanel:"); private static readonly IntPtr selRulerViewDidMoveMarker_Handle = Selector.GetHandle("rulerView:didMoveMarker:"); private static readonly IntPtr selRulerViewDidRemoveMarker_Handle = Selector.GetHandle("rulerView:didRemoveMarker:"); private static readonly IntPtr selRulerViewDidAddMarker_Handle = Selector.GetHandle("rulerView:didAddMarker:"); private static readonly IntPtr selRulerViewShouldMoveMarker_Handle = Selector.GetHandle("rulerView:shouldMoveMarker:"); private static readonly IntPtr selRulerViewShouldAddMarker_Handle = Selector.GetHandle("rulerView:shouldAddMarker:"); private static readonly IntPtr selRulerViewWillMoveMarkerToLocation_Handle = Selector.GetHandle("rulerView:willMoveMarker:toLocation:"); private static readonly IntPtr selRulerViewShouldRemoveMarker_Handle = Selector.GetHandle("rulerView:shouldRemoveMarker:"); private static readonly IntPtr selRulerViewWillAddMarkerAtLocation_Handle = Selector.GetHandle("rulerView:willAddMarker:atLocation:"); private static readonly IntPtr selRulerViewHandleMouseDown_Handle = Selector.GetHandle("rulerView:handleMouseDown:"); private static readonly IntPtr selSetNeedsDisplayInRectAvoidAdditionalLayout_Handle = Selector.GetHandle("setNeedsDisplayInRect:avoidAdditionalLayout:"); private static readonly IntPtr selDrawInsertionPointInRectColorTurnedOn_Handle = Selector.GetHandle("drawInsertionPointInRect:color:turnedOn:"); private static readonly IntPtr selDrawViewBackgroundInRect_Handle = Selector.GetHandle("drawViewBackgroundInRect:"); private static readonly IntPtr selUpdateRulerHandle = Selector.GetHandle("updateRuler"); private static readonly IntPtr selUpdateFontPanelHandle = Selector.GetHandle("updateFontPanel"); private static readonly IntPtr selUpdateDragTypeRegistrationHandle = Selector.GetHandle("updateDragTypeRegistration"); private static readonly IntPtr selSelectionRangeForProposedRangeGranularity_Handle = Selector.GetHandle("selectionRangeForProposedRange:granularity:"); private static readonly IntPtr selClickedOnLinkAtIndex_Handle = Selector.GetHandle("clickedOnLink:atIndex:"); private static readonly IntPtr selStartSpeaking_Handle = Selector.GetHandle("startSpeaking:"); private static readonly IntPtr selStopSpeaking_Handle = Selector.GetHandle("stopSpeaking:"); private static readonly IntPtr selCharacterIndexForInsertionAtPoint_Handle = Selector.GetHandle("characterIndexForInsertionAtPoint:"); private static readonly IntPtr selComplete_Handle = Selector.GetHandle("complete:"); private static readonly IntPtr selRangeForUserCompletionHandle = Selector.GetHandle("rangeForUserCompletion"); private static readonly IntPtr selCompletionsForPartialWordRangeIndexOfSelectedItem_Handle = Selector.GetHandle("completionsForPartialWordRange:indexOfSelectedItem:"); private static readonly IntPtr selInsertCompletionForPartialWordRangeMovementIsFinal_Handle = Selector.GetHandle("insertCompletion:forPartialWordRange:movement:isFinal:"); private static readonly IntPtr selWritablePasteboardTypesHandle = Selector.GetHandle("writablePasteboardTypes"); private static readonly IntPtr selWriteSelectionToPasteboardType_Handle = Selector.GetHandle("writeSelectionToPasteboard:type:"); private static readonly IntPtr selWriteSelectionToPasteboardTypes_Handle = Selector.GetHandle("writeSelectionToPasteboard:types:"); private static readonly IntPtr selReadablePasteboardTypesHandle = Selector.GetHandle("readablePasteboardTypes"); private static readonly IntPtr selPreferredPasteboardTypeFromArrayRestrictedToTypesFromArray_Handle = Selector.GetHandle("preferredPasteboardTypeFromArray:restrictedToTypesFromArray:"); private static readonly IntPtr selReadSelectionFromPasteboardType_Handle = Selector.GetHandle("readSelectionFromPasteboard:type:"); private static readonly IntPtr selReadSelectionFromPasteboard_Handle = Selector.GetHandle("readSelectionFromPasteboard:"); private static readonly IntPtr selRegisterForServicesHandle = Selector.GetHandle("registerForServices"); private static readonly IntPtr selValidRequestorForSendTypeReturnType_Handle = Selector.GetHandle("validRequestorForSendType:returnType:"); private static readonly IntPtr selPasteAsPlainText_Handle = Selector.GetHandle("pasteAsPlainText:"); private static readonly IntPtr selPasteAsRichText_Handle = Selector.GetHandle("pasteAsRichText:"); private static readonly IntPtr selAcceptableDragTypesHandle = Selector.GetHandle("acceptableDragTypes"); private static readonly IntPtr selDragOperationForDraggingInfoType_Handle = Selector.GetHandle("dragOperationForDraggingInfo:type:"); private static readonly IntPtr selCleanUpAfterDragOperationHandle = Selector.GetHandle("cleanUpAfterDragOperation"); private static readonly IntPtr selSetSelectedRangesAffinityStillSelecting_Handle = Selector.GetHandle("setSelectedRanges:affinity:stillSelecting:"); private static readonly IntPtr selSetSelectedRangeAffinityStillSelecting_Handle = Selector.GetHandle("setSelectedRange:affinity:stillSelecting:"); private static readonly IntPtr selSelectionAffinityHandle = Selector.GetHandle("selectionAffinity"); private static readonly IntPtr selUpdateInsertionPointStateAndRestartTimer_Handle = Selector.GetHandle("updateInsertionPointStateAndRestartTimer:"); private static readonly IntPtr selToggleContinuousSpellChecking_Handle = Selector.GetHandle("toggleContinuousSpellChecking:"); private static readonly IntPtr selSpellCheckerDocumentTagHandle = Selector.GetHandle("spellCheckerDocumentTag"); private static readonly IntPtr selToggleGrammarChecking_Handle = Selector.GetHandle("toggleGrammarChecking:"); private static readonly IntPtr selSetSpellingStateRange_Handle = Selector.GetHandle("setSpellingState:range:"); private static readonly IntPtr selShouldChangeTextInRangesReplacementStrings_Handle = Selector.GetHandle("shouldChangeTextInRanges:replacementStrings:"); private static readonly IntPtr selRangesForUserTextChangeHandle = Selector.GetHandle("rangesForUserTextChange"); private static readonly IntPtr selRangesForUserCharacterAttributeChangeHandle = Selector.GetHandle("rangesForUserCharacterAttributeChange"); private static readonly IntPtr selRangesForUserParagraphAttributeChangeHandle = Selector.GetHandle("rangesForUserParagraphAttributeChange"); private static readonly IntPtr selRangeForUserTextChangeHandle = Selector.GetHandle("rangeForUserTextChange"); private static readonly IntPtr selRangeForUserCharacterAttributeChangeHandle = Selector.GetHandle("rangeForUserCharacterAttributeChange"); private static readonly IntPtr selRangeForUserParagraphAttributeChangeHandle = Selector.GetHandle("rangeForUserParagraphAttributeChange"); private static readonly IntPtr selBreakUndoCoalescingHandle = Selector.GetHandle("breakUndoCoalescing"); private static readonly IntPtr selIsCoalescingUndoHandle = Selector.GetHandle("isCoalescingUndo"); private static readonly IntPtr selShowFindIndicatorForRange_Handle = Selector.GetHandle("showFindIndicatorForRange:"); private static readonly IntPtr selSetSelectedRange_Handle = Selector.GetHandle("setSelectedRange:"); private static readonly IntPtr selShouldChangeTextInRangeReplacementString_Handle = Selector.GetHandle("shouldChangeTextInRange:replacementString:"); private static readonly IntPtr selDidChangeTextHandle = Selector.GetHandle("didChangeText"); private static readonly IntPtr selSmartDeleteRangeForProposedRange_Handle = Selector.GetHandle("smartDeleteRangeForProposedRange:"); private static readonly IntPtr selToggleSmartInsertDelete_Handle = Selector.GetHandle("toggleSmartInsertDelete:"); private static readonly IntPtr selSmartInsertForStringReplacingRangeBeforeStringAfterString_Handle = Selector.GetHandle("smartInsertForString:replacingRange:beforeString:afterString:"); private static readonly IntPtr selSmartInsertBeforeStringForStringReplacingRange_Handle = Selector.GetHandle("smartInsertBeforeStringForString:replacingRange:"); private static readonly IntPtr selSmartInsertAfterStringForStringReplacingRange_Handle = Selector.GetHandle("smartInsertAfterStringForString:replacingRange:"); private static readonly IntPtr selToggleAutomaticQuoteSubstitution_Handle = Selector.GetHandle("toggleAutomaticQuoteSubstitution:"); private static readonly IntPtr selToggleAutomaticLinkDetection_Handle = Selector.GetHandle("toggleAutomaticLinkDetection:"); private static readonly IntPtr selToggleAutomaticDataDetection_Handle = Selector.GetHandle("toggleAutomaticDataDetection:"); private static readonly IntPtr selToggleAutomaticDashSubstitution_Handle = Selector.GetHandle("toggleAutomaticDashSubstitution:"); private static readonly IntPtr selToggleAutomaticTextReplacement_Handle = Selector.GetHandle("toggleAutomaticTextReplacement:"); private static readonly IntPtr selToggleAutomaticSpellingCorrection_Handle = Selector.GetHandle("toggleAutomaticSpellingCorrection:"); private static readonly IntPtr selCheckTextInRangeTypesOptions_Handle = Selector.GetHandle("checkTextInRange:types:options:"); private static readonly IntPtr selHandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount_Handle = Selector.GetHandle("handleTextCheckingResults:forRange:types:options:orthography:wordCount:"); private static readonly IntPtr selOrderFrontSubstitutionsPanel_Handle = Selector.GetHandle("orderFrontSubstitutionsPanel:"); private static readonly IntPtr selCheckTextInSelection_Handle = Selector.GetHandle("checkTextInSelection:"); private static readonly IntPtr selCheckTextInDocument_Handle = Selector.GetHandle("checkTextInDocument:"); private static readonly IntPtr selDraggingSourceOperationMaskForLocal_Handle = Selector.GetHandle("draggingSourceOperationMaskForLocal:"); private static readonly IntPtr selNamesOfPromisedFilesDroppedAtDestination_Handle = Selector.GetHandle("namesOfPromisedFilesDroppedAtDestination:"); private static readonly IntPtr selDraggedImageBeganAt_Handle = Selector.GetHandle("draggedImage:beganAt:"); private static readonly IntPtr selDraggedImageEndedAtOperation_Handle = Selector.GetHandle("draggedImage:endedAt:operation:"); private static readonly IntPtr selDraggedImageMovedTo_Handle = Selector.GetHandle("draggedImage:movedTo:"); private static readonly IntPtr selDraggedImageEndedAtDeposited_Handle = Selector.GetHandle("draggedImage:endedAt:deposited:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextView"); private object __mt_LayoutManager_var; private object __mt_TextStorage_var; private object __mt_TextContainer_var; private object __mt_SelectedRanges_var; private object __mt_SelectedTextAttributes_var; private object __mt_InsertionPointColor_var; private object __mt_MarkedTextAttributes_var; private object __mt_LinkTextAttributes_var; private object __mt_TypingAttributes_var; private object __mt_DefaultParagraphStyle_var; private object __mt_Delegate_var; private object __mt_BackgroundColor_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual CGPoint TextContainerOrigin { [Export("textContainerOrigin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selTextContainerOriginHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selTextContainerOriginHandle); } } public virtual NSLayoutManager LayoutManager { [Export("layoutManager")] get { NSApplication.EnsureUIThread(); return (NSLayoutManager)(__mt_LayoutManager_var = ((!IsDirectBinding) ? ((NSLayoutManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayoutManagerHandle))) : ((NSLayoutManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLayoutManagerHandle))))); } } public virtual NSTextStorage TextStorage { [Export("textStorage")] get { NSApplication.EnsureUIThread(); return (NSTextStorage)(__mt_TextStorage_var = ((!IsDirectBinding) ? ((NSTextStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextStorageHandle))) : ((NSTextStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextStorageHandle))))); } } public virtual bool ShouldDrawInsertionPoint { [Export("shouldDrawInsertionPoint")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldDrawInsertionPointHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldDrawInsertionPointHandle); } } public virtual NSTextContainer TextContainer { [Export("textContainer")] get { NSApplication.EnsureUIThread(); return (NSTextContainer)(__mt_TextContainer_var = ((!IsDirectBinding) ? ((NSTextContainer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextContainerHandle))) : ((NSTextContainer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextContainerHandle))))); } [Export("setTextContainer:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextContainer_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextContainer_Handle, value.Handle); } __mt_TextContainer_var = value; } } public virtual CGSize TextContainerInset { [Export("textContainerInset")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selTextContainerInsetHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selTextContainerInsetHandle); } [Export("setTextContainerInset:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetTextContainerInset_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetTextContainerInset_Handle, value); } } } public virtual NSArray SelectedRanges { [Export("selectedRanges")] get { NSApplication.EnsureUIThread(); return (NSArray)(__mt_SelectedRanges_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedRangesHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedRangesHandle))))); } [Export("setSelectedRanges:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectedRanges_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectedRanges_Handle, value.Handle); } __mt_SelectedRanges_var = value; } } public virtual NSSelectionGranularity SelectionGranularity { [Export("selectionGranularity")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSelectionGranularity)Messaging.UInt64_objc_msgSend(base.Handle, selSelectionGranularityHandle); } return (NSSelectionGranularity)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSelectionGranularityHandle); } [Export("setSelectionGranularity:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetSelectionGranularity_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetSelectionGranularity_Handle, (ulong)value); } } } public virtual NSDictionary SelectedTextAttributes { [Export("selectedTextAttributes")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_SelectedTextAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedTextAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedTextAttributesHandle))))); } [Export("setSelectedTextAttributes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectedTextAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectedTextAttributes_Handle, value.Handle); } __mt_SelectedTextAttributes_var = value; } } public virtual NSColor InsertionPointColor { [Export("insertionPointColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_InsertionPointColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInsertionPointColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInsertionPointColorHandle))))); } [Export("setInsertionPointColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInsertionPointColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInsertionPointColor_Handle, value.Handle); } __mt_InsertionPointColor_var = value; } } public virtual NSDictionary MarkedTextAttributes { [Export("markedTextAttributes")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_MarkedTextAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMarkedTextAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMarkedTextAttributesHandle))))); } [Export("setMarkedTextAttributes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMarkedTextAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMarkedTextAttributes_Handle, value.Handle); } __mt_MarkedTextAttributes_var = value; } } public virtual NSDictionary LinkTextAttributes { [Export("linkTextAttributes")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_LinkTextAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLinkTextAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLinkTextAttributesHandle))))); } [Export("setLinkTextAttributes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLinkTextAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLinkTextAttributes_Handle, value.Handle); } __mt_LinkTextAttributes_var = value; } } public virtual bool DisplaysLinkToolTips { [Export("displaysLinkToolTips")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysLinkToolTipsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysLinkToolTipsHandle); } [Export("setDisplaysLinkToolTips:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysLinkToolTips_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysLinkToolTips_Handle, value); } } } public virtual bool AcceptsGlyphInfo { [Export("acceptsGlyphInfo")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsGlyphInfoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsGlyphInfoHandle); } [Export("setAcceptsGlyphInfo:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAcceptsGlyphInfo_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAcceptsGlyphInfo_Handle, value); } } } public virtual bool RulerVisible { [Export("isRulerVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRulerVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRulerVisibleHandle); } [Export("setRulerVisible:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRulerVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRulerVisible_Handle, value); } } } public virtual bool UsesRuler { [Export("usesRuler")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesRulerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesRulerHandle); } [Export("setUsesRuler:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesRuler_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesRuler_Handle, value); } } } public virtual bool ContinuousSpellCheckingEnabled { [Export("isContinuousSpellCheckingEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContinuousSpellCheckingEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContinuousSpellCheckingEnabledHandle); } [Export("setContinuousSpellCheckingEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetContinuousSpellCheckingEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetContinuousSpellCheckingEnabled_Handle, value); } } } public virtual bool GrammarCheckingEnabled { [Export("isGrammarCheckingEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsGrammarCheckingEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsGrammarCheckingEnabledHandle); } [Export("setGrammarCheckingEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGrammarCheckingEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGrammarCheckingEnabled_Handle, value); } } } public virtual NSDictionary TypingAttributes { [Export("typingAttributes")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_TypingAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypingAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTypingAttributesHandle))))); } [Export("setTypingAttributes:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTypingAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTypingAttributes_Handle, value.Handle); } __mt_TypingAttributes_var = value; } } public virtual bool UsesFindPanel { [Export("usesFindPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesFindPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesFindPanelHandle); } [Export("setUsesFindPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesFindPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesFindPanel_Handle, value); } } } public virtual bool AllowsDocumentBackgroundColorChange { [Export("allowsDocumentBackgroundColorChange")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDocumentBackgroundColorChangeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDocumentBackgroundColorChangeHandle); } [Export("setAllowsDocumentBackgroundColorChange:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsDocumentBackgroundColorChange_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsDocumentBackgroundColorChange_Handle, value); } } } public virtual NSParagraphStyle DefaultParagraphStyle { [Export("defaultParagraphStyle")] get { NSApplication.EnsureUIThread(); return (NSParagraphStyle)(__mt_DefaultParagraphStyle_var = ((!IsDirectBinding) ? ((NSParagraphStyle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultParagraphStyleHandle))) : ((NSParagraphStyle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultParagraphStyleHandle))))); } [Export("setDefaultParagraphStyle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultParagraphStyle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultParagraphStyle_Handle, value.Handle); } __mt_DefaultParagraphStyle_var = value; } } public virtual bool AllowsUndo { [Export("allowsUndo")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsUndoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsUndoHandle); } [Export("setAllowsUndo:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsUndo_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsUndo_Handle, value); } } } public virtual bool AllowsImageEditing { [Export("allowsImageEditing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsImageEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsImageEditingHandle); } [Export("setAllowsImageEditing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsImageEditing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsImageEditing_Handle, value); } } } public new virtual NSTextViewDelegate Delegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSTextViewDelegate)(__mt_Delegate_var = ((!IsDirectBinding) ? ((NSTextViewDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSTextViewDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_Delegate_var = value; } } public new virtual bool Editable { [Export("isEditable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public new virtual bool Selectable { [Export("isSelectable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectableHandle); } [Export("setSelectable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectable_Handle, value); } } } public new virtual bool RichText { [Export("isRichText")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRichTextHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRichTextHandle); } [Export("setRichText:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRichText_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRichText_Handle, value); } } } public new virtual bool ImportsGraphics { [Export("importsGraphics")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selImportsGraphicsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selImportsGraphicsHandle); } [Export("setImportsGraphics:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetImportsGraphics_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetImportsGraphics_Handle, value); } } } public new virtual bool DrawsBackground { [Export("drawsBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public new virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public new virtual bool FieldEditor { [Export("isFieldEditor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFieldEditorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFieldEditorHandle); } [Export("setFieldEditor:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFieldEditor_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFieldEditor_Handle, value); } } } public new virtual bool UsesFontPanel { [Export("usesFontPanel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesFontPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesFontPanelHandle); } [Export("setUsesFontPanel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesFontPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesFontPanel_Handle, value); } } } public virtual string[] AllowedInputSourceLocales { [Export("allowedInputSourceLocales")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllowedInputSourceLocalesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllowedInputSourceLocalesHandle)); } [Export("setAllowedInputSourceLocales:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAllowedInputSourceLocales_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAllowedInputSourceLocales_Handle, nSArray.Handle); } nSArray.Dispose(); } } public new virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public virtual bool SmartInsertDeleteEnabled { [Export("smartInsertDeleteEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSmartInsertDeleteEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSmartInsertDeleteEnabledHandle); } [Export("setSmartInsertDeleteEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSmartInsertDeleteEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSmartInsertDeleteEnabled_Handle, value); } } } public virtual bool AutomaticQuoteSubstitutionEnabled { [Export("isAutomaticQuoteSubstitutionEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticQuoteSubstitutionEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticQuoteSubstitutionEnabledHandle); } [Export("setAutomaticQuoteSubstitutionEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticQuoteSubstitutionEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticQuoteSubstitutionEnabled_Handle, value); } } } public virtual bool AutomaticLinkDetectionEnabled { [Export("isAutomaticLinkDetectionEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticLinkDetectionEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticLinkDetectionEnabledHandle); } [Export("setAutomaticLinkDetectionEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticLinkDetectionEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticLinkDetectionEnabled_Handle, value); } } } public virtual bool AutomaticDataDetectionEnabled { [Export("isAutomaticDataDetectionEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticDataDetectionEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticDataDetectionEnabledHandle); } [Export("setAutomaticDataDetectionEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticDataDetectionEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticDataDetectionEnabled_Handle, value); } } } public virtual bool AutomaticDashSubstitutionEnabled { [Export("isAutomaticDashSubstitutionEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticDashSubstitutionEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticDashSubstitutionEnabledHandle); } [Export("setAutomaticDashSubstitutionEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticDashSubstitutionEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticDashSubstitutionEnabled_Handle, value); } } } public virtual bool AutomaticTextReplacementEnabled { [Export("isAutomaticTextReplacementEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticTextReplacementEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticTextReplacementEnabledHandle); } [Export("setAutomaticTextReplacementEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticTextReplacementEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticTextReplacementEnabled_Handle, value); } } } public virtual bool AutomaticSpellingCorrectionEnabled { [Export("isAutomaticSpellingCorrectionEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutomaticSpellingCorrectionEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutomaticSpellingCorrectionEnabledHandle); } [Export("setAutomaticSpellingCorrectionEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticSpellingCorrectionEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticSpellingCorrectionEnabled_Handle, value); } } } public virtual NSTextCheckingTypes EnabledTextCheckingTypes { [Export("enabledTextCheckingTypes")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTextCheckingTypes)Messaging.UInt64_objc_msgSend(base.Handle, selEnabledTextCheckingTypesHandle); } return (NSTextCheckingTypes)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selEnabledTextCheckingTypesHandle); } [Export("setEnabledTextCheckingTypes:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetEnabledTextCheckingTypes_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetEnabledTextCheckingTypes_Handle, (ulong)value); } } } public virtual bool IgnoreModifierKeysWhileDragging { [Export("ignoreModifierKeysWhileDragging")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIgnoreModifierKeysWhileDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIgnoreModifierKeysWhileDraggingHandle); } } public NSTextViewLink LinkClicked { get { return EnsureNSTextViewDelegate().linkClicked; } set { EnsureNSTextViewDelegate().linkClicked = value; } } public NSTextViewCellPosition GetWritablePasteboardTypes { get { return EnsureNSTextViewDelegate().getWritablePasteboardTypes; } set { EnsureNSTextViewDelegate().getWritablePasteboardTypes = value; } } public NSTextViewCellPasteboard WriteCell { get { return EnsureNSTextViewDelegate().writeCell; } set { EnsureNSTextViewDelegate().writeCell = value; } } public NSTextViewSelectionChange WillChangeSelection { get { return EnsureNSTextViewDelegate().willChangeSelection; } set { EnsureNSTextViewDelegate().willChangeSelection = value; } } public NSTextViewSelectionWillChange WillChangeSelectionFromRanges { get { return EnsureNSTextViewDelegate().willChangeSelectionFromRanges; } set { EnsureNSTextViewDelegate().willChangeSelectionFromRanges = value; } } public NSTextViewSelectionShouldChange ShouldChangeTextInRanges { get { return EnsureNSTextViewDelegate().shouldChangeTextInRanges; } set { EnsureNSTextViewDelegate().shouldChangeTextInRanges = value; } } public NSTextViewTypeAttribute ShouldChangeTypingAttributes { get { return EnsureNSTextViewDelegate().shouldChangeTypingAttributes; } set { EnsureNSTextViewDelegate().shouldChangeTypingAttributes = value; } } public NSTextViewTooltip WillDisplayToolTip { get { return EnsureNSTextViewDelegate().willDisplayToolTip; } set { EnsureNSTextViewDelegate().willDisplayToolTip = value; } } public NSTextViewCompletion GetCompletions { get { return EnsureNSTextViewDelegate().getCompletions; } set { EnsureNSTextViewDelegate().getCompletions = value; } } public NSTextViewChangeText ShouldChangeTextInRange { get { return EnsureNSTextViewDelegate().shouldChangeTextInRange; } set { EnsureNSTextViewDelegate().shouldChangeTextInRange = value; } } public NSTextViewSelectorCommand DoCommandBySelector { get { return EnsureNSTextViewDelegate().doCommandBySelector; } set { EnsureNSTextViewDelegate().doCommandBySelector = value; } } public NSTextViewSpellingQuery ShouldSetSpellingState { get { return EnsureNSTextViewDelegate().shouldSetSpellingState; } set { EnsureNSTextViewDelegate().shouldSetSpellingState = value; } } public new NSTextViewEventMenu MenuForEvent { get { return EnsureNSTextViewDelegate().menuForEvent; } set { EnsureNSTextViewDelegate().menuForEvent = value; } } public NSTextViewOnTextCheck WillCheckText { get { return EnsureNSTextViewDelegate().willCheckText; } set { EnsureNSTextViewDelegate().willCheckText = value; } } public NSTextViewTextChecked DidCheckText { get { return EnsureNSTextViewDelegate().didCheckText; } set { EnsureNSTextViewDelegate().didCheckText = value; } } public NSTextViewGetUndoManager GetUndoManager { get { return EnsureNSTextViewDelegate().getUndoManager; } set { EnsureNSTextViewDelegate().getUndoManager = value; } } public event EventHandler CellClicked { add { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.cellClicked = (EventHandler)System.Delegate.Combine(nSTextViewDelegate.cellClicked, value); } remove { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.cellClicked = (EventHandler)System.Delegate.Remove(nSTextViewDelegate.cellClicked, value); } } public event EventHandler CellDoubleClicked { add { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.cellDoubleClicked = (EventHandler)System.Delegate.Combine(nSTextViewDelegate.cellDoubleClicked, value); } remove { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.cellDoubleClicked = (EventHandler)System.Delegate.Remove(nSTextViewDelegate.cellDoubleClicked, value); } } public event EventHandler DidChangeSelection { add { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.didChangeSelection = (EventHandler)System.Delegate.Combine(nSTextViewDelegate.didChangeSelection, value); } remove { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.didChangeSelection = (EventHandler)System.Delegate.Remove(nSTextViewDelegate.didChangeSelection, value); } } public event EventHandler DidChangeTypingAttributes { add { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.didChangeTypingAttributes = (EventHandler)System.Delegate.Combine(nSTextViewDelegate.didChangeTypingAttributes, value); } remove { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.didChangeTypingAttributes = (EventHandler)System.Delegate.Remove(nSTextViewDelegate.didChangeTypingAttributes, value); } } public event EventHandler DraggedCell { add { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.draggedCell = (EventHandler)System.Delegate.Combine(nSTextViewDelegate.draggedCell, value); } remove { _NSTextViewDelegate nSTextViewDelegate = EnsureNSTextViewDelegate(); nSTextViewDelegate.draggedCell = (EventHandler)System.Delegate.Remove(nSTextViewDelegate.draggedCell, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextView(IntPtr handle) : base(handle) { } [Export("initWithFrame:textContainer:")] public NSTextView(CGRect frameRect, NSTextContainer container) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (container == null) { throw new ArgumentNullException("container"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(base.Handle, selInitWithFrameTextContainer_Handle, frameRect, container.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selInitWithFrameTextContainer_Handle, frameRect, container.Handle); } } [Export("initWithFrame:")] public NSTextView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("replaceTextContainer:")] public virtual void ReplaceTextContainer(NSTextContainer newContainer) { NSApplication.EnsureUIThread(); if (newContainer == null) { throw new ArgumentNullException("newContainer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceTextContainer_Handle, newContainer.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceTextContainer_Handle, newContainer.Handle); } } [Export("invalidateTextContainerOrigin")] public virtual void InvalidateTextContainerOrigin() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateTextContainerOriginHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateTextContainerOriginHandle); } } [Export("insertText:")] public virtual void InsertText(NSObject insertString) { NSApplication.EnsureUIThread(); if (insertString == null) { throw new ArgumentNullException("insertString"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsertText_Handle, insertString.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsertText_Handle, insertString.Handle); } } [Export("setConstrainedFrameSize:")] public virtual void SetConstrainedFrameSize(CGSize desiredSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetConstrainedFrameSize_Handle, desiredSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetConstrainedFrameSize_Handle, desiredSize); } } [Export("setAlignment:range:")] public virtual void SetAlignmentRange(NSTextAlignment alignment, NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_NSRange(base.Handle, selSetAlignmentRange_Handle, (ulong)alignment, range); } else { Messaging.void_objc_msgSendSuper_UInt64_NSRange(base.SuperHandle, selSetAlignmentRange_Handle, (ulong)alignment, range); } } [Export("setBaseWritingDirection:range:")] public virtual void SetBaseWritingDirection(NSWritingDirection writingDirection, NSRange range) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_NSRange(base.Handle, selSetBaseWritingDirectionRange_Handle, (long)writingDirection, range); } else { Messaging.void_objc_msgSendSuper_Int64_NSRange(base.SuperHandle, selSetBaseWritingDirectionRange_Handle, (long)writingDirection, range); } } [Export("turnOffKerning:")] public virtual void TurnOffKerning(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTurnOffKerning_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTurnOffKerning_Handle, sender.Handle); } } [Export("tightenKerning:")] public virtual void TightenKerning(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTightenKerning_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTightenKerning_Handle, sender.Handle); } } [Export("loosenKerning:")] public virtual void LoosenKerning(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selLoosenKerning_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selLoosenKerning_Handle, sender.Handle); } } [Export("useStandardKerning:")] public virtual void UseStandardKerning(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUseStandardKerning_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUseStandardKerning_Handle, sender.Handle); } } [Export("turnOffLigatures:")] public virtual void TurnOffLigatures(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTurnOffLigatures_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTurnOffLigatures_Handle, sender.Handle); } } [Export("useStandardLigatures:")] public virtual void UseStandardLigatures(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUseStandardLigatures_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUseStandardLigatures_Handle, sender.Handle); } } [Export("useAllLigatures:")] public virtual void UseAllLigatures(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUseAllLigatures_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUseAllLigatures_Handle, sender.Handle); } } [Export("raiseBaseline:")] public virtual void RaiseBaseline(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRaiseBaseline_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRaiseBaseline_Handle, sender.Handle); } } [Export("lowerBaseline:")] public virtual void LowerBaseline(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selLowerBaseline_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selLowerBaseline_Handle, sender.Handle); } } [Export("toggleTraditionalCharacterShape:")] public virtual void ToggleTraditionalCharacterShape(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleTraditionalCharacterShape_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleTraditionalCharacterShape_Handle, sender.Handle); } } [Export("outline:")] public virtual void Outline(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOutline_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOutline_Handle, sender.Handle); } } [Export("performFindPanelAction:")] public virtual void PerformFindPanelAction(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformFindPanelAction_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformFindPanelAction_Handle, sender.Handle); } } [Export("alignJustified:")] public virtual void AlignJustified(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignJustified_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignJustified_Handle, sender.Handle); } } [Export("changeColor:")] public virtual void ChangeColor(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeColor_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeColor_Handle, sender.Handle); } } [Export("changeAttributes:")] public virtual void ChangeAttributes(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeAttributes_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeAttributes_Handle, sender.Handle); } } [Export("changeDocumentBackgroundColor:")] public virtual void ChangeDocumentBackgroundColor(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeDocumentBackgroundColor_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeDocumentBackgroundColor_Handle, sender.Handle); } } [Export("orderFrontSpacingPanel:")] public virtual void OrderFrontSpacingPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontSpacingPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontSpacingPanel_Handle, sender.Handle); } } [Export("orderFrontLinkPanel:")] public virtual void OrderFrontLinkPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontLinkPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontLinkPanel_Handle, sender.Handle); } } [Export("orderFrontListPanel:")] public virtual void OrderFrontListPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontListPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontListPanel_Handle, sender.Handle); } } [Export("orderFrontTablePanel:")] public virtual void OrderFrontTablePanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontTablePanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontTablePanel_Handle, sender.Handle); } } [Export("rulerView:didMoveMarker:")] public virtual void RulerViewDidMoveMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewDidMoveMarker_Handle, ruler.Handle, marker.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewDidMoveMarker_Handle, ruler.Handle, marker.Handle); } } [Export("rulerView:didRemoveMarker:")] public virtual void RulerViewDidRemoveMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewDidRemoveMarker_Handle, ruler.Handle, marker.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewDidRemoveMarker_Handle, ruler.Handle, marker.Handle); } } [Export("rulerView:didAddMarker:")] public virtual void RulerViewDidAddMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewDidAddMarker_Handle, ruler.Handle, marker.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewDidAddMarker_Handle, ruler.Handle, marker.Handle); } } [Export("rulerView:shouldMoveMarker:")] public virtual bool RulerViewShouldMoveMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewShouldMoveMarker_Handle, ruler.Handle, marker.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewShouldMoveMarker_Handle, ruler.Handle, marker.Handle); } [Export("rulerView:shouldAddMarker:")] public virtual bool RulerViewShouldAddMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewShouldAddMarker_Handle, ruler.Handle, marker.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewShouldAddMarker_Handle, ruler.Handle, marker.Handle); } [Export("rulerView:willMoveMarker:toLocation:")] public virtual double RulerViewWillMoveMarker(NSRulerView ruler, NSRulerMarker marker, double location) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr_IntPtr_Double(base.Handle, selRulerViewWillMoveMarkerToLocation_Handle, ruler.Handle, marker.Handle, location); } return Messaging.Double_objc_msgSendSuper_IntPtr_IntPtr_Double(base.SuperHandle, selRulerViewWillMoveMarkerToLocation_Handle, ruler.Handle, marker.Handle, location); } [Export("rulerView:shouldRemoveMarker:")] public virtual bool RulerViewShouldRemoveMarker(NSRulerView ruler, NSRulerMarker marker) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewShouldRemoveMarker_Handle, ruler.Handle, marker.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewShouldRemoveMarker_Handle, ruler.Handle, marker.Handle); } [Export("rulerView:willAddMarker:atLocation:")] public virtual double RulerViewWillAddMarker(NSRulerView ruler, NSRulerMarker marker, double location) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr_IntPtr_Double(base.Handle, selRulerViewWillAddMarkerAtLocation_Handle, ruler.Handle, marker.Handle, location); } return Messaging.Double_objc_msgSendSuper_IntPtr_IntPtr_Double(base.SuperHandle, selRulerViewWillAddMarkerAtLocation_Handle, ruler.Handle, marker.Handle, location); } [Export("rulerView:handleMouseDown:")] public virtual void RulerViewHandleMouseDown(NSRulerView ruler, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (ruler == null) { throw new ArgumentNullException("ruler"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRulerViewHandleMouseDown_Handle, ruler.Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRulerViewHandleMouseDown_Handle, ruler.Handle, theEvent.Handle); } } [Export("setNeedsDisplayInRect:avoidAdditionalLayout:")] public virtual void SetNeedsDisplay(CGRect rect, bool avoidAdditionalLayout) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool(base.Handle, selSetNeedsDisplayInRectAvoidAdditionalLayout_Handle, rect, avoidAdditionalLayout); } else { Messaging.void_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selSetNeedsDisplayInRectAvoidAdditionalLayout_Handle, rect, avoidAdditionalLayout); } } [Export("drawInsertionPointInRect:color:turnedOn:")] public virtual void DrawInsertionPoint(CGRect rect, NSColor color, bool turnedOn) { NSApplication.EnsureUIThread(); if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr_bool(base.Handle, selDrawInsertionPointInRectColorTurnedOn_Handle, rect, color.Handle, turnedOn); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr_bool(base.SuperHandle, selDrawInsertionPointInRectColorTurnedOn_Handle, rect, color.Handle, turnedOn); } } [Export("drawViewBackgroundInRect:")] public virtual void DrawViewBackgroundInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawViewBackgroundInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawViewBackgroundInRect_Handle, rect); } } [Export("updateRuler")] public virtual void UpdateRuler() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateRulerHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateRulerHandle); } } [Export("updateFontPanel")] public virtual void UpdateFontPanel() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateFontPanelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateFontPanelHandle); } } [Export("updateDragTypeRegistration")] public virtual void UpdateDragTypeRegistration() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateDragTypeRegistrationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateDragTypeRegistrationHandle); } } [Export("selectionRangeForProposedRange:granularity:")] public virtual NSRange SelectionRange(NSRange proposedCharRange, NSSelectionGranularity granularity) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_NSRange_UInt64(base.Handle, selSelectionRangeForProposedRangeGranularity_Handle, proposedCharRange, (ulong)granularity); } return Messaging.NSRange_objc_msgSendSuper_NSRange_UInt64(base.SuperHandle, selSelectionRangeForProposedRangeGranularity_Handle, proposedCharRange, (ulong)granularity); } [Export("clickedOnLink:atIndex:")] public virtual void ClickedOnLink(NSObject link, ulong charIndex) { NSApplication.EnsureUIThread(); if (link == null) { throw new ArgumentNullException("link"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selClickedOnLinkAtIndex_Handle, link.Handle, charIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selClickedOnLinkAtIndex_Handle, link.Handle, charIndex); } } [Export("startSpeaking:")] public virtual void StartSpeaking(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStartSpeaking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStartSpeaking_Handle, sender.Handle); } } [Export("stopSpeaking:")] public virtual void StopSpeaking(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStopSpeaking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStopSpeaking_Handle, sender.Handle); } } [Export("characterIndexForInsertionAtPoint:")] public virtual uint CharacterIndex(CGPoint point) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend_CGPoint(base.Handle, selCharacterIndexForInsertionAtPoint_Handle, point); } return Messaging.UInt32_objc_msgSendSuper_CGPoint(base.SuperHandle, selCharacterIndexForInsertionAtPoint_Handle, point); } [Export("complete:")] public virtual void Complete(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selComplete_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selComplete_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("rangeForUserCompletion")] public virtual NSRange RangeForUserCompletion() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeForUserCompletionHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeForUserCompletionHandle); } [Export("completionsForPartialWordRange:indexOfSelectedItem:")] public virtual string[] CompletionsForPartialWord(NSRange charRange, out long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_NSRange_out_Int64(base.Handle, selCompletionsForPartialWordRangeIndexOfSelectedItem_Handle, charRange, out index)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_NSRange_out_Int64(base.SuperHandle, selCompletionsForPartialWordRangeIndexOfSelectedItem_Handle, charRange, out index)); } [Export("insertCompletion:forPartialWordRange:movement:isFinal:")] public virtual void InsertCompletion(string completion, NSRange partialWordCharRange, long movement, bool isFinal) { NSApplication.EnsureUIThread(); if (completion == null) { throw new ArgumentNullException("completion"); } IntPtr arg = NSString.CreateNative(completion); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange_Int64_bool(base.Handle, selInsertCompletionForPartialWordRangeMovementIsFinal_Handle, arg, partialWordCharRange, movement, isFinal); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange_Int64_bool(base.SuperHandle, selInsertCompletionForPartialWordRangeMovementIsFinal_Handle, arg, partialWordCharRange, movement, isFinal); } NSString.ReleaseNative(arg); } [Export("writablePasteboardTypes")] public virtual string[] WritablePasteboardTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWritablePasteboardTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWritablePasteboardTypesHandle)); } [Export("writeSelectionToPasteboard:type:")] public virtual bool WriteSelectionToPasteboard(NSPasteboard pboard, string type) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteSelectionToPasteboardType_Handle, pboard.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteSelectionToPasteboardType_Handle, pboard.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("writeSelectionToPasteboard:types:")] public virtual bool WriteSelectionToPasteboard(NSPasteboard pboard, string[] types) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (types == null) { throw new ArgumentNullException("types"); } NSArray nSArray = NSArray.FromStrings(types); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteSelectionToPasteboardTypes_Handle, pboard.Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteSelectionToPasteboardTypes_Handle, pboard.Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("readablePasteboardTypes")] public virtual string[] ReadablePasteboardTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selReadablePasteboardTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReadablePasteboardTypesHandle)); } [Export("preferredPasteboardTypeFromArray:restrictedToTypesFromArray:")] public virtual string GetPreferredPasteboardType(string[] availableTypes, string[] allowedTypes) { NSApplication.EnsureUIThread(); if (availableTypes == null) { throw new ArgumentNullException("availableTypes"); } if (allowedTypes == null) { throw new ArgumentNullException("allowedTypes"); } NSArray nSArray = NSArray.FromStrings(availableTypes); NSArray nSArray2 = NSArray.FromStrings(allowedTypes); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPreferredPasteboardTypeFromArrayRestrictedToTypesFromArray_Handle, nSArray.Handle, nSArray2.Handle)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selPreferredPasteboardTypeFromArrayRestrictedToTypesFromArray_Handle, nSArray.Handle, nSArray2.Handle))); nSArray.Dispose(); nSArray2.Dispose(); return result; } [Export("readSelectionFromPasteboard:type:")] public virtual bool ReadSelectionFromPasteboard(NSPasteboard pboard, string type) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReadSelectionFromPasteboardType_Handle, pboard.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selReadSelectionFromPasteboardType_Handle, pboard.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("readSelectionFromPasteboard:")] public virtual bool ReadSelectionFromPasteboard(NSPasteboard pboard) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selReadSelectionFromPasteboard_Handle, pboard.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selReadSelectionFromPasteboard_Handle, pboard.Handle); } [Export("registerForServices")] public static void RegisterForServices() { NSApplication.EnsureUIThread(); Messaging.void_objc_msgSend(class_ptr, selRegisterForServicesHandle); } [Export("validRequestorForSendType:returnType:")] public virtual NSObject ValidRequestorForSendType(string sendType, string returnType) { NSApplication.EnsureUIThread(); if (sendType == null) { throw new ArgumentNullException("sendType"); } if (returnType == null) { throw new ArgumentNullException("returnType"); } IntPtr arg = NSString.CreateNative(sendType); IntPtr arg2 = NSString.CreateNative(returnType); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("pasteAsPlainText:")] public virtual void PasteAsPlainText(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteAsPlainText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteAsPlainText_Handle, sender.Handle); } } [Export("pasteAsRichText:")] public virtual void PasteAsRichText(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteAsRichText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteAsRichText_Handle, sender.Handle); } } [Export("acceptableDragTypes")] public virtual string[] AcceptableDragTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAcceptableDragTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAcceptableDragTypesHandle)); } [Export("dragOperationForDraggingInfo:type:")] public virtual NSDragOperation DragOperationForDraggingInfo(NSDraggingInfo dragInfo, string type) { NSApplication.EnsureUIThread(); if (dragInfo == null) { throw new ArgumentNullException("dragInfo"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); NSDragOperation result = (NSDragOperation)((!IsDirectBinding) ? Messaging.UInt64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDragOperationForDraggingInfoType_Handle, dragInfo.Handle, arg) : Messaging.UInt64_objc_msgSend_IntPtr_IntPtr(base.Handle, selDragOperationForDraggingInfoType_Handle, dragInfo.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("cleanUpAfterDragOperation")] public virtual void CleanUpAfterDragOperation() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCleanUpAfterDragOperationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCleanUpAfterDragOperationHandle); } } [Export("setSelectedRanges:affinity:stillSelecting:")] public virtual void SetSelectedRanges(NSArray ranges, NSSelectionAffinity affinity, bool stillSelectingFlag) { NSApplication.EnsureUIThread(); if (ranges == null) { throw new ArgumentNullException("ranges"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_bool(base.Handle, selSetSelectedRangesAffinityStillSelecting_Handle, ranges.Handle, (ulong)affinity, stillSelectingFlag); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_bool(base.SuperHandle, selSetSelectedRangesAffinityStillSelecting_Handle, ranges.Handle, (ulong)affinity, stillSelectingFlag); } } [Export("setSelectedRange:affinity:stillSelecting:")] public virtual void SetSelectedRange(NSRange charRange, NSSelectionAffinity affinity, bool stillSelectingFlag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_UInt64_bool(base.Handle, selSetSelectedRangeAffinityStillSelecting_Handle, charRange, (ulong)affinity, stillSelectingFlag); } else { Messaging.void_objc_msgSendSuper_NSRange_UInt64_bool(base.SuperHandle, selSetSelectedRangeAffinityStillSelecting_Handle, charRange, (ulong)affinity, stillSelectingFlag); } } [Export("selectionAffinity")] public virtual NSSelectionAffinity SelectionAffinity() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSelectionAffinity)Messaging.UInt64_objc_msgSend(base.Handle, selSelectionAffinityHandle); } return (NSSelectionAffinity)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSelectionAffinityHandle); } [Export("updateInsertionPointStateAndRestartTimer:")] public virtual void UpdateInsertionPointStateAndRestartTimer(bool restartFlag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selUpdateInsertionPointStateAndRestartTimer_Handle, restartFlag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selUpdateInsertionPointStateAndRestartTimer_Handle, restartFlag); } } [Export("toggleContinuousSpellChecking:")] public virtual void ToggleContinuousSpellChecking(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleContinuousSpellChecking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleContinuousSpellChecking_Handle, sender.Handle); } } [Export("spellCheckerDocumentTag")] public virtual long SpellCheckerDocumentTag() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSpellCheckerDocumentTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSpellCheckerDocumentTagHandle); } [Export("toggleGrammarChecking:")] public virtual void ToggleGrammarChecking(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleGrammarChecking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleGrammarChecking_Handle, sender.Handle); } } [Export("setSpellingState:range:")] public virtual void SetSpellingState(long value, NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_NSRange(base.Handle, selSetSpellingStateRange_Handle, value, charRange); } else { Messaging.void_objc_msgSendSuper_Int64_NSRange(base.SuperHandle, selSetSpellingStateRange_Handle, value, charRange); } } [Export("shouldChangeTextInRanges:replacementStrings:")] public virtual bool ShouldChangeText(NSArray affectedRanges, string[] replacementStrings) { NSApplication.EnsureUIThread(); if (affectedRanges == null) { throw new ArgumentNullException("affectedRanges"); } if (replacementStrings == null) { throw new ArgumentNullException("replacementStrings"); } NSArray nSArray = NSArray.FromStrings(replacementStrings); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selShouldChangeTextInRangesReplacementStrings_Handle, affectedRanges.Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selShouldChangeTextInRangesReplacementStrings_Handle, affectedRanges.Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("rangesForUserTextChange")] public virtual NSArray RangesForUserTextChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRangesForUserTextChangeHandle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRangesForUserTextChangeHandle)); } [Export("rangesForUserCharacterAttributeChange")] public virtual NSArray RangesForUserCharacterAttributeChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRangesForUserCharacterAttributeChangeHandle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRangesForUserCharacterAttributeChangeHandle)); } [Export("rangesForUserParagraphAttributeChange")] public virtual NSArray RangesForUserParagraphAttributeChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRangesForUserParagraphAttributeChangeHandle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRangesForUserParagraphAttributeChangeHandle)); } [Export("rangeForUserTextChange")] public virtual NSRange RangeForUserTextChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeForUserTextChangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeForUserTextChangeHandle); } [Export("rangeForUserCharacterAttributeChange")] public virtual NSRange RangeForUserCharacterAttributeChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeForUserCharacterAttributeChangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeForUserCharacterAttributeChangeHandle); } [Export("rangeForUserParagraphAttributeChange")] public virtual NSRange RangeForUserParagraphAttributeChange() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeForUserParagraphAttributeChangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeForUserParagraphAttributeChangeHandle); } [Export("breakUndoCoalescing")] public virtual void BreakUndoCoalescing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBreakUndoCoalescingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBreakUndoCoalescingHandle); } } [Export("isCoalescingUndo")] public virtual bool IsCoalescingUndo() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCoalescingUndoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCoalescingUndoHandle); } [Export("showFindIndicatorForRange:")] public virtual void ShowFindIndicatorForRange(NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selShowFindIndicatorForRange_Handle, charRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selShowFindIndicatorForRange_Handle, charRange); } } [Export("setSelectedRange:")] public virtual void SetSelectedRange(NSRange charRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selSetSelectedRange_Handle, charRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selSetSelectedRange_Handle, charRange); } } [Export("shouldChangeTextInRange:replacementString:")] public virtual bool ShouldChangeText(NSRange affectedCharRange, string replacementString) { NSApplication.EnsureUIThread(); if (replacementString == null) { throw new ArgumentNullException("replacementString"); } IntPtr arg = NSString.CreateNative(replacementString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selShouldChangeTextInRangeReplacementString_Handle, affectedCharRange, arg) : Messaging.bool_objc_msgSend_NSRange_IntPtr(base.Handle, selShouldChangeTextInRangeReplacementString_Handle, affectedCharRange, arg)); NSString.ReleaseNative(arg); return result; } [Export("didChangeText")] public virtual void DidChangeText() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDidChangeTextHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDidChangeTextHandle); } } [Export("smartDeleteRangeForProposedRange:")] public virtual NSRange SmartDeleteRangeForProposedRange(NSRange proposedCharRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_NSRange(base.Handle, selSmartDeleteRangeForProposedRange_Handle, proposedCharRange); } return Messaging.NSRange_objc_msgSendSuper_NSRange(base.SuperHandle, selSmartDeleteRangeForProposedRange_Handle, proposedCharRange); } [Export("toggleSmartInsertDelete:")] public virtual void ToggleSmartInsertDelete(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleSmartInsertDelete_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleSmartInsertDelete_Handle, sender.Handle); } } [Export("smartInsertForString:replacingRange:beforeString:afterString:")] public virtual void SmartInsert(string pasteString, NSRange charRangeToReplace, string beforeString, string afterString) { NSApplication.EnsureUIThread(); if (pasteString == null) { throw new ArgumentNullException("pasteString"); } if (beforeString == null) { throw new ArgumentNullException("beforeString"); } if (afterString == null) { throw new ArgumentNullException("afterString"); } IntPtr arg = NSString.CreateNative(pasteString); IntPtr arg2 = NSString.CreateNative(beforeString); IntPtr arg3 = NSString.CreateNative(afterString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange_IntPtr_IntPtr(base.Handle, selSmartInsertForStringReplacingRangeBeforeStringAfterString_Handle, arg, charRangeToReplace, arg2, arg3); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange_IntPtr_IntPtr(base.SuperHandle, selSmartInsertForStringReplacingRangeBeforeStringAfterString_Handle, arg, charRangeToReplace, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("smartInsertBeforeStringForString:replacingRange:")] public virtual string SmartInsertBefore(string pasteString, NSRange charRangeToReplace) { NSApplication.EnsureUIThread(); if (pasteString == null) { throw new ArgumentNullException("pasteString"); } IntPtr arg = NSString.CreateNative(pasteString); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSmartInsertBeforeStringForStringReplacingRange_Handle, arg, charRangeToReplace)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_NSRange(base.Handle, selSmartInsertBeforeStringForStringReplacingRange_Handle, arg, charRangeToReplace))); NSString.ReleaseNative(arg); return result; } [Export("smartInsertAfterStringForString:replacingRange:")] public virtual string SmartInsertAfter(string pasteString, NSRange charRangeToReplace) { NSApplication.EnsureUIThread(); if (pasteString == null) { throw new ArgumentNullException("pasteString"); } IntPtr arg = NSString.CreateNative(pasteString); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSmartInsertAfterStringForStringReplacingRange_Handle, arg, charRangeToReplace)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_NSRange(base.Handle, selSmartInsertAfterStringForStringReplacingRange_Handle, arg, charRangeToReplace))); NSString.ReleaseNative(arg); return result; } [Export("toggleAutomaticQuoteSubstitution:")] public virtual void ToggleAutomaticQuoteSubstitution(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticQuoteSubstitution_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticQuoteSubstitution_Handle, sender.Handle); } } [Export("toggleAutomaticLinkDetection:")] public virtual void ToggleAutomaticLinkDetection(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticLinkDetection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticLinkDetection_Handle, sender.Handle); } } [Export("toggleAutomaticDataDetection:")] public virtual void ToggleAutomaticDataDetection(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticDataDetection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticDataDetection_Handle, sender.Handle); } } [Export("toggleAutomaticDashSubstitution:")] public virtual void ToggleAutomaticDashSubstitution(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticDashSubstitution_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticDashSubstitution_Handle, sender.Handle); } } [Export("toggleAutomaticTextReplacement:")] public virtual void ToggleAutomaticTextReplacement(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticTextReplacement_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticTextReplacement_Handle, sender.Handle); } } [Export("toggleAutomaticSpellingCorrection:")] public virtual void ToggleAutomaticSpellingCorrection(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleAutomaticSpellingCorrection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleAutomaticSpellingCorrection_Handle, sender.Handle); } } [Export("checkTextInRange:types:options:")] public virtual void CheckText(NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options) { NSApplication.EnsureUIThread(); if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_UInt64_IntPtr(base.Handle, selCheckTextInRangeTypesOptions_Handle, range, (ulong)checkingTypes, options.Handle); } else { Messaging.void_objc_msgSendSuper_NSRange_UInt64_IntPtr(base.SuperHandle, selCheckTextInRangeTypesOptions_Handle, range, (ulong)checkingTypes, options.Handle); } } [Export("handleTextCheckingResults:forRange:types:options:orthography:wordCount:")] public virtual void HandleTextChecking(NSTextCheckingResult[] results, NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options, NSOrthography orthography, long wordCount) { NSApplication.EnsureUIThread(); if (results == null) { throw new ArgumentNullException("results"); } if (options == null) { throw new ArgumentNullException("options"); } if (orthography == null) { throw new ArgumentNullException("orthography"); } NSArray nSArray = NSArray.FromNSObjects(results); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr_IntPtr_Int64(base.Handle, selHandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount_Handle, nSArray.Handle, range, (ulong)checkingTypes, options.Handle, orthography.Handle, wordCount); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr_IntPtr_Int64(base.SuperHandle, selHandleTextCheckingResultsForRangeTypesOptionsOrthographyWordCount_Handle, nSArray.Handle, range, (ulong)checkingTypes, options.Handle, orthography.Handle, wordCount); } nSArray.Dispose(); } [Export("orderFrontSubstitutionsPanel:")] public virtual void OrderFrontSubstitutionsPanel(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFrontSubstitutionsPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFrontSubstitutionsPanel_Handle, sender.Handle); } } [Export("checkTextInSelection:")] public virtual void CheckTextInSelection(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCheckTextInSelection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCheckTextInSelection_Handle, sender.Handle); } } [Export("checkTextInDocument:")] public virtual void CheckTextInDocument(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCheckTextInDocument_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCheckTextInDocument_Handle, sender.Handle); } } [Export("draggingSourceOperationMaskForLocal:")] public virtual NSDragOperation DraggingSourceOperationMaskForLocal(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_bool(base.Handle, selDraggingSourceOperationMaskForLocal_Handle, flag); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_bool(base.SuperHandle, selDraggingSourceOperationMaskForLocal_Handle, flag); } [Export("namesOfPromisedFilesDroppedAtDestination:")] public virtual string[] NamesOfPromisedFilesDroppedAtDestination(NSUrl dropDestination) { NSApplication.EnsureUIThread(); if (dropDestination == null) { throw new ArgumentNullException("dropDestination"); } if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNamesOfPromisedFilesDroppedAtDestination_Handle, dropDestination.Handle)); } [Export("draggedImage:beganAt:")] public virtual void DraggedImageBeganAt(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageBeganAt_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:operation:")] public virtual void DraggedImageEndedAtOperation(NSImage image, CGPoint screenPoint, NSDragOperation operation) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_UInt64(base.Handle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_UInt64(base.SuperHandle, selDraggedImageEndedAtOperation_Handle, image.Handle, screenPoint, (ulong)operation); } } [Export("draggedImage:movedTo:")] public virtual void DraggedImageMovedTo(NSImage image, CGPoint screenPoint) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint(base.Handle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selDraggedImageMovedTo_Handle, image.Handle, screenPoint); } } [Export("draggedImage:endedAt:deposited:")] [Obsolete("On 10.1 and newer, use DraggedImageEndedAtOperation() instead", false)] public virtual void DraggedImageEndedAtDeposited(NSImage image, CGPoint screenPoint, bool deposited) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_bool(base.Handle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_bool(base.SuperHandle, selDraggedImageEndedAtDeposited_Handle, image.Handle, screenPoint, deposited); } } private _NSTextViewDelegate EnsureNSTextViewDelegate() { NSTextViewDelegate nSTextViewDelegate = Delegate; if (nSTextViewDelegate == null || !(nSTextViewDelegate is _NSTextViewDelegate)) { nSTextViewDelegate = (Delegate = new _NSTextViewDelegate()); } return (_NSTextViewDelegate)nSTextViewDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LayoutManager_var = null; __mt_TextStorage_var = null; __mt_TextContainer_var = null; __mt_SelectedRanges_var = null; __mt_SelectedTextAttributes_var = null; __mt_InsertionPointColor_var = null; __mt_MarkedTextAttributes_var = null; __mt_LinkTextAttributes_var = null; __mt_TypingAttributes_var = null; __mt_DefaultParagraphStyle_var = null; __mt_Delegate_var = null; __mt_BackgroundColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewCellPasteboard.cs ================================================ namespace AppKit; public delegate bool NSTextViewCellPasteboard(NSTextView view, NSTextAttachmentCell cell, uint charIndex, NSPasteboard pboard, string type); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewCellPosition.cs ================================================ namespace AppKit; public delegate string[] NSTextViewCellPosition(NSTextView view, NSTextAttachmentCell forCell, ulong charIndex); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewChangeText.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSTextViewChangeText(NSTextView textView, NSRange affectedCharRange, string replacementString); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewClickedEventArgs.cs ================================================ using System; using CoreGraphics; namespace AppKit; public class NSTextViewClickedEventArgs : EventArgs { public NSTextAttachmentCell Cell { get; set; } public CGRect CellFrame { get; set; } public ulong CharIndex { get; set; } public NSTextViewClickedEventArgs(NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { Cell = cell; CellFrame = cellFrame; CharIndex = charIndex; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewCompletion.cs ================================================ using Foundation; namespace AppKit; public delegate string[] NSTextViewCompletion(NSTextView textView, string[] words, NSRange charRange, long index); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTextViewDelegate", true)] [Model] public class NSTextViewDelegate : NSTextDelegate { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTextViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextViewDelegate(IntPtr handle) : base(handle) { } [Export("textView:clickedOnLink:atIndex:")] public virtual bool LinkClicked(NSTextView textView, NSObject link, ulong charIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:clickedOnCell:inRect:atIndex:")] public virtual void CellClicked(NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:doubleClickedOnCell:inRect:atIndex:")] public virtual void CellDoubleClicked(NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:writablePasteboardTypesForCell:atIndex:")] public virtual string[] GetWritablePasteboardTypes(NSTextView view, NSTextAttachmentCell forCell, ulong charIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:writeCell:atIndex:toPasteboard:type:")] public virtual bool WriteCell(NSTextView view, NSTextAttachmentCell cell, uint charIndex, NSPasteboard pboard, string type) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:willChangeSelectionFromCharacterRange:toCharacterRange:")] public virtual NSRange WillChangeSelection(NSTextView textView, NSRange oldSelectedCharRange, NSRange newSelectedCharRange) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:willChangeSelectionFromCharacterRanges:toCharacterRanges:")] public virtual NSValue[] WillChangeSelectionFromRanges(NSTextView textView, NSValue[] oldSelectedCharRanges, NSValue[] newSelectedCharRanges) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:shouldChangeTextInRanges:replacementStrings:")] public virtual bool ShouldChangeTextInRanges(NSTextView textView, NSValue[] affectedRanges, string[] replacementStrings) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:shouldChangeTypingAttributes:toAttributes:")] public virtual NSDictionary ShouldChangeTypingAttributes(NSTextView textView, NSDictionary oldTypingAttributes, NSDictionary newTypingAttributes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textViewDidChangeSelection:")] public virtual void DidChangeSelection(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textViewDidChangeTypingAttributes:")] public virtual void DidChangeTypingAttributes(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:willDisplayToolTip:forCharacterAtIndex:")] public virtual string WillDisplayToolTip(NSTextView textView, string tooltip, ulong characterIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:completions:forPartialWordRange:indexOfSelectedItem:")] public virtual string[] GetCompletions(NSTextView textView, string[] words, NSRange charRange, long index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:shouldChangeTextInRange:replacementString:")] public virtual bool ShouldChangeTextInRange(NSTextView textView, NSRange affectedCharRange, string replacementString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:doCommandBySelector:")] public virtual bool DoCommandBySelector(NSTextView textView, Selector commandSelector) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:shouldSetSpellingState:range:")] public virtual long ShouldSetSpellingState(NSTextView textView, long value, NSRange affectedCharRange) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:menu:forEvent:atIndex:")] public virtual NSMenu MenuForEvent(NSTextView view, NSMenu menu, NSEvent theEvent, ulong charIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:willCheckTextInRange:options:types:")] public virtual NSDictionary WillCheckText(NSTextView view, NSRange range, NSDictionary options, NSTextCheckingTypes checkingTypes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:didCheckTextInRange:types:options:results:orthography:wordCount:")] public virtual NSTextCheckingResult[] DidCheckText(NSTextView view, NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options, NSTextCheckingResult[] results, NSOrthography orthography, long wordCount) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("textView:draggedCell:inRect:event:")] public virtual void DraggedCell(NSTextView view, NSTextAttachmentCell cell, CGRect rect, NSEvent theevent) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("undoManagerForTextView:")] public virtual NSUndoManager GetUndoManager(NSTextView view) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewDoubleClickEventArgs.cs ================================================ using System; using CoreGraphics; namespace AppKit; public class NSTextViewDoubleClickEventArgs : EventArgs { public NSTextAttachmentCell Cell { get; set; } public CGRect CellFrame { get; set; } public ulong CharIndex { get; set; } public NSTextViewDoubleClickEventArgs(NSTextAttachmentCell cell, CGRect cellFrame, ulong charIndex) { Cell = cell; CellFrame = cellFrame; CharIndex = charIndex; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewDraggedCellEventArgs.cs ================================================ using System; using CoreGraphics; namespace AppKit; public class NSTextViewDraggedCellEventArgs : EventArgs { public NSTextAttachmentCell Cell { get; set; } public CGRect Rect { get; set; } public NSEvent Theevent { get; set; } public NSTextViewDraggedCellEventArgs(NSTextAttachmentCell cell, CGRect rect, NSEvent theevent) { Cell = cell; Rect = rect; Theevent = theevent; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewEventMenu.cs ================================================ namespace AppKit; public delegate NSMenu NSTextViewEventMenu(NSTextView view, NSMenu menu, NSEvent theEvent, ulong charIndex); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewGetUndoManager.cs ================================================ using Foundation; namespace AppKit; public delegate NSUndoManager NSTextViewGetUndoManager(NSTextView view); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewLink.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSTextViewLink(NSTextView textView, NSObject link, ulong charIndex); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewOnTextCheck.cs ================================================ using Foundation; namespace AppKit; public delegate NSDictionary NSTextViewOnTextCheck(NSTextView view, NSRange range, NSDictionary options, NSTextCheckingTypes checkingTypes); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewSelectionChange.cs ================================================ using Foundation; namespace AppKit; public delegate NSRange NSTextViewSelectionChange(NSTextView textView, NSRange oldSelectedCharRange, NSRange newSelectedCharRange); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewSelectionShouldChange.cs ================================================ using Foundation; namespace AppKit; public delegate bool NSTextViewSelectionShouldChange(NSTextView textView, NSValue[] affectedRanges, string[] replacementStrings); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewSelectionWillChange.cs ================================================ using Foundation; namespace AppKit; public delegate NSValue[] NSTextViewSelectionWillChange(NSTextView textView, NSValue[] oldSelectedCharRanges, NSValue[] newSelectedCharRanges); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewSelectorCommand.cs ================================================ using ObjCRuntime; namespace AppKit; public delegate bool NSTextViewSelectorCommand(NSTextView textView, Selector commandSelector); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewSpellingQuery.cs ================================================ using Foundation; namespace AppKit; public delegate long NSTextViewSpellingQuery(NSTextView textView, long value, NSRange affectedCharRange); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewTextChecked.cs ================================================ using Foundation; namespace AppKit; public delegate NSTextCheckingResult[] NSTextViewTextChecked(NSTextView view, NSRange range, NSTextCheckingTypes checkingTypes, NSDictionary options, NSTextCheckingResult[] results, NSOrthography orthography, long wordCount); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewTooltip.cs ================================================ namespace AppKit; public delegate string NSTextViewTooltip(NSTextView textView, string tooltip, ulong characterIndex); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTextViewTypeAttribute.cs ================================================ using Foundation; namespace AppKit; public delegate NSDictionary NSTextViewTypeAttribute(NSTextView textView, NSDictionary oldTypingAttributes, NSDictionary newTypingAttributes); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTickMarkPosition.cs ================================================ namespace AppKit; public enum NSTickMarkPosition : ulong { Below = 0uL, Above = 1uL, Left = 1uL, Right = 0uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTiffCompression.cs ================================================ using System; namespace AppKit; public enum NSTiffCompression : ulong { None = 1uL, CcittFax3 = 3uL, CcittFax4 = 4uL, Lzw = 5uL, [Obsolete("no longer supported")] Jpeg = 6uL, Next = 32766uL, PackBits = 32773uL, [Obsolete("no longer supported")] OldJpeg = 32865uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTitlePosition.cs ================================================ namespace AppKit; public enum NSTitlePosition { NoTitle, AboveTop, AtTop, BelowTop, AboveBottom, AtBottom, BelowBottom } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTokenField.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTokenField", true)] public class NSTokenField : NSTextField { private static readonly IntPtr selTokenStyleHandle = Selector.GetHandle("tokenStyle"); private static readonly IntPtr selSetTokenStyle_Handle = Selector.GetHandle("setTokenStyle:"); private static readonly IntPtr selCompletionDelayHandle = Selector.GetHandle("completionDelay"); private static readonly IntPtr selSetCompletionDelay_Handle = Selector.GetHandle("setCompletionDelay:"); private static readonly IntPtr selDefaultCompletionDelayHandle = Selector.GetHandle("defaultCompletionDelay"); private static readonly IntPtr selDefaultTokenizingCharacterSetHandle = Selector.GetHandle("defaultTokenizingCharacterSet"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selTokenizingCharacterSetHandle = Selector.GetHandle("tokenizingCharacterSet"); private static readonly IntPtr selSetTokenizingCharacterSet_Handle = Selector.GetHandle("setTokenizingCharacterSet:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTokenField"); private static object __mt_DefaultCharacterSet_var_static; private object __mt_WeakDelegate_var; private object __mt_CharacterSet_var; public override IntPtr ClassHandle => class_ptr; public virtual NSTokenStyle TokenStyle { [Export("tokenStyle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTokenStyle)Messaging.UInt64_objc_msgSend(base.Handle, selTokenStyleHandle); } return (NSTokenStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTokenStyleHandle); } [Export("setTokenStyle:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTokenStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTokenStyle_Handle, (ulong)value); } } } public virtual double CompletionDelay { [Export("completionDelay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCompletionDelayHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCompletionDelayHandle); } [Export("setCompletionDelay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCompletionDelay_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCompletionDelay_Handle, value); } } } public static double DefaultCompletionDelay { [Export("defaultCompletionDelay")] get { NSApplication.EnsureUIThread(); return Messaging.Double_objc_msgSend(class_ptr, selDefaultCompletionDelayHandle); } } public static NSCharacterSet DefaultCharacterSet { [Export("defaultTokenizingCharacterSet")] get { NSApplication.EnsureUIThread(); return (NSCharacterSet)(__mt_DefaultCharacterSet_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultTokenizingCharacterSetHandle))); } } public new virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public new NSTokenFieldDelegate Delegate { get { return WeakDelegate as NSTokenFieldDelegate; } set { WeakDelegate = value; } } public virtual NSCharacterSet CharacterSet { [Export("tokenizingCharacterSet")] get { NSApplication.EnsureUIThread(); return (NSCharacterSet)(__mt_CharacterSet_var = ((!IsDirectBinding) ? ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTokenizingCharacterSetHandle))) : ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTokenizingCharacterSetHandle))))); } [Export("setTokenizingCharacterSet:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTokenizingCharacterSet_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTokenizingCharacterSet_Handle, value.Handle); } __mt_CharacterSet_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTokenField() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTokenField(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTokenField(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTokenField(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSTokenField(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_CharacterSet_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTokenFieldDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTokenFieldDelegate", true)] [Model] public class NSTokenFieldDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTokenFieldDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTokenFieldDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTokenFieldDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTokenFieldDelegate(IntPtr handle) : base(handle) { } [Export("tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:")] public virtual string[] GetCompletionStrings(NSTokenField tokenField, string substring, long tokenIndex, long selectedIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:shouldAddObjects:atIndex:")] public virtual NSTokenField[] ShouldAddObjects(NSTokenField tokenField, NSTokenField[] tokens, uint index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:displayStringForRepresentedObject:")] public virtual string GetDisplayString(NSTokenField tokenField, NSObject representedObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:editingStringForRepresentedObject:")] public virtual string GetEditingString(NSTokenField tokenField, NSObject representedObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:representedObjectForEditingString:")] public virtual NSObject GetRepresentedObject(NSTokenField tokenField, string editingString) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:writeRepresentedObjects:toPasteboard:")] public virtual bool WriteRepresented(NSTokenField tokenField, NSArray objects, NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:readFromPasteboard:")] public virtual NSObject[] Read(NSTokenField tokenField, NSPasteboard pboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:menuForRepresentedObject:")] public virtual NSMenu GetMenu(NSTokenField tokenField, NSObject representedObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:hasMenuForRepresentedObject:")] public virtual bool HasMenu(NSTokenField tokenField, NSObject representedObject) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("tokenField:styleForRepresentedObject:")] public virtual NSTokenStyle GetStyle(NSTokenField tokenField, NSObject representedObject) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTokenStyle.cs ================================================ namespace AppKit; public enum NSTokenStyle : ulong { Default, PlainText, Rounded } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbar.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSToolbar", true)] public class NSToolbar : NSObject { [Register] private sealed class _NSToolbarDelegate : NSToolbarDelegate { internal NSToolbarWillInsert willInsertItem; internal NSToolbarIdentifiers defaultItemIdentifiers; internal NSToolbarIdentifiers allowedItemIdentifiers; internal NSToolbarIdentifiers selectableItemIdentifiers; internal EventHandler willAddItem; internal EventHandler didRemoveItem; [Preserve(Conditional = true)] public override NSToolbarItem WillInsertItem(NSToolbar toolbar, string itemIdentifier, bool willBeInserted) { return willInsertItem?.Invoke(toolbar, itemIdentifier, willBeInserted); } [Preserve(Conditional = true)] public override string[] DefaultItemIdentifiers(NSToolbar toolbar) { return defaultItemIdentifiers?.Invoke(toolbar); } [Preserve(Conditional = true)] public override string[] AllowedItemIdentifiers(NSToolbar toolbar) { return allowedItemIdentifiers?.Invoke(toolbar); } [Preserve(Conditional = true)] public override string[] SelectableItemIdentifiers(NSToolbar toolbar) { return selectableItemIdentifiers?.Invoke(toolbar); } [Preserve(Conditional = true)] public override void WillAddItem(NSNotification notification) { willAddItem?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidRemoveItem(NSNotification notification) { didRemoveItem?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selCustomizationPaletteIsRunningHandle = Selector.GetHandle("customizationPaletteIsRunning"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selItemsHandle = Selector.GetHandle("items"); private static readonly IntPtr selVisibleItemsHandle = Selector.GetHandle("visibleItems"); private static readonly IntPtr selConfigurationDictionaryHandle = Selector.GetHandle("configurationDictionary"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selIsVisibleHandle = Selector.GetHandle("isVisible"); private static readonly IntPtr selSetVisible_Handle = Selector.GetHandle("setVisible:"); private static readonly IntPtr selDisplayModeHandle = Selector.GetHandle("displayMode"); private static readonly IntPtr selSetDisplayMode_Handle = Selector.GetHandle("setDisplayMode:"); private static readonly IntPtr selSelectedItemIdentifierHandle = Selector.GetHandle("selectedItemIdentifier"); private static readonly IntPtr selSetSelectedItemIdentifier_Handle = Selector.GetHandle("setSelectedItemIdentifier:"); private static readonly IntPtr selSizeModeHandle = Selector.GetHandle("sizeMode"); private static readonly IntPtr selSetSizeMode_Handle = Selector.GetHandle("setSizeMode:"); private static readonly IntPtr selShowsBaselineSeparatorHandle = Selector.GetHandle("showsBaselineSeparator"); private static readonly IntPtr selSetShowsBaselineSeparator_Handle = Selector.GetHandle("setShowsBaselineSeparator:"); private static readonly IntPtr selAllowsUserCustomizationHandle = Selector.GetHandle("allowsUserCustomization"); private static readonly IntPtr selSetAllowsUserCustomization_Handle = Selector.GetHandle("setAllowsUserCustomization:"); private static readonly IntPtr selAutosavesConfigurationHandle = Selector.GetHandle("autosavesConfiguration"); private static readonly IntPtr selSetAutosavesConfiguration_Handle = Selector.GetHandle("setAutosavesConfiguration:"); private static readonly IntPtr selInitWithIdentifier_Handle = Selector.GetHandle("initWithIdentifier:"); private static readonly IntPtr selInsertItemWithItemIdentifierAtIndex_Handle = Selector.GetHandle("insertItemWithItemIdentifier:atIndex:"); private static readonly IntPtr selRemoveItemAtIndex_Handle = Selector.GetHandle("removeItemAtIndex:"); private static readonly IntPtr selRunCustomizationPalette_Handle = Selector.GetHandle("runCustomizationPalette:"); private static readonly IntPtr selSetConfigurationFromDictionary_Handle = Selector.GetHandle("setConfigurationFromDictionary:"); private static readonly IntPtr selValidateVisibleItemsHandle = Selector.GetHandle("validateVisibleItems"); private static readonly IntPtr class_ptr = Class.GetHandle("NSToolbar"); private object __mt_Items_var; private object __mt_VisibleItems_var; private object __mt_ConfigurationDictionary_var; private object __mt_WeakDelegate_var; private static NSString _NSToolbarSeparatorItemIdentifier; private static NSString _NSToolbarSpaceItemIdentifier; private static NSString _NSToolbarFlexibleSpaceItemIdentifier; private static NSString _NSToolbarShowColorsItemIdentifier; private static NSString _NSToolbarShowFontsItemIdentifier; private static NSString _NSToolbarCustomizeToolbarItemIdentifier; private static NSString _NSToolbarPrintItemIdentifier; public override IntPtr ClassHandle => class_ptr; public virtual bool IsCustomizationPaletteRunning { [Export("customizationPaletteIsRunning")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCustomizationPaletteIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCustomizationPaletteIsRunningHandle); } } public virtual string Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } } public virtual NSToolbarItem[] Items { [Export("items")] get { NSApplication.EnsureUIThread(); return (NSToolbarItem[])(__mt_Items_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemsHandle)))); } } public virtual NSToolbarItem[] VisibleItems { [Export("visibleItems")] get { NSApplication.EnsureUIThread(); return (NSToolbarItem[])(__mt_VisibleItems_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVisibleItemsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVisibleItemsHandle)))); } } public virtual NSDictionary ConfigurationDictionary { [Export("configurationDictionary")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_ConfigurationDictionary_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConfigurationDictionaryHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConfigurationDictionaryHandle))))); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSToolbarDelegate Delegate { get { return WeakDelegate as NSToolbarDelegate; } set { WeakDelegate = value; } } public virtual bool Visible { [Export("isVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVisibleHandle); } [Export("setVisible:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVisible_Handle, value); } } } public virtual NSToolbarDisplayMode DisplayMode { [Export("displayMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSToolbarDisplayMode)Messaging.UInt64_objc_msgSend(base.Handle, selDisplayModeHandle); } return (NSToolbarDisplayMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDisplayModeHandle); } [Export("setDisplayMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDisplayMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDisplayMode_Handle, (ulong)value); } } } public virtual string SelectedItemIdentifier { [Export("selectedItemIdentifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedItemIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedItemIdentifierHandle)); } [Export("setSelectedItemIdentifier:")] set { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectedItemIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectedItemIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSToolbarSizeMode SizeMode { [Export("sizeMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSToolbarSizeMode)Messaging.UInt64_objc_msgSend(base.Handle, selSizeModeHandle); } return (NSToolbarSizeMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSizeModeHandle); } [Export("setSizeMode:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetSizeMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetSizeMode_Handle, (ulong)value); } } } public virtual bool ShowsBaselineSeparator { [Export("showsBaselineSeparator")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsBaselineSeparatorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsBaselineSeparatorHandle); } [Export("setShowsBaselineSeparator:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsBaselineSeparator_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsBaselineSeparator_Handle, value); } } } public virtual bool AllowsUserCustomization { [Export("allowsUserCustomization")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsUserCustomizationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsUserCustomizationHandle); } [Export("setAllowsUserCustomization:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsUserCustomization_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsUserCustomization_Handle, value); } } } public virtual bool AutosavesConfiguration { [Export("autosavesConfiguration")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosavesConfigurationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosavesConfigurationHandle); } [Export("setAutosavesConfiguration:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutosavesConfiguration_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutosavesConfiguration_Handle, value); } } } [Field("NSToolbarSeparatorItemIdentifier", "AppKit")] public static NSString NSToolbarSeparatorItemIdentifier { get { if (_NSToolbarSeparatorItemIdentifier == null) { _NSToolbarSeparatorItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarSeparatorItemIdentifier"); } return _NSToolbarSeparatorItemIdentifier; } } [Field("NSToolbarSpaceItemIdentifier", "AppKit")] public static NSString NSToolbarSpaceItemIdentifier { get { if (_NSToolbarSpaceItemIdentifier == null) { _NSToolbarSpaceItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarSpaceItemIdentifier"); } return _NSToolbarSpaceItemIdentifier; } } [Field("NSToolbarFlexibleSpaceItemIdentifier", "AppKit")] public static NSString NSToolbarFlexibleSpaceItemIdentifier { get { if (_NSToolbarFlexibleSpaceItemIdentifier == null) { _NSToolbarFlexibleSpaceItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarFlexibleSpaceItemIdentifier"); } return _NSToolbarFlexibleSpaceItemIdentifier; } } [Field("NSToolbarShowColorsItemIdentifier", "AppKit")] public static NSString NSToolbarShowColorsItemIdentifier { get { if (_NSToolbarShowColorsItemIdentifier == null) { _NSToolbarShowColorsItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarShowColorsItemIdentifier"); } return _NSToolbarShowColorsItemIdentifier; } } [Field("NSToolbarShowFontsItemIdentifier", "AppKit")] public static NSString NSToolbarShowFontsItemIdentifier { get { if (_NSToolbarShowFontsItemIdentifier == null) { _NSToolbarShowFontsItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarShowFontsItemIdentifier"); } return _NSToolbarShowFontsItemIdentifier; } } [Field("NSToolbarCustomizeToolbarItemIdentifier", "AppKit")] public static NSString NSToolbarCustomizeToolbarItemIdentifier { get { if (_NSToolbarCustomizeToolbarItemIdentifier == null) { _NSToolbarCustomizeToolbarItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarCustomizeToolbarItemIdentifier"); } return _NSToolbarCustomizeToolbarItemIdentifier; } } [Field("NSToolbarPrintItemIdentifier", "AppKit")] public static NSString NSToolbarPrintItemIdentifier { get { if (_NSToolbarPrintItemIdentifier == null) { _NSToolbarPrintItemIdentifier = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolbarPrintItemIdentifier"); } return _NSToolbarPrintItemIdentifier; } } public NSToolbarWillInsert WillInsertItem { get { return EnsureNSToolbarDelegate().willInsertItem; } set { EnsureNSToolbarDelegate().willInsertItem = value; } } public NSToolbarIdentifiers DefaultItemIdentifiers { get { return EnsureNSToolbarDelegate().defaultItemIdentifiers; } set { EnsureNSToolbarDelegate().defaultItemIdentifiers = value; } } public NSToolbarIdentifiers AllowedItemIdentifiers { get { return EnsureNSToolbarDelegate().allowedItemIdentifiers; } set { EnsureNSToolbarDelegate().allowedItemIdentifiers = value; } } public NSToolbarIdentifiers SelectableItemIdentifiers { get { return EnsureNSToolbarDelegate().selectableItemIdentifiers; } set { EnsureNSToolbarDelegate().selectableItemIdentifiers = value; } } public event EventHandler WillAddItem { add { _NSToolbarDelegate nSToolbarDelegate = EnsureNSToolbarDelegate(); nSToolbarDelegate.willAddItem = (EventHandler)System.Delegate.Combine(nSToolbarDelegate.willAddItem, value); } remove { _NSToolbarDelegate nSToolbarDelegate = EnsureNSToolbarDelegate(); nSToolbarDelegate.willAddItem = (EventHandler)System.Delegate.Remove(nSToolbarDelegate.willAddItem, value); } } public event EventHandler DidRemoveItem { add { _NSToolbarDelegate nSToolbarDelegate = EnsureNSToolbarDelegate(); nSToolbarDelegate.didRemoveItem = (EventHandler)System.Delegate.Combine(nSToolbarDelegate.didRemoveItem, value); } remove { _NSToolbarDelegate nSToolbarDelegate = EnsureNSToolbarDelegate(); nSToolbarDelegate.didRemoveItem = (EventHandler)System.Delegate.Remove(nSToolbarDelegate.didRemoveItem, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSToolbar() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSToolbar(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbar(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbar(IntPtr handle) : base(handle) { } [Export("initWithIdentifier:")] public NSToolbar(string identifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } [Export("insertItemWithItemIdentifier:atIndex:")] public virtual void InsertItem(string itemIdentifier, long index) { NSApplication.EnsureUIThread(); if (itemIdentifier == null) { throw new ArgumentNullException("itemIdentifier"); } IntPtr arg = NSString.CreateNative(itemIdentifier); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selInsertItemWithItemIdentifierAtIndex_Handle, arg, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInsertItemWithItemIdentifierAtIndex_Handle, arg, index); } NSString.ReleaseNative(arg); } [Export("removeItemAtIndex:")] public virtual void RemoveItem(long index) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveItemAtIndex_Handle, index); } } [Export("runCustomizationPalette:")] public virtual void RunCustomizationPalette(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRunCustomizationPalette_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunCustomizationPalette_Handle, sender.Handle); } } [Export("setConfigurationFromDictionary:")] public virtual void SetConfigurationFromDictionary(NSDictionary configDict) { NSApplication.EnsureUIThread(); if (configDict == null) { throw new ArgumentNullException("configDict"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetConfigurationFromDictionary_Handle, configDict.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetConfigurationFromDictionary_Handle, configDict.Handle); } } [Export("validateVisibleItems")] public virtual void ValidateVisibleItems() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selValidateVisibleItemsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selValidateVisibleItemsHandle); } } private _NSToolbarDelegate EnsureNSToolbarDelegate() { NSToolbarDelegate nSToolbarDelegate = Delegate; if (nSToolbarDelegate == null || !(nSToolbarDelegate is _NSToolbarDelegate)) { nSToolbarDelegate = (Delegate = new _NSToolbarDelegate()); } return (_NSToolbarDelegate)nSToolbarDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Items_var = null; __mt_VisibleItems_var = null; __mt_ConfigurationDictionary_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSToolbarDelegate", true)] [Model] public abstract class NSToolbarDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSToolbarDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSToolbarDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbarDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbarDelegate(IntPtr handle) : base(handle) { } [Export("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:")] public abstract NSToolbarItem WillInsertItem(NSToolbar toolbar, string itemIdentifier, bool willBeInserted); [Export("toolbarDefaultItemIdentifiers:")] public abstract string[] DefaultItemIdentifiers(NSToolbar toolbar); [Export("toolbarAllowedItemIdentifiers:")] public abstract string[] AllowedItemIdentifiers(NSToolbar toolbar); [Export("toolbarSelectableItemIdentifiers:")] public abstract string[] SelectableItemIdentifiers(NSToolbar toolbar); [Export("toolbarWillAddItem:")] public abstract void WillAddItem(NSNotification notification); [Export("toolbarDidRemoveItem:")] public abstract void DidRemoveItem(NSNotification notification); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarDisplayMode.cs ================================================ namespace AppKit; public enum NSToolbarDisplayMode : ulong { Default, IconAndLabel, Icon, Label } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarIdentifiers.cs ================================================ namespace AppKit; public delegate string[] NSToolbarIdentifiers(NSToolbar toolbar); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarItem.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSToolbarItem", true)] public class NSToolbarItem : NSObject { private static readonly IntPtr selItemIdentifierHandle = Selector.GetHandle("itemIdentifier"); private static readonly IntPtr selToolbarHandle = Selector.GetHandle("toolbar"); private static readonly IntPtr selAllowsDuplicatesInToolbarHandle = Selector.GetHandle("allowsDuplicatesInToolbar"); private static readonly IntPtr selLabelHandle = Selector.GetHandle("label"); private static readonly IntPtr selSetLabel_Handle = Selector.GetHandle("setLabel:"); private static readonly IntPtr selPaletteLabelHandle = Selector.GetHandle("paletteLabel"); private static readonly IntPtr selSetPaletteLabel_Handle = Selector.GetHandle("setPaletteLabel:"); private static readonly IntPtr selToolTipHandle = Selector.GetHandle("toolTip"); private static readonly IntPtr selSetToolTip_Handle = Selector.GetHandle("setToolTip:"); private static readonly IntPtr selMenuFormRepresentationHandle = Selector.GetHandle("menuFormRepresentation"); private static readonly IntPtr selSetMenuFormRepresentation_Handle = Selector.GetHandle("setMenuFormRepresentation:"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selSetTag_Handle = Selector.GetHandle("setTag:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selMinSizeHandle = Selector.GetHandle("minSize"); private static readonly IntPtr selSetMinSize_Handle = Selector.GetHandle("setMinSize:"); private static readonly IntPtr selMaxSizeHandle = Selector.GetHandle("maxSize"); private static readonly IntPtr selSetMaxSize_Handle = Selector.GetHandle("setMaxSize:"); private static readonly IntPtr selVisibilityPriorityHandle = Selector.GetHandle("visibilityPriority"); private static readonly IntPtr selSetVisibilityPriority_Handle = Selector.GetHandle("setVisibilityPriority:"); private static readonly IntPtr selAutovalidatesHandle = Selector.GetHandle("autovalidates"); private static readonly IntPtr selSetAutovalidates_Handle = Selector.GetHandle("setAutovalidates:"); private static readonly IntPtr selInitWithItemIdentifier_Handle = Selector.GetHandle("initWithItemIdentifier:"); private static readonly IntPtr selValidateHandle = Selector.GetHandle("validate"); private static readonly IntPtr class_ptr = Class.GetHandle("NSToolbarItem"); private object __mt_Toolbar_var; private object __mt_MenuFormRepresentation_var; private object __mt_Target_var; private object __mt_Image_var; private object __mt_View_var; public override IntPtr ClassHandle => class_ptr; public virtual string Identifier { [Export("itemIdentifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selItemIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selItemIdentifierHandle)); } } public virtual NSToolbar Toolbar { [Export("toolbar")] get { NSApplication.EnsureUIThread(); return (NSToolbar)(__mt_Toolbar_var = ((!IsDirectBinding) ? ((NSToolbar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolbarHandle))) : ((NSToolbar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selToolbarHandle))))); } } public virtual bool AllowsDuplicatesInToolbar { [Export("allowsDuplicatesInToolbar")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDuplicatesInToolbarHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDuplicatesInToolbarHandle); } } public virtual string Label { [Export("label")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLabelHandle)); } [Export("setLabel:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PaletteLabel { [Export("paletteLabel")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPaletteLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPaletteLabelHandle)); } [Export("setPaletteLabel:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPaletteLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPaletteLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ToolTip { [Export("toolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolTipHandle)); } [Export("setToolTip:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToolTip_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToolTip_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSMenuItem MenuFormRepresentation { [Export("menuFormRepresentation")] get { NSApplication.EnsureUIThread(); return (NSMenuItem)(__mt_MenuFormRepresentation_var = ((!IsDirectBinding) ? ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuFormRepresentationHandle))) : ((NSMenuItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuFormRepresentationHandle))))); } [Export("setMenuFormRepresentation:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMenuFormRepresentation_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMenuFormRepresentation_Handle, value.Handle); } __mt_MenuFormRepresentation_var = value; } } public virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } [Export("setTag:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetTag_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetTag_Handle, value); } } } public virtual NSObject Target { [Export("target")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Target_var = value; } } public virtual Selector Action { [Export("action")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle)); } [Export("setAction:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual bool Enabled { [Export("isEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual NSImage Image { [Export("image")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_Image_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Image_var = value; } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value.Handle); } __mt_View_var = value; } } public virtual CGSize MinSize { [Export("minSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinSizeHandle); } [Export("setMinSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMinSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMinSize_Handle, value); } } } public virtual CGSize MaxSize { [Export("maxSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaxSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaxSizeHandle); } [Export("setMaxSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaxSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaxSize_Handle, value); } } } public virtual long VisibilityPriority { [Export("visibilityPriority")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selVisibilityPriorityHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selVisibilityPriorityHandle); } [Export("setVisibilityPriority:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetVisibilityPriority_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetVisibilityPriority_Handle, value); } } } public virtual bool Autovalidates { [Export("autovalidates")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutovalidatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutovalidatesHandle); } [Export("setAutovalidates:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutovalidates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutovalidates_Handle, value); } } } public event EventHandler Activated { add { Target = ActionDispatcher.SetupAction(Target, value); Action = ActionDispatcher.Action; } remove { ActionDispatcher.RemoveAction(Target, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSToolbarItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSToolbarItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbarItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSToolbarItem(IntPtr handle) : base(handle) { } [Export("initWithItemIdentifier:")] public NSToolbarItem(string itemIdentifier) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (itemIdentifier == null) { throw new ArgumentNullException("itemIdentifier"); } IntPtr arg = NSString.CreateNative(itemIdentifier); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithItemIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithItemIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } [Export("validate")] public virtual void Validate() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selValidateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selValidateHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Toolbar_var = null; __mt_MenuFormRepresentation_var = null; __mt_Target_var = null; __mt_Image_var = null; __mt_View_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarSizeMode.cs ================================================ namespace AppKit; public enum NSToolbarSizeMode : ulong { Default, Regular, Small } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSToolbarWillInsert.cs ================================================ namespace AppKit; public delegate NSToolbarItem NSToolbarWillInsert(NSToolbar toolbar, string itemIdentifier, bool willBeInserted); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTouch.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTouch", true)] public class NSTouch : NSObject { private static readonly IntPtr selIdentityHandle = Selector.GetHandle("identity"); private static readonly IntPtr selPhaseHandle = Selector.GetHandle("phase"); private static readonly IntPtr selNormalizedPositionHandle = Selector.GetHandle("normalizedPosition"); private static readonly IntPtr selIsRestingHandle = Selector.GetHandle("isResting"); private static readonly IntPtr selDeviceHandle = Selector.GetHandle("device"); private static readonly IntPtr selDeviceSizeHandle = Selector.GetHandle("deviceSize"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTouch"); private object __mt_Identity_var; private object __mt_Device_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Identity { [Export("identity", ArgumentSemantic.Retain)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Identity_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentityHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentityHandle)))); } } public virtual NSTouchPhase Phase { [Export("phase")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTouchPhase)Messaging.UInt64_objc_msgSend(base.Handle, selPhaseHandle); } return (NSTouchPhase)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPhaseHandle); } } public virtual CGPoint NormalizedPosition { [Export("normalizedPosition")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selNormalizedPositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selNormalizedPositionHandle); } } public virtual bool IsResting { [Export("isResting")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRestingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRestingHandle); } } public virtual NSObject Device { [Export("device", ArgumentSemantic.Retain)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Device_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceHandle)))); } } public virtual CGSize DeviceSize { [Export("deviceSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selDeviceSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selDeviceSizeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTouch() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTouch(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTouch(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTouch(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Identity_var = null; __mt_Device_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTouchPhase.cs ================================================ namespace AppKit; public enum NSTouchPhase : ulong { Began = 1uL, Moved = 2uL, Stationary = 4uL, Ended = 8uL, Cancelled = 16uL, Touching = 7uL, Any = ulong.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTrackingArea.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTrackingArea", true)] public class NSTrackingArea : NSObject { private static readonly IntPtr selRectHandle = Selector.GetHandle("rect"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selOwnerHandle = Selector.GetHandle("owner"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selInitWithRectOptionsOwnerUserInfo_Handle = Selector.GetHandle("initWithRect:options:owner:userInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTrackingArea"); private object __mt_Owner_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual CGRect Rect { [Export("rect")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRectHandle); } return retval; } } public virtual NSTrackingAreaOptions Options { [Export("options")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSTrackingAreaOptions)Messaging.UInt64_objc_msgSend(base.Handle, selOptionsHandle); } return (NSTrackingAreaOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOptionsHandle); } } public virtual NSObject Owner { [Export("owner")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Owner_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerHandle)))); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTrackingArea() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTrackingArea(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTrackingArea(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTrackingArea(IntPtr handle) : base(handle) { } [Export("initWithRect:options:owner:userInfo:")] public NSTrackingArea(CGRect rect, NSTrackingAreaOptions options, NSObject owner, NSDictionary userInfo) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (owner == null) { throw new ArgumentNullException("owner"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_UInt64_IntPtr_IntPtr(base.Handle, selInitWithRectOptionsOwnerUserInfo_Handle, rect, (ulong)options, owner.Handle, userInfo?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_UInt64_IntPtr_IntPtr(base.SuperHandle, selInitWithRectOptionsOwnerUserInfo_Handle, rect, (ulong)options, owner.Handle, userInfo?.Handle ?? IntPtr.Zero); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Owner_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTrackingAreaOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTrackingAreaOptions : ulong { MouseEnteredAndExited = 1uL, MouseMoved = 2uL, CursorUpdate = 4uL, ActiveWhenFirstResponder = 0x10uL, ActiveInKeyWindow = 0x20uL, ActiveInActiveApp = 0x40uL, ActiveAlways = 0x80uL, AssumeInside = 0x100uL, InVisibleRect = 0x200uL, EnabledDuringMouseDrag = 0x400uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTreeController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTreeController", true)] public class NSTreeController : NSObjectController { private static readonly IntPtr selArrangedObjectsHandle = Selector.GetHandle("arrangedObjects"); private static readonly IntPtr selChildrenKeyPathHandle = Selector.GetHandle("childrenKeyPath"); private static readonly IntPtr selSetChildrenKeyPath_Handle = Selector.GetHandle("setChildrenKeyPath:"); private static readonly IntPtr selCountKeyPathHandle = Selector.GetHandle("countKeyPath"); private static readonly IntPtr selSetCountKeyPath_Handle = Selector.GetHandle("setCountKeyPath:"); private static readonly IntPtr selLeafKeyPathHandle = Selector.GetHandle("leafKeyPath"); private static readonly IntPtr selSetLeafKeyPath_Handle = Selector.GetHandle("setLeafKeyPath:"); private static readonly IntPtr selSortDescriptorsHandle = Selector.GetHandle("sortDescriptors"); private static readonly IntPtr selSetSortDescriptors_Handle = Selector.GetHandle("setSortDescriptors:"); private static readonly IntPtr selContentHandle = Selector.GetHandle("content"); private static readonly IntPtr selSetContent_Handle = Selector.GetHandle("setContent:"); private static readonly IntPtr selCanInsertHandle = Selector.GetHandle("canInsert"); private static readonly IntPtr selCanInsertChildHandle = Selector.GetHandle("canInsertChild"); private static readonly IntPtr selCanAddChildHandle = Selector.GetHandle("canAddChild"); private static readonly IntPtr selAvoidsEmptySelectionHandle = Selector.GetHandle("avoidsEmptySelection"); private static readonly IntPtr selSetAvoidsEmptySelection_Handle = Selector.GetHandle("setAvoidsEmptySelection:"); private static readonly IntPtr selPreservesSelectionHandle = Selector.GetHandle("preservesSelection"); private static readonly IntPtr selSetPreservesSelection_Handle = Selector.GetHandle("setPreservesSelection:"); private static readonly IntPtr selSelectsInsertedObjectsHandle = Selector.GetHandle("selectsInsertedObjects"); private static readonly IntPtr selSetSelectsInsertedObjects_Handle = Selector.GetHandle("setSelectsInsertedObjects:"); private static readonly IntPtr selAlwaysUsesMultipleValuesMarkerHandle = Selector.GetHandle("alwaysUsesMultipleValuesMarker"); private static readonly IntPtr selSetAlwaysUsesMultipleValuesMarker_Handle = Selector.GetHandle("setAlwaysUsesMultipleValuesMarker:"); private static readonly IntPtr selSelectedObjectsHandle = Selector.GetHandle("selectedObjects"); private static readonly IntPtr selSelectedNodesHandle = Selector.GetHandle("selectedNodes"); private static readonly IntPtr selRearrangeObjectsHandle = Selector.GetHandle("rearrangeObjects"); private static readonly IntPtr selAdd_Handle = Selector.GetHandle("add:"); private static readonly IntPtr selRemove_Handle = Selector.GetHandle("remove:"); private static readonly IntPtr selAddChild_Handle = Selector.GetHandle("addChild:"); private static readonly IntPtr selInsert_Handle = Selector.GetHandle("insert:"); private static readonly IntPtr selInsertChild_Handle = Selector.GetHandle("insertChild:"); private static readonly IntPtr selInsertObjectAtArrangedObjectIndexPath_Handle = Selector.GetHandle("insertObject:atArrangedObjectIndexPath:"); private static readonly IntPtr selInsertObjectsAtArrangedObjectIndexPaths_Handle = Selector.GetHandle("insertObjects:atArrangedObjectIndexPaths:"); private static readonly IntPtr selRemoveObjectAtArrangedObjectIndexPath_Handle = Selector.GetHandle("removeObjectAtArrangedObjectIndexPath:"); private static readonly IntPtr selRemoveObjectsAtArrangedObjectIndexPaths_Handle = Selector.GetHandle("removeObjectsAtArrangedObjectIndexPaths:"); private static readonly IntPtr selSelectionIndexPathsHandle = Selector.GetHandle("selectionIndexPaths"); private static readonly IntPtr selSetSelectionIndexPaths_Handle = Selector.GetHandle("setSelectionIndexPaths:"); private static readonly IntPtr selSelectionIndexPathHandle = Selector.GetHandle("selectionIndexPath"); private static readonly IntPtr selSetSelectionIndexPath_Handle = Selector.GetHandle("setSelectionIndexPath:"); private static readonly IntPtr selAddSelectionIndexPaths_Handle = Selector.GetHandle("addSelectionIndexPaths:"); private static readonly IntPtr selRemoveSelectionIndexPaths_Handle = Selector.GetHandle("removeSelectionIndexPaths:"); private static readonly IntPtr selMoveNodeToIndexPath_Handle = Selector.GetHandle("moveNode:toIndexPath:"); private static readonly IntPtr selMoveNodesToIndexPath_Handle = Selector.GetHandle("moveNodes:toIndexPath:"); private static readonly IntPtr selChildrenKeyPathForNode_Handle = Selector.GetHandle("childrenKeyPathForNode:"); private static readonly IntPtr selCountKeyPathForNode_Handle = Selector.GetHandle("countKeyPathForNode:"); private static readonly IntPtr selLeafKeyPathForNode_Handle = Selector.GetHandle("leafKeyPathForNode:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTreeController"); private object __mt_ArrangedObjects_var; private object __mt_SortDescriptors_var; private object __mt_Content_var; private object __mt_SelectedObjects_var; private object __mt_SelectedNodes_var; public NSIndexPath SelectionIndexPath { get { return GetSelectionIndexPath(); } set { SetSelectionIndexPath(value); } } public NSIndexPath[] SelectionIndexPaths { get { return GetSelectionIndexPaths(); } set { SetSelectionIndexPaths(value); } } public override IntPtr ClassHandle => class_ptr; public virtual NSObject ArrangedObjects { [Export("arrangedObjects")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_ArrangedObjects_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArrangedObjectsHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selArrangedObjectsHandle)))); } } public virtual string ChildrenKeyPath { [Export("childrenKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChildrenKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildrenKeyPathHandle)); } [Export("setChildrenKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetChildrenKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetChildrenKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CountKeyPath { [Export("countKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCountKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCountKeyPathHandle)); } [Export("setCountKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCountKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCountKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string LeafKeyPath { [Export("leafKeyPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLeafKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLeafKeyPathHandle)); } [Export("setLeafKeyPath:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLeafKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLeafKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSSortDescriptor[] SortDescriptors { [Export("sortDescriptors")] get { NSApplication.EnsureUIThread(); return (NSSortDescriptor[])(__mt_SortDescriptors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorsHandle)))); } [Export("setSortDescriptors:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SortDescriptors_var = value; } } public new virtual NSObject Content { [Export("content")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Content_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentHandle)))); } [Export("setContent:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContent_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContent_Handle, value.Handle); } __mt_Content_var = value; } } public virtual bool CanInsert { [Export("canInsert")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanInsertHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanInsertHandle); } } public virtual bool CanInsertChild { [Export("canInsertChild")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanInsertChildHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanInsertChildHandle); } } public virtual bool CanAddChild { [Export("canAddChild")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanAddChildHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanAddChildHandle); } } public virtual bool AvoidsEmptySelection { [Export("avoidsEmptySelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAvoidsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAvoidsEmptySelectionHandle); } [Export("setAvoidsEmptySelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAvoidsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAvoidsEmptySelection_Handle, value); } } } public virtual bool PreservesSelection { [Export("preservesSelection")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesSelectionHandle); } [Export("setPreservesSelection:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesSelection_Handle, value); } } } public virtual bool SelectsInsertedObjects { [Export("selectsInsertedObjects")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSelectsInsertedObjectsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSelectsInsertedObjectsHandle); } [Export("setSelectsInsertedObjects:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSelectsInsertedObjects_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSelectsInsertedObjects_Handle, value); } } } public virtual bool AlwaysUsesMultipleValuesMarker { [Export("alwaysUsesMultipleValuesMarker")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysUsesMultipleValuesMarkerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysUsesMultipleValuesMarkerHandle); } [Export("setAlwaysUsesMultipleValuesMarker:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysUsesMultipleValuesMarker_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysUsesMultipleValuesMarker_Handle, value); } } } public new virtual NSObject[] SelectedObjects { [Export("selectedObjects")] get { NSApplication.EnsureUIThread(); return (NSObject[])(__mt_SelectedObjects_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedObjectsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedObjectsHandle)))); } } public virtual NSTreeNode[] SelectedNodes { [Export("selectedNodes")] get { NSApplication.EnsureUIThread(); return (NSTreeNode[])(__mt_SelectedNodes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedNodesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedNodesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTreeController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTreeController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTreeController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTreeController(IntPtr handle) : base(handle) { } [Export("rearrangeObjects")] public virtual void RearrangeObjects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRearrangeObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRearrangeObjectsHandle); } } [Export("add:")] public new virtual void Add(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAdd_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAdd_Handle, sender.Handle); } } [Export("remove:")] public new virtual void Remove(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemove_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemove_Handle, sender.Handle); } } [Export("addChild:")] public virtual void AddChild(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddChild_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddChild_Handle, sender.Handle); } } [Export("insert:")] public virtual void Insert(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsert_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsert_Handle, sender.Handle); } } [Export("insertChild:")] public virtual void InsertChild(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsertChild_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsertChild_Handle, sender.Handle); } } [Export("insertObject:atArrangedObjectIndexPath:")] public virtual void InsertObject(NSObject object1, NSIndexPath indexPath) { NSApplication.EnsureUIThread(); if (object1 == null) { throw new ArgumentNullException("object1"); } if (indexPath == null) { throw new ArgumentNullException("indexPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertObjectAtArrangedObjectIndexPath_Handle, object1.Handle, indexPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertObjectAtArrangedObjectIndexPath_Handle, object1.Handle, indexPath.Handle); } } [Export("insertObjects:atArrangedObjectIndexPaths:")] public virtual void InsertObjects(NSObject[] objects, NSArray indexPaths) { NSApplication.EnsureUIThread(); if (objects == null) { throw new ArgumentNullException("objects"); } if (indexPaths == null) { throw new ArgumentNullException("indexPaths"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertObjectsAtArrangedObjectIndexPaths_Handle, nSArray.Handle, indexPaths.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertObjectsAtArrangedObjectIndexPaths_Handle, nSArray.Handle, indexPaths.Handle); } nSArray.Dispose(); } [Export("removeObjectAtArrangedObjectIndexPath:")] public virtual void RemoveObjectAtArrangedObjectIndexPath(NSIndexPath indexPath) { NSApplication.EnsureUIThread(); if (indexPath == null) { throw new ArgumentNullException("indexPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectAtArrangedObjectIndexPath_Handle, indexPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectAtArrangedObjectIndexPath_Handle, indexPath.Handle); } } [Export("removeObjectsAtArrangedObjectIndexPaths:")] public virtual void RemoveObjectsAtArrangedObjectIndexPaths(NSIndexPath[] indexPaths) { NSApplication.EnsureUIThread(); if (indexPaths == null) { throw new ArgumentNullException("indexPaths"); } NSArray nSArray = NSArray.FromNSObjects(indexPaths); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectsAtArrangedObjectIndexPaths_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectsAtArrangedObjectIndexPaths_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("selectionIndexPaths")] protected virtual NSIndexPath[] GetSelectionIndexPaths() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexPathsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexPathsHandle)); } [Export("setSelectionIndexPaths:")] protected virtual bool SetSelectionIndexPaths(NSIndexPath[] indexPaths) { NSApplication.EnsureUIThread(); if (indexPaths == null) { throw new ArgumentNullException("indexPaths"); } NSArray nSArray = NSArray.FromNSObjects(indexPaths); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexPaths_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexPaths_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("selectionIndexPath")] protected virtual NSIndexPath GetSelectionIndexPath() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexPathHandle)); } return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexPathHandle)); } [Export("setSelectionIndexPath:")] protected virtual bool SetSelectionIndexPath(NSIndexPath index) { NSApplication.EnsureUIThread(); if (index == null) { throw new ArgumentNullException("index"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetSelectionIndexPath_Handle, index.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectionIndexPath_Handle, index.Handle); } [Export("addSelectionIndexPaths:")] public virtual bool AddSelectionIndexPaths(NSIndexPath[] indexPaths) { NSApplication.EnsureUIThread(); if (indexPaths == null) { throw new ArgumentNullException("indexPaths"); } NSArray nSArray = NSArray.FromNSObjects(indexPaths); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSelectionIndexPaths_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAddSelectionIndexPaths_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("removeSelectionIndexPaths:")] public virtual bool RemoveSelectionIndexPaths(NSIndexPath[] indexPaths) { NSApplication.EnsureUIThread(); if (indexPaths == null) { throw new ArgumentNullException("indexPaths"); } NSArray nSArray = NSArray.FromNSObjects(indexPaths); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveSelectionIndexPaths_Handle, nSArray.Handle) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemoveSelectionIndexPaths_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("moveNode:toIndexPath:")] public virtual void MoveNode(NSTreeNode node, NSIndexPath indexPath) { NSApplication.EnsureUIThread(); if (node == null) { throw new ArgumentNullException("node"); } if (indexPath == null) { throw new ArgumentNullException("indexPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selMoveNodeToIndexPath_Handle, node.Handle, indexPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selMoveNodeToIndexPath_Handle, node.Handle, indexPath.Handle); } } [Export("moveNodes:toIndexPath:")] public virtual void MoveNodes(NSTreeNode[] nodes, NSIndexPath startingIndexPath) { NSApplication.EnsureUIThread(); if (nodes == null) { throw new ArgumentNullException("nodes"); } if (startingIndexPath == null) { throw new ArgumentNullException("startingIndexPath"); } NSArray nSArray = NSArray.FromNSObjects(nodes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selMoveNodesToIndexPath_Handle, nSArray.Handle, startingIndexPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selMoveNodesToIndexPath_Handle, nSArray.Handle, startingIndexPath.Handle); } nSArray.Dispose(); } [Export("childrenKeyPathForNode:")] public virtual string ChildrenKeyPathForNode(NSTreeNode node) { NSApplication.EnsureUIThread(); if (node == null) { throw new ArgumentNullException("node"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selChildrenKeyPathForNode_Handle, node.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selChildrenKeyPathForNode_Handle, node.Handle)); } [Export("countKeyPathForNode:")] public virtual string CountKeyPathForNode(NSTreeNode node) { NSApplication.EnsureUIThread(); if (node == null) { throw new ArgumentNullException("node"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCountKeyPathForNode_Handle, node.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCountKeyPathForNode_Handle, node.Handle)); } [Export("leafKeyPathForNode:")] public virtual string LeafKeyPathForNode(NSTreeNode node) { NSApplication.EnsureUIThread(); if (node == null) { throw new ArgumentNullException("node"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLeafKeyPathForNode_Handle, node.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLeafKeyPathForNode_Handle, node.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ArrangedObjects_var = null; __mt_SortDescriptors_var = null; __mt_Content_var = null; __mt_SelectedObjects_var = null; __mt_SelectedNodes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTreeNode.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTreeNode", true)] public class NSTreeNode : NSObject { private static readonly IntPtr selRepresentedObjectHandle = Selector.GetHandle("representedObject"); private static readonly IntPtr selIndexPathHandle = Selector.GetHandle("indexPath"); private static readonly IntPtr selIsLeafHandle = Selector.GetHandle("isLeaf"); private static readonly IntPtr selChildNodesHandle = Selector.GetHandle("childNodes"); private static readonly IntPtr selParentNodeHandle = Selector.GetHandle("parentNode"); private static readonly IntPtr selTreeNodeWithRepresentedObject_Handle = Selector.GetHandle("treeNodeWithRepresentedObject:"); private static readonly IntPtr selInitWithRepresentedObject_Handle = Selector.GetHandle("initWithRepresentedObject:"); private static readonly IntPtr selDescendantNodeAtIndexPath_Handle = Selector.GetHandle("descendantNodeAtIndexPath:"); private static readonly IntPtr selSortWithSortDescriptorsRecursively_Handle = Selector.GetHandle("sortWithSortDescriptors:recursively:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTreeNode"); private object __mt_RepresentedObject_var; private object __mt_IndexPath_var; private object __mt_Children_var; private object __mt_ParentNode_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject RepresentedObject { [Export("representedObject")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_RepresentedObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedObjectHandle)))); } } public virtual NSIndexPath IndexPath { [Export("indexPath")] get { NSApplication.EnsureUIThread(); return (NSIndexPath)(__mt_IndexPath_var = ((!IsDirectBinding) ? ((NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIndexPathHandle))) : ((NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIndexPathHandle))))); } } public virtual bool IsLeaf { [Export("isLeaf")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLeafHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLeafHandle); } } public virtual NSTreeNode[] Children { [Export("childNodes")] get { NSApplication.EnsureUIThread(); return (NSTreeNode[])(__mt_Children_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildNodesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChildNodesHandle)))); } } public virtual NSTreeNode ParentNode { [Export("parentNode")] get { NSApplication.EnsureUIThread(); return (NSTreeNode)(__mt_ParentNode_var = ((!IsDirectBinding) ? ((NSTreeNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentNodeHandle))) : ((NSTreeNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentNodeHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTreeNode() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTreeNode(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTreeNode(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTreeNode(IntPtr handle) : base(handle) { } [Export("treeNodeWithRepresentedObject:")] public static NSTreeNode FromRepresentedObject(NSObject modelObject) { NSApplication.EnsureUIThread(); if (modelObject == null) { throw new ArgumentNullException("modelObject"); } return (NSTreeNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selTreeNodeWithRepresentedObject_Handle, modelObject.Handle)); } [Export("initWithRepresentedObject:")] public NSTreeNode(NSObject modelObject) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (modelObject == null) { throw new ArgumentNullException("modelObject"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithRepresentedObject_Handle, modelObject.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithRepresentedObject_Handle, modelObject.Handle); } } [Export("descendantNodeAtIndexPath:")] public virtual NSTreeNode DescendantNode(NSIndexPath atIndexPath) { NSApplication.EnsureUIThread(); if (atIndexPath == null) { throw new ArgumentNullException("atIndexPath"); } if (IsDirectBinding) { return (NSTreeNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDescendantNodeAtIndexPath_Handle, atIndexPath.Handle)); } return (NSTreeNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDescendantNodeAtIndexPath_Handle, atIndexPath.Handle)); } [Export("sortWithSortDescriptors:recursively:")] public virtual void SortWithSortDescriptors(NSSortDescriptor[] sortDescriptors, bool recursively) { NSApplication.EnsureUIThread(); if (sortDescriptors == null) { throw new ArgumentNullException("sortDescriptors"); } NSArray nSArray = NSArray.FromNSObjects(sortDescriptors); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSortWithSortDescriptorsRecursively_Handle, nSArray.Handle, recursively); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSortWithSortDescriptorsRecursively_Handle, nSArray.Handle, recursively); } nSArray.Dispose(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_RepresentedObject_var = null; __mt_IndexPath_var = null; __mt_Children_var = null; __mt_ParentNode_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSType.cs ================================================ namespace AppKit; public enum NSType : ulong { Any = 0uL, Int = 1uL, PositiveInt = 2uL, Float = 3uL, PositiveFloat = 4uL, Double = 6uL, PositiveDouble = 7uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTypesetter.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSTypesetter", true)] public class NSTypesetter : NSObject { private static readonly IntPtr class_ptr = Class.GetHandle("NSTypesetter"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTypesetter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTypesetter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTypesetter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTypesetter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTypesetterBehavior.cs ================================================ namespace AppKit; public enum NSTypesetterBehavior : long { Latest = -1L, Original, Specific_10_2_WithCompatibility, Specific_10_2, Specific_10_3, Specific_10_4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSTypesetterControlCharacterAction.cs ================================================ using System; namespace AppKit; [Flags] public enum NSTypesetterControlCharacterAction : ulong { ZeroAdvancement = 1uL, Whitespace = 2uL, HorizontalTab = 4uL, LineBreak = 8uL, ParagraphBreak = 0x10uL, ContainerBreak = 0x20uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSUnderlinePattern.cs ================================================ namespace AppKit; public enum NSUnderlinePattern { Solid = 0, Dot = 256, Dash = 512, DashDot = 768, DashDotDot = 1024 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSUnderlineStyle.cs ================================================ namespace AppKit; public enum NSUnderlineStyle { None = 0, Single = 1, Thick = 2, Double = 9 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSUsableScrollerParts.cs ================================================ namespace AppKit; public enum NSUsableScrollerParts : ulong { NoScroller, OnlyArrows, All } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSUserInterfaceLayoutDirection.cs ================================================ namespace AppKit; public enum NSUserInterfaceLayoutDirection : long { LeftToRight, RightToLeft } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSValidatedUserInterfaceItemWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace AppKit; internal sealed class NSValidatedUserInterfaceItemWrapper : BaseWrapper, INSValidatedUserInterfaceItem, INativeObject, IDisposable { public Selector? Action { [Export("action")] get { NSApplication.EnsureUIThread(); return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, Selector.GetHandle("action"))); } } public long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); return Messaging.long_objc_msgSend(base.Handle, Selector.GetHandle("tag")); } } [Preserve(Conditional = true)] public NSValidatedUserInterfaceItemWrapper(IntPtr handle, bool owns) : base(handle, owns) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSView.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSView", true)] public class NSView : NSResponder { public static class Notifications { public static NSObject ObserveFrameChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(FrameChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveFocusChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(FocusChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveBoundsChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(BoundsChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveGlobalFrameChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(GlobalFrameChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveUpdatedTrackingAreas(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(UpdatedTrackingAreasNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private object __mt_tracking_var; private static readonly IntPtr selWindowHandle = Selector.GetHandle("window"); private static readonly IntPtr selSuperviewHandle = Selector.GetHandle("superview"); private static readonly IntPtr selOpaqueAncestorHandle = Selector.GetHandle("opaqueAncestor"); private static readonly IntPtr selIsHiddenOrHasHiddenAncestorHandle = Selector.GetHandle("isHiddenOrHasHiddenAncestor"); private static readonly IntPtr selWantsDefaultClippingHandle = Selector.GetHandle("wantsDefaultClipping"); private static readonly IntPtr selIsFlippedHandle = Selector.GetHandle("isFlipped"); private static readonly IntPtr selIsRotatedFromBaseHandle = Selector.GetHandle("isRotatedFromBase"); private static readonly IntPtr selIsRotatedOrScaledFromBaseHandle = Selector.GetHandle("isRotatedOrScaledFromBase"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selTagHandle = Selector.GetHandle("tag"); private static readonly IntPtr selNeedsPanelToBecomeKeyHandle = Selector.GetHandle("needsPanelToBecomeKey"); private static readonly IntPtr selMouseDownCanMoveWindowHandle = Selector.GetHandle("mouseDownCanMoveWindow"); private static readonly IntPtr selShouldDrawColorHandle = Selector.GetHandle("shouldDrawColor"); private static readonly IntPtr selEnclosingScrollViewHandle = Selector.GetHandle("enclosingScrollView"); private static readonly IntPtr selInLiveResizeHandle = Selector.GetHandle("inLiveResize"); private static readonly IntPtr selPreservesContentDuringLiveResizeHandle = Selector.GetHandle("preservesContentDuringLiveResize"); private static readonly IntPtr selRectPreservedDuringLiveResizeHandle = Selector.GetHandle("rectPreservedDuringLiveResize"); private static readonly IntPtr selInputContextHandle = Selector.GetHandle("inputContext"); private static readonly IntPtr selIsHiddenHandle = Selector.GetHandle("isHidden"); private static readonly IntPtr selSetHidden_Handle = Selector.GetHandle("setHidden:"); private static readonly IntPtr selSubviewsHandle = Selector.GetHandle("subviews"); private static readonly IntPtr selSetSubviews_Handle = Selector.GetHandle("setSubviews:"); private static readonly IntPtr selPostsFrameChangedNotificationsHandle = Selector.GetHandle("postsFrameChangedNotifications"); private static readonly IntPtr selSetPostsFrameChangedNotifications_Handle = Selector.GetHandle("setPostsFrameChangedNotifications:"); private static readonly IntPtr selAutoresizesSubviewsHandle = Selector.GetHandle("autoresizesSubviews"); private static readonly IntPtr selSetAutoresizesSubviews_Handle = Selector.GetHandle("setAutoresizesSubviews:"); private static readonly IntPtr selAutoresizingMaskHandle = Selector.GetHandle("autoresizingMask"); private static readonly IntPtr selSetAutoresizingMask_Handle = Selector.GetHandle("setAutoresizingMask:"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selSetFrame_Handle = Selector.GetHandle("setFrame:"); private static readonly IntPtr selFrameRotationHandle = Selector.GetHandle("frameRotation"); private static readonly IntPtr selSetFrameRotation_Handle = Selector.GetHandle("setFrameRotation:"); private static readonly IntPtr selFrameCenterRotationHandle = Selector.GetHandle("frameCenterRotation"); private static readonly IntPtr selSetFrameCenterRotation_Handle = Selector.GetHandle("setFrameCenterRotation:"); private static readonly IntPtr selBoundsRotationHandle = Selector.GetHandle("boundsRotation"); private static readonly IntPtr selSetBoundsRotation_Handle = Selector.GetHandle("setBoundsRotation:"); private static readonly IntPtr selBoundsHandle = Selector.GetHandle("bounds"); private static readonly IntPtr selSetBounds_Handle = Selector.GetHandle("setBounds:"); private static readonly IntPtr selCanDrawConcurrentlyHandle = Selector.GetHandle("canDrawConcurrently"); private static readonly IntPtr selSetCanDrawConcurrently_Handle = Selector.GetHandle("setCanDrawConcurrently:"); private static readonly IntPtr selNeedsDisplayHandle = Selector.GetHandle("needsDisplay"); private static readonly IntPtr selSetNeedsDisplay_Handle = Selector.GetHandle("setNeedsDisplay:"); private static readonly IntPtr selAcceptsTouchEventsHandle = Selector.GetHandle("acceptsTouchEvents"); private static readonly IntPtr selSetAcceptsTouchEvents_Handle = Selector.GetHandle("setAcceptsTouchEvents:"); private static readonly IntPtr selWantsRestingTouchesHandle = Selector.GetHandle("wantsRestingTouches"); private static readonly IntPtr selSetWantsRestingTouches_Handle = Selector.GetHandle("setWantsRestingTouches:"); private static readonly IntPtr selLayerContentsRedrawPolicyHandle = Selector.GetHandle("layerContentsRedrawPolicy"); private static readonly IntPtr selSetLayerContentsRedrawPolicy_Handle = Selector.GetHandle("setLayerContentsRedrawPolicy:"); private static readonly IntPtr selLayerContentsPlacementHandle = Selector.GetHandle("layerContentsPlacement"); private static readonly IntPtr selSetLayerContentsPlacement_Handle = Selector.GetHandle("setLayerContentsPlacement:"); private static readonly IntPtr selWantsLayerHandle = Selector.GetHandle("wantsLayer"); private static readonly IntPtr selSetWantsLayer_Handle = Selector.GetHandle("setWantsLayer:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr selSetLayer_Handle = Selector.GetHandle("setLayer:"); private static readonly IntPtr selAlphaValueHandle = Selector.GetHandle("alphaValue"); private static readonly IntPtr selSetAlphaValue_Handle = Selector.GetHandle("setAlphaValue:"); private static readonly IntPtr selBackgroundFiltersHandle = Selector.GetHandle("backgroundFilters"); private static readonly IntPtr selSetBackgroundFilters_Handle = Selector.GetHandle("setBackgroundFilters:"); private static readonly IntPtr selCompositingFilterHandle = Selector.GetHandle("compositingFilter"); private static readonly IntPtr selSetCompositingFilter_Handle = Selector.GetHandle("setCompositingFilter:"); private static readonly IntPtr selContentFiltersHandle = Selector.GetHandle("contentFilters"); private static readonly IntPtr selSetContentFilters_Handle = Selector.GetHandle("setContentFilters:"); private static readonly IntPtr selShadowHandle = Selector.GetHandle("shadow"); private static readonly IntPtr selSetShadow_Handle = Selector.GetHandle("setShadow:"); private static readonly IntPtr selPostsBoundsChangedNotificationsHandle = Selector.GetHandle("postsBoundsChangedNotifications"); private static readonly IntPtr selSetPostsBoundsChangedNotifications_Handle = Selector.GetHandle("setPostsBoundsChangedNotifications:"); private static readonly IntPtr selToolTipHandle = Selector.GetHandle("toolTip"); private static readonly IntPtr selSetToolTip_Handle = Selector.GetHandle("setToolTip:"); private static readonly IntPtr selIsInFullScreenModeHandle = Selector.GetHandle("isInFullScreenMode"); private static readonly IntPtr selConstraintsHandle = Selector.GetHandle("constraints"); private static readonly IntPtr selNeedsUpdateConstraintsHandle = Selector.GetHandle("needsUpdateConstraints"); private static readonly IntPtr selSetNeedsUpdateConstraints_Handle = Selector.GetHandle("setNeedsUpdateConstraints:"); private static readonly IntPtr selNeedsLayoutHandle = Selector.GetHandle("needsLayout"); private static readonly IntPtr selSetNeedsLayout_Handle = Selector.GetHandle("setNeedsLayout:"); private static readonly IntPtr selTranslatesAutoresizingMaskIntoConstraintsHandle = Selector.GetHandle("translatesAutoresizingMaskIntoConstraints"); private static readonly IntPtr selSetTranslatesAutoresizingMaskIntoConstraints_Handle = Selector.GetHandle("setTranslatesAutoresizingMaskIntoConstraints:"); private static readonly IntPtr selAlignmentRectInsetsHandle = Selector.GetHandle("alignmentRectInsets"); private static readonly IntPtr selBaselineOffsetFromBottomHandle = Selector.GetHandle("baselineOffsetFromBottom"); private static readonly IntPtr selIntrinsicContentSizeHandle = Selector.GetHandle("intrinsicContentSize"); private static readonly IntPtr selFittingSizeHandle = Selector.GetHandle("fittingSize"); private static readonly IntPtr selHasAmbiguousLayoutHandle = Selector.GetHandle("hasAmbiguousLayout"); private static readonly IntPtr selNextKeyViewHandle = Selector.GetHandle("nextKeyView"); private static readonly IntPtr selSetNextKeyView_Handle = Selector.GetHandle("setNextKeyView:"); private static readonly IntPtr selPreviousKeyViewHandle = Selector.GetHandle("previousKeyView"); private static readonly IntPtr selNextValidKeyViewHandle = Selector.GetHandle("nextValidKeyView"); private static readonly IntPtr selPreviousValidKeyViewHandle = Selector.GetHandle("previousValidKeyView"); private static readonly IntPtr selCanBecomeKeyViewHandle = Selector.GetHandle("canBecomeKeyView"); private static readonly IntPtr selFocusRingTypeHandle = Selector.GetHandle("focusRingType"); private static readonly IntPtr selSetFocusRingType_Handle = Selector.GetHandle("setFocusRingType:"); private static readonly IntPtr selDefaultFocusRingTypeHandle = Selector.GetHandle("defaultFocusRingType"); private static readonly IntPtr selFocusRingMaskBoundsHandle = Selector.GetHandle("focusRingMaskBounds"); private static readonly IntPtr selIsDrawingFindIndicatorHandle = Selector.GetHandle("isDrawingFindIndicator"); private static readonly IntPtr selPrintJobTitleHandle = Selector.GetHandle("printJobTitle"); private static readonly IntPtr selPageHeaderHandle = Selector.GetHandle("pageHeader"); private static readonly IntPtr selPageFooterHandle = Selector.GetHandle("pageFooter"); private static readonly IntPtr selHeightAdjustLimitHandle = Selector.GetHandle("heightAdjustLimit"); private static readonly IntPtr selWidthAdjustLimitHandle = Selector.GetHandle("widthAdjustLimit"); private static readonly IntPtr selWantsBestResolutionOpenGLSurfaceHandle = Selector.GetHandle("wantsBestResolutionOpenGLSurface"); private static readonly IntPtr selSetWantsBestResolutionOpenGLSurface_Handle = Selector.GetHandle("setWantsBestResolutionOpenGLSurface:"); private static readonly IntPtr selWantsPeriodicDraggingUpdatesHandle = Selector.GetHandle("wantsPeriodicDraggingUpdates"); private static readonly IntPtr selAnimatorHandle = Selector.GetHandle("animator"); private static readonly IntPtr selAnimationsHandle = Selector.GetHandle("animations"); private static readonly IntPtr selSetAnimations_Handle = Selector.GetHandle("setAnimations:"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selIsDescendantOf_Handle = Selector.GetHandle("isDescendantOf:"); private static readonly IntPtr selAncestorSharedWithView_Handle = Selector.GetHandle("ancestorSharedWithView:"); private static readonly IntPtr selNeedsToDrawRect_Handle = Selector.GetHandle("needsToDrawRect:"); private static readonly IntPtr selViewDidHideHandle = Selector.GetHandle("viewDidHide"); private static readonly IntPtr selViewDidUnhideHandle = Selector.GetHandle("viewDidUnhide"); private static readonly IntPtr selAddSubview_Handle = Selector.GetHandle("addSubview:"); private static readonly IntPtr selAddSubviewPositionedRelativeTo_Handle = Selector.GetHandle("addSubview:positioned:relativeTo:"); private static readonly IntPtr selViewWillMoveToWindow_Handle = Selector.GetHandle("viewWillMoveToWindow:"); private static readonly IntPtr selViewDidMoveToWindowHandle = Selector.GetHandle("viewDidMoveToWindow"); private static readonly IntPtr selViewWillMoveToSuperview_Handle = Selector.GetHandle("viewWillMoveToSuperview:"); private static readonly IntPtr selViewDidMoveToSuperviewHandle = Selector.GetHandle("viewDidMoveToSuperview"); private static readonly IntPtr selDidAddSubview_Handle = Selector.GetHandle("didAddSubview:"); private static readonly IntPtr selWillRemoveSubview_Handle = Selector.GetHandle("willRemoveSubview:"); private static readonly IntPtr selRemoveFromSuperviewHandle = Selector.GetHandle("removeFromSuperview"); private static readonly IntPtr selReplaceSubviewWith_Handle = Selector.GetHandle("replaceSubview:with:"); private static readonly IntPtr selRemoveFromSuperviewWithoutNeedingDisplayHandle = Selector.GetHandle("removeFromSuperviewWithoutNeedingDisplay"); private static readonly IntPtr selResizeSubviewsWithOldSize_Handle = Selector.GetHandle("resizeSubviewsWithOldSize:"); private static readonly IntPtr selResizeWithOldSuperviewSize_Handle = Selector.GetHandle("resizeWithOldSuperviewSize:"); private static readonly IntPtr selSetFrameOrigin_Handle = Selector.GetHandle("setFrameOrigin:"); private static readonly IntPtr selSetFrameSize_Handle = Selector.GetHandle("setFrameSize:"); private static readonly IntPtr selSetBoundsOrigin_Handle = Selector.GetHandle("setBoundsOrigin:"); private static readonly IntPtr selSetBoundsSize_Handle = Selector.GetHandle("setBoundsSize:"); private static readonly IntPtr selTranslateOriginToPoint_Handle = Selector.GetHandle("translateOriginToPoint:"); private static readonly IntPtr selScaleUnitSquareToSize_Handle = Selector.GetHandle("scaleUnitSquareToSize:"); private static readonly IntPtr selRotateByAngle_Handle = Selector.GetHandle("rotateByAngle:"); private static readonly IntPtr selConvertPointFromView_Handle = Selector.GetHandle("convertPoint:fromView:"); private static readonly IntPtr selConvertPointToView_Handle = Selector.GetHandle("convertPoint:toView:"); private static readonly IntPtr selConvertSizeFromView_Handle = Selector.GetHandle("convertSize:fromView:"); private static readonly IntPtr selConvertSizeToView_Handle = Selector.GetHandle("convertSize:toView:"); private static readonly IntPtr selConvertRectFromView_Handle = Selector.GetHandle("convertRect:fromView:"); private static readonly IntPtr selConvertRectToView_Handle = Selector.GetHandle("convertRect:toView:"); private static readonly IntPtr selCenterScanRect_Handle = Selector.GetHandle("centerScanRect:"); private static readonly IntPtr selConvertPointToBase_Handle = Selector.GetHandle("convertPointToBase:"); private static readonly IntPtr selConvertPointFromBase_Handle = Selector.GetHandle("convertPointFromBase:"); private static readonly IntPtr selConvertSizeToBase_Handle = Selector.GetHandle("convertSizeToBase:"); private static readonly IntPtr selConvertSizeFromBase_Handle = Selector.GetHandle("convertSizeFromBase:"); private static readonly IntPtr selConvertRectToBase_Handle = Selector.GetHandle("convertRectToBase:"); private static readonly IntPtr selConvertRectFromBase_Handle = Selector.GetHandle("convertRectFromBase:"); private static readonly IntPtr selCanDrawHandle = Selector.GetHandle("canDraw"); private static readonly IntPtr selSetNeedsDisplayInRect_Handle = Selector.GetHandle("setNeedsDisplayInRect:"); private static readonly IntPtr selLockFocusHandle = Selector.GetHandle("lockFocus"); private static readonly IntPtr selUnlockFocusHandle = Selector.GetHandle("unlockFocus"); private static readonly IntPtr selLockFocusIfCanDrawHandle = Selector.GetHandle("lockFocusIfCanDraw"); private static readonly IntPtr selLockFocusIfCanDrawInContext_Handle = Selector.GetHandle("lockFocusIfCanDrawInContext:"); private static readonly IntPtr selFocusViewHandle = Selector.GetHandle("focusView"); private static readonly IntPtr selVisibleRectHandle = Selector.GetHandle("visibleRect"); private static readonly IntPtr selDisplayHandle = Selector.GetHandle("display"); private static readonly IntPtr selDisplayIfNeededHandle = Selector.GetHandle("displayIfNeeded"); private static readonly IntPtr selDisplayIfNeededIgnoringOpacityHandle = Selector.GetHandle("displayIfNeededIgnoringOpacity"); private static readonly IntPtr selDisplayRect_Handle = Selector.GetHandle("displayRect:"); private static readonly IntPtr selDisplayIfNeededInRect_Handle = Selector.GetHandle("displayIfNeededInRect:"); private static readonly IntPtr selDisplayRectIgnoringOpacity_Handle = Selector.GetHandle("displayRectIgnoringOpacity:"); private static readonly IntPtr selDisplayIfNeededInRectIgnoringOpacity_Handle = Selector.GetHandle("displayIfNeededInRectIgnoringOpacity:"); private static readonly IntPtr selDrawRect_Handle = Selector.GetHandle("drawRect:"); private static readonly IntPtr selDisplayRectIgnoringOpacityInContext_Handle = Selector.GetHandle("displayRectIgnoringOpacity:inContext:"); private static readonly IntPtr selBitmapImageRepForCachingDisplayInRect_Handle = Selector.GetHandle("bitmapImageRepForCachingDisplayInRect:"); private static readonly IntPtr selCacheDisplayInRectToBitmapImageRep_Handle = Selector.GetHandle("cacheDisplayInRect:toBitmapImageRep:"); private static readonly IntPtr selViewWillDrawHandle = Selector.GetHandle("viewWillDraw"); private static readonly IntPtr selGStateHandle = Selector.GetHandle("gState"); private static readonly IntPtr selAllocateGStateHandle = Selector.GetHandle("allocateGState"); private static readonly IntPtr selReleaseGStateHandle = Selector.GetHandle("releaseGState"); private static readonly IntPtr selSetUpGStateHandle = Selector.GetHandle("setUpGState"); private static readonly IntPtr selRenewGStateHandle = Selector.GetHandle("renewGState"); private static readonly IntPtr selScrollPoint_Handle = Selector.GetHandle("scrollPoint:"); private static readonly IntPtr selScrollRectToVisible_Handle = Selector.GetHandle("scrollRectToVisible:"); private static readonly IntPtr selAutoscroll_Handle = Selector.GetHandle("autoscroll:"); private static readonly IntPtr selAdjustScroll_Handle = Selector.GetHandle("adjustScroll:"); private static readonly IntPtr selScrollRectBy_Handle = Selector.GetHandle("scrollRect:by:"); private static readonly IntPtr selTranslateRectsNeedingDisplayInRectBy_Handle = Selector.GetHandle("translateRectsNeedingDisplayInRect:by:"); private static readonly IntPtr selHitTest_Handle = Selector.GetHandle("hitTest:"); private static readonly IntPtr selMouseInRect_Handle = Selector.GetHandle("mouse:inRect:"); private static readonly IntPtr selViewWithTag_Handle = Selector.GetHandle("viewWithTag:"); private static readonly IntPtr selPerformKeyEquivalent_Handle = Selector.GetHandle("performKeyEquivalent:"); private static readonly IntPtr selAcceptsFirstMouse_Handle = Selector.GetHandle("acceptsFirstMouse:"); private static readonly IntPtr selShouldDelayWindowOrderingForEvent_Handle = Selector.GetHandle("shouldDelayWindowOrderingForEvent:"); private static readonly IntPtr selAddCursorRectCursor_Handle = Selector.GetHandle("addCursorRect:cursor:"); private static readonly IntPtr selRemoveCursorRectCursor_Handle = Selector.GetHandle("removeCursorRect:cursor:"); private static readonly IntPtr selDiscardCursorRectsHandle = Selector.GetHandle("discardCursorRects"); private static readonly IntPtr selResetCursorRectsHandle = Selector.GetHandle("resetCursorRects"); private static readonly IntPtr selAddTrackingRectOwnerUserDataAssumeInside_Handle = Selector.GetHandle("addTrackingRect:owner:userData:assumeInside:"); private static readonly IntPtr selRemoveTrackingRect_Handle = Selector.GetHandle("removeTrackingRect:"); private static readonly IntPtr selMakeBackingLayerHandle = Selector.GetHandle("makeBackingLayer"); private static readonly IntPtr selAddTrackingArea_Handle = Selector.GetHandle("addTrackingArea:"); private static readonly IntPtr selRemoveTrackingArea_Handle = Selector.GetHandle("removeTrackingArea:"); private static readonly IntPtr selTrackingAreasHandle = Selector.GetHandle("trackingAreas"); private static readonly IntPtr selUpdateTrackingAreasHandle = Selector.GetHandle("updateTrackingAreas"); private static readonly IntPtr selMenuForEvent_Handle = Selector.GetHandle("menuForEvent:"); private static readonly IntPtr selDefaultMenuHandle = Selector.GetHandle("defaultMenu"); private static readonly IntPtr selAddToolTipRectOwnerUserData_Handle = Selector.GetHandle("addToolTipRect:owner:userData:"); private static readonly IntPtr selRemoveToolTip_Handle = Selector.GetHandle("removeToolTip:"); private static readonly IntPtr selRemoveAllToolTipsHandle = Selector.GetHandle("removeAllToolTips"); private static readonly IntPtr selViewWillStartLiveResizeHandle = Selector.GetHandle("viewWillStartLiveResize"); private static readonly IntPtr selViewDidEndLiveResizeHandle = Selector.GetHandle("viewDidEndLiveResize"); private static readonly IntPtr selRegisterForDraggedTypes_Handle = Selector.GetHandle("registerForDraggedTypes:"); private static readonly IntPtr selUnregisterDraggedTypesHandle = Selector.GetHandle("unregisterDraggedTypes"); private static readonly IntPtr selRegisteredDraggedTypesHandle = Selector.GetHandle("registeredDraggedTypes"); private static readonly IntPtr selBeginDraggingSessionWithItemsEventSource_Handle = Selector.GetHandle("beginDraggingSessionWithItems:event:source:"); private static readonly IntPtr selDragImageAtOffsetEventPasteboardSourceSlideBack_Handle = Selector.GetHandle("dragImage:at:offset:event:pasteboard:source:slideBack:"); private static readonly IntPtr selDragFileFromRectSlideBackEvent_Handle = Selector.GetHandle("dragFile:fromRect:slideBack:event:"); private static readonly IntPtr selDragPromisedFilesOfTypesFromRectSourceSlideBackEvent_Handle = Selector.GetHandle("dragPromisedFilesOfTypes:fromRect:source:slideBack:event:"); private static readonly IntPtr selExitFullScreenModeWithOptions_Handle = Selector.GetHandle("exitFullScreenModeWithOptions:"); private static readonly IntPtr selEnterFullScreenModeWithOptions_Handle = Selector.GetHandle("enterFullScreenMode:withOptions:"); private static readonly IntPtr selAddConstraint_Handle = Selector.GetHandle("addConstraint:"); private static readonly IntPtr selAddConstraints_Handle = Selector.GetHandle("addConstraints:"); private static readonly IntPtr selRemoveConstraint_Handle = Selector.GetHandle("removeConstraint:"); private static readonly IntPtr selRemoveConstraints_Handle = Selector.GetHandle("removeConstraints:"); private static readonly IntPtr selLayoutSubtreeIfNeededHandle = Selector.GetHandle("layoutSubtreeIfNeeded"); private static readonly IntPtr selLayoutHandle = Selector.GetHandle("layout"); private static readonly IntPtr selUpdateConstraintsHandle = Selector.GetHandle("updateConstraints"); private static readonly IntPtr selUpdateConstraintsForSubtreeIfNeededHandle = Selector.GetHandle("updateConstraintsForSubtreeIfNeeded"); private static readonly IntPtr selRequiresConstraintBasedLayoutHandle = Selector.GetHandle("requiresConstraintBasedLayout"); private static readonly IntPtr selAlignmentRectForFrame_Handle = Selector.GetHandle("alignmentRectForFrame:"); private static readonly IntPtr selFrameForAlignmentRect_Handle = Selector.GetHandle("frameForAlignmentRect:"); private static readonly IntPtr selInvalidateIntrinsicContentSizeHandle = Selector.GetHandle("invalidateIntrinsicContentSize"); private static readonly IntPtr selContentHuggingPriorityForOrientation_Handle = Selector.GetHandle("contentHuggingPriorityForOrientation:"); private static readonly IntPtr selSetContentHuggingPriorityForOrientation_Handle = Selector.GetHandle("setContentHuggingPriority:forOrientation:"); private static readonly IntPtr selContentCompressionResistancePriorityForOrientation_Handle = Selector.GetHandle("contentCompressionResistancePriorityForOrientation:"); private static readonly IntPtr selSetContentCompressionResistancePriorityForOrientation_Handle = Selector.GetHandle("setContentCompressionResistancePriority:forOrientation:"); private static readonly IntPtr selConstraintsAffectingLayoutForOrientation_Handle = Selector.GetHandle("constraintsAffectingLayoutForOrientation:"); private static readonly IntPtr selExerciseAmbiguityInLayoutHandle = Selector.GetHandle("exerciseAmbiguityInLayout"); private static readonly IntPtr selPerformMnemonic_Handle = Selector.GetHandle("performMnemonic:"); private static readonly IntPtr selSetKeyboardFocusRingNeedsDisplayInRect_Handle = Selector.GetHandle("setKeyboardFocusRingNeedsDisplayInRect:"); private static readonly IntPtr selDrawFocusRingMaskHandle = Selector.GetHandle("drawFocusRingMask"); private static readonly IntPtr selNoteFocusRingMaskChangedHandle = Selector.GetHandle("noteFocusRingMaskChanged"); private static readonly IntPtr selDataWithEPSInsideRect_Handle = Selector.GetHandle("dataWithEPSInsideRect:"); private static readonly IntPtr selDataWithPDFInsideRect_Handle = Selector.GetHandle("dataWithPDFInsideRect:"); private static readonly IntPtr selPrint_Handle = Selector.GetHandle("print:"); private static readonly IntPtr selWriteEPSInsideRectToPasteboard_Handle = Selector.GetHandle("writeEPSInsideRect:toPasteboard:"); private static readonly IntPtr selWritePDFInsideRectToPasteboard_Handle = Selector.GetHandle("writePDFInsideRect:toPasteboard:"); private static readonly IntPtr selDrawPageBorderWithSize_Handle = Selector.GetHandle("drawPageBorderWithSize:"); private static readonly IntPtr selDrawSheetBorderWithSize_Handle = Selector.GetHandle("drawSheetBorderWithSize:"); private static readonly IntPtr selAdjustPageWidthNewLeftRightLimit_Handle = Selector.GetHandle("adjustPageWidthNew:left:right:limit:"); private static readonly IntPtr selAdjustPageHeightNewTopBottomLimit_Handle = Selector.GetHandle("adjustPageHeightNew:top:bottom:limit:"); private static readonly IntPtr selKnowsPageRange_Handle = Selector.GetHandle("knowsPageRange:"); private static readonly IntPtr selRectForPage_Handle = Selector.GetHandle("rectForPage:"); private static readonly IntPtr selLocationOfPrintRect_Handle = Selector.GetHandle("locationOfPrintRect:"); private static readonly IntPtr selBackingAlignedRectOptions_Handle = Selector.GetHandle("backingAlignedRect:options:"); private static readonly IntPtr selConvertRectFromBacking_Handle = Selector.GetHandle("convertRectFromBacking:"); private static readonly IntPtr selConvertRectToBacking_Handle = Selector.GetHandle("convertRectToBacking:"); private static readonly IntPtr selConvertRectFromLayer_Handle = Selector.GetHandle("convertRectFromLayer:"); private static readonly IntPtr selConvertRectToLayer_Handle = Selector.GetHandle("convertRectToLayer:"); private static readonly IntPtr selConvertPointFromBacking_Handle = Selector.GetHandle("convertPointFromBacking:"); private static readonly IntPtr selConvertPointToBacking_Handle = Selector.GetHandle("convertPointToBacking:"); private static readonly IntPtr selConvertPointFromLayer_Handle = Selector.GetHandle("convertPointFromLayer:"); private static readonly IntPtr selConvertPointToLayer_Handle = Selector.GetHandle("convertPointToLayer:"); private static readonly IntPtr selConvertSizeFromBacking_Handle = Selector.GetHandle("convertSizeFromBacking:"); private static readonly IntPtr selConvertSizeToBacking_Handle = Selector.GetHandle("convertSizeToBacking:"); private static readonly IntPtr selConvertSizeFromLayer_Handle = Selector.GetHandle("convertSizeFromLayer:"); private static readonly IntPtr selConvertSizeToLayer_Handle = Selector.GetHandle("convertSizeToLayer:"); private static readonly IntPtr selDraggingEntered_Handle = Selector.GetHandle("draggingEntered:"); private static readonly IntPtr selDraggingUpdated_Handle = Selector.GetHandle("draggingUpdated:"); private static readonly IntPtr selDraggingExited_Handle = Selector.GetHandle("draggingExited:"); private static readonly IntPtr selPrepareForDragOperation_Handle = Selector.GetHandle("prepareForDragOperation:"); private static readonly IntPtr selPerformDragOperation_Handle = Selector.GetHandle("performDragOperation:"); private static readonly IntPtr selConcludeDragOperation_Handle = Selector.GetHandle("concludeDragOperation:"); private static readonly IntPtr selDraggingEnded_Handle = Selector.GetHandle("draggingEnded:"); private static readonly IntPtr selAnimationForKey_Handle = Selector.GetHandle("animationForKey:"); private static readonly IntPtr selDefaultAnimationForKey_Handle = Selector.GetHandle("defaultAnimationForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSView"); private object __mt_Window_var; private object __mt_Superview_var; private object __mt_OpaqueAncestor_var; private object __mt_EnclosingScrollView_var; private object __mt_InputContext_var; private object __mt_Subviews_var; private object __mt_Layer_var; private object __mt_BackgroundFilters_var; private object __mt_CompositingFilter_var; private object __mt_ContentFilters_var; private object __mt_Shadow_var; private object __mt_Constraints_var; private object __mt_NextKeyView_var; private object __mt_PreviousKeyView_var; private object __mt_NextValidKeyView_var; private object __mt_PreviousValidKeyView_var; private object __mt_PageHeader_var; private object __mt_PageFooter_var; private object __mt_Animator_var; private object __mt_Animations_var; private static NSString _NSFullScreenModeApplicationPresentationOptions; private static NSString _NSFullScreenModeAllScreens; private static NSString _NSFullScreenModeSetting; private static NSString _NSFullScreenModeWindowLevel; private static NSString _FrameChangedNotification; private static NSString _FocusChangedNotification; private static NSString _BoundsChangedNotification; private static NSString _GlobalFrameChangedNotification; private static NSString _UpdatedTrackingAreasNotification; public override IntPtr ClassHandle => class_ptr; public virtual NSWindow Window { [Export("window")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_Window_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowHandle))))); } } public virtual NSView Superview { [Export("superview")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_Superview_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuperviewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSuperviewHandle))))); } } public virtual NSView OpaqueAncestor { [Export("opaqueAncestor")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_OpaqueAncestor_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOpaqueAncestorHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOpaqueAncestorHandle))))); } } public virtual bool IsHiddenOrHasHiddenAncestor { [Export("isHiddenOrHasHiddenAncestor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenOrHasHiddenAncestorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenOrHasHiddenAncestorHandle); } } public virtual bool WantsDefaultClipping { [Export("wantsDefaultClipping")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsDefaultClippingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsDefaultClippingHandle); } } public virtual bool IsFlipped { [Export("isFlipped")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFlippedHandle); } } public virtual bool IsRotatedFromBase { [Export("isRotatedFromBase")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRotatedFromBaseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRotatedFromBaseHandle); } } public virtual bool IsRotatedOrScaledFromBase { [Export("isRotatedOrScaledFromBase")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRotatedOrScaledFromBaseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRotatedOrScaledFromBaseHandle); } } public virtual bool IsOpaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } } public virtual long Tag { [Export("tag")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selTagHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selTagHandle); } } public virtual bool NeedsPanelToBecomeKey { [Export("needsPanelToBecomeKey")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsPanelToBecomeKeyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsPanelToBecomeKeyHandle); } } public virtual bool MouseDownCanMoveWindow { [Export("mouseDownCanMoveWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMouseDownCanMoveWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMouseDownCanMoveWindowHandle); } } public virtual bool ShouldDrawColor { [Export("shouldDrawColor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldDrawColorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldDrawColorHandle); } } public virtual NSScrollView EnclosingScrollView { [Export("enclosingScrollView")] get { NSApplication.EnsureUIThread(); return (NSScrollView)(__mt_EnclosingScrollView_var = ((!IsDirectBinding) ? ((NSScrollView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEnclosingScrollViewHandle))) : ((NSScrollView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEnclosingScrollViewHandle))))); } } public virtual bool InLiveResize { [Export("inLiveResize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selInLiveResizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selInLiveResizeHandle); } } public virtual bool PreservesContentDuringLiveResize { [Export("preservesContentDuringLiveResize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesContentDuringLiveResizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesContentDuringLiveResizeHandle); } } public virtual CGRect RectPreservedDuringLiveResize { [Export("rectPreservedDuringLiveResize")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selRectPreservedDuringLiveResizeHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRectPreservedDuringLiveResizeHandle); } return retval; } } public virtual NSTextInputContext InputContext { [Export("inputContext")] get { NSApplication.EnsureUIThread(); return (NSTextInputContext)(__mt_InputContext_var = ((!IsDirectBinding) ? ((NSTextInputContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputContextHandle))) : ((NSTextInputContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInputContextHandle))))); } } public virtual bool Hidden { [Export("isHidden")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenHandle); } [Export("setHidden:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidden_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidden_Handle, value); } } } public virtual NSView[] Subviews { [Export("subviews")] get { NSApplication.EnsureUIThread(); return (NSView[])(__mt_Subviews_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubviewsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubviewsHandle)))); } [Export("setSubviews:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubviews_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubviews_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Subviews_var = value; } } public virtual bool PostsFrameChangedNotifications { [Export("postsFrameChangedNotifications")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPostsFrameChangedNotificationsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPostsFrameChangedNotificationsHandle); } [Export("setPostsFrameChangedNotifications:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPostsFrameChangedNotifications_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPostsFrameChangedNotifications_Handle, value); } } } public virtual bool AutoresizesSubviews { [Export("autoresizesSubviews")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoresizesSubviewsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoresizesSubviewsHandle); } [Export("setAutoresizesSubviews:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoresizesSubviews_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoresizesSubviews_Handle, value); } } } public virtual NSViewResizingMask AutoresizingMask { [Export("autoresizingMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSViewResizingMask)Messaging.UInt64_objc_msgSend(base.Handle, selAutoresizingMaskHandle); } return (NSViewResizingMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAutoresizingMaskHandle); } [Export("setAutoresizingMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAutoresizingMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAutoresizingMask_Handle, (ulong)value); } } } public virtual CGRect Frame { [Export("frame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } [Export("setFrame:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetFrame_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetFrame_Handle, value); } } } public virtual double FrameRotation { [Export("frameRotation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFrameRotationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFrameRotationHandle); } [Export("setFrameRotation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetFrameRotation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetFrameRotation_Handle, value); } } } public virtual double FrameCenterRotation { [Export("frameCenterRotation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selFrameCenterRotationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selFrameCenterRotationHandle); } [Export("setFrameCenterRotation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetFrameCenterRotation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetFrameCenterRotation_Handle, value); } } } public virtual double BoundsRotation { [Export("boundsRotation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBoundsRotationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBoundsRotationHandle); } [Export("setBoundsRotation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBoundsRotation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBoundsRotation_Handle, value); } } } public virtual CGRect Bounds { [Export("bounds")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundsHandle); } return retval; } [Export("setBounds:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetBounds_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetBounds_Handle, value); } } } public virtual bool CanDrawConcurrently { [Export("canDrawConcurrently")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanDrawConcurrentlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanDrawConcurrentlyHandle); } [Export("setCanDrawConcurrently:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanDrawConcurrently_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanDrawConcurrently_Handle, value); } } } public virtual bool NeedsDisplay { [Export("needsDisplay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsDisplayHandle); } [Export("setNeedsDisplay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsDisplay_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsDisplay_Handle, value); } } } public virtual bool AcceptsTouchEvents { [Export("acceptsTouchEvents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsTouchEventsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsTouchEventsHandle); } [Export("setAcceptsTouchEvents:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAcceptsTouchEvents_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAcceptsTouchEvents_Handle, value); } } } public virtual bool WantsRestingTouches { [Export("wantsRestingTouches")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsRestingTouchesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsRestingTouchesHandle); } [Export("setWantsRestingTouches:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWantsRestingTouches_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWantsRestingTouches_Handle, value); } } } public virtual NSViewLayerContentsRedrawPolicy LayerContentsRedrawPolicy { [Export("layerContentsRedrawPolicy")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSViewLayerContentsRedrawPolicy)Messaging.Int64_objc_msgSend(base.Handle, selLayerContentsRedrawPolicyHandle); } return (NSViewLayerContentsRedrawPolicy)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLayerContentsRedrawPolicyHandle); } [Export("setLayerContentsRedrawPolicy:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetLayerContentsRedrawPolicy_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetLayerContentsRedrawPolicy_Handle, (long)value); } } } public virtual NSViewLayerContentsPlacement LayerContentsPlacement { [Export("layerContentsPlacement")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSViewLayerContentsPlacement)Messaging.Int64_objc_msgSend(base.Handle, selLayerContentsPlacementHandle); } return (NSViewLayerContentsPlacement)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLayerContentsPlacementHandle); } [Export("setLayerContentsPlacement:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetLayerContentsPlacement_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetLayerContentsPlacement_Handle, (long)value); } } } public virtual bool WantsLayer { [Export("wantsLayer")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsLayerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsLayerHandle); } [Export("setWantsLayer:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWantsLayer_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWantsLayer_Handle, value); } } } public virtual CALayer Layer { [Export("layer")] get { NSApplication.EnsureUIThread(); return (CALayer)(__mt_Layer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLayerHandle))))); } [Export("setLayer:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLayer_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLayer_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Layer_var = value; } } public virtual double AlphaValue { [Export("alphaValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAlphaValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAlphaValueHandle); } [Export("setAlphaValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAlphaValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAlphaValue_Handle, value); } } } public virtual CIFilter[] BackgroundFilters { [Export("backgroundFilters")] get { NSApplication.EnsureUIThread(); return (CIFilter[])(__mt_BackgroundFilters_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundFiltersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundFiltersHandle)))); } [Export("setBackgroundFilters:")] set { NSApplication.EnsureUIThread(); NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundFilters_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundFilters_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_BackgroundFilters_var = value; } } public virtual CIFilter CompositingFilter { [Export("compositingFilter")] get { NSApplication.EnsureUIThread(); return (CIFilter)(__mt_CompositingFilter_var = ((!IsDirectBinding) ? ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompositingFilterHandle))) : ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCompositingFilterHandle))))); } [Export("setCompositingFilter:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCompositingFilter_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCompositingFilter_Handle, value?.Handle ?? IntPtr.Zero); } __mt_CompositingFilter_var = value; } } public virtual CIFilter[] ContentFilters { [Export("contentFilters")] get { NSApplication.EnsureUIThread(); return (CIFilter[])(__mt_ContentFilters_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentFiltersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selContentFiltersHandle)))); } [Export("setContentFilters:")] set { NSApplication.EnsureUIThread(); NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentFilters_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentFilters_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_ContentFilters_var = value; } } public virtual NSShadow Shadow { [Export("shadow")] get { NSApplication.EnsureUIThread(); return (NSShadow)(__mt_Shadow_var = ((!IsDirectBinding) ? ((NSShadow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShadowHandle))) : ((NSShadow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selShadowHandle))))); } [Export("setShadow:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShadow_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShadow_Handle, value.Handle); } __mt_Shadow_var = value; } } public virtual bool PostsBoundsChangedNotifications { [Export("postsBoundsChangedNotifications")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPostsBoundsChangedNotificationsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPostsBoundsChangedNotificationsHandle); } [Export("setPostsBoundsChangedNotifications:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPostsBoundsChangedNotifications_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPostsBoundsChangedNotifications_Handle, value); } } } public virtual string ToolTip { [Export("toolTip")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolTipHandle)); } [Export("setToolTip:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToolTip_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToolTip_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool IsInFullscreenMode { [Export("isInFullScreenMode")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsInFullScreenModeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsInFullScreenModeHandle); } } public virtual NSLayoutConstraint[] Constraints { [Export("constraints")] get { NSApplication.EnsureUIThread(); return (NSLayoutConstraint[])(__mt_Constraints_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConstraintsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConstraintsHandle)))); } } public virtual bool NeedsUpdateConstraints { [Export("needsUpdateConstraints")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsUpdateConstraintsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsUpdateConstraintsHandle); } [Export("setNeedsUpdateConstraints:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsUpdateConstraints_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsUpdateConstraints_Handle, value); } } } public virtual bool NeedsLayout { [Export("needsLayout")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsLayoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsLayoutHandle); } [Export("setNeedsLayout:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsLayout_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsLayout_Handle, value); } } } public virtual bool TranslatesAutoresizingMaskIntoConstraints { [Export("translatesAutoresizingMaskIntoConstraints")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTranslatesAutoresizingMaskIntoConstraintsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTranslatesAutoresizingMaskIntoConstraintsHandle); } [Export("setTranslatesAutoresizingMaskIntoConstraints:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTranslatesAutoresizingMaskIntoConstraints_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTranslatesAutoresizingMaskIntoConstraints_Handle, value); } } } public virtual NSEdgeInsets AlignmentRectInsets { [Export("alignmentRectInsets")] get { NSApplication.EnsureUIThread(); NSEdgeInsets retval; if (IsDirectBinding) { Messaging.NSEdgeInsets_objc_msgSend_stret(out retval, base.Handle, selAlignmentRectInsetsHandle); } else { Messaging.NSEdgeInsets_objc_msgSendSuper_stret(out retval, base.SuperHandle, selAlignmentRectInsetsHandle); } return retval; } } public virtual double BaselineOffsetFromBottom { [Export("baselineOffsetFromBottom")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBaselineOffsetFromBottomHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBaselineOffsetFromBottomHandle); } } public virtual CGSize IntrinsicContentSize { [Export("intrinsicContentSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntrinsicContentSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntrinsicContentSizeHandle); } } public virtual CGSize FittingSize { [Export("fittingSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selFittingSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selFittingSizeHandle); } } public virtual bool HasAmbiguousLayout { [Export("hasAmbiguousLayout")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasAmbiguousLayoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasAmbiguousLayoutHandle); } } public virtual NSView NextKeyView { [Export("nextKeyView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_NextKeyView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextKeyViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextKeyViewHandle))))); } [Export("setNextKeyView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNextKeyView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNextKeyView_Handle, value.Handle); } __mt_NextKeyView_var = value; } } public virtual NSView PreviousKeyView { [Export("previousKeyView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_PreviousKeyView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreviousKeyViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPreviousKeyViewHandle))))); } } public virtual NSView NextValidKeyView { [Export("nextValidKeyView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_NextValidKeyView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextValidKeyViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextValidKeyViewHandle))))); } } public virtual NSView PreviousValidKeyView { [Export("previousValidKeyView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_PreviousValidKeyView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreviousValidKeyViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPreviousValidKeyViewHandle))))); } } public virtual bool CanBecomeKeyView { [Export("canBecomeKeyView")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanBecomeKeyViewHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanBecomeKeyViewHandle); } } public virtual NSFocusRingType FocusRingType { [Export("focusRingType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSFocusRingType)Messaging.UInt64_objc_msgSend(base.Handle, selFocusRingTypeHandle); } return (NSFocusRingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFocusRingTypeHandle); } [Export("setFocusRingType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFocusRingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFocusRingType_Handle, (ulong)value); } } } public static NSFocusRingType DefaultFocusRingType { [Export("defaultFocusRingType")] get { NSApplication.EnsureUIThread(); return (NSFocusRingType)Messaging.UInt64_objc_msgSend(class_ptr, selDefaultFocusRingTypeHandle); } } public virtual CGRect FocusRingMaskBounds { [Export("focusRingMaskBounds")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFocusRingMaskBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFocusRingMaskBoundsHandle); } return retval; } } public virtual bool IsDrawingFindIndicator { [Export("isDrawingFindIndicator")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDrawingFindIndicatorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDrawingFindIndicatorHandle); } } public virtual string PrintJobTitle { [Export("printJobTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPrintJobTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrintJobTitleHandle)); } } public virtual NSAttributedString PageHeader { [Export("pageHeader")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_PageHeader_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageHeaderHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPageHeaderHandle))))); } } public virtual NSAttributedString PageFooter { [Export("pageFooter")] get { NSApplication.EnsureUIThread(); return (NSAttributedString)(__mt_PageFooter_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageFooterHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPageFooterHandle))))); } } public virtual double HeightAdjustLimit { [Export("heightAdjustLimit")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHeightAdjustLimitHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHeightAdjustLimitHandle); } } public virtual double WidthAdjustLimit { [Export("widthAdjustLimit")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWidthAdjustLimitHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWidthAdjustLimitHandle); } } public virtual bool WantsBestResolutionOpenGLSurface { [Export("wantsBestResolutionOpenGLSurface")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsBestResolutionOpenGLSurfaceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsBestResolutionOpenGLSurfaceHandle); } [Export("setWantsBestResolutionOpenGLSurface:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWantsBestResolutionOpenGLSurface_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWantsBestResolutionOpenGLSurface_Handle, value); } } } public virtual bool WantsPeriodicDraggingUpdates { [Export("wantsPeriodicDraggingUpdates")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWantsPeriodicDraggingUpdatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWantsPeriodicDraggingUpdatesHandle); } } public virtual NSObject Animator { [Export("animator")] get { NSApplication.EnsureUIThread(); NSObject nSObject = (NSObject)(__mt_Animator_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimatorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimatorHandle)))); nSObject.SetAsProxy(); return nSObject; } } public virtual NSDictionary Animations { [Export("animations")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_Animations_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationsHandle))))); } [Export("setAnimations:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimations_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimations_Handle, value.Handle); } __mt_Animations_var = value; } } public virtual string Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } [Export("setIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("NSFullScreenModeApplicationPresentationOptions", "AppKit")] public static NSString NSFullScreenModeApplicationPresentationOptions { get { if (_NSFullScreenModeApplicationPresentationOptions == null) { _NSFullScreenModeApplicationPresentationOptions = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFullScreenModeApplicationPresentationOptions"); } return _NSFullScreenModeApplicationPresentationOptions; } } [Field("NSFullScreenModeAllScreens", "AppKit")] public static NSString NSFullScreenModeAllScreens { get { if (_NSFullScreenModeAllScreens == null) { _NSFullScreenModeAllScreens = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFullScreenModeAllScreens"); } return _NSFullScreenModeAllScreens; } } [Field("NSFullScreenModeSetting", "AppKit")] public static NSString NSFullScreenModeSetting { get { if (_NSFullScreenModeSetting == null) { _NSFullScreenModeSetting = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFullScreenModeSetting"); } return _NSFullScreenModeSetting; } } [Field("NSFullScreenModeWindowLevel", "AppKit")] public static NSString NSFullScreenModeWindowLevel { get { if (_NSFullScreenModeWindowLevel == null) { _NSFullScreenModeWindowLevel = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFullScreenModeWindowLevel"); } return _NSFullScreenModeWindowLevel; } } [Field("NSViewFrameDidChangeNotification", "AppKit")] public static NSString FrameChangedNotification { get { if (_FrameChangedNotification == null) { _FrameChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewFrameDidChangeNotification"); } return _FrameChangedNotification; } } [Field("NSViewFocusDidChangeNotification", "AppKit")] public static NSString FocusChangedNotification { get { if (_FocusChangedNotification == null) { _FocusChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewFocusDidChangeNotification"); } return _FocusChangedNotification; } } [Field("NSViewBoundsDidChangeNotification", "AppKit")] public static NSString BoundsChangedNotification { get { if (_BoundsChangedNotification == null) { _BoundsChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewBoundsDidChangeNotification"); } return _BoundsChangedNotification; } } [Field("NSViewGlobalFrameDidChangeNotification", "AppKit")] public static NSString GlobalFrameChangedNotification { get { if (_GlobalFrameChangedNotification == null) { _GlobalFrameChangedNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewGlobalFrameDidChangeNotification"); } return _GlobalFrameChangedNotification; } } [Field("NSViewDidUpdateTrackingAreasNotification", "AppKit")] public static NSString UpdatedTrackingAreasNotification { get { if (_UpdatedTrackingAreasNotification == null) { _UpdatedTrackingAreasNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewDidUpdateTrackingAreasNotification"); } return _UpdatedTrackingAreasNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public NSView(CGRect frameRect) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frameRect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frameRect); } } [Export("isDescendantOf:")] public virtual bool IsDescendantOf(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsDescendantOf_Handle, aView.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsDescendantOf_Handle, aView.Handle); } [Export("ancestorSharedWithView:")] public virtual NSView AncestorSharedWithView(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAncestorSharedWithView_Handle, aView.Handle)); } return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAncestorSharedWithView_Handle, aView.Handle)); } [Export("needsToDrawRect:")] public virtual bool NeedsToDraw(CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGRect(base.Handle, selNeedsToDrawRect_Handle, aRect); } return Messaging.bool_objc_msgSendSuper_CGRect(base.SuperHandle, selNeedsToDrawRect_Handle, aRect); } [Export("viewDidHide")] public virtual void ViewDidHide() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewDidHideHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewDidHideHandle); } } [Export("viewDidUnhide")] public virtual void ViewDidUnhide() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewDidUnhideHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewDidUnhideHandle); } } [Export("addSubview:")] public virtual void AddSubview(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSubview_Handle, aView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSubview_Handle, aView.Handle); } _ = Subviews; } [Export("addSubview:positioned:relativeTo:")] public virtual void AddSubview(NSView aView, NSWindowOrderingMode place, NSView otherView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64_IntPtr(base.Handle, selAddSubviewPositionedRelativeTo_Handle, aView.Handle, (long)place, otherView?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64_IntPtr(base.SuperHandle, selAddSubviewPositionedRelativeTo_Handle, aView.Handle, (long)place, otherView?.Handle ?? IntPtr.Zero); } _ = Subviews; } [Export("viewWillMoveToWindow:")] public virtual void ViewWillMoveToWindow(NSWindow newWindow) { NSApplication.EnsureUIThread(); if (newWindow == null) { throw new ArgumentNullException("newWindow"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selViewWillMoveToWindow_Handle, newWindow.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selViewWillMoveToWindow_Handle, newWindow.Handle); } } [Export("viewDidMoveToWindow")] public virtual void ViewDidMoveToWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewDidMoveToWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewDidMoveToWindowHandle); } } [Export("viewWillMoveToSuperview:")] public virtual void ViewWillMoveToSuperview(NSView newSuperview) { NSApplication.EnsureUIThread(); if (newSuperview == null) { throw new ArgumentNullException("newSuperview"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selViewWillMoveToSuperview_Handle, newSuperview.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selViewWillMoveToSuperview_Handle, newSuperview.Handle); } } [Export("viewDidMoveToSuperview")] public virtual void ViewDidMoveToSuperview() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewDidMoveToSuperviewHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewDidMoveToSuperviewHandle); } } [Export("didAddSubview:")] public virtual void DidAddSubview(NSView subview) { NSApplication.EnsureUIThread(); if (subview == null) { throw new ArgumentNullException("subview"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDidAddSubview_Handle, subview.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDidAddSubview_Handle, subview.Handle); } } [Export("willRemoveSubview:")] public virtual void WillRemoveSubview(NSView subview) { NSApplication.EnsureUIThread(); if (subview == null) { throw new ArgumentNullException("subview"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillRemoveSubview_Handle, subview.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillRemoveSubview_Handle, subview.Handle); } } [Export("removeFromSuperview")] public virtual void RemoveFromSuperview() { NSApplication.EnsureUIThread(); NSView superview = Superview; if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveFromSuperviewHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveFromSuperviewHandle); } __mt_Superview_var = null; _ = superview?.Subviews; } [Export("replaceSubview:with:")] public virtual void ReplaceSubviewWith(NSView oldView, NSView newView) { NSApplication.EnsureUIThread(); if (oldView == null) { throw new ArgumentNullException("oldView"); } if (newView == null) { throw new ArgumentNullException("newView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selReplaceSubviewWith_Handle, oldView.Handle, newView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReplaceSubviewWith_Handle, oldView.Handle, newView.Handle); } _ = Subviews; } [Export("removeFromSuperviewWithoutNeedingDisplay")] public virtual void RemoveFromSuperviewWithoutNeedingDisplay() { NSApplication.EnsureUIThread(); NSView superview = Superview; if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveFromSuperviewWithoutNeedingDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveFromSuperviewWithoutNeedingDisplayHandle); } __mt_Superview_var = null; _ = superview?.Subviews; } [Export("resizeSubviewsWithOldSize:")] public virtual void ResizeSubviewsWithOldSize(CGSize oldSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selResizeSubviewsWithOldSize_Handle, oldSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selResizeSubviewsWithOldSize_Handle, oldSize); } } [Export("resizeWithOldSuperviewSize:")] public virtual void ResizeWithOldSuperviewSize(CGSize oldSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selResizeWithOldSuperviewSize_Handle, oldSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selResizeWithOldSuperviewSize_Handle, oldSize); } } [Export("setFrameOrigin:")] public virtual void SetFrameOrigin(CGPoint newOrigin) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetFrameOrigin_Handle, newOrigin); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetFrameOrigin_Handle, newOrigin); } } [Export("setFrameSize:")] public virtual void SetFrameSize(CGSize newSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetFrameSize_Handle, newSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetFrameSize_Handle, newSize); } } [Export("setBoundsOrigin:")] public virtual void SetBoundsOrigin(CGPoint newOrigin) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetBoundsOrigin_Handle, newOrigin); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetBoundsOrigin_Handle, newOrigin); } } [Export("setBoundsSize:")] public virtual void SetBoundsSize(CGSize newSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetBoundsSize_Handle, newSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetBoundsSize_Handle, newSize); } } [Export("translateOriginToPoint:")] public virtual void TranslateOriginToPoint(CGPoint translation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selTranslateOriginToPoint_Handle, translation); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selTranslateOriginToPoint_Handle, translation); } } [Export("scaleUnitSquareToSize:")] public virtual void ScaleUnitSquareToSize(CGSize newUnitSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selScaleUnitSquareToSize_Handle, newUnitSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selScaleUnitSquareToSize_Handle, newUnitSize); } } [Export("rotateByAngle:")] public virtual void RotateByAngle(double angle) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selRotateByAngle_Handle, angle); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selRotateByAngle_Handle, angle); } } [Export("convertPoint:fromView:")] public virtual CGPoint ConvertPointFromView(CGPoint aPoint, NSView aView) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointFromView_Handle, aPoint, aView?.Handle ?? IntPtr.Zero); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointFromView_Handle, aPoint, aView?.Handle ?? IntPtr.Zero); } [Export("convertPoint:toView:")] public virtual CGPoint ConvertPointToView(CGPoint aPoint, NSView aView) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointToView_Handle, aPoint, aView?.Handle ?? IntPtr.Zero); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointToView_Handle, aPoint, aView?.Handle ?? IntPtr.Zero); } [Export("convertSize:fromView:")] public virtual CGSize ConvertSizeFromView(CGSize aSize, NSView aView) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize_IntPtr(base.Handle, selConvertSizeFromView_Handle, aSize, aView?.Handle ?? IntPtr.Zero); } return Messaging.CGSize_objc_msgSendSuper_CGSize_IntPtr(base.SuperHandle, selConvertSizeFromView_Handle, aSize, aView?.Handle ?? IntPtr.Zero); } [Export("convertSize:toView:")] public virtual CGSize ConvertSizeToView(CGSize aSize, NSView aView) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize_IntPtr(base.Handle, selConvertSizeToView_Handle, aSize, aView?.Handle ?? IntPtr.Zero); } return Messaging.CGSize_objc_msgSendSuper_CGSize_IntPtr(base.SuperHandle, selConvertSizeToView_Handle, aSize, aView?.Handle ?? IntPtr.Zero); } [Export("convertRect:fromView:")] public virtual CGRect ConvertRectFromView(CGRect aRect, NSView aView) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectFromView_Handle, aRect, aView?.Handle ?? IntPtr.Zero); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectFromView_Handle, aRect, aView?.Handle ?? IntPtr.Zero); } return retval; } [Export("convertRect:toView:")] public virtual CGRect ConvertRectToView(CGRect aRect, NSView aView) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectToView_Handle, aRect, aView?.Handle ?? IntPtr.Zero); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectToView_Handle, aRect, aView?.Handle ?? IntPtr.Zero); } return retval; } [Export("centerScanRect:")] public virtual CGRect CenterScanRect(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selCenterScanRect_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selCenterScanRect_Handle, aRect); } return retval; } [Export("convertPointToBase:")] public virtual CGPoint ConvertPointToBase(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointToBase_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointToBase_Handle, aPoint); } [Export("convertPointFromBase:")] public virtual CGPoint ConvertPointFromBase(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointFromBase_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointFromBase_Handle, aPoint); } [Export("convertSizeToBase:")] public virtual CGSize ConvertSizeToBase(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeToBase_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeToBase_Handle, aSize); } [Export("convertSizeFromBase:")] public virtual CGSize ConvertSizeFromBase(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeFromBase_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeFromBase_Handle, aSize); } [Export("convertRectToBase:")] public virtual CGRect ConvertRectToBase(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToBase_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToBase_Handle, aRect); } return retval; } [Export("convertRectFromBase:")] public virtual CGRect ConvertRectFromBase(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromBase_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromBase_Handle, aRect); } return retval; } [Export("canDraw")] public virtual bool CanDraw() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanDrawHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanDrawHandle); } [Export("setNeedsDisplayInRect:")] public virtual void SetNeedsDisplayInRect(CGRect invalidRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetNeedsDisplayInRect_Handle, invalidRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetNeedsDisplayInRect_Handle, invalidRect); } } [Export("lockFocus")] public virtual void LockFocus() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLockFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLockFocusHandle); } } [Export("unlockFocus")] public virtual void UnlockFocus() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnlockFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnlockFocusHandle); } } [Export("lockFocusIfCanDraw")] public virtual bool LockFocusIfCanDraw() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selLockFocusIfCanDrawHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selLockFocusIfCanDrawHandle); } [Export("lockFocusIfCanDrawInContext:")] public virtual bool LockFocusIfCanDrawInContext(NSGraphicsContext context) { NSApplication.EnsureUIThread(); if (context == null) { throw new ArgumentNullException("context"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selLockFocusIfCanDrawInContext_Handle, context.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selLockFocusIfCanDrawInContext_Handle, context.Handle); } [Export("focusView")] public static NSView FocusView() { NSApplication.EnsureUIThread(); return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFocusViewHandle)); } [Export("visibleRect")] public virtual CGRect VisibleRect() { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selVisibleRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selVisibleRectHandle); } return retval; } [Export("display")] public virtual void Display() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayHandle); } } [Export("displayIfNeeded")] public virtual void DisplayIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayIfNeededHandle); } } [Export("displayIfNeededIgnoringOpacity")] public virtual void DisplayIfNeededIgnoringOpacity() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayIfNeededIgnoringOpacityHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayIfNeededIgnoringOpacityHandle); } } [Export("displayRect:")] public virtual void DisplayRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDisplayRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDisplayRect_Handle, rect); } } [Export("displayIfNeededInRect:")] public virtual void DisplayIfNeededInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDisplayIfNeededInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDisplayIfNeededInRect_Handle, rect); } } [Export("displayRectIgnoringOpacity:")] public virtual void DisplayRectIgnoringOpacity(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDisplayRectIgnoringOpacity_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDisplayRectIgnoringOpacity_Handle, rect); } } [Export("displayIfNeededInRectIgnoringOpacity:")] public virtual void DisplayIfNeededInRectIgnoringOpacity(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDisplayIfNeededInRectIgnoringOpacity_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDisplayIfNeededInRectIgnoringOpacity_Handle, rect); } } [Export("drawRect:")] public virtual void DrawRect(CGRect dirtyRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawRect_Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawRect_Handle, dirtyRect); } } [Export("displayRectIgnoringOpacity:inContext:")] public virtual void DisplayRectIgnoringOpacity(CGRect aRect, NSGraphicsContext context) { NSApplication.EnsureUIThread(); if (context == null) { throw new ArgumentNullException("context"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDisplayRectIgnoringOpacityInContext_Handle, aRect, context.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selDisplayRectIgnoringOpacityInContext_Handle, aRect, context.Handle); } } [Export("bitmapImageRepForCachingDisplayInRect:")] public virtual NSBitmapImageRep BitmapImageRepForCachingDisplayInRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selBitmapImageRepForCachingDisplayInRect_Handle, rect)); } return (NSBitmapImageRep)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selBitmapImageRepForCachingDisplayInRect_Handle, rect)); } [Export("cacheDisplayInRect:toBitmapImageRep:")] public virtual void CacheDisplay(CGRect rect, NSBitmapImageRep bitmapImageRep) { NSApplication.EnsureUIThread(); if (bitmapImageRep == null) { throw new ArgumentNullException("bitmapImageRep"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selCacheDisplayInRectToBitmapImageRep_Handle, rect, bitmapImageRep.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selCacheDisplayInRectToBitmapImageRep_Handle, rect, bitmapImageRep.Handle); } } [Export("viewWillDraw")] public virtual void ViewWillDraw() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewWillDrawHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewWillDrawHandle); } } [Export("gState")] public virtual long GState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selGStateHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selGStateHandle); } [Export("allocateGState")] public virtual void AllocateGState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAllocateGStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAllocateGStateHandle); } } [Export("releaseGState")] public virtual void ReleaseGState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReleaseGStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReleaseGStateHandle); } } [Export("setUpGState")] public virtual void SetUpGState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetUpGStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetUpGStateHandle); } } [Export("renewGState")] public virtual void RenewGState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRenewGStateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRenewGStateHandle); } } [Export("scrollPoint:")] public virtual void ScrollPoint(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selScrollPoint_Handle, aPoint); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selScrollPoint_Handle, aPoint); } } [Export("scrollRectToVisible:")] public virtual bool ScrollRectToVisible(CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGRect(base.Handle, selScrollRectToVisible_Handle, aRect); } return Messaging.bool_objc_msgSendSuper_CGRect(base.SuperHandle, selScrollRectToVisible_Handle, aRect); } [Export("autoscroll:")] public virtual bool Autoscroll(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAutoscroll_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAutoscroll_Handle, theEvent.Handle); } [Export("adjustScroll:")] public virtual CGRect AdjustScroll(CGRect newVisible) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selAdjustScroll_Handle, newVisible); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selAdjustScroll_Handle, newVisible); } return retval; } [Export("scrollRect:by:")] public virtual void ScrollRect(CGRect aRect, CGSize delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGSize(base.Handle, selScrollRectBy_Handle, aRect, delta); } else { Messaging.void_objc_msgSendSuper_CGRect_CGSize(base.SuperHandle, selScrollRectBy_Handle, aRect, delta); } } [Export("translateRectsNeedingDisplayInRect:by:")] public virtual void TranslateRectsNeedingDisplay(CGRect clipRect, CGSize delta) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGSize(base.Handle, selTranslateRectsNeedingDisplayInRectBy_Handle, clipRect, delta); } else { Messaging.void_objc_msgSendSuper_CGRect_CGSize(base.SuperHandle, selTranslateRectsNeedingDisplayInRectBy_Handle, clipRect, delta); } } [Export("hitTest:")] public virtual NSView HitTest(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selHitTest_Handle, aPoint)); } return (NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selHitTest_Handle, aPoint)); } [Export("mouse:inRect:")] public virtual bool IsMouseInRect(CGPoint aPoint, CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint_CGRect(base.Handle, selMouseInRect_Handle, aPoint, aRect); } return Messaging.bool_objc_msgSendSuper_CGPoint_CGRect(base.SuperHandle, selMouseInRect_Handle, aPoint, aRect); } [Export("viewWithTag:")] public virtual NSObject ViewWithTag(long aTag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selViewWithTag_Handle, aTag)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selViewWithTag_Handle, aTag)); } [Export("performKeyEquivalent:")] public new virtual bool PerformKeyEquivalent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformKeyEquivalent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformKeyEquivalent_Handle, theEvent.Handle); } [Export("acceptsFirstMouse:")] public virtual bool AcceptsFirstMouse(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAcceptsFirstMouse_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAcceptsFirstMouse_Handle, theEvent.Handle); } [Export("shouldDelayWindowOrderingForEvent:")] public virtual bool ShouldDelayWindowOrderingForEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShouldDelayWindowOrderingForEvent_Handle, theEvent.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShouldDelayWindowOrderingForEvent_Handle, theEvent.Handle); } [Export("addCursorRect:cursor:")] public virtual void AddCursorRect(CGRect aRect, NSCursor cursor) { NSApplication.EnsureUIThread(); if (cursor == null) { throw new ArgumentNullException("cursor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selAddCursorRectCursor_Handle, aRect, cursor.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selAddCursorRectCursor_Handle, aRect, cursor.Handle); } } [Export("removeCursorRect:cursor:")] public virtual void RemoveCursorRect(CGRect aRect, NSCursor cursor) { NSApplication.EnsureUIThread(); if (cursor == null) { throw new ArgumentNullException("cursor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selRemoveCursorRectCursor_Handle, aRect, cursor.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selRemoveCursorRectCursor_Handle, aRect, cursor.Handle); } } [Export("discardCursorRects")] public virtual void DiscardCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardCursorRectsHandle); } } [Export("resetCursorRects")] public virtual void ResetCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetCursorRectsHandle); } } [Export("addTrackingRect:owner:userData:assumeInside:")] public virtual long AddTrackingRect(CGRect aRect, NSObject anObject, IntPtr data, bool assumeInside) { NSApplication.EnsureUIThread(); if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGRect_IntPtr_IntPtr_bool(base.Handle, selAddTrackingRectOwnerUserDataAssumeInside_Handle, aRect, anObject.Handle, data, assumeInside); } return Messaging.Int64_objc_msgSendSuper_CGRect_IntPtr_IntPtr_bool(base.SuperHandle, selAddTrackingRectOwnerUserDataAssumeInside_Handle, aRect, anObject.Handle, data, assumeInside); } [Export("removeTrackingRect:")] public virtual void RemoveTrackingRect(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveTrackingRect_Handle, tag); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveTrackingRect_Handle, tag); } } [Export("makeBackingLayer")] public virtual CALayer MakeBackingLayer() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMakeBackingLayerHandle)); } return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMakeBackingLayerHandle)); } [Export("addTrackingArea:")] public virtual void AddTrackingArea(NSTrackingArea trackingArea) { NSApplication.EnsureUIThread(); if (trackingArea == null) { throw new ArgumentNullException("trackingArea"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddTrackingArea_Handle, trackingArea.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddTrackingArea_Handle, trackingArea.Handle); } __mt_tracking_var = TrackingAreas(); } [Export("removeTrackingArea:")] public virtual void RemoveTrackingArea(NSTrackingArea trackingArea) { NSApplication.EnsureUIThread(); if (trackingArea == null) { throw new ArgumentNullException("trackingArea"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTrackingArea_Handle, trackingArea.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTrackingArea_Handle, trackingArea.Handle); } __mt_tracking_var = TrackingAreas(); } [Export("trackingAreas")] public virtual NSTrackingArea[] TrackingAreas() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTrackingAreasHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTrackingAreasHandle)); } [Export("updateTrackingAreas")] public virtual void UpdateTrackingAreas() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateTrackingAreasHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateTrackingAreasHandle); } } [Export("menuForEvent:")] public virtual NSMenu MenuForEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMenuForEvent_Handle, theEvent.Handle)); } return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMenuForEvent_Handle, theEvent.Handle)); } [Export("defaultMenu")] public static NSMenu DefaultMenu() { NSApplication.EnsureUIThread(); return (NSMenu)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultMenuHandle)); } [Export("addToolTipRect:owner:userData:")] public virtual long AddToolTip(CGRect aRect, NSObject anObject, IntPtr data) { NSApplication.EnsureUIThread(); if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGRect_IntPtr_IntPtr(base.Handle, selAddToolTipRectOwnerUserData_Handle, aRect, anObject.Handle, data); } return Messaging.Int64_objc_msgSendSuper_CGRect_IntPtr_IntPtr(base.SuperHandle, selAddToolTipRectOwnerUserData_Handle, aRect, anObject.Handle, data); } [Export("removeToolTip:")] public virtual void RemoveToolTip(long tag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selRemoveToolTip_Handle, tag); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selRemoveToolTip_Handle, tag); } } [Export("removeAllToolTips")] public virtual void RemoveAllToolTips() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllToolTipsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllToolTipsHandle); } } [Export("viewWillStartLiveResize")] public virtual void ViewWillStartLiveResize() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewWillStartLiveResizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewWillStartLiveResizeHandle); } } [Export("viewDidEndLiveResize")] public virtual void ViewDidEndLiveResize() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selViewDidEndLiveResizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selViewDidEndLiveResizeHandle); } } [Export("registerForDraggedTypes:")] public virtual void RegisterForDraggedTypes(string[] newTypes) { NSApplication.EnsureUIThread(); if (newTypes == null) { throw new ArgumentNullException("newTypes"); } NSArray nSArray = NSArray.FromStrings(newTypes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRegisterForDraggedTypes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterForDraggedTypes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("unregisterDraggedTypes")] public virtual void UnregisterDraggedTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnregisterDraggedTypesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnregisterDraggedTypesHandle); } } [Export("registeredDraggedTypes")] public virtual string[] RegisteredDragTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRegisteredDraggedTypesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRegisteredDraggedTypesHandle)); } [Export("beginDraggingSessionWithItems:event:source:")] public virtual NSDraggingSession BeginDraggingSession(NSDraggingItem[] itmes, NSEvent evnt, NSDraggingSource source) { NSApplication.EnsureUIThread(); if (itmes == null) { throw new ArgumentNullException("itmes"); } if (evnt == null) { throw new ArgumentNullException("evnt"); } if (source == null) { throw new ArgumentNullException("source"); } NSArray nSArray = NSArray.FromNSObjects(itmes); NSDraggingSession result = ((!IsDirectBinding) ? ((NSDraggingSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginDraggingSessionWithItemsEventSource_Handle, nSArray.Handle, evnt.Handle, source.Handle))) : ((NSDraggingSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selBeginDraggingSessionWithItemsEventSource_Handle, nSArray.Handle, evnt.Handle, source.Handle)))); nSArray.Dispose(); return result; } [Export("dragImage:at:offset:event:pasteboard:source:slideBack:")] public virtual void DragImage(NSImage anImage, CGPoint viewLocation, CGSize initialOffset, NSEvent theEvent, NSPasteboard pboard, NSObject sourceObj, bool slideFlag) { NSApplication.EnsureUIThread(); if (anImage == null) { throw new ArgumentNullException("anImage"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (pboard == null) { throw new ArgumentNullException("pboard"); } if (sourceObj == null) { throw new ArgumentNullException("sourceObj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_CGSize_IntPtr_IntPtr_IntPtr_bool(base.Handle, selDragImageAtOffsetEventPasteboardSourceSlideBack_Handle, anImage.Handle, viewLocation, initialOffset, theEvent.Handle, pboard.Handle, sourceObj.Handle, slideFlag); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_CGSize_IntPtr_IntPtr_IntPtr_bool(base.SuperHandle, selDragImageAtOffsetEventPasteboardSourceSlideBack_Handle, anImage.Handle, viewLocation, initialOffset, theEvent.Handle, pboard.Handle, sourceObj.Handle, slideFlag); } } [Export("dragFile:fromRect:slideBack:event:")] public virtual bool DragFile(string filename, CGRect aRect, bool slideBack, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (filename == null) { throw new ArgumentNullException("filename"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } IntPtr arg = NSString.CreateNative(filename); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_bool_IntPtr(base.SuperHandle, selDragFileFromRectSlideBackEvent_Handle, arg, aRect, slideBack, theEvent.Handle) : Messaging.bool_objc_msgSend_IntPtr_CGRect_bool_IntPtr(base.Handle, selDragFileFromRectSlideBackEvent_Handle, arg, aRect, slideBack, theEvent.Handle)); NSString.ReleaseNative(arg); return result; } [Export("dragPromisedFilesOfTypes:fromRect:source:slideBack:event:")] public virtual bool DragPromisedFilesOfTypes(string[] typeArray, CGRect aRect, NSObject sourceObject, bool slideBack, NSEvent theEvent) { NSApplication.EnsureUIThread(); if (typeArray == null) { throw new ArgumentNullException("typeArray"); } if (sourceObject == null) { throw new ArgumentNullException("sourceObject"); } if (theEvent == null) { throw new ArgumentNullException("theEvent"); } NSArray nSArray = NSArray.FromStrings(typeArray); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_bool_IntPtr(base.SuperHandle, selDragPromisedFilesOfTypesFromRectSourceSlideBackEvent_Handle, nSArray.Handle, aRect, sourceObject.Handle, slideBack, theEvent.Handle) : Messaging.bool_objc_msgSend_IntPtr_CGRect_IntPtr_bool_IntPtr(base.Handle, selDragPromisedFilesOfTypesFromRectSourceSlideBackEvent_Handle, nSArray.Handle, aRect, sourceObject.Handle, slideBack, theEvent.Handle)); nSArray.Dispose(); return result; } [Export("exitFullScreenModeWithOptions:")] public virtual void ExitFullscreenModeWithOptions(NSDictionary options) { NSApplication.EnsureUIThread(); if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selExitFullScreenModeWithOptions_Handle, options.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selExitFullScreenModeWithOptions_Handle, options.Handle); } } [Export("enterFullScreenMode:withOptions:")] public virtual bool EnterFullscreenModeWithOptions(NSScreen screen, NSDictionary options) { NSApplication.EnsureUIThread(); if (screen == null) { throw new ArgumentNullException("screen"); } if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selEnterFullScreenModeWithOptions_Handle, screen.Handle, options.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEnterFullScreenModeWithOptions_Handle, screen.Handle, options.Handle); } [Export("addConstraint:")] public virtual void AddConstraint(NSLayoutConstraint constraint) { NSApplication.EnsureUIThread(); if (constraint == null) { throw new ArgumentNullException("constraint"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddConstraint_Handle, constraint.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddConstraint_Handle, constraint.Handle); } _ = Constraints; } [Export("addConstraints:")] public virtual void AddConstraints(NSLayoutConstraint[] constraints) { NSApplication.EnsureUIThread(); if (constraints == null) { throw new ArgumentNullException("constraints"); } NSArray nSArray = NSArray.FromNSObjects(constraints); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddConstraints_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddConstraints_Handle, nSArray.Handle); } nSArray.Dispose(); _ = Constraints; } [Export("removeConstraint:")] public virtual void RemoveConstraint(NSLayoutConstraint constraint) { NSApplication.EnsureUIThread(); if (constraint == null) { throw new ArgumentNullException("constraint"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveConstraint_Handle, constraint.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveConstraint_Handle, constraint.Handle); } _ = Constraints; } [Export("removeConstraints:")] public virtual void RemoveConstraints(NSLayoutConstraint[] constraints) { NSApplication.EnsureUIThread(); if (constraints == null) { throw new ArgumentNullException("constraints"); } NSArray nSArray = NSArray.FromNSObjects(constraints); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveConstraints_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveConstraints_Handle, nSArray.Handle); } nSArray.Dispose(); _ = Constraints; } [Export("layoutSubtreeIfNeeded")] public virtual void LayoutSubtreeIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutSubtreeIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutSubtreeIfNeededHandle); } } [Export("layout")] public virtual void Layout() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutHandle); } } [Export("updateConstraints")] public virtual void UpdateConstraints() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateConstraintsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateConstraintsHandle); } } [Export("updateConstraintsForSubtreeIfNeeded")] public virtual void UpdateConstraintsForSubtreeIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateConstraintsForSubtreeIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateConstraintsForSubtreeIfNeededHandle); } } [Export("requiresConstraintBasedLayout")] public static bool RequiresConstraintBasedLayout() { NSApplication.EnsureUIThread(); return Messaging.bool_objc_msgSend(class_ptr, selRequiresConstraintBasedLayoutHandle); } [Export("alignmentRectForFrame:")] public virtual CGRect GetAlignmentRectForFrame(CGRect frame) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selAlignmentRectForFrame_Handle, frame); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selAlignmentRectForFrame_Handle, frame); } return retval; } [Export("frameForAlignmentRect:")] public virtual CGRect GetFrameForAlignmentRect(CGRect alignmentRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selFrameForAlignmentRect_Handle, alignmentRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selFrameForAlignmentRect_Handle, alignmentRect); } return retval; } [Export("invalidateIntrinsicContentSize")] public virtual void InvalidateIntrinsicContentSize() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateIntrinsicContentSizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateIntrinsicContentSizeHandle); } } [Export("contentHuggingPriorityForOrientation:")] public virtual float GetContentHuggingPriorityForOrientation(NSLayoutConstraintOrientation orientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend_Int64(base.Handle, selContentHuggingPriorityForOrientation_Handle, (long)orientation); } return Messaging.float_objc_msgSendSuper_Int64(base.SuperHandle, selContentHuggingPriorityForOrientation_Handle, (long)orientation); } [Export("setContentHuggingPriority:forOrientation:")] public virtual void SetContentHuggingPriorityForOrientation(float priority, NSLayoutConstraintOrientation orientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_Int64(base.Handle, selSetContentHuggingPriorityForOrientation_Handle, priority, (long)orientation); } else { Messaging.void_objc_msgSendSuper_float_Int64(base.SuperHandle, selSetContentHuggingPriorityForOrientation_Handle, priority, (long)orientation); } } [Export("contentCompressionResistancePriorityForOrientation:")] public virtual float GetContentCompressionResistancePriority(NSLayoutConstraintOrientation orientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.float_objc_msgSend_Int64(base.Handle, selContentCompressionResistancePriorityForOrientation_Handle, (long)orientation); } return Messaging.float_objc_msgSendSuper_Int64(base.SuperHandle, selContentCompressionResistancePriorityForOrientation_Handle, (long)orientation); } [Export("setContentCompressionResistancePriority:forOrientation:")] public virtual void SetContentCompressionResistancePriority(float priority, NSLayoutConstraintOrientation orientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_Int64(base.Handle, selSetContentCompressionResistancePriorityForOrientation_Handle, priority, (long)orientation); } else { Messaging.void_objc_msgSendSuper_float_Int64(base.SuperHandle, selSetContentCompressionResistancePriorityForOrientation_Handle, priority, (long)orientation); } } [Export("constraintsAffectingLayoutForOrientation:")] public virtual NSLayoutConstraint[] GetConstraintsAffectingLayout(NSLayoutConstraintOrientation orientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selConstraintsAffectingLayoutForOrientation_Handle, (long)orientation)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selConstraintsAffectingLayoutForOrientation_Handle, (long)orientation)); } [Export("exerciseAmbiguityInLayout")] public virtual void ExerciseAmbiguityInLayout() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selExerciseAmbiguityInLayoutHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selExerciseAmbiguityInLayoutHandle); } } [Export("performMnemonic:")] [Obsolete("Deprecated in 10.8", false)] public virtual bool PerformMnemonic(string mnemonic) { NSApplication.EnsureUIThread(); if (mnemonic == null) { throw new ArgumentNullException("mnemonic"); } IntPtr arg = NSString.CreateNative(mnemonic); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformMnemonic_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformMnemonic_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setKeyboardFocusRingNeedsDisplayInRect:")] public virtual void SetKeyboardFocusRingNeedsDisplay(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetKeyboardFocusRingNeedsDisplayInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetKeyboardFocusRingNeedsDisplayInRect_Handle, rect); } } [Export("drawFocusRingMask")] public virtual void DrawFocusRingMask() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDrawFocusRingMaskHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDrawFocusRingMaskHandle); } } [Export("noteFocusRingMaskChanged")] public virtual void NoteFocusRingMaskChanged() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selNoteFocusRingMaskChangedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selNoteFocusRingMaskChangedHandle); } } [Export("dataWithEPSInsideRect:")] public virtual NSData DataWithEpsInsideRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selDataWithEPSInsideRect_Handle, rect)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selDataWithEPSInsideRect_Handle, rect)); } [Export("dataWithPDFInsideRect:")] public virtual NSData DataWithPdfInsideRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selDataWithPDFInsideRect_Handle, rect)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selDataWithPDFInsideRect_Handle, rect)); } [Export("print:")] public virtual void Print(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPrint_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrint_Handle, sender.Handle); } } [Export("writeEPSInsideRect:toPasteboard:")] public virtual void WriteEpsInsideRect(CGRect rect, NSPasteboard pboard) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selWriteEPSInsideRectToPasteboard_Handle, rect, pboard.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selWriteEPSInsideRectToPasteboard_Handle, rect, pboard.Handle); } } [Export("writePDFInsideRect:toPasteboard:")] public virtual void WritePdfInsideRect(CGRect rect, NSPasteboard pboard) { NSApplication.EnsureUIThread(); if (pboard == null) { throw new ArgumentNullException("pboard"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selWritePDFInsideRectToPasteboard_Handle, rect, pboard.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selWritePDFInsideRectToPasteboard_Handle, rect, pboard.Handle); } } [Export("drawPageBorderWithSize:")] public virtual void DrawPageBorder(CGSize borderSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selDrawPageBorderWithSize_Handle, borderSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selDrawPageBorderWithSize_Handle, borderSize); } } [Export("drawSheetBorderWithSize:")] public virtual void DrawSheetBorder(CGSize borderSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selDrawSheetBorderWithSize_Handle, borderSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selDrawSheetBorderWithSize_Handle, borderSize); } } [Export("adjustPageWidthNew:left:right:limit:")] public virtual void AdjustPageWidthNew(ref double newRight, double left, double proposedRight, double rightLimit) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_Double_Double_Double(base.Handle, selAdjustPageWidthNewLeftRightLimit_Handle, out newRight, left, proposedRight, rightLimit); } else { Messaging.void_objc_msgSendSuper_out_Double_Double_Double_Double(base.SuperHandle, selAdjustPageWidthNewLeftRightLimit_Handle, out newRight, left, proposedRight, rightLimit); } } [Export("adjustPageHeightNew:top:bottom:limit:")] public virtual void AdjustPageHeightNew(ref double newBottom, double top, double proposedBottom, double bottomLimit) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_out_Double_Double_Double_Double(base.Handle, selAdjustPageHeightNewTopBottomLimit_Handle, out newBottom, top, proposedBottom, bottomLimit); } else { Messaging.void_objc_msgSendSuper_out_Double_Double_Double_Double(base.SuperHandle, selAdjustPageHeightNewTopBottomLimit_Handle, out newBottom, top, proposedBottom, bottomLimit); } } [Export("knowsPageRange:")] public virtual bool KnowsPageRange(ref NSRange aRange) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_out_NSRange(base.Handle, selKnowsPageRange_Handle, out aRange); } return Messaging.bool_objc_msgSendSuper_out_NSRange(base.SuperHandle, selKnowsPageRange_Handle, out aRange); } [Export("rectForPage:")] public virtual CGRect RectForPage(long pageNumber) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selRectForPage_Handle, pageNumber); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selRectForPage_Handle, pageNumber); } return retval; } [Export("locationOfPrintRect:")] public virtual CGPoint LocationOfPrintRect(CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGRect(base.Handle, selLocationOfPrintRect_Handle, aRect); } return Messaging.CGPoint_objc_msgSendSuper_CGRect(base.SuperHandle, selLocationOfPrintRect_Handle, aRect); } [Export("backingAlignedRect:options:")] public virtual CGRect BackingAlignedRect(CGRect aRect, NSAlignmentOptions options) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_UInt64(out retval, base.Handle, selBackingAlignedRectOptions_Handle, aRect, (ulong)options); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_UInt64(out retval, base.SuperHandle, selBackingAlignedRectOptions_Handle, aRect, (ulong)options); } return retval; } [Export("convertRectFromBacking:")] public virtual CGRect ConvertRectFromBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromBacking_Handle, aRect); } return retval; } [Export("convertRectToBacking:")] public virtual CGRect ConvertRectToBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToBacking_Handle, aRect); } return retval; } [Export("convertRectFromLayer:")] public virtual CGRect ConvertRectFromLayer(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromLayer_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromLayer_Handle, aRect); } return retval; } [Export("convertRectToLayer:")] public virtual CGRect ConvertRectToLayer(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToLayer_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToLayer_Handle, aRect); } return retval; } [Export("convertPointFromBacking:")] public virtual CGPoint ConvertPointFromBacking(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointFromBacking_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointFromBacking_Handle, aPoint); } [Export("convertPointToBacking:")] public virtual CGPoint ConvertPointToBacking(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointToBacking_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointToBacking_Handle, aPoint); } [Export("convertPointFromLayer:")] public virtual CGPoint ConvertPointFromLayer(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointFromLayer_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointFromLayer_Handle, aPoint); } [Export("convertPointToLayer:")] public virtual CGPoint ConvertPointToLayer(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertPointToLayer_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertPointToLayer_Handle, aPoint); } [Export("convertSizeFromBacking:")] public virtual CGSize ConvertSizeFromBacking(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeFromBacking_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeFromBacking_Handle, aSize); } [Export("convertSizeToBacking:")] public virtual CGSize ConvertSizeToBacking(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeToBacking_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeToBacking_Handle, aSize); } [Export("convertSizeFromLayer:")] public virtual CGSize ConvertSizeFromLayer(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeFromLayer_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeFromLayer_Handle, aSize); } [Export("convertSizeToLayer:")] public virtual CGSize ConvertSizeToLayer(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selConvertSizeToLayer_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selConvertSizeToLayer_Handle, aSize); } [Export("draggingEntered:")] public virtual NSDragOperation DraggingEntered(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selDraggingEntered_Handle, sender.Handle); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingEntered_Handle, sender.Handle); } [Export("draggingUpdated:")] public virtual NSDragOperation DraggingUpdated(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return (NSDragOperation)Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selDraggingUpdated_Handle, sender.Handle); } return (NSDragOperation)Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingUpdated_Handle, sender.Handle); } [Export("draggingExited:")] public virtual void DraggingExited(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDraggingExited_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingExited_Handle, sender.Handle); } } [Export("prepareForDragOperation:")] public virtual bool PrepareForDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPrepareForDragOperation_Handle, sender.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrepareForDragOperation_Handle, sender.Handle); } [Export("performDragOperation:")] public virtual bool PerformDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selPerformDragOperation_Handle, sender.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformDragOperation_Handle, sender.Handle); } [Export("concludeDragOperation:")] public virtual void ConcludeDragOperation(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selConcludeDragOperation_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selConcludeDragOperation_Handle, sender.Handle); } } [Export("draggingEnded:")] public virtual void DraggingEnded(NSDraggingInfo sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDraggingEnded_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDraggingEnded_Handle, sender.Handle); } } [Export("animationForKey:")] public virtual NSObject AnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAnimationForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnimationForKey_Handle, key.Handle)); } [Export("defaultAnimationForKey:")] public static NSObject DefaultAnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultAnimationForKey_Handle, key.Handle)); } protected override void Dispose(bool disposing) { __mt_tracking_var = null; base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Window_var = null; __mt_Superview_var = null; __mt_OpaqueAncestor_var = null; __mt_EnclosingScrollView_var = null; __mt_InputContext_var = null; __mt_Subviews_var = null; __mt_Layer_var = null; __mt_BackgroundFilters_var = null; __mt_CompositingFilter_var = null; __mt_ContentFilters_var = null; __mt_Shadow_var = null; __mt_Constraints_var = null; __mt_NextKeyView_var = null; __mt_PreviousKeyView_var = null; __mt_NextValidKeyView_var = null; __mt_PreviousValidKeyView_var = null; __mt_PageHeader_var = null; __mt_PageFooter_var = null; __mt_Animator_var = null; __mt_Animations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSViewAnimation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSViewAnimation", true)] public class NSViewAnimation : NSAnimation { private static readonly IntPtr selViewAnimationsHandle = Selector.GetHandle("viewAnimations"); private static readonly IntPtr selSetViewAnimations_Handle = Selector.GetHandle("setViewAnimations:"); private static readonly IntPtr selAnimatorHandle = Selector.GetHandle("animator"); private static readonly IntPtr selAnimationsHandle = Selector.GetHandle("animations"); private static readonly IntPtr selSetAnimations_Handle = Selector.GetHandle("setAnimations:"); private static readonly IntPtr selInitWithViewAnimations_Handle = Selector.GetHandle("initWithViewAnimations:"); private static readonly IntPtr selAnimationForKey_Handle = Selector.GetHandle("animationForKey:"); private static readonly IntPtr selDefaultAnimationForKey_Handle = Selector.GetHandle("defaultAnimationForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSViewAnimation"); private object __mt_ViewAnimations_var; private object __mt_Animator_var; private object __mt_Animations_var; private static NSString _TargetKey; private static NSString _StartFrameKey; private static NSString _EndFrameKey; private static NSString _EffectKey; private static NSString _FadeInEffect; private static NSString _FadeOutEffect; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary[] ViewAnimations { [Export("viewAnimations")] get { NSApplication.EnsureUIThread(); return (NSDictionary[])(__mt_ViewAnimations_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewAnimationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selViewAnimationsHandle)))); } [Export("setViewAnimations:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetViewAnimations_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetViewAnimations_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_ViewAnimations_var = value; } } public virtual NSObject Animator { [Export("animator")] get { NSApplication.EnsureUIThread(); NSObject nSObject = (NSObject)(__mt_Animator_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimatorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimatorHandle)))); nSObject.SetAsProxy(); return nSObject; } } public virtual NSDictionary Animations { [Export("animations")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_Animations_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationsHandle))))); } [Export("setAnimations:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimations_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimations_Handle, value.Handle); } __mt_Animations_var = value; } } [Field("NSViewAnimationTargetKey", "AppKit")] public static NSString TargetKey { get { if (_TargetKey == null) { _TargetKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationTargetKey"); } return _TargetKey; } } [Field("NSViewAnimationStartFrameKey", "AppKit")] public static NSString StartFrameKey { get { if (_StartFrameKey == null) { _StartFrameKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationStartFrameKey"); } return _StartFrameKey; } } [Field("NSViewAnimationEndFrameKey", "AppKit")] public static NSString EndFrameKey { get { if (_EndFrameKey == null) { _EndFrameKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationEndFrameKey"); } return _EndFrameKey; } } [Field("NSViewAnimationEffectKey", "AppKit")] public static NSString EffectKey { get { if (_EffectKey == null) { _EffectKey = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationEffectKey"); } return _EffectKey; } } [Field("NSViewAnimationFadeInEffect", "AppKit")] public static NSString FadeInEffect { get { if (_FadeInEffect == null) { _FadeInEffect = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationFadeInEffect"); } return _FadeInEffect; } } [Field("NSViewAnimationFadeOutEffect", "AppKit")] public static NSString FadeOutEffect { get { if (_FadeOutEffect == null) { _FadeOutEffect = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSViewAnimationFadeOutEffect"); } return _FadeOutEffect; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSViewAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSViewAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSViewAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSViewAnimation(IntPtr handle) : base(handle) { } [Export("initWithViewAnimations:")] public NSViewAnimation(NSDictionary[] viewAnimations) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (viewAnimations == null) { throw new ArgumentNullException("viewAnimations"); } NSArray nSArray = NSArray.FromNSObjects(viewAnimations); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithViewAnimations_Handle, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithViewAnimations_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("animationForKey:")] public virtual NSObject AnimationForKey(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnimationForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAnimationForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("defaultAnimationForKey:")] public static NSObject DefaultAnimationForKey(string key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultAnimationForKey_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ViewAnimations_var = null; __mt_Animator_var = null; __mt_Animations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSViewController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSViewController", true)] public class NSViewController : NSResponder { private static readonly IntPtr selNibNameHandle = Selector.GetHandle("nibName"); private static readonly IntPtr selNibBundleHandle = Selector.GetHandle("nibBundle"); private static readonly IntPtr selRepresentedObjectHandle = Selector.GetHandle("representedObject"); private static readonly IntPtr selSetRepresentedObject_Handle = Selector.GetHandle("setRepresentedObject:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selViewHandle = Selector.GetHandle("view"); private static readonly IntPtr selSetView_Handle = Selector.GetHandle("setView:"); private static readonly IntPtr selInitWithNibNameBundle_Handle = Selector.GetHandle("initWithNibName:bundle:"); private static readonly IntPtr selLoadViewHandle = Selector.GetHandle("loadView"); private static readonly IntPtr selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle = Selector.GetHandle("commitEditingWithDelegate:didCommitSelector:contextInfo:"); private static readonly IntPtr selCommitEditingHandle = Selector.GetHandle("commitEditing"); private static readonly IntPtr selDiscardEditingHandle = Selector.GetHandle("discardEditing"); private static readonly IntPtr class_ptr = Class.GetHandle("NSViewController"); private object __mt_NibBundle_var; private object __mt_RepresentedObject_var; private object __mt_View_var; public override IntPtr ClassHandle => class_ptr; public virtual string NibName { [Export("nibName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNibNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNibNameHandle)); } } public virtual NSBundle NibBundle { [Export("nibBundle")] get { NSApplication.EnsureUIThread(); return (NSBundle)(__mt_NibBundle_var = ((!IsDirectBinding) ? ((NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNibBundleHandle))) : ((NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNibBundleHandle))))); } } public virtual NSObject RepresentedObject { [Export("representedObject")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_RepresentedObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedObjectHandle)))); } [Export("setRepresentedObject:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedObject_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedObject_Handle, value.Handle); } __mt_RepresentedObject_var = value; } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSView View { [Export("view")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_View_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selViewHandle))))); } [Export("setView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetView_Handle, value.Handle); } __mt_View_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSViewController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSViewController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSViewController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSViewController(IntPtr handle) : base(handle) { } [Export("initWithNibName:bundle:")] public NSViewController(string nibNameOrNull, NSBundle nibBundleOrNull) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); IntPtr arg = NSString.CreateNative(nibNameOrNull); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithNibNameBundle_Handle, arg, nibBundleOrNull?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithNibNameBundle_Handle, arg, nibBundleOrNull?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } [Export("loadView")] public virtual void LoadView() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLoadViewHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLoadViewHandle); } } [Export("commitEditingWithDelegate:didCommitSelector:contextInfo:")] public new virtual void CommitEditing(NSObject delegateObject, Selector didCommitSelector, IntPtr contextInfo) { NSApplication.EnsureUIThread(); if (delegateObject == null) { throw new ArgumentNullException("delegateObject"); } if (didCommitSelector == null) { throw new ArgumentNullException("didCommitSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, delegateObject.Handle, didCommitSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, delegateObject.Handle, didCommitSelector.Handle, contextInfo); } } [Export("commitEditing")] public new virtual bool CommitEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCommitEditingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCommitEditingHandle); } [Export("discardEditing")] public virtual void DiscardEditing() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardEditingHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_NibBundle_var = null; __mt_RepresentedObject_var = null; __mt_View_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSViewLayerContentsPlacement.cs ================================================ namespace AppKit; public enum NSViewLayerContentsPlacement : long { ScaleAxesIndependently, ScaleProportionallyToFit, ScaleProportionallyToFill, Center, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, TopLeft } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSViewLayerContentsRedrawPolicy.cs ================================================ namespace AppKit; public enum NSViewLayerContentsRedrawPolicy : long { Never, OnSetNeedsDisplay, DuringViewResize, BeforeViewResize } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSViewResizingMask.cs ================================================ using System; namespace AppKit; [Flags] public enum NSViewResizingMask : ulong { NotSizable = 0uL, MinXMargin = 1uL, WidthSizable = 2uL, MaxXMargin = 4uL, MinYMargin = 8uL, HeightSizable = 0x10uL, MaxYMargin = 0x20uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindingRule.cs ================================================ namespace AppKit; public enum NSWindingRule { NonZero, EvenOdd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindow.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSWindow", true)] public class NSWindow : NSResponder { [Register] private sealed class _NSWindowDelegate : NSWindowDelegate { internal NSObjectPredicate windowShouldClose; internal NSWindowClient willReturnFieldEditor; internal NSWindowResize willResize; internal NSWindowFrame willUseStandardFrame; internal NSWindowFramePredicate shouldZoom; internal NSWindowUndoManager willReturnUndoManager; internal NSWindowSheetRect willPositionSheet; internal NSWindowMenu shouldPopUpDocumentPathMenu; internal NSWindowDocumentDrag shouldDragDocumentWithEvent; internal EventHandler didResize; internal EventHandler didExpose; internal EventHandler willMove; internal EventHandler didMoved; internal EventHandler didBecomeKey; internal EventHandler didResignKey; internal EventHandler didBecomeMain; internal EventHandler didResignMain; internal EventHandler willClose; internal EventHandler willMiniaturize; internal EventHandler didMiniaturize; internal EventHandler didDeminiaturize; internal EventHandler didUpdate; internal EventHandler didChangeScreen; internal EventHandler didChangeScreenProfile; internal EventHandler willBeginSheet; internal EventHandler didEndSheet; internal EventHandler willStartLiveResize; internal EventHandler didEndLiveResize; internal EventHandler willEnterFullScreen; internal EventHandler didEnterFullScreen; internal EventHandler willExitFullScreen; internal EventHandler didExitFullScreen; internal EventHandler didFailToEnterFullScreen; internal EventHandler didFailToExitFullScreen; internal NSWindowSize willUseFullScreenContentSize; internal NSWindowApplicationPresentationOptions willUseFullScreenPresentationOptions; internal NSWindowWindows customWindowsToEnterFullScreen; internal NSWindowWindows customWindowsToExitFullScreen; internal EventHandler startCustomAnimationToEnterFullScreen; internal EventHandler startCustomAnimationToExitFullScreen; internal EventHandler willEncodeRestorableState; internal EventHandler didDecodeRestorableState; internal NSWindowSizeSize willResizeForVersionBrowser; internal EventHandler willEnterVersionBrowser; internal EventHandler didEnterVersionBrowser; internal EventHandler willExitVersionBrowser; internal EventHandler didExitVersionBrowser; [Preserve(Conditional = true)] public override bool WindowShouldClose(NSObject sender) { return windowShouldClose?.Invoke(sender) ?? true; } [Preserve(Conditional = true)] public override NSObject WillReturnFieldEditor(NSWindow sender, NSObject client) { return willReturnFieldEditor?.Invoke(sender, client); } [Preserve(Conditional = true)] public override CGSize WillResize(NSWindow sender, CGSize toFrameSize) { return willResize?.Invoke(sender, toFrameSize) ?? toFrameSize; } [Preserve(Conditional = true)] public override CGRect WillUseStandardFrame(NSWindow window, CGRect newFrame) { return willUseStandardFrame?.Invoke(window, newFrame) ?? newFrame; } [Preserve(Conditional = true)] public override bool ShouldZoom(NSWindow window, CGRect newFrame) { return shouldZoom?.Invoke(window, newFrame) ?? true; } [Preserve(Conditional = true)] public override NSUndoManager WillReturnUndoManager(NSWindow window) { return willReturnUndoManager?.Invoke(window); } [Preserve(Conditional = true)] public override CGRect WillPositionSheet(NSWindow window, NSWindow sheet, CGRect usingRect) { return willPositionSheet?.Invoke(window, sheet, usingRect) ?? usingRect; } [Preserve(Conditional = true)] public override bool ShouldPopUpDocumentPathMenu(NSWindow window, NSMenu menu) { return shouldPopUpDocumentPathMenu?.Invoke(window, menu) ?? true; } [Preserve(Conditional = true)] public override bool ShouldDragDocumentWithEvent(NSWindow window, NSEvent theEvent, CGPoint dragImageLocation, NSPasteboard withPasteboard) { return shouldDragDocumentWithEvent?.Invoke(window, theEvent, dragImageLocation, withPasteboard) ?? true; } [Preserve(Conditional = true)] public override void DidResize(NSNotification notification) { didResize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidExpose(NSNotification notification) { didExpose?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillMove(NSNotification notification) { willMove?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidMoved(NSNotification notification) { didMoved?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidBecomeKey(NSNotification notification) { didBecomeKey?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidResignKey(NSNotification notification) { didResignKey?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidBecomeMain(NSNotification notification) { didBecomeMain?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidResignMain(NSNotification notification) { didResignMain?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillClose(NSNotification notification) { willClose?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillMiniaturize(NSNotification notification) { willMiniaturize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidMiniaturize(NSNotification notification) { didMiniaturize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidDeminiaturize(NSNotification notification) { didDeminiaturize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidUpdate(NSNotification notification) { didUpdate?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidChangeScreen(NSNotification notification) { didChangeScreen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidChangeScreenProfile(NSNotification notification) { didChangeScreenProfile?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillBeginSheet(NSNotification notification) { willBeginSheet?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidEndSheet(NSNotification notification) { didEndSheet?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillStartLiveResize(NSNotification notification) { willStartLiveResize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidEndLiveResize(NSNotification notification) { didEndLiveResize?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillEnterFullScreen(NSNotification notification) { willEnterFullScreen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidEnterFullScreen(NSNotification notification) { didEnterFullScreen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillExitFullScreen(NSNotification notification) { willExitFullScreen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidExitFullScreen(NSNotification notification) { didExitFullScreen?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidFailToEnterFullScreen(NSWindow window) { didFailToEnterFullScreen?.Invoke(window, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidFailToExitFullScreen(NSWindow window) { didFailToExitFullScreen?.Invoke(window, EventArgs.Empty); } [Preserve(Conditional = true)] public override CGSize WillUseFullScreenContentSize(NSWindow window, CGSize proposedSize) { return willUseFullScreenContentSize?.Invoke(window, proposedSize) ?? proposedSize; } [Preserve(Conditional = true)] public override NSApplicationPresentationOptions WillUseFullScreenPresentationOptions(NSWindow window, NSApplicationPresentationOptions proposedOptions) { return willUseFullScreenPresentationOptions?.Invoke(window, proposedOptions) ?? proposedOptions; } [Preserve(Conditional = true)] public override NSWindow[] CustomWindowsToEnterFullScreen(NSWindow window) { return customWindowsToEnterFullScreen?.Invoke(window); } [Preserve(Conditional = true)] public override NSWindow[] CustomWindowsToExitFullScreen(NSWindow window) { return customWindowsToExitFullScreen?.Invoke(window); } [Preserve(Conditional = true)] public override void StartCustomAnimationToEnterFullScreen(NSWindow window, double duration) { EventHandler eventHandler = startCustomAnimationToEnterFullScreen; if (eventHandler != null) { NSWindowDurationEventArgs e = new NSWindowDurationEventArgs(duration); eventHandler(window, e); } } [Preserve(Conditional = true)] public override void StartCustomAnimationToExitFullScreen(NSWindow window, double duration) { EventHandler eventHandler = startCustomAnimationToExitFullScreen; if (eventHandler != null) { NSWindowDurationEventArgs e = new NSWindowDurationEventArgs(duration); eventHandler(window, e); } } [Preserve(Conditional = true)] public override void WillEncodeRestorableState(NSWindow window, NSCoder coder) { EventHandler eventHandler = willEncodeRestorableState; if (eventHandler != null) { NSWindowCoderEventArgs e = new NSWindowCoderEventArgs(coder); eventHandler(window, e); } } [Preserve(Conditional = true)] public override void DidDecodeRestorableState(NSWindow window, NSCoder coder) { EventHandler eventHandler = didDecodeRestorableState; if (eventHandler != null) { NSWindowCoderEventArgs e = new NSWindowCoderEventArgs(coder); eventHandler(window, e); } } [Preserve(Conditional = true)] public override CGSize WillResizeForVersionBrowser(NSWindow window, CGSize maxPreferredSize, CGSize maxAllowedSize) { return willResizeForVersionBrowser?.Invoke(window, maxPreferredSize, maxAllowedSize) ?? maxPreferredSize; } [Preserve(Conditional = true)] public override void WillEnterVersionBrowser(NSNotification notification) { willEnterVersionBrowser?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidEnterVersionBrowser(NSNotification notification) { didEnterVersionBrowser?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void WillExitVersionBrowser(NSNotification notification) { willExitVersionBrowser?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidExitVersionBrowser(NSNotification notification) { didExitVersionBrowser?.Invoke(notification, EventArgs.Empty); } } private static IntPtr selInitWithWindowRef = Selector.GetHandle("initWithWindowRef:"); private static readonly IntPtr selDefaultDepthLimitHandle = Selector.GetHandle("defaultDepthLimit"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selRepresentedURLHandle = Selector.GetHandle("representedURL"); private static readonly IntPtr selSetRepresentedURL_Handle = Selector.GetHandle("setRepresentedURL:"); private static readonly IntPtr selRepresentedFilenameHandle = Selector.GetHandle("representedFilename"); private static readonly IntPtr selSetRepresentedFilename_Handle = Selector.GetHandle("setRepresentedFilename:"); private static readonly IntPtr selIsExcludedFromWindowsMenuHandle = Selector.GetHandle("isExcludedFromWindowsMenu"); private static readonly IntPtr selContentViewHandle = Selector.GetHandle("contentView"); private static readonly IntPtr selSetContentView_Handle = Selector.GetHandle("setContentView:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selWindowNumberHandle = Selector.GetHandle("windowNumber"); private static readonly IntPtr selStyleMaskHandle = Selector.GetHandle("styleMask"); private static readonly IntPtr selSetStyleMask_Handle = Selector.GetHandle("setStyleMask:"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selInLiveResizeHandle = Selector.GetHandle("inLiveResize"); private static readonly IntPtr selShowsResizeIndicatorHandle = Selector.GetHandle("showsResizeIndicator"); private static readonly IntPtr selSetShowsResizeIndicator_Handle = Selector.GetHandle("setShowsResizeIndicator:"); private static readonly IntPtr selResizeIncrementsHandle = Selector.GetHandle("resizeIncrements"); private static readonly IntPtr selSetResizeIncrements_Handle = Selector.GetHandle("setResizeIncrements:"); private static readonly IntPtr selAspectRatioHandle = Selector.GetHandle("aspectRatio"); private static readonly IntPtr selSetAspectRatio_Handle = Selector.GetHandle("setAspectRatio:"); private static readonly IntPtr selContentResizeIncrementsHandle = Selector.GetHandle("contentResizeIncrements"); private static readonly IntPtr selSetContentResizeIncrements_Handle = Selector.GetHandle("setContentResizeIncrements:"); private static readonly IntPtr selContentAspectRatioHandle = Selector.GetHandle("contentAspectRatio"); private static readonly IntPtr selSetContentAspectRatio_Handle = Selector.GetHandle("setContentAspectRatio:"); private static readonly IntPtr selIsFlushWindowDisabledHandle = Selector.GetHandle("isFlushWindowDisabled"); private static readonly IntPtr selViewsNeedDisplayHandle = Selector.GetHandle("viewsNeedDisplay"); private static readonly IntPtr selSetViewsNeedDisplay_Handle = Selector.GetHandle("setViewsNeedDisplay:"); private static readonly IntPtr selIsAutodisplayHandle = Selector.GetHandle("isAutodisplay"); private static readonly IntPtr selSetAutodisplay_Handle = Selector.GetHandle("setAutodisplay:"); private static readonly IntPtr selPreservesContentDuringLiveResizeHandle = Selector.GetHandle("preservesContentDuringLiveResize"); private static readonly IntPtr selSetPreservesContentDuringLiveResize_Handle = Selector.GetHandle("setPreservesContentDuringLiveResize:"); private static readonly IntPtr selFirstResponderHandle = Selector.GetHandle("firstResponder"); private static readonly IntPtr selResizeFlagsHandle = Selector.GetHandle("resizeFlags"); private static readonly IntPtr selIsReleasedWhenClosedHandle = Selector.GetHandle("isReleasedWhenClosed"); private static readonly IntPtr selSetReleasedWhenClosed_Handle = Selector.GetHandle("setReleasedWhenClosed:"); private static readonly IntPtr selIsZoomedHandle = Selector.GetHandle("isZoomed"); private static readonly IntPtr selSetIsZoomed_Handle = Selector.GetHandle("setIsZoomed:"); private static readonly IntPtr selIsMiniaturizedHandle = Selector.GetHandle("isMiniaturized"); private static readonly IntPtr selSetIsMiniaturized_Handle = Selector.GetHandle("setIsMiniaturized:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selIsMovableHandle = Selector.GetHandle("isMovable"); private static readonly IntPtr selSetMovable_Handle = Selector.GetHandle("setMovable:"); private static readonly IntPtr selIsMovableByWindowBackgroundHandle = Selector.GetHandle("isMovableByWindowBackground"); private static readonly IntPtr selSetMovableByWindowBackground_Handle = Selector.GetHandle("setMovableByWindowBackground:"); private static readonly IntPtr selHidesOnDeactivateHandle = Selector.GetHandle("hidesOnDeactivate"); private static readonly IntPtr selSetHidesOnDeactivate_Handle = Selector.GetHandle("setHidesOnDeactivate:"); private static readonly IntPtr selCanHideHandle = Selector.GetHandle("canHide"); private static readonly IntPtr selSetCanHide_Handle = Selector.GetHandle("setCanHide:"); private static readonly IntPtr selMiniwindowImageHandle = Selector.GetHandle("miniwindowImage"); private static readonly IntPtr selSetMiniwindowImage_Handle = Selector.GetHandle("setMiniwindowImage:"); private static readonly IntPtr selMiniwindowTitleHandle = Selector.GetHandle("miniwindowTitle"); private static readonly IntPtr selSetMiniwindowTitle_Handle = Selector.GetHandle("setMiniwindowTitle:"); private static readonly IntPtr selDockTileHandle = Selector.GetHandle("dockTile"); private static readonly IntPtr selIsDocumentEditedHandle = Selector.GetHandle("isDocumentEdited"); private static readonly IntPtr selSetDocumentEdited_Handle = Selector.GetHandle("setDocumentEdited:"); private static readonly IntPtr selIsVisibleHandle = Selector.GetHandle("isVisible"); private static readonly IntPtr selSetIsVisible_Handle = Selector.GetHandle("setIsVisible:"); private static readonly IntPtr selIsKeyWindowHandle = Selector.GetHandle("isKeyWindow"); private static readonly IntPtr selIsMainWindowHandle = Selector.GetHandle("isMainWindow"); private static readonly IntPtr selCanBecomeKeyWindowHandle = Selector.GetHandle("canBecomeKeyWindow"); private static readonly IntPtr selCanBecomeMainWindowHandle = Selector.GetHandle("canBecomeMainWindow"); private static readonly IntPtr selPreventsApplicationTerminationWhenModalHandle = Selector.GetHandle("preventsApplicationTerminationWhenModal"); private static readonly IntPtr selSetPreventsApplicationTerminationWhenModal_Handle = Selector.GetHandle("setPreventsApplicationTerminationWhenModal:"); private static readonly IntPtr selIsOneShotHandle = Selector.GetHandle("isOneShot"); private static readonly IntPtr selAreCursorRectsEnabledHandle = Selector.GetHandle("areCursorRectsEnabled"); private static readonly IntPtr selAllowsToolTipsWhenApplicationIsInactiveHandle = Selector.GetHandle("allowsToolTipsWhenApplicationIsInactive"); private static readonly IntPtr selSetAllowsToolTipsWhenApplicationIsInactive_Handle = Selector.GetHandle("setAllowsToolTipsWhenApplicationIsInactive:"); private static readonly IntPtr selBackingTypeHandle = Selector.GetHandle("backingType"); private static readonly IntPtr selSetBackingType_Handle = Selector.GetHandle("setBackingType:"); private static readonly IntPtr selLevelHandle = Selector.GetHandle("level"); private static readonly IntPtr selSetLevel_Handle = Selector.GetHandle("setLevel:"); private static readonly IntPtr selDepthLimitHandle = Selector.GetHandle("depthLimit"); private static readonly IntPtr selSetDepthLimit_Handle = Selector.GetHandle("setDepthLimit:"); private static readonly IntPtr selHasDynamicDepthLimitHandle = Selector.GetHandle("hasDynamicDepthLimit"); private static readonly IntPtr selSetDynamicDepthLimit_Handle = Selector.GetHandle("setDynamicDepthLimit:"); private static readonly IntPtr selScreenHandle = Selector.GetHandle("screen"); private static readonly IntPtr selDeepestScreenHandle = Selector.GetHandle("deepestScreen"); private static readonly IntPtr selCanStoreColorHandle = Selector.GetHandle("canStoreColor"); private static readonly IntPtr selHasShadowHandle = Selector.GetHandle("hasShadow"); private static readonly IntPtr selSetHasShadow_Handle = Selector.GetHandle("setHasShadow:"); private static readonly IntPtr selAlphaValueHandle = Selector.GetHandle("alphaValue"); private static readonly IntPtr selSetAlphaValue_Handle = Selector.GetHandle("setAlphaValue:"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selSetOpaque_Handle = Selector.GetHandle("setOpaque:"); private static readonly IntPtr selSharingTypeHandle = Selector.GetHandle("sharingType"); private static readonly IntPtr selSetSharingType_Handle = Selector.GetHandle("setSharingType:"); private static readonly IntPtr selPreferredBackingLocationHandle = Selector.GetHandle("preferredBackingLocation"); private static readonly IntPtr selSetPreferredBackingLocation_Handle = Selector.GetHandle("setPreferredBackingLocation:"); private static readonly IntPtr selBackingLocationHandle = Selector.GetHandle("backingLocation"); private static readonly IntPtr selAllowsConcurrentViewDrawingHandle = Selector.GetHandle("allowsConcurrentViewDrawing"); private static readonly IntPtr selSetAllowsConcurrentViewDrawing_Handle = Selector.GetHandle("setAllowsConcurrentViewDrawing:"); private static readonly IntPtr selDisplaysWhenScreenProfileChangesHandle = Selector.GetHandle("displaysWhenScreenProfileChanges"); private static readonly IntPtr selSetDisplaysWhenScreenProfileChanges_Handle = Selector.GetHandle("setDisplaysWhenScreenProfileChanges:"); private static readonly IntPtr selCanBecomeVisibleWithoutLoginHandle = Selector.GetHandle("canBecomeVisibleWithoutLogin"); private static readonly IntPtr selSetCanBecomeVisibleWithoutLogin_Handle = Selector.GetHandle("setCanBecomeVisibleWithoutLogin:"); private static readonly IntPtr selCollectionBehaviorHandle = Selector.GetHandle("collectionBehavior"); private static readonly IntPtr selSetCollectionBehavior_Handle = Selector.GetHandle("setCollectionBehavior:"); private static readonly IntPtr selIsOnActiveSpaceHandle = Selector.GetHandle("isOnActiveSpace"); private static readonly IntPtr selMinSizeHandle = Selector.GetHandle("minSize"); private static readonly IntPtr selSetMinSize_Handle = Selector.GetHandle("setMinSize:"); private static readonly IntPtr selMaxSizeHandle = Selector.GetHandle("maxSize"); private static readonly IntPtr selSetMaxSize_Handle = Selector.GetHandle("setMaxSize:"); private static readonly IntPtr selContentMinSizeHandle = Selector.GetHandle("contentMinSize"); private static readonly IntPtr selSetContentMinSize_Handle = Selector.GetHandle("setContentMinSize:"); private static readonly IntPtr selContentMaxSizeHandle = Selector.GetHandle("contentMaxSize"); private static readonly IntPtr selSetContentMaxSize_Handle = Selector.GetHandle("setContentMaxSize:"); private static readonly IntPtr selAcceptsMouseMovedEventsHandle = Selector.GetHandle("acceptsMouseMovedEvents"); private static readonly IntPtr selSetAcceptsMouseMovedEvents_Handle = Selector.GetHandle("setAcceptsMouseMovedEvents:"); private static readonly IntPtr selIgnoresMouseEventsHandle = Selector.GetHandle("ignoresMouseEvents"); private static readonly IntPtr selSetIgnoresMouseEvents_Handle = Selector.GetHandle("setIgnoresMouseEvents:"); private static readonly IntPtr selDeviceDescriptionHandle = Selector.GetHandle("deviceDescription"); private static readonly IntPtr selMouseLocationOutsideOfEventStreamHandle = Selector.GetHandle("mouseLocationOutsideOfEventStream"); private static readonly IntPtr selWindowControllerHandle = Selector.GetHandle("windowController"); private static readonly IntPtr selSetWindowController_Handle = Selector.GetHandle("setWindowController:"); private static readonly IntPtr selIsSheetHandle = Selector.GetHandle("isSheet"); private static readonly IntPtr selAttachedSheetHandle = Selector.GetHandle("attachedSheet"); private static readonly IntPtr selChildWindowsHandle = Selector.GetHandle("childWindows"); private static readonly IntPtr selParentWindowHandle = Selector.GetHandle("parentWindow"); private static readonly IntPtr selSetParentWindow_Handle = Selector.GetHandle("setParentWindow:"); private static readonly IntPtr selGraphicsContextHandle = Selector.GetHandle("graphicsContext"); private static readonly IntPtr selUserSpaceScaleFactorHandle = Selector.GetHandle("userSpaceScaleFactor"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selSetColorSpace_Handle = Selector.GetHandle("setColorSpace:"); private static readonly IntPtr selInitialFirstResponderHandle = Selector.GetHandle("initialFirstResponder"); private static readonly IntPtr selSetInitialFirstResponder_Handle = Selector.GetHandle("setInitialFirstResponder:"); private static readonly IntPtr selDefaultButtonCellHandle = Selector.GetHandle("defaultButtonCell"); private static readonly IntPtr selSetDefaultButtonCell_Handle = Selector.GetHandle("setDefaultButtonCell:"); private static readonly IntPtr selAutorecalculatesKeyViewLoopHandle = Selector.GetHandle("autorecalculatesKeyViewLoop"); private static readonly IntPtr selSetAutorecalculatesKeyViewLoop_Handle = Selector.GetHandle("setAutorecalculatesKeyViewLoop:"); private static readonly IntPtr selToolbarHandle = Selector.GetHandle("toolbar"); private static readonly IntPtr selSetToolbar_Handle = Selector.GetHandle("setToolbar:"); private static readonly IntPtr selShowsToolbarButtonHandle = Selector.GetHandle("showsToolbarButton"); private static readonly IntPtr selSetShowsToolbarButton_Handle = Selector.GetHandle("setShowsToolbarButton:"); private static readonly IntPtr selWindowRefHandle = Selector.GetHandle("windowRef"); private static readonly IntPtr selIsRestorableHandle = Selector.GetHandle("isRestorable"); private static readonly IntPtr selSetRestorable_Handle = Selector.GetHandle("setRestorable:"); private static readonly IntPtr selRestorationClassHandle = Selector.GetHandle("restorationClass"); private static readonly IntPtr selSetRestorationClass_Handle = Selector.GetHandle("setRestorationClass:"); private static readonly IntPtr selBackingScaleFactorHandle = Selector.GetHandle("backingScaleFactor"); private static readonly IntPtr selAnimationBehaviorHandle = Selector.GetHandle("animationBehavior"); private static readonly IntPtr selSetAnimationBehavior_Handle = Selector.GetHandle("setAnimationBehavior:"); private static readonly IntPtr selEffectiveAppearanceHandle = Selector.GetHandle("effectiveAppearance"); private static readonly IntPtr selAppearanceHandle = Selector.GetHandle("appearance"); private static readonly IntPtr selSetAppearance_Handle = Selector.GetHandle("setAppearance:"); private static readonly IntPtr selAnimatorHandle = Selector.GetHandle("animator"); private static readonly IntPtr selAnimationsHandle = Selector.GetHandle("animations"); private static readonly IntPtr selSetAnimations_Handle = Selector.GetHandle("setAnimations:"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selFrameRectForContentRectStyleMask_Handle = Selector.GetHandle("frameRectForContentRect:styleMask:"); private static readonly IntPtr selContentRectForFrameRectStyleMask_Handle = Selector.GetHandle("contentRectForFrameRect:styleMask:"); private static readonly IntPtr selMinFrameWidthWithTitleStyleMask_Handle = Selector.GetHandle("minFrameWidthWithTitle:styleMask:"); private static readonly IntPtr selFrameRectForContentRect_Handle = Selector.GetHandle("frameRectForContentRect:"); private static readonly IntPtr selContentRectForFrameRect_Handle = Selector.GetHandle("contentRectForFrameRect:"); private static readonly IntPtr selInitWithContentRectStyleMaskBackingDefer_Handle = Selector.GetHandle("initWithContentRect:styleMask:backing:defer:"); private static readonly IntPtr selInitWithContentRectStyleMaskBackingDeferScreen_Handle = Selector.GetHandle("initWithContentRect:styleMask:backing:defer:screen:"); private static readonly IntPtr selSetTitleWithRepresentedFilename_Handle = Selector.GetHandle("setTitleWithRepresentedFilename:"); private static readonly IntPtr selSetExcludedFromWindowsMenu_Handle = Selector.GetHandle("setExcludedFromWindowsMenu:"); private static readonly IntPtr selFieldEditorForObject_Handle = Selector.GetHandle("fieldEditor:forObject:"); private static readonly IntPtr selEndEditingFor_Handle = Selector.GetHandle("endEditingFor:"); private static readonly IntPtr selConstrainFrameRectToScreen_Handle = Selector.GetHandle("constrainFrameRect:toScreen:"); private static readonly IntPtr selSetFrameDisplay_Handle = Selector.GetHandle("setFrame:display:"); private static readonly IntPtr selSetContentSize_Handle = Selector.GetHandle("setContentSize:"); private static readonly IntPtr selSetFrameOrigin_Handle = Selector.GetHandle("setFrameOrigin:"); private static readonly IntPtr selSetFrameTopLeftPoint_Handle = Selector.GetHandle("setFrameTopLeftPoint:"); private static readonly IntPtr selCascadeTopLeftFromPoint_Handle = Selector.GetHandle("cascadeTopLeftFromPoint:"); private static readonly IntPtr selAnimationResizeTime_Handle = Selector.GetHandle("animationResizeTime:"); private static readonly IntPtr selSetFrameDisplayAnimate_Handle = Selector.GetHandle("setFrame:display:animate:"); private static readonly IntPtr selUseOptimizedDrawing_Handle = Selector.GetHandle("useOptimizedDrawing:"); private static readonly IntPtr selDisableFlushWindowHandle = Selector.GetHandle("disableFlushWindow"); private static readonly IntPtr selEnableFlushWindowHandle = Selector.GetHandle("enableFlushWindow"); private static readonly IntPtr selFlushWindowHandle = Selector.GetHandle("flushWindow"); private static readonly IntPtr selFlushWindowIfNeededHandle = Selector.GetHandle("flushWindowIfNeeded"); private static readonly IntPtr selDisplayIfNeededHandle = Selector.GetHandle("displayIfNeeded"); private static readonly IntPtr selDisplayHandle = Selector.GetHandle("display"); private static readonly IntPtr selUpdateHandle = Selector.GetHandle("update"); private static readonly IntPtr selMakeFirstResponder_Handle = Selector.GetHandle("makeFirstResponder:"); private static readonly IntPtr selKeyDown_Handle = Selector.GetHandle("keyDown:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selMiniaturize_Handle = Selector.GetHandle("miniaturize:"); private static readonly IntPtr selDeminiaturize_Handle = Selector.GetHandle("deminiaturize:"); private static readonly IntPtr selZoom_Handle = Selector.GetHandle("zoom:"); private static readonly IntPtr selTryToPerformWith_Handle = Selector.GetHandle("tryToPerform:with:"); private static readonly IntPtr selValidRequestorForSendTypeReturnType_Handle = Selector.GetHandle("validRequestorForSendType:returnType:"); private static readonly IntPtr selSetContentBorderThicknessForEdge_Handle = Selector.GetHandle("setContentBorderThickness:forEdge:"); private static readonly IntPtr selContentBorderThicknessForEdge_Handle = Selector.GetHandle("contentBorderThicknessForEdge:"); private static readonly IntPtr selSetAutorecalculatesContentBorderThicknessForEdge_Handle = Selector.GetHandle("setAutorecalculatesContentBorderThickness:forEdge:"); private static readonly IntPtr selAutorecalculatesContentBorderThicknessForEdge_Handle = Selector.GetHandle("autorecalculatesContentBorderThicknessForEdge:"); private static readonly IntPtr selCenterHandle = Selector.GetHandle("center"); private static readonly IntPtr selMakeKeyAndOrderFront_Handle = Selector.GetHandle("makeKeyAndOrderFront:"); private static readonly IntPtr selOrderFront_Handle = Selector.GetHandle("orderFront:"); private static readonly IntPtr selOrderBack_Handle = Selector.GetHandle("orderBack:"); private static readonly IntPtr selOrderOut_Handle = Selector.GetHandle("orderOut:"); private static readonly IntPtr selOrderWindowRelativeTo_Handle = Selector.GetHandle("orderWindow:relativeTo:"); private static readonly IntPtr selOrderFrontRegardlessHandle = Selector.GetHandle("orderFrontRegardless"); private static readonly IntPtr selMakeKeyWindowHandle = Selector.GetHandle("makeKeyWindow"); private static readonly IntPtr selMakeMainWindowHandle = Selector.GetHandle("makeMainWindow"); private static readonly IntPtr selBecomeKeyWindowHandle = Selector.GetHandle("becomeKeyWindow"); private static readonly IntPtr selResignKeyWindowHandle = Selector.GetHandle("resignKeyWindow"); private static readonly IntPtr selBecomeMainWindowHandle = Selector.GetHandle("becomeMainWindow"); private static readonly IntPtr selResignMainWindowHandle = Selector.GetHandle("resignMainWindow"); private static readonly IntPtr selWorksWhenModalHandle = Selector.GetHandle("worksWhenModal"); private static readonly IntPtr selConvertBaseToScreen_Handle = Selector.GetHandle("convertBaseToScreen:"); private static readonly IntPtr selConvertScreenToBase_Handle = Selector.GetHandle("convertScreenToBase:"); private static readonly IntPtr selPerformClose_Handle = Selector.GetHandle("performClose:"); private static readonly IntPtr selPerformMiniaturize_Handle = Selector.GetHandle("performMiniaturize:"); private static readonly IntPtr selPerformZoom_Handle = Selector.GetHandle("performZoom:"); private static readonly IntPtr selGStateHandle = Selector.GetHandle("gState"); private static readonly IntPtr selSetOneShot_Handle = Selector.GetHandle("setOneShot:"); private static readonly IntPtr selDataWithEPSInsideRect_Handle = Selector.GetHandle("dataWithEPSInsideRect:"); private static readonly IntPtr selDataWithPDFInsideRect_Handle = Selector.GetHandle("dataWithPDFInsideRect:"); private static readonly IntPtr selPrint_Handle = Selector.GetHandle("print:"); private static readonly IntPtr selDisableCursorRectsHandle = Selector.GetHandle("disableCursorRects"); private static readonly IntPtr selEnableCursorRectsHandle = Selector.GetHandle("enableCursorRects"); private static readonly IntPtr selDiscardCursorRectsHandle = Selector.GetHandle("discardCursorRects"); private static readonly IntPtr selInvalidateCursorRectsForView_Handle = Selector.GetHandle("invalidateCursorRectsForView:"); private static readonly IntPtr selResetCursorRectsHandle = Selector.GetHandle("resetCursorRects"); private static readonly IntPtr selInvalidateShadowHandle = Selector.GetHandle("invalidateShadow"); private static readonly IntPtr selDisableScreenUpdatesUntilFlushHandle = Selector.GetHandle("disableScreenUpdatesUntilFlush"); private static readonly IntPtr selStringWithSavedFrameHandle = Selector.GetHandle("stringWithSavedFrame"); private static readonly IntPtr selSetFrameFromString_Handle = Selector.GetHandle("setFrameFromString:"); private static readonly IntPtr selSaveFrameUsingName_Handle = Selector.GetHandle("saveFrameUsingName:"); private static readonly IntPtr selSetFrameUsingNameForce_Handle = Selector.GetHandle("setFrameUsingName:force:"); private static readonly IntPtr selSetFrameUsingName_Handle = Selector.GetHandle("setFrameUsingName:"); private static readonly IntPtr selFrameAutosaveNameHandle = Selector.GetHandle("frameAutosaveName"); private static readonly IntPtr selSetFrameAutosaveName_Handle = Selector.GetHandle("setFrameAutosaveName:"); private static readonly IntPtr selRemoveFrameUsingName_Handle = Selector.GetHandle("removeFrameUsingName:"); private static readonly IntPtr selCacheImageInRect_Handle = Selector.GetHandle("cacheImageInRect:"); private static readonly IntPtr selRestoreCachedImageHandle = Selector.GetHandle("restoreCachedImage"); private static readonly IntPtr selDiscardCachedImageHandle = Selector.GetHandle("discardCachedImage"); private static readonly IntPtr selNextEventMatchingMask_Handle = Selector.GetHandle("nextEventMatchingMask:"); private static readonly IntPtr selNextEventMatchingMaskUntilDateInModeDequeue_Handle = Selector.GetHandle("nextEventMatchingMask:untilDate:inMode:dequeue:"); private static readonly IntPtr selDiscardEventsMatchingMaskBeforeEvent_Handle = Selector.GetHandle("discardEventsMatchingMask:beforeEvent:"); private static readonly IntPtr selPostEventAtStart_Handle = Selector.GetHandle("postEvent:atStart:"); private static readonly IntPtr selCurrentEventHandle = Selector.GetHandle("currentEvent"); private static readonly IntPtr selSendEvent_Handle = Selector.GetHandle("sendEvent:"); private static readonly IntPtr selMenuChanged_Handle = Selector.GetHandle("menuChanged:"); private static readonly IntPtr selStandardWindowButtonForStyleMask_Handle = Selector.GetHandle("standardWindowButton:forStyleMask:"); private static readonly IntPtr selStandardWindowButton_Handle = Selector.GetHandle("standardWindowButton:"); private static readonly IntPtr selAddChildWindowOrdered_Handle = Selector.GetHandle("addChildWindow:ordered:"); private static readonly IntPtr selRemoveChildWindow_Handle = Selector.GetHandle("removeChildWindow:"); private static readonly IntPtr selWindowNumbersWithOptions_Handle = Selector.GetHandle("windowNumbersWithOptions:"); private static readonly IntPtr selWindowNumberAtPointBelowWindowWithWindowNumber_Handle = Selector.GetHandle("windowNumberAtPoint:belowWindowWithWindowNumber:"); private static readonly IntPtr selSelectNextKeyView_Handle = Selector.GetHandle("selectNextKeyView:"); private static readonly IntPtr selSelectPreviousKeyView_Handle = Selector.GetHandle("selectPreviousKeyView:"); private static readonly IntPtr selSelectKeyViewFollowingView_Handle = Selector.GetHandle("selectKeyViewFollowingView:"); private static readonly IntPtr selSelectKeyViewPrecedingView_Handle = Selector.GetHandle("selectKeyViewPrecedingView:"); private static readonly IntPtr selKeyViewSelectionDirectionHandle = Selector.GetHandle("keyViewSelectionDirection"); private static readonly IntPtr selDisableKeyEquivalentForDefaultButtonCellHandle = Selector.GetHandle("disableKeyEquivalentForDefaultButtonCell"); private static readonly IntPtr selEnableKeyEquivalentForDefaultButtonCellHandle = Selector.GetHandle("enableKeyEquivalentForDefaultButtonCell"); private static readonly IntPtr selRecalculateKeyViewLoopHandle = Selector.GetHandle("recalculateKeyViewLoop"); private static readonly IntPtr selToggleToolbarShown_Handle = Selector.GetHandle("toggleToolbarShown:"); private static readonly IntPtr selRunToolbarCustomizationPalette_Handle = Selector.GetHandle("runToolbarCustomizationPalette:"); private static readonly IntPtr selRegisterForDraggedTypes_Handle = Selector.GetHandle("registerForDraggedTypes:"); private static readonly IntPtr selUnregisterDraggedTypesHandle = Selector.GetHandle("unregisterDraggedTypes"); private static readonly IntPtr selDisableSnapshotRestorationHandle = Selector.GetHandle("disableSnapshotRestoration"); private static readonly IntPtr selEnableSnapshotRestorationHandle = Selector.GetHandle("enableSnapshotRestoration"); private static readonly IntPtr selUpdateConstraintsIfNeededHandle = Selector.GetHandle("updateConstraintsIfNeeded"); private static readonly IntPtr selLayoutIfNeededHandle = Selector.GetHandle("layoutIfNeeded"); private static readonly IntPtr selSetAnchorAttributeForOrientation_Handle = Selector.GetHandle("setAnchorAttribute:forOrientation:"); private static readonly IntPtr selVisualizeConstraints_Handle = Selector.GetHandle("visualizeConstraints:"); private static readonly IntPtr selConvertRectToScreen_Handle = Selector.GetHandle("convertRectToScreen:"); private static readonly IntPtr selConvertRectFromScreen_Handle = Selector.GetHandle("convertRectFromScreen:"); private static readonly IntPtr selConvertRectToBacking_Handle = Selector.GetHandle("convertRectToBacking:"); private static readonly IntPtr selConvertRectFromBacking_Handle = Selector.GetHandle("convertRectFromBacking:"); private static readonly IntPtr selBackingAlignedRectOptions_Handle = Selector.GetHandle("backingAlignedRect:options:"); private static readonly IntPtr selToggleFullScreen_Handle = Selector.GetHandle("toggleFullScreen:"); private static readonly IntPtr selAnimationForKey_Handle = Selector.GetHandle("animationForKey:"); private static readonly IntPtr selDefaultAnimationForKey_Handle = Selector.GetHandle("defaultAnimationForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSWindow"); private object __mt_RepresentedUrl_var; private object __mt_ContentView_var; private object __mt_WeakDelegate_var; private object __mt_FirstResponder_var; private object __mt_BackgroundColor_var; private object __mt_MiniWindowImage_var; private object __mt_DockTile_var; private object __mt_Screen_var; private object __mt_DeepestScreen_var; private object __mt_DeviceDescription_var; private object __mt_WindowController_var; private object __mt_AttachedSheet_var; private object __mt_ChildWindows_var; private object __mt_ParentWindow_var; private object __mt_GraphicsContext_var; private object __mt_ColorSpace_var; private object __mt_InitialFirstResponder_var; private object __mt_DefaultButtonCell_var; private object __mt_Toolbar_var; private object __mt_EffectiveAppearance_var; private object __mt_Appearance_var; private object __mt_Animator_var; private object __mt_Animations_var; private static NSString _DidBecomeKeyNotification; private static NSString _DidBecomeMainNotification; private static NSString _DidChangeScreenNotification; private static NSString _DidDeminiaturizeNotification; private static NSString _DidExposeNotification; private static NSString _DidMiniaturizeNotification; private static NSString _DidMoveNotification; private static NSString _DidResignKeyNotification; private static NSString _DidResignMainNotification; private static NSString _DidResizeNotification; private static NSString _DidUpdateNotification; private static NSString _WillCloseNotification; private static NSString _WillMiniaturizeNotification; private static NSString _WillMoveNotification; private static NSString _WillBeginSheetNotification; private static NSString _DidEndSheetNotification; private static NSString _DidChangeScreenProfileNotification; private static NSString _WillStartLiveResizeNotification; private static NSString _DidEndLiveResizeNotification; private static NSString _WillEnterFullScreenNotification; private static NSString _DidEnterFullScreenNotification; private static NSString _WillExitFullScreenNotification; private static NSString _DidExitFullScreenNotification; private static NSString _WillEnterVersionBrowserNotification; private static NSString _DidEnterVersionBrowserNotification; private static NSString _WillExitVersionBrowserNotification; private static NSString _DidExitVersionBrowserNotification; public string FrameAutosaveName { get { return GetFrameAutosaveName(); } set { SetFrameAutosaveName(value); } } public override IntPtr ClassHandle => class_ptr; public static NSWindowDepth DefaultDepthLimit { [Export("defaultDepthLimit")] get { NSApplication.EnsureUIThread(); return (NSWindowDepth)Messaging.Int64_objc_msgSend(class_ptr, selDefaultDepthLimitHandle); } } public virtual string Title { [Export("title")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSUrl RepresentedUrl { [Export("representedURL")] get { NSApplication.EnsureUIThread(); return (NSUrl)(__mt_RepresentedUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedURLHandle))))); } [Export("setRepresentedURL:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedURL_Handle, value.Handle); } __mt_RepresentedUrl_var = value; } } public virtual string RepresentedFilename { [Export("representedFilename")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedFilenameHandle)); } [Export("setRepresentedFilename:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRepresentedFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRepresentedFilename_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ExcludedFromWindowsMenu { [Export("isExcludedFromWindowsMenu")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExcludedFromWindowsMenuHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExcludedFromWindowsMenuHandle); } } public virtual NSView ContentView { [Export("contentView")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_ContentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentViewHandle))))); } [Export("setContentView:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentView_Handle, value.Handle); } __mt_ContentView_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSWindowDelegate Delegate { get { return WeakDelegate as NSWindowDelegate; } set { WeakDelegate = value; } } public virtual long WindowNumber { [Export("windowNumber")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWindowNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWindowNumberHandle); } } public virtual NSWindowStyle StyleMask { [Export("styleMask")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowStyle)Messaging.UInt64_objc_msgSend(base.Handle, selStyleMaskHandle); } return (NSWindowStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStyleMaskHandle); } [Export("setStyleMask:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetStyleMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetStyleMask_Handle, (ulong)value); } } } public virtual CGRect Frame { [Export("frame")] get { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } } public virtual bool InLiveResize { [Export("inLiveResize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selInLiveResizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selInLiveResizeHandle); } } public virtual bool ShowsResizeIndicator { [Export("showsResizeIndicator")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsResizeIndicatorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsResizeIndicatorHandle); } [Export("setShowsResizeIndicator:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsResizeIndicator_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsResizeIndicator_Handle, value); } } } public virtual CGSize ResizeIncrements { [Export("resizeIncrements")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selResizeIncrementsHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selResizeIncrementsHandle); } [Export("setResizeIncrements:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetResizeIncrements_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetResizeIncrements_Handle, value); } } } public virtual CGSize AspectRatio { [Export("aspectRatio")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selAspectRatioHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selAspectRatioHandle); } [Export("setAspectRatio:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetAspectRatio_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetAspectRatio_Handle, value); } } } public virtual CGSize ContentResizeIncrements { [Export("contentResizeIncrements")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentResizeIncrementsHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentResizeIncrementsHandle); } [Export("setContentResizeIncrements:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentResizeIncrements_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentResizeIncrements_Handle, value); } } } public virtual CGSize ContentAspectRatio { [Export("contentAspectRatio")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentAspectRatioHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentAspectRatioHandle); } [Export("setContentAspectRatio:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentAspectRatio_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentAspectRatio_Handle, value); } } } public virtual bool FlushWindowDisabled { [Export("isFlushWindowDisabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFlushWindowDisabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFlushWindowDisabledHandle); } } public virtual bool ViewsNeedDisplay { [Export("viewsNeedDisplay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selViewsNeedDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selViewsNeedDisplayHandle); } [Export("setViewsNeedDisplay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetViewsNeedDisplay_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetViewsNeedDisplay_Handle, value); } } } public virtual bool Autodisplay { [Export("isAutodisplay")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAutodisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAutodisplayHandle); } [Export("setAutodisplay:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutodisplay_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutodisplay_Handle, value); } } } public virtual bool PreservesContentDuringLiveResize { [Export("preservesContentDuringLiveResize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesContentDuringLiveResizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesContentDuringLiveResizeHandle); } [Export("setPreservesContentDuringLiveResize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesContentDuringLiveResize_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesContentDuringLiveResize_Handle, value); } } } public virtual NSResponder FirstResponder { [Export("firstResponder")] get { NSApplication.EnsureUIThread(); return (NSResponder)(__mt_FirstResponder_var = ((!IsDirectBinding) ? ((NSResponder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFirstResponderHandle))) : ((NSResponder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFirstResponderHandle))))); } } public virtual long ResizeFlags { [Export("resizeFlags")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selResizeFlagsHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selResizeFlagsHandle); } } public virtual bool ReleasedWhenClosed { [Export("isReleasedWhenClosed")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReleasedWhenClosedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReleasedWhenClosedHandle); } [Export("setReleasedWhenClosed:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReleasedWhenClosed_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReleasedWhenClosed_Handle, value); } } } public virtual bool IsZoomed { [Export("isZoomed")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsZoomedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsZoomedHandle); } [Export("setIsZoomed:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsZoomed_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsZoomed_Handle, value); } } } public virtual bool IsMiniaturized { [Export("isMiniaturized")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMiniaturizedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMiniaturizedHandle); } [Export("setIsMiniaturized:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsMiniaturized_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsMiniaturized_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { NSApplication.EnsureUIThread(); return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool IsMovable { [Export("isMovable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMovableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMovableHandle); } [Export("setMovable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMovable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMovable_Handle, value); } } } public virtual bool MovableByWindowBackground { [Export("isMovableByWindowBackground")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMovableByWindowBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMovableByWindowBackgroundHandle); } [Export("setMovableByWindowBackground:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMovableByWindowBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMovableByWindowBackground_Handle, value); } } } public virtual bool HidesOnDeactivate { [Export("hidesOnDeactivate")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHidesOnDeactivateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHidesOnDeactivateHandle); } [Export("setHidesOnDeactivate:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidesOnDeactivate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidesOnDeactivate_Handle, value); } } } public virtual bool CanHide { [Export("canHide")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanHideHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanHideHandle); } [Export("setCanHide:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanHide_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanHide_Handle, value); } } } public virtual NSImage MiniWindowImage { [Export("miniwindowImage")] get { NSApplication.EnsureUIThread(); return (NSImage)(__mt_MiniWindowImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMiniwindowImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMiniwindowImageHandle))))); } [Export("setMiniwindowImage:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMiniwindowImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMiniwindowImage_Handle, value.Handle); } __mt_MiniWindowImage_var = value; } } public virtual string MiniWindowTitle { [Export("miniwindowTitle")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMiniwindowTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMiniwindowTitleHandle)); } [Export("setMiniwindowTitle:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMiniwindowTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMiniwindowTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDockTile DockTile { [Export("dockTile")] get { NSApplication.EnsureUIThread(); return (NSDockTile)(__mt_DockTile_var = ((!IsDirectBinding) ? ((NSDockTile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDockTileHandle))) : ((NSDockTile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDockTileHandle))))); } } public virtual bool DocumentEdited { [Export("isDocumentEdited")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDocumentEditedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDocumentEditedHandle); } [Export("setDocumentEdited:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDocumentEdited_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDocumentEdited_Handle, value); } } } public virtual bool IsVisible { [Export("isVisible")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVisibleHandle); } [Export("setIsVisible:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsVisible_Handle, value); } } } public virtual bool IsKeyWindow { [Export("isKeyWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsKeyWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsKeyWindowHandle); } } public virtual bool IsMainWindow { [Export("isMainWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMainWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMainWindowHandle); } } public virtual bool CanBecomeKeyWindow { [Export("canBecomeKeyWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanBecomeKeyWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanBecomeKeyWindowHandle); } } public virtual bool CanBecomeMainWindow { [Export("canBecomeMainWindow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanBecomeMainWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanBecomeMainWindowHandle); } } public virtual bool PreventsApplicationTerminationWhenModal { [Export("preventsApplicationTerminationWhenModal")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreventsApplicationTerminationWhenModalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreventsApplicationTerminationWhenModalHandle); } [Export("setPreventsApplicationTerminationWhenModal:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreventsApplicationTerminationWhenModal_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreventsApplicationTerminationWhenModal_Handle, value); } } } public virtual bool IsOneShot { [Export("isOneShot")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOneShotHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOneShotHandle); } } public virtual bool AreCursorRectsEnabled { [Export("areCursorRectsEnabled")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAreCursorRectsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAreCursorRectsEnabledHandle); } } public virtual bool AllowsToolTipsWhenApplicationIsInactive { [Export("allowsToolTipsWhenApplicationIsInactive")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsToolTipsWhenApplicationIsInactiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsToolTipsWhenApplicationIsInactiveHandle); } [Export("setAllowsToolTipsWhenApplicationIsInactive:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsToolTipsWhenApplicationIsInactive_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsToolTipsWhenApplicationIsInactive_Handle, value); } } } public virtual NSBackingStore BackingType { [Export("backingType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSBackingStore)Messaging.UInt64_objc_msgSend(base.Handle, selBackingTypeHandle); } return (NSBackingStore)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBackingTypeHandle); } [Export("setBackingType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetBackingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetBackingType_Handle, (ulong)value); } } } public virtual NSWindowLevel Level { [Export("level")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowLevel)Messaging.Int64_objc_msgSend(base.Handle, selLevelHandle); } return (NSWindowLevel)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLevelHandle); } [Export("setLevel:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetLevel_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetLevel_Handle, (long)value); } } } public virtual NSWindowDepth DepthLimit { [Export("depthLimit")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowDepth)Messaging.Int64_objc_msgSend(base.Handle, selDepthLimitHandle); } return (NSWindowDepth)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDepthLimitHandle); } [Export("setDepthLimit:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDepthLimit_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDepthLimit_Handle, (long)value); } } } public virtual bool HasDynamicDepthLimit { [Export("hasDynamicDepthLimit")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasDynamicDepthLimitHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasDynamicDepthLimitHandle); } [Export("setDynamicDepthLimit:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDynamicDepthLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDynamicDepthLimit_Handle, value); } } } public virtual NSScreen Screen { [Export("screen")] get { NSApplication.EnsureUIThread(); return (NSScreen)(__mt_Screen_var = ((!IsDirectBinding) ? ((NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScreenHandle))) : ((NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selScreenHandle))))); } } public virtual NSScreen DeepestScreen { [Export("deepestScreen")] get { NSApplication.EnsureUIThread(); return (NSScreen)(__mt_DeepestScreen_var = ((!IsDirectBinding) ? ((NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeepestScreenHandle))) : ((NSScreen)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeepestScreenHandle))))); } } public virtual bool CanStoreColor { [Export("canStoreColor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanStoreColorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanStoreColorHandle); } } public virtual bool HasShadow { [Export("hasShadow")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasShadowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasShadowHandle); } [Export("setHasShadow:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasShadow_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasShadow_Handle, value); } } } public virtual double AlphaValue { [Export("alphaValue")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAlphaValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAlphaValueHandle); } [Export("setAlphaValue:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAlphaValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAlphaValue_Handle, value); } } } public virtual bool IsOpaque { [Export("isOpaque")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } [Export("setOpaque:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOpaque_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOpaque_Handle, value); } } } public virtual NSWindowSharingType SharingType { [Export("sharingType")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowSharingType)Messaging.UInt64_objc_msgSend(base.Handle, selSharingTypeHandle); } return (NSWindowSharingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSharingTypeHandle); } [Export("setSharingType:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetSharingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetSharingType_Handle, (ulong)value); } } } public virtual NSWindowBackingLocation PreferredBackingLocation { [Export("preferredBackingLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowBackingLocation)Messaging.UInt64_objc_msgSend(base.Handle, selPreferredBackingLocationHandle); } return (NSWindowBackingLocation)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPreferredBackingLocationHandle); } [Export("setPreferredBackingLocation:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetPreferredBackingLocation_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetPreferredBackingLocation_Handle, (ulong)value); } } } public virtual NSWindowBackingLocation BackingLocation { [Export("backingLocation")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowBackingLocation)Messaging.UInt64_objc_msgSend(base.Handle, selBackingLocationHandle); } return (NSWindowBackingLocation)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selBackingLocationHandle); } } public virtual bool AllowsConcurrentViewDrawing { [Export("allowsConcurrentViewDrawing")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsConcurrentViewDrawingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsConcurrentViewDrawingHandle); } [Export("setAllowsConcurrentViewDrawing:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsConcurrentViewDrawing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsConcurrentViewDrawing_Handle, value); } } } public virtual bool DisplaysWhenScreenProfileChanges { [Export("displaysWhenScreenProfileChanges")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysWhenScreenProfileChangesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysWhenScreenProfileChangesHandle); } [Export("setDisplaysWhenScreenProfileChanges:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysWhenScreenProfileChanges_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysWhenScreenProfileChanges_Handle, value); } } } public virtual bool CanBecomeVisibleWithoutLogin { [Export("canBecomeVisibleWithoutLogin")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanBecomeVisibleWithoutLoginHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanBecomeVisibleWithoutLoginHandle); } [Export("setCanBecomeVisibleWithoutLogin:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanBecomeVisibleWithoutLogin_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanBecomeVisibleWithoutLogin_Handle, value); } } } public virtual NSWindowCollectionBehavior CollectionBehavior { [Export("collectionBehavior")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowCollectionBehavior)Messaging.UInt64_objc_msgSend(base.Handle, selCollectionBehaviorHandle); } return (NSWindowCollectionBehavior)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCollectionBehaviorHandle); } [Export("setCollectionBehavior:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCollectionBehavior_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCollectionBehavior_Handle, (ulong)value); } } } public virtual bool IsOnActiveSpace { [Export("isOnActiveSpace")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOnActiveSpaceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOnActiveSpaceHandle); } } public virtual CGSize MinSize { [Export("minSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMinSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMinSizeHandle); } [Export("setMinSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMinSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMinSize_Handle, value); } } } public virtual CGSize MaxSize { [Export("maxSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaxSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaxSizeHandle); } [Export("setMaxSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaxSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaxSize_Handle, value); } } } public virtual CGSize ContentMinSize { [Export("contentMinSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentMinSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentMinSizeHandle); } [Export("setContentMinSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentMinSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentMinSize_Handle, value); } } } public virtual CGSize ContentMaxSize { [Export("contentMaxSize")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selContentMaxSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selContentMaxSizeHandle); } [Export("setContentMaxSize:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentMaxSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentMaxSize_Handle, value); } } } public virtual bool AcceptsMouseMovedEvents { [Export("acceptsMouseMovedEvents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAcceptsMouseMovedEventsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAcceptsMouseMovedEventsHandle); } [Export("setAcceptsMouseMovedEvents:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAcceptsMouseMovedEvents_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAcceptsMouseMovedEvents_Handle, value); } } } public virtual bool IgnoresMouseEvents { [Export("ignoresMouseEvents")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIgnoresMouseEventsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIgnoresMouseEventsHandle); } [Export("setIgnoresMouseEvents:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIgnoresMouseEvents_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIgnoresMouseEvents_Handle, value); } } } public virtual NSDictionary DeviceDescription { [Export("deviceDescription")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_DeviceDescription_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceDescriptionHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceDescriptionHandle))))); } } public virtual CGPoint MouseLocationOutsideOfEventStream { [Export("mouseLocationOutsideOfEventStream")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selMouseLocationOutsideOfEventStreamHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selMouseLocationOutsideOfEventStreamHandle); } } public virtual NSObject WindowController { [Export("windowController")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_WindowController_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowControllerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowControllerHandle)))); } [Export("setWindowController:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWindowController_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWindowController_Handle, value.Handle); } __mt_WindowController_var = value; } } public virtual bool IsSheet { [Export("isSheet")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSheetHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSheetHandle); } } public virtual NSWindow AttachedSheet { [Export("attachedSheet")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_AttachedSheet_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttachedSheetHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttachedSheetHandle))))); } } public virtual NSWindow[] ChildWindows { [Export("childWindows")] get { NSApplication.EnsureUIThread(); return (NSWindow[])(__mt_ChildWindows_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildWindowsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChildWindowsHandle)))); } } public virtual NSWindow ParentWindow { [Export("parentWindow")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_ParentWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentWindowHandle))))); } [Export("setParentWindow:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetParentWindow_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetParentWindow_Handle, value?.Handle ?? IntPtr.Zero); } __mt_ParentWindow_var = value; } } public virtual NSGraphicsContext GraphicsContext { [Export("graphicsContext")] get { NSApplication.EnsureUIThread(); return (NSGraphicsContext)(__mt_GraphicsContext_var = ((!IsDirectBinding) ? ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGraphicsContextHandle))) : ((NSGraphicsContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGraphicsContextHandle))))); } } public virtual double UserSpaceScaleFactor { [Export("userSpaceScaleFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selUserSpaceScaleFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selUserSpaceScaleFactorHandle); } } public virtual NSColorSpace ColorSpace { [Export("colorSpace")] get { NSApplication.EnsureUIThread(); return (NSColorSpace)(__mt_ColorSpace_var = ((!IsDirectBinding) ? ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle))) : ((NSColorSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle))))); } [Export("setColorSpace:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColorSpace_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColorSpace_Handle, value.Handle); } __mt_ColorSpace_var = value; } } public virtual NSView InitialFirstResponder { [Export("initialFirstResponder")] get { NSApplication.EnsureUIThread(); return (NSView)(__mt_InitialFirstResponder_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitialFirstResponderHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInitialFirstResponderHandle))))); } [Export("setInitialFirstResponder:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInitialFirstResponder_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInitialFirstResponder_Handle, value.Handle); } __mt_InitialFirstResponder_var = value; } } public virtual NSButtonCell DefaultButtonCell { [Export("defaultButtonCell")] get { NSApplication.EnsureUIThread(); return (NSButtonCell)(__mt_DefaultButtonCell_var = ((!IsDirectBinding) ? ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultButtonCellHandle))) : ((NSButtonCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultButtonCellHandle))))); } [Export("setDefaultButtonCell:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultButtonCell_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultButtonCell_Handle, value.Handle); } __mt_DefaultButtonCell_var = value; } } public virtual bool AutorecalculatesKeyViewLoop { [Export("autorecalculatesKeyViewLoop")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutorecalculatesKeyViewLoopHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutorecalculatesKeyViewLoopHandle); } [Export("setAutorecalculatesKeyViewLoop:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutorecalculatesKeyViewLoop_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutorecalculatesKeyViewLoop_Handle, value); } } } public virtual NSToolbar Toolbar { [Export("toolbar")] get { NSApplication.EnsureUIThread(); return (NSToolbar)(__mt_Toolbar_var = ((!IsDirectBinding) ? ((NSToolbar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolbarHandle))) : ((NSToolbar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selToolbarHandle))))); } [Export("setToolbar:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToolbar_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToolbar_Handle, value.Handle); } __mt_Toolbar_var = value; } } public virtual bool ShowsToolbarButton { [Export("showsToolbarButton")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShowsToolbarButtonHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShowsToolbarButtonHandle); } [Export("setShowsToolbarButton:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsToolbarButton_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsToolbarButton_Handle, value); } } } public virtual IntPtr WindowRef { [Export("windowRef")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selWindowRefHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowRefHandle); } } public virtual bool Restorable { [Export("isRestorable")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRestorableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRestorableHandle); } [Export("setRestorable:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRestorable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRestorable_Handle, value); } } } public virtual Class RestorationClass { [Export("restorationClass")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selRestorationClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRestorationClassHandle)); } [Export("setRestorationClass:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRestorationClass_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRestorationClass_Handle, value.Handle); } } } public virtual double BackingScaleFactor { [Export("backingScaleFactor")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBackingScaleFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBackingScaleFactorHandle); } } public virtual NSWindowAnimationBehavior AnimationBehavior { [Export("animationBehavior")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSWindowAnimationBehavior)Messaging.Int64_objc_msgSend(base.Handle, selAnimationBehaviorHandle); } return (NSWindowAnimationBehavior)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selAnimationBehaviorHandle); } [Export("setAnimationBehavior:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetAnimationBehavior_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetAnimationBehavior_Handle, (long)value); } } } public virtual NSAppearance EffectiveAppearance { [Export("effectiveAppearance")] get { NSApplication.EnsureUIThread(); return (NSAppearance)(__mt_EffectiveAppearance_var = ((!IsDirectBinding) ? ((NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEffectiveAppearanceHandle))) : ((NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEffectiveAppearanceHandle))))); } } public virtual NSAppearance Appearance { [Export("appearance")] get { NSApplication.EnsureUIThread(); return (NSAppearance)(__mt_Appearance_var = ((!IsDirectBinding) ? ((NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAppearanceHandle))) : ((NSAppearance)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAppearanceHandle))))); } [Export("setAppearance:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAppearance_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAppearance_Handle, value.Handle); } __mt_Appearance_var = value; } } public virtual NSObject Animator { [Export("animator")] get { NSApplication.EnsureUIThread(); NSObject nSObject = (NSObject)(__mt_Animator_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimatorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimatorHandle)))); nSObject.SetAsProxy(); return nSObject; } } public virtual NSDictionary Animations { [Export("animations")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_Animations_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationsHandle))))); } [Export("setAnimations:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimations_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimations_Handle, value.Handle); } __mt_Animations_var = value; } } public virtual string Identifier { [Export("identifier")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } [Export("setIdentifier:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("NSWindowDidBecomeKeyNotification", "AppKit")] public static NSString DidBecomeKeyNotification { get { if (_DidBecomeKeyNotification == null) { _DidBecomeKeyNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidBecomeKeyNotification"); } return _DidBecomeKeyNotification; } } [Field("NSWindowDidBecomeMainNotification", "AppKit")] public static NSString DidBecomeMainNotification { get { if (_DidBecomeMainNotification == null) { _DidBecomeMainNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidBecomeMainNotification"); } return _DidBecomeMainNotification; } } [Field("NSWindowDidChangeScreenNotification", "AppKit")] public static NSString DidChangeScreenNotification { get { if (_DidChangeScreenNotification == null) { _DidChangeScreenNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidChangeScreenNotification"); } return _DidChangeScreenNotification; } } [Field("NSWindowDidDeminiaturizeNotification", "AppKit")] public static NSString DidDeminiaturizeNotification { get { if (_DidDeminiaturizeNotification == null) { _DidDeminiaturizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidDeminiaturizeNotification"); } return _DidDeminiaturizeNotification; } } [Field("NSWindowDidExposeNotification", "AppKit")] public static NSString DidExposeNotification { get { if (_DidExposeNotification == null) { _DidExposeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidExposeNotification"); } return _DidExposeNotification; } } [Field("NSWindowDidMiniaturizeNotification", "AppKit")] public static NSString DidMiniaturizeNotification { get { if (_DidMiniaturizeNotification == null) { _DidMiniaturizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidMiniaturizeNotification"); } return _DidMiniaturizeNotification; } } [Field("NSWindowDidMoveNotification", "AppKit")] public static NSString DidMoveNotification { get { if (_DidMoveNotification == null) { _DidMoveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidMoveNotification"); } return _DidMoveNotification; } } [Field("NSWindowDidResignKeyNotification", "AppKit")] public static NSString DidResignKeyNotification { get { if (_DidResignKeyNotification == null) { _DidResignKeyNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidResignKeyNotification"); } return _DidResignKeyNotification; } } [Field("NSWindowDidResignMainNotification", "AppKit")] public static NSString DidResignMainNotification { get { if (_DidResignMainNotification == null) { _DidResignMainNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidResignMainNotification"); } return _DidResignMainNotification; } } [Field("NSWindowDidResizeNotification", "AppKit")] public static NSString DidResizeNotification { get { if (_DidResizeNotification == null) { _DidResizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidResizeNotification"); } return _DidResizeNotification; } } [Field("NSWindowDidUpdateNotification", "AppKit")] public static NSString DidUpdateNotification { get { if (_DidUpdateNotification == null) { _DidUpdateNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidUpdateNotification"); } return _DidUpdateNotification; } } [Field("NSWindowWillCloseNotification", "AppKit")] public static NSString WillCloseNotification { get { if (_WillCloseNotification == null) { _WillCloseNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillCloseNotification"); } return _WillCloseNotification; } } [Field("NSWindowWillMiniaturizeNotification", "AppKit")] public static NSString WillMiniaturizeNotification { get { if (_WillMiniaturizeNotification == null) { _WillMiniaturizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillMiniaturizeNotification"); } return _WillMiniaturizeNotification; } } [Field("NSWindowWillMoveNotification", "AppKit")] public static NSString WillMoveNotification { get { if (_WillMoveNotification == null) { _WillMoveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillMoveNotification"); } return _WillMoveNotification; } } [Field("NSWindowWillBeginSheetNotification", "AppKit")] public static NSString WillBeginSheetNotification { get { if (_WillBeginSheetNotification == null) { _WillBeginSheetNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillBeginSheetNotification"); } return _WillBeginSheetNotification; } } [Field("NSWindowDidEndSheetNotification", "AppKit")] public static NSString DidEndSheetNotification { get { if (_DidEndSheetNotification == null) { _DidEndSheetNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidEndSheetNotification"); } return _DidEndSheetNotification; } } [Field("NSWindowDidChangeScreenProfileNotification", "AppKit")] public static NSString DidChangeScreenProfileNotification { get { if (_DidChangeScreenProfileNotification == null) { _DidChangeScreenProfileNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidChangeScreenProfileNotification"); } return _DidChangeScreenProfileNotification; } } [Field("NSWindowWillStartLiveResizeNotification", "AppKit")] public static NSString WillStartLiveResizeNotification { get { if (_WillStartLiveResizeNotification == null) { _WillStartLiveResizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillStartLiveResizeNotification"); } return _WillStartLiveResizeNotification; } } [Field("NSWindowDidEndLiveResizeNotification", "AppKit")] public static NSString DidEndLiveResizeNotification { get { if (_DidEndLiveResizeNotification == null) { _DidEndLiveResizeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidEndLiveResizeNotification"); } return _DidEndLiveResizeNotification; } } [Field("NSWindowWillEnterFullScreenNotification", "AppKit")] public static NSString WillEnterFullScreenNotification { get { if (_WillEnterFullScreenNotification == null) { _WillEnterFullScreenNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillEnterFullScreenNotification"); } return _WillEnterFullScreenNotification; } } [Field("NSWindowDidEnterFullScreenNotification", "AppKit")] public static NSString DidEnterFullScreenNotification { get { if (_DidEnterFullScreenNotification == null) { _DidEnterFullScreenNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidEnterFullScreenNotification"); } return _DidEnterFullScreenNotification; } } [Field("NSWindowWillExitFullScreenNotification", "AppKit")] public static NSString WillExitFullScreenNotification { get { if (_WillExitFullScreenNotification == null) { _WillExitFullScreenNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillExitFullScreenNotification"); } return _WillExitFullScreenNotification; } } [Field("NSWindowDidExitFullScreenNotification", "AppKit")] public static NSString DidExitFullScreenNotification { get { if (_DidExitFullScreenNotification == null) { _DidExitFullScreenNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidExitFullScreenNotification"); } return _DidExitFullScreenNotification; } } [Field("NSWindowWillEnterVersionBrowserNotification", "AppKit")] public static NSString WillEnterVersionBrowserNotification { get { if (_WillEnterVersionBrowserNotification == null) { _WillEnterVersionBrowserNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillEnterVersionBrowserNotification"); } return _WillEnterVersionBrowserNotification; } } [Field("NSWindowDidEnterVersionBrowserNotification", "AppKit")] public static NSString DidEnterVersionBrowserNotification { get { if (_DidEnterVersionBrowserNotification == null) { _DidEnterVersionBrowserNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidEnterVersionBrowserNotification"); } return _DidEnterVersionBrowserNotification; } } [Field("NSWindowWillExitVersionBrowserNotification", "AppKit")] public static NSString WillExitVersionBrowserNotification { get { if (_WillExitVersionBrowserNotification == null) { _WillExitVersionBrowserNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowWillExitVersionBrowserNotification"); } return _WillExitVersionBrowserNotification; } } [Field("NSWindowDidExitVersionBrowserNotification", "AppKit")] public static NSString DidExitVersionBrowserNotification { get { if (_DidExitVersionBrowserNotification == null) { _DidExitVersionBrowserNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWindowDidExitVersionBrowserNotification"); } return _DidExitVersionBrowserNotification; } } public NSObjectPredicate WindowShouldClose { get { return EnsureNSWindowDelegate().windowShouldClose; } set { EnsureNSWindowDelegate().windowShouldClose = value; } } public NSWindowClient WillReturnFieldEditor { get { return EnsureNSWindowDelegate().willReturnFieldEditor; } set { EnsureNSWindowDelegate().willReturnFieldEditor = value; } } public NSWindowResize WillResize { get { return EnsureNSWindowDelegate().willResize; } set { EnsureNSWindowDelegate().willResize = value; } } public NSWindowFrame WillUseStandardFrame { get { return EnsureNSWindowDelegate().willUseStandardFrame; } set { EnsureNSWindowDelegate().willUseStandardFrame = value; } } public NSWindowFramePredicate ShouldZoom { get { return EnsureNSWindowDelegate().shouldZoom; } set { EnsureNSWindowDelegate().shouldZoom = value; } } public NSWindowUndoManager WillReturnUndoManager { get { return EnsureNSWindowDelegate().willReturnUndoManager; } set { EnsureNSWindowDelegate().willReturnUndoManager = value; } } public NSWindowSheetRect WillPositionSheet { get { return EnsureNSWindowDelegate().willPositionSheet; } set { EnsureNSWindowDelegate().willPositionSheet = value; } } public NSWindowMenu ShouldPopUpDocumentPathMenu { get { return EnsureNSWindowDelegate().shouldPopUpDocumentPathMenu; } set { EnsureNSWindowDelegate().shouldPopUpDocumentPathMenu = value; } } public NSWindowDocumentDrag ShouldDragDocumentWithEvent { get { return EnsureNSWindowDelegate().shouldDragDocumentWithEvent; } set { EnsureNSWindowDelegate().shouldDragDocumentWithEvent = value; } } public NSWindowSize WillUseFullScreenContentSize { get { return EnsureNSWindowDelegate().willUseFullScreenContentSize; } set { EnsureNSWindowDelegate().willUseFullScreenContentSize = value; } } public NSWindowApplicationPresentationOptions WillUseFullScreenPresentationOptions { get { return EnsureNSWindowDelegate().willUseFullScreenPresentationOptions; } set { EnsureNSWindowDelegate().willUseFullScreenPresentationOptions = value; } } public NSWindowWindows CustomWindowsToEnterFullScreen { get { return EnsureNSWindowDelegate().customWindowsToEnterFullScreen; } set { EnsureNSWindowDelegate().customWindowsToEnterFullScreen = value; } } public NSWindowWindows CustomWindowsToExitFullScreen { get { return EnsureNSWindowDelegate().customWindowsToExitFullScreen; } set { EnsureNSWindowDelegate().customWindowsToExitFullScreen = value; } } public NSWindowSizeSize WillResizeForVersionBrowser { get { return EnsureNSWindowDelegate().willResizeForVersionBrowser; } set { EnsureNSWindowDelegate().willResizeForVersionBrowser = value; } } public event EventHandler DidResize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didResize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didResize, value); } } public event EventHandler DidExpose { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExpose = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didExpose, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExpose = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didExpose, value); } } public event EventHandler WillMove { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willMove = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willMove, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willMove = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willMove, value); } } public event EventHandler DidMoved { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didMoved = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didMoved, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didMoved = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didMoved, value); } } public event EventHandler DidBecomeKey { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didBecomeKey = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didBecomeKey, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didBecomeKey = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didBecomeKey, value); } } public event EventHandler DidResignKey { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResignKey = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didResignKey, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResignKey = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didResignKey, value); } } public event EventHandler DidBecomeMain { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didBecomeMain = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didBecomeMain, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didBecomeMain = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didBecomeMain, value); } } public event EventHandler DidResignMain { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResignMain = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didResignMain, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didResignMain = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didResignMain, value); } } public event EventHandler WillClose { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willClose = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willClose, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willClose = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willClose, value); } } public event EventHandler WillMiniaturize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willMiniaturize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willMiniaturize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willMiniaturize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willMiniaturize, value); } } public event EventHandler DidMiniaturize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didMiniaturize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didMiniaturize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didMiniaturize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didMiniaturize, value); } } public event EventHandler DidDeminiaturize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didDeminiaturize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didDeminiaturize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didDeminiaturize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didDeminiaturize, value); } } public event EventHandler DidUpdate { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didUpdate = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didUpdate, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didUpdate = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didUpdate, value); } } public event EventHandler DidChangeScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didChangeScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didChangeScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didChangeScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didChangeScreen, value); } } public event EventHandler DidChangeScreenProfile { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didChangeScreenProfile = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didChangeScreenProfile, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didChangeScreenProfile = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didChangeScreenProfile, value); } } public event EventHandler WillBeginSheet { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willBeginSheet = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willBeginSheet, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willBeginSheet = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willBeginSheet, value); } } public event EventHandler DidEndSheet { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEndSheet = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didEndSheet, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEndSheet = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didEndSheet, value); } } public event EventHandler WillStartLiveResize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willStartLiveResize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willStartLiveResize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willStartLiveResize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willStartLiveResize, value); } } public event EventHandler DidEndLiveResize { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEndLiveResize = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didEndLiveResize, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEndLiveResize = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didEndLiveResize, value); } } public event EventHandler WillEnterFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEnterFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willEnterFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEnterFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willEnterFullScreen, value); } } public event EventHandler DidEnterFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEnterFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didEnterFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEnterFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didEnterFullScreen, value); } } public event EventHandler WillExitFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willExitFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willExitFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willExitFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willExitFullScreen, value); } } public event EventHandler DidExitFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExitFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didExitFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExitFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didExitFullScreen, value); } } public event EventHandler DidFailToEnterFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didFailToEnterFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didFailToEnterFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didFailToEnterFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didFailToEnterFullScreen, value); } } public event EventHandler DidFailToExitFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didFailToExitFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didFailToExitFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didFailToExitFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didFailToExitFullScreen, value); } } public event EventHandler StartCustomAnimationToEnterFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.startCustomAnimationToEnterFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.startCustomAnimationToEnterFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.startCustomAnimationToEnterFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.startCustomAnimationToEnterFullScreen, value); } } public event EventHandler StartCustomAnimationToExitFullScreen { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.startCustomAnimationToExitFullScreen = (EventHandler)System.Delegate.Combine(nSWindowDelegate.startCustomAnimationToExitFullScreen, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.startCustomAnimationToExitFullScreen = (EventHandler)System.Delegate.Remove(nSWindowDelegate.startCustomAnimationToExitFullScreen, value); } } public event EventHandler WillEncodeRestorableState { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEncodeRestorableState = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willEncodeRestorableState, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEncodeRestorableState = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willEncodeRestorableState, value); } } public event EventHandler DidDecodeRestorableState { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didDecodeRestorableState = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didDecodeRestorableState, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didDecodeRestorableState = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didDecodeRestorableState, value); } } public event EventHandler WillEnterVersionBrowser { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEnterVersionBrowser = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willEnterVersionBrowser, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willEnterVersionBrowser = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willEnterVersionBrowser, value); } } public event EventHandler DidEnterVersionBrowser { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEnterVersionBrowser = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didEnterVersionBrowser, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didEnterVersionBrowser = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didEnterVersionBrowser, value); } } public event EventHandler WillExitVersionBrowser { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willExitVersionBrowser = (EventHandler)System.Delegate.Combine(nSWindowDelegate.willExitVersionBrowser, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.willExitVersionBrowser = (EventHandler)System.Delegate.Remove(nSWindowDelegate.willExitVersionBrowser, value); } } public event EventHandler DidExitVersionBrowser { add { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExitVersionBrowser = (EventHandler)System.Delegate.Combine(nSWindowDelegate.didExitVersionBrowser, value); } remove { _NSWindowDelegate nSWindowDelegate = EnsureNSWindowDelegate(); nSWindowDelegate.didExitVersionBrowser = (EventHandler)System.Delegate.Remove(nSWindowDelegate.didExitVersionBrowser, value); } } private NSWindow(IntPtr windowRef, NSObjectFlag x) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, selInitWithWindowRef); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitWithWindowRef); } } public static NSWindow FromWindowRef(IntPtr windowRef) { return new NSWindow(windowRef, NSObjectFlag.Empty); } public void Close() { if (WindowController == null) { bool releasedWhenClosed = ReleasedWhenClosed; if (releasedWhenClosed) { CFObject.CFRetain(base.Handle); } _Close(); if (releasedWhenClosed) { Dispose(); } } else { _Close(); } } public NSEvent NextEventMatchingMask(NSEventMask mask) { return NextEventMatchingMask((uint)mask); } public NSEvent NextEventMatchingMask(NSEventMask mask, NSDate expiration, string mode, bool deqFlag) { return NextEventMatchingMask((uint)mask, expiration, mode, deqFlag); } public void DiscardEventsMatchingMask(NSEventMask mask, NSEvent beforeLastEvent) { DiscardEventsMatchingMask((uint)mask, beforeLastEvent); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSWindow() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSWindow(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindow(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindow(IntPtr handle) : base(handle) { } [Export("frameRectForContentRect:styleMask:")] public static CGRect FrameRectFor(CGRect contectRect, NSWindowStyle styleMask) { NSApplication.EnsureUIThread(); Messaging.CGRect_objc_msgSend_stret_CGRect_UInt64(out var retval, class_ptr, selFrameRectForContentRectStyleMask_Handle, contectRect, (ulong)styleMask); return retval; } [Export("contentRectForFrameRect:styleMask:")] public static CGRect ContentRectFor(CGRect forFrameRect, NSWindowStyle styleMask) { NSApplication.EnsureUIThread(); Messaging.CGRect_objc_msgSend_stret_CGRect_UInt64(out var retval, class_ptr, selContentRectForFrameRectStyleMask_Handle, forFrameRect, (ulong)styleMask); return retval; } [Export("minFrameWidthWithTitle:styleMask:")] public static double MinFrameWidthWithTitle(string aTitle, NSWindowStyle aStyle) { NSApplication.EnsureUIThread(); if (aTitle == null) { throw new ArgumentNullException("aTitle"); } IntPtr arg = NSString.CreateNative(aTitle); double result = Messaging.Double_objc_msgSend_IntPtr_UInt64(class_ptr, selMinFrameWidthWithTitleStyleMask_Handle, arg, (ulong)aStyle); NSString.ReleaseNative(arg); return result; } [Export("frameRectForContentRect:")] public virtual CGRect FrameRectFor(CGRect contentRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selFrameRectForContentRect_Handle, contentRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selFrameRectForContentRect_Handle, contentRect); } return retval; } [Export("contentRectForFrameRect:")] public virtual CGRect ContentRectFor(CGRect frameRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selContentRectForFrameRect_Handle, frameRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selContentRectForFrameRect_Handle, frameRect); } return retval; } [Export("initWithContentRect:styleMask:backing:defer:")] public NSWindow(CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_UInt64_UInt64_bool(base.Handle, selInitWithContentRectStyleMaskBackingDefer_Handle, contentRect, (ulong)aStyle, (ulong)bufferingType, deferCreation); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_UInt64_UInt64_bool(base.SuperHandle, selInitWithContentRectStyleMaskBackingDefer_Handle, contentRect, (ulong)aStyle, (ulong)bufferingType, deferCreation); } } [Export("initWithContentRect:styleMask:backing:defer:screen:")] public NSWindow(CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation, NSScreen screen) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (screen == null) { throw new ArgumentNullException("screen"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_UInt64_UInt64_bool_IntPtr(base.Handle, selInitWithContentRectStyleMaskBackingDeferScreen_Handle, contentRect, (ulong)aStyle, (ulong)bufferingType, deferCreation, screen.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_UInt64_UInt64_bool_IntPtr(base.SuperHandle, selInitWithContentRectStyleMaskBackingDeferScreen_Handle, contentRect, (ulong)aStyle, (ulong)bufferingType, deferCreation, screen.Handle); } } [Export("setTitleWithRepresentedFilename:")] public virtual void SetTitleWithRepresentedFilename(string filename) { NSApplication.EnsureUIThread(); if (filename == null) { throw new ArgumentNullException("filename"); } IntPtr arg = NSString.CreateNative(filename); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitleWithRepresentedFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitleWithRepresentedFilename_Handle, arg); } NSString.ReleaseNative(arg); } [Export("setExcludedFromWindowsMenu:")] public virtual void SetExcludedFromWindowsMenu(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetExcludedFromWindowsMenu_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetExcludedFromWindowsMenu_Handle, flag); } } [Export("fieldEditor:forObject:")] public virtual NSText FieldEditor(bool createFlag, NSObject forObject) { NSApplication.EnsureUIThread(); if (forObject == null) { throw new ArgumentNullException("forObject"); } if (IsDirectBinding) { return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool_IntPtr(base.Handle, selFieldEditorForObject_Handle, createFlag, forObject.Handle)); } return (NSText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selFieldEditorForObject_Handle, createFlag, forObject.Handle)); } [Export("endEditingFor:")] public virtual void EndEditingFor(NSObject anObject) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEndEditingFor_Handle, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEndEditingFor_Handle, anObject?.Handle ?? IntPtr.Zero); } } [Export("constrainFrameRect:toScreen:")] public virtual CGRect ConstrainFrameRect(CGRect frameRect, NSScreen screen) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConstrainFrameRectToScreen_Handle, frameRect, screen?.Handle ?? IntPtr.Zero); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConstrainFrameRectToScreen_Handle, frameRect, screen?.Handle ?? IntPtr.Zero); } return retval; } [Export("setFrame:display:")] public virtual void SetFrame(CGRect frameRect, bool display) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool(base.Handle, selSetFrameDisplay_Handle, frameRect, display); } else { Messaging.void_objc_msgSendSuper_CGRect_bool(base.SuperHandle, selSetFrameDisplay_Handle, frameRect, display); } } [Export("setContentSize:")] public virtual void SetContentSize(CGSize aSize) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetContentSize_Handle, aSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetContentSize_Handle, aSize); } } [Export("setFrameOrigin:")] public virtual void SetFrameOrigin(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetFrameOrigin_Handle, aPoint); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetFrameOrigin_Handle, aPoint); } } [Export("setFrameTopLeftPoint:")] public virtual void SetFrameTopLeftPoint(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetFrameTopLeftPoint_Handle, aPoint); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetFrameTopLeftPoint_Handle, aPoint); } } [Export("cascadeTopLeftFromPoint:")] public virtual CGPoint CascadeTopLeftFromPoint(CGPoint topLeftPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selCascadeTopLeftFromPoint_Handle, topLeftPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selCascadeTopLeftFromPoint_Handle, topLeftPoint); } [Export("animationResizeTime:")] public virtual double AnimationResizeTime(CGRect newFrame) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_CGRect(base.Handle, selAnimationResizeTime_Handle, newFrame); } return Messaging.Double_objc_msgSendSuper_CGRect(base.SuperHandle, selAnimationResizeTime_Handle, newFrame); } [Export("setFrame:display:animate:")] public virtual void SetFrame(CGRect frameRect, bool display, bool animate) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_bool_bool(base.Handle, selSetFrameDisplayAnimate_Handle, frameRect, display, animate); } else { Messaging.void_objc_msgSendSuper_CGRect_bool_bool(base.SuperHandle, selSetFrameDisplayAnimate_Handle, frameRect, display, animate); } } [Export("useOptimizedDrawing:")] public virtual void UseOptimizedDrawing(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selUseOptimizedDrawing_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selUseOptimizedDrawing_Handle, flag); } } [Export("disableFlushWindow")] public virtual void DisableFlushWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableFlushWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableFlushWindowHandle); } } [Export("enableFlushWindow")] public virtual void EnableFlushWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableFlushWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableFlushWindowHandle); } } [Export("flushWindow")] public virtual void FlushWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlushWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlushWindowHandle); } } [Export("flushWindowIfNeeded")] public virtual void FlushWindowIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFlushWindowIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFlushWindowIfNeededHandle); } } [Export("displayIfNeeded")] public virtual void DisplayIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayIfNeededHandle); } } [Export("display")] public virtual void Display() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayHandle); } } [Export("update")] public virtual void Update() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateHandle); } } [Export("makeFirstResponder:")] public virtual bool MakeFirstResponder(NSResponder aResponder) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selMakeFirstResponder_Handle, aResponder?.Handle ?? IntPtr.Zero); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selMakeFirstResponder_Handle, aResponder?.Handle ?? IntPtr.Zero); } [Export("keyDown:")] public new virtual void KeyDown(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selKeyDown_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selKeyDown_Handle, theEvent.Handle); } } [Export("close")] internal virtual void _Close() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("miniaturize:")] public virtual void Miniaturize(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMiniaturize_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMiniaturize_Handle, sender.Handle); } } [Export("deminiaturize:")] public virtual void Deminiaturize(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeminiaturize_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeminiaturize_Handle, sender.Handle); } } [Export("zoom:")] public virtual void Zoom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoom_Handle, sender.Handle); } } [Export("tryToPerform:with:")] public virtual bool TryToPerform(Selector anAction, NSObject anObject) { NSApplication.EnsureUIThread(); if (anAction == null) { throw new ArgumentNullException("anAction"); } if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selTryToPerformWith_Handle, anAction.Handle, anObject.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTryToPerformWith_Handle, anAction.Handle, anObject.Handle); } [Export("validRequestorForSendType:returnType:")] public virtual NSObject ValidRequestorForSendType(string sendType, string returnType) { NSApplication.EnsureUIThread(); if (sendType == null) { throw new ArgumentNullException("sendType"); } if (returnType == null) { throw new ArgumentNullException("returnType"); } IntPtr arg = NSString.CreateNative(sendType); IntPtr arg2 = NSString.CreateNative(returnType); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selValidRequestorForSendTypeReturnType_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setContentBorderThickness:forEdge:")] public virtual void SetContentBorderThickness(double thickness, NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_int(base.Handle, selSetContentBorderThicknessForEdge_Handle, thickness, (int)edge); } else { Messaging.void_objc_msgSendSuper_Double_int(base.SuperHandle, selSetContentBorderThicknessForEdge_Handle, thickness, (int)edge); } } [Export("contentBorderThicknessForEdge:")] public virtual double ContentBorderThicknessForEdge(NSRectEdge edge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Double_objc_msgSend_int(base.Handle, selContentBorderThicknessForEdge_Handle, (int)edge); } return Messaging.Double_objc_msgSendSuper_int(base.SuperHandle, selContentBorderThicknessForEdge_Handle, (int)edge); } [Export("setAutorecalculatesContentBorderThickness:forEdge:")] public virtual void SetAutorecalculatesContentBorderThickness(bool flag, NSRectEdge forEdge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_int(base.Handle, selSetAutorecalculatesContentBorderThicknessForEdge_Handle, flag, (int)forEdge); } else { Messaging.void_objc_msgSendSuper_bool_int(base.SuperHandle, selSetAutorecalculatesContentBorderThicknessForEdge_Handle, flag, (int)forEdge); } } [Export("autorecalculatesContentBorderThicknessForEdge:")] public virtual bool AutorecalculatesContentBorderThickness(NSRectEdge forEdgeedge) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selAutorecalculatesContentBorderThicknessForEdge_Handle, (int)forEdgeedge); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selAutorecalculatesContentBorderThicknessForEdge_Handle, (int)forEdgeedge); } [Export("center")] public virtual void Center() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCenterHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCenterHandle); } } [Export("makeKeyAndOrderFront:")] public virtual void MakeKeyAndOrderFront(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMakeKeyAndOrderFront_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMakeKeyAndOrderFront_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("orderFront:")] public virtual void OrderFront(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderFront_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderFront_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("orderBack:")] public virtual void OrderBack(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderBack_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderBack_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("orderOut:")] public virtual void OrderOut(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selOrderOut_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selOrderOut_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("orderWindow:relativeTo:")] public virtual void OrderWindow(NSWindowOrderingMode place, long relativeTo) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selOrderWindowRelativeTo_Handle, (long)place, relativeTo); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selOrderWindowRelativeTo_Handle, (long)place, relativeTo); } } [Export("orderFrontRegardless")] public virtual void OrderFrontRegardless() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selOrderFrontRegardlessHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selOrderFrontRegardlessHandle); } } [Export("makeKeyWindow")] public virtual void MakeKeyWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakeKeyWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakeKeyWindowHandle); } } [Export("makeMainWindow")] public virtual void MakeMainWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMakeMainWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMakeMainWindowHandle); } } [Export("becomeKeyWindow")] public virtual void BecomeKeyWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBecomeKeyWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBecomeKeyWindowHandle); } } [Export("resignKeyWindow")] public virtual void ResignKeyWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResignKeyWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResignKeyWindowHandle); } } [Export("becomeMainWindow")] public virtual void BecomeMainWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBecomeMainWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBecomeMainWindowHandle); } } [Export("resignMainWindow")] public virtual void ResignMainWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResignMainWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResignMainWindowHandle); } } [Export("worksWhenModal")] public virtual bool WorksWhenModal() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWorksWhenModalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWorksWhenModalHandle); } [Export("convertBaseToScreen:")] public virtual CGPoint ConvertBaseToScreen(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertBaseToScreen_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertBaseToScreen_Handle, aPoint); } [Export("convertScreenToBase:")] public virtual CGPoint ConvertScreenToBase(CGPoint aPoint) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertScreenToBase_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertScreenToBase_Handle, aPoint); } [Export("performClose:")] public virtual void PerformClose(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformClose_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformClose_Handle, sender.Handle); } } [Export("performMiniaturize:")] public virtual void PerformMiniaturize(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformMiniaturize_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformMiniaturize_Handle, sender.Handle); } } [Export("performZoom:")] public virtual void PerformZoom(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformZoom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformZoom_Handle, sender.Handle); } } [Export("gState")] public virtual long GState() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selGStateHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selGStateHandle); } [Export("setOneShot:")] public virtual void SetOneShot(bool flag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOneShot_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOneShot_Handle, flag); } } [Export("dataWithEPSInsideRect:")] public virtual NSData DataWithEpsInsideRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selDataWithEPSInsideRect_Handle, rect)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selDataWithEPSInsideRect_Handle, rect)); } [Export("dataWithPDFInsideRect:")] public virtual NSData DataWithPdfInsideRect(CGRect rect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selDataWithPDFInsideRect_Handle, rect)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selDataWithPDFInsideRect_Handle, rect)); } [Export("print:")] public virtual void Print(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPrint_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrint_Handle, sender.Handle); } } [Export("disableCursorRects")] public virtual void DisableCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableCursorRectsHandle); } } [Export("enableCursorRects")] public virtual void EnableCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableCursorRectsHandle); } } [Export("discardCursorRects")] public virtual void DiscardCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardCursorRectsHandle); } } [Export("invalidateCursorRectsForView:")] public virtual void InvalidateCursorRectsForView(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInvalidateCursorRectsForView_Handle, aView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInvalidateCursorRectsForView_Handle, aView.Handle); } } [Export("resetCursorRects")] public virtual void ResetCursorRects() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetCursorRectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetCursorRectsHandle); } } [Export("invalidateShadow")] public virtual void InvalidateShadow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateShadowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateShadowHandle); } } [Export("disableScreenUpdatesUntilFlush")] public virtual void DisableScreenUpdatesUntilFlush() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableScreenUpdatesUntilFlushHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableScreenUpdatesUntilFlushHandle); } } [Export("stringWithSavedFrame")] public virtual string StringWithSavedFrame() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringWithSavedFrameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringWithSavedFrameHandle)); } [Export("setFrameFromString:")] public virtual void SetFrameFrom(string str) { NSApplication.EnsureUIThread(); if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFrameFromString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFrameFromString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("saveFrameUsingName:")] public virtual void SaveFrameUsingName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSaveFrameUsingName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSaveFrameUsingName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("setFrameUsingName:force:")] public virtual bool SetFrameUsingName(string name, bool force) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetFrameUsingNameForce_Handle, arg, force) : Messaging.bool_objc_msgSend_IntPtr_bool(base.Handle, selSetFrameUsingNameForce_Handle, arg, force)); NSString.ReleaseNative(arg); return result; } [Export("setFrameUsingName:")] public virtual bool SetFrameUsingName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFrameUsingName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetFrameUsingName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("frameAutosaveName")] protected virtual string GetFrameAutosaveName() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFrameAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrameAutosaveNameHandle)); } [Export("setFrameAutosaveName:")] protected virtual bool SetFrameAutosaveName(string frameName) { NSApplication.EnsureUIThread(); if (frameName == null) { throw new ArgumentNullException("frameName"); } IntPtr arg = NSString.CreateNative(frameName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFrameAutosaveName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetFrameAutosaveName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("removeFrameUsingName:")] public static void RemoveFrameUsingName(string name) { NSApplication.EnsureUIThread(); if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); Messaging.void_objc_msgSend_IntPtr(class_ptr, selRemoveFrameUsingName_Handle, arg); NSString.ReleaseNative(arg); } [Export("cacheImageInRect:")] public virtual void CacheImageInRect(CGRect aRect) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selCacheImageInRect_Handle, aRect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selCacheImageInRect_Handle, aRect); } } [Export("restoreCachedImage")] public virtual void RestoreCachedImage() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRestoreCachedImageHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRestoreCachedImageHandle); } } [Export("discardCachedImage")] public virtual void DiscardCachedImage() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDiscardCachedImageHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDiscardCachedImageHandle); } } [Export("nextEventMatchingMask:")] protected virtual NSEvent NextEventMatchingMask(ulong mask) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selNextEventMatchingMask_Handle, mask)); } return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selNextEventMatchingMask_Handle, mask)); } [Export("nextEventMatchingMask:untilDate:inMode:dequeue:")] protected virtual NSEvent NextEventMatchingMask(ulong mask, NSDate expiration, string mode, bool deqFlag) { NSApplication.EnsureUIThread(); if (expiration == null) { throw new ArgumentNullException("expiration"); } if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); NSEvent result = ((!IsDirectBinding) ? ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_bool(base.SuperHandle, selNextEventMatchingMaskUntilDateInModeDequeue_Handle, mask, expiration.Handle, arg, deqFlag))) : ((NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_bool(base.Handle, selNextEventMatchingMaskUntilDateInModeDequeue_Handle, mask, expiration.Handle, arg, deqFlag)))); NSString.ReleaseNative(arg); return result; } [Export("discardEventsMatchingMask:beforeEvent:")] protected virtual void DiscardEventsMatchingMask(ulong mask, NSEvent beforeLastEvent) { NSApplication.EnsureUIThread(); if (beforeLastEvent == null) { throw new ArgumentNullException("beforeLastEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(base.Handle, selDiscardEventsMatchingMaskBeforeEvent_Handle, mask, beforeLastEvent.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selDiscardEventsMatchingMaskBeforeEvent_Handle, mask, beforeLastEvent.Handle); } } [Export("postEvent:atStart:")] public virtual void PostEvent(NSEvent theEvent, bool atStart) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selPostEventAtStart_Handle, theEvent.Handle, atStart); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selPostEventAtStart_Handle, theEvent.Handle, atStart); } } [Export("currentEvent")] public virtual NSEvent CurrentEvent() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentEventHandle)); } return (NSEvent)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentEventHandle)); } [Export("sendEvent:")] public virtual void SendEvent(NSEvent theEvent) { NSApplication.EnsureUIThread(); if (theEvent == null) { throw new ArgumentNullException("theEvent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSendEvent_Handle, theEvent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSendEvent_Handle, theEvent.Handle); } } [Export("menuChanged:")] public static void MenuChanged(NSMenu menu) { NSApplication.EnsureUIThread(); if (menu == null) { throw new ArgumentNullException("menu"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selMenuChanged_Handle, menu.Handle); } [Export("standardWindowButton:forStyleMask:")] public static NSButton StandardWindowButton(NSWindowButton b, NSWindowStyle styleMask) { NSApplication.EnsureUIThread(); return (NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_UInt64(class_ptr, selStandardWindowButtonForStyleMask_Handle, (ulong)b, (ulong)styleMask)); } [Export("standardWindowButton:")] public virtual NSButton StandardWindowButton(NSWindowButton b) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selStandardWindowButton_Handle, (ulong)b)); } return (NSButton)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selStandardWindowButton_Handle, (ulong)b)); } [Export("addChildWindow:ordered:")] public virtual void AddChildWindow(NSWindow childWin, NSWindowOrderingMode place) { NSApplication.EnsureUIThread(); if (childWin == null) { throw new ArgumentNullException("childWin"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_Int64(base.Handle, selAddChildWindowOrdered_Handle, childWin.Handle, (long)place); } else { Messaging.void_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selAddChildWindowOrdered_Handle, childWin.Handle, (long)place); } _ = ChildWindows; } [Export("removeChildWindow:")] public virtual void RemoveChildWindow(NSWindow childWin) { NSApplication.EnsureUIThread(); if (childWin == null) { throw new ArgumentNullException("childWin"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveChildWindow_Handle, childWin.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveChildWindow_Handle, childWin.Handle); } _ = ChildWindows; } [Export("windowNumbersWithOptions:")] public static NSArray WindowNumbersWithOptions(NSWindowNumberListOptions options) { NSApplication.EnsureUIThread(); return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selWindowNumbersWithOptions_Handle, (ulong)options)); } [Export("windowNumberAtPoint:belowWindowWithWindowNumber:")] public static long WindowNumberAtPoint(CGPoint point, long windowNumber) { NSApplication.EnsureUIThread(); return Messaging.Int64_objc_msgSend_CGPoint_Int64(class_ptr, selWindowNumberAtPointBelowWindowWithWindowNumber_Handle, point, windowNumber); } [Export("selectNextKeyView:")] public virtual void SelectNextKeyView(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNextKeyView_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNextKeyView_Handle, sender.Handle); } } [Export("selectPreviousKeyView:")] public virtual void SelectPreviousKeyView(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectPreviousKeyView_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectPreviousKeyView_Handle, sender.Handle); } } [Export("selectKeyViewFollowingView:")] public virtual void SelectKeyViewFollowingView(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectKeyViewFollowingView_Handle, aView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectKeyViewFollowingView_Handle, aView.Handle); } } [Export("selectKeyViewPrecedingView:")] public virtual void SelectKeyViewPrecedingView(NSView aView) { NSApplication.EnsureUIThread(); if (aView == null) { throw new ArgumentNullException("aView"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectKeyViewPrecedingView_Handle, aView.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectKeyViewPrecedingView_Handle, aView.Handle); } } [Export("keyViewSelectionDirection")] public virtual NSSelectionDirection KeyViewSelectionDirection() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return (NSSelectionDirection)Messaging.UInt64_objc_msgSend(base.Handle, selKeyViewSelectionDirectionHandle); } return (NSSelectionDirection)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selKeyViewSelectionDirectionHandle); } [Export("disableKeyEquivalentForDefaultButtonCell")] public virtual void DisableKeyEquivalentForDefaultButtonCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableKeyEquivalentForDefaultButtonCellHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableKeyEquivalentForDefaultButtonCellHandle); } } [Export("enableKeyEquivalentForDefaultButtonCell")] public virtual void EnableKeyEquivalentForDefaultButtonCell() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableKeyEquivalentForDefaultButtonCellHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableKeyEquivalentForDefaultButtonCellHandle); } } [Export("recalculateKeyViewLoop")] public virtual void RecalculateKeyViewLoop() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRecalculateKeyViewLoopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRecalculateKeyViewLoopHandle); } } [Export("toggleToolbarShown:")] public virtual void ToggleToolbarShown(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleToolbarShown_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleToolbarShown_Handle, sender.Handle); } } [Export("runToolbarCustomizationPalette:")] public virtual void RunToolbarCustomizationPalette(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRunToolbarCustomizationPalette_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunToolbarCustomizationPalette_Handle, sender.Handle); } } [Export("registerForDraggedTypes:")] public virtual void RegisterForDraggedTypes(string[] newTypes) { NSApplication.EnsureUIThread(); if (newTypes == null) { throw new ArgumentNullException("newTypes"); } NSArray nSArray = NSArray.FromStrings(newTypes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRegisterForDraggedTypes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterForDraggedTypes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("unregisterDraggedTypes")] public virtual void UnregisterDraggedTypes() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnregisterDraggedTypesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnregisterDraggedTypesHandle); } } [Export("disableSnapshotRestoration")] public virtual void DisableSnapshotRestoration() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableSnapshotRestorationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableSnapshotRestorationHandle); } } [Export("enableSnapshotRestoration")] public virtual void EnableSnapshotRestoration() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableSnapshotRestorationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableSnapshotRestorationHandle); } } [Export("updateConstraintsIfNeeded")] public virtual void UpdateConstraintsIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUpdateConstraintsIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUpdateConstraintsIfNeededHandle); } } [Export("layoutIfNeeded")] public virtual void LayoutIfNeeded() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutIfNeededHandle); } } [Export("setAnchorAttribute:forOrientation:")] public virtual void SetAnchorAttribute(NSLayoutAttribute layoutAttribute, NSLayoutConstraintOrientation forOrientation) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_Int64(base.Handle, selSetAnchorAttributeForOrientation_Handle, (long)layoutAttribute, (long)forOrientation); } else { Messaging.void_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selSetAnchorAttributeForOrientation_Handle, (long)layoutAttribute, (long)forOrientation); } } [Export("visualizeConstraints:")] public virtual void VisualizeConstraints(NSLayoutConstraint[] constraints) { NSApplication.EnsureUIThread(); if (constraints == null) { throw new ArgumentNullException("constraints"); } NSArray nSArray = NSArray.FromNSObjects(constraints); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selVisualizeConstraints_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selVisualizeConstraints_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("convertRectToScreen:")] public virtual CGRect ConvertRectToScreen(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToScreen_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToScreen_Handle, aRect); } return retval; } [Export("convertRectFromScreen:")] public virtual CGRect ConvertRectFromScreen(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromScreen_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromScreen_Handle, aRect); } return retval; } [Export("convertRectToBacking:")] public virtual CGRect ConvertRectToBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectToBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectToBacking_Handle, aRect); } return retval; } [Export("convertRectFromBacking:")] public virtual CGRect ConvertRectFromBacking(CGRect aRect) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertRectFromBacking_Handle, aRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertRectFromBacking_Handle, aRect); } return retval; } [Export("backingAlignedRect:options:")] public virtual CGRect BackingAlignedRect(CGRect aRect, NSAlignmentOptions options) { NSApplication.EnsureUIThread(); CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_UInt64(out retval, base.Handle, selBackingAlignedRectOptions_Handle, aRect, (ulong)options); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_UInt64(out retval, base.SuperHandle, selBackingAlignedRectOptions_Handle, aRect, (ulong)options); } return retval; } [Export("toggleFullScreen:")] public virtual void ToggleFullScreen(NSObject sender) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleFullScreen_Handle, sender?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleFullScreen_Handle, sender?.Handle ?? IntPtr.Zero); } } [Export("animationForKey:")] public virtual NSObject AnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAnimationForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnimationForKey_Handle, key.Handle)); } [Export("defaultAnimationForKey:")] public static NSObject DefaultAnimationFor(NSString key) { NSApplication.EnsureUIThread(); if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultAnimationForKey_Handle, key.Handle)); } private _NSWindowDelegate EnsureNSWindowDelegate() { NSWindowDelegate nSWindowDelegate = Delegate; if (nSWindowDelegate == null || !(nSWindowDelegate is _NSWindowDelegate)) { nSWindowDelegate = (Delegate = new _NSWindowDelegate()); } return (_NSWindowDelegate)nSWindowDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_RepresentedUrl_var = null; __mt_ContentView_var = null; __mt_WeakDelegate_var = null; __mt_FirstResponder_var = null; __mt_BackgroundColor_var = null; __mt_MiniWindowImage_var = null; __mt_DockTile_var = null; __mt_Screen_var = null; __mt_DeepestScreen_var = null; __mt_DeviceDescription_var = null; __mt_WindowController_var = null; __mt_AttachedSheet_var = null; __mt_ChildWindows_var = null; __mt_ParentWindow_var = null; __mt_GraphicsContext_var = null; __mt_ColorSpace_var = null; __mt_InitialFirstResponder_var = null; __mt_DefaultButtonCell_var = null; __mt_Toolbar_var = null; __mt_EffectiveAppearance_var = null; __mt_Appearance_var = null; __mt_Animator_var = null; __mt_Animations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowAnimationBehavior.cs ================================================ namespace AppKit; public enum NSWindowAnimationBehavior : long { Default = 0L, None = 2L, DocumentWindow = 3L, UtilityWindow = 4L, AlertPanel = 5L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowApplicationPresentationOptions.cs ================================================ namespace AppKit; public delegate NSApplicationPresentationOptions NSWindowApplicationPresentationOptions(NSWindow window, NSApplicationPresentationOptions proposedOptions); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowBackingLocation.cs ================================================ namespace AppKit; public enum NSWindowBackingLocation : ulong { Default, VideoMemory, MainMemory } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowButton.cs ================================================ namespace AppKit; public enum NSWindowButton : ulong { CloseButton = 0uL, MiniaturizeButton = 1uL, ZoomButton = 2uL, ToolbarButton = 3uL, DocumentIconButton = 4uL, DocumentVersionsButton = 6uL, FullScreenButton = 7uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowClient.cs ================================================ using Foundation; namespace AppKit; public delegate NSObject NSWindowClient(NSWindow sender, NSObject client); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowCoderEventArgs.cs ================================================ using System; using Foundation; namespace AppKit; public class NSWindowCoderEventArgs : EventArgs { public NSCoder Coder { get; set; } public NSWindowCoderEventArgs(NSCoder coder) { Coder = coder; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowCollectionBehavior.cs ================================================ using Xamarin.Utiles; namespace AppKit; [Flags] public enum NSWindowCollectionBehavior : ulong { Default = 0uL, CanJoinAllSpaces = 1uL, MoveToActiveSpace = 2uL, Managed = 4uL, Transient = 8uL, Stationary = 0x10uL, ParticipatesInCycle = 0x20uL, IgnoresCycle = 0x40uL, FullScreenPrimary = 0x80uL, FullScreenAuxiliary = 0x100uL, [ElCapitan] FullScreenAllowsTiling = 0x800uL, [ElCapitan] FullScreenDisallowsTiling = 0x1000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowCompletionHandler.cs ================================================ using Foundation; namespace AppKit; public delegate void NSWindowCompletionHandler(NSWindow window, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowController.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSWindowController", true)] public class NSWindowController : NSResponder { private static readonly IntPtr selWindowNibNameHandle = Selector.GetHandle("windowNibName"); private static readonly IntPtr selWindowNibPathHandle = Selector.GetHandle("windowNibPath"); private static readonly IntPtr selOwnerHandle = Selector.GetHandle("owner"); private static readonly IntPtr selWindowFrameAutosaveNameHandle = Selector.GetHandle("windowFrameAutosaveName"); private static readonly IntPtr selSetWindowFrameAutosaveName_Handle = Selector.GetHandle("setWindowFrameAutosaveName:"); private static readonly IntPtr selShouldCascadeWindowsHandle = Selector.GetHandle("shouldCascadeWindows"); private static readonly IntPtr selSetShouldCascadeWindows_Handle = Selector.GetHandle("setShouldCascadeWindows:"); private static readonly IntPtr selDocumentHandle = Selector.GetHandle("document"); private static readonly IntPtr selSetDocument_Handle = Selector.GetHandle("setDocument:"); private static readonly IntPtr selShouldCloseDocumentHandle = Selector.GetHandle("shouldCloseDocument"); private static readonly IntPtr selSetShouldCloseDocument_Handle = Selector.GetHandle("setShouldCloseDocument:"); private static readonly IntPtr selWindowHandle = Selector.GetHandle("window"); private static readonly IntPtr selSetWindow_Handle = Selector.GetHandle("setWindow:"); private static readonly IntPtr selIsWindowLoadedHandle = Selector.GetHandle("isWindowLoaded"); private static readonly IntPtr selInitWithWindow_Handle = Selector.GetHandle("initWithWindow:"); private static readonly IntPtr selInitWithWindowNibName_Handle = Selector.GetHandle("initWithWindowNibName:"); private static readonly IntPtr selInitWithWindowNibNameOwner_Handle = Selector.GetHandle("initWithWindowNibName:owner:"); private static readonly IntPtr selSetDocumentEdited_Handle = Selector.GetHandle("setDocumentEdited:"); private static readonly IntPtr selSynchronizeWindowTitleWithDocumentNameHandle = Selector.GetHandle("synchronizeWindowTitleWithDocumentName"); private static readonly IntPtr selWindowTitleForDocumentDisplayName_Handle = Selector.GetHandle("windowTitleForDocumentDisplayName:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selShowWindow_Handle = Selector.GetHandle("showWindow:"); private static readonly IntPtr selWindowWillLoadHandle = Selector.GetHandle("windowWillLoad"); private static readonly IntPtr selWindowDidLoadHandle = Selector.GetHandle("windowDidLoad"); private static readonly IntPtr selLoadWindowHandle = Selector.GetHandle("loadWindow"); private static readonly IntPtr class_ptr = Class.GetHandle("NSWindowController"); private object __mt_Owner_var; private object __mt_Document_var; private object __mt_Window_var; public override IntPtr ClassHandle => class_ptr; public virtual string WindowNibName { [Export("windowNibName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowNibNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowNibNameHandle)); } } public virtual string WindowNibPath { [Export("windowNibPath")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowNibPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowNibPathHandle)); } } public virtual NSObject Owner { [Export("owner")] get { NSApplication.EnsureUIThread(); return (NSObject)(__mt_Owner_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerHandle)))); } } public virtual string WindowFrameAutosaveName { [Export("windowFrameAutosaveName")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowFrameAutosaveNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowFrameAutosaveNameHandle)); } [Export("setWindowFrameAutosaveName:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWindowFrameAutosaveName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWindowFrameAutosaveName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ShouldCascadeWindows { [Export("shouldCascadeWindows")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldCascadeWindowsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldCascadeWindowsHandle); } [Export("setShouldCascadeWindows:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldCascadeWindows_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldCascadeWindows_Handle, value); } } } public virtual NSDocument Document { [Export("document")] get { NSApplication.EnsureUIThread(); return (NSDocument)(__mt_Document_var = ((!IsDirectBinding) ? ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentHandle))) : ((NSDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentHandle))))); } [Export("setDocument:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocument_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocument_Handle, value.Handle); } __mt_Document_var = value; } } public virtual bool ShouldCloseDocument { [Export("shouldCloseDocument")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldCloseDocumentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldCloseDocumentHandle); } [Export("setShouldCloseDocument:")] set { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldCloseDocument_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldCloseDocument_Handle, value); } } } public virtual NSWindow Window { [Export("window")] get { NSApplication.EnsureUIThread(); return (NSWindow)(__mt_Window_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowHandle))))); } [Export("setWindow:")] set { NSApplication.EnsureUIThread(); if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWindow_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWindow_Handle, value.Handle); } __mt_Window_var = value; } } public virtual bool IsWindowLoaded { [Export("isWindowLoaded")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsWindowLoadedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsWindowLoadedHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSWindowController() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSWindowController(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowController(IntPtr handle) : base(handle) { } [Export("initWithWindow:")] public NSWindowController(NSWindow window) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (window == null) { throw new ArgumentNullException("window"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithWindow_Handle, window.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithWindow_Handle, window.Handle); } } [Export("initWithWindowNibName:")] public NSWindowController(string windowNibName) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (windowNibName == null) { throw new ArgumentNullException("windowNibName"); } IntPtr arg = NSString.CreateNative(windowNibName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithWindowNibName_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithWindowNibName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithWindowNibName:owner:")] public NSWindowController(string windowNibName, NSObject owner) : base(NSObjectFlag.Empty) { NSApplication.EnsureUIThread(); if (windowNibName == null) { throw new ArgumentNullException("windowNibName"); } if (owner == null) { throw new ArgumentNullException("owner"); } IntPtr arg = NSString.CreateNative(windowNibName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithWindowNibNameOwner_Handle, arg, owner.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithWindowNibNameOwner_Handle, arg, owner.Handle); } NSString.ReleaseNative(arg); } [Export("setDocumentEdited:")] public virtual void SetDocumentEdited(bool dirtyFlag) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDocumentEdited_Handle, dirtyFlag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDocumentEdited_Handle, dirtyFlag); } } [Export("synchronizeWindowTitleWithDocumentName")] public virtual void SynchronizeWindowTitleWithDocumentName() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSynchronizeWindowTitleWithDocumentNameHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSynchronizeWindowTitleWithDocumentNameHandle); } } [Export("windowTitleForDocumentDisplayName:")] public virtual string WindowTitleForDocumentDisplayName(string displayName) { NSApplication.EnsureUIThread(); if (displayName == null) { throw new ArgumentNullException("displayName"); } IntPtr arg = NSString.CreateNative(displayName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selWindowTitleForDocumentDisplayName_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selWindowTitleForDocumentDisplayName_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("close")] public virtual void Close() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("showWindow:")] public virtual void ShowWindow(NSObject sender) { NSApplication.EnsureUIThread(); if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selShowWindow_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selShowWindow_Handle, sender.Handle); } } [Export("windowWillLoad")] public virtual void WindowWillLoad() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWindowWillLoadHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWindowWillLoadHandle); } } [Export("windowDidLoad")] public virtual void WindowDidLoad() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWindowDidLoadHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWindowDidLoadHandle); } } [Export("loadWindow")] public virtual void LoadWindow() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLoadWindowHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLoadWindowHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Owner_var = null; __mt_Document_var = null; __mt_Window_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSWindowDelegate", true)] [Model] public class NSWindowDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSWindowDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSWindowDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowDelegate(IntPtr handle) : base(handle) { } [Export("windowShouldClose:")] public virtual bool WindowShouldClose(NSObject sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillReturnFieldEditor:toObject:")] public virtual NSObject WillReturnFieldEditor(NSWindow sender, NSObject client) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillResize:toSize:")] public virtual CGSize WillResize(NSWindow sender, CGSize toFrameSize) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillUseStandardFrame:defaultFrame:")] public virtual CGRect WillUseStandardFrame(NSWindow window, CGRect newFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowShouldZoom:toFrame:")] public virtual bool ShouldZoom(NSWindow window, CGRect newFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillReturnUndoManager:")] public virtual NSUndoManager WillReturnUndoManager(NSWindow window) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:willPositionSheet:usingRect:")] public virtual CGRect WillPositionSheet(NSWindow window, NSWindow sheet, CGRect usingRect) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:shouldPopUpDocumentPathMenu:")] public virtual bool ShouldPopUpDocumentPathMenu(NSWindow window, NSMenu menu) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:shouldDragDocumentWithEvent:from:withPasteboard:")] public virtual bool ShouldDragDocumentWithEvent(NSWindow window, NSEvent theEvent, CGPoint dragImageLocation, NSPasteboard withPasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidResize:")] public virtual void DidResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidExpose:")] public virtual void DidExpose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillMove:")] public virtual void WillMove(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidMove:")] public virtual void DidMoved(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidBecomeKey:")] public virtual void DidBecomeKey(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidResignKey:")] public virtual void DidResignKey(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidBecomeMain:")] public virtual void DidBecomeMain(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidResignMain:")] public virtual void DidResignMain(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillClose:")] public virtual void WillClose(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillMiniaturize:")] public virtual void WillMiniaturize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidMiniaturize:")] public virtual void DidMiniaturize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidDeminiaturize:")] public virtual void DidDeminiaturize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidUpdate:")] public virtual void DidUpdate(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidChangeScreen:")] public virtual void DidChangeScreen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidChangeScreenProfile:")] public virtual void DidChangeScreenProfile(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillBeginSheet:")] public virtual void WillBeginSheet(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidEndSheet:")] public virtual void DidEndSheet(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillStartLiveResize:")] public virtual void WillStartLiveResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidEndLiveResize:")] public virtual void DidEndLiveResize(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillEnterFullScreen:")] public virtual void WillEnterFullScreen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidEnterFullScreen:")] public virtual void DidEnterFullScreen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillExitFullScreen:")] public virtual void WillExitFullScreen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidExitFullScreen:")] public virtual void DidExitFullScreen(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidFailToEnterFullScreen:")] public virtual void DidFailToEnterFullScreen(NSWindow window) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidFailToExitFullScreen:")] public virtual void DidFailToExitFullScreen(NSWindow window) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:willUseFullScreenContentSize:")] public virtual CGSize WillUseFullScreenContentSize(NSWindow window, CGSize proposedSize) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:willUseFullScreenPresentationOptions:")] public virtual NSApplicationPresentationOptions WillUseFullScreenPresentationOptions(NSWindow window, NSApplicationPresentationOptions proposedOptions) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("customWindowsToEnterFullScreenForWindow:")] public virtual NSWindow[] CustomWindowsToEnterFullScreen(NSWindow window) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("customWindowsToExitFullScreenForWindow:")] public virtual NSWindow[] CustomWindowsToExitFullScreen(NSWindow window) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:startCustomAnimationToEnterFullScreenWithDuration:")] public virtual void StartCustomAnimationToEnterFullScreen(NSWindow window, double duration) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:startCustomAnimationToExitFullScreenWithDuration:")] public virtual void StartCustomAnimationToExitFullScreen(NSWindow window, double duration) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:willEncodeRestorableState:")] public virtual void WillEncodeRestorableState(NSWindow window, NSCoder coder) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:didDecodeRestorableState:")] public virtual void DidDecodeRestorableState(NSWindow window, NSCoder coder) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:")] public virtual CGSize WillResizeForVersionBrowser(NSWindow window, CGSize maxPreferredSize, CGSize maxAllowedSize) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillEnterVersionBrowser:")] public virtual void WillEnterVersionBrowser(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidEnterVersionBrowser:")] public virtual void DidEnterVersionBrowser(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowWillExitVersionBrowser:")] public virtual void WillExitVersionBrowser(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("windowDidExitVersionBrowser:")] public virtual void DidExitVersionBrowser(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowDepth.cs ================================================ namespace AppKit; public enum NSWindowDepth : long { TwentyfourBitRgb = 520L, SixtyfourBitRgb = 528L, OneHundredTwentyEightBitRgb = 544L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowDocumentDrag.cs ================================================ using CoreGraphics; namespace AppKit; public delegate bool NSWindowDocumentDrag(NSWindow window, NSEvent theEvent, CGPoint dragImageLocation, NSPasteboard withPasteboard); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowDurationEventArgs.cs ================================================ using System; namespace AppKit; public class NSWindowDurationEventArgs : EventArgs { public double Duration { get; set; } public NSWindowDurationEventArgs(double duration) { Duration = duration; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowFrame.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGRect NSWindowFrame(NSWindow window, CGRect newFrame); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowFramePredicate.cs ================================================ using CoreGraphics; namespace AppKit; public delegate bool NSWindowFramePredicate(NSWindow window, CGRect newFrame); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowLevel.cs ================================================ namespace AppKit; public enum NSWindowLevel : long { Normal = 0L, Dock = 20L, Floating = 3L, MainMenu = 24L, ModalPanel = 8L, PopUpMenu = 101L, ScreenSaver = 1000L, Status = 25L, Submenu = 3L, TornOffMenu = 3L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowMenu.cs ================================================ namespace AppKit; public delegate bool NSWindowMenu(NSWindow window, NSMenu menu); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowNumberListOptions.cs ================================================ namespace AppKit; public enum NSWindowNumberListOptions : ulong { AllApplication = 1uL, AllSpaces = 0x10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowOrderingMode.cs ================================================ namespace AppKit; public enum NSWindowOrderingMode : long { Below = -1L, Out, Above } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowResize.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGSize NSWindowResize(NSWindow sender, CGSize toFrameSize); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowRestoration.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSWindowRestoration", true)] [Model] public class NSWindowRestoration : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSWindowRestoration() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSWindowRestoration(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowRestoration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWindowRestoration(IntPtr handle) : base(handle) { } [Export("restoreWindowWithIdentifier:state:completionHandler:")] public static void RestoreWindow(string identifier, NSCoder state, NSWindowCompletionHandler onCompletion) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowSharingType.cs ================================================ namespace AppKit; public enum NSWindowSharingType : ulong { None, ReadOnly, ReadWrite } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowSheetRect.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGRect NSWindowSheetRect(NSWindow window, NSWindow sheet, CGRect usingRect); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowSize.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGSize NSWindowSize(NSWindow window, CGSize proposedSize); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowSizeSize.cs ================================================ using CoreGraphics; namespace AppKit; public delegate CGSize NSWindowSizeSize(NSWindow window, CGSize maxPreferredSize, CGSize maxAllowedSize); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowStyle.cs ================================================ using System; namespace AppKit; [Flags] public enum NSWindowStyle : ulong { Borderless = 0uL, Titled = 1uL, Closable = 2uL, Miniaturizable = 4uL, Resizable = 8uL, Utility = 0x10uL, DocModal = 0x40uL, NonactivatingPanel = 0x80uL, TexturedBackground = 0x100uL, Unscaled = 0x800uL, UnifiedTitleAndToolbar = 0x1000uL, Hud = 0x2000uL, FullScreenWindow = 0x4000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowUndoManager.cs ================================================ using Foundation; namespace AppKit; public delegate NSUndoManager NSWindowUndoManager(NSWindow window); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWindowWindows.cs ================================================ namespace AppKit; public delegate NSWindow[] NSWindowWindows(NSWindow window); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspace.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace AppKit; [Register("NSWorkspace", true)] public class NSWorkspace : NSObject { public static class Notifications { public static NSObject ObserveWillPowerOff(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(WillPowerOffNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillSleep(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(WillSleepNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidWake(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidWakeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveScreensDidSleep(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(ScreensDidSleepNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveScreensDidWake(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(ScreensDidWakeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveSessionDidBecomeActive(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(SessionDidBecomeActiveNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveSessionDidResignActive(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(SessionDidResignActiveNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidRenameVolume(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidRenameVolumeNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceRenamedEventArgs(notification)); }); } public static NSObject ObserveDidMount(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidMountNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceMountEventArgs(notification)); }); } public static NSObject ObserveDidUnmount(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidUnmountNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceMountEventArgs(notification)); }); } public static NSObject ObserveWillUnmount(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(WillUnmountNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceMountEventArgs(notification)); }); } public static NSObject ObserveWillLaunchApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(WillLaunchApplication, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidLaunchApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidLaunchApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidTerminateApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidTerminateApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidHideApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidHideApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidUnhideApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidUnhideApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidActivateApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidActivateApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidDeactivateApplication(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidDeactivateApplicationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceApplicationEventArgs(notification)); }); } public static NSObject ObserveDidPerformFileOperation(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidPerformFileOperationNotification, delegate(NSNotification notification) { handler(null, new NSWorkspaceFileOperationEventArgs(notification)); }); } public static NSObject ObserveDidChangeFileLabels(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(DidChangeFileLabelsNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveActiveSpaceDidChange(EventHandler handler) { return SharedWorkspace.NotificationCenter.AddObserver(ActiveSpaceDidChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selSharedWorkspaceHandle = Selector.GetHandle("sharedWorkspace"); private static readonly IntPtr selNotificationCenterHandle = Selector.GetHandle("notificationCenter"); private static readonly IntPtr selFileLabelsHandle = Selector.GetHandle("fileLabels"); private static readonly IntPtr selFileLabelColorsHandle = Selector.GetHandle("fileLabelColors"); private static readonly IntPtr selMountedLocalVolumePathsHandle = Selector.GetHandle("mountedLocalVolumePaths"); private static readonly IntPtr selMountedRemovableMediaHandle = Selector.GetHandle("mountedRemovableMedia"); private static readonly IntPtr selLaunchedApplicationsHandle = Selector.GetHandle("launchedApplications"); private static readonly IntPtr selActiveApplicationHandle = Selector.GetHandle("activeApplication"); private static readonly IntPtr selRunningApplicationsHandle = Selector.GetHandle("runningApplications"); private static readonly IntPtr selFrontmostApplicationHandle = Selector.GetHandle("frontmostApplication"); private static readonly IntPtr selMenuBarOwningApplicationHandle = Selector.GetHandle("menuBarOwningApplication"); private static readonly IntPtr selOpenFile_Handle = Selector.GetHandle("openFile:"); private static readonly IntPtr selOpenFileWithApplication_Handle = Selector.GetHandle("openFile:withApplication:"); private static readonly IntPtr selOpenFileWithApplicationAndDeactivate_Handle = Selector.GetHandle("openFile:withApplication:andDeactivate:"); private static readonly IntPtr selOpenFileFromImageAtInView_Handle = Selector.GetHandle("openFile:fromImage:at:inView:"); private static readonly IntPtr selOpenURL_Handle = Selector.GetHandle("openURL:"); private static readonly IntPtr selLaunchApplication_Handle = Selector.GetHandle("launchApplication:"); private static readonly IntPtr selLaunchApplicationAtURLOptionsConfigurationError_Handle = Selector.GetHandle("launchApplicationAtURL:options:configuration:error:"); private static readonly IntPtr selLaunchApplicationShowIconAutolaunch_Handle = Selector.GetHandle("launchApplication:showIcon:autolaunch:"); private static readonly IntPtr selFullPathForApplication_Handle = Selector.GetHandle("fullPathForApplication:"); private static readonly IntPtr selSelectFileInFileViewerRootedAtPath_Handle = Selector.GetHandle("selectFile:inFileViewerRootedAtPath:"); private static readonly IntPtr selActivateFileViewerSelectingURLs_Handle = Selector.GetHandle("activateFileViewerSelectingURLs:"); private static readonly IntPtr selShowSearchResultsForQueryString_Handle = Selector.GetHandle("showSearchResultsForQueryString:"); private static readonly IntPtr selNoteFileSystemChanged_Handle = Selector.GetHandle("noteFileSystemChanged:"); private static readonly IntPtr selGetInfoForFileApplicationType_Handle = Selector.GetHandle("getInfoForFile:application:type:"); private static readonly IntPtr selIsFilePackageAtPath_Handle = Selector.GetHandle("isFilePackageAtPath:"); private static readonly IntPtr selIconForFile_Handle = Selector.GetHandle("iconForFile:"); private static readonly IntPtr selIconForFiles_Handle = Selector.GetHandle("iconForFiles:"); private static readonly IntPtr selIconForFileType_Handle = Selector.GetHandle("iconForFileType:"); private static readonly IntPtr selSetIconForFileOptions_Handle = Selector.GetHandle("setIcon:forFile:options:"); private static readonly IntPtr selRecycleURLsCompletionHandler_Handle = Selector.GetHandle("recycleURLs:completionHandler:"); private static readonly IntPtr selDuplicateURLsCompletionHandler_Handle = Selector.GetHandle("duplicateURLs:completionHandler:"); private static readonly IntPtr selGetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType_Handle = Selector.GetHandle("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:"); private static readonly IntPtr selPerformFileOperationSourceDestinationFilesTag_Handle = Selector.GetHandle("performFileOperation:source:destination:files:tag:"); private static readonly IntPtr selUnmountAndEjectDeviceAtPath_Handle = Selector.GetHandle("unmountAndEjectDeviceAtPath:"); private static readonly IntPtr selUnmountAndEjectDeviceAtURLError_Handle = Selector.GetHandle("unmountAndEjectDeviceAtURL:error:"); private static readonly IntPtr selExtendPowerOffBy_Handle = Selector.GetHandle("extendPowerOffBy:"); private static readonly IntPtr selHideOtherApplicationsHandle = Selector.GetHandle("hideOtherApplications"); private static readonly IntPtr selURLForApplicationWithBundleIdentifier_Handle = Selector.GetHandle("URLForApplicationWithBundleIdentifier:"); private static readonly IntPtr selURLForApplicationToOpenURL_Handle = Selector.GetHandle("URLForApplicationToOpenURL:"); private static readonly IntPtr selAbsolutePathForAppBundleWithIdentifier_Handle = Selector.GetHandle("absolutePathForAppBundleWithIdentifier:"); private static readonly IntPtr selLaunchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier_Handle = Selector.GetHandle("launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:"); private static readonly IntPtr selOpenURLsWithAppBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifiers_Handle = Selector.GetHandle("openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:"); private static readonly IntPtr selTypeOfFileError_Handle = Selector.GetHandle("typeOfFile:error:"); private static readonly IntPtr selLocalizedDescriptionForType_Handle = Selector.GetHandle("localizedDescriptionForType:"); private static readonly IntPtr selPreferredFilenameExtensionForType_Handle = Selector.GetHandle("preferredFilenameExtensionForType:"); private static readonly IntPtr selFilenameExtensionIsValidForType_Handle = Selector.GetHandle("filenameExtension:isValidForType:"); private static readonly IntPtr selTypeConformsToType_Handle = Selector.GetHandle("type:conformsToType:"); private static readonly IntPtr selSetDesktopImageURLForScreenOptionsError_Handle = Selector.GetHandle("setDesktopImageURL:forScreen:options:error:"); private static readonly IntPtr selDesktopImageURLForScreen_Handle = Selector.GetHandle("desktopImageURLForScreen:"); private static readonly IntPtr selDesktopImageOptionsForScreen_Handle = Selector.GetHandle("desktopImageOptionsForScreen:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSWorkspace"); private static object __mt_SharedWorkspace_var_static; private object __mt_NotificationCenter_var; private object __mt_FileLabelColors_var; private object __mt_LaunchedApplications_var; private object __mt_ActiveApplication_var; private object __mt_RunningApplications_var; private object __mt_FrontmostApplication_var; private object __mt_MenuBarOwningApplication_var; private static NSString _WillPowerOffNotification; private static NSString _WillSleepNotification; private static NSString _DidWakeNotification; private static NSString _ScreensDidSleepNotification; private static NSString _ScreensDidWakeNotification; private static NSString _SessionDidBecomeActiveNotification; private static NSString _SessionDidResignActiveNotification; private static NSString _DidRenameVolumeNotification; private static NSString _DidMountNotification; private static NSString _DidUnmountNotification; private static NSString _WillUnmountNotification; private static NSString _WillLaunchApplication; private static NSString _DidLaunchApplicationNotification; private static NSString _DidTerminateApplicationNotification; private static NSString _DidHideApplicationNotification; private static NSString _DidUnhideApplicationNotification; private static NSString _DidActivateApplicationNotification; private static NSString _DidDeactivateApplicationNotification; private static NSString _DidPerformFileOperationNotification; private static NSString _DidChangeFileLabelsNotification; private static NSString _ActiveSpaceDidChangeNotification; private static NSString _OperationRecycle; private static NSString _OperationDuplicate; private static NSString _OperationMove; private static NSString _OperationCopy; private static NSString _OperationLink; private static NSString _OperationDestroy; public override IntPtr ClassHandle => class_ptr; [ThreadSafe] public static NSWorkspace SharedWorkspace { [Export("sharedWorkspace")] get { return (NSWorkspace)(__mt_SharedWorkspace_var_static = (NSWorkspace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedWorkspaceHandle))); } } public virtual NSNotificationCenter NotificationCenter { [Export("notificationCenter")] get { NSApplication.EnsureUIThread(); return (NSNotificationCenter)(__mt_NotificationCenter_var = ((!IsDirectBinding) ? ((NSNotificationCenter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNotificationCenterHandle))) : ((NSNotificationCenter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNotificationCenterHandle))))); } } public virtual string[] FileLabels { [Export("fileLabels")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFileLabelsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileLabelsHandle)); } } public virtual NSColor[] FileLabelColors { [Export("fileLabelColors")] get { NSApplication.EnsureUIThread(); return (NSColor[])(__mt_FileLabelColors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileLabelColorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFileLabelColorsHandle)))); } } public virtual string[] MountedLocalVolumePaths { [Export("mountedLocalVolumePaths")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMountedLocalVolumePathsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMountedLocalVolumePathsHandle)); } } public virtual string[] MountedRemovableMedia { [Export("mountedRemovableMedia")] get { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMountedRemovableMediaHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMountedRemovableMediaHandle)); } } public virtual NSDictionary[] LaunchedApplications { [Export("launchedApplications")] get { NSApplication.EnsureUIThread(); return (NSDictionary[])(__mt_LaunchedApplications_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLaunchedApplicationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLaunchedApplicationsHandle)))); } } public virtual NSDictionary ActiveApplication { [Export("activeApplication")] get { NSApplication.EnsureUIThread(); return (NSDictionary)(__mt_ActiveApplication_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActiveApplicationHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selActiveApplicationHandle))))); } } [ThreadSafe] public virtual NSRunningApplication[] RunningApplications { [Export("runningApplications")] get { return (NSRunningApplication[])(__mt_RunningApplications_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRunningApplicationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRunningApplicationsHandle)))); } } public virtual NSRunningApplication FrontmostApplication { [Export("frontmostApplication")] get { NSApplication.EnsureUIThread(); return (NSRunningApplication)(__mt_FrontmostApplication_var = ((!IsDirectBinding) ? ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrontmostApplicationHandle))) : ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFrontmostApplicationHandle))))); } } public virtual NSRunningApplication MenuBarOwningApplication { [Export("menuBarOwningApplication")] get { NSApplication.EnsureUIThread(); return (NSRunningApplication)(__mt_MenuBarOwningApplication_var = ((!IsDirectBinding) ? ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMenuBarOwningApplicationHandle))) : ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMenuBarOwningApplicationHandle))))); } } [Field("NSWorkspaceWillPowerOffNotification", "AppKit")] public static NSString WillPowerOffNotification { get { if (_WillPowerOffNotification == null) { _WillPowerOffNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceWillPowerOffNotification"); } return _WillPowerOffNotification; } } [Field("NSWorkspaceWillSleepNotification", "AppKit")] public static NSString WillSleepNotification { get { if (_WillSleepNotification == null) { _WillSleepNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceWillSleepNotification"); } return _WillSleepNotification; } } [Field("NSWorkspaceDidWakeNotification", "AppKit")] public static NSString DidWakeNotification { get { if (_DidWakeNotification == null) { _DidWakeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidWakeNotification"); } return _DidWakeNotification; } } [Field("NSWorkspaceScreensDidSleepNotification", "AppKit")] public static NSString ScreensDidSleepNotification { get { if (_ScreensDidSleepNotification == null) { _ScreensDidSleepNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceScreensDidSleepNotification"); } return _ScreensDidSleepNotification; } } [Field("NSWorkspaceScreensDidWakeNotification", "AppKit")] public static NSString ScreensDidWakeNotification { get { if (_ScreensDidWakeNotification == null) { _ScreensDidWakeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceScreensDidWakeNotification"); } return _ScreensDidWakeNotification; } } [Field("NSWorkspaceSessionDidBecomeActiveNotification", "AppKit")] public static NSString SessionDidBecomeActiveNotification { get { if (_SessionDidBecomeActiveNotification == null) { _SessionDidBecomeActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceSessionDidBecomeActiveNotification"); } return _SessionDidBecomeActiveNotification; } } [Field("NSWorkspaceSessionDidResignActiveNotification", "AppKit")] public static NSString SessionDidResignActiveNotification { get { if (_SessionDidResignActiveNotification == null) { _SessionDidResignActiveNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceSessionDidResignActiveNotification"); } return _SessionDidResignActiveNotification; } } [Field("NSWorkspaceDidRenameVolumeNotification", "AppKit")] public static NSString DidRenameVolumeNotification { get { if (_DidRenameVolumeNotification == null) { _DidRenameVolumeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidRenameVolumeNotification"); } return _DidRenameVolumeNotification; } } [Field("NSWorkspaceDidMountNotification", "AppKit")] public static NSString DidMountNotification { get { if (_DidMountNotification == null) { _DidMountNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidMountNotification"); } return _DidMountNotification; } } [Field("NSWorkspaceDidUnmountNotification", "AppKit")] public static NSString DidUnmountNotification { get { if (_DidUnmountNotification == null) { _DidUnmountNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidUnmountNotification"); } return _DidUnmountNotification; } } [Field("NSWorkspaceWillUnmountNotification", "AppKit")] public static NSString WillUnmountNotification { get { if (_WillUnmountNotification == null) { _WillUnmountNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceWillUnmountNotification"); } return _WillUnmountNotification; } } [Field("NSWorkspaceWillLaunchApplicationNotification", "AppKit")] public static NSString WillLaunchApplication { get { if (_WillLaunchApplication == null) { _WillLaunchApplication = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceWillLaunchApplicationNotification"); } return _WillLaunchApplication; } } [Field("NSWorkspaceDidLaunchApplicationNotification", "AppKit")] public static NSString DidLaunchApplicationNotification { get { if (_DidLaunchApplicationNotification == null) { _DidLaunchApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidLaunchApplicationNotification"); } return _DidLaunchApplicationNotification; } } [Field("NSWorkspaceDidTerminateApplicationNotification", "AppKit")] public static NSString DidTerminateApplicationNotification { get { if (_DidTerminateApplicationNotification == null) { _DidTerminateApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidTerminateApplicationNotification"); } return _DidTerminateApplicationNotification; } } [Field("NSWorkspaceDidHideApplicationNotification", "AppKit")] public static NSString DidHideApplicationNotification { get { if (_DidHideApplicationNotification == null) { _DidHideApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidHideApplicationNotification"); } return _DidHideApplicationNotification; } } [Field("NSWorkspaceDidUnhideApplicationNotification", "AppKit")] public static NSString DidUnhideApplicationNotification { get { if (_DidUnhideApplicationNotification == null) { _DidUnhideApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidUnhideApplicationNotification"); } return _DidUnhideApplicationNotification; } } [Field("NSWorkspaceDidActivateApplicationNotification", "AppKit")] public static NSString DidActivateApplicationNotification { get { if (_DidActivateApplicationNotification == null) { _DidActivateApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidActivateApplicationNotification"); } return _DidActivateApplicationNotification; } } [Field("NSWorkspaceDidDeactivateApplicationNotification", "AppKit")] public static NSString DidDeactivateApplicationNotification { get { if (_DidDeactivateApplicationNotification == null) { _DidDeactivateApplicationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidDeactivateApplicationNotification"); } return _DidDeactivateApplicationNotification; } } [Field("NSWorkspaceDidPerformFileOperationNotification", "AppKit")] public static NSString DidPerformFileOperationNotification { get { if (_DidPerformFileOperationNotification == null) { _DidPerformFileOperationNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidPerformFileOperationNotification"); } return _DidPerformFileOperationNotification; } } [Field("NSWorkspaceDidChangeFileLabelsNotification", "AppKit")] public static NSString DidChangeFileLabelsNotification { get { if (_DidChangeFileLabelsNotification == null) { _DidChangeFileLabelsNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDidChangeFileLabelsNotification"); } return _DidChangeFileLabelsNotification; } } [Field("NSWorkspaceActiveSpaceDidChangeNotification", "AppKit")] public static NSString ActiveSpaceDidChangeNotification { get { if (_ActiveSpaceDidChangeNotification == null) { _ActiveSpaceDidChangeNotification = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceActiveSpaceDidChangeNotification"); } return _ActiveSpaceDidChangeNotification; } } [Field("NSWorkspaceRecycleOperation", "AppKit")] public static NSString OperationRecycle { get { if (_OperationRecycle == null) { _OperationRecycle = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceRecycleOperation"); } return _OperationRecycle; } } [Field("NSWorkspaceDuplicateOperation", "AppKit")] public static NSString OperationDuplicate { get { if (_OperationDuplicate == null) { _OperationDuplicate = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDuplicateOperation"); } return _OperationDuplicate; } } [Field("NSWorkspaceMoveOperation", "AppKit")] public static NSString OperationMove { get { if (_OperationMove == null) { _OperationMove = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceMoveOperation"); } return _OperationMove; } } [Field("NSWorkspaceCopyOperation", "AppKit")] public static NSString OperationCopy { get { if (_OperationCopy == null) { _OperationCopy = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceCopyOperation"); } return _OperationCopy; } } [Field("NSWorkspaceLinkOperation", "AppKit")] public static NSString OperationLink { get { if (_OperationLink == null) { _OperationLink = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceLinkOperation"); } return _OperationLink; } } [Field("NSWorkspaceDestroyOperation", "AppKit")] public static NSString OperationDestroy { get { if (_OperationDestroy == null) { _OperationDestroy = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWorkspaceDestroyOperation"); } return _OperationDestroy; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSWorkspace() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSWorkspace(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWorkspace(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSWorkspace(IntPtr handle) : base(handle) { } [Export("openFile:")] public virtual bool OpenFile(string fullPath) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selOpenFile_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selOpenFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("openFile:withApplication:")] public virtual bool OpenFile(string fullPath, string appName) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } if (appName == null) { throw new ArgumentNullException("appName"); } IntPtr arg = NSString.CreateNative(fullPath); IntPtr arg2 = NSString.CreateNative(appName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selOpenFileWithApplication_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selOpenFileWithApplication_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("openFile:withApplication:andDeactivate:")] public virtual bool OpenFile(string fullPath, string appName, bool deactivate) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } if (appName == null) { throw new ArgumentNullException("appName"); } IntPtr arg = NSString.CreateNative(fullPath); IntPtr arg2 = NSString.CreateNative(appName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selOpenFileWithApplicationAndDeactivate_Handle, arg, arg2, deactivate) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selOpenFileWithApplicationAndDeactivate_Handle, arg, arg2, deactivate)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("openFile:fromImage:at:inView:")] public virtual bool OpenFile(string fullPath, NSImage anImage, CGPoint point, NSView aView) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } if (anImage == null) { throw new ArgumentNullException("anImage"); } if (aView == null) { throw new ArgumentNullException("aView"); } IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_CGPoint_IntPtr(base.SuperHandle, selOpenFileFromImageAtInView_Handle, arg, anImage.Handle, point, aView.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_CGPoint_IntPtr(base.Handle, selOpenFileFromImageAtInView_Handle, arg, anImage.Handle, point, aView.Handle)); NSString.ReleaseNative(arg); return result; } [Export("openURL:")] public virtual bool OpenUrl(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selOpenURL_Handle, url.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selOpenURL_Handle, url.Handle); } [Export("launchApplication:")] public virtual bool LaunchApplication(string appName) { NSApplication.EnsureUIThread(); if (appName == null) { throw new ArgumentNullException("appName"); } IntPtr arg = NSString.CreateNative(appName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selLaunchApplication_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selLaunchApplication_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("launchApplicationAtURL:options:configuration:error:")] public virtual NSRunningApplication LaunchApplication(NSUrl url, NSWorkspaceLaunchOptions options, NSDictionary configuration, out NSError error) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSRunningApplication result = ((!IsDirectBinding) ? ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selLaunchApplicationAtURLOptionsConfigurationError_Handle, url.Handle, (ulong)options, configuration.Handle, intPtr))) : ((NSRunningApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selLaunchApplicationAtURLOptionsConfigurationError_Handle, url.Handle, (ulong)options, configuration.Handle, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("launchApplication:showIcon:autolaunch:")] public virtual bool LaunchApplication(string appName, bool showIcon, bool autolaunch) { NSApplication.EnsureUIThread(); if (appName == null) { throw new ArgumentNullException("appName"); } IntPtr arg = NSString.CreateNative(appName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool_bool(base.SuperHandle, selLaunchApplicationShowIconAutolaunch_Handle, arg, showIcon, autolaunch) : Messaging.bool_objc_msgSend_IntPtr_bool_bool(base.Handle, selLaunchApplicationShowIconAutolaunch_Handle, arg, showIcon, autolaunch)); NSString.ReleaseNative(arg); return result; } [Export("fullPathForApplication:")] public virtual string FullPathForApplication(string appName) { NSApplication.EnsureUIThread(); if (appName == null) { throw new ArgumentNullException("appName"); } IntPtr arg = NSString.CreateNative(appName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFullPathForApplication_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFullPathForApplication_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("selectFile:inFileViewerRootedAtPath:")] public virtual bool SelectFile(string fullPath, string rootFullPath) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } if (rootFullPath == null) { throw new ArgumentNullException("rootFullPath"); } IntPtr arg = NSString.CreateNative(fullPath); IntPtr arg2 = NSString.CreateNative(rootFullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSelectFileInFileViewerRootedAtPath_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSelectFileInFileViewerRootedAtPath_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("activateFileViewerSelectingURLs:")] public virtual void ActivateFileViewer(NSUrl[] fileUrls) { NSApplication.EnsureUIThread(); if (fileUrls == null) { throw new ArgumentNullException("fileUrls"); } NSArray nSArray = NSArray.FromNSObjects(fileUrls); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selActivateFileViewerSelectingURLs_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selActivateFileViewerSelectingURLs_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("showSearchResultsForQueryString:")] public virtual bool ShowSearchResults(string queryString) { NSApplication.EnsureUIThread(); if (queryString == null) { throw new ArgumentNullException("queryString"); } IntPtr arg = NSString.CreateNative(queryString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShowSearchResultsForQueryString_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShowSearchResultsForQueryString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("noteFileSystemChanged:")] public virtual void NoteFileSystemChanged(string path) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selNoteFileSystemChanged_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selNoteFileSystemChanged_Handle, arg); } NSString.ReleaseNative(arg); } [Export("getInfoForFile:application:type:")] public virtual bool GetInfo(string fullPath, out string appName, out string fileType) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selGetInfoForFileApplicationType_Handle, arg, intPtr, intPtr2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selGetInfoForFileApplicationType_Handle, arg, intPtr, intPtr2)); NSString.ReleaseNative(arg); IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); appName = ((intPtr3 != IntPtr.Zero) ? NSString.FromHandle(intPtr3) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); fileType = ((intPtr4 != IntPtr.Zero) ? NSString.FromHandle(intPtr4) : null); Marshal.FreeHGlobal(intPtr2); return result; } [Export("isFilePackageAtPath:")] public virtual bool IsFilePackage(string fullPath) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsFilePackageAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsFilePackageAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("iconForFile:")] public virtual NSImage IconForFile(string fullPath) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr arg = NSString.CreateNative(fullPath); NSImage result = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selIconForFile_Handle, arg))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selIconForFile_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("iconForFiles:")] public virtual NSImage IconForFiles(string[] fullPaths) { NSApplication.EnsureUIThread(); if (fullPaths == null) { throw new ArgumentNullException("fullPaths"); } NSArray nSArray = NSArray.FromStrings(fullPaths); NSImage result = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selIconForFiles_Handle, nSArray.Handle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selIconForFiles_Handle, nSArray.Handle)))); nSArray.Dispose(); return result; } [Export("iconForFileType:")] public virtual NSImage IconForFileType(string fileType) { NSApplication.EnsureUIThread(); if (fileType == null) { throw new ArgumentNullException("fileType"); } IntPtr arg = NSString.CreateNative(fileType); NSImage result = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selIconForFileType_Handle, arg))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selIconForFileType_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setIcon:forFile:options:")] public virtual bool SetIconforFile(NSImage image, string fullPath, NSWorkspaceIconCreationOptions options) { NSApplication.EnsureUIThread(); if (image == null) { throw new ArgumentNullException("image"); } if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selSetIconForFileOptions_Handle, image.Handle, arg, (ulong)options) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selSetIconForFileOptions_Handle, image.Handle, arg, (ulong)options)); NSString.ReleaseNative(arg); return result; } [Export("recycleURLs:completionHandler:")] public unsafe virtual void RecycleUrls(NSArray urls, NSWorkspaceUrlHandler completionHandler) { NSApplication.EnsureUIThread(); if (urls == null) { throw new ArgumentNullException("urls"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSWorkspaceUrlHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRecycleURLsCompletionHandler_Handle, urls.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRecycleURLsCompletionHandler_Handle, urls.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("duplicateURLs:completionHandler:")] public unsafe virtual void DuplicateUrls(NSArray urls, NSWorkspaceUrlHandler completionHandler) { NSApplication.EnsureUIThread(); if (urls == null) { throw new ArgumentNullException("urls"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSWorkspaceUrlHandler.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selDuplicateURLsCompletionHandler_Handle, urls.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDuplicateURLsCompletionHandler_Handle, urls.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:")] public virtual bool GetFileSystemInfo(string fullPath, out bool removableFlag, out bool writableFlag, out bool unmountableFlag, out string description, out string fileSystemType) { NSApplication.EnsureUIThread(); if (fullPath == null) { throw new ArgumentNullException("fullPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); IntPtr arg = NSString.CreateNative(fullPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_out_Boolean_out_Boolean_out_Boolean_IntPtr_IntPtr(base.SuperHandle, selGetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType_Handle, arg, out removableFlag, out writableFlag, out unmountableFlag, intPtr, intPtr2) : Messaging.bool_objc_msgSend_IntPtr_out_Boolean_out_Boolean_out_Boolean_IntPtr_IntPtr(base.Handle, selGetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType_Handle, arg, out removableFlag, out writableFlag, out unmountableFlag, intPtr, intPtr2)); NSString.ReleaseNative(arg); IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); description = ((intPtr3 != IntPtr.Zero) ? NSString.FromHandle(intPtr3) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); fileSystemType = ((intPtr4 != IntPtr.Zero) ? NSString.FromHandle(intPtr4) : null); Marshal.FreeHGlobal(intPtr2); return result; } [Export("performFileOperation:source:destination:files:tag:")] public virtual bool PerformFileOperation(NSString workspaceOperation, string source, string destination, string[] files, out long tag) { NSApplication.EnsureUIThread(); if (workspaceOperation == null) { throw new ArgumentNullException("workspaceOperation"); } if (source == null) { throw new ArgumentNullException("source"); } if (destination == null) { throw new ArgumentNullException("destination"); } if (files == null) { throw new ArgumentNullException("files"); } IntPtr arg = NSString.CreateNative(source); IntPtr arg2 = NSString.CreateNative(destination); NSArray nSArray = NSArray.FromStrings(files); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_out_Int64(base.SuperHandle, selPerformFileOperationSourceDestinationFilesTag_Handle, workspaceOperation.Handle, arg, arg2, nSArray.Handle, out tag) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_out_Int64(base.Handle, selPerformFileOperationSourceDestinationFilesTag_Handle, workspaceOperation.Handle, arg, arg2, nSArray.Handle, out tag)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); nSArray.Dispose(); return result; } [Export("unmountAndEjectDeviceAtPath:")] public virtual bool UnmountAndEjectDevice(string path) { NSApplication.EnsureUIThread(); if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnmountAndEjectDeviceAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selUnmountAndEjectDeviceAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("unmountAndEjectDeviceAtURL:error:")] public virtual bool UnmountAndEjectDevice(NSUrl url, out NSError error) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUnmountAndEjectDeviceAtURLError_Handle, url.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selUnmountAndEjectDeviceAtURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("extendPowerOffBy:")] public virtual long ExtendPowerOffBy(long requested) { NSApplication.EnsureUIThread(); if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_Int64(base.Handle, selExtendPowerOffBy_Handle, requested); } return Messaging.Int64_objc_msgSendSuper_Int64(base.SuperHandle, selExtendPowerOffBy_Handle, requested); } [Export("hideOtherApplications")] public virtual void HideOtherApplications() { NSApplication.EnsureUIThread(); if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selHideOtherApplicationsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selHideOtherApplicationsHandle); } } [Export("URLForApplicationWithBundleIdentifier:")] public virtual NSUrl UrlForApplication(string bundleIdentifier) { NSApplication.EnsureUIThread(); if (bundleIdentifier == null) { throw new ArgumentNullException("bundleIdentifier"); } IntPtr arg = NSString.CreateNative(bundleIdentifier); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selURLForApplicationWithBundleIdentifier_Handle, arg))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selURLForApplicationWithBundleIdentifier_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("URLForApplicationToOpenURL:")] public virtual NSUrl UrlForApplication(NSUrl url) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selURLForApplicationToOpenURL_Handle, url.Handle)); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selURLForApplicationToOpenURL_Handle, url.Handle)); } [Export("absolutePathForAppBundleWithIdentifier:")] public virtual string AbsolutePathForAppBundle(string bundleIdentifier) { NSApplication.EnsureUIThread(); if (bundleIdentifier == null) { throw new ArgumentNullException("bundleIdentifier"); } IntPtr arg = NSString.CreateNative(bundleIdentifier); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAbsolutePathForAppBundleWithIdentifier_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAbsolutePathForAppBundleWithIdentifier_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:")] public virtual bool LaunchApp(string bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, IntPtr identifier) { NSApplication.EnsureUIThread(); if (bundleIdentifier == null) { throw new ArgumentNullException("bundleIdentifier"); } if (descriptor == null) { throw new ArgumentNullException("descriptor"); } IntPtr arg = NSString.CreateNative(bundleIdentifier); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selLaunchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier_Handle, arg, (ulong)options, descriptor.Handle, identifier) : Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selLaunchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier_Handle, arg, (ulong)options, descriptor.Handle, identifier)); NSString.ReleaseNative(arg); return result; } [Export("openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:")] public virtual bool OpenUrls(NSUrl[] urls, string bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, string[] identifiers) { NSApplication.EnsureUIThread(); if (urls == null) { throw new ArgumentNullException("urls"); } if (bundleIdentifier == null) { throw new ArgumentNullException("bundleIdentifier"); } if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (identifiers == null) { throw new ArgumentNullException("identifiers"); } NSArray nSArray = NSArray.FromNSObjects(urls); IntPtr arg = NSString.CreateNative(bundleIdentifier); NSArray nSArray2 = NSArray.FromStrings(identifiers); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selOpenURLsWithAppBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifiers_Handle, nSArray.Handle, arg, (ulong)options, descriptor.Handle, nSArray2.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selOpenURLsWithAppBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifiers_Handle, nSArray.Handle, arg, (ulong)options, descriptor.Handle, nSArray2.Handle)); nSArray.Dispose(); NSString.ReleaseNative(arg); nSArray2.Dispose(); return result; } [Export("typeOfFile:error:")] public virtual string TypeOfFile(string absoluteFilePath, out NSError outError) { NSApplication.EnsureUIThread(); if (absoluteFilePath == null) { throw new ArgumentNullException("absoluteFilePath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(absoluteFilePath); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTypeOfFileError_Handle, arg, intPtr)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selTypeOfFileError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("localizedDescriptionForType:")] public virtual string LocalizedDescription(string typeName) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLocalizedDescriptionForType_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLocalizedDescriptionForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("preferredFilenameExtensionForType:")] public virtual string PreferredFilenameExtension(string typeName) { NSApplication.EnsureUIThread(); if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(typeName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPreferredFilenameExtensionForType_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPreferredFilenameExtensionForType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("filenameExtension:isValidForType:")] public virtual bool IsFilenameExtensionValid(string filenameExtension, string typeName) { NSApplication.EnsureUIThread(); if (filenameExtension == null) { throw new ArgumentNullException("filenameExtension"); } if (typeName == null) { throw new ArgumentNullException("typeName"); } IntPtr arg = NSString.CreateNative(filenameExtension); IntPtr arg2 = NSString.CreateNative(typeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFilenameExtensionIsValidForType_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selFilenameExtensionIsValidForType_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("type:conformsToType:")] public virtual bool TypeConformsTo(string firstTypeName, string secondTypeName) { NSApplication.EnsureUIThread(); if (firstTypeName == null) { throw new ArgumentNullException("firstTypeName"); } if (secondTypeName == null) { throw new ArgumentNullException("secondTypeName"); } IntPtr arg = NSString.CreateNative(firstTypeName); IntPtr arg2 = NSString.CreateNative(secondTypeName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selTypeConformsToType_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selTypeConformsToType_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setDesktopImageURL:forScreen:options:error:")] public virtual bool SetDesktopImageUrl(NSUrl url, NSScreen screen, NSDictionary options, NSError error) { NSApplication.EnsureUIThread(); if (url == null) { throw new ArgumentNullException("url"); } if (screen == null) { throw new ArgumentNullException("screen"); } if (options == null) { throw new ArgumentNullException("options"); } if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selSetDesktopImageURLForScreenOptionsError_Handle, url.Handle, screen.Handle, options.Handle, error.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetDesktopImageURLForScreenOptionsError_Handle, url.Handle, screen.Handle, options.Handle, error.Handle); } [Export("desktopImageURLForScreen:")] public virtual NSUrl DesktopImageUrl(NSScreen screen) { NSApplication.EnsureUIThread(); if (screen == null) { throw new ArgumentNullException("screen"); } if (IsDirectBinding) { return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDesktopImageURLForScreen_Handle, screen.Handle)); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDesktopImageURLForScreen_Handle, screen.Handle)); } [Export("desktopImageOptionsForScreen:")] public virtual NSDictionary DesktopImageOptions(NSScreen screen) { NSApplication.EnsureUIThread(); if (screen == null) { throw new ArgumentNullException("screen"); } if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDesktopImageOptionsForScreen_Handle, screen.Handle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDesktopImageOptionsForScreen_Handle, screen.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_NotificationCenter_var = null; __mt_FileLabelColors_var = null; __mt_LaunchedApplications_var = null; __mt_ActiveApplication_var = null; __mt_RunningApplications_var = null; __mt_FrontmostApplication_var = null; __mt_MenuBarOwningApplication_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceApplicationEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSWorkspaceApplicationEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSRunningApplication Application { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceApplicationKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSRunningApplication)Runtime.GetNSObject(intPtr); } } public NSWorkspaceApplicationEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceFileOperationEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSWorkspaceFileOperationEventArgs : NSNotificationEventArgs { private static IntPtr k0; public int FileType { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSOperationNumber"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return 0; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.Int32Value; } } public NSWorkspaceFileOperationEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceIconCreationOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSWorkspaceIconCreationOptions : ulong { NSExcludeQuickDrawElements = 2uL, NSExclude10_4Elements = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceLaunchOptions.cs ================================================ using System; namespace AppKit; [Flags] public enum NSWorkspaceLaunchOptions : ulong { Print = 2uL, InhibitingBackgroundOnly = 0x80uL, WithoutAddingToRecents = 0x100uL, WithoutActivation = 0x200uL, Async = 0x10000uL, AllowingClassicStartup = 0x20000uL, PreferringClassic = 0x40000uL, NewInstance = 0x80000uL, Hide = 0x100000uL, HideOthers = 0x200000uL, Default = 0x30000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceMountEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSWorkspaceMountEventArgs : NSNotificationEventArgs { private static IntPtr k0; private static IntPtr k1; public string VolumeLocalizedName { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeLocalizedNameKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return NSString.FromHandle(intPtr); } } public NSUrl VolumeUrl { get { if (k1 == IntPtr.Zero) { k1 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeURLKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k1); if (intPtr == IntPtr.Zero) { return null; } return (NSUrl)Runtime.GetNSObject(intPtr); } } public NSWorkspaceMountEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceRenamedEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AppKit; public class NSWorkspaceRenamedEventArgs : NSNotificationEventArgs { private static IntPtr k0; private static IntPtr k1; private static IntPtr k2; private static IntPtr k3; public string VolumeLocalizedName { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeLocalizedNameKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return NSString.FromHandle(intPtr); } } public NSUrl VolumeUrl { get { if (k1 == IntPtr.Zero) { k1 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeURLKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k1); if (intPtr == IntPtr.Zero) { return null; } return (NSUrl)Runtime.GetNSObject(intPtr); } } public string OldVolumeLocalizedName { get { if (k2 == IntPtr.Zero) { k2 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeOldLocalizedNameKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k2); if (intPtr == IntPtr.Zero) { return null; } return NSString.FromHandle(intPtr); } } public NSUrl OldVolumeUrl { get { if (k3 == IntPtr.Zero) { k3 = Dlfcn.GetIntPtr(Libraries.AppKit.Handle, "NSWorkspaceVolumeOldURLKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k3); if (intPtr == IntPtr.Zero) { return null; } return (NSUrl)Runtime.GetNSObject(intPtr); } } public NSWorkspaceRenamedEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWorkspaceUrlHandler.cs ================================================ using Foundation; namespace AppKit; public delegate void NSWorkspaceUrlHandler(NSDictionary newUrls, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/NSWritingDirection.cs ================================================ using System; namespace AppKit; [Flags] public enum NSWritingDirection : long { Natural = -1L, LeftToRight = 0L, RightToLeft = 1L, Embedding = 0L, Override = 2L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/OneShotTracker.cs ================================================ using System.Collections.Generic; using Foundation; namespace AppKit; internal static class OneShotTracker { [Register("__MonoMac_OnEndTrackerDispatch")] internal class Dispatcher : NSObject { private NSAction action; public Dispatcher(NSAction action) { this.action = action; } [Export("xamarinApplySelector")] [Preserve(Conditional = true)] public void Apply() { try { action(); } finally { pendingInvokes.Remove(this); } } } private static List pendingInvokes = new List(); public static NSObject Create(NSAction action) { Dispatcher dispatcher = new Dispatcher(action); pendingInvokes.Add(dispatcher); return dispatcher; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AppKit/OpenDocumentCompletionHandler.cs ================================================ using Foundation; namespace AppKit; public delegate void OpenDocumentCompletionHandler(NSDocument document, bool documentWasAlreadyOpen, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AccessoryInfo.cs ================================================ namespace AudioToolbox; public class AccessoryInfo { public int ID { get; private set; } public string Description { get; private set; } internal AccessoryInfo(int id, string description) { ID = id; Description = description; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBalanceFade.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public class AudioBalanceFade { private struct Layout { public float LeftRightBalance; public float BackFrontFade; public AudioBalanceFadeType Type; public IntPtr ChannelLayoutWeak; } public float LeftRightBalance { get; set; } public float BackFrontFade { get; set; } public AudioBalanceFadeType Type { get; set; } public AudioChannelLayout ChannelLayout { get; private set; } public AudioBalanceFade(AudioChannelLayout channelLayout) { if (channelLayout == null) { throw new ArgumentNullException("channelLayout"); } ChannelLayout = channelLayout; } public unsafe float[] GetBalanceFade() { int num = sizeof(Layout); Layout layout = ToStruct(); IntPtr intPtr = Marshal.AllocHGlobal(num); *(Layout*)(void*)intPtr = layout; if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.BalanceFade, num, intPtr, out var outPropertyDataSize) != 0) { return null; } float[] array = new float[outPropertyDataSize / 4]; AudioFormatError num2; fixed (float* outPropertyData = array) { num2 = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.BalanceFade, num, intPtr, ref outPropertyDataSize, outPropertyData); } Marshal.FreeHGlobal(layout.ChannelLayoutWeak); Marshal.FreeHGlobal(intPtr); if (num2 != 0) { return null; } return array; } private Layout ToStruct() { Layout layout = default(Layout); layout.LeftRightBalance = LeftRightBalance; layout.BackFrontFade = BackFrontFade; layout.Type = Type; Layout result = layout; if (ChannelLayout != null) { result.ChannelLayoutWeak = ChannelLayout.ToBlock(out var _); } return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBalanceFadeType.cs ================================================ namespace AudioToolbox; public enum AudioBalanceFadeType { MaxUnityGain, EqualPower } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBuffer.cs ================================================ using System; namespace AudioToolbox; public struct AudioBuffer { public int NumberChannels; public int DataByteSize; public IntPtr Data; public override string ToString() { return $"[channels={NumberChannels},dataByteSize={DataByteSize},ptrData=0x{Data:x}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBufferList.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; [StructLayout(LayoutKind.Sequential)] [Obsolete("Use AudioBuffers")] public class AudioBufferList { internal int bufferCount; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] internal AudioBuffer[] buffers; public int BufferCount => bufferCount; public AudioBuffer[] Buffers => buffers; public AudioBufferList() { } public AudioBufferList(int count) { bufferCount = count; buffers = new AudioBuffer[count]; } public override string ToString() { if (buffers != null && bufferCount > 0) { return $"[buffers={buffers[0]},bufferSize={buffers[0].DataByteSize}]"; } return "[empty]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBuffers.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public class AudioBuffers : IDisposable { private IntPtr address; private readonly bool owns; public unsafe int Count => *(int*)(void*)address; public unsafe AudioBuffer this[int index] { get { if (index >= Count) { throw new ArgumentOutOfRangeException("index"); } byte* ptr = (byte*)(void*)address; return *(AudioBuffer*)(ptr + 4 + index * sizeof(AudioBuffer)); } set { if (index >= Count) { throw new ArgumentOutOfRangeException("index"); } byte* ptr = (byte*)(void*)address; AudioBuffer* ptr2 = (AudioBuffer*)(ptr + 4 + index * sizeof(AudioBuffer)); *ptr2 = value; } } public AudioBuffers(IntPtr address) : this(address, owns: false) { } public AudioBuffers(IntPtr address, bool owns) { if (address == IntPtr.Zero) { throw new ArgumentException("address"); } this.address = address; this.owns = owns; } public unsafe AudioBuffers(int count) { if (count < 0) { throw new ArgumentOutOfRangeException("count"); } int cb = 4 + count * sizeof(AudioBuffer); address = Marshal.AllocHGlobal(cb); owns = true; Marshal.WriteInt32(address, 0, count); AudioBuffer* ptr = (AudioBuffer*)((byte*)(void*)address + 4); for (int i = 0; i < count; i++) { ptr->NumberChannels = 0; ptr->DataByteSize = 0; ptr->Data = IntPtr.Zero; ptr++; } } ~AudioBuffers() { Dispose(disposing: false); GC.SuppressFinalize(this); } public static explicit operator IntPtr(AudioBuffers audioBuffers) { return audioBuffers.address; } public unsafe void SetData(int index, IntPtr data) { if (index >= Count) { throw new ArgumentOutOfRangeException("index"); } byte* ptr = (byte*)(void*)address; IntPtr* ptr2 = (IntPtr*)(ptr + 4 + index * sizeof(AudioBuffer) + 4 + 4); *ptr2 = data; } public unsafe void SetData(int index, IntPtr data, int dataByteSize) { if (index >= Count) { throw new ArgumentOutOfRangeException("index"); } byte* ptr = (byte*)(void*)address; int* ptr2 = (int*)(ptr + 4 + index * sizeof(AudioBuffer) + 4); *ptr2 = dataByteSize; ptr2++; IntPtr* ptr3 = (IntPtr*)ptr2; *ptr3 = data; } public void Dispose() { Dispose(disposing: true); } protected virtual void Dispose(bool disposing) { if (owns && address != IntPtr.Zero) { Marshal.FreeHGlobal(address); address = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioBytePacketTranslation.cs ================================================ namespace AudioToolbox; internal struct AudioBytePacketTranslation { public long Byte; public long Packet; public int ByteOffsetInPacket; public BytePacketTranslationFlags Flags; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelBit.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioChannelBit { Left = 1, Right = 2, Center = 4, LFEScreen = 8, LeftSurround = 0x10, RightSurround = 0x20, LeftCenter = 0x40, RightCenter = 0x80, CenterSurround = 0x100, LeftSurroundDirect = 0x200, RightSurroundDirect = 0x400, TopCenterSurround = 0x800, VerticalHeightLeft = 0x1000, VerticalHeightCenter = 0x2000, VerticalHeightRight = 0x4000, TopBackLeft = 0x8000, TopBackCenter = 0x10000, TopBackRight = 0x20000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelDescription.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public struct AudioChannelDescription { public AudioChannelLabel Label; public AudioChannelFlags Flags; private float Coord0; private float Coord1; private float Coord2; public float[] Coords { get { return new float[3] { Coord0, Coord1, Coord2 }; } set { if (value.Length != 3) { throw new ArgumentException("Must contain three floats"); } Coord0 = value[0]; Coord1 = value[1]; Coord2 = value[2]; } } public unsafe string Name { get { int ioDataSize = sizeof(IntPtr); int inSpecifierSize = sizeof(AudioChannelDescription); IntPtr intPtr = ToPointer(); IntPtr outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ChannelName, inSpecifierSize, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num != 0) { return null; } return new CFString(outPropertyData, owns: true); } } public unsafe string ShortName { get { int ioDataSize = sizeof(IntPtr); int inSpecifierSize = sizeof(AudioChannelDescription); IntPtr intPtr = ToPointer(); IntPtr outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ChannelShortName, inSpecifierSize, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num != 0) { return null; } return new CFString(outPropertyData, owns: true); } } internal unsafe IntPtr ToPointer() { AudioChannelDescription* ptr = (AudioChannelDescription*)(void*)Marshal.AllocHGlobal(20); *ptr = this; return (IntPtr)ptr; } public override string ToString() { return $"[id={Label} {Flags} - {Coords[0]},{Coords[1]},{Coords[2]}"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioChannelFlags { AllOff = 0, RectangularCoordinates = 1, SphericalCoordinates = 2, Meters = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelLabel.cs ================================================ namespace AudioToolbox; public enum AudioChannelLabel { Unknown = -1, Unused = 0, UseCoordinates = 100, Left = 1, Right = 2, Center = 3, LFEScreen = 4, LeftSurround = 5, RightSurround = 6, LeftCenter = 7, RightCenter = 8, CenterSurround = 9, LeftSurroundDirect = 10, RightSurroundDirect = 11, TopCenterSurround = 12, VerticalHeightLeft = 13, VerticalHeightCenter = 14, VerticalHeightRight = 15, TopBackLeft = 16, TopBackCenter = 17, TopBackRight = 18, RearSurroundLeft = 33, RearSurroundRight = 34, LeftWide = 35, RightWide = 36, LFE2 = 37, LeftTotal = 38, RightTotal = 39, HearingImpaired = 40, Narration = 41, Mono = 42, DialogCentricMix = 43, CenterSurroundDirect = 44, Haptic = 45, Ambisonic_W = 200, Ambisonic_X = 201, Ambisonic_Y = 202, Ambisonic_Z = 203, MS_Mid = 204, MS_Side = 205, XY_X = 206, XY_Y = 207, HeadphonesLeft = 301, HeadphonesRight = 302, ClickTrack = 304, ForeignLanguage = 305, Discrete = 400, Discrete_0 = 65536, Discrete_1 = 65537, Discrete_2 = 65538, Discrete_3 = 65539, Discrete_4 = 65540, Discrete_5 = 65541, Discrete_6 = 65542, Discrete_7 = 65543, Discrete_8 = 65544, Discrete_9 = 65545, Discrete_10 = 65546, Discrete_11 = 65547, Discrete_12 = 65548, Discrete_13 = 65549, Discrete_14 = 65550, Discrete_15 = 65551, Discrete_65535 = 131071 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelLayout.cs ================================================ using System; using System.Diagnostics; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; namespace AudioToolbox; [DebuggerDisplay("{Name}")] public class AudioChannelLayout { public AudioChannelLayoutTag AudioTag; public AudioChannelBit ChannelUsage; public AudioChannelDescription[] Channels; [Advice("Use the strongly typed AudioTag instead")] public int Tag { get { return (int)AudioTag; } set { AudioTag = (AudioChannelLayoutTag)value; } } [Advice("Use ChannelUsage instead")] public int Bitmap { get { return (int)ChannelUsage; } set { ChannelUsage = (AudioChannelBit)value; } } public unsafe string Name { get { int ioDataSize = sizeof(IntPtr); int size; IntPtr intPtr = ToBlock(out size); IntPtr outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ChannelLayoutName, size, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num != 0) { return null; } return new CFString(outPropertyData, owns: true); } } public unsafe string SimpleName { get { int ioDataSize = sizeof(IntPtr); int size; IntPtr intPtr = ToBlock(out size); IntPtr outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ChannelLayoutName, size, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num != 0) { return null; } return new CFString(outPropertyData, owns: true); } } public AudioChannelLayout() { } internal unsafe AudioChannelLayout(IntPtr h) { AudioTag = (AudioChannelLayoutTag)Marshal.ReadInt32(h, 0); ChannelUsage = (AudioChannelBit)Marshal.ReadInt32(h, 4); Channels = new AudioChannelDescription[Marshal.ReadInt32(h, 8)]; int num = 12; int num2 = sizeof(AudioChannelDescription); for (int i = 0; i < Channels.Length; i++) { Channels[i] = *(AudioChannelDescription*)((byte*)(void*)h + num); num += num2; } } public static AudioChannelLayout FromAudioChannelBitmap(AudioChannelBit channelBitmap) { return GetChannelLayout(AudioFormatProperty.ChannelLayoutForBitmap, (int)channelBitmap); } public static AudioChannelLayout FromAudioChannelLayoutTag(AudioChannelLayoutTag channelLayoutTag) { return GetChannelLayout(AudioFormatProperty.ChannelLayoutForTag, (int)channelLayoutTag); } private static AudioChannelLayout GetChannelLayout(AudioFormatProperty property, int value) { AudioFormatPropertyNative.AudioFormatGetPropertyInfo(property, 4, ref value, out var outPropertyDataSize); IntPtr intPtr = Marshal.AllocHGlobal(outPropertyDataSize); AudioChannelLayout result = ((AudioFormatPropertyNative.AudioFormatGetProperty(property, 4, ref value, ref outPropertyDataSize, intPtr) != 0) ? null : new AudioChannelLayout(intPtr)); Marshal.FreeHGlobal(intPtr); return result; } internal static AudioChannelLayout FromHandle(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } return new AudioChannelLayout(handle); } public override string ToString() { return $"AudioChannelLayout: Tag={AudioTag} Bitmap={ChannelUsage} Channels={Channels.Length}"; } internal unsafe IntPtr ToBlock(out int size) { if (Channels == null) { throw new ArgumentNullException("Channels"); } int num = sizeof(AudioChannelDescription); size = 12 + Channels.Length * num; IntPtr intPtr = Marshal.AllocHGlobal(size); Marshal.WriteInt32(intPtr, (int)AudioTag); Marshal.WriteInt32(intPtr, 4, (int)ChannelUsage); Marshal.WriteInt32(intPtr, 8, Channels.Length); AudioChannelDescription* ptr = (AudioChannelDescription*)((byte*)(void*)intPtr + 12); AudioChannelDescription[] channels = Channels; foreach (AudioChannelDescription audioChannelDescription in channels) { *ptr = audioChannelDescription; ptr++; } return intPtr; } public static AudioFormatError Validate(AudioChannelLayout layout) { if (layout == null) { throw new ArgumentNullException("layout"); } int size; IntPtr intPtr = layout.ToBlock(out size); AudioFormatError result = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ValidateChannelLayout, size, intPtr, IntPtr.Zero, IntPtr.Zero); Marshal.FreeHGlobal(intPtr); return result; } public unsafe static int[] GetChannelMap(AudioChannelLayout inputLayout, AudioChannelLayout outputLayout) { if (inputLayout == null) { throw new ArgumentNullException("inputLayout"); } if (outputLayout == null) { throw new ArgumentNullException("outputLayout"); } int? numberOfChannels = GetNumberOfChannels(outputLayout); if (!numberOfChannels.HasValue) { throw new ArgumentException("outputLayout"); } int size; IntPtr intPtr = inputLayout.ToBlock(out size); IntPtr intPtr2 = outputLayout.ToBlock(out size); IntPtr[] array = new IntPtr[2] { intPtr, intPtr2 }; size = sizeof(IntPtr) * array.Length; int[] array2; AudioFormatError num; fixed (IntPtr* inSpecifier = &array[0]) { array2 = new int[numberOfChannels.Value]; int ioDataSize = 4 * array2.Length; fixed (int* outPropertyData = &array2[0]) { num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.ChannelMap, size, inSpecifier, ref ioDataSize, outPropertyData); } } Marshal.FreeHGlobal(intPtr); Marshal.FreeHGlobal(intPtr2); if (num != 0) { return null; } return array2; } public unsafe static float[,] GetMatrixMixMap(AudioChannelLayout inputLayout, AudioChannelLayout outputLayout) { if (inputLayout == null) { throw new ArgumentNullException("inputLayout"); } if (outputLayout == null) { throw new ArgumentNullException("outputLayout"); } int? numberOfChannels = GetNumberOfChannels(outputLayout); if (!numberOfChannels.HasValue) { throw new ArgumentException("outputLayout"); } int? numberOfChannels2 = GetNumberOfChannels(inputLayout); if (!numberOfChannels2.HasValue) { throw new ArgumentException("inputLayout"); } int size; IntPtr intPtr = inputLayout.ToBlock(out size); IntPtr intPtr2 = outputLayout.ToBlock(out size); IntPtr[] array = new IntPtr[2] { intPtr, intPtr2 }; size = sizeof(IntPtr) * array.Length; float[,] array2; AudioFormatError num; fixed (IntPtr* inSpecifier = &array[0]) { array2 = new float[numberOfChannels2.Value, numberOfChannels.Value]; int ioDataSize = 4 * numberOfChannels2.Value * numberOfChannels.Value; fixed (float* outPropertyData = &array2[0, 0]) { num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.MatrixMixMap, size, inSpecifier, ref ioDataSize, outPropertyData); } } Marshal.FreeHGlobal(intPtr); Marshal.FreeHGlobal(intPtr2); if (num != 0) { return null; } return array2; } public static int? GetNumberOfChannels(AudioChannelLayout layout) { if (layout == null) { throw new ArgumentNullException("layout"); } int size; IntPtr intPtr = layout.ToBlock(out size); int ioDataSize = 4; int outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.NumberOfChannelsForLayout, size, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num == AudioFormatError.None) { return outPropertyData; } return null; } public static AudioChannelLayoutTag? GetTagForChannelLayout(AudioChannelLayout layout) { if (layout == null) { throw new ArgumentNullException("layout"); } int size; IntPtr intPtr = layout.ToBlock(out size); int ioDataSize = 4; int outPropertyData; AudioFormatError num = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.TagForChannelLayout, size, intPtr, ref ioDataSize, out outPropertyData); Marshal.FreeHGlobal(intPtr); if (num == AudioFormatError.None) { return (AudioChannelLayoutTag)outPropertyData; } return null; } public unsafe static AudioChannelLayoutTag[] GetTagsForNumberOfChannels(int count) { if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.TagsForNumberOfChannels, 4, ref count, out var outPropertyDataSize) != 0) { return null; } AudioChannelLayoutTag[] array = new AudioChannelLayoutTag[outPropertyDataSize / 4]; fixed (AudioChannelLayoutTag* outPropertyData = array) { if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.TagsForNumberOfChannels, 4, ref count, ref outPropertyDataSize, (int*)outPropertyData) != 0) { return null; } return array; } } public NSData AsData() { int size; IntPtr intPtr = ToBlock(out size); NSData result = NSData.FromBytes(intPtr, (uint)size); Marshal.FreeHGlobal(intPtr); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelLayoutTag.cs ================================================ namespace AudioToolbox; public enum AudioChannelLayoutTag : uint { UseChannelDescriptions = 0u, UseChannelBitmap = 65536u, Mono = 6553601u, Stereo = 6619138u, StereoHeadphones = 6684674u, MatrixStereo = 6750210u, MidSide = 6815746u, XY = 6881282u, Binaural = 6946818u, Ambisonic_B_Format = 7012356u, Quadraphonic = 7077892u, Pentagonal = 7143429u, Hexagonal = 7208966u, Octagonal = 7274504u, Cube = 7340040u, MPEG_1_0 = 6553601u, MPEG_2_0 = 6619138u, MPEG_3_0_A = 7405571u, MPEG_3_0_B = 7471107u, MPEG_4_0_A = 7536644u, MPEG_4_0_B = 7602180u, MPEG_5_0_A = 7667717u, MPEG_5_0_B = 7733253u, MPEG_5_0_C = 7798789u, MPEG_5_0_D = 7864325u, MPEG_5_1_A = 7929862u, MPEG_5_1_B = 7995398u, MPEG_5_1_C = 8060934u, MPEG_5_1_D = 8126470u, MPEG_6_1_A = 8192007u, MPEG_7_1_A = 8257544u, MPEG_7_1_B = 8323080u, MPEG_7_1_C = 8388616u, Emagic_Default_7_1 = 8454152u, SMPTE_DTV = 8519688u, ITU_1_0 = 6553601u, ITU_2_0 = 6619138u, ITU_2_1 = 8585219u, ITU_2_2 = 8650756u, ITU_3_0 = 7405571u, ITU_3_1 = 7536644u, ITU_3_2 = 7667717u, ITU_3_2_1 = 7929862u, ITU_3_4_1 = 8388616u, DVD_0 = 6553601u, DVD_1 = 6619138u, DVD_2 = 8585219u, DVD_3 = 8650756u, DVD_4 = 8716291u, DVD_5 = 8781828u, DVD_6 = 8847365u, DVD_7 = 7405571u, DVD_8 = 7536644u, DVD_9 = 7667717u, DVD_10 = 8912900u, DVD_11 = 8978437u, DVD_12 = 7929862u, DVD_13 = 7536644u, DVD_14 = 7667717u, DVD_15 = 8912900u, DVD_16 = 8978437u, DVD_17 = 7929862u, DVD_18 = 9043973u, DVD_19 = 7733253u, DVD_20 = 7995398u, AudioUnit_4 = 7077892u, AudioUnit_5 = 7143429u, AudioUnit_6 = 7208966u, AudioUnit_8 = 7274504u, AudioUnit_5_0 = 7733253u, AudioUnit_6_0 = 9109510u, AudioUnit_7_0 = 9175047u, AudioUnit_7_0_Front = 9699335u, AudioUnit_5_1 = 7929862u, AudioUnit_6_1 = 8192007u, AudioUnit_7_1 = 8388616u, AudioUnit_7_1_Front = 8257544u, AAC_3_0 = 7471107u, AAC_Quadraphonic = 7077892u, AAC_4_0 = 7602180u, AAC_5_0 = 7864325u, AAC_5_1 = 8126470u, AAC_6_0 = 9240582u, AAC_6_1 = 9306119u, AAC_7_0 = 9371655u, AAC_7_1 = 8323080u, AAC_Octagonal = 9437192u, TMH_10_2_std = 9502736u, TMH_10_2_full = 9568277u, AC3_1_0_1 = 9764866u, AC3_3_0 = 9830403u, AC3_3_1 = 9895940u, AC3_3_0_1 = 9961476u, AC3_2_1_1 = 10027012u, AC3_3_1_1 = 10092549u, EAC_6_0_A = 10158086u, EAC_7_0_A = 10223623u, EAC3_6_1_A = 10289159u, EAC3_6_1_B = 10354695u, EAC3_6_1_C = 10420231u, EAC3_7_1_A = 10485768u, EAC3_7_1_B = 10551304u, EAC3_7_1_C = 10616840u, EAC3_7_1_D = 10682376u, EAC3_7_1_E = 10747912u, EAC3_7_1_F = 10813448u, EAC3_7_1_G = 10878984u, EAC3_7_1_H = 10944520u, DTS_3_1 = 11010052u, DTS_4_1 = 11075589u, DTS_6_0_A = 11141126u, DTS_6_0_B = 11206662u, DTS_6_0_C = 11272198u, DTS_6_1_A = 11337735u, DTS_6_1_B = 11403271u, DTS_6_1_C = 11468807u, DTS_7_0 = 11534343u, DTS_7_1 = 11599880u, DTS_8_0_A = 11665416u, DTS_8_0_B = 11730952u, DTS_8_1_A = 11796489u, DTS_8_1_B = 11862025u, DTS_6_1_D = 11927559u, DiscreteInOrder = 9633792u, Unknown = 4294901760u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioChannelLayoutTagExtensions.cs ================================================ namespace AudioToolbox; public static class AudioChannelLayoutTagExtensions { public static AudioChannelBit? ToAudioChannel(this AudioChannelLayoutTag layoutTag) { int ioDataSize = 4; int inSpecifier = (int)layoutTag; if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.BitmapForLayoutTag, 4, ref inSpecifier, ref ioDataSize, out var outPropertyData) != 0) { return null; } return (AudioChannelBit)outPropertyData; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioClassDescription.cs ================================================ using AudioUnit; namespace AudioToolbox; public struct AudioClassDescription { public AudioCodecComponentType Type; public AudioFormatType SubType; public AudioCodecManufacturer Manufacturer; public bool IsHardwareCodec => Manufacturer == AudioCodecManufacturer.AppleHardware; public AudioClassDescription(AudioCodecComponentType type, AudioFormatType subType, AudioCodecManufacturer manufacturer) { Type = type; SubType = subType; Manufacturer = manufacturer; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioCodecComponentType.cs ================================================ namespace AudioToolbox; public enum AudioCodecComponentType { Decoder = 1633969507, Encoder = 1634037347 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverter.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace AudioToolbox; public class AudioConverter : IDisposable { private delegate AudioConverterError AudioConverterComplexInputDataShared(IntPtr inAudioConverter, ref int ioNumberDataPackets, IntPtr ioData, IntPtr outDataPacketDescription, IntPtr inUserData); private IntPtr handle; private readonly bool owns; private static readonly AudioConverterComplexInputDataShared ComplexInputDataShared = FillComplexBufferShared; public uint MinimumInputBufferSize => GetUIntProperty(AudioConverterPropertyID.MinimumInputBufferSize); public uint MinimumOutputBufferSize => GetUIntProperty(AudioConverterPropertyID.MinimumOutputBufferSize); public uint MaximumInputPacketSize => GetUIntProperty(AudioConverterPropertyID.MaximumInputPacketSize); public uint MaximumOutputPacketSize => GetUIntProperty(AudioConverterPropertyID.MaximumOutputPacketSize); public uint CalculateInputBufferSize => GetUIntProperty(AudioConverterPropertyID.CalculateInputBufferSize); public uint CalculateOutputBufferSize => GetUIntProperty(AudioConverterPropertyID.CalculateOutputBufferSize); public double SampleRateConverterInitialPhase { get { return GetDoubleProperty(AudioConverterPropertyID.SampleRateConverterInitialPhase); } set { SetProperty(AudioConverterPropertyID.SampleRateConverterInitialPhase, value); } } public AudioConverterSampleRateConverterComplexity SampleRateConverterComplexity => (AudioConverterSampleRateConverterComplexity)GetUIntProperty(AudioConverterPropertyID.SampleRateConverterComplexity); public AudioConverterQuality SampleRateConverterQuality => (AudioConverterQuality)GetUIntProperty(AudioConverterPropertyID.SampleRateConverterQuality); public AudioConverterQuality CodecQuality { get { return (AudioConverterQuality)GetUIntProperty(AudioConverterPropertyID.CodecQuality); } set { SetProperty(AudioConverterPropertyID.CodecQuality, (uint)value); } } public AudioConverterPrimeMethod PrimeMethod { get { return (AudioConverterPrimeMethod)GetUIntProperty(AudioConverterPropertyID.PrimeMethod); } set { SetProperty(AudioConverterPropertyID.PrimeMethod, (uint)value); } } public unsafe AudioConverterPrimeInfo PrimeInfo { get { int ioPropertyDataSize = sizeof(AudioConverterPrimeInfo); AudioConverterPrimeInfo outPropertyData; AudioConverterError audioConverterError = AudioConverterGetProperty(handle, AudioConverterPropertyID.PrimeInfo, ref ioPropertyDataSize, out outPropertyData); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } return outPropertyData; } } public int[] ChannelMap => GetArray(AudioConverterPropertyID.ChannelMap, 4); public byte[] CompressionMagicCookie { get { if (AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.CompressionMagicCookie, out var outSize, out var _) != 0) { return null; } byte[] array = new byte[outSize]; if (AudioConverterGetProperty(handle, AudioConverterPropertyID.CompressionMagicCookie, ref outSize, array) != 0) { return null; } return array; } set { if (value == null) { throw new ArgumentNullException("value"); } AudioConverterError audioConverterError = AudioConverterSetProperty(handle, AudioConverterPropertyID.CompressionMagicCookie, value.Length, value); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } } } public byte[] DecompressionMagicCookie { get { if (AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.DecompressionMagicCookie, out var outSize, out var _) != 0) { return null; } byte[] array = new byte[outSize]; if (AudioConverterGetProperty(handle, AudioConverterPropertyID.DecompressionMagicCookie, ref outSize, array) != 0) { return null; } return array; } set { if (value == null) { throw new ArgumentNullException("value"); } AudioConverterError audioConverterError = AudioConverterSetProperty(handle, AudioConverterPropertyID.DecompressionMagicCookie, value.Length, value); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } } } public uint EncodeBitRate { get { return GetUIntProperty(AudioConverterPropertyID.EncodeBitRate); } set { SetProperty(AudioConverterPropertyID.EncodeBitRate, value); } } public double EncodeAdjustableSampleRate { get { return GetDoubleProperty(AudioConverterPropertyID.EncodeAdjustableSampleRate); } set { SetProperty(AudioConverterPropertyID.EncodeAdjustableSampleRate, value); } } public AudioChannelLayout InputChannelLayout { get { if (AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.InputChannelLayout, out var outSize, out var _) != 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(outSize); AudioChannelLayout result = ((AudioConverterGetProperty(handle, AudioConverterPropertyID.InputChannelLayout, ref outSize, intPtr) == AudioConverterError.None) ? new AudioChannelLayout(intPtr) : null); Marshal.FreeHGlobal(intPtr); return result; } } public AudioChannelLayout OutputChannelLayout { get { if (AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.OutputChannelLayout, out var outSize, out var _) != 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(outSize); AudioChannelLayout result = ((AudioConverterGetProperty(handle, AudioConverterPropertyID.OutputChannelLayout, ref outSize, intPtr) == AudioConverterError.None) ? new AudioChannelLayout(intPtr) : null); Marshal.FreeHGlobal(intPtr); return result; } } public AudioValueRange[] ApplicableEncodeBitRates => GetAudioValueRange(AudioConverterPropertyID.ApplicableEncodeBitRates); public AudioValueRange[] AvailableEncodeBitRates => GetAudioValueRange(AudioConverterPropertyID.AvailableEncodeBitRates); public AudioValueRange[] ApplicableEncodeSampleRates => GetAudioValueRange(AudioConverterPropertyID.ApplicableEncodeSampleRates); public AudioValueRange[] AvailableEncodeSampleRates => GetAudioValueRange(AudioConverterPropertyID.AvailableEncodeSampleRates); public AudioChannelLayoutTag[] AvailableEncodeChannelLayoutTags => GetArray(AudioConverterPropertyID.AvailableEncodeChannelLayoutTags, 4); public unsafe AudioStreamBasicDescription CurrentOutputStreamDescription { get { AudioConverterError audioConverterError = AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.CurrentOutputStreamDescription, out var outSize, out var _); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } IntPtr intPtr = Marshal.AllocHGlobal(outSize); audioConverterError = AudioConverterGetProperty(handle, AudioConverterPropertyID.CurrentOutputStreamDescription, ref outSize, intPtr); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } AudioStreamBasicDescription result = *(AudioStreamBasicDescription*)(void*)intPtr; Marshal.FreeHGlobal(intPtr); return result; } } public unsafe AudioStreamBasicDescription CurrentInputStreamDescription { get { AudioConverterError audioConverterError = AudioConverterGetPropertyInfo(handle, AudioConverterPropertyID.CurrentInputStreamDescription, out var outSize, out var _); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } IntPtr intPtr = Marshal.AllocHGlobal(outSize); audioConverterError = AudioConverterGetProperty(handle, AudioConverterPropertyID.CurrentInputStreamDescription, ref outSize, intPtr); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } AudioStreamBasicDescription result = *(AudioStreamBasicDescription*)(void*)intPtr; Marshal.FreeHGlobal(intPtr); return result; } } public int BitDepthHint { get { return (int)GetUIntProperty(AudioConverterPropertyID.PropertyBitDepthHint); } set { SetProperty(AudioConverterPropertyID.PropertyBitDepthHint, value); } } public unsafe AudioFormat[] FormatList => GetArray(AudioConverterPropertyID.PropertyFormatList, sizeof(AudioFormat)); public static AudioFormatType[] DecodeFormats => GetFormats(AudioFormatProperty.DecodeFormatIDs); public static AudioFormatType[] EncodeFormats => GetFormats(AudioFormatProperty.EncodeFormatIDs); public event AudioConverterComplexInputData InputData; private AudioConverter(IntPtr handle) : this(handle, owns: false) { } internal AudioConverter(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new ArgumentException("address"); } this.handle = handle; this.owns = owns; } public static AudioConverter Create(AudioStreamBasicDescription sourceFormat, AudioStreamBasicDescription destinationFormat) { AudioConverterError error; return Create(sourceFormat, destinationFormat, out error); } public static AudioConverter Create(AudioStreamBasicDescription sourceFormat, AudioStreamBasicDescription destinationFormat, out AudioConverterError error) { IntPtr outAudioConverter = default(IntPtr); error = AudioConverterNew(ref sourceFormat, ref destinationFormat, ref outAudioConverter); if (error != 0) { return null; } return new AudioConverter(outAudioConverter, owns: true); } public static AudioConverter Create(AudioStreamBasicDescription sourceFormat, AudioStreamBasicDescription destinationFormat, AudioClassDescription[] descriptions) { if (descriptions == null) { throw new ArgumentNullException("descriptions"); } IntPtr outAudioConverter = default(IntPtr); if (AudioConverterNewSpecific(ref sourceFormat, ref destinationFormat, descriptions.Length, ref descriptions, ref outAudioConverter) != 0) { return null; } return new AudioConverter(outAudioConverter, owns: true); } ~AudioConverter() { Dispose(disposing: false); GC.SuppressFinalize(this); } public void Dispose() { Dispose(disposing: true); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { if (owns) { AudioConverterDispose(handle); } handle = IntPtr.Zero; } } public AudioConverterError ConvertBuffer(byte[] input, byte[] output) { if (input == null) { throw new ArgumentNullException("input"); } if (output == null) { throw new ArgumentNullException("output"); } int ioOutputDataSize = output.Length; return AudioConverterConvertBuffer(handle, input.Length, input, ref ioOutputDataSize, output); } [Since(5, 0)] public AudioConverterError ConvertComplexBuffer(int numberPCMFrames, AudioBuffers inputData, AudioBuffers outputData) { if (inputData == null) { throw new ArgumentNullException("inputData"); } if (outputData == null) { throw new ArgumentNullException("outputData"); } return AudioConverterConvertComplexBuffer(handle, numberPCMFrames, (IntPtr)inputData, (IntPtr)outputData); } public unsafe AudioConverterError FillComplexBuffer(ref int outputDataPacketSize, AudioBuffers outputData, AudioStreamPacketDescription[] packetDescription) { IntPtr inInputDataProcUserData = GCHandle.ToIntPtr(GCHandle.Alloc(this)); AudioConverterError result; if (packetDescription == null) { result = AudioConverterFillComplexBuffer(handle, ComplexInputDataShared, inInputDataProcUserData, ref outputDataPacketSize, (IntPtr)outputData, IntPtr.Zero); } else { fixed (AudioStreamPacketDescription* ptr = &packetDescription[0]) { result = AudioConverterFillComplexBuffer(handle, ComplexInputDataShared, inInputDataProcUserData, ref outputDataPacketSize, (IntPtr)outputData, (IntPtr)ptr); } } return result; } [MonoPInvokeCallback(typeof(AudioConverterComplexInputDataShared))] private static AudioConverterError FillComplexBufferShared(IntPtr inAudioConverter, ref int ioNumberDataPackets, IntPtr ioData, IntPtr outDataPacketDescription, IntPtr inUserData) { AudioStreamPacketDescription[] dataPacketDescription = ((!(outDataPacketDescription == IntPtr.Zero)) ? null : null); AudioConverter obj = (AudioConverter)GCHandle.FromIntPtr(inUserData).Target; if (obj.InputData == null) { throw new ArgumentNullException("InputData"); } AudioConverterError result = obj.InputData(ref ioNumberDataPackets, new AudioBuffers(ioData), ref dataPacketDescription); if (dataPacketDescription == null) { outDataPacketDescription = IntPtr.Zero; return result; } throw new NotImplementedException("outDataPacketDescription is not null"); } public AudioConverterError Reset() { return AudioConverterReset(handle); } private unsafe static AudioFormatType[] GetFormats(AudioFormatProperty prop) { if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(prop, 0, IntPtr.Zero, out var outPropertyDataSize) != 0) { return null; } int num = 4; AudioFormatType[] array = new AudioFormatType[outPropertyDataSize / num]; fixed (AudioFormatType* ptr = array) { if (AudioFormatPropertyNative.AudioFormatGetProperty(prop, 0, IntPtr.Zero, ref outPropertyDataSize, (IntPtr)ptr) != 0) { return null; } Array.Resize(ref array, num); return array; } } private uint GetUIntProperty(AudioConverterPropertyID propertyID) { int ioPropertyDataSize = 4; uint outPropertyData; AudioConverterError audioConverterError = AudioConverterGetProperty(handle, propertyID, ref ioPropertyDataSize, out outPropertyData); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } return outPropertyData; } private double GetDoubleProperty(AudioConverterPropertyID propertyID) { int ioPropertyDataSize = 8; double outPropertyData; AudioConverterError audioConverterError = AudioConverterGetProperty(handle, propertyID, ref ioPropertyDataSize, out outPropertyData); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } return outPropertyData; } private unsafe AudioValueRange[] GetAudioValueRange(AudioConverterPropertyID prop) { return GetArray(prop, sizeof(AudioValueRange)); } private T[] GetArray(AudioConverterPropertyID prop, int elementSize) { if (AudioConverterGetPropertyInfo(handle, prop, out var outSize, out var _) != 0) { return null; } T[] array = new T[outSize / elementSize]; GCHandle gCHandle = GCHandle.Alloc(array, GCHandleType.Pinned); try { IntPtr outPropertyData = gCHandle.AddrOfPinnedObject(); if (AudioConverterGetProperty(handle, prop, ref outSize, outPropertyData) != 0) { return null; } Array.Resize(ref array, outSize / elementSize); return array; } finally { gCHandle.Free(); } } private void SetProperty(AudioConverterPropertyID propertyID, uint value) { AudioConverterError audioConverterError = AudioConverterSetProperty(handle, propertyID, 4, ref value); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } } private void SetProperty(AudioConverterPropertyID propertyID, int value) { AudioConverterError audioConverterError = AudioConverterSetProperty(handle, propertyID, 4, ref value); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } } private void SetProperty(AudioConverterPropertyID propertyID, double value) { AudioConverterError audioConverterError = AudioConverterSetProperty(handle, propertyID, 8, ref value); if (audioConverterError != 0) { throw new ArgumentException(audioConverterError.ToString()); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterNew(ref AudioStreamBasicDescription inSourceFormat, ref AudioStreamBasicDescription inDestinationFormat, ref IntPtr outAudioConverter); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterNewSpecific(ref AudioStreamBasicDescription inSourceFormat, ref AudioStreamBasicDescription inDestinationFormat, int inNumberClassDescriptions, ref AudioClassDescription[] inClassDescriptions, ref IntPtr outAudioConverter); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterDispose(IntPtr inAudioConverter); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterReset(IntPtr inAudioConverter); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterConvertComplexBuffer(IntPtr inAudioConverter, int inNumberPCMFrames, IntPtr inInputData, IntPtr outOutputData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, out uint outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, out int outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, out double outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, byte[] outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, out AudioConverterPrimeInfo outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, ref int ioPropertyDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterGetPropertyInfo(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, out int outSize, out bool outWritable); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterSetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, int inPropertyDataSize, ref uint inPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterSetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, int inPropertyDataSize, ref int inPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterSetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, int inPropertyDataSize, ref double inPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterSetProperty(IntPtr inAudioConverter, AudioConverterPropertyID inPropertyID, int inPropertyDataSize, byte[] inPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterConvertBuffer(IntPtr inAudioConverter, int inInputDataSize, byte[] inInputData, ref int ioOutputDataSize, byte[] outOutputData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioConverterError AudioConverterFillComplexBuffer(IntPtr inAudioConverter, AudioConverterComplexInputDataShared inInputDataProc, IntPtr inInputDataProcUserData, ref int ioOutputDataPacketSize, IntPtr outOutputData, IntPtr outPacketDescription); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterComplexInputData.cs ================================================ namespace AudioToolbox; public delegate AudioConverterError AudioConverterComplexInputData(ref int numberDataPackets, AudioBuffers data, ref AudioStreamPacketDescription[] dataPacketDescription); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterError.cs ================================================ namespace AudioToolbox; public enum AudioConverterError { None = 0, FormatNotSupported = 1718449215, OperationNotSupported = 1869627199, PropertyNotSupported = 1886547824, InvalidInputSize = 1768846202, InvalidOutputSize = 1869902714, UnspecifiedError = 2003329396, BadPropertySizeError = 561211770, RequiresPacketDescriptionsError = 561015652, InputSampleRateOutOfRange = 560558962, OutputSampleRateOutOfRange = 560952178, HardwareInUse = 1752656245, NoHardwarePermission = 1885696621 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterPrimeInfo.cs ================================================ namespace AudioToolbox; public struct AudioConverterPrimeInfo { public int LeadingFrames; public int TrailingFrames; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterPrimeMethod.cs ================================================ namespace AudioToolbox; public enum AudioConverterPrimeMethod { Pre, Normal, None } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterPropertyID.cs ================================================ namespace AudioToolbox; internal enum AudioConverterPropertyID { MinimumInputBufferSize = 1835623027, MinimumOutputBufferSize = 1836016243, MaximumInputPacketSize = 2020175987, MaximumOutputPacketSize = 2020569203, CalculateInputBufferSize = 1667850867, CalculateOutputBufferSize = 1668244083, SampleRateConverterComplexity = 1936876385, SampleRateConverterQuality = 1936876401, SampleRateConverterInitialPhase = 1936876400, CodecQuality = 1667527029, PrimeMethod = 1886547309, PrimeInfo = 1886546285, ChannelMap = 1667788144, DecompressionMagicCookie = 1684891491, CompressionMagicCookie = 1668114275, EncodeBitRate = 1651663220, EncodeAdjustableSampleRate = 1634366322, InputChannelLayout = 1768123424, OutputChannelLayout = 1868786720, ApplicableEncodeBitRates = 1634034290, AvailableEncodeBitRates = 1986355826, ApplicableEncodeSampleRates = 1634038642, AvailableEncodeSampleRates = 1986360178, AvailableEncodeChannelLayoutTags = 1634034540, CurrentOutputStreamDescription = 1633906532, CurrentInputStreamDescription = 1633904996, PropertySettings = 1633906803, PropertyBitDepthHint = 1633903204, PropertyFormatList = 1718383476, CanResumeFromInterruption = 1668441705 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterQuality.cs ================================================ namespace AudioToolbox; public enum AudioConverterQuality { Max = 127, High = 96, Medium = 64, Low = 32, Min = 0 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioConverterSampleRateConverterComplexity.cs ================================================ namespace AudioToolbox; public enum AudioConverterSampleRateConverterComplexity { Linear = 1818848869, Normal = 1852797549, Mastering = 1650553971 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFile.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AudioToolbox; public class AudioFile : IDisposable { protected internal IntPtr handle; public IntPtr Handle => handle; public long Length => GetLong(AudioFileProperty.AudioDataByteCount); public AudioFileType FileType => (AudioFileType)GetInt(AudioFileProperty.FileFormat); [Advice("Use DataFormat instead")] public AudioStreamBasicDescription StreamBasicDescription => GetProperty(AudioFileProperty.DataFormat) ?? default(AudioStreamBasicDescription); public AudioStreamBasicDescription? DataFormat => GetProperty(AudioFileProperty.DataFormat); public unsafe AudioFormat[] AudioFormats { get { int size; IntPtr property = GetProperty(AudioFileProperty.FormatList, out size); AudioFormat* ptr = (AudioFormat*)(void*)property; if (property == IntPtr.Zero) { return null; } int num = sizeof(AudioFormat); int num2 = size / num; AudioFormat[] array = new AudioFormat[num2]; for (int i = 0; i < num2; i++) { array[i] = ptr[i]; } Marshal.FreeHGlobal(property); return array; } } public bool IsOptimized => GetInt(AudioFileProperty.IsOptimized) == 1; public unsafe byte[] MagicCookie { get { int size; IntPtr property = GetProperty(AudioFileProperty.MagicCookieData, out size); if (property == IntPtr.Zero) { return new byte[0]; } byte[] array = new byte[size]; for (int i = 0; i < array.Length; i++) { array[i] = Marshal.ReadByte(property, i); } Marshal.FreeHGlobal(property); return array; } set { if (value == null) { throw new ArgumentNullException("value"); } fixed (byte* ptr = &value[0]) { SetProperty(AudioFileProperty.MagicCookieData, value.Length, (IntPtr)ptr); } } } public long DataPacketCount => GetLong(AudioFileProperty.AudioDataPacketCount); public int MaximumPacketSize => GetInt(AudioFileProperty.MaximumPacketSize); public long DataOffset => GetLong(AudioFileProperty.DataOffset); public NSData AlbumArtwork => (NSData)Runtime.GetNSObject(GetIntPtr(AudioFileProperty.AlbumArtwork)); public AudioChannelLayout ChannelLayout { get { int size; IntPtr property = GetProperty(AudioFileProperty.ChannelLayout, out size); if (property == IntPtr.Zero) { return null; } AudioChannelLayout result = AudioChannelLayout.FromHandle(property); Marshal.FreeHGlobal(property); return result; } } public bool DeferSizeUpdates { get { return GetInt(AudioFileProperty.DeferSizeUpdates) == 1; } set { SetInt(AudioFileProperty.DeferSizeUpdates, value ? 1 : 0); } } public int BitRate => GetInt(AudioFileProperty.BitRate); public double EstimatedDuration => GetDouble(AudioFileProperty.EstimatedDuration); public int PacketSizeUpperBound => GetInt(AudioFileProperty.PacketSizeUpperBound); public double ReserveDuration => GetDouble(AudioFileProperty.ReserveDuration); public AudioFileMarkerList MarkerList { get { GetPropertyInfo(AudioFileProperty.MarkerList, out var size, out var _); if (size == 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(size); if (AudioFileGetProperty(handle, AudioFileProperty.MarkerList, ref size, intPtr) != 0) { Marshal.FreeHGlobal(intPtr); return null; } return new AudioFileMarkerList(intPtr, owns: true); } } public AudioFileRegionList RegionList { get { GetPropertyInfo(AudioFileProperty.RegionList, out var size, out var _); if (size == 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(size); if (AudioFileGetProperty(handle, AudioFileProperty.RegionList, ref size, intPtr) != 0) { Marshal.FreeHGlobal(intPtr); return null; } return new AudioFileRegionList(intPtr, owns: true); } } public unsafe AudioFilePacketTableInfo? PacketTableInfo { get { return GetProperty(AudioFileProperty.PacketTableInfo); } set { if (!value.HasValue) { throw new ArgumentNullException("value"); } AudioFilePacketTableInfo propertyData = value.Value; AudioFileError audioFileError = AudioFileSetProperty(handle, AudioFileProperty.PacketTableInfo, sizeof(AudioFilePacketTableInfo), ref propertyData); if (audioFileError != 0) { throw new ArgumentException(audioFileError.ToString()); } } } public unsafe AudioFileChunkType[] ChunkIDs { get { GetPropertyInfo(AudioFileProperty.ChunkIDs, out var size, out var _); if (size == 0) { return null; } AudioFileChunkType[] array = new AudioFileChunkType[size / 4]; fixed (AudioFileChunkType* ptr = array) { if (AudioFileGetProperty(handle, AudioFileProperty.ChunkIDs, ref size, (IntPtr)ptr) != 0) { return null; } return array; } } } public unsafe byte[] ID3Tag { get { GetPropertyInfo(AudioFileProperty.ID3Tag, out var size, out var _); if (size == 0) { return null; } byte[] array = new byte[size]; fixed (byte* ptr = array) { if (AudioFileGetProperty(handle, AudioFileProperty.ID3Tag, ref size, (IntPtr)ptr) != 0) { return null; } return array; } } } public AudioFileInfoDictionary InfoDictionary { get { IntPtr intPtr = GetIntPtr(AudioFileProperty.InfoDictionary); if (intPtr == IntPtr.Zero) { return null; } return new AudioFileInfoDictionary(new NSMutableDictionary(intPtr, owns: true)); } } protected internal AudioFile(bool x) { } internal AudioFile(IntPtr handle) { this.handle = handle; } ~AudioFile() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileClose(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { AudioFileClose(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileCreateWithURL(IntPtr cfurlref_infile, AudioFileType inFileType, ref AudioStreamBasicDescription inFormat, AudioFileFlags inFlags, out IntPtr file_id); public static AudioFile Create(string url, AudioFileType fileType, AudioStreamBasicDescription format, AudioFileFlags inFlags) { if (url == null) { throw new ArgumentNullException("url"); } using CFUrl url2 = CFUrl.FromUrlString(url, null); return Create(url2, fileType, format, inFlags); } public static AudioFile Create(CFUrl url, AudioFileType fileType, AudioStreamBasicDescription format, AudioFileFlags inFlags) { if (url == null) { throw new ArgumentNullException("url"); } if (AudioFileCreateWithURL(url.Handle, fileType, ref format, inFlags, out var file_id) == 0) { return new AudioFile(file_id); } return null; } public static AudioFile Create(NSUrl url, AudioFileType fileType, AudioStreamBasicDescription format, AudioFileFlags inFlags) { if (url == null) { throw new ArgumentNullException("url"); } if (AudioFileCreateWithURL(url.Handle, fileType, ref format, inFlags, out var file_id) == 0) { return new AudioFile(file_id); } return null; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileOpenURL(IntPtr cfurlref_infile, byte permissions, AudioFileType fileTypeHint, out IntPtr file_id); public static AudioFile OpenRead(string url, AudioFileType fileTypeHint = (AudioFileType)0) { return Open(url, AudioFilePermission.Read, fileTypeHint); } public static AudioFile OpenRead(CFUrl url, AudioFileType fileTypeHint = (AudioFileType)0) { return Open(url, AudioFilePermission.Read, fileTypeHint); } public static AudioFile OpenRead(NSUrl url, AudioFileType fileTypeHint = (AudioFileType)0) { return Open(url, AudioFilePermission.Read, fileTypeHint); } public static AudioFile Open(string url, AudioFilePermission permissions, AudioFileType fileTypeHint = (AudioFileType)0) { if (url == null) { throw new ArgumentNullException("url"); } using CFUrl url2 = CFUrl.FromUrlString(url, null); return Open(url2, permissions, fileTypeHint); } public static AudioFile Open(CFUrl url, AudioFilePermission permissions, AudioFileType fileTypeHint = (AudioFileType)0) { if (url == null) { throw new ArgumentNullException("url"); } if (AudioFileOpenURL(url.Handle, (byte)permissions, fileTypeHint, out var file_id) == 0) { return new AudioFile(file_id); } return null; } public static AudioFile Open(NSUrl url, AudioFilePermission permissions, AudioFileType fileTypeHint = (AudioFileType)0) { if (url == null) { throw new ArgumentNullException("url"); } if (AudioFileOpenURL(url.Handle, (byte)permissions, fileTypeHint, out var file_id) == 0) { return new AudioFile(file_id); } return null; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileOptimize(IntPtr handle); public bool Optimize() { return AudioFileOptimize(handle) == 0; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileReadBytes(IntPtr inAudioFile, bool useCache, long startingByte, ref int numBytes, IntPtr outBuffer); public unsafe int Read(long startingByte, byte[] buffer, int offset, int count, bool useCache) { if (offset < 0) { throw new ArgumentException("offset", "<0"); } if (count < 0) { throw new ArgumentException("count", "<0"); } if (startingByte < 0) { throw new ArgumentException("startingByte", "<0"); } int num = buffer.Length; if (offset > num) { throw new ArgumentException("destination offset is beyond array size"); } if (offset > num - count) { throw new ArgumentException("Reading would overrun buffer"); } fixed (byte* ptr = &buffer[offset]) { switch (AudioFileReadBytes(handle, useCache, startingByte, ref count, (IntPtr)ptr)) { case -39: if (count > 0) { return count; } return -1; case 0: return count; default: return -1; } } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileWriteBytes(IntPtr audioFile, bool useCache, long startingByte, ref int numBytes, IntPtr buffer); public unsafe int Write(long startingByte, byte[] buffer, int offset, int count, bool useCache) { if (offset < 0) { throw new ArgumentOutOfRangeException("offset", "< 0"); } if (count < 0) { throw new ArgumentOutOfRangeException("count", "< 0"); } if (offset > buffer.Length - count) { throw new ArgumentException("Reading would overrun buffer"); } fixed (byte* ptr = &buffer[offset]) { if (AudioFileWriteBytes(handle, useCache, startingByte, ref count, (IntPtr)ptr) == 0) { return count; } return -1; } } public unsafe int Write(long startingByte, byte[] buffer, int offset, int count, bool useCache, out int errorCode) { if (offset < 0) { throw new ArgumentOutOfRangeException("offset", "< 0"); } if (count < 0) { throw new ArgumentOutOfRangeException("count", "< 0"); } if (offset > buffer.Length - count) { throw new ArgumentException("Reading would overrun buffer"); } fixed (byte* ptr = &buffer[offset]) { errorCode = AudioFileWriteBytes(handle, useCache, startingByte, ref count, (IntPtr)ptr); if (errorCode == 0) { return count; } return -1; } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileReadPacketData(IntPtr audioFile, bool useCache, ref int numBytes, AudioStreamPacketDescription[] packetDescriptions, long inStartingPacket, ref int numPackets, IntPtr outBuffer); public AudioStreamPacketDescription[] ReadPacketData(long inStartingPacket, int nPackets, byte[] buffer) { if (buffer == null) { throw new ArgumentNullException("buffer"); } int count = buffer.Length; return RealReadPacketData(useCache: false, inStartingPacket, ref nPackets, buffer, 0, ref count); } public AudioStreamPacketDescription[] ReadPacketData(bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count) { return ReadPacketData(useCache, inStartingPacket, ref nPackets, buffer, offset, ref count); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileError AudioFileReadPackets(IntPtr inAudioFile, bool inUseCache, out int numBytes, [MarshalAs(UnmanagedType.LPArray)] AudioStreamPacketDescription[] packetDescriptions, long startingPacket, ref int numPackets, IntPtr buffer); public AudioFileError ReadPackets(bool useCache, out int numBytes, AudioStreamPacketDescription[] packetDescriptions, long startingPacket, ref int numPackets, IntPtr buffer) { if (buffer == IntPtr.Zero) { throw new ArgumentException("buffer"); } return AudioFileReadPackets(handle, useCache, out numBytes, packetDescriptions, startingPacket, ref numPackets, buffer); } internal static AudioStreamPacketDescription[] PacketDescriptionFrom(int nPackets, IntPtr b) { if (b == IntPtr.Zero) { return new AudioStreamPacketDescription[0]; } AudioStreamPacketDescription[] array = new AudioStreamPacketDescription[nPackets]; int num = 0; for (int i = 0; i < nPackets; i++) { array[i].StartOffset = Marshal.ReadInt64(b, num); array[i].VariableFramesInPacket = Marshal.ReadInt32(b, num + 8); array[i].DataByteSize = Marshal.ReadInt32(b, num + 12); num += 16; } return array; } public AudioStreamPacketDescription[] ReadPacketData(bool useCache, long inStartingPacket, ref int nPackets, byte[] buffer, int offset, ref int count) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset < 0) { throw new ArgumentException("offset", "<0"); } if (count < 0) { throw new ArgumentException("count", "<0"); } int num = buffer.Length; if (offset > num) { throw new ArgumentException("destination offset is beyond array size"); } if (offset > num - count) { throw new ArgumentException("Reading would overrun buffer"); } return RealReadPacketData(useCache, inStartingPacket, ref nPackets, buffer, offset, ref count); } public AudioStreamPacketDescription[] ReadPacketData(bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count) { if (buffer == IntPtr.Zero) { throw new ArgumentNullException("buffer"); } if (count < 0) { throw new ArgumentException("count", "<0"); } return RealReadPacketData(useCache, inStartingPacket, ref nPackets, buffer, ref count); } private unsafe AudioStreamPacketDescription[] RealReadPacketData(bool useCache, long inStartingPacket, ref int nPackets, byte[] buffer, int offset, ref int count) { fixed (byte* ptr = &buffer[offset]) { return RealReadPacketData(useCache, inStartingPacket, ref nPackets, (IntPtr)ptr, ref count); } } private AudioStreamPacketDescription[] RealReadPacketData(bool useCache, long inStartingPacket, ref int nPackets, IntPtr buffer, ref int count) { AudioStreamPacketDescription[] array = new AudioStreamPacketDescription[nPackets]; switch (AudioFileReadPacketData(handle, useCache, ref count, array, inStartingPacket, ref nPackets, buffer)) { case -39: if (count == 0) { return null; } break; default: return null; case 0: break; } return array; } public AudioStreamPacketDescription[] ReadFixedPackets(long inStartingPacket, int nPackets, byte[] buffer) { if (buffer == null) { throw new ArgumentNullException("buffer"); } return RealReadFixedPackets(useCache: false, inStartingPacket, nPackets, buffer, 0, buffer.Length); } public AudioStreamPacketDescription[] ReadFixedPackets(bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset < 0) { throw new ArgumentException("offset", "<0"); } if (count < 0) { throw new ArgumentException("count", "<0"); } int num = buffer.Length; if (offset > num) { throw new ArgumentException("destination offset is beyond array size"); } if (offset > num - count) { throw new ArgumentException("Reading would overrun buffer"); } return RealReadFixedPackets(useCache, inStartingPacket, nPackets, buffer, offset, count); } private unsafe AudioStreamPacketDescription[] RealReadFixedPackets(bool useCache, long inStartingPacket, int nPackets, byte[] buffer, int offset, int count) { AudioStreamPacketDescription[] array = new AudioStreamPacketDescription[nPackets]; fixed (byte* ptr = &buffer[offset]) { switch (AudioFileReadPacketData(handle, useCache, ref count, array, inStartingPacket, ref nPackets, (IntPtr)ptr)) { case 0: break; case -39: if (count == 0) { return null; } break; default: return null; } } return array; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileError AudioFileWritePackets(IntPtr audioFile, bool useCache, int inNumBytes, AudioStreamPacketDescription[] inPacketDescriptions, long inStartingPacket, ref int numPackets, IntPtr buffer); public int WritePackets(bool useCache, long startingPacket, int numPackets, IntPtr buffer, int count) { if (buffer == IntPtr.Zero) { throw new ArgumentNullException("buffer"); } if (AudioFileWritePackets(handle, useCache, count, null, startingPacket, ref numPackets, buffer) == (AudioFileError)0) { return numPackets; } return -1; } public int WritePackets(bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, IntPtr buffer, int count) { if (packetDescriptions == null) { throw new ArgumentNullException("packetDescriptions"); } if (buffer == IntPtr.Zero) { throw new ArgumentNullException("buffer"); } int numPackets = packetDescriptions.Length; if (AudioFileWritePackets(handle, useCache, count, packetDescriptions, startingPacket, ref numPackets, buffer) == (AudioFileError)0) { return numPackets; } return -1; } public unsafe int WritePackets(bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, byte[] buffer, int offset, int count) { if (packetDescriptions == null) { throw new ArgumentNullException("inPacketDescriptions"); } if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset < 0) { throw new ArgumentOutOfRangeException("offset", "< 0"); } if (count < 0) { throw new ArgumentOutOfRangeException("count", "< 0"); } if (offset > buffer.Length - count) { throw new ArgumentException("Reading would overrun buffer"); } int numPackets = packetDescriptions.Length; fixed (byte* ptr = &buffer[offset]) { if (AudioFileWritePackets(handle, useCache, count, packetDescriptions, startingPacket, ref numPackets, (IntPtr)ptr) == (AudioFileError)0) { return numPackets; } return -1; } } public int WritePackets(bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, IntPtr buffer, int count, out int errorCode) { if (packetDescriptions == null) { throw new ArgumentNullException("packetDescriptions"); } if (buffer == IntPtr.Zero) { throw new ArgumentException("buffer"); } int numPackets = packetDescriptions.Length; errorCode = (int)AudioFileWritePackets(handle, useCache, count, packetDescriptions, startingPacket, ref numPackets, buffer); if (errorCode == 0) { return numPackets; } return -1; } public unsafe int WritePackets(bool useCache, long startingPacket, AudioStreamPacketDescription[] packetDescriptions, byte[] buffer, int offset, int count, out int errorCode) { if (packetDescriptions == null) { throw new ArgumentNullException("inPacketDescriptions"); } if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset < 0) { throw new ArgumentOutOfRangeException("offset", "< 0"); } if (count < 0) { throw new ArgumentOutOfRangeException("count", "< 0"); } if (offset > buffer.Length - count) { throw new ArgumentException("Reading would overrun buffer"); } int numPackets = packetDescriptions.Length; fixed (byte* ptr = &buffer[offset]) { errorCode = (int)AudioFileWritePackets(handle, useCache, count, packetDescriptions, startingPacket, ref numPackets, (IntPtr)ptr); if (errorCode == 0) { return numPackets; } return -1; } } public AudioFileError WritePackets(bool useCache, int numBytes, AudioStreamPacketDescription[] packetDescriptions, long startingPacket, ref int numPackets, IntPtr buffer) { if (buffer == IntPtr.Zero) { throw new ArgumentException("buffer"); } return AudioFileWritePackets(handle, useCache, numBytes, packetDescriptions, startingPacket, ref numPackets, buffer); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileCountUserData(IntPtr handle, uint userData, out int count); public int CountUserData(uint userData) { if (AudioFileCountUserData(handle, userData, out var count) == 0) { return count; } return -1; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetUserDataSize(IntPtr audioFile, uint userDataID, int index, out int userDataSize); public int GetUserDataSize(uint userDataId, int index) { if (AudioFileGetUserDataSize(handle, userDataId, index, out var userDataSize) == 0) { return -1; } return userDataSize; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetUserData(IntPtr audioFile, int userDataID, int index, ref int userDataSize, IntPtr userData); public int GetUserData(int userDataID, int index, ref int size, IntPtr userData) { return AudioFileGetUserData(handle, userDataID, index, ref size, userData); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileSetUserData(IntPtr inAudioFile, int userDataID, int index, int userDataSize, IntPtr userData); public int SetUserData(int userDataId, int index, int userDataSize, IntPtr userData) { return AudioFileSetUserData(handle, userDataId, index, userDataSize, userData); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileRemoveUserData(IntPtr audioFile, int userDataID, int index); public int RemoveUserData(int userDataId, int index) { return AudioFileRemoveUserData(handle, userDataId, index); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetPropertyInfo(IntPtr audioFile, AudioFileProperty propertyID, out int outDataSize, out int isWritable); public bool GetPropertyInfo(AudioFileProperty property, out int size, out int writable) { return AudioFileGetPropertyInfo(handle, property, out size, out writable) == 0; } public bool IsPropertyWritable(AudioFileProperty property) { if (AudioFileGetPropertyInfo(handle, property, out var _, out var isWritable) == 0) { return isWritable != 0; } return false; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetProperty(IntPtr audioFile, AudioFileProperty property, ref int dataSize, IntPtr outdata); public bool GetProperty(AudioFileProperty property, ref int dataSize, IntPtr outdata) { return AudioFileGetProperty(handle, property, ref dataSize, outdata) == 0; } public IntPtr GetProperty(AudioFileProperty property, out int size) { if (AudioFileGetPropertyInfo(handle, property, out size, out var _) != 0) { return IntPtr.Zero; } IntPtr intPtr = Marshal.AllocHGlobal(size); if (intPtr == IntPtr.Zero) { return IntPtr.Zero; } if (AudioFileGetProperty(handle, property, ref size, intPtr) == 0) { return intPtr; } Marshal.FreeHGlobal(intPtr); return IntPtr.Zero; } private T? GetProperty(AudioFileProperty property) where T : struct { if (AudioFileGetPropertyInfo(handle, property, out var outDataSize, out var _) != 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(outDataSize); if (intPtr == IntPtr.Zero) { return null; } try { if (AudioFileGetProperty(handle, property, ref outDataSize, intPtr) == 0) { return (T)Marshal.PtrToStructure(intPtr, typeof(T)); } return null; } finally { Marshal.FreeHGlobal(intPtr); } } private unsafe int GetInt(AudioFileProperty property) { int result = 0; int dataSize = 4; if (AudioFileGetProperty(handle, property, ref dataSize, (IntPtr)(&result)) == 0) { return result; } return 0; } private unsafe IntPtr GetIntPtr(AudioFileProperty property) { IntPtr zero = IntPtr.Zero; int dataSize = sizeof(IntPtr); if (AudioFileGetProperty(handle, property, ref dataSize, (IntPtr)(&zero)) == 0) { return zero; } return IntPtr.Zero; } private unsafe double GetDouble(AudioFileProperty property) { double result = 0.0; int dataSize = 8; if (AudioFileGetProperty(handle, property, ref dataSize, (IntPtr)(&result)) == 0) { return result; } return 0.0; } private unsafe long GetLong(AudioFileProperty property) { long result = 0L; int dataSize = 8; if (AudioFileGetProperty(handle, property, ref dataSize, (IntPtr)(&result)) == 0) { return result; } return 0L; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileError AudioFileSetProperty(IntPtr audioFile, AudioFileProperty property, int dataSize, IntPtr propertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileError AudioFileSetProperty(IntPtr audioFile, AudioFileProperty property, int dataSize, ref AudioFilePacketTableInfo propertyData); public bool SetProperty(AudioFileProperty property, int dataSize, IntPtr propertyData) { return AudioFileSetProperty(handle, property, dataSize, propertyData) == (AudioFileError)0; } private unsafe void SetInt(AudioFileProperty property, int value) { AudioFileSetProperty(handle, property, 4, (IntPtr)(&value)); } private unsafe AudioFileError SetDouble(AudioFileProperty property, double value) { return AudioFileSetProperty(handle, property, 8, (IntPtr)(&value)); } public unsafe long PacketToFrame(long packet) { AudioFramePacketTranslation audioFramePacketTranslation = default(AudioFramePacketTranslation); audioFramePacketTranslation.Packet = packet; AudioFramePacketTranslation* ptr = &audioFramePacketTranslation; int dataSize = sizeof(AudioFramePacketTranslation); if (AudioFileGetProperty(handle, AudioFileProperty.PacketToFrame, ref dataSize, (IntPtr)ptr) == 0) { return audioFramePacketTranslation.Frame; } return -1L; } public unsafe long FrameToPacket(long frame, out int frameOffsetInPacket) { AudioFramePacketTranslation audioFramePacketTranslation = default(AudioFramePacketTranslation); audioFramePacketTranslation.Frame = frame; AudioFramePacketTranslation* ptr = &audioFramePacketTranslation; int dataSize = sizeof(AudioFramePacketTranslation); if (AudioFileGetProperty(handle, AudioFileProperty.FrameToPacket, ref dataSize, (IntPtr)ptr) == 0) { frameOffsetInPacket = audioFramePacketTranslation.FrameOffsetInPacket; return audioFramePacketTranslation.Packet; } frameOffsetInPacket = 0; return -1L; } public unsafe long PacketToByte(long packet, out bool isEstimate) { AudioBytePacketTranslation audioBytePacketTranslation = default(AudioBytePacketTranslation); audioBytePacketTranslation.Packet = packet; AudioBytePacketTranslation* ptr = &audioBytePacketTranslation; int dataSize = sizeof(AudioBytePacketTranslation); if (AudioFileGetProperty(handle, AudioFileProperty.PacketToByte, ref dataSize, (IntPtr)ptr) == 0) { isEstimate = (audioBytePacketTranslation.Flags & BytePacketTranslationFlags.IsEstimate) != 0; return audioBytePacketTranslation.Byte; } isEstimate = false; return -1L; } public unsafe long ByteToPacket(long byteval, out int byteOffsetInPacket, out bool isEstimate) { AudioBytePacketTranslation audioBytePacketTranslation = default(AudioBytePacketTranslation); audioBytePacketTranslation.Byte = byteval; AudioBytePacketTranslation* ptr = &audioBytePacketTranslation; int dataSize = sizeof(AudioBytePacketTranslation); if (AudioFileGetProperty(handle, AudioFileProperty.ByteToPacket, ref dataSize, (IntPtr)ptr) == 0) { isEstimate = (audioBytePacketTranslation.Flags & BytePacketTranslationFlags.IsEstimate) != 0; byteOffsetInPacket = audioBytePacketTranslation.ByteOffsetInPacket; return audioBytePacketTranslation.Packet; } byteOffsetInPacket = 0; isEstimate = false; return -1L; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileChunkType.cs ================================================ namespace AudioToolbox; public enum AudioFileChunkType : uint { CAFStreamDescription = 1684370275u, CAFAudioData = 1684108385u, CAFChannelLayout = 1667785070u, CAFFiller = 1718773093u, CAFMarker = 1835102827u, CAFRegion = 1919248238u, CAFInstrument = 1768846196u, CAFMagicCookieID = 1802857321u, CAFInfoStrings = 1768842863u, CAFEditComments = 1701077876u, CAFPacketTable = 1885432692u, CAFStrings = 1937011303u, CAFUUID = 1970628964u, CAFPeak = 1885692267u, CAFOverview = 1870034551u, CAFMIDI = 1835623529u, CAFUMID = 1970104676u, CAFFormatListID = 1818522467u, CAFiXML = 1767394636u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileError.cs ================================================ namespace AudioToolbox; public enum AudioFileError { Unspecified = 2003334207, UnsupportedFileType = 1954115647, UnsupportedDataFormat = 1718449215, UnsupportedProperty = 1886681407, BadPropertySize = 561211770, Permissions = 1886547263, NotOptimized = 1869640813, InvalidChunk = 1667787583, DoesNotAllow64BitDataSize = 1868981823, InvalidPacketOffset = 1885563711, InvalidFile = 1685348671, FileNotOpen = -38, EndOfFile = -39, FileNotFound = -43, FilePosition = -40 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioFileFlags { EraseFlags = 1, DontPageAlignAudioData = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileGlobalInfo.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; namespace AudioToolbox; public static class AudioFileGlobalInfo { public unsafe static AudioFileType[] ReadableTypes { get { if (AudioFileGetGlobalInfoSize(AudioFileGlobalProperty.ReadableTypes, 0u, IntPtr.Zero, out var outDataSize) != 0) { return null; } AudioFileType[] array = new AudioFileType[outDataSize / 4u]; fixed (AudioFileType* outPropertyData = array) { if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.ReadableTypes, 0u, IntPtr.Zero, ref outDataSize, outPropertyData) != 0) { return null; } return array; } } } public unsafe static AudioFileType[] WritableTypes { get { if (AudioFileGetGlobalInfoSize(AudioFileGlobalProperty.WritableTypes, 0u, IntPtr.Zero, out var outDataSize) != 0) { return null; } AudioFileType[] array = new AudioFileType[outDataSize / 4u]; fixed (AudioFileType* outPropertyData = array) { if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.WritableTypes, 0u, IntPtr.Zero, ref outDataSize, outPropertyData) != 0) { return null; } return array; } } } public unsafe static string[] AllExtensions { get { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.AllExtensions, 0u, IntPtr.Zero, ref ioDataSize, out IntPtr outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } } public unsafe static string[] AllUTIs { get { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.AllUTIs, 0u, IntPtr.Zero, ref ioDataSize, out IntPtr outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } } public unsafe static string[] AllMIMETypes { get { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.AllMIMETypes, 0u, IntPtr.Zero, ref ioDataSize, out IntPtr outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } } public unsafe static string GetFileTypeName(AudioFileType fileType) { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.FileTypeName, 4u, ref fileType, ref ioDataSize, out var outPropertyData) != 0) { return null; } return CFString.FetchString(outPropertyData); } public unsafe static AudioFormatType[] GetAvailableFormats(AudioFileType fileType) { if (AudioFileGetGlobalInfoSize(AudioFileGlobalProperty.AvailableFormatIDs, 4u, ref fileType, out var outDataSize) != 0) { return null; } AudioFormatType[] array = new AudioFormatType[outDataSize / 4u]; fixed (AudioFormatType* outPropertyData = array) { if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.AvailableFormatIDs, 4u, ref fileType, ref outDataSize, outPropertyData) != 0) { return null; } return array; } } public unsafe static AudioStreamBasicDescription[] GetAvailableStreamDescriptions(AudioFileType fileType, AudioFormatType formatType) { AudioFileTypeAndFormatID inSpecifier = default(AudioFileTypeAndFormatID); inSpecifier.FileType = fileType; inSpecifier.FormatType = formatType; if (AudioFileGetGlobalInfoSize(AudioFileGlobalProperty.AvailableStreamDescriptionsForFormat, (uint)sizeof(AudioFileTypeAndFormatID), ref inSpecifier, out var outDataSize) != 0) { return null; } AudioStreamBasicDescription[] array = new AudioStreamBasicDescription[(long)outDataSize / (long)sizeof(AudioStreamBasicDescription)]; fixed (AudioStreamBasicDescription* outPropertyData = array) { if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.AvailableStreamDescriptionsForFormat, (uint)sizeof(AudioFileTypeAndFormatID), ref inSpecifier, ref outDataSize, outPropertyData) != 0) { return null; } return array; } } public unsafe static string[] GetExtensions(AudioFileType fileType) { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.ExtensionsForType, 4u, ref fileType, ref ioDataSize, out var outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } public unsafe static string[] GetUTIs(AudioFileType fileType) { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.UTIsForType, 4u, ref fileType, ref ioDataSize, out var outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } public unsafe static string[] GetMIMETypes(AudioFileType fileType) { uint ioDataSize = (uint)sizeof(IntPtr); if (AudioFileGetGlobalInfo(AudioFileGlobalProperty.MIMETypesForType, 4u, ref fileType, ref ioDataSize, out var outPropertyData) != 0) { return null; } return NSArray.ArrayFromHandleFunc(outPropertyData, (IntPtr l) => CFString.FetchString(l)); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfoSize(AudioFileGlobalProperty propertyID, uint size, IntPtr inSpecifier, out uint outDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfoSize(AudioFileGlobalProperty propertyID, uint size, ref AudioFileType inSpecifier, out uint outDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfoSize(AudioFileGlobalProperty propertyID, uint size, ref AudioFileTypeAndFormatID inSpecifier, out uint outDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, IntPtr inSpecifier, ref uint ioDataSize, AudioFileType* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, ref AudioFileType inSpecifier, ref uint ioDataSize, AudioFormatType* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, ref AudioFileTypeAndFormatID inSpecifier, ref uint ioDataSize, AudioStreamBasicDescription* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, ref AudioFileType inSpecifier, ref uint ioDataSize, out IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, IntPtr inSpecifier, ref uint ioDataSize, out IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileGetGlobalInfo(AudioFileGlobalProperty propertyID, uint size, IntPtr inSpecifier, ref uint ioDataSize, out uint outPropertyData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileGlobalProperty.cs ================================================ namespace AudioToolbox; internal enum AudioFileGlobalProperty : uint { ReadableTypes = 1634103910u, WritableTypes = 1634105190u, FileTypeName = 1718906477u, AvailableStreamDescriptionsForFormat = 1935960420u, AvailableFormatIDs = 1718446436u, AllExtensions = 1634498676u, AllHFSTypeCodes = 1634231923u, AllUTIs = 1635087465u, AllMIMETypes = 1634560365u, ExtensionsForType = 1717926004u, UTIsForType = 1718973545u, MIMETypesForType = 1718446445u, TypesForMIMEType = 1953327469u, TypesForUTI = 1953854569u, TypesForExtension = 1952807028u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileInfoDictionary.cs ================================================ using Foundation; namespace AudioToolbox; public class AudioFileInfoDictionary : DictionaryContainer { public string Album => GetStringValue("album"); public string ApproximateDurationInSeconds => GetStringValue("approximate duration in seconds"); public string Artist => GetStringValue("artist"); public string ChannelLayout => GetStringValue("channel layout"); public string Composer => GetStringValue("composer"); public string Comments => GetStringValue("comments"); public string Copyright => GetStringValue("copyright"); public string EncodingApplication => GetStringValue("encoding application"); public string Genre => GetStringValue("genre"); public string ISRC => GetStringValue("ISRC"); public string KeySignature => GetStringValue("key signature"); public string Lyricist => GetStringValue("lyricist"); public string NominalBitRate => GetStringValue("nominal bit rate"); public string RecordedDate => GetStringValue("recorded date"); public string SourceBitDepth => GetStringValue("source bit depth"); public string SourceEncoder => GetStringValue("source encoder"); public string SubTitle => GetStringValue("subtitle"); public string Tempo => GetStringValue("tempo"); public string TimeSignature => GetStringValue("time signature"); public string Title => GetStringValue("title"); public string TrackNumber => GetStringValue("track number"); public string Year => GetStringValue("year"); internal AudioFileInfoDictionary(NSDictionary dict) : base(dict) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileLoopDirection.cs ================================================ namespace AudioToolbox; public enum AudioFileLoopDirection { NoLooping, Forward, ForwardAndBackward, Backward } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileMarker.cs ================================================ using System; using CoreFoundation; namespace AudioToolbox; public struct AudioFileMarker { public double FramePosition; internal IntPtr Name_cfstringref; public int MarkerID; public AudioFileSmpteTime SmpteTime; public AudioFileMarkerType Type; public ushort Reserved; public ushort Channel; public string Name => CFString.FetchString(Name_cfstringref); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileMarkerList.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public class AudioFileMarkerList : IDisposable { private IntPtr ptr; private readonly bool owns; public SmpteTimeType SmpteTimeType => (SmpteTimeType)Marshal.ReadInt32(ptr); public uint Count => (uint)Marshal.ReadInt32(ptr, 4); public unsafe AudioFileMarker this[int index] { get { if (index >= Count || index < 0) { throw new ArgumentOutOfRangeException("index"); } return *(AudioFileMarker*)((byte*)(void*)ptr + (nint)8 * (nint)sizeof(AudioFileMarker) + (nint)(index * sizeof(AudioFileMarker)) * (nint)sizeof(AudioFileMarker)); } } public AudioFileMarkerList(IntPtr ptr, bool owns) { this.ptr = ptr; this.owns = owns; } ~AudioFileMarkerList() { Dispose(disposing: false); GC.SuppressFinalize(this); } public void Dispose() { Dispose(disposing: true); } protected virtual void Dispose(bool disposing) { if (owns && !(ptr == IntPtr.Zero)) { for (int i = 0; i < Count; i++) { CFObject.CFRelease(this[i].Name_cfstringref); } Marshal.FreeHGlobal(ptr); ptr = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileMarkerType.cs ================================================ namespace AudioToolbox; public enum AudioFileMarkerType : uint { Generic = 0u, CAFProgramStart = 1885496679u, CAFProgramEnd = 1885695588u, CAFTrackStart = 1952605543u, CAFTrackEnd = 1952804436u, CAFIndex = 1768842360u, CAFRegionStart = 1919051111u, CAFRegionEnd = 1919051111u, CAFRegionSyncPoint = 1920170339u, CAFSelectionStart = 1935828327u, CAFSelectionEnd = 1935828327u, CAFEditSourceBegin = 1667392871u, CAFEditSourceEnd = 1667392871u, CAFEditDestinationBegin = 1684170087u, CAFEditDestinationEnd = 1684170087u, CAFSustainLoopStart = 1936482919u, CAFSustainLoopEnd = 1936482917u, CAFReleaseLoopStart = 1919705703u, CAFReleaseLoopEnd = 1919705701u, CAFSavedPlayPosition = 1936747641u, CAFTempo = 1953329263u, CAFTimeSignature = 1953720679u, CAFKeySignature = 1802725735u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFilePacketTableInfo.cs ================================================ namespace AudioToolbox; public struct AudioFilePacketTableInfo { public long ValidFrames; public int PrimingFrames; public int RemainderFrames; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFilePermission.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioFilePermission { Read = 1, Write = 2, ReadWrite = 3 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileProperty.cs ================================================ namespace AudioToolbox; public enum AudioFileProperty { FileFormat = 1717988724, DataFormat = 1684434292, IsOptimized = 1869640813, MagicCookieData = 1835493731, AudioDataByteCount = 1650683508, AudioDataPacketCount = 1885564532, MaximumPacketSize = 1886616165, DataOffset = 1685022310, ChannelLayout = 1668112752, DeferSizeUpdates = 1685289589, DataFormatName = 1718512997, MarkerList = 1835756659, RegionList = 1919380595, PacketToFrame = 1886086770, FrameToPacket = 1718775915, PacketToByte = 1886085753, ByteToPacket = 1652125803, ChunkIDs = 1667787108, InfoDictionary = 1768842863, PacketTableInfo = 1886283375, FormatList = 1718383476, PacketSizeUpperBound = 1886090594, ReserveDuration = 1920168566, EstimatedDuration = 1701082482, BitRate = 1651663220, ID3Tag = 1768174452, SourceBitDepth = 1935832164, AlbumArtwork = 1633776244, ReadyToProducePackets = 1919247481, AverageBytesPerPacket = 1633841264 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileRegion.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public struct AudioFileRegion { private readonly IntPtr ptr; public uint RegionID => (uint)Marshal.ReadInt32(ptr); public string Name => CFString.FetchString(NameWeak); internal IntPtr NameWeak => Marshal.ReadIntPtr(ptr, 4); public unsafe AudioFileRegionFlags Flags => (AudioFileRegionFlags)Marshal.ReadInt32(ptr, 4 + sizeof(IntPtr)); public unsafe int Count => Marshal.ReadInt32(ptr, 8 + sizeof(IntPtr)); public unsafe AudioFileMarker this[int index] { get { if (index >= Count || index < 0) { throw new ArgumentOutOfRangeException("index"); } return *(AudioFileMarker*)((byte*)(void*)ptr + (nint)12 * (nint)sizeof(AudioFileMarker) + (nint)sizeof(IntPtr) * (nint)sizeof(AudioFileMarker) + (nint)(index * sizeof(AudioFileMarker)) * (nint)sizeof(AudioFileMarker)); } } internal unsafe int TotalSize => Count * sizeof(AudioFileMarker); public AudioFileRegion(IntPtr ptr) { this.ptr = ptr; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileRegionFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioFileRegionFlags : uint { LoopEnable = 1u, PlayForward = 2u, PlayBackward = 4u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileRegionList.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public class AudioFileRegionList : IDisposable { private IntPtr ptr; private readonly bool owns; public SmpteTimeType SmpteTimeType => (SmpteTimeType)Marshal.ReadInt32(ptr); public uint Count => (uint)Marshal.ReadInt32(ptr, 4); public unsafe AudioFileRegion this[int index] { get { if (index >= Count || index < 0) { throw new ArgumentOutOfRangeException("index"); } byte* ptr = (byte*)(void*)this.ptr + 8; for (int i = 0; i < index; i++) { ptr += new AudioFileRegion((IntPtr)ptr).TotalSize; } return new AudioFileRegion((IntPtr)ptr); } } public AudioFileRegionList(IntPtr ptr, bool owns) { this.ptr = ptr; this.owns = owns; } ~AudioFileRegionList() { Dispose(disposing: false); GC.SuppressFinalize(this); } public void Dispose() { Dispose(disposing: true); } protected virtual void Dispose(bool disposing) { if (owns && !(ptr == IntPtr.Zero)) { for (int i = 0; i < Count; i++) { CFObject.CFRelease(this[i].NameWeak); } Marshal.FreeHGlobal(ptr); ptr = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileSmpteTime.cs ================================================ namespace AudioToolbox; public struct AudioFileSmpteTime { public sbyte Hours; public byte Minutes; public byte Seconds; public byte Frames; public uint SubFrameSampleOffset; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileStream.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace AudioToolbox; public class AudioFileStream : IDisposable { private delegate void AudioFileStream_PropertyListenerProc(IntPtr clientData, IntPtr audioFileStream, AudioFileStreamProperty propertyID, ref AudioFileStreamPropertyFlag ioFlags); private delegate void AudioFileStream_PacketsProc(IntPtr clientData, int numberBytes, int numberPackets, IntPtr inputData, IntPtr packetDescriptions); private IntPtr handle; private GCHandle gch; private static readonly AudioFileStream_PacketsProc dInPackets = InPackets; private static readonly AudioFileStream_PropertyListenerProc dPropertyListener = PropertyListener; public EventHandler PacketDecoded; public EventHandler PropertyFound; public bool ReadyToProducePackets => GetInt(AudioFileStreamProperty.ReadyToProducePackets) == 1; public AudioFileType FileType => (AudioFileType)GetInt(AudioFileStreamProperty.FileFormat); [Advice("Use DataFormat")] public AudioStreamBasicDescription StreamBasicDescription => DataFormat; public AudioStreamBasicDescription DataFormat => GetProperty(AudioFileStreamProperty.DataFormat) ?? default(AudioStreamBasicDescription); public unsafe AudioFormat[] FormatList { get { int size; IntPtr property = GetProperty(AudioFileStreamProperty.FormatList, out size); if (property == IntPtr.Zero) { return null; } AudioFormat* ptr = (AudioFormat*)(void*)property; int num = sizeof(AudioFormat); int num2 = size / num; AudioFormat[] array = new AudioFormat[num2]; for (int i = 0; i < num2; i++) { array[i] = ptr[i]; } Marshal.FreeHGlobal(property); return array; } } public AudioFilePacketTableInfo? PacketTableInfo => GetProperty(AudioFileStreamProperty.PacketTableInfo); public byte[] MagicCookie { get { int size; IntPtr property = GetProperty(AudioFileStreamProperty.MagicCookieData, out size); if (property == IntPtr.Zero) { return new byte[0]; } byte[] array = new byte[size]; for (int i = 0; i < array.Length; i++) { array[i] = Marshal.ReadByte(property, i); } Marshal.FreeHGlobal(property); return array; } } public long DataByteCount => GetLong(AudioFileStreamProperty.AudioDataByteCount); public long DataPacketCount => GetLong(AudioFileStreamProperty.AudioDataPacketCount); public int MaximumPacketSize => GetInt(AudioFileStreamProperty.MaximumPacketSize); public long DataOffset => GetLong(AudioFileStreamProperty.DataOffset); public AudioChannelLayout ChannelLayout { get { int size; IntPtr property = GetProperty(AudioFileStreamProperty.ChannelLayout, out size); if (property == IntPtr.Zero) { return null; } AudioChannelLayout result = AudioChannelLayout.FromHandle(property); Marshal.FreeHGlobal(property); return result; } } public int BitRate => GetInt(AudioFileStreamProperty.BitRate); public int PacketSizeUpperBound => GetInt(AudioFileStreamProperty.PacketSizeUpperBound); public double AverageBytesPerPacket => GetDouble(AudioFileStreamProperty.AverageBytesPerPacket); public AudioFileStreamStatus LastError { get; private set; } ~AudioFileStream() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public void Close() { Dispose(); } protected virtual void Dispose(bool disposing) { if (disposing && gch.IsAllocated) { gch.Free(); } if (handle != IntPtr.Zero) { AudioFileStreamClose(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileStreamOpen(IntPtr clientData, AudioFileStream_PropertyListenerProc propertyListenerProc, AudioFileStream_PacketsProc packetsProc, AudioFileType fileTypeHint, out IntPtr file_id); [MonoPInvokeCallback(typeof(AudioFileStream_PacketsProc))] private static void InPackets(IntPtr clientData, int numberBytes, int numberPackets, IntPtr inputData, IntPtr packetDescriptions) { AudioFileStream obj = GCHandle.FromIntPtr(clientData).Target as AudioFileStream; AudioStreamPacketDescription[] packetDescriptions2 = AudioFile.PacketDescriptionFrom(numberPackets, packetDescriptions); obj.OnPacketDecoded(numberBytes, inputData, packetDescriptions2); } protected virtual void OnPacketDecoded(int numberOfBytes, IntPtr inputData, AudioStreamPacketDescription[] packetDescriptions) { PacketDecoded?.Invoke(this, new PacketReceivedEventArgs(numberOfBytes, inputData, packetDescriptions)); } protected virtual void OnPropertyFound(AudioFileStreamProperty propertyID, ref AudioFileStreamPropertyFlag ioFlags) { EventHandler propertyFound = PropertyFound; if (propertyFound != null) { PropertyFoundEventArgs propertyFoundEventArgs = new PropertyFoundEventArgs(propertyID, ioFlags); propertyFound(this, propertyFoundEventArgs); ioFlags = propertyFoundEventArgs.Flags; } } [MonoPInvokeCallback(typeof(AudioFileStream_PropertyListenerProc))] private static void PropertyListener(IntPtr clientData, IntPtr audioFileStream, AudioFileStreamProperty propertyID, ref AudioFileStreamPropertyFlag ioFlags) { (GCHandle.FromIntPtr(clientData).Target as AudioFileStream).OnPropertyFound(propertyID, ref ioFlags); } public AudioFileStream(AudioFileType fileTypeHint) { gch = GCHandle.Alloc(this); IntPtr file_id; int num = AudioFileStreamOpen(GCHandle.ToIntPtr(gch), dPropertyListener, dInPackets, fileTypeHint, out file_id); if (num == 0) { handle = file_id; return; } throw new Exception($"Unable to create AudioFileStream, code: 0x{num:x}"); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamParseBytes(IntPtr inAudioFileStream, int inDataByteSize, IntPtr inData, uint inFlags); public AudioFileStreamStatus ParseBytes(int size, IntPtr data, bool discontinuity) { return LastError = AudioFileStreamParseBytes(handle, size, data, discontinuity ? 1u : 0u); } public unsafe AudioFileStreamStatus ParseBytes(byte[] bytes, bool discontinuity) { if (bytes == null) { throw new ArgumentNullException("bytes"); } fixed (byte* ptr = &bytes[0]) { return LastError = AudioFileStreamParseBytes(handle, bytes.Length, (IntPtr)ptr, discontinuity ? 1u : 0u); } } public unsafe AudioFileStreamStatus ParseBytes(byte[] bytes, int offset, int count, bool discontinuity) { if (bytes == null) { throw new ArgumentNullException("bytes"); } if (offset < 0) { throw new ArgumentException("offset"); } if (count < 0) { throw new ArgumentException("count"); } if (offset + count > bytes.Length) { throw new ArgumentException("offset+count"); } fixed (byte* ptr = &bytes[0]) { return LastError = AudioFileStreamParseBytes(handle, count, (IntPtr)(ptr + offset), discontinuity ? 1u : 0u); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamSeek(IntPtr inAudioFileStream, long inPacketOffset, out long outDataByteOffset, ref int ioFlags); public AudioFileStreamStatus Seek(long packetOffset, out long dataByteOffset, out bool isEstimate) { int ioFlags = 0; LastError = AudioFileStreamSeek(handle, packetOffset, out dataByteOffset, ref ioFlags); if (LastError != 0) { isEstimate = false; } else { isEstimate = (ioFlags & 1) == 1; } return LastError; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamGetPropertyInfo(IntPtr inAudioFileStream, AudioFileStreamProperty inPropertyID, out int outPropertyDataSize, out int isWritable); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamGetProperty(IntPtr inAudioFileStream, AudioFileStreamProperty inPropertyID, ref int ioPropertyDataSize, IntPtr outPropertyData); public bool GetProperty(AudioFileStreamProperty property, ref int dataSize, IntPtr outPropertyData) { return AudioFileStreamGetProperty(handle, property, ref dataSize, outPropertyData) == AudioFileStreamStatus.Ok; } public IntPtr GetProperty(AudioFileStreamProperty property, out int size) { LastError = AudioFileStreamGetPropertyInfo(handle, property, out size, out var _); if (LastError != 0) { return IntPtr.Zero; } IntPtr intPtr = Marshal.AllocHGlobal(size); if (intPtr == IntPtr.Zero) { return IntPtr.Zero; } LastError = AudioFileStreamGetProperty(handle, property, ref size, intPtr); if (LastError == AudioFileStreamStatus.Ok) { return intPtr; } Marshal.FreeHGlobal(intPtr); return IntPtr.Zero; } private unsafe int GetInt(AudioFileStreamProperty property) { int result = 0; int ioPropertyDataSize = 4; LastError = AudioFileStreamGetProperty(handle, property, ref ioPropertyDataSize, (IntPtr)(&result)); if (LastError == AudioFileStreamStatus.Ok) { return result; } return 0; } private unsafe double GetDouble(AudioFileStreamProperty property) { double result = 0.0; int ioPropertyDataSize = 8; LastError = AudioFileStreamGetProperty(handle, property, ref ioPropertyDataSize, (IntPtr)(&result)); if (LastError == AudioFileStreamStatus.Ok) { return result; } return 0.0; } private unsafe long GetLong(AudioFileStreamProperty property) { long result = 0L; int ioPropertyDataSize = 8; LastError = AudioFileStreamGetProperty(handle, property, ref ioPropertyDataSize, (IntPtr)(&result)); if (LastError == AudioFileStreamStatus.Ok) { return result; } return 0L; } private T? GetProperty(AudioFileStreamProperty property) where T : struct { LastError = AudioFileStreamGetPropertyInfo(handle, property, out var outPropertyDataSize, out var _); if (LastError != 0) { return null; } IntPtr intPtr = Marshal.AllocHGlobal(outPropertyDataSize); if (intPtr == IntPtr.Zero) { return null; } try { LastError = AudioFileStreamGetProperty(handle, property, ref outPropertyDataSize, intPtr); if (LastError == AudioFileStreamStatus.Ok) { return (T)Marshal.PtrToStructure(intPtr, typeof(T)); } return null; } finally { Marshal.FreeHGlobal(intPtr); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamSetProperty(IntPtr inAudioFileStream, AudioFileStreamProperty inPropertyID, int inPropertyDataSize, IntPtr inPropertyData); public bool SetProperty(AudioFileStreamProperty property, int dataSize, IntPtr propertyData) { LastError = AudioFileStreamSetProperty(handle, property, dataSize, propertyData); return LastError == AudioFileStreamStatus.Ok; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioFileStreamStatus AudioFileStreamClose(IntPtr inAudioFileStream); public unsafe long PacketToFrame(long packet) { AudioFramePacketTranslation audioFramePacketTranslation = default(AudioFramePacketTranslation); audioFramePacketTranslation.Packet = packet; AudioFramePacketTranslation* ptr = &audioFramePacketTranslation; int ioPropertyDataSize = sizeof(AudioFramePacketTranslation); LastError = AudioFileStreamGetProperty(handle, AudioFileStreamProperty.PacketToFrame, ref ioPropertyDataSize, (IntPtr)ptr); if (LastError == AudioFileStreamStatus.Ok) { return audioFramePacketTranslation.Frame; } return -1L; } public unsafe long FrameToPacket(long frame, out int frameOffsetInPacket) { AudioFramePacketTranslation audioFramePacketTranslation = default(AudioFramePacketTranslation); audioFramePacketTranslation.Frame = frame; AudioFramePacketTranslation* ptr = &audioFramePacketTranslation; int ioPropertyDataSize = sizeof(AudioFramePacketTranslation); LastError = AudioFileStreamGetProperty(handle, AudioFileStreamProperty.FrameToPacket, ref ioPropertyDataSize, (IntPtr)ptr); if (LastError == AudioFileStreamStatus.Ok) { frameOffsetInPacket = audioFramePacketTranslation.FrameOffsetInPacket; return audioFramePacketTranslation.Packet; } frameOffsetInPacket = 0; return -1L; } public unsafe long PacketToByte(long packet, out bool isEstimate) { AudioBytePacketTranslation audioBytePacketTranslation = default(AudioBytePacketTranslation); audioBytePacketTranslation.Packet = packet; AudioBytePacketTranslation* ptr = &audioBytePacketTranslation; int ioPropertyDataSize = sizeof(AudioBytePacketTranslation); LastError = AudioFileStreamGetProperty(handle, AudioFileStreamProperty.PacketToByte, ref ioPropertyDataSize, (IntPtr)ptr); if (LastError == AudioFileStreamStatus.Ok) { isEstimate = (audioBytePacketTranslation.Flags & BytePacketTranslationFlags.IsEstimate) != 0; return audioBytePacketTranslation.Byte; } isEstimate = false; return -1L; } public unsafe long ByteToPacket(long byteval, out int byteOffsetInPacket, out bool isEstimate) { AudioBytePacketTranslation audioBytePacketTranslation = default(AudioBytePacketTranslation); audioBytePacketTranslation.Byte = byteval; AudioBytePacketTranslation* ptr = &audioBytePacketTranslation; int ioPropertyDataSize = sizeof(AudioBytePacketTranslation); LastError = AudioFileStreamGetProperty(handle, AudioFileStreamProperty.ByteToPacket, ref ioPropertyDataSize, (IntPtr)ptr); if (LastError == AudioFileStreamStatus.Ok) { isEstimate = (audioBytePacketTranslation.Flags & BytePacketTranslationFlags.IsEstimate) != 0; byteOffsetInPacket = audioBytePacketTranslation.ByteOffsetInPacket; return audioBytePacketTranslation.Packet; } byteOffsetInPacket = 0; isEstimate = false; return -1L; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileStreamProperty.cs ================================================ namespace AudioToolbox; public enum AudioFileStreamProperty { ReadyToProducePackets = 1919247481, FileFormat = 1717988724, DataFormat = 1684434292, FormatList = 1718383476, MagicCookieData = 1835493731, AudioDataByteCount = 1650683508, AudioDataPacketCount = 1885564532, MaximumPacketSize = 1886616165, DataOffset = 1685022310, ChannelLayout = 1668112752, PacketToFrame = 1886086770, FrameToPacket = 1718775915, PacketToByte = 1886085753, ByteToPacket = 1652125803, PacketTableInfo = 1886283375, PacketSizeUpperBound = 1886090594, AverageBytesPerPacket = 1633841264, BitRate = 1651663220 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileStreamPropertyFlag.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioFileStreamPropertyFlag { PropertyIsCached = 1, CacheProperty = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileStreamStatus.cs ================================================ namespace AudioToolbox; public enum AudioFileStreamStatus { Ok = 0, UnsupportedFileType = 1954115647, UnsupportedDataFormat = 1718449215, UnsupportedProperty = 1886681407, BadPropertySize = 561211770, NotOptimized = 1869640813, InvalidPacketOffset = 1885563711, InvalidFile = 1685348671, ValueUnknown = 1970170687, DataUnavailable = 1836020325, IllegalOperation = 1852797029, UnspecifiedError = 2003334207, DiscontinuityCantRecover = 1685283617 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileType.cs ================================================ namespace AudioToolbox; public enum AudioFileType { AIFF = 1095321158, AIFC = 1095321155, WAVE = 1463899717, SoundDesigner2 = 1399075430, Next = 1315264596, MP3 = 1297106739, MP2 = 1297106738, MP1 = 1297106737, AC3 = 1633889587, AAC_ADTS = 1633973363, MPEG4 = 1836069990, M4A = 1832149350, M4B = 1832149606, CAF = 1667327590, ThreeGP = 862417008, ThreeGP2 = 862416946, AMR = 1634562662 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFileTypeAndFormatID.cs ================================================ namespace AudioToolbox; internal struct AudioFileTypeAndFormatID { public AudioFileType FileType; public AudioFormatType FormatType; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormat.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct AudioFormat { public AudioStreamBasicDescription AudioStreamBasicDescription; public AudioChannelLayoutTag AudioChannelLayoutTag; public unsafe static AudioFormat? GetFirstPlayableFormat(AudioFormat[] formatList) { if (formatList == null) { throw new ArgumentNullException("formatList"); } if (formatList.Length < 2) { throw new ArgumentException("formatList"); } fixed (AudioFormat* inSpecifier = &formatList[0]) { int ioPropertyDataSize = 4; int inSpecifierSize = sizeof(AudioFormat) * formatList.Length; if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FirstPlayableFormatFromList, inSpecifierSize, inSpecifier, ref ioPropertyDataSize, out var outPropertyData) != 0) { return null; } return formatList[outPropertyData]; } } public override string ToString() { return string.Concat(AudioChannelLayoutTag, ":", AudioStreamBasicDescription.ToString()); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatAvailability.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public static class AudioFormatAvailability { public static AudioValueRange[] GetAvailableEncodeBitRates(AudioFormatType format) { return GetAvailable(AudioFormatProperty.AvailableEncodeBitRates, format); } public static AudioValueRange[] GetAvailableEncodeSampleRates(AudioFormatType format) { return GetAvailable(AudioFormatProperty.AvailableEncodeSampleRates, format); } public static AudioClassDescription[] GetDecoders(AudioFormatType format) { return GetAvailable(AudioFormatProperty.Decoders, format); } public static AudioClassDescription[] GetEncoders(AudioFormatType format) { return GetAvailable(AudioFormatProperty.Encoders, format); } private static T[] GetAvailable(AudioFormatProperty prop, AudioFormatType format) { if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(prop, 4, ref format, out var outPropertyDataSize) != 0) { return null; } T[] array = new T[(long)outPropertyDataSize / (long)Marshal.SizeOf(typeof(T))]; GCHandle gCHandle = GCHandle.Alloc(array, GCHandleType.Pinned); try { IntPtr outPropertyData = gCHandle.AddrOfPinnedObject(); if (AudioFormatPropertyNative.AudioFormatGetProperty(prop, 4, ref format, ref outPropertyDataSize, outPropertyData) != 0) { return null; } Array.Resize(ref array, (int)outPropertyDataSize / Marshal.SizeOf(typeof(T))); return array; } finally { gCHandle.Free(); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatError.cs ================================================ namespace AudioToolbox; public enum AudioFormatError { None = 0, Unspecified = 2003329396, UnsupportedProperty = 1886547824, BadPropertySize = 561211770, BadSpecifierSize = 561213539, UnsupportedDataFormat = 1718449215, UnknownFormat = 560360820 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioFormatFlags : uint { IsFloat = 1u, IsBigEndian = 2u, IsSignedInteger = 4u, IsPacked = 8u, IsAlignedHigh = 0x10u, IsNonInterleaved = 0x20u, IsNonMixable = 0x40u, FlagsAreAllClear = 0x80000000u, LinearPCMIsFloat = 1u, LinearPCMIsBigEndian = 2u, LinearPCMIsSignedInteger = 4u, LinearPCMIsPacked = 8u, LinearPCMIsAlignedHigh = 0x10u, LinearPCMIsNonInterleaved = 0x20u, LinearPCMIsNonMixable = 0x40u, LinearPCMSampleFractionShift = 7u, LinearPCMSampleFractionMask = 0x1F80u, LinearPCMFlagsAreAllClear = 0x80000000u, AppleLossless16BitSourceData = 1u, AppleLossless20BitSourceData = 2u, AppleLossless24BitSourceData = 3u, AppleLossless32BitSourceData = 4u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatInfo.cs ================================================ namespace AudioToolbox; internal struct AudioFormatInfo { public AudioStreamBasicDescription AudioStreamBasicDescription; public unsafe byte* MagicCookieWeak; public int MagicCookieSize; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatProperty.cs ================================================ namespace AudioToolbox; internal enum AudioFormatProperty { FormatInfo = 1718449257, FormatName = 1718509933, EncodeFormatIDs = 1633906534, DecodeFormatIDs = 1633904998, FormatList = 1718383476, ASBDFromESDS = 1702064996, ChannelLayoutFromESDS = 1702060908, OutputFormatList = 1868983411, FirstPlayableFormatFromList = 1718642284, FormatIsVBR = 1719034482, FormatIsExternallyFramed = 1717925990, FormatIsEncrypted = 1668446576, Encoders = 1635149166, Decoders = 1635148901, AvailableEncodeChannelLayoutTags = 1634034540, AvailableEncodeNumberChannels = 1635151459, AvailableEncodeBitRates = 1634034290, AvailableEncodeSampleRates = 1634038642, ASBDFromMPEGPacket = 1633971568, BitmapForLayoutTag = 1651340391, MatrixMixMap = 1835884912, ChannelMap = 1667788144, NumberOfChannelsForLayout = 1852008557, AreChannelLayoutsEquivalent = 1667786097, ValidateChannelLayout = 1986093932, ChannelLayoutForTag = 1668116588, TagForChannelLayout = 1668116596, ChannelLayoutName = 1819242093, ChannelLayoutSimpleName = 1819242093, ChannelLayoutForBitmap = 1668116578, ChannelName = 1668178285, ChannelShortName = 1668509293, TagsForNumberOfChannels = 1952540515, PanningMatrix = 1885433453, BalanceFade = 1650551910, ID3TagSize = 1768174451, ID3TagToDictionary = 1768174436 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatPropertyNative.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; internal static class AudioFormatPropertyNative { [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetPropertyInfo(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioFormatType inSpecifier, out uint outPropertyDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetPropertyInfo(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioStreamBasicDescription inSpecifier, out uint outPropertyDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetPropertyInfo(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioFormatInfo inSpecifier, out uint outPropertyDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetPropertyInfo(AudioFormatProperty propertyID, int inSpecifierSize, ref int inSpecifier, out int outPropertyDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetPropertyInfo(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, out int outPropertyDataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioFormatType inSpecifier, ref uint ioDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref int inSpecifier, ref int ioDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, ref int ioDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, ref int ioDataSize, out IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, ref int ioDataSize, out int outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref int inSpecifier, ref int ioDataSize, out int outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, IntPtr ioDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioFormatInfo inSpecifier, ref uint ioDataSize, AudioFormat* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref AudioStreamBasicDescription inSpecifier, ref uint ioDataSize, int* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, ref int inSpecifier, ref int ioDataSize, int* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr* inSpecifier, ref int ioDataSize, int* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr* inSpecifier, ref int ioDataSize, float* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty propertyID, int inSpecifierSize, IntPtr inSpecifier, ref int ioDataSize, float* outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty inPropertyID, int inSpecifierSize, ref AudioStreamBasicDescription inSpecifier, ref int ioPropertyDataSize, out IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty inPropertyID, int inSpecifierSize, ref AudioStreamBasicDescription inSpecifier, ref int ioPropertyDataSize, out uint outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty inPropertyID, int inSpecifierSize, IntPtr inSpecifier, ref int ioPropertyDataSize, ref AudioStreamBasicDescription outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty inPropertyID, int inSpecifierSize, AudioFormat* inSpecifier, ref int ioPropertyDataSize, out uint outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public unsafe static extern AudioFormatError AudioFormatGetProperty(AudioFormatProperty inPropertyID, int inSpecifierSize, AudioClassDescription* inSpecifier, ref int ioPropertyDataSize, out uint outPropertyData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFormatType.cs ================================================ namespace AudioToolbox; public enum AudioFormatType { LinearPCM = 1819304813, AC3 = 1633889587, CAC3 = 1667326771, AppleIMA4 = 1768775988, MPEG4AAC = 1633772320, MPEG4CELP = 1667591280, MPEG4HVXC = 1752594531, MPEG4TwinVQ = 1953986161, MACE3 = 1296122675, MACE6 = 1296122678, ULaw = 1970037111, ALaw = 1634492791, QDesign = 1363430723, QDesign2 = 1363430706, QUALCOMM = 1365470320, MPEGLayer1 = 778924081, MPEGLayer2 = 778924082, MPEGLayer3 = 778924083, TimeCode = 1953066341, MIDIStream = 1835623529, ParameterValueStream = 1634760307, AppleLossless = 1634492771, MPEG4AAC_HE = 1633772392, MPEG4AAC_LD = 1633772396, MPEG4AAC_ELD = 1633772389, MPEG4AAC_ELD_SBR = 1633772390, MPEG4AAC_ELD_V2 = 1633772391, MPEG4AAC_HE_V2 = 1633772400, MPEG4AAC_Spatial = 1633772403, AMR = 1935764850, Audible = 1096107074, iLBC = 1768710755, DVIIntelIMA = 1836253201, MicrosoftGSM = 1836253233, AES3 = 1634038579 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioFramePacketTranslation.cs ================================================ namespace AudioToolbox; internal struct AudioFramePacketTranslation { public long Frame; public long Packet; public int FrameOffsetInPacket; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioPanningInfo.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public class AudioPanningInfo { private struct Layout { public PanningMode PanningMode; public AudioChannelFlags CoordinateFlags; public float Coord0; public float Coord1; public float Coord2; public float GainScale; public IntPtr OutputChannelMapWeak; } public PanningMode PanningMode { get; set; } public AudioChannelFlags CoordinateFlags { get; set; } public float[] Coordinates { get; private set; } public float GainScale { get; set; } public AudioChannelLayout OutputChannelMap { get; private set; } public AudioPanningInfo(AudioChannelLayout outputChannelMap) { if (outputChannelMap == null) { throw new ArgumentNullException("outputChannelMap"); } OutputChannelMap = outputChannelMap; } public unsafe float[] GetPanningMatrix() { int num = sizeof(Layout); Layout layout = ToStruct(); IntPtr intPtr = Marshal.AllocHGlobal(num); *(Layout*)(void*)intPtr = layout; if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.PanningMatrix, num, intPtr, out var outPropertyDataSize) != 0) { return null; } float[] array = new float[outPropertyDataSize / 4]; AudioFormatError num2; fixed (float* outPropertyData = array) { num2 = AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.PanningMatrix, num, intPtr, ref outPropertyDataSize, outPropertyData); } Marshal.FreeHGlobal(layout.OutputChannelMapWeak); Marshal.FreeHGlobal(intPtr); if (num2 != 0) { return null; } return array; } private Layout ToStruct() { Layout layout = default(Layout); layout.PanningMode = PanningMode; layout.CoordinateFlags = CoordinateFlags; layout.Coord0 = Coordinates[0]; layout.Coord1 = Coordinates[1]; layout.Coord2 = Coordinates[2]; layout.GainScale = GainScale; Layout result = layout; if (OutputChannelMap != null) { result.OutputChannelMapWeak = OutputChannelMap.ToBlock(out var _); } return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueue.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace AudioToolbox; public abstract class AudioQueue : IDisposable { private delegate void AudioQueuePropertyListenerProc(IntPtr userData, IntPtr AQ, AudioQueueProperty id); public delegate void AudioQueuePropertyChanged(AudioQueueProperty property); protected internal IntPtr handle; protected internal GCHandle gch; private Dictionary> listeners; public IntPtr Handle => handle; public AudioTimeStamp CurrentTime { get { AudioTimeStamp time = default(AudioTimeStamp); if (AudioQueueDeviceGetCurrentTime(handle, ref time) != 0) { time.Flags = (AudioTimeStamp.AtsFlags)0; } return time; } } public float Volume { get { float result; int num = AudioQueueGetParameter(handle, AudioQueueParameter.Volume, out result); if (num != 0) { throw new AudioQueueException(num); } return result; } set { int num = AudioQueueSetParameter(handle, AudioQueueParameter.Volume, value); if (num != 0) { throw new AudioQueueException(num); } } } public float VolumeRampTime { get { float result; int num = AudioQueueGetParameter(handle, AudioQueueParameter.VolumeRampTime, out result); if (num != 0) { throw new AudioQueueException(num); } return result; } set { int num = AudioQueueSetParameter(handle, AudioQueueParameter.VolumeRampTime, value); if (num != 0) { throw new AudioQueueException(num); } } } public float Pan { get { float result; int num = AudioQueueGetParameter(handle, AudioQueueParameter.Pan, out result); if (num != 0) { throw new AudioQueueException(num); } return result; } set { int num = AudioQueueSetParameter(handle, AudioQueueParameter.Pan, value); if (num != 0) { throw new AudioQueueException(num); } } } public bool IsRunning => GetInt(AudioQueueProperty.IsRunning) != 0; public double SampleRate => GetDouble(AudioQueueProperty.DeviceSampleRate); public int DeviceChannels => GetInt(AudioQueueProperty.DeviceNumberChannels); public string CurrentDevice { get { return CFString.FetchString((IntPtr)GetInt(AudioQueueProperty.CurrentDevice)); } set { throw new NotImplementedException(); } } public unsafe byte[] MagicCookie { get { int size; IntPtr property = GetProperty(AudioQueueProperty.MagicCookie, out size); if (property == IntPtr.Zero) { return new byte[0]; } byte[] array = new byte[size]; for (int i = 0; i < array.Length; i++) { array[i] = Marshal.ReadByte(property, i); } Marshal.FreeHGlobal(property); return array; } set { if (value == null) { throw new ArgumentNullException("value"); } if (value.Length != 0) { fixed (byte* ptr = &value[0]) { SetProperty(AudioQueueProperty.MagicCookie, value.Length, (IntPtr)ptr); } } } } public AudioChannelLayout ChannelLayout { get { int size; IntPtr property = GetProperty(AudioQueueProperty.ChannelLayout, out size); if (property == IntPtr.Zero) { return null; } AudioChannelLayout result = AudioChannelLayout.FromHandle(property); Marshal.FreeHGlobal(property); return result; } set { if (value == null) { throw new ArgumentNullException("value"); } int size; IntPtr intPtr = value.ToBlock(out size); SetProperty(AudioQueueProperty.ChannelLayout, size, intPtr); Marshal.FreeHGlobal(intPtr); } } public bool EnableLevelMetering { get { return GetInt(AudioQueueProperty.EnableLevelMetering) != 0; } set { SetInt(AudioQueueProperty.EnableLevelMetering, value ? 1 : 0); } } public int MaximumOutputPacketSize => GetInt(AudioQueueProperty.MaximumOutputPacketSize); public int DecodeBufferSizeFrames => GetInt(AudioQueueProperty.DecodeBufferSizeFrames); public AudioStreamBasicDescription AudioStreamPacketDescription => GetProperty(AudioQueueProperty.StreamDescription); public unsafe AudioQueueLevelMeterState[] CurrentLevelMeter { get { _ = DeviceChannels; int size; IntPtr property = GetProperty(AudioQueueProperty.CurrentLevelMeter, out size); if (property == IntPtr.Zero) { return new AudioQueueLevelMeterState[0]; } AudioQueueLevelMeterState[] array = new AudioQueueLevelMeterState[size]; AudioQueueLevelMeterState* ptr = (AudioQueueLevelMeterState*)(void*)property; for (int i = 0; i < size; i++) { array[i] = ptr[i]; } return array; } } public unsafe AudioQueueLevelMeterState[] CurrentLevelMeterDB { get { _ = DeviceChannels; int size; IntPtr property = GetProperty(AudioQueueProperty.CurrentLevelMeterDB, out size); if (property == IntPtr.Zero) { return new AudioQueueLevelMeterState[0]; } AudioQueueLevelMeterState[] array = new AudioQueueLevelMeterState[size]; AudioQueueLevelMeterState* ptr = (AudioQueueLevelMeterState*)(void*)property; for (int i = 0; i < size; i++) { array[i] = ptr[i]; } return array; } } public uint ConverterError => (uint)GetInt(AudioQueueProperty.ConverterError); internal AudioQueue() { } public void Dispose() { Dispose(disposing: true, immediate: true); } public void QueueDispose() { Dispose(disposing: true, immediate: false); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueDispose(IntPtr AQ, bool immediate); public virtual void Dispose(bool disposing, bool immediate) { if (handle != IntPtr.Zero) { if (disposing && listeners != null) { foreach (AudioQueueProperty key in listeners.Keys) { AudioQueueRemovePropertyListener(handle, key, property_changed, GCHandle.ToIntPtr(gch)); } } AudioQueueDispose(handle, immediate); handle = IntPtr.Zero; } if (gch.IsAllocated) { gch.Free(); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueStart(IntPtr AQ, ref AudioTimeStamp startTime); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueStart(IntPtr AQ, IntPtr startTime); public AudioQueueStatus Start(AudioTimeStamp startTime) { return AudioQueueStart(handle, ref startTime); } public AudioQueueStatus Start() { return AudioQueueStart(handle, IntPtr.Zero); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueuePrime(IntPtr AQ, int toPrepare, out int prepared); public AudioQueueStatus Prime(int toPrepare, out int prepared) { return AudioQueuePrime(handle, toPrepare, out prepared); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueFlush(IntPtr aq); public AudioQueueStatus Flush() { return AudioQueueFlush(handle); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueStop(IntPtr aq, bool immediate); public AudioQueueStatus Stop(bool immediate) { return AudioQueueStop(handle, immediate); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueuePause(IntPtr aq); public AudioQueueStatus Pause() { return AudioQueuePause(handle); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueReset(IntPtr aq); public AudioQueueStatus Reset() { return AudioQueueReset(handle); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueAllocateBuffer(IntPtr AQ, int bufferSize, out IntPtr audioQueueBuffer); public AudioQueueStatus AllocateBuffer(int bufferSize, out IntPtr audioQueueBuffer) { return AudioQueueAllocateBuffer(handle, bufferSize, out audioQueueBuffer); } public unsafe AudioQueueStatus AllocateBuffer(int bufferSize, out AudioQueueBuffer* audioQueueBuffer) { IntPtr audioQueueBuffer2; AudioQueueStatus result = AudioQueueAllocateBuffer(handle, bufferSize, out audioQueueBuffer2); audioQueueBuffer = (AudioQueueBuffer*)(void*)audioQueueBuffer2; return result; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueAllocateBufferWithPacketDescriptions(IntPtr AQ, int bufferSize, int nPackets, out IntPtr audioQueueBuffer); public AudioQueueStatus AllocateBufferWithPacketDescriptors(int bufferSize, int nPackets, out IntPtr audioQueueBuffer) { return AudioQueueAllocateBufferWithPacketDescriptions(handle, bufferSize, nPackets, out audioQueueBuffer); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueFreeBuffer(IntPtr AQ, IntPtr audioQueueBuffer); public void FreeBuffer(IntPtr audioQueueBuffer) { if (audioQueueBuffer == IntPtr.Zero) { throw new ArgumentNullException("audioQueueBuffer"); } AudioQueueFreeBuffer(handle, audioQueueBuffer); } [DllImport("/usr/lib/libSystem.dylib")] internal unsafe static extern void memcpy(byte* target, byte* source, int n); public unsafe static void FillAudioData(IntPtr audioQueueBuffer, int offset, IntPtr source, int sourceOffset, int size) { byte* ptr = (byte*)(void*)Marshal.ReadIntPtr(audioQueueBuffer, 4); byte* ptr2 = (byte*)(void*)source; memcpy(ptr + offset, ptr2 + sourceOffset, size); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] internal unsafe static extern AudioQueueStatus AudioQueueEnqueueBuffer(IntPtr AQ, AudioQueueBuffer* audioQueueBuffer, int nPackets, AudioStreamPacketDescription[] desc); public unsafe AudioQueueStatus EnqueueBuffer(IntPtr audioQueueBuffer, int bytes, AudioStreamPacketDescription[] desc) { if (audioQueueBuffer == IntPtr.Zero) { throw new ArgumentNullException("audioQueueBuffer"); } AudioQueueBuffer* ptr = (AudioQueueBuffer*)(void*)audioQueueBuffer; ptr->AudioDataByteSize = (uint)bytes; return EnqueueBuffer(ptr, desc); } public unsafe AudioQueueStatus EnqueueBuffer(AudioQueueBuffer* audioQueueBuffer, AudioStreamPacketDescription[] desc) { if (audioQueueBuffer == null) { throw new ArgumentNullException("audioQueueBuffer"); } return AudioQueueEnqueueBuffer(handle, audioQueueBuffer, (desc != null) ? desc.Length : 0, desc); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern AudioQueueStatus AudioQueueEnqueueBufferWithParameters(IntPtr AQ, AudioQueueBuffer* audioQueueBuffer, int nPackets, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, int nParam, AudioQueueParameterEvent[] parameterEvents, ref AudioTimeStamp startTime, out AudioTimeStamp actualStartTime); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern AudioQueueStatus AudioQueueEnqueueBufferWithParameters(IntPtr AQ, AudioQueueBuffer* audioQueueBuffer, int nPackets, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, int nParam, AudioQueueParameterEvent[] parameterEvents, AudioTimeStamp* startTime, out AudioTimeStamp actualStartTime); public unsafe AudioQueueStatus EnqueueBuffer(IntPtr audioQueueBuffer, int bytes, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioQueueParameterEvent[] parameterEvents, ref AudioTimeStamp startTime, out AudioTimeStamp actualStartTime) { if (audioQueueBuffer == IntPtr.Zero) { throw new ArgumentNullException("audioQueueBuffer"); } AudioQueueBuffer* ptr = (AudioQueueBuffer*)(void*)audioQueueBuffer; ptr->AudioDataByteSize = (uint)bytes; return AudioQueueEnqueueBufferWithParameters(handle, ptr, (desc != null) ? desc.Length : 0, desc, trimFramesAtStart, trimFramesAtEnd, (parameterEvents != null) ? parameterEvents.Length : 0, parameterEvents, ref startTime, out actualStartTime); } public unsafe AudioQueueStatus EnqueueBuffer(IntPtr audioQueueBuffer, int bytes, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioQueueParameterEvent[] parameterEvents, out AudioTimeStamp actualStartTime) { if (audioQueueBuffer == IntPtr.Zero) { throw new ArgumentNullException("audioQueueBuffer"); } AudioQueueBuffer* ptr = (AudioQueueBuffer*)(void*)audioQueueBuffer; ptr->AudioDataByteSize = (uint)bytes; return AudioQueueEnqueueBufferWithParameters(handle, ptr, (desc != null) ? desc.Length : 0, desc, trimFramesAtStart, trimFramesAtEnd, (parameterEvents != null) ? parameterEvents.Length : 0, parameterEvents, null, out actualStartTime); } public unsafe AudioQueueStatus EnqueueBuffer(AudioQueueBuffer* audioQueueBuffer, int bytes, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioQueueParameterEvent[] parameterEvents, ref AudioTimeStamp startTime, out AudioTimeStamp actualStartTime) { if (audioQueueBuffer == null) { throw new ArgumentNullException("audioQueueBuffer"); } return AudioQueueEnqueueBufferWithParameters(handle, audioQueueBuffer, (desc != null) ? desc.Length : 0, desc, trimFramesAtStart, trimFramesAtEnd, (parameterEvents != null) ? parameterEvents.Length : 0, parameterEvents, ref startTime, out actualStartTime); } public unsafe AudioQueueStatus EnqueueBuffer(AudioQueueBuffer* audioQueueBuffer, int bytes, AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioQueueParameterEvent[] parameterEvents, out AudioTimeStamp actualStartTime) { if (audioQueueBuffer == null) { throw new ArgumentNullException("audioQueueBuffer"); } return AudioQueueEnqueueBufferWithParameters(handle, audioQueueBuffer, (desc != null) ? desc.Length : 0, desc, trimFramesAtStart, trimFramesAtEnd, (parameterEvents != null) ? parameterEvents.Length : 0, parameterEvents, null, out actualStartTime); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueCreateTimeline(IntPtr AQ, out IntPtr timeline); public AudioQueueTimeline CreateTimeline() { if (AudioQueueCreateTimeline(handle, out var timeline) == AudioQueueStatus.Ok) { return new AudioQueueTimeline(handle, timeline); } return null; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueGetCurrentTime(IntPtr AQ, IntPtr timelineHandle, ref AudioTimeStamp time, ref bool discontinuty); public AudioQueueStatus GetCurrentTime(AudioQueueTimeline timeline, ref AudioTimeStamp time, ref bool timelineDiscontinuty) { IntPtr intPtr; if (timeline == null) { intPtr = IntPtr.Zero; } else { intPtr = timeline.timelineHandle; if (intPtr == IntPtr.Zero) { throw new ObjectDisposedException("timeline"); } } return AudioQueueGetCurrentTime(handle, intPtr, ref time, ref timelineDiscontinuty); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueDeviceGetCurrentTime(IntPtr AQ, ref AudioTimeStamp time); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueDeviceGetNearestStartTime(IntPtr AQ, ref AudioTimeStamp data, int flags); public AudioTimeStamp GetNearestStartTime(AudioTimeStamp requestedStartTime) { AudioQueueStatus audioQueueStatus = AudioQueueDeviceGetNearestStartTime(handle, ref requestedStartTime, 0); if (audioQueueStatus != 0) { throw new AudioQueueException(audioQueueStatus); } return requestedStartTime; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueDeviceTranslateTime(IntPtr AQ, ref AudioTimeStamp inTime, out AudioTimeStamp translatedTime); public AudioTimeStamp TranslateTime(AudioTimeStamp timeToTranslate) { AudioQueueDeviceTranslateTime(handle, ref timeToTranslate, out var translatedTime); return translatedTime; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueGetParameter(IntPtr AQ, AudioQueueParameter parameterId, out float result); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueSetParameter(IntPtr AQ, AudioQueueParameter parameterId, float value); [MonoPInvokeCallback(typeof(AudioQueuePropertyListenerProc))] private static void property_changed(IntPtr userData, IntPtr AQ, AudioQueueProperty id) { AudioQueue audioQueue = GCHandle.FromIntPtr(userData).Target as AudioQueue; lock (audioQueue.listeners) { if (!audioQueue.listeners.TryGetValue(id, out var value)) { return; } foreach (AudioQueuePropertyChanged item in value) { item(id); } } } public AudioQueueStatus AddListener(AudioQueueProperty property, AudioQueuePropertyChanged callback) { if (callback == null) { throw new ArgumentNullException("callback"); } if (listeners == null) { listeners = new Dictionary>(); } AudioQueueStatus audioQueueStatus = AudioQueueStatus.Ok; lock (listeners) { if (!listeners.TryGetValue(property, out var value)) { audioQueueStatus = AudioQueueAddPropertyListener(handle, property, property_changed, GCHandle.ToIntPtr(gch)); if (audioQueueStatus != 0) { return audioQueueStatus; } value = (listeners[property] = new List()); } value.Add(callback); return audioQueueStatus; } } public void RemoveListener(AudioQueueProperty property, AudioQueuePropertyChanged callback) { if (callback == null) { throw new ArgumentNullException("callback"); } if (listeners == null) { return; } lock (listeners) { if (listeners.TryGetValue(property, out var value)) { value.Remove(callback); if (value.Count == 0) { AudioQueueRemovePropertyListener(handle, property, property_changed, GCHandle.ToIntPtr(gch)); } } } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueAddPropertyListener(IntPtr AQ, AudioQueueProperty id, AudioQueuePropertyListenerProc proc, IntPtr data); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueRemovePropertyListener(IntPtr AQ, AudioQueueProperty id, AudioQueuePropertyListenerProc proc, IntPtr data); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueGetProperty(IntPtr AQ, AudioQueueProperty id, IntPtr outdata, ref int dataSize); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueGetPropertySize(IntPtr AQ, AudioQueueProperty id, out int size); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueSetProperty(IntPtr AQ, AudioQueueProperty id, IntPtr data, int size); public bool GetProperty(AudioQueueProperty property, ref int dataSize, IntPtr outdata) { return AudioQueueGetProperty(handle, property, outdata, ref dataSize) == AudioQueueStatus.Ok; } public bool SetProperty(AudioQueueProperty property, int dataSize, IntPtr propertyData) { return AudioQueueSetProperty(handle, property, propertyData, dataSize) == AudioQueueStatus.Ok; } public IntPtr GetProperty(AudioQueueProperty property, out int size) { AudioQueueStatus audioQueueStatus = AudioQueueGetPropertySize(handle, property, out size); if (audioQueueStatus != 0) { throw new AudioQueueException(audioQueueStatus); } IntPtr intPtr = Marshal.AllocHGlobal(size); if (intPtr == IntPtr.Zero) { return IntPtr.Zero; } if (AudioQueueGetProperty(handle, property, intPtr, ref size) == AudioQueueStatus.Ok) { return intPtr; } Marshal.FreeHGlobal(intPtr); return IntPtr.Zero; } public T GetProperty(AudioQueueProperty property) where T : struct { AudioQueueStatus audioQueueStatus = AudioQueueGetPropertySize(handle, property, out var size); if (audioQueueStatus != 0) { throw new AudioQueueException(audioQueueStatus); } IntPtr intPtr = Marshal.AllocHGlobal(size); if (intPtr == IntPtr.Zero) { return default(T); } try { audioQueueStatus = AudioQueueGetProperty(handle, property, intPtr, ref size); if (audioQueueStatus == AudioQueueStatus.Ok) { return (T)Marshal.PtrToStructure(intPtr, typeof(T)); } throw new AudioQueueException(audioQueueStatus); } finally { Marshal.FreeHGlobal(intPtr); } } private unsafe int GetInt(AudioQueueProperty property) { int result = 0; int dataSize = 4; AudioQueueStatus audioQueueStatus = AudioQueueGetProperty(handle, property, (IntPtr)(&result), ref dataSize); if (audioQueueStatus == AudioQueueStatus.Ok) { return result; } throw new AudioQueueException(audioQueueStatus); } private unsafe int SetInt(AudioQueueProperty property, int val) { int size = 4; AudioQueueStatus audioQueueStatus = AudioQueueSetProperty(handle, property, (IntPtr)(&val), size); if (audioQueueStatus == AudioQueueStatus.Ok) { return val; } throw new AudioQueueException(audioQueueStatus); } private unsafe double GetDouble(AudioQueueProperty property) { double result = 0.0; int dataSize = 8; AudioQueueStatus audioQueueStatus = AudioQueueGetProperty(handle, property, (IntPtr)(&result), ref dataSize); if (audioQueueStatus == AudioQueueStatus.Ok) { return result; } throw new AudioQueueException(audioQueueStatus); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueProcessingTapNew(IntPtr inAQ, AudioQueueProcessingTapCallbackShared inCallback, IntPtr inClientData, AudioQueueProcessingTapFlags inFlags, out uint outMaxFrames, out AudioStreamBasicDescription outProcessingFormat, out IntPtr outAQTap); [Obsolete("Use CreateProcessingTap (AudioQueueProcessingTapDelegate, AudioQueueProcessingTapFlags, out AudioQueueStatus) instead", true)] [Since(6, 0)] public AudioQueueProcessingTap CreateProcessingTap(AudioQueueProcessingTapCallback processingCallback, AudioQueueProcessingTapFlags flags, out AudioQueueStatus status) { throw new NotSupportedException(); } [Since(6, 0)] public AudioQueueProcessingTap CreateProcessingTap(AudioQueueProcessingTapDelegate processingCallback, AudioQueueProcessingTapFlags flags, out AudioQueueStatus status) { AudioQueueProcessingTap audioQueueProcessingTap = new AudioQueueProcessingTap(processingCallback); status = AudioQueueProcessingTapNew(handle, AudioQueueProcessingTap.CreateTapCallback, GCHandle.ToIntPtr(audioQueueProcessingTap.Handle), flags, out var outMaxFrames, out var outProcessingFormat, out var outAQTap); if (status != 0) { audioQueueProcessingTap.Dispose(); return null; } audioQueueProcessingTap.TapHandle = outAQTap; audioQueueProcessingTap.MaxFrames = outMaxFrames; audioQueueProcessingTap.ProcessingFormat = outProcessingFormat; return audioQueueProcessingTap; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueBuffer.cs ================================================ using System; namespace AudioToolbox; public struct AudioQueueBuffer { public uint AudioDataBytesCapacity; public IntPtr AudioData; public uint AudioDataByteSize; public IntPtr UserData; public uint PacketDescriptionCapacity; public IntPtr IntPtrPacketDescriptions; public int PacketDescriptionCount; public AudioStreamPacketDescription[] PacketDescriptions => AudioFile.PacketDescriptionFrom(PacketDescriptionCount, IntPtrPacketDescriptions); public unsafe void CopyToAudioData(IntPtr source, int size) { byte* target = (byte*)(void*)AudioData; byte* source2 = (byte*)(void*)source; AudioQueue.memcpy(target, source2, size); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueChannelAssignment.cs ================================================ using System; using CoreFoundation; namespace AudioToolbox; public struct AudioQueueChannelAssignment { private IntPtr deviceUID; private uint channelNumber; public AudioQueueChannelAssignment(CFString deviceUID, uint channelNumber) { this.deviceUID = deviceUID.Handle; this.channelNumber = channelNumber; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueDeviceProperty.cs ================================================ namespace AudioToolbox; public enum AudioQueueDeviceProperty { SampleRate = 1634825074, NumberChannels = 1634821219 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueException.cs ================================================ using System; namespace AudioToolbox; public class AudioQueueException : Exception { public AudioQueueStatus ErrorCode { get; private set; } private static string Lookup(int k) { AudioQueueStatus audioQueueStatus = (AudioQueueStatus)k; return audioQueueStatus switch { AudioQueueStatus.InvalidBuffer => "The specified audio queue buffer does not belong to this audio queue", AudioQueueStatus.BufferEmpty => "The audio buffer is empty (AudioDataByteSize is zero)", AudioQueueStatus.DisposalPending => "This audio queue is being asynchronously disposed", AudioQueueStatus.InvalidProperty => "Invalid property specified", AudioQueueStatus.InvalidPropertySize => "Invalid property size", AudioQueueStatus.InvalidParameter => "The specified parameter is invalid", AudioQueueStatus.CannotStart => "The queue has encountered a problem and can not start", AudioQueueStatus.InvalidDevice => "The specified hardware device can not be located", AudioQueueStatus.BufferInQueue => "The specified buffer can not be disposed while it is on an active queue", AudioQueueStatus.InvalidRunState => "The operation can not be performed in the current queue state (running or stopped)", AudioQueueStatus.InvalidQueueType => "Invalid queue type (input operation attempted on output or output operation on input", AudioQueueStatus.Permissions => "No permissions to access that function", AudioQueueStatus.InvalidPropertyValue => "The property value is invalid", AudioQueueStatus.PrimeTimedOut => "Timeout during Prime operation", AudioQueueStatus.CodecNotFound => "The requested codec was not found", AudioQueueStatus.InvalidCodecAccess => "The codec could not be accessed", AudioQueueStatus.QueueInvalidated => "The audio server has terminated, the queue has been invalidated", AudioQueueStatus.RecordUnderrun => "Recording lost data because enqueued buffer was not available", AudioQueueStatus.EnqueueDuringReset => "You tried to enqueue a buffer during a Reset, Stop or Dispose methods", AudioQueueStatus.InvalidOfflineMode => "Offline mode is either required or not required for the operation", AudioQueueStatus.GeneralParamError => "Error in user parameter list", _ => $"Error code: {audioQueueStatus.ToString()}", }; } internal AudioQueueException(AudioQueueStatus k) : base(Lookup((int)k)) { ErrorCode = k; } internal AudioQueueException(int k) : base(Lookup(k)) { ErrorCode = (AudioQueueStatus)k; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueHardwareCodecPolicy.cs ================================================ namespace AudioToolbox; public enum AudioQueueHardwareCodecPolicy { Default, UseSoftwareOnly, UseHardwareOnly, PreferSoftware, PreferHardware } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueInputCallback.cs ================================================ using System; namespace AudioToolbox; internal unsafe delegate void AudioQueueInputCallback(IntPtr userData, IntPtr AQ, IntPtr audioQueueBuffer, AudioTimeStamp* startTime, int descriptors, IntPtr AudioStreamPacketDescription_inPacketDesc); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueLevelMeterState.cs ================================================ namespace AudioToolbox; public struct AudioQueueLevelMeterState { public float AveragePower; public float PeakPower; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueOutputCallback.cs ================================================ using System; namespace AudioToolbox; internal delegate void AudioQueueOutputCallback(IntPtr userData, IntPtr AQ, IntPtr audioQueueBuffer); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueParameter.cs ================================================ namespace AudioToolbox; public enum AudioQueueParameter : uint { Volume = 1u, VolumeRampTime = 4u, Pan = 13u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueParameterEvent.cs ================================================ using System.Runtime.InteropServices; using Foundation; namespace AudioToolbox; [StructLayout(LayoutKind.Explicit)] public struct AudioQueueParameterEvent { [FieldOffset(0)] [Advice("Use Parameter")] public uint ID; [FieldOffset(0)] public AudioQueueParameter Parameter; [FieldOffset(4)] public float Value; public AudioQueueParameterEvent(AudioQueueParameter parameter, float value) { ID = (uint)parameter; Parameter = parameter; Value = value; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProcessingTap.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public class AudioQueueProcessingTap : IDisposable { internal static readonly AudioQueueProcessingTapCallbackShared CreateTapCallback = TapCallback; private AudioQueueProcessingTapDelegate callback; private readonly GCHandle gc_handle; internal GCHandle Handle => gc_handle; internal IntPtr TapHandle { get; set; } public uint MaxFrames { get; internal set; } public AudioStreamBasicDescription ProcessingFormat { get; internal set; } internal AudioQueueProcessingTap(AudioQueueProcessingTapDelegate callback) { this.callback = callback; gc_handle = GCHandle.Alloc(this); } ~AudioQueueProcessingTap() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (disposing) { callback = null; } if (gc_handle.IsAllocated) { gc_handle.Free(); AudioQueueProcessingTapDispose(TapHandle); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueProcessingTapDispose(IntPtr inAQTap); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] [Obsolete] private static extern AudioQueueStatus AudioQueueProcessingTapGetSourceAudio(IntPtr inAQTap, uint inNumberFrames, ref AudioTimeStamp ioTimeStamp, out AudioQueueProcessingTapFlags outFlags, out uint outNumberFrames, AudioBufferList ioData); [Obsolete("Use overload with AudioBuffers")] public AudioQueueStatus GetSourceAudio(uint numberOfFrames, ref AudioTimeStamp timeStamp, out AudioQueueProcessingTapFlags flags, out uint parentNumberOfFrames, AudioBufferList data) { if (data == null) { throw new ArgumentNullException("data"); } return AudioQueueProcessingTapGetSourceAudio(TapHandle, numberOfFrames, ref timeStamp, out flags, out parentNumberOfFrames, data); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueProcessingTapGetSourceAudio(IntPtr inAQTap, uint inNumberFrames, ref AudioTimeStamp ioTimeStamp, out AudioQueueProcessingTapFlags outFlags, out uint outNumberFrames, IntPtr ioData); public AudioQueueStatus GetSourceAudio(uint numberOfFrames, ref AudioTimeStamp timeStamp, out AudioQueueProcessingTapFlags flags, out uint parentNumberOfFrames, AudioBuffers data) { if (data == null) { throw new ArgumentNullException("data"); } return AudioQueueProcessingTapGetSourceAudio(TapHandle, numberOfFrames, ref timeStamp, out flags, out parentNumberOfFrames, (IntPtr)data); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueProcessingTapGetQueueTime(IntPtr inAQTap, out double outQueueSampleTime, out uint outQueueFrameCount); public AudioQueueStatus GetQueueTime(out double sampleTime, out uint frameCount) { return AudioQueueProcessingTapGetQueueTime(TapHandle, out sampleTime, out frameCount); } [MonoPInvokeCallback(typeof(AudioQueueProcessingTapCallbackShared))] private static void TapCallback(IntPtr clientData, IntPtr tap, uint numberFrames, ref AudioTimeStamp timeStamp, ref AudioQueueProcessingTapFlags flags, out uint outNumberFrames, IntPtr data) { AudioQueueProcessingTap audioQueueProcessingTap = (AudioQueueProcessingTap)GCHandle.FromIntPtr(clientData).Target; outNumberFrames = audioQueueProcessingTap.callback(audioQueueProcessingTap, numberFrames, ref timeStamp, ref flags, new AudioBuffers(data)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProcessingTapCallback.cs ================================================ using System; namespace AudioToolbox; [Obsolete("Use AudioQueueProcessingTapDelegate")] public delegate uint AudioQueueProcessingTapCallback(AudioQueueProcessingTap audioQueueTap, uint numberOfFrames, ref AudioTimeStamp timeStamp, ref AudioQueueProcessingTapFlags flags, AudioBufferList data); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProcessingTapCallbackShared.cs ================================================ using System; namespace AudioToolbox; internal delegate void AudioQueueProcessingTapCallbackShared(IntPtr clientData, IntPtr tap, uint numberOfFrames, ref AudioTimeStamp timeStamp, ref AudioQueueProcessingTapFlags flags, out uint outNumberFrames, IntPtr data); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProcessingTapDelegate.cs ================================================ namespace AudioToolbox; public delegate uint AudioQueueProcessingTapDelegate(AudioQueueProcessingTap audioQueueTap, uint numberOfFrames, ref AudioTimeStamp timeStamp, ref AudioQueueProcessingTapFlags flags, AudioBuffers data); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProcessingTapFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] public enum AudioQueueProcessingTapFlags : uint { PreEffects = 1u, PostEffects = 2u, Siphon = 4u, StartOfStream = 0x100u, EndOfStream = 0x200u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueProperty.cs ================================================ namespace AudioToolbox; public enum AudioQueueProperty : uint { IsRunning = 1634824814u, DeviceSampleRate = 1634825074u, DeviceNumberChannels = 1634821219u, CurrentDevice = 1634820964u, MagicCookie = 1634823523u, MaximumOutputPacketSize = 2020569203u, StreamDescription = 1634821748u, ChannelLayout = 1634820972u, EnableLevelMetering = 1634823525u, CurrentLevelMeter = 1634823542u, CurrentLevelMeterDB = 1634823524u, DecodeBufferSizeFrames = 1684234854u, ConverterError = 1902343781u, EnableTimePitch = 1633645680u, TimePitchAlgorithm = 1635020897u, TimePitchBypass = 1635020898u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueuePropertyListener.cs ================================================ using System; namespace AudioToolbox; internal delegate void AudioQueuePropertyListener(IntPtr userData, IntPtr AQ, AudioQueueProperty id); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueStatus.cs ================================================ namespace AudioToolbox; public enum AudioQueueStatus { Ok = 0, InvalidBuffer = -66687, BufferEmpty = -66686, DisposalPending = -66685, InvalidProperty = -66684, InvalidPropertySize = -66683, InvalidParameter = -66682, CannotStart = -66681, InvalidDevice = -66680, BufferInQueue = -66679, InvalidRunState = -66678, InvalidQueueType = -66677, Permissions = -66676, InvalidPropertyValue = -66675, PrimeTimedOut = -66674, CodecNotFound = -66673, InvalidCodecAccess = -66672, QueueInvalidated = -66671, TooManyTaps = -66670, InvalidTapContext = -66669, RecordUnderrun = -66668, InvalidTapType = -66667, EnqueueDuringReset = -66632, InvalidOfflineMode = -66626, QueueStopped = 1937010544, DataFormatError = 1718449215, UnsupportedProperty = 1886547824, GeneralParamError = -50 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioQueueTimeline.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public class AudioQueueTimeline : IDisposable { protected internal IntPtr timelineHandle; protected internal IntPtr queueHandle; internal AudioQueueTimeline(IntPtr queueHandle, IntPtr timelineHandle) { this.queueHandle = queueHandle; this.timelineHandle = timelineHandle; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueDisposeTimeline(IntPtr AQ, IntPtr timeline); public void Dispose() { Dispose(disposing: true); } public virtual void Dispose(bool disposing) { if (timelineHandle != IntPtr.Zero) { AudioQueueDisposeTimeline(queueHandle, timelineHandle); timelineHandle = IntPtr.Zero; } } ~AudioQueueTimeline() { Dispose(disposing: false); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioServices.cs ================================================ using System.Runtime.InteropServices; namespace AudioToolbox; internal static class AudioServices { [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioServicesError AudioServicesGetProperty(AudioServicesPropertyKey propertyId, uint specifierSize, ref uint specifier, out uint propertyDataSize, out uint propertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] public static extern AudioServicesError AudioServicesSetProperty(AudioServicesPropertyKey propertyId, uint specifierSize, ref uint specifier, uint propertyDataSize, ref uint propertyData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioServicesError.cs ================================================ namespace AudioToolbox; public enum AudioServicesError { None = 0, UnsupportedProperty = 1886681407, BadPropertySize = 561211770, BadSpecifierSizeError = 561213539, SystemSoundUnspecifiedError = -1500, SystemSoundClientTimedOutError = -1501 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioServicesPropertyKey.cs ================================================ namespace AudioToolbox; internal enum AudioServicesPropertyKey : uint { IsUISound = 1769174377u, CompletePlaybackIfAppDies = 1768318057u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSession.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AudioToolbox; public static class AudioSession { private delegate void InterruptionListener(IntPtr userData, uint state); private delegate void _PropertyListener(IntPtr userData, AudioSessionProperty prop, int size, IntPtr data); public delegate void PropertyListener(AudioSessionProperty prop, int size, IntPtr data); private static bool initialized; internal static NSString AudioRouteKey_Type; internal static NSString AudioRouteKey_Inputs; internal static NSString AudioRouteKey_Outputs; private static NSString InputRoute_LineIn; private static NSString InputRoute_BuiltInMic; private static NSString InputRoute_HeadsetMic; private static NSString InputRoute_BluetoothHFP; private static NSString InputRoute_USBAudio; private static NSString OutputRoute_LineOut; private static NSString OutputRoute_Headphones; private static NSString OutputRoute_BluetoothHFP; private static NSString OutputRoute_BluetoothA2DP; private static NSString OutputRoute_BuiltInReceiver; private static NSString OutputRoute_BuiltInSpeaker; private static NSString OutputRoute_USBAudio; private static NSString OutputRoute_HDMI; private static NSString OutputRoute_AirPlay; private static NSString InputSourceKey_ID; private static NSString InputSourceKey_Description; private static NSString OutputDestinationKey_ID; private static NSString OutputDestinationKey_Description; private static Dictionary> listeners; private static Dictionary strongListenerHash; public static double PreferredHardwareSampleRate { get { return GetDouble(AudioSessionProperty.PreferredHardwareSampleRate); } set { SetDouble(AudioSessionProperty.PreferredHardwareSampleRate, value); } } public static float PreferredHardwareIOBufferDuration { get { return GetFloat(AudioSessionProperty.PreferredHardwareIOBufferDuration); } set { SetFloat(AudioSessionProperty.PreferredHardwareIOBufferDuration, value); } } public static AudioSessionCategory Category { get { return (AudioSessionCategory)GetInt(AudioSessionProperty.AudioCategory); } set { SetInt(AudioSessionProperty.AudioCategory, (int)value); } } [Since(4, 0)] public static AudioSessionInterruptionType InterruptionType => (AudioSessionInterruptionType)GetInt(AudioSessionProperty.InterruptionType); [Obsolete("Deprecated in iOS 5.0. Use InputRoute or OutputRoute instead")] public static string AudioRoute => CFString.FetchString(GetIntPtr(AudioSessionProperty.AudioRoute)); [Since(5, 0)] public static AccessoryInfo[] InputSources => ExtractAccessoryInfo(GetIntPtr(AudioSessionProperty.InputSources), InputSourceKey_ID, InputSourceKey_Description); [Since(5, 0)] public static AccessoryInfo[] OutputDestinations => ExtractAccessoryInfo(GetIntPtr(AudioSessionProperty.OutputDestinations), OutputDestinationKey_ID, OutputDestinationKey_Description); [Since(5, 0)] public static AudioSessionInputRouteKind InputRoute => GetInputRoute((NSArray)AudioRouteDescription[AudioRouteKey_Inputs]); [Since(5, 0)] public static AudioSessionOutputRouteKind[] OutputRoutes => GetOutputRoutes((NSArray)AudioRouteDescription[AudioRouteKey_Outputs]); private static NSDictionary AudioRouteDescription { get { NSDictionary nSDictionary = new NSDictionary(GetIntPtr(AudioSessionProperty.AudioRouteDescription)); nSDictionary.Release(); return nSDictionary; } } public static double CurrentHardwareSampleRate => GetDouble(AudioSessionProperty.CurrentHardwareSampleRate); public static int CurrentHardwareInputNumberChannels => GetInt(AudioSessionProperty.CurrentHardwareInputNumberChannels); public static int CurrentHardwareOutputNumberChannels => GetInt(AudioSessionProperty.CurrentHardwareOutputNumberChannels); public static float CurrentHardwareOutputVolume => GetFloat(AudioSessionProperty.CurrentHardwareOutputVolume); public static float CurrentHardwareInputLatency => GetFloat(AudioSessionProperty.CurrentHardwareInputLatency); public static float CurrentHardwareOutputLatency => GetFloat(AudioSessionProperty.CurrentHardwareOutputLatency); public static float CurrentHardwareIOBufferDuration => GetFloat(AudioSessionProperty.CurrentHardwareIOBufferDuration); public static bool OtherAudioIsPlaying => GetInt(AudioSessionProperty.OtherAudioIsPlaying) != 0; public static AudioSessionRoutingOverride RoutingOverride { set { SetInt(AudioSessionProperty.OverrideAudioRoute, (int)value); } } public static bool AudioInputAvailable => GetInt(AudioSessionProperty.AudioInputAvailable) != 0; public static bool AudioShouldDuck { get { return GetInt(AudioSessionProperty.OtherMixableAudioShouldDuck) != 0; } set { SetInt(AudioSessionProperty.OtherMixableAudioShouldDuck, value ? 1 : 0); } } public static bool OverrideCategoryMixWithOthers { get { return GetInt(AudioSessionProperty.OverrideCategoryMixWithOthers) != 0; } set { SetInt(AudioSessionProperty.OverrideCategoryMixWithOthers, value ? 1 : 0); } } public static bool OverrideCategoryDefaultToSpeaker { get { return GetInt(AudioSessionProperty.OverrideCategoryDefaultToSpeaker) != 0; } set { SetInt(AudioSessionProperty.OverrideCategoryDefaultToSpeaker, value ? 1 : 0); } } public static bool OverrideCategoryEnableBluetoothInput { get { return GetInt(AudioSessionProperty.OverrideCategoryEnableBluetoothInput) != 0; } set { SetInt(AudioSessionProperty.OverrideCategoryEnableBluetoothInput, value ? 1 : 0); } } [Since(5, 0)] public static AudioSessionMode Mode { get { return (AudioSessionMode)GetInt(AudioSessionProperty.Mode); } set { SetInt(AudioSessionProperty.Mode, (int)value); } } [Since(5, 0)] public static bool InputGainAvailable => GetInt(AudioSessionProperty.InputGainAvailable) != 0; [Since(5, 0)] public static float InputGainScalar { get { return GetFloat(AudioSessionProperty.InputGainScalar); } set { SetFloat(AudioSessionProperty.InputGainScalar, value); } } public static event EventHandler Interrupted; public static event EventHandler Resumed; public static event EventHandler AudioRouteChanged { add { AddListenerEvent(AudioSessionProperty.AudioRouteChange, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(null, new AudioSessionRouteChangeEventArgs(data)); }); } remove { RemoveListenerEvent(AudioSessionProperty.AudioRouteChange, value); } } public static event Action CurrentHardwareOutputVolumeChanged { add { AddListenerEvent(AudioSessionProperty.CurrentHardwareOutputVolume, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value((long)data); }); } remove { RemoveListenerEvent(AudioSessionProperty.CurrentHardwareOutputVolume, value); } } public static event Action AudioInputBecameAvailable { add { AddListenerEvent(AudioSessionProperty.AudioInputAvailable, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(data != IntPtr.Zero); }); } remove { RemoveListenerEvent(AudioSessionProperty.AudioInputAvailable, value); } } public static event Action ServerDied { add { AddListenerEvent(AudioSessionProperty.ServerDied, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(data != IntPtr.Zero); }); } remove { RemoveListenerEvent(AudioSessionProperty.ServerDied, value); } } [Since(5, 0)] public static event Action InputGainBecameAvailable { add { AddListenerEvent(AudioSessionProperty.InputGainAvailable, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(data != IntPtr.Zero); }); } remove { RemoveListenerEvent(AudioSessionProperty.InputGainAvailable, value); } } [Since(5, 0)] public static event Action InputGainScalarChanged { add { AddListenerEvent(AudioSessionProperty.InputGainScalar, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value((long)data); }); } remove { RemoveListenerEvent(AudioSessionProperty.InputGainScalar, value); } } [Since(5, 0)] public static event Action InputSourcesChanged { add { AddListenerEvent(AudioSessionProperty.InputSources, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(ExtractAccessoryInfo(data, InputSourceKey_ID, InputSourceKey_Description)); }); } remove { RemoveListenerEvent(AudioSessionProperty.InputSources, value); } } [Since(5, 0)] public static event Action OutputDestinationsChanged { add { AddListenerEvent(AudioSessionProperty.OutputDestinations, value, delegate(AudioSessionProperty prop, int size, IntPtr data) { value(ExtractAccessoryInfo(data, OutputDestinationKey_ID, OutputDestinationKey_Description)); }); } remove { RemoveListenerEvent(AudioSessionProperty.OutputDestinations, value); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionInitialize(IntPtr cfRunLoop, IntPtr cfstr_runMode, InterruptionListener listener, IntPtr userData); public static void Initialize() { Initialize(null, null); } public static void Initialize(CFRunLoop runLoop, string runMode) { CFString cFString = ((runMode == null) ? null : new CFString(runMode)); int num = AudioSessionInitialize((runLoop == null) ? IntPtr.Zero : runLoop.Handle, cFString?.Handle ?? IntPtr.Zero, Interruption, IntPtr.Zero); if (num != 0 && num != 1768843636) { throw new AudioSessionException(num); } if (!initialized) { IntPtr handle = Dlfcn.dlopen("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", 0); AudioRouteKey_Inputs = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_AudioRouteKey_Inputs")); AudioRouteKey_Outputs = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_AudioRouteKey_Outputs")); AudioRouteKey_Type = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_AudioRouteKey_Type")); InputRoute_LineIn = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionInputRoute_LineIn")); InputRoute_BuiltInMic = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionInputRoute_BuiltInMic")); InputRoute_HeadsetMic = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionInputRoute_HeadsetMic")); InputRoute_BluetoothHFP = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionInputRoute_BluetoothHFP")); InputRoute_USBAudio = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionInputRoute_USBAudio")); OutputRoute_LineOut = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_LineOut")); OutputRoute_Headphones = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_Headphones")); OutputRoute_BluetoothHFP = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_BluetoothHFP")); OutputRoute_BluetoothA2DP = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_BluetoothA2DP")); OutputRoute_BuiltInReceiver = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_BuiltInReceiver")); OutputRoute_BuiltInSpeaker = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_BuiltInSpeaker")); OutputRoute_USBAudio = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_USBAudio")); OutputRoute_HDMI = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_HDMI")); OutputRoute_AirPlay = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSessionOutputRoute_AirPlay")); InputSourceKey_ID = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_InputSourceKey_ID")); InputSourceKey_Description = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_InputSourceKey_Description")); OutputDestinationKey_ID = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_OutputDestinationKey_ID")); OutputDestinationKey_Description = new NSString(Dlfcn.GetIntPtr(handle, "kAudioSession_OutputDestinationKey_Description")); Dlfcn.dlclose(handle); initialized = true; } } [MonoPInvokeCallback(typeof(InterruptionListener))] private static void Interruption(IntPtr userData, uint state) { ((state == 1) ? AudioSession.Interrupted : AudioSession.Resumed)?.Invoke(null, EventArgs.Empty); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionSetActive(int active); public static void SetActive(bool active) { int num = AudioSessionSetActive(active ? 1 : 0); if (num != 0) { throw new AudioSessionException(num); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioSessionErrors AudioSessionSetActive(int active, AudioSessionActiveFlags inFlags); [Since(4, 0)] public static AudioSessionErrors SetActive(bool active, AudioSessionActiveFlags flags) { return AudioSessionSetActive(active ? 1 : 0, flags); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionGetProperty(AudioSessionProperty id, ref int size, IntPtr data); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionSetProperty(AudioSessionProperty id, int size, IntPtr data); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionGetPropertySize(AudioSessionProperty id, out int size); private unsafe static double GetDouble(AudioSessionProperty property) { double result = 0.0; int size = 8; int num = AudioSessionGetProperty(property, ref size, (IntPtr)(&result)); if (num != 0) { throw new AudioSessionException(num); } return result; } private unsafe static float GetFloat(AudioSessionProperty property) { float result = 0f; int size = 4; int num = AudioSessionGetProperty(property, ref size, (IntPtr)(&result)); if (num != 0) { throw new AudioSessionException(num); } return result; } private unsafe static int GetInt(AudioSessionProperty property) { int result = 0; int size = 4; int num = AudioSessionGetProperty(property, ref size, (IntPtr)(&result)); if (num != 0) { throw new AudioSessionException(num); } return result; } private unsafe static IntPtr GetIntPtr(AudioSessionProperty property) { int size = IntPtr.Size; IntPtr result = default(IntPtr); int num = AudioSessionGetProperty(property, ref size, (IntPtr)(&result)); if (num != 0) { throw new AudioSessionException(num); } return result; } private unsafe static void SetDouble(AudioSessionProperty property, double val) { int num = AudioSessionSetProperty(property, 8, (IntPtr)(&val)); if (num != 0) { throw new AudioSessionException(num); } } private unsafe static void SetInt(AudioSessionProperty property, int val) { int num = AudioSessionSetProperty(property, 4, (IntPtr)(&val)); if (num != 0) { throw new AudioSessionException(num); } } private unsafe static void SetFloat(AudioSessionProperty property, float val) { int num = AudioSessionSetProperty(property, 4, (IntPtr)(&val)); if (num != 0) { throw new AudioSessionException(num); } } private static AccessoryInfo[] ExtractAccessoryInfo(IntPtr ptr, NSString id, NSString description) { using CFArray cFArray = new CFArray(ptr); AccessoryInfo[] array = new AccessoryInfo[cFArray.Count]; for (int i = 0; i < array.Length; i++) { IntPtr value = cFArray.GetValue(i); NSNumber nSNumber = new NSNumber(CFDictionary.GetValue(value, id.Handle)); string description2 = CFString.FetchString(CFDictionary.GetValue(value, description.Handle)); array[i] = new AccessoryInfo((int)nSNumber, description2); id.Dispose(); } return array; } internal static AudioSessionInputRouteKind GetInputRoute(NSArray arr) { if (arr == null || arr.Count == 0L) { return AudioSessionInputRouteKind.None; } NSDictionary nSDictionary = new NSDictionary(arr.ValueAt(0uL)); if (nSDictionary == null || nSDictionary.Count == 0L) { return AudioSessionInputRouteKind.None; } NSString nSString = (NSString)nSDictionary[AudioRouteKey_Type]; if (nSString == null) { return AudioSessionInputRouteKind.None; } if (nSString == InputRoute_LineIn) { return AudioSessionInputRouteKind.LineIn; } if (nSString == InputRoute_BuiltInMic) { return AudioSessionInputRouteKind.BuiltInMic; } if (nSString == InputRoute_HeadsetMic) { return AudioSessionInputRouteKind.HeadsetMic; } if (nSString == InputRoute_BluetoothHFP) { return AudioSessionInputRouteKind.BluetoothHFP; } if (nSString == InputRoute_USBAudio) { return AudioSessionInputRouteKind.USBAudio; } return (AudioSessionInputRouteKind)(int)nSString.Handle; } internal static AudioSessionOutputRouteKind[] GetOutputRoutes(NSArray arr) { if (arr == null || arr.Count == 0L) { return null; } AudioSessionOutputRouteKind[] array = new AudioSessionOutputRouteKind[arr.Count]; for (uint num = 0u; num < arr.Count; num++) { NSDictionary nSDictionary = new NSDictionary(arr.ValueAt(num)); array[num] = AudioSessionOutputRouteKind.None; if (nSDictionary == null || nSDictionary.Count == 0L) { continue; } NSString nSString = (NSString)nSDictionary[AudioRouteKey_Type]; if (!(nSString == null)) { if (nSString == OutputRoute_LineOut) { array[num] = AudioSessionOutputRouteKind.LineOut; } else if (nSString == OutputRoute_Headphones) { array[num] = AudioSessionOutputRouteKind.Headphones; } else if (nSString == OutputRoute_BluetoothHFP) { array[num] = AudioSessionOutputRouteKind.BluetoothHFP; } else if (nSString == OutputRoute_BluetoothA2DP) { array[num] = AudioSessionOutputRouteKind.BluetoothA2DP; } else if (nSString == OutputRoute_BuiltInReceiver) { array[num] = AudioSessionOutputRouteKind.BuiltInReceiver; } else if (nSString == OutputRoute_BuiltInSpeaker) { array[num] = AudioSessionOutputRouteKind.BuiltInSpeaker; } else if (nSString == OutputRoute_USBAudio) { array[num] = AudioSessionOutputRouteKind.USBAudio; } else if (nSString == OutputRoute_HDMI) { array[num] = AudioSessionOutputRouteKind.HDMI; } else if (nSString == OutputRoute_AirPlay) { array[num] = AudioSessionOutputRouteKind.AirPlay; } else { array[num] = (AudioSessionOutputRouteKind)(int)nSString.Handle; } } } return array; } [MonoPInvokeCallback(typeof(_PropertyListener))] private static void Listener(IntPtr userData, AudioSessionProperty prop, int size, IntPtr data) { if (!listeners.TryGetValue(prop, out var value)) { return; } foreach (PropertyListener item in value) { item(prop, size, data); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioSessionErrors AudioSessionAddPropertyListener(AudioSessionProperty id, _PropertyListener inProc, IntPtr userData); public static AudioSessionErrors AddListener(AudioSessionProperty property, PropertyListener listener) { if (listener == null) { throw new ArgumentNullException("listener"); } if (listeners == null) { listeners = new Dictionary>(); } listeners.TryGetValue(property, out var value); value = (listeners[property] = new List()); value.Add(listener); if (value.Count == 1) { return AudioSessionAddPropertyListener(property, Listener, IntPtr.Zero); } return AudioSessionErrors.None; } public static void RemoveListener(AudioSessionProperty property, PropertyListener listener) { if (listener == null) { throw new ArgumentNullException("listener"); } listeners.TryGetValue(property, out var _); } private static void AddListenerEvent(AudioSessionProperty property, object handler, PropertyListener listener) { if (strongListenerHash == null) { Interlocked.CompareExchange(ref strongListenerHash, new Dictionary(), null); } lock (strongListenerHash) { strongListenerHash[handler] = listener; } AddListener(property, listener); } private static void RemoveListenerEvent(AudioSessionProperty property, object handler) { if (strongListenerHash == null) { return; } PropertyListener value; lock (strongListenerHash) { if (!strongListenerHash.TryGetValue(handler, out value)) { return; } strongListenerHash.Remove(handler); } RemoveListener(AudioSessionProperty.CurrentHardwareOutputVolume, value); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionActiveFlags.cs ================================================ namespace AudioToolbox; public enum AudioSessionActiveFlags : uint { NotifyOthersOnDeactivation = 1u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionCategory.cs ================================================ namespace AudioToolbox; public enum AudioSessionCategory { AmbientSound = 1634558569, SoloAmbientSound = 1936682095, MediaPlayback = 1835361385, RecordAudio = 1919247201, PlayAndRecord = 1886151026, AudioProcessing = 1886547811 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionErrors.cs ================================================ namespace AudioToolbox; public enum AudioSessionErrors { None = 0, NotInitialized = 560557673, AlreadyInitialized = 1768843636, InitializationError = 1768843583, UnsupportedPropertyError = 1886681407, BadPropertySizeError = 561211770, NotActiveError = 560030580, NoHardwareError = 1852794999, IncompatibleCategory = 560161140, NoCategorySet = 1063477620, UnspecifiedError = 2003329905 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionException.cs ================================================ using System; namespace AudioToolbox; public class AudioSessionException : Exception { public AudioSessionErrors ErrorCode { get; private set; } private static string Lookup(int k) { return (AudioSessionErrors)k switch { AudioSessionErrors.NotInitialized => "AudioSession.Initialize has not been called", AudioSessionErrors.AlreadyInitialized => "You called AudioSession.Initialize more than once", AudioSessionErrors.InitializationError => "There was an error during the AudioSession.initialization", AudioSessionErrors.UnsupportedPropertyError => "The audio session property is not supported", AudioSessionErrors.BadPropertySizeError => "The size of the audio property was not correct", AudioSessionErrors.NotActiveError => "Application Audio Session is not active", AudioSessionErrors.NoHardwareError => "The device has no Audio Input capability", AudioSessionErrors.IncompatibleCategory => "The specified AudioSession.Category can not be used with this audio operation", AudioSessionErrors.NoCategorySet => "This operation requries AudioSession.Category to be explicitly set", _ => $"Unknown error code: {k}", }; } internal AudioSessionException(int k) : base(Lookup(k)) { ErrorCode = (AudioSessionErrors)k; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionInputRouteKind.cs ================================================ namespace AudioToolbox; public enum AudioSessionInputRouteKind { None, LineIn, BuiltInMic, HeadsetMic, BluetoothHFP, USBAudio } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionInterruptionState.cs ================================================ namespace AudioToolbox; public enum AudioSessionInterruptionState { End, Begin } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionInterruptionType.cs ================================================ namespace AudioToolbox; public enum AudioSessionInterruptionType { ShouldResume = 1769108333, ShouldNotResume = 561148781 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionMode.cs ================================================ namespace AudioToolbox; public enum AudioSessionMode { Default = 1684434036, VoiceChat = 1986225012, VideoRecording = 1987208036, Measurement = 1836281204, GameChat = 1735222132 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionOutputRouteKind.cs ================================================ namespace AudioToolbox; public enum AudioSessionOutputRouteKind { None, LineOut, Headphones, BluetoothHFP, BluetoothA2DP, BuiltInReceiver, BuiltInSpeaker, USBAudio, HDMI, AirPlay } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionProperty.cs ================================================ using System; namespace AudioToolbox; public enum AudioSessionProperty { PreferredHardwareSampleRate = 1752658802, PreferredHardwareIOBufferDuration = 1768907364, AudioCategory = 1633902964, [Obsolete("Deprecated in iOS 5.0")] AudioRoute = 1919907188, AudioRouteChange = 1919902568, CurrentHardwareSampleRate = 1667789682, CurrentHardwareInputNumberChannels = 1667787107, CurrentHardwareOutputNumberChannels = 1667788643, CurrentHardwareOutputVolume = 1667788662, CurrentHardwareInputLatency = 1667853428, CurrentHardwareOutputLatency = 1668246644, CurrentHardwareIOBufferDuration = 1667785316, OtherAudioIsPlaying = 1869899890, OverrideAudioRoute = 1870033508, AudioInputAvailable = 1634296182, ServerDied = 1684628836, OtherMixableAudioShouldDuck = 1685414763, OverrideCategoryMixWithOthers = 1668114808, OverrideCategoryDefaultToSpeaker = 1668509803, OverrideCategoryEnableBluetoothInput = 1667394677, InterruptionType = 1954115685, Mode = 1836016741, InputSources = 1936876403, OutputDestinations = 1685288051, InputSource = 1769173603, OutputDestination = 1868854132, InputGainAvailable = 1768382838, InputGainScalar = 1768387427, AudioRouteDescription = 1668440434 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionPropertyEventArgs.cs ================================================ using System; namespace AudioToolbox; public class AudioSessionPropertyEventArgs : EventArgs { public AudioSessionProperty Property { get; set; } public int Size { get; set; } public IntPtr Data { get; set; } public AudioSessionPropertyEventArgs(AudioSessionProperty prop, int size, IntPtr data) { Property = prop; Size = size; Data = data; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionRouteChangeEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace AudioToolbox; public class AudioSessionRouteChangeEventArgs : EventArgs { private static IntPtr route_change_key; private static IntPtr previous_route_key; private static IntPtr current_route_key; public NSDictionary Dictionary { get; private set; } public AudioSessionRouteChangeReason Reason { get { using NSNumber nSNumber = new NSNumber(Dictionary.LowlevelObjectForKey(route_change_key)); return (AudioSessionRouteChangeReason)nSNumber.Int32Value; } } public AudioSessionInputRouteKind PreviousInputRoute { get { using NSArray arr = Extract(previous_route_key, AudioSession.AudioRouteKey_Inputs); return AudioSession.GetInputRoute(arr); } } public AudioSessionOutputRouteKind[] PreviousOutputRoutes { get { using NSArray arr = Extract(previous_route_key, AudioSession.AudioRouteKey_Outputs); return AudioSession.GetOutputRoutes(arr); } } public AudioSessionInputRouteKind CurrentInputRoute { get { using NSArray arr = Extract(current_route_key, AudioSession.AudioRouteKey_Inputs); return AudioSession.GetInputRoute(arr); } } public AudioSessionOutputRouteKind[] CurrentOutputRoutes { get { using NSArray arr = Extract(current_route_key, AudioSession.AudioRouteKey_Outputs); return AudioSession.GetOutputRoutes(arr); } } static AudioSessionRouteChangeEventArgs() { IntPtr handle = Dlfcn.dlopen("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", 0); route_change_key = Dlfcn.GetIntPtr(handle, "kAudioSession_RouteChangeKey_Reason"); previous_route_key = Dlfcn.GetIntPtr(handle, "kAudioSession_AudioRouteChangeKey_PreviousRouteDescription"); current_route_key = Dlfcn.GetIntPtr(handle, "kAudioSession_AudioRouteChangeKey_CurrentRouteDescription"); Dlfcn.dlclose(handle); } public AudioSessionRouteChangeEventArgs(IntPtr dictHandle) { Dictionary = new NSDictionary(dictHandle); } private NSArray Extract(IntPtr key, NSString secondKey) { IntPtr intPtr = Dictionary.LowlevelObjectForKey(key); if (intPtr == IntPtr.Zero) { return null; } using NSDictionary nSDictionary = new NSDictionary(intPtr); IntPtr intPtr2 = nSDictionary.LowlevelObjectForKey(secondKey.Handle); if (intPtr2 == IntPtr.Zero) { return null; } return new NSArray(intPtr2); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionRouteChangeReason.cs ================================================ namespace AudioToolbox; public enum AudioSessionRouteChangeReason { Unknown = 0, NewDeviceAvailable = 1, OldDeviceUnavailable = 2, CategoryChange = 3, Override = 4, WakeFromSleep = 6, NoSuitableRouteForCategory = 7 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSessionRoutingOverride.cs ================================================ namespace AudioToolbox; public enum AudioSessionRoutingOverride { None = 0, Speaker = 1936747378 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioSource.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; public abstract class AudioSource : AudioFile { private static ReadProc dRead; private static WriteProc dWrite; private static GetSizeProc dGetSize; private static SetSizeProc dSetSize; private GCHandle gch; public abstract long Size { get; set; } static AudioSource() { dRead = SourceRead; dWrite = SourceWrite; dGetSize = SourceGetSize; dSetSize = SourceSetSize; } [MonoPInvokeCallback(typeof(ReadProc))] private static int SourceRead(IntPtr clientData, long inPosition, int requestCount, IntPtr buffer, out int actualCount) { if (!(GCHandle.FromIntPtr(clientData).Target as AudioSource).Read(inPosition, requestCount, buffer, out actualCount)) { return 1; } return 0; } public abstract bool Read(long position, int requestCount, IntPtr buffer, out int actualCount); [MonoPInvokeCallback(typeof(WriteProc))] private static int SourceWrite(IntPtr clientData, long position, int requestCount, IntPtr buffer, out int actualCount) { if (!(GCHandle.FromIntPtr(clientData).Target as AudioSource).Write(position, requestCount, buffer, out actualCount)) { return 1; } return 0; } public abstract bool Write(long position, int requestCount, IntPtr buffer, out int actualCount); [MonoPInvokeCallback(typeof(GetSizeProc))] private static long SourceGetSize(IntPtr clientData) { return (GCHandle.FromIntPtr(clientData).Target as AudioSource).Size; } [MonoPInvokeCallback(typeof(SetSizeProc))] private static int SourceSetSize(IntPtr clientData, long size) { (GCHandle.FromIntPtr(clientData).Target as AudioSource).Size = size; return 0; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (gch.IsAllocated) { gch.Free(); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileInitializeWithCallbacks(IntPtr inClientData, ReadProc inReadFunc, WriteProc inWriteFunc, GetSizeProc inGetSizeFunc, SetSizeProc inSetSizeFunc, AudioFileType inFileType, ref AudioStreamBasicDescription format, uint flags, out IntPtr id); public AudioSource(AudioFileType inFileType, AudioStreamBasicDescription format) : base(x: true) { Initialize(inFileType, format); } public AudioSource() : base(x: true) { } protected void Initialize(AudioFileType inFileType, AudioStreamBasicDescription format) { gch = GCHandle.Alloc(this); IntPtr id; int num = AudioFileInitializeWithCallbacks(GCHandle.ToIntPtr(gch), dRead, dWrite, dGetSize, dSetSize, inFileType, ref format, 0u, out id); if (num == 0) { handle = id; return; } throw new Exception($"Unable to create AudioSource, code: 0x{num:x}"); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioFileOpenWithCallbacks(IntPtr inClientData, ReadProc inReadFunc, WriteProc inWriteFunc, GetSizeProc inGetSizeFunc, SetSizeProc inSetSizeFunc, AudioFileType inFileTypeHint, out IntPtr outAudioFile); public AudioSource(AudioFileType fileTypeHint) : base(x: true) { Open(fileTypeHint); } protected void Open(AudioFileType fileTypeHint) { gch = GCHandle.Alloc(this); IntPtr outAudioFile; int num = AudioFileOpenWithCallbacks(GCHandle.ToIntPtr(gch), dRead, dWrite, dGetSize, dSetSize, fileTypeHint, out outAudioFile); if (num == 0) { handle = outAudioFile; return; } throw new Exception($"Unable to create AudioSource, code: 0x{num:x}"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioStreamBasicDescription.cs ================================================ using System; using System.Diagnostics; using CoreFoundation; namespace AudioToolbox; [DebuggerDisplay("{FormatName}")] public struct AudioStreamBasicDescription { public double SampleRate; public AudioFormatType Format; public AudioFormatFlags FormatFlags; public int BytesPerPacket; public int FramesPerPacket; public int BytesPerFrame; public int ChannelsPerFrame; public int BitsPerChannel; public int Reserved; public const double AudioStreamAnyRate = 0.0; private const int AudioUnitSampleFractionBits = 24; private const AudioFormatFlags AudioFormatFlagIsBigEndian = (AudioFormatFlags)0u; public static readonly AudioFormatFlags AudioFormatFlagsAudioUnitCanonical = (AudioFormatFlags)3116u; public unsafe string FormatName { get { int ioPropertyDataSize = sizeof(IntPtr); if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatName, sizeof(AudioStreamBasicDescription), ref this, ref ioPropertyDataSize, out IntPtr outPropertyData) != 0) { return null; } return new CFString(outPropertyData, owns: true); } } public unsafe bool IsEncrypted { get { int ioPropertyDataSize = 4; if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatIsEncrypted, sizeof(AudioStreamBasicDescription), ref this, ref ioPropertyDataSize, out uint outPropertyData) != 0) { return false; } return outPropertyData != 0; } } public unsafe bool IsExternallyFramed { get { int ioPropertyDataSize = 4; if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatIsExternallyFramed, sizeof(AudioStreamBasicDescription), ref this, ref ioPropertyDataSize, out uint outPropertyData) != 0) { return false; } return outPropertyData != 0; } } public unsafe bool IsVariableBitrate { get { int ioPropertyDataSize = 4; if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatName, sizeof(AudioStreamBasicDescription), ref this, ref ioPropertyDataSize, out uint outPropertyData) != 0) { return false; } return outPropertyData != 0; } } public AudioStreamBasicDescription(AudioFormatType formatType) { this = default(AudioStreamBasicDescription); Format = formatType; } public static AudioStreamBasicDescription CreateLinearPCM(double sampleRate = 44100.0, uint channelsPerFrame = 2u, uint bitsPerChannel = 16u, bool bigEndian = false) { AudioStreamBasicDescription result = new AudioStreamBasicDescription(AudioFormatType.LinearPCM); result.SampleRate = sampleRate; result.ChannelsPerFrame = (int)channelsPerFrame; result.BitsPerChannel = (int)bitsPerChannel; result.BytesPerPacket = (result.BytesPerFrame = (int)(channelsPerFrame * 2)); result.FramesPerPacket = 1; result.FormatFlags = AudioFormatFlags.IsSignedInteger | AudioFormatFlags.IsPacked; if (bigEndian) { result.FormatFlags |= AudioFormatFlags.IsBigEndian; } return result; } public unsafe static AudioChannelLayoutTag[] GetAvailableEncodeChannelLayoutTags(AudioStreamBasicDescription format) { int inSpecifierSize = sizeof(AudioStreamBasicDescription); if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.AvailableEncodeChannelLayoutTags, inSpecifierSize, ref format, out var outPropertyDataSize) != 0) { return null; } AudioChannelLayoutTag[] array = new AudioChannelLayoutTag[outPropertyDataSize / 4u]; fixed (AudioChannelLayoutTag* outPropertyData = array) { if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.AvailableEncodeChannelLayoutTags, inSpecifierSize, ref format, ref outPropertyDataSize, (int*)outPropertyData) != 0) { return null; } return array; } } public unsafe static int[] GetAvailableEncodeNumberChannels(AudioStreamBasicDescription format) { if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.AvailableEncodeNumberChannels, sizeof(AudioStreamBasicDescription), ref format, out var outPropertyDataSize) != 0) { return null; } int[] array = new int[outPropertyDataSize / 4u]; fixed (int* outPropertyData = array) { if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.AvailableEncodeNumberChannels, sizeof(AudioStreamBasicDescription), ref format, ref outPropertyDataSize, outPropertyData) != 0) { return null; } return array; } } public unsafe AudioFormat[] GetOutputFormatList(byte[] magicCookie = null) { AudioFormatInfo inSpecifier = default(AudioFormatInfo); inSpecifier.AudioStreamBasicDescription = this; int num = sizeof(AudioFormat); if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.OutputFormatList, num, ref inSpecifier, out var outPropertyDataSize) != 0) { return null; } AudioFormat[] array = new AudioFormat[(long)outPropertyDataSize / (long)num]; fixed (AudioFormat* outPropertyData = &array[0]) { if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.OutputFormatList, num, ref inSpecifier, ref outPropertyDataSize, outPropertyData) != 0) { return null; } Array.Resize(ref array, (int)outPropertyDataSize / num); return array; } } public unsafe AudioFormat[] GetFormatList(byte[] magicCookie) { if (magicCookie == null) { throw new ArgumentNullException("magicCookie"); } AudioFormatInfo inSpecifier = default(AudioFormatInfo); inSpecifier.AudioStreamBasicDescription = this; fixed (byte* magicCookieWeak = magicCookie) { inSpecifier.MagicCookieWeak = magicCookieWeak; inSpecifier.MagicCookieSize = magicCookie.Length; int num = sizeof(AudioFormat); if (AudioFormatPropertyNative.AudioFormatGetPropertyInfo(AudioFormatProperty.FormatList, num, ref inSpecifier, out var outPropertyDataSize) != 0) { return null; } AudioFormat[] array = new AudioFormat[(long)outPropertyDataSize / (long)num]; fixed (AudioFormat* outPropertyData = &array[0]) { if (AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatList, num, ref inSpecifier, ref outPropertyDataSize, outPropertyData) != 0) { return null; } Array.Resize(ref array, (int)outPropertyDataSize / num); return array; } } } public unsafe static AudioFormatError GetFormatInfo(ref AudioStreamBasicDescription format) { int ioPropertyDataSize = sizeof(AudioStreamBasicDescription); return AudioFormatPropertyNative.AudioFormatGetProperty(AudioFormatProperty.FormatInfo, 0, IntPtr.Zero, ref ioPropertyDataSize, ref format); } public override string ToString() { return $"[SampleRate={SampleRate} FormatID={Format} FormatFlags={FormatFlags} BytesPerPacket={BytesPerPacket} FramesPerPacket={FramesPerPacket} BytesPerFrame={BytesPerFrame} ChannelsPerFrame={ChannelsPerFrame} BitsPerChannel={BitsPerChannel}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioStreamPacketDescription.cs ================================================ namespace AudioToolbox; public struct AudioStreamPacketDescription { public long StartOffset; public int VariableFramesInPacket; public int DataByteSize; public override string ToString() { return $"StartOffset={StartOffset} VariableFramesInPacket={VariableFramesInPacket} DataByteSize={DataByteSize}"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioTimeStamp.cs ================================================ using System; using System.Text; namespace AudioToolbox; public struct AudioTimeStamp { [Flags] public enum AtsFlags { SampleTimeValid = 1, HostTimeValid = 2, RateScalarValid = 4, WordClockTimeValid = 8, SmpteTimeValid = 0x10, SampleHostTimeValid = 3 } public double SampleTime; public ulong HostTime; public double RateScalar; public ulong WordClockTime; public SmpteTime SMPTETime; public AtsFlags Flags; public uint Reserved; public override string ToString() { StringBuilder stringBuilder = new StringBuilder("{"); if ((Flags & AtsFlags.SampleTimeValid) != 0) { stringBuilder.Append("SampleTime=" + SampleTime); } if ((Flags & AtsFlags.HostTimeValid) != 0) { if (stringBuilder.Length > 0) { stringBuilder.Append(','); } stringBuilder.Append("HostTime=" + HostTime); } if ((Flags & AtsFlags.RateScalarValid) != 0) { if (stringBuilder.Length > 0) { stringBuilder.Append(','); } stringBuilder.Append("RateScalar=" + RateScalar); } if ((Flags & AtsFlags.WordClockTimeValid) != 0) { if (stringBuilder.Length > 0) { stringBuilder.Append(','); } stringBuilder.Append("WordClock=" + HostTime + ","); } if ((Flags & AtsFlags.SmpteTimeValid) != 0) { if (stringBuilder.Length > 0) { stringBuilder.Append(','); } stringBuilder.Append("SmpteTime=" + SMPTETime.ToString()); } stringBuilder.Append("}"); return stringBuilder.ToString(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/AudioValueRange.cs ================================================ namespace AudioToolbox; public struct AudioValueRange { public double Minimum; public double Maximum; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/BytePacketTranslationFlags.cs ================================================ using System; namespace AudioToolbox; [Flags] internal enum BytePacketTranslationFlags : uint { IsEstimate = 1u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/GetSizeProc.cs ================================================ using System; namespace AudioToolbox; internal delegate long GetSizeProc(IntPtr clientData); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/InputAudioQueue.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public class InputAudioQueue : AudioQueue { private unsafe static readonly AudioQueueInputCallback dInputCallback = input_callback; public event EventHandler InputCompleted; [MonoPInvokeCallback(typeof(AudioQueueInputCallback))] private unsafe static void input_callback(IntPtr userData, IntPtr AQ, IntPtr audioQueueBuffer, AudioTimeStamp* startTime, int descriptors, IntPtr inPacketDesc) { (GCHandle.FromIntPtr(userData).Target as InputAudioQueue).OnInputCompleted(audioQueueBuffer, *startTime, AudioFile.PacketDescriptionFrom(descriptors, inPacketDesc)); } protected virtual void OnInputCompleted(IntPtr audioQueueBuffer, AudioTimeStamp timeStamp, AudioStreamPacketDescription[] packetDescriptions) { this.InputCompleted?.Invoke(this, new InputCompletedEventArgs(audioQueueBuffer, timeStamp, packetDescriptions)); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueNewInput(ref AudioStreamBasicDescription format, AudioQueueInputCallback callback, IntPtr inUserData, IntPtr cfrunLoop_inCallbackRunLoop, IntPtr cfstringref_inCallbackRunLoopMode, uint inFlags, out IntPtr audioQueue); public InputAudioQueue(AudioStreamBasicDescription desc) : this(desc, null, null) { } public InputAudioQueue(AudioStreamBasicDescription desc, CFRunLoop runLoop, string runMode) { GCHandle value = GCHandle.Alloc(this); CFString cFString = ((runMode == null) ? null : new CFString(runMode)); IntPtr audioQueue; int num = AudioQueueNewInput(ref desc, dInputCallback, GCHandle.ToIntPtr(value), (runLoop == null) ? IntPtr.Zero : runLoop.Handle, cFString?.Handle ?? IntPtr.Zero, 0u, out audioQueue); cFString?.Dispose(); if (num == 0) { handle = audioQueue; gch = value; return; } gch.Free(); throw new AudioQueueException(num); } public unsafe AudioQueueStatus EnqueueBuffer(AudioQueueBuffer* buffer) { return AudioQueue.AudioQueueEnqueueBuffer(handle, buffer, 0, null); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/InputCompletedEventArgs.cs ================================================ using System; namespace AudioToolbox; public class InputCompletedEventArgs : EventArgs { public IntPtr IntPtrBuffer { get; private set; } public unsafe AudioQueueBuffer* UnsafeBuffer { get { return (AudioQueueBuffer*)(void*)IntPtrBuffer; } set { IntPtrBuffer = (IntPtr)value; } } public AudioTimeStamp TimeStamp { get; private set; } public AudioStreamPacketDescription[] PacketDescriptions { get; private set; } public InputCompletedEventArgs(IntPtr audioQueueBuffer, AudioTimeStamp timeStamp, AudioStreamPacketDescription[] pdec) { IntPtrBuffer = audioQueueBuffer; TimeStamp = timeStamp; PacketDescriptions = pdec; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/InputSourceInfo.cs ================================================ namespace AudioToolbox; public class InputSourceInfo { public int ID { get; private set; } public string Description { get; private set; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/MutableAudioBufferList.cs ================================================ using System; using System.Runtime.InteropServices; namespace AudioToolbox; [Obsolete("Use AudioBuffers")] public class MutableAudioBufferList : AudioBufferList, IDisposable { public MutableAudioBufferList(int nubuffers, int bufferSize) : base(nubuffers) { for (int i = 0; i < bufferCount; i++) { buffers[i].NumberChannels = 1; buffers[i].DataByteSize = bufferSize; buffers[i].Data = Marshal.AllocHGlobal(bufferSize); } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (buffers != null) { AudioBuffer[] array = buffers; for (int i = 0; i < array.Length; i++) { Marshal.FreeHGlobal(array[i].Data); } buffers = null; } } ~MutableAudioBufferList() { Dispose(disposing: false); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/OutputAudioQueue.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace AudioToolbox; public class OutputAudioQueue : AudioQueue { private static readonly AudioQueueOutputCallback dOutputCallback = output_callback; public event EventHandler OutputCompleted; [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioQueueNewOutput(ref AudioStreamBasicDescription format, AudioQueueOutputCallback callback, IntPtr userData, IntPtr cfrunLoop_callbackRunloop, IntPtr cfstr_runMode, uint flags, out IntPtr audioQueue); [MonoPInvokeCallback(typeof(AudioQueueOutputCallback))] private static void output_callback(IntPtr userData, IntPtr AQ, IntPtr audioQueueBuffer) { (GCHandle.FromIntPtr(userData).Target as OutputAudioQueue).OnOutputCompleted(audioQueueBuffer); } protected virtual void OnOutputCompleted(IntPtr audioQueueBuffer) { this.OutputCompleted?.Invoke(this, new OutputCompletedEventArgs(audioQueueBuffer)); } public OutputAudioQueue(AudioStreamBasicDescription desc) : this(desc, (CFRunLoop)null, (CFString)null) { } public OutputAudioQueue(AudioStreamBasicDescription desc, CFRunLoop runLoop, string runMode) : this(desc, runLoop, (runMode == null) ? null : new CFString(runMode)) { } public OutputAudioQueue(AudioStreamBasicDescription desc, CFRunLoop runLoop, CFString runMode) { GCHandle value = GCHandle.Alloc(this); IntPtr audioQueue; int num = AudioQueueNewOutput(ref desc, dOutputCallback, GCHandle.ToIntPtr(value), (runLoop == null) ? IntPtr.Zero : runLoop.Handle, runMode?.Handle ?? IntPtr.Zero, 0u, out audioQueue); if (num != 0) { value.Free(); throw new AudioQueueException(num); } gch = value; handle = audioQueue; } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", EntryPoint = "AudioQueueSetOfflineRenderFormat")] private static extern AudioQueueStatus AudioQueueSetOfflineRenderFormat2(IntPtr aq, IntPtr format, IntPtr layout); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioQueueStatus AudioQueueSetOfflineRenderFormat(IntPtr aq, ref AudioStreamBasicDescription format, IntPtr layout); public AudioQueueStatus SetOfflineRenderFormat(AudioStreamBasicDescription desc, AudioChannelLayout layout) { int size; IntPtr intPtr = layout?.ToBlock(out size) ?? IntPtr.Zero; try { return AudioQueueSetOfflineRenderFormat(handle, ref desc, intPtr); } finally { Marshal.FreeHGlobal(intPtr); } } public AudioQueueStatus DisableOfflineRender() { return AudioQueueSetOfflineRenderFormat2(handle, IntPtr.Zero, IntPtr.Zero); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private unsafe static extern AudioQueueStatus AudioQueueOfflineRender(IntPtr aq, ref AudioTimeStamp stamp, AudioQueueBuffer* buffer, int frames); public unsafe AudioQueueStatus RenderOffline(double timeStamp, AudioQueueBuffer* audioQueueBuffer, int frameCount) { if (audioQueueBuffer == null) { throw new ArgumentNullException("audioQueueBuffer"); } AudioTimeStamp audioTimeStamp = default(AudioTimeStamp); audioTimeStamp.SampleTime = timeStamp; audioTimeStamp.Flags = AudioTimeStamp.AtsFlags.SampleTimeValid; AudioTimeStamp stamp = audioTimeStamp; return AudioQueueOfflineRender(handle, ref stamp, audioQueueBuffer, frameCount); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/OutputCompletedEventArgs.cs ================================================ using System; namespace AudioToolbox; public class OutputCompletedEventArgs : EventArgs { public IntPtr IntPtrBuffer { get; private set; } public unsafe AudioQueueBuffer* UnsafeBuffer { get { return (AudioQueueBuffer*)(void*)IntPtrBuffer; } set { IntPtrBuffer = (IntPtr)value; } } public OutputCompletedEventArgs(IntPtr audioQueueBuffer) { IntPtrBuffer = audioQueueBuffer; } public unsafe OutputCompletedEventArgs(AudioQueueBuffer* audioQueueBuffer) { IntPtrBuffer = (IntPtr)audioQueueBuffer; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/PacketReceivedEventArgs.cs ================================================ using System; namespace AudioToolbox; public class PacketReceivedEventArgs : EventArgs { public int Bytes { get; private set; } public IntPtr InputData { get; private set; } public AudioStreamPacketDescription[] PacketDescriptions { get; private set; } public PacketReceivedEventArgs(int numberOfBytes, IntPtr inputData, AudioStreamPacketDescription[] packetDescriptions) { Bytes = numberOfBytes; InputData = inputData; PacketDescriptions = packetDescriptions; } public override string ToString() { return $"Packet (Bytes={Bytes} InputData={InputData} PacketDescriptions={PacketDescriptions.Length}"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/PanningMode.cs ================================================ namespace AudioToolbox; public enum PanningMode { SoundField = 3, VectorBasedPanning } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/PropertyFoundEventArgs.cs ================================================ using System; namespace AudioToolbox; public class PropertyFoundEventArgs : EventArgs { public AudioFileStreamProperty Property { get; private set; } public AudioFileStreamPropertyFlag Flags { get; set; } public PropertyFoundEventArgs(AudioFileStreamProperty propertyID, AudioFileStreamPropertyFlag ioFlags) { Property = propertyID; Flags = ioFlags; } public override string ToString() { return $"AudioFileStreamProperty ({Property})"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/ReadProc.cs ================================================ using System; namespace AudioToolbox; internal delegate int ReadProc(IntPtr clientData, long position, int requestCount, IntPtr buffer, out int actualCount); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/SetSizeProc.cs ================================================ using System; namespace AudioToolbox; internal delegate int SetSizeProc(IntPtr clientData, long size); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/SmpteTime.cs ================================================ namespace AudioToolbox; public struct SmpteTime { public short Subframes; public short SubframeDivisor; public uint Counter; public uint Type; public uint Flags; public short Hours; public short Minutes; public short Seconds; public short Frames; public override string ToString() { return $"[Subframes={Subframes},Divisor={SubframeDivisor},Counter={Counter},Type={Type},Flags={Flags},Hours={Hours},Minutes={Minutes},Seconds={Seconds},Frames={Frames}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/SmpteTimeType.cs ================================================ namespace AudioToolbox; public enum SmpteTimeType { None, Type24, Type25, Type30Drop, Type30, Type2997, Type2997Drop, Type60, Type5994, Type60Drop, Type5994Drop, Type50, Type2398 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/SystemSound.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace AudioToolbox; public class SystemSound : INativeObject, IDisposable { private uint soundId; private bool ownsHandle; private Action completionRoutine; private GCHandle gc_handle; private static readonly Action SoundCompletionCallback = SoundCompletionShared; public IntPtr Handle { get { AssertNotDisposed(); return (IntPtr)soundId; } } public bool IsUISound { get { uint propertyDataSize = 4u; uint propertyData; AudioServicesError audioServicesError = AudioServices.AudioServicesGetProperty(AudioServicesPropertyKey.IsUISound, 4u, ref soundId, out propertyDataSize, out propertyData); if (audioServicesError != 0) { throw new ArgumentException(audioServicesError.ToString()); } return propertyData == 1; } set { uint propertyData = (value ? 1u : 0u); AudioServicesError audioServicesError = AudioServices.AudioServicesSetProperty(AudioServicesPropertyKey.IsUISound, 4u, ref soundId, 4u, ref propertyData); if (audioServicesError != 0) { throw new ArgumentException(audioServicesError.ToString()); } } } public bool CompletePlaybackIfAppDies { get { uint propertyDataSize = 4u; uint propertyData; AudioServicesError audioServicesError = AudioServices.AudioServicesGetProperty(AudioServicesPropertyKey.CompletePlaybackIfAppDies, 4u, ref soundId, out propertyDataSize, out propertyData); if (audioServicesError != 0) { throw new ArgumentException(audioServicesError.ToString()); } return propertyData == 1; } set { uint propertyData = (value ? 1u : 0u); AudioServicesError audioServicesError = AudioServices.AudioServicesSetProperty(AudioServicesPropertyKey.CompletePlaybackIfAppDies, 4u, ref soundId, 4u, ref propertyData); if (audioServicesError != 0) { throw new ArgumentException(audioServicesError.ToString()); } } } internal SystemSound(uint soundId, bool ownsHandle) { this.soundId = soundId; this.ownsHandle = ownsHandle; } ~SystemSound() { Dispose(disposing: false); } private void AssertNotDisposed() { if (soundId == 0) { throw new ObjectDisposedException("SystemSound"); } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { Cleanup(checkForError: false); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioServicesError AudioServicesDisposeSystemSoundID(uint soundId); private void Cleanup(bool checkForError) { if (soundId != 0 && ownsHandle) { if (gc_handle.IsAllocated) { gc_handle.Free(); } if (completionRoutine != null) { RemoveSystemSoundCompletion(); } AudioServicesError audioServicesError = AudioServicesDisposeSystemSoundID(soundId); uint num = soundId; soundId = 0u; if (checkForError && audioServicesError != 0) { throw new InvalidOperationException($"Error while disposing SystemSound with ID {num}: {audioServicesError.ToString()}"); } } } public void Close() { Cleanup(checkForError: true); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern void AudioServicesPlayAlertSound(uint inSystemSoundID); public void PlayAlertSound() { AssertNotDisposed(); AudioServicesPlayAlertSound(soundId); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern void AudioServicesPlaySystemSound(uint inSystemSoundID); public void PlaySystemSound() { AssertNotDisposed(); AudioServicesPlaySystemSound(soundId); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioServicesError AudioServicesCreateSystemSoundID(IntPtr fileUrl, out uint soundId); public SystemSound(NSUrl fileUrl) { AudioServicesError audioServicesError = AudioServicesCreateSystemSoundID(fileUrl.Handle, out soundId); if (audioServicesError != 0) { throw new InvalidOperationException($"Could not create system sound ID for url {fileUrl}; error={audioServicesError}"); } ownsHandle = true; } public static SystemSound FromFile(NSUrl fileUrl) { if (AudioServicesCreateSystemSoundID(fileUrl.Handle, out var num) != 0) { return null; } return new SystemSound(num, ownsHandle: true); } public static SystemSound FromFile(string filename) { using NSUrl nSUrl = new NSUrl(filename); if (AudioServicesCreateSystemSoundID(nSUrl.Handle, out var num) != 0) { return null; } return new SystemSound(num, ownsHandle: true); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AudioServicesError AudioServicesAddSystemSoundCompletion(uint soundId, IntPtr runLoop, IntPtr runLoopMode, Action completionRoutine, IntPtr clientData); [MonoPInvokeCallback(typeof(Action))] private static void SoundCompletionShared(SystemSoundId id, IntPtr clientData) { ((SystemSound)GCHandle.FromIntPtr(clientData).Target).completionRoutine(); } public AudioServicesError AddSystemSoundCompletion(Action routine, CFRunLoop runLoop = null) { if (gc_handle.IsAllocated) { throw new ArgumentException("Only single completion routine is supported"); } gc_handle = GCHandle.Alloc(this); completionRoutine = routine; return AudioServicesAddSystemSoundCompletion(soundId, (runLoop == null) ? IntPtr.Zero : runLoop.Handle, IntPtr.Zero, SoundCompletionCallback, GCHandle.ToIntPtr(gc_handle)); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern void AudioServicesRemoveSystemSoundCompletion(uint soundId); public void RemoveSystemSoundCompletion() { completionRoutine = null; AudioServicesRemoveSystemSoundCompletion(soundId); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/SystemSoundId.cs ================================================ namespace AudioToolbox; internal enum SystemSoundId : uint { Vibrate = 4095u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioToolbox/WriteProc.cs ================================================ using System; namespace AudioToolbox; internal delegate int WriteProc(IntPtr clientData, long position, int requestCount, IntPtr buffer, out int actualCount); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AUGraph.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using Foundation; namespace AudioUnit; public class AUGraph : IDisposable { private readonly GCHandle gcHandle; private IntPtr handle; [Advice("Use Handle property instead")] public IntPtr Handler => handle; public IntPtr Handle => handle; public bool IsInitialized { get { bool outIsInitialized; return AUGraphIsInitialized(handle, out outIsInitialized) == AUGraphError.OK && outIsInitialized; } } public bool IsOpen { get { bool outIsOpen; return AUGraphIsOpen(handle, out outIsOpen) == AUGraphError.OK && outIsOpen; } } public bool IsRunning { get { bool outIsRunning; return AUGraphIsRunning(handle, out outIsRunning) == AUGraphError.OK && outIsRunning; } } public event EventHandler RenderCallback; internal AUGraph(IntPtr ptr) { handle = ptr; int num = AUGraphAddRenderNotify(handle, renderCallback, GCHandle.ToIntPtr(gcHandle)); if (num != 0) { throw new ArgumentException($"Error code: {num}"); } gcHandle = GCHandle.Alloc(this); } public AUGraph() { int num = NewAUGraph(ref handle); if (num != 0) { throw new InvalidOperationException(string.Format("Cannot create new AUGraph. Error code:", num)); } } [MonoPInvokeCallback(typeof(AudioUnit.AURenderCallback))] private static int renderCallback(IntPtr inRefCon, ref AudioUnitRenderActionFlags _ioActionFlags, ref AudioTimeStamp _inTimeStamp, int _inBusNumber, int _inNumberFrames, AudioBufferList _ioData) { AUGraph aUGraph = (AUGraph)GCHandle.FromIntPtr(inRefCon).Target; if (aUGraph.RenderCallback != null) { AudioGraphEventArgs e = new AudioGraphEventArgs(_ioActionFlags, _inTimeStamp, _inBusNumber, _inNumberFrames, _ioData); aUGraph.RenderCallback(aUGraph, e); } return 0; } public void Open() { int num = AUGraphOpen(handle); if (num != 0) { throw new InvalidOperationException(string.Format("Cannot open AUGraph. Error code:", num)); } } public int TryOpen() { return AUGraphOpen(handle); } public int AddNode(AudioComponentDescription description) { int outNode; AUGraphError aUGraphError = AUGraphAddNode(handle, description, out outNode); if (aUGraphError != 0) { throw new ArgumentException(string.Format("Error code:", aUGraphError)); } return outNode; } public AUGraphError RemoveNode(int node) { return AUGraphRemoveNode(handle, node); } public AUGraphError GetCPULoad(out float averageCPULoad) { return AUGraphGetCPULoad(handle, out averageCPULoad); } public AUGraphError GetMaxCPULoad(out float maxCPULoad) { return AUGraphGetMaxCPULoad(handle, out maxCPULoad); } public AUGraphError GetNode(uint index, out int node) { return AUGraphGetIndNode(handle, index, out node); } public AUGraphError GetNodeCount(out int count) { return AUGraphGetNodeCount(handle, out count); } public AudioUnit GetNodeInfo(int node) { IntPtr outAudioUnit; AUGraphError aUGraphError = AUGraphNodeInfo(handle, node, IntPtr.Zero, out outAudioUnit); if (aUGraphError != 0) { throw new ArgumentException($"Error code:{aUGraphError}"); } if (outAudioUnit == IntPtr.Zero) { throw new InvalidOperationException("Can not get object instance"); } return new AudioUnit(outAudioUnit); } public AUGraphError GetNumberOfInteractions(out uint interactionsCount) { return AUGraphGetNumberOfInteractions(handle, out interactionsCount); } public AUGraphError GetNumberOfInteractions(int node, out uint interactionsCount) { return AUGraphCountNodeInteractions(handle, node, out interactionsCount); } public AUGraphError ConnnectNodeInput(int sourceNode, uint sourceOutputNumber, int destNode, uint destInputNumber) { return AUGraphConnectNodeInput(handle, sourceNode, sourceOutputNumber, destNode, destInputNumber); } public AUGraphError DisconnectNodeInput(int destNode, uint destInputNumber) { return AUGraphDisconnectNodeInput(handle, destNode, destInputNumber); } public AUGraphError ClearConnections() { return AUGraphClearConnections(handle); } public AUGraphError Start() { return AUGraphStart(handle); } public AUGraphError Stop() { return AUGraphStop(handle); } public AUGraphError Initialize() { return AUGraphInitialize(handle); } public bool Update() { bool outIsUpdated; return AUGraphUpdate(handle, out outIsUpdated) == AUGraphError.OK && outIsUpdated; } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { AUGraphUninitialize(handle); AUGraphClose(handle); DisposeAUGraph(handle); gcHandle.Free(); handle = IntPtr.Zero; } } ~AUGraph() { Dispose(disposing: false); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int NewAUGraph(ref IntPtr outGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AUGraphOpen(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphAddNode(IntPtr inGraph, AudioComponentDescription inDescription, out int outNode); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphRemoveNode(IntPtr inGraph, int inNode); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphGetNodeCount(IntPtr inGraph, out int outNumberOfNodes); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphGetIndNode(IntPtr inGraph, uint inIndex, out int outNode); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphNodeInfo(IntPtr inGraph, int inNode, IntPtr outDescription, out IntPtr outAudioUnit); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphNodeInfo(IntPtr inGraph, int inNode, out AudioComponentDescription outDescription, out IntPtr outAudioUnit); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphClearConnections(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphConnectNodeInput(IntPtr inGraph, int inSourceNode, uint inSourceOutputNumber, int inDestNode, uint inDestInputNumber); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphDisconnectNodeInput(IntPtr inGraph, int inDestNode, uint inDestInputNumber); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphGetNumberOfInteractions(IntPtr inGraph, out uint outNumInteractions); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphCountNodeInteractions(IntPtr inGraph, int inNode, out uint outNumInteractions); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphInitialize(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AUGraphAddRenderNotify(IntPtr inGraph, AudioUnit.AURenderCallback inCallback, IntPtr inRefCon); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphStart(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphStop(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphUninitialize(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AUGraphClose(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int DisposeAUGraph(IntPtr inGraph); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphIsOpen(IntPtr inGraph, out bool outIsOpen); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphIsInitialized(IntPtr inGraph, out bool outIsInitialized); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphIsRunning(IntPtr inGraph, out bool outIsRunning); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphGetCPULoad(IntPtr inGraph, out float outAverageCPULoad); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphGetMaxCPULoad(IntPtr inGraph, out float outMaxLoad); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphSetNodeInputCallback(IntPtr inGraph, int inDestNode, uint inDestInputNumber, ref AURenderCallbackStruct inInputCallback); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern AUGraphError AUGraphUpdate(IntPtr inGraph, out bool outIsUpdated); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AUGraphError.cs ================================================ namespace AudioUnit; public enum AUGraphError { OK = 0, NodeNotFound = -10860, InvalidConnection = -10861, OutputNodeError = -10862, CannotDoInCurrentContext = -10863, InvalidAudioUnit = -10864, FormatNotSupported = -10868, InvalidElement = -10877 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AURenderCallbackStruct.cs ================================================ using System; namespace AudioUnit; internal struct AURenderCallbackStruct { public RenderCallbackShared Proc; public IntPtr ProcRefCon; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioCodecManufacturer.cs ================================================ namespace AudioUnit; public enum AudioCodecManufacturer : uint { AppleSoftware = 1634758764u, AppleHardware = 1634756727u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioComponent.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace AudioUnit; public class AudioComponent : INativeObject { internal IntPtr handle; public IntPtr Handle => handle; public string Name { get { if (AudioComponentCopyName(handle, out var cfstr) == 0) { return CFString.FetchString(cfstr); } return null; } } public AudioComponentDescription Description { get { if (AudioComponentGetDescription(handle, out var desc) == 0) { return desc; } return null; } } public Version Version { get { if (AudioComponentGetVersion(handle, out var version) == 0) { return new Version(version >> 16, (version >> 8) & 0xFF, version & 0xFF); } return null; } } internal AudioComponent(IntPtr handle) { this.handle = handle; } public AudioUnit CreateAudioUnit() { return new AudioUnit(this); } public static AudioComponent FindNextComponent(AudioComponent cmp, AudioComponentDescription cd) { IntPtr intPtr = ((cmp != null) ? AudioComponentFindNext(cmp.Handle, cd) : AudioComponentFindNext(IntPtr.Zero, cd)); if (intPtr != IntPtr.Zero) { return new AudioComponent(intPtr); } return null; } public static AudioComponent FindComponent(AudioComponentDescription cd) { return FindNextComponent(null, cd); } public static AudioComponent FindComponent(AudioTypeOutput output) { return FindComponent(AudioComponentDescription.CreateOutput(output)); } public static AudioComponent FindComponent(AudioTypeMusicDevice musicDevice) { return FindComponent(AudioComponentDescription.CreateMusicDevice(musicDevice)); } public static AudioComponent FindComponent(AudioTypeConverter conveter) { return FindComponent(AudioComponentDescription.CreateConverter(conveter)); } public static AudioComponent FindComponent(AudioTypeEffect effect) { return FindComponent(AudioComponentDescription.CreateEffect(effect)); } public static AudioComponent FindComponent(AudioTypeMixer mixer) { return FindComponent(AudioComponentDescription.CreateMixer(mixer)); } public static AudioComponent FindComponent(AudioTypePanner panner) { return FindComponent(AudioComponentDescription.CreatePanner(panner)); } public static AudioComponent FindComponent(AudioTypeGenerator generator) { return FindComponent(AudioComponentDescription.CreateGenerator(generator)); } [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern IntPtr AudioComponentFindNext(IntPtr inComponent, AudioComponentDescription inDesc); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentCopyName(IntPtr component, out IntPtr cfstr); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentGetDescription(IntPtr component, out AudioComponentDescription desc); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentCount(AudioComponentDescription desc); private static int CountMatches(AudioComponentDescription desc) { if (desc == null) { throw new ArgumentNullException("desc"); } return AudioComponentCount(desc); } [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentGetVersion(IntPtr component, out int version); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioComponentDescription.cs ================================================ using System.Runtime.InteropServices; namespace AudioUnit; [StructLayout(LayoutKind.Sequential)] public class AudioComponentDescription { [MarshalAs(UnmanagedType.U4)] public AudioComponentType ComponentType; [MarshalAs(UnmanagedType.U4)] public int ComponentSubType; [MarshalAs(UnmanagedType.U4)] public AudioComponentManufacturerType ComponentManufacturer; public AudioComponentFlag ComponentFlags; public int ComponentFlagsMask; public AudioComponentDescription() { } internal AudioComponentDescription(AudioComponentType type, int subType) { ComponentType = type; ComponentSubType = subType; ComponentManufacturer = AudioComponentManufacturerType.Apple; } public static AudioComponentDescription CreateGeneric(AudioComponentType type, int subType) { return new AudioComponentDescription(type, subType); } public static AudioComponentDescription CreateOutput(AudioTypeOutput outputType) { return new AudioComponentDescription(AudioComponentType.Output, (int)outputType); } public static AudioComponentDescription CreateMusicDevice(AudioTypeMusicDevice musicDevice) { return new AudioComponentDescription(AudioComponentType.MusicDevice, (int)musicDevice); } public static AudioComponentDescription CreateConverter(AudioTypeConverter converter) { return new AudioComponentDescription(AudioComponentType.FormatConverter, (int)converter); } public static AudioComponentDescription CreateEffect(AudioTypeEffect effect) { return new AudioComponentDescription(AudioComponentType.Effect, (int)effect); } public static AudioComponentDescription CreateMixer(AudioTypeMixer mixer) { return new AudioComponentDescription(AudioComponentType.Mixer, (int)mixer); } public static AudioComponentDescription CreatePanner(AudioTypePanner panner) { return new AudioComponentDescription(AudioComponentType.Panner, (int)panner); } public static AudioComponentDescription CreateGenerator(AudioTypeGenerator generator) { return new AudioComponentDescription(AudioComponentType.Generator, (int)generator); } public override string ToString() { return ComponentType switch { AudioComponentType.Output => $"[componetType={ComponentType}, subType={(AudioTypeOutput)ComponentSubType}]", AudioComponentType.MusicDevice => $"[componetType={ComponentType}, subType={(AudioTypeMusicDevice)ComponentSubType}]", AudioComponentType.FormatConverter => $"[componetType={ComponentType}, subType={(AudioTypeConverter)ComponentSubType}]", AudioComponentType.Effect => $"[componetType={ComponentType}, subType={(AudioTypeEffect)ComponentSubType}]", AudioComponentType.Mixer => $"[componetType={ComponentType}, subType={(AudioTypeMixer)ComponentSubType}]", AudioComponentType.Panner => $"[componetType={ComponentType}, subType={(AudioTypePanner)ComponentSubType}]", AudioComponentType.Generator => $"[componetType={ComponentType}, subType={(AudioTypeGenerator)ComponentSubType}]", _ => $"[componetType={ComponentType}, subType={ComponentSubType}]", }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioComponentFlag.cs ================================================ using System; namespace AudioUnit; [Flags] public enum AudioComponentFlag { Unsearchable = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioComponentManufacturerType.cs ================================================ namespace AudioUnit; public enum AudioComponentManufacturerType : uint { Apple = 1634758764u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioComponentType.cs ================================================ namespace AudioUnit; public enum AudioComponentType : uint { Output = 1635086197u, MusicDevice = 1635085685u, MusicEffect = 1635085670u, FormatConverter = 1635083875u, Effect = 1635083896u, Mixer = 1635085688u, Panner = 1635086446u, OfflineEffect = 1635086188u, Generator = 1635084142u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioGraphEventArgs.cs ================================================ using System; using AudioToolbox; namespace AudioUnit; [Obsolete] public class AudioGraphEventArgs : AudioUnitEventArgs { public AudioGraphEventArgs(AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, int busNumber, int numberFrames, AudioBufferList data) : base(actionFlags, timeStamp, busNumber, numberFrames, data) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeConverter.cs ================================================ namespace AudioUnit; public enum AudioTypeConverter { AU = 1668247158, Varispeed = 1986097769, DeferredRenderer = 1684366962, Splitter = 1936747636, Merger = 1835364967, NewTimePitch = 1853191280, TimePitch = 1953329268, RoundTripAAC = 1918984547 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeEffect.cs ================================================ namespace AudioUnit; public enum AudioTypeEffect { PeakLimiter = 1819112562, DynamicsProcessor = 1684237680, LowPassFilter = 1819304307, HighPassFilter = 1752195443, HighShelfFilter = 1752393830, LowShelfFilter = 1819502694, DCFilter = 1684235884, ParametricEQ = 1886217585, Delay = 1684368505, Distortion = 1684632436, BandPassFilter = 1651532147, GraphicEQ = 1735550321, MultiBandCompressor = 1835232624, MatrixReverb = 1836213622, SampleDelay = 1935961209, Pitch = 1885959267, AUFilter = 1718185076, NetSend = 1853058660, RogerBeep = 1919903602 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeGenerator.cs ================================================ namespace AudioUnit; public enum AudioTypeGenerator { NetReceive = 1852990326, ScheduledSoundPlayer = 1936945260, AudioFilePlayer = 1634103404 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeMixer.cs ================================================ namespace AudioUnit; public enum AudioTypeMixer { MultiChannel = 1835232632, Matrix = 1836608888, Stereo = 1936554098, ThreeD = 862219640 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeMusicDevice.cs ================================================ using System; namespace AudioUnit; public enum AudioTypeMusicDevice { [Obsolete] None = 0, DlsSynth = 1684828960, Sampler = 1935764848 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypeOutput.cs ================================================ namespace AudioUnit; public enum AudioTypeOutput { Generic = 1734700658, HAL = 1634230636, Default = 1684366880, System = 1937339168, VoiceProcessingIO = 1987078511 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioTypePanner.cs ================================================ namespace AudioUnit; public enum AudioTypePanner { SphericalHead = 1936746610, Vector = 1986158963, SoundField = 1634558569, rHRTF = 1752331366 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnit.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using ObjCRuntime; namespace AudioUnit; public class AudioUnit : IDisposable, INativeObject { [Obsolete] internal delegate int AURenderCallback(IntPtr inRefCon, ref AudioUnitRenderActionFlags ioActionFlags, ref AudioTimeStamp inTimeStamp, int inBusNumber, int inNumberFrames, AudioBufferList ioData); [StructLayout(LayoutKind.Sequential)] [Obsolete] private class AURenderCallbackStrct { public AURenderCallback inputProc; public IntPtr inputProcRefCon; } private static readonly RenderCallbackShared CreateRenderCallback = RenderCallbackImpl; private GCHandle gcHandle; private IntPtr handle; private bool _isPlaying; private RenderDelegate render; public AudioComponent Component => new AudioComponent(AudioComponentInstanceGetComponent(handle)); public IntPtr Handle => handle; public bool IsPlaying => _isPlaying; [Obsolete("Use SetRenderCallback")] public event EventHandler RenderCallback; internal AudioUnit(IntPtr ptr) { handle = ptr; gcHandle = GCHandle.Alloc(this); } public AudioUnit(AudioComponent component) { if (component == null) { throw new ArgumentNullException("component"); } if (component.Handle == IntPtr.Zero) { throw new ObjectDisposedException("component"); } int num = AudioComponentInstanceNew(component.handle, out handle); if (num != 0) { throw new AudioUnitException(num); } gcHandle = GCHandle.Alloc(this); BrokenSetRender(); } [Obsolete] private void BrokenSetRender() { AURenderCallbackStrct aURenderCallbackStrct = new AURenderCallbackStrct(); aURenderCallbackStrct.inputProc = renderCallback; aURenderCallbackStrct.inputProcRefCon = GCHandle.ToIntPtr(gcHandle); int num = AudioUnitSetProperty(handle, AudioUnitPropertyIDType.SetRenderCallback, AudioUnitScopeType.Input, 0u, aURenderCallbackStrct, (uint)Marshal.SizeOf(aURenderCallbackStrct)); if (num != 0) { throw new AudioUnitException(num); } } [Obsolete] [MonoPInvokeCallback(typeof(AURenderCallback))] private static int renderCallback(IntPtr inRefCon, ref AudioUnitRenderActionFlags _ioActionFlags, ref AudioTimeStamp _inTimeStamp, int _inBusNumber, int _inNumberFrames, AudioBufferList _ioData) { AudioUnit audioUnit = (AudioUnit)GCHandle.FromIntPtr(inRefCon).Target; if (audioUnit.RenderCallback != null) { AudioUnitEventArgs e = new AudioUnitEventArgs(_ioActionFlags, _inTimeStamp, _inBusNumber, _inNumberFrames, _ioData); audioUnit.RenderCallback(audioUnit, e); } return 0; } public void SetAudioFormat(AudioStreamBasicDescription audioFormat, AudioUnitScopeType scope, uint audioUnitElement = 0u) { int num = AudioUnitSetProperty(handle, AudioUnitPropertyIDType.StreamFormat, scope, audioUnitElement, ref audioFormat, (uint)Marshal.SizeOf(audioFormat)); if (num != 0) { throw new AudioUnitException(num); } } public AudioStreamBasicDescription GetAudioFormat(AudioUnitScopeType scope, uint audioUnitElement = 0u) { AudioStreamBasicDescription outData = default(AudioStreamBasicDescription); uint ioDataSize = (uint)Marshal.SizeOf(outData); int num = AudioUnitGetProperty(handle, AudioUnitPropertyIDType.StreamFormat, scope, audioUnitElement, ref outData, ref ioDataSize); if (num != 0) { throw new AudioUnitException(num); } return outData; } public AudioUnitStatus SetEnableIO(bool enableIO, AudioUnitScopeType scope, uint audioUnitElement = 0u) { uint inData = (enableIO ? 1u : 0u); return AudioUnitSetProperty(handle, AudioUnitPropertyIDType.EnableIO, scope, audioUnitElement, ref inData, 4u); } public AudioUnitStatus SetMaximumFramesPerSlice(uint value, AudioUnitScopeType scope, uint audioUnitElement = 0u) { return AudioUnitSetProperty(handle, AudioUnitPropertyIDType.MaximumFramesPerSlice, scope, audioUnitElement, ref value, 4u); } public AudioUnitStatus SetRenderCallback(RenderDelegate renderDelegate, AudioUnitScopeType scope, uint audioUnitElement = 0u) { AURenderCallbackStruct inData = default(AURenderCallbackStruct); inData.Proc = CreateRenderCallback; inData.ProcRefCon = GCHandle.ToIntPtr(gcHandle); render = renderDelegate; return AudioUnitSetProperty(handle, AudioUnitPropertyIDType.SetRenderCallback, scope, audioUnitElement, ref inData, Marshal.SizeOf(inData)); } [MonoPInvokeCallback(typeof(RenderCallbackShared))] private static AudioUnitStatus RenderCallbackImpl(IntPtr clientData, ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, IntPtr data) { return ((AudioUnit)GCHandle.FromIntPtr(clientData).Target).render(actionFlags, timeStamp, busNumber, numberFrames, new AudioBuffers(data)); } public int Initialize() { return AudioUnitInitialize(handle); } public int Uninitialize() { return AudioUnitUninitialize(handle); } public void Start() { if (!_isPlaying) { AudioOutputUnitStart(handle); _isPlaying = true; } } public void Stop() { if (_isPlaying) { AudioOutputUnitStop(handle); _isPlaying = false; } } public AudioUnitStatus Render(ref AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, AudioBuffers data) { return AudioUnitRender(handle, ref actionFlags, ref timeStamp, busNumber, numberFrames, (IntPtr)data); } [Obsolete] public void Render(AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data) { int num = AudioUnitRender(handle, ref flags, ref timeStamp, outputBusnumber, numberFrames, data); if (num != 0) { throw new AudioUnitException(num); } } [Obsolete] public AudioUnitStatus TryRender(AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data) { return (AudioUnitStatus)AudioUnitRender(handle, ref flags, ref timeStamp, outputBusnumber, numberFrames, data); } public AudioUnitStatus SetParameter(AudioUnitParameterType type, float value, AudioUnitScopeType scope, uint audioUnitElement = 0u) { return AudioUnitSetParameter(handle, type, scope, audioUnitElement, value, 0u); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentInstanceDispose(IntPtr inInstance); public void Dispose(bool disposing) { if (handle != IntPtr.Zero) { Stop(); AudioUnitUninitialize(handle); AudioComponentInstanceDispose(handle); gcHandle.Free(); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioComponentInstanceNew(IntPtr inComponent, out IntPtr inDesc); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern IntPtr AudioComponentInstanceGetComponent(IntPtr inComponent); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioUnitInitialize(IntPtr inUnit); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioUnitUninitialize(IntPtr inUnit); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioOutputUnitStart(IntPtr ci); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioOutputUnitStop(IntPtr ci); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] [Obsolete] private static extern int AudioUnitRender(IntPtr inUnit, ref AudioUnitRenderActionFlags ioActionFlags, ref AudioTimeStamp inTimeStamp, int inOutputBusNumber, int inNumberFrames, AudioBufferList ioData); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern AudioUnitStatus AudioUnitRender(IntPtr inUnit, ref AudioUnitRenderActionFlags ioActionFlags, ref AudioTimeStamp inTimeStamp, uint inOutputBusNumber, uint inNumberFrames, IntPtr ioData); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] [Obsolete] private static extern int AudioUnitSetProperty(IntPtr inUnit, [MarshalAs(UnmanagedType.U4)] AudioUnitPropertyIDType inID, [MarshalAs(UnmanagedType.U4)] AudioUnitScopeType inScope, [MarshalAs(UnmanagedType.U4)] uint inElement, AURenderCallbackStrct inData, uint inDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioUnitSetProperty(IntPtr inUnit, [MarshalAs(UnmanagedType.U4)] AudioUnitPropertyIDType inID, [MarshalAs(UnmanagedType.U4)] AudioUnitScopeType inScope, [MarshalAs(UnmanagedType.U4)] uint inElement, ref AudioStreamBasicDescription inData, uint inDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern AudioUnitStatus AudioUnitSetProperty(IntPtr inUnit, AudioUnitPropertyIDType inID, AudioUnitScopeType inScope, uint inElement, ref uint inData, uint inDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern AudioUnitStatus AudioUnitSetProperty(IntPtr inUnit, AudioUnitPropertyIDType inID, AudioUnitScopeType inScope, uint inElement, ref AURenderCallbackStruct inData, int inDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioUnitGetProperty(IntPtr inUnit, [MarshalAs(UnmanagedType.U4)] AudioUnitPropertyIDType inID, [MarshalAs(UnmanagedType.U4)] AudioUnitScopeType inScope, [MarshalAs(UnmanagedType.U4)] uint inElement, ref AudioStreamBasicDescription outData, ref uint ioDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern int AudioUnitGetProperty(IntPtr inUnit, [MarshalAs(UnmanagedType.U4)] AudioUnitPropertyIDType inID, [MarshalAs(UnmanagedType.U4)] AudioUnitScopeType inScope, [MarshalAs(UnmanagedType.U4)] uint inElement, ref uint flag, ref uint ioDataSize); [DllImport("/System/Library/Frameworks/AudioUnit.framework/AudioUnit")] private static extern AudioUnitStatus AudioUnitSetParameter(IntPtr inUnit, AudioUnitParameterType inID, AudioUnitScopeType inScope, uint inElement, float inValue, uint inBufferOffsetInFrames); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitEventArgs.cs ================================================ using System; using AudioToolbox; namespace AudioUnit; [Obsolete] public class AudioUnitEventArgs : EventArgs { public readonly AudioUnitRenderActionFlags ActionFlags; public readonly AudioTimeStamp TimeStamp; public readonly int BusNumber; public readonly int NumberFrames; public readonly AudioBufferList Data; public AudioUnitEventArgs(AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timestamp, int busNumber, int frames, AudioBufferList data) { ActionFlags = actionFlags; TimeStamp = timestamp; BusNumber = busNumber; NumberFrames = frames; Data = data; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitException.cs ================================================ using System; namespace AudioUnit; public class AudioUnitException : Exception { private static string Lookup(int k) { return (AudioUnitStatus)k switch { AudioUnitStatus.InvalidProperty => "Invalid Property", AudioUnitStatus.InvalidParameter => "Invalid Parameter", AudioUnitStatus.InvalidElement => "Invalid Element", AudioUnitStatus.NoConnection => "No Connection", AudioUnitStatus.FailedInitialization => "Failed Initialization", AudioUnitStatus.TooManyFramesToProcess => "Too Many Frames To Process", AudioUnitStatus.InvalidFile => "Invalid File", AudioUnitStatus.FormatNotSupported => "Format Not Supported", AudioUnitStatus.Uninitialized => "Uninitialized", AudioUnitStatus.InvalidScope => "Invalid Scope", AudioUnitStatus.PropertyNotWritable => "Property Not Writable", AudioUnitStatus.CannotDoInCurrentContext => "Cannot Do In Current Context", AudioUnitStatus.InvalidPropertyValue => "Invalid Property Value", AudioUnitStatus.PropertyNotInUse => "Property Not In Use", AudioUnitStatus.Initialized => "Initialized", AudioUnitStatus.InvalidOfflineRender => "Invalid Offline Render", AudioUnitStatus.Unauthorized => "Unauthorized", _ => $"Unknown error code: 0x{k:x}", }; } internal AudioUnitException(int k) : base(Lookup(k)) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitParameterType.cs ================================================ namespace AudioUnit; public enum AudioUnitParameterType { ReverbFilterFrequency = 14, ReverbFilterBandwidth = 15, ReverbFilterGain = 16, MultiChannelMixerVolume = 0, MultiChannelMixerEnable = 1, MultiChannelMixerPan = 2, MatrixMixerVolume = 0, MatrixMixerEnable = 1, HALOutputVolume = 14, TimePitchRate = 0, TimePitchPitch = 1, TimePitchEffectBlend = 2, NewTimePitchRate = 0, NewTimePitchPitch = 1, NewTimePitchOverlap = 4, NewTimePitchEnablePeakLocking = 6, AUSamplerGain = 900, AUSamplerCoarseTuning = 901, AUSamplerFineTuning = 902, AUSamplerPan = 903, BandpassCenterFrequency = 0, BandpassBandwidth = 1, HipassCutoffFrequency = 0, HipassResonance = 1, LowPassCutoffFrequency = 0, LowPassResonance = 1, HighShelfCutOffFrequency = 0, HighShelfGain = 1, AULowShelfCutoffFrequency = 0, AULowShelfGain = 1, AUDCFilterDecayTime = 0, ParametricEQCenterFreq = 0, ParametricEQQ = 1, ParametricEQGain = 2, LimiterAttackTime = 0, LimiterDecayTime = 1, LimiterPreGain = 2, DynamicsProcessorThreshold = 0, DynamicsProcessorHeadRoom = 1, DynamicsProcessorExpansionRatio = 2, DynamicsProcessorExpansionThreshold = 3, DynamicsProcessorAttackTime = 4, DynamicsProcessorReleaseTime = 5, DynamicsProcessorMasterGain = 6, DynamicsProcessorCompressionAmount = 1000, DynamicsProcessorInputAmplitude = 2000, DynamicsProcessorOutputAmplitude = 3000, VarispeedPlaybackRate = 0, VarispeedPlaybackCents = 1, DistortionDelay = 0, DistortionDecay = 1, DistortionDelayMix = 2, DistortionDecimation = 3, DistortionRounding = 4, DistortionDecimationMix = 5, DistortionLinearTerm = 6, DistortionSquaredTerm = 7, DistortionCubicTerm = 8, DistortionPolynomialMix = 9, DistortionRingModFreq1 = 10, DistortionRingModFreq2 = 11, DistortionRingModBalance = 12, DistortionRingModMix = 13, DistortionSoftClipGain = 14, DistortionFinalMix = 15, DelayWetDryMix = 0, DelayTime = 1, DelayFeedback = 2, DelayLopassCutoff = 3 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitPropertyIDType.cs ================================================ namespace AudioUnit; public enum AudioUnitPropertyIDType { ClassInfo = 0, MakeConnection = 1, SampleRate = 2, ParameterList = 3, ParameterInfo = 4, CPULoad = 6, StreamFormat = 8, ElementCount = 11, Latency = 12, SupportedNumChannels = 13, MaximumFramesPerSlice = 14, ParameterValueStrings = 16, AudioChannelLayout = 19, TailTime = 20, BypassEffect = 21, LastRenderError = 22, SetRenderCallback = 23, FactoryPresets = 24, RenderQuality = 26, HostCallbacks = 27, InPlaceProcessing = 29, ElementName = 30, SupportedChannelLayoutTags = 32, PresentPreset = 36, OfflineRender = 37, DependentParameters = 45, InputSampleInOutput = 49, ShouldAllocateBuffer = 51, ParameterHistoryInfo = 53, Nickname = 54, FastDispatch = 5, SetExternalBuffer = 15, GetUIComponentList = 18, ContextName = 25, CocoaUI = 31, ParameterIDName = 34, ParameterClumpName = 35, ParameterStringFromValue = 33, ParameterValueFromString = 38, IconLocation = 39, PresentationLatency = 40, AUHostIdentifier = 46, MIDIOutputCallbackInfo = 47, MIDIOutputCallback = 48, ClassInfoFromDocument = 50, FrequencyResponse = 52, CurrentDevice = 2000, IsRunning = 2001, ChannelMap = 2002, EnableIO = 2003, StartTime = 2004, SetInputCallback = 2005, HasIO = 2006, StartTimestampsAtZero = 2007 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitRenderActionFlags.cs ================================================ using System; namespace AudioUnit; [Flags] public enum AudioUnitRenderActionFlags { PreRender = 4, PostRender = 8, OutputIsSilence = 0x10, OfflinePreflight = 0x20, OfflineRender = 0x40, OfflineComplete = 0x80, PostRenderError = 0x100, DoNotCheckRenderArgs = 0x200 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitScopeType.cs ================================================ namespace AudioUnit; public enum AudioUnitScopeType { Global, Input, Output, Group, Part, Note, Layer, LayerItem } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitStatus.cs ================================================ namespace AudioUnit; public enum AudioUnitStatus { NoError = 0, OK = 0, ParameterError = -50, InvalidProperty = -10879, InvalidParameter = -10878, InvalidElement = -10877, NoConnection = -10876, FailedInitialization = -10875, TooManyFramesToProcess = -10874, InvalidFile = -10871, FormatNotSupported = -10868, Uninitialized = -10867, InvalidScope = -10866, PropertyNotWritable = -10865, CannotDoInCurrentContext = -10863, InvalidPropertyValue = -10851, PropertyNotInUse = -10850, Initialized = -10849, InvalidOfflineRender = -10848, Unauthorized = -10847 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/AudioUnitUtils.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using Foundation; namespace AudioUnit; public static class AudioUnitUtils { public const int SampleFractionBits = 24; [Advice("Use AudioStreamBasicDescription::CreateLinearPCM instead")] public static AudioStreamBasicDescription AUCanonicalASBD(double sampleRate, int channel) { int num = 4; AudioStreamBasicDescription result = default(AudioStreamBasicDescription); result.SampleRate = sampleRate; result.Format = AudioFormatType.LinearPCM; result.FormatFlags = (AudioFormatFlags)3116u; result.ChannelsPerFrame = channel; result.BytesPerPacket = num; result.BytesPerFrame = num; result.FramesPerPacket = 1; result.BitsPerChannel = 8 * num; result.Reserved = 0; return result; } [Advice("Use AudioSession::OverrideCategoryDefaultToSpeaker instead")] public static void SetOverrideCategoryDefaultToSpeaker(bool isSpeaker) { int inData = (isSpeaker ? 1 : 0); if (AudioSessionSetProperty(1668509803u, 4u, ref inData) != 0) { throw new ArgumentException(); } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioSessionSetProperty(uint inID, uint inDataSize, ref int inData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/ExtAudioFile.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using CoreFoundation; namespace AudioUnit; public class ExtAudioFile : IDisposable { private enum PropertyIDType { FileDataFormat = 1717988724, ClientDataFormat = 1667657076, CodecManufacturer = 1668112750, AudioConverter = 1633906294, AudioFile = 1634101612, FileMaxPacketSize = 1718448243, ClientMaxPacketSize = 1668116595, FileLengthFrames = 593916525, ConverterConfig = 1633903462 } private IntPtr _extAudioFile; public uint? ClientMaxPacketSize { get { uint ioPropertyDataSize = 4u; if (ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.ClientMaxPacketSize, ref ioPropertyDataSize, out uint outPropertyData) != 0) { return null; } return outPropertyData; } } public uint? FileMaxPacketSize { get { uint ioPropertyDataSize = 4u; if (ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.FileMaxPacketSize, ref ioPropertyDataSize, out uint outPropertyData) != 0) { return null; } return outPropertyData; } } public IntPtr? AudioFile { get { uint ioPropertyDataSize = (uint)Marshal.SizeOf(typeof(IntPtr)); if (ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.AudioFile, ref ioPropertyDataSize, out IntPtr outPropertyData) != 0) { return null; } return outPropertyData; } } public AudioConverter AudioConverter { get { uint ioPropertyDataSize = 4u; if (ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.AudioConverter, ref ioPropertyDataSize, out IntPtr outPropertyData) != 0) { return null; } return new AudioConverter(outPropertyData, owns: false); } } public long FileLengthFrames { get { uint ioPropertyDataSize = 8u; long outPropertyData; ExtAudioFileError extAudioFileError = ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.FileLengthFrames, ref ioPropertyDataSize, out outPropertyData); if (extAudioFileError != 0) { throw new InvalidOperationException($"Error code:{extAudioFileError}"); } return outPropertyData; } } public AudioStreamBasicDescription FileDataFormat { get { AudioStreamBasicDescription outPropertyData = default(AudioStreamBasicDescription); uint ioPropertyDataSize = (uint)Marshal.SizeOf(typeof(AudioStreamBasicDescription)); int num = ExtAudioFileGetProperty(_extAudioFile, PropertyIDType.FileDataFormat, ref ioPropertyDataSize, ref outPropertyData); if (num != 0) { throw new InvalidOperationException($"Error code:{num}"); } return outPropertyData; } } public AudioStreamBasicDescription ClientDataFormat { set { int num = ExtAudioFileSetProperty(_extAudioFile, PropertyIDType.ClientDataFormat, (uint)Marshal.SizeOf(value), ref value); if (num != 0) { throw new InvalidOperationException($"Error code:{num}"); } } } private ExtAudioFile(IntPtr ptr) { _extAudioFile = ptr; } ~ExtAudioFile() { Dispose(disposing: false); } public unsafe static ExtAudioFile OpenUrl(CFUrl url) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = default(IntPtr); ExtAudioFileError extAudioFileError = ExtAudioFileOpenUrl(url.Handle, (IntPtr)(&intPtr)); if (extAudioFileError != 0) { throw new ArgumentException($"Error code:{extAudioFileError}"); } if (intPtr == IntPtr.Zero) { throw new InvalidOperationException("Can not get object instance"); } return new ExtAudioFile(intPtr); } public unsafe static ExtAudioFile CreateWithUrl(CFUrl url, AudioFileType fileType, AudioStreamBasicDescription inStreamDesc, AudioFileFlags flag) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = default(IntPtr); int num = ExtAudioFileCreateWithUrl(url.Handle, fileType, ref inStreamDesc, IntPtr.Zero, (uint)flag, (IntPtr)(&intPtr)); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } if (intPtr == IntPtr.Zero) { throw new InvalidOperationException("Can not get object instance"); } return new ExtAudioFile(intPtr); } public unsafe static ExtAudioFileError WrapAudioFileID(IntPtr audioFileID, bool forWriting, out ExtAudioFile outAudioFile) { IntPtr ptr = default(IntPtr); ExtAudioFileError extAudioFileError = ExtAudioFileWrapAudioFileID(audioFileID, forWriting, (IntPtr)(&ptr)); if (extAudioFileError != 0) { outAudioFile = null; return extAudioFileError; } outAudioFile = new ExtAudioFile(ptr); return extAudioFileError; } public void Seek(long frameOffset) { int num = ExtAudioFileSeek(_extAudioFile, frameOffset); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } } public long FileTell() { long outFrameOffset = 0L; int num = ExtAudioFileTell(_extAudioFile, ref outFrameOffset); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } return outFrameOffset; } [Obsolete("Use overload with AudioBuffers")] public int Read(int numberFrames, AudioBufferList data) { if (data == null) { throw new ArgumentNullException("data"); } int num = ExtAudioFileRead(_extAudioFile, ref numberFrames, data); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } return numberFrames; } public uint Read(uint numberFrames, AudioBuffers audioBufferList, out ExtAudioFileError status) { if (audioBufferList == null) { throw new ArgumentNullException("audioBufferList"); } status = ExtAudioFileRead(_extAudioFile, ref numberFrames, (IntPtr)audioBufferList); return numberFrames; } [Obsolete("Use overload with AudioBuffers")] public void WriteAsync(int numberFrames, AudioBufferList data) { int num = ExtAudioFileWriteAsync(_extAudioFile, numberFrames, data); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } } public ExtAudioFileError WriteAsync(uint numberFrames, AudioBuffers audioBufferList) { if (audioBufferList == null) { throw new ArgumentNullException("audioBufferList"); } return ExtAudioFileWriteAsync(_extAudioFile, numberFrames, (IntPtr)audioBufferList); } public ExtAudioFileError Write(uint numberFrames, AudioBuffers audioBufferList) { if (audioBufferList == null) { throw new ArgumentNullException("audioBufferList"); } return ExtAudioFileWrite(_extAudioFile, numberFrames, (IntPtr)audioBufferList); } public ExtAudioFileError SynchronizeAudioConverter() { IntPtr zero = IntPtr.Zero; return ExtAudioFileSetProperty(_extAudioFile, PropertyIDType.ConverterConfig, Marshal.SizeOf(zero), zero); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (_extAudioFile != IntPtr.Zero) { ExtAudioFileDispose(_extAudioFile); _extAudioFile = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", EntryPoint = "ExtAudioFileOpenURL")] private static extern ExtAudioFileError ExtAudioFileOpenUrl(IntPtr inUrl, IntPtr outExtAudioFile); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileWrapAudioFileID(IntPtr inFileID, bool inForWriting, IntPtr outExtAudioFile); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] [Obsolete] private static extern int ExtAudioFileRead(IntPtr inExtAudioFile, ref int ioNumberFrames, AudioBufferList ioData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileRead(IntPtr inExtAudioFile, ref uint ioNumberFrames, IntPtr ioData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileWrite(IntPtr inExtAudioFile, uint inNumberFrames, IntPtr ioData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] [Obsolete] private static extern int ExtAudioFileWriteAsync(IntPtr inExtAudioFile, int inNumberFrames, AudioBufferList ioData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileWriteAsync(IntPtr inExtAudioFile, uint inNumberFrames, IntPtr ioData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileDispose(IntPtr inExtAudioFile); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileSeek(IntPtr inExtAudioFile, long inFrameOffset); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileTell(IntPtr inExtAudioFile, ref long outFrameOffset); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", EntryPoint = "ExtAudioFileCreateWithURL")] private static extern int ExtAudioFileCreateWithUrl(IntPtr inURL, [MarshalAs(UnmanagedType.U4)] AudioFileType inFileType, ref AudioStreamBasicDescription inStreamDesc, IntPtr inChannelLayout, uint flags, IntPtr outExtAudioFile); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileGetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, ref uint ioPropertyDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileGetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, ref uint ioPropertyDataSize, ref AudioStreamBasicDescription outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileGetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, ref uint ioPropertyDataSize, out IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileGetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, ref uint ioPropertyDataSize, out long outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileGetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, ref uint ioPropertyDataSize, out uint outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern ExtAudioFileError ExtAudioFileSetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, int ioPropertyDataSize, IntPtr outPropertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int ExtAudioFileSetProperty(IntPtr inExtAudioFile, PropertyIDType inPropertyID, uint ioPropertyDataSize, ref AudioStreamBasicDescription outPropertyData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/ExtAudioFileError.cs ================================================ namespace AudioUnit; public enum ExtAudioFileError { OK = 0, CodecUnavailableInputConsumed = -66559, CodecUnavailableInputNotConsumed = -66560, InvalidProperty = -66561, InvalidPropertySize = -66562, NonPCMClientFormat = -66563, InvalidChannelMap = -66564, InvalidOperationOrder = -66565, InvalidDataFormat = -66566, MaxPacketSizeUnknown = -66567, InvalidSeek = -66568, AsyncWriteTooLarge = -66569, AsyncWriteBufferOverflow = -66570, NotOpenError = -38, EndOfFileError = -39, PositionError = -40, FileNotFoundError = -43 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/RenderCallbackShared.cs ================================================ using System; using AudioToolbox; namespace AudioUnit; internal delegate AudioUnitStatus RenderCallbackShared(IntPtr clientData, ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, IntPtr data); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnit/RenderDelegate.cs ================================================ using AudioToolbox; namespace AudioUnit; public delegate AudioUnitStatus RenderDelegate(AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, AudioBuffers data); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnitWrapper/_AudioConverter.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; namespace AudioUnitWrapper; [Obsolete("Use AudioConverter")] public class _AudioConverter : IDisposable { private delegate int AudioConverterComplexInputDataProc(IntPtr inAudioConverrter, ref uint ioNumberDataPackets, AudioBufferList ioData, ref AudioStreamPacketDescription[] outDataPacketDescription, IntPtr inUserData); private enum AudioConverterPropertyIDType { kAudioConverterDecompressionMagicCookie = 1684891491 } private readonly GCHandle _handle; private IntPtr _audioConverter; public byte[] DecompressionMagicCookie { set { if (value != null) { AudioConverterSetProperty(_audioConverter, AudioConverterPropertyIDType.kAudioConverterDecompressionMagicCookie, (uint)value.Length, value); } } } public event EventHandler<_AudioConverterEventArgs> EncoderCallback; private _AudioConverter() { _handle = GCHandle.Alloc(this); _audioConverter = default(IntPtr); } [MonoPInvokeCallback(typeof(AudioConverterComplexInputDataProc))] private static int complexInputDataProc(IntPtr inAudioConverrter, ref uint ioNumberDataPackets, AudioBufferList ioData, ref AudioStreamPacketDescription[] outDataPacketDescription, IntPtr inUserData) { _AudioConverter audioConverter = (_AudioConverter)GCHandle.FromIntPtr(inUserData).Target; if (audioConverter.EncoderCallback != null) { _AudioConverterEventArgs e = new _AudioConverterEventArgs(ioNumberDataPackets, ioData, outDataPacketDescription); audioConverter.EncoderCallback(audioConverter, e); } return 0; } public unsafe static _AudioConverter CreateInstance(AudioStreamBasicDescription srcFormat, AudioStreamBasicDescription destFormat) { _AudioConverter audioConverter = new _AudioConverter(); IntPtr audioConverter2 = audioConverter._audioConverter; IntPtr outAudioConverter = (IntPtr)(&audioConverter2); int num = AudioConverterNew(ref srcFormat, ref destFormat, outAudioConverter); if (num != 0) { throw new ArgumentException($"Error code:{num}"); } return audioConverter; } public void FillBuffer(AudioBufferList data, uint numberFrames, AudioStreamPacketDescription[] packetDescs) { uint ioOutputDataPacketSize = numberFrames; int num = AudioConverterFillComplexBuffer(_audioConverter, complexInputDataProc, GCHandle.ToIntPtr(_handle), ref ioOutputDataPacketSize, data, packetDescs); if (num != 0 || ioOutputDataPacketSize == 0) { throw new InvalidOperationException($"Error code:{num}"); } } public void Dispose() { _handle.Free(); } [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox", EntryPoint = "AudioConverterNew")] private static extern int AudioConverterFillComplexBuffer(IntPtr inAudioConverter, AudioConverterComplexInputDataProc inInputDataProc, IntPtr inInputDataProcUserData, ref uint ioOutputDataPacketSize, AudioBufferList outOutputData, AudioStreamPacketDescription[] outPacketDescription); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioConverterNew(ref AudioStreamBasicDescription inSourceFormat, ref AudioStreamBasicDescription inDestinationFormat, IntPtr outAudioConverter); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioConverterSetProperty(IntPtr inAudioConverter, [MarshalAs(UnmanagedType.U4)] AudioConverterPropertyIDType inID, uint inDataSize, IntPtr inPrppertyData); [DllImport("/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox")] private static extern int AudioConverterSetProperty(IntPtr inAudioConverter, [MarshalAs(UnmanagedType.U4)] AudioConverterPropertyIDType inID, uint inDataSize, byte[] inPrppertyData); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/AudioUnitWrapper/_AudioConverterEventArgs.cs ================================================ using System; using AudioToolbox; namespace AudioUnitWrapper; [Obsolete("Use AudioConverter")] public class _AudioConverterEventArgs : EventArgs { public uint NumberDataPackets; public readonly AudioBufferList Data; public readonly AudioStreamPacketDescription[] DataPacketDescription; public _AudioConverterEventArgs(uint _NumberDataPackets, AudioBufferList _Data, AudioStreamPacketDescription[] _DataPacketDescription) { NumberDataPackets = _NumberDataPackets; Data = _Data; DataPacketDescription = _DataPacketDescription; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/ActionMarshaler.cs ================================================ using System.Reflection; using System.Runtime.InteropServices; namespace Builder; internal class ActionMarshaler : ICustomMarshaler where TAction : Delegate { private static ActionMarshaler marshaler; public void CleanUpManagedData(object ManagedObj) { } public void CleanUpNativeData(IntPtr pNativeData) { } public int GetNativeDataSize() { return -1; } public IntPtr MarshalManagedToNative(object ManagedObj) { if (ManagedObj is null) return IntPtr.Zero; if (ManagedObj is not Delegate) throw new MarshalDirectiveException("This custom marshaler must be used on a Delegate derived type."); return Marshal.GetFunctionPointerForDelegate(ManagedObj); } public object MarshalNativeToManaged(IntPtr pNativeData) { if (pNativeData == IntPtr.Zero) return default; var proxyType = typeof(TActionProxy); var createMethod = proxyType.GetMethod("Create", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[1] { typeof(IntPtr) }, null); if (createMethod is null) return default; return createMethod.Invoke(null, new object[] { pNativeData }); } public static ICustomMarshaler GetInstance(string cookie) { if (marshaler == null) return marshaler = new ActionMarshaler(); return marshaler; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/InterfaceMarshaler.cs ================================================ using ObjCRuntime; using System.Reflection; using System.Runtime.InteropServices; namespace Builder; public class InterfaceMarshaler : ICustomMarshaler where IInterfaceWrapper : IInterface { private static InterfaceMarshaler marshaler; void ICustomMarshaler.CleanUpManagedData(object ManagedObj) { } void ICustomMarshaler.CleanUpNativeData(IntPtr pNativeData) { } int ICustomMarshaler.GetNativeDataSize() { return -1; } IntPtr ICustomMarshaler.MarshalManagedToNative(object ManagedObj) { if (ManagedObj is null) return IntPtr.Zero; if (ManagedObj is not INativeObject nativeObject) throw new MarshalDirectiveException("This custom marshaler must be used on a INativeObject derived type."); return nativeObject.Handle; } object ICustomMarshaler.MarshalNativeToManaged(IntPtr pNativeData) { var constructorInfo = typeof(IInterfaceWrapper).GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[1] { typeof(IntPtr) }, null); return constructorInfo?.Invoke(new object[] { pNativeData }) ?? default; } public static ICustomMarshaler GetInstance(string cookie) { if (marshaler == null) return marshaler = new InterfaceMarshaler (); return marshaler; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/NSObjectMarshaler.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace ObjCRuntime; public class NSObjectMarshaler : ICustomMarshaler where T : NSObject { private static NSObjectMarshaler marshaler; public object MarshalNativeToManaged(IntPtr handle) { return (T)Runtime.GetNSObject(handle); } public IntPtr MarshalManagedToNative(object obj) { if (obj == null) { return IntPtr.Zero; } if (!(obj is T)) { throw new MarshalDirectiveException("This custom marshaler must be used on a NSObject derived type."); } return (obj as T).Handle; } public void CleanUpNativeData(IntPtr handle) { } public void CleanUpManagedData(object obj) { } public int GetNativeDataSize() { return -1; } public static ICustomMarshaler GetInstance(string cookie) { if (marshaler == null) { return marshaler = new NSObjectMarshaler(); } return marshaler; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/NativeConstructorBuilder.cs ================================================ using Foundation; using ObjCRuntime; using System.Reflection; using System.Reflection.Emit; using System.Runtime.Serialization; namespace Builder; internal class NativeConstructorBuilder : NativeImplementationBuilder { private static MethodInfo __trygetnsobject = typeof(Runtime).GetMethod("TryGetNSObject", BindingFlags.Static | BindingFlags.Public); private static MethodInfo __newobject = typeof(FormatterServices).GetMethod("GetUninitializedObject", BindingFlags.Static | BindingFlags.Public); private static MethodInfo __gettype = typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public); private static MethodInfo __retain = typeof(NSObject).GetMethod("Retain", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); private static FieldInfo __handlefld = typeof(NSObject).GetField("handle", BindingFlags.Instance | BindingFlags.NonPublic); private static FieldInfo __valuefld = typeof(RuntimeTypeHandle).GetField("value", BindingFlags.Instance | BindingFlags.NonPublic); private static IntPtr __selInit = ObjCRuntime.Selector.GetHandle("init"); internal NativeConstructorBuilder(ConstructorInfo cinfo) { ExportAttribute exportAttribute = (ExportAttribute)Attribute.GetCustomAttribute(cinfo, typeof(ExportAttribute)); Parameters = cinfo.GetParameters(); if (exportAttribute == null && Parameters.Length != 0) throw new ArgumentException("ConstructorInfo does not have a export attribute"); if (exportAttribute == null) SelectorHandle = __selInit; else SelectorHandle = new Selector(exportAttribute.Selector, alloc: true).Handle; Signature = "@@:"; ConvertParameters(Parameters, isstatic: true, isstret: false); DelegateType = CreateDelegateType(typeof(IntPtr), ParameterTypes); _constructor = cinfo; } private ConstructorInfo _constructor; internal override Delegate CreateDelegate() { DynamicMethod dynamicMethod = new DynamicMethod(Guid.NewGuid().ToString(), typeof(IntPtr), ParameterTypes, s_Module, skipVisibility: true); ILGenerator iLGenerator = dynamicMethod.GetILGenerator(); Label label = iLGenerator.DefineLabel(); iLGenerator.DeclareLocal(typeof(object)); DeclareLocals(iLGenerator); for (int i = 0; i < Parameters.Length; i++) { if (Parameters[i].ParameterType.IsByRef && (Parameters[i].ParameterType.GetElementType().IsSubclassOf(typeof(NSObject)) || Parameters[i].ParameterType.GetElementType() == typeof(NSObject))) iLGenerator.DeclareLocal(Parameters[i].ParameterType.GetElementType()); } iLGenerator.Emit(OpCodes.Ldarg_0); iLGenerator.Emit(OpCodes.Call, __trygetnsobject); iLGenerator.Emit(OpCodes.Brtrue, label); iLGenerator.Emit(OpCodes.Ldtoken, _constructor.DeclaringType); iLGenerator.Emit(OpCodes.Call, __gettype); iLGenerator.Emit(OpCodes.Call, __newobject); iLGenerator.Emit(OpCodes.Stloc_0); iLGenerator.Emit(OpCodes.Ldloc_0); iLGenerator.Emit(OpCodes.Ldarg_0); iLGenerator.Emit(OpCodes.Stfld, __handlefld); ConvertArguments(iLGenerator, 1); iLGenerator.Emit(OpCodes.Ldloc_0); iLGenerator.Emit(OpCodes.Castclass, _constructor.DeclaringType); LoadArguments(iLGenerator, 1); iLGenerator.Emit(OpCodes.Call, _constructor); UpdateByRefArguments(iLGenerator, 1); iLGenerator.Emit(OpCodes.Ldloc_0); iLGenerator.Emit(OpCodes.Call, __retain); iLGenerator.Emit(OpCodes.Pop); iLGenerator.MarkLabel(label); iLGenerator.Emit(OpCodes.Ldarg_0); iLGenerator.Emit(OpCodes.Ret); return dynamicMethod.CreateDelegate(DelegateType); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/NativeImplementationBuilder.cs ================================================ using Foundation; using ObjCRuntime; using System.Reflection; using System.Reflection.Emit; using System.Runtime.InteropServices; using Xamarin.Utiles; namespace Builder; internal abstract class NativeImplementationBuilder { static NativeImplementationBuilder() { __convertarray = typeof(NSArray).GetMethod("ArrayFromHandle", new Type[1] { typeof(IntPtr) }); __convertsarray = typeof(NSArray).GetMethod("StringArrayFromHandle", new Type[1] { typeof(IntPtr) }); __convertstring = typeof(NSString).GetMethod("ToString", Type.EmptyTypes); __getobject = typeof(Runtime).GetMethod("GetNSObject", BindingFlags.Static | BindingFlags.Public); __gethandle = typeof(NSObject).GetMethod("get_Handle", BindingFlags.Instance | BindingFlags.Public); __getFunctionPointerForDelegate = typeof(Marshal).GetMethod("GetFunctionPointerForDelegateInternal", BindingFlags.Static | BindingFlags.NonPublic); __intptrzero = typeof(IntPtr).GetField("Zero", BindingFlags.Static | BindingFlags.Public); s_Builder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName(Guid.NewGuid().ToString()), AssemblyBuilderAccess.Run); s_Module = s_Builder.DefineDynamicModule("Implementations"); } internal static AssemblyBuilder s_Builder; internal static ModuleBuilder s_Module; private static MethodInfo __convertarray; private static MethodInfo __convertsarray; private static MethodInfo __convertstring; private static MethodInfo __getobject; private static MethodInfo __gethandle; private static MethodInfo __getFunctionPointerForDelegate; private static FieldInfo __intptrzero; private Delegate _delegate; internal int ArgumentOffset { get; set; } internal IntPtr SelectorHandle { get; set; } internal Type[] ParameterTypes { get; set; } internal ParameterInfo[] Parameters { get; set; } internal Delegate Delegate { get { if ((object)_delegate == null) _delegate = CreateDelegate(); return _delegate; } } internal Type DelegateType { get; set; } internal string Signature { get; set; } internal abstract Delegate CreateDelegate(); protected Type CreateDelegateType(Type return_type, Type[] argument_types) { TypeBuilder typeBuilder = s_Module.DefineType(Guid.NewGuid().ToString(), TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.AutoClass, typeof(MulticastDelegate)); typeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[2] { typeof(object), typeof(int) }).SetImplementationFlags(MethodImplAttributes.CodeTypeMask); MethodBuilder methodBuilder = typeBuilder.DefineMethod("Invoke", MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig | MethodAttributes.VtableLayoutMask, return_type, argument_types); if (NeedsCustomMarshaler(return_type)) SetupParameter(methodBuilder, 0, return_type); for (int i = 0; i < argument_types.Length; i++) { var argument_type = argument_types[i]; Type? rawType = default; Type? proxyType = default; if (i >= ArgumentOffset) { rawType = Parameters[i - ArgumentOffset].ParameterType; if (rawType.IsInterface) { var protocolAttribute = rawType.GetCustomAttribute(); if (protocolAttribute is not null) proxyType = protocolAttribute.WrapperType; } else if(rawType.IsSubclassOf(typeof(Delegate))) { var proxyAttribute = rawType.GetCustomAttribute(); if (proxyAttribute is not null) proxyType = proxyAttribute.Type; } } if (NeedsCustomMarshalerWithProxy(argument_type, rawType, proxyType)) SetupParameterWithProxy(methodBuilder, i + 1, argument_type, rawType, proxyType); } methodBuilder.SetImplementationFlags(MethodImplAttributes.CodeTypeMask); return typeBuilder.CreateTypeInfo().AsType(); } protected Type CreateDelegateTypeWithProxy(Type return_type, Type[] argument_types, Type?[]? proxy_types) { TypeBuilder typeBuilder = s_Module.DefineType(Guid.NewGuid().ToString(), TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.AutoClass, typeof(MulticastDelegate)); typeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[2] { typeof(object), typeof(int) }).SetImplementationFlags(MethodImplAttributes.CodeTypeMask); MethodBuilder methodBuilder = typeBuilder.DefineMethod("Invoke", MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig | MethodAttributes.VtableLayoutMask, return_type, argument_types); if (NeedsCustomMarshaler(return_type)) SetupParameter(methodBuilder, 0, return_type); for (int i = 0; i < argument_types.Length; i++) { var argument_type = argument_types[i]; Type? raw_type = default; Type? proxy_type = default; if (i >= ArgumentOffset) { raw_type = Parameters[i - ArgumentOffset].ParameterType; if (raw_type.IsInterface) { var protocolAttribute = raw_type.GetCustomAttribute(); if (protocolAttribute is not null) proxy_type = protocolAttribute.WrapperType; } else proxy_type = proxy_types == null ? null : proxy_types[i - ArgumentOffset]; } if (NeedsCustomMarshalerWithProxy(argument_type, raw_type, proxy_type)) SetupParameterWithProxy(methodBuilder, i + 1, argument_type, raw_type, proxy_type); } methodBuilder.SetImplementationFlags(MethodImplAttributes.CodeTypeMask); return typeBuilder.CreateTypeInfo().AsType(); } private bool NeedsCustomMarshaler(Type t) { if (t == typeof(NSObject) || t.IsSubclassOf(typeof(NSObject))) return true; if (t == typeof(Selector)) return true; return false; } private bool NeedsCustomMarshalerWithProxy(Type t, Type? rawType, Type? proxyType) { if (t == typeof(NSObject) || t.IsSubclassOf(typeof(NSObject))) return true; if (t == typeof(Selector)) return true; if (rawType is null || proxyType is null) return false; if (rawType.IsInterface && typeof(INativeObject).IsAssignableFrom(rawType)) return true; if (rawType.IsSubclassOf(typeof(Delegate)) && proxyType is not null) return true; return false; } private Type MarshalerForType(Type t) { if (t == typeof(NSObject) || t.IsSubclassOf(typeof(NSObject))) return typeof(NSObjectMarshaler<>).MakeGenericType(t); if (t == typeof(Selector)) return typeof(SelectorMarshaler); throw new ArgumentException("Cannot determine marshaler type for: " + t); } private Type MarshalerForTypeWithProxy(Type t, Type? rawType , Type? proxyType) { if (t == typeof(NSObject) || t.IsSubclassOf(typeof(NSObject))) return typeof(NSObjectMarshaler<>).MakeGenericType(t); if (t == typeof(Selector)) return typeof(SelectorMarshaler); if (rawType is not null && proxyType is not null && rawType.IsInterface && typeof(INativeObject).IsAssignableFrom(rawType)) return typeof(InterfaceMarshaler<,>).MakeGenericType(rawType, proxyType); if (rawType is not null && proxyType is not null && rawType.IsSubclassOf(typeof(Delegate))) return typeof(ActionMarshaler<,>).MakeGenericType(rawType, proxyType); throw new ArgumentException("Cannot determine marshaler type for: " + t); } private void SetupParameter(MethodBuilder builder, int index, Type t) { ParameterBuilder parameterBuilder = builder.DefineParameter(index, ParameterAttributes.HasFieldMarshal, $"arg{index}"); ConstructorInfo? constructor = typeof(MarshalAsAttribute).GetConstructor(new Type[1] { typeof(UnmanagedType) }); FieldInfo field = typeof(MarshalAsAttribute).GetField("MarshalTypeRef"); CustomAttributeBuilder customAttribute = new CustomAttributeBuilder(constructor, new object[1] { UnmanagedType.CustomMarshaler }, new FieldInfo[1] { field }, new object[1] { MarshalerForType(t) }); parameterBuilder.SetCustomAttribute(customAttribute); } private void SetupParameterWithProxy(MethodBuilder builder, int index, Type t, Type? rawType , Type? proxyType) { ParameterBuilder parameterBuilder = builder.DefineParameter(index, ParameterAttributes.HasFieldMarshal, $"arg{index}"); ConstructorInfo? constructor = typeof(MarshalAsAttribute).GetConstructor(new Type[1] { typeof(UnmanagedType) }); FieldInfo field = typeof(MarshalAsAttribute).GetField("MarshalTypeRef"); CustomAttributeBuilder customAttribute = new CustomAttributeBuilder(constructor, new object[1] { UnmanagedType.CustomMarshaler }, new FieldInfo[1] { field }, new object[1] { MarshalerForTypeWithProxy(t, rawType, proxyType) }); parameterBuilder.SetCustomAttribute(customAttribute); } protected bool IsWrappedType(Type type) { if (type == typeof(NSObject) || type.IsSubclassOf(typeof(NSObject)) || type == typeof(string)) return true; return false; } protected void ConvertParameters(ParameterInfo[] parms, bool isstatic, bool isstret) { if (isstret) { ArgumentOffset = 3; ParameterTypes = new Type[ArgumentOffset + parms.Length]; ParameterTypes[0] = typeof(IntPtr); ParameterTypes[1] = isstatic ? typeof(IntPtr) : typeof(NSObject); ParameterTypes[2] = typeof(Selector); } else { ArgumentOffset = 2; ParameterTypes = new Type[ArgumentOffset + parms.Length]; ParameterTypes[0] = isstatic ? typeof(IntPtr) : typeof(NSObject); ParameterTypes[1] = typeof(Selector); } for (int i = 0; i < Parameters.Length; i++) { var parameterInfo = Parameters[i]; var parameterType = parameterInfo.ParameterType; if (parameterInfo is null) continue; if (parameterType is null) continue; if (parameterType.IsByRef && IsWrappedType(parameterType.GetElementType())) ParameterTypes[i + ArgumentOffset] = typeof(IntPtr).MakeByRefType(); else if (parameterType.IsArray && IsWrappedType(parameterType.GetElementType())) ParameterTypes[i + ArgumentOffset] = typeof(IntPtr); else if (typeof(INativeObject).IsAssignableFrom(parameterType) && !IsWrappedType(parameterType) && !parameterType.IsInterface) ParameterTypes[i + ArgumentOffset] = typeof(IntPtr); else if (parameterType == typeof(string)) ParameterTypes[i + ArgumentOffset] = typeof(NSString); else ParameterTypes[i + ArgumentOffset] = parameterType; Signature += TypeConverter.ToNative(parameterType); } } protected void DeclareLocals(ILGenerator il) { for (int i = 0; i < Parameters.Length; i++) { var parameterInfo = Parameters[i]; var parameterType = parameterInfo.ParameterType; if (parameterInfo is null) continue; if (parameterType is null) continue; if (parameterType.IsByRef && IsWrappedType(parameterType.GetElementType())) il.DeclareLocal(parameterType.GetElementType()); else if (parameterType.IsArray && IsWrappedType(parameterType.GetElementType())) il.DeclareLocal(parameterType); else if (parameterType == typeof(string)) il.DeclareLocal(typeof(string)); } } protected void ConvertArguments(ILGenerator il, int locoffset) { int i = ArgumentOffset; int num = 0; for (; i < ParameterTypes.Length; i++) { var parameterInfo = Parameters[i - ArgumentOffset]; var parameterType = parameterInfo.ParameterType; if (parameterInfo is null) continue; if (parameterType is null) continue; if (parameterType.IsByRef && Attribute.GetCustomAttribute(parameterInfo, typeof(OutAttribute)) == null && IsWrappedType(parameterType.GetElementType())) { Label label = il.DefineLabel(); Label label2 = il.DefineLabel(); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Brfalse, label); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Ldind_I); il.Emit(OpCodes.Call, __getobject); il.Emit(OpCodes.Br, label2); il.MarkLabel(label); il.Emit(OpCodes.Ldnull); il.MarkLabel(label2); il.Emit(OpCodes.Stloc, num + locoffset); num++; } else if (parameterType.IsArray && IsWrappedType(parameterType.GetElementType())) { Label label3 = il.DefineLabel(); Label label4 = il.DefineLabel(); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Brfalse, label3); il.Emit(OpCodes.Ldarg, i); if (parameterType.GetElementType() == typeof(string)) il.Emit(OpCodes.Call, __convertsarray); else il.Emit(OpCodes.Call, __convertarray.MakeGenericMethod(parameterType.GetElementType())); il.Emit(OpCodes.Br, label4); il.MarkLabel(label3); il.Emit(OpCodes.Ldnull); il.MarkLabel(label4); il.Emit(OpCodes.Stloc, num + locoffset); num++; } else if (parameterType == typeof(string)) { Label label5 = il.DefineLabel(); Label label6 = il.DefineLabel(); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Brfalse, label5); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Call, __convertstring); il.Emit(OpCodes.Br, label6); il.MarkLabel(label5); il.Emit(OpCodes.Ldnull); il.MarkLabel(label6); il.Emit(OpCodes.Stloc, num + locoffset); num++; } } } protected void LoadArguments(ILGenerator il, int locoffset) { int i = ArgumentOffset; int num = 0; for (; i < ParameterTypes.Length; i++) { var parameterInfo = Parameters[i - ArgumentOffset]; var parameterType = parameterInfo.ParameterType; if (parameterInfo is null) continue; if (parameterType is null) continue; //if (parameterType.IsInterface && typeof(INativeObject).IsAssignableFrom(parameterType)) //{ // //此处需要获取对象的构造函数,由于这里使用了Interface所以大概率这里或抱错获取不到构造 // var protocolAttribute = parameterType.GetCustomAttribute(); // if (protocolAttribute is null) // continue; // var wrapperType = protocolAttribute.WrapperType; // var constructorInfo = wrapperType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[1] { typeof(IntPtr) }, null); // il.Emit(OpCodes.Ldarg, i); // il.Emit(OpCodes.Newobj, constructorInfo); //} //else if (parameterType.IsByRef && IsWrappedType(parameterType.GetElementType())) { il.Emit(OpCodes.Ldloca_S, num + locoffset); num++; } else if (parameterType.IsArray && IsWrappedType(parameterType.GetElementType())) { il.Emit(OpCodes.Ldloc, num + locoffset); num++; } else if (typeof(INativeObject).IsAssignableFrom(parameterType) && !IsWrappedType(parameterType) && !parameterType.IsInterface) { il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Newobj, parameterType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[1] { typeof(IntPtr) }, null)); } else if (parameterType == typeof(string)) { il.Emit(OpCodes.Ldloc, num + locoffset); num++; } else il.Emit(OpCodes.Ldarg, i); } } protected void UpdateByRefArguments(ILGenerator il, int locoffset) { int i = ArgumentOffset; int num = 0; for (; i < ParameterTypes.Length; i++) { var parameterInfo = Parameters[i - ArgumentOffset]; var parameterType = parameterInfo.ParameterType; if (parameterInfo is null) continue; if (parameterType is null) continue; if (parameterType.IsByRef && IsWrappedType(parameterType.GetElementType())) { Label label = il.DefineLabel(); Label label2 = il.DefineLabel(); il.Emit(OpCodes.Ldloc, num + locoffset); il.Emit(OpCodes.Brfalse, label); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Ldloc, num + locoffset); il.Emit(OpCodes.Call, __gethandle); il.Emit(OpCodes.Stind_I); il.Emit(OpCodes.Br, label2); il.MarkLabel(label); il.Emit(OpCodes.Ldarg, i); il.Emit(OpCodes.Ldsfld, __intptrzero); il.Emit(OpCodes.Stind_I); il.MarkLabel(label2); num++; } else if (parameterType.IsArray && IsWrappedType(parameterType.GetElementType())) num++; else if (parameterType == typeof(string)) num++; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/NativeMethodBuilder.cs ================================================ using Foundation; using ObjCRuntime; using System.Reflection; using System.Reflection.Emit; using System.Runtime.InteropServices; namespace Builder; internal class NativeMethodBuilder : NativeImplementationBuilder { static MethodInfo __creatensstring = typeof(NSString).GetMethod("op_Explicit", new Type[1] { typeof(string) }); static MethodInfo __convertstruct = typeof(Marshal).GetMethod("StructureToPtr", new Type[3] { typeof(object), typeof(IntPtr), typeof(bool) }); static MethodInfo __buildarray = typeof(NSArray).GetMethod("FromNSObjects", new Type[1] { typeof(NSObject[]) }); static MethodInfo __buildsarray = typeof(NSArray).GetMethod("FromStrings", new Type[1] { typeof(string[]) }); internal NativeMethodBuilder(MethodInfo minfo) : this(minfo, minfo.DeclaringType, (ExportAttribute)Attribute.GetCustomAttribute(minfo.GetBaseDefinition(), typeof(ExportAttribute))) { } internal NativeMethodBuilder(MethodInfo minfo, Type type, ExportAttribute ea) { if (ea == null) throw new ArgumentException("MethodInfo does not have a export attribute"); if (minfo.DeclaringType.IsGenericType) throw new ArgumentException("MethodInfo cannot be in a generic type"); _methodInfo = minfo; _type = type; _returnType = ConvertReturnType(minfo.ReturnType); Parameters = minfo.GetParameters(); SelectorHandle = new Selector(ea.Selector ?? minfo.Name, alloc: true).Handle; Signature = $"{TypeConverter.ToNative(minfo.ReturnType)}@:"; ConvertParameters(Parameters, minfo.IsStatic, _isstret); DelegateType = CreateDelegateType(_returnType, ParameterTypes); } internal NativeMethodBuilder(Type type, MethodInfo methodInfo, ProtocolMemberAttribute attribute) { if (attribute == null) throw new ArgumentException("attribute does not have a ProtocolMember attribute"); if (type is null) throw new ArgumentException("type does not have a ProtocolMember attribute"); if (methodInfo is null) throw new ArgumentException("type does not have a MethodInfo"); if (methodInfo.DeclaringType.IsGenericType) throw new ArgumentException("MethodInfo cannot be in a generic type"); _methodInfo = methodInfo; _type = type; _returnType = ConvertReturnType(methodInfo.ReturnType); SelectorHandle = new Selector(attribute.Selector ?? methodInfo.Name, alloc: true).Handle; Parameters = methodInfo.GetParameters(); Signature = $"{TypeConverter.ToNative(methodInfo.ReturnType)}@:"; ConvertParameters(Parameters, attribute.IsStatic, _isstret); DelegateType = CreateDelegateTypeWithProxy(_returnType, ParameterTypes, attribute.ParameterBlockProxy); } MethodInfo _methodInfo; Type _type; Type _returnType; bool _isstret; private Type ConvertReturnType(Type type) { if (type.IsValueType && !type.IsEnum && type.Assembly != typeof(object).Assembly && Marshal.SizeOf(type) > IntPtr.Size * 2) { _isstret = true; return typeof(void); } if (type == typeof(string)) return typeof(NSString); if (type.IsArray && IsWrappedType(type.GetElementType())) return typeof(NSArray); if (typeof(INativeObject).IsAssignableFrom(type) && !IsWrappedType(type)) return typeof(IntPtr); return type; } internal override Delegate CreateDelegate() { DynamicMethod dynamicMethod = new DynamicMethod($"[{_methodInfo.DeclaringType}:{_methodInfo}]", _returnType, ParameterTypes, s_Module, skipVisibility: true); ILGenerator iLGenerator = dynamicMethod.GetILGenerator(); DeclareLocals(iLGenerator); ConvertArguments(iLGenerator, 0); if (!_methodInfo.IsStatic) { iLGenerator.Emit(OpCodes.Ldarg, _isstret ? 1 : 0); iLGenerator.Emit(OpCodes.Castclass, _type); } LoadArguments(iLGenerator, 0); //IL ú c# if (_methodInfo.IsVirtual) iLGenerator.Emit(OpCodes.Callvirt, _methodInfo); else iLGenerator.Emit(OpCodes.Call, _methodInfo); UpdateByRefArguments(iLGenerator, 0); // Return Type Type returnType = _methodInfo.ReturnType; if (returnType == typeof(string)) iLGenerator.Emit(OpCodes.Call, __creatensstring); else if (returnType.IsArray && IsWrappedType(returnType.GetElementType())) { if (returnType.GetElementType() == typeof(string)) iLGenerator.Emit(OpCodes.Call, __buildsarray); else iLGenerator.Emit(OpCodes.Call, __buildarray); } else if (typeof(INativeObject).IsAssignableFrom(returnType) && !IsWrappedType(returnType)) iLGenerator.Emit(OpCodes.Call, returnType.GetProperty("Handle").GetGetMethod()); else if (_isstret) { iLGenerator.Emit(OpCodes.Box, returnType); iLGenerator.Emit(OpCodes.Ldarg, 0); iLGenerator.Emit(OpCodes.Ldc_I4, 0); iLGenerator.Emit(OpCodes.Call, __convertstruct); } iLGenerator.Emit(OpCodes.Ret); return dynamicMethod.CreateDelegate(DelegateType); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/SelectorMarshaler.cs ================================================ using ObjCRuntime; using System; using System.Runtime.InteropServices; namespace Builder; public class SelectorMarshaler : ICustomMarshaler { private static SelectorMarshaler marshaler; public object MarshalNativeToManaged(IntPtr handle) { return new Selector(handle); } public IntPtr MarshalManagedToNative(object obj) { if (obj == null) { return IntPtr.Zero; } if (!(obj is Selector)) { throw new MarshalDirectiveException("This custom marshaler must be used on a Selector derived type."); } return (obj as Selector).Handle; } public void CleanUpNativeData(IntPtr handle) { } public void CleanUpManagedData(object obj) { } public int GetNativeDataSize() { return -1; } public static ICustomMarshaler GetInstance(string cookie) { if (marshaler == null) { return marshaler = new SelectorMarshaler(); } return marshaler; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Builder/TypeConverter.cs ================================================ using ObjCRuntime; using System.Reflection; using System.Text; using Xamarin.System; namespace Builder; public static class TypeConverter { public static Type ToManaged(string type) { switch (type[0]) { case '@': return typeof(IntPtr); case '#': return typeof(IntPtr); case ':': return typeof(IntPtr); case 'c': return typeof(char); case 'C': return typeof(char); case 's': return typeof(short); case 'S': return typeof(ushort); case 'i': case 'l': return typeof(int); case 'I': case 'L': return typeof(uint); case 'q': return typeof(long); case 'Q': return typeof(ulong); case 'f': return typeof(float); case 'd': return typeof(double); case 'b': return typeof(char); case 'B': return typeof(bool); case 'v': return typeof(void); case '?': return typeof(IntPtr); case '^': return typeof(IntPtr); case '*': return typeof(string); case '%': return typeof(IntPtr); case '[': throw new NotImplementedException("arrays"); case '(': throw new NotImplementedException("unions"); case '{': { string text = type.Substring(1, type.IndexOf('=') - 1); foreach (Assembly assembly in Runtime.GetAssemblies()) { Type[] types = assembly.GetTypes(); foreach (Type type2 in types) { if (type2.IsValueType && !type2.IsEnum && type2.Name == text) return type2; } } throw new NotImplementedException("struct marshalling: " + text + " " + type); } case '!': throw new NotImplementedException("vectors"); case 'r': throw new NotImplementedException("consts"); default: throw new Exception("Teach me how to parse: " + type); } } public static string ToNative(Type type) { if (type.IsGenericParameter) throw new ArgumentException("Unable to convert generic types"); if (type.IsByRef) return "^" + ToNative(type.GetElementType()); if (type == typeof(IntPtr)) { return "^v"; } if (type == typeof(byte)) { return "c"; } if (type == typeof(sbyte)) { return "c"; } if (type == typeof(char)) { return "c"; } if (type == typeof(short)) { return "s"; } if (type == typeof(ushort)) { return "S"; } if (type == typeof(int)) { return "i"; } if (type == typeof(uint)) { return "I"; } if (type == typeof(long)) { return "q"; } if (type == typeof(ulong)) { return "Q"; } if (type == typeof(float)) { return "f"; } if (type == typeof(double)) { return "d"; } if (type == typeof(bool)) { return "B"; } if (type == typeof(void)) { return "v"; } if (type == typeof(string)) { return "@"; } if (type == typeof(Selector)) { return ":"; } if (type == typeof(Class)) { return "#"; } if (type == typeof(nfloat)) { if (IntPtr.Size != 8) return "f"; return "d"; } if (type == typeof(IntPtr)) { if (IntPtr.Size != 8) { return "i"; } return "q"; } if (type == typeof(UIntPtr)) { if (IntPtr.Size != 8) { return "I"; } return "Q"; } if (typeof(INativeObject).IsAssignableFrom(type)) { return "@"; } if (type.IsValueType && !type.IsEnum) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("{{{0}=", type.Name); FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (FieldInfo fieldInfo in fields) stringBuilder.Append(ToNative(fieldInfo.FieldType)); stringBuilder.Append("}"); return stringBuilder.ToString(); } if (type.IsValueType && type.IsEnum) return ToNative(Enum.GetUnderlyingType(type)); if (type.IsArray) return "@"; if (type.IsSubclassOf(typeof(Delegate))) return "^v"; throw new NotImplementedException("Don't know how to marshal: " + type.ToString()); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Constants.cs ================================================ public static class Constants { public const string AddressBookLibrary = "/System/Library/Frameworks/AddressBook.framework/AddressBook"; public const string AppKitLibrary = "/System/Library/Frameworks/AppKit.framework/AppKit"; public const string CoreFoundationLibrary = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"; public const string CoreGraphicsLibrary = "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics"; public const string CoreTextLibrary = "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText"; public const string FoundationLibrary = "/System/Library/Frameworks/Foundation.framework/Foundation"; public const string ObjectiveCLibrary = "/usr/lib/libobjc.dylib"; public const string SystemLibrary = "/usr/lib/libSystem.dylib"; public const string QuartzLibrary = "/System/Library/Frameworks/QuartzCore.framework/QuartzCore"; public const string AudioToolboxLibrary = "/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox"; public const string WebKitLibrary = "/System/Library/Frameworks/WebKit.framework/WebKit"; public const string AudioUnitLibrary = "/System/Library/Frameworks/AudioUnit.framework/AudioUnit"; public const string CoreAudioLibrary = "/System/Library/Frameworks/CoreAudio.framework/CoreAudio"; public const string CoreAnimationLibrary = "/System/Library/Frameworks/QuartzCore.framework/QuartzCore"; public const string ImageIOLibrary = "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO"; public const string QTKitLibrary = "/System/Library/Frameworks/QTKit.framework/QTKit"; public const string CoreLocationLibrary = "/System/Library/Frameworks/CoreLocation.framework/CoreLocation"; public const string SecurityLibrary = "/System/Library/Frameworks/Security.framework/Security"; public const string CoreVideoLibrary = "/System/Library/Frameworks/CoreVideo.framework/CoreVideo"; public const string QuartzComposerLibrary = "/System/Library/Frameworks/Quartz.framework/Frameworks/QuartzComposer.framework/QuartzComposer"; public const string CoreWlanLibrary = "/System/Library/Frameworks/CoreWLAN.framework/CoreWLAN"; public const string PdfKitLibrary = "/System/Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework/PDFKit"; public const string ImageKitLibrary = "/System/Library/Frameworks/Quartz.framework/Frameworks/ImageKit.framework/ImageKit"; public const string OpenGLLibrary = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; public const string OpenALLibrary = "/System/Library/Frameworks/OpenAL.framework/OpenAL"; public const string CoreMediaLibrary = "/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia"; public const string ScriptingBridgeLibrary = "/System/Library/Frameworks/ScriptingBridge.framework/ScriptingBridge"; public const string CoreDataLibrary = "/System/Library/Frameworks/CoreData.framework/CoreData"; public const string CoreImageLibrary = "/System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/CoreImage"; public const string CFNetworkLibrary = "/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork"; public const string CoreMidiLibrary = "/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI"; public const string QuickLookLibrary = "/System/Library/Frameworks/QuickLook.framework/QuickLook"; public const string AVFoundationLibrary = "/System/Library/Frameworks/AVFoundation.framework/AVFoundation"; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAction.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Protocol] [Register("CAAction", true)] [Model] public class CAAction : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAAction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAction(IntPtr handle) : base(handle) { } [Export("runActionForKey:object:arguments:")] public virtual void RunAction(string eventKey, NSObject obj, NSDictionary arguments) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAnimation.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAAnimation", true)] public class CAAnimation : NSObject { [Register] private sealed class _CAAnimationDelegate : CAAnimationDelegate { internal EventHandler animationStarted; internal EventHandler animationStopped; [Preserve(Conditional = true)] public override void AnimationStarted(CAAnimation anim) { animationStarted?.Invoke(anim, EventArgs.Empty); } [Preserve(Conditional = true)] public override void AnimationStopped(CAAnimation anim, bool finished) { EventHandler eventHandler = animationStopped; if (eventHandler != null) { CAAnimationStateEventArgs e = new CAAnimationStateEventArgs(finished); eventHandler(anim, e); } } } private const string Linear = "linear"; private const string Discrete = "discrete"; private const string Paced = "paced"; private const string Cubic = "cubic"; private const string RotateAuto = "auto"; private const string RotateAutoReverse = "autoReverse"; private static readonly IntPtr selTimingFunctionHandle = Selector.GetHandle("timingFunction"); private static readonly IntPtr selSetTimingFunction_Handle = Selector.GetHandle("setTimingFunction:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selIsRemovedOnCompletionHandle = Selector.GetHandle("isRemovedOnCompletion"); private static readonly IntPtr selSetRemovedOnCompletion_Handle = Selector.GetHandle("setRemovedOnCompletion:"); private static readonly IntPtr selBeginTimeHandle = Selector.GetHandle("beginTime"); private static readonly IntPtr selSetBeginTime_Handle = Selector.GetHandle("setBeginTime:"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selSetDuration_Handle = Selector.GetHandle("setDuration:"); private static readonly IntPtr selSpeedHandle = Selector.GetHandle("speed"); private static readonly IntPtr selSetSpeed_Handle = Selector.GetHandle("setSpeed:"); private static readonly IntPtr selTimeOffsetHandle = Selector.GetHandle("timeOffset"); private static readonly IntPtr selSetTimeOffset_Handle = Selector.GetHandle("setTimeOffset:"); private static readonly IntPtr selRepeatCountHandle = Selector.GetHandle("repeatCount"); private static readonly IntPtr selSetRepeatCount_Handle = Selector.GetHandle("setRepeatCount:"); private static readonly IntPtr selRepeatDurationHandle = Selector.GetHandle("repeatDuration"); private static readonly IntPtr selSetRepeatDuration_Handle = Selector.GetHandle("setRepeatDuration:"); private static readonly IntPtr selAutoreversesHandle = Selector.GetHandle("autoreverses"); private static readonly IntPtr selSetAutoreverses_Handle = Selector.GetHandle("setAutoreverses:"); private static readonly IntPtr selFillModeHandle = Selector.GetHandle("fillMode"); private static readonly IntPtr selSetFillMode_Handle = Selector.GetHandle("setFillMode:"); private static readonly IntPtr selUsesSceneTimeBaseHandle = Selector.GetHandle("usesSceneTimeBase"); private static readonly IntPtr selSetUsesSceneTimeBase_Handle = Selector.GetHandle("setUsesSceneTimeBase:"); private static readonly IntPtr selAnimationHandle = Selector.GetHandle("animation"); private static readonly IntPtr selDefaultValueForKey_Handle = Selector.GetHandle("defaultValueForKey:"); private static readonly IntPtr selWillChangeValueForKey_Handle = Selector.GetHandle("willChangeValueForKey:"); private static readonly IntPtr selDidChangeValueForKey_Handle = Selector.GetHandle("didChangeValueForKey:"); private static readonly IntPtr selShouldArchiveValueForKey_Handle = Selector.GetHandle("shouldArchiveValueForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAAnimation"); private object __mt_TimingFunction_var; private object __mt_WeakDelegate_var; private static NSString _TransitionFade; private static NSString _TransitionMoveIn; private static NSString _TransitionPush; private static NSString _TransitionReveal; private static NSString _TransitionFromRight; private static NSString _TransitionFromLeft; private static NSString _TransitionFromTop; private static NSString _TransitionFromBottom; private static NSString _AnimationLinear; private static NSString _AnimationDescrete; private static NSString _AnimationPaced; private static NSString _RotateModeAuto; private static NSString _RotateModeAutoReverse; [Obsolete("Use BeginTime instead")] public double CFTimeInterval { get { return BeginTime; } set { BeginTime = value; } } public override IntPtr ClassHandle => class_ptr; public virtual CAMediaTimingFunction TimingFunction { [Export("timingFunction", ArgumentSemantic.Retain)] get { return (CAMediaTimingFunction)(__mt_TimingFunction_var = ((!IsDirectBinding) ? ((CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimingFunctionHandle))) : ((CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimingFunctionHandle))))); } [Export("setTimingFunction:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimingFunction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimingFunction_Handle, value.Handle); } __mt_TimingFunction_var = value; } } public CAAnimationDelegate Delegate { get { return WeakDelegate as CAAnimationDelegate; } set { WeakDelegate = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Retain)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public virtual bool RemovedOnCompletion { [Export("isRemovedOnCompletion")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRemovedOnCompletionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRemovedOnCompletionHandle); } [Export("setRemovedOnCompletion:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRemovedOnCompletion_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRemovedOnCompletion_Handle, value); } } } public virtual double BeginTime { [Export("beginTime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBeginTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBeginTimeHandle); } [Export("setBeginTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBeginTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBeginTime_Handle, value); } } } public virtual double Duration { [Export("duration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } [Export("setDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDuration_Handle, value); } } } public virtual float Speed { [Export("speed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selSpeedHandle); } [Export("setSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetSpeed_Handle, value); } } } public virtual double TimeOffset { [Export("timeOffset")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeOffsetHandle); } [Export("setTimeOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTimeOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTimeOffset_Handle, value); } } } public virtual float RepeatCount { [Export("repeatCount")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRepeatCountHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRepeatCountHandle); } [Export("setRepeatCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRepeatCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRepeatCount_Handle, value); } } } public virtual double RepeatDuration { [Export("repeatDuration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRepeatDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRepeatDurationHandle); } [Export("setRepeatDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRepeatDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRepeatDuration_Handle, value); } } } public virtual bool AutoReverses { [Export("autoreverses")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoreversesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoreversesHandle); } [Export("setAutoreverses:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoreverses_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoreverses_Handle, value); } } } public virtual string FillMode { [Export("fillMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFillModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillModeHandle)); } [Export("setFillMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillMode_Handle, arg); } NSString.ReleaseNative(arg); } } [MountainLion] public virtual bool UsesSceneTimeBase { [MountainLion] [Export("usesSceneTimeBase")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesSceneTimeBaseHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesSceneTimeBaseHandle); } [MountainLion] [Export("setUsesSceneTimeBase:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesSceneTimeBase_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesSceneTimeBase_Handle, value); } } } [Field("kCATransitionFade", "CoreAnimation")] public static NSString TransitionFade { get { if (_TransitionFade == null) { _TransitionFade = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionFade"); } return _TransitionFade; } } [Field("kCATransitionMoveIn", "CoreAnimation")] public static NSString TransitionMoveIn { get { if (_TransitionMoveIn == null) { _TransitionMoveIn = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionMoveIn"); } return _TransitionMoveIn; } } [Field("kCATransitionPush", "CoreAnimation")] public static NSString TransitionPush { get { if (_TransitionPush == null) { _TransitionPush = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionPush"); } return _TransitionPush; } } [Field("kCATransitionReveal", "CoreAnimation")] public static NSString TransitionReveal { get { if (_TransitionReveal == null) { _TransitionReveal = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionReveal"); } return _TransitionReveal; } } [Field("kCATransitionFromRight", "CoreAnimation")] public static NSString TransitionFromRight { get { if (_TransitionFromRight == null) { _TransitionFromRight = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionFromRight"); } return _TransitionFromRight; } } [Field("kCATransitionFromLeft", "CoreAnimation")] public static NSString TransitionFromLeft { get { if (_TransitionFromLeft == null) { _TransitionFromLeft = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionFromLeft"); } return _TransitionFromLeft; } } [Field("kCATransitionFromTop", "CoreAnimation")] public static NSString TransitionFromTop { get { if (_TransitionFromTop == null) { _TransitionFromTop = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionFromTop"); } return _TransitionFromTop; } } [Field("kCATransitionFromBottom", "CoreAnimation")] public static NSString TransitionFromBottom { get { if (_TransitionFromBottom == null) { _TransitionFromBottom = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransitionFromBottom"); } return _TransitionFromBottom; } } [Field("kCAAnimationLinear", "CoreAnimation")] public static NSString AnimationLinear { get { if (_AnimationLinear == null) { _AnimationLinear = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationLinear"); } return _AnimationLinear; } } [Field("kCAAnimationDiscrete", "CoreAnimation")] public static NSString AnimationDescrete { get { if (_AnimationDescrete == null) { _AnimationDescrete = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationDiscrete"); } return _AnimationDescrete; } } [Field("kCAAnimationPaced", "CoreAnimation")] public static NSString AnimationPaced { get { if (_AnimationPaced == null) { _AnimationPaced = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationPaced"); } return _AnimationPaced; } } [Field("kCAAnimationRotateAuto", "CoreAnimation")] public static NSString RotateModeAuto { get { if (_RotateModeAuto == null) { _RotateModeAuto = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationRotateAuto"); } return _RotateModeAuto; } } [Field("kCAAnimationRotateAutoReverse", "CoreAnimation")] public static NSString RotateModeAutoReverse { get { if (_RotateModeAutoReverse == null) { _RotateModeAutoReverse = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationRotateAutoReverse"); } return _RotateModeAutoReverse; } } public event EventHandler AnimationStarted { add { _CAAnimationDelegate cAAnimationDelegate = EnsureCAAnimationDelegate(); cAAnimationDelegate.animationStarted = (EventHandler)System.Delegate.Combine(cAAnimationDelegate.animationStarted, value); } remove { _CAAnimationDelegate cAAnimationDelegate = EnsureCAAnimationDelegate(); cAAnimationDelegate.animationStarted = (EventHandler)System.Delegate.Remove(cAAnimationDelegate.animationStarted, value); } } public event EventHandler AnimationStopped { add { _CAAnimationDelegate cAAnimationDelegate = EnsureCAAnimationDelegate(); cAAnimationDelegate.animationStopped = (EventHandler)System.Delegate.Combine(cAAnimationDelegate.animationStopped, value); } remove { _CAAnimationDelegate cAAnimationDelegate = EnsureCAAnimationDelegate(); cAAnimationDelegate.animationStopped = (EventHandler)System.Delegate.Remove(cAAnimationDelegate.animationStopped, value); } } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", EntryPoint = "CACurrentMediaTime")] public static extern double CurrentMediaTime(); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimation(IntPtr handle) : base(handle) { } [Export("animation")] public static CAAnimation CreateAnimation() { return (CAAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAnimationHandle)); } [Export("defaultValueForKey:")] public static NSObject DefaultValue(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("willChangeValueForKey:")] public virtual void WillChangeValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("didChangeValueForKey:")] public virtual void DidChangeValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDidChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDidChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("shouldArchiveValueForKey:")] public virtual bool ShouldArchiveValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShouldArchiveValueForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShouldArchiveValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } private _CAAnimationDelegate EnsureCAAnimationDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _CAAnimationDelegate)) { nSObject = (WeakDelegate = new _CAAnimationDelegate()); } return (_CAAnimationDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TimingFunction_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAnimationDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAAnimationDelegate", false)] [Model] public class CAAnimationDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAAnimationDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAAnimationDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimationDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimationDelegate(IntPtr handle) : base(handle) { } [Export("animationDidStart:")] public virtual void AnimationStarted(CAAnimation anim) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("animationDidStop:finished:")] public virtual void AnimationStopped(CAAnimation anim, bool finished) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAnimationGroup.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAAnimationGroup", true)] public class CAAnimationGroup : CAAnimation { private static readonly IntPtr selAnimationsHandle = Selector.GetHandle("animations"); private static readonly IntPtr selSetAnimations_Handle = Selector.GetHandle("setAnimations:"); private static readonly IntPtr selAnimationHandle = Selector.GetHandle("animation"); private static readonly IntPtr class_ptr = Class.GetHandle("CAAnimationGroup"); private object __mt_Animations_var; public override IntPtr ClassHandle => class_ptr; public virtual CAAnimation[] Animations { [Export("animations", ArgumentSemantic.Copy)] get { return (CAAnimation[])(__mt_Animations_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationsHandle)))); } [Export("setAnimations:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAnimations_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAnimations_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Animations_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAAnimationGroup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAAnimationGroup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimationGroup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAAnimationGroup(IntPtr handle) : base(handle) { } [Export("animation")] public new static CAAnimationGroup CreateAnimation() { return (CAAnimationGroup)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAnimationHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Animations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAnimationStateEventArgs.cs ================================================ using System; namespace CoreAnimation; public class CAAnimationStateEventArgs : EventArgs { public bool Finished { get; set; } public CAAnimationStateEventArgs(bool finished) { Finished = finished; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAAutoresizingMask.cs ================================================ using System; namespace CoreAnimation; [Flags] public enum CAAutoresizingMask { NotSizable = 0, MinXMargin = 1, WidthSizable = 2, MaxXMargin = 4, MinYMargin = 8, HeightSizable = 0x10, MaxYMargin = 0x20 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CABarBeatTime.cs ================================================ namespace CoreAnimation; public struct CABarBeatTime { public int Bar; public ushort Beat; public ushort Subbeat; public ushort SubbeatDivisor; public ushort Reserved; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CABasicAnimation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CABasicAnimation", true)] public class CABasicAnimation : CAPropertyAnimation { private static readonly IntPtr selFromValueHandle = Selector.GetHandle("fromValue"); private static readonly IntPtr selSetFromValue_Handle = Selector.GetHandle("setFromValue:"); private static readonly IntPtr selToValueHandle = Selector.GetHandle("toValue"); private static readonly IntPtr selSetToValue_Handle = Selector.GetHandle("setToValue:"); private static readonly IntPtr selByValueHandle = Selector.GetHandle("byValue"); private static readonly IntPtr selSetByValue_Handle = Selector.GetHandle("setByValue:"); private static readonly IntPtr selAnimationWithKeyPath_Handle = Selector.GetHandle("animationWithKeyPath:"); private static readonly IntPtr class_ptr = Class.GetHandle("CABasicAnimation"); private object __mt_From_var; private object __mt_To_var; private object __mt_By_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject From { [Export("fromValue", ArgumentSemantic.Retain)] get { return (NSObject)(__mt_From_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFromValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFromValueHandle)))); } [Export("setFromValue:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFromValue_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFromValue_Handle, value?.Handle ?? IntPtr.Zero); } __mt_From_var = value; } } public virtual NSObject To { [Export("toValue", ArgumentSemantic.Retain)] get { return (NSObject)(__mt_To_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selToValueHandle)))); } [Export("setToValue:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetToValue_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetToValue_Handle, value?.Handle ?? IntPtr.Zero); } __mt_To_var = value; } } public virtual NSObject By { [Export("byValue", ArgumentSemantic.Retain)] get { return (NSObject)(__mt_By_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selByValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selByValueHandle)))); } [Export("setByValue:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetByValue_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetByValue_Handle, value?.Handle ?? IntPtr.Zero); } __mt_By_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CABasicAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CABasicAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CABasicAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CABasicAnimation(IntPtr handle) : base(handle) { } [Export("animationWithKeyPath:")] public new static CABasicAnimation FromKeyPath(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); CABasicAnimation result = (CABasicAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAnimationWithKeyPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_From_var = null; __mt_To_var = null; __mt_By_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAConstraint.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAConstraint", true)] public class CAConstraint : NSObject { private static readonly IntPtr selAttributeHandle = Selector.GetHandle("attribute"); private static readonly IntPtr selSourceNameHandle = Selector.GetHandle("sourceName"); private static readonly IntPtr selSourceAttributeHandle = Selector.GetHandle("sourceAttribute"); private static readonly IntPtr selScaleHandle = Selector.GetHandle("scale"); private static readonly IntPtr selConstraintWithAttributeRelativeToAttributeScaleOffset_Handle = Selector.GetHandle("constraintWithAttribute:relativeTo:attribute:scale:offset:"); private static readonly IntPtr selConstraintWithAttributeRelativeToAttributeOffset_Handle = Selector.GetHandle("constraintWithAttribute:relativeTo:attribute:offset:"); private static readonly IntPtr selConstraintWithAttributeRelativeToAttribute_Handle = Selector.GetHandle("constraintWithAttribute:relativeTo:attribute:"); private static readonly IntPtr selInitWithAttributeRelativeToAttributeScaleOffset_Handle = Selector.GetHandle("initWithAttribute:relativeTo:attribute:scale:offset:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAConstraint"); public override IntPtr ClassHandle => class_ptr; public virtual CAConstraintAttribute Attribute { [Export("attribute")] get { if (IsDirectBinding) { return (CAConstraintAttribute)Messaging.int_objc_msgSend(base.Handle, selAttributeHandle); } return (CAConstraintAttribute)Messaging.int_objc_msgSendSuper(base.SuperHandle, selAttributeHandle); } } public virtual string SourceName { [Export("sourceName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceNameHandle)); } } public virtual CAConstraintAttribute SourceAttribute { [Export("sourceAttribute")] get { if (IsDirectBinding) { return (CAConstraintAttribute)Messaging.int_objc_msgSend(base.Handle, selSourceAttributeHandle); } return (CAConstraintAttribute)Messaging.int_objc_msgSendSuper(base.SuperHandle, selSourceAttributeHandle); } } public virtual float Scale { [Export("scale")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAConstraint() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAConstraint(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAConstraint(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAConstraint(IntPtr handle) : base(handle) { } [Export("constraintWithAttribute:relativeTo:attribute:scale:offset:")] public static CAConstraint Create(CAConstraintAttribute attribute, string relativeToSource, CAConstraintAttribute srcAttr, float scale, float offset) { if (relativeToSource == null) { throw new ArgumentNullException("relativeToSource"); } IntPtr arg = NSString.CreateNative(relativeToSource); CAConstraint result = (CAConstraint)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int_IntPtr_int_float_float(class_ptr, selConstraintWithAttributeRelativeToAttributeScaleOffset_Handle, (int)attribute, arg, (int)srcAttr, scale, offset)); NSString.ReleaseNative(arg); return result; } [Export("constraintWithAttribute:relativeTo:attribute:offset:")] public static CAConstraint Create(CAConstraintAttribute attribute, string relativeToSource, CAConstraintAttribute srcAttr, float offset) { if (relativeToSource == null) { throw new ArgumentNullException("relativeToSource"); } IntPtr arg = NSString.CreateNative(relativeToSource); CAConstraint result = (CAConstraint)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int_IntPtr_int_float(class_ptr, selConstraintWithAttributeRelativeToAttributeOffset_Handle, (int)attribute, arg, (int)srcAttr, offset)); NSString.ReleaseNative(arg); return result; } [Export("constraintWithAttribute:relativeTo:attribute:")] public static CAConstraint Create(CAConstraintAttribute attribute, string relativeToSource, CAConstraintAttribute srcAttribute) { if (relativeToSource == null) { throw new ArgumentNullException("relativeToSource"); } IntPtr arg = NSString.CreateNative(relativeToSource); CAConstraint result = (CAConstraint)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int_IntPtr_int(class_ptr, selConstraintWithAttributeRelativeToAttribute_Handle, (int)attribute, arg, (int)srcAttribute)); NSString.ReleaseNative(arg); return result; } [Export("initWithAttribute:relativeTo:attribute:scale:offset:")] public CAConstraint(CAConstraintAttribute attribute, string relativeToSource, CAConstraintAttribute srcAttr, float scale, float offset) : base(NSObjectFlag.Empty) { if (relativeToSource == null) { throw new ArgumentNullException("relativeToSource"); } IntPtr arg = NSString.CreateNative(relativeToSource); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int_IntPtr_int_float_float(base.Handle, selInitWithAttributeRelativeToAttributeScaleOffset_Handle, (int)attribute, arg, (int)srcAttr, scale, offset); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int_IntPtr_int_float_float(base.SuperHandle, selInitWithAttributeRelativeToAttributeScaleOffset_Handle, (int)attribute, arg, (int)srcAttr, scale, offset); } NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAConstraintAttribute.cs ================================================ namespace CoreAnimation; public enum CAConstraintAttribute { MinX, MidX, MaxX, Width, MinY, MidY, MaxY, Height } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAConstraintLayoutManager.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAConstraintLayoutManager", true)] public class CAConstraintLayoutManager : NSObject { private static readonly IntPtr selLayoutManagerHandle = Selector.GetHandle("layoutManager"); private static readonly IntPtr class_ptr = Class.GetHandle("CAConstraintLayoutManager"); private static object __mt_LayoutManager_var_static; public override IntPtr ClassHandle => class_ptr; public static CAConstraintLayoutManager LayoutManager { [Export("layoutManager")] get { return (CAConstraintLayoutManager)(__mt_LayoutManager_var_static = (CAConstraintLayoutManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayoutManagerHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAConstraintLayoutManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAConstraintLayoutManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAConstraintLayoutManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAConstraintLayoutManager(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAEdgeAntialiasingMask.cs ================================================ using System; namespace CoreAnimation; [Flags] public enum CAEdgeAntialiasingMask { LeftEdge = 1, RightEdge = 2, BottomEdge = 4, TopEdge = 8, All = 0xF, LeftRightEdges = 3, TopBottomEdges = 0xC } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAEmitterCell.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAEmitterCell", true)] public class CAEmitterCell : NSObject { private CGImage contents; private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selBirthRateHandle = Selector.GetHandle("birthRate"); private static readonly IntPtr selSetBirthRate_Handle = Selector.GetHandle("setBirthRate:"); private static readonly IntPtr selLifetimeHandle = Selector.GetHandle("lifetime"); private static readonly IntPtr selSetLifetime_Handle = Selector.GetHandle("setLifetime:"); private static readonly IntPtr selLifetimeRangeHandle = Selector.GetHandle("lifetimeRange"); private static readonly IntPtr selSetLifetimeRange_Handle = Selector.GetHandle("setLifetimeRange:"); private static readonly IntPtr selEmissionLatitudeHandle = Selector.GetHandle("emissionLatitude"); private static readonly IntPtr selSetEmissionLatitude_Handle = Selector.GetHandle("setEmissionLatitude:"); private static readonly IntPtr selEmissionLongitudeHandle = Selector.GetHandle("emissionLongitude"); private static readonly IntPtr selSetEmissionLongitude_Handle = Selector.GetHandle("setEmissionLongitude:"); private static readonly IntPtr selEmissionRangeHandle = Selector.GetHandle("emissionRange"); private static readonly IntPtr selSetEmissionRange_Handle = Selector.GetHandle("setEmissionRange:"); private static readonly IntPtr selVelocityHandle = Selector.GetHandle("velocity"); private static readonly IntPtr selSetVelocity_Handle = Selector.GetHandle("setVelocity:"); private static readonly IntPtr selVelocityRangeHandle = Selector.GetHandle("velocityRange"); private static readonly IntPtr selSetVelocityRange_Handle = Selector.GetHandle("setVelocityRange:"); private static readonly IntPtr selXAccelerationHandle = Selector.GetHandle("xAcceleration"); private static readonly IntPtr selSetXAcceleration_Handle = Selector.GetHandle("setXAcceleration:"); private static readonly IntPtr selYAccelerationHandle = Selector.GetHandle("yAcceleration"); private static readonly IntPtr selSetYAcceleration_Handle = Selector.GetHandle("setYAcceleration:"); private static readonly IntPtr selZAccelerationHandle = Selector.GetHandle("zAcceleration"); private static readonly IntPtr selSetZAcceleration_Handle = Selector.GetHandle("setZAcceleration:"); private static readonly IntPtr selScaleHandle = Selector.GetHandle("scale"); private static readonly IntPtr selSetScale_Handle = Selector.GetHandle("setScale:"); private static readonly IntPtr selScaleRangeHandle = Selector.GetHandle("scaleRange"); private static readonly IntPtr selSetScaleRange_Handle = Selector.GetHandle("setScaleRange:"); private static readonly IntPtr selScaleSpeedHandle = Selector.GetHandle("scaleSpeed"); private static readonly IntPtr selSetScaleSpeed_Handle = Selector.GetHandle("setScaleSpeed:"); private static readonly IntPtr selSpinHandle = Selector.GetHandle("spin"); private static readonly IntPtr selSetSpin_Handle = Selector.GetHandle("setSpin:"); private static readonly IntPtr selSpinRangeHandle = Selector.GetHandle("spinRange"); private static readonly IntPtr selSetSpinRange_Handle = Selector.GetHandle("setSpinRange:"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selRedSpeedHandle = Selector.GetHandle("redSpeed"); private static readonly IntPtr selSetRedSpeed_Handle = Selector.GetHandle("setRedSpeed:"); private static readonly IntPtr selGreenSpeedHandle = Selector.GetHandle("greenSpeed"); private static readonly IntPtr selSetGreenSpeed_Handle = Selector.GetHandle("setGreenSpeed:"); private static readonly IntPtr selBlueSpeedHandle = Selector.GetHandle("blueSpeed"); private static readonly IntPtr selSetBlueSpeed_Handle = Selector.GetHandle("setBlueSpeed:"); private static readonly IntPtr selAlphaSpeedHandle = Selector.GetHandle("alphaSpeed"); private static readonly IntPtr selSetAlphaSpeed_Handle = Selector.GetHandle("setAlphaSpeed:"); private static readonly IntPtr selContentsHandle = Selector.GetHandle("contents"); private static readonly IntPtr selSetContents_Handle = Selector.GetHandle("setContents:"); private static readonly IntPtr selContentsRectHandle = Selector.GetHandle("contentsRect"); private static readonly IntPtr selSetContentsRect_Handle = Selector.GetHandle("setContentsRect:"); private static readonly IntPtr selMinificationFilterHandle = Selector.GetHandle("minificationFilter"); private static readonly IntPtr selSetMinificationFilter_Handle = Selector.GetHandle("setMinificationFilter:"); private static readonly IntPtr selMagnificationFilterHandle = Selector.GetHandle("magnificationFilter"); private static readonly IntPtr selSetMagnificationFilter_Handle = Selector.GetHandle("setMagnificationFilter:"); private static readonly IntPtr selMinificationFilterBiasHandle = Selector.GetHandle("minificationFilterBias"); private static readonly IntPtr selSetMinificationFilterBias_Handle = Selector.GetHandle("setMinificationFilterBias:"); private static readonly IntPtr selEmitterCellsHandle = Selector.GetHandle("emitterCells"); private static readonly IntPtr selSetEmitterCells_Handle = Selector.GetHandle("setEmitterCells:"); private static readonly IntPtr selStyleHandle = Selector.GetHandle("style"); private static readonly IntPtr selSetStyle_Handle = Selector.GetHandle("setStyle:"); private static readonly IntPtr selEmitterCellHandle = Selector.GetHandle("emitterCell"); private static readonly IntPtr selDefaultValueForKey_Handle = Selector.GetHandle("defaultValueForKey:"); private static readonly IntPtr selShouldArchiveValueForKey_Handle = Selector.GetHandle("shouldArchiveValueForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAEmitterCell"); private object __mt_WeakContents_var; private object __mt_Cells_var; private object __mt_Style_var; public CGImage Contents { get { if (contents != null) { return contents; } IntPtr intPtr = _Contents; if (!(intPtr != IntPtr.Zero)) { return null; } return contents = new CGImage(intPtr); } set { _Contents = value?.Handle ?? IntPtr.Zero; contents = value; } } public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual float BirthRate { [Export("birthRate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selBirthRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selBirthRateHandle); } [Export("setBirthRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetBirthRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetBirthRate_Handle, value); } } } public virtual float LifeTime { [Export("lifetime")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLifetimeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLifetimeHandle); } [Export("setLifetime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLifetime_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLifetime_Handle, value); } } } public virtual float LifetimeRange { [Export("lifetimeRange")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLifetimeRangeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLifetimeRangeHandle); } [Export("setLifetimeRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLifetimeRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLifetimeRange_Handle, value); } } } public virtual float EmissionLatitude { [Export("emissionLatitude")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selEmissionLatitudeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selEmissionLatitudeHandle); } [Export("setEmissionLatitude:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetEmissionLatitude_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetEmissionLatitude_Handle, value); } } } public virtual float EmissionLongitude { [Export("emissionLongitude")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selEmissionLongitudeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selEmissionLongitudeHandle); } [Export("setEmissionLongitude:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetEmissionLongitude_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetEmissionLongitude_Handle, value); } } } public virtual float EmissionRange { [Export("emissionRange")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selEmissionRangeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selEmissionRangeHandle); } [Export("setEmissionRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetEmissionRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetEmissionRange_Handle, value); } } } public virtual float Velocity { [Export("velocity")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVelocityHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVelocityHandle); } [Export("setVelocity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVelocity_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVelocity_Handle, value); } } } public virtual float VelocityRange { [Export("velocityRange")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVelocityRangeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVelocityRangeHandle); } [Export("setVelocityRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVelocityRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVelocityRange_Handle, value); } } } public virtual float AccelerationX { [Export("xAcceleration")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selXAccelerationHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selXAccelerationHandle); } [Export("setXAcceleration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetXAcceleration_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetXAcceleration_Handle, value); } } } public virtual float AccelerationY { [Export("yAcceleration")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selYAccelerationHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selYAccelerationHandle); } [Export("setYAcceleration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetYAcceleration_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetYAcceleration_Handle, value); } } } public virtual float AccelerationZ { [Export("zAcceleration")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selZAccelerationHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selZAccelerationHandle); } [Export("setZAcceleration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetZAcceleration_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetZAcceleration_Handle, value); } } } public virtual float Scale { [Export("scale")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleHandle); } [Export("setScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetScale_Handle, value); } } } public virtual float ScaleRange { [Export("scaleRange")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleRangeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleRangeHandle); } [Export("setScaleRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetScaleRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetScaleRange_Handle, value); } } } public virtual float ScaleSpeed { [Export("scaleSpeed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleSpeedHandle); } [Export("setScaleSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetScaleSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetScaleSpeed_Handle, value); } } } public virtual float Spin { [Export("spin")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selSpinHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selSpinHandle); } [Export("setSpin:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetSpin_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetSpin_Handle, value); } } } public virtual float SpinRange { [Export("spinRange")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selSpinRangeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selSpinRangeHandle); } [Export("setSpinRange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetSpinRange_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetSpinRange_Handle, value); } } } public virtual CGColor Color { [Export("color")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle)); } [Export("setColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } } } public virtual float RedSpeed { [Export("redSpeed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRedSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRedSpeedHandle); } [Export("setRedSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRedSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRedSpeed_Handle, value); } } } public virtual float GreenSpeed { [Export("greenSpeed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selGreenSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selGreenSpeedHandle); } [Export("setGreenSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetGreenSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetGreenSpeed_Handle, value); } } } public virtual float BlueSpeed { [Export("blueSpeed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selBlueSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selBlueSpeedHandle); } [Export("setBlueSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetBlueSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetBlueSpeed_Handle, value); } } } public virtual float AlphaSpeed { [Export("alphaSpeed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selAlphaSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selAlphaSpeedHandle); } [Export("setAlphaSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetAlphaSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetAlphaSpeed_Handle, value); } } } public virtual NSObject WeakContents { [Export("contents")] get { return (NSObject)(__mt_WeakContents_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selContentsHandle)))); } [Export("setContents:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContents_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContents_Handle, value.Handle); } __mt_WeakContents_var = value; } } internal IntPtr _Contents { get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selContentsHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsHandle); } set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContents_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContents_Handle, value); } } } public virtual CGRect ContentsRect { [Export("contentsRect")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selContentsRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selContentsRectHandle); } return retval; } [Export("setContentsRect:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetContentsRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetContentsRect_Handle, value); } } } public virtual string MinificationFilter { [Export("minificationFilter")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMinificationFilterHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinificationFilterHandle)); } [Export("setMinificationFilter:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinificationFilter_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinificationFilter_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string MagnificationFilter { [Export("magnificationFilter")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMagnificationFilterHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMagnificationFilterHandle)); } [Export("setMagnificationFilter:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMagnificationFilter_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMagnificationFilter_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual float MinificationFilterBias { [Export("minificationFilterBias")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selMinificationFilterBiasHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selMinificationFilterBiasHandle); } [Export("setMinificationFilterBias:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetMinificationFilterBias_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetMinificationFilterBias_Handle, value); } } } public virtual CAEmitterCell[] Cells { [Export("emitterCells")] get { return (CAEmitterCell[])(__mt_Cells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEmitterCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEmitterCellsHandle)))); } [Export("setEmitterCells:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEmitterCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEmitterCells_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Cells_var = value; } } public virtual NSDictionary Style { [Export("style", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_Style_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStyleHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStyleHandle))))); } [Export("setStyle:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStyle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStyle_Handle, value.Handle); } __mt_Style_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAEmitterCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAEmitterCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAEmitterCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAEmitterCell(IntPtr handle) : base(handle) { } [Export("emitterCell")] public static CAEmitterCell EmitterCell() { return (CAEmitterCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selEmitterCellHandle)); } [Export("defaultValueForKey:")] public static NSObject DefaultValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("shouldArchiveValueForKey:")] public virtual bool ShouldArchiveValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selShouldArchiveValueForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selShouldArchiveValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakContents_var = null; __mt_Cells_var = null; __mt_Style_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAEmitterLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAEmitterLayer", true)] public class CAEmitterLayer : CALayer { private static readonly IntPtr selEmitterCellsHandle = Selector.GetHandle("emitterCells"); private static readonly IntPtr selSetEmitterCells_Handle = Selector.GetHandle("setEmitterCells:"); private static readonly IntPtr selBirthRateHandle = Selector.GetHandle("birthRate"); private static readonly IntPtr selSetBirthRate_Handle = Selector.GetHandle("setBirthRate:"); private static readonly IntPtr selLifetimeHandle = Selector.GetHandle("lifetime"); private static readonly IntPtr selSetLifetime_Handle = Selector.GetHandle("setLifetime:"); private static readonly IntPtr selEmitterPositionHandle = Selector.GetHandle("emitterPosition"); private static readonly IntPtr selSetEmitterPosition_Handle = Selector.GetHandle("setEmitterPosition:"); private static readonly IntPtr selEmitterZPositionHandle = Selector.GetHandle("emitterZPosition"); private static readonly IntPtr selSetEmitterZPosition_Handle = Selector.GetHandle("setEmitterZPosition:"); private static readonly IntPtr selEmitterSizeHandle = Selector.GetHandle("emitterSize"); private static readonly IntPtr selSetEmitterSize_Handle = Selector.GetHandle("setEmitterSize:"); private static readonly IntPtr selEmitterDepthHandle = Selector.GetHandle("emitterDepth"); private static readonly IntPtr selSetEmitterDepth_Handle = Selector.GetHandle("setEmitterDepth:"); private static readonly IntPtr selEmitterShapeHandle = Selector.GetHandle("emitterShape"); private static readonly IntPtr selSetEmitterShape_Handle = Selector.GetHandle("setEmitterShape:"); private static readonly IntPtr selEmitterModeHandle = Selector.GetHandle("emitterMode"); private static readonly IntPtr selSetEmitterMode_Handle = Selector.GetHandle("setEmitterMode:"); private static readonly IntPtr selRenderModeHandle = Selector.GetHandle("renderMode"); private static readonly IntPtr selSetRenderMode_Handle = Selector.GetHandle("setRenderMode:"); private static readonly IntPtr selPreservesDepthHandle = Selector.GetHandle("preservesDepth"); private static readonly IntPtr selSetPreservesDepth_Handle = Selector.GetHandle("setPreservesDepth:"); private static readonly IntPtr selVelocityHandle = Selector.GetHandle("velocity"); private static readonly IntPtr selSetVelocity_Handle = Selector.GetHandle("setVelocity:"); private static readonly IntPtr selScaleHandle = Selector.GetHandle("scale"); private static readonly IntPtr selSetScale_Handle = Selector.GetHandle("setScale:"); private static readonly IntPtr selSpinHandle = Selector.GetHandle("spin"); private static readonly IntPtr selSetSpin_Handle = Selector.GetHandle("setSpin:"); private static readonly IntPtr selSeedHandle = Selector.GetHandle("seed"); private static readonly IntPtr selSetSeed_Handle = Selector.GetHandle("setSeed:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CAEmitterLayer"); private object __mt_Cells_var; private static NSString _ShapePoint; private static NSString _ShapeLine; private static NSString _ShapeRectangle; private static NSString _ShapeCuboid; private static NSString _ShapeCircle; private static NSString _ShapeSphere; private static NSString _ModePoints; private static NSString _ModeOutline; private static NSString _ModeSurface; private static NSString _ModeVolume; private static NSString _RenderUnordered; private static NSString _RenderOldestFirst; private static NSString _RenderOldestLast; private static NSString _RenderBackToFront; private static NSString _RenderAdditive; public override IntPtr ClassHandle => class_ptr; public virtual CAEmitterCell[] Cells { [Export("emitterCells")] get { return (CAEmitterCell[])(__mt_Cells_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEmitterCellsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEmitterCellsHandle)))); } [Export("setEmitterCells:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEmitterCells_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEmitterCells_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Cells_var = value; } } public virtual float BirthRate { [Export("birthRate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selBirthRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selBirthRateHandle); } [Export("setBirthRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetBirthRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetBirthRate_Handle, value); } } } public virtual float LifeTime { [Export("lifetime")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLifetimeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLifetimeHandle); } [Export("setLifetime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLifetime_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLifetime_Handle, value); } } } public new virtual CGPoint Position { [Export("emitterPosition")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selEmitterPositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selEmitterPositionHandle); } [Export("setEmitterPosition:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetEmitterPosition_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetEmitterPosition_Handle, value); } } } public new virtual double ZPosition { [Export("emitterZPosition")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selEmitterZPositionHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selEmitterZPositionHandle); } [Export("setEmitterZPosition:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetEmitterZPosition_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetEmitterZPosition_Handle, value); } } } public virtual CGSize Size { [Export("emitterSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selEmitterSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selEmitterSizeHandle); } [Export("setEmitterSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetEmitterSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetEmitterSize_Handle, value); } } } public virtual double Depth { [Export("emitterDepth")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selEmitterDepthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selEmitterDepthHandle); } [Export("setEmitterDepth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetEmitterDepth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetEmitterDepth_Handle, value); } } } public virtual string Shape { [Export("emitterShape")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEmitterShapeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEmitterShapeHandle)); } [Export("setEmitterShape:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEmitterShape_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEmitterShape_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Mode { [Export("emitterMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEmitterModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEmitterModeHandle)); } [Export("setEmitterMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEmitterMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEmitterMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string RenderMode { [Export("renderMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRenderModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRenderModeHandle)); } [Export("setRenderMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRenderMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRenderMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool PreservesDepth { [Export("preservesDepth")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesDepthHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesDepthHandle); } [Export("setPreservesDepth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesDepth_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesDepth_Handle, value); } } } public virtual float Velocity { [Export("velocity")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVelocityHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVelocityHandle); } [Export("setVelocity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVelocity_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVelocity_Handle, value); } } } public virtual float Scale { [Export("scale")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleHandle); } [Export("setScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetScale_Handle, value); } } } public virtual float Spin { [Export("spin")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selSpinHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selSpinHandle); } [Export("setSpin:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetSpin_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetSpin_Handle, value); } } } public virtual int Seed { [Export("seed")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSeedHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSeedHandle); } [Export("setSeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetSeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetSeed_Handle, value); } } } [Field("kCAEmitterLayerPoint", "CoreAnimation")] public static NSString ShapePoint { get { if (_ShapePoint == null) { _ShapePoint = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerPoint"); } return _ShapePoint; } } [Field("kCAEmitterLayerLine", "CoreAnimation")] public static NSString ShapeLine { get { if (_ShapeLine == null) { _ShapeLine = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerLine"); } return _ShapeLine; } } [Field("kCAEmitterLayerRectangle", "CoreAnimation")] public static NSString ShapeRectangle { get { if (_ShapeRectangle == null) { _ShapeRectangle = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerRectangle"); } return _ShapeRectangle; } } [Field("kCAEmitterLayerCuboid", "CoreAnimation")] public static NSString ShapeCuboid { get { if (_ShapeCuboid == null) { _ShapeCuboid = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerCuboid"); } return _ShapeCuboid; } } [Field("kCAEmitterLayerCircle", "CoreAnimation")] public static NSString ShapeCircle { get { if (_ShapeCircle == null) { _ShapeCircle = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerCircle"); } return _ShapeCircle; } } [Field("kCAEmitterLayerSphere", "CoreAnimation")] public static NSString ShapeSphere { get { if (_ShapeSphere == null) { _ShapeSphere = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerSphere"); } return _ShapeSphere; } } [Field("kCAEmitterLayerPoints", "CoreAnimation")] public static NSString ModePoints { get { if (_ModePoints == null) { _ModePoints = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerPoints"); } return _ModePoints; } } [Field("kCAEmitterLayerOutline", "CoreAnimation")] public static NSString ModeOutline { get { if (_ModeOutline == null) { _ModeOutline = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerOutline"); } return _ModeOutline; } } [Field("kCAEmitterLayerSurface", "CoreAnimation")] public static NSString ModeSurface { get { if (_ModeSurface == null) { _ModeSurface = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerSurface"); } return _ModeSurface; } } [Field("kCAEmitterLayerVolume", "CoreAnimation")] public static NSString ModeVolume { get { if (_ModeVolume == null) { _ModeVolume = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerVolume"); } return _ModeVolume; } } [Field("kCAEmitterLayerUnordered", "CoreAnimation")] public static NSString RenderUnordered { get { if (_RenderUnordered == null) { _RenderUnordered = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerUnordered"); } return _RenderUnordered; } } [Field("kCAEmitterLayerOldestFirst", "CoreAnimation")] public static NSString RenderOldestFirst { get { if (_RenderOldestFirst == null) { _RenderOldestFirst = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerOldestFirst"); } return _RenderOldestFirst; } } [Field("kCAEmitterLayerOldestLast", "CoreAnimation")] public static NSString RenderOldestLast { get { if (_RenderOldestLast == null) { _RenderOldestLast = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerOldestLast"); } return _RenderOldestLast; } } [Field("kCAEmitterLayerBackToFront", "CoreAnimation")] public static NSString RenderBackToFront { get { if (_RenderBackToFront == null) { _RenderBackToFront = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerBackToFront"); } return _RenderBackToFront; } } [Field("kCAEmitterLayerAdditive", "CoreAnimation")] public static NSString RenderAdditive { get { if (_RenderAdditive == null) { _RenderAdditive = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAEmitterLayerAdditive"); } return _RenderAdditive; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAEmitterLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAEmitterLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAEmitterLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAEmitterLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Cells_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAFillMode.cs ================================================ namespace CoreAnimation; public class CAFillMode { public const string Removed = "removed"; public const string Forwards = "forwards"; public const string Backwards = "backwards"; public const string Both = "both"; public const string Frozen = "frozen"; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAGradientLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAGradientLayer", true)] public class CAGradientLayer : CALayer { private static readonly IntPtr selColorsHandle = Selector.GetHandle("colors"); private static readonly IntPtr selSetColors_Handle = Selector.GetHandle("setColors:"); private static readonly IntPtr selLocationsHandle = Selector.GetHandle("locations"); private static readonly IntPtr selSetLocations_Handle = Selector.GetHandle("setLocations:"); private static readonly IntPtr selStartPointHandle = Selector.GetHandle("startPoint"); private static readonly IntPtr selSetStartPoint_Handle = Selector.GetHandle("setStartPoint:"); private static readonly IntPtr selEndPointHandle = Selector.GetHandle("endPoint"); private static readonly IntPtr selSetEndPoint_Handle = Selector.GetHandle("setEndPoint:"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selSetType_Handle = Selector.GetHandle("setType:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CAGradientLayer"); private object __mt_Locations_var; private static NSString _GradientLayerAxial; public CGColor[] Colors { get { return NSArray.ArrayFromHandle(_Colors, CreateColor); } set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr[] array = new IntPtr[value.Length]; for (int i = 0; i < array.Length; i++) { array[i] = value[i].Handle; } using NSArray nSArray = NSArray.FromIntPtrs(array); _Colors = nSArray.Handle; } } public override IntPtr ClassHandle => class_ptr; internal virtual IntPtr _Colors { [Export("colors", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selColorsHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorsHandle); } [Export("setColors:", ArgumentSemantic.Copy)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColors_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColors_Handle, value); } } } public virtual NSNumber[] Locations { [Export("locations", ArgumentSemantic.Copy)] get { return (NSNumber[])(__mt_Locations_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocationsHandle)))); } [Export("setLocations:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocations_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocations_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Locations_var = value; } } public virtual CGPoint StartPoint { [Export("startPoint")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selStartPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selStartPointHandle); } [Export("setStartPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetStartPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetStartPoint_Handle, value); } } } public virtual CGPoint EndPoint { [Export("endPoint")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selEndPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selEndPointHandle); } [Export("setEndPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetEndPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetEndPoint_Handle, value); } } } public virtual string Type { [Export("type", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } [Export("setType:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetType_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("kCAGradientLayerAxial", "CoreAnimation")] public static NSString GradientLayerAxial { get { if (_GradientLayerAxial == null) { _GradientLayerAxial = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGradientLayerAxial"); } return _GradientLayerAxial; } } public CGColor CreateColor(IntPtr p) { return new CGColor(p); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAGradientLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAGradientLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAGradientLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAGradientLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAKeyFrameAnimation.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAKeyframeAnimation", true)] public class CAKeyFrameAnimation : CAPropertyAnimation { private static readonly IntPtr selValuesHandle = Selector.GetHandle("values"); private static readonly IntPtr selSetValues_Handle = Selector.GetHandle("setValues:"); private static readonly IntPtr selPathHandle = Selector.GetHandle("path"); private static readonly IntPtr selSetPath_Handle = Selector.GetHandle("setPath:"); private static readonly IntPtr selKeyTimesHandle = Selector.GetHandle("keyTimes"); private static readonly IntPtr selSetKeyTimes_Handle = Selector.GetHandle("setKeyTimes:"); private static readonly IntPtr selTimingFunctionsHandle = Selector.GetHandle("timingFunctions"); private static readonly IntPtr selSetTimingFunctions_Handle = Selector.GetHandle("setTimingFunctions:"); private static readonly IntPtr selCalculationModeHandle = Selector.GetHandle("calculationMode"); private static readonly IntPtr selSetCalculationMode_Handle = Selector.GetHandle("setCalculationMode:"); private static readonly IntPtr selRotationModeHandle = Selector.GetHandle("rotationMode"); private static readonly IntPtr selSetRotationMode_Handle = Selector.GetHandle("setRotationMode:"); private static readonly IntPtr selAnimationWithKeyPath_Handle = Selector.GetHandle("animationWithKeyPath:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAKeyframeAnimation"); private object __mt_Values_var; private object __mt_KeyTimes_var; private object __mt_TimingFunctions_var; private static NSString _CalculationLinear; private static NSString _CalculationDiscrete; private static NSString _CalculationPaced; public override IntPtr ClassHandle => class_ptr; public virtual NSObject[] Values { [Export("values", ArgumentSemantic.Copy)] get { return (NSObject[])(__mt_Values_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValuesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValuesHandle)))); } [Export("setValues:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValues_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValues_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Values_var = value; } } public virtual CGPath Path { [Export("path")] get { if (IsDirectBinding) { return new CGPath(Messaging.IntPtr_objc_msgSend(base.Handle, selPathHandle)); } return new CGPath(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathHandle)); } [Export("setPath:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPath_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPath_Handle, value.Handle); } } } public virtual NSNumber[] KeyTimes { [Export("keyTimes", ArgumentSemantic.Copy)] get { return (NSNumber[])(__mt_KeyTimes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyTimesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyTimesHandle)))); } [Export("setKeyTimes:", ArgumentSemantic.Copy)] set { NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyTimes_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyTimes_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_KeyTimes_var = value; } } public virtual CAMediaTimingFunction[] TimingFunctions { [Export("timingFunctions", ArgumentSemantic.Copy)] get { return (CAMediaTimingFunction[])(__mt_TimingFunctions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimingFunctionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTimingFunctionsHandle)))); } [Export("setTimingFunctions:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimingFunctions_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimingFunctions_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_TimingFunctions_var = value; } } public virtual string CalculationMode { [Export("calculationMode", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCalculationModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalculationModeHandle)); } [Export("setCalculationMode:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCalculationMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCalculationMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string RotationMode { [Export("rotationMode", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRotationModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRotationModeHandle)); } [Export("setRotationMode:", ArgumentSemantic.Copy)] set { IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRotationMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRotationMode_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("kCAAnimationLinear", "CoreAnimation")] public static NSString CalculationLinear { get { if (_CalculationLinear == null) { _CalculationLinear = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationLinear"); } return _CalculationLinear; } } [Field("kCAAnimationDiscrete", "CoreAnimation")] public static NSString CalculationDiscrete { get { if (_CalculationDiscrete == null) { _CalculationDiscrete = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationDiscrete"); } return _CalculationDiscrete; } } [Field("kCAAnimationDiscrete", "CoreAnimation")] public static NSString CalculationPaced { get { if (_CalculationPaced == null) { _CalculationPaced = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAnimationDiscrete"); } return _CalculationPaced; } } [Obsolete("This method in the future will return a CAKeyFrameAnimation, update your source, or use GetFromKeyPath to avoid this warning for now")] public new static CAPropertyAnimation FromKeyPath(string path) { return GetFromKeyPath(path); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAKeyFrameAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAKeyFrameAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAKeyFrameAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAKeyFrameAnimation(IntPtr handle) : base(handle) { } [Export("animationWithKeyPath:")] public static CAKeyFrameAnimation GetFromKeyPath(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); CAKeyFrameAnimation result = (CAKeyFrameAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAnimationWithKeyPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Values_var = null; __mt_KeyTimes_var = null; __mt_TimingFunctions_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CALayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CALayer", true)] public class CALayer : NSObject { private const string selInitWithLayer = "initWithLayer:"; private static readonly IntPtr selPresentationLayerHandle = Selector.GetHandle("presentationLayer"); private static readonly IntPtr selModelLayerHandle = Selector.GetHandle("modelLayer"); private static readonly IntPtr selBoundsHandle = Selector.GetHandle("bounds"); private static readonly IntPtr selSetBounds_Handle = Selector.GetHandle("setBounds:"); private static readonly IntPtr selZPositionHandle = Selector.GetHandle("zPosition"); private static readonly IntPtr selSetZPosition_Handle = Selector.GetHandle("setZPosition:"); private static readonly IntPtr selAnchorPointHandle = Selector.GetHandle("anchorPoint"); private static readonly IntPtr selSetAnchorPoint_Handle = Selector.GetHandle("setAnchorPoint:"); private static readonly IntPtr selAnchorPointZHandle = Selector.GetHandle("anchorPointZ"); private static readonly IntPtr selSetAnchorPointZ_Handle = Selector.GetHandle("setAnchorPointZ:"); private static readonly IntPtr selPositionHandle = Selector.GetHandle("position"); private static readonly IntPtr selSetPosition_Handle = Selector.GetHandle("setPosition:"); private static readonly IntPtr selTransformHandle = Selector.GetHandle("transform"); private static readonly IntPtr selSetTransform_Handle = Selector.GetHandle("setTransform:"); private static readonly IntPtr selAffineTransformHandle = Selector.GetHandle("affineTransform"); private static readonly IntPtr selSetAffineTransform_Handle = Selector.GetHandle("setAffineTransform:"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selSetFrame_Handle = Selector.GetHandle("setFrame:"); private static readonly IntPtr selIsHiddenHandle = Selector.GetHandle("isHidden"); private static readonly IntPtr selSetHidden_Handle = Selector.GetHandle("setHidden:"); private static readonly IntPtr selIsDoubleSidedHandle = Selector.GetHandle("isDoubleSided"); private static readonly IntPtr selSetDoubleSided_Handle = Selector.GetHandle("setDoubleSided:"); private static readonly IntPtr selIsGeometryFlippedHandle = Selector.GetHandle("isGeometryFlipped"); private static readonly IntPtr selSetGeometryFlipped_Handle = Selector.GetHandle("setGeometryFlipped:"); private static readonly IntPtr selContentsAreFlippedHandle = Selector.GetHandle("contentsAreFlipped"); private static readonly IntPtr selSuperlayerHandle = Selector.GetHandle("superlayer"); private static readonly IntPtr selSublayersHandle = Selector.GetHandle("sublayers"); private static readonly IntPtr selSetSublayers_Handle = Selector.GetHandle("setSublayers:"); private static readonly IntPtr selSublayerTransformHandle = Selector.GetHandle("sublayerTransform"); private static readonly IntPtr selSetSublayerTransform_Handle = Selector.GetHandle("setSublayerTransform:"); private static readonly IntPtr selMaskHandle = Selector.GetHandle("mask"); private static readonly IntPtr selSetMask_Handle = Selector.GetHandle("setMask:"); private static readonly IntPtr selMasksToBoundsHandle = Selector.GetHandle("masksToBounds"); private static readonly IntPtr selSetMasksToBounds_Handle = Selector.GetHandle("setMasksToBounds:"); private static readonly IntPtr selContentsHandle = Selector.GetHandle("contents"); private static readonly IntPtr selSetContents_Handle = Selector.GetHandle("setContents:"); private static readonly IntPtr selLayoutManagerHandle = Selector.GetHandle("layoutManager"); private static readonly IntPtr selSetLayoutManager_Handle = Selector.GetHandle("setLayoutManager:"); private static readonly IntPtr selContentsScaleHandle = Selector.GetHandle("contentsScale"); private static readonly IntPtr selSetContentsScale_Handle = Selector.GetHandle("setContentsScale:"); private static readonly IntPtr selContentsRectHandle = Selector.GetHandle("contentsRect"); private static readonly IntPtr selSetContentsRect_Handle = Selector.GetHandle("setContentsRect:"); private static readonly IntPtr selContentsGravityHandle = Selector.GetHandle("contentsGravity"); private static readonly IntPtr selSetContentsGravity_Handle = Selector.GetHandle("setContentsGravity:"); private static readonly IntPtr selContentsCenterHandle = Selector.GetHandle("contentsCenter"); private static readonly IntPtr selSetContentsCenter_Handle = Selector.GetHandle("setContentsCenter:"); private static readonly IntPtr selMinificationFilterHandle = Selector.GetHandle("minificationFilter"); private static readonly IntPtr selSetMinificationFilter_Handle = Selector.GetHandle("setMinificationFilter:"); private static readonly IntPtr selMagnificationFilterHandle = Selector.GetHandle("magnificationFilter"); private static readonly IntPtr selSetMagnificationFilter_Handle = Selector.GetHandle("setMagnificationFilter:"); private static readonly IntPtr selIsOpaqueHandle = Selector.GetHandle("isOpaque"); private static readonly IntPtr selSetOpaque_Handle = Selector.GetHandle("setOpaque:"); private static readonly IntPtr selNeedsDisplayHandle = Selector.GetHandle("needsDisplay"); private static readonly IntPtr selNeedsDisplayOnBoundsChangeHandle = Selector.GetHandle("needsDisplayOnBoundsChange"); private static readonly IntPtr selSetNeedsDisplayOnBoundsChange_Handle = Selector.GetHandle("setNeedsDisplayOnBoundsChange:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selCornerRadiusHandle = Selector.GetHandle("cornerRadius"); private static readonly IntPtr selSetCornerRadius_Handle = Selector.GetHandle("setCornerRadius:"); private static readonly IntPtr selBorderWidthHandle = Selector.GetHandle("borderWidth"); private static readonly IntPtr selSetBorderWidth_Handle = Selector.GetHandle("setBorderWidth:"); private static readonly IntPtr selBorderColorHandle = Selector.GetHandle("borderColor"); private static readonly IntPtr selSetBorderColor_Handle = Selector.GetHandle("setBorderColor:"); private static readonly IntPtr selOpacityHandle = Selector.GetHandle("opacity"); private static readonly IntPtr selSetOpacity_Handle = Selector.GetHandle("setOpacity:"); private static readonly IntPtr selEdgeAntialiasingMaskHandle = Selector.GetHandle("edgeAntialiasingMask"); private static readonly IntPtr selSetEdgeAntialiasingMask_Handle = Selector.GetHandle("setEdgeAntialiasingMask:"); private static readonly IntPtr selActionsHandle = Selector.GetHandle("actions"); private static readonly IntPtr selSetActions_Handle = Selector.GetHandle("setActions:"); private static readonly IntPtr selAnimationKeysHandle = Selector.GetHandle("animationKeys"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selBeginTimeHandle = Selector.GetHandle("beginTime"); private static readonly IntPtr selSetBeginTime_Handle = Selector.GetHandle("setBeginTime:"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selSetDuration_Handle = Selector.GetHandle("setDuration:"); private static readonly IntPtr selSpeedHandle = Selector.GetHandle("speed"); private static readonly IntPtr selSetSpeed_Handle = Selector.GetHandle("setSpeed:"); private static readonly IntPtr selTimeOffsetHandle = Selector.GetHandle("timeOffset"); private static readonly IntPtr selSetTimeOffset_Handle = Selector.GetHandle("setTimeOffset:"); private static readonly IntPtr selRepeatCountHandle = Selector.GetHandle("repeatCount"); private static readonly IntPtr selSetRepeatCount_Handle = Selector.GetHandle("setRepeatCount:"); private static readonly IntPtr selRepeatDurationHandle = Selector.GetHandle("repeatDuration"); private static readonly IntPtr selSetRepeatDuration_Handle = Selector.GetHandle("setRepeatDuration:"); private static readonly IntPtr selAutoreversesHandle = Selector.GetHandle("autoreverses"); private static readonly IntPtr selSetAutoreverses_Handle = Selector.GetHandle("setAutoreverses:"); private static readonly IntPtr selFillModeHandle = Selector.GetHandle("fillMode"); private static readonly IntPtr selSetFillMode_Handle = Selector.GetHandle("setFillMode:"); private static readonly IntPtr selShadowColorHandle = Selector.GetHandle("shadowColor"); private static readonly IntPtr selSetShadowColor_Handle = Selector.GetHandle("setShadowColor:"); private static readonly IntPtr selShadowOffsetHandle = Selector.GetHandle("shadowOffset"); private static readonly IntPtr selSetShadowOffset_Handle = Selector.GetHandle("setShadowOffset:"); private static readonly IntPtr selShadowOpacityHandle = Selector.GetHandle("shadowOpacity"); private static readonly IntPtr selSetShadowOpacity_Handle = Selector.GetHandle("setShadowOpacity:"); private static readonly IntPtr selShadowRadiusHandle = Selector.GetHandle("shadowRadius"); private static readonly IntPtr selSetShadowRadius_Handle = Selector.GetHandle("setShadowRadius:"); private static readonly IntPtr selVisibleRectHandle = Selector.GetHandle("visibleRect"); private static readonly IntPtr selAutoresizingMaskHandle = Selector.GetHandle("autoresizingMask"); private static readonly IntPtr selSetAutoresizingMask_Handle = Selector.GetHandle("setAutoresizingMask:"); private static readonly IntPtr selConstraintsHandle = Selector.GetHandle("constraints"); private static readonly IntPtr selSetConstraints_Handle = Selector.GetHandle("setConstraints:"); private static readonly IntPtr selFiltersHandle = Selector.GetHandle("filters"); private static readonly IntPtr selSetFilters_Handle = Selector.GetHandle("setFilters:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr selDefaultValueForKey_Handle = Selector.GetHandle("defaultValueForKey:"); private static readonly IntPtr selNeedsDisplayForKey_Handle = Selector.GetHandle("needsDisplayForKey:"); private static readonly IntPtr selRemoveFromSuperlayerHandle = Selector.GetHandle("removeFromSuperlayer"); private static readonly IntPtr selAddSublayer_Handle = Selector.GetHandle("addSublayer:"); private static readonly IntPtr selInsertSublayerAtIndex_Handle = Selector.GetHandle("insertSublayer:atIndex:"); private static readonly IntPtr selInsertSublayerBelow_Handle = Selector.GetHandle("insertSublayer:below:"); private static readonly IntPtr selInsertSublayerAbove_Handle = Selector.GetHandle("insertSublayer:above:"); private static readonly IntPtr selReplaceSublayerWith_Handle = Selector.GetHandle("replaceSublayer:with:"); private static readonly IntPtr selConvertPointFromLayer_Handle = Selector.GetHandle("convertPoint:fromLayer:"); private static readonly IntPtr selConvertPointToLayer_Handle = Selector.GetHandle("convertPoint:toLayer:"); private static readonly IntPtr selConvertRectFromLayer_Handle = Selector.GetHandle("convertRect:fromLayer:"); private static readonly IntPtr selConvertRectToLayer_Handle = Selector.GetHandle("convertRect:toLayer:"); private static readonly IntPtr selConvertTimeFromLayer_Handle = Selector.GetHandle("convertTime:fromLayer:"); private static readonly IntPtr selConvertTimeToLayer_Handle = Selector.GetHandle("convertTime:toLayer:"); private static readonly IntPtr selHitTest_Handle = Selector.GetHandle("hitTest:"); private static readonly IntPtr selContainsPoint_Handle = Selector.GetHandle("containsPoint:"); private static readonly IntPtr selDisplayHandle = Selector.GetHandle("display"); private static readonly IntPtr selSetNeedsDisplayHandle = Selector.GetHandle("setNeedsDisplay"); private static readonly IntPtr selSetNeedsDisplayInRect_Handle = Selector.GetHandle("setNeedsDisplayInRect:"); private static readonly IntPtr selDisplayIfNeededHandle = Selector.GetHandle("displayIfNeeded"); private static readonly IntPtr selDrawInContext_Handle = Selector.GetHandle("drawInContext:"); private static readonly IntPtr selRenderInContext_Handle = Selector.GetHandle("renderInContext:"); private static readonly IntPtr selPreferredFrameSizeHandle = Selector.GetHandle("preferredFrameSize"); private static readonly IntPtr selSetNeedsLayoutHandle = Selector.GetHandle("setNeedsLayout"); private static readonly IntPtr selNeedsLayoutHandle = Selector.GetHandle("needsLayout"); private static readonly IntPtr selLayoutIfNeededHandle = Selector.GetHandle("layoutIfNeeded"); private static readonly IntPtr selLayoutSublayersHandle = Selector.GetHandle("layoutSublayers"); private static readonly IntPtr selDefaultActionForKey_Handle = Selector.GetHandle("defaultActionForKey:"); private static readonly IntPtr selActionForKey_Handle = Selector.GetHandle("actionForKey:"); private static readonly IntPtr selAddAnimationForKey_Handle = Selector.GetHandle("addAnimation:forKey:"); private static readonly IntPtr selRemoveAllAnimationsHandle = Selector.GetHandle("removeAllAnimations"); private static readonly IntPtr selRemoveAnimationForKey_Handle = Selector.GetHandle("removeAnimationForKey:"); private static readonly IntPtr selAnimationForKey_Handle = Selector.GetHandle("animationForKey:"); private static readonly IntPtr selScrollPoint_Handle = Selector.GetHandle("scrollPoint:"); private static readonly IntPtr selScrollRectToVisible_Handle = Selector.GetHandle("scrollRectToVisible:"); private static readonly IntPtr selResizeSublayersWithOldSize_Handle = Selector.GetHandle("resizeSublayersWithOldSize:"); private static readonly IntPtr selResizeWithOldSuperlayerSize_Handle = Selector.GetHandle("resizeWithOldSuperlayerSize:"); private static readonly IntPtr selAddConstraint_Handle = Selector.GetHandle("addConstraint:"); private static readonly IntPtr class_ptr = Class.GetHandle("CALayer"); private object __mt_PresentationLayer_var; private object __mt_ModelLayer_var; private object __mt_SuperLayer_var; private object __mt_Sublayers_var; private object __mt_Mask_var; private object __mt_LayoutManager_var; private object __mt_Actions_var; private object __mt_WeakDelegate_var; private object __mt_Constraints_var; private object __mt_Filters_var; private static NSString _Transition; private static NSString _GravityCenter; private static NSString _GravityTop; private static NSString _GravityBottom; private static NSString _GravityLeft; private static NSString _GravityRight; private static NSString _GravityTopLeft; private static NSString _GravityTopRight; private static NSString _GravityBottomLeft; private static NSString _GravityBottomRight; private static NSString _GravityResize; private static NSString _GravityResizeAspect; private static NSString _GravityResizeAspectFill; private static NSString _FilterNearest; private static NSString _FilterLinear; private static NSString _FilterTrilinear; private static NSString _OnOrderIn; private static NSString _OnOrderOut; [Obsolete("Use BeginTime instead")] public double CFTimeInterval { get { return BeginTime; } set { BeginTime = value; } } public override IntPtr ClassHandle => class_ptr; public virtual CALayer PresentationLayer { [Export("presentationLayer")] get { return (CALayer)(__mt_PresentationLayer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPresentationLayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPresentationLayerHandle))))); } } public virtual CALayer ModelLayer { [Export("modelLayer")] get { return (CALayer)(__mt_ModelLayer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selModelLayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selModelLayerHandle))))); } } public virtual CGRect Bounds { [Export("bounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundsHandle); } return retval; } [Export("setBounds:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetBounds_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetBounds_Handle, value); } } } public virtual double ZPosition { [Export("zPosition")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selZPositionHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selZPositionHandle); } [Export("setZPosition:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetZPosition_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetZPosition_Handle, value); } } } public virtual CGPoint AnchorPoint { [Export("anchorPoint")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selAnchorPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selAnchorPointHandle); } [Export("setAnchorPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetAnchorPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetAnchorPoint_Handle, value); } } } public virtual double AnchorPointZ { [Export("anchorPointZ")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAnchorPointZHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAnchorPointZHandle); } [Export("setAnchorPointZ:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAnchorPointZ_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAnchorPointZ_Handle, value); } } } public virtual CGPoint Position { [Export("position")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selPositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selPositionHandle); } [Export("setPosition:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetPosition_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetPosition_Handle, value); } } } public virtual CATransform3D Transform { [Export("transform")] get { CATransform3D retval; if (IsDirectBinding) { Messaging.CATransform3D_objc_msgSend_stret(out retval, base.Handle, selTransformHandle); } else { Messaging.CATransform3D_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTransformHandle); } return retval; } [Export("setTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CATransform3D(base.Handle, selSetTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CATransform3D(base.SuperHandle, selSetTransform_Handle, value); } } } public virtual CGAffineTransform AffineTransform { [Export("affineTransform")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selAffineTransformHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selAffineTransformHandle); } return retval; } [Export("setAffineTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform(base.Handle, selSetAffineTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform(base.SuperHandle, selSetAffineTransform_Handle, value); } } } public virtual CGRect Frame { [Export("frame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } [Export("setFrame:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetFrame_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetFrame_Handle, value); } } } public virtual bool Hidden { [Export("isHidden")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHiddenHandle); } [Export("setHidden:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHidden_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHidden_Handle, value); } } } public virtual bool DoubleSided { [Export("isDoubleSided")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDoubleSidedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDoubleSidedHandle); } [Export("setDoubleSided:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDoubleSided_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDoubleSided_Handle, value); } } } public virtual bool GeometryFlipped { [Export("isGeometryFlipped")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsGeometryFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsGeometryFlippedHandle); } [Export("setGeometryFlipped:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGeometryFlipped_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGeometryFlipped_Handle, value); } } } public virtual bool ContentsAreFlipped { [Export("contentsAreFlipped")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selContentsAreFlippedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selContentsAreFlippedHandle); } } public virtual CALayer SuperLayer { [Export("superlayer")] get { return (CALayer)(__mt_SuperLayer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuperlayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSuperlayerHandle))))); } } public virtual CALayer[] Sublayers { [Export("sublayers", ArgumentSemantic.Copy)] get { return (CALayer[])(__mt_Sublayers_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSublayersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSublayersHandle)))); } [Export("setSublayers:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSublayers_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSublayers_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Sublayers_var = value; } } public virtual CATransform3D SublayerTransform { [Export("sublayerTransform")] get { CATransform3D retval; if (IsDirectBinding) { Messaging.CATransform3D_objc_msgSend_stret(out retval, base.Handle, selSublayerTransformHandle); } else { Messaging.CATransform3D_objc_msgSendSuper_stret(out retval, base.SuperHandle, selSublayerTransformHandle); } return retval; } [Export("setSublayerTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CATransform3D(base.Handle, selSetSublayerTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CATransform3D(base.SuperHandle, selSetSublayerTransform_Handle, value); } } } public virtual CALayer Mask { [Export("mask", ArgumentSemantic.Retain)] get { return (CALayer)(__mt_Mask_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMaskHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMaskHandle))))); } [Export("setMask:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMask_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMask_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Mask_var = value; } } public virtual bool MasksToBounds { [Export("masksToBounds")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMasksToBoundsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMasksToBoundsHandle); } [Export("setMasksToBounds:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMasksToBounds_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMasksToBounds_Handle, value); } } } public virtual CGImage Contents { [Export("contents", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return new CGImage(Messaging.IntPtr_objc_msgSend(base.Handle, selContentsHandle)); } return new CGImage(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsHandle)); } [Export("setContents:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContents_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContents_Handle, value?.Handle ?? IntPtr.Zero); } } } public virtual NSObject LayoutManager { [Export("layoutManager")] get { return (NSObject)(__mt_LayoutManager_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLayoutManagerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLayoutManagerHandle)))); } [Export("setLayoutManager:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLayoutManager_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLayoutManager_Handle, value.Handle); } __mt_LayoutManager_var = value; } } public virtual double ContentsScale { [Export("contentsScale")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selContentsScaleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selContentsScaleHandle); } [Export("setContentsScale:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetContentsScale_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetContentsScale_Handle, value); } } } public virtual CGRect ContentsRect { [Export("contentsRect")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selContentsRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selContentsRectHandle); } return retval; } [Export("setContentsRect:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetContentsRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetContentsRect_Handle, value); } } } public virtual string ContentsGravity { [Export("contentsGravity", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selContentsGravityHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsGravityHandle)); } [Export("setContentsGravity:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentsGravity_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentsGravity_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual CGRect ContentsCenter { [Export("contentsCenter")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selContentsCenterHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selContentsCenterHandle); } return retval; } [Export("setContentsCenter:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetContentsCenter_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetContentsCenter_Handle, value); } } } public virtual string MinificationFilter { [Export("minificationFilter", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMinificationFilterHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinificationFilterHandle)); } [Export("setMinificationFilter:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinificationFilter_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinificationFilter_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string MagnificationFilter { [Export("magnificationFilter", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMagnificationFilterHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMagnificationFilterHandle)); } [Export("setMagnificationFilter:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMagnificationFilter_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMagnificationFilter_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Opaque { [Export("isOpaque")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpaqueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpaqueHandle); } [Export("setOpaque:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOpaque_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOpaque_Handle, value); } } } public virtual bool NeedsDisplay { [Export("needsDisplay")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsDisplayHandle); } } public virtual bool NeedsDisplayOnBoundsChange { [Export("needsDisplayOnBoundsChange")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsDisplayOnBoundsChangeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsDisplayOnBoundsChangeHandle); } [Export("setNeedsDisplayOnBoundsChange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetNeedsDisplayOnBoundsChange_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetNeedsDisplayOnBoundsChange_Handle, value); } } } public virtual CGColor BackgroundColor { [Export("backgroundColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle)); } [Export("setBackgroundColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } } } public virtual double CornerRadius { [Export("cornerRadius")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCornerRadiusHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCornerRadiusHandle); } [Export("setCornerRadius:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetCornerRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetCornerRadius_Handle, value); } } } public virtual double BorderWidth { [Export("borderWidth")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBorderWidthHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBorderWidthHandle); } [Export("setBorderWidth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBorderWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBorderWidth_Handle, value); } } } public virtual CGColor BorderColor { [Export("borderColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selBorderColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBorderColorHandle)); } [Export("setBorderColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBorderColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBorderColor_Handle, value.Handle); } } } public virtual float Opacity { [Export("opacity")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selOpacityHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selOpacityHandle); } [Export("setOpacity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetOpacity_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetOpacity_Handle, value); } } } public virtual CAEdgeAntialiasingMask EdgeAntialiasingMask { [Export("edgeAntialiasingMask")] get { if (IsDirectBinding) { return (CAEdgeAntialiasingMask)Messaging.int_objc_msgSend(base.Handle, selEdgeAntialiasingMaskHandle); } return (CAEdgeAntialiasingMask)Messaging.int_objc_msgSendSuper(base.SuperHandle, selEdgeAntialiasingMaskHandle); } [Export("setEdgeAntialiasingMask:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetEdgeAntialiasingMask_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetEdgeAntialiasingMask_Handle, (int)value); } } } public virtual NSDictionary Actions { [Export("actions", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_Actions_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selActionsHandle))))); } [Export("setActions:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetActions_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetActions_Handle, value.Handle); } __mt_Actions_var = value; } } public virtual string[] AnimationKeys { [Export("animationKeys")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAnimationKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnimationKeysHandle)); } } public virtual string Name { [Export("name", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public CALayerDelegate Delegate { get { return WeakDelegate as CALayerDelegate; } set { WeakDelegate = value; } } public virtual double BeginTime { [Export("beginTime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBeginTimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBeginTimeHandle); } [Export("setBeginTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetBeginTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetBeginTime_Handle, value); } } } public virtual double Duration { [Export("duration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } [Export("setDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDuration_Handle, value); } } } public virtual float Speed { [Export("speed")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selSpeedHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selSpeedHandle); } [Export("setSpeed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetSpeed_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetSpeed_Handle, value); } } } public virtual double TimeOffset { [Export("timeOffset")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeOffsetHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeOffsetHandle); } [Export("setTimeOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTimeOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTimeOffset_Handle, value); } } } public virtual float RepeatCount { [Export("repeatCount")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRepeatCountHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRepeatCountHandle); } [Export("setRepeatCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRepeatCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRepeatCount_Handle, value); } } } public virtual double RepeatDuration { [Export("repeatDuration")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRepeatDurationHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRepeatDurationHandle); } [Export("setRepeatDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRepeatDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRepeatDuration_Handle, value); } } } public virtual bool AutoReverses { [Export("autoreverses")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoreversesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoreversesHandle); } [Export("setAutoreverses:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoreverses_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoreverses_Handle, value); } } } public virtual string FillMode { [Export("fillMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFillModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillModeHandle)); } [Export("setFillMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillMode_Handle, arg); } NSString.ReleaseNative(arg); } } [Since(3, 2)] public virtual CGColor ShadowColor { [Export("shadowColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selShadowColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShadowColorHandle)); } [Export("setShadowColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShadowColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShadowColor_Handle, value.Handle); } } } [Since(3, 2)] public virtual CGSize ShadowOffset { [Export("shadowOffset")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selShadowOffsetHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selShadowOffsetHandle); } [Export("setShadowOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetShadowOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetShadowOffset_Handle, value); } } } [Since(3, 2)] public virtual float ShadowOpacity { [Export("shadowOpacity")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selShadowOpacityHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selShadowOpacityHandle); } [Export("setShadowOpacity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetShadowOpacity_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetShadowOpacity_Handle, value); } } } [Since(3, 2)] public virtual double ShadowRadius { [Export("shadowRadius")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selShadowRadiusHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selShadowRadiusHandle); } [Export("setShadowRadius:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetShadowRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetShadowRadius_Handle, value); } } } public virtual CGRect VisibleRect { [Export("visibleRect")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selVisibleRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selVisibleRectHandle); } return retval; } } public virtual CAAutoresizingMask AutoresizinMask { [Export("autoresizingMask")] get { if (IsDirectBinding) { return (CAAutoresizingMask)Messaging.int_objc_msgSend(base.Handle, selAutoresizingMaskHandle); } return (CAAutoresizingMask)Messaging.int_objc_msgSendSuper(base.SuperHandle, selAutoresizingMaskHandle); } [Export("setAutoresizingMask:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetAutoresizingMask_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetAutoresizingMask_Handle, (int)value); } } } public virtual CAConstraint[] Constraints { [Export("constraints")] get { return (CAConstraint[])(__mt_Constraints_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConstraintsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConstraintsHandle)))); } [Export("setConstraints:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetConstraints_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetConstraints_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Constraints_var = value; } } public virtual CIFilter[] Filters { [Export("filters")] get { return (CIFilter[])(__mt_Filters_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFiltersHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFiltersHandle)))); } [Export("setFilters:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFilters_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFilters_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Filters_var = value; } } [Field("kCATransition", "CoreAnimation")] public static NSString Transition { get { if (_Transition == null) { _Transition = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransition"); } return _Transition; } } [Field("kCAGravityCenter", "CoreAnimation")] public static NSString GravityCenter { get { if (_GravityCenter == null) { _GravityCenter = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityCenter"); } return _GravityCenter; } } [Field("kCAGravityTop", "CoreAnimation")] public static NSString GravityTop { get { if (_GravityTop == null) { _GravityTop = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityTop"); } return _GravityTop; } } [Field("kCAGravityBottom", "CoreAnimation")] public static NSString GravityBottom { get { if (_GravityBottom == null) { _GravityBottom = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityBottom"); } return _GravityBottom; } } [Field("kCAGravityLeft", "CoreAnimation")] public static NSString GravityLeft { get { if (_GravityLeft == null) { _GravityLeft = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityLeft"); } return _GravityLeft; } } [Field("kCAGravityRight", "CoreAnimation")] public static NSString GravityRight { get { if (_GravityRight == null) { _GravityRight = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityRight"); } return _GravityRight; } } [Field("kCAGravityTopLeft", "CoreAnimation")] public static NSString GravityTopLeft { get { if (_GravityTopLeft == null) { _GravityTopLeft = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityTopLeft"); } return _GravityTopLeft; } } [Field("kCAGravityTopRight", "CoreAnimation")] public static NSString GravityTopRight { get { if (_GravityTopRight == null) { _GravityTopRight = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityTopRight"); } return _GravityTopRight; } } [Field("kCAGravityBottomLeft", "CoreAnimation")] public static NSString GravityBottomLeft { get { if (_GravityBottomLeft == null) { _GravityBottomLeft = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityBottomLeft"); } return _GravityBottomLeft; } } [Field("kCAGravityBottomRight", "CoreAnimation")] public static NSString GravityBottomRight { get { if (_GravityBottomRight == null) { _GravityBottomRight = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityBottomRight"); } return _GravityBottomRight; } } [Field("kCAGravityResize", "CoreAnimation")] public static NSString GravityResize { get { if (_GravityResize == null) { _GravityResize = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityResize"); } return _GravityResize; } } [Field("kCAGravityResizeAspect", "CoreAnimation")] public static NSString GravityResizeAspect { get { if (_GravityResizeAspect == null) { _GravityResizeAspect = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityResizeAspect"); } return _GravityResizeAspect; } } [Field("kCAGravityResizeAspectFill", "CoreAnimation")] public static NSString GravityResizeAspectFill { get { if (_GravityResizeAspectFill == null) { _GravityResizeAspectFill = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAGravityResizeAspectFill"); } return _GravityResizeAspectFill; } } [Field("kCAFilterNearest", "CoreAnimation")] public static NSString FilterNearest { get { if (_FilterNearest == null) { _FilterNearest = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAFilterNearest"); } return _FilterNearest; } } [Field("kCAFilterLinear", "CoreAnimation")] public static NSString FilterLinear { get { if (_FilterLinear == null) { _FilterLinear = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAFilterLinear"); } return _FilterLinear; } } [Field("kCAFilterTrilinear", "CoreAnimation")] public static NSString FilterTrilinear { get { if (_FilterTrilinear == null) { _FilterTrilinear = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAFilterTrilinear"); } return _FilterTrilinear; } } [Field("kCAOnOrderIn", "CoreAnimation")] public static NSString OnOrderIn { get { if (_OnOrderIn == null) { _OnOrderIn = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAOnOrderIn"); } return _OnOrderIn; } } [Field("kCAOnOrderOut", "CoreAnimation")] public static NSString OnOrderOut { get { if (_OnOrderOut == null) { _OnOrderOut = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAOnOrderOut"); } return _OnOrderOut; } } [Export("initWithLayer:")] public CALayer(CALayer other) { if (GetType() == typeof(CALayer)) { Messaging.intptr_objc_msgSend_intptr(base.Handle, Selector.GetHandle("initWithLayer:"), other.Handle); return; } Messaging.intptr_objc_msgSendSuper_intptr(base.SuperHandle, Selector.GetHandle("initWithLayer:"), other.Handle); Clone(other); } public virtual void Clone(CALayer other) { } [Obsolete("Use ConvertRectFromLayer instead")] public CGRect ConvertRectfromLayer(CGRect rect, CALayer layer) { return ConvertRectFromLayer(rect, layer); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CALayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CALayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CALayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CALayer(IntPtr handle) : base(handle) { } [Export("layer")] public static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } [Export("defaultValueForKey:")] public static NSObject DefaultValue(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("needsDisplayForKey:")] public static bool NeedsDisplayForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selNeedsDisplayForKey_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("removeFromSuperlayer")] public virtual void RemoveFromSuperLayer() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveFromSuperlayerHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveFromSuperlayerHandle); } } [Export("addSublayer:")] public virtual void AddSublayer(CALayer layer) { if (layer == null) { throw new ArgumentNullException("layer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSublayer_Handle, layer.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSublayer_Handle, layer.Handle); } _ = Sublayers; } [Export("insertSublayer:atIndex:")] public virtual void InsertSublayer(CALayer layer, int index) { if (layer == null) { throw new ArgumentNullException("layer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertSublayerAtIndex_Handle, layer.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertSublayerAtIndex_Handle, layer.Handle, index); } _ = Sublayers; } [Export("insertSublayer:below:")] public virtual void InsertSublayerBelow(CALayer layer, CALayer sibling) { if (layer == null) { throw new ArgumentNullException("layer"); } if (sibling == null) { throw new ArgumentNullException("sibling"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertSublayerBelow_Handle, layer.Handle, sibling.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertSublayerBelow_Handle, layer.Handle, sibling.Handle); } _ = Sublayers; } [Export("insertSublayer:above:")] public virtual void InsertSublayerAbove(CALayer layer, CALayer sibling) { if (layer == null) { throw new ArgumentNullException("layer"); } if (sibling == null) { throw new ArgumentNullException("sibling"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertSublayerAbove_Handle, layer.Handle, sibling.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertSublayerAbove_Handle, layer.Handle, sibling.Handle); } _ = Sublayers; } [Export("replaceSublayer:with:")] public virtual void ReplaceSublayer(CALayer layer, CALayer with) { if (layer == null) { throw new ArgumentNullException("layer"); } if (with == null) { throw new ArgumentNullException("with"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selReplaceSublayerWith_Handle, layer.Handle, with.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReplaceSublayerWith_Handle, layer.Handle, with.Handle); } _ = Sublayers; } [Export("convertPoint:fromLayer:")] public virtual CGPoint ConvertPointFromLayer(CGPoint point, CALayer layer) { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointFromLayer_Handle, point, layer?.Handle ?? IntPtr.Zero); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointFromLayer_Handle, point, layer?.Handle ?? IntPtr.Zero); } [Export("convertPoint:toLayer:")] public virtual CGPoint ConvertPointToLayer(CGPoint point, CALayer layer) { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointToLayer_Handle, point, layer?.Handle ?? IntPtr.Zero); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointToLayer_Handle, point, layer?.Handle ?? IntPtr.Zero); } [Export("convertRect:fromLayer:")] public virtual CGRect ConvertRectFromLayer(CGRect rect, CALayer layer) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectFromLayer_Handle, rect, layer?.Handle ?? IntPtr.Zero); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectFromLayer_Handle, rect, layer?.Handle ?? IntPtr.Zero); } return retval; } [Export("convertRect:toLayer:")] public virtual CGRect ConvertRectToLayer(CGRect rect, CALayer layer) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectToLayer_Handle, rect, layer?.Handle ?? IntPtr.Zero); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectToLayer_Handle, rect, layer?.Handle ?? IntPtr.Zero); } return retval; } [Export("convertTime:fromLayer:")] public virtual double ConvertTimeFromLayer(double timeInterval, CALayer layer) { if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double_IntPtr(base.Handle, selConvertTimeFromLayer_Handle, timeInterval, layer?.Handle ?? IntPtr.Zero); } return Messaging.Double_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selConvertTimeFromLayer_Handle, timeInterval, layer?.Handle ?? IntPtr.Zero); } [Export("convertTime:toLayer:")] public virtual double ConvertTimeToLayer(double timeInterval, CALayer layer) { if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Double_IntPtr(base.Handle, selConvertTimeToLayer_Handle, timeInterval, layer?.Handle ?? IntPtr.Zero); } return Messaging.Double_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selConvertTimeToLayer_Handle, timeInterval, layer?.Handle ?? IntPtr.Zero); } [Export("hitTest:")] public virtual CALayer HitTest(CGPoint p) { if (IsDirectBinding) { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selHitTest_Handle, p)); } return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selHitTest_Handle, p)); } [Export("containsPoint:")] public virtual bool Contains(CGPoint p) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_CGPoint(base.Handle, selContainsPoint_Handle, p); } return Messaging.bool_objc_msgSendSuper_CGPoint(base.SuperHandle, selContainsPoint_Handle, p); } [Export("display")] public virtual void Display() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayHandle); } } [Export("setNeedsDisplay")] public virtual void SetNeedsDisplay() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetNeedsDisplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetNeedsDisplayHandle); } } [Export("setNeedsDisplayInRect:")] public virtual void SetNeedsDisplayInRect(CGRect r) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetNeedsDisplayInRect_Handle, r); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetNeedsDisplayInRect_Handle, r); } } [Export("displayIfNeeded")] public virtual void DisplayIfNeeded() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisplayIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisplayIfNeededHandle); } } [Export("drawInContext:")] public virtual void DrawInContext(CGContext ctx) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDrawInContext_Handle, ctx.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDrawInContext_Handle, ctx.Handle); } } [Export("renderInContext:")] public virtual void RenderInContext(CGContext ctx) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRenderInContext_Handle, ctx.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRenderInContext_Handle, ctx.Handle); } } [Export("preferredFrameSize")] public virtual CGSize PreferredFrameSize() { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selPreferredFrameSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selPreferredFrameSizeHandle); } [Export("setNeedsLayout")] public virtual void SetNeedsLayout() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetNeedsLayoutHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetNeedsLayoutHandle); } } [Export("needsLayout")] public virtual bool NeedsLayout() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selNeedsLayoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selNeedsLayoutHandle); } [Export("layoutIfNeeded")] public virtual void LayoutIfNeeded() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutIfNeededHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutIfNeededHandle); } } [Export("layoutSublayers")] public virtual void LayoutSublayers() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutSublayersHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutSublayersHandle); } } [Export("defaultActionForKey:")] public static NSObject DefaultActionForKey(string eventKey) { if (eventKey == null) { throw new ArgumentNullException("eventKey"); } IntPtr arg = NSString.CreateNative(eventKey); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultActionForKey_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("actionForKey:")] public virtual NSObject ActionForKey(string eventKey) { if (eventKey == null) { throw new ArgumentNullException("eventKey"); } IntPtr arg = NSString.CreateNative(eventKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selActionForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selActionForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("addAnimation:forKey:")] public virtual void AddAnimation(CAAnimation animation, string key) { if (animation == null) { throw new ArgumentNullException("animation"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddAnimationForKey_Handle, animation.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddAnimationForKey_Handle, animation.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeAllAnimations")] public virtual void RemoveAllAnimations() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllAnimationsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllAnimationsHandle); } } [Export("removeAnimationForKey:")] public virtual void RemoveAnimation(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAnimationForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAnimationForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("animationForKey:")] public virtual CAAnimation AnimationForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); CAAnimation result = ((!IsDirectBinding) ? ((CAAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnimationForKey_Handle, arg))) : ((CAAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAnimationForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("scrollPoint:")] public virtual void ScrollPoint(CGPoint p) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selScrollPoint_Handle, p); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selScrollPoint_Handle, p); } } [Export("scrollRectToVisible:")] public virtual void ScrollRectToVisible(CGRect r) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selScrollRectToVisible_Handle, r); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selScrollRectToVisible_Handle, r); } } [Export("resizeSublayersWithOldSize:")] public virtual void ResizeSublayers(CGSize oldSize) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selResizeSublayersWithOldSize_Handle, oldSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selResizeSublayersWithOldSize_Handle, oldSize); } } [Export("resizeWithOldSuperlayerSize:")] public virtual void Resize(CGSize oldSuperlayerSize) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selResizeWithOldSuperlayerSize_Handle, oldSuperlayerSize); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selResizeWithOldSuperlayerSize_Handle, oldSuperlayerSize); } } [Export("addConstraint:")] public virtual void AddConstraint(CAConstraint c) { if (c == null) { throw new ArgumentNullException("c"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddConstraint_Handle, c.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddConstraint_Handle, c.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PresentationLayer_var = null; __mt_ModelLayer_var = null; __mt_SuperLayer_var = null; __mt_Sublayers_var = null; __mt_Mask_var = null; __mt_LayoutManager_var = null; __mt_Actions_var = null; __mt_WeakDelegate_var = null; __mt_Constraints_var = null; __mt_Filters_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CALayerDelegate.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Protocol] [Register("CALayerDelegate", true)] [Model] public class CALayerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CALayerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CALayerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CALayerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CALayerDelegate(IntPtr handle) : base(handle) { } [Export("displayLayer:")] public virtual void DisplayLayer(CALayer layer) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("drawLayer:inContext:")] public virtual void DrawLayer(CALayer layer, CGContext context) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("layoutSublayersOfLayer:")] public virtual void LayoutSublayersOfLayer(CALayer layer) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("actionForLayer:forKey:")] public virtual NSObject ActionForLayer(CALayer layer, string eventKey) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAMediaTimingFunction.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAMediaTimingFunction", true)] public class CAMediaTimingFunction : NSObject { private static readonly IntPtr selFunctionWithName_Handle = Selector.GetHandle("functionWithName:"); private static readonly IntPtr selFunctionWithControlPoints_Handle = Selector.GetHandle("functionWithControlPoints::::"); private static readonly IntPtr selInitWithControlPoints_Handle = Selector.GetHandle("initWithControlPoints::::"); private static readonly IntPtr selGetControlPointAtIndexValues_Handle = Selector.GetHandle("getControlPointAtIndex:values:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAMediaTimingFunction"); private static NSString _Linear; private static NSString _EaseIn; private static NSString _EaseOut; private static NSString _EaseInEaseOut; private static NSString _Default; public override IntPtr ClassHandle => class_ptr; [Field("kCAMediaTimingFunctionLinear", "CoreAnimation")] public static NSString Linear { get { if (_Linear == null) { _Linear = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAMediaTimingFunctionLinear"); } return _Linear; } } [Field("kCAMediaTimingFunctionEaseIn", "CoreAnimation")] public static NSString EaseIn { get { if (_EaseIn == null) { _EaseIn = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAMediaTimingFunctionEaseIn"); } return _EaseIn; } } [Field("kCAMediaTimingFunctionEaseOut", "CoreAnimation")] public static NSString EaseOut { get { if (_EaseOut == null) { _EaseOut = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAMediaTimingFunctionEaseOut"); } return _EaseOut; } } [Field("kCAMediaTimingFunctionEaseInEaseOut", "CoreAnimation")] public static NSString EaseInEaseOut { get { if (_EaseInEaseOut == null) { _EaseInEaseOut = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAMediaTimingFunctionEaseInEaseOut"); } return _EaseInEaseOut; } } [Field("kCAMediaTimingFunctionDefault", "CoreAnimation")] public static NSString Default { get { if (_Default == null) { _Default = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAMediaTimingFunctionDefault"); } return _Default; } } [Advice("Use FromName(NSString) with one of the CAMediaTimingFunction fields")] public static CAMediaTimingFunction FromName(string name) { using NSString name2 = new NSString(name); return FromName(name2); } public unsafe CGPoint GetControlPoint(int index) { if (index < 0 || index > 3) { throw new ArgumentOutOfRangeException("index"); } float[] array = new float[2]; fixed (float* ptr = &array[0]) { GetControlPointAtIndex(index, (IntPtr)ptr); } return new CGPoint(array[0], array[1]); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAMediaTimingFunction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAMediaTimingFunction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAMediaTimingFunction(IntPtr handle) : base(handle) { } [Export("functionWithName:")] public static CAMediaTimingFunction FromName(NSString name) { if (name == null) { throw new ArgumentNullException("name"); } return (CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFunctionWithName_Handle, name.Handle)); } [Export("functionWithControlPoints::::")] public static CAMediaTimingFunction FromControlPoints(float c1x, float c1y, float c2x, float c2y) { return (CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_float_float_float_float(class_ptr, selFunctionWithControlPoints_Handle, c1x, c1y, c2x, c2y)); } [Export("initWithControlPoints::::")] public CAMediaTimingFunction(float c1x, float c1y, float c2x, float c2y) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_float_float_float_float(base.Handle, selInitWithControlPoints_Handle, c1x, c1y, c2x, c2y); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_float_float_float_float(base.SuperHandle, selInitWithControlPoints_Handle, c1x, c1y, c2x, c2y); } } [Export("getControlPointAtIndex:values:")] internal virtual void GetControlPointAtIndex(int idx, IntPtr point) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr(base.Handle, selGetControlPointAtIndexValues_Handle, idx, point); } else { Messaging.void_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selGetControlPointAtIndexValues_Handle, idx, point); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAOpenGLLayer.cs ================================================ using System; using System.ComponentModel; using CoreVideo; using Foundation; using ObjCRuntime; using OpenGL; namespace CoreAnimation; [Register("CAOpenGLLayer", true)] public class CAOpenGLLayer : CALayer { private static readonly IntPtr selIsAsynchronousHandle = Selector.GetHandle("isAsynchronous"); private static readonly IntPtr selSetAsynchronous_Handle = Selector.GetHandle("setAsynchronous:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr selCanDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle = Selector.GetHandle("canDrawInCGLContext:pixelFormat:forLayerTime:displayTime:"); private static readonly IntPtr selDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle = Selector.GetHandle("drawInCGLContext:pixelFormat:forLayerTime:displayTime:"); private static readonly IntPtr selCopyCGLPixelFormatForDisplayMask_Handle = Selector.GetHandle("copyCGLPixelFormatForDisplayMask:"); private static readonly IntPtr selReleaseCGLPixelFormat_Handle = Selector.GetHandle("releaseCGLPixelFormat:"); private static readonly IntPtr selCopyCGLContextForPixelFormat_Handle = Selector.GetHandle("copyCGLContextForPixelFormat:"); private static readonly IntPtr selReleaseCGLContext_Handle = Selector.GetHandle("releaseCGLContext:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAOpenGLLayer"); public override IntPtr ClassHandle => class_ptr; public virtual bool Asynchronous { [Export("isAsynchronous")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAsynchronousHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAsynchronousHandle); } [Export("setAsynchronous:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAsynchronous_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAsynchronous_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAOpenGLLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAOpenGLLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAOpenGLLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAOpenGLLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } [Export("canDrawInCGLContext:pixelFormat:forLayerTime:displayTime:")] public virtual bool CanDrawInCGLContext(CGLContext glContext, CGLPixelFormat pixelFormat, double timeInterval, ref CVTimeStamp timeStamp) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr_Double_out_CVTimeStamp(base.Handle, selCanDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle, glContext.Handle, pixelFormat.Handle, timeInterval, out timeStamp); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_Double_out_CVTimeStamp(base.SuperHandle, selCanDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle, glContext.Handle, pixelFormat.Handle, timeInterval, out timeStamp); } [Export("drawInCGLContext:pixelFormat:forLayerTime:displayTime:")] public virtual void DrawInCGLContext(CGLContext glContext, CGLPixelFormat pixelFormat, double timeInterval, ref CVTimeStamp timeStamp) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_Double_out_CVTimeStamp(base.Handle, selDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle, glContext.Handle, pixelFormat.Handle, timeInterval, out timeStamp); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_Double_out_CVTimeStamp(base.SuperHandle, selDrawInCGLContextPixelFormatForLayerTimeDisplayTime_Handle, glContext.Handle, pixelFormat.Handle, timeInterval, out timeStamp); } } [Export("copyCGLPixelFormatForDisplayMask:")] public virtual CGLPixelFormat CopyCGLPixelFormatForDisplayMask(uint mask) { if (IsDirectBinding) { return new CGLPixelFormat(Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selCopyCGLPixelFormatForDisplayMask_Handle, mask)); } return new CGLPixelFormat(Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selCopyCGLPixelFormatForDisplayMask_Handle, mask)); } [Export("releaseCGLPixelFormat:")] public virtual void Release(CGLPixelFormat pixelFormat) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReleaseCGLPixelFormat_Handle, pixelFormat.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReleaseCGLPixelFormat_Handle, pixelFormat.Handle); } } [Export("copyCGLContextForPixelFormat:")] public virtual CGLContext CopyContext(CGLPixelFormat pixelFormat) { if (IsDirectBinding) { return new CGLContext(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCopyCGLContextForPixelFormat_Handle, pixelFormat.Handle)); } return new CGLContext(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopyCGLContextForPixelFormat_Handle, pixelFormat.Handle)); } [Export("releaseCGLContext:")] public virtual void Release(CGLContext glContext) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReleaseCGLContext_Handle, glContext.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReleaseCGLContext_Handle, glContext.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAPropertyAnimation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAPropertyAnimation", true)] public class CAPropertyAnimation : CAAnimation { private static readonly IntPtr selKeyPathHandle = Selector.GetHandle("keyPath"); private static readonly IntPtr selSetKeyPath_Handle = Selector.GetHandle("setKeyPath:"); private static readonly IntPtr selIsAdditiveHandle = Selector.GetHandle("isAdditive"); private static readonly IntPtr selSetAdditive_Handle = Selector.GetHandle("setAdditive:"); private static readonly IntPtr selIsCumulativeHandle = Selector.GetHandle("isCumulative"); private static readonly IntPtr selSetCumulative_Handle = Selector.GetHandle("setCumulative:"); private static readonly IntPtr selValueFunctionHandle = Selector.GetHandle("valueFunction"); private static readonly IntPtr selSetValueFunction_Handle = Selector.GetHandle("setValueFunction:"); private static readonly IntPtr selAnimationWithKeyPath_Handle = Selector.GetHandle("animationWithKeyPath:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAPropertyAnimation"); private object __mt_ValueFunction_var; public override IntPtr ClassHandle => class_ptr; public virtual string KeyPath { [Export("keyPath", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyPathHandle)); } [Export("setKeyPath:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetKeyPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetKeyPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Additive { [Export("isAdditive")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAdditiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAdditiveHandle); } [Export("setAdditive:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAdditive_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAdditive_Handle, value); } } } public virtual bool Cumulative { [Export("isCumulative")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCumulativeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCumulativeHandle); } [Export("setCumulative:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCumulative_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCumulative_Handle, value); } } } public virtual CAValueFunction ValueFunction { [Export("valueFunction", ArgumentSemantic.Retain)] get { return (CAValueFunction)(__mt_ValueFunction_var = ((!IsDirectBinding) ? ((CAValueFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueFunctionHandle))) : ((CAValueFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueFunctionHandle))))); } [Export("setValueFunction:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValueFunction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValueFunction_Handle, value.Handle); } __mt_ValueFunction_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAPropertyAnimation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAPropertyAnimation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAPropertyAnimation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAPropertyAnimation(IntPtr handle) : base(handle) { } [Export("animationWithKeyPath:")] public static CAPropertyAnimation FromKeyPath(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); CAPropertyAnimation result = (CAPropertyAnimation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAnimationWithKeyPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ValueFunction_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAReplicatorLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAReplicatorLayer", true)] public class CAReplicatorLayer : CALayer { private static readonly IntPtr selInstanceCountHandle = Selector.GetHandle("instanceCount"); private static readonly IntPtr selSetInstanceCount_Handle = Selector.GetHandle("setInstanceCount:"); private static readonly IntPtr selInstanceDelayHandle = Selector.GetHandle("instanceDelay"); private static readonly IntPtr selSetInstanceDelay_Handle = Selector.GetHandle("setInstanceDelay:"); private static readonly IntPtr selInstanceTransformHandle = Selector.GetHandle("instanceTransform"); private static readonly IntPtr selSetInstanceTransform_Handle = Selector.GetHandle("setInstanceTransform:"); private static readonly IntPtr selPreservesDepthHandle = Selector.GetHandle("preservesDepth"); private static readonly IntPtr selSetPreservesDepth_Handle = Selector.GetHandle("setPreservesDepth:"); private static readonly IntPtr selInstanceColorHandle = Selector.GetHandle("instanceColor"); private static readonly IntPtr selSetInstanceColor_Handle = Selector.GetHandle("setInstanceColor:"); private static readonly IntPtr selInstanceRedOffsetHandle = Selector.GetHandle("instanceRedOffset"); private static readonly IntPtr selSetInstanceRedOffset_Handle = Selector.GetHandle("setInstanceRedOffset:"); private static readonly IntPtr selInstanceGreenOffsetHandle = Selector.GetHandle("instanceGreenOffset"); private static readonly IntPtr selSetInstanceGreenOffset_Handle = Selector.GetHandle("setInstanceGreenOffset:"); private static readonly IntPtr selInstanceBlueOffsetHandle = Selector.GetHandle("instanceBlueOffset"); private static readonly IntPtr selSetInstanceBlueOffset_Handle = Selector.GetHandle("setInstanceBlueOffset:"); private static readonly IntPtr selInstanceAlphaOffsetHandle = Selector.GetHandle("instanceAlphaOffset"); private static readonly IntPtr selSetInstanceAlphaOffset_Handle = Selector.GetHandle("setInstanceAlphaOffset:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CAReplicatorLayer"); public override IntPtr ClassHandle => class_ptr; public virtual int InstanceCount { [Export("instanceCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selInstanceCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selInstanceCountHandle); } [Export("setInstanceCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetInstanceCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetInstanceCount_Handle, value); } } } public virtual double InstanceDelay { [Export("instanceDelay")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selInstanceDelayHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selInstanceDelayHandle); } [Export("setInstanceDelay:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetInstanceDelay_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetInstanceDelay_Handle, value); } } } public virtual CATransform3D InstanceTransform { [Export("instanceTransform")] get { CATransform3D retval; if (IsDirectBinding) { Messaging.CATransform3D_objc_msgSend_stret(out retval, base.Handle, selInstanceTransformHandle); } else { Messaging.CATransform3D_objc_msgSendSuper_stret(out retval, base.SuperHandle, selInstanceTransformHandle); } return retval; } [Export("setInstanceTransform:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CATransform3D(base.Handle, selSetInstanceTransform_Handle, value); } else { Messaging.void_objc_msgSendSuper_CATransform3D(base.SuperHandle, selSetInstanceTransform_Handle, value); } } } public virtual bool PreservesDepth { [Export("preservesDepth")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesDepthHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesDepthHandle); } [Export("setPreservesDepth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesDepth_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesDepth_Handle, value); } } } public virtual CGColor InstanceColor { [Export("instanceColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selInstanceColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInstanceColorHandle)); } [Export("setInstanceColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInstanceColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInstanceColor_Handle, value.Handle); } } } public virtual float InstanceRedOffset { [Export("instanceRedOffset")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selInstanceRedOffsetHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selInstanceRedOffsetHandle); } [Export("setInstanceRedOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetInstanceRedOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetInstanceRedOffset_Handle, value); } } } public virtual float InstanceGreenOffset { [Export("instanceGreenOffset")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selInstanceGreenOffsetHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selInstanceGreenOffsetHandle); } [Export("setInstanceGreenOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetInstanceGreenOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetInstanceGreenOffset_Handle, value); } } } public virtual float InstanceBlueOffset { [Export("instanceBlueOffset")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selInstanceBlueOffsetHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selInstanceBlueOffsetHandle); } [Export("setInstanceBlueOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetInstanceBlueOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetInstanceBlueOffset_Handle, value); } } } public virtual float InstanceAlphaOffset { [Export("instanceAlphaOffset")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selInstanceAlphaOffsetHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selInstanceAlphaOffsetHandle); } [Export("setInstanceAlphaOffset:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetInstanceAlphaOffset_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetInstanceAlphaOffset_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAReplicatorLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAReplicatorLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAReplicatorLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAReplicatorLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAScrollLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAScrollLayer", true)] public class CAScrollLayer : CALayer { private static readonly IntPtr selScrollModeHandle = Selector.GetHandle("scrollMode"); private static readonly IntPtr selSetScrollMode_Handle = Selector.GetHandle("setScrollMode:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr selScrollToPoint_Handle = Selector.GetHandle("scrollToPoint:"); private static readonly IntPtr selScrollToRect_Handle = Selector.GetHandle("scrollToRect:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAScrollLayer"); private object __mt_ScrollMode_var; private static NSString _ScrollNone; private static NSString _ScrollVertically; private static NSString _ScrollHorizontally; private static NSString _ScrollBoth; public override IntPtr ClassHandle => class_ptr; public virtual NSString ScrollMode { [Export("scrollMode")] get { return (NSString)(__mt_ScrollMode_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScrollModeHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selScrollModeHandle))))); } [Export("setScrollMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetScrollMode_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetScrollMode_Handle, value.Handle); } __mt_ScrollMode_var = value; } } [Field("kCAScrollNone", "CoreAnimation")] public static NSString ScrollNone { get { if (_ScrollNone == null) { _ScrollNone = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAScrollNone"); } return _ScrollNone; } } [Field("kCAScrollVertically", "CoreAnimation")] public static NSString ScrollVertically { get { if (_ScrollVertically == null) { _ScrollVertically = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAScrollVertically"); } return _ScrollVertically; } } [Field("kCAScrollHorizontally", "CoreAnimation")] public static NSString ScrollHorizontally { get { if (_ScrollHorizontally == null) { _ScrollHorizontally = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAScrollHorizontally"); } return _ScrollHorizontally; } } [Field("kCAScrollBoth", "CoreAnimation")] public static NSString ScrollBoth { get { if (_ScrollBoth == null) { _ScrollBoth = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAScrollBoth"); } return _ScrollBoth; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAScrollLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAScrollLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAScrollLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAScrollLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } [Export("scrollToPoint:")] public virtual void ScrollToPoint(CGPoint p) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selScrollToPoint_Handle, p); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selScrollToPoint_Handle, p); } } [Export("scrollToRect:")] public virtual void ScrollToRect(CGRect r) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selScrollToRect_Handle, r); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selScrollToRect_Handle, r); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ScrollMode_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAShapeLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAShapeLayer", true)] public class CAShapeLayer : CALayer { private static readonly IntPtr selPathHandle = Selector.GetHandle("path"); private static readonly IntPtr selSetPath_Handle = Selector.GetHandle("setPath:"); private static readonly IntPtr selFillColorHandle = Selector.GetHandle("fillColor"); private static readonly IntPtr selSetFillColor_Handle = Selector.GetHandle("setFillColor:"); private static readonly IntPtr selFillRuleHandle = Selector.GetHandle("fillRule"); private static readonly IntPtr selSetFillRule_Handle = Selector.GetHandle("setFillRule:"); private static readonly IntPtr selLineCapHandle = Selector.GetHandle("lineCap"); private static readonly IntPtr selSetLineCap_Handle = Selector.GetHandle("setLineCap:"); private static readonly IntPtr selLineDashPatternHandle = Selector.GetHandle("lineDashPattern"); private static readonly IntPtr selSetLineDashPattern_Handle = Selector.GetHandle("setLineDashPattern:"); private static readonly IntPtr selLineDashPhaseHandle = Selector.GetHandle("lineDashPhase"); private static readonly IntPtr selSetLineDashPhase_Handle = Selector.GetHandle("setLineDashPhase:"); private static readonly IntPtr selLineJoinHandle = Selector.GetHandle("lineJoin"); private static readonly IntPtr selSetLineJoin_Handle = Selector.GetHandle("setLineJoin:"); private static readonly IntPtr selLineWidthHandle = Selector.GetHandle("lineWidth"); private static readonly IntPtr selSetLineWidth_Handle = Selector.GetHandle("setLineWidth:"); private static readonly IntPtr selMiterLimitHandle = Selector.GetHandle("miterLimit"); private static readonly IntPtr selSetMiterLimit_Handle = Selector.GetHandle("setMiterLimit:"); private static readonly IntPtr selStrokeColorHandle = Selector.GetHandle("strokeColor"); private static readonly IntPtr selSetStrokeColor_Handle = Selector.GetHandle("setStrokeColor:"); private static readonly IntPtr selStrokeStartHandle = Selector.GetHandle("strokeStart"); private static readonly IntPtr selSetStrokeStart_Handle = Selector.GetHandle("setStrokeStart:"); private static readonly IntPtr selStrokeEndHandle = Selector.GetHandle("strokeEnd"); private static readonly IntPtr selSetStrokeEnd_Handle = Selector.GetHandle("setStrokeEnd:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CAShapeLayer"); private object __mt_FillRule_var; private object __mt_LineCap_var; private object __mt_LineDashPattern_var; private object __mt_LineJoin_var; private static NSString _JoinMiter; private static NSString _JoinRound; private static NSString _JoinBevel; private static NSString _CapButt; private static NSString _CapRound; private static NSString _CapSquare; private static NSString _FillRuleNonZero; private static NSString _FillRuleEvenOdd; public override IntPtr ClassHandle => class_ptr; public virtual CGPath Path { [Export("path")] get { if (IsDirectBinding) { return new CGPath(Messaging.IntPtr_objc_msgSend(base.Handle, selPathHandle)); } return new CGPath(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathHandle)); } [Export("setPath:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPath_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPath_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual CGColor FillColor { [Export("fillColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selFillColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillColorHandle)); } [Export("setFillColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillColor_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillColor_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } public virtual NSString FillRule { [Export("fillRule", ArgumentSemantic.Copy)] get { return (NSString)(__mt_FillRule_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillRuleHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFillRuleHandle))))); } [Export("setFillRule:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillRule_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillRule_Handle, value.Handle); } __mt_FillRule_var = value; } } public virtual NSString LineCap { [Export("lineCap", ArgumentSemantic.Copy)] get { return (NSString)(__mt_LineCap_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLineCapHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLineCapHandle))))); } [Export("setLineCap:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLineCap_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLineCap_Handle, value.Handle); } __mt_LineCap_var = value; } } public virtual NSNumber[] LineDashPattern { [Export("lineDashPattern", ArgumentSemantic.Copy)] get { return (NSNumber[])(__mt_LineDashPattern_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLineDashPatternHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLineDashPatternHandle)))); } [Export("setLineDashPattern:", ArgumentSemantic.Copy)] set { NSArray nSArray = ((value == null) ? null : NSArray.FromNSObjects(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLineDashPattern_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLineDashPattern_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); __mt_LineDashPattern_var = value; } } public virtual float LineDashPhase { [Export("lineDashPhase")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLineDashPhaseHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLineDashPhaseHandle); } [Export("setLineDashPhase:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLineDashPhase_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLineDashPhase_Handle, value); } } } public virtual NSString LineJoin { [Export("lineJoin", ArgumentSemantic.Copy)] get { return (NSString)(__mt_LineJoin_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLineJoinHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLineJoinHandle))))); } [Export("setLineJoin:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLineJoin_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLineJoin_Handle, value.Handle); } __mt_LineJoin_var = value; } } public virtual float LineWidth { [Export("lineWidth")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLineWidthHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLineWidthHandle); } [Export("setLineWidth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLineWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLineWidth_Handle, value); } } } public virtual float MiterLimit { [Export("miterLimit")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selMiterLimitHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selMiterLimitHandle); } [Export("setMiterLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetMiterLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetMiterLimit_Handle, value); } } } public virtual CGColor StrokeColor { [Export("strokeColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selStrokeColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStrokeColorHandle)); } [Export("setStrokeColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStrokeColor_Handle, (value == null) ? IntPtr.Zero : value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStrokeColor_Handle, (value == null) ? IntPtr.Zero : value.Handle); } } } [Since(4, 2)] public virtual float StrokeStart { [Export("strokeStart")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selStrokeStartHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selStrokeStartHandle); } [Export("setStrokeStart:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetStrokeStart_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetStrokeStart_Handle, value); } } } [Since(4, 2)] public virtual float StrokeEnd { [Export("strokeEnd")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selStrokeEndHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selStrokeEndHandle); } [Export("setStrokeEnd:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetStrokeEnd_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetStrokeEnd_Handle, value); } } } [Field("kCALineJoinMiter", "CoreAnimation")] public static NSString JoinMiter { get { if (_JoinMiter == null) { _JoinMiter = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineJoinMiter"); } return _JoinMiter; } } [Field("kCALineJoinRound", "CoreAnimation")] public static NSString JoinRound { get { if (_JoinRound == null) { _JoinRound = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineJoinRound"); } return _JoinRound; } } [Field("kCALineJoinBevel", "CoreAnimation")] public static NSString JoinBevel { get { if (_JoinBevel == null) { _JoinBevel = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineJoinBevel"); } return _JoinBevel; } } [Field("kCALineCapButt", "CoreAnimation")] public static NSString CapButt { get { if (_CapButt == null) { _CapButt = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineCapButt"); } return _CapButt; } } [Field("kCALineCapRound", "CoreAnimation")] public static NSString CapRound { get { if (_CapRound == null) { _CapRound = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineCapRound"); } return _CapRound; } } [Field("kCALineCapSquare", "CoreAnimation")] public static NSString CapSquare { get { if (_CapSquare == null) { _CapSquare = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCALineCapSquare"); } return _CapSquare; } } [Field("kCAFillRuleNonZero", "CoreAnimation")] public static NSString FillRuleNonZero { get { if (_FillRuleNonZero == null) { _FillRuleNonZero = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAFillRuleNonZero"); } return _FillRuleNonZero; } } [Field("kCAFillRuleEvenOdd", "CoreAnimation")] public static NSString FillRuleEvenOdd { get { if (_FillRuleEvenOdd == null) { _FillRuleEvenOdd = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAFillRuleEvenOdd"); } return _FillRuleEvenOdd; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAShapeLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAShapeLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAShapeLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAShapeLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FillRule_var = null; __mt_LineCap_var = null; __mt_LineDashPattern_var = null; __mt_LineJoin_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATextLayer.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreFoundation; using CoreGraphics; using CoreText; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CATextLayer", true)] public class CATextLayer : CALayer { private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selSetString_Handle = Selector.GetHandle("setString:"); private static readonly IntPtr selFontSizeHandle = Selector.GetHandle("fontSize"); private static readonly IntPtr selSetFontSize_Handle = Selector.GetHandle("setFontSize:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selForegroundColorHandle = Selector.GetHandle("foregroundColor"); private static readonly IntPtr selSetForegroundColor_Handle = Selector.GetHandle("setForegroundColor:"); private static readonly IntPtr selIsWrappedHandle = Selector.GetHandle("isWrapped"); private static readonly IntPtr selSetWrapped_Handle = Selector.GetHandle("setWrapped:"); private static readonly IntPtr selTruncationModeHandle = Selector.GetHandle("truncationMode"); private static readonly IntPtr selSetTruncationMode_Handle = Selector.GetHandle("setTruncationMode:"); private static readonly IntPtr selAlignmentModeHandle = Selector.GetHandle("alignmentMode"); private static readonly IntPtr selSetAlignmentMode_Handle = Selector.GetHandle("setAlignmentMode:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CATextLayer"); private static NSString _TruncationNone; private static NSString _TruncantionStart; private static NSString _TruncantionEnd; private static NSString _TruncantionMiddle; private static NSString _AlignmentNatural; private static NSString _AlignmentLeft; private static NSString _AlignmentRight; private static NSString _AlignmentCenter; private static NSString _AlignmentJustified; public virtual NSAttributedString AttributedString { get { IntPtr ptr = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle) : Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); return Runtime.GetNSObject(ptr) as NSAttributedString; } set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetString_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetString_Handle, value.Handle); } } } public object WeakFont { get { IntPtr font = _Font; int typeID = CFType.GetTypeID(font); if (typeID == CTFont.GetTypeID()) { return new CTFont(font); } if (typeID == CGFont.GetTypeID()) { return new CGFont(font, owns: false); } if (typeID == CFString.GetTypeID()) { return CFString.FetchString(font); } return (NSFont)Runtime.GetNSObject(font); } set { if (value is NSFont nSFont) { _Font = nSFont.Handle; return; } if (value is CTFont cTFont) { _Font = cTFont.Handle; return; } if (value is CGFont cGFont) { _Font = cGFont.Handle; return; } NSString nSString = value as NSString; if (nSString != null) { _Font = nSString.Handle; } else if (value is string str) { nSString = new NSString(str); _Font = nSString.Handle; } } } public override IntPtr ClassHandle => class_ptr; public virtual string String { [Export("string", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } [Export("setString:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetString_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual float FontSize { [Export("fontSize")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selFontSizeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selFontSizeHandle); } [Export("setFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetFontSize_Handle, value); } } } internal virtual IntPtr _Font { [Export("font")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle); } [Export("setFont:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value); } } } public virtual CGColor ForegroundColor { [Export("foregroundColor")] get { if (IsDirectBinding) { return new CGColor(Messaging.IntPtr_objc_msgSend(base.Handle, selForegroundColorHandle)); } return new CGColor(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selForegroundColorHandle)); } [Export("setForegroundColor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetForegroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetForegroundColor_Handle, value.Handle); } } } public virtual bool Wrapped { [Export("isWrapped")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsWrappedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsWrappedHandle); } [Export("setWrapped:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetWrapped_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetWrapped_Handle, value); } } } public virtual string TruncationMode { [Export("truncationMode", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTruncationModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTruncationModeHandle)); } [Export("setTruncationMode:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTruncationMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTruncationMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string AlignmentMode { [Export("alignmentMode", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlignmentModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlignmentModeHandle)); } [Export("setAlignmentMode:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlignmentMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlignmentMode_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("kCATruncationNone", "CoreAnimation")] public static NSString TruncationNone { get { if (_TruncationNone == null) { _TruncationNone = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATruncationNone"); } return _TruncationNone; } } [Field("kCATruncationStart", "CoreAnimation")] public static NSString TruncantionStart { get { if (_TruncantionStart == null) { _TruncantionStart = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATruncationStart"); } return _TruncantionStart; } } [Field("kCATruncationEnd", "CoreAnimation")] public static NSString TruncantionEnd { get { if (_TruncantionEnd == null) { _TruncantionEnd = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATruncationEnd"); } return _TruncantionEnd; } } [Field("kCATruncationMiddle", "CoreAnimation")] public static NSString TruncantionMiddle { get { if (_TruncantionMiddle == null) { _TruncantionMiddle = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATruncationMiddle"); } return _TruncantionMiddle; } } [Field("kCAAlignmentNatural", "CoreAnimation")] public static NSString AlignmentNatural { get { if (_AlignmentNatural == null) { _AlignmentNatural = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAlignmentNatural"); } return _AlignmentNatural; } } [Field("kCAAlignmentLeft", "CoreAnimation")] public static NSString AlignmentLeft { get { if (_AlignmentLeft == null) { _AlignmentLeft = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAlignmentLeft"); } return _AlignmentLeft; } } [Field("kCAAlignmentRight", "CoreAnimation")] public static NSString AlignmentRight { get { if (_AlignmentRight == null) { _AlignmentRight = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAlignmentRight"); } return _AlignmentRight; } } [Field("kCAAlignmentCenter", "CoreAnimation")] public static NSString AlignmentCenter { get { if (_AlignmentCenter == null) { _AlignmentCenter = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAlignmentCenter"); } return _AlignmentCenter; } } [Field("kCAAlignmentJustified", "CoreAnimation")] public static NSString AlignmentJustified { get { if (_AlignmentJustified == null) { _AlignmentJustified = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAAlignmentJustified"); } return _AlignmentJustified; } } public void SetFont(string fontName) { if (fontName == null) { throw new ArgumentNullException("fontName"); } using NSString nSString = new NSString(fontName); _Font = nSString.Handle; } public void SetFont(CGFont font) { if (font == null) { throw new ArgumentNullException("font"); } _Font = font.Handle; } public void SetFont(CTFont font) { if (font == null) { throw new ArgumentNullException("font"); } _Font = font.Handle; } public void SetFont(NSFont font) { if (font == null) { throw new ArgumentNullException("font"); } _Font = font.Handle; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CATextLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CATextLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATextLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATextLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATiledLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CATiledLayer", true)] public class CATiledLayer : CALayer { private static readonly IntPtr selFadeDurationHandle = Selector.GetHandle("fadeDuration"); private static readonly IntPtr selLevelsOfDetailHandle = Selector.GetHandle("levelsOfDetail"); private static readonly IntPtr selSetLevelsOfDetail_Handle = Selector.GetHandle("setLevelsOfDetail:"); private static readonly IntPtr selLevelsOfDetailBiasHandle = Selector.GetHandle("levelsOfDetailBias"); private static readonly IntPtr selSetLevelsOfDetailBias_Handle = Selector.GetHandle("setLevelsOfDetailBias:"); private static readonly IntPtr selTileSizeHandle = Selector.GetHandle("tileSize"); private static readonly IntPtr selSetTileSize_Handle = Selector.GetHandle("setTileSize:"); private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr class_ptr = Class.GetHandle("CATiledLayer"); public override IntPtr ClassHandle => class_ptr; public static double FadeDuration { [Export("fadeDuration")] get { return Messaging.Double_objc_msgSend(class_ptr, selFadeDurationHandle); } } public virtual int LevelsOfDetail { [Export("levelsOfDetail")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLevelsOfDetailHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLevelsOfDetailHandle); } [Export("setLevelsOfDetail:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetLevelsOfDetail_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetLevelsOfDetail_Handle, value); } } } public virtual int LevelsOfDetailBias { [Export("levelsOfDetailBias")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLevelsOfDetailBiasHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLevelsOfDetailBiasHandle); } [Export("setLevelsOfDetailBias:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetLevelsOfDetailBias_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetLevelsOfDetailBias_Handle, value); } } } public virtual CGSize TileSize { [Export("tileSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selTileSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selTileSizeHandle); } [Export("setTileSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetTileSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetTileSize_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CATiledLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CATiledLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATiledLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATiledLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATransaction.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CATransaction", true)] public class CATransaction : NSObject { private static readonly IntPtr selAnimationDurationHandle = Selector.GetHandle("animationDuration"); private static readonly IntPtr selSetAnimationDuration_Handle = Selector.GetHandle("setAnimationDuration:"); private static readonly IntPtr selAnimationTimingFunctionHandle = Selector.GetHandle("animationTimingFunction"); private static readonly IntPtr selSetAnimationTimingFunction_Handle = Selector.GetHandle("setAnimationTimingFunction:"); private static readonly IntPtr selDisableActionsHandle = Selector.GetHandle("disableActions"); private static readonly IntPtr selSetDisableActions_Handle = Selector.GetHandle("setDisableActions:"); private static readonly IntPtr selCompletionBlockHandle = Selector.GetHandle("completionBlock"); private static readonly IntPtr selSetCompletionBlock_Handle = Selector.GetHandle("setCompletionBlock:"); private static readonly IntPtr selBeginHandle = Selector.GetHandle("begin"); private static readonly IntPtr selCommitHandle = Selector.GetHandle("commit"); private static readonly IntPtr selFlushHandle = Selector.GetHandle("flush"); private static readonly IntPtr selLockHandle = Selector.GetHandle("lock"); private static readonly IntPtr selUnlockHandle = Selector.GetHandle("unlock"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("CATransaction"); private static object __mt_AnimationTimingFunction_var_static; private static NSString _AnimationDurationKey; private static NSString _DisableActionsKey; private static NSString _TimingFunctionKey; private static NSString _CompletionBlockKey; public override IntPtr ClassHandle => class_ptr; public static double AnimationDuration { [Export("animationDuration")] get { return Messaging.Double_objc_msgSend(class_ptr, selAnimationDurationHandle); } [Export("setAnimationDuration:")] set { Messaging.void_objc_msgSend_Double(class_ptr, selSetAnimationDuration_Handle, value); } } public static CAMediaTimingFunction AnimationTimingFunction { [Export("animationTimingFunction")] get { return (CAMediaTimingFunction)(__mt_AnimationTimingFunction_var_static = (CAMediaTimingFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAnimationTimingFunctionHandle))); } [Export("setAnimationTimingFunction:")] set { Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetAnimationTimingFunction_Handle, value?.Handle ?? IntPtr.Zero); } } public static bool DisableActions { [Export("disableActions")] get { return Messaging.bool_objc_msgSend(class_ptr, selDisableActionsHandle); } [Export("setDisableActions:")] set { Messaging.void_objc_msgSend_bool(class_ptr, selSetDisableActions_Handle, value); } } [Since(4, 0)] public unsafe static NSAction CompletionBlock { [Export("completionBlock")] get { BlockLiteral* ptr = (BlockLiteral*)(void*)Messaging.IntPtr_objc_msgSend(class_ptr, selCompletionBlockHandle); if (ptr == null) { return null; } return (NSAction)((ptr->global_handle != IntPtr.Zero) ? GCHandle.FromIntPtr(ptr->global_handle).Target : GCHandle.FromIntPtr(ptr->local_handle).Target); } [Export("setCompletionBlock:")] set { BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, value); Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetCompletionBlock_Handle, (IntPtr)ptr); ptr->CleanupBlock(); } } [Field("kCATransactionAnimationDuration", "CoreAnimation")] public static NSString AnimationDurationKey { get { if (_AnimationDurationKey == null) { _AnimationDurationKey = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransactionAnimationDuration"); } return _AnimationDurationKey; } } [Field("kCATransactionDisableActions", "CoreAnimation")] public static NSString DisableActionsKey { get { if (_DisableActionsKey == null) { _DisableActionsKey = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransactionDisableActions"); } return _DisableActionsKey; } } [Field("kCATransactionAnimationTimingFunction", "CoreAnimation")] public static NSString TimingFunctionKey { get { if (_TimingFunctionKey == null) { _TimingFunctionKey = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransactionAnimationTimingFunction"); } return _TimingFunctionKey; } } [Field("kCATransactionCompletionBlock", "CoreAnimation")] public static NSString CompletionBlockKey { get { if (_CompletionBlockKey == null) { _CompletionBlockKey = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCATransactionCompletionBlock"); } return _CompletionBlockKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CATransaction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CATransaction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransaction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransaction(IntPtr handle) : base(handle) { } [Export("begin")] public static void Begin() { Messaging.void_objc_msgSend(class_ptr, selBeginHandle); } [Export("commit")] public static void Commit() { Messaging.void_objc_msgSend(class_ptr, selCommitHandle); } [Export("flush")] public static void Flush() { Messaging.void_objc_msgSend(class_ptr, selFlushHandle); } [Export("lock")] public static void Lock() { Messaging.void_objc_msgSend(class_ptr, selLockHandle); } [Export("unlock")] public static void Unlock() { Messaging.void_objc_msgSend(class_ptr, selUnlockHandle); } [Export("valueForKey:")] public new static NSObject ValueForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueForKey_Handle, key.Handle)); } [Export("setValue:forKey:")] public new static void SetValueForKey(NSObject anObject, NSString key) { if (anObject == null) { throw new ArgumentNullException("anObject"); } if (key == null) { throw new ArgumentNullException("key"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selSetValueForKey_Handle, anObject.Handle, key.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATransform3D.cs ================================================ using System.Runtime.InteropServices; using CoreGraphics; namespace CoreAnimation; public struct CATransform3D { public float m11; public float m12; public float m13; public float m14; public float m21; public float m22; public float m23; public float m24; public float m31; public float m32; public float m33; public float m34; public float m41; public float m42; public float m43; public float m44; public static readonly CATransform3D Identity; public bool IsIdentity => CATransform3DIsIdentity(this) != 0; public bool IsAffine => CATransform3DIsAffine(this); static CATransform3D() { Identity = default(CATransform3D); Identity.m11 = 1f; Identity.m22 = 1f; Identity.m33 = 1f; Identity.m44 = 1f; } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern int CATransform3DIsIdentity(CATransform3D t); [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern int CATransform3DEqualToTransform(CATransform3D a, CATransform3D b); public bool Equals(CATransform3D other) { return CATransform3DEqualToTransform(this, other) != 0; } public override bool Equals(object other) { if (!(other is CATransform3D)) { return false; } return CATransform3DEqualToTransform(this, (CATransform3D)other) != 0; } public unsafe override int GetHashCode() { int num = (int)m11; fixed (float* ptr = &m11) { int* ptr2 = (int*)ptr; for (int i = 1; i < 16; i++) { num ^= ptr2[i]; } } return num; } public static CATransform3D MakeTranslation(float tx, float ty, float tz) { CATransform3D identity = Identity; identity.m41 = tx; identity.m42 = ty; identity.m43 = tz; return identity; } public static CATransform3D MakeScale(float sx, float sy, float sz) { CATransform3D identity = Identity; identity.m11 = sx; identity.m22 = sy; identity.m33 = sz; return identity; } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", EntryPoint = "CATransform3DMakeRotation")] public static extern CATransform3D MakeRotation(float angle, float x, float y, float z); [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern CATransform3D CATransform3DTranslate(CATransform3D t, float tx, float ty, float tz); public CATransform3D Translate(float tx, float ty, float tz) { return CATransform3DTranslate(this, tx, ty, tz); } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern CATransform3D CATransform3DScale(CATransform3D t, float sx, float sy, float sz); public CATransform3D Scale(float sx, float sy, float sz) { return CATransform3DScale(this, sx, sy, sz); } public CATransform3D Scale(float s) { return CATransform3DScale(this, s, s, s); } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern CATransform3D CATransform3DRotate(CATransform3D t, float angle, float x, float y, float z); public CATransform3D Rotate(float angle, float x, float y, float z) { return CATransform3DRotate(this, angle, x, y, z); } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern CATransform3D CATransform3DConcat(CATransform3D a, CATransform3D b); public CATransform3D Concat(CATransform3D b) { return CATransform3DConcat(this, b); } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern CATransform3D CATransform3DInvert(CATransform3D t); public CATransform3D Invert(CATransform3D t) { return CATransform3DInvert(this); } [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", EntryPoint = "CATransform3DMakeAffineTransform")] public static extern CATransform3D MakeFromAffine(CGAffineTransform m); [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] private static extern bool CATransform3DIsAffine(CATransform3D t); [DllImport("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", EntryPoint = "CATransform3DGetAffineTransform")] public static extern CGAffineTransform GetAffine(CATransform3D t); public override string ToString() { return $"[{m11} {m12} {m13} {m14}; {m21} {m22} {m23} {m24}; {m31} {m32} {m33} {m34}; {m41} {m42} {m43} {m44}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATransformLayer.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CATransformLayer", true)] public class CATransformLayer : CALayer { private static readonly IntPtr selLayerHandle = Selector.GetHandle("layer"); private static readonly IntPtr selHitTest_Handle = Selector.GetHandle("hitTest:"); private static readonly IntPtr class_ptr = Class.GetHandle("CATransformLayer"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CATransformLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CATransformLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransformLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransformLayer(IntPtr handle) : base(handle) { } [Export("layer")] public new static CALayer Create() { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLayerHandle)); } [Export("hitTest:")] public new virtual CALayer HitTest(CGPoint thePoint) { if (IsDirectBinding) { return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selHitTest_Handle, thePoint)); } return (CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selHitTest_Handle, thePoint)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CATransition.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CATransition", true)] public class CATransition : CAAnimation { private const string Fade = "fade"; private const string MoveIn = "moveIn"; private const string Push = "push"; private const string Reveal = "reveal"; private const string FromRight = "fromRight"; private const string FromLeft = "fromLeft"; private const string FromTop = "fromTop"; private const string FromBottom = "fromBottom"; private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selSetType_Handle = Selector.GetHandle("setType:"); private static readonly IntPtr selSubtypeHandle = Selector.GetHandle("subtype"); private static readonly IntPtr selSetSubtype_Handle = Selector.GetHandle("setSubtype:"); private static readonly IntPtr selStartProgressHandle = Selector.GetHandle("startProgress"); private static readonly IntPtr selSetStartProgress_Handle = Selector.GetHandle("setStartProgress:"); private static readonly IntPtr selEndProgressHandle = Selector.GetHandle("endProgress"); private static readonly IntPtr selSetEndProgress_Handle = Selector.GetHandle("setEndProgress:"); private static readonly IntPtr selFilterHandle = Selector.GetHandle("filter"); private static readonly IntPtr selSetFilter_Handle = Selector.GetHandle("setFilter:"); private static readonly IntPtr selAnimationHandle = Selector.GetHandle("animation"); private static readonly IntPtr class_ptr = Class.GetHandle("CATransition"); private object __mt_filter_var; public override IntPtr ClassHandle => class_ptr; public virtual string Type { [Export("type", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } [Export("setType:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetType_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Subtype { [Export("subtype", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubtypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubtypeHandle)); } [Export("setSubtype:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubtype_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubtype_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual float StartProgress { [Export("startProgress")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selStartProgressHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selStartProgressHandle); } [Export("setStartProgress:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetStartProgress_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetStartProgress_Handle, value); } } } public virtual float EndProgress { [Export("endProgress")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selEndProgressHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selEndProgressHandle); } [Export("setEndProgress:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetEndProgress_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetEndProgress_Handle, value); } } } public virtual NSObject filter { [Export("filter", ArgumentSemantic.Retain)] get { return (NSObject)(__mt_filter_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterHandle)))); } [Export("setFilter:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFilter_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFilter_Handle, value?.Handle ?? IntPtr.Zero); } __mt_filter_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CATransition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CATransition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CATransition(IntPtr handle) : base(handle) { } [Export("animation")] public new static CATransition CreateAnimation() { return (CATransition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAnimationHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_filter_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreAnimation/CAValueFunction.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreAnimation; [Register("CAValueFunction", true)] public class CAValueFunction : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selFunctionWithName_Handle = Selector.GetHandle("functionWithName:"); private static readonly IntPtr class_ptr = Class.GetHandle("CAValueFunction"); private static NSString _RotateX; private static NSString _RotateY; private static NSString _RotateZ; private static NSString _Scale; private static NSString _ScaleX; private static NSString _ScaleY; private static NSString _ScaleZ; private static NSString _Translate; private static NSString _TranslateX; private static NSString _TranslateY; private static NSString _TranslateZ; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } [Field("kCAValueFunctionRotateX", "CoreAnimation")] public static NSString RotateX { get { if (_RotateX == null) { _RotateX = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionRotateX"); } return _RotateX; } } [Field("kCAValueFunctionRotateY", "CoreAnimation")] public static NSString RotateY { get { if (_RotateY == null) { _RotateY = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionRotateY"); } return _RotateY; } } [Field("kCAValueFunctionRotateZ", "CoreAnimation")] public static NSString RotateZ { get { if (_RotateZ == null) { _RotateZ = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionRotateZ"); } return _RotateZ; } } [Field("kCAValueFunctionScale", "CoreAnimation")] public static NSString Scale { get { if (_Scale == null) { _Scale = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionScale"); } return _Scale; } } [Field("kCAValueFunctionScaleX", "CoreAnimation")] public static NSString ScaleX { get { if (_ScaleX == null) { _ScaleX = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionScaleX"); } return _ScaleX; } } [Field("kCAValueFunctionScaleY", "CoreAnimation")] public static NSString ScaleY { get { if (_ScaleY == null) { _ScaleY = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionScaleY"); } return _ScaleY; } } [Field("kCAValueFunctionScaleZ", "CoreAnimation")] public static NSString ScaleZ { get { if (_ScaleZ == null) { _ScaleZ = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionScaleZ"); } return _ScaleZ; } } [Field("kCAValueFunctionTranslate", "CoreAnimation")] public static NSString Translate { get { if (_Translate == null) { _Translate = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionTranslate"); } return _Translate; } } [Field("kCAValueFunctionTranslateX", "CoreAnimation")] public static NSString TranslateX { get { if (_TranslateX == null) { _TranslateX = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionTranslateX"); } return _TranslateX; } } [Field("kCAValueFunctionTranslateY", "CoreAnimation")] public static NSString TranslateY { get { if (_TranslateY == null) { _TranslateY = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionTranslateY"); } return _TranslateY; } } [Field("kCAValueFunctionTranslateZ", "CoreAnimation")] public static NSString TranslateZ { get { if (_TranslateZ == null) { _TranslateZ = Dlfcn.GetStringConstant(Libraries.CoreAnimation.Handle, "kCAValueFunctionTranslateZ"); } return _TranslateZ; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CAValueFunction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CAValueFunction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAValueFunction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CAValueFunction(IntPtr handle) : base(handle) { } [Export("functionWithName:")] public static CAValueFunction FromName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); CAValueFunction result = (CAValueFunction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFunctionWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSAtomicStore.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSAtomicStore", true)] public class NSAtomicStore : NSPersistentStore { private static readonly IntPtr selCacheNodesHandle = Selector.GetHandle("cacheNodes"); private static readonly IntPtr selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle = Selector.GetHandle("initWithPersistentStoreCoordinator:configurationName:URL:options:"); private static readonly IntPtr selLoad_Handle = Selector.GetHandle("load:"); private static readonly IntPtr selSave_Handle = Selector.GetHandle("save:"); private static readonly IntPtr selNewCacheNodeForManagedObject_Handle = Selector.GetHandle("newCacheNodeForManagedObject:"); private static readonly IntPtr selUpdateCacheNodeFromManagedObject_Handle = Selector.GetHandle("updateCacheNode:fromManagedObject:"); private static readonly IntPtr selAddCacheNodes_Handle = Selector.GetHandle("addCacheNodes:"); private static readonly IntPtr selWillRemoveCacheNodes_Handle = Selector.GetHandle("willRemoveCacheNodes:"); private static readonly IntPtr selCacheNodeForObjectID_Handle = Selector.GetHandle("cacheNodeForObjectID:"); private static readonly IntPtr selObjectIDForEntityReferenceObject_Handle = Selector.GetHandle("objectIDForEntity:referenceObject:"); private static readonly IntPtr selNewReferenceObjectForManagedObject_Handle = Selector.GetHandle("newReferenceObjectForManagedObject:"); private static readonly IntPtr selReferenceObjectForObjectID_Handle = Selector.GetHandle("referenceObjectForObjectID:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAtomicStore"); private object __mt_CacheNodes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSSet CacheNodes { [Export("cacheNodes")] get { return (NSSet)(__mt_CacheNodes_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCacheNodesHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCacheNodesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAtomicStore(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAtomicStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAtomicStore(IntPtr handle) : base(handle) { } [Export("initWithPersistentStoreCoordinator:configurationName:URL:options:")] public NSAtomicStore(NSPersistentStoreCoordinator coordinator, string configurationName, NSUrl url, NSDictionary options) : base(NSObjectFlag.Empty) { if (coordinator == null) { throw new ArgumentNullException("coordinator"); } if (configurationName == null) { throw new ArgumentNullException("configurationName"); } if (url == null) { throw new ArgumentNullException("url"); } IntPtr arg = NSString.CreateNative(configurationName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle, coordinator.Handle, arg, url.Handle, options?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle, coordinator.Handle, arg, url.Handle, options?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } [Export("load:")] public virtual bool Load(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selLoad_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selLoad_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("save:")] public virtual bool Save(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSave_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSave_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("newCacheNodeForManagedObject:")] public virtual NSAtomicStoreCacheNode NewCacheNodeForManagedObject(NSManagedObject managedObject) { if (managedObject == null) { throw new ArgumentNullException("managedObject"); } if (IsDirectBinding) { return (NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNewCacheNodeForManagedObject_Handle, managedObject.Handle)); } return (NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNewCacheNodeForManagedObject_Handle, managedObject.Handle)); } [Export("updateCacheNode:fromManagedObject:")] public virtual void UpdateCacheNode(NSAtomicStoreCacheNode node, NSManagedObject managedObject) { if (node == null) { throw new ArgumentNullException("node"); } if (managedObject == null) { throw new ArgumentNullException("managedObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selUpdateCacheNodeFromManagedObject_Handle, node.Handle, managedObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUpdateCacheNodeFromManagedObject_Handle, node.Handle, managedObject.Handle); } } [Export("addCacheNodes:")] public virtual void AddCacheNodes(NSSet cacheNodes) { if (cacheNodes == null) { throw new ArgumentNullException("cacheNodes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddCacheNodes_Handle, cacheNodes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddCacheNodes_Handle, cacheNodes.Handle); } } [Export("willRemoveCacheNodes:")] public virtual void WillRemoveCacheNodes(NSSet cacheNodes) { if (cacheNodes == null) { throw new ArgumentNullException("cacheNodes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillRemoveCacheNodes_Handle, cacheNodes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillRemoveCacheNodes_Handle, cacheNodes.Handle); } } [Export("cacheNodeForObjectID:")] public virtual NSAtomicStoreCacheNode CacheNodeForObjectID(NSManagedObjectID objectID) { if (objectID == null) { throw new ArgumentNullException("objectID"); } if (IsDirectBinding) { return (NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCacheNodeForObjectID_Handle, objectID.Handle)); } return (NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCacheNodeForObjectID_Handle, objectID.Handle)); } [Export("objectIDForEntity:referenceObject:")] public virtual NSManagedObjectID ObjectIDForEntity(NSEntityDescription entity, NSObject data) { if (entity == null) { throw new ArgumentNullException("entity"); } if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selObjectIDForEntityReferenceObject_Handle, entity.Handle, data.Handle)); } return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selObjectIDForEntityReferenceObject_Handle, entity.Handle, data.Handle)); } [Export("newReferenceObjectForManagedObject:")] public virtual NSAtomicStore NewReferenceObjectForManagedObject(NSManagedObject managedObject) { if (managedObject == null) { throw new ArgumentNullException("managedObject"); } if (IsDirectBinding) { return (NSAtomicStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNewReferenceObjectForManagedObject_Handle, managedObject.Handle)); } return (NSAtomicStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNewReferenceObjectForManagedObject_Handle, managedObject.Handle)); } [Export("referenceObjectForObjectID:")] public virtual NSAtomicStore ReferenceObjectForObjectID(NSManagedObjectID objectID) { if (objectID == null) { throw new ArgumentNullException("objectID"); } if (IsDirectBinding) { return (NSAtomicStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selReferenceObjectForObjectID_Handle, objectID.Handle)); } return (NSAtomicStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selReferenceObjectForObjectID_Handle, objectID.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CacheNodes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSAtomicStoreCacheNode.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSAtomicStoreCacheNode", true)] public class NSAtomicStoreCacheNode : NSObject { private static readonly IntPtr selObjectIDHandle = Selector.GetHandle("objectID"); private static readonly IntPtr selPropertyCacheHandle = Selector.GetHandle("propertyCache"); private static readonly IntPtr selSetPropertyCache_Handle = Selector.GetHandle("setPropertyCache:"); private static readonly IntPtr selInitWithObjectID_Handle = Selector.GetHandle("initWithObjectID:"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAtomicStoreCacheNode"); private object __mt_ObjectID_var; private object __mt_PropertyCache_var; public override IntPtr ClassHandle => class_ptr; public virtual NSManagedObjectID ObjectID { [Export("objectID")] get { return (NSManagedObjectID)(__mt_ObjectID_var = ((!IsDirectBinding) ? ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectIDHandle))) : ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectIDHandle))))); } } public virtual NSDictionary PropertyCache { [Export("propertyCache")] get { return (NSDictionary)(__mt_PropertyCache_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertyCacheHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertyCacheHandle))))); } [Export("setPropertyCache:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPropertyCache_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPropertyCache_Handle, value.Handle); } __mt_PropertyCache_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAtomicStoreCacheNode(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAtomicStoreCacheNode(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAtomicStoreCacheNode(IntPtr handle) : base(handle) { } [Export("initWithObjectID:")] public NSAtomicStoreCacheNode(NSManagedObjectID moid) : base(NSObjectFlag.Empty) { if (moid == null) { throw new ArgumentNullException("moid"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithObjectID_Handle, moid.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithObjectID_Handle, moid.Handle); } } [Export("valueForKey:")] public virtual NSAtomicStoreCacheNode ValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSAtomicStoreCacheNode result = ((!IsDirectBinding) ? ((NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForKey_Handle, arg))) : ((NSAtomicStoreCacheNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setValue:forKey:")] public virtual void SetValue(NSObject value, string key) { if (value == null) { throw new ArgumentNullException("value"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValueForKey_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValueForKey_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ObjectID_var = null; __mt_PropertyCache_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSAttributeDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSAttributeDescription", true)] public class NSAttributeDescription : NSPropertyDescription { private static readonly IntPtr selAttributeTypeHandle = Selector.GetHandle("attributeType"); private static readonly IntPtr selSetAttributeType_Handle = Selector.GetHandle("setAttributeType:"); private static readonly IntPtr selAttributeValueClassNameHandle = Selector.GetHandle("attributeValueClassName"); private static readonly IntPtr selSetAttributeValueClassName_Handle = Selector.GetHandle("setAttributeValueClassName:"); private static readonly IntPtr selDefaultValueHandle = Selector.GetHandle("defaultValue"); private static readonly IntPtr selSetDefaultValue_Handle = Selector.GetHandle("setDefaultValue:"); private static readonly IntPtr selVersionHashHandle = Selector.GetHandle("versionHash"); private static readonly IntPtr selValueTransformerNameHandle = Selector.GetHandle("valueTransformerName"); private static readonly IntPtr selSetValueTransformerName_Handle = Selector.GetHandle("setValueTransformerName:"); private static readonly IntPtr selAllowsExternalBinaryDataStorageHandle = Selector.GetHandle("allowsExternalBinaryDataStorage"); private static readonly IntPtr selSetAllowsExternalBinaryDataStorage_Handle = Selector.GetHandle("setAllowsExternalBinaryDataStorage:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAttributeDescription"); private object __mt_DefaultValue_var; private object __mt_VersionHash_var; public override IntPtr ClassHandle => class_ptr; public virtual NSAttributeType AttributeType { [Export("attributeType")] get { if (IsDirectBinding) { return (NSAttributeType)Messaging.UInt64_objc_msgSend(base.Handle, selAttributeTypeHandle); } return (NSAttributeType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAttributeTypeHandle); } [Export("setAttributeType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAttributeType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAttributeType_Handle, (ulong)value); } } } public virtual string AttributeValueClassName { [Export("attributeValueClassName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributeValueClassNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributeValueClassNameHandle)); } [Export("setAttributeValueClassName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributeValueClassName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributeValueClassName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject DefaultValue { [Export("defaultValue")] get { return (NSObject)(__mt_DefaultValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultValueHandle)))); } [Export("setDefaultValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultValue_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultValue_Handle, value.Handle); } __mt_DefaultValue_var = value; } } public new virtual NSData VersionHash { [Export("versionHash")] get { return (NSData)(__mt_VersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashHandle))))); } } public virtual string ValueTransformerName { [Export("valueTransformerName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueTransformerNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueTransformerNameHandle)); } [Export("setValueTransformerName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValueTransformerName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValueTransformerName_Handle, arg); } NSString.ReleaseNative(arg); } } [Since(5, 0)] public virtual bool AllowsExternalBinaryDataStorage { [Export("allowsExternalBinaryDataStorage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsExternalBinaryDataStorageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsExternalBinaryDataStorageHandle); } [Export("setAllowsExternalBinaryDataStorage:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsExternalBinaryDataStorage_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsExternalBinaryDataStorage_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAttributeDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAttributeDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAttributeDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAttributeDescription(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DefaultValue_var = null; __mt_VersionHash_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSAttributeType.cs ================================================ namespace CoreData; public enum NSAttributeType : ulong { Undefined = 0uL, Integer16 = 100uL, Integer32 = 200uL, Integer64 = 300uL, Decimal = 400uL, Double = 500uL, Float = 600uL, String = 700uL, Boolean = 800uL, Date = 900uL, Binary = 1000uL, Transformable = 1800uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSDeleteRule.cs ================================================ namespace CoreData; public enum NSDeleteRule : ulong { NoAction, Nullify, Cascade, Deny } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSEntityDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSEntityDescription", true)] public class NSEntityDescription : NSObject { private static readonly IntPtr selManagedObjectModelHandle = Selector.GetHandle("managedObjectModel"); private static readonly IntPtr selManagedObjectClassNameHandle = Selector.GetHandle("managedObjectClassName"); private static readonly IntPtr selSetManagedObjectClassName_Handle = Selector.GetHandle("setManagedObjectClassName:"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selIsAbstractHandle = Selector.GetHandle("isAbstract"); private static readonly IntPtr selSetAbstract_Handle = Selector.GetHandle("setAbstract:"); private static readonly IntPtr selSubentitiesByNameHandle = Selector.GetHandle("subentitiesByName"); private static readonly IntPtr selSubentitiesHandle = Selector.GetHandle("subentities"); private static readonly IntPtr selSetSubentities_Handle = Selector.GetHandle("setSubentities:"); private static readonly IntPtr selSuperentityHandle = Selector.GetHandle("superentity"); private static readonly IntPtr selPropertiesByNameHandle = Selector.GetHandle("propertiesByName"); private static readonly IntPtr selPropertiesHandle = Selector.GetHandle("properties"); private static readonly IntPtr selSetProperties_Handle = Selector.GetHandle("setProperties:"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr selAttributesByNameHandle = Selector.GetHandle("attributesByName"); private static readonly IntPtr selRelationshipsByNameHandle = Selector.GetHandle("relationshipsByName"); private static readonly IntPtr selVersionHashHandle = Selector.GetHandle("versionHash"); private static readonly IntPtr selVersionHashModifierHandle = Selector.GetHandle("versionHashModifier"); private static readonly IntPtr selSetVersionHashModifier_Handle = Selector.GetHandle("setVersionHashModifier:"); private static readonly IntPtr selCompoundIndexesHandle = Selector.GetHandle("compoundIndexes"); private static readonly IntPtr selSetCompoundIndexes_Handle = Selector.GetHandle("setCompoundIndexes:"); private static readonly IntPtr selEntityForNameInManagedObjectContext_Handle = Selector.GetHandle("entityForName:inManagedObjectContext:"); private static readonly IntPtr selInsertNewObjectForEntityForNameInManagedObjectContext_Handle = Selector.GetHandle("insertNewObjectForEntityForName:inManagedObjectContext:"); private static readonly IntPtr selRelationshipsWithDestinationEntity_Handle = Selector.GetHandle("relationshipsWithDestinationEntity:"); private static readonly IntPtr selIsKindOfEntity_Handle = Selector.GetHandle("isKindOfEntity:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEntityDescription"); private object __mt_ManagedObjectModel_var; private object __mt_SubentitiesByName_var; private object __mt_Subentities_var; private object __mt_Superentity_var; private object __mt_PropertiesByName_var; private object __mt_Properties_var; private object __mt_UserInfo_var; private object __mt_AttributesByName_var; private object __mt_RelationshipsByName_var; private object __mt_VersionHash_var; private object __mt_CompoundIndexes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSManagedObjectModel ManagedObjectModel { [Export("managedObjectModel")] get { return (NSManagedObjectModel)(__mt_ManagedObjectModel_var = ((!IsDirectBinding) ? ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selManagedObjectModelHandle))) : ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selManagedObjectModelHandle))))); } } public virtual string ManagedObjectClassName { [Export("managedObjectClassName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selManagedObjectClassNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selManagedObjectClassNameHandle)); } [Export("setManagedObjectClassName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetManagedObjectClassName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetManagedObjectClassName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Abstract { [Export("isAbstract")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAbstractHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAbstractHandle); } [Export("setAbstract:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAbstract_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAbstract_Handle, value); } } } public virtual NSDictionary SubentitiesByName { [Export("subentitiesByName")] get { return (NSDictionary)(__mt_SubentitiesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubentitiesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSubentitiesByNameHandle))))); } } public virtual NSEntityDescription[] Subentities { [Export("subentities")] get { return (NSEntityDescription[])(__mt_Subentities_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubentitiesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubentitiesHandle)))); } [Export("setSubentities:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubentities_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubentities_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Subentities_var = value; } } public virtual NSEntityDescription Superentity { [Export("superentity")] get { return (NSEntityDescription)(__mt_Superentity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuperentityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSuperentityHandle))))); } } public virtual NSDictionary PropertiesByName { [Export("propertiesByName")] get { return (NSDictionary)(__mt_PropertiesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertiesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertiesByNameHandle))))); } } public virtual NSPropertyDescription[] Properties { [Export("properties")] get { return (NSPropertyDescription[])(__mt_Properties_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertiesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertiesHandle)))); } [Export("setProperties:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetProperties_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetProperties_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Properties_var = value; } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } public virtual NSDictionary AttributesByName { [Export("attributesByName")] get { return (NSDictionary)(__mt_AttributesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesByNameHandle))))); } } public virtual NSDictionary RelationshipsByName { [Export("relationshipsByName")] get { return (NSDictionary)(__mt_RelationshipsByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRelationshipsByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRelationshipsByNameHandle))))); } } public virtual NSData VersionHash { [Export("versionHash")] get { return (NSData)(__mt_VersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashHandle))))); } } public virtual string VersionHashModifier { [Export("versionHashModifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashModifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashModifierHandle)); } [Export("setVersionHashModifier:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVersionHashModifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVersionHashModifier_Handle, arg); } NSString.ReleaseNative(arg); } } [Since(5, 0)] public virtual NSPropertyDescription[] CompoundIndexes { [Export("compoundIndexes")] get { return (NSPropertyDescription[])(__mt_CompoundIndexes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompoundIndexesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCompoundIndexesHandle)))); } [Export("setCompoundIndexes:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCompoundIndexes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCompoundIndexes_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_CompoundIndexes_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSEntityDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEntityDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityDescription(IntPtr handle) : base(handle) { } [Export("entityForName:inManagedObjectContext:")] public static NSEntityDescription EntityForName(string entityName, NSManagedObjectContext context) { if (entityName == null) { throw new ArgumentNullException("entityName"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr arg = NSString.CreateNative(entityName); NSEntityDescription result = (NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selEntityForNameInManagedObjectContext_Handle, arg, context.Handle)); NSString.ReleaseNative(arg); return result; } [Export("insertNewObjectForEntityForName:inManagedObjectContext:")] public static NSObject InsertNewObjectForEntityForName(string entityName, NSManagedObjectContext context) { if (entityName == null) { throw new ArgumentNullException("entityName"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr arg = NSString.CreateNative(entityName); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selInsertNewObjectForEntityForNameInManagedObjectContext_Handle, arg, context.Handle)); NSString.ReleaseNative(arg); return nSObject; } [Export("relationshipsWithDestinationEntity:")] public virtual NSRelationshipDescription[] RelationshipsWithDestinationEntity(NSEntityDescription entity) { if (entity == null) { throw new ArgumentNullException("entity"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRelationshipsWithDestinationEntity_Handle, entity.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRelationshipsWithDestinationEntity_Handle, entity.Handle)); } [Export("isKindOfEntity:")] public virtual bool IsKindOfEntity(NSEntityDescription entity) { if (entity == null) { throw new ArgumentNullException("entity"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsKindOfEntity_Handle, entity.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsKindOfEntity_Handle, entity.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ManagedObjectModel_var = null; __mt_SubentitiesByName_var = null; __mt_Subentities_var = null; __mt_Superentity_var = null; __mt_PropertiesByName_var = null; __mt_Properties_var = null; __mt_UserInfo_var = null; __mt_AttributesByName_var = null; __mt_RelationshipsByName_var = null; __mt_VersionHash_var = null; __mt_CompoundIndexes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSEntityMapping.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSEntityMapping", true)] public class NSEntityMapping : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selMappingTypeHandle = Selector.GetHandle("mappingType"); private static readonly IntPtr selSetMappingType_Handle = Selector.GetHandle("setMappingType:"); private static readonly IntPtr selSourceEntityNameHandle = Selector.GetHandle("sourceEntityName"); private static readonly IntPtr selSetSourceEntityName_Handle = Selector.GetHandle("setSourceEntityName:"); private static readonly IntPtr selSourceEntityVersionHashHandle = Selector.GetHandle("sourceEntityVersionHash"); private static readonly IntPtr selSetSourceEntityVersionHash_Handle = Selector.GetHandle("setSourceEntityVersionHash:"); private static readonly IntPtr selDestinationEntityNameHandle = Selector.GetHandle("destinationEntityName"); private static readonly IntPtr selSetDestinationEntityName_Handle = Selector.GetHandle("setDestinationEntityName:"); private static readonly IntPtr selDestinationEntityVersionHashHandle = Selector.GetHandle("destinationEntityVersionHash"); private static readonly IntPtr selSetDestinationEntityVersionHash_Handle = Selector.GetHandle("setDestinationEntityVersionHash:"); private static readonly IntPtr selAttributeMappingsHandle = Selector.GetHandle("attributeMappings"); private static readonly IntPtr selSetAttributeMappings_Handle = Selector.GetHandle("setAttributeMappings:"); private static readonly IntPtr selRelationshipMappingsHandle = Selector.GetHandle("relationshipMappings"); private static readonly IntPtr selSetRelationshipMappings_Handle = Selector.GetHandle("setRelationshipMappings:"); private static readonly IntPtr selSourceExpressionHandle = Selector.GetHandle("sourceExpression"); private static readonly IntPtr selSetSourceExpression_Handle = Selector.GetHandle("setSourceExpression:"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr selEntityMigrationPolicyClassNameHandle = Selector.GetHandle("entityMigrationPolicyClassName"); private static readonly IntPtr selSetEntityMigrationPolicyClassName_Handle = Selector.GetHandle("setEntityMigrationPolicyClassName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEntityMapping"); private object __mt_SourceEntityVersionHash_var; private object __mt_DestinationEntityVersionHash_var; private object __mt_AttributeMappings_var; private object __mt_RelationshipMappings_var; private object __mt_SourceExpression_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSEntityMappingType MappingType { [Export("mappingType")] get { if (IsDirectBinding) { return (NSEntityMappingType)Messaging.UInt64_objc_msgSend(base.Handle, selMappingTypeHandle); } return (NSEntityMappingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMappingTypeHandle); } [Export("setMappingType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMappingType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMappingType_Handle, (ulong)value); } } } public virtual string SourceEntityName { [Export("sourceEntityName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceEntityNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceEntityNameHandle)); } [Export("setSourceEntityName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSourceEntityName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSourceEntityName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSData SourceEntityVersionHash { [Export("sourceEntityVersionHash")] get { return (NSData)(__mt_SourceEntityVersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceEntityVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceEntityVersionHashHandle))))); } [Export("setSourceEntityVersionHash:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSourceEntityVersionHash_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSourceEntityVersionHash_Handle, value.Handle); } __mt_SourceEntityVersionHash_var = value; } } public virtual string DestinationEntityName { [Export("destinationEntityName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationEntityNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationEntityNameHandle)); } [Export("setDestinationEntityName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestinationEntityName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestinationEntityName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSData DestinationEntityVersionHash { [Export("destinationEntityVersionHash")] get { return (NSData)(__mt_DestinationEntityVersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationEntityVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationEntityVersionHashHandle))))); } [Export("setDestinationEntityVersionHash:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestinationEntityVersionHash_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestinationEntityVersionHash_Handle, value.Handle); } __mt_DestinationEntityVersionHash_var = value; } } public virtual NSPropertyMapping[] AttributeMappings { [Export("attributeMappings")] get { return (NSPropertyMapping[])(__mt_AttributeMappings_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributeMappingsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributeMappingsHandle)))); } [Export("setAttributeMappings:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributeMappings_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributeMappings_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_AttributeMappings_var = value; } } public virtual NSPropertyMapping[] RelationshipMappings { [Export("relationshipMappings")] get { return (NSPropertyMapping[])(__mt_RelationshipMappings_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRelationshipMappingsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRelationshipMappingsHandle)))); } [Export("setRelationshipMappings:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRelationshipMappings_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRelationshipMappings_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_RelationshipMappings_var = value; } } public virtual NSExpression SourceExpression { [Export("sourceExpression")] get { return (NSExpression)(__mt_SourceExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceExpressionHandle))))); } [Export("setSourceExpression:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSourceExpression_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSourceExpression_Handle, value.Handle); } __mt_SourceExpression_var = value; } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } public virtual string EntityMigrationPolicyClassName { [Export("entityMigrationPolicyClassName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityMigrationPolicyClassNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityMigrationPolicyClassNameHandle)); } [Export("setEntityMigrationPolicyClassName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEntityMigrationPolicyClassName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEntityMigrationPolicyClassName_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSEntityMapping() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEntityMapping(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityMapping(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityMapping(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SourceEntityVersionHash_var = null; __mt_DestinationEntityVersionHash_var = null; __mt_AttributeMappings_var = null; __mt_RelationshipMappings_var = null; __mt_SourceExpression_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSEntityMappingType.cs ================================================ namespace CoreData; public enum NSEntityMappingType : ulong { Undefined = 0uL, Custom = 1uL, Add = 2uL, Remove = 3uL, Copy = 5uL, Transform = 6uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSEntityMigrationPolicy.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSEntityMigrationPolicy", true)] public class NSEntityMigrationPolicy : NSObject { private static readonly IntPtr selBeginEntityMappingManagerError_Handle = Selector.GetHandle("beginEntityMapping:manager:error:"); private static readonly IntPtr selCreateDestinationInstancesForSourceInstanceEntityMappingManagerError_Handle = Selector.GetHandle("createDestinationInstancesForSourceInstance:entityMapping:manager:error:"); private static readonly IntPtr selEndInstanceCreationForEntityMappingManagerError_Handle = Selector.GetHandle("endInstanceCreationForEntityMapping:manager:error:"); private static readonly IntPtr selCreateRelationshipsForDestinationInstanceEntityMappingManagerError_Handle = Selector.GetHandle("createRelationshipsForDestinationInstance:entityMapping:manager:error:"); private static readonly IntPtr selEndRelationshipCreationForEntityMappingManagerError_Handle = Selector.GetHandle("endRelationshipCreationForEntityMapping:manager:error:"); private static readonly IntPtr selPerformCustomValidationForEntityMappingManagerError_Handle = Selector.GetHandle("performCustomValidationForEntityMapping:manager:error:"); private static readonly IntPtr selEndEntityMappingManagerError_Handle = Selector.GetHandle("endEntityMapping:manager:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEntityMigrationPolicy"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSEntityMigrationPolicy() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEntityMigrationPolicy(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityMigrationPolicy(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEntityMigrationPolicy(IntPtr handle) : base(handle) { } [Export("beginEntityMapping:manager:error:")] public virtual bool BeginEntityMapping(NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selBeginEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("createDestinationInstancesForSourceInstance:entityMapping:manager:error:")] public virtual bool CreateDestinationInstancesForSourceInstance(NSManagedObject sInstance, NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (sInstance == null) { throw new ArgumentNullException("sInstance"); } if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateDestinationInstancesForSourceInstanceEntityMappingManagerError_Handle, sInstance.Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selCreateDestinationInstancesForSourceInstanceEntityMappingManagerError_Handle, sInstance.Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("endInstanceCreationForEntityMapping:manager:error:")] public virtual bool EndInstanceCreationForEntityMapping(NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEndInstanceCreationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selEndInstanceCreationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("createRelationshipsForDestinationInstance:entityMapping:manager:error:")] public virtual bool CreateRelationshipsForDestinationInstance(NSManagedObject dInstance, NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (dInstance == null) { throw new ArgumentNullException("dInstance"); } if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateRelationshipsForDestinationInstanceEntityMappingManagerError_Handle, dInstance.Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selCreateRelationshipsForDestinationInstanceEntityMappingManagerError_Handle, dInstance.Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("endRelationshipCreationForEntityMapping:manager:error:")] public virtual bool EndRelationshipCreationForEntityMapping(NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEndRelationshipCreationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selEndRelationshipCreationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("performCustomValidationForEntityMapping:manager:error:")] public virtual bool PerformCustomValidationForEntityMapping(NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPerformCustomValidationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selPerformCustomValidationForEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("endEntityMapping:manager:error:")] public virtual bool EndEntityMapping(NSEntityMapping mapping, NSMigrationManager manager, out NSError error) { if (mapping == null) { throw new ArgumentNullException("mapping"); } if (manager == null) { throw new ArgumentNullException("manager"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selEndEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selEndEntityMappingManagerError_Handle, mapping.Handle, manager.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSFetchRequest.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSFetchRequest", true)] public class NSFetchRequest : NSPersistentStoreRequest { private static readonly IntPtr selEntityHandle = Selector.GetHandle("entity"); private static readonly IntPtr selSetEntity_Handle = Selector.GetHandle("setEntity:"); private static readonly IntPtr selPredicateHandle = Selector.GetHandle("predicate"); private static readonly IntPtr selSetPredicate_Handle = Selector.GetHandle("setPredicate:"); private static readonly IntPtr selSortDescriptorsHandle = Selector.GetHandle("sortDescriptors"); private static readonly IntPtr selSetSortDescriptors_Handle = Selector.GetHandle("setSortDescriptors:"); private static readonly IntPtr selFetchLimitHandle = Selector.GetHandle("fetchLimit"); private static readonly IntPtr selSetFetchLimit_Handle = Selector.GetHandle("setFetchLimit:"); private static readonly IntPtr selAffectedStoresHandle = Selector.GetHandle("affectedStores"); private static readonly IntPtr selSetAffectedStores_Handle = Selector.GetHandle("setAffectedStores:"); private static readonly IntPtr selResultTypeHandle = Selector.GetHandle("resultType"); private static readonly IntPtr selSetResultType_Handle = Selector.GetHandle("setResultType:"); private static readonly IntPtr selIncludesSubentitiesHandle = Selector.GetHandle("includesSubentities"); private static readonly IntPtr selSetIncludesSubentities_Handle = Selector.GetHandle("setIncludesSubentities:"); private static readonly IntPtr selIncludesPropertyValuesHandle = Selector.GetHandle("includesPropertyValues"); private static readonly IntPtr selSetIncludesPropertyValues_Handle = Selector.GetHandle("setIncludesPropertyValues:"); private static readonly IntPtr selReturnsObjectsAsFaultsHandle = Selector.GetHandle("returnsObjectsAsFaults"); private static readonly IntPtr selSetReturnsObjectsAsFaults_Handle = Selector.GetHandle("setReturnsObjectsAsFaults:"); private static readonly IntPtr selRelationshipKeyPathsForPrefetchingHandle = Selector.GetHandle("relationshipKeyPathsForPrefetching"); private static readonly IntPtr selSetRelationshipKeyPathsForPrefetching_Handle = Selector.GetHandle("setRelationshipKeyPathsForPrefetching:"); private static readonly IntPtr selEntityNameHandle = Selector.GetHandle("entityName"); private static readonly IntPtr selFetchBatchSizeHandle = Selector.GetHandle("fetchBatchSize"); private static readonly IntPtr selSetFetchBatchSize_Handle = Selector.GetHandle("setFetchBatchSize:"); private static readonly IntPtr selShouldRefreshRefetchedObjectsHandle = Selector.GetHandle("shouldRefreshRefetchedObjects"); private static readonly IntPtr selSetShouldRefreshRefetchedObjects_Handle = Selector.GetHandle("setShouldRefreshRefetchedObjects:"); private static readonly IntPtr selHavingPredicateHandle = Selector.GetHandle("havingPredicate"); private static readonly IntPtr selSetHavingPredicate_Handle = Selector.GetHandle("setHavingPredicate:"); private static readonly IntPtr selPropertiesToGroupByHandle = Selector.GetHandle("propertiesToGroupBy"); private static readonly IntPtr selSetPropertiesToGroupBy_Handle = Selector.GetHandle("setPropertiesToGroupBy:"); private static readonly IntPtr selFetchRequestWithEntityName_Handle = Selector.GetHandle("fetchRequestWithEntityName:"); private static readonly IntPtr selInitWithEntityName_Handle = Selector.GetHandle("initWithEntityName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFetchRequest"); private object __mt_Entity_var; private object __mt_Predicate_var; private object __mt_SortDescriptors_var; private object __mt_AffectedStores_var; private object __mt_HavingPredicate_var; private object __mt_PropertiesToGroupBy_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEntityDescription Entity { [Export("entity")] get { return (NSEntityDescription)(__mt_Entity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityHandle))))); } [Export("setEntity:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEntity_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEntity_Handle, value.Handle); } __mt_Entity_var = value; } } public virtual NSPredicate Predicate { [Export("predicate")] get { return (NSPredicate)(__mt_Predicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPredicateHandle))))); } [Export("setPredicate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPredicate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPredicate_Handle, value.Handle); } __mt_Predicate_var = value; } } public virtual NSSortDescriptor[] SortDescriptors { [Export("sortDescriptors")] get { return (NSSortDescriptor[])(__mt_SortDescriptors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorsHandle)))); } [Export("setSortDescriptors:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SortDescriptors_var = value; } } public virtual uint FetchLimit { [Export("fetchLimit")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selFetchLimitHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFetchLimitHandle); } [Export("setFetchLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetFetchLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetFetchLimit_Handle, value); } } } public new virtual NSPersistentStore[] AffectedStores { [Export("affectedStores")] get { return (NSPersistentStore[])(__mt_AffectedStores_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAffectedStoresHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAffectedStoresHandle)))); } [Export("setAffectedStores:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAffectedStores_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAffectedStores_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_AffectedStores_var = value; } } public virtual NSFetchRequestResultType ResultType { [Export("resultType")] get { if (IsDirectBinding) { return (NSFetchRequestResultType)Messaging.UInt64_objc_msgSend(base.Handle, selResultTypeHandle); } return (NSFetchRequestResultType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selResultTypeHandle); } [Export("setResultType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetResultType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetResultType_Handle, (ulong)value); } } } public virtual bool IncludesSubentities { [Export("includesSubentities")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIncludesSubentitiesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIncludesSubentitiesHandle); } [Export("setIncludesSubentities:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIncludesSubentities_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIncludesSubentities_Handle, value); } } } public virtual bool IncludesPropertyValues { [Export("includesPropertyValues")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIncludesPropertyValuesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIncludesPropertyValuesHandle); } [Export("setIncludesPropertyValues:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIncludesPropertyValues_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIncludesPropertyValues_Handle, value); } } } public virtual bool ReturnsObjectsAsFaults { [Export("returnsObjectsAsFaults")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReturnsObjectsAsFaultsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReturnsObjectsAsFaultsHandle); } [Export("setReturnsObjectsAsFaults:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReturnsObjectsAsFaults_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReturnsObjectsAsFaults_Handle, value); } } } public virtual string[] RelationshipKeyPathsForPrefetching { [Export("relationshipKeyPathsForPrefetching")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRelationshipKeyPathsForPrefetchingHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRelationshipKeyPathsForPrefetchingHandle)); } [Export("setRelationshipKeyPathsForPrefetching:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRelationshipKeyPathsForPrefetching_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRelationshipKeyPathsForPrefetching_Handle, nSArray.Handle); } nSArray.Dispose(); } } [Since(5, 0)] public virtual string EntityName { [Export("entityName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityNameHandle)); } } [Since(5, 0)] public virtual int FetchBatchSize { [Export("fetchBatchSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selFetchBatchSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selFetchBatchSizeHandle); } [Export("setFetchBatchSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetFetchBatchSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetFetchBatchSize_Handle, value); } } } [Since(5, 0)] public virtual bool ShouldRefreshRefetchedObjects { [Export("shouldRefreshRefetchedObjects")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldRefreshRefetchedObjectsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldRefreshRefetchedObjectsHandle); } [Export("setShouldRefreshRefetchedObjects:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldRefreshRefetchedObjects_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldRefreshRefetchedObjects_Handle, value); } } } [Since(5, 0)] public virtual NSPredicate HavingPredicate { [Export("havingPredicate")] get { return (NSPredicate)(__mt_HavingPredicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHavingPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHavingPredicateHandle))))); } [Export("setHavingPredicate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHavingPredicate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHavingPredicate_Handle, value.Handle); } __mt_HavingPredicate_var = value; } } [Since(5, 0)] public virtual NSPropertyDescription[] PropertiesToGroupBy { [Export("propertiesToGroupBy")] get { return (NSPropertyDescription[])(__mt_PropertiesToGroupBy_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertiesToGroupByHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertiesToGroupByHandle)))); } [Export("setPropertiesToGroupBy:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPropertiesToGroupBy_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPropertiesToGroupBy_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_PropertiesToGroupBy_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFetchRequest() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFetchRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFetchRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFetchRequest(IntPtr handle) : base(handle) { } [Export("fetchRequestWithEntityName:")] public static NSFetchRequest FromEntityName(string entityName) { if (entityName == null) { throw new ArgumentNullException("entityName"); } IntPtr arg = NSString.CreateNative(entityName); NSFetchRequest result = (NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFetchRequestWithEntityName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithEntityName:")] public NSFetchRequest(string entityName) : base(NSObjectFlag.Empty) { if (entityName == null) { throw new ArgumentNullException("entityName"); } IntPtr arg = NSString.CreateNative(entityName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithEntityName_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithEntityName_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Entity_var = null; __mt_Predicate_var = null; __mt_SortDescriptors_var = null; __mt_AffectedStores_var = null; __mt_HavingPredicate_var = null; __mt_PropertiesToGroupBy_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSFetchRequestResultType.cs ================================================ using System; namespace CoreData; [Flags] public enum NSFetchRequestResultType : ulong { ManagedObject = 0uL, ManagedObjectID = 1uL, DictionaryResultType = 2uL, NSCountResultType = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSFetchedPropertyDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSFetchedPropertyDescription", true)] public class NSFetchedPropertyDescription : NSPropertyDescription { private static readonly IntPtr selFetchRequestHandle = Selector.GetHandle("fetchRequest"); private static readonly IntPtr selSetFetchRequest_Handle = Selector.GetHandle("setFetchRequest:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFetchedPropertyDescription"); private object __mt_FetchRequest_var; public override IntPtr ClassHandle => class_ptr; public virtual NSFetchRequest FetchRequest { [Export("fetchRequest")] get { return (NSFetchRequest)(__mt_FetchRequest_var = ((!IsDirectBinding) ? ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFetchRequestHandle))) : ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFetchRequestHandle))))); } [Export("setFetchRequest:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFetchRequest_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFetchRequest_Handle, value.Handle); } __mt_FetchRequest_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFetchedPropertyDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFetchedPropertyDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFetchedPropertyDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFetchedPropertyDescription(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FetchRequest_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSIncrementalStore.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSIncrementalStore", true)] public class NSIncrementalStore : NSPersistentStore { private static readonly IntPtr selLoadMetadata_Handle = Selector.GetHandle("loadMetadata:"); private static readonly IntPtr selExecuteRequestWithContextError_Handle = Selector.GetHandle("executeRequest:withContext:error:"); private static readonly IntPtr selNewValuesForObjectWithIDWithContextError_Handle = Selector.GetHandle("newValuesForObjectWithID:withContext:error:"); private static readonly IntPtr selNewValueForRelationshipForObjectWithIDWithContextError_Handle = Selector.GetHandle("newValueForRelationship:forObjectWithID:withContext:error:"); private static readonly IntPtr selIdentifierForNewStoreAtURL_Handle = Selector.GetHandle("identifierForNewStoreAtURL:"); private static readonly IntPtr selObtainPermanentIDsForObjectsError_Handle = Selector.GetHandle("obtainPermanentIDsForObjects:error:"); private static readonly IntPtr selManagedObjectContextDidRegisterObjectsWithIDs_Handle = Selector.GetHandle("managedObjectContextDidRegisterObjectsWithIDs:"); private static readonly IntPtr selManagedObjectContextDidUnregisterObjectsWithIDs_Handle = Selector.GetHandle("managedObjectContextDidUnregisterObjectsWithIDs:"); private static readonly IntPtr selNewObjectIDForEntityReferenceObject_Handle = Selector.GetHandle("newObjectIDForEntity:referenceObject:"); private static readonly IntPtr selReferenceObjectForObjectID_Handle = Selector.GetHandle("referenceObjectForObjectID:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSIncrementalStore"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSIncrementalStore() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSIncrementalStore(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIncrementalStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIncrementalStore(IntPtr handle) : base(handle) { } [Export("loadMetadata:")] public virtual bool LoadMetadata(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selLoadMetadata_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selLoadMetadata_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("executeRequest:withContext:error:")] public virtual NSObject ExecuteRequest(NSPersistentStoreRequest request, NSManagedObjectContext context, out NSError error) { if (request == null) { throw new ArgumentNullException("request"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selExecuteRequestWithContextError_Handle, request.Handle, context.Handle, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selExecuteRequestWithContextError_Handle, request.Handle, context.Handle, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("newValuesForObjectWithID:withContext:error:")] public virtual NSIncrementalStoreNode NewValues(NSManagedObjectID forObjectId, NSManagedObjectContext context, out NSError error) { if (forObjectId == null) { throw new ArgumentNullException("forObjectId"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSIncrementalStoreNode result = ((!IsDirectBinding) ? ((NSIncrementalStoreNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selNewValuesForObjectWithIDWithContextError_Handle, forObjectId.Handle, context.Handle, intPtr))) : ((NSIncrementalStoreNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selNewValuesForObjectWithIDWithContextError_Handle, forObjectId.Handle, context.Handle, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("newValueForRelationship:forObjectWithID:withContext:error:")] public virtual NSObject NewValue(NSRelationshipDescription forRelationship, NSManagedObjectID forObjectI, NSManagedObjectContext context, out NSError error) { if (forRelationship == null) { throw new ArgumentNullException("forRelationship"); } if (forObjectI == null) { throw new ArgumentNullException("forObjectI"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selNewValueForRelationshipForObjectWithIDWithContextError_Handle, forRelationship.Handle, forObjectI.Handle, context.Handle, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selNewValueForRelationshipForObjectWithIDWithContextError_Handle, forRelationship.Handle, forObjectI.Handle, context.Handle, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("identifierForNewStoreAtURL:")] public static NSObject IdentifierForNewStoreAtURL(NSUrl storeURL) { if (storeURL == null) { throw new ArgumentNullException("storeURL"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selIdentifierForNewStoreAtURL_Handle, storeURL.Handle)); } [Export("obtainPermanentIDsForObjects:error:")] public virtual NSObject[] ObtainPermanentIds(NSObject[] array, out NSError error) { if (array == null) { throw new ArgumentNullException("array"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(array); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selObtainPermanentIDsForObjectsError_Handle, nSArray.Handle, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selObtainPermanentIDsForObjectsError_Handle, nSArray.Handle, intPtr))); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("managedObjectContextDidRegisterObjectsWithIDs:")] public virtual void ManagedObjectContextDidRegisterObjectsWithIds(NSObject[] objectIds) { if (objectIds == null) { throw new ArgumentNullException("objectIds"); } NSArray nSArray = NSArray.FromNSObjects(objectIds); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selManagedObjectContextDidRegisterObjectsWithIDs_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selManagedObjectContextDidRegisterObjectsWithIDs_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("managedObjectContextDidUnregisterObjectsWithIDs:")] public virtual void ManagedObjectContextDidUnregisterObjectsWithIds(NSObject[] objectIds) { if (objectIds == null) { throw new ArgumentNullException("objectIds"); } NSArray nSArray = NSArray.FromNSObjects(objectIds); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selManagedObjectContextDidUnregisterObjectsWithIDs_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selManagedObjectContextDidUnregisterObjectsWithIDs_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("newObjectIDForEntity:referenceObject:")] public virtual NSManagedObjectID NewObjectIdFor(NSEntityDescription forEntity, NSObject referenceObject) { if (forEntity == null) { throw new ArgumentNullException("forEntity"); } if (referenceObject == null) { throw new ArgumentNullException("referenceObject"); } if (IsDirectBinding) { return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selNewObjectIDForEntityReferenceObject_Handle, forEntity.Handle, referenceObject.Handle)); } return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selNewObjectIDForEntityReferenceObject_Handle, forEntity.Handle, referenceObject.Handle)); } [Export("referenceObjectForObjectID:")] public virtual NSObject ReferenceObjectForObject(NSManagedObjectID objectId) { if (objectId == null) { throw new ArgumentNullException("objectId"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selReferenceObjectForObjectID_Handle, objectId.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selReferenceObjectForObjectID_Handle, objectId.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSIncrementalStoreNode.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSIncrementalStoreNode", true)] public class NSIncrementalStoreNode : NSObject { private static readonly IntPtr selObjectIDHandle = Selector.GetHandle("objectID"); private static readonly IntPtr selVersionHandle = Selector.GetHandle("version"); private static readonly IntPtr selInitWithObjectIDWithValuesVersion_Handle = Selector.GetHandle("initWithObjectID:withValues:version:"); private static readonly IntPtr selUpdateWithValuesVersion_Handle = Selector.GetHandle("updateWithValues:version:"); private static readonly IntPtr selValueForPropertyDescription_Handle = Selector.GetHandle("valueForPropertyDescription:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSIncrementalStoreNode"); private object __mt_ObjectId_var; public override IntPtr ClassHandle => class_ptr; public virtual NSManagedObjectID ObjectId { [Export("objectID")] get { return (NSManagedObjectID)(__mt_ObjectId_var = ((!IsDirectBinding) ? ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectIDHandle))) : ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectIDHandle))))); } } public virtual long Version { [Export("version")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selVersionHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selVersionHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSIncrementalStoreNode() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSIncrementalStoreNode(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIncrementalStoreNode(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIncrementalStoreNode(IntPtr handle) : base(handle) { } [Export("initWithObjectID:withValues:version:")] public NSIncrementalStoreNode(NSManagedObjectID objectId, NSDictionary values, ulong version) : base(NSObjectFlag.Empty) { if (objectId == null) { throw new ArgumentNullException("objectId"); } if (values == null) { throw new ArgumentNullException("values"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selInitWithObjectIDWithValuesVersion_Handle, objectId.Handle, values.Handle, version); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selInitWithObjectIDWithValuesVersion_Handle, objectId.Handle, values.Handle, version); } } [Export("updateWithValues:version:")] public virtual void Update(NSDictionary values, ulong version) { if (values == null) { throw new ArgumentNullException("values"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selUpdateWithValuesVersion_Handle, values.Handle, version); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selUpdateWithValuesVersion_Handle, values.Handle, version); } } [Export("valueForPropertyDescription:")] public virtual NSObject ValueForPropertyDescription(NSPropertyDescription prop) { if (prop == null) { throw new ArgumentNullException("prop"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForPropertyDescription_Handle, prop.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForPropertyDescription_Handle, prop.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ObjectId_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSKeyValueSetMutationKind.cs ================================================ namespace CoreData; public enum NSKeyValueSetMutationKind : ulong { Union = 1uL, Minus, Intersect, NSKeyValueSet } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSManagedObject.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSManagedObject", true)] public class NSManagedObject : NSObject { private static readonly IntPtr selManagedObjectContextHandle = Selector.GetHandle("managedObjectContext"); private static readonly IntPtr selEntityHandle = Selector.GetHandle("entity"); private static readonly IntPtr selObjectIDHandle = Selector.GetHandle("objectID"); private static readonly IntPtr selIsInsertedHandle = Selector.GetHandle("isInserted"); private static readonly IntPtr selIsUpdatedHandle = Selector.GetHandle("isUpdated"); private static readonly IntPtr selIsDeletedHandle = Selector.GetHandle("isDeleted"); private static readonly IntPtr selIsFaultHandle = Selector.GetHandle("isFault"); private static readonly IntPtr selObservationInfoHandle = Selector.GetHandle("observationInfo"); private static readonly IntPtr selSetObservationInfo_Handle = Selector.GetHandle("setObservationInfo:"); private static readonly IntPtr selChangedValuesHandle = Selector.GetHandle("changedValues"); private static readonly IntPtr selHasChangesHandle = Selector.GetHandle("hasChanges"); private static readonly IntPtr selChangedValuesForCurrentEventHandle = Selector.GetHandle("changedValuesForCurrentEvent"); private static readonly IntPtr selInitWithEntityInsertIntoManagedObjectContext_Handle = Selector.GetHandle("initWithEntity:insertIntoManagedObjectContext:"); private static readonly IntPtr selHasFaultForRelationshipNamed_Handle = Selector.GetHandle("hasFaultForRelationshipNamed:"); private static readonly IntPtr selWillAccessValueForKey_Handle = Selector.GetHandle("willAccessValueForKey:"); private static readonly IntPtr selDidAccessValueForKey_Handle = Selector.GetHandle("didAccessValueForKey:"); private static readonly IntPtr selWillChangeValueForKey_Handle = Selector.GetHandle("willChangeValueForKey:"); private static readonly IntPtr selDidChangeValueForKey_Handle = Selector.GetHandle("didChangeValueForKey:"); private static readonly IntPtr selWillChangeValueForKeyWithSetMutationUsingObjects_Handle = Selector.GetHandle("willChangeValueForKey:withSetMutation:usingObjects:"); private static readonly IntPtr selDidChangeValueForKeyWithSetMutationUsingObjects_Handle = Selector.GetHandle("didChangeValueForKey:withSetMutation:usingObjects:"); private static readonly IntPtr selAwakeFromFetchHandle = Selector.GetHandle("awakeFromFetch"); private static readonly IntPtr selAwakeFromInsertHandle = Selector.GetHandle("awakeFromInsert"); private static readonly IntPtr selWillSaveHandle = Selector.GetHandle("willSave"); private static readonly IntPtr selDidSaveHandle = Selector.GetHandle("didSave"); private static readonly IntPtr selWillTurnIntoFaultHandle = Selector.GetHandle("willTurnIntoFault"); private static readonly IntPtr selDidTurnIntoFaultHandle = Selector.GetHandle("didTurnIntoFault"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr selPrimitiveValueForKey_Handle = Selector.GetHandle("primitiveValueForKey:"); private static readonly IntPtr selSetPrimitiveValueForKey_Handle = Selector.GetHandle("setPrimitiveValue:forKey:"); private static readonly IntPtr selCommittedValuesForKeys_Handle = Selector.GetHandle("committedValuesForKeys:"); private static readonly IntPtr selValidateValueForKeyError_Handle = Selector.GetHandle("validateValue:forKey:error:"); private static readonly IntPtr selValidateForDelete_Handle = Selector.GetHandle("validateForDelete:"); private static readonly IntPtr selValidateForInsert_Handle = Selector.GetHandle("validateForInsert:"); private static readonly IntPtr selValidateForUpdate_Handle = Selector.GetHandle("validateForUpdate:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSManagedObject"); private object __mt_ManagedObjectContext_var; private object __mt_Entity_var; private object __mt_ObjectID_var; private object __mt_ChangedValues_var; private object __mt_ChangedValuesForCurrentEvent_var; public override IntPtr ClassHandle => class_ptr; public virtual NSManagedObjectContext ManagedObjectContext { [Export("managedObjectContext")] get { return (NSManagedObjectContext)(__mt_ManagedObjectContext_var = ((!IsDirectBinding) ? ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selManagedObjectContextHandle))) : ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selManagedObjectContextHandle))))); } } public virtual NSEntityDescription Entity { [Export("entity")] get { return (NSEntityDescription)(__mt_Entity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityHandle))))); } } public virtual NSManagedObjectID ObjectID { [Export("objectID")] get { return (NSManagedObjectID)(__mt_ObjectID_var = ((!IsDirectBinding) ? ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectIDHandle))) : ((NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectIDHandle))))); } } public virtual bool IsInserted { [Export("isInserted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsInsertedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsInsertedHandle); } } public virtual bool IsUpdated { [Export("isUpdated")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsUpdatedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsUpdatedHandle); } } public virtual bool IsDeleted { [Export("isDeleted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDeletedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDeletedHandle); } } public virtual bool IsFault { [Export("isFault")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFaultHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFaultHandle); } } public virtual IntPtr ObservationInfo { [Export("observationInfo")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selObservationInfoHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObservationInfoHandle); } [Export("setObservationInfo:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetObservationInfo_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetObservationInfo_Handle, value); } } } public virtual NSDictionary ChangedValues { [Export("changedValues")] get { return (NSDictionary)(__mt_ChangedValues_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChangedValuesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChangedValuesHandle))))); } } [Since(5, 0)] public virtual bool HasChanges { [Export("hasChanges")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasChangesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasChangesHandle); } } public virtual NSDictionary ChangedValuesForCurrentEvent { [Export("changedValuesForCurrentEvent")] get { return (NSDictionary)(__mt_ChangedValuesForCurrentEvent_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChangedValuesForCurrentEventHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChangedValuesForCurrentEventHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSManagedObject(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObject(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObject(IntPtr handle) : base(handle) { } [Export("initWithEntity:insertIntoManagedObjectContext:")] public NSManagedObject(NSEntityDescription entity, NSManagedObjectContext context) : base(NSObjectFlag.Empty) { if (entity == null) { throw new ArgumentNullException("entity"); } if (context == null) { throw new ArgumentNullException("context"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithEntityInsertIntoManagedObjectContext_Handle, entity.Handle, context.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithEntityInsertIntoManagedObjectContext_Handle, entity.Handle, context.Handle); } } [Export("hasFaultForRelationshipNamed:")] public virtual bool HasFaultForRelationshipNamed(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasFaultForRelationshipNamed_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasFaultForRelationshipNamed_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("willAccessValueForKey:")] public virtual void WillAccessValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillAccessValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillAccessValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("didAccessValueForKey:")] public virtual void DidAccessValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDidAccessValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDidAccessValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("willChangeValueForKey:")] public virtual void WillChangeValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("didChangeValueForKey:")] public virtual void DidChangeValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDidChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDidChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("willChangeValueForKey:withSetMutation:usingObjects:")] public virtual void WillChangeValueForKey(string inKey, NSKeyValueSetMutationKind inMutationKind, NSSet inObjects) { if (inKey == null) { throw new ArgumentNullException("inKey"); } if (inObjects == null) { throw new ArgumentNullException("inObjects"); } IntPtr arg = NSString.CreateNative(inKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selWillChangeValueForKeyWithSetMutationUsingObjects_Handle, arg, (ulong)inMutationKind, inObjects.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selWillChangeValueForKeyWithSetMutationUsingObjects_Handle, arg, (ulong)inMutationKind, inObjects.Handle); } NSString.ReleaseNative(arg); } [Export("didChangeValueForKey:withSetMutation:usingObjects:")] public virtual void DidChangeValueForKey(string inKey, NSKeyValueSetMutationKind inMutationKind, NSSet inObjects) { if (inKey == null) { throw new ArgumentNullException("inKey"); } if (inObjects == null) { throw new ArgumentNullException("inObjects"); } IntPtr arg = NSString.CreateNative(inKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selDidChangeValueForKeyWithSetMutationUsingObjects_Handle, arg, (ulong)inMutationKind, inObjects.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selDidChangeValueForKeyWithSetMutationUsingObjects_Handle, arg, (ulong)inMutationKind, inObjects.Handle); } NSString.ReleaseNative(arg); } [Export("awakeFromFetch")] public virtual void AwakeFromFetch() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAwakeFromFetchHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAwakeFromFetchHandle); } } [Export("awakeFromInsert")] public virtual void AwakeFromInsert() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAwakeFromInsertHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAwakeFromInsertHandle); } } [Export("willSave")] public virtual void WillSave() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWillSaveHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWillSaveHandle); } } [Export("didSave")] public virtual void DidSave() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDidSaveHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDidSaveHandle); } } [Export("willTurnIntoFault")] public virtual void WillTurnIntoFault() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWillTurnIntoFaultHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWillTurnIntoFaultHandle); } } [Export("didTurnIntoFault")] public virtual void DidTurnIntoFault() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDidTurnIntoFaultHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDidTurnIntoFaultHandle); } } [Export("valueForKey:")] public virtual IntPtr ValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForKey_Handle, arg) : Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setValue:forKey:")] public virtual void SetValue(IntPtr value, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValueForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValueForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("primitiveValueForKey:")] public virtual IntPtr PrimitiveValueForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrimitiveValueForKey_Handle, arg) : Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPrimitiveValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setPrimitiveValue:forKey:")] public virtual void SetPrimitiveValue(IntPtr value, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetPrimitiveValueForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetPrimitiveValueForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("committedValuesForKeys:")] public virtual NSDictionary CommittedValuesForKeys(string[] keys) { if (keys == null) { throw new ArgumentNullException("keys"); } NSArray nSArray = NSArray.FromStrings(keys); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCommittedValuesForKeys_Handle, nSArray.Handle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCommittedValuesForKeys_Handle, nSArray.Handle)))); nSArray.Dispose(); return result; } [Export("validateValue:forKey:error:")] public virtual bool ValidateValue(NSObject value, string key, out NSError error) { if (value == null) { throw new ArgumentNullException("value"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selValidateValueForKeyError_Handle, value.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selValidateValueForKeyError_Handle, value.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("validateForDelete:")] public virtual bool ValidateForDelete(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateForDelete_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateForDelete_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("validateForInsert:")] public virtual bool ValidateForInsert(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateForInsert_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateForInsert_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("validateForUpdate:")] public virtual bool ValidateForUpdate(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selValidateForUpdate_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selValidateForUpdate_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ManagedObjectContext_var = null; __mt_Entity_var = null; __mt_ObjectID_var = null; __mt_ChangedValues_var = null; __mt_ChangedValuesForCurrentEvent_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSManagedObjectContext.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSManagedObjectContext", true)] public class NSManagedObjectContext : NSObject { private static readonly IntPtr selPersistentStoreCoordinatorHandle = Selector.GetHandle("persistentStoreCoordinator"); private static readonly IntPtr selSetPersistentStoreCoordinator_Handle = Selector.GetHandle("setPersistentStoreCoordinator:"); private static readonly IntPtr selUndoManagerHandle = Selector.GetHandle("undoManager"); private static readonly IntPtr selSetUndoManager_Handle = Selector.GetHandle("setUndoManager:"); private static readonly IntPtr selHasChangesHandle = Selector.GetHandle("hasChanges"); private static readonly IntPtr selInsertedObjectsHandle = Selector.GetHandle("insertedObjects"); private static readonly IntPtr selUpdatedObjectsHandle = Selector.GetHandle("updatedObjects"); private static readonly IntPtr selDeletedObjectsHandle = Selector.GetHandle("deletedObjects"); private static readonly IntPtr selRegisteredObjectsHandle = Selector.GetHandle("registeredObjects"); private static readonly IntPtr selTryLockHandle = Selector.GetHandle("tryLock"); private static readonly IntPtr selPropagatesDeletesAtEndOfEventHandle = Selector.GetHandle("propagatesDeletesAtEndOfEvent"); private static readonly IntPtr selSetPropagatesDeletesAtEndOfEvent_Handle = Selector.GetHandle("setPropagatesDeletesAtEndOfEvent:"); private static readonly IntPtr selRetainsRegisteredObjectsHandle = Selector.GetHandle("retainsRegisteredObjects"); private static readonly IntPtr selSetRetainsRegisteredObjects_Handle = Selector.GetHandle("setRetainsRegisteredObjects:"); private static readonly IntPtr selStalenessIntervalHandle = Selector.GetHandle("stalenessInterval"); private static readonly IntPtr selSetStalenessInterval_Handle = Selector.GetHandle("setStalenessInterval:"); private static readonly IntPtr selMergePolicyHandle = Selector.GetHandle("mergePolicy"); private static readonly IntPtr selSetMergePolicy_Handle = Selector.GetHandle("setMergePolicy:"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selConcurrencyTypeHandle = Selector.GetHandle("concurrencyType"); private static readonly IntPtr selParentContextHandle = Selector.GetHandle("parentContext"); private static readonly IntPtr selSetParentContext_Handle = Selector.GetHandle("setParentContext:"); private static readonly IntPtr selObjectRegisteredForID_Handle = Selector.GetHandle("objectRegisteredForID:"); private static readonly IntPtr selObjectWithID_Handle = Selector.GetHandle("objectWithID:"); private static readonly IntPtr selExecuteFetchRequestError_Handle = Selector.GetHandle("executeFetchRequest:error:"); private static readonly IntPtr selCountForFetchRequestError_Handle = Selector.GetHandle("countForFetchRequest:error:"); private static readonly IntPtr selInsertObject_Handle = Selector.GetHandle("insertObject:"); private static readonly IntPtr selDeleteObject_Handle = Selector.GetHandle("deleteObject:"); private static readonly IntPtr selRefreshObjectMergeChanges_Handle = Selector.GetHandle("refreshObject:mergeChanges:"); private static readonly IntPtr selDetectConflictsForObject_Handle = Selector.GetHandle("detectConflictsForObject:"); private static readonly IntPtr selObserveValueForKeyPathOfObjectChangeContext_Handle = Selector.GetHandle("observeValueForKeyPath:ofObject:change:context:"); private static readonly IntPtr selProcessPendingChangesHandle = Selector.GetHandle("processPendingChanges"); private static readonly IntPtr selAssignObjectToPersistentStore_Handle = Selector.GetHandle("assignObject:toPersistentStore:"); private static readonly IntPtr selUndoHandle = Selector.GetHandle("undo"); private static readonly IntPtr selRedoHandle = Selector.GetHandle("redo"); private static readonly IntPtr selResetHandle = Selector.GetHandle("reset"); private static readonly IntPtr selRollbackHandle = Selector.GetHandle("rollback"); private static readonly IntPtr selSave_Handle = Selector.GetHandle("save:"); private static readonly IntPtr selLockHandle = Selector.GetHandle("lock"); private static readonly IntPtr selUnlockHandle = Selector.GetHandle("unlock"); private static readonly IntPtr selObtainPermanentIDsForObjectsError_Handle = Selector.GetHandle("obtainPermanentIDsForObjects:error:"); private static readonly IntPtr selMergeChangesFromContextDidSaveNotification_Handle = Selector.GetHandle("mergeChangesFromContextDidSaveNotification:"); private static readonly IntPtr selInitWithConcurrencyType_Handle = Selector.GetHandle("initWithConcurrencyType:"); private static readonly IntPtr selPerformBlock_Handle = Selector.GetHandle("performBlock:"); private static readonly IntPtr selPerformBlockAndWait_Handle = Selector.GetHandle("performBlockAndWait:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSManagedObjectContext"); private object __mt_PersistentStoreCoordinator_var; private object __mt_UndoManager_var; private object __mt_InsertedObjects_var; private object __mt_UpdatedObjects_var; private object __mt_DeletedObjects_var; private object __mt_RegisteredObjects_var; private object __mt_UserInfo_var; private object __mt_ParentContext_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPersistentStoreCoordinator PersistentStoreCoordinator { [Export("persistentStoreCoordinator")] get { return (NSPersistentStoreCoordinator)(__mt_PersistentStoreCoordinator_var = ((!IsDirectBinding) ? ((NSPersistentStoreCoordinator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentStoreCoordinatorHandle))) : ((NSPersistentStoreCoordinator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentStoreCoordinatorHandle))))); } [Export("setPersistentStoreCoordinator:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPersistentStoreCoordinator_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPersistentStoreCoordinator_Handle, value.Handle); } __mt_PersistentStoreCoordinator_var = value; } } public virtual NSUndoManager UndoManager { [Export("undoManager")] get { return (NSUndoManager)(__mt_UndoManager_var = ((!IsDirectBinding) ? ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUndoManagerHandle))) : ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUndoManagerHandle))))); } [Export("setUndoManager:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUndoManager_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUndoManager_Handle, value.Handle); } __mt_UndoManager_var = value; } } public virtual bool HasChanges { [Export("hasChanges")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasChangesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasChangesHandle); } } public virtual NSSet InsertedObjects { [Export("insertedObjects")] get { return (NSSet)(__mt_InsertedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInsertedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInsertedObjectsHandle))))); } } public virtual NSSet UpdatedObjects { [Export("updatedObjects")] get { return (NSSet)(__mt_UpdatedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUpdatedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUpdatedObjectsHandle))))); } } public virtual NSSet DeletedObjects { [Export("deletedObjects")] get { return (NSSet)(__mt_DeletedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeletedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeletedObjectsHandle))))); } } public virtual NSSet RegisteredObjects { [Export("registeredObjects")] get { return (NSSet)(__mt_RegisteredObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRegisteredObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRegisteredObjectsHandle))))); } } public virtual bool TryLock { [Export("tryLock")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTryLockHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTryLockHandle); } } public virtual bool PropagatesDeletesAtEndOfEvent { [Export("propagatesDeletesAtEndOfEvent")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPropagatesDeletesAtEndOfEventHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPropagatesDeletesAtEndOfEventHandle); } [Export("setPropagatesDeletesAtEndOfEvent:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPropagatesDeletesAtEndOfEvent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPropagatesDeletesAtEndOfEvent_Handle, value); } } } public virtual bool RetainsRegisteredObjects { [Export("retainsRegisteredObjects")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRetainsRegisteredObjectsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRetainsRegisteredObjectsHandle); } [Export("setRetainsRegisteredObjects:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRetainsRegisteredObjects_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRetainsRegisteredObjects_Handle, value); } } } public virtual double StalenessInterval { [Export("stalenessInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selStalenessIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selStalenessIntervalHandle); } [Export("setStalenessInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetStalenessInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetStalenessInterval_Handle, value); } } } public virtual IntPtr MergePolicy { [Export("mergePolicy")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selMergePolicyHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMergePolicyHandle); } [Export("setMergePolicy:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMergePolicy_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMergePolicy_Handle, value); } } } public virtual NSMutableDictionary UserInfo { [Export("userInfo")] get { return (NSMutableDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } } public virtual NSManagedObjectContextConcurrencyType ConcurrencyType { [Export("concurrencyType")] get { if (IsDirectBinding) { return (NSManagedObjectContextConcurrencyType)Messaging.UInt64_objc_msgSend(base.Handle, selConcurrencyTypeHandle); } return (NSManagedObjectContextConcurrencyType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selConcurrencyTypeHandle); } } public virtual NSManagedObjectContext ParentContext { [Export("parentContext")] get { return (NSManagedObjectContext)(__mt_ParentContext_var = ((!IsDirectBinding) ? ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentContextHandle))) : ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentContextHandle))))); } [Export("setParentContext:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetParentContext_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetParentContext_Handle, value.Handle); } __mt_ParentContext_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSManagedObjectContext() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSManagedObjectContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectContext(IntPtr handle) : base(handle) { } [Export("objectRegisteredForID:")] public virtual NSManagedObject ObjectRegisteredForID(NSManagedObjectID objectID) { if (objectID == null) { throw new ArgumentNullException("objectID"); } if (IsDirectBinding) { return (NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectRegisteredForID_Handle, objectID.Handle)); } return (NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectRegisteredForID_Handle, objectID.Handle)); } [Export("objectWithID:")] public virtual NSManagedObject ObjectWithID(NSManagedObjectID objectID) { if (objectID == null) { throw new ArgumentNullException("objectID"); } if (IsDirectBinding) { return (NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectWithID_Handle, objectID.Handle)); } return (NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectWithID_Handle, objectID.Handle)); } [Export("executeFetchRequest:error:")] public virtual NSObject[] ExecuteFetchRequest(NSFetchRequest request, out NSError error) { if (request == null) { throw new ArgumentNullException("request"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selExecuteFetchRequestError_Handle, request.Handle, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selExecuteFetchRequestError_Handle, request.Handle, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("countForFetchRequest:error:")] public virtual uint CountForFetchRequest(NSFetchRequest request, out NSError error) { if (request == null) { throw new ArgumentNullException("request"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); uint result = ((!IsDirectBinding) ? Messaging.UInt32_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCountForFetchRequestError_Handle, request.Handle, intPtr) : Messaging.UInt32_objc_msgSend_IntPtr_IntPtr(base.Handle, selCountForFetchRequestError_Handle, request.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("insertObject:")] public virtual void InsertObject(NSManagedObject object1) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsertObject_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsertObject_Handle, object1.Handle); } } [Export("deleteObject:")] public virtual void DeleteObject(NSManagedObject object1) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeleteObject_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeleteObject_Handle, object1.Handle); } } [Export("refreshObject:mergeChanges:")] public virtual void RefreshObject(NSManagedObject object1, bool flag) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selRefreshObjectMergeChanges_Handle, object1.Handle, flag); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selRefreshObjectMergeChanges_Handle, object1.Handle, flag); } } [Export("detectConflictsForObject:")] public virtual void DetectConflictsForObject(NSManagedObject object1) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDetectConflictsForObject_Handle, object1.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDetectConflictsForObject_Handle, object1.Handle); } } [Export("observeValueForKeyPath:ofObject:change:context:")] public virtual void ObserveValueForKeyPath(string keyPath, IntPtr object1, NSDictionary change, IntPtr context) { if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (change == null) { throw new ArgumentNullException("change"); } IntPtr arg = NSString.CreateNative(keyPath); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selObserveValueForKeyPathOfObjectChangeContext_Handle, arg, object1, change.Handle, context); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selObserveValueForKeyPathOfObjectChangeContext_Handle, arg, object1, change.Handle, context); } NSString.ReleaseNative(arg); } [Export("processPendingChanges")] public virtual void ProcessPendingChanges() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selProcessPendingChangesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selProcessPendingChangesHandle); } } [Export("assignObject:toPersistentStore:")] public virtual void AssignObject(IntPtr object1, NSPersistentStore store) { if (store == null) { throw new ArgumentNullException("store"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAssignObjectToPersistentStore_Handle, object1, store.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAssignObjectToPersistentStore_Handle, object1, store.Handle); } } [Export("undo")] public virtual void Undo() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUndoHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUndoHandle); } } [Export("redo")] public virtual void Redo() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRedoHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRedoHandle); } } [Export("reset")] public virtual void Reset() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetHandle); } } [Export("rollback")] public virtual void Rollback() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRollbackHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRollbackHandle); } } [Export("save:")] public virtual bool Save(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSave_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSave_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("lock")] public virtual void Lock() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLockHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLockHandle); } } [Export("unlock")] public virtual void Unlock() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnlockHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnlockHandle); } } [Export("obtainPermanentIDsForObjects:error:")] public virtual bool ObtainPermanentIDsForObjects(NSManagedObject[] objects, out NSError error) { if (objects == null) { throw new ArgumentNullException("objects"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(objects); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selObtainPermanentIDsForObjectsError_Handle, nSArray.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selObtainPermanentIDsForObjectsError_Handle, nSArray.Handle, intPtr)); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("mergeChangesFromContextDidSaveNotification:")] public virtual void MergeChangesFromContextDidSaveNotification(NSNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMergeChangesFromContextDidSaveNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMergeChangesFromContextDidSaveNotification_Handle, notification.Handle); } } [Export("initWithConcurrencyType:")] public NSManagedObjectContext(NSManagedObjectContextConcurrencyType ct) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithConcurrencyType_Handle, (ulong)ct); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithConcurrencyType_Handle, (ulong)ct); } } [Export("performBlock:")] public unsafe virtual void Perform(NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, action); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("performBlockAndWait:")] public unsafe virtual void PerformAndWait(NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, action); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformBlockAndWait_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformBlockAndWait_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PersistentStoreCoordinator_var = null; __mt_UndoManager_var = null; __mt_InsertedObjects_var = null; __mt_UpdatedObjects_var = null; __mt_DeletedObjects_var = null; __mt_RegisteredObjects_var = null; __mt_UserInfo_var = null; __mt_ParentContext_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSManagedObjectContextConcurrencyType.cs ================================================ namespace CoreData; public enum NSManagedObjectContextConcurrencyType : ulong { Confinement, PrivateQueue, MainQueue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSManagedObjectID.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSManagedObjectID", true)] public class NSManagedObjectID : NSObject { private static readonly IntPtr selEntityHandle = Selector.GetHandle("entity"); private static readonly IntPtr selPersistentStoreHandle = Selector.GetHandle("persistentStore"); private static readonly IntPtr selIsTemporaryIDHandle = Selector.GetHandle("isTemporaryID"); private static readonly IntPtr selURIRepresentationHandle = Selector.GetHandle("URIRepresentation"); private static readonly IntPtr class_ptr = Class.GetHandle("NSManagedObjectID"); private object __mt_Entity_var; private object __mt_PersistentStore_var; private object __mt_URIRepresentation_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEntityDescription Entity { [Export("entity")] get { return (NSEntityDescription)(__mt_Entity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityHandle))))); } } public virtual NSPersistentStore PersistentStore { [Export("persistentStore")] get { return (NSPersistentStore)(__mt_PersistentStore_var = ((!IsDirectBinding) ? ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentStoreHandle))) : ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentStoreHandle))))); } } public virtual bool IsTemporaryID { [Export("isTemporaryID")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTemporaryIDHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTemporaryIDHandle); } } public virtual NSUrl URIRepresentation { [Export("URIRepresentation")] get { return (NSUrl)(__mt_URIRepresentation_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURIRepresentationHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURIRepresentationHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSManagedObjectID(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectID(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectID(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Entity_var = null; __mt_PersistentStore_var = null; __mt_URIRepresentation_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSManagedObjectModel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSManagedObjectModel", true)] public class NSManagedObjectModel : NSObject { private static readonly IntPtr selEntitiesByNameHandle = Selector.GetHandle("entitiesByName"); private static readonly IntPtr selEntitiesHandle = Selector.GetHandle("entities"); private static readonly IntPtr selSetEntities_Handle = Selector.GetHandle("setEntities:"); private static readonly IntPtr selConfigurationsHandle = Selector.GetHandle("configurations"); private static readonly IntPtr selLocalizationDictionaryHandle = Selector.GetHandle("localizationDictionary"); private static readonly IntPtr selSetLocalizationDictionary_Handle = Selector.GetHandle("setLocalizationDictionary:"); private static readonly IntPtr selFetchRequestTemplatesByNameHandle = Selector.GetHandle("fetchRequestTemplatesByName"); private static readonly IntPtr selVersionIdentifiersHandle = Selector.GetHandle("versionIdentifiers"); private static readonly IntPtr selSetVersionIdentifiers_Handle = Selector.GetHandle("setVersionIdentifiers:"); private static readonly IntPtr selEntityVersionHashesByNameHandle = Selector.GetHandle("entityVersionHashesByName"); private static readonly IntPtr selMergedModelFromBundles_Handle = Selector.GetHandle("mergedModelFromBundles:"); private static readonly IntPtr selModelByMergingModels_Handle = Selector.GetHandle("modelByMergingModels:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selEntitiesForConfiguration_Handle = Selector.GetHandle("entitiesForConfiguration:"); private static readonly IntPtr selSetEntitiesForConfiguration_Handle = Selector.GetHandle("setEntities:forConfiguration:"); private static readonly IntPtr selSetFetchRequestTemplateForName_Handle = Selector.GetHandle("setFetchRequestTemplate:forName:"); private static readonly IntPtr selFetchRequestTemplateForName_Handle = Selector.GetHandle("fetchRequestTemplateForName:"); private static readonly IntPtr selFetchRequestFromTemplateWithNameSubstitutionVariables_Handle = Selector.GetHandle("fetchRequestFromTemplateWithName:substitutionVariables:"); private static readonly IntPtr selMergedModelFromBundlesForStoreMetadata_Handle = Selector.GetHandle("mergedModelFromBundles:forStoreMetadata:"); private static readonly IntPtr selModelByMergingModelsForStoreMetadata_Handle = Selector.GetHandle("modelByMergingModels:forStoreMetadata:"); private static readonly IntPtr selIsConfigurationCompatibleWithStoreMetadata_Handle = Selector.GetHandle("isConfiguration:compatibleWithStoreMetadata:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSManagedObjectModel"); private object __mt_EntitiesByName_var; private object __mt_Entities_var; private object __mt_LocalizationDictionary_var; private object __mt_FetchRequestTemplatesByName_var; private object __mt_VersionIdentifiers_var; private object __mt_EntityVersionHashesByName_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary EntitiesByName { [Export("entitiesByName")] get { return (NSDictionary)(__mt_EntitiesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntitiesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntitiesByNameHandle))))); } } public virtual NSEntityDescription[] Entities { [Export("entities")] get { return (NSEntityDescription[])(__mt_Entities_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntitiesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEntitiesHandle)))); } [Export("setEntities:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEntities_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEntities_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_Entities_var = value; } } public virtual string[] Configurations { [Export("configurations")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConfigurationsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConfigurationsHandle)); } } public virtual NSDictionary LocalizationDictionary { [Export("localizationDictionary")] get { return (NSDictionary)(__mt_LocalizationDictionary_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizationDictionaryHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizationDictionaryHandle))))); } [Export("setLocalizationDictionary:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocalizationDictionary_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocalizationDictionary_Handle, value.Handle); } __mt_LocalizationDictionary_var = value; } } public virtual NSDictionary FetchRequestTemplatesByName { [Export("fetchRequestTemplatesByName")] get { return (NSDictionary)(__mt_FetchRequestTemplatesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFetchRequestTemplatesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFetchRequestTemplatesByNameHandle))))); } } public virtual NSSet VersionIdentifiers { [Export("versionIdentifiers")] get { return (NSSet)(__mt_VersionIdentifiers_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionIdentifiersHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionIdentifiersHandle))))); } [Export("setVersionIdentifiers:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVersionIdentifiers_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVersionIdentifiers_Handle, value.Handle); } __mt_VersionIdentifiers_var = value; } } public virtual NSDictionary EntityVersionHashesByName { [Export("entityVersionHashesByName")] get { return (NSDictionary)(__mt_EntityVersionHashesByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityVersionHashesByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityVersionHashesByNameHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSManagedObjectModel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSManagedObjectModel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectModel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSManagedObjectModel(IntPtr handle) : base(handle) { } [Export("mergedModelFromBundles:")] public static NSManagedObjectModel MergedModelFromBundles(NSBundle[] bundles) { if (bundles == null) { throw new ArgumentNullException("bundles"); } NSArray nSArray = NSArray.FromNSObjects(bundles); NSManagedObjectModel result = (NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selMergedModelFromBundles_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("modelByMergingModels:")] public static NSManagedObjectModel ModelByMergingModels(NSManagedObjectModel[] models) { if (models == null) { throw new ArgumentNullException("models"); } NSArray nSArray = NSArray.FromNSObjects(models); NSManagedObjectModel result = (NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selModelByMergingModels_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("initWithContentsOfURL:")] public NSManagedObjectModel(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } [Export("entitiesForConfiguration:")] public virtual string[] EntitiesForConfiguration(string configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } IntPtr arg = NSString.CreateNative(configuration); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selEntitiesForConfiguration_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selEntitiesForConfiguration_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setEntities:forConfiguration:")] public virtual void SetEntities(NSEntityDescription[] entities, string configuration) { if (entities == null) { throw new ArgumentNullException("entities"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } NSArray nSArray = NSArray.FromNSObjects(entities); IntPtr arg = NSString.CreateNative(configuration); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetEntitiesForConfiguration_Handle, nSArray.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetEntitiesForConfiguration_Handle, nSArray.Handle, arg); } nSArray.Dispose(); NSString.ReleaseNative(arg); } [Export("setFetchRequestTemplate:forName:")] public virtual void SetFetchRequestTemplate(NSFetchRequest fetchRequestTemplate, string name) { if (fetchRequestTemplate == null) { throw new ArgumentNullException("fetchRequestTemplate"); } if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetFetchRequestTemplateForName_Handle, fetchRequestTemplate.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetFetchRequestTemplateForName_Handle, fetchRequestTemplate.Handle, arg); } NSString.ReleaseNative(arg); } [Export("fetchRequestTemplateForName:")] public virtual NSFetchRequest FetchRequestTemplateForName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); NSFetchRequest result = ((!IsDirectBinding) ? ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFetchRequestTemplateForName_Handle, arg))) : ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFetchRequestTemplateForName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("fetchRequestFromTemplateWithName:substitutionVariables:")] public virtual NSFetchRequest FetchRequestFromTemplateWithName(string name, NSDictionary variables) { if (name == null) { throw new ArgumentNullException("name"); } if (variables == null) { throw new ArgumentNullException("variables"); } IntPtr arg = NSString.CreateNative(name); NSFetchRequest result = ((!IsDirectBinding) ? ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFetchRequestFromTemplateWithNameSubstitutionVariables_Handle, arg, variables.Handle))) : ((NSFetchRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selFetchRequestFromTemplateWithNameSubstitutionVariables_Handle, arg, variables.Handle)))); NSString.ReleaseNative(arg); return result; } [Export("mergedModelFromBundles:forStoreMetadata:")] public static NSManagedObjectModel MergedModelFromBundles(NSBundle[] bundles, NSDictionary metadata) { if (bundles == null) { throw new ArgumentNullException("bundles"); } if (metadata == null) { throw new ArgumentNullException("metadata"); } NSArray nSArray = NSArray.FromNSObjects(bundles); NSManagedObjectModel result = (NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMergedModelFromBundlesForStoreMetadata_Handle, nSArray.Handle, metadata.Handle)); nSArray.Dispose(); return result; } [Export("modelByMergingModels:forStoreMetadata:")] public static NSManagedObjectModel ModelByMergingModels(NSManagedObjectModel[] models, NSDictionary metadata) { if (models == null) { throw new ArgumentNullException("models"); } if (metadata == null) { throw new ArgumentNullException("metadata"); } NSArray nSArray = NSArray.FromNSObjects(models); NSManagedObjectModel result = (NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selModelByMergingModelsForStoreMetadata_Handle, nSArray.Handle, metadata.Handle)); nSArray.Dispose(); return result; } [Export("isConfiguration:compatibleWithStoreMetadata:")] public virtual bool IsConfiguration(string configuration, NSDictionary metadata) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (metadata == null) { throw new ArgumentNullException("metadata"); } IntPtr arg = NSString.CreateNative(configuration); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIsConfigurationCompatibleWithStoreMetadata_Handle, arg, metadata.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selIsConfigurationCompatibleWithStoreMetadata_Handle, arg, metadata.Handle)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_EntitiesByName_var = null; __mt_Entities_var = null; __mt_LocalizationDictionary_var = null; __mt_FetchRequestTemplatesByName_var = null; __mt_VersionIdentifiers_var = null; __mt_EntityVersionHashesByName_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSMappingModel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSMappingModel", true)] public class NSMappingModel : NSObject { private static readonly IntPtr selEntityMappingsHandle = Selector.GetHandle("entityMappings"); private static readonly IntPtr selSetEntityMappings_Handle = Selector.GetHandle("setEntityMappings:"); private static readonly IntPtr selEntityMappingsByNameHandle = Selector.GetHandle("entityMappingsByName"); private static readonly IntPtr selMappingModelFromBundlesForSourceModelDestinationModel_Handle = Selector.GetHandle("mappingModelFromBundles:forSourceModel:destinationModel:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMappingModel"); private object __mt_EntityMappings_var; private object __mt_EntityMappingsByName_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEntityMapping[] EntityMappings { [Export("entityMappings")] get { return (NSEntityMapping[])(__mt_EntityMappings_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityMappingsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityMappingsHandle)))); } [Export("setEntityMappings:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEntityMappings_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEntityMappings_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_EntityMappings_var = value; } } public virtual NSDictionary EntityMappingsByName { [Export("entityMappingsByName")] get { return (NSDictionary)(__mt_EntityMappingsByName_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityMappingsByNameHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityMappingsByNameHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMappingModel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMappingModel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMappingModel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMappingModel(IntPtr handle) : base(handle) { } [Export("mappingModelFromBundles:forSourceModel:destinationModel:")] public static NSMappingModel MappingModelFromBundles(NSBundle[] bundles, NSManagedObjectModel sourceModel, NSManagedObjectModel destinationModel) { if (bundles == null) { throw new ArgumentNullException("bundles"); } if (sourceModel == null) { throw new ArgumentNullException("sourceModel"); } if (destinationModel == null) { throw new ArgumentNullException("destinationModel"); } NSArray nSArray = NSArray.FromNSObjects(bundles); NSMappingModel result = (NSMappingModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selMappingModelFromBundlesForSourceModelDestinationModel_Handle, nSArray.Handle, sourceModel.Handle, destinationModel.Handle)); nSArray.Dispose(); return result; } [Export("initWithContentsOfURL:")] public NSMappingModel(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_EntityMappings_var = null; __mt_EntityMappingsByName_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSMergeConflict.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSMergeConflict", true)] public class NSMergeConflict : NSObject { private static readonly IntPtr selSourceObjectHandle = Selector.GetHandle("sourceObject"); private static readonly IntPtr selObjectSnapshotHandle = Selector.GetHandle("objectSnapshot"); private static readonly IntPtr selCachedSnapshotHandle = Selector.GetHandle("cachedSnapshot"); private static readonly IntPtr selPersistedSnapshotHandle = Selector.GetHandle("persistedSnapshot"); private static readonly IntPtr selNewVersionNumberHandle = Selector.GetHandle("newVersionNumber"); private static readonly IntPtr selOldVersionNumberHandle = Selector.GetHandle("oldVersionNumber"); private static readonly IntPtr selInitWithSourceNewVersionOldVersionCachedSnapshotPersistedSnapshot_Handle = Selector.GetHandle("initWithSource:newVersion:oldVersion:cachedSnapshot:persistedSnapshot:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMergeConflict"); private object __mt_SourceObject_var; private object __mt_ObjectSnapshot_var; private object __mt_CachedSnapshot_var; private object __mt_PersistedSnapshot_var; public override IntPtr ClassHandle => class_ptr; public virtual NSManagedObject SourceObject { [Export("sourceObject")] get { return (NSManagedObject)(__mt_SourceObject_var = ((!IsDirectBinding) ? ((NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceObjectHandle))) : ((NSManagedObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceObjectHandle))))); } } public virtual NSDictionary ObjectSnapshot { [Export("objectSnapshot")] get { return (NSDictionary)(__mt_ObjectSnapshot_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectSnapshotHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectSnapshotHandle))))); } } public virtual NSDictionary CachedSnapshot { [Export("cachedSnapshot")] get { return (NSDictionary)(__mt_CachedSnapshot_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCachedSnapshotHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCachedSnapshotHandle))))); } } public virtual NSDictionary PersistedSnapshot { [Export("persistedSnapshot")] get { return (NSDictionary)(__mt_PersistedSnapshot_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistedSnapshotHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistedSnapshotHandle))))); } } public virtual uint NewVersionNumber { [Export("newVersionNumber")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selNewVersionNumberHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selNewVersionNumberHandle); } } public virtual uint OldVersionNumber { [Export("oldVersionNumber")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selOldVersionNumberHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selOldVersionNumberHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMergeConflict() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMergeConflict(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMergeConflict(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMergeConflict(IntPtr handle) : base(handle) { } [Export("initWithSource:newVersion:oldVersion:cachedSnapshot:persistedSnapshot:")] public NSMergeConflict(NSManagedObject srcObject, uint newvers, uint oldvers, NSDictionary cachesnap, NSDictionary persnap) : base(NSObjectFlag.Empty) { if (srcObject == null) { throw new ArgumentNullException("srcObject"); } if (cachesnap == null) { throw new ArgumentNullException("cachesnap"); } if (persnap == null) { throw new ArgumentNullException("persnap"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt32_UInt32_IntPtr_IntPtr(base.Handle, selInitWithSourceNewVersionOldVersionCachedSnapshotPersistedSnapshot_Handle, srcObject.Handle, newvers, oldvers, cachesnap.Handle, persnap.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt32_UInt32_IntPtr_IntPtr(base.SuperHandle, selInitWithSourceNewVersionOldVersionCachedSnapshotPersistedSnapshot_Handle, srcObject.Handle, newvers, oldvers, cachesnap.Handle, persnap.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SourceObject_var = null; __mt_ObjectSnapshot_var = null; __mt_CachedSnapshot_var = null; __mt_PersistedSnapshot_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSMergePolicy.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSMergePolicy", true)] public class NSMergePolicy : NSObject { private static readonly IntPtr selMergeTypeHandle = Selector.GetHandle("mergeType"); private static readonly IntPtr selInitWithMergeType_Handle = Selector.GetHandle("initWithMergeType:"); private static readonly IntPtr selResolveConflictsError_Handle = Selector.GetHandle("resolveConflicts:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMergePolicy"); public override IntPtr ClassHandle => class_ptr; public virtual NSMergePolicyType MergeType { [Export("mergeType")] get { if (IsDirectBinding) { return (NSMergePolicyType)Messaging.UInt64_objc_msgSend(base.Handle, selMergeTypeHandle); } return (NSMergePolicyType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMergeTypeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMergePolicy() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMergePolicy(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMergePolicy(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMergePolicy(IntPtr handle) : base(handle) { } [Export("initWithMergeType:")] public NSMergePolicy(NSMergePolicyType ty) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithMergeType_Handle, (ulong)ty); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithMergeType_Handle, (ulong)ty); } } [Export("resolveConflicts:error:")] public virtual bool ResolveConflictserror(NSMergeConflict[] list, out NSError error) { if (list == null) { throw new ArgumentNullException("list"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(list); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selResolveConflictsError_Handle, nSArray.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selResolveConflictsError_Handle, nSArray.Handle, intPtr)); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSMergePolicyType.cs ================================================ namespace CoreData; public enum NSMergePolicyType : ulong { Error, PropertyStoreTrump, PropertyObjectTrump, Overwrite, RollbackMerge } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSMigrationManager.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSMigrationManager", true)] public class NSMigrationManager : NSObject { private static readonly IntPtr selMappingModelHandle = Selector.GetHandle("mappingModel"); private static readonly IntPtr selSourceModelHandle = Selector.GetHandle("sourceModel"); private static readonly IntPtr selDestinationModelHandle = Selector.GetHandle("destinationModel"); private static readonly IntPtr selSourceContextHandle = Selector.GetHandle("sourceContext"); private static readonly IntPtr selDestinationContextHandle = Selector.GetHandle("destinationContext"); private static readonly IntPtr selCurrentEntityMappingHandle = Selector.GetHandle("currentEntityMapping"); private static readonly IntPtr selMigrationProgressHandle = Selector.GetHandle("migrationProgress"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr selUsesStoreSpecificMigrationManagerHandle = Selector.GetHandle("usesStoreSpecificMigrationManager"); private static readonly IntPtr selSetUsesStoreSpecificMigrationManager_Handle = Selector.GetHandle("setUsesStoreSpecificMigrationManager:"); private static readonly IntPtr selInitWithSourceModelDestinationModel_Handle = Selector.GetHandle("initWithSourceModel:destinationModel:"); private static readonly IntPtr selMigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError_Handle = Selector.GetHandle("migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error:"); private static readonly IntPtr selResetHandle = Selector.GetHandle("reset"); private static readonly IntPtr selSourceEntityForEntityMapping_Handle = Selector.GetHandle("sourceEntityForEntityMapping:"); private static readonly IntPtr selDestinationEntityForEntityMapping_Handle = Selector.GetHandle("destinationEntityForEntityMapping:"); private static readonly IntPtr selAssociateSourceInstanceWithDestinationInstanceForEntityMapping_Handle = Selector.GetHandle("associateSourceInstance:withDestinationInstance:forEntityMapping:"); private static readonly IntPtr selDestinationInstancesForEntityMappingNamedSourceInstances_Handle = Selector.GetHandle("destinationInstancesForEntityMappingNamed:sourceInstances:"); private static readonly IntPtr selSourceInstancesForEntityMappingNamedDestinationInstances_Handle = Selector.GetHandle("sourceInstancesForEntityMappingNamed:destinationInstances:"); private static readonly IntPtr selCancelMigrationWithError_Handle = Selector.GetHandle("cancelMigrationWithError:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMigrationManager"); private object __mt_MappingModel_var; private object __mt_SourceModel_var; private object __mt_DestinationModel_var; private object __mt_SourceContext_var; private object __mt_DestinationContext_var; private object __mt_CurrentEntityMapping_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual NSMappingModel MappingModel { [Export("mappingModel")] get { return (NSMappingModel)(__mt_MappingModel_var = ((!IsDirectBinding) ? ((NSMappingModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMappingModelHandle))) : ((NSMappingModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMappingModelHandle))))); } } public virtual NSManagedObjectModel SourceModel { [Export("sourceModel")] get { return (NSManagedObjectModel)(__mt_SourceModel_var = ((!IsDirectBinding) ? ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceModelHandle))) : ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceModelHandle))))); } } public virtual NSManagedObjectModel DestinationModel { [Export("destinationModel")] get { return (NSManagedObjectModel)(__mt_DestinationModel_var = ((!IsDirectBinding) ? ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationModelHandle))) : ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationModelHandle))))); } } public virtual NSManagedObjectContext SourceContext { [Export("sourceContext")] get { return (NSManagedObjectContext)(__mt_SourceContext_var = ((!IsDirectBinding) ? ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSourceContextHandle))) : ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSourceContextHandle))))); } } public virtual NSManagedObjectContext DestinationContext { [Export("destinationContext")] get { return (NSManagedObjectContext)(__mt_DestinationContext_var = ((!IsDirectBinding) ? ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationContextHandle))) : ((NSManagedObjectContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationContextHandle))))); } } public virtual NSEntityMapping CurrentEntityMapping { [Export("currentEntityMapping")] get { return (NSEntityMapping)(__mt_CurrentEntityMapping_var = ((!IsDirectBinding) ? ((NSEntityMapping)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentEntityMappingHandle))) : ((NSEntityMapping)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentEntityMappingHandle))))); } } public virtual float MigrationProgress { [Export("migrationProgress")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selMigrationProgressHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selMigrationProgressHandle); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } [Since(5, 0)] public virtual bool UsesStoreSpecificMigrationManager { [Export("usesStoreSpecificMigrationManager")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesStoreSpecificMigrationManagerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesStoreSpecificMigrationManagerHandle); } [Export("setUsesStoreSpecificMigrationManager:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesStoreSpecificMigrationManager_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesStoreSpecificMigrationManager_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMigrationManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMigrationManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMigrationManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMigrationManager(IntPtr handle) : base(handle) { } [Export("initWithSourceModel:destinationModel:")] public NSMigrationManager(NSManagedObjectModel sourceModel, NSManagedObjectModel destinationModel) : base(NSObjectFlag.Empty) { if (sourceModel == null) { throw new ArgumentNullException("sourceModel"); } if (destinationModel == null) { throw new ArgumentNullException("destinationModel"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithSourceModelDestinationModel_Handle, sourceModel.Handle, destinationModel.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithSourceModelDestinationModel_Handle, sourceModel.Handle, destinationModel.Handle); } } [Export("migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error:")] public virtual bool MigrateStoreFromUrl(NSUrl sourceURL, string sStoreType, NSDictionary sOptions, NSMappingModel mappings, NSUrl dURL, string dStoreType, NSDictionary dOptions, out NSError error) { if (sourceURL == null) { throw new ArgumentNullException("sourceURL"); } if (sStoreType == null) { throw new ArgumentNullException("sStoreType"); } if (sOptions == null) { throw new ArgumentNullException("sOptions"); } if (mappings == null) { throw new ArgumentNullException("mappings"); } if (dURL == null) { throw new ArgumentNullException("dURL"); } if (dStoreType == null) { throw new ArgumentNullException("dStoreType"); } if (dOptions == null) { throw new ArgumentNullException("dOptions"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(sStoreType); IntPtr arg2 = NSString.CreateNative(dStoreType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError_Handle, sourceURL.Handle, arg, sOptions.Handle, mappings.Handle, dURL.Handle, arg2, dOptions.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selMigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError_Handle, sourceURL.Handle, arg, sOptions.Handle, mappings.Handle, dURL.Handle, arg2, dOptions.Handle, intPtr)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("reset")] public virtual void Reset() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResetHandle); } } [Export("sourceEntityForEntityMapping:")] public virtual NSEntityDescription SourceEntityForEntityMapping(NSEntityMapping mEntity) { if (mEntity == null) { throw new ArgumentNullException("mEntity"); } if (IsDirectBinding) { return (NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSourceEntityForEntityMapping_Handle, mEntity.Handle)); } return (NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSourceEntityForEntityMapping_Handle, mEntity.Handle)); } [Export("destinationEntityForEntityMapping:")] public virtual NSEntityDescription DestinationEntityForEntityMapping(NSEntityMapping mEntity) { if (mEntity == null) { throw new ArgumentNullException("mEntity"); } if (IsDirectBinding) { return (NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDestinationEntityForEntityMapping_Handle, mEntity.Handle)); } return (NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDestinationEntityForEntityMapping_Handle, mEntity.Handle)); } [Export("associateSourceInstance:withDestinationInstance:forEntityMapping:")] public virtual void AssociateSourceInstance(NSManagedObject sourceInstance, NSManagedObject destinationInstance, NSEntityMapping entityMapping) { if (sourceInstance == null) { throw new ArgumentNullException("sourceInstance"); } if (destinationInstance == null) { throw new ArgumentNullException("destinationInstance"); } if (entityMapping == null) { throw new ArgumentNullException("entityMapping"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selAssociateSourceInstanceWithDestinationInstanceForEntityMapping_Handle, sourceInstance.Handle, destinationInstance.Handle, entityMapping.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAssociateSourceInstanceWithDestinationInstanceForEntityMapping_Handle, sourceInstance.Handle, destinationInstance.Handle, entityMapping.Handle); } } [Export("destinationInstancesForEntityMappingNamed:sourceInstances:")] public virtual NSManagedObject[] DestinationInstancesForEntityMappingNamed(string mappingName, NSManagedObject[] sourceInstances) { if (mappingName == null) { throw new ArgumentNullException("mappingName"); } if (sourceInstances == null) { throw new ArgumentNullException("sourceInstances"); } IntPtr arg = NSString.CreateNative(mappingName); NSArray nSArray = NSArray.FromNSObjects(sourceInstances); NSManagedObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDestinationInstancesForEntityMappingNamedSourceInstances_Handle, arg, nSArray.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDestinationInstancesForEntityMappingNamedSourceInstances_Handle, arg, nSArray.Handle))); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("sourceInstancesForEntityMappingNamed:destinationInstances:")] public virtual NSManagedObject[] SourceInstancesForEntityMappingNamed(string mappingName, NSManagedObject[] destinationInstances) { if (mappingName == null) { throw new ArgumentNullException("mappingName"); } if (destinationInstances == null) { throw new ArgumentNullException("destinationInstances"); } IntPtr arg = NSString.CreateNative(mappingName); NSArray nSArray = NSArray.FromNSObjects(destinationInstances); NSManagedObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSourceInstancesForEntityMappingNamedDestinationInstances_Handle, arg, nSArray.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selSourceInstancesForEntityMappingNamedDestinationInstances_Handle, arg, nSArray.Handle))); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("cancelMigrationWithError:")] public virtual void CancelMigrationWithError(NSError error) { if (error == null) { throw new ArgumentNullException("error"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCancelMigrationWithError_Handle, error.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCancelMigrationWithError_Handle, error.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_MappingModel_var = null; __mt_SourceModel_var = null; __mt_DestinationModel_var = null; __mt_SourceContext_var = null; __mt_DestinationContext_var = null; __mt_CurrentEntityMapping_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPersistentStore.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSPersistentStore", true)] public class NSPersistentStore : NSObject { private static readonly IntPtr selPersistentStoreCoordinatorHandle = Selector.GetHandle("persistentStoreCoordinator"); private static readonly IntPtr selConfigurationNameHandle = Selector.GetHandle("configurationName"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selSetIdentifier_Handle = Selector.GetHandle("setIdentifier:"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selIsReadOnlyHandle = Selector.GetHandle("isReadOnly"); private static readonly IntPtr selSetReadOnly_Handle = Selector.GetHandle("setReadOnly:"); private static readonly IntPtr selMetadataHandle = Selector.GetHandle("metadata"); private static readonly IntPtr selSetMetadata_Handle = Selector.GetHandle("setMetadata:"); private static readonly IntPtr selMetadataForPersistentStoreWithURLError_Handle = Selector.GetHandle("metadataForPersistentStoreWithURL:error:"); private static readonly IntPtr selSetMetadataForPersistentStoreWithURLError_Handle = Selector.GetHandle("setMetadata:forPersistentStoreWithURL:error:"); private static readonly IntPtr selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle = Selector.GetHandle("initWithPersistentStoreCoordinator:configurationName:URL:options:"); private static readonly IntPtr selDidAddToPersistentStoreCoordinator_Handle = Selector.GetHandle("didAddToPersistentStoreCoordinator:"); private static readonly IntPtr selWillRemoveFromPersistentStoreCoordinator_Handle = Selector.GetHandle("willRemoveFromPersistentStoreCoordinator:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPersistentStore"); private object __mt_PersistentStoreCoordinator_var; private object __mt_Options_var; private object __mt_Url_var; private object __mt_Metadata_var; private static NSString _SaveConflictsErrorKey; public override IntPtr ClassHandle => class_ptr; public virtual NSPersistentStoreCoordinator PersistentStoreCoordinator { [Export("persistentStoreCoordinator")] get { return (NSPersistentStoreCoordinator)(__mt_PersistentStoreCoordinator_var = ((!IsDirectBinding) ? ((NSPersistentStoreCoordinator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentStoreCoordinatorHandle))) : ((NSPersistentStoreCoordinator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentStoreCoordinatorHandle))))); } } public virtual string ConfigurationName { [Export("configurationName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConfigurationNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConfigurationNameHandle)); } } public virtual NSDictionary Options { [Export("options")] get { return (NSDictionary)(__mt_Options_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOptionsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOptionsHandle))))); } } public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } public virtual string Identifier { [Export("identifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } [Export("setIdentifier:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual bool ReadOnly { [Export("isReadOnly")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReadOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReadOnlyHandle); } [Export("setReadOnly:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReadOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReadOnly_Handle, value); } } } public virtual NSDictionary Metadata { [Export("metadata")] get { return (NSDictionary)(__mt_Metadata_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMetadataHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMetadataHandle))))); } [Export("setMetadata:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMetadata_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMetadata_Handle, value.Handle); } __mt_Metadata_var = value; } } [Field("NSPersistentStoreSaveConflictsErrorKey", "CoreData")] public static NSString SaveConflictsErrorKey { get { if (_SaveConflictsErrorKey == null) { _SaveConflictsErrorKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreSaveConflictsErrorKey"); } return _SaveConflictsErrorKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPersistentStore() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPersistentStore(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStore(IntPtr handle) : base(handle) { } [Export("metadataForPersistentStoreWithURL:error:")] public static NSDictionary MetadataForPersistentStoreWithUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMetadataForPersistentStoreWithURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setMetadata:forPersistentStoreWithURL:error:")] public static bool SetMetadata(NSDictionary metadata, NSUrl url, out NSError error) { if (metadata == null) { throw new ArgumentNullException("metadata"); } if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selSetMetadataForPersistentStoreWithURLError_Handle, metadata.Handle, url.Handle, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initWithPersistentStoreCoordinator:configurationName:URL:options:")] public NSPersistentStore(NSPersistentStoreCoordinator root, string name, NSUrl url, NSDictionary options) : base(NSObjectFlag.Empty) { if (root == null) { throw new ArgumentNullException("root"); } if (name == null) { throw new ArgumentNullException("name"); } if (url == null) { throw new ArgumentNullException("url"); } if (options == null) { throw new ArgumentNullException("options"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle, root.Handle, arg, url.Handle, options.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithPersistentStoreCoordinatorConfigurationNameURLOptions_Handle, root.Handle, arg, url.Handle, options.Handle); } NSString.ReleaseNative(arg); } [Export("didAddToPersistentStoreCoordinator:")] public virtual void DidAddToPersistentStoreCoordinator(NSPersistentStoreCoordinator coordinator) { if (coordinator == null) { throw new ArgumentNullException("coordinator"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDidAddToPersistentStoreCoordinator_Handle, coordinator.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDidAddToPersistentStoreCoordinator_Handle, coordinator.Handle); } } [Export("willRemoveFromPersistentStoreCoordinator:")] public virtual void WillRemoveFromPersistentStoreCoordinator(NSPersistentStoreCoordinator coordinator) { if (coordinator == null) { throw new ArgumentNullException("coordinator"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWillRemoveFromPersistentStoreCoordinator_Handle, coordinator.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWillRemoveFromPersistentStoreCoordinator_Handle, coordinator.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PersistentStoreCoordinator_var = null; __mt_Options_var = null; __mt_Url_var = null; __mt_Metadata_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPersistentStoreCoordinator.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSPersistentStoreCoordinator", true)] public class NSPersistentStoreCoordinator : NSObject { private static readonly IntPtr selRegisteredStoreTypesHandle = Selector.GetHandle("registeredStoreTypes"); private static readonly IntPtr selManagedObjectModelHandle = Selector.GetHandle("managedObjectModel"); private static readonly IntPtr selPersistentStoresHandle = Selector.GetHandle("persistentStores"); private static readonly IntPtr selTryLockHandle = Selector.GetHandle("tryLock"); private static readonly IntPtr selRegisterStoreClassForStoreType_Handle = Selector.GetHandle("registerStoreClass:forStoreType:"); private static readonly IntPtr selMetadataForPersistentStoreOfTypeURLError_Handle = Selector.GetHandle("metadataForPersistentStoreOfType:URL:error:"); private static readonly IntPtr selSetMetadataForPersistentStoreOfTypeURLError_Handle = Selector.GetHandle("setMetadata:forPersistentStoreOfType:URL:error:"); private static readonly IntPtr selSetMetadataForPersistentStore_Handle = Selector.GetHandle("setMetadata:forPersistentStore:"); private static readonly IntPtr selMetadataForPersistentStore_Handle = Selector.GetHandle("metadataForPersistentStore:"); private static readonly IntPtr selInitWithManagedObjectModel_Handle = Selector.GetHandle("initWithManagedObjectModel:"); private static readonly IntPtr selPersistentStoreForURL_Handle = Selector.GetHandle("persistentStoreForURL:"); private static readonly IntPtr selURLForPersistentStore_Handle = Selector.GetHandle("URLForPersistentStore:"); private static readonly IntPtr selSetURLForPersistentStore_Handle = Selector.GetHandle("setURL:forPersistentStore:"); private static readonly IntPtr selAddPersistentStoreWithTypeConfigurationURLOptionsError_Handle = Selector.GetHandle("addPersistentStoreWithType:configuration:URL:options:error:"); private static readonly IntPtr selRemovePersistentStoreError_Handle = Selector.GetHandle("removePersistentStore:error:"); private static readonly IntPtr selMigratePersistentStoreToURLOptionsWithTypeError_Handle = Selector.GetHandle("migratePersistentStore:toURL:options:withType:error:"); private static readonly IntPtr selManagedObjectIDForURIRepresentation_Handle = Selector.GetHandle("managedObjectIDForURIRepresentation:"); private static readonly IntPtr selLockHandle = Selector.GetHandle("lock"); private static readonly IntPtr selUnlockHandle = Selector.GetHandle("unlock"); private static readonly IntPtr selMetadataForPersistentStoreWithURLError_Handle = Selector.GetHandle("metadataForPersistentStoreWithURL:error:"); private static readonly IntPtr selExecuteRequestWithContextError_Handle = Selector.GetHandle("executeRequest:withContext:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPersistentStoreCoordinator"); private static object __mt_RegisteredStoreTypes_var_static; private object __mt_ManagedObjectModel_var; private object __mt_PersistentStores_var; private static NSString _SQLiteStoreType; private static NSString _XMLStoreType; private static NSString _BinaryStoreType; private static NSString _InMemoryStoreType; private static NSString _StoreUUIDKey; private static NSString _AddedPersistentStoresKey; private static NSString _RemovedPersistentStoresKey; private static NSString _UUIDChangedPersistentStoresKey; private static NSString _ReadOnlyPersistentStoreOption; private static NSString _ValidateXMLStoreOption; private static NSString _PersistentStoreTimeoutOption; private static NSString _SQLitePragmasOption; private static NSString _SQLiteAnalyzeOption; private static NSString _SQLiteManualVacuumOption; private static NSString _IgnorePersistentStoreVersioningOption; private static NSString _MigratePersistentStoresAutomaticallyOption; private static NSString _InferMappingModelAutomaticallyOption; private static NSString _StoreModelVersionHashesKey; private static NSString _StoreModelVersionIdentifiersKey; private static NSString _PersistentStoreOSCompatibility; private static NSString _StoreTypeKey; private static NSString _StoresDidChangeNotification; private static NSString _WillRemoveStoreNotification; private static NSString _DidImportUbiquitousContentChangesNotification; private static NSString _PersistentStoreUbiquitousContentNameKey; private static NSString _PersistentStoreUbiquitousContentUrlLKey; public override IntPtr ClassHandle => class_ptr; public static NSDictionary RegisteredStoreTypes { [Export("registeredStoreTypes")] get { return (NSDictionary)(__mt_RegisteredStoreTypes_var_static = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selRegisteredStoreTypesHandle))); } } public virtual NSManagedObjectModel ManagedObjectModel { [Export("managedObjectModel")] get { return (NSManagedObjectModel)(__mt_ManagedObjectModel_var = ((!IsDirectBinding) ? ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selManagedObjectModelHandle))) : ((NSManagedObjectModel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selManagedObjectModelHandle))))); } } public virtual NSPersistentStore[] PersistentStores { [Export("persistentStores")] get { return (NSPersistentStore[])(__mt_PersistentStores_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentStoresHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentStoresHandle)))); } } public virtual bool TryLock { [Export("tryLock")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTryLockHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTryLockHandle); } } [Field("NSSQLiteStoreType", "CoreData")] public static NSString SQLiteStoreType { get { if (_SQLiteStoreType == null) { _SQLiteStoreType = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSSQLiteStoreType"); } return _SQLiteStoreType; } } [Field("NSXMLStoreType", "CoreData")] public static NSString XMLStoreType { get { if (_XMLStoreType == null) { _XMLStoreType = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSXMLStoreType"); } return _XMLStoreType; } } [Field("NSBinaryStoreType", "CoreData")] public static NSString BinaryStoreType { get { if (_BinaryStoreType == null) { _BinaryStoreType = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSBinaryStoreType"); } return _BinaryStoreType; } } [Field("NSInMemoryStoreType", "CoreData")] public static NSString InMemoryStoreType { get { if (_InMemoryStoreType == null) { _InMemoryStoreType = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSInMemoryStoreType"); } return _InMemoryStoreType; } } [Field("NSStoreUUIDKey", "CoreData")] public static NSString StoreUUIDKey { get { if (_StoreUUIDKey == null) { _StoreUUIDKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSStoreUUIDKey"); } return _StoreUUIDKey; } } [Field("NSAddedPersistentStoresKey", "CoreData")] public static NSString AddedPersistentStoresKey { get { if (_AddedPersistentStoresKey == null) { _AddedPersistentStoresKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSAddedPersistentStoresKey"); } return _AddedPersistentStoresKey; } } [Field("NSRemovedPersistentStoresKey", "CoreData")] public static NSString RemovedPersistentStoresKey { get { if (_RemovedPersistentStoresKey == null) { _RemovedPersistentStoresKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSRemovedPersistentStoresKey"); } return _RemovedPersistentStoresKey; } } [Field("NSUUIDChangedPersistentStoresKey", "CoreData")] public static NSString UUIDChangedPersistentStoresKey { get { if (_UUIDChangedPersistentStoresKey == null) { _UUIDChangedPersistentStoresKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSUUIDChangedPersistentStoresKey"); } return _UUIDChangedPersistentStoresKey; } } [Field("NSReadOnlyPersistentStoreOption", "CoreData")] public static NSString ReadOnlyPersistentStoreOption { get { if (_ReadOnlyPersistentStoreOption == null) { _ReadOnlyPersistentStoreOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSReadOnlyPersistentStoreOption"); } return _ReadOnlyPersistentStoreOption; } } [Field("NSValidateXMLStoreOption", "CoreData")] public static NSString ValidateXMLStoreOption { get { if (_ValidateXMLStoreOption == null) { _ValidateXMLStoreOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSValidateXMLStoreOption"); } return _ValidateXMLStoreOption; } } [Field("NSPersistentStoreTimeoutOption", "CoreData")] public static NSString PersistentStoreTimeoutOption { get { if (_PersistentStoreTimeoutOption == null) { _PersistentStoreTimeoutOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreTimeoutOption"); } return _PersistentStoreTimeoutOption; } } [Field("NSSQLitePragmasOption", "CoreData")] public static NSString SQLitePragmasOption { get { if (_SQLitePragmasOption == null) { _SQLitePragmasOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSSQLitePragmasOption"); } return _SQLitePragmasOption; } } [Field("NSSQLiteAnalyzeOption", "CoreData")] public static NSString SQLiteAnalyzeOption { get { if (_SQLiteAnalyzeOption == null) { _SQLiteAnalyzeOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSSQLiteAnalyzeOption"); } return _SQLiteAnalyzeOption; } } [Field("NSSQLiteManualVacuumOption", "CoreData")] public static NSString SQLiteManualVacuumOption { get { if (_SQLiteManualVacuumOption == null) { _SQLiteManualVacuumOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSSQLiteManualVacuumOption"); } return _SQLiteManualVacuumOption; } } [Field("NSIgnorePersistentStoreVersioningOption", "CoreData")] public static NSString IgnorePersistentStoreVersioningOption { get { if (_IgnorePersistentStoreVersioningOption == null) { _IgnorePersistentStoreVersioningOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSIgnorePersistentStoreVersioningOption"); } return _IgnorePersistentStoreVersioningOption; } } [Field("NSMigratePersistentStoresAutomaticallyOption", "CoreData")] public static NSString MigratePersistentStoresAutomaticallyOption { get { if (_MigratePersistentStoresAutomaticallyOption == null) { _MigratePersistentStoresAutomaticallyOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSMigratePersistentStoresAutomaticallyOption"); } return _MigratePersistentStoresAutomaticallyOption; } } [Field("NSInferMappingModelAutomaticallyOption", "CoreData")] public static NSString InferMappingModelAutomaticallyOption { get { if (_InferMappingModelAutomaticallyOption == null) { _InferMappingModelAutomaticallyOption = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSInferMappingModelAutomaticallyOption"); } return _InferMappingModelAutomaticallyOption; } } [Field("NSStoreModelVersionHashesKey", "CoreData")] public static NSString StoreModelVersionHashesKey { get { if (_StoreModelVersionHashesKey == null) { _StoreModelVersionHashesKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSStoreModelVersionHashesKey"); } return _StoreModelVersionHashesKey; } } [Field("NSStoreModelVersionIdentifiersKey", "CoreData")] public static NSString StoreModelVersionIdentifiersKey { get { if (_StoreModelVersionIdentifiersKey == null) { _StoreModelVersionIdentifiersKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSStoreModelVersionIdentifiersKey"); } return _StoreModelVersionIdentifiersKey; } } [Field("NSPersistentStoreOSCompatibility", "CoreData")] public static NSString PersistentStoreOSCompatibility { get { if (_PersistentStoreOSCompatibility == null) { _PersistentStoreOSCompatibility = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreOSCompatibility"); } return _PersistentStoreOSCompatibility; } } [Field("NSStoreTypeKey", "CoreData")] public static NSString StoreTypeKey { get { if (_StoreTypeKey == null) { _StoreTypeKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSStoreTypeKey"); } return _StoreTypeKey; } } [Field("NSPersistentStoreCoordinatorStoresDidChangeNotification", "CoreData")] public static NSString StoresDidChangeNotification { get { if (_StoresDidChangeNotification == null) { _StoresDidChangeNotification = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreCoordinatorStoresDidChangeNotification"); } return _StoresDidChangeNotification; } } [Field("NSPersistentStoreCoordinatorWillRemoveStoreNotification", "CoreData")] public static NSString WillRemoveStoreNotification { get { if (_WillRemoveStoreNotification == null) { _WillRemoveStoreNotification = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreCoordinatorWillRemoveStoreNotification"); } return _WillRemoveStoreNotification; } } [Field("NSPersistentStoreDidImportUbiquitousContentChangesNotification", "CoreData")] public static NSString DidImportUbiquitousContentChangesNotification { get { if (_DidImportUbiquitousContentChangesNotification == null) { _DidImportUbiquitousContentChangesNotification = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreDidImportUbiquitousContentChangesNotification"); } return _DidImportUbiquitousContentChangesNotification; } } [Field("NSPersistentStoreUbiquitousContentNameKey", "CoreData")] public static NSString PersistentStoreUbiquitousContentNameKey { get { if (_PersistentStoreUbiquitousContentNameKey == null) { _PersistentStoreUbiquitousContentNameKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreUbiquitousContentNameKey"); } return _PersistentStoreUbiquitousContentNameKey; } } [Field("NSPersistentStoreUbiquitousContentURLKey", "CoreData")] public static NSString PersistentStoreUbiquitousContentUrlLKey { get { if (_PersistentStoreUbiquitousContentUrlLKey == null) { _PersistentStoreUbiquitousContentUrlLKey = Dlfcn.GetStringConstant(Libraries.CoreData.Handle, "NSPersistentStoreUbiquitousContentURLKey"); } return _PersistentStoreUbiquitousContentUrlLKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPersistentStoreCoordinator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPersistentStoreCoordinator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStoreCoordinator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStoreCoordinator(IntPtr handle) : base(handle) { } [Export("registerStoreClass:forStoreType:")] public static void RegisterStoreClass(Class storeClass, NSString storeType) { if (storeClass == null) { throw new ArgumentNullException("storeClass"); } if (storeType == null) { throw new ArgumentNullException("storeType"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selRegisterStoreClassForStoreType_Handle, storeClass.Handle, storeType.Handle); } [Export("metadataForPersistentStoreOfType:URL:error:")] public static NSDictionary MetadataForPersistentStoreOfType(NSString storeType, NSUrl url, out NSError error) { if (storeType == null) { throw new ArgumentNullException("storeType"); } if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selMetadataForPersistentStoreOfTypeURLError_Handle, storeType.Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setMetadata:forPersistentStoreOfType:URL:error:")] public static bool SetMetadata(NSDictionary metadata, NSString storeType, NSUrl url, out NSError error) { if (metadata == null) { throw new ArgumentNullException("metadata"); } if (storeType == null) { throw new ArgumentNullException("storeType"); } if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(class_ptr, selSetMetadataForPersistentStoreOfTypeURLError_Handle, metadata.Handle, storeType.Handle, url.Handle, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setMetadata:forPersistentStore:")] public virtual void SetMetadata(NSDictionary metadata, NSPersistentStore store) { if (metadata == null) { throw new ArgumentNullException("metadata"); } if (store == null) { throw new ArgumentNullException("store"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetMetadataForPersistentStore_Handle, metadata.Handle, store.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetMetadataForPersistentStore_Handle, metadata.Handle, store.Handle); } } [Export("metadataForPersistentStore:")] public virtual NSDictionary MetadataForPersistentStore(NSPersistentStore store) { if (store == null) { throw new ArgumentNullException("store"); } if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selMetadataForPersistentStore_Handle, store.Handle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selMetadataForPersistentStore_Handle, store.Handle)); } [Export("initWithManagedObjectModel:")] public NSPersistentStoreCoordinator(NSManagedObjectModel model) : base(NSObjectFlag.Empty) { if (model == null) { throw new ArgumentNullException("model"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithManagedObjectModel_Handle, model.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithManagedObjectModel_Handle, model.Handle); } } [Export("persistentStoreForURL:")] public virtual NSPersistentStore PersistentStoreForUrl(NSUrl URL) { if (URL == null) { throw new ArgumentNullException("URL"); } if (IsDirectBinding) { return (NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPersistentStoreForURL_Handle, URL.Handle)); } return (NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPersistentStoreForURL_Handle, URL.Handle)); } [Export("URLForPersistentStore:")] public virtual NSUrl UrlForPersistentStore(NSPersistentStore store) { if (store == null) { throw new ArgumentNullException("store"); } if (IsDirectBinding) { return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selURLForPersistentStore_Handle, store.Handle)); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selURLForPersistentStore_Handle, store.Handle)); } [Export("setURL:forPersistentStore:")] public virtual bool SetUrl(NSUrl url, NSPersistentStore store) { if (url == null) { throw new ArgumentNullException("url"); } if (store == null) { throw new ArgumentNullException("store"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetURLForPersistentStore_Handle, url.Handle, store.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetURLForPersistentStore_Handle, url.Handle, store.Handle); } [Export("addPersistentStoreWithType:configuration:URL:options:error:")] public virtual NSPersistentStore AddPersistentStoreWithType(NSString storeType, string configuration, NSUrl storeURL, NSDictionary options, out NSError error) { if (storeType == null) { throw new ArgumentNullException("storeType"); } if (storeURL == null) { throw new ArgumentNullException("storeURL"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(configuration); NSPersistentStore result = ((!IsDirectBinding) ? ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddPersistentStoreWithTypeConfigurationURLOptionsError_Handle, storeType.Handle, arg, storeURL.Handle, options?.Handle ?? IntPtr.Zero, intPtr))) : ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selAddPersistentStoreWithTypeConfigurationURLOptionsError_Handle, storeType.Handle, arg, storeURL.Handle, options?.Handle ?? IntPtr.Zero, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removePersistentStore:error:")] public virtual bool RemovePersistentStore(NSPersistentStore store, out NSError error) { if (store == null) { throw new ArgumentNullException("store"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemovePersistentStoreError_Handle, store.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemovePersistentStoreError_Handle, store.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("migratePersistentStore:toURL:options:withType:error:")] public virtual NSPersistentStore MigratePersistentStore(NSPersistentStore store, NSUrl URL, NSDictionary options, NSString storeType, out NSError error) { if (store == null) { throw new ArgumentNullException("store"); } if (URL == null) { throw new ArgumentNullException("URL"); } if (options == null) { throw new ArgumentNullException("options"); } if (storeType == null) { throw new ArgumentNullException("storeType"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSPersistentStore result = ((!IsDirectBinding) ? ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMigratePersistentStoreToURLOptionsWithTypeError_Handle, store.Handle, URL.Handle, options.Handle, storeType.Handle, intPtr))) : ((NSPersistentStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selMigratePersistentStoreToURLOptionsWithTypeError_Handle, store.Handle, URL.Handle, options.Handle, storeType.Handle, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("managedObjectIDForURIRepresentation:")] public virtual NSManagedObjectID ManagedObjectIDForURIRepresentation(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selManagedObjectIDForURIRepresentation_Handle, url.Handle)); } return (NSManagedObjectID)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selManagedObjectIDForURIRepresentation_Handle, url.Handle)); } [Export("lock")] public virtual void Lock() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLockHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLockHandle); } } [Export("unlock")] public virtual void Unlock() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUnlockHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUnlockHandle); } } [Export("metadataForPersistentStoreWithURL:error:")] [Obsolete("Deprecated in MAC OSX 10.5 and later", false)] public static NSDictionary MetadataForPersistentStoreWithUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMetadataForPersistentStoreWithURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("executeRequest:withContext:error:")] public virtual NSObject ExecuteRequestwithContexterror(NSPersistentStoreRequest request, NSManagedObjectContext context, out NSError error) { if (request == null) { throw new ArgumentNullException("request"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selExecuteRequestWithContextError_Handle, request.Handle, context.Handle, intPtr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selExecuteRequestWithContextError_Handle, request.Handle, context.Handle, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ManagedObjectModel_var = null; __mt_PersistentStores_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPersistentStoreRequest.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSPersistentStoreRequest", true)] public class NSPersistentStoreRequest : NSObject { private static readonly IntPtr selRequestTypeHandle = Selector.GetHandle("requestType"); private static readonly IntPtr selAffectedStoresHandle = Selector.GetHandle("affectedStores"); private static readonly IntPtr selSetAffectedStores_Handle = Selector.GetHandle("setAffectedStores:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPersistentStoreRequest"); private object __mt_AffectedStores_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPersistentStoreRequestType RequestType { [Export("requestType")] get { if (IsDirectBinding) { return (NSPersistentStoreRequestType)Messaging.UInt64_objc_msgSend(base.Handle, selRequestTypeHandle); } return (NSPersistentStoreRequestType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selRequestTypeHandle); } } public virtual NSPersistentStore[] AffectedStores { [Export("affectedStores")] get { return (NSPersistentStore[])(__mt_AffectedStores_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAffectedStoresHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAffectedStoresHandle)))); } [Export("setAffectedStores:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAffectedStores_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAffectedStores_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_AffectedStores_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPersistentStoreRequest() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPersistentStoreRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStoreRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPersistentStoreRequest(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AffectedStores_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPersistentStoreRequestType.cs ================================================ namespace CoreData; public enum NSPersistentStoreRequestType : ulong { Fetch = 1uL, Save = 2uL, BatchUpdate = 6uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPropertyDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSPropertyDescription", true)] public class NSPropertyDescription : NSObject { private static readonly IntPtr selEntityHandle = Selector.GetHandle("entity"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selIsOptionalHandle = Selector.GetHandle("isOptional"); private static readonly IntPtr selSetOptional_Handle = Selector.GetHandle("setOptional:"); private static readonly IntPtr selIsTransientHandle = Selector.GetHandle("isTransient"); private static readonly IntPtr selSetTransient_Handle = Selector.GetHandle("setTransient:"); private static readonly IntPtr selValidationPredicatesHandle = Selector.GetHandle("validationPredicates"); private static readonly IntPtr selValidationWarningsHandle = Selector.GetHandle("validationWarnings"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr selIsIndexedHandle = Selector.GetHandle("isIndexed"); private static readonly IntPtr selSetIndexed_Handle = Selector.GetHandle("setIndexed:"); private static readonly IntPtr selVersionHashHandle = Selector.GetHandle("versionHash"); private static readonly IntPtr selVersionHashModifierHandle = Selector.GetHandle("versionHashModifier"); private static readonly IntPtr selSetVersionHashModifier_Handle = Selector.GetHandle("setVersionHashModifier:"); private static readonly IntPtr selIsIndexedBySpotlightHandle = Selector.GetHandle("isIndexedBySpotlight"); private static readonly IntPtr selSetIndexedBySpotlight_Handle = Selector.GetHandle("setIndexedBySpotlight:"); private static readonly IntPtr selIsStoredInExternalRecordHandle = Selector.GetHandle("isStoredInExternalRecord"); private static readonly IntPtr selSetStoredInExternalRecord_Handle = Selector.GetHandle("setStoredInExternalRecord:"); private static readonly IntPtr selSetValidationPredicatesWithValidationWarnings_Handle = Selector.GetHandle("setValidationPredicates:withValidationWarnings:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPropertyDescription"); private object __mt_Entity_var; private object __mt_ValidationPredicates_var; private object __mt_UserInfo_var; private object __mt_VersionHash_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEntityDescription Entity { [Export("entity")] get { return (NSEntityDescription)(__mt_Entity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntityHandle))))); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Optional { [Export("isOptional")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOptionalHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOptionalHandle); } [Export("setOptional:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOptional_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOptional_Handle, value); } } } public virtual bool Transient { [Export("isTransient")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTransientHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTransientHandle); } [Export("setTransient:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTransient_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTransient_Handle, value); } } } public virtual NSPredicate[] ValidationPredicates { [Export("validationPredicates")] get { return (NSPredicate[])(__mt_ValidationPredicates_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValidationPredicatesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValidationPredicatesHandle)))); } } public virtual string[] ValidationWarnings { [Export("validationWarnings")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValidationWarningsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValidationWarningsHandle)); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } public virtual bool Indexed { [Export("isIndexed")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsIndexedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsIndexedHandle); } [Export("setIndexed:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndexed_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndexed_Handle, value); } } } public virtual NSData VersionHash { [Export("versionHash")] get { return (NSData)(__mt_VersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashHandle))))); } } public virtual string VersionHashModifier { [Export("versionHashModifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashModifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashModifierHandle)); } [Export("setVersionHashModifier:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVersionHashModifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVersionHashModifier_Handle, arg); } NSString.ReleaseNative(arg); } } [Since(5, 0)] public virtual bool IndexedBySpotlight { [Export("isIndexedBySpotlight")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsIndexedBySpotlightHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsIndexedBySpotlightHandle); } [Export("setIndexedBySpotlight:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndexedBySpotlight_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndexedBySpotlight_Handle, value); } } } [Since(5, 0)] public virtual bool StoredInExternalRecord { [Export("isStoredInExternalRecord")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsStoredInExternalRecordHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsStoredInExternalRecordHandle); } [Export("setStoredInExternalRecord:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetStoredInExternalRecord_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetStoredInExternalRecord_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPropertyDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPropertyDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyDescription(IntPtr handle) : base(handle) { } [Export("setValidationPredicates:withValidationWarnings:")] public virtual void SetValidationPredicates(NSPredicate[] validationPredicates, string[] validationWarnings) { if (validationPredicates == null) { throw new ArgumentNullException("validationPredicates"); } if (validationWarnings == null) { throw new ArgumentNullException("validationWarnings"); } NSArray nSArray = NSArray.FromNSObjects(validationPredicates); NSArray nSArray2 = NSArray.FromStrings(validationWarnings); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValidationPredicatesWithValidationWarnings_Handle, nSArray.Handle, nSArray2.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValidationPredicatesWithValidationWarnings_Handle, nSArray.Handle, nSArray2.Handle); } nSArray.Dispose(); nSArray2.Dispose(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Entity_var = null; __mt_ValidationPredicates_var = null; __mt_UserInfo_var = null; __mt_VersionHash_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSPropertyMapping.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSPropertyMapping", true)] public class NSPropertyMapping : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selValueExpressionHandle = Selector.GetHandle("valueExpression"); private static readonly IntPtr selSetValueExpression_Handle = Selector.GetHandle("setValueExpression:"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPropertyMapping"); private object __mt_ValueExpression_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSExpression ValueExpression { [Export("valueExpression")] get { return (NSExpression)(__mt_ValueExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueExpressionHandle))))); } [Export("setValueExpression:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValueExpression_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValueExpression_Handle, value.Handle); } __mt_ValueExpression_var = value; } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPropertyMapping() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPropertyMapping(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyMapping(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyMapping(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ValueExpression_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSRelationshipDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSRelationshipDescription", true)] public class NSRelationshipDescription : NSPropertyDescription { private static readonly IntPtr selDestinationEntityHandle = Selector.GetHandle("destinationEntity"); private static readonly IntPtr selSetDestinationEntity_Handle = Selector.GetHandle("setDestinationEntity:"); private static readonly IntPtr selInverseRelationshipHandle = Selector.GetHandle("inverseRelationship"); private static readonly IntPtr selSetInverseRelationship_Handle = Selector.GetHandle("setInverseRelationship:"); private static readonly IntPtr selMaxCountHandle = Selector.GetHandle("maxCount"); private static readonly IntPtr selSetMaxCount_Handle = Selector.GetHandle("setMaxCount:"); private static readonly IntPtr selMinCountHandle = Selector.GetHandle("minCount"); private static readonly IntPtr selSetMinCount_Handle = Selector.GetHandle("setMinCount:"); private static readonly IntPtr selDeleteRuleHandle = Selector.GetHandle("deleteRule"); private static readonly IntPtr selSetDeleteRule_Handle = Selector.GetHandle("setDeleteRule:"); private static readonly IntPtr selIsToManyHandle = Selector.GetHandle("isToMany"); private static readonly IntPtr selVersionHashHandle = Selector.GetHandle("versionHash"); private static readonly IntPtr selIsOrderedHandle = Selector.GetHandle("isOrdered"); private static readonly IntPtr selSetOrdered_Handle = Selector.GetHandle("setOrdered:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRelationshipDescription"); private object __mt_DestinationEntity_var; private object __mt_InverseRelationship_var; private object __mt_VersionHash_var; public override IntPtr ClassHandle => class_ptr; public virtual NSEntityDescription DestinationEntity { [Export("destinationEntity")] get { return (NSEntityDescription)(__mt_DestinationEntity_var = ((!IsDirectBinding) ? ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationEntityHandle))) : ((NSEntityDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationEntityHandle))))); } [Export("setDestinationEntity:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestinationEntity_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestinationEntity_Handle, value.Handle); } __mt_DestinationEntity_var = value; } } public virtual NSRelationshipDescription InverseRelationship { [Export("inverseRelationship")] get { return (NSRelationshipDescription)(__mt_InverseRelationship_var = ((!IsDirectBinding) ? ((NSRelationshipDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInverseRelationshipHandle))) : ((NSRelationshipDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInverseRelationshipHandle))))); } [Export("setInverseRelationship:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInverseRelationship_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInverseRelationship_Handle, value.Handle); } __mt_InverseRelationship_var = value; } } public virtual uint MaxCount { [Export("maxCount")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selMaxCountHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMaxCountHandle); } [Export("setMaxCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetMaxCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetMaxCount_Handle, value); } } } public virtual uint MinCount { [Export("minCount")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selMinCountHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMinCountHandle); } [Export("setMinCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetMinCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetMinCount_Handle, value); } } } public virtual NSDeleteRule DeleteRule { [Export("deleteRule")] get { if (IsDirectBinding) { return (NSDeleteRule)Messaging.UInt64_objc_msgSend(base.Handle, selDeleteRuleHandle); } return (NSDeleteRule)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDeleteRuleHandle); } [Export("setDeleteRule:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDeleteRule_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDeleteRule_Handle, (ulong)value); } } } public virtual bool IsToMany { [Export("isToMany")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsToManyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsToManyHandle); } } public new virtual NSData VersionHash { [Export("versionHash")] get { return (NSData)(__mt_VersionHash_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVersionHashHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVersionHashHandle))))); } } [Since(5, 0)] public virtual bool Ordered { [Export("isOrdered")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOrderedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOrderedHandle); } [Export("setOrdered:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetOrdered_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetOrdered_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSRelationshipDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRelationshipDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRelationshipDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRelationshipDescription(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DestinationEntity_var = null; __mt_InverseRelationship_var = null; __mt_VersionHash_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreData/NSSaveChangesRequest.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreData; [Register("NSSaveChangesRequest", true)] public class NSSaveChangesRequest : NSPersistentStoreRequest { private static readonly IntPtr selInsertedObjectsHandle = Selector.GetHandle("insertedObjects"); private static readonly IntPtr selUpdatedObjectsHandle = Selector.GetHandle("updatedObjects"); private static readonly IntPtr selDeletedObjectsHandle = Selector.GetHandle("deletedObjects"); private static readonly IntPtr selLockedObjectsHandle = Selector.GetHandle("lockedObjects"); private static readonly IntPtr selInitWithInsertedObjectsUpdatedObjectsDeletedObjectsLockedObjects_Handle = Selector.GetHandle("initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSaveChangesRequest"); private object __mt_InsertedObjects_var; private object __mt_UpdatedObjects_var; private object __mt_DeletedObjects_var; private object __mt_LockedObjects_var; public override IntPtr ClassHandle => class_ptr; public virtual NSSet InsertedObjects { [Export("insertedObjects")] get { return (NSSet)(__mt_InsertedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInsertedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInsertedObjectsHandle))))); } } public virtual NSSet UpdatedObjects { [Export("updatedObjects")] get { return (NSSet)(__mt_UpdatedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUpdatedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUpdatedObjectsHandle))))); } } public virtual NSSet DeletedObjects { [Export("deletedObjects")] get { return (NSSet)(__mt_DeletedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeletedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeletedObjectsHandle))))); } } public virtual NSSet LockedObjects { [Export("lockedObjects")] get { return (NSSet)(__mt_LockedObjects_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLockedObjectsHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLockedObjectsHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSaveChangesRequest() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSaveChangesRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSaveChangesRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSaveChangesRequest(IntPtr handle) : base(handle) { } [Export("initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:")] public NSSaveChangesRequest(NSSet insertedObjects, NSSet updatedObjects, NSSet deletedObjects, NSSet lockedObjects) : base(NSObjectFlag.Empty) { if (insertedObjects == null) { throw new ArgumentNullException("insertedObjects"); } if (updatedObjects == null) { throw new ArgumentNullException("updatedObjects"); } if (deletedObjects == null) { throw new ArgumentNullException("deletedObjects"); } if (lockedObjects == null) { throw new ArgumentNullException("lockedObjects"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithInsertedObjectsUpdatedObjectsDeletedObjectsLockedObjects_Handle, insertedObjects.Handle, updatedObjects.Handle, deletedObjects.Handle, lockedObjects.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithInsertedObjectsUpdatedObjectsDeletedObjectsLockedObjects_Handle, insertedObjects.Handle, updatedObjects.Handle, deletedObjects.Handle, lockedObjects.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InsertedObjects_var = null; __mt_UpdatedObjects_var = null; __mt_DeletedObjects_var = null; __mt_LockedObjects_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFAllocator.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreFoundation; public class CFAllocator : INativeObject, IDisposable { private static CFAllocator Default_cf; private static CFAllocator SystemDefault_cf; private static CFAllocator Malloc_cf; private static CFAllocator MallocZone_cf; private static CFAllocator Null_cf; private static readonly IntPtr default_ptr; private static readonly IntPtr system_default_ptr; private static readonly IntPtr malloc_ptr; private static readonly IntPtr malloc_zone_ptr; internal static readonly IntPtr null_ptr; private IntPtr handle; public IntPtr Handle => handle; public static CFAllocator Default => Default_cf ?? (Default_cf = new CFAllocator(default_ptr)); public static CFAllocator SystemDefault => SystemDefault_cf ?? (SystemDefault_cf = new CFAllocator(system_default_ptr)); public static CFAllocator Malloc => Malloc_cf ?? (Malloc_cf = new CFAllocator(malloc_ptr)); public static CFAllocator MallocZone => MallocZone_cf ?? (MallocZone_cf = new CFAllocator(malloc_zone_ptr)); public static CFAllocator Null => Null_cf ?? (Null_cf = new CFAllocator(null_ptr)); static CFAllocator() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); try { default_ptr = Dlfcn.GetIntPtr(intPtr, "kCFAllocatorDefault"); system_default_ptr = Dlfcn.GetIntPtr(intPtr, "kCFAllocatorSystemDefault"); malloc_ptr = Dlfcn.GetIntPtr(intPtr, "kCFAllocatorMalloc"); malloc_zone_ptr = Dlfcn.GetIntPtr(intPtr, "kCFAllocatorMallocZone"); null_ptr = Dlfcn.GetIntPtr(intPtr, "kCFAllocatorNull"); } finally { Dlfcn.dlclose(intPtr); } } public CFAllocator(IntPtr handle) { this.handle = handle; } public CFAllocator(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CFAllocator() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFAllocatorAllocate(IntPtr allocator, long size, CFAllocatorFlags hint); public IntPtr Allocate(long size, CFAllocatorFlags hint = (CFAllocatorFlags)0uL) { return CFAllocatorAllocate(handle, size, hint); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFAllocatorDeallocate(IntPtr allocator, IntPtr ptr); public void Deallocate(IntPtr ptr) { CFAllocatorDeallocate(handle, ptr); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFAllocatorFlags.cs ================================================ using System; namespace CoreFoundation; [Flags] public enum CFAllocatorFlags : ulong { GCScannedMemory = 0x200uL, GCObjectMemory = 0x400uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFArray.cs ================================================ using Foundation; using ObjCRuntime; using System.Runtime.InteropServices; using Xamarin.Utiles; namespace CoreFoundation; internal class CFArray : NativeObject { [Preserve(Conditional = true)] internal CFArray(IntPtr handle) : base(handle, false) { } [Preserve(Conditional = true)] internal CFArray(NativeHandle handle, bool owns) : base(handle, owns) { } ~CFArray() { Dispose(disposing: false); } internal static IntPtr CFNullHandle = _CFNullHandle; private static IntPtr kCFTypeArrayCallbacks_ptr_value; private static IntPtr kCFTypeArrayCallbacks_ptr { get { if (kCFTypeArrayCallbacks_ptr_value == IntPtr.Zero) { kCFTypeArrayCallbacks_ptr_value = Dlfcn.GetIndirect(Libraries.CoreFoundation.Handle, "kCFTypeArrayCallBacks"); } return kCFTypeArrayCallbacks_ptr_value; } } public IntPtr CountPtr => GetCountPtr(GetCheckedHandle()); public int Count => GetCount(GetCheckedHandle()); [Field("kCFNull", "CoreFoundation")] internal static IntPtr _CFNullHandle => Dlfcn.GetIntPtr(Libraries.CoreFoundation.Handle, "kCFNull"); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFArrayGetTypeID")] internal static extern IntPtr GetTypeID(); internal static CFArray FromIntPtrs(params IntPtr[] values) { return new CFArray(Create(values)); } internal static CFArray FromNativeObjects(params INativeObject[] values) { return new CFArray(Create(values)); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFArrayCreate(IntPtr allocator, IntPtr values, IntPtr numValues, IntPtr callBacks); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] internal static extern IntPtr CFArrayGetValueAtIndex(IntPtr theArray, IntPtr idx); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] internal static extern IntPtr CFArrayGetValueAtIndex(IntPtr theArray, int idx); public IntPtr GetValue(IntPtr index) { return CFArrayGetValueAtIndex(GetCheckedHandle(), index); } public IntPtr GetValue(int index) { return CFArrayGetValueAtIndex(GetCheckedHandle(), index); } internal unsafe static IntPtr Create(params IntPtr[] values) { if (values == null) { ThrowHelper.ThrowArgumentNullException("values"); } fixed (IntPtr* values2 = values) { return CFArrayCreate(IntPtr.Zero, (nint)values2, (IntPtr)values.Length, kCFTypeArrayCallbacks_ptr); } } public unsafe static IntPtr Create(params INativeObject[] values) { if (values == null) { ThrowHelper.ThrowArgumentNullException("values"); } int num = values.Length; Span span = ((num > 256) ? ((Span)new IntPtr[num]) : stackalloc IntPtr[num]); Span span2 = span; for (int i = 0; i < num; i++) { span2[i] = values[i].Handle; } fixed (IntPtr* values2 = span2) { return CFArrayCreate(IntPtr.Zero, (nint)values2, (IntPtr)num, kCFTypeArrayCallbacks_ptr); } } public unsafe static IntPtr Create(params string[] values) { if (values == null) { ThrowHelper.ThrowArgumentNullException("values"); } int num = values.Length; Span span = ((num > 256) ? ((Span)new IntPtr[num]) : stackalloc IntPtr[num]); Span span2 = span; for (int i = 0; i < num; i++) { span2[i] = ((values[i] == null) ? CFNullHandle : CFString.CreateNative(values[i])); } fixed (IntPtr* values2 = span2) { return CFArrayCreate(IntPtr.Zero, (nint)values2, (IntPtr)num, kCFTypeArrayCallbacks_ptr); } } public static CFArray FromStrings(params string[] items) { return new CFArray(Create(items)); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFArrayGetCount")] internal static extern IntPtr GetCountPtr(IntPtr theArray); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFArrayGetCount")] internal static extern int GetCount(IntPtr theArray); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFArrayCreateCopy(IntPtr allocator, IntPtr theArray); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] internal static extern void CFArrayGetValues(IntPtr theArray, CFRange range, IntPtr values); internal CFArray Clone() { return new CFArray(CFArrayCreateCopy(IntPtr.Zero, GetCheckedHandle())); } public static string?[]? StringArrayFromHandle(IntPtr handle) { return ArrayFromHandleFunc(handle, CFString.FromHandle); } public static string?[]? StringArrayFromHandle(IntPtr handle, bool releaseHandle) { string?[]? result = StringArrayFromHandle(handle); if (releaseHandle && handle != IntPtr.Zero) { CFObject.CFRelease(handle); } return result; } public static T?[]? ArrayFromHandle(IntPtr handle) where T : class, INativeObject { return ArrayFromHandleFunc(handle, DefaultConvert); } public static T?[]? ArrayFromHandle(IntPtr handle, bool releaseHandle) where T : class, INativeObject { T?[]? result = ArrayFromHandle(handle); if (releaseHandle && handle != IntPtr.Zero) { CFObject.CFRelease(handle); } return result; } private static T DefaultConvert(IntPtr handle) where T : class, INativeObject { if (handle != CFNullHandle) { return Runtime.GetNativeObject(handle); } return null; } public unsafe static T[]? ArrayFromHandleFunc(IntPtr handle, Func createObject) { if (handle == IntPtr.Zero) { return null; } int num = (int)(nint)GetCount(handle); if (num == 0) { return Array.Empty(); } Span span = ((num > 256) ? ((Span)new IntPtr[num]) : stackalloc IntPtr[num]); Span span2 = span; fixed (IntPtr* ptr = span2) { void* values = ptr; CFArrayGetValues(handle, new CFRange(0, num), (nint)values); } T[] array = new T[num]; for (int i = 0; i < num; i++) { array[i] = createObject(span2[i]); } return array; } public static T[]? ArrayFromHandleFunc(IntPtr handle, Func createObject, bool releaseHandle) { T[]? result = ArrayFromHandleFunc(handle, createObject); if (releaseHandle && handle != IntPtr.Zero) { CFObject.CFRelease(handle); } return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFBoolean.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; [Since(3, 2)] internal class CFBoolean : INativeObject, IDisposable { private IntPtr handle; public static readonly CFBoolean True; public static readonly CFBoolean False; public IntPtr Handle => handle; public bool Value => CFBooleanGetValue(handle); static CFBoolean() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); if (intPtr == IntPtr.Zero) { return; } try { True = new CFBoolean(Dlfcn.GetIntPtr(intPtr, "kCFBooleanTrue"), owns: false); False = new CFBoolean(Dlfcn.GetIntPtr(intPtr, "kCFBooleanFalse"), owns: false); } finally { Dlfcn.dlclose(intPtr); } } [Preserve(Conditional = true)] internal CFBoolean(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CFBoolean() { Dispose(disposing: false); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFBooleanGetTypeID")] public static extern int GetTypeID(); public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } public static implicit operator bool(CFBoolean value) { return value.Value; } public static explicit operator CFBoolean(bool value) { return FromBoolean(value); } public static CFBoolean FromBoolean(bool value) { if (!value) { return False; } return True; } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern bool CFBooleanGetValue(IntPtr boolean); public static bool GetValue(IntPtr boolean) { return CFBooleanGetValue(boolean); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFData.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreFoundation; internal class CFData : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int Length => CFDataGetLength(handle); public IntPtr Bytes => CFDataGetBytePtr(handle); public CFData(IntPtr handle) : this(handle, owns: false) { } public CFData(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CFData() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFDataGetTypeID")] public static extern int GetTypeID(); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } public static CFData FromDataNoCopy(IntPtr buffer, int length) { return new CFData(CFDataCreateWithBytesNoCopy(IntPtr.Zero, buffer, length, CFAllocator.null_ptr), owns: true); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDataCreateWithBytesNoCopy(IntPtr allocator, IntPtr bytes, int len, IntPtr deallocator); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFIndex CFDataGetLength(IntPtr data); public byte[] GetBuffer() { byte[] array = new byte[Length]; Marshal.Copy(CFDataGetBytePtr(handle), array, 0, array.Length); return array; } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDataGetBytePtr(IntPtr data); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDataCreate(IntPtr allocator, IntPtr bytes, CFIndex len); public static CFData FromData(IntPtr buffer, int length) { return new CFData(CFDataCreate(IntPtr.Zero, buffer, length), owns: true); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDataCreateCopy(IntPtr allocator, IntPtr data); public CFData Copy() { return new CFData(CFDataCreateCopy(IntPtr.Zero, Handle), owns: true); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFDataBuffer.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreFoundation; internal class CFDataBuffer : IDisposable { private byte[] buffer; private CFData data; private bool owns; public IntPtr Handle => data.Handle; public byte[] Data => buffer; public byte this[int idx] => buffer[idx]; public CFDataBuffer(byte[] buffer) { this.buffer = buffer; GCHandle gCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned); data = CFData.FromData(gCHandle.AddrOfPinnedObject(), buffer.Length); gCHandle.Free(); owns = true; } public CFDataBuffer(IntPtr ptr) { data = new CFData(ptr, owns: false); buffer = data.GetBuffer(); owns = false; } ~CFDataBuffer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (data != null) { data.Dispose(); data = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFDictionary.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreFoundation; [Since(3, 2)] internal class CFDictionary : INativeObject, IDisposable { public static IntPtr KeyCallbacks; public static IntPtr ValueCallbacks; public IntPtr Handle { get; private set; } public int Count => CFDictionaryGetCount(Handle); public CFDictionary(IntPtr handle) : this(handle, owns: false) { } public CFDictionary(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } Handle = handle; } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFDictionaryGetTypeID")] public static extern int GetTypeID(); ~CFDictionary() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { CFObject.CFRelease(Handle); Handle = IntPtr.Zero; } } static CFDictionary() { IntPtr handle = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); try { KeyCallbacks = Dlfcn.GetIndirect(handle, "kCFTypeDictionaryKeyCallBacks"); ValueCallbacks = Dlfcn.GetIndirect(handle, "kCFTypeDictionaryValueCallBacks"); } finally { Dlfcn.dlclose(handle); } } public static CFDictionary FromObjectAndKey(INativeObject obj, INativeObject key) { return new CFDictionary(CFDictionaryCreate(IntPtr.Zero, new IntPtr[1] { key.Handle }, new IntPtr[1] { obj.Handle }, 1, KeyCallbacks, ValueCallbacks), owns: true); } public static CFDictionary FromObjectsAndKeys(INativeObject[] objects, INativeObject[] keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("The length of both arrays must be the same"); } IntPtr[] array = new IntPtr[keys.Length]; IntPtr[] array2 = new IntPtr[keys.Length]; for (int i = 0; i < array.Length; i++) { array[i] = keys[i].Handle; array2[i] = objects[i].Handle; } return new CFDictionary(CFDictionaryCreate(IntPtr.Zero, array, array2, array.Length, KeyCallbacks, ValueCallbacks), owns: true); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDictionaryCreate(IntPtr allocator, IntPtr[] keys, IntPtr[] vals, int len, IntPtr keyCallbacks, IntPtr valCallbacks); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFDictionaryGetValue(IntPtr theDict, IntPtr key); public static IntPtr GetValue(IntPtr theDict, IntPtr key) { return CFDictionaryGetValue(theDict, key); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern int CFDictionaryGetCount(IntPtr theDict); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFDictionaryGetKeysAndValues(IntPtr theDict, IntPtr[] keys, IntPtr[] values); public void GetKeysAndValues(out IntPtr[] keys, out IntPtr[] values) { int count = Count; keys = new IntPtr[count]; values = new IntPtr[count]; CFDictionaryGetKeysAndValues(Handle, keys, values); } public static bool GetBooleanValue(IntPtr theDict, IntPtr key) { IntPtr value = GetValue(theDict, key); if (value == IntPtr.Zero) { return false; } return CFBoolean.GetValue(value); } public string GetStringValue(string key) { using CFString cFString = new CFString(key); return CFString.FetchString(CFDictionaryGetValue(Handle, cFString.handle)); } public int GetInt32Value(string key) { int value = 0; using CFString cFString = new CFString(key); if (!CFNumberGetValue(CFDictionaryGetValue(Handle, cFString.Handle), 3, out value)) { throw new KeyNotFoundException($"Key {key} not found"); } return value; } public long GetInt64Value(string key) { long value = 0L; using CFString cFString = new CFString(key); if (!CFNumberGetValue(CFDictionaryGetValue(Handle, cFString.Handle), 4, out value)) { throw new KeyNotFoundException($"Key {key} not found"); } return value; } public IntPtr GetIntPtrValue(string key) { using CFString cFString = new CFString(key); return CFDictionaryGetValue(Handle, cFString.handle); } public CFDictionary GetDictionaryValue(string key) { using CFString cFString = new CFString(key); IntPtr intPtr = CFDictionaryGetValue(Handle, cFString.handle); return (intPtr == IntPtr.Zero) ? null : new CFDictionary(intPtr); } public bool ContainsKey(string key) { using CFString cFString = new CFString(key); return CFDictionaryContainsKey(Handle, cFString.handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFNumberGetValue(IntPtr number, int theType, out int value); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFNumberGetValue(IntPtr number, int theType, out long value); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFDictionaryContainsKey(IntPtr theDict, IntPtr key); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFErrorDomain.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreFoundation; public static class CFErrorDomain { public static readonly NSString Cocoa; public static readonly NSString Mach; public static readonly NSString OSStatus; public static readonly NSString Posix; static CFErrorDomain() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); if (intPtr == IntPtr.Zero) { return; } try { Cocoa = Dlfcn.GetStringConstant(intPtr, "kCFErrorDomainCocoa"); Mach = Dlfcn.GetStringConstant(intPtr, "kCFErrorDomainMach"); OSStatus = Dlfcn.GetStringConstant(intPtr, "kCFErrorDomainOSStatus"); Posix = Dlfcn.GetStringConstant(intPtr, "kCFErrorDomainPosix"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFException.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class CFException : Exception { public int Code { get; private set; } public NSString Domain { get; private set; } public string FailureReason { get; private set; } public string RecoverySuggestion { get; private set; } public CFException(string description, NSString domain, int code, string failureReason, string recoverySuggestion) : base(description) { Code = code; Domain = domain; FailureReason = failureReason; RecoverySuggestion = recoverySuggestion; } public static CFException FromCFError(IntPtr cfErrorHandle) { return FromCFError(cfErrorHandle, release: true); } public static CFException FromCFError(IntPtr cfErrorHandle, bool release) { if (cfErrorHandle == IntPtr.Zero) { throw new ArgumentException("cfErrorHandle must not be null.", "cfErrorHandle"); } CFException ex = new CFException(ToString(CFErrorCopyDescription(cfErrorHandle)), (NSString)Runtime.GetNSObject(CFErrorGetDomain(cfErrorHandle)), CFErrorGetCode(cfErrorHandle), ToString(CFErrorCopyFailureReason(cfErrorHandle)), ToString(CFErrorCopyRecoverySuggestion(cfErrorHandle))); IntPtr intPtr = CFErrorCopyUserInfo(cfErrorHandle); if (intPtr != IntPtr.Zero) { using NSDictionary nSDictionary = new NSDictionary(intPtr); foreach (KeyValuePair item in nSDictionary) { ex.Data.Add(item.Key, item.Value); } } if (release) { CFObject.CFRelease(cfErrorHandle); } return ex; } private static string ToString(IntPtr cfStringRef) { return ToString(cfStringRef, release: true); } private static string ToString(IntPtr cfStringRef, bool release) { string result = CFString.FetchString(cfStringRef); if (release && cfStringRef != IntPtr.Zero) { CFObject.CFRelease(cfStringRef); } return result; } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFErrorCopyDescription(IntPtr err); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFErrorCopyFailureReason(IntPtr err); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFErrorCopyRecoverySuggestion(IntPtr err); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFErrorCopyUserInfo(IntPtr err); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern int CFErrorGetCode(IntPtr err); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFErrorGetDomain(IntPtr err); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFExceptionDataKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreFoundation; public static class CFExceptionDataKey { public static readonly NSString Description; public static readonly NSString LocalizedDescription; public static readonly NSString LocalizedFailureReason; public static readonly NSString LocalizedRecoverySuggestion; public static readonly NSString UnderlyingError; static CFExceptionDataKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); if (intPtr == IntPtr.Zero) { return; } try { Description = Dlfcn.GetStringConstant(intPtr, "kCFErrorDescriptionKey"); LocalizedDescription = Dlfcn.GetStringConstant(intPtr, "kCFErrorLocalizedDescriptionKey"); LocalizedFailureReason = Dlfcn.GetStringConstant(intPtr, "kCFErrorLocalizedFailureReasonKey"); LocalizedRecoverySuggestion = Dlfcn.GetStringConstant(intPtr, "kCFErrorLocalizedRecoverySuggestionKey"); UnderlyingError = Dlfcn.GetStringConstant(intPtr, "kCFErrorUnderlyingErrorKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFIndex.cs ================================================ using System; namespace CoreFoundation; public struct CFIndex { private IntPtr value; private CFIndex(IntPtr value) { this.value = value; } public static implicit operator int(CFIndex index) { return index.value.ToInt32(); } public static implicit operator CFIndex(int value) { return new CFIndex(new IntPtr(value)); } public static implicit operator long(CFIndex index) { return index.value.ToInt64(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFMutableDictionary.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreFoundation; internal static class CFMutableDictionary { [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFDictionarySetValue(IntPtr theDict, IntPtr key, IntPtr value); public static void SetValue(IntPtr theDict, IntPtr key, IntPtr value) { CFDictionarySetValue(theDict, key, value); } public static void SetValue(IntPtr theDict, IntPtr key, bool value) { SetValue(theDict, key, value ? CFBoolean.True.Handle : CFBoolean.False.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFObject.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreFoundation; public static class CFObject { [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] internal static extern void CFRelease(IntPtr obj); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] internal static extern IntPtr CFRetain(IntPtr obj); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRange.cs ================================================ using System; namespace CoreFoundation; public struct CFRange { private IntPtr loc; private IntPtr len; public int Location => loc.ToInt32(); public int Length => len.ToInt32(); public long LongLocation => loc.ToInt64(); public long LongLength => len.ToInt64(); public CFRange(int loc, int len) : this((long)loc, (long)len) { } public CFRange(long l, long len) { loc = new IntPtr(l); this.len = new IntPtr(len); } public override string ToString() { return $"CFRange [Location: {loc} Length: {len}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFReadStream.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class CFReadStream : CFStream { public CFReadStream(IntPtr handle) : base(handle) { } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFReadStreamCopyError(IntPtr handle); public override CFException GetError() { IntPtr intPtr = CFReadStreamCopyError(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return CFException.FromCFError(intPtr); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFReadStreamOpen(IntPtr handle); protected override bool DoOpen() { return CFReadStreamOpen(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFReadStreamClose(IntPtr handle); protected override void DoClose() { CFReadStreamClose(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFStreamStatus CFReadStreamGetStatus(IntPtr handle); protected override CFStreamStatus DoGetStatus() { return CFReadStreamGetStatus(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFReadStreamHasBytesAvailable(IntPtr handle); public bool HasBytesAvailable() { return CFReadStreamHasBytesAvailable(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFReadStreamScheduleWithRunLoop(IntPtr handle, IntPtr loop, IntPtr mode); protected override void ScheduleWithRunLoop(CFRunLoop loop, NSString mode) { CFReadStreamScheduleWithRunLoop(base.Handle, loop.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFReadStreamUnscheduleFromRunLoop(IntPtr handle, IntPtr loop, IntPtr mode); protected override void UnscheduleFromRunLoop(CFRunLoop loop, NSString mode) { CFReadStreamUnscheduleFromRunLoop(base.Handle, loop.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFReadStreamSetClient(IntPtr stream, CFIndex eventTypes, CFStreamCallback cb, IntPtr context); protected override bool DoSetClient(CFStreamCallback callback, CFIndex eventTypes, IntPtr context) { return CFReadStreamSetClient(base.Handle, eventTypes, callback, context); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFIndex CFReadStreamRead(IntPtr handle, IntPtr buffer, CFIndex count); public int Read(byte[] buffer) { return Read(buffer, 0, buffer.Length); } public int Read(byte[] buffer, int offset, int count) { CheckHandle(); if (offset < 0) { throw new ArgumentException(); } if (count < 1) { throw new ArgumentException(); } if (offset + count > buffer.Length) { throw new ArgumentException(); } GCHandle gCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned); try { return CFReadStreamRead(buffer: new IntPtr(gCHandle.AddrOfPinnedObject().ToInt64() + offset), handle: base.Handle, count: count); } finally { gCHandle.Free(); } } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFReadStreamCopyProperty(IntPtr handle, IntPtr name); protected override IntPtr DoGetProperty(NSString name) { return CFReadStreamCopyProperty(base.Handle, name.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFReadStreamSetProperty(IntPtr handle, IntPtr name, IntPtr value); protected override bool DoSetProperty(NSString name, INativeObject value) { return CFReadStreamSetProperty(base.Handle, name.Handle, value.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRunLoop.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class CFRunLoop : INativeObject, IDisposable { private static IntPtr CoreFoundationLibraryHandle = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); internal IntPtr handle; private static NSString _CFDefaultRunLoopMode; private static NSString _CFRunLoopCommonModes; public const string ModeDefault = "kCFRunLoopDefaultMode"; public const string ModeCommon = "kCFRunLoopCommonModes"; public static NSString CFDefaultRunLoopMode { get { if (_CFDefaultRunLoopMode == null) { _CFDefaultRunLoopMode = Dlfcn.GetStringConstant(CoreFoundationLibraryHandle, "kCFRunLoopDefaultMode"); } return _CFDefaultRunLoopMode; } } public static NSString CFRunLoopCommonModes { get { if (_CFRunLoopCommonModes == null) { _CFRunLoopCommonModes = Dlfcn.GetStringConstant(CoreFoundationLibraryHandle, "kCFRunLoopCommonModes"); } return _CFRunLoopCommonModes; } } public static CFRunLoop Current => new CFRunLoop(CFRunLoopGetCurrent()); public static CFRunLoop Main => new CFRunLoop(CFRunLoopGetMain()); public bool IsWaiting => CFRunLoopIsWaiting(handle) != 0; public IntPtr Handle => handle; [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFRunLoopGetCurrent(); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFRunLoopGetMain(); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopRun(); public void Run() { CFRunLoopRun(); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopStop(IntPtr loop); public void Stop() { CFRunLoopStop(handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopWakeUp(IntPtr loop); public void WakeUp() { CFRunLoopWakeUp(handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern int CFRunLoopIsWaiting(IntPtr loop); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern int CFRunLoopRunInMode(IntPtr mode, double seconds, int returnAfterSourceHandled); public CFRunLoopExitReason RunInMode(NSString mode, double seconds, bool returnAfterSourceHandled) { if (mode == null) { throw new ArgumentNullException("mode"); } return (CFRunLoopExitReason)CFRunLoopRunInMode(mode.Handle, seconds, returnAfterSourceHandled ? 1 : 0); } [Obsolete("Use the NSString version of CFRunLoop.RunInMode() instead.")] public CFRunLoopExitReason RunInMode(string mode, double seconds, bool returnAfterSourceHandled) { if (mode == null) { throw new ArgumentNullException("mode"); } CFString cFString = new CFString(mode); int result = CFRunLoopRunInMode(cFString.Handle, seconds, returnAfterSourceHandled ? 1 : 0); cFString.Dispose(); return (CFRunLoopExitReason)result; } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopAddSource(IntPtr loop, IntPtr source, IntPtr mode); public void AddSource(CFRunLoopSource source, NSString mode) { if (mode == null) { throw new ArgumentNullException("mode"); } CFRunLoopAddSource(handle, source.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFRunLoopContainsSource(IntPtr loop, IntPtr source, IntPtr mode); public bool ContainsSource(CFRunLoopSource source, NSString mode) { if (mode == null) { throw new ArgumentNullException("mode"); } return CFRunLoopContainsSource(handle, source.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFRunLoopRemoveSource(IntPtr loop, IntPtr source, IntPtr mode); public bool RemoveSource(CFRunLoopSource source, NSString mode) { if (mode == null) { throw new ArgumentNullException("mode"); } return CFRunLoopRemoveSource(handle, source.Handle, mode.Handle); } internal CFRunLoop(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal CFRunLoop(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CFRunLoop() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } public static bool operator ==(CFRunLoop a, CFRunLoop b) { return object.Equals(a, b); } public static bool operator !=(CFRunLoop a, CFRunLoop b) { return !object.Equals(a, b); } public override int GetHashCode() { return handle.GetHashCode(); } public override bool Equals(object other) { CFRunLoop cFRunLoop = other as CFRunLoop; if (cFRunLoop == null) { return false; } return cFRunLoop.Handle == Handle; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRunLoopExitReason.cs ================================================ namespace CoreFoundation; public enum CFRunLoopExitReason { Finished = 1, Stopped, TimedOut, HandledSource } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRunLoopSource.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreFoundation; public class CFRunLoopSource : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int Order => CFRunLoopSourceGetOrder(handle); public bool IsValid => CFRunLoopSourceIsValid(handle) != 0; internal CFRunLoopSource(IntPtr handle) : this(handle, ownsHandle: false) { } internal CFRunLoopSource(IntPtr handle, bool ownsHandle) { if (!ownsHandle) { CFObject.CFRetain(handle); } this.handle = handle; } ~CFRunLoopSource() { Dispose(disposing: false); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFIndex CFRunLoopSourceGetOrder(IntPtr source); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopSourceInvalidate(IntPtr source); public void Invalidate() { CFRunLoopSourceInvalidate(handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern int CFRunLoopSourceIsValid(IntPtr source); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFRunLoopSourceSignal(IntPtr source); public void Signal() { CFRunLoopSourceSignal(handle); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRunLoopSourceContext.cs ================================================ using System; namespace CoreFoundation; internal struct CFRunLoopSourceContext { public CFIndex Version; public IntPtr Info; public IntPtr Retain; public IntPtr Release; public IntPtr CopyDescription; public IntPtr Equal; public IntPtr Hash; public IntPtr Schedule; public IntPtr Cancel; public IntPtr Perform; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFRunLoopSourceCustom.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreFoundation; public abstract class CFRunLoopSourceCustom : CFRunLoopSource { private delegate void ScheduleCallback(IntPtr info, IntPtr runLoop, IntPtr mode); private delegate void CancelCallback(IntPtr info, IntPtr runLoop, IntPtr mode); private delegate void PerformCallback(IntPtr info); private GCHandle gch; [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFRunLoopSourceCreate(IntPtr allocator, int order, IntPtr context); protected CFRunLoopSourceCustom() : base(IntPtr.Zero, ownsHandle: true) { gch = GCHandle.Alloc(this); CFRunLoopSourceContext structure = new CFRunLoopSourceContext { Info = GCHandle.ToIntPtr(gch), Schedule = Marshal.GetFunctionPointerForDelegate(Schedule), Cancel = Marshal.GetFunctionPointerForDelegate(Cancel), Perform = Marshal.GetFunctionPointerForDelegate(Perform) }; IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CFRunLoopSourceContext))); try { Marshal.StructureToPtr(structure, intPtr, fDeleteOld: false); handle = CFRunLoopSourceCreate(IntPtr.Zero, 0, intPtr); } finally { Marshal.FreeHGlobal(intPtr); } if (handle == IntPtr.Zero) { throw new NotSupportedException(); } } [MonoPInvokeCallback(typeof(ScheduleCallback))] private static void Schedule(IntPtr info, IntPtr runLoop, IntPtr mode) { CFRunLoopSourceCustom cFRunLoopSourceCustom = GCHandle.FromIntPtr(info).Target as CFRunLoopSourceCustom; CFRunLoop cFRunLoop = new CFRunLoop(runLoop); CFString cFString = new CFString(mode); try { cFRunLoopSourceCustom.OnSchedule(cFRunLoop, cFString); } finally { cFRunLoop.Dispose(); cFString.Dispose(); } } protected abstract void OnSchedule(CFRunLoop loop, string mode); [MonoPInvokeCallback(typeof(CancelCallback))] private static void Cancel(IntPtr info, IntPtr runLoop, IntPtr mode) { CFRunLoopSourceCustom cFRunLoopSourceCustom = GCHandle.FromIntPtr(info).Target as CFRunLoopSourceCustom; CFRunLoop cFRunLoop = new CFRunLoop(runLoop); CFString cFString = new CFString(mode); try { cFRunLoopSourceCustom.OnCancel(cFRunLoop, cFString); } finally { cFRunLoop.Dispose(); cFString.Dispose(); } } protected abstract void OnCancel(CFRunLoop loop, string mode); [MonoPInvokeCallback(typeof(PerformCallback))] private static void Perform(IntPtr info) { (GCHandle.FromIntPtr(info).Target as CFRunLoopSourceCustom).OnPerform(); } protected abstract void OnPerform(); public override void Dispose(bool disposing) { if (disposing && gch.IsAllocated) { gch.Free(); } base.Dispose(disposing); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFSocketCallBackType.cs ================================================ using System; namespace CoreFoundation; [Flags] public enum CFSocketCallBackType { NoCallBack = 0, ReadCallBack = 1, AcceptCallBack = 2, DataCallBack = 3, ConnectCallBack = 4, WriteCallBack = 8 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFSocketError.cs ================================================ namespace CoreFoundation; public enum CFSocketError { Success = 0, Error = -1, Timeout = -2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFSocketException.cs ================================================ using System; namespace CoreFoundation; public class CFSocketException : Exception { public CFSocketError Error { get; private set; } public CFSocketException(CFSocketError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFSocketFlags.cs ================================================ using System; namespace CoreFoundation; [Flags] public enum CFSocketFlags { AutomaticallyReenableReadCallBack = 1, AutomaticallyReenableAcceptCallBack = 2, AutomaticallyReenableDataCallBack = 3, AutomaticallyReenableWriteCallBack = 8, LeaveErrors = 0x40, CloseOnInvalidate = 0x80 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFSocketNativeHandle.cs ================================================ namespace CoreFoundation; public struct CFSocketNativeHandle { internal readonly int handle; internal CFSocketNativeHandle(int handle) { this.handle = handle; } public override string ToString() { return $"[CFSocketNativeHandle {handle}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFStream.cs ================================================ using System; using System.Runtime.InteropServices; using CoreServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public abstract class CFStream : CFType, INativeObject, IDisposable { public class StreamEventArgs : EventArgs { public CFStreamEventType EventType { get; private set; } public StreamEventArgs(CFStreamEventType type) { EventType = type; } public override string ToString() { return $"[StreamEventArgs: EventType={EventType}]"; } } protected delegate void CFStreamCallback(IntPtr s, CFStreamEventType type, IntPtr info); private IntPtr handle; private GCHandle gch; private CFRunLoop loop; private NSString loopMode; private bool open; private bool closed; public IntPtr Handle => handle; public event EventHandler OpenCompletedEvent; public event EventHandler HasBytesAvailableEvent; public event EventHandler CanAcceptBytesEvent; public event EventHandler ErrorEvent; public event EventHandler ClosedEvent; [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFStreamCreatePairWithSocket(IntPtr allocator, CFSocketNativeHandle socket, out IntPtr read, out IntPtr write); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern void CFStreamCreatePairWithSocketToHost(IntPtr allocator, IntPtr host, int port, out IntPtr read, out IntPtr write); public static void CreatePairWithSocketToHost(string host, int port, out CFReadStream readStream, out CFWriteStream writeStream) { using CFString cFString = new CFString(host); CFStreamCreatePairWithSocketToHost(IntPtr.Zero, cFString.Handle, port, out var read, out var write); readStream = new CFReadStream(read); writeStream = new CFWriteStream(write); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFReadStreamCreateForHTTPRequest(IntPtr alloc, IntPtr request); public static CFHTTPStream CreateForHTTPRequest(CFHTTPMessage request) { IntPtr intPtr = CFReadStreamCreateForHTTPRequest(IntPtr.Zero, request.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CFHTTPStream(intPtr); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFReadStreamCreateForStreamedHTTPRequest(IntPtr alloc, IntPtr request, IntPtr body); public static CFHTTPStream CreateForStreamedHTTPRequest(CFHTTPMessage request, CFReadStream body) { IntPtr intPtr = CFReadStreamCreateForStreamedHTTPRequest(IntPtr.Zero, request.Handle, body.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CFHTTPStream(intPtr); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern void CFStreamCreateBoundPair(IntPtr alloc, out IntPtr readStream, out IntPtr writeStream, CFIndex transferBufferSize); public static void CreateBoundPair(out CFReadStream readStream, out CFWriteStream writeStream, int bufferSize) { CFStreamCreateBoundPair(IntPtr.Zero, out var readStream2, out var writeStream2, bufferSize); readStream = new CFReadStream(readStream2); writeStream = new CFWriteStream(writeStream2); } public abstract CFException GetError(); protected void CheckError() { CFException error = GetError(); if (error != null) { throw error; } } public void Open() { if (open || closed) { throw new InvalidOperationException(); } CheckHandle(); if (!DoOpen()) { CheckError(); throw new InvalidOperationException(); } open = true; } protected abstract bool DoOpen(); public void Close() { if (!open) { return; } CheckHandle(); if (loop != null) { DoSetClient(null, 0, IntPtr.Zero); UnscheduleFromRunLoop(loop, loopMode); loop = null; loopMode = null; } try { DoClose(); } finally { open = false; closed = true; } } protected abstract void DoClose(); public CFStreamStatus GetStatus() { CheckHandle(); return DoGetStatus(); } protected abstract CFStreamStatus DoGetStatus(); internal IntPtr GetProperty(NSString name) { CheckHandle(); return DoGetProperty(name); } protected abstract IntPtr DoGetProperty(NSString name); protected abstract bool DoSetProperty(NSString name, INativeObject value); internal void SetProperty(NSString name, INativeObject value) { CheckHandle(); if (DoSetProperty(name, value)) { return; } throw new InvalidOperationException($"Cannot set property '{name}' on {GetType().Name}."); } protected virtual void OnOpenCompleted(StreamEventArgs args) { if (this.OpenCompletedEvent != null) { this.OpenCompletedEvent(this, args); } } protected virtual void OnHasBytesAvailableEvent(StreamEventArgs args) { if (this.HasBytesAvailableEvent != null) { this.HasBytesAvailableEvent(this, args); } } protected virtual void OnCanAcceptBytesEvent(StreamEventArgs args) { if (this.CanAcceptBytesEvent != null) { this.CanAcceptBytesEvent(this, args); } } protected virtual void OnErrorEvent(StreamEventArgs args) { if (this.ErrorEvent != null) { this.ErrorEvent(this, args); } } protected virtual void OnClosedEvent(StreamEventArgs args) { if (this.ClosedEvent != null) { this.ClosedEvent(this, args); } } protected abstract void ScheduleWithRunLoop(CFRunLoop loop, NSString mode); protected abstract void UnscheduleFromRunLoop(CFRunLoop loop, NSString mode); [MonoPInvokeCallback(typeof(CFStreamCallback))] private static void OnCallback(IntPtr s, CFStreamEventType type, IntPtr info) { (GCHandle.FromIntPtr(info).Target as CFStream).OnCallback(type); } protected virtual void OnCallback(CFStreamEventType type) { StreamEventArgs args = new StreamEventArgs(type); switch (type) { case CFStreamEventType.OpenCompleted: OnOpenCompleted(args); break; case CFStreamEventType.CanAcceptBytes: OnCanAcceptBytesEvent(args); break; case CFStreamEventType.HasBytesAvailable: OnHasBytesAvailableEvent(args); break; case CFStreamEventType.ErrorOccurred: OnErrorEvent(args); break; case CFStreamEventType.EndEncountered: OnClosedEvent(args); break; } } public void EnableEvents(CFRunLoop runLoop, NSString runLoopMode) { if (open || closed || loop != null) { throw new InvalidOperationException(); } CheckHandle(); loop = runLoop; loopMode = runLoopMode; CFStreamClientContext structure = default(CFStreamClientContext); structure.Info = GCHandle.ToIntPtr(gch); CFStreamEventType cFStreamEventType = CFStreamEventType.OpenCompleted | CFStreamEventType.HasBytesAvailable | CFStreamEventType.CanAcceptBytes | CFStreamEventType.ErrorOccurred | CFStreamEventType.EndEncountered; IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CFStreamClientContext))); try { Marshal.StructureToPtr(structure, intPtr, fDeleteOld: false); if (!DoSetClient(OnCallback, (int)cFStreamEventType, intPtr)) { throw new InvalidOperationException("Stream does not support async events."); } } finally { Marshal.FreeHGlobal(intPtr); } ScheduleWithRunLoop(runLoop, runLoopMode); } protected abstract bool DoSetClient(CFStreamCallback callback, CFIndex eventTypes, IntPtr context); protected CFStream(IntPtr handle) { this.handle = handle; gch = GCHandle.Alloc(this); } protected void CheckHandle() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(GetType().Name); } } ~CFStream() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (disposing) { Close(); if (gch.IsAllocated) { gch.Free(); } } if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFStreamClientContext.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreFoundation; public struct CFStreamClientContext { [MonoNativeFunctionWrapper] private delegate IntPtr RetainDelegate(IntPtr info); [MonoNativeFunctionWrapper] private delegate void ReleaseDelegate(IntPtr info); [MonoNativeFunctionWrapper] private delegate IntPtr CopyDescriptionDelegate(IntPtr info); [MonoNativeFunctionWrapper] private delegate void CallbackDelegate(IntPtr stream, CFStreamEventType eventType, IntPtr info); public int Version; public IntPtr Info; private IntPtr retain; private IntPtr release; private IntPtr copyDescription; public void Retain() { if (!(retain == IntPtr.Zero) && !(Info == IntPtr.Zero)) { CFReadStreamRef_InvokeRetain(retain, Info); } } public void Release() { if (!(release == IntPtr.Zero) && !(Info == IntPtr.Zero)) { CFReadStreamRef_InvokeRelease(release, Info); } } public override string ToString() { if (copyDescription == IntPtr.Zero) { return base.ToString(); } IntPtr intPtr = CFReadStreamRef_InvokeCopyDescription(copyDescription, Info); if (!(intPtr == IntPtr.Zero)) { return new NSString(intPtr).ToString(); } return base.ToString(); } internal void Invoke(IntPtr callback, IntPtr stream, CFStreamEventType eventType) { if (!(callback == IntPtr.Zero)) { CFReadStreamRef_InvokeCallback(callback, stream, eventType, Info); } } private static IntPtr CFReadStreamRef_InvokeRetain(IntPtr retain, IntPtr info) { return ((RetainDelegate)Marshal.GetDelegateForFunctionPointer(retain, typeof(RetainDelegate)))(info); } private static void CFReadStreamRef_InvokeRelease(IntPtr release, IntPtr info) { ((ReleaseDelegate)Marshal.GetDelegateForFunctionPointer(release, typeof(ReleaseDelegate)))(info); } private static IntPtr CFReadStreamRef_InvokeCopyDescription(IntPtr copyDescription, IntPtr info) { return ((CopyDescriptionDelegate)Marshal.GetDelegateForFunctionPointer(copyDescription, typeof(CopyDescriptionDelegate)))(info); } private static void CFReadStreamRef_InvokeCallback(IntPtr callback, IntPtr stream, CFStreamEventType eventType, IntPtr info) { ((CallbackDelegate)Marshal.GetDelegateForFunctionPointer(callback, typeof(CallbackDelegate)))(stream, eventType, info); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFStreamEventType.cs ================================================ using System; namespace CoreFoundation; [Flags] public enum CFStreamEventType { None = 0, OpenCompleted = 1, HasBytesAvailable = 2, CanAcceptBytes = 4, ErrorOccurred = 8, EndEncountered = 0x10 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFStreamStatus.cs ================================================ namespace CoreFoundation; public enum CFStreamStatus { NotOpen, Opening, Open, Reading, Writing, AtEnd, Closed, Error } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFString.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class CFString : INativeObject, IDisposable { internal IntPtr handle; internal string str; public IntPtr Handle => handle; public int Length { get { if (str != null) { return str.Length; } return CFStringGetLength(handle); } } public char this[int p] { get { if (str != null) { return str[p]; } return CFStringGetCharacterAtIndex(handle, p); } } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern IntPtr CFStringCreateWithCharacters(IntPtr allocator, string str, int count); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern int CFStringGetLength(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern IntPtr CFStringGetCharactersPtr(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private unsafe static extern char* CFStringGetCharactersCharPtr(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern IntPtr CFStringGetCharacters(IntPtr handle, CFRange range, IntPtr buffer); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private unsafe static extern IntPtr CFStringGetCharacters(IntPtr handle, CFRange range, char* buffer); public CFString(string str) { if (str == null) { throw new ArgumentNullException("str"); } handle = CFStringCreateWithCharacters(IntPtr.Zero, str, str.Length); this.str = str; } ~CFString() { Dispose(disposing: false); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", EntryPoint = "CFStringGetTypeID")] public static extern int GetTypeID(); public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public static IntPtr CreateNative(string? value) { if (value == null) return IntPtr.Zero; return CFStringCreateWithCharacters(IntPtr.Zero, value, value.Length); } public static void ReleaseNative(IntPtr handle) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); } } public virtual void Dispose(bool disposing) { str = null; if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } public CFString(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal CFString(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } internal unsafe static string FetchString(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } int num = CFStringGetLength(handle); IntPtr intPtr = CFStringGetCharactersPtr(handle); IntPtr intPtr2 = IntPtr.Zero; if (intPtr == IntPtr.Zero) { CFRange range = new CFRange(0, num); intPtr2 = Marshal.AllocCoTaskMem(num * 2); CFStringGetCharacters(handle, range, intPtr2); intPtr = intPtr2; } string result = new string((char*)(void*)intPtr, 0, num); if (intPtr2 != IntPtr.Zero) { Marshal.FreeCoTaskMem(intPtr2); } return result; } public unsafe static string? FromHandle(IntPtr handle) { if (handle == IntPtr.Zero) return null; int num = (int)(nint)CFStringGetLength(handle); if (num == 0) return string.Empty; bool flag = false; CFRange range = new CFRange(0, num); char* ptr = CFStringGetCharactersCharPtr(handle); if (ptr == null) { flag = num > 128; var span = stackalloc char[num]; ptr = ((!flag) ? span : ((char*)Marshal.AllocHGlobal(num * 2))); CFStringGetCharacters(handle, range, ptr); } string result = new string(ptr, 0, num); if (flag) Marshal.FreeHGlobal((nint)ptr); return result; } public static string? FromHandle(NativeHandle handle, bool releaseHandle) { string? result = FromHandle(handle); if (releaseHandle && handle != IntPtr.Zero) { CFObject.CFRelease(handle); } return result; } public static implicit operator string(CFString x) { if (x.str == null) { x.str = FetchString(x.handle); } return x.str; } public static implicit operator CFString(string s) { return new CFString(s); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern char CFStringGetCharacterAtIndex(IntPtr handle, int p); public override string ToString() { if (str != null) { return str; } return FetchString(handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFType.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreFoundation; public class CFType { [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFGetTypeID")] public static extern int GetTypeID(IntPtr typeRef); [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFCopyDescription(IntPtr ptr); public string GetDescription(IntPtr handle) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } using CFString cFString = new CFString(CFCopyDescription(handle)); return cFString.ToString(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFUrl.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreFoundation; public class CFUrl : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public string FileSystemPath => GetFileSystemPath(handle); ~CFUrl() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern IntPtr CFURLCreateWithFileSystemPath(IntPtr allocator, IntPtr cfstringref, CFUrlPathStyle pathstyle, bool isdir); internal CFUrl(IntPtr handle) { this.handle = handle; } public static CFUrl FromFile(string filename) { using CFString cFString = new CFString(filename); IntPtr intPtr = CFURLCreateWithFileSystemPath(IntPtr.Zero, cFString.Handle, CFUrlPathStyle.POSIX, isdir: false); if (intPtr == IntPtr.Zero) { return null; } return new CFUrl(intPtr); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", CharSet = CharSet.Unicode)] private static extern IntPtr CFURLCreateWithString(IntPtr allocator, IntPtr stringref, IntPtr baseUrl); public static CFUrl FromUrlString(string url, CFUrl baseurl) { using CFString cFString = new CFString(url); return FromStringHandle(cFString.Handle, baseurl); } internal static CFUrl FromStringHandle(IntPtr cfstringHandle, CFUrl baseurl) { IntPtr intPtr = CFURLCreateWithString(IntPtr.Zero, cfstringHandle, baseurl?.Handle ?? IntPtr.Zero); if (intPtr == IntPtr.Zero) { return null; } return new CFUrl(intPtr); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFURLGetString(IntPtr anURL); public override string ToString() { using CFString cFString = new CFString(CFURLGetString(handle)); return cFString.ToString(); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFURLCopyFileSystemPath(IntPtr cfUrl, int style); internal static string GetFileSystemPath(IntPtr hcfurl) { using CFString cFString = new CFString(CFURLCopyFileSystemPath(hcfurl, 0), owns: true); return cFString.ToString(); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", EntryPoint = "CFURLGetTypeID")] public static extern int GetTypeID(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFUrlPathStyle.cs ================================================ namespace CoreFoundation; public enum CFUrlPathStyle { POSIX, HFS, Windows } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/CFWriteStream.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class CFWriteStream : CFStream { internal CFWriteStream(IntPtr handle) : base(handle) { } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFWriteStreamCopyError(IntPtr handle); public override CFException GetError() { IntPtr intPtr = CFWriteStreamCopyError(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return CFException.FromCFError(intPtr); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFWriteStreamOpen(IntPtr handle); protected override bool DoOpen() { return CFWriteStreamOpen(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFWriteStreamClose(IntPtr handle); protected override void DoClose() { CFWriteStreamClose(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFStreamStatus CFWriteStreamGetStatus(IntPtr handle); protected override CFStreamStatus DoGetStatus() { return CFWriteStreamGetStatus(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFWriteStreamCanAcceptBytes(IntPtr handle); public bool CanAcceptBytes() { return CFWriteStreamCanAcceptBytes(base.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern CFIndex CFWriteStreamWrite(IntPtr handle, IntPtr buffer, CFIndex count); public int Write(byte[] buffer) { return Write(buffer, 0, buffer.Length); } public int Write(byte[] buffer, int offset, int count) { CheckHandle(); if (offset < 0) { throw new ArgumentException(); } if (count < 1) { throw new ArgumentException(); } if (offset + count > buffer.Length) { throw new ArgumentException(); } GCHandle gCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned); try { return CFWriteStreamWrite(buffer: new IntPtr(gCHandle.AddrOfPinnedObject().ToInt64() + offset), handle: base.Handle, count: count); } finally { gCHandle.Free(); } } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFWriteStreamSetClient(IntPtr stream, CFIndex eventTypes, CFStreamCallback cb, IntPtr context); protected override bool DoSetClient(CFStreamCallback callback, CFIndex eventTypes, IntPtr context) { return CFWriteStreamSetClient(base.Handle, eventTypes, callback, context); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFWriteStreamScheduleWithRunLoop(IntPtr handle, IntPtr loop, IntPtr mode); protected override void ScheduleWithRunLoop(CFRunLoop loop, NSString mode) { CFWriteStreamScheduleWithRunLoop(base.Handle, loop.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern void CFWriteStreamUnscheduleFromRunLoop(IntPtr handle, IntPtr loop, IntPtr mode); protected override void UnscheduleFromRunLoop(CFRunLoop loop, NSString mode) { CFWriteStreamUnscheduleFromRunLoop(base.Handle, loop.Handle, mode.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern IntPtr CFReadStreamCopyProperty(IntPtr handle, IntPtr name); protected override IntPtr DoGetProperty(NSString name) { return CFReadStreamCopyProperty(base.Handle, name.Handle); } [DllImport("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation")] private static extern bool CFWriteStreamSetProperty(IntPtr handle, IntPtr name, IntPtr value); protected override bool DoSetProperty(NSString name, INativeObject value) { return CFWriteStreamSetProperty(base.Handle, name.Handle, value.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchGroup.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreFoundation; public class DispatchGroup : DispatchObject { private DispatchGroup(IntPtr handle, bool owns) : base(handle, owns) { } public static DispatchGroup Create() { IntPtr intPtr = dispatch_group_create(); if (intPtr == IntPtr.Zero) { return null; } return new DispatchGroup(intPtr, owns: true); } public void DispatchAsync(DispatchQueue queue, NSAction action) { if (queue == null) { throw new ArgumentNullException("queue"); } if (action == null) { throw new ArgumentNullException("action"); } Check(); dispatch_group_async_f(handle, queue.handle, (IntPtr)GCHandle.Alloc(Tuple.Create(action, queue)), DispatchQueue.static_dispatch); } public void Enter() { Check(); dispatch_group_enter(handle); } public void Leave() { Check(); dispatch_group_leave(handle); } public bool Wait(DispatchTime timeout) { Check(); return dispatch_group_wait(handle, timeout.Nanoseconds) == IntPtr.Zero; } [DllImport("libc")] private static extern IntPtr dispatch_group_create(); [DllImport("libc")] private static extern void dispatch_group_async_f(IntPtr group, IntPtr queue, IntPtr context, DispatchQueue.dispatch_callback_t block); [DllImport("libc")] private static extern void dispatch_group_enter(IntPtr group); [DllImport("libc")] private static extern void dispatch_group_leave(IntPtr group); [DllImport("libc")] private static extern IntPtr dispatch_group_wait(IntPtr group, ulong timeout); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchObject.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreFoundation; public abstract class DispatchObject : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; [Preserve(Conditional = true)] internal DispatchObject(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } this.handle = handle; if (!owns) { dispatch_retain(handle); } } internal DispatchObject() { } [DllImport("libc")] private static extern IntPtr dispatch_release(IntPtr o); [DllImport("libc")] private static extern IntPtr dispatch_retain(IntPtr o); ~DispatchObject() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { dispatch_release(handle); handle = IntPtr.Zero; } } public static bool operator ==(DispatchObject a, DispatchObject b) { if ((object)a == null) { if ((object)b == null) { return true; } return false; } if ((object)b == null) { return false; } return a.handle == b.handle; } public static bool operator !=(DispatchObject a, DispatchObject b) { if ((object)a == null) { if ((object)b == null) { return false; } return true; } if ((object)b == null) { return true; } return a.handle != b.handle; } public override bool Equals(object other) { if (other == null) { return false; } return (other as DispatchQueue).handle == handle; } public override int GetHashCode() { return (int)handle; } protected void Check() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(GetType().ToString()); } } [DllImport("libc")] private static extern void dispatch_set_target_queue(IntPtr queue, IntPtr target); public void SetTargetQueue(DispatchQueue queue) { IntPtr target = ((queue == null) ? IntPtr.Zero : queue.Handle); dispatch_set_target_queue(handle, target); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchQueue.cs ================================================ using System; using System.Runtime.InteropServices; using System.Threading; using Foundation; using ObjCRuntime; namespace CoreFoundation; public class DispatchQueue : DispatchObject { internal delegate void dispatch_callback_t(IntPtr context); private static IntPtr main_q; private static object lockobj = new object(); internal static readonly dispatch_callback_t static_dispatch = static_dispatcher_to_managed; public string Label { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("DispatchQueue"); } return Marshal.PtrToStringAnsi(dispatch_queue_get_label(handle)); } } public IntPtr Context { get { Check(); return dispatch_get_context(handle); } set { Check(); dispatch_set_context(handle, value); } } [Obsolete("Deprecated in iOS 6.0")] public static DispatchQueue CurrentQueue => new DispatchQueue(dispatch_get_current_queue(), owns: false); public static DispatchQueue DefaultGlobalQueue => new DispatchQueue(dispatch_get_global_queue((IntPtr)0, IntPtr.Zero), owns: false); public static DispatchQueue MainQueue { get { lock (lockobj) { if (main_q == IntPtr.Zero) { main_q = Dlfcn.dlsym((IntPtr)(-2), "_dispatch_main_q"); if (main_q == IntPtr.Zero) { IntPtr intPtr = Dlfcn.dlopen("/usr/lib/libSystem.dylib", 0); main_q = Dlfcn.GetIndirect(intPtr, "_dispatch_main_q"); Dlfcn.dlclose(intPtr); } } } if (main_q == IntPtr.Zero) { return PInvokeDispatchGetMainQueue(); } return new DispatchQueue(main_q, owns: false); } } [Preserve(Conditional = true)] internal DispatchQueue(IntPtr handle, bool owns) : base(handle, owns) { } public DispatchQueue(IntPtr handle) : base(handle, owns: false) { } public DispatchQueue(string label) { handle = dispatch_queue_create(label, IntPtr.Zero); if (handle == IntPtr.Zero) { throw new Exception("Error creating dispatch queue"); } } [DllImport("libc")] private static extern void dispatch_suspend(IntPtr o); public void Suspend() { Check(); dispatch_suspend(handle); } [DllImport("libc")] private static extern void dispatch_resume(IntPtr o); public void Resume() { Check(); dispatch_resume(handle); } [DllImport("libc")] private static extern IntPtr dispatch_get_context(IntPtr o); [DllImport("libc")] private static extern void dispatch_set_context(IntPtr o, IntPtr ctx); public static DispatchQueue GetGlobalQueue(DispatchQueuePriority priority) { return new DispatchQueue(dispatch_get_global_queue((IntPtr)(int)priority, IntPtr.Zero), owns: false); } private static DispatchQueue PInvokeDispatchGetMainQueue() { return new DispatchQueue(dispatch_get_main_queue(), owns: false); } [MonoPInvokeCallback(typeof(dispatch_callback_t))] private static void static_dispatcher_to_managed(IntPtr context) { GCHandle gCHandle = GCHandle.FromIntPtr(context); if (gCHandle.Target is Tuple tuple) { SynchronizationContext current = SynchronizationContext.Current; if (current == null) { SynchronizationContext.SetSynchronizationContext(new DispatchQueueSynchronizationContext(tuple.Item2)); } try { tuple.Item1(); } catch { gCHandle.Free(); throw; } finally { if (current == null) { SynchronizationContext.SetSynchronizationContext(null); } } } gCHandle.Free(); } public void DispatchAsync(NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } dispatch_async_f(handle, (IntPtr)GCHandle.Alloc(Tuple.Create(action, this)), static_dispatch); } public void DispatchSync(NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } dispatch_sync_f(handle, (IntPtr)GCHandle.Alloc(Tuple.Create(action, this)), static_dispatch); } [DllImport("libc")] private static extern IntPtr dispatch_queue_create(string label, IntPtr attr); [DllImport("libc")] private static extern void dispatch_async_f(IntPtr queue, IntPtr context, dispatch_callback_t dispatch); [DllImport("libc")] private static extern void dispatch_sync_f(IntPtr queue, IntPtr context, dispatch_callback_t dispatch); [DllImport("libc")] private static extern IntPtr dispatch_get_current_queue(); [DllImport("libc")] private static extern IntPtr dispatch_get_global_queue(IntPtr priority, IntPtr flags); [DllImport("libc")] private static extern IntPtr dispatch_get_main_queue(); [DllImport("libc")] private static extern IntPtr dispatch_queue_get_label(IntPtr queue); [DllImport("libc")] private static extern IntPtr dispatch_main(); public static void MainIteration() { dispatch_main(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchQueuePriority.cs ================================================ namespace CoreFoundation; public enum DispatchQueuePriority { High = 2, Default = 0, Low = -2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchQueueSynchronizationContext.cs ================================================ using System; using System.Threading; namespace CoreFoundation; internal sealed class DispatchQueueSynchronizationContext : SynchronizationContext { private readonly DispatchQueue queue; public DispatchQueueSynchronizationContext(DispatchQueue dispatchQueue) { if (dispatchQueue == null) { throw new ArgumentNullException("dispatchQueue"); } queue = dispatchQueue; } public override SynchronizationContext CreateCopy() { return new DispatchQueueSynchronizationContext(queue); } public override void Post(SendOrPostCallback d, object state) { queue.DispatchAsync(delegate { d(state); }); } public override void Send(SendOrPostCallback d, object state) { queue.DispatchSync(delegate { d(state); }); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/DispatchTime.cs ================================================ namespace CoreFoundation; public struct DispatchTime { public static readonly DispatchTime Now = default(DispatchTime); public static readonly DispatchTime Forever = new DispatchTime(ulong.MaxValue); public ulong Nanoseconds { get; private set; } public DispatchTime(ulong nanoseconds) { this = default(DispatchTime); Nanoseconds = nanoseconds; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/ICFType.cs ================================================ using ObjCRuntime; namespace CoreFoundation; public interface ICFType : INativeObject { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/NativeObject.cs ================================================ using ObjCRuntime; namespace CoreFoundation; public abstract class NativeObject : DisposableObject { protected NativeObject() { } protected NativeObject(IntPtr handle, bool owns) : this(handle, owns, verify: true) { } protected NativeObject(IntPtr handle, bool owns, bool verify) : base(handle, owns, verify) { if (!owns && handle != IntPtr.Zero) { Retain(); } } protected override void Dispose(bool disposing) { if (base.Handle != IntPtr.Zero) { Release(); } base.Dispose(disposing); } protected internal virtual void Retain() { CFObject.CFRetain(GetCheckedHandle()); } protected internal virtual void Release() { CFObject.CFRelease(GetCheckedHandle()); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreFoundation/Tuple.cs ================================================ namespace CoreFoundation; internal static class Tuple { public static Tuple Create(T1 item1, T2 item2) { return new Tuple(item1, item2); } } internal class Tuple { private T1 item1; private T2 item2; public T1 Item1 => item1; public T2 Item2 => item2; public Tuple(T1 item1, T2 item2) { this.item1 = item1; this.item2 = item2; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGAffineTransform.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreGraphics; public struct CGAffineTransform { public double xx; public double yx; public double xy; public double yy; public double x0; public double y0; public bool IsIdentity { get { if (xx == 1.0 && yx == 0.0 && xy == 0.0 && yy == 1.0 && x0 == 0.0) { return y0 == 0.0; } return false; } } public CGAffineTransform(double xx, double yx, double xy, double yy, double x0, double y0) { this.xx = xx; this.yx = yx; this.xy = xy; this.yy = yy; this.x0 = x0; this.y0 = y0; } public static CGAffineTransform MakeIdentity() { return new CGAffineTransform(1.0, 0.0, 0.0, 1.0, 0.0, 0.0); } public static CGAffineTransform MakeRotation(double angle) { return new CGAffineTransform(Math.Cos(angle), Math.Sin(angle), 0.0 - Math.Sin(angle), Math.Cos(angle), 0.0, 0.0); } public static CGAffineTransform MakeScale(double sx, double sy) { return new CGAffineTransform(sx, 0.0, 0.0, sy, 0.0, 0.0); } public static CGAffineTransform MakeTranslation(double tx, double ty) { return new CGAffineTransform(1.0, 0.0, 0.0, 1.0, tx, ty); } public static CGAffineTransform Multiply(CGAffineTransform a, CGAffineTransform b) { return new CGAffineTransform(a.xx * b.xx + a.yx * b.xy, a.xx * b.yx + a.yx * b.yy, a.xy * b.xx + a.yy * b.xy, a.xy * b.yx + a.yy * b.yy, a.x0 * b.xx + a.y0 * b.xy + b.x0, a.x0 * b.yx + a.y0 * b.yy + b.y0); } public void Multiply(CGAffineTransform b) { CGAffineTransform cGAffineTransform = this; xx = cGAffineTransform.xx * b.xx + cGAffineTransform.yx * b.xy; yx = cGAffineTransform.xx * b.yx + cGAffineTransform.yx * b.yy; xy = cGAffineTransform.xy * b.xx + cGAffineTransform.yy * b.xy; yy = cGAffineTransform.xy * b.yx + cGAffineTransform.yy * b.yy; x0 = cGAffineTransform.x0 * b.xx + cGAffineTransform.y0 * b.xy + b.x0; y0 = cGAffineTransform.x0 * b.yx + cGAffineTransform.y0 * b.yy + b.y0; } public void Scale(double sx, double sy) { Multiply(MakeScale(sx, sy)); } public void Translate(double tx, double ty) { Multiply(MakeTranslation(tx, ty)); } public void Rotate(double angle) { Multiply(MakeRotation(angle)); } public override string ToString() { return $"xx:{xx:##0.0#} yx:{yx:##0.0#} xy:{xy:##0.0#} yy:{yy:##0.0#} x0:{x0:##0.0#} y0:{y0:##0.0#}"; } public static bool operator ==(CGAffineTransform lhs, CGAffineTransform rhs) { if (lhs.xx == rhs.xx && lhs.xy == rhs.xy && lhs.yx == rhs.yx && lhs.yy == rhs.yy && lhs.x0 == rhs.x0) { return lhs.y0 == rhs.y0; } return false; } public static bool operator !=(CGAffineTransform lhs, CGAffineTransform rhs) { return !(lhs == rhs); } public static CGAffineTransform operator *(CGAffineTransform a, CGAffineTransform b) { return new CGAffineTransform(a.xx * b.xx + a.yx * b.xy, a.xx * b.yx + a.yx * b.yy, a.xy * b.xx + a.yy * b.xy, a.xy * b.yx + a.yy * b.yy, a.x0 * b.xx + a.y0 * b.xy + b.x0, a.x0 * b.yx + a.y0 * b.yy + b.y0); } public override bool Equals(object o) { if (!(o is CGAffineTransform)) { return false; } return this == (CGAffineTransform)o; } public override int GetHashCode() { return (int)xx ^ (int)xy ^ (int)yx ^ (int)yy ^ (int)x0 ^ (int)y0; } public CGPoint TransformPoint(CGPoint point) { return new CGPoint(xx * point.X + xy * point.Y + x0, yx * point.X + yy * point.Y + y0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] public static extern CGRect CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t); public CGRect TransformRect(CGRect rect) { return CGRectApplyAffineTransform(rect, this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] public static extern CGAffineTransform CGAffineTransformInvert(CGAffineTransform t); public CGAffineTransform Invert() { return CGAffineTransformInvert(this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGBitmapContext.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreGraphics; public class CGBitmapContext : CGContext { public IntPtr Data => CGBitmapContextGetData(base.Handle); public int Width => (int)(uint)CGBitmapContextGetWidth(base.Handle); public int Height => (int)(uint)CGBitmapContextGetHeight(base.Handle); public int BitsPerComponent => (int)(uint)CGBitmapContextGetBitsPerComponent(base.Handle); public int BitsPerPixel => (int)(uint)CGBitmapContextGetBitsPerPixel(base.Handle); public int BytesPerRow => (int)(uint)CGBitmapContextGetBytesPerRow(base.Handle); public CGColorSpace ColorSpace => new CGColorSpace(CGBitmapContextGetColorSpace(base.Handle), owns: true); public CGImageAlphaInfo AlphaInfo => CGBitmapContextGetAlphaInfo(base.Handle); public uint BitmapInfo => CGBitmapContextGetBitmapInfo(base.Handle); [Preserve(Conditional = true)] internal CGBitmapContext(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGBitmapContextCreate(IntPtr data, UIntPtr width, UIntPtr height, UIntPtr bitsPerComponent, UIntPtr bytesPerRow, IntPtr colorSpace, uint bitmapInfo); public CGBitmapContext(IntPtr data, int width, int height, int bitsPerComponent, int bytesPerRow, CGColorSpace colorSpace, CGImageAlphaInfo bitmapInfo) : base(CGBitmapContextCreate(data, (UIntPtr)(ulong)width, (UIntPtr)(ulong)height, (UIntPtr)(ulong)bitsPerComponent, (UIntPtr)(ulong)bytesPerRow, colorSpace.handle, (uint)bitmapInfo), owns: true) { } public CGBitmapContext(IntPtr data, int width, int height, int bitsPerComponent, int bytesPerRow, CGColorSpace colorSpace, CGBitmapFlags bitmapInfo) : base(CGBitmapContextCreate(data, (UIntPtr)(ulong)width, (UIntPtr)(ulong)height, (UIntPtr)(ulong)bitsPerComponent, (UIntPtr)(ulong)bytesPerRow, colorSpace.handle, (uint)bitmapInfo), owns: true) { } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGBitmapContextCreate(byte[] data, UIntPtr width, UIntPtr height, UIntPtr bitsPerComponent, UIntPtr bytesPerRow, IntPtr colorSpace, uint bitmapInfo); public CGBitmapContext(byte[] data, int width, int height, int bitsPerComponent, int bytesPerRow, CGColorSpace colorSpace, CGImageAlphaInfo bitmapInfo) : base(CGBitmapContextCreate(data, (UIntPtr)(ulong)width, (UIntPtr)(ulong)height, (UIntPtr)(ulong)bitsPerComponent, (UIntPtr)(ulong)bytesPerRow, colorSpace.handle, (uint)bitmapInfo), owns: true) { } public CGBitmapContext(byte[] data, int width, int height, int bitsPerComponent, int bytesPerRow, CGColorSpace colorSpace, CGBitmapFlags bitmapInfo) : base(CGBitmapContextCreate(data, (UIntPtr)(ulong)width, (UIntPtr)(ulong)height, (UIntPtr)(ulong)bitsPerComponent, (UIntPtr)(ulong)bytesPerRow, colorSpace.handle, (uint)bitmapInfo), owns: true) { } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGBitmapContextGetData(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern UIntPtr CGBitmapContextGetWidth(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern UIntPtr CGBitmapContextGetHeight(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern UIntPtr CGBitmapContextGetBitsPerComponent(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern UIntPtr CGBitmapContextGetBitsPerPixel(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern UIntPtr CGBitmapContextGetBytesPerRow(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGBitmapContextGetColorSpace(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGImageAlphaInfo CGBitmapContextGetAlphaInfo(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern uint CGBitmapContextGetBitmapInfo(IntPtr cgContextRef); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGBitmapContextCreateImage(IntPtr c); public CGImage ToImage() { return new CGImage(CGBitmapContextCreateImage(base.Handle), owns: true); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGBitmapFlags.cs ================================================ using System; namespace CoreGraphics; [Flags] public enum CGBitmapFlags { None = 0, PremultipliedLast = 1, PremultipliedFirst = 2, Last = 3, First = 4, NoneSkipLast = 5, NoneSkipFirst = 6, Only = 7, AlphaInfoMask = 0x1F, FloatComponents = 0x100, ByteOrderMask = 0x7000, ByteOrderDefault = 0, ByteOrder16Little = 0x1000, ByteOrder32Little = 0x2000, ByteOrder16Big = 0x3000, ByteOrder32Big = 0x4000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGBlendMode.cs ================================================ namespace CoreGraphics; public enum CGBlendMode { Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, SoftLight, HardLight, Difference, Exclusion, Hue, Saturation, Color, Luminosity, Clear, Copy, SourceIn, SourceOut, SourceAtop, DestinationOver, DestinationIn, DestinationOut, DestinationAtop, XOR, PlusDarker, PlusLighter } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGColor.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGColor : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int NumberOfComponents => CGColorGetNumberOfComponents(handle); public unsafe double[] Components { get { int numberOfComponents = NumberOfComponents; double[] array = new double[numberOfComponents]; double* ptr = CGColorGetComponents(handle); for (int i = 0; i < numberOfComponents; i++) { array[i] = ptr[i]; } return array; } } public double Alpha => CGColorGetAlpha(handle); public CGColorSpace ColorSpace => new CGColorSpace(CGColorGetColorSpace(handle)); public CGPattern Pattern => new CGPattern(CGColorGetPattern(handle)); ~CGColor() { Dispose(disposing: false); } public CGColor(IntPtr handle) { this.handle = handle; CGColorRetain(handle); } [Preserve(Conditional = true)] internal CGColor(IntPtr handle, bool owns) { if (!owns) { CGColorRetain(handle); } this.handle = handle; } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorCreate(IntPtr space, double[] components); public CGColor(CGColorSpace colorspace, double[] components) { if (components == null) { throw new ArgumentNullException("components"); } if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (colorspace.handle == IntPtr.Zero) { throw new ObjectDisposedException("colorspace"); } handle = CGColorCreate(colorspace.handle, components); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorCreateGenericGray(double gray, double alpha); public CGColor(double gray, double alpha) { handle = CGColorCreateGenericGray(gray, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorCreateGenericRGB(double red, double green, double blue, double alpha); public CGColor(double red, double green, double blue, double alpha) { handle = CGColorCreateGenericRGB(red, green, blue, alpha); } public CGColor(double red, double green, double blue) { handle = CGColorCreateGenericRGB(red, green, blue, 1.0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorGetConstantColor(IntPtr cfstring_colorName); public CGColor(string name) { if (name == null) { throw new ArgumentNullException("name"); } using CFString cFString = new CFString(name); handle = CGColorGetConstantColor(cFString.handle); if (handle == IntPtr.Zero) { throw new ArgumentException("name"); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorCreateWithPattern(IntPtr space, IntPtr pattern, double[] components); public CGColor(CGColorSpace colorspace, CGPattern pattern, double[] components) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (colorspace.handle == IntPtr.Zero) { throw new ObjectDisposedException("colorspace"); } if (pattern == null) { throw new ArgumentNullException("pattern"); } if (components == null) { throw new ArgumentNullException("components"); } handle = CGColorCreateWithPattern(colorspace.handle, pattern.handle, components); if (handle == IntPtr.Zero) { throw new ArgumentException(); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorCreateCopyWithAlpha(IntPtr color, double alpha); public CGColor(CGColor source, double alpha) { if (source == null) { throw new ArgumentNullException("source"); } if (source.handle == IntPtr.Zero) { throw new ObjectDisposedException("source"); } handle = CGColorCreateCopyWithAlpha(source.handle, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGColorEqualToColor(IntPtr color1, IntPtr color2); public static bool operator ==(CGColor color1, CGColor color2) { return object.Equals(color1, color2); } public static bool operator !=(CGColor color1, CGColor color2) { return !object.Equals(color1, color2); } public override int GetHashCode() { return handle.GetHashCode(); } public override bool Equals(object o) { CGColor cGColor = o as CGColor; if (cGColor == null) { return false; } return CGColorEqualToColor(handle, cGColor.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGColorGetNumberOfComponents(IntPtr color); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private unsafe static extern double* CGColorGetComponents(IntPtr color); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGColorGetAlpha(IntPtr color); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorGetColorSpace(IntPtr color); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorGetPattern(IntPtr color); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGColorRetain(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGColorRelease(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGColorRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGColorRenderingIntent.cs ================================================ namespace CoreGraphics; public enum CGColorRenderingIntent { Default, AbsoluteColorimetric, RelativeColorimetric, Perceptual, Saturation } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGColorSpace.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGColorSpace : INativeObject, IDisposable { internal IntPtr handle; public static CGColorSpace Null = new CGColorSpace(IntPtr.Zero); private static byte[] Empty = new byte[0]; public IntPtr Handle => handle; public CGColorSpaceModel Model => CGColorSpaceGetModel(handle); public int Components => CGColorSpaceGetNumberOfComponents(handle); public CGColorSpace(IntPtr handle) { this.handle = handle; CGColorSpaceRetain(handle); } [Preserve(Conditional = true)] internal CGColorSpace(IntPtr handle, bool owns) { if (!owns) { CGColorSpaceRetain(handle); } this.handle = handle; } ~CGColorSpace() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGColorSpaceRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGColorSpaceRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGColorSpaceRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateDeviceGray(); public static CGColorSpace CreateDeviceGray() { return new CGColorSpace(CGColorSpaceCreateDeviceGray(), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateDeviceRGB(); public static CGColorSpace CreateDeviceRGB() { return new CGColorSpace(CGColorSpaceCreateDeviceRGB(), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateDeviceCMYK(); public static CGColorSpace CreateDeviceCMYK() { return new CGColorSpace(CGColorSpaceCreateDeviceCMYK(), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateCalibratedGray(double[] whitepoint, double[] blackpoint, double gamma); public static CGColorSpace CreateCalibratedGray(double[] whitepoint, double[] blackpoint, double gamma) { if (whitepoint.Length != 3) { throw new ArgumentException("Must have 3 values", "whitepoint"); } if (blackpoint.Length != 3) { throw new ArgumentException("Must have 3 values", "blackpoint"); } return new CGColorSpace(CGColorSpaceCreateCalibratedGray(whitepoint, blackpoint, gamma), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateCalibratedRGB(double[] whitePoint, double[] blackPoint, double[] gamma, double[] matrix); public static CGColorSpace CreateCalibratedRGB(double[] whitepoint, double[] blackpoint, double[] gamma, double[] matrix) { if (whitepoint.Length != 3) { throw new ArgumentException("Must have 3 values", "whitepoint"); } if (blackpoint.Length != 3) { throw new ArgumentException("Must have 3 values", "blackpoint"); } if (gamma.Length != 3) { throw new ArgumentException("Must have 3 values", "gamma"); } if (matrix.Length != 9) { throw new ArgumentException("Must have 9 values", "matrix"); } return new CGColorSpace(CGColorSpaceCreateCalibratedRGB(whitepoint, blackpoint, gamma, matrix), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateIndexed(IntPtr baseSpace, IntPtr lastIndex, byte[] colorTable); public static CGColorSpace CreateIndexed(CGColorSpace baseSpace, int lastIndex, byte[] colorTable) { return new CGColorSpace(CGColorSpaceCreateIndexed(baseSpace?.handle ?? IntPtr.Zero, new IntPtr(lastIndex), colorTable), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreatePattern(IntPtr baseSpace); public static CGColorSpace CreatePattern(CGColorSpace baseSpace) { return new CGColorSpace(CGColorSpaceCreatePattern(baseSpace?.handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceCreateWithName(IntPtr name); public static CGColorSpace CreateWithName(string name) { if (name == null) { throw new ArgumentNullException("name"); } return new CGColorSpace(CGColorSpaceCreateWithName(new NSString(name).Handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceGetBaseColorSpace(IntPtr space); public CGColorSpace GetBaseColorSpace() { return new CGColorSpace(CGColorSpaceGetBaseColorSpace(handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGColorSpaceModel CGColorSpaceGetModel(IntPtr space); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGColorSpaceGetNumberOfComponents(IntPtr space); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGColorSpaceGetColorTableCount(IntPtr space); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGColorSpaceGetColorTable(IntPtr space, byte[] table); public byte[] GetColorTable() { int num = CGColorSpaceGetColorTableCount(handle).ToInt32(); if (num == 0) { return Empty; } byte[] array = new byte[num * GetBaseColorSpace().Components]; CGColorSpaceGetColorTable(handle, array); return array; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGColorSpaceModel.cs ================================================ namespace CoreGraphics; public enum CGColorSpaceModel { Unknown = -1, Monochrome, RGB, CMYK, Lab, DeviceN, Indexed, Pattern } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGContext.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGContext : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public CGInterpolationQuality InterpolationQuality { get { return CGContextGetInterpolationQuality(handle); } set { CGContextSetInterpolationQuality(handle, value); } } public CGPoint TextPosition { get { return CGContextGetTextPosition(handle); } set { CGContextSetTextPosition(handle, value.X, value.Y); } } public CGAffineTransform TextMatrix { get { return CGContextGetTextMatrix(handle); } set { CGContextSetTextMatrix(handle, value); } } public CGContext(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to context creation"); } CGContextRetain(handle); this.handle = handle; } internal CGContext() { } [Preserve(Conditional = true)] internal CGContext(IntPtr handle, bool owns) { if (!owns) { CGContextRetain(handle); } if (handle == IntPtr.Zero) { throw new Exception("Invalid handle"); } this.handle = handle; } ~CGContext() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGContextRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSaveGState(IntPtr context); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextRestoreGState(IntPtr context); public void SaveState() { CGContextSaveGState(handle); } public void RestoreState() { CGContextRestoreGState(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextScaleCTM(IntPtr ctx, double sx, double sy); public void ScaleCTM(double sx, double sy) { CGContextScaleCTM(handle, sx, sy); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextTranslateCTM(IntPtr ctx, double tx, double ty); public void TranslateCTM(double tx, double ty) { CGContextTranslateCTM(handle, tx, ty); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextRotateCTM(IntPtr ctx, double angle); public void RotateCTM(double angle) { CGContextRotateCTM(handle, angle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextConcatCTM(IntPtr ctx, CGAffineTransform transform); public void ConcatCTM(CGAffineTransform transform) { CGContextConcatCTM(handle, transform); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetLineWidth(IntPtr c, double width); public void SetLineWidth(double w) { CGContextSetLineWidth(handle, w); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetLineCap(IntPtr c, CGLineCap cap); public void SetLineCap(CGLineCap cap) { CGContextSetLineCap(handle, cap); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetLineJoin(IntPtr c, CGLineJoin join); public void SetLineJoin(CGLineJoin join) { CGContextSetLineJoin(handle, join); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetMiterLimit(IntPtr c, double limit); public void SetMiterLimit(double limit) { CGContextSetMiterLimit(handle, limit); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetLineDash(IntPtr c, double phase, double[] lengths, long count); public void SetLineDash(double phase, double[] lengths) { SetLineDash(phase, lengths, lengths.Length); } public void SetLineDash(double phase, double[] lengths, int n) { if (lengths == null) { n = 0; } else if (n < 0 || n > lengths.Length) { throw new ArgumentException("n"); } CGContextSetLineDash(handle, phase, lengths, n); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFlatness(IntPtr c, double flatness); public void SetFlatness(double flatness) { CGContextSetFlatness(handle, flatness); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetAlpha(IntPtr c, double alpha); public void SetAlpha(double alpha) { CGContextSetAlpha(handle, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetBlendMode(IntPtr context, CGBlendMode mode); public void SetBlendMode(CGBlendMode mode) { CGContextSetBlendMode(handle, mode); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGAffineTransform CGContextGetCTM(IntPtr c); public CGAffineTransform GetCTM() { return CGContextGetCTM(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextBeginPath(IntPtr c); public void BeginPath() { CGContextBeginPath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextMoveToPoint(IntPtr c, double x, double y); public void MoveTo(double x, double y) { CGContextMoveToPoint(handle, x, y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddLineToPoint(IntPtr c, double x, double y); public void AddLineToPoint(double x, double y) { CGContextAddLineToPoint(handle, x, y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddCurveToPoint(IntPtr c, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); public void AddCurveToPoint(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y) { CGContextAddCurveToPoint(handle, cp1x, cp1y, cp2x, cp2y, x, y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddQuadCurveToPoint(IntPtr c, double cpx, double cpy, double x, double y); public void AddQuadCurveToPoint(double cpx, double cpy, double x, double y) { CGContextAddQuadCurveToPoint(handle, cpx, cpy, x, y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClosePath(IntPtr c); public void ClosePath() { CGContextClosePath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddRect(IntPtr c, CGRect rect); public void AddRect(CGRect rect) { CGContextAddRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddRects(IntPtr c, CGRect[] rects, IntPtr size_t_count); public void AddRects(CGRect[] rects) { CGContextAddRects(handle, rects, new IntPtr(rects.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddLines(IntPtr c, CGPoint[] points, IntPtr size_t_count); public void AddLines(CGPoint[] points) { CGContextAddLines(handle, points, new IntPtr(points.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddEllipseInRect(IntPtr context, CGRect rect); public void AddEllipseInRect(CGRect rect) { CGContextAddEllipseInRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddArc(IntPtr c, double x, double y, double radius, double startAngle, double endAngle, int clockwise); public void AddArc(double x, double y, double radius, double startAngle, double endAngle, bool clockwise) { CGContextAddArc(handle, x, y, radius, startAngle, endAngle, clockwise ? 1 : 0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddArcToPoint(IntPtr c, double x1, double y1, double x2, double y2, double radius); public void AddArcToPoint(double x1, double y1, double x2, double y2, double radius) { CGContextAddArcToPoint(handle, x1, y1, x2, y2, radius); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextAddPath(IntPtr context, IntPtr path_ref); public void AddPath(CGPath path) { CGContextAddPath(handle, path.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextReplacePathWithStrokedPath(IntPtr c); public void ReplacePathWithStrokedPath() { CGContextReplacePathWithStrokedPath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGContextIsPathEmpty(IntPtr c); public bool IsPathEmpty() { return CGContextIsPathEmpty(handle) != 0; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGPoint CGContextGetPathCurrentPoint(IntPtr c); public CGPoint GetPathCurrentPoint() { return CGContextGetPathCurrentPoint(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGContextGetPathBoundingBox(IntPtr c); public CGRect GetPathBoundingBox() { return CGContextGetPathBoundingBox(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGContextPathContainsPoint(IntPtr context, CGPoint point, CGPathDrawingMode mode); public bool PathContainsPoint(CGPoint point, CGPathDrawingMode mode) { return CGContextPathContainsPoint(handle, point, mode) != 0; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawPath(IntPtr c, CGPathDrawingMode mode); public void DrawPath(CGPathDrawingMode mode) { CGContextDrawPath(handle, mode); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextFillPath(IntPtr c); public void FillPath() { CGContextFillPath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextEOFillPath(IntPtr c); public void EOFillPath() { CGContextEOFillPath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextStrokePath(IntPtr c); public void StrokePath() { CGContextStrokePath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextFillRect(IntPtr c, CGRect rect); public void FillRect(CGRect rect) { CGContextFillRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextFillRects(IntPtr c, CGRect[] rects, IntPtr size_t_count); public void ContextFillRects(CGRect[] rects) { CGContextFillRects(handle, rects, new IntPtr(rects.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextStrokeRect(IntPtr c, CGRect rect); public void StrokeRect(CGRect rect) { CGContextStrokeRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextStrokeRectWithWidth(IntPtr c, CGRect rect, double width); public void StrokeRectWithWidth(CGRect rect, double width) { CGContextStrokeRectWithWidth(handle, rect, width); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClearRect(IntPtr c, CGRect rect); public void ClearRect(CGRect rect) { CGContextClearRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextFillEllipseInRect(IntPtr context, CGRect rect); public void FillEllipseInRect(CGRect rect) { CGContextFillEllipseInRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextStrokeEllipseInRect(IntPtr context, CGRect rect); public void StrokeEllipseInRect(CGRect rect) { CGContextStrokeEllipseInRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextStrokeLineSegments(IntPtr c, CGPoint[] points, IntPtr size_t_count); public void StrokeLineSegments(CGPoint[] points) { CGContextStrokeLineSegments(handle, points, new IntPtr(points.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClip(IntPtr c); public void Clip() { CGContextClip(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextEOClip(IntPtr c); public void EOClip() { CGContextEOClip(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClipToMask(IntPtr c, CGRect rect, IntPtr mask); public void ClipToMask(CGRect rect, CGImage mask) { CGContextClipToMask(handle, rect, mask.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGContextGetClipBoundingBox(IntPtr c); public CGRect GetClipBoundingBox() { return CGContextGetClipBoundingBox(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClipToRect(IntPtr c, CGRect rect); public void ClipToRect(CGRect rect) { CGContextClipToRect(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextClipToRects(IntPtr c, CGRect[] rects, IntPtr size_t_count); public void ClipToRects(CGRect[] rects) { CGContextClipToRects(handle, rects, new IntPtr(rects.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFillColorWithColor(IntPtr c, IntPtr color); public void SetFillColor(CGColor color) { CGContextSetFillColorWithColor(handle, color.handle); } [Advice("Use SetFillColor() instead.")] public void SetFillColorWithColor(CGColor color) { CGContextSetFillColorWithColor(handle, color.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetStrokeColorWithColor(IntPtr c, IntPtr color); public void SetStrokeColor(CGColor color) { CGContextSetStrokeColorWithColor(handle, color.handle); } [Advice("Use SetStrokeColor() instead.")] public void SetStrokeColorWithColor(CGColor color) { CGContextSetStrokeColorWithColor(handle, color.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFillColorSpace(IntPtr context, IntPtr space); public void SetFillColorSpace(CGColorSpace space) { CGContextSetFillColorSpace(handle, space.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetStrokeColorSpace(IntPtr context, IntPtr space); public void SetStrokeColorSpace(CGColorSpace space) { CGContextSetStrokeColorSpace(handle, space.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFillColor(IntPtr context, double[] components); public void SetFillColor(double[] components) { if (components == null) { throw new ArgumentNullException("components"); } CGContextSetFillColor(handle, components); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetStrokeColor(IntPtr context, double[] components); public void SetStrokeColor(double[] components) { if (components == null) { throw new ArgumentNullException("components"); } CGContextSetStrokeColor(handle, components); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFillPattern(IntPtr context, IntPtr pattern, double[] components); public void SetFillPattern(CGPattern pattern, double[] components) { if (components == null) { throw new ArgumentNullException("components"); } CGContextSetFillPattern(handle, pattern.handle, components); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetStrokePattern(IntPtr context, IntPtr pattern, double[] components); public void SetStrokePattern(CGPattern pattern, double[] components) { if (components == null) { throw new ArgumentNullException("components"); } CGContextSetStrokePattern(handle, pattern.handle, components); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetPatternPhase(IntPtr context, CGSize phase); public void SetPatternPhase(CGSize phase) { CGContextSetPatternPhase(handle, phase); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetGrayFillColor(IntPtr context, double gray, double alpha); public void SetFillColor(double gray, double alpha) { CGContextSetGrayFillColor(handle, gray, alpha); } [Advice("Use SetFillColor() instead.")] public void SetGrayFillColor(double gray, double alpha) { CGContextSetGrayFillColor(handle, gray, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetGrayStrokeColor(IntPtr context, double gray, double alpha); public void SetStrokeColor(double gray, double alpha) { CGContextSetGrayStrokeColor(handle, gray, alpha); } [Advice("Use SetStrokeColor() instead.")] public void SetGrayStrokeColor(double gray, double alpha) { CGContextSetGrayStrokeColor(handle, gray, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetRGBFillColor(IntPtr context, double red, double green, double blue, double alpha); public void SetFillColor(double red, double green, double blue, double alpha) { CGContextSetRGBFillColor(handle, red, green, blue, alpha); } [Advice("Use SetFillColor() instead.")] public void SetRGBFillColor(double red, double green, double blue, double alpha) { CGContextSetRGBFillColor(handle, red, green, blue, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetRGBStrokeColor(IntPtr context, double red, double green, double blue, double alpha); public void SetStrokeColor(double red, double green, double blue, double alpha) { CGContextSetRGBStrokeColor(handle, red, green, blue, alpha); } [Advice("Use SetStrokeColor() instead.")] public void SetRGBStrokeColor(double red, double green, double blue, double alpha) { CGContextSetRGBStrokeColor(handle, red, green, blue, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetCMYKFillColor(IntPtr context, double cyan, double magenta, double yellow, double black, double alpha); public void SetFillColor(double cyan, double magenta, double yellow, double black, double alpha) { CGContextSetCMYKFillColor(handle, cyan, magenta, yellow, black, alpha); } [Advice("Use SetFillColor() instead.")] public void SetCMYKFillColor(double cyan, double magenta, double yellow, double black, double alpha) { CGContextSetCMYKFillColor(handle, cyan, magenta, yellow, black, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetCMYKStrokeColor(IntPtr context, double cyan, double magenta, double yellow, double black, double alpha); public void SetStrokeColor(double cyan, double magenta, double yellow, double black, double alpha) { CGContextSetCMYKStrokeColor(handle, cyan, magenta, yellow, black, alpha); } [Advice("Use SetStrokeColor() instead.")] public void SetCMYKStrokeColor(double cyan, double magenta, double yellow, double black, double alpha) { CGContextSetCMYKStrokeColor(handle, cyan, magenta, yellow, black, alpha); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetRenderingIntent(IntPtr context, CGColorRenderingIntent intent); public void SetRenderingIntent(CGColorRenderingIntent intent) { CGContextSetRenderingIntent(handle, intent); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawImage(IntPtr c, CGRect rect, IntPtr image); public void DrawImage(CGRect rect, CGImage image) { CGContextDrawImage(handle, rect, image.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawTiledImage(IntPtr c, CGRect rect, IntPtr image); public void DrawTiledImage(CGRect rect, CGImage image) { CGContextDrawTiledImage(handle, rect, image.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGInterpolationQuality CGContextGetInterpolationQuality(IntPtr context); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetInterpolationQuality(IntPtr context, CGInterpolationQuality quality); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetShadowWithColor(IntPtr context, CGSize offset, double blur, IntPtr color); public void SetShadowWithColor(CGSize offset, double blur, CGColor color) { CGContextSetShadowWithColor(handle, offset, blur, color.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetShadow(IntPtr context, CGSize offset, double blur); public void SetShadow(CGSize offset, double blur) { CGContextSetShadow(handle, offset, blur); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawLinearGradient(IntPtr context, IntPtr gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options); public void DrawLinearGradient(CGGradient gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options) { CGContextDrawLinearGradient(handle, gradient.handle, startPoint, endPoint, options); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawRadialGradient(IntPtr context, IntPtr gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, CGGradientDrawingOptions options); public void DrawRadialGradient(CGGradient gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, CGGradientDrawingOptions options) { CGContextDrawRadialGradient(handle, gradient.handle, startCenter, startRadius, endCenter, endRadius, options); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawShading(IntPtr context, IntPtr shading); public void DrawShading(CGShading shading) { CGContextDrawShading(handle, shading.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetCharacterSpacing(IntPtr context, double spacing); public void SetCharacterSpacing(double spacing) { CGContextSetCharacterSpacing(handle, spacing); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetTextPosition(IntPtr c, double x, double y); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGPoint CGContextGetTextPosition(IntPtr context); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetTextMatrix(IntPtr c, CGAffineTransform t); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGAffineTransform CGContextGetTextMatrix(IntPtr c); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetTextDrawingMode(IntPtr c, CGTextDrawingMode mode); public void SetTextDrawingMode(CGTextDrawingMode mode) { CGContextSetTextDrawingMode(handle, mode); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFont(IntPtr c, IntPtr font); public void SetFont(CGFont font) { CGContextSetFont(handle, font.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetFontSize(IntPtr c, double size); public void SetFontSize(double size) { CGContextSetFontSize(handle, size); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSelectFont(IntPtr c, string name, double size, CGTextEncoding textEncoding); public void SelectFont(string name, double size, CGTextEncoding textEncoding) { if (name == null) { throw new ArgumentNullException("name"); } CGContextSelectFont(handle, name, size, textEncoding); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowGlyphsAtPositions(IntPtr context, ushort[] glyphs, CGPoint[] positions, IntPtr size_t_count); public void ShowGlyphsAtPositions(ushort[] glyphs, CGPoint[] positions, int size_t_count) { if (positions == null) { throw new ArgumentNullException("positions"); } if (glyphs == null) { throw new ArgumentNullException("glyphs"); } CGContextShowGlyphsAtPositions(handle, glyphs, positions, new IntPtr(size_t_count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowText(IntPtr c, string s, IntPtr size_t_length); public void ShowText(string str, int count) { if (str == null) { throw new ArgumentNullException("str"); } if (count > str.Length) { throw new ArgumentException("count"); } CGContextShowText(handle, str, new IntPtr(count)); } public void ShowText(string str) { if (str == null) { throw new ArgumentNullException("str"); } CGContextShowText(handle, str, new IntPtr(str.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowText(IntPtr c, byte[] bytes, IntPtr size_t_length); public void ShowText(byte[] bytes, int count) { if (bytes == null) { throw new ArgumentNullException("bytes"); } if (count > bytes.Length) { throw new ArgumentException("count"); } CGContextShowText(handle, bytes, new IntPtr(count)); } public void ShowText(byte[] bytes) { if (bytes == null) { throw new ArgumentNullException("bytes"); } CGContextShowText(handle, bytes, new IntPtr(bytes.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowTextAtPoint(IntPtr c, double x, double y, string str, IntPtr size_t_length); public void ShowTextAtPoint(double x, double y, string str, int length) { if (str == null) { throw new ArgumentNullException("str"); } CGContextShowTextAtPoint(handle, x, y, str, new IntPtr(length)); } public void ShowTextAtPoint(double x, double y, string str) { if (str == null) { throw new ArgumentNullException("str"); } CGContextShowTextAtPoint(handle, x, y, str, new IntPtr(str.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowTextAtPoint(IntPtr c, double x, double y, byte[] bytes, IntPtr size_t_length); public void ShowTextAtPoint(double x, double y, byte[] bytes, int length) { if (bytes == null) { throw new ArgumentNullException("bytes"); } CGContextShowTextAtPoint(handle, x, y, bytes, new IntPtr(length)); } public void ShowTextAtPoint(double x, double y, byte[] bytes) { if (bytes == null) { throw new ArgumentNullException("bytes"); } CGContextShowTextAtPoint(handle, x, y, bytes, new IntPtr(bytes.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowGlyphs(IntPtr c, ushort[] glyphs, IntPtr size_t_count); public void ShowGlyphs(ushort[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } CGContextShowGlyphs(handle, glyphs, new IntPtr(glyphs.Length)); } public void ShowGlyphs(ushort[] glyphs, int count) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } if (count > glyphs.Length) { throw new ArgumentException("count"); } CGContextShowGlyphs(handle, glyphs, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowGlyphsAtPoint(IntPtr context, double x, double y, ushort[] glyphs, IntPtr size_t_count); public void ShowGlyphsAtPoint(double x, double y, ushort[] glyphs, int count) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } if (count > glyphs.Length) { throw new ArgumentException("count"); } CGContextShowGlyphsAtPoint(handle, x, y, glyphs, new IntPtr(count)); } public void ShowGlyphsAtPoint(double x, double y, ushort[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } CGContextShowGlyphsAtPoint(handle, x, y, glyphs, new IntPtr(glyphs.Length)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextShowGlyphsWithAdvances(IntPtr c, ushort[] glyphs, CGSize[] advances, IntPtr size_t_count); public void ShowGlyphsWithAdvances(ushort[] glyphs, CGSize[] advances, int count) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } if (advances == null) { throw new ArgumentNullException("advances"); } if (count > glyphs.Length || count > advances.Length) { throw new ArgumentException("count"); } CGContextShowGlyphsWithAdvances(handle, glyphs, advances, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawPDFPage(IntPtr c, IntPtr page); public void DrawPDFPage(CGPDFPage page) { CGContextDrawPDFPage(handle, page.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextBeginPage(IntPtr c, ref CGRect mediaBox); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextBeginPage(IntPtr c, IntPtr zero); public void BeginPage(CGRect? rect) { if (rect.HasValue) { CGRect mediaBox = rect.Value; CGContextBeginPage(handle, ref mediaBox); } else { CGContextBeginPage(handle, IntPtr.Zero); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextEndPage(IntPtr c); public void EndPage() { CGContextEndPage(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextFlush(IntPtr c); public void Flush() { CGContextFlush(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSynchronize(IntPtr c); public void Synchronize() { CGContextSynchronize(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetShouldAntialias(IntPtr c, int shouldAntialias); public void SetShouldAntialias(bool shouldAntialias) { CGContextSetShouldAntialias(handle, shouldAntialias ? 1 : 0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetAllowsAntialiasing(IntPtr context, int allowsAntialiasing); public void SetAllowsAntialiasing(bool allowsAntialiasing) { CGContextSetAllowsAntialiasing(handle, allowsAntialiasing ? 1 : 0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextSetShouldSmoothFonts(IntPtr c, int shouldSmoothFonts); public void SetShouldSmoothFonts(bool shouldSmoothFonts) { CGContextSetShouldSmoothFonts(handle, shouldSmoothFonts ? 1 : 0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(IntPtr context); public CGAffineTransform GetUserSpaceToDeviceSpaceTransform() { return CGContextGetUserSpaceToDeviceSpaceTransform(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGPoint CGContextConvertPointToDeviceSpace(IntPtr context, CGPoint point); public CGPoint PointToDeviceSpace(CGPoint point) { return CGContextConvertPointToDeviceSpace(handle, point); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGPoint CGContextConvertPointToUserSpace(IntPtr context, CGPoint point); public CGPoint ConvertPointToUserSpace(CGPoint point) { return CGContextConvertPointToUserSpace(handle, point); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGSize CGContextConvertSizeToDeviceSpace(IntPtr context, CGSize size); public CGSize ConvertSizeToDeviceSpace(CGSize size) { return CGContextConvertSizeToDeviceSpace(handle, size); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGSize CGContextConvertSizeToUserSpace(IntPtr context, CGSize size); public CGSize ConvertSizeToUserSpace(CGSize size) { return CGContextConvertSizeToUserSpace(handle, size); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGContextConvertRectToDeviceSpace(IntPtr context, CGRect rect); public CGRect ConvertRectToDeviceSpace(CGRect rect) { return CGContextConvertRectToDeviceSpace(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGContextConvertRectToUserSpace(IntPtr context, CGRect rect); public CGRect ConvertRectToUserSpace(CGRect rect) { return CGContextConvertRectToUserSpace(handle, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawLayerInRect(IntPtr context, CGRect rect, IntPtr layer); public void DrawLayer(CGLayer layer, CGRect rect) { if (layer == null) { throw new ArgumentNullException("layer"); } CGContextDrawLayerInRect(handle, rect, layer.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGContextDrawLayerAtPoint(IntPtr context, CGPoint rect, IntPtr layer); public void DrawLayer(CGLayer layer, CGPoint point) { if (layer == null) { throw new ArgumentNullException("layer"); } CGContextDrawLayerAtPoint(handle, point, layer.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextCopyPath(IntPtr context); [Since(4, 0)] public CGPath CopyPath() { return new CGPath(CGContextCopyPath(handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextSetAllowsFontSmoothing(IntPtr context, bool allows); [Since(4, 0)] public void SetAllowsFontSmoothing(bool allows) { CGContextSetAllowsFontSmoothing(handle, allows); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextSetAllowsFontSubpixelPositioning(IntPtr context, bool allows); [Since(4, 0)] public void SetAllowsSubpixelPositioning(bool allows) { CGContextSetAllowsFontSubpixelPositioning(handle, allows); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextSetAllowsFontSubpixelQuantization(IntPtr context, bool allows); [Since(4, 0)] public void SetAllowsFontSubpixelQuantization(bool allows) { CGContextSetAllowsFontSubpixelQuantization(handle, allows); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextSetShouldSubpixelPositionFonts(IntPtr context, bool should); [Since(4, 0)] public void SetShouldSubpixelPositionFonts(bool shouldSubpixelPositionFonts) { CGContextSetShouldSubpixelPositionFonts(handle, shouldSubpixelPositionFonts); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextSetShouldSubpixelQuantizeFonts(IntPtr context, bool should); [Since(4, 0)] public void ShouldSubpixelQuantizeFonts(bool shouldSubpixelQuantizeFonts) { CGContextSetShouldSubpixelQuantizeFonts(handle, shouldSubpixelQuantizeFonts); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextBeginTransparencyLayer(IntPtr context, IntPtr dictionary); public void BeginTransparencyLayer() { CGContextBeginTransparencyLayer(handle, IntPtr.Zero); } public void BeginTransparencyLayer(NSDictionary auxiliaryInfo = null) { CGContextBeginTransparencyLayer(handle, auxiliaryInfo?.Handle ?? IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextBeginTransparencyLayerWithRect(IntPtr context, CGRect rect, IntPtr dictionary); public void BeginTransparencyLayer(CGRect rectangle, NSDictionary auxiliaryInfo = null) { CGContextBeginTransparencyLayerWithRect(handle, rectangle, auxiliaryInfo?.Handle ?? IntPtr.Zero); } public void BeginTransparencyLayer(CGRect rectangle) { CGContextBeginTransparencyLayerWithRect(handle, rectangle, IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGContextEndTransparencyLayer(IntPtr context); public void EndTransparencyLayer() { CGContextEndTransparencyLayer(handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGContextPDF.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreGraphics; public class CGContextPDF : CGContext { private bool closed; [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFContextCreateWithURL(IntPtr url, ref CGRect rect, IntPtr dictionary); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFContextCreateWithURL(IntPtr url, IntPtr rect, IntPtr dictionary); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFContextCreate(IntPtr dataConsumer, ref CGRect rect, IntPtr dictionary); public CGContextPDF(CGDataConsumer dataConsumer, CGRect mediaBox, CGPDFInfo info) { if (dataConsumer == null) { throw new ArgumentNullException("dataConsumer"); } handle = CGPDFContextCreate(dataConsumer.Handle, ref mediaBox, info?.ToDictionary().Handle ?? IntPtr.Zero); } public CGContextPDF(NSUrl url, CGRect mediaBox, CGPDFInfo info) { if (url == null) { throw new ArgumentNullException("url"); } handle = CGPDFContextCreateWithURL(url.Handle, ref mediaBox, info?.ToDictionary().Handle ?? IntPtr.Zero); } public CGContextPDF(NSUrl url, CGRect mediaBox) { if (url == null) { throw new ArgumentNullException("url"); } handle = CGPDFContextCreateWithURL(url.Handle, ref mediaBox, IntPtr.Zero); } public CGContextPDF(NSUrl url, CGPDFInfo info) { if (url == null) { throw new ArgumentNullException("url"); } handle = CGPDFContextCreateWithURL(url.Handle, IntPtr.Zero, info?.ToDictionary().Handle ?? IntPtr.Zero); } public CGContextPDF(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } handle = CGPDFContextCreateWithURL(url.Handle, IntPtr.Zero, IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextClose(IntPtr handle); public void Close() { if (!closed) { CGPDFContextClose(handle); closed = true; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextBeginPage(IntPtr handle, IntPtr dict); public void BeginPage(CGPDFPageInfo info) { CGPDFContextBeginPage(handle, info?.ToDictionary().Handle ?? IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextEndPage(IntPtr handle); public new void EndPage() { CGPDFContextEndPage(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextAddDocumentMetadata(IntPtr handle, IntPtr nsDataHandle); public void AddDocumentMetadata(NSData data) { if (data != null) { CGPDFContextAddDocumentMetadata(handle, data.Handle); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextSetURLForRect(IntPtr handle, IntPtr urlh, CGRect rect); public void SetUrl(NSUrl url, CGRect region) { if (url == null) { throw new ArgumentNullException("url"); } CGPDFContextSetURLForRect(handle, url.Handle, region); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextAddDestinationAtPoint(IntPtr handle, IntPtr cfstring, CGPoint point); public void AddDestination(string name, CGPoint point) { if (name == null) { throw new ArgumentNullException("name"); } CGPDFContextAddDestinationAtPoint(handle, new NSString(name).Handle, point); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFContextSetDestinationForRect(IntPtr handle, IntPtr cfstr, CGRect rect); public void SetDestination(string name, CGRect rect) { if (name == null) { throw new ArgumentNullException("name"); } CGPDFContextSetDestinationForRect(handle, new NSString(name).Handle, rect); } protected override void Dispose(bool disposing) { if (disposing) { Close(); } base.Dispose(disposing); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGDataConsumer.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGDataConsumer : INativeObject, IDisposable { internal IntPtr handle; private IntPtr buffer; private byte[] reference; public IntPtr Handle => handle; public CGDataConsumer(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGDataConsumer(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGDataConsumerRetain(handle); } } ~CGDataConsumer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGDataConsumerRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGDataConsumerRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { if (buffer != IntPtr.Zero) { Marshal.FreeHGlobal(buffer); } buffer = IntPtr.Zero; CGDataConsumerRelease(handle); handle = IntPtr.Zero; } reference = null; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGDataConsumerCreateWithCFData(IntPtr data); public CGDataConsumer(NSMutableData data) { handle = CGDataConsumerCreateWithCFData(data.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGDataProvider.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGDataProvider : INativeObject, IDisposable { internal IntPtr handle; private IntPtr buffer; private byte[] reference; public IntPtr Handle => handle; [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGDataProviderCopyData(IntPtr handle); public NSData CopyData() { IntPtr intPtr = CGDataProviderCopyData(handle); NSData result = new NSData(intPtr); CGDataProviderRelease(intPtr); return result; } public CGDataProvider(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGDataProvider(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGDataProviderRetain(handle); } } ~CGDataProvider() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGDataProviderRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGDataProviderRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { if (buffer != IntPtr.Zero) { Marshal.FreeHGlobal(buffer); } buffer = IntPtr.Zero; CGDataProviderRelease(handle); handle = IntPtr.Zero; } reference = null; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGDataProviderCreateWithFilename(string filename); public static CGDataProvider FromFile(string file) { if (file == null) { throw new ArgumentNullException("file"); } IntPtr intPtr = CGDataProviderCreateWithFilename(file); if (intPtr == IntPtr.Zero) { return null; } return new CGDataProvider(intPtr, owns: true); } public CGDataProvider(string file) { if (file == null) { throw new ArgumentNullException("file"); } handle = CGDataProviderCreateWithFilename(file); if (handle == IntPtr.Zero) { throw new ArgumentException("Could not create provider from the specified file"); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGDataProviderCreateWithData(IntPtr info, IntPtr data, IntPtr size, IntPtr releaseData); public CGDataProvider(IntPtr memoryBlock, int size) { handle = CGDataProviderCreateWithData(IntPtr.Zero, memoryBlock, new IntPtr(size), IntPtr.Zero); } public CGDataProvider(IntPtr memoryBlock, int size, bool ownBuffer) { handle = CGDataProviderCreateWithData(IntPtr.Zero, memoryBlock, new IntPtr(size), IntPtr.Zero); if (ownBuffer) { buffer = memoryBlock; } } public unsafe CGDataProvider(byte[] buffer, int offset, int count) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (offset < 0 || offset > buffer.Length) { throw new ArgumentException("offset"); } if (offset + count > buffer.Length) { throw new ArgumentException("offset"); } reference = buffer; fixed (byte* ptr = &buffer[offset]) { handle = CGDataProviderCreateWithData(IntPtr.Zero, (IntPtr)ptr, new IntPtr(count), IntPtr.Zero); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGFont.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGFont : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int NumberOfGlyphs => CGFontGetNumberOfGlyphs(handle); public int UnitsPerEm => CGFontGetUnitsPerEm(handle); public string PostScriptName { get { using CFString cFString = new CFString(CGFontCopyPostScriptName(handle), owns: true); return cFString; } } public string FullName { get { using CFString cFString = new CFString(CGFontCopyFullName(handle), owns: true); return cFString; } } public int Ascent => CGFontGetAscent(handle); public int Descent => CGFontGetDescent(handle); public int Leading => CGFontGetLeading(handle); public int CapHeight => CGFontGetCapHeight(handle); public int XHeight => CGFontGetXHeight(handle); public CGRect FontBBox => CGFontGetFontBBox(handle); public double ItalicAngle => CGFontGetItalicAngle(handle); public double StemV => CGFontGetStemV(handle); [Preserve(Conditional = true)] internal CGFont(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } this.handle = handle; if (!owns) { CGFontRetain(handle); } } ~CGFont() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontRetain(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGFontRelease(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGFontRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontCreateWithDataProvider(IntPtr provider); public static CGFont CreateFromProvider(CGDataProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } return new CGFont(CGFontCreateWithDataProvider(provider.Handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontCreateWithFontName(IntPtr CFStringRef_name); public static CGFont CreateWithFontName(string name) { using CFString cFString = (CFString)name; return new CGFont(CGFontCreateWithFontName(cFString.handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetNumberOfGlyphs(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetUnitsPerEm(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontCopyPostScriptName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontCopyFullName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetAscent(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetDescent(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetLeading(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetCapHeight(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGFontGetXHeight(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGFontGetFontBBox(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGFontGetItalicAngle(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGFontGetStemV(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern ushort CGFontGetGlyphWithGlyphName(IntPtr font, IntPtr CFStringRef_name); public ushort GetGlyphWithGlyphName(string s) { using CFString cFString = new CFString(s); return CGFontGetGlyphWithGlyphName(handle, cFString.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFontCopyGlyphNameForGlyph(IntPtr font, ushort glyph); public string GlyphNameForGlyph(ushort glyph) { using CFString cFString = new CFString(CGFontCopyGlyphNameForGlyph(handle, glyph), owns: true); return cFString; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", EntryPoint = "CGFontGetTypeID")] public static extern int GetTypeID(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGFunction.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGFunction : INativeObject, IDisposable { private unsafe delegate void CGFunctionEvaluateCallback(IntPtr info, double* data, double* outData); private struct CGFunctionCallbacks { public uint version; public CGFunctionEvaluateCallback evaluate; public IntPtr release; } public unsafe delegate void CGFunctionEvaluate(double* data, double* outData); internal IntPtr handle; private GCHandle gch; private CGFunctionEvaluate evaluate; public IntPtr Handle => handle; internal CGFunction(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGFunction(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGFunctionRetain(handle); } } ~CGFunction() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGFunctionRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGFunctionRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGFunctionRelease(handle); handle = IntPtr.Zero; gch.Free(); evaluate = null; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGFunctionCreate(IntPtr data, IntPtr domainCount, double[] domain, IntPtr rangeDomain, double[] range, ref CGFunctionCallbacks callbacks); public unsafe CGFunction(double[] domain, double[] range, CGFunctionEvaluate callback) { if (domain != null && domain.Length % 2 != 0) { throw new ArgumentException("The domain array must consist of pairs of values", "domain"); } if (range != null && range.Length % 2 != 0) { throw new ArgumentException("The range array must consist of pairs of values", "range"); } if (callback == null) { throw new ArgumentNullException("callback"); } evaluate = callback; CGFunctionCallbacks callbacks = default(CGFunctionCallbacks); callbacks.version = 0u; callbacks.evaluate = EvaluateCallback; callbacks.release = IntPtr.Zero; gch = GCHandle.Alloc(this); handle = CGFunctionCreate(GCHandle.ToIntPtr(gch), (domain != null) ? new IntPtr(domain.Length / 2) : IntPtr.Zero, domain, (range != null) ? new IntPtr(range.Length / 2) : IntPtr.Zero, range, ref callbacks); } private unsafe static void EvaluateCallback(IntPtr info, double* input, double* output) { ((CGFunction)GCHandle.FromIntPtr(info).Target).evaluate(input, output); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGGradient.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGGradient : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; [Preserve(Conditional = true)] internal CGGradient(IntPtr handle, bool owns) { if (!owns) { CGGradientRetain(handle); } this.handle = handle; } ~CGGradient() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGGradientRetain(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGGradientRelease(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGGradientRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGGradientCreateWithColorComponents(IntPtr colorspace, double[] components, double[] locations, IntPtr size_t_count); public CGGradient(CGColorSpace colorspace, double[] components, double[] locations) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (components == null) { throw new ArgumentNullException("components"); } handle = CGGradientCreateWithColorComponents(colorspace.handle, components, locations, new IntPtr(components.Length / (colorspace.Components + 1))); } public CGGradient(CGColorSpace colorspace, double[] components) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (components == null) { throw new ArgumentNullException("components"); } handle = CGGradientCreateWithColorComponents(colorspace.handle, components, null, new IntPtr(components.Length / (colorspace.Components + 1))); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGGradientCreateWithColors(IntPtr colorspace, IntPtr colors, double[] locations); public CGGradient(CGColorSpace colorspace, CGColor[] colors, double[] locations) { if (colors == null) { throw new ArgumentNullException("colors"); } IntPtr colorspace2 = colorspace?.handle ?? IntPtr.Zero; using CFArray cFArray = CFArray.FromNativeObjects(colors); handle = CGGradientCreateWithColors(colorspace2, cFArray.Handle, locations); } public CGGradient(CGColorSpace colorspace, CGColor[] colors) { if (colors == null) { throw new ArgumentNullException("colors"); } IntPtr colorspace2 = colorspace?.handle ?? IntPtr.Zero; using CFArray cFArray = CFArray.FromNativeObjects(colors); handle = CGGradientCreateWithColors(colorspace2, cFArray.Handle, null); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGGradientDrawingOptions.cs ================================================ using System; namespace CoreGraphics; [Flags] public enum CGGradientDrawingOptions { DrawsBeforeStartLocation = 1, DrawsAfterEndLocation = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImage.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGImage : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public bool IsMask => CGImageIsMask(handle) != 0; public int Width => CGImageGetWidth(handle).ToInt32(); public int Height => CGImageGetHeight(handle).ToInt32(); public int BitsPerComponent => CGImageGetBitsPerComponent(handle).ToInt32(); public int BitsPerPixel => CGImageGetBitsPerPixel(handle).ToInt32(); public int BytesPerRow => CGImageGetBytesPerRow(handle).ToInt32(); public CGColorSpace ColorSpace => new CGColorSpace(CGImageGetColorSpace(handle)); public CGImageAlphaInfo AlphaInfo => CGImageGetAlphaInfo(handle); public CGDataProvider DataProvider => new CGDataProvider(CGImageGetDataProvider(handle)); public unsafe double* Decode => CGImageGetDecode(handle); public bool ShouldInterpolate => CGImageGetShouldInterpolate(handle) != 0; public CGColorRenderingIntent RenderingIntent => CGImageGetRenderingIntent(handle); public CGBitmapFlags BitmapInfo => CGImageGetBitmapInfo(handle); public CGImage(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGImage(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGImageRetain(handle); } } ~CGImage() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGImageRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGImageRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGImageRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreate(IntPtr size_t_width, IntPtr size_t_height, IntPtr size_t_bitsPerComponent, IntPtr size_t_bitsPerPixel, IntPtr size_t_bytesPerRow, IntPtr space, CGBitmapFlags bitmapInfo, IntPtr provider, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent); public CGImage(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGColorSpace colorSpace, CGBitmapFlags bitmapFlags, CGDataProvider provider, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent) { if (colorSpace == null) { throw new ArgumentNullException("colorSpace"); } if (width < 0) { throw new ArgumentException("width"); } if (height < 0) { throw new ArgumentException("height"); } if (bitsPerPixel < 0) { throw new ArgumentException("bitsPerPixel"); } if (bitsPerComponent < 0) { throw new ArgumentException("bitsPerComponent"); } if (bytesPerRow < 0) { throw new ArgumentException("bytesPerRow"); } handle = CGImageCreate(new IntPtr(width), new IntPtr(height), new IntPtr(bitsPerComponent), new IntPtr(bitsPerPixel), new IntPtr(bytesPerRow), colorSpace.Handle, bitmapFlags, provider?.Handle ?? IntPtr.Zero, decode, shouldInterpolate, intent); } public CGImage(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGColorSpace colorSpace, CGImageAlphaInfo alphaInfo, CGDataProvider provider, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent) { if (colorSpace == null) { throw new ArgumentNullException("colorSpace"); } if (width < 0) { throw new ArgumentException("width"); } if (height < 0) { throw new ArgumentException("height"); } if (bitsPerPixel < 0) { throw new ArgumentException("bitsPerPixel"); } if (bitsPerComponent < 0) { throw new ArgumentException("bitsPerComponent"); } if (bytesPerRow < 0) { throw new ArgumentException("bytesPerRow"); } handle = CGImageCreate(new IntPtr(width), new IntPtr(height), new IntPtr(bitsPerComponent), new IntPtr(bitsPerPixel), new IntPtr(bytesPerRow), colorSpace.Handle, (CGBitmapFlags)alphaInfo, provider?.Handle ?? IntPtr.Zero, decode, shouldInterpolate, intent); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption); public static CGImage ScreenImage(int windownumber, CGRect bounds) { return new CGImage(CGWindowListCreateImage(bounds, CGWindowListOption.IncludingWindow, (uint)windownumber, CGWindowImageOption.Default), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateWithJPEGDataProvider(IntPtr source, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent); public static CGImage FromJPEG(CGDataProvider provider, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent) { if (provider == null) { throw new ArgumentNullException("provider"); } IntPtr intPtr = CGImageCreateWithJPEGDataProvider(provider.Handle, decode, shouldInterpolate, intent); if (intPtr == IntPtr.Zero) { return null; } return new CGImage(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateWithPNGDataProvider(IntPtr source, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent); public static CGImage FromPNG(CGDataProvider provider, double[] decode, bool shouldInterpolate, CGColorRenderingIntent intent) { if (provider == null) { throw new ArgumentNullException("provider"); } IntPtr intPtr = CGImageCreateWithPNGDataProvider(provider.Handle, decode, shouldInterpolate, intent); if (intPtr == IntPtr.Zero) { return null; } return new CGImage(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageMaskCreate(IntPtr size_t_width, IntPtr size_t_height, IntPtr size_t_bitsPerComponent, IntPtr size_t_bitsPerPixel, IntPtr size_t_bytesPerRow, IntPtr provider, double[] decode, bool shouldInterpolate); public static CGImage CreateMask(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGDataProvider provider, double[] decode, bool shouldInterpolate) { if (width < 0) { throw new ArgumentException("width"); } if (height < 0) { throw new ArgumentException("height"); } if (bitsPerPixel < 0) { throw new ArgumentException("bitsPerPixel"); } if (bytesPerRow < 0) { throw new ArgumentException("bytesPerRow"); } if (provider == null) { throw new ArgumentNullException("provider"); } IntPtr intPtr = CGImageMaskCreate(new IntPtr(width), new IntPtr(height), new IntPtr(bitsPerComponent), new IntPtr(bitsPerPixel), new IntPtr(bytesPerRow), provider.Handle, decode, shouldInterpolate); if (intPtr == IntPtr.Zero) { return null; } return new CGImage(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateWithMaskingColors(IntPtr image, double[] components); public CGImage WithMaskingColors(double[] components) { int num = 2 * ColorSpace.Components; if (components == null) { throw new ArgumentNullException("components"); } if (components.Length != num) { throw new ArgumentException("The argument 'components' must have 2N values, where N is the number of components in the color space of the image.", "components"); } return new CGImage(CGImageCreateWithMaskingColors(Handle, components), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateCopy(IntPtr image); public CGImage Clone() { return new CGImage(CGImageCreateCopy(handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateCopyWithColorSpace(IntPtr image, IntPtr space); public CGImage WithColorSpace(CGColorSpace cs) { return new CGImage(CGImageCreateCopyWithColorSpace(handle, cs.handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateWithImageInRect(IntPtr image, CGRect rect); public CGImage WithImageInRect(CGRect rect) { return new CGImage(CGImageCreateWithImageInRect(handle, rect), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageCreateWithMask(IntPtr image, IntPtr mask); public CGImage WithMask(CGImage mask) { return new CGImage(CGImageCreateWithMask(handle, mask.handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGImageIsMask(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetWidth(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetHeight(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetBitsPerComponent(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetBitsPerPixel(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetBytesPerRow(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetColorSpace(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGImageAlphaInfo CGImageGetAlphaInfo(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGImageGetDataProvider(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private unsafe static extern double* CGImageGetDecode(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGImageGetShouldInterpolate(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGColorRenderingIntent CGImageGetRenderingIntent(IntPtr image); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGBitmapFlags CGImageGetBitmapInfo(IntPtr image); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImageAlphaInfo.cs ================================================ namespace CoreGraphics; public enum CGImageAlphaInfo { None, PremultipliedLast, PremultipliedFirst, Last, First, NoneSkipLast, NoneSkipFirst, Only } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImageColorModel.cs ================================================ namespace CoreGraphics; public enum CGImageColorModel { RGB, Gray, CMYK, Lab } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImageProperties.cs ================================================ using System; using CoreImage; using Foundation; using ImageIO; namespace CoreGraphics; public class CGImageProperties : DictionaryContainer { public bool? Alpha { get { return GetBoolValue(ImageIO.CGImageProperties.HasAlpha); } set { SetBooleanValue(ImageIO.CGImageProperties.HasAlpha, value); } } public CGImageColorModel? ColorModel { get { string nSStringValue = GetNSStringValue(ImageIO.CGImageProperties.ColorModel); if (nSStringValue == ImageIO.CGImageProperties.ColorModelRGB) { return CGImageColorModel.RGB; } if (nSStringValue == ImageIO.CGImageProperties.ColorModelGray) { return CGImageColorModel.Gray; } if (nSStringValue == ImageIO.CGImageProperties.ColorModelCMYK) { return CGImageColorModel.CMYK; } if (nSStringValue == ImageIO.CGImageProperties.ColorModelLab) { return CGImageColorModel.Lab; } return null; } set { SetNativeValue(value: value switch { CGImageColorModel.RGB => ImageIO.CGImageProperties.ColorModelRGB, CGImageColorModel.Gray => ImageIO.CGImageProperties.ColorModelGray, CGImageColorModel.CMYK => ImageIO.CGImageProperties.ColorModelCMYK, CGImageColorModel.Lab => ImageIO.CGImageProperties.ColorModelLab, _ => throw new ArgumentOutOfRangeException("value"), }, key: ImageIO.CGImageProperties.ColorModel); } } public int? Depth { get { return GetInt32Value(ImageIO.CGImageProperties.Depth); } set { SetNumberValue(ImageIO.CGImageProperties.Depth, value); } } [Obsolete("Use the DPIHeightF property")] public int? DPIHeight { get { return GetInt32Value(ImageIO.CGImageProperties.DPIHeight); } set { SetNumberValue(ImageIO.CGImageProperties.DPIHeight, value); } } [Obsolete("Use the DPIWidthF property")] public int? DPIWidth { get { return GetInt32Value(ImageIO.CGImageProperties.DPIWidth); } set { SetNumberValue(ImageIO.CGImageProperties.DPIWidth, value); } } public float? DPIHeightF { get { return GetFloatValue(ImageIO.CGImageProperties.DPIHeight); } set { SetNumberValue(ImageIO.CGImageProperties.DPIHeight, value); } } public float? DPIWidthF { get { return GetFloatValue(ImageIO.CGImageProperties.DPIWidth); } set { SetNumberValue(ImageIO.CGImageProperties.DPIWidth, value); } } public int? FileSize { get { return GetInt32Value(ImageIO.CGImageProperties.FileSize); } set { SetNumberValue(ImageIO.CGImageProperties.FileSize, value); } } public bool? IsFloat { get { return GetBoolValue(ImageIO.CGImageProperties.IsFloat); } set { SetBooleanValue(ImageIO.CGImageProperties.IsFloat, value); } } public bool? IsIndexed { get { return GetBoolValue(ImageIO.CGImageProperties.IsIndexed); } set { SetBooleanValue(ImageIO.CGImageProperties.IsIndexed, value); } } public CIImageOrientation? Orientation { get { return (CIImageOrientation?)GetInt32Value(ImageIO.CGImageProperties.Orientation); } set { SetNumberValue(ImageIO.CGImageProperties.Orientation, (int?)value); } } public int? PixelHeight { get { return GetInt32Value(ImageIO.CGImageProperties.PixelHeight); } set { SetNumberValue(ImageIO.CGImageProperties.PixelHeight, value); } } public int? PixelWidth { get { return GetInt32Value(ImageIO.CGImageProperties.PixelWidth); } set { SetNumberValue(ImageIO.CGImageProperties.PixelWidth, value); } } public string ProfileName { get { return GetStringValue(ImageIO.CGImageProperties.ProfileName); } set { SetStringValue(ImageIO.CGImageProperties.ProfileName, value); } } public CGImagePropertiesExif Exif { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.ExifDictionary); if (nSDictionary != null) { return new CGImagePropertiesExif(nSDictionary); } return null; } } public CGImagePropertiesGps Gps { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.GPSDictionary); if (nSDictionary != null) { return new CGImagePropertiesGps(nSDictionary); } return null; } } public CGImagePropertiesIptc Iptc { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.IPTCDictionary); if (nSDictionary != null) { return new CGImagePropertiesIptc(nSDictionary); } return null; } } public CGImagePropertiesPng Png { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.PNGDictionary); if (nSDictionary != null) { return new CGImagePropertiesPng(nSDictionary); } return null; } } public CGImagePropertiesJfif Jfif { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.JFIFDictionary); if (nSDictionary != null) { return new CGImagePropertiesJfif(nSDictionary); } return null; } } public CGImagePropertiesTiff Tiff { get { NSDictionary nSDictionary = GetNSDictionary(ImageIO.CGImageProperties.TIFFDictionary); if (nSDictionary != null) { return new CGImagePropertiesTiff(nSDictionary); } return null; } } public CGImageProperties() : base(new NSMutableDictionary()) { } public CGImageProperties(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesExif.cs ================================================ using System; using Foundation; using ImageIO; namespace CoreGraphics; public class CGImagePropertiesExif : DictionaryContainer { public float? Aperture { get { return GetFloatValue(ImageIO.CGImageProperties.ExifApertureValue); } set { SetNumberValue(ImageIO.CGImageProperties.ExifApertureValue, value); } } public float? Brightness { get { return GetFloatValue(ImageIO.CGImageProperties.ExifBrightnessValue); } set { SetNumberValue(ImageIO.CGImageProperties.ExifBrightnessValue, value); } } public float? CompressedBitsPerPixel { get { return GetFloatValue(ImageIO.CGImageProperties.ExifCompressedBitsPerPixel); } set { SetNumberValue(ImageIO.CGImageProperties.ExifCompressedBitsPerPixel, value); } } public float? DigitalZoomRatio { get { return GetFloatValue(ImageIO.CGImageProperties.ExifDigitalZoomRatio); } set { SetNumberValue(ImageIO.CGImageProperties.ExifDigitalZoomRatio, value); } } public float? ExposureBias { get { return GetFloatValue(ImageIO.CGImageProperties.ExifExposureBiasValue); } set { SetNumberValue(ImageIO.CGImageProperties.ExifExposureBiasValue, value); } } public float? ExposureIndex { get { return GetFloatValue(ImageIO.CGImageProperties.ExifExposureIndex); } set { SetNumberValue(ImageIO.CGImageProperties.ExifExposureIndex, value); } } public float? ExposureTime { get { return GetFloatValue(ImageIO.CGImageProperties.ExifExposureTime); } set { SetNumberValue(ImageIO.CGImageProperties.ExifExposureTime, value); } } public int? ExposureProgram { get { return GetInt32Value(ImageIO.CGImageProperties.ExifExposureProgram); } set { SetNumberValue(ImageIO.CGImageProperties.ExifExposureProgram, value); } } public bool? Flash { get { return GetBoolValue(ImageIO.CGImageProperties.ExifFlash); } set { SetBooleanValue(ImageIO.CGImageProperties.ExifFlash, value); } } public float? FlashEnergy { get { return GetFloatValue(ImageIO.CGImageProperties.ExifFlashEnergy); } set { SetNumberValue(ImageIO.CGImageProperties.ExifFlashEnergy, value); } } public float? FocalPlaneXResolution { get { return GetFloatValue(ImageIO.CGImageProperties.ExifFocalPlaneXResolution); } set { SetNumberValue(ImageIO.CGImageProperties.ExifFocalPlaneXResolution, value); } } public float? FocalPlaneYResolution { get { return GetFloatValue(ImageIO.CGImageProperties.ExifFocalPlaneYResolution); } set { SetNumberValue(ImageIO.CGImageProperties.ExifFocalPlaneYResolution, value); } } public float? GainControl { get { return GetFloatValue(ImageIO.CGImageProperties.ExifGainControl); } set { SetNumberValue(ImageIO.CGImageProperties.ExifGainControl, value); } } public int[] ISOSpeedRatings => GetArray(ImageIO.CGImageProperties.ExifISOSpeedRatings, (IntPtr l) => new NSNumber(l).Int32Value); public float? MaximumLensAperture { get { return GetFloatValue(ImageIO.CGImageProperties.ExifMaxApertureValue); } set { SetNumberValue(ImageIO.CGImageProperties.ExifMaxApertureValue, value); } } public int? PixelXDimension { get { return GetInt32Value(ImageIO.CGImageProperties.ExifPixelXDimension); } set { SetNumberValue(ImageIO.CGImageProperties.ExifPixelXDimension, value); } } public int? PixelYDimension { get { return GetInt32Value(ImageIO.CGImageProperties.ExifPixelYDimension); } set { SetNumberValue(ImageIO.CGImageProperties.ExifPixelYDimension, value); } } public float? SubjectDistance { get { return GetFloatValue(ImageIO.CGImageProperties.ExifSubjectDistance); } set { SetNumberValue(ImageIO.CGImageProperties.ExifSubjectDistance, value); } } public float? ShutterSpeed { get { return GetFloatValue(ImageIO.CGImageProperties.ExifShutterSpeedValue); } set { SetNumberValue(ImageIO.CGImageProperties.ExifShutterSpeedValue, value); } } public CGImagePropertiesExif() : base(new NSMutableDictionary()) { } public CGImagePropertiesExif(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesGps.cs ================================================ using Foundation; using ImageIO; namespace CoreGraphics; public class CGImagePropertiesGps : DictionaryContainer { public int? Altitude { get { return GetInt32Value(ImageIO.CGImageProperties.GPSAltitude); } set { SetNumberValue(ImageIO.CGImageProperties.GPSAltitude, value); } } public float? Latitude { get { return GetFloatValue(ImageIO.CGImageProperties.GPSLatitude); } set { SetNumberValue(ImageIO.CGImageProperties.GPSLatitude, value); } } public float? Longitude { get { return GetFloatValue(ImageIO.CGImageProperties.GPSLongitude); } set { SetNumberValue(ImageIO.CGImageProperties.GPSLongitude, value); } } public CGImagePropertiesGps() : base(new NSMutableDictionary()) { } public CGImagePropertiesGps(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesIptc.cs ================================================ using Foundation; using ImageIO; namespace CoreGraphics; public class CGImagePropertiesIptc : DictionaryContainer { public string Byline { get { return GetStringValue(ImageIO.CGImageProperties.IPTCByline); } set { SetStringValue(ImageIO.CGImageProperties.IPTCByline, value); } } public string BylineTitle { get { return GetStringValue(ImageIO.CGImageProperties.IPTCBylineTitle); } set { SetStringValue(ImageIO.CGImageProperties.IPTCBylineTitle, value); } } public string CaptionAbstract { get { return GetStringValue(ImageIO.CGImageProperties.IPTCCaptionAbstract); } set { SetStringValue(ImageIO.CGImageProperties.IPTCCaptionAbstract, value); } } public string City { get { return GetStringValue(ImageIO.CGImageProperties.IPTCCity); } set { SetStringValue(ImageIO.CGImageProperties.IPTCCity, value); } } public string ContentLocationName { get { return GetStringValue(ImageIO.CGImageProperties.IPTCContentLocationName); } set { SetStringValue(ImageIO.CGImageProperties.IPTCContentLocationName, value); } } public string CountryPrimaryLocationName { get { return GetStringValue(ImageIO.CGImageProperties.IPTCCountryPrimaryLocationName); } set { SetStringValue(ImageIO.CGImageProperties.IPTCCountryPrimaryLocationName, value); } } public string CopyrightNotice { get { return GetStringValue(ImageIO.CGImageProperties.IPTCCopyrightNotice); } set { SetStringValue(ImageIO.CGImageProperties.IPTCCopyrightNotice, value); } } public string Credit { get { return GetStringValue(ImageIO.CGImageProperties.IPTCCredit); } set { SetStringValue(ImageIO.CGImageProperties.IPTCCredit, value); } } public string Source { get { return GetStringValue(ImageIO.CGImageProperties.IPTCSource); } set { SetStringValue(ImageIO.CGImageProperties.IPTCSource, value); } } public string WriterEditor { get { return GetStringValue(ImageIO.CGImageProperties.IPTCWriterEditor); } set { SetStringValue(ImageIO.CGImageProperties.IPTCWriterEditor, value); } } public CGImagePropertiesIptc() : base(new NSMutableDictionary()) { } public CGImagePropertiesIptc(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesJfif.cs ================================================ using Foundation; using ImageIO; namespace CoreGraphics; public class CGImagePropertiesJfif : DictionaryContainer { public int? XDensity { get { return GetInt32Value(ImageIO.CGImageProperties.JFIFXDensity); } set { SetNumberValue(ImageIO.CGImageProperties.JFIFXDensity, value); } } public int? YDensity { get { return GetInt32Value(ImageIO.CGImageProperties.JFIFYDensity); } set { SetNumberValue(ImageIO.CGImageProperties.JFIFYDensity, value); } } public CGImagePropertiesJfif() : base(new NSMutableDictionary()) { } public CGImagePropertiesJfif(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesPng.cs ================================================ using Foundation; using ImageIO; using ObjCRuntime; namespace CoreGraphics; public class CGImagePropertiesPng : DictionaryContainer { [Since(5, 0)] public string Author { get { return GetStringValue(ImageIO.CGImageProperties.PNGAuthor); } set { SetStringValue(ImageIO.CGImageProperties.PNGAuthor, value); } } [Since(5, 0)] public string Description { get { return GetStringValue(ImageIO.CGImageProperties.PNGDescription); } set { SetStringValue(ImageIO.CGImageProperties.PNGDescription, value); } } public float? Gamma { get { return GetFloatValue(ImageIO.CGImageProperties.PNGGamma); } set { SetNumberValue(ImageIO.CGImageProperties.PNGGamma, value); } } [Since(5, 0)] public string Software { get { return GetStringValue(ImageIO.CGImageProperties.PNGSoftware); } set { SetStringValue(ImageIO.CGImageProperties.PNGSoftware, value); } } public int? XPixelsPerMeter { get { return GetInt32Value(ImageIO.CGImageProperties.PNGXPixelsPerMeter); } set { SetNumberValue(ImageIO.CGImageProperties.PNGXPixelsPerMeter, value); } } public int? YPixelsPerMeter { get { return GetInt32Value(ImageIO.CGImageProperties.PNGYPixelsPerMeter); } set { SetNumberValue(ImageIO.CGImageProperties.PNGYPixelsPerMeter, value); } } [Since(5, 0)] public string Title { get { return GetStringValue(ImageIO.CGImageProperties.PNGTitle); } set { SetStringValue(ImageIO.CGImageProperties.PNGTitle, value); } } public CGImagePropertiesPng() : base(new NSMutableDictionary()) { } public CGImagePropertiesPng(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGImagePropertiesTiff.cs ================================================ using CoreImage; using Foundation; using ImageIO; namespace CoreGraphics; public class CGImagePropertiesTiff : DictionaryContainer { public CIImageOrientation? Orientation { get { return (CIImageOrientation?)GetInt32Value(ImageIO.CGImageProperties.TIFFOrientation); } set { SetNumberValue(ImageIO.CGImageProperties.TIFFOrientation, (int?)value); } } public int? XResolution { get { return GetInt32Value(ImageIO.CGImageProperties.TIFFXResolution); } set { SetNumberValue(ImageIO.CGImageProperties.TIFFXResolution, value); } } public int? YResolution { get { return GetInt32Value(ImageIO.CGImageProperties.TIFFYResolution); } set { SetNumberValue(ImageIO.CGImageProperties.TIFFYResolution, value); } } public string Software { get { return GetStringValue(ImageIO.CGImageProperties.TIFFSoftware); } set { SetStringValue(ImageIO.CGImageProperties.TIFFSoftware, value); } } public CGImagePropertiesTiff() : base(new NSMutableDictionary()) { } public CGImagePropertiesTiff(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGInterpolationQuality.cs ================================================ namespace CoreGraphics; public enum CGInterpolationQuality { Default, None, Low, High, Medium } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGLayer.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGLayer : INativeObject, IDisposable { private IntPtr handle; public IntPtr Handle => handle; public CGSize Size => CGLayerGetSize(handle); public CGContext Context => new CGContext(CGLayerGetContext(handle)); internal CGLayer(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to layer creation"); } this.handle = handle; CGLayerRetain(handle); } [Preserve(Conditional = true)] internal CGLayer(IntPtr handle, bool owns) { if (!owns) { CGLayerRetain(handle); } this.handle = handle; } ~CGLayer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGLayerRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGLayerRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGLayerRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGSize CGLayerGetSize(IntPtr layer); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGLayerGetContext(IntPtr layer); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGLayerCreateWithContext(IntPtr context, CGSize size, IntPtr dictionary); public static CGLayer Create(CGContext context, CGSize size) { return new CGLayer(CGLayerCreateWithContext(context.Handle, size, IntPtr.Zero), owns: true); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGLineCap.cs ================================================ namespace CoreGraphics; public enum CGLineCap { Butt, Round, Square } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGLineJoin.cs ================================================ namespace CoreGraphics; public enum CGLineJoin { Miter, Round, Bevel } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFArray.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreGraphics; public class CGPDFArray : INativeObject { internal IntPtr handle; public IntPtr Handle => handle; public int Count => (int)CGPDFArrayGetCount(handle); public CGPDFArray(IntPtr handle) { this.handle = handle; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFArrayGetCount(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetBoolean(IntPtr handle, IntPtr idx, out bool result); public bool GetBoolean(int idx, out bool result) { return CGPDFArrayGetBoolean(handle, (IntPtr)idx, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetInteger(IntPtr handle, IntPtr idx, out int result); public bool GetInt(int idx, out int result) { return CGPDFArrayGetInteger(handle, (IntPtr)idx, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetNumber(IntPtr handle, IntPtr idx, out double result); public bool GetFloat(int idx, out double result) { return CGPDFArrayGetNumber(handle, (IntPtr)idx, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetName(IntPtr handle, IntPtr idx, out IntPtr result); public bool GetName(int idx, out string result) { if (!CGPDFArrayGetName(handle, (IntPtr)idx, out var result2)) { result = null; return false; } result = Marshal.PtrToStringAnsi(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetDictionary(IntPtr handle, IntPtr idx, out IntPtr result); public bool GetDictionary(int idx, out CGPDFDictionary result) { if (!CGPDFArrayGetDictionary(handle, (IntPtr)idx, out var result2)) { result = null; return false; } result = new CGPDFDictionary(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetStream(IntPtr handle, IntPtr idx, out IntPtr result); public bool GetStream(int idx, out CGPDFStream result) { if (!CGPDFArrayGetStream(handle, (IntPtr)idx, out var result2)) { result = null; return false; } result = new CGPDFStream(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetArray(IntPtr handle, IntPtr idx, out IntPtr result); public bool GetArray(int idx, out CGPDFArray array) { if (!CGPDFArrayGetArray(handle, (IntPtr)idx, out var result)) { array = null; return false; } array = new CGPDFArray(result); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFArrayGetString(IntPtr handle, IntPtr idx, out IntPtr result); public bool GetString(int idx, out string result) { if (CGPDFArrayGetString(handle, (IntPtr)idx, out var result2)) { result = CGPDFString.ToString(result2); return true; } result = null; return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFBox.cs ================================================ namespace CoreGraphics; public enum CGPDFBox { Media, Crop, Bleed, Trim, Art } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFDictionary.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreGraphics; public class CGPDFDictionary : INativeObject { private delegate void ApplierFunction(string key, IntPtr pdfObject, IntPtr info); internal IntPtr handle; public IntPtr Handle => handle; public int Count => (int)CGPDFDictionaryGetCount(handle); public CGPDFDictionary(IntPtr handle) { this.handle = handle; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDictionaryGetCount(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetBoolean(IntPtr handle, string key, out bool result); public bool GetBoolean(string key, out bool result) { if (key == null) { throw new ArgumentNullException("key"); } return CGPDFDictionaryGetBoolean(handle, key, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetInteger(IntPtr handle, string key, out int result); public bool GetInt(string key, out int result) { if (key == null) { throw new ArgumentNullException("key"); } return CGPDFDictionaryGetInteger(handle, key, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetNumber(IntPtr handle, string key, out double result); public bool GetFloat(string key, out double result) { if (key == null) { throw new ArgumentNullException("key"); } return CGPDFDictionaryGetNumber(handle, key, out result); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetName(IntPtr handle, string key, out IntPtr result); public bool GetName(string key, out string result) { if (key == null) { throw new ArgumentNullException("key"); } if (!CGPDFDictionaryGetName(handle, key, out var result2)) { result = null; return false; } result = Marshal.PtrToStringAnsi(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetDictionary(IntPtr handle, string key, out IntPtr result); public bool GetDictionary(string key, out CGPDFDictionary result) { if (key == null) { throw new ArgumentNullException("key"); } if (!CGPDFDictionaryGetDictionary(handle, key, out var result2)) { result = null; return false; } result = new CGPDFDictionary(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetStream(IntPtr handle, string key, out IntPtr result); public bool GetStream(string key, out CGPDFStream result) { if (key == null) { throw new ArgumentNullException("key"); } if (!CGPDFDictionaryGetStream(handle, key, out var result2)) { result = null; return false; } result = new CGPDFStream(result2); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetArray(IntPtr handle, string key, out IntPtr result); public bool GetArray(string key, out CGPDFArray array) { if (key == null) { throw new ArgumentNullException("key"); } if (!CGPDFDictionaryGetArray(handle, key, out var result)) { array = null; return false; } array = new CGPDFArray(result); return true; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFDictionaryApplyFunction(IntPtr dictRef, ApplierFunction function, IntPtr info); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFObjectGetType(IntPtr pdfobj); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFObjectGetValue(IntPtr pdfobj, int type, out byte bvar); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFObjectGetValue(IntPtr pdfobj, int type, out int ivar); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFObjectGetValue(IntPtr pdfobj, int type, out float rvar); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFObjectGetValue(IntPtr pdfobj, int type, out IntPtr ptrvar); private static object MapFromCGPdfObject(IntPtr pdfObj) { IntPtr ptrvar; switch (CGPDFObjectGetType(pdfObj)) { case 1: return null; case 2: { if (CGPDFObjectGetValue(pdfObj, 2, out byte bvar)) { return bvar != 0; } return null; } case 3: { if (CGPDFObjectGetValue(pdfObj, 3, out int ivar)) { return ivar; } return null; } case 4: { if (CGPDFObjectGetValue(pdfObj, 4, out float rvar)) { return rvar; } return null; } case 5: if (CGPDFObjectGetValue(pdfObj, 5, out ptrvar)) { return Marshal.PtrToStringAnsi(ptrvar); } return null; case 6: if (CGPDFObjectGetValue(pdfObj, 6, out ptrvar)) { return CGPDFString.ToString(ptrvar); } return null; case 7: if (CGPDFObjectGetValue(pdfObj, 7, out ptrvar)) { return new CGPDFArray(ptrvar); } return null; case 8: if (CGPDFObjectGetValue(pdfObj, 8, out ptrvar)) { return new CGPDFDictionary(ptrvar); } return null; case 9: if (CGPDFObjectGetValue(pdfObj, 9, out ptrvar)) { return new CGPDFStream(ptrvar); } return null; default: return null; } } private static void ApplyBridge(string key, IntPtr pdfObject, IntPtr info) { ((Action)GCHandle.FromIntPtr(info).Target)(key, MapFromCGPdfObject(pdfObject)); } public void Apply(Action callback) { GCHandle value = GCHandle.Alloc(callback); CGPDFDictionaryApplyFunction(Handle, ApplyBridge, GCHandle.ToIntPtr(value)); value.Free(); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPDFDictionaryGetString(IntPtr handle, string key, out IntPtr result); public bool GetString(string key, out string result) { if (key == null) { throw new ArgumentNullException("key"); } if (CGPDFDictionaryGetString(handle, key, out var result2)) { result = CGPDFString.ToString(result2); return true; } result = null; return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFDocument.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPDFDocument : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int Pages => CGPDFDocumentGetNumberOfPages(handle); public bool IsEncrypted => CGPDFDocumentIsEncrypted(handle) != 0; public bool IsUnlocked => CGPDFDocumentIsUnlocked(handle) != 0; public bool AllowsPrinting => CGPDFDocumentAllowsPrinting(handle) != 0; public bool AllowsCopying => CGPDFDocumentAllowsCopying(handle) != 0; ~CGPDFDocument() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFDocumentRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFDocumentRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGPDFDocumentRelease(handle); handle = IntPtr.Zero; } } public CGPDFDocument(IntPtr handle) { this.handle = handle; CGPDFDocumentRetain(handle); } [Preserve(Conditional = true)] internal CGPDFDocument(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGPDFDocumentRetain(handle); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDocumentCreateWithProvider(IntPtr provider); public CGPDFDocument(CGDataProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } handle = CGPDFDocumentCreateWithProvider(provider.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDocumentCreateWithURL(IntPtr url); public static CGPDFDocument FromFile(string str) { using CFUrl cFUrl = CFUrl.FromFile(str); if (cFUrl == null) { return null; } IntPtr intPtr = CGPDFDocumentCreateWithURL(cFUrl.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CGPDFDocument(intPtr, owns: true); } public static CGPDFDocument FromUrl(string str) { using CFUrl cFUrl = CFUrl.FromUrlString(str, null); if (cFUrl == null) { return null; } IntPtr intPtr = CGPDFDocumentCreateWithURL(cFUrl.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CGPDFDocument(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentGetNumberOfPages(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDocumentGetPage(IntPtr handle, int page); public CGPDFPage GetPage(int page) { return new CGPDFPage(this, CGPDFDocumentGetPage(handle, page)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFDocumentGetVersion(IntPtr handle, out int major, out int minor); public void GetVersion(out int major, out int minor) { CGPDFDocumentGetVersion(handle, out major, out minor); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentIsEncrypted(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentUnlockWithPassword(IntPtr handle, string password); public bool UnlockWithPassword(string pass) { return CGPDFDocumentUnlockWithPassword(handle, pass) != 0; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentIsUnlocked(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentAllowsPrinting(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFDocumentAllowsCopying(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFDocumentGetMediaBox(IntPtr handle, int page); public CGRect GetMediaBox(int page) { return CGPDFDocumentGetMediaBox(handle, page); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFDocumentGetCropBox(IntPtr handle, int page); public CGRect GetCropBox(int page) { return CGPDFDocumentGetCropBox(handle, page); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFDocumentGetBleedBox(IntPtr handle, int page); public CGRect GetBleedBox(int page) { return CGPDFDocumentGetBleedBox(handle, page); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFDocumentGetTrimBox(IntPtr handle, int page); public CGRect GetTrimBox(int page) { return CGPDFDocumentGetTrimBox(handle, page); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFDocumentGetArtBox(IntPtr handle, int page); public CGRect GetArtBox(int page) { return CGPDFDocumentGetArtBox(handle, page); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDocumentGetCatalog(IntPtr handle); public CGPDFDictionary GetCatalog() { return new CGPDFDictionary(CGPDFDocumentGetCatalog(handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFDocumentGetInfo(IntPtr handle); public CGPDFDictionary GetInfo() { return new CGPDFDictionary(CGPDFDocumentGetInfo(handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFInfo.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPDFInfo : CGPDFPageInfo { private static IntPtr kCGPDFContextTitle; private static IntPtr kCGPDFContextAuthor; private static IntPtr kCGPDFContextSubject; private static IntPtr kCGPDFContextKeywords; private static IntPtr kCGPDFContextCreator; private static IntPtr kCGPDFContextOwnerPassword; private static IntPtr kCGPDFContextUserPassword; private static IntPtr kCGPDFContextEncryptionKeyLength; private static IntPtr kCGPDFContextAllowsPrinting; private static IntPtr kCGPDFContextAllowsCopying; public string Title { get; set; } public string Author { get; set; } public string Subject { get; set; } public string[] Keywords { get; set; } public string Creator { get; set; } public string OwnerPassword { get; set; } public string UserPassword { get; set; } public int? EncryptionKeyLength { get; set; } public bool? AllowsPrinting { get; set; } public bool? AllowsCopying { get; set; } static CGPDFInfo() { IntPtr handle = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics", 0); try { kCGPDFContextTitle = Dlfcn.GetIntPtr(handle, "kCGPDFContextTitle"); kCGPDFContextAuthor = Dlfcn.GetIntPtr(handle, "kCGPDFContextAuthor"); kCGPDFContextSubject = Dlfcn.GetIntPtr(handle, "kCGPDFContextSubject"); kCGPDFContextKeywords = Dlfcn.GetIntPtr(handle, "kCGPDFContextKeywords"); kCGPDFContextCreator = Dlfcn.GetIntPtr(handle, "kCGPDFContextCreator"); kCGPDFContextOwnerPassword = Dlfcn.GetIntPtr(handle, "kCGPDFContextOwnerPassword"); kCGPDFContextUserPassword = Dlfcn.GetIntPtr(handle, "kCGPDFContextUserPassword"); kCGPDFContextEncryptionKeyLength = Dlfcn.GetIntPtr(handle, "kCGPDFContextEncryptionKeyLength"); kCGPDFContextAllowsPrinting = Dlfcn.GetIntPtr(handle, "kCGPDFContextAllowsPrinting"); kCGPDFContextAllowsCopying = Dlfcn.GetIntPtr(handle, "kCGPDFContextAllowsCopying"); } finally { Dlfcn.dlclose(handle); } } internal override NSMutableDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = base.ToDictionary(); if (Title != null) { nSMutableDictionary.LowlevelSetObject((NSString)Title, kCGPDFContextTitle); } if (Author != null) { nSMutableDictionary.LowlevelSetObject((NSString)Author, kCGPDFContextAuthor); } if (Subject != null) { nSMutableDictionary.LowlevelSetObject((NSString)Subject, kCGPDFContextSubject); } if (Keywords != null && Keywords.Length != 0) { if (Keywords.Length == 1) { nSMutableDictionary.LowlevelSetObject((NSString)Keywords[0], kCGPDFContextKeywords); } else { nSMutableDictionary.LowlevelSetObject(NSArray.FromStrings(Keywords), kCGPDFContextKeywords); } } if (Creator != null) { nSMutableDictionary.LowlevelSetObject((NSString)Creator, kCGPDFContextCreator); } if (OwnerPassword != null) { nSMutableDictionary.LowlevelSetObject((NSString)OwnerPassword, kCGPDFContextOwnerPassword); } if (UserPassword != null) { nSMutableDictionary.LowlevelSetObject((NSString)UserPassword, kCGPDFContextUserPassword); } if (EncryptionKeyLength.HasValue) { nSMutableDictionary.LowlevelSetObject(NSNumber.FromInt32(EncryptionKeyLength.Value), kCGPDFContextEncryptionKeyLength); } if (AllowsPrinting.HasValue && !AllowsPrinting.Value) { nSMutableDictionary.LowlevelSetObject(CFBoolean.False.Handle, kCGPDFContextAllowsPrinting); } if (AllowsCopying.HasValue && !AllowsCopying.Value) { nSMutableDictionary.LowlevelSetObject(CFBoolean.False.Handle, kCGPDFContextAllowsCopying); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFPage.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreGraphics; public class CGPDFPage : INativeObject, IDisposable { private CGPDFDocument doc; internal IntPtr handle; public CGPDFDocument Document => doc; public int PageNumber => CGPDFPageGetPageNumber(handle); public int RotationAngle => CGPDFPageGetRotationAngle(handle); public CGPDFDictionary Dictionary => new CGPDFDictionary(CGPDFPageGetDictionary(handle)); public IntPtr Handle => handle; public CGPDFPage(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to CGPDFPage creation"); } CGPDFPageRetain(handle); this.handle = handle; } internal CGPDFPage(CGPDFDocument doc, IntPtr handle) { this.doc = doc; this.handle = handle; CGPDFPageRetain(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFPageGetPageNumber(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPDFPageGetBoxRect(IntPtr handle, CGPDFBox box); public CGRect GetBoxRect(CGPDFBox box) { return CGPDFPageGetBoxRect(handle, box); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPDFPageGetRotationAngle(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGAffineTransform CGPDFPageGetDrawingTransform(IntPtr handle, CGPDFBox box, CGRect rect, int rotate, int preserveAspectRatio); public CGAffineTransform GetDrawingTransform(CGPDFBox box, CGRect rect, int rotate, bool preserveAspectRatio) { return CGPDFPageGetDrawingTransform(handle, box, rect, rotate, preserveAspectRatio ? 1 : 0); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFPageGetDictionary(IntPtr pageHandle); ~CGPDFPage() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFPageRetain(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPDFPageRelease(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGPDFPageRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFPageInfo.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPDFPageInfo { private static IntPtr kCGPDFContextMediaBox; private static IntPtr kCGPDFContextCropBox; private static IntPtr kCGPDFContextBleedBox; private static IntPtr kCGPDFContextTrimBox; private static IntPtr kCGPDFContextArtBox; public CGRect? MediaBox { get; set; } public CGRect? CropBox { get; set; } public CGRect? BleedBox { get; set; } public CGRect? TrimBox { get; set; } public CGRect? ArtBox { get; set; } static CGPDFPageInfo() { IntPtr handle = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics", 0); try { kCGPDFContextMediaBox = Dlfcn.GetIndirect(handle, "kCGPDFContextMediaBox"); kCGPDFContextCropBox = Dlfcn.GetIndirect(handle, "kCGPDFContextCropBox"); kCGPDFContextBleedBox = Dlfcn.GetIndirect(handle, "kCGPDFContextBleedBox"); kCGPDFContextTrimBox = Dlfcn.GetIndirect(handle, "kCGPDFContextTrimBox"); kCGPDFContextArtBox = Dlfcn.GetIndirect(handle, "kCGPDFContextArtBox"); } finally { Dlfcn.dlclose(handle); } } private unsafe static void Add(NSMutableDictionary dict, IntPtr key, CGRect? val) { if (val.HasValue) { CGRect value = val.Value; NSData obj = NSData.FromBytes((IntPtr)(&value), 16uL); dict.LowlevelSetObject(obj, key); } } internal virtual NSMutableDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); Add(nSMutableDictionary, kCGPDFContextMediaBox, MediaBox); Add(nSMutableDictionary, kCGPDFContextCropBox, CropBox); Add(nSMutableDictionary, kCGPDFContextBleedBox, BleedBox); Add(nSMutableDictionary, kCGPDFContextTrimBox, TrimBox); Add(nSMutableDictionary, kCGPDFContextArtBox, ArtBox); return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFStream.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPDFStream : INativeObject { internal IntPtr handle; public IntPtr Handle => handle; public CGPDFDictionary Dictionary => new CGPDFDictionary(CGPDFStreamGetDictionary(handle)); public NSData Data { get { int format; IntPtr obj = CGPDFStreamCopyData(handle, out format); NSData result = new NSData(obj); CFObject.CFRelease(obj); return result; } } internal CGPDFStream(IntPtr handle) { this.handle = handle; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFStreamGetDictionary(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFStreamCopyData(IntPtr handle, out int format); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPDFString.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; namespace CoreGraphics; internal static class CGPDFString { [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPDFStringCopyTextString(IntPtr pdfStr); public static string ToString(IntPtr pdfString) { if (pdfString == IntPtr.Zero) { return null; } using CFString cFString = new CFString(CGPDFStringCopyTextString(pdfString), owns: true); return cFString.ToString(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPath.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPath : INativeObject, IDisposable { public delegate void ApplierFunction(CGPathElement element); private delegate void CGPathApplierFunction(IntPtr info, IntPtr CGPathElementPtr); internal IntPtr handle; public IntPtr Handle => handle; public bool IsEmpty => CGPathIsEmpty(handle) != 0; public CGPoint CurrentPoint => CGPathGetCurrentPoint(handle); public CGRect BoundingBox => CGPathGetBoundingBox(handle); public CGRect PathBoundingBox => CGPathGetPathBoundingBox(handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPathCreateMutable(); public CGPath() { handle = CGPathCreateMutable(); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPathCreateMutableCopy(IntPtr path); public CGPath(CGPath basePath) { if (basePath == null) { throw new ArgumentNullException("basePath"); } handle = CGPathCreateMutableCopy(basePath.handle); } public CGPath(IntPtr handle) { CGPathRetain(handle); this.handle = handle; } [Preserve(Conditional = true)] internal CGPath(IntPtr handle, bool owns) { if (!owns) { CGPathRetain(handle); } this.handle = handle; } ~CGPath() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGPathRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPathEqualToPath(IntPtr path1, IntPtr path2); public static bool operator ==(CGPath path1, CGPath path2) { return object.Equals(path1, path2); } public static bool operator !=(CGPath path1, CGPath path2) { return !object.Equals(path1, path2); } public override int GetHashCode() { return handle.GetHashCode(); } public override bool Equals(object o) { CGPath cGPath = o as CGPath; if (cGPath == null) { return false; } return CGPathEqualToPath(handle, cGPath.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathMoveToPoint(IntPtr path, ref CGAffineTransform m, double x, double y); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathMoveToPoint(IntPtr path, IntPtr zero, double x, double y); public void MoveToPoint(double x, double y) { CGPathMoveToPoint(handle, IntPtr.Zero, x, y); } public void MoveToPoint(CGPoint point) { CGPathMoveToPoint(handle, IntPtr.Zero, point.X, point.Y); } public void MoveToPoint(CGAffineTransform transform, double x, double y) { CGPathMoveToPoint(handle, ref transform, x, y); } public void MoveToPoint(CGAffineTransform transform, CGPoint point) { CGPathMoveToPoint(handle, ref transform, point.X, point.Y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddLineToPoint(IntPtr path, ref CGAffineTransform m, double x, double y); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddLineToPoint(IntPtr path, IntPtr m, double x, double y); [Advice("Use AddLineToPoint instead")] public void CGPathAddLineToPoint(double x, double y) { AddLineToPoint(x, y); } public void AddLineToPoint(double x, double y) { CGPathAddLineToPoint(handle, IntPtr.Zero, x, y); } public void AddLineToPoint(CGPoint point) { CGPathAddLineToPoint(handle, IntPtr.Zero, point.X, point.Y); } [Advice("Use AddLineToPoint instead")] public void CGPathAddLineToPoint(CGAffineTransform transform, double x, double y) { AddLineToPoint(transform, x, y); } public void AddLineToPoint(CGAffineTransform transform, double x, double y) { CGPathAddLineToPoint(handle, ref transform, x, y); } public void AddLineToPoint(CGAffineTransform transform, CGPoint point) { CGPathAddLineToPoint(handle, ref transform, point.X, point.Y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddQuadCurveToPoint(IntPtr path, ref CGAffineTransform m, double cpx, double cpy, double x, double y); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddQuadCurveToPoint(IntPtr path, IntPtr zero, double cpx, double cpy, double x, double y); public void AddQuadCurveToPoint(double cpx, double cpy, double x, double y) { CGPathAddQuadCurveToPoint(handle, IntPtr.Zero, cpx, cpy, x, y); } public void AddQuadCurveToPoint(CGAffineTransform transform, double cpx, double cpy, double x, double y) { CGPathAddQuadCurveToPoint(handle, ref transform, cpx, cpy, x, y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddCurveToPoint(IntPtr path, ref CGAffineTransform m, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); public void AddCurveToPoint(CGAffineTransform transform, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y) { CGPathAddCurveToPoint(handle, ref transform, cp1x, cp1y, cp2x, cp2y, x, y); } public void AddCurveToPoint(CGAffineTransform transform, CGPoint cp1, CGPoint cp2, CGPoint point) { CGPathAddCurveToPoint(handle, ref transform, cp1.X, cp1.Y, cp2.X, cp2.Y, point.X, point.Y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddCurveToPoint(IntPtr path, IntPtr zero, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); public void AddCurveToPoint(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y) { CGPathAddCurveToPoint(handle, IntPtr.Zero, cp1x, cp1y, cp2x, cp2y, x, y); } public void AddCurveToPoint(CGPoint cp1, CGPoint cp2, CGPoint point) { CGPathAddCurveToPoint(handle, IntPtr.Zero, cp1.X, cp1.Y, cp2.X, cp2.Y, point.X, point.Y); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathCloseSubpath(IntPtr path); public void CloseSubpath() { CGPathCloseSubpath(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRect(IntPtr path, ref CGAffineTransform m, CGRect rect); public void AddRect(CGAffineTransform transform, CGRect rect) { CGPathAddRect(handle, ref transform, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRect(IntPtr path, IntPtr zero, CGRect rect); public void AddRect(CGRect rect) { CGPathAddRect(handle, IntPtr.Zero, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRects(IntPtr path, ref CGAffineTransform m, CGRect[] rects, IntPtr size_t_count); public void AddRects(CGAffineTransform m, CGRect[] rects) { CGPathAddRects(handle, ref m, rects, new IntPtr(rects.Length)); } public void AddRects(CGAffineTransform m, CGRect[] rects, long count) { if (count > rects.Length) { throw new ArgumentException("counts"); } CGPathAddRects(handle, ref m, rects, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRects(IntPtr path, IntPtr Zero, CGRect[] rects, IntPtr size_t_count); public void AddRects(CGRect[] rects) { CGPathAddRects(handle, IntPtr.Zero, rects, new IntPtr(rects.Length)); } public void AddRects(CGRect[] rects, long count) { if (count > rects.Length) { throw new ArgumentException("count"); } CGPathAddRects(handle, IntPtr.Zero, rects, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddLines(IntPtr path, ref CGAffineTransform m, CGPoint[] points, IntPtr size_t_count); public void AddLines(CGAffineTransform m, CGPoint[] points) { CGPathAddLines(handle, ref m, points, new IntPtr(points.Length)); } public void AddLines(CGAffineTransform m, CGPoint[] points, long count) { if (count > points.Length) { throw new ArgumentException("count"); } CGPathAddLines(handle, ref m, points, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddLines(IntPtr path, IntPtr zero, CGPoint[] points, IntPtr size_t_count); public void AddLines(CGPoint[] points) { AddLines(points, points.Length); } public void AddLines(CGPoint[] points, long count) { if (count > points.Length) { throw new ArgumentException("count"); } CGPathAddLines(handle, IntPtr.Zero, points, new IntPtr(count)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddEllipseInRect(IntPtr path, ref CGAffineTransform m, CGRect rect); public void AddEllipseInRect(CGAffineTransform m, CGRect rect) { CGPathAddEllipseInRect(handle, ref m, rect); } [Obsolete("Use AddEllipseInRect instead")] public void AddElipseInRect(CGAffineTransform m, CGRect rect) { AddEllipseInRect(m, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddEllipseInRect(IntPtr path, IntPtr zero, CGRect rect); public void AddElipseInRect(CGRect rect) { CGPathAddEllipseInRect(handle, IntPtr.Zero, rect); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddArc(IntPtr path, ref CGAffineTransform m, double x, double y, double radius, double startAngle, double endAngle, bool clockwise); public void AddArc(CGAffineTransform m, double x, double y, double radius, double startAngle, double endAngle, bool clockwise) { CGPathAddArc(handle, ref m, x, y, radius, startAngle, endAngle, clockwise); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddArc(IntPtr path, IntPtr zero, double x, double y, double radius, double startAngle, double endAngle, bool clockwise); public void AddArc(double x, double y, double radius, double startAngle, double endAngle, bool clockwise) { CGPathAddArc(handle, IntPtr.Zero, x, y, radius, startAngle, endAngle, clockwise); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddArcToPoint(IntPtr path, ref CGAffineTransform m, double x1, double y1, double x2, double y2, double radius); public void AddArcToPoint(CGAffineTransform m, double x1, double y1, double x2, double y2, double radius) { CGPathAddArcToPoint(handle, ref m, x1, y1, x2, y2, radius); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddArcToPoint(IntPtr path, IntPtr zero, double x1, double y1, double x2, double y2, double radius); public void AddArcToPoint(double x1, double y1, double x2, double y2, double radius) { CGPathAddArcToPoint(handle, IntPtr.Zero, x1, y1, x2, y2, radius); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRelativeArc(IntPtr path, ref CGAffineTransform m, double x, double y, double radius, double startAngle, double delta); public void AddRelativeArc(CGAffineTransform m, double x, double y, double radius, double startAngle, double delta) { CGPathAddRelativeArc(handle, ref m, x, y, radius, startAngle, delta); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddRelativeArc(IntPtr path, IntPtr zero, double x, double y, double radius, double startAngle, double delta); public void AddRelativeArc(double x, double y, double radius, double startAngle, double delta) { CGPathAddRelativeArc(handle, IntPtr.Zero, x, y, radius, startAngle, delta); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddPath(IntPtr path1, ref CGAffineTransform m, IntPtr path2); public void AddPath(CGAffineTransform t, CGPath path2) { if (path2 == null) { throw new ArgumentNullException("path2"); } CGPathAddPath(handle, ref t, path2.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathAddPath(IntPtr path1, IntPtr zero, IntPtr path2); public void AddPath(CGPath path2) { if (path2 == null) { throw new ArgumentNullException("path2"); } CGPathAddPath(handle, IntPtr.Zero, path2.handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPathIsEmpty(IntPtr path); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern int CGPathIsRect(IntPtr path, out CGRect rect); public bool IsRect(out CGRect rect) { return CGPathIsRect(handle, out rect) != 0; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGPoint CGPathGetCurrentPoint(IntPtr path); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPathGetBoundingBox(IntPtr path); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGPathGetPathBoundingBox(IntPtr path); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPathContainsPoint(IntPtr path, ref CGAffineTransform m, CGPoint point, bool eoFill); public bool ContainsPoint(CGAffineTransform m, CGPoint point, bool eoFill) { return CGPathContainsPoint(handle, ref m, point, eoFill); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGPathContainsPoint(IntPtr path, IntPtr zero, CGPoint point, bool eoFill); public bool ContainsPoint(CGPoint point, bool eoFill) { return CGPathContainsPoint(handle, IntPtr.Zero, point, eoFill); } private unsafe static void ApplierCallback(IntPtr info, IntPtr element_ptr) { GCHandle gCHandle = GCHandle.FromIntPtr(info); CGPathElement element = new CGPathElement(Marshal.ReadInt32(element_ptr, 0)); ApplierFunction applierFunction = (ApplierFunction)gCHandle.Target; IntPtr intPtr = Marshal.ReadIntPtr(element_ptr, sizeof(IntPtr)); int num = Marshal.SizeOf(typeof(CGPoint)); switch (element.Type) { case CGPathElementType.MoveToPoint: case CGPathElementType.AddLineToPoint: element.Point1 = (CGPoint)Marshal.PtrToStructure(intPtr, typeof(CGPoint)); break; case CGPathElementType.AddQuadCurveToPoint: element.Point1 = (CGPoint)Marshal.PtrToStructure(intPtr, typeof(CGPoint)); element.Point2 = (CGPoint)Marshal.PtrToStructure((IntPtr)((long)intPtr + num), typeof(CGPoint)); break; case CGPathElementType.AddCurveToPoint: element.Point1 = (CGPoint)Marshal.PtrToStructure(intPtr, typeof(CGPoint)); element.Point2 = (CGPoint)Marshal.PtrToStructure((IntPtr)((long)intPtr + num), typeof(CGPoint)); element.Point3 = (CGPoint)Marshal.PtrToStructure((IntPtr)((long)intPtr + 2 * num), typeof(CGPoint)); break; } applierFunction(element); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPathApply(IntPtr path, IntPtr info, CGPathApplierFunction function); public void Apply(ApplierFunction func) { GCHandle value = GCHandle.Alloc(func); CGPathApply(handle, GCHandle.ToIntPtr(value), ApplierCallback); value.Free(); } private static CGPath MakeMutable(IntPtr source) { IntPtr intPtr = CGPathCreateMutableCopy(source); CGPathRelease(source); return new CGPath(intPtr, owns: true); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPathDrawingMode.cs ================================================ namespace CoreGraphics; public enum CGPathDrawingMode { Fill, EOFill, Stroke, FillStroke, EOFillStroke } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPathElement.cs ================================================ namespace CoreGraphics; public struct CGPathElement { public CGPathElementType Type; public CGPoint Point1; public CGPoint Point2; public CGPoint Point3; public CGPathElement(int t) { Type = (CGPathElementType)t; Point1 = (Point2 = (Point3 = new CGPoint(0, 0))); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPathElementType.cs ================================================ namespace CoreGraphics; public enum CGPathElementType { MoveToPoint, AddLineToPoint, AddQuadCurveToPoint, AddCurveToPoint, CloseSubpath } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPattern.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGPattern : INativeObject, IDisposable { public delegate void DrawPattern(CGContext ctx); internal IntPtr handle; private DrawPattern draw_pattern; private CGPatternCallbacks callbacks; private GCHandle gch; private IntPtr last_cgcontext_ptr; private WeakReference last_cgcontext; public IntPtr Handle => handle; public CGPattern(IntPtr handle) { this.handle = handle; CGPatternRetain(this.handle); } [Preserve(Conditional = true)] internal CGPattern(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGPatternRetain(this.handle); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGPatternCreate(IntPtr info, CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, CGPatternTiling tiling, bool isColored, ref CGPatternCallbacks callbacks); public CGPattern(CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, CGPatternTiling tiling, bool isColored, DrawPattern drawPattern) { if (drawPattern == null) { throw new ArgumentNullException("drawPattern"); } callbacks.draw = DrawCallback; callbacks.release = ReleaseCallback; callbacks.version = 0u; draw_pattern = drawPattern; gch = GCHandle.Alloc(this); handle = CGPatternCreate(GCHandle.ToIntPtr(gch), bounds, matrix, xStep, yStep, tiling, isColored, ref callbacks); } private static void DrawCallback(IntPtr voidptr, IntPtr cgcontextptr) { CGPattern cGPattern = (CGPattern)GCHandle.FromIntPtr(voidptr).Target; CGContext cGContext = null; if (cgcontextptr == cGPattern.last_cgcontext_ptr) { cGContext = cGPattern.last_cgcontext.Target as CGContext; } if (cGContext == null) { cGContext = new CGContext(cgcontextptr); cGPattern.last_cgcontext = new WeakReference(cGContext); cGPattern.last_cgcontext_ptr = cgcontextptr; } cGPattern.draw_pattern(cGContext); } private static void ReleaseCallback(IntPtr voidptr) { GCHandle.FromIntPtr(voidptr).Free(); } ~CGPattern() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPatternRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGPatternRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGPatternRelease(handle); handle = IntPtr.Zero; } last_cgcontext = null; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPatternCallbacks.cs ================================================ namespace CoreGraphics; internal struct CGPatternCallbacks { internal uint version; internal DrawPatternCallback draw; internal ReleaseInfoCallback release; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPatternTiling.cs ================================================ namespace CoreGraphics; public enum CGPatternTiling { NoDistortion, ConstantSpacingMinimalDistortion, ConstantSpacing } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGPoint.cs ================================================ using System.Globalization; using System.Runtime.InteropServices; namespace CoreGraphics; [StructLayout(LayoutKind.Sequential, Pack = 8)] public struct CGPoint { public static readonly CGPoint Empty; public double X; public double Y; public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); } public static bool operator ==(CGPoint left, CGPoint right) { if (left.X == right.X) { return left.Y == right.Y; } return false; } public static bool operator !=(CGPoint left, CGPoint right) { if (left.X == right.X) { return left.Y != right.Y; } return true; } public static CGPoint operator +(CGPoint pt, CGSize sz) { return new CGPoint(pt.X + sz.Width, pt.Y + sz.Height); } public static CGPoint operator -(CGPoint pt, CGSize sz) { return new CGPoint(pt.X - sz.Width, pt.Y - sz.Height); } public override string ToString() { return string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1}}}", X, Y); } public CGPoint(int x, int y) { X = x; Y = y; } public CGPoint(double x, double y) { X = x; Y = y; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGRect.cs ================================================ using System.Globalization; namespace CoreGraphics; public struct CGRect { public static readonly CGRect Empty; public CGPoint Origin; public CGSize Size; public CGPoint Location => Origin; public double Left => X; public double Top => Y; public double Right => X + Width; public double Bottom => Y + Height; public double X { get { return Origin.X; } set { Origin.X = value; } } public double Y { get { return Origin.Y; } set { Origin.Y = value; } } public double Width { get { return Size.Width; } set { Size.Width = value; } } public double Height { get { return Size.Height; } set { Size.Height = value; } } public CGRect(CGPoint location, CGSize size) { Origin.X = location.X; Origin.Y = location.Y; Size.Width = size.Width; Size.Height = size.Height; } public CGRect(double x, double y, double width, double height) { Origin.X = x; Origin.Y = y; Size.Width = width; Size.Height = height; } public override bool Equals(object obj) { if (obj is CGRect) { return this == (CGRect)obj; } return false; } public override int GetHashCode() { return Origin.GetHashCode() ^ Size.GetHashCode(); } public static bool operator ==(CGRect left, CGRect right) { if (left.Origin == right.Origin) { return left.Size == right.Size; } return false; } public static bool operator !=(CGRect left, CGRect right) { if (!(left.Origin != right.Origin)) { return left.Size != right.Size; } return true; } public override string ToString() { return string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1},Width={2},Height={3}}}", X, Y, Width, Height); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGShading.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreGraphics; public class CGShading : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public CGShading(IntPtr handle) { this.handle = handle; CGShadingRetain(handle); } [Preserve(Conditional = true)] internal CGShading(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CGShadingRetain(handle); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGShadingCreateAxial(IntPtr space, CGPoint start, CGPoint end, IntPtr functionHandle, bool extendStart, bool extendEnd); public static CGShading CreateAxial(CGColorSpace colorspace, CGPoint start, CGPoint end, CGFunction function, bool extendStart, bool extendEnd) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (colorspace.Handle == IntPtr.Zero) { throw new ObjectDisposedException("colorspace"); } if (function == null) { throw new ArgumentNullException("function"); } if (function.Handle == IntPtr.Zero) { throw new ObjectDisposedException("function"); } return new CGShading(CGShadingCreateAxial(colorspace.Handle, start, end, function.Handle, extendStart, extendEnd), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern IntPtr CGShadingCreateRadial(IntPtr space, CGPoint start, double startRadius, CGPoint end, double endRadius, IntPtr function, bool extendStart, bool extendEnd); public static CGShading CreateRadial(CGColorSpace colorspace, CGPoint start, double startRadius, CGPoint end, double endRadius, CGFunction function, bool extendStart, bool extendEnd) { if (colorspace == null) { throw new ArgumentNullException("colorspace"); } if (colorspace.Handle == IntPtr.Zero) { throw new ObjectDisposedException("colorspace"); } if (function == null) { throw new ArgumentNullException("function"); } if (function.Handle == IntPtr.Zero) { throw new ObjectDisposedException("function"); } return new CGShading(CGShadingCreateRadial(colorspace.Handle, start, startRadius, end, endRadius, function.Handle, extendStart, extendEnd), owns: true); } ~CGShading() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGShadingRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGShadingRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGShadingRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGSize.cs ================================================ using System.Globalization; using System.Runtime.InteropServices; namespace CoreGraphics; [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct CGSize { public static readonly CGSize Empty; public double Width; public double Height; public CGSize(double width, double height) { Width = width; Height = height; } public override int GetHashCode() { return Width.GetHashCode() ^ Height.GetHashCode(); } public static bool operator ==(CGSize left, CGSize right) { if (left.Width == right.Width) { return left.Height == right.Height; } return false; } public static bool operator !=(CGSize left, CGSize right) { if (left.Width == right.Width) { return left.Height != right.Height; } return true; } public static CGSize operator +(CGSize size1, CGSize size2) { return new CGSize(size1.Width + size2.Width, size1.Height + size2.Height); } public static CGSize operator -(CGSize size1, CGSize size2) { return new CGSize(size1.Width - size2.Width, size1.Height - size2.Height); } public override string ToString() { return string.Format(CultureInfo.CurrentCulture, "{{Width={0},Height={1}}}", Width, Height); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGTextDrawingMode.cs ================================================ namespace CoreGraphics; public enum CGTextDrawingMode { Fill, Stroke, FillStroke, Invisible, FillClip, StrokeClip, FillStrokeClip, Clip } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGTextEncoding.cs ================================================ namespace CoreGraphics; public enum CGTextEncoding { FontSpecific, MacRoman } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGWindowImageOption.cs ================================================ using System; namespace CoreGraphics; [Flags] public enum CGWindowImageOption { Default = 0, BoundsIgnoreFraming = 1, ShouldBeOpaque = 2, OnlyShadows = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/CGWindowListOption.cs ================================================ using System; namespace CoreGraphics; [Flags] public enum CGWindowListOption { All = 0, OnScreenOnly = 1, OnScreenAboveWindow = 2, OnScreenBelowWindow = 4, IncludingWindow = 8, ExcludeDesktopElements = 0x10 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/DrawPatternCallback.cs ================================================ using System; namespace CoreGraphics; internal delegate void DrawPatternCallback(IntPtr voidptr, IntPtr cgcontextref); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/NSRectEdge.cs ================================================ using ObjCRuntime; namespace CoreGraphics; [Since(3, 2)] public enum NSRectEdge { MinXEdge, MinYEdge, MaxXEdge, MaxYEdge } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/RectangleFExtensions.cs ================================================ using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreGraphics; [Since(3, 2)] public static class RectangleFExtensions { [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMinX(CGRect rect); public static double GetMinX(this CGRect self) { return CGRectGetMinX(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMidX(CGRect rect); public static double GetMidX(this CGRect self) { return CGRectGetMidX(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMaxX(CGRect rect); public static double GetMaxX(this CGRect self) { return CGRectGetMaxX(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMinY(CGRect rect); public static double GetMinY(this CGRect self) { return CGRectGetMinY(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMidY(CGRect rect); public static double GetMidY(this CGRect self) { return CGRectGetMidY(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern double CGRectGetMaxY(CGRect rect); public static double GetMaxY(this CGRect self) { return CGRectGetMaxY(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGRectStandardize(CGRect rect); public static CGRect Standardize(this CGRect self) { return CGRectStandardize(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGRectIsNull(CGRect rect); public static bool IsNull(this CGRect self) { return CGRectIsNull(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern bool CGRectIsInfinite(CGRect rect); public static bool IsInfinite(this CGRect self) { return CGRectIsNull(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGRectInset(CGRect rect, double dx, double dy); public static CGRect Inset(this CGRect self, double dx, double dy) { return CGRectInset(self, dx, dy); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGRectIntegral(CGRect rect); public static CGRect Integral(this CGRect self) { return CGRectIntegral(self); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern CGRect CGRectUnion(CGRect r1, CGRect r2); public static CGRect UnionWith(this CGRect self, CGRect other) { return CGRectUnion(self, other); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")] private static extern void CGRectDivide(CGRect rect, out CGRect slice, out CGRect remainder, double amount, NSRectEdge edge); public static void Divide(this CGRect self, double amount, NSRectEdge edge, out CGRect slice, out CGRect remainder) { CGRectDivide(self, out slice, out remainder, amount, edge); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreGraphics/ReleaseInfoCallback.cs ================================================ using System; namespace CoreGraphics; internal delegate void ReleaseInfoCallback(IntPtr voidptr); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAdditionCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIAdditionCompositing : CICompositingFilter { public CIAdditionCompositing() : base("CIAdditionCompositing") { } public CIAdditionCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAffineClamp.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIAffineClamp : CIAffineFilter { public CIAffineClamp() : base("CIAffineClamp") { } public CIAffineClamp(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAffineFilter.cs ================================================ using System; namespace CoreImage; public abstract class CIAffineFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } protected CIAffineFilter(string name) : base(CIFilter.CreateFilter(name)) { } protected CIAffineFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAffineTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIAffineTile : CIAffineFilter { public CIAffineTile() : base("CIAffineTile") { } public CIAffineTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAffineTransform.cs ================================================ using System; namespace CoreImage; public class CIAffineTransform : CIAffineFilter { public CIAffineTransform() : base("CIAffineTransform") { } public CIAffineTransform(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIAutoAdjustmentFilterOptions.cs ================================================ using CoreFoundation; using Foundation; namespace CoreImage; public class CIAutoAdjustmentFilterOptions { public bool? Enhance; public bool? RedEye; public CIFeature[] Features; public CIImageOrientation? ImageOrientation; internal NSDictionary ToDictionary() { int num = 0; if (Enhance.HasValue && !Enhance.Value) { num++; } if (RedEye.HasValue && !RedEye.Value) { num++; } if (ImageOrientation.HasValue) { num++; } if (Features != null && Features.Length != 0) { num++; } if (num == 0) { return null; } NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (Enhance.HasValue && !Enhance.Value) { nSMutableDictionary.LowlevelSetObject(CFBoolean.False.Handle, CIImage.AutoAdjustEnhanceKey.Handle); } if (RedEye.HasValue && !RedEye.Value) { nSMutableDictionary.LowlevelSetObject(CFBoolean.False.Handle, CIImage.AutoAdjustRedEyeKey.Handle); } if (Features != null && Features.Length != 0) { nSMutableDictionary.LowlevelSetObject(NSArray.FromObjects(Features), CIImage.AutoAdjustFeaturesKey.Handle); } if (ImageOrientation.HasValue) { nSMutableDictionary.LowlevelSetObject(new NSNumber((int)ImageOrientation.Value), CIImage.ImagePropertyOrientation.Handle); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIBarsSwipeTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIBarsSwipeTransition : CITransitionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public float BarOffset { get { return GetFloat("inputBarOffset"); } set { SetFloat("inputBarOffset", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public CIBarsSwipeTransition() : base("CIBarsSwipeTransition") { } public CIBarsSwipeTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIBlendFilter.cs ================================================ using System; namespace CoreImage; public abstract class CIBlendFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIImage BackgroundImage { get { return GetBackgroundImage(); } set { SetBackgroundImage(value); } } protected CIBlendFilter(string name) : base(name) { } protected CIBlendFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIBlendWithMask.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIBlendWithMask : CIBlendFilter { public CIImage Mask { get { return GetImage("inputMaskImage"); } set { SetImage("inputMaskImage", value); } } public CIBlendWithMask() : base("CIBlendWithMask") { } public CIBlendWithMask(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIBloom.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIBloom : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Intensity { get { return GetFloat("inputIntensity"); } set { SetFloat("inputIntensity", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIBloom() : base("CIBloom") { } public CIBloom(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICheckerboardGenerator.cs ================================================ using System; namespace CoreImage; public class CICheckerboardGenerator : CIFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public float Sharpness { get { return GetFloat("inputSharpness"); } set { SetFloat("inputSharpness", value); } } public CICheckerboardGenerator() : base(CIFilter.CreateFilter("CICheckerboardGenerator")) { } public CICheckerboardGenerator(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICircleSplashDistortion.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CICircleSplashDistortion : CIDistortionFilter { public CICircleSplashDistortion() : base("CICircleSplashDistortion") { } public CICircleSplashDistortion(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICircularScreen.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CICircularScreen : CIScreenFilter { public CICircularScreen() : base("CICircularScreen") { } public CICircularScreen(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColor.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIColor", true)] public class CIColor : NSObject { private static readonly IntPtr selNumberOfComponentsHandle = Selector.GetHandle("numberOfComponents"); private static readonly IntPtr selAlphaHandle = Selector.GetHandle("alpha"); private static readonly IntPtr selColorSpaceHandle = Selector.GetHandle("colorSpace"); private static readonly IntPtr selRedHandle = Selector.GetHandle("red"); private static readonly IntPtr selGreenHandle = Selector.GetHandle("green"); private static readonly IntPtr selBlueHandle = Selector.GetHandle("blue"); private static readonly IntPtr selColorWithCGColor_Handle = Selector.GetHandle("colorWithCGColor:"); private static readonly IntPtr selColorWithRedGreenBlueAlpha_Handle = Selector.GetHandle("colorWithRed:green:blue:alpha:"); private static readonly IntPtr selColorWithRedGreenBlue_Handle = Selector.GetHandle("colorWithRed:green:blue:"); private static readonly IntPtr selColorWithString_Handle = Selector.GetHandle("colorWithString:"); private static readonly IntPtr selInitWithCGColor_Handle = Selector.GetHandle("initWithCGColor:"); private static readonly IntPtr selStringRepresentationHandle = Selector.GetHandle("stringRepresentation"); private static readonly IntPtr class_ptr = Class.GetHandle("CIColor"); public override IntPtr ClassHandle => class_ptr; public virtual int NumberOfComponents { [Export("numberOfComponents")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfComponentsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfComponentsHandle); } } public virtual double Alpha { [Export("alpha")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAlphaHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAlphaHandle); } } public virtual CGColorSpace ColorSpace { [Export("colorSpace")] get { if (IsDirectBinding) { return new CGColorSpace(Messaging.IntPtr_objc_msgSend(base.Handle, selColorSpaceHandle)); } return new CGColorSpace(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorSpaceHandle)); } } public virtual double Red { [Export("red")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRedHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRedHandle); } } public virtual double Green { [Export("green")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selGreenHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selGreenHandle); } } public virtual double Blue { [Export("blue")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selBlueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selBlueHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIColor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIColor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIColor(IntPtr handle) : base(handle) { } [Export("colorWithCGColor:")] public static CIColor FromCGColor(CGColor c) { return (CIColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorWithCGColor_Handle, c.Handle)); } [Export("colorWithRed:green:blue:alpha:")] public static CIColor FromRgba(double red, double green, double blue, double alpha) { return (CIColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selColorWithRedGreenBlueAlpha_Handle, red, green, blue, alpha)); } [Export("colorWithRed:green:blue:")] public static CIColor FromRgb(double red, double green, double blue) { return (CIColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double(class_ptr, selColorWithRedGreenBlue_Handle, red, green, blue)); } [Export("colorWithString:")] public static CIColor FromString(string representation) { if (representation == null) { throw new ArgumentNullException("representation"); } IntPtr arg = NSString.CreateNative(representation); CIColor result = (CIColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selColorWithString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithCGColor:")] public CIColor(CGColor c) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCGColor_Handle, c.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCGColor_Handle, c.Handle); } } [Export("stringRepresentation")] public virtual string StringRepresentation() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringRepresentationHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringRepresentationHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorBlendMode.cs ================================================ using System; namespace CoreImage; public class CIColorBlendMode : CIBlendFilter { public CIColorBlendMode() : base("CIColorBlendMode") { } public CIColorBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorBurnBlendMode.cs ================================================ using System; namespace CoreImage; public class CIColorBurnBlendMode : CIBlendFilter { public CIColorBurnBlendMode() : base("CIColorBurnBlendMode") { } public CIColorBurnBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorControls.cs ================================================ using System; namespace CoreImage; public class CIColorControls : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Saturation { get { return GetFloat("inputSaturation"); } set { SetFloat("inputSaturation", value); } } public float Brightness { get { return GetFloat("inputBrightness"); } set { SetFloat("inputBrightness", value); } } public float Contrast { get { return GetFloat("inputContrast"); } set { SetFloat("inputContrast", value); } } public CIColorControls() : base(CIFilter.CreateFilter("CIColorControls")) { } public CIColorControls(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorCube.cs ================================================ using System; using Foundation; namespace CoreImage; public class CIColorCube : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float CubeDimension { get { return GetFloat("inputCubeDimension"); } set { SetFloat("inputCubeDimension", value); } } public NSData CubeData { get { return ValueForKey("inputCubeData") as NSData; } set { SetValue("inputCubeData", value); } } public CIColorCube() : base(CIFilter.CreateFilter("CIColorCube")) { } public CIColorCube(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorDodgeBlendMode.cs ================================================ using System; namespace CoreImage; public class CIColorDodgeBlendMode : CIBlendFilter { public CIColorDodgeBlendMode() : base("CIColorDodgeBlendMode") { } public CIColorDodgeBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorInvert.cs ================================================ using System; namespace CoreImage; public class CIColorInvert : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIColorInvert() : base(CIFilter.CreateFilter("CIColorInvert")) { } public CIColorInvert(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorMap.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIColorMap : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIImage GradientImage { get { return GetImage("inputGradientImage"); } set { SetImage("inputGradientImage", value); } } public CIColorMap() : base("CIColorMap") { } public CIColorMap(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorMatrix.cs ================================================ using System; namespace CoreImage; public class CIColorMatrix : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector RVector { get { return GetVector("inputRVector"); } set { SetValue("inputRVector", value); } } public CIVector GVector { get { return GetVector("inputGVector"); } set { SetValue("inputGVector", value); } } public CIVector BVector { get { return GetVector("inputBVector"); } set { SetValue("inputBVector", value); } } public CIVector AVector { get { return GetVector("inputAVector"); } set { SetValue("inputAVector", value); } } public CIVector BiasVector { get { return GetVector("inputBiasVector"); } set { SetValue("inputBiasVector", value); } } public CIColorMatrix() : base(CIFilter.CreateFilter("CIColorMatrix")) { } public CIColorMatrix(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorMonochrome.cs ================================================ using System; namespace CoreImage; public class CIColorMonochrome : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public float Intensity { get { return GetFloat("inputIntensity"); } set { SetFloat("inputIntensity", value); } } public CIColorMonochrome() : base(CIFilter.CreateFilter("CIColorMonochrome")) { } public CIColorMonochrome(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIColorPosterize.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIColorPosterize : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Levels { get { return GetFloat("inputLevels"); } set { SetFloat("inputLevels", value); } } public CIColorPosterize() : base("CIColorPosterize") { } public CIColorPosterize(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICompositingFilter.cs ================================================ using System; namespace CoreImage; public abstract class CICompositingFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIImage BackgroundImage { get { return GetBackgroundImage(); } set { SetBackgroundImage(value); } } protected CICompositingFilter(string name) : base(name) { } protected CICompositingFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIConstantColorGenerator.cs ================================================ using System; namespace CoreImage; public class CIConstantColorGenerator : CIFilter { public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public CIConstantColorGenerator() : base(CIFilter.CreateFilter("CIConstantColorGenerator")) { } public CIConstantColorGenerator(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIContext.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIContext", true)] public class CIContext : NSObject { private static readonly IntPtr selContextWithCGContextOptions_Handle = Selector.GetHandle("contextWithCGContext:options:"); private static readonly IntPtr selDrawImageAtPointFromRect_Handle = Selector.GetHandle("drawImage:atPoint:fromRect:"); private static readonly IntPtr selDrawImageInRectFromRect_Handle = Selector.GetHandle("drawImage:inRect:fromRect:"); private static readonly IntPtr selCreateCGImageFromRect_Handle = Selector.GetHandle("createCGImage:fromRect:"); private static readonly IntPtr selCreateCGImageFromRectFormatColorSpace_Handle = Selector.GetHandle("createCGImage:fromRect:format:colorSpace:"); private static readonly IntPtr selCreateCGLayerWithSizeInfo_Handle = Selector.GetHandle("createCGLayerWithSize:info:"); private static readonly IntPtr selRenderToBitmapRowBytesBoundsFormatColorSpace_Handle = Selector.GetHandle("render:toBitmap:rowBytes:bounds:format:colorSpace:"); private static readonly IntPtr selReclaimResourcesHandle = Selector.GetHandle("reclaimResources"); private static readonly IntPtr selClearCachesHandle = Selector.GetHandle("clearCaches"); private static readonly IntPtr class_ptr = Class.GetHandle("CIContext"); private static NSString _OutputColorSpace; private static NSString _WorkingColorSpace; private static NSString _UseSoftwareRenderer; public override IntPtr ClassHandle => class_ptr; [Field("kCIContextOutputColorSpace", "Quartz")] internal static NSString OutputColorSpace { get { if (_OutputColorSpace == null) { _OutputColorSpace = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIContextOutputColorSpace"); } return _OutputColorSpace; } } [Field("kCIContextWorkingColorSpace", "Quartz")] internal static NSString WorkingColorSpace { get { if (_WorkingColorSpace == null) { _WorkingColorSpace = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIContextWorkingColorSpace"); } return _WorkingColorSpace; } } [Field("kCIContextUseSoftwareRenderer", "Quartz")] internal static NSString UseSoftwareRenderer { get { if (_UseSoftwareRenderer == null) { _UseSoftwareRenderer = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIContextUseSoftwareRenderer"); } return _UseSoftwareRenderer; } } public static CIContext FromContext(CGContext ctx, CIContextOptions options) { NSDictionary options2 = options?.ToDictionary(); return FromContext(ctx, options2); } public static CIContext FromContext(CGContext ctx) { return FromContext(ctx, (CIContextOptions)null); } public CGLayer CreateCGLayer(CGSize size) { return CreateCGLayer(size, null); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIContext(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIContext(IntPtr handle) : base(handle) { } [Export("contextWithCGContext:options:")] internal static CIContext FromContext(CGContext ctx, NSDictionary options) { return (CIContext)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selContextWithCGContextOptions_Handle, ctx.Handle, options?.Handle ?? IntPtr.Zero)); } [Export("drawImage:atPoint:fromRect:")] [Obsolete("Deprecated in iOS 6.0. Use DrawImage (CIImage, RectangleF, RectangleF) instead", false)] public virtual void DrawImage(CIImage image, CGPoint atPoint, CGRect fromRect) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGPoint_CGRect(base.Handle, selDrawImageAtPointFromRect_Handle, image.Handle, atPoint, fromRect); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGPoint_CGRect(base.SuperHandle, selDrawImageAtPointFromRect_Handle, image.Handle, atPoint, fromRect); } } [Export("drawImage:inRect:fromRect:")] public virtual void DrawImage(CIImage image, CGRect inRectangle, CGRect fromRectangle) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect_CGRect(base.Handle, selDrawImageInRectFromRect_Handle, image.Handle, inRectangle, fromRectangle); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect_CGRect(base.SuperHandle, selDrawImageInRectFromRect_Handle, image.Handle, inRectangle, fromRectangle); } } [Export("createCGImage:fromRect:")] public virtual CGImage CreateCGImage(CIImage image, CGRect fromRectangle) { if (image == null) { throw new ArgumentNullException("image"); } CGImage cGImage = ((!IsDirectBinding) ? new CGImage(Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGRect(base.SuperHandle, selCreateCGImageFromRect_Handle, image.Handle, fromRectangle)) : new CGImage(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect(base.Handle, selCreateCGImageFromRect_Handle, image.Handle, fromRectangle))); Messaging.void_objc_msgSend(cGImage.Handle, Selector.GetHandle("release")); return cGImage; } [Export("createCGImage:fromRect:format:colorSpace:")] public virtual CGImage CreateCGImage(CIImage image, CGRect fromRect, long ciImageFormat, CGColorSpace colorSpace) { if (image == null) { throw new ArgumentNullException("image"); } CGImage cGImage = ((!IsDirectBinding) ? new CGImage(Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGRect_Int64_IntPtr(base.SuperHandle, selCreateCGImageFromRectFormatColorSpace_Handle, image.Handle, fromRect, ciImageFormat, colorSpace?.Handle ?? IntPtr.Zero)) : new CGImage(Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_Int64_IntPtr(base.Handle, selCreateCGImageFromRectFormatColorSpace_Handle, image.Handle, fromRect, ciImageFormat, colorSpace?.Handle ?? IntPtr.Zero))); Messaging.void_objc_msgSend(cGImage.Handle, Selector.GetHandle("release")); return cGImage; } [Export("createCGLayerWithSize:info:")] internal virtual CGLayer CreateCGLayer(CGSize size, NSDictionary info) { if (IsDirectBinding) { return new CGLayer(Messaging.IntPtr_objc_msgSend_CGSize_IntPtr(base.Handle, selCreateCGLayerWithSizeInfo_Handle, size, info?.Handle ?? IntPtr.Zero)); } return new CGLayer(Messaging.IntPtr_objc_msgSendSuper_CGSize_IntPtr(base.SuperHandle, selCreateCGLayerWithSizeInfo_Handle, size, info?.Handle ?? IntPtr.Zero)); } [Export("render:toBitmap:rowBytes:bounds:format:colorSpace:")] public virtual void RenderToBitmap(CIImage image, IntPtr bitmapPtr, long bytesPerRow, CGRect bounds, long bitmapFormat, CGColorSpace colorSpace) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_Int64_CGRect_Int64_IntPtr(base.Handle, selRenderToBitmapRowBytesBoundsFormatColorSpace_Handle, image.Handle, bitmapPtr, bytesPerRow, bounds, bitmapFormat, colorSpace.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_Int64_CGRect_Int64_IntPtr(base.SuperHandle, selRenderToBitmapRowBytesBoundsFormatColorSpace_Handle, image.Handle, bitmapPtr, bytesPerRow, bounds, bitmapFormat, colorSpace.Handle); } } [Export("reclaimResources")] public virtual void ReclaimResources() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReclaimResourcesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReclaimResourcesHandle); } } [Export("clearCaches")] public virtual void ClearCaches() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearCachesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearCachesHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIContextOptions.cs ================================================ using CoreFoundation; using CoreGraphics; using Foundation; namespace CoreImage; public class CIContextOptions { public CGColorSpace OutputColorSpace { get; set; } public CGColorSpace WorkingColorSpace { get; set; } public bool UseSoftwareRenderer { get; set; } internal NSDictionary ToDictionary() { if (OutputColorSpace == null && WorkingColorSpace == null && !UseSoftwareRenderer) { return null; } NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (OutputColorSpace != null) { nSMutableDictionary.LowlevelSetObject(OutputColorSpace.Handle, CIContext.OutputColorSpace.Handle); } if (WorkingColorSpace != null) { nSMutableDictionary.LowlevelSetObject(WorkingColorSpace.Handle, CIContext.WorkingColorSpace.Handle); } if (UseSoftwareRenderer) { nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, CIContext.UseSoftwareRenderer.Handle); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICopyMachineTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CICopyMachineTransition : CITransitionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public CIVector Extent { get { return GetVector("inputExtent"); } set { SetValue("inputExtent", value); } } public float Opacity { get { return GetFloat("inputOpacity"); } set { SetFloat("inputOpacity", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public CICopyMachineTransition() : base("CICopyMachineTransition") { } public CICopyMachineTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CICrop.cs ================================================ using System; namespace CoreImage; public class CICrop : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Rectangle { get { return GetVector("inputRectangle"); } set { SetValue("inputRectangle", value); } } public CICrop() : base(CIFilter.CreateFilter("CICrop")) { } public CICrop(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDarkenBlendMode.cs ================================================ using System; namespace CoreImage; public class CIDarkenBlendMode : CIBlendFilter { public CIDarkenBlendMode() : base("CIDarkenBlendMode") { } public CIDarkenBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDepthOfField.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIDepthOfField : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Point1 { get { return GetVector("inputPoint1"); } set { SetValue("inputPoint1", value); } } public CIVector Point2 { get { return GetVector("inputPoint2"); } set { SetValue("inputPoint2", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public float Saturation { get { return GetFloat("inputSaturation"); } set { SetFloat("inputSaturation", value); } } public float UnsharpMaskIntensity { get { return GetFloat("inputUnsharpMaskIntensity"); } set { SetFloat("inputUnsharpMaskIntensity", value); } } public float UnsharpMaskRadius { get { return GetFloat("inputUnsharpMaskRadius"); } set { SetFloat("inputUnsharpMaskRadius", value); } } public CIDepthOfField() : base("CIDepthOfField") { } public CIDepthOfField(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDetector.cs ================================================ using System; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIDetector", true)] public class CIDetector : NSObject { private static readonly IntPtr selDetectorOfTypeContextOptions_Handle = Selector.GetHandle("detectorOfType:context:options:"); private static readonly IntPtr selFeaturesInImage_Handle = Selector.GetHandle("featuresInImage:"); private static readonly IntPtr selFeaturesInImageOptions_Handle = Selector.GetHandle("featuresInImage:options:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIDetector"); private static NSString _TypeFace; private static NSString _ImageOrientation; private static NSString _Accuracy; private static NSString _AccuracyLow; private static NSString _AccuracyHigh; private static NSString _Tracking; private static NSString _MinFeatureSize; public override IntPtr ClassHandle => class_ptr; [Field("CIDetectorTypeFace", "CoreImage")] internal static NSString TypeFace { get { if (_TypeFace == null) { _TypeFace = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorTypeFace"); } return _TypeFace; } } [Field("CIDetectorImageOrientation", "CoreImage")] [MountainLion] internal static NSString ImageOrientation { [MountainLion] get { if (_ImageOrientation == null) { _ImageOrientation = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorImageOrientation"); } return _ImageOrientation; } } [Field("CIDetectorAccuracy", "CoreImage")] internal static NSString Accuracy { get { if (_Accuracy == null) { _Accuracy = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorAccuracy"); } return _Accuracy; } } [Field("CIDetectorAccuracyLow", "CoreImage")] internal static NSString AccuracyLow { get { if (_AccuracyLow == null) { _AccuracyLow = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorAccuracyLow"); } return _AccuracyLow; } } [Field("CIDetectorAccuracyHigh", "CoreImage")] internal static NSString AccuracyHigh { get { if (_AccuracyHigh == null) { _AccuracyHigh = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorAccuracyHigh"); } return _AccuracyHigh; } } [Field("CIDetectorTracking", "CoreImage")] internal static NSString Tracking { get { if (_Tracking == null) { _Tracking = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorTracking"); } return _Tracking; } } [Field("CIDetectorMinFeatureSize", "CoreImage")] internal static NSString MinFeatureSize { get { if (_MinFeatureSize == null) { _MinFeatureSize = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIDetectorMinFeatureSize"); } return _MinFeatureSize; } } public static CIDetector CreateFaceDetector(CIContext context, bool highAccuracy) { using NSDictionary options = NSDictionary.FromObjectsAndKeys(new NSObject[1] { highAccuracy ? AccuracyHigh : AccuracyLow }, new NSObject[1] { Accuracy }); return FromType(TypeFace, context, options); } public static CIDetector CreateFaceDetector(CIContext context, bool highAccuracy, float minFeatureSize) { if (MinFeatureSize == null) { return CreateFaceDetector(context, highAccuracy); } using NSDictionary options = NSDictionary.FromObjectsAndKeys(new NSObject[2] { highAccuracy ? AccuracyHigh : AccuracyLow, new NSNumber(minFeatureSize) }, new NSObject[2] { Accuracy, MinFeatureSize }); return FromType(TypeFace, context, options); } public static CIDetector CreateFaceDetector(CIContext context, FaceDetectorAccuracy? accuracy = null, float? minFeatureSize = null, bool? trackingEnabled = null) { List list = new List(3); List list2 = new List(3); if (accuracy.HasValue) { list.Add(Accuracy); list2.Add((accuracy == FaceDetectorAccuracy.High) ? AccuracyHigh : AccuracyLow); } if (MinFeatureSize != null && minFeatureSize.HasValue) { list.Add(MinFeatureSize); list2.Add(new NSNumber(minFeatureSize.Value)); } if (Tracking != null && trackingEnabled.HasValue) { list.Add(Tracking); list2.Add(NSObject.FromObject(true)); } using NSDictionary options = NSDictionary.FromObjectsAndKeys(list2.ToArray(), list.ToArray()); return FromType(TypeFace, context, options); } public CIFeature[] FeaturesInImage(CIImage image, CIImageOrientation orientation) { using NSDictionary options = NSDictionary.FromObjectsAndKeys(new NSObject[1] { new NSNumber((int)orientation) }, new NSObject[1] { ImageOrientation }); return FeaturesInImage(image, options); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIDetector(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIDetector(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIDetector(IntPtr handle) : base(handle) { } [Export("detectorOfType:context:options:")] internal static CIDetector FromType(NSString detectorType, CIContext context, NSDictionary options) { return (CIDetector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selDetectorOfTypeContextOptions_Handle, (detectorType == null) ? IntPtr.Zero : detectorType.Handle, context?.Handle ?? IntPtr.Zero, options?.Handle ?? IntPtr.Zero)); } [Export("featuresInImage:")] public virtual CIFeature[] FeaturesInImage(CIImage image) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFeaturesInImage_Handle, image.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFeaturesInImage_Handle, image.Handle)); } [Export("featuresInImage:options:")] public virtual CIFeature[] FeaturesInImage(CIImage image, NSDictionary options) { if (image == null) { throw new ArgumentNullException("image"); } if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selFeaturesInImageOptions_Handle, image.Handle, options.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selFeaturesInImageOptions_Handle, image.Handle, options.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDifferenceBlendMode.cs ================================================ using System; namespace CoreImage; public class CIDifferenceBlendMode : CIBlendFilter { public CIDifferenceBlendMode() : base("CIDifferenceBlendMode") { } public CIDifferenceBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDisintegrateWithMaskTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIDisintegrateWithMaskTransition : CITransitionFilter { public CIImage Mask { get { return GetImage("inputMaskImage"); } set { SetImage("inputMaskImage", value); } } public float ShadowRadius { get { return GetFloat("inputShadowRadius"); } set { SetFloat("inputShadowRadius", value); } } public float ShadowDensity { get { return GetFloat("inputShadowDensity"); } set { SetFloat("inputShadowDensity", value); } } public CIVector ShadowOffset { get { return GetVector("inputShadowOffset"); } set { SetValue("inputShadowOffset", value); } } public CIDisintegrateWithMaskTransition() : base("CIDisintegrateWithMaskTransition") { } public CIDisintegrateWithMaskTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDissolveTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIDissolveTransition : CITransitionFilter { public CIDissolveTransition() : base("CIDissolveTransition") { } public CIDissolveTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDistortionFilter.cs ================================================ using System; namespace CoreImage; public abstract class CIDistortionFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } protected CIDistortionFilter(string name) : base(name) { } protected CIDistortionFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIDotScreen.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIDotScreen : CIScreenFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIDotScreen() : base("CIDotScreen") { } public CIDotScreen(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIEightfoldReflectedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIEightfoldReflectedTile : CITileFilter { public CIEightfoldReflectedTile() : base("CIEightfoldReflectedTile") { } public CIEightfoldReflectedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIExclusionBlendMode.cs ================================================ using System; namespace CoreImage; public class CIExclusionBlendMode : CIBlendFilter { public CIExclusionBlendMode() : base("CIExclusionBlendMode") { } public CIExclusionBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIExposureAdjust.cs ================================================ using System; namespace CoreImage; public class CIExposureAdjust : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float EV { get { return GetFloat("inputEV"); } set { SetFloat("inputEV", value); } } public CIExposureAdjust() : base(CIFilter.CreateFilter("CIExposureAdjust")) { } public CIExposureAdjust(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFaceBalance.cs ================================================ using System; namespace CoreImage; public class CIFaceBalance : CIFilter { public CIFaceBalance(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFaceFeature.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIFaceFeature", true)] public class CIFaceFeature : CIFeature { private static readonly IntPtr selHasLeftEyePositionHandle = Selector.GetHandle("hasLeftEyePosition"); private static readonly IntPtr selLeftEyePositionHandle = Selector.GetHandle("leftEyePosition"); private static readonly IntPtr selHasRightEyePositionHandle = Selector.GetHandle("hasRightEyePosition"); private static readonly IntPtr selRightEyePositionHandle = Selector.GetHandle("rightEyePosition"); private static readonly IntPtr selHasMouthPositionHandle = Selector.GetHandle("hasMouthPosition"); private static readonly IntPtr selMouthPositionHandle = Selector.GetHandle("mouthPosition"); private static readonly IntPtr selHasTrackingIDHandle = Selector.GetHandle("hasTrackingID"); private static readonly IntPtr selTrackingIDHandle = Selector.GetHandle("trackingID"); private static readonly IntPtr selHasTrackingFrameCountHandle = Selector.GetHandle("hasTrackingFrameCount"); private static readonly IntPtr selTrackingFrameCountHandle = Selector.GetHandle("trackingFrameCount"); private static readonly IntPtr class_ptr = Class.GetHandle("CIFaceFeature"); public override IntPtr ClassHandle => class_ptr; public virtual bool HasLeftEyePosition { [Export("hasLeftEyePosition")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasLeftEyePositionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasLeftEyePositionHandle); } } public virtual CGPoint LeftEyePosition { [Export("leftEyePosition")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selLeftEyePositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selLeftEyePositionHandle); } } public virtual bool HasRightEyePosition { [Export("hasRightEyePosition")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasRightEyePositionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasRightEyePositionHandle); } } public virtual CGPoint RightEyePosition { [Export("rightEyePosition")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selRightEyePositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selRightEyePositionHandle); } } public virtual bool HasMouthPosition { [Export("hasMouthPosition")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasMouthPositionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasMouthPositionHandle); } } public virtual CGPoint MouthPosition { [Export("mouthPosition")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selMouthPositionHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selMouthPositionHandle); } } [Since(6, 0)] public virtual bool HasTrackingId { [Export("hasTrackingID")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasTrackingIDHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasTrackingIDHandle); } } [Since(6, 0)] public virtual int TrackingId { [Export("trackingID")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackingIDHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackingIDHandle); } } [Since(6, 0)] public virtual bool HasTrackingFrameCount { [Export("hasTrackingFrameCount")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasTrackingFrameCountHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasTrackingFrameCountHandle); } } [Since(6, 0)] public virtual int TrackingFrameCount { [Export("trackingFrameCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTrackingFrameCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTrackingFrameCountHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIFaceFeature(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFaceFeature(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFaceFeature(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFalseColor.cs ================================================ using System; namespace CoreImage; public class CIFalseColor : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public CIFalseColor() : base(CIFilter.CreateFilter("CIFalseColor")) { } public CIFalseColor(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFeature.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIFeature", true)] public class CIFeature : NSObject { private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selBoundsHandle = Selector.GetHandle("bounds"); private static readonly IntPtr class_ptr = Class.GetHandle("CIFeature"); private object __mt_Type_var; private static NSString _TypeFace; public override IntPtr ClassHandle => class_ptr; public virtual NSString Type { [Export("type")] get { return (NSString)(__mt_Type_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle))))); } } public virtual CGRect Bounds { [Export("bounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundsHandle); } return retval; } } [Field("CIFeatureTypeFace", "CoreImage")] public static NSString TypeFace { get { if (_TypeFace == null) { _TypeFace = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "CIFeatureTypeFace"); } return _TypeFace; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIFeature(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFeature(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFeature(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Type_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilter.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIFilter", true)] public class CIFilter : NSObject { private static readonly IntPtr selInputKeysHandle = Selector.GetHandle("inputKeys"); private static readonly IntPtr selOutputKeysHandle = Selector.GetHandle("outputKeys"); private static readonly IntPtr selAttributesHandle = Selector.GetHandle("attributes"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetDefaultsHandle = Selector.GetHandle("setDefaults"); private static readonly IntPtr selFilterWithName_Handle = Selector.GetHandle("filterWithName:"); private static readonly IntPtr selFilterNamesInCategory_Handle = Selector.GetHandle("filterNamesInCategory:"); private static readonly IntPtr selFilterNamesInCategories_Handle = Selector.GetHandle("filterNamesInCategories:"); private static readonly IntPtr selApplyArgumentsOptions_Handle = Selector.GetHandle("apply:arguments:options:"); private static readonly IntPtr selRegisterFilterNameConstructorClassAttributes_Handle = Selector.GetHandle("registerFilterName:constructor:classAttributes:"); private static readonly IntPtr selLocalizedNameForFilterName_Handle = Selector.GetHandle("localizedNameForFilterName:"); private static readonly IntPtr selLocalizedNameForCategory_Handle = Selector.GetHandle("localizedNameForCategory:"); private static readonly IntPtr selLocalizedDescriptionForFilterName_Handle = Selector.GetHandle("localizedDescriptionForFilterName:"); private static readonly IntPtr selLocalizedReferenceDocumentationForFilterName_Handle = Selector.GetHandle("localizedReferenceDocumentationForFilterName:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIFilter"); private object __mt_Attributes_var; public NSObject this[NSString key] { get { return ValueForKey(key); } set { SetValueForKey(value, key); } } public override IntPtr ClassHandle => class_ptr; public virtual string[] InputKeys { [Export("inputKeys")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputKeysHandle)); } } public virtual string[] OutputKeys { [Export("outputKeys")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputKeysHandle)); } } public virtual NSDictionary Attributes { [Export("attributes")] get { return (NSDictionary)(__mt_Attributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesHandle))))); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } internal CIFilter(string name) : base(CreateFilter(name)) { } public static string[] FilterNamesInCategories(params string[] categories) { return _FilterNamesInCategories(categories); } internal NSObject ValueForKey(string key) { using NSString key2 = new NSString(key); return ValueForKey(key2); } internal void SetValue(string key, NSObject value) { using NSString key2 = new NSString(key); SetValueForKey(value, key2); } internal static IntPtr CreateFilter(string name) { using NSString nSString = new NSString(name); return Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFilterWithName_Handle, nSString.Handle); } internal void SetFloat(string key, float value) { using NSString key2 = new NSString(key); SetValueForKey(new NSNumber(value), key2); } internal float GetFloat(string key) { using NSString key2 = new NSString(key); NSObject nSObject = ValueForKey(key2); if (nSObject is NSNumber) { return (nSObject as NSNumber).FloatValue; } return 0f; } internal CIVector GetVector(string key) { return ValueForKey(key) as CIVector; } internal CIColor GetColor(string key) { return ValueForKey(key) as CIColor; } internal CIImage GetInputImage() { return ValueForKey(CIFilterInputKey.Image) as CIImage; } internal void SetInputImage(CIImage value) { SetValueForKey(value, CIFilterInputKey.Image); } internal CIImage GetBackgroundImage() { return GetImage("inputBackgroundImage"); } internal CIImage GetImage(string key) { using NSString key2 = new NSString(key); return ValueForKey(key2) as CIImage; } internal void SetBackgroundImage(CIImage value) { SetImage("inputBackgroundImage", value); } internal void SetImage(string key, CIImage value) { using NSString key2 = new NSString(key); SetValueForKey(value, key2); } internal static string GetFilterName(IntPtr filterHandle) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(filterHandle, selNameHandle)); } internal static CIFilter FromName(string filterName, IntPtr handle) { return filterName switch { "CIAdditionCompositing" => new CIAdditionCompositing(handle), "CIAffineTransform" => new CIAffineTransform(handle), "CICheckerboardGenerator" => new CICheckerboardGenerator(handle), "CIColorBlendMode" => new CIColorBlendMode(handle), "CIColorBurnBlendMode" => new CIColorBurnBlendMode(handle), "CIColorControls" => new CIColorControls(handle), "CIColorCube" => new CIColorCube(handle), "CIColorDodgeBlendMode" => new CIColorDodgeBlendMode(handle), "CIColorInvert" => new CIColorInvert(handle), "CIColorMatrix" => new CIColorMatrix(handle), "CIColorMonochrome" => new CIColorMonochrome(handle), "CIConstantColorGenerator" => new CIConstantColorGenerator(handle), "CICrop" => new CICrop(handle), "CIDarkenBlendMode" => new CIDarkenBlendMode(handle), "CIDifferenceBlendMode" => new CIDifferenceBlendMode(handle), "CIExclusionBlendMode" => new CIExclusionBlendMode(handle), "CIExposureAdjust" => new CIExposureAdjust(handle), "CIFalseColor" => new CIFalseColor(handle), "CIGammaAdjust" => new CIGammaAdjust(handle), "CIGaussianGradient" => new CIGaussianGradient(handle), "CIHardLightBlendMode" => new CIHardLightBlendMode(handle), "CIHighlightShadowAdjust" => new CIHighlightShadowAdjust(handle), "CIHueAdjust" => new CIHueAdjust(handle), "CIHueBlendMode" => new CIHueBlendMode(handle), "CILightenBlendMode" => new CILightenBlendMode(handle), "CILinearGradient" => new CILinearGradient(handle), "CILuminosityBlendMode" => new CILuminosityBlendMode(handle), "CIMaximumCompositing" => new CIMaximumCompositing(handle), "CIMinimumCompositing" => new CIMinimumCompositing(handle), "CIMultiplyBlendMode" => new CIMultiplyBlendMode(handle), "CIMultiplyCompositing" => new CIMultiplyCompositing(handle), "CIOverlayBlendMode" => new CIOverlayBlendMode(handle), "CIRadialGradient" => new CIRadialGradient(handle), "CISaturationBlendMode" => new CISaturationBlendMode(handle), "CIScreenBlendMode" => new CIScreenBlendMode(handle), "CISepiaTone" => new CISepiaTone(handle), "CISoftLightBlendMode" => new CISoftLightBlendMode(handle), "CISourceAtopCompositing" => new CISourceAtopCompositing(handle), "CISourceInCompositing" => new CISourceInCompositing(handle), "CISourceOutCompositing" => new CISourceOutCompositing(handle), "CISourceOverCompositing" => new CISourceOverCompositing(handle), "CIStraightenFilter" => new CIStraightenFilter(handle), "CIStripesGenerator" => new CIStripesGenerator(handle), "CITemperatureAndTint" => new CITemperatureAndTint(handle), "CIToneCurve" => new CIToneCurve(handle), "CIVibrance" => new CIVibrance(handle), "CIWhitePointAdjust" => new CIWhitePointAdjust(handle), "CIFaceBalance" => new CIFaceBalance(handle), "CIAffineClamp" => new CIAffineClamp(handle), "CIAffineTile" => new CIAffineTile(handle), "CIBlendWithMask" => new CIBlendWithMask(handle), "CIBarsSwipeTransition" => new CIBarsSwipeTransition(handle), "CICopyMachineTransition" => new CICopyMachineTransition(handle), "CIDisintegrateWithMaskTransition" => new CIDisintegrateWithMaskTransition(handle), "CIDissolveTransition" => new CIDissolveTransition(handle), "CIFlashTransition" => new CIFlashTransition(handle), "CIModTransition" => new CIModTransition(handle), "CISwipeTransition" => new CISwipeTransition(handle), "CIBloom" => new CIBloom(handle), "CICircularScreen" => new CICircularScreen(handle), "CIDotScreen" => new CIDotScreen(handle), "CIHatchedScreen" => new CIHatchedScreen(handle), "CILineScreen" => new CILineScreen(handle), "CIColorMap" => new CIColorMap(handle), "CIColorPosterize" => new CIColorPosterize(handle), "CIEightfoldReflectedTile" => new CIEightfoldReflectedTile(handle), "CIFourfoldReflectedTile" => new CIFourfoldReflectedTile(handle), "CIFourfoldRotatedTile" => new CIFourfoldRotatedTile(handle), "CIFourfoldTranslatedTile" => new CIFourfoldTranslatedTile(handle), "CISixfoldReflectedTile" => new CISixfoldReflectedTile(handle), "CISixfoldRotatedTile" => new CISixfoldRotatedTile(handle), "CITwelvefoldReflectedTile" => new CITwelvefoldReflectedTile(handle), "CIGaussianBlur" => new CIGaussianBlur(handle), "CIGloom" => new CIGloom(handle), "CIHoleDistortion" => new CIHoleDistortion(handle), "CIPinchDistortion" => new CIPinchDistortion(handle), "CITwirlDistortion" => new CITwirlDistortion(handle), "CIVortexDistortion" => new CIVortexDistortion(handle), "CILanczosScaleTransform" => new CILanczosScaleTransform(handle), "CIMaskToAlpha" => new CIMaskToAlpha(handle), "CIMaximumComponent" => new CIMaximumComponent(handle), "CIMinimumComponent" => new CIMinimumComponent(handle), "CIPerspectiveTile" => new CIPerspectiveTile(handle), "CIPerspectiveTransform" => new CIPerspectiveTransform(handle), "CIPixellate" => new CIPixellate(handle), "CIRandomGenerator" => new CIRandomGenerator(handle), "CISharpenLuminance" => new CISharpenLuminance(handle), "CIStarShineGenerator" => new CIStarShineGenerator(handle), "CIUnsharpMask" => new CIUnsharpMask(handle), "CICircleSplashDistortion" => new CICircleSplashDistortion(handle), "CIDepthOfField" => new CIDepthOfField(handle), "CIPageCurlTransition" => new CIPageCurlTransition(handle), "CIRippleTransition" => new CIRippleTransition(handle), _ => throw new NotImplementedException($"Unknown filter type returned: `{filterName}', returning a default CIFilter"), }; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIFilter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilter(IntPtr handle) : base(handle) { } [Export("setDefaults")] public virtual void SetDefaults() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetDefaultsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetDefaultsHandle); } } [Export("filterWithName:")] public static CIFilter FromName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); CIFilter result = (CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFilterWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("filterNamesInCategory:")] public static string[] FilterNamesInCategory(string category) { if (category == null) { throw new ArgumentNullException("category"); } IntPtr arg = NSString.CreateNative(category); string[] result = NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFilterNamesInCategory_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("filterNamesInCategories:")] internal static string[] _FilterNamesInCategories(string[] categories) { if (categories == null) { throw new ArgumentNullException("categories"); } NSArray nSArray = NSArray.FromStrings(categories); string[] result = NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFilterNamesInCategories_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("apply:arguments:options:")] public virtual CIImage Apply(CIKernel k, NSArray args, NSDictionary options) { if (k == null) { throw new ArgumentNullException("k"); } if (args == null) { throw new ArgumentNullException("args"); } if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selApplyArgumentsOptions_Handle, k.Handle, args.Handle, options.Handle)); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selApplyArgumentsOptions_Handle, k.Handle, args.Handle, options.Handle)); } [Export("registerFilterName:constructor:classAttributes:")] public static void RegisterFilterName(string name, NSObject constructorObject, NSDictionary classAttributes) { if (name == null) { throw new ArgumentNullException("name"); } if (constructorObject == null) { throw new ArgumentNullException("constructorObject"); } if (classAttributes == null) { throw new ArgumentNullException("classAttributes"); } IntPtr arg = NSString.CreateNative(name); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selRegisterFilterNameConstructorClassAttributes_Handle, arg, constructorObject.Handle, classAttributes.Handle); NSString.ReleaseNative(arg); } [Export("localizedNameForFilterName:")] public static string FilterLocalizedName(string filterName) { if (filterName == null) { throw new ArgumentNullException("filterName"); } IntPtr arg = NSString.CreateNative(filterName); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocalizedNameForFilterName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("localizedNameForCategory:")] public static string CategoryLocalizedName(string category) { if (category == null) { throw new ArgumentNullException("category"); } IntPtr arg = NSString.CreateNative(category); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocalizedNameForCategory_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("localizedDescriptionForFilterName:")] public static string FilterLocalizedDescription(string filterName) { if (filterName == null) { throw new ArgumentNullException("filterName"); } IntPtr arg = NSString.CreateNative(filterName); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocalizedDescriptionForFilterName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("localizedReferenceDocumentationForFilterName:")] public static NSUrl FilterLocalizedReferenceDocumentation(string filterName) { if (filterName == null) { throw new ArgumentNullException("filterName"); } IntPtr arg = NSString.CreateNative(filterName); NSUrl result = (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocalizedReferenceDocumentationForFilterName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setValue:forKey:")] internal new virtual void SetValueForKey(NSObject value, NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValueForKey_Handle, value?.Handle ?? IntPtr.Zero, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValueForKey_Handle, value?.Handle ?? IntPtr.Zero, key.Handle); } } [Export("valueForKey:")] internal new virtual NSObject ValueForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForKey_Handle, key.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Attributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterApply.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIFilterApply { private static NSString _OptionExtent; private static NSString _OptionDefinition; private static NSString _OptionUserInfo; private static NSString _OptionColorSpace; [Field("kCIApplyOptionExtent", "Quartz")] public static NSString OptionExtent { get { if (_OptionExtent == null) { _OptionExtent = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIApplyOptionExtent"); } return _OptionExtent; } } [Field("kCIApplyOptionDefinition", "Quartz")] public static NSString OptionDefinition { get { if (_OptionDefinition == null) { _OptionDefinition = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIApplyOptionDefinition"); } return _OptionDefinition; } } [Field("kCIApplyOptionUserInfo", "Quartz")] public static NSString OptionUserInfo { get { if (_OptionUserInfo == null) { _OptionUserInfo = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIApplyOptionUserInfo"); } return _OptionUserInfo; } } [Field("kCIApplyOptionColorSpace", "Quartz")] public static NSString OptionColorSpace { get { if (_OptionColorSpace == null) { _OptionColorSpace = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIApplyOptionColorSpace"); } return _OptionColorSpace; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterAttributes.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIFilterAttributes { private static NSString _FilterName; private static NSString _FilterDisplayName; private static NSString _Description; private static NSString _ReferenceDocumentation; private static NSString _FilterCategories; private static NSString _Class; private static NSString _Type; private static NSString _Min; private static NSString _Max; private static NSString _SliderMin; private static NSString _SliderMax; private static NSString _Default; private static NSString _Identity; private static NSString _Name; private static NSString _DisplayName; private static NSString _UIParameterSet; private static NSString _TypeTime; private static NSString _TypeScalar; private static NSString _TypeDistance; private static NSString _TypeAngle; private static NSString _TypeBoolean; private static NSString _TypeInteger; private static NSString _TypeCount; private static NSString _TypePosition; private static NSString _TypeOffset; private static NSString _TypePosition3; private static NSString _TypeRectangle; private static NSString _TypeOpaqueColor; private static NSString _TypeGradient; [Field("kCIAttributeFilterName", "Quartz")] public static NSString FilterName { get { if (_FilterName == null) { _FilterName = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeFilterName"); } return _FilterName; } } [Field("kCIAttributeFilterDisplayName", "Quartz")] public static NSString FilterDisplayName { get { if (_FilterDisplayName == null) { _FilterDisplayName = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeFilterDisplayName"); } return _FilterDisplayName; } } [Field("kCIAttributeDescription", "Quartz")] public static NSString Description { get { if (_Description == null) { _Description = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeDescription"); } return _Description; } } [Field("kCIAttributeReferenceDocumentation", "Quartz")] public static NSString ReferenceDocumentation { get { if (_ReferenceDocumentation == null) { _ReferenceDocumentation = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeReferenceDocumentation"); } return _ReferenceDocumentation; } } [Field("kCIAttributeFilterCategories", "Quartz")] public static NSString FilterCategories { get { if (_FilterCategories == null) { _FilterCategories = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeFilterCategories"); } return _FilterCategories; } } [Field("kCIAttributeClass", "Quartz")] public static NSString Class { get { if (_Class == null) { _Class = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeClass"); } return _Class; } } [Field("kCIAttributeType", "Quartz")] public static NSString Type { get { if (_Type == null) { _Type = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeType"); } return _Type; } } [Field("kCIAttributeMin", "Quartz")] public static NSString Min { get { if (_Min == null) { _Min = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeMin"); } return _Min; } } [Field("kCIAttributeMax", "Quartz")] public static NSString Max { get { if (_Max == null) { _Max = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeMax"); } return _Max; } } [Field("kCIAttributeSliderMin", "Quartz")] public static NSString SliderMin { get { if (_SliderMin == null) { _SliderMin = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeSliderMin"); } return _SliderMin; } } [Field("kCIAttributeSliderMax", "Quartz")] public static NSString SliderMax { get { if (_SliderMax == null) { _SliderMax = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeSliderMax"); } return _SliderMax; } } [Field("kCIAttributeDefault", "Quartz")] public static NSString Default { get { if (_Default == null) { _Default = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeDefault"); } return _Default; } } [Field("kCIAttributeIdentity", "Quartz")] public static NSString Identity { get { if (_Identity == null) { _Identity = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeIdentity"); } return _Identity; } } [Field("kCIAttributeName", "Quartz")] public static NSString Name { get { if (_Name == null) { _Name = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeName"); } return _Name; } } [Field("kCIAttributeDisplayName", "Quartz")] public static NSString DisplayName { get { if (_DisplayName == null) { _DisplayName = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeDisplayName"); } return _DisplayName; } } [Field("kCIUIParameterSet", "Quartz")] public static NSString UIParameterSet { get { if (_UIParameterSet == null) { _UIParameterSet = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIUIParameterSet"); } return _UIParameterSet; } } [Field("kCIAttributeTypeTime", "Quartz")] public static NSString TypeTime { get { if (_TypeTime == null) { _TypeTime = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeTime"); } return _TypeTime; } } [Field("kCIAttributeTypeScalar", "Quartz")] public static NSString TypeScalar { get { if (_TypeScalar == null) { _TypeScalar = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeScalar"); } return _TypeScalar; } } [Field("kCIAttributeTypeDistance", "Quartz")] public static NSString TypeDistance { get { if (_TypeDistance == null) { _TypeDistance = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeDistance"); } return _TypeDistance; } } [Field("kCIAttributeTypeAngle", "Quartz")] public static NSString TypeAngle { get { if (_TypeAngle == null) { _TypeAngle = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeAngle"); } return _TypeAngle; } } [Field("kCIAttributeTypeBoolean", "Quartz")] public static NSString TypeBoolean { get { if (_TypeBoolean == null) { _TypeBoolean = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeBoolean"); } return _TypeBoolean; } } [Field("kCIAttributeTypeInteger", "Quartz")] public static NSString TypeInteger { get { if (_TypeInteger == null) { _TypeInteger = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeInteger"); } return _TypeInteger; } } [Field("kCIAttributeTypeCount", "Quartz")] public static NSString TypeCount { get { if (_TypeCount == null) { _TypeCount = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeCount"); } return _TypeCount; } } [Field("kCIAttributeTypePosition", "Quartz")] public static NSString TypePosition { get { if (_TypePosition == null) { _TypePosition = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypePosition"); } return _TypePosition; } } [Field("kCIAttributeTypeOffset", "Quartz")] public static NSString TypeOffset { get { if (_TypeOffset == null) { _TypeOffset = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeOffset"); } return _TypeOffset; } } [Field("kCIAttributeTypePosition3", "Quartz")] public static NSString TypePosition3 { get { if (_TypePosition3 == null) { _TypePosition3 = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypePosition3"); } return _TypePosition3; } } [Field("kCIAttributeTypeRectangle", "Quartz")] public static NSString TypeRectangle { get { if (_TypeRectangle == null) { _TypeRectangle = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeRectangle"); } return _TypeRectangle; } } [Field("kCIAttributeTypeOpaqueColor", "Quartz")] public static NSString TypeOpaqueColor { get { if (_TypeOpaqueColor == null) { _TypeOpaqueColor = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeOpaqueColor"); } return _TypeOpaqueColor; } } [Field("kCIAttributeTypeGradient", "Quartz")] public static NSString TypeGradient { get { if (_TypeGradient == null) { _TypeGradient = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIAttributeTypeGradient"); } return _TypeGradient; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterCategory.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIFilterCategory { private static NSString _DistortionEffect; private static NSString _GeometryAdjustment; private static NSString _CompositeOperation; private static NSString _HalftoneEffect; private static NSString _ColorAdjustment; private static NSString _ColorEffect; private static NSString _Transition; private static NSString _TileEffect; private static NSString _Generator; private static NSString _Reduction; private static NSString _Gradient; private static NSString _Stylize; private static NSString _Sharpen; private static NSString _Blur; private static NSString _Video; private static NSString _StillImage; private static NSString _Interlaced; private static NSString _NonSquarePixels; private static NSString _HighDynamicRange; private static NSString _BuiltIn; private static NSString _FilterGenerator; [Field("kCICategoryDistortionEffect", "Quartz")] public static NSString DistortionEffect { get { if (_DistortionEffect == null) { _DistortionEffect = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryDistortionEffect"); } return _DistortionEffect; } } [Field("kCICategoryGeometryAdjustment", "Quartz")] public static NSString GeometryAdjustment { get { if (_GeometryAdjustment == null) { _GeometryAdjustment = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryGeometryAdjustment"); } return _GeometryAdjustment; } } [Field("kCICategoryCompositeOperation", "Quartz")] public static NSString CompositeOperation { get { if (_CompositeOperation == null) { _CompositeOperation = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryCompositeOperation"); } return _CompositeOperation; } } [Field("kCICategoryHalftoneEffect", "Quartz")] public static NSString HalftoneEffect { get { if (_HalftoneEffect == null) { _HalftoneEffect = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryHalftoneEffect"); } return _HalftoneEffect; } } [Field("kCICategoryColorAdjustment", "Quartz")] public static NSString ColorAdjustment { get { if (_ColorAdjustment == null) { _ColorAdjustment = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryColorAdjustment"); } return _ColorAdjustment; } } [Field("kCICategoryColorEffect", "Quartz")] public static NSString ColorEffect { get { if (_ColorEffect == null) { _ColorEffect = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryColorEffect"); } return _ColorEffect; } } [Field("kCICategoryTransition", "Quartz")] public static NSString Transition { get { if (_Transition == null) { _Transition = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryTransition"); } return _Transition; } } [Field("kCICategoryTileEffect", "Quartz")] public static NSString TileEffect { get { if (_TileEffect == null) { _TileEffect = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryTileEffect"); } return _TileEffect; } } [Field("kCICategoryGenerator", "Quartz")] public static NSString Generator { get { if (_Generator == null) { _Generator = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryGenerator"); } return _Generator; } } [Field("kCICategoryReduction", "Quartz")] public static NSString Reduction { get { if (_Reduction == null) { _Reduction = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryReduction"); } return _Reduction; } } [Field("kCICategoryGradient", "Quartz")] public static NSString Gradient { get { if (_Gradient == null) { _Gradient = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryGradient"); } return _Gradient; } } [Field("kCICategoryStylize", "Quartz")] public static NSString Stylize { get { if (_Stylize == null) { _Stylize = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryStylize"); } return _Stylize; } } [Field("kCICategorySharpen", "Quartz")] public static NSString Sharpen { get { if (_Sharpen == null) { _Sharpen = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategorySharpen"); } return _Sharpen; } } [Field("kCICategoryBlur", "Quartz")] public static NSString Blur { get { if (_Blur == null) { _Blur = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryBlur"); } return _Blur; } } [Field("kCICategoryVideo", "Quartz")] public static NSString Video { get { if (_Video == null) { _Video = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryVideo"); } return _Video; } } [Field("kCICategoryStillImage", "Quartz")] public static NSString StillImage { get { if (_StillImage == null) { _StillImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryStillImage"); } return _StillImage; } } [Field("kCICategoryInterlaced", "Quartz")] public static NSString Interlaced { get { if (_Interlaced == null) { _Interlaced = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryInterlaced"); } return _Interlaced; } } [Field("kCICategoryNonSquarePixels", "Quartz")] public static NSString NonSquarePixels { get { if (_NonSquarePixels == null) { _NonSquarePixels = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryNonSquarePixels"); } return _NonSquarePixels; } } [Field("kCICategoryHighDynamicRange", "Quartz")] public static NSString HighDynamicRange { get { if (_HighDynamicRange == null) { _HighDynamicRange = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryHighDynamicRange"); } return _HighDynamicRange; } } [Field("kCICategoryBuiltIn", "Quartz")] public static NSString BuiltIn { get { if (_BuiltIn == null) { _BuiltIn = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryBuiltIn"); } return _BuiltIn; } } [Field("kCICategoryFilterGenerator", "Quartz")] public static NSString FilterGenerator { get { if (_FilterGenerator == null) { _FilterGenerator = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCICategoryFilterGenerator"); } return _FilterGenerator; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterGenerator.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIFilterGenerator", true)] public class CIFilterGenerator : NSObject { private static readonly IntPtr selExportedKeysHandle = Selector.GetHandle("exportedKeys"); private static readonly IntPtr selClassAttributesHandle = Selector.GetHandle("classAttributes"); private static readonly IntPtr selSetClassAttributes_Handle = Selector.GetHandle("setClassAttributes:"); private static readonly IntPtr selFilterGeneratorHandle = Selector.GetHandle("filterGenerator"); private static readonly IntPtr selFilterGeneratorWithContentsOfURL_Handle = Selector.GetHandle("filterGeneratorWithContentsOfURL:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selConnectObjectWithKeyToObjectWithKey_Handle = Selector.GetHandle("connectObject:withKey:toObject:withKey:"); private static readonly IntPtr selDisconnectObjectWithKeyToObjectWithKey_Handle = Selector.GetHandle("disconnectObject:withKey:toObject:withKey:"); private static readonly IntPtr selExportKeyFromObjectWithName_Handle = Selector.GetHandle("exportKey:fromObject:withName:"); private static readonly IntPtr selRemoveExportedKey_Handle = Selector.GetHandle("removeExportedKey:"); private static readonly IntPtr selSetAttributesForExportedKey_Handle = Selector.GetHandle("setAttributes:forExportedKey:"); private static readonly IntPtr selFilterHandle = Selector.GetHandle("filter"); private static readonly IntPtr selRegisterFilterName_Handle = Selector.GetHandle("registerFilterName:"); private static readonly IntPtr selWriteToURLAtomically_Handle = Selector.GetHandle("writeToURL:atomically:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIFilterGenerator"); private object __mt_ExportedKeys_var; private object __mt_ClassAttributes_var; private static NSString _ExportedKey; private static NSString _ExportedKeyTargetObject; private static NSString _ExportedKeyName; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary ExportedKeys { [Export("exportedKeys")] get { return (NSDictionary)(__mt_ExportedKeys_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExportedKeysHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExportedKeysHandle))))); } } public virtual NSDictionary ClassAttributes { [Export("classAttributes")] get { return (NSDictionary)(__mt_ClassAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClassAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selClassAttributesHandle))))); } [Export("setClassAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetClassAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetClassAttributes_Handle, value.Handle); } __mt_ClassAttributes_var = value; } } [Field("kCIFilterGeneratorExportedKey", "Quartz")] public static NSString ExportedKey { get { if (_ExportedKey == null) { _ExportedKey = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIFilterGeneratorExportedKey"); } return _ExportedKey; } } [Field("kCIFilterGeneratorExportedKeyTargetObject", "Quartz")] public static NSString ExportedKeyTargetObject { get { if (_ExportedKeyTargetObject == null) { _ExportedKeyTargetObject = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIFilterGeneratorExportedKeyTargetObject"); } return _ExportedKeyTargetObject; } } [Field("kCIFilterGeneratorExportedKeyName", "Quartz")] public static NSString ExportedKeyName { get { if (_ExportedKeyName == null) { _ExportedKeyName = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIFilterGeneratorExportedKeyName"); } return _ExportedKeyName; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIFilterGenerator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilterGenerator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilterGenerator(IntPtr handle) : base(handle) { } [Export("filterGenerator")] public static CIFilterGenerator Create() { return (CIFilterGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFilterGeneratorHandle)); } [Export("filterGeneratorWithContentsOfURL:")] public static CIFilterGenerator FromUrl(NSUrl aURL) { if (aURL == null) { throw new ArgumentNullException("aURL"); } return (CIFilterGenerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFilterGeneratorWithContentsOfURL_Handle, aURL.Handle)); } [Export("initWithContentsOfURL:")] public CIFilterGenerator(NSUrl aURL) : base(NSObjectFlag.Empty) { if (aURL == null) { throw new ArgumentNullException("aURL"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, aURL.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, aURL.Handle); } } [Export("connectObject:withKey:toObject:withKey:")] public virtual void ConnectObject(NSObject sourceObject, string withSourceKey, NSObject targetObject, string targetKey) { if (sourceObject == null) { throw new ArgumentNullException("sourceObject"); } if (withSourceKey == null) { throw new ArgumentNullException("withSourceKey"); } if (targetObject == null) { throw new ArgumentNullException("targetObject"); } if (targetKey == null) { throw new ArgumentNullException("targetKey"); } IntPtr arg = NSString.CreateNative(withSourceKey); IntPtr arg2 = NSString.CreateNative(targetKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selConnectObjectWithKeyToObjectWithKey_Handle, sourceObject.Handle, arg, targetObject.Handle, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selConnectObjectWithKeyToObjectWithKey_Handle, sourceObject.Handle, arg, targetObject.Handle, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("disconnectObject:withKey:toObject:withKey:")] public virtual void DisconnectObject(NSObject sourceObject, string sourceKey, NSObject targetObject, string targetKey) { if (sourceObject == null) { throw new ArgumentNullException("sourceObject"); } if (sourceKey == null) { throw new ArgumentNullException("sourceKey"); } if (targetObject == null) { throw new ArgumentNullException("targetObject"); } if (targetKey == null) { throw new ArgumentNullException("targetKey"); } IntPtr arg = NSString.CreateNative(sourceKey); IntPtr arg2 = NSString.CreateNative(targetKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selDisconnectObjectWithKeyToObjectWithKey_Handle, sourceObject.Handle, arg, targetObject.Handle, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selDisconnectObjectWithKeyToObjectWithKey_Handle, sourceObject.Handle, arg, targetObject.Handle, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("exportKey:fromObject:withName:")] public virtual void ExportKey(string key, NSObject targetObject, string exportedKeyName) { if (key == null) { throw new ArgumentNullException("key"); } if (targetObject == null) { throw new ArgumentNullException("targetObject"); } if (exportedKeyName == null) { throw new ArgumentNullException("exportedKeyName"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(exportedKeyName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selExportKeyFromObjectWithName_Handle, arg, targetObject.Handle, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selExportKeyFromObjectWithName_Handle, arg, targetObject.Handle, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("removeExportedKey:")] public virtual void RemoveExportedKey(string exportedKeyName) { if (exportedKeyName == null) { throw new ArgumentNullException("exportedKeyName"); } IntPtr arg = NSString.CreateNative(exportedKeyName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveExportedKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveExportedKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("setAttributes:forExportedKey:")] public virtual void SetAttributesforExportedKey(NSDictionary attributes, NSString exportedKey) { if (attributes == null) { throw new ArgumentNullException("attributes"); } if (exportedKey == null) { throw new ArgumentNullException("exportedKey"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributesForExportedKey_Handle, attributes.Handle, exportedKey.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributesForExportedKey_Handle, attributes.Handle, exportedKey.Handle); } } [Export("filter")] public virtual CIFilter CreateFilter() { if (IsDirectBinding) { return (CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterHandle)); } return (CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterHandle)); } [Export("registerFilterName:")] public virtual void RegisterFilterName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRegisterFilterName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterFilterName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("writeToURL:atomically:")] public virtual bool Save(NSUrl toUrl, bool atomically) { if (toUrl == null) { throw new ArgumentNullException("toUrl"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_bool(base.Handle, selWriteToURLAtomically_Handle, toUrl.Handle, atomically); } return Messaging.bool_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selWriteToURLAtomically_Handle, toUrl.Handle, atomically); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ExportedKeys_var = null; __mt_ClassAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterInputKey.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIFilterInputKey { private static NSString _BackgroundImage; private static NSString _Image; private static NSString _Time; private static NSString _Transform; private static NSString _Scale; private static NSString _AspectRatio; private static NSString _Center; private static NSString _Radius; private static NSString _Angle; private static NSString _Refraction; private static NSString _Width; private static NSString _Sharpness; private static NSString _Intensity; private static NSString _EV; private static NSString _Saturation; private static NSString _Color; private static NSString _Brightness; private static NSString _Contrast; private static NSString _GradientImage; private static NSString _MaskImage; private static NSString _ShadingImage; private static NSString _TargetImage; private static NSString _Extent; [Field("kCIInputBackgroundImageKey", "Quartz")] public static NSString BackgroundImage { get { if (_BackgroundImage == null) { _BackgroundImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputBackgroundImageKey"); } return _BackgroundImage; } } [Field("kCIInputImageKey", "Quartz")] public static NSString Image { get { if (_Image == null) { _Image = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputImageKey"); } return _Image; } } [Field("kCIInputTimeKey", "Quartz")] public static NSString Time { get { if (_Time == null) { _Time = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputTimeKey"); } return _Time; } } [Field("kCIInputTransformKey", "Quartz")] public static NSString Transform { get { if (_Transform == null) { _Transform = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputTransformKey"); } return _Transform; } } [Field("kCIInputScaleKey", "Quartz")] public static NSString Scale { get { if (_Scale == null) { _Scale = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputScaleKey"); } return _Scale; } } [Field("kCIInputAspectRatioKey", "Quartz")] public static NSString AspectRatio { get { if (_AspectRatio == null) { _AspectRatio = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputAspectRatioKey"); } return _AspectRatio; } } [Field("kCIInputCenterKey", "Quartz")] public static NSString Center { get { if (_Center == null) { _Center = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputCenterKey"); } return _Center; } } [Field("kCIInputRadiusKey", "Quartz")] public static NSString Radius { get { if (_Radius == null) { _Radius = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputRadiusKey"); } return _Radius; } } [Field("kCIInputAngleKey", "Quartz")] public static NSString Angle { get { if (_Angle == null) { _Angle = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputAngleKey"); } return _Angle; } } [Field("kCIInputRefractionKey", "Quartz")] public static NSString Refraction { get { if (_Refraction == null) { _Refraction = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputRefractionKey"); } return _Refraction; } } [Field("kCIInputWidthKey", "Quartz")] public static NSString Width { get { if (_Width == null) { _Width = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputWidthKey"); } return _Width; } } [Field("kCIInputSharpnessKey", "Quartz")] public static NSString Sharpness { get { if (_Sharpness == null) { _Sharpness = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputSharpnessKey"); } return _Sharpness; } } [Field("kCIInputIntensityKey", "Quartz")] public static NSString Intensity { get { if (_Intensity == null) { _Intensity = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputIntensityKey"); } return _Intensity; } } [Field("kCIInputEVKey", "Quartz")] public static NSString EV { get { if (_EV == null) { _EV = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputEVKey"); } return _EV; } } [Field("kCIInputSaturationKey", "Quartz")] public static NSString Saturation { get { if (_Saturation == null) { _Saturation = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputSaturationKey"); } return _Saturation; } } [Field("kCIInputColorKey", "Quartz")] public static NSString Color { get { if (_Color == null) { _Color = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputColorKey"); } return _Color; } } [Field("kCIInputBrightnessKey", "Quartz")] public static NSString Brightness { get { if (_Brightness == null) { _Brightness = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputBrightnessKey"); } return _Brightness; } } [Field("kCIInputContrastKey", "Quartz")] public static NSString Contrast { get { if (_Contrast == null) { _Contrast = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputContrastKey"); } return _Contrast; } } [Field("kCIInputGradientImageKey", "Quartz")] public static NSString GradientImage { get { if (_GradientImage == null) { _GradientImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputGradientImageKey"); } return _GradientImage; } } [Field("kCIInputMaskImageKey", "Quartz")] public static NSString MaskImage { get { if (_MaskImage == null) { _MaskImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputMaskImageKey"); } return _MaskImage; } } [Field("kCIInputShadingImageKey", "Quartz")] public static NSString ShadingImage { get { if (_ShadingImage == null) { _ShadingImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputShadingImageKey"); } return _ShadingImage; } } [Field("kCIInputTargetImageKey", "Quartz")] public static NSString TargetImage { get { if (_TargetImage == null) { _TargetImage = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputTargetImageKey"); } return _TargetImage; } } [Field("kCIInputExtentKey", "Quartz")] public static NSString Extent { get { if (_Extent == null) { _Extent = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIInputExtentKey"); } return _Extent; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterMode.cs ================================================ namespace CoreImage; public enum CIFilterMode { Nearest, Linear } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterOutputKey.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIFilterOutputKey { private static NSString _Image; [Field("kCIOutputImageKey", "Quartz")] public static NSString Image { get { if (_Image == null) { _Image = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIOutputImageKey"); } return _Image; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFilterShape.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIFilterShape", true)] public class CIFilterShape : NSObject { private static readonly IntPtr selShapeWithRect_Handle = Selector.GetHandle("shapeWithRect:"); private static readonly IntPtr selInitWithRect_Handle = Selector.GetHandle("initWithRect:"); private static readonly IntPtr selTransformByInterior_Handle = Selector.GetHandle("transformBy:interior:"); private static readonly IntPtr selInsetByXY_Handle = Selector.GetHandle("insetByX:Y:"); private static readonly IntPtr selUnionWith_Handle = Selector.GetHandle("unionWith:"); private static readonly IntPtr selUnionWithRect_Handle = Selector.GetHandle("unionWithRect:"); private static readonly IntPtr selIntersectWith_Handle = Selector.GetHandle("intersectWith:"); private static readonly IntPtr selIntersectWithRect_Handle = Selector.GetHandle("intersectWithRect:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIFilterShape"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIFilterShape(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilterShape(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIFilterShape(IntPtr handle) : base(handle) { } [Export("shapeWithRect:")] public static CIFilterShape FromRect(CGRect rect) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(class_ptr, selShapeWithRect_Handle, rect)); } [Export("initWithRect:")] public CIFilterShape(CGRect rect) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithRect_Handle, rect); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithRect_Handle, rect); } } [Export("transformBy:interior:")] public virtual CIFilterShape Transform(CGAffineTransform transformation, bool interiorFlag) { if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGAffineTransform_bool(base.Handle, selTransformByInterior_Handle, transformation, interiorFlag)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGAffineTransform_bool(base.SuperHandle, selTransformByInterior_Handle, transformation, interiorFlag)); } [Export("insetByX:Y:")] public virtual CIFilterShape Inset(long dx, long dy) { if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64_Int64(base.Handle, selInsetByXY_Handle, dx, dy)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Int64_Int64(base.SuperHandle, selInsetByXY_Handle, dx, dy)); } [Export("unionWith:")] public virtual CIFilterShape Union(CIFilterShape other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selUnionWith_Handle, other.Handle)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnionWith_Handle, other.Handle)); } [Export("unionWithRect:")] public virtual CIFilterShape Union(CGRect rectangle) { if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selUnionWithRect_Handle, rectangle)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selUnionWithRect_Handle, rectangle)); } [Export("intersectWith:")] public virtual CIFilterShape Intersect(CIFilterShape other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selIntersectWith_Handle, other.Handle)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntersectWith_Handle, other.Handle)); } [Export("intersectWithRect:")] public virtual CIFilterShape IntersectWithRect(CGRect rectangle) { if (IsDirectBinding) { return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selIntersectWithRect_Handle, rectangle)); } return (CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selIntersectWithRect_Handle, rectangle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFlashTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIFlashTransition : CITransitionFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public CIVector Extent { get { return GetVector("inputExtent"); } set { SetValue("inputExtent", value); } } public float FadeThreshold { get { return GetFloat("inputFadeThreshold"); } set { SetFloat("inputFadeThreshold", value); } } public float MaxStriationRadius { get { return GetFloat("inputMaxStriationRadius"); } set { SetFloat("inputMaxStriationRadius", value); } } public float MaxStriationStrength { get { return GetFloat("inputStriationStrength"); } set { SetFloat("inputStriationStrength", value); } } public float MaxStriationContrast { get { return GetFloat("inputStriationContrast"); } set { SetFloat("inputStriationContrast", value); } } public CIFlashTransition() : base("CIFlashTransition") { } public CIFlashTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFormat.cs ================================================ namespace CoreImage; public enum CIFormat { ARGB8, RGBAh, RGBA16, RGBAf } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFourfoldReflectedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIFourfoldReflectedTile : CITileFilter { public float AcuteAngle { get { return GetFloat("inputAcuteAngle"); } set { SetFloat("inputAcuteAngle", value); } } public CIFourfoldReflectedTile() : base("CIFourfoldReflectedTile") { } public CIFourfoldReflectedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFourfoldRotatedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIFourfoldRotatedTile : CITileFilter { public CIFourfoldRotatedTile() : base("CIFourfoldRotatedTile") { } public CIFourfoldRotatedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIFourfoldTranslatedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIFourfoldTranslatedTile : CITileFilter { public float AcuteAngle { get { return GetFloat("inputAcuteAngle"); } set { SetFloat("inputAcuteAngle", value); } } public CIFourfoldTranslatedTile() : base("CIFourfoldTranslatedTile") { } public CIFourfoldTranslatedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIGammaAdjust.cs ================================================ using System; namespace CoreImage; public class CIGammaAdjust : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Power { get { return GetFloat("inputPower"); } set { SetFloat("inputPower", value); } } public CIGammaAdjust() : base(CIFilter.CreateFilter("CIGammaAdjust")) { } public CIGammaAdjust(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIGaussianBlur.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIGaussianBlur : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIGaussianBlur() : base("CIGaussianBlur") { } public CIGaussianBlur(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIGaussianGradient.cs ================================================ using System; namespace CoreImage; public class CIGaussianGradient : CIFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIGaussianGradient() : base(CIFilter.CreateFilter("CIGaussianGradient")) { } public CIGaussianGradient(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIGlideReflectedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIGlideReflectedTile : CITileFilter { public CIGlideReflectedTile() : base("CIFourfoldTranslatedTile") { } public CIGlideReflectedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIGloom.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIGloom : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Intensity { get { return GetFloat("inputIntensity"); } set { SetFloat("inputIntensity", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIGloom() : base("CIGloom") { } public CIGloom(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHardLightBlendMode.cs ================================================ using System; namespace CoreImage; public class CIHardLightBlendMode : CIBlendFilter { public CIHardLightBlendMode() : base("CIHardLightBlendMode") { } public CIHardLightBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHatchedScreen.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIHatchedScreen : CIScreenFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIHatchedScreen() : base("CIHatchedScreen") { } public CIHatchedScreen(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHighlightShadowAdjust.cs ================================================ using System; namespace CoreImage; public class CIHighlightShadowAdjust : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float ShadowAmount { get { return GetFloat("inputShadowAmount"); } set { SetFloat("inputShadowAmount", value); } } public float HighlightAmount { get { return GetFloat("inputHighlightAmount"); } set { SetFloat("inputHighlightAmount", value); } } public CIHighlightShadowAdjust() : base(CIFilter.CreateFilter("CIHighlightShadowAdjust")) { } public CIHighlightShadowAdjust(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHoleDistortion.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIHoleDistortion : CIDistortionFilter { public CIHoleDistortion() : base("CIHoleDistortion") { } public CIHoleDistortion(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHueAdjust.cs ================================================ using System; namespace CoreImage; public class CIHueAdjust : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIHueAdjust() : base(CIFilter.CreateFilter("CIHueAdjust")) { } public CIHueAdjust(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIHueBlendMode.cs ================================================ using System; namespace CoreImage; public class CIHueBlendMode : CIBlendFilter { public CIHueBlendMode() : base("CIHueBlendMode") { } public CIHueBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIImage.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using CoreVideo; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIImage", true)] public class CIImage : NSObject { private static readonly IntPtr selEmptyImageHandle = Selector.GetHandle("emptyImage"); private static readonly IntPtr selExtentHandle = Selector.GetHandle("extent"); private static readonly IntPtr selPropertiesHandle = Selector.GetHandle("properties"); private static readonly IntPtr selImageWithCGImage_Handle = Selector.GetHandle("imageWithCGImage:"); private static readonly IntPtr selImageWithCGImageOptions_Handle = Selector.GetHandle("imageWithCGImage:options:"); private static readonly IntPtr selImageWithCGLayer_Handle = Selector.GetHandle("imageWithCGLayer:"); private static readonly IntPtr selImageWithCGLayerOptions_Handle = Selector.GetHandle("imageWithCGLayer:options:"); private static readonly IntPtr selImageWithBitmapDataBytesPerRowSizeFormatColorSpace_Handle = Selector.GetHandle("imageWithBitmapData:bytesPerRow:size:format:colorSpace:"); private static readonly IntPtr selImageWithTextureSizeFlippedColorSpace_Handle = Selector.GetHandle("imageWithTexture:size:flipped:colorSpace:"); private static readonly IntPtr selImageWithContentsOfURL_Handle = Selector.GetHandle("imageWithContentsOfURL:"); private static readonly IntPtr selImageWithContentsOfURLOptions_Handle = Selector.GetHandle("imageWithContentsOfURL:options:"); private static readonly IntPtr selImageWithData_Handle = Selector.GetHandle("imageWithData:"); private static readonly IntPtr selImageWithDataOptions_Handle = Selector.GetHandle("imageWithData:options:"); private static readonly IntPtr selImageWithCVImageBuffer_Handle = Selector.GetHandle("imageWithCVImageBuffer:"); private static readonly IntPtr selImageWithCVImageBufferOptions_Handle = Selector.GetHandle("imageWithCVImageBuffer:options:"); private static readonly IntPtr selImageWithColor_Handle = Selector.GetHandle("imageWithColor:"); private static readonly IntPtr selInitWithCGImage_Handle = Selector.GetHandle("initWithCGImage:"); private static readonly IntPtr selInitWithCGImageOptions_Handle = Selector.GetHandle("initWithCGImage:options:"); private static readonly IntPtr selInitWithCGLayer_Handle = Selector.GetHandle("initWithCGLayer:"); private static readonly IntPtr selInitWithCGLayerOptions_Handle = Selector.GetHandle("initWithCGLayer:options:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selInitWithDataOptions_Handle = Selector.GetHandle("initWithData:options:"); private static readonly IntPtr selInitWithBitmapDataBytesPerRowSizeFormatColorSpace_Handle = Selector.GetHandle("initWithBitmapData:bytesPerRow:size:format:colorSpace:"); private static readonly IntPtr selInitWithTextureSizeFlippedColorSpace_Handle = Selector.GetHandle("initWithTexture:size:flipped:colorSpace:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selInitWithContentsOfURLOptions_Handle = Selector.GetHandle("initWithContentsOfURL:options:"); private static readonly IntPtr selInitWithCVImageBuffer_Handle = Selector.GetHandle("initWithCVImageBuffer:"); private static readonly IntPtr selInitWithCVImageBufferOptions_Handle = Selector.GetHandle("initWithCVImageBuffer:options:"); private static readonly IntPtr selInitWithColor_Handle = Selector.GetHandle("initWithColor:"); private static readonly IntPtr selInitWithBitmapImageRep_Handle = Selector.GetHandle("initWithBitmapImageRep:"); private static readonly IntPtr selDrawAtPointFromRectOperationFraction_Handle = Selector.GetHandle("drawAtPoint:fromRect:operation:fraction:"); private static readonly IntPtr selDrawInRectFromRectOperationFraction_Handle = Selector.GetHandle("drawInRect:fromRect:operation:fraction:"); private static readonly IntPtr selImageByApplyingTransform_Handle = Selector.GetHandle("imageByApplyingTransform:"); private static readonly IntPtr selImageByCroppingToRect_Handle = Selector.GetHandle("imageByCroppingToRect:"); private static readonly IntPtr selAutoAdjustmentFiltersHandle = Selector.GetHandle("autoAdjustmentFilters"); private static readonly IntPtr selAutoAdjustmentFiltersWithOptions_Handle = Selector.GetHandle("autoAdjustmentFiltersWithOptions:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIImage"); private static object __mt_EmptyImage_var_static; private object __mt_WeakProperties_var; private static NSString _AutoAdjustFeaturesKey; private static NSString _AutoAdjustRedEyeKey; private static NSString _AutoAdjustEnhanceKey; private static NSString _ImagePropertyOrientation; private static NSString _CIImageColorSpaceKey; private static NSString _CIImagePropertiesKey; public override IntPtr ClassHandle => class_ptr; public static CIImage EmptyImage { [Export("emptyImage")] get { return (CIImage)(__mt_EmptyImage_var_static = (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selEmptyImageHandle))); } } public virtual CGRect Extent { [Export("extent")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selExtentHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selExtentHandle); } return retval; } } [Since(5, 0)] internal virtual NSDictionary WeakProperties { [Export("properties")] get { return (NSDictionary)(__mt_WeakProperties_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertiesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertiesHandle))))); } } [Since(5, 0)] public CGImageProperties Properties { get { NSDictionary weakProperties = WeakProperties; if (weakProperties != null) { return new CGImageProperties(weakProperties); } return null; } } [Field("kCIFormatARGB8", "CoreImage")] public static long FormatARGB8 => Dlfcn.GetInt64(Libraries.CoreImage.Handle, "kCIFormatARGB8"); [Field("kCIFormatRGBA16", "CoreImage")] public static long FormatRGBA16 => Dlfcn.GetInt64(Libraries.CoreImage.Handle, "kCIFormatRGBA16"); [Field("kCIFormatRGBAf", "CoreImage")] public static long FormatRGBAf => Dlfcn.GetInt64(Libraries.CoreImage.Handle, "kCIFormatRGBAf"); [Field("kCIFormatRGBAh", "CoreImage")] public static long FormatRGBAh => Dlfcn.GetInt64(Libraries.CoreImage.Handle, "kCIFormatRGBAh"); [Field("kCIImageAutoAdjustFeatures", "CoreImage")] [MountainLion] internal static NSString AutoAdjustFeaturesKey { [MountainLion] get { if (_AutoAdjustFeaturesKey == null) { _AutoAdjustFeaturesKey = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "kCIImageAutoAdjustFeatures"); } return _AutoAdjustFeaturesKey; } } [Field("kCIImageAutoAdjustRedEye", "CoreImage")] [MountainLion] internal static NSString AutoAdjustRedEyeKey { [MountainLion] get { if (_AutoAdjustRedEyeKey == null) { _AutoAdjustRedEyeKey = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "kCIImageAutoAdjustRedEye"); } return _AutoAdjustRedEyeKey; } } [Field("kCIImageAutoAdjustEnhance", "CoreImage")] [MountainLion] internal static NSString AutoAdjustEnhanceKey { [MountainLion] get { if (_AutoAdjustEnhanceKey == null) { _AutoAdjustEnhanceKey = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "kCIImageAutoAdjustEnhance"); } return _AutoAdjustEnhanceKey; } } [Field("kCGImagePropertyOrientation", "ImageIO")] internal static NSString ImagePropertyOrientation { get { if (_ImagePropertyOrientation == null) { _ImagePropertyOrientation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyOrientation"); } return _ImagePropertyOrientation; } } [Field("kCIImageColorSpace", "CoreImage")] internal static NSString CIImageColorSpaceKey { get { if (_CIImageColorSpaceKey == null) { _CIImageColorSpaceKey = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "kCIImageColorSpace"); } return _CIImageColorSpaceKey; } } [Field("kCIImageProperties", "CoreImage")] [MountainLion] internal static NSString CIImagePropertiesKey { [MountainLion] get { if (_CIImagePropertiesKey == null) { _CIImagePropertiesKey = Dlfcn.GetStringConstant(Libraries.CoreImage.Handle, "kCIImageProperties"); } return _CIImagePropertiesKey; } } private static CIFilter[] WrapFilters(NSArray filters) { if (filters == null) { return new CIFilter[0]; } ulong count = filters.Count; if (count == 0L) { return new CIFilter[0]; } CIFilter[] array = new CIFilter[count]; for (ulong num = 0uL; num < count; num++) { IntPtr filterHandle = filters.ValueAt(num); string filterName = CIFilter.GetFilterName(filterHandle); array[num] = CIFilter.FromName(filterName, filterHandle); } return array; } public static CIImage FromCGImage(CGImage image, CGColorSpace colorSpace) { if (colorSpace == null) { throw new ArgumentNullException("colorSpace"); } using NSArray objects = NSArray.FromIntPtrs(new IntPtr[1] { colorSpace.Handle }); using NSArray keys = NSArray.FromIntPtrs(new IntPtr[1] { CIImageColorSpaceKey.Handle }); using NSDictionary d = NSDictionary.FromObjectsAndKeysInternal(objects, keys); return FromCGImage(image, d); } public CIFilter[] GetAutoAdjustmentFilters() { return WrapFilters(_GetAutoAdjustmentFilters()); } public CIFilter[] GetAutoAdjustmentFilters(CIAutoAdjustmentFilterOptions options) { if (options == null) { return GetAutoAdjustmentFilters(); } NSDictionary nSDictionary = options.ToDictionary(); if (nSDictionary == null) { return GetAutoAdjustmentFilters(); } return WrapFilters(_GetAutoAdjustmentFilters(nSDictionary)); } public static implicit operator CIImage(CGImage image) { return FromCGImage(image); } internal static long CIFormatToInt(CIFormat format) { return format switch { CIFormat.ARGB8 => FormatARGB8, CIFormat.RGBAh => FormatRGBAh, CIFormat.RGBA16 => FormatRGBA16, CIFormat.RGBAf => FormatRGBAf, _ => throw new ArgumentOutOfRangeException("format"), }; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIImage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIImage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIImage(IntPtr handle) : base(handle) { } [Export("imageWithCGImage:")] public static CIImage FromCGImage(CGImage image) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithCGImage_Handle, image.Handle)); } [Export("imageWithCGImage:options:")] public static CIImage FromCGImage(CGImage image, NSDictionary d) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selImageWithCGImageOptions_Handle, image.Handle, d?.Handle ?? IntPtr.Zero)); } public static CIImage FromCGImage(CGImage image, CIImageInitializationOptionsWithMetadata options) { return FromCGImage(image, options?.Dictionary); } [Export("imageWithCGLayer:")] public static CIImage FromLayer(CGLayer layer) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithCGLayer_Handle, layer.Handle)); } [Export("imageWithCGLayer:options:")] public static CIImage FromLayer(CGLayer layer, NSDictionary options) { if (options == null) { throw new ArgumentNullException("options"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selImageWithCGLayerOptions_Handle, layer.Handle, options.Handle)); } [Export("imageWithBitmapData:bytesPerRow:size:format:colorSpace:")] public static CIImage FromData(NSData bitmapData, long bytesPerRow, CGSize size, long pixelFormat, CGColorSpace colorSpace) { if (bitmapData == null) { throw new ArgumentNullException("bitmapData"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64_CGSize_Int64_IntPtr(class_ptr, selImageWithBitmapDataBytesPerRowSizeFormatColorSpace_Handle, bitmapData.Handle, bytesPerRow, size, pixelFormat, colorSpace?.Handle ?? IntPtr.Zero)); } [Export("imageWithTexture:size:flipped:colorSpace:")] public static CIImage ImageWithTexture(ulong glTextureName, CGSize size, bool flipped, CGColorSpace colorspace) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_CGSize_bool_IntPtr(class_ptr, selImageWithTextureSizeFlippedColorSpace_Handle, glTextureName, size, flipped, colorspace.Handle)); } [Export("imageWithContentsOfURL:")] public static CIImage FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithContentsOfURL_Handle, url.Handle)); } [Export("imageWithContentsOfURL:options:")] public static CIImage FromUrl(NSUrl url, NSDictionary d) { if (url == null) { throw new ArgumentNullException("url"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selImageWithContentsOfURLOptions_Handle, url.Handle, d?.Handle ?? IntPtr.Zero)); } public static CIImage FromUrl(NSUrl url, CIImageInitializationOptions options) { return FromUrl(url, options?.Dictionary); } [Export("imageWithData:")] public static CIImage FromData(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithData_Handle, data.Handle)); } [Export("imageWithData:options:")] public static CIImage FromData(NSData data, NSDictionary d) { if (data == null) { throw new ArgumentNullException("data"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selImageWithDataOptions_Handle, data.Handle, d?.Handle ?? IntPtr.Zero)); } public static CIImage FromData(NSData data, CIImageInitializationOptionsWithMetadata options) { return FromData(data, options?.Dictionary); } [Export("imageWithCVImageBuffer:")] public static CIImage FromImageBuffer(CVImageBuffer imageBuffer) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithCVImageBuffer_Handle, imageBuffer.Handle)); } [Export("imageWithCVImageBuffer:options:")] public static CIImage FromImageBuffer(CVImageBuffer imageBuffer, NSDictionary dict) { if (dict == null) { throw new ArgumentNullException("dict"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selImageWithCVImageBufferOptions_Handle, imageBuffer.Handle, dict.Handle)); } [Export("imageWithColor:")] public static CIImage ImageWithColor(CIColor color) { if (color == null) { throw new ArgumentNullException("color"); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selImageWithColor_Handle, color.Handle)); } [Export("initWithCGImage:")] public CIImage(CGImage image) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCGImage_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCGImage_Handle, image.Handle); } } [Export("initWithCGImage:options:")] public CIImage(CGImage image, NSDictionary d) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithCGImageOptions_Handle, image.Handle, d?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithCGImageOptions_Handle, image.Handle, d?.Handle ?? IntPtr.Zero); } } public CIImage(CGImage image, CIImageInitializationOptionsWithMetadata options) : this(image, options?.Dictionary) { } [Export("initWithCGLayer:")] public CIImage(CGLayer layer) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCGLayer_Handle, layer.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCGLayer_Handle, layer.Handle); } } [Export("initWithCGLayer:options:")] public CIImage(CGLayer layer, NSDictionary d) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithCGLayerOptions_Handle, layer.Handle, d?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithCGLayerOptions_Handle, layer.Handle, d?.Handle ?? IntPtr.Zero); } } public CIImage(CGLayer layer, CIImageInitializationOptions options) : this(layer, options?.Dictionary) { } [Export("initWithData:")] public CIImage(NSData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("initWithData:options:")] public CIImage(NSData data, NSDictionary d) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDataOptions_Handle, data.Handle, d?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDataOptions_Handle, data.Handle, d?.Handle ?? IntPtr.Zero); } } public CIImage(NSData data, CIImageInitializationOptionsWithMetadata options) : this(data, options?.Dictionary) { } [Export("initWithBitmapData:bytesPerRow:size:format:colorSpace:")] public CIImage(NSData d, long bytesPerRow, CGSize size, long pixelFormat, CGColorSpace colorSpace) : base(NSObjectFlag.Empty) { if (d == null) { throw new ArgumentNullException("d"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_CGSize_Int64_IntPtr(base.Handle, selInitWithBitmapDataBytesPerRowSizeFormatColorSpace_Handle, d.Handle, bytesPerRow, size, pixelFormat, colorSpace.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_CGSize_Int64_IntPtr(base.SuperHandle, selInitWithBitmapDataBytesPerRowSizeFormatColorSpace_Handle, d.Handle, bytesPerRow, size, pixelFormat, colorSpace.Handle); } } [Export("initWithTexture:size:flipped:colorSpace:")] public CIImage(long glTextureName, CGSize size, bool flipped, CGColorSpace colorSpace) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Int64_CGSize_bool_IntPtr(base.Handle, selInitWithTextureSizeFlippedColorSpace_Handle, glTextureName, size, flipped, colorSpace.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Int64_CGSize_bool_IntPtr(base.SuperHandle, selInitWithTextureSizeFlippedColorSpace_Handle, glTextureName, size, flipped, colorSpace.Handle); } } [Export("initWithContentsOfURL:")] public CIImage(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } [Export("initWithContentsOfURL:options:")] public CIImage(NSUrl url, NSDictionary d) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithContentsOfURLOptions_Handle, url.Handle, d?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithContentsOfURLOptions_Handle, url.Handle, d?.Handle ?? IntPtr.Zero); } } public CIImage(NSUrl url, CIImageInitializationOptions options) : this(url, options?.Dictionary) { } [Export("initWithCVImageBuffer:")] public CIImage(CVImageBuffer imageBuffer) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCVImageBuffer_Handle, imageBuffer.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCVImageBuffer_Handle, imageBuffer.Handle); } } [Export("initWithCVImageBuffer:options:")] public CIImage(CVImageBuffer imageBuffer, NSDictionary dict) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithCVImageBufferOptions_Handle, imageBuffer.Handle, dict?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithCVImageBufferOptions_Handle, imageBuffer.Handle, dict?.Handle ?? IntPtr.Zero); } } public CIImage(CVImageBuffer imageBuffer, CIImageInitializationOptions options) : this(imageBuffer, options?.Dictionary) { } [Export("initWithColor:")] public CIImage(CIColor color) : base(NSObjectFlag.Empty) { if (color == null) { throw new ArgumentNullException("color"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithColor_Handle, color.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithColor_Handle, color.Handle); } } [Export("initWithBitmapImageRep:")] public CIImage(NSImageRep imageRep) : base(NSObjectFlag.Empty) { if (imageRep == null) { throw new ArgumentNullException("imageRep"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithBitmapImageRep_Handle, imageRep.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithBitmapImageRep_Handle, imageRep.Handle); } } [Export("drawAtPoint:fromRect:operation:fraction:")] public virtual void Draw(CGPoint point, CGRect srcRect, NSCompositingOperation op, double delta) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint_CGRect_UInt64_Double(base.Handle, selDrawAtPointFromRectOperationFraction_Handle, point, srcRect, (ulong)op, delta); } else { Messaging.void_objc_msgSendSuper_CGPoint_CGRect_UInt64_Double(base.SuperHandle, selDrawAtPointFromRectOperationFraction_Handle, point, srcRect, (ulong)op, delta); } } [Export("drawInRect:fromRect:operation:fraction:")] public virtual void Draw(CGRect dstRect, CGRect srcRect, NSCompositingOperation op, double delta) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_CGRect_UInt64_Double(base.Handle, selDrawInRectFromRectOperationFraction_Handle, dstRect, srcRect, (ulong)op, delta); } else { Messaging.void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double(base.SuperHandle, selDrawInRectFromRectOperationFraction_Handle, dstRect, srcRect, (ulong)op, delta); } } [Export("imageByApplyingTransform:")] public virtual CIImage ImageByApplyingTransform(CGAffineTransform matrix) { if (IsDirectBinding) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGAffineTransform(base.Handle, selImageByApplyingTransform_Handle, matrix)); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGAffineTransform(base.SuperHandle, selImageByApplyingTransform_Handle, matrix)); } [Export("imageByCroppingToRect:")] public virtual CIImage ImageByCroppingToRect(CGRect r) { if (IsDirectBinding) { return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selImageByCroppingToRect_Handle, r)); } return (CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selImageByCroppingToRect_Handle, r)); } [Export("autoAdjustmentFilters")] internal virtual NSArray _GetAutoAdjustmentFilters() { if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAutoAdjustmentFiltersHandle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAutoAdjustmentFiltersHandle)); } [Export("autoAdjustmentFiltersWithOptions:")] internal virtual NSArray _GetAutoAdjustmentFilters(NSDictionary opts) { if (opts == null) { throw new ArgumentNullException("opts"); } if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAutoAdjustmentFiltersWithOptions_Handle, opts.Handle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAutoAdjustmentFiltersWithOptions_Handle, opts.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakProperties_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIImageAccumulator.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIImageAccumulator", true)] public class CIImageAccumulator : NSObject { private static readonly IntPtr selExtentHandle = Selector.GetHandle("extent"); private static readonly IntPtr selFormatHandle = Selector.GetHandle("format"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selSetImage_Handle = Selector.GetHandle("setImage:"); private static readonly IntPtr selImageAccumulatorWithExtentFormat_Handle = Selector.GetHandle("imageAccumulatorWithExtent:format:"); private static readonly IntPtr selInitWithExtentFormat_Handle = Selector.GetHandle("initWithExtent:format:"); private static readonly IntPtr selSetImageDirtyRect_Handle = Selector.GetHandle("setImage:dirtyRect:"); private static readonly IntPtr selClearHandle = Selector.GetHandle("clear"); private static readonly IntPtr class_ptr = Class.GetHandle("CIImageAccumulator"); private object __mt_Image_var; public override IntPtr ClassHandle => class_ptr; public virtual CGRect Extent { [Export("extent")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selExtentHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selExtentHandle); } return retval; } } public virtual long CIImageFormat { [Export("format")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selFormatHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFormatHandle); } } public virtual CIImage Image { [Export("image")] get { return (CIImage)(__mt_Image_var = ((!IsDirectBinding) ? ((CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle))) : ((CIImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle))))); } [Export("setImage:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImage_Handle, value.Handle); } __mt_Image_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CIImageAccumulator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIImageAccumulator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIImageAccumulator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIImageAccumulator(IntPtr handle) : base(handle) { } [Export("imageAccumulatorWithExtent:format:")] public static CIImageAccumulator FromRectangle(CGRect rect, long ciImageFormat) { return (CIImageAccumulator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect_Int64(class_ptr, selImageAccumulatorWithExtentFormat_Handle, rect, ciImageFormat)); } [Export("initWithExtent:format:")] public CIImageAccumulator(CGRect rectangle, long ciImageFormat) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_Int64(base.Handle, selInitWithExtentFormat_Handle, rectangle, ciImageFormat); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_Int64(base.SuperHandle, selInitWithExtentFormat_Handle, rectangle, ciImageFormat); } } [Export("setImage:dirtyRect:")] public virtual void SetImageDirty(CIImage image, CGRect dirtyRect) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_CGRect(base.Handle, selSetImageDirtyRect_Handle, image.Handle, dirtyRect); } else { Messaging.void_objc_msgSendSuper_IntPtr_CGRect(base.SuperHandle, selSetImageDirtyRect_Handle, image.Handle, dirtyRect); } } [Export("clear")] public virtual void Clear() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Image_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIImageInitializationOptions.cs ================================================ using CoreGraphics; using Foundation; namespace CoreImage; public class CIImageInitializationOptions : DictionaryContainer { public CGColorSpace ColorSpace { set { SetNativeValue(CIImage.CIImageColorSpaceKey, (value == null) ? null : value); } } public CIImageInitializationOptions() : base(new NSMutableDictionary()) { } public CIImageInitializationOptions(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIImageInitializationOptionsWithMetadata.cs ================================================ using CoreGraphics; using Foundation; namespace CoreImage; public class CIImageInitializationOptionsWithMetadata : CIImageInitializationOptions { public CGImageProperties Properties { set { SetNativeValue(CIImage.CIImagePropertiesKey, value?.Dictionary, removeNullValue: false); } } public CIImageInitializationOptionsWithMetadata() { } public CIImageInitializationOptionsWithMetadata(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIImageOrientation.cs ================================================ namespace CoreImage; public enum CIImageOrientation { TopLeft = 1, TopRight, BottomRight, BottomLeft, LeftTop, RightTop, RightBottom, LeftBottom } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIKernel.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIKernel", true)] public class CIKernel : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selKernelsWithString_Handle = Selector.GetHandle("kernelsWithString:"); private static readonly IntPtr selSetROISelector_Handle = Selector.GetHandle("setROISelector:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIKernel"); public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIKernel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIKernel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIKernel(IntPtr handle) : base(handle) { } [Export("kernelsWithString:")] public static CIKernel[] FromProgram(string coreImageShaderProgram) { if (coreImageShaderProgram == null) { throw new ArgumentNullException("coreImageShaderProgram"); } IntPtr arg = NSString.CreateNative(coreImageShaderProgram); CIKernel[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selKernelsWithString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setROISelector:")] public virtual void SetRegionOfInterestSelector(Selector aMethod) { if (aMethod == null) { throw new ArgumentNullException("aMethod"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetROISelector_Handle, aMethod.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetROISelector_Handle, aMethod.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CILanczosScaleTransform.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CILanczosScaleTransform : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float AspectRatio { get { return GetFloat("inputAspectRatio"); } set { SetFloat("inputAspectRatio", value); } } public float Scale { get { return GetFloat("inputScale"); } set { SetFloat("inputScale", value); } } public CILanczosScaleTransform() : base("CILanczosScaleTransform") { } public CILanczosScaleTransform(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CILightenBlendMode.cs ================================================ using System; namespace CoreImage; public class CILightenBlendMode : CIBlendFilter { public CILightenBlendMode() : base("CILightenBlendMode") { } public CILightenBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CILineScreen.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CILineScreen : CIScreenFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CILineScreen() : base("CILineScreen") { } public CILineScreen(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CILinearGradient.cs ================================================ using System; namespace CoreImage; public class CILinearGradient : CIFilter { public CIVector Point0 { get { return GetVector("inputPoint0"); } set { SetValue("inputPoint0", value); } } public CIVector Point1 { get { return GetVector("inputPoint1"); } set { SetValue("inputPoint1", value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public CILinearGradient() : base(CIFilter.CreateFilter("CILinearGradient")) { } public CILinearGradient(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CILuminosityBlendMode.cs ================================================ using System; namespace CoreImage; public class CILuminosityBlendMode : CIBlendFilter { public CILuminosityBlendMode() : base("CILuminosityBlendMode") { } public CILuminosityBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMaskToAlpha.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMaskToAlpha : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIMaskToAlpha() : base("CIMaskToAlpha") { } public CIMaskToAlpha(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMaximumComponent.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMaximumComponent : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIMaximumComponent() : base("CIMaximumComponent") { } public CIMaximumComponent(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMaximumCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMaximumCompositing : CICompositingFilter { public CIMaximumCompositing() : base("CIMaximumCompositing") { } public CIMaximumCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMinimumComponent.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMinimumComponent : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIMinimumComponent() : base("CIMinimumComponent") { } public CIMinimumComponent(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMinimumCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMinimumCompositing : CICompositingFilter { public CIMinimumCompositing() : base("CIMinimumCompositing") { } public CIMinimumCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIModTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIModTransition : CITransitionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Compression { get { return GetFloat("inputCompression"); } set { SetFloat("inputCompression", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIModTransition() : base("CIModTransition") { } public CIModTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMultiplyBlendMode.cs ================================================ using System; namespace CoreImage; public class CIMultiplyBlendMode : CIBlendFilter { public CIMultiplyBlendMode() : base("CIMultiplyBlendMode") { } public CIMultiplyBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIMultiplyCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIMultiplyCompositing : CICompositingFilter { public CIMultiplyCompositing() : base("CIMultiplyCompositing") { } public CIMultiplyCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIOverlayBlendMode.cs ================================================ using System; namespace CoreImage; public class CIOverlayBlendMode : CIBlendFilter { public CIOverlayBlendMode() : base("CIOverlayBlendMode") { } public CIOverlayBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPageCurlTransition.cs ================================================ using System; namespace CoreImage; public class CIPageCurlTransition : CITransitionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIImage BacksideImage { get { return GetImage("inputBacksideImage"); } set { SetImage("inputBacksideImage", value); } } public CIVector Extent { get { return GetVector("inputExtent"); } set { SetValue("inputExtent", value); } } public CIImage ShadingImage { get { return GetImage("inputShadingImage"); } set { SetImage("inputShadingImage", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIPageCurlTransition() : base("CIPageCurlTransition") { } public CIPageCurlTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPerspectiveTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIPerspectiveTile : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector BottomLeft { get { return GetVector("inputBottomLeft"); } set { SetValue("inputBottomLeft", value); } } public CIVector BottomRight { get { return GetVector("inputBottomRight"); } set { SetValue("inputBottomRight", value); } } public CIVector TopLeft { get { return GetVector("inputTopLeft"); } set { SetValue("inputTopLeft", value); } } public CIVector TopRight { get { return GetVector("inputTopRight"); } set { SetValue("inputTopRight", value); } } public CIPerspectiveTile() : base("CIPerspectiveTile") { } public CIPerspectiveTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPerspectiveTransform.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIPerspectiveTransform : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector BottomLeft { get { return GetVector("inputBottomLeft"); } set { SetValue("inputBottomLeft", value); } } public CIVector BottomRight { get { return GetVector("inputBottomRight"); } set { SetValue("inputBottomRight", value); } } public CIVector TopLeft { get { return GetVector("inputTopLeft"); } set { SetValue("inputTopLeft", value); } } public CIVector TopRight { get { return GetVector("inputTopRight"); } set { SetValue("inputTopRight", value); } } public CIPerspectiveTransform() : base("CIPerspectiveTransform") { } public CIPerspectiveTransform(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPinchDistortion.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIPinchDistortion : CIDistortionFilter { public float Scale { get { return GetFloat("inputScale"); } set { SetFloat("inputScale", value); } } public CIPinchDistortion() : base("CIPinchDistortion") { } public CIPinchDistortion(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPixellate.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIPixellate : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Scale { get { return GetFloat("inputScale"); } set { SetFloat("inputScale", value); } } public CIPixellate() : base("CIPixellate") { } public CIPixellate(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIPlugIn.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIPlugIn", true)] public class CIPlugIn : NSObject { private static readonly IntPtr selLoadAllPlugInsHandle = Selector.GetHandle("loadAllPlugIns"); private static readonly IntPtr selLoadNonExecutablePlugInsHandle = Selector.GetHandle("loadNonExecutablePlugIns"); private static readonly IntPtr selLoadPlugInAllowNonExecutable_Handle = Selector.GetHandle("loadPlugIn:allowNonExecutable:"); private static readonly IntPtr class_ptr = Class.GetHandle("CIPlugIn"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CIPlugIn() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIPlugIn(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIPlugIn(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIPlugIn(IntPtr handle) : base(handle) { } [Export("loadAllPlugIns")] public static void LoadAllPlugIns() { Messaging.void_objc_msgSend(class_ptr, selLoadAllPlugInsHandle); } [Export("loadNonExecutablePlugIns")] public static void LoadNonExecutablePlugIns() { Messaging.void_objc_msgSend(class_ptr, selLoadNonExecutablePlugInsHandle); } [Export("loadPlugIn:allowNonExecutable:")] public static void LoadPlugIn(NSUrl pluginUrl, bool allowNonExecutable) { if (pluginUrl == null) { throw new ArgumentNullException("pluginUrl"); } Messaging.void_objc_msgSend_IntPtr_bool(class_ptr, selLoadPlugInAllowNonExecutable_Handle, pluginUrl.Handle, allowNonExecutable); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIRadialGradient.cs ================================================ using System; namespace CoreImage; public class CIRadialGradient : CIFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Radius0 { get { return GetFloat("inputRadius0"); } set { SetFloat("inputRadius0", value); } } public float Radius1 { get { return GetFloat("inputRadius1"); } set { SetFloat("inputRadius1", value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public CIRadialGradient() : base(CIFilter.CreateFilter("CIRadialGradient")) { } public CIRadialGradient(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIRandomGenerator.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIRandomGenerator : CIFilter { public CIRandomGenerator() : base("CIRandomGenerator") { } public CIRandomGenerator(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIRippleTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIRippleTransition : CITransitionFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public CIVector Extent { get { return GetVector("inputExtent"); } set { SetValue("inputExtent", value); } } public float Scale { get { return GetFloat("inputScale"); } set { SetFloat("inputScale", value); } } public CIImage ShadingImage { get { return GetImage("inputShadingImage"); } set { SetImage("inputShadingImage", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public CIRippleTransition() : base("CIRippleTransition") { } public CIRippleTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISampler.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CISampler", true)] public class CISampler : NSObject { private static readonly IntPtr selDefinitionHandle = Selector.GetHandle("definition"); private static readonly IntPtr selExtentHandle = Selector.GetHandle("extent"); private static readonly IntPtr selSamplerWithImage_Handle = Selector.GetHandle("samplerWithImage:"); private static readonly IntPtr selSamplerWithImageOptions_Handle = Selector.GetHandle("samplerWithImage:options:"); private static readonly IntPtr selInitWithImage_Handle = Selector.GetHandle("initWithImage:"); private static readonly IntPtr selInitWithImageOptions_Handle = Selector.GetHandle("initWithImage:options:"); private static readonly IntPtr class_ptr = Class.GetHandle("CISampler"); private object __mt_Definition_var; private static NSString _AffineMatrix; private static NSString _WrapMode; private static NSString _FilterMode; private static NSString _WrapBlack; private static NSString _WrapClamp; private static NSString _FilterNearest; private static NSString _FilterLinear; public override IntPtr ClassHandle => class_ptr; public virtual CIFilterShape Definition { [Export("definition")] get { return (CIFilterShape)(__mt_Definition_var = ((!IsDirectBinding) ? ((CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefinitionHandle))) : ((CIFilterShape)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefinitionHandle))))); } } public virtual CGRect Extent { [Export("extent")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selExtentHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selExtentHandle); } return retval; } } [Field("kCISamplerAffineMatrix", "Quartz")] internal static NSString AffineMatrix { get { if (_AffineMatrix == null) { _AffineMatrix = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerAffineMatrix"); } return _AffineMatrix; } } [Field("kCISamplerWrapMode", "Quartz")] internal static NSString WrapMode { get { if (_WrapMode == null) { _WrapMode = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerWrapMode"); } return _WrapMode; } } [Field("kCISamplerFilterMode", "Quartz")] internal static NSString FilterMode { get { if (_FilterMode == null) { _FilterMode = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerFilterMode"); } return _FilterMode; } } [Field("kCISamplerWrapBlack", "Quartz")] internal static NSString WrapBlack { get { if (_WrapBlack == null) { _WrapBlack = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerWrapBlack"); } return _WrapBlack; } } [Field("kCISamplerWrapClamp", "Quartz")] internal static NSString WrapClamp { get { if (_WrapClamp == null) { _WrapClamp = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerWrapClamp"); } return _WrapClamp; } } [Field("kCISamplerFilterNearest", "Quartz")] internal static NSString FilterNearest { get { if (_FilterNearest == null) { _FilterNearest = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerFilterNearest"); } return _FilterNearest; } } [Field("kCISamplerFilterLinear", "Quartz")] internal static NSString FilterLinear { get { if (_FilterLinear == null) { _FilterLinear = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCISamplerFilterLinear"); } return _FilterLinear; } } public CISampler FromImage(CIImage sourceImage, CISamplerOptions options) { if (options == null) { return FromImage(sourceImage); } return FromImage(sourceImage, options.ToDictionary()); } public CISampler(CIImage sourceImage, CISamplerOptions options) : this(sourceImage, options?.ToDictionary()) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CISampler() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CISampler(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CISampler(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CISampler(IntPtr handle) : base(handle) { } [Export("samplerWithImage:")] public static CISampler FromImage(CIImage sourceImage) { if (sourceImage == null) { throw new ArgumentNullException("sourceImage"); } return (CISampler)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSamplerWithImage_Handle, sourceImage.Handle)); } [Export("samplerWithImage:options:")] internal static CISampler FromImage(CIImage sourceImag, NSDictionary options) { if (sourceImag == null) { throw new ArgumentNullException("sourceImag"); } if (options == null) { throw new ArgumentNullException("options"); } return (CISampler)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selSamplerWithImageOptions_Handle, sourceImag.Handle, options.Handle)); } [Export("initWithImage:")] public CISampler(CIImage sourceImage) : base(NSObjectFlag.Empty) { if (sourceImage == null) { throw new ArgumentNullException("sourceImage"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithImage_Handle, sourceImage.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithImage_Handle, sourceImage.Handle); } } [Export("initWithImage:options:")] internal CISampler(CIImage image, NSDictionary options) : base(NSObjectFlag.Empty) { if (image == null) { throw new ArgumentNullException("image"); } if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithImageOptions_Handle, image.Handle, options.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithImageOptions_Handle, image.Handle, options.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Definition_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISamplerOptions.cs ================================================ using CoreGraphics; using Foundation; namespace CoreImage; public class CISamplerOptions { public CGAffineTransform? AffineMatrix { get; set; } public CIWrapMode? WrapMode { get; set; } public CIFilterMode? FilterMode { get; set; } internal NSDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (AffineMatrix.HasValue) { CGAffineTransform value = AffineMatrix.Value; nSMutableDictionary.SetObject(NSArray.FromNSObjects(NSNumber.FromDouble(value.xx), NSNumber.FromDouble(value.yx), NSNumber.FromDouble(value.xy), NSNumber.FromDouble(value.yy), NSNumber.FromDouble(value.x0), NSNumber.FromDouble(value.y0)), CISampler.AffineMatrix); } if (WrapMode.HasValue) { NSString obj = ((WrapMode.Value == CIWrapMode.Black) ? CISampler.WrapBlack : CISampler.FilterNearest); nSMutableDictionary.SetObject(obj, CISampler.WrapMode); } if (FilterMode.HasValue) { NSString obj2 = ((FilterMode.Value == CIFilterMode.Nearest) ? CISampler.FilterNearest : CISampler.FilterLinear); nSMutableDictionary.SetObject(obj2, CISampler.FilterMode); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISaturationBlendMode.cs ================================================ using System; namespace CoreImage; public class CISaturationBlendMode : CIBlendFilter { public CISaturationBlendMode() : base("CISaturationBlendMode") { } public CISaturationBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIScreenBlendMode.cs ================================================ using System; namespace CoreImage; public class CIScreenBlendMode : CIBlendFilter { public CIScreenBlendMode() : base("CIScreenBlendMode") { } public CIScreenBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIScreenFilter.cs ================================================ using System; namespace CoreImage; public class CIScreenFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Sharpness { get { return GetFloat("inputSharpness"); } set { SetFloat("inputSharpness", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } protected CIScreenFilter(string name) : base(name) { } protected CIScreenFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISepiaTone.cs ================================================ using System; namespace CoreImage; public class CISepiaTone : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Intensity { get { return GetFloat("inputIntensity"); } set { SetFloat("inputIntensity", value); } } public CISepiaTone() : base(CIFilter.CreateFilter("CISepiaTone")) { } public CISepiaTone(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISharpenLuminance.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISharpenLuminance : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Sharpness { get { return GetFloat("inputSharpness"); } set { SetFloat("inputSharpness", value); } } public CISharpenLuminance() : base("CISharpenLuminance") { } public CISharpenLuminance(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISixfoldReflectedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISixfoldReflectedTile : CITileFilter { public CISixfoldReflectedTile() : base("CISixfoldReflectedTile") { } public CISixfoldReflectedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISixfoldRotatedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISixfoldRotatedTile : CITileFilter { public CISixfoldRotatedTile() : base("CISixfoldRotatedTile") { } public CISixfoldRotatedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISoftLightBlendMode.cs ================================================ using System; namespace CoreImage; public class CISoftLightBlendMode : CIBlendFilter { public CISoftLightBlendMode() : base("CISoftLightBlendMode") { } public CISoftLightBlendMode(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISourceAtopCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISourceAtopCompositing : CICompositingFilter { public CISourceAtopCompositing() : base("CISourceAtopCompositing") { } public CISourceAtopCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISourceInCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISourceInCompositing : CICompositingFilter { public CISourceInCompositing() : base("CISourceInCompositing") { } public CISourceInCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISourceOutCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISourceOutCompositing : CICompositingFilter { public CISourceOutCompositing() : base("CISourceOutCompositing") { } public CISourceOutCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISourceOverCompositing.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISourceOverCompositing : CICompositingFilter { public CISourceOverCompositing() : base("CISourceOverCompositing") { } public CISourceOverCompositing(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIStarShineGenerator.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIStarShineGenerator : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public float CrossAngle { get { return GetFloat("inputCrossAngle"); } set { SetFloat("inputCrossAngle", value); } } public float CrossOpacity { get { return GetFloat("inputCrossOpacity"); } set { SetFloat("inputCrossOpacity", value); } } public float CrossScale { get { return GetFloat("inputCrossScale"); } set { SetFloat("inputCrossScale", value); } } public float CrossWidth { get { return GetFloat("inputCrossWidth"); } set { SetFloat("inputCrossWidth", value); } } public float Epsilon { get { return GetFloat("inputEpsilon"); } set { SetFloat("inputEpsilon", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIStarShineGenerator() : base("CIStarShineGenerator") { } public CIStarShineGenerator(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIStraightenFilter.cs ================================================ using System; namespace CoreImage; public class CIStraightenFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIStraightenFilter() : base(CIFilter.CreateFilter("CIStraightenFilter")) { } public CIStraightenFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIStripesGenerator.cs ================================================ using System; namespace CoreImage; public class CIStripesGenerator : CIFilter { public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public CIColor Color0 { get { return GetColor("inputColor0"); } set { SetValue("inputColor0", value); } } public CIColor Color1 { get { return GetColor("inputColor1"); } set { SetValue("inputColor1", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public float Sharpness { get { return GetFloat("inputSharpness"); } set { SetFloat("inputSharpness", value); } } public CIStripesGenerator() : base(CIFilter.CreateFilter("CIStripesGenerator")) { } public CIStripesGenerator(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CISwipeTransition.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CISwipeTransition : CITransitionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public CIVector Extent { get { return GetVector("inputExtent"); } set { SetValue("inputExtent", value); } } public float Opacity { get { return GetFloat("inputOpacity"); } set { SetFloat("inputOpacity", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } public CISwipeTransition() : base("CISwipeTransition") { } public CISwipeTransition(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CITemperatureAndTint.cs ================================================ using System; namespace CoreImage; public class CITemperatureAndTint : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Neutral { get { return GetVector("inputNeutral"); } set { SetValue("inputNeutral", value); } } public CIVector TargetNeutral { get { return GetVector("inputTargetNeutral"); } set { SetValue("inputTargetNeutral", value); } } public CITemperatureAndTint() : base(CIFilter.CreateFilter("CITemperatureAndTint")) { } public CITemperatureAndTint(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CITileFilter.cs ================================================ using System; namespace CoreImage; public class CITileFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIVector Center { get { return GetVector("inputCenter"); } set { SetValue("inputCenter", value); } } public float Width { get { return GetFloat("inputWidth"); } set { SetFloat("inputWidth", value); } } protected CITileFilter(string name) : base(name) { } protected CITileFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIToneCurve.cs ================================================ using System; namespace CoreImage; public class CIToneCurve : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIVector Point0 { get { return GetVector("inputPoint0"); } set { SetValue("inputPoint0", value); } } public CIVector Point1 { get { return GetVector("inputPoint1"); } set { SetValue("inputPoint1", value); } } public CIVector Point2 { get { return GetVector("inputPoint2"); } set { SetValue("inputPoint2", value); } } public CIVector Point3 { get { return GetVector("inputPoint3"); } set { SetValue("inputPoint3", value); } } public CIVector Point4 { get { return GetVector("inputPoint4"); } set { SetValue("inputPoint4", value); } } public CIToneCurve() : base(CIFilter.CreateFilter("CIToneCurve")) { } public CIToneCurve(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CITransitionFilter.cs ================================================ using System; namespace CoreImage; public abstract class CITransitionFilter : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIImage TargetImage { get { return GetImage("inputTargetImage"); } set { SetImage("inputTargetImage", value); } } public float Time { get { return GetFloat("inputTime"); } set { SetFloat("inputTime", value); } } protected CITransitionFilter(string name) : base(CIFilter.CreateFilter(name)) { } protected CITransitionFilter(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CITwelvefoldReflectedTile.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CITwelvefoldReflectedTile : CITileFilter { public CITwelvefoldReflectedTile() : base("CITwelvefoldReflectedTile") { } public CITwelvefoldReflectedTile(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CITwirlDistortion.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CITwirlDistortion : CIDistortionFilter { public CITwirlDistortion() : base("CITwirlDistortion") { } public CITwirlDistortion(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIUIParameterSet.cs ================================================ using Foundation; using ObjCRuntime; namespace CoreImage; public static class CIUIParameterSet { private static NSString _Basic; private static NSString _Intermediate; private static NSString _Advanced; private static NSString _Development; [Field("kCIUISetBasic", "Quartz")] public static NSString Basic { get { if (_Basic == null) { _Basic = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIUISetBasic"); } return _Basic; } } [Field("kCIUISetIntermediate", "Quartz")] public static NSString Intermediate { get { if (_Intermediate == null) { _Intermediate = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIUISetIntermediate"); } return _Intermediate; } } [Field("kCIUISetAdvanced", "Quartz")] public static NSString Advanced { get { if (_Advanced == null) { _Advanced = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIUISetAdvanced"); } return _Advanced; } } [Field("kCIUISetDevelopment", "Quartz")] public static NSString Development { get { if (_Development == null) { _Development = Dlfcn.GetStringConstant(Libraries.Quartz.Handle, "kCIUISetDevelopment"); } return _Development; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIUnsharpMask.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIUnsharpMask : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Intensity { get { return GetFloat("inputIntensity"); } set { SetFloat("inputIntensity", value); } } public float Radius { get { return GetFloat("inputRadius"); } set { SetFloat("inputRadius", value); } } public CIUnsharpMask() : base("CIUnsharpMask") { } public CIUnsharpMask(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIVector.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreImage; [Register("CIVector", true)] public class CIVector : NSObject { private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selXHandle = Selector.GetHandle("X"); private static readonly IntPtr selYHandle = Selector.GetHandle("Y"); private static readonly IntPtr selZHandle = Selector.GetHandle("Z"); private static readonly IntPtr selWHandle = Selector.GetHandle("W"); private static readonly IntPtr selVectorWithValuesCount_Handle = Selector.GetHandle("vectorWithValues:count:"); private static readonly IntPtr selVectorWithX_Handle = Selector.GetHandle("vectorWithX:"); private static readonly IntPtr selVectorWithXY_Handle = Selector.GetHandle("vectorWithX:Y:"); private static readonly IntPtr selVectorWithXYZ_Handle = Selector.GetHandle("vectorWithX:Y:Z:"); private static readonly IntPtr selVectorWithXYZW_Handle = Selector.GetHandle("vectorWithX:Y:Z:W:"); private static readonly IntPtr selVectorWithString_Handle = Selector.GetHandle("vectorWithString:"); private static readonly IntPtr selInitWithValuesCount_Handle = Selector.GetHandle("initWithValues:count:"); private static readonly IntPtr selInitWithX_Handle = Selector.GetHandle("initWithX:"); private static readonly IntPtr selInitWithXY_Handle = Selector.GetHandle("initWithX:Y:"); private static readonly IntPtr selInitWithXYZ_Handle = Selector.GetHandle("initWithX:Y:Z:"); private static readonly IntPtr selInitWithXYZW_Handle = Selector.GetHandle("initWithX:Y:Z:W:"); private static readonly IntPtr selInitWithString_Handle = Selector.GetHandle("initWithString:"); private static readonly IntPtr selValueAtIndex_Handle = Selector.GetHandle("valueAtIndex:"); private static readonly IntPtr selStringRepresentationHandle = Selector.GetHandle("stringRepresentation"); private static readonly IntPtr class_ptr = Class.GetHandle("CIVector"); private double this[int index] => ValueAtIndex(index); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selCountHandle); } } public virtual double X { [Export("X")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selXHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selXHandle); } } public virtual double Y { [Export("Y")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selYHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selYHandle); } } public virtual double Z { [Export("Z")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selZHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selZHandle); } } public virtual double W { [Export("W")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selWHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selWHandle); } } private unsafe static IntPtr GetPtr(double[] values) { if (values == null) { throw new ArgumentNullException("values"); } fixed (double* ptr = &values[0]) { return (IntPtr)ptr; } } public CIVector(double[] values) : this(GetPtr(values), values.Length) { } public unsafe static CIVector FromValues(double[] values) { if (values == null) { throw new ArgumentNullException("values"); } fixed (double* ptr = &values[0]) { return _FromValues((IntPtr)ptr, values.Length); } } public override string ToString() { return StringRepresentation(); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CIVector(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIVector(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CIVector(IntPtr handle) : base(handle) { } [Export("vectorWithValues:count:")] internal static CIVector _FromValues(IntPtr values, long count) { return (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64(class_ptr, selVectorWithValuesCount_Handle, values, count)); } [Export("vectorWithX:")] public static CIVector Create(double x) { return (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selVectorWithX_Handle, x)); } [Export("vectorWithX:Y:")] public static CIVector Create(double x, double y) { return (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double(class_ptr, selVectorWithXY_Handle, x, y)); } [Export("vectorWithX:Y:Z:")] public static CIVector Create(double x, double y, double z) { return (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double(class_ptr, selVectorWithXYZ_Handle, x, y, z)); } [Export("vectorWithX:Y:Z:W:")] public static CIVector Create(double x, double y, double z, double w) { return (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(class_ptr, selVectorWithXYZW_Handle, x, y, z, w)); } [Export("vectorWithString:")] public static CIVector FromString(string representation) { if (representation == null) { throw new ArgumentNullException("representation"); } IntPtr arg = NSString.CreateNative(representation); CIVector result = (CIVector)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selVectorWithString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithValues:count:")] internal CIVector(IntPtr values, long count) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64(base.Handle, selInitWithValuesCount_Handle, values, count); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64(base.SuperHandle, selInitWithValuesCount_Handle, values, count); } } [Export("initWithX:")] public CIVector(double x) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double(base.Handle, selInitWithX_Handle, x); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selInitWithX_Handle, x); } } [Export("initWithX:Y:")] public CIVector(double x, double y) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double_Double(base.Handle, selInitWithXY_Handle, x, y); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double_Double(base.SuperHandle, selInitWithXY_Handle, x, y); } } [Export("initWithX:Y:Z:")] public CIVector(double x, double y, double z) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double_Double_Double(base.Handle, selInitWithXYZ_Handle, x, y, z); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double_Double_Double(base.SuperHandle, selInitWithXYZ_Handle, x, y, z); } } [Export("initWithX:Y:Z:W:")] public CIVector(double x, double y, double z, double w) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double_Double_Double_Double(base.Handle, selInitWithXYZW_Handle, x, y, z, w); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double_Double_Double_Double(base.SuperHandle, selInitWithXYZW_Handle, x, y, z, w); } } [Export("initWithString:")] public CIVector(string representation) : base(NSObjectFlag.Empty) { if (representation == null) { throw new ArgumentNullException("representation"); } IntPtr arg = NSString.CreateNative(representation); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("valueAtIndex:")] internal virtual double ValueAtIndex(long index) { if (IsDirectBinding) { return Messaging.Double_objc_msgSend_Int64(base.Handle, selValueAtIndex_Handle, index); } return Messaging.Double_objc_msgSendSuper_Int64(base.SuperHandle, selValueAtIndex_Handle, index); } [Export("stringRepresentation")] internal virtual string StringRepresentation() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringRepresentationHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringRepresentationHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIVibrance.cs ================================================ using System; namespace CoreImage; public class CIVibrance : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public float Amount { get { return GetFloat("inputAmount"); } set { SetFloat("inputAmount", value); } } public CIVibrance() : base(CIFilter.CreateFilter("CIVibrance")) { } public CIVibrance(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIVortexDistortion.cs ================================================ using System; using ObjCRuntime; namespace CoreImage; [Since(6, 0)] public class CIVortexDistortion : CIDistortionFilter { public float Angle { get { return GetFloat("inputAngle"); } set { SetFloat("inputAngle", value); } } public CIVortexDistortion() : base("CIVortexDistortion") { } public CIVortexDistortion(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIWhitePointAdjust.cs ================================================ using System; namespace CoreImage; public class CIWhitePointAdjust : CIFilter { public CIImage Image { get { return GetInputImage(); } set { SetInputImage(value); } } public CIColor Color { get { return GetColor("inputColor"); } set { SetValue("inputColor", value); } } public CIWhitePointAdjust() : base(CIFilter.CreateFilter("CIWhitePointAdjust")) { } public CIWhitePointAdjust(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/CIWrapMode.cs ================================================ namespace CoreImage; public enum CIWrapMode { Black, Clamp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreImage/FaceDetectorAccuracy.cs ================================================ namespace CoreImage; public enum FaceDetectorAccuracy { High, Low } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLActivityType.cs ================================================ namespace CoreLocation; public enum CLActivityType { Other = 1, AutomotiveNavigation, Fitness, OtherNavigation } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLAuthorizationChangedEventArgs.cs ================================================ using System; namespace CoreLocation; public class CLAuthorizationChangedEventArgs : EventArgs { public CLAuthorizationStatus Status { get; set; } public CLAuthorizationChangedEventArgs(CLAuthorizationStatus status) { Status = status; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLAuthorizationStatus.cs ================================================ namespace CoreLocation; public enum CLAuthorizationStatus { NotDetermined, Restricted, Denied, Authorized } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLAuthroziationChangedEventArgs.cs ================================================ using System; namespace CoreLocation; [Obsolete("Use CLAuthorizationChangedEventArgs")] public class CLAuthroziationChangedEventArgs : CLAuthorizationChangedEventArgs { public CLAuthroziationChangedEventArgs(CLAuthorizationStatus status) : base(status) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLDeviceOrientation.cs ================================================ namespace CoreLocation; public enum CLDeviceOrientation { Unknown, Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight, FaceUp, FaceDown } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLError.cs ================================================ using ObjCRuntime; namespace CoreLocation; public enum CLError { LocationUnknown, Denied, Network, HeadingFailure, [Since(4, 0)] RegionMonitoringDenied, [Since(4, 0)] RegionMonitoringFailure, [Since(4, 0)] RegionMonitoringSetupDelayed, RegionMonitoringResponseDelayed, GeocodeFoundNoResult, GeocodeFoundPartialResult, GeocodeCanceled, DeferredFailed, DeferredNotUpdatingLocation, DeferredAccuracyTooLow, DeferredDistanceFiltered, DeferredCanceled } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreLocation; [Register("CLLocation", true)] public class CLLocation : NSObject { public static readonly double AccuracyBest; public static readonly double AccuracyNearestTenMeters; public static readonly double AccuracyHundredMeters; public static readonly double AccuracyKilometer; public static readonly double AccuracyThreeKilometers; public static readonly double AccurracyBestForNavigation; private static readonly IntPtr selCoordinateHandle; private static readonly IntPtr selAltitudeHandle; private static readonly IntPtr selHorizontalAccuracyHandle; private static readonly IntPtr selVerticalAccuracyHandle; private static readonly IntPtr selCourseHandle; private static readonly IntPtr selSpeedHandle; private static readonly IntPtr selTimestampHandle; private static readonly IntPtr selInitWithLatitudeLongitude_Handle; private static readonly IntPtr selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp_Handle; private static readonly IntPtr selDescriptionHandle; private static readonly IntPtr selGetDistanceFrom_Handle; private static readonly IntPtr selDistanceFromLocation_Handle; private static readonly IntPtr selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp_Handle; private static readonly IntPtr class_ptr; private object __mt_Timestamp_var; private static NSString _ErrorUserInfoAlternateRegionKey; public override IntPtr ClassHandle => class_ptr; public virtual CLLocationCoordinate2D Coordinate { [Export("coordinate")] get { if (IsDirectBinding) { return Messaging.CLLocationCoordinate2D_objc_msgSend(base.Handle, selCoordinateHandle); } return Messaging.CLLocationCoordinate2D_objc_msgSendSuper(base.SuperHandle, selCoordinateHandle); } } public virtual double Altitude { [Export("altitude")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAltitudeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAltitudeHandle); } } public virtual double HorizontalAccuracy { [Export("horizontalAccuracy")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selHorizontalAccuracyHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selHorizontalAccuracyHandle); } } public virtual double VerticalAccuracy { [Export("verticalAccuracy")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selVerticalAccuracyHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selVerticalAccuracyHandle); } } public virtual double Course { [Export("course")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selCourseHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selCourseHandle); } } public virtual double Speed { [Export("speed")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selSpeedHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selSpeedHandle); } } public virtual NSDate Timestamp { [Export("timestamp")] get { return (NSDate)(__mt_Timestamp_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimestampHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimestampHandle))))); } } [Field("kCLErrorUserInfoAlternateRegionKey", "CoreLocation")] [MountainLion] public static NSString ErrorUserInfoAlternateRegionKey { [MountainLion] get { if (_ErrorUserInfoAlternateRegionKey == null) { _ErrorUserInfoAlternateRegionKey = Dlfcn.GetStringConstant(Libraries.CoreLocation.Handle, "kCLErrorUserInfoAlternateRegionKey"); } return _ErrorUserInfoAlternateRegionKey; } } static CLLocation() { selCoordinateHandle = Selector.GetHandle("coordinate"); selAltitudeHandle = Selector.GetHandle("altitude"); selHorizontalAccuracyHandle = Selector.GetHandle("horizontalAccuracy"); selVerticalAccuracyHandle = Selector.GetHandle("verticalAccuracy"); selCourseHandle = Selector.GetHandle("course"); selSpeedHandle = Selector.GetHandle("speed"); selTimestampHandle = Selector.GetHandle("timestamp"); selInitWithLatitudeLongitude_Handle = Selector.GetHandle("initWithLatitude:longitude:"); selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp_Handle = Selector.GetHandle("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:"); selDescriptionHandle = Selector.GetHandle("description"); selGetDistanceFrom_Handle = Selector.GetHandle("getDistanceFrom:"); selDistanceFromLocation_Handle = Selector.GetHandle("distanceFromLocation:"); selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp_Handle = Selector.GetHandle("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:"); class_ptr = Class.GetHandle("CLLocation"); IntPtr intPtr = Libraries.CoreLocation.Handle; if (!(intPtr == IntPtr.Zero)) { AccurracyBestForNavigation = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyBestForNavigation"); AccuracyBest = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyBest"); AccuracyNearestTenMeters = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyNearestTenMeters"); AccuracyHundredMeters = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyHundredMeters"); AccuracyKilometer = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyKilometer"); AccuracyThreeKilometers = Dlfcn.GetDouble(intPtr, "kCLLocationAccuracyThreeKilometers"); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CLLocation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CLLocation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocation(IntPtr handle) : base(handle) { } [Export("initWithLatitude:longitude:")] public CLLocation(double latitude, double longitude) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double_Double(base.Handle, selInitWithLatitudeLongitude_Handle, latitude, longitude); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double_Double(base.SuperHandle, selInitWithLatitudeLongitude_Handle, latitude, longitude); } } [Export("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:")] public CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp) : base(NSObjectFlag.Empty) { if (timestamp == null) { throw new ArgumentNullException("timestamp"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_Double_Double_IntPtr(base.Handle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp_Handle, coordinate, altitude, hAccuracy, vAccuracy, timestamp.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_Double_Double_IntPtr(base.SuperHandle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp_Handle, coordinate, altitude, hAccuracy, vAccuracy, timestamp.Handle); } } [Export("description")] public new virtual string Description() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDescriptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDescriptionHandle)); } [Export("getDistanceFrom:")] [Obsolete("Replaced by DistanceFrom", false)] public virtual double Distancefrom(CLLocation location) { if (location == null) { throw new ArgumentNullException("location"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selGetDistanceFrom_Handle, location.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetDistanceFrom_Handle, location.Handle); } [Export("distanceFromLocation:")] public virtual double DistanceFrom(CLLocation location) { if (location == null) { throw new ArgumentNullException("location"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDistanceFromLocation_Handle, location.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDistanceFromLocation_Handle, location.Handle); } [Export("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:")] public CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp) : base(NSObjectFlag.Empty) { if (timestamp == null) { throw new ArgumentNullException("timestamp"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_Double_Double_Double_Double_IntPtr(base.Handle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp_Handle, coordinate, altitude, hAccuracy, vAccuracy, course, speed, timestamp.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_Double_Double_Double_Double_IntPtr(base.SuperHandle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp_Handle, coordinate, altitude, hAccuracy, vAccuracy, course, speed, timestamp.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Timestamp_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationCoordinate2D.cs ================================================ using System.Runtime.InteropServices; namespace CoreLocation; public struct CLLocationCoordinate2D { public double Latitude; public double Longitude; public CLLocationCoordinate2D(double latitude, double longitude) { Latitude = latitude; Longitude = longitude; } [DllImport("/System/Library/Frameworks/CoreLocation.framework/CoreLocation")] private static extern int CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord); public bool IsValid() { return CLLocationCoordinate2DIsValid(this) != 0; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationManager.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreLocation; [Register("CLLocationManager", true)] public class CLLocationManager : NSObject { [Register] private sealed class _CLLocationManagerDelegate : CLLocationManagerDelegate { internal EventHandler updatedLocation; internal CLLocationManagerEventArgs shouldDisplayHeadingCalibration; internal EventHandler failed; internal EventHandler authorizationChanged; internal EventHandler locationsUpdated; internal EventHandler locationUpdatesPaused; internal EventHandler locationUpdatesResumed; internal EventHandler deferredUpdatesFinished; [Preserve(Conditional = true)] public override void UpdatedLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation) { EventHandler eventHandler = updatedLocation; if (eventHandler != null) { CLLocationUpdatedEventArgs e = new CLLocationUpdatedEventArgs(newLocation, oldLocation); eventHandler(manager, e); } } [Preserve(Conditional = true)] public override bool ShouldDisplayHeadingCalibration(CLLocationManager manager) { return shouldDisplayHeadingCalibration?.Invoke(manager) ?? true; } [Preserve(Conditional = true)] public override void Failed(CLLocationManager manager, NSError error) { EventHandler eventHandler = failed; if (eventHandler != null) { NSErrorEventArgs e = new NSErrorEventArgs(error); eventHandler(manager, e); } } [Preserve(Conditional = true)] public override void AuthorizationChanged(CLLocationManager manager, CLAuthorizationStatus status) { EventHandler eventHandler = authorizationChanged; if (eventHandler != null) { CLAuthorizationChangedEventArgs e = new CLAuthorizationChangedEventArgs(status); eventHandler(manager, e); } } [Preserve(Conditional = true)] public override void LocationsUpdated(CLLocationManager manager, CLLocation[] locations) { EventHandler eventHandler = locationsUpdated; if (eventHandler != null) { CLLocationsUpdatedEventArgs e = new CLLocationsUpdatedEventArgs(locations); eventHandler(manager, e); } } [Preserve(Conditional = true)] public override void LocationUpdatesPaused(CLLocationManager manager) { locationUpdatesPaused?.Invoke(manager, EventArgs.Empty); } [Preserve(Conditional = true)] public override void LocationUpdatesResumed(CLLocationManager manager) { locationUpdatesResumed?.Invoke(manager, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DeferredUpdatesFinished(CLLocationManager manager, NSError error) { EventHandler eventHandler = deferredUpdatesFinished; if (eventHandler != null) { NSErrorEventArgs e = new NSErrorEventArgs(error); eventHandler(manager, e); } } } private const bool use_static_variants = true; private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selLocationServicesEnabledHandle = Selector.GetHandle("locationServicesEnabled"); private static readonly IntPtr selDistanceFilterHandle = Selector.GetHandle("distanceFilter"); private static readonly IntPtr selSetDistanceFilter_Handle = Selector.GetHandle("setDistanceFilter:"); private static readonly IntPtr selDesiredAccuracyHandle = Selector.GetHandle("desiredAccuracy"); private static readonly IntPtr selSetDesiredAccuracy_Handle = Selector.GetHandle("setDesiredAccuracy:"); private static readonly IntPtr selLocationHandle = Selector.GetHandle("location"); private static readonly IntPtr selStartUpdatingLocationHandle = Selector.GetHandle("startUpdatingLocation"); private static readonly IntPtr selStopUpdatingLocationHandle = Selector.GetHandle("stopUpdatingLocation"); private static readonly IntPtr class_ptr = Class.GetHandle("CLLocationManager"); private object __mt_WeakDelegate_var; private object __mt_Location_var; public static bool LocationServicesEnabled => _LocationServicesEnabledStatic; public override IntPtr ClassHandle => class_ptr; public CLLocationManagerDelegate Delegate { get { return WeakDelegate as CLLocationManagerDelegate; } set { WeakDelegate = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } internal virtual bool _LocationServicesEnabledInstance { [Export("locationServicesEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selLocationServicesEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selLocationServicesEnabledHandle); } } public virtual double DistanceFilter { [Export("distanceFilter", ArgumentSemantic.Assign)] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDistanceFilterHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDistanceFilterHandle); } [Export("setDistanceFilter:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDistanceFilter_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDistanceFilter_Handle, value); } } } public virtual double DesiredAccuracy { [Export("desiredAccuracy", ArgumentSemantic.Assign)] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDesiredAccuracyHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDesiredAccuracyHandle); } [Export("setDesiredAccuracy:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetDesiredAccuracy_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetDesiredAccuracy_Handle, value); } } } public virtual CLLocation Location { [Export("location")] get { return (CLLocation)(__mt_Location_var = ((!IsDirectBinding) ? ((CLLocation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocationHandle))) : ((CLLocation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocationHandle))))); } } [Since(4, 0)] internal static bool _LocationServicesEnabledStatic { [Export("locationServicesEnabled")] get { return Messaging.bool_objc_msgSend(class_ptr, selLocationServicesEnabledHandle); } } public CLLocationManagerEventArgs ShouldDisplayHeadingCalibration { get { return EnsureCLLocationManagerDelegate().shouldDisplayHeadingCalibration; } set { EnsureCLLocationManagerDelegate().shouldDisplayHeadingCalibration = value; } } [Obsolete("Deprecated in iOS 6.0", false)] public event EventHandler UpdatedLocation { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.updatedLocation = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.updatedLocation, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.updatedLocation = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.updatedLocation, value); } } public event EventHandler Failed { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.failed = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.failed, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.failed = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.failed, value); } } public event EventHandler AuthorizationChanged { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.authorizationChanged = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.authorizationChanged, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.authorizationChanged = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.authorizationChanged, value); } } public event EventHandler LocationsUpdated { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationsUpdated = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.locationsUpdated, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationsUpdated = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.locationsUpdated, value); } } public event EventHandler LocationUpdatesPaused { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationUpdatesPaused = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.locationUpdatesPaused, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationUpdatesPaused = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.locationUpdatesPaused, value); } } public event EventHandler LocationUpdatesResumed { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationUpdatesResumed = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.locationUpdatesResumed, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.locationUpdatesResumed = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.locationUpdatesResumed, value); } } public event EventHandler DeferredUpdatesFinished { add { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.deferredUpdatesFinished = (EventHandler)System.Delegate.Combine(cLLocationManagerDelegate.deferredUpdatesFinished, value); } remove { _CLLocationManagerDelegate cLLocationManagerDelegate = EnsureCLLocationManagerDelegate(); cLLocationManagerDelegate.deferredUpdatesFinished = (EventHandler)System.Delegate.Remove(cLLocationManagerDelegate.deferredUpdatesFinished, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CLLocationManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CLLocationManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocationManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocationManager(IntPtr handle) : base(handle) { } [Export("startUpdatingLocation")] public virtual void StartUpdatingLocation() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartUpdatingLocationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartUpdatingLocationHandle); } } [Export("stopUpdatingLocation")] public virtual void StopUpdatingLocation() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopUpdatingLocationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopUpdatingLocationHandle); } } private _CLLocationManagerDelegate EnsureCLLocationManagerDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _CLLocationManagerDelegate)) { nSObject = (WeakDelegate = new _CLLocationManagerDelegate()); } return (_CLLocationManagerDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Location_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationManagerDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreLocation; [Register("CLLocationManagerDelegate", false)] [Model] public class CLLocationManagerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CLLocationManagerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CLLocationManagerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocationManagerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CLLocationManagerDelegate(IntPtr handle) : base(handle) { } [Export("locationManager:didUpdateToLocation:fromLocation:")] [Obsolete("Deprecated in iOS 6.0", false)] public virtual void UpdatedLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManagerShouldDisplayHeadingCalibration:")] public virtual bool ShouldDisplayHeadingCalibration(CLLocationManager manager) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManager:didFailWithError:")] public virtual void Failed(CLLocationManager manager, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManager:didChangeAuthorizationStatus:")] public virtual void AuthorizationChanged(CLLocationManager manager, CLAuthorizationStatus status) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManager:didUpdateLocations:")] public virtual void LocationsUpdated(CLLocationManager manager, CLLocation[] locations) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManagerDidPauseLocationUpdates:")] public virtual void LocationUpdatesPaused(CLLocationManager manager) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManagerDidResumeLocationUpdates:")] public virtual void LocationUpdatesResumed(CLLocationManager manager) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("locationManager:didFinishDeferredUpdatesWithError:")] public virtual void DeferredUpdatesFinished(CLLocationManager manager, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationManagerEventArgs.cs ================================================ namespace CoreLocation; public delegate bool CLLocationManagerEventArgs(CLLocationManager manager); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationUpdatedEventArgs.cs ================================================ using System; namespace CoreLocation; public class CLLocationUpdatedEventArgs : EventArgs { public CLLocation NewLocation { get; set; } public CLLocation OldLocation { get; set; } public CLLocationUpdatedEventArgs(CLLocation newLocation, CLLocation oldLocation) { NewLocation = newLocation; OldLocation = oldLocation; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreLocation/CLLocationsUpdatedEventArgs.cs ================================================ using System; namespace CoreLocation; public class CLLocationsUpdatedEventArgs : EventArgs { public CLLocation[] Locations { get; set; } public CLLocationsUpdatedEventArgs(CLLocation[] locations) { Locations = locations; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMAudioFormatDescription.cs ================================================ using System; using ObjCRuntime; namespace CoreMedia; [Since(4, 0)] public class CMAudioFormatDescription : CMFormatDescription { internal CMAudioFormatDescription(IntPtr handle) : base(handle) { } internal CMAudioFormatDescription(IntPtr handle, bool owns) : base(handle, owns) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMBlockBuffer.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(4, 0)] public class CMBlockBuffer : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public uint DataLength => CMBlockBufferGetDataLength(handle); internal CMBlockBuffer(IntPtr handle) { this.handle = handle; } [Preserve(Conditional = true)] internal CMBlockBuffer(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CMBlockBuffer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMBlockBufferError CMBlockBufferCreateEmpty(IntPtr allocator, uint subBlockCapacity, CMBlockBufferFlags flags, out IntPtr output); public static CMBlockBuffer CreateEmpty(uint subBlockCapacity, CMBlockBufferFlags flags, out CMBlockBufferError error) { error = CMBlockBufferCreateEmpty(IntPtr.Zero, subBlockCapacity, flags, out var output); if (error != 0) { return null; } return new CMBlockBuffer(output, owns: true); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMBlockBufferError CMBlockBufferCopyDataBytes(IntPtr handle, uint offsetToData, uint dataLength, IntPtr destination); public CMBlockBufferError CopyDataBytes(uint offsetToData, uint dataLength, IntPtr destination) { return CMBlockBufferCopyDataBytes(handle, offsetToData, dataLength, destination); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern uint CMBlockBufferGetDataLength(IntPtr handle); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMBlockBufferError.cs ================================================ namespace CoreMedia; public enum CMBlockBufferError { None = 0, StructureAllocationFailed = -12700, BlockAllocationFailed = -12701, BadCustomBlockSource = -12702, BadOffsetParameter = -12703, BadLengthParameter = -12704, BadPointerParameter = -12705, EmptyBlockBuffer = -12706, UnallocatedBlock = -12707 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMBlockBufferFlags.cs ================================================ using System; namespace CoreMedia; [Flags] public enum CMBlockBufferFlags : uint { AssureMemoryNow = 1u, AlwaysCopyData = 2u, DontOptimizeDepth = 4u, PermitEmptyReference = 8u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMClock.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreMedia; [Since(6, 0)] public class CMClock : CMClockOrTimebase { public static CMClock HostTimeClock => new CMClock(CMClockGetHostTimeClock(), owns: false); public CMTime CurrentTime => CMClockGetTime(base.Handle); public CMClock(IntPtr handle) : base(handle) { } internal CMClock(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMClockGetHostTimeClock(); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMClockGetTime(IntPtr clock); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMClockError CMAudioClockCreate(IntPtr allocator, out IntPtr clockOut); public static CMClock CreateAudioClock(out CMClockError clockError) { clockError = CMAudioClockCreate(IntPtr.Zero, out var clockOut); if (clockError != 0) { return null; } return new CMClock(clockOut); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMClockError CMClockGetAnchorTime(IntPtr clock, out CMTime outClockTime, out CMTime outReferenceClockTime); public CMClockError GetAnchorTime(out CMTime clockTime, out CMTime referenceClockTime) { return CMClockGetAnchorTime(base.Handle, out clockTime, out referenceClockTime); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern bool CMClockMightDrift(IntPtr clock, IntPtr otherClock); public bool MightDrift(CMClock otherClock) { if (otherClock == null) { throw new ArgumentNullException("otherClock"); } return CMClockMightDrift(base.Handle, otherClock.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern void CMClockInvalidate(IntPtr clock); public void Invalidate() { CMClockInvalidate(base.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", EntryPoint = "CMClockConvertHostTimeToSystemUnits")] public static extern ulong ConvertHostTimeToSystemUnits(CMTime hostTime); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", EntryPoint = "CMClockMakeHostTimeFromSystemUnits")] public static extern CMTime CreateHostTimeFromSystemUnits(ulong hostTime); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMClockError.cs ================================================ namespace CoreMedia; public enum CMClockError { None = 0, MissingRequiredParameter = -12745, InvalidParameter = -12746, AllocationFailed = -12747, UnsupportedOperation = -12756 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMClockOrTimebase.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace CoreMedia; public class CMClockOrTimebase : IDisposable, INativeObject { internal IntPtr handle; public IntPtr Handle => handle; public CMTime Time => CMSyncGetTime(handle); internal CMClockOrTimebase() { } public CMClockOrTimebase(IntPtr handle) { this.handle = handle; } internal CMClockOrTimebase(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(Handle); } this.handle = handle; } ~CMClockOrTimebase() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { CFObject.CFRelease(Handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSyncGetTime(IntPtr clockOrTimebase); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern double CMSyncGetRelativeRate(IntPtr ofClockOrTimebase, IntPtr relativeToClockOrTimebase); public static double GetRelativeRate(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB) { if (clockOrTimebaseA == null) { throw new ArgumentNullException("clockOrTimebaseA"); } if (clockOrTimebaseB == null) { throw new ArgumentNullException("clockOrTimebaseB"); } return CMSyncGetRelativeRate(clockOrTimebaseA.Handle, clockOrTimebaseB.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSyncError CMSyncGetRelativeRateAndAnchorTime(IntPtr ofClockOrTimebase, IntPtr relativeToClockOrTimebase, out double outRelativeRate, out CMTime outOfClockOrTimebaseAnchorTime, out CMTime outRelativeToClockOrTimebaseAnchorTime); public static CMSyncError GetRelativeRateAndAnchorTime(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB, out double relativeRate, out CMTime timeA, out CMTime timeB) { if (clockOrTimebaseA == null) { throw new ArgumentNullException("clockOrTimebaseA"); } if (clockOrTimebaseB == null) { throw new ArgumentNullException("clockOrTimebaseB"); } return CMSyncGetRelativeRateAndAnchorTime(clockOrTimebaseA.Handle, clockOrTimebaseB.handle, out relativeRate, out timeA, out timeB); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSyncConvertTime(CMTime time, IntPtr fromClockOrTimebase, IntPtr toClockOrTimebase); public static CMTime ConvertTime(CMTime time, CMClockOrTimebase from, CMClockOrTimebase to) { if (from == null) { throw new ArgumentNullException("from"); } if (to == null) { throw new ArgumentNullException("to"); } return CMSyncConvertTime(time, from.Handle, to.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern bool CMSyncMightDrift(IntPtr clockOrTimebase1, IntPtr clockOrTimebase2); public static bool MightDrift(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB) { if (clockOrTimebaseA == null) { throw new ArgumentNullException("clockOrTimebaseA"); } if (clockOrTimebaseB == null) { throw new ArgumentNullException("clockOrTimebaseB"); } return CMSyncMightDrift(clockOrTimebaseA.Handle, clockOrTimebaseB.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMClosedCaptionFormatType.cs ================================================ namespace CoreMedia; public enum CMClosedCaptionFormatType : uint { CEA608 = 1664495672u, CEA708 = 1664561208u, ATSC = 1635017571u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMFormatDescription.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using CoreFoundation; using CoreGraphics; using CoreVideo; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(4, 0)] public class CMFormatDescription : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public uint MediaSubType => CMFormatDescriptionGetMediaSubType(handle); public AudioFormatType AudioFormatType { get { if (MediaType != CMMediaType.Audio) { return (AudioFormatType)0; } return (AudioFormatType)MediaSubType; } } public CMSubtitleFormatType SubtitleFormatType { get { if (MediaType != CMMediaType.Subtitle) { return (CMSubtitleFormatType)0u; } return (CMSubtitleFormatType)MediaSubType; } } public CMClosedCaptionFormatType ClosedCaptionFormatType { get { if (MediaType != CMMediaType.ClosedCaption) { return (CMClosedCaptionFormatType)0u; } return (CMClosedCaptionFormatType)MediaSubType; } } public CMMuxedStreamType MuxedStreamType { get { if (MediaType != CMMediaType.Muxed) { return (CMMuxedStreamType)0u; } return (CMMuxedStreamType)MediaSubType; } } public CMVideoCodecType VideoCodecType { get { if (MediaType != CMMediaType.Video) { return (CMVideoCodecType)0; } return (CMVideoCodecType)MediaSubType; } } public CMMetadataFormatType MetadataFormatType { get { if (MediaType != CMMediaType.TimedMetadata) { return (CMMetadataFormatType)0u; } return (CMMetadataFormatType)MediaSubType; } } public CMTimeCodeFormatType TimeCodeFormatType { get { if (MediaType != CMMediaType.TimeCode) { return (CMTimeCodeFormatType)0u; } return (CMTimeCodeFormatType)MediaSubType; } } public CMMediaType MediaType => CMFormatDescriptionGetMediaType(handle); public unsafe AudioStreamBasicDescription? AudioStreamBasicDescription { get { IntPtr intPtr = CMAudioFormatDescriptionGetStreamBasicDescription(handle); if (intPtr != IntPtr.Zero) { return *(AudioStreamBasicDescription*)(void*)intPtr; } return null; } } public AudioChannelLayout AudioChannelLayout { get { int size; IntPtr intPtr = CMAudioFormatDescriptionGetChannelLayout(handle, out size); if (intPtr == IntPtr.Zero || size == 0) { return null; } return AudioChannelLayout.FromHandle(intPtr); } } public unsafe AudioFormat[] AudioFormats { get { int size; IntPtr intPtr = CMAudioFormatDescriptionGetFormatList(handle, out size); if (intPtr == IntPtr.Zero) { return null; } int num = size / sizeof(AudioFormat); AudioFormat[] array = new AudioFormat[num]; AudioFormat* ptr = (AudioFormat*)(void*)intPtr; for (int i = 0; i < num; i++) { array[i] = ptr[i]; } return array; } } public byte[] AudioMagicCookie { get { int size; IntPtr intPtr = CMAudioFormatDescriptionGetMagicCookie(handle, out size); if (intPtr == IntPtr.Zero) { return null; } byte[] array = new byte[size]; for (int i = 0; i < size; i++) { array[i] = Marshal.ReadByte(intPtr, i); } return array; } } public unsafe AudioFormat AudioMostCompatibleFormat { get { AudioFormat* ptr = (AudioFormat*)(void*)CMAudioFormatDescriptionGetMostCompatibleFormat(handle); if (ptr == null) { return default(AudioFormat); } return *ptr; } } public unsafe AudioFormat AudioRichestDecodableFormat { get { AudioFormat* ptr = (AudioFormat*)(void*)CMAudioFormatDescriptionGetRichestDecodableFormat(handle); if (ptr == null) { return default(AudioFormat); } return *ptr; } } [Advice("Use CMVideoFormatDescription")] public CMVideoDimensions VideoDimensions => CMVideoFormatDescriptionGetDimensions(handle); internal CMFormatDescription(IntPtr handle) { this.handle = handle; } [Preserve(Conditional = true)] internal CMFormatDescription(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CMFormatDescription() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMFormatDescriptionGetExtensions(IntPtr handle); public NSDictionary GetExtensions() { IntPtr intPtr = CMFormatDescriptionGetExtensions(handle); if (intPtr == IntPtr.Zero) { return null; } return (NSDictionary)Runtime.GetNSObject(intPtr); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern uint CMFormatDescriptionGetMediaSubType(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMMediaType CMFormatDescriptionGetMediaType(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern int CMFormatDescriptionGetTypeID(); public static int GetTypeID() { return CMFormatDescriptionGetTypeID(); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMFormatDescriptionError CMFormatDescriptionCreate(IntPtr allocator, CMMediaType mediaType, uint mediaSubtype, IntPtr extensions, out IntPtr handle); public static CMFormatDescription Create(CMMediaType mediaType, uint mediaSubtype, out CMFormatDescriptionError error) { error = CMFormatDescriptionCreate(IntPtr.Zero, mediaType, mediaSubtype, IntPtr.Zero, out var intPtr); if (error != 0) { return null; } return Create(mediaType, intPtr, owns: true); } public static CMFormatDescription Create(IntPtr handle, bool owns) { return Create(CMFormatDescriptionGetMediaType(handle), handle, owns); } private static CMFormatDescription Create(CMMediaType type, IntPtr handle, bool owns) { return type switch { CMMediaType.Video => new CMVideoFormatDescription(handle), CMMediaType.Audio => new CMAudioFormatDescription(handle), _ => new CMFormatDescription(handle), }; } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetStreamBasicDescription(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetChannelLayout(IntPtr handle, out int size); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetFormatList(IntPtr handle, out int size); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetMagicCookie(IntPtr handle, out int size); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetMostCompatibleFormat(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMAudioFormatDescriptionGetRichestDecodableFormat(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] internal static extern CMVideoDimensions CMVideoFormatDescriptionGetDimensions(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] internal static extern CGRect CMVideoFormatDescriptionGetCleanAperture(IntPtr handle, bool originIsAtTopLeft); [Advice("Use CMVideoFormatDescription")] public CGRect GetVideoCleanAperture(bool originIsAtTopLeft) { return CMVideoFormatDescriptionGetCleanAperture(handle, originIsAtTopLeft); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers(); public static NSObject[] GetExtensionKeysCommonWithImageBuffers() { return NSArray.ArrayFromHandle(CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers()); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] internal static extern CGSize CMVideoFormatDescriptionGetPresentationDimensions(IntPtr handle, bool usePixelAspectRatio, bool useCleanAperture); [Advice("Use CMVideoFormatDescription")] public CGSize GetVideoPresentationDimensions(bool usePixelAspectRatio, bool useCleanAperture) { return CMVideoFormatDescriptionGetPresentationDimensions(handle, usePixelAspectRatio, useCleanAperture); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern int CMVideoFormatDescriptionMatchesImageBuffer(IntPtr handle, IntPtr imageBufferRef); public bool VideoMatchesImageBuffer(CVImageBuffer imageBuffer) { if (imageBuffer == null) { throw new ArgumentNullException("imageBuffer"); } return CMVideoFormatDescriptionMatchesImageBuffer(handle, imageBuffer.Handle) != 0; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMFormatDescriptionError.cs ================================================ namespace CoreMedia; public enum CMFormatDescriptionError { None = 0, InvalidParameter = -12710, AllocationFailed = -12711 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMMediaType.cs ================================================ namespace CoreMedia; public enum CMMediaType : uint { Video = 1986618469u, Audio = 1936684398u, Muxed = 1836415096u, Text = 1952807028u, ClosedCaption = 1668047728u, Subtitle = 1935832172u, TimeCode = 1953325924u, TimedMetadata = 1953326452u, Metadata = 1953326452u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMMemoryPool.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(6, 0)] public class CMMemoryPool : IDisposable, INativeObject { private IntPtr handle; private static readonly IntPtr AgeOutPeriodSelector; public IntPtr Handle => handle; static CMMemoryPool() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", 0); try { AgeOutPeriodSelector = Dlfcn.GetIntPtr(intPtr, "kCMMemoryPoolOption_AgeOutPeriod"); } finally { Dlfcn.dlclose(intPtr); } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMMemoryPoolCreate(IntPtr options); public CMMemoryPool() { handle = CMMemoryPoolCreate(IntPtr.Zero); } public CMMemoryPool(TimeSpan ageOutPeriod) { using NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); nSMutableDictionary.LowlevelSetObject(AgeOutPeriodSelector, new NSNumber(ageOutPeriod.TotalSeconds).Handle); handle = CMMemoryPoolCreate(nSMutableDictionary.Handle); } ~CMMemoryPool() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { CFObject.CFRelease(Handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMMemoryPoolGetAllocator(IntPtr pool); public CFAllocator GetAllocator() { return new CFAllocator(CMMemoryPoolGetAllocator(Handle), owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern void CMMemoryPoolFlush(IntPtr pool); public void Flush() { CMMemoryPoolFlush(Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern void CMMemoryPoolInvalidate(IntPtr pool); public void Invalidate() { CMMemoryPoolInvalidate(Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMMetadataFormatType.cs ================================================ namespace CoreMedia; public enum CMMetadataFormatType : uint { ICY = 1768126752u, ID3 = 1768174368u, Boxed = 1835360888u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMMuxedStreamType.cs ================================================ namespace CoreMedia; public enum CMMuxedStreamType : uint { MPEG1System = 1836069235u, MPEG2Transport = 1836069492u, MPEG2Program = 1836069488u, DV = 1685463072u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSampleBuffer.cs ================================================ using System; using System.Runtime.InteropServices; using AudioToolbox; using CoreFoundation; using CoreVideo; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(4, 0)] public class CMSampleBuffer : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public bool DataIsReady => CMSampleBufferDataIsReady(handle); public CMTime DecodeTimeStamp => CMSampleBufferGetDecodeTimeStamp(handle); public CMTime Duration => CMSampleBufferGetDuration(handle); public int NumSamples => CMSampleBufferGetNumSamples(handle); public CMTime OutputDecodeTimeStamp => CMSampleBufferGetOutputDecodeTimeStamp(handle); public CMTime OutputDuration => CMSampleBufferGetOutputDuration(handle); public CMTime OutputPresentationTimeStamp => CMSampleBufferGetOutputPresentationTimeStamp(handle); public CMTime PresentationTimeStamp => CMSampleBufferGetPresentationTimeStamp(handle); public uint TotalSampleSize => CMSampleBufferGetTotalSampleSize(handle); public bool IsValid => CMSampleBufferIsValid(handle); internal CMSampleBuffer(IntPtr handle) { this.handle = handle; } [Preserve(Conditional = true)] internal CMSampleBuffer(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } ~CMSampleBuffer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMAudioSampleBufferCreateWithPacketDescriptions(IntPtr allocator, IntPtr dataBuffer, bool dataReady, IntPtr makeDataReadyCallback, IntPtr makeDataReadyRefcon, IntPtr formatDescription, int numSamples, CMTime sbufPTS, AudioStreamPacketDescription[] packetDescriptions, out IntPtr sBufOut); public static CMSampleBuffer CreateWithPacketDescriptions(CMBlockBuffer dataBuffer, CMFormatDescription formatDescription, int samplesCount, CMTime sampleTimestamp, AudioStreamPacketDescription[] packetDescriptions, out CMSampleBufferError error) { if (formatDescription == null) { throw new ArgumentNullException("formatDescription"); } if (samplesCount <= 0) { throw new ArgumentOutOfRangeException("samplesCount"); } error = CMAudioSampleBufferCreateWithPacketDescriptions(IntPtr.Zero, dataBuffer?.handle ?? IntPtr.Zero, dataReady: true, IntPtr.Zero, IntPtr.Zero, formatDescription.handle, samplesCount, sampleTimestamp, packetDescriptions, out var sBufOut); if (error != 0) { return null; } return new CMSampleBuffer(sBufOut, owns: true); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private unsafe static extern int CMSampleBufferCreateCopyWithNewTiming(IntPtr allocator, IntPtr originalSBuf, int numSampleTimingEntries, CMSampleTimingInfo* sampleTimingArray, out IntPtr sBufCopyOut); public static CMSampleBuffer CreateWithNewTiming(CMSampleBuffer original, CMSampleTimingInfo[] timing) { int status; return CreateWithNewTiming(original, timing, out status); } public unsafe static CMSampleBuffer CreateWithNewTiming(CMSampleBuffer original, CMSampleTimingInfo[] timing, out int status) { IntPtr sBufCopyOut; fixed (CMSampleTimingInfo* sampleTimingArray = timing) { if ((status = CMSampleBufferCreateCopyWithNewTiming(IntPtr.Zero, original.Handle, timing.Length, sampleTimingArray, out sBufCopyOut)) != 0) { return null; } } return new CMSampleBuffer(sBufCopyOut, owns: true); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferCreateForImageBuffer(IntPtr allocator, IntPtr imageBuffer, bool dataReady, IntPtr makeDataReadyCallback, IntPtr makeDataReadyRefcon, IntPtr formatDescription, ref CMSampleTimingInfo sampleTiming, out IntPtr bufOut); public static CMSampleBuffer CreateForImageBuffer(CVImageBuffer imageBuffer, bool dataReady, CMVideoFormatDescription formatDescription, CMSampleTimingInfo sampleTiming, out CMSampleBufferError error) { if (imageBuffer == null) { throw new ArgumentNullException("imageBuffer"); } if (formatDescription == null) { throw new ArgumentNullException("formatDescription"); } error = CMSampleBufferCreateForImageBuffer(IntPtr.Zero, imageBuffer.handle, dataReady, IntPtr.Zero, IntPtr.Zero, formatDescription.handle, ref sampleTiming, out var bufOut); if (error != 0) { return null; } return new CMSampleBuffer(bufOut, owns: true); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern bool CMSampleBufferDataIsReady(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMSampleBufferGetDataBuffer(IntPtr handle); public CMBlockBuffer GetDataBuffer() { IntPtr intPtr = CMSampleBufferGetDataBuffer(handle); if (intPtr == IntPtr.Zero) { return null; } return new CMBlockBuffer(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetDecodeTimeStamp(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetDuration(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMSampleBufferGetFormatDescription(IntPtr handle); [Advice("Use GetAudioFormatDescription or GetVideoFormatDescription")] public CMFormatDescription GetFormatDescription() { CMFormatDescription result = null; IntPtr intPtr = CMSampleBufferGetFormatDescription(handle); if (intPtr != IntPtr.Zero) { result = new CMFormatDescription(intPtr, owns: false); } return result; } public CMAudioFormatDescription GetAudioFormatDescription() { IntPtr intPtr = CMSampleBufferGetFormatDescription(handle); if (intPtr == IntPtr.Zero) { return null; } return new CMAudioFormatDescription(intPtr, owns: false); } public CMVideoFormatDescription GetVideoFormatDescription() { IntPtr intPtr = CMSampleBufferGetFormatDescription(handle); if (intPtr == IntPtr.Zero) { return null; } return new CMVideoFormatDescription(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMSampleBufferGetImageBuffer(IntPtr handle); public CVImageBuffer GetImageBuffer() { IntPtr intPtr = CMSampleBufferGetImageBuffer(handle); if (intPtr == IntPtr.Zero) { return null; } if (CFType.GetTypeID(intPtr) == CVPixelBuffer.CVImageBufferType) { return new CVPixelBuffer(intPtr, owns: false); } return new CVImageBuffer(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern int CMSampleBufferGetNumSamples(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetOutputDecodeTimeStamp(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetOutputDuration(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetOutputPresentationTimeStamp(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferSetOutputPresentationTimeStamp(IntPtr handle, CMTime outputPresentationTimeStamp); public int SetOutputPresentationTimeStamp(CMTime outputPresentationTimeStamp) { return (int)CMSampleBufferSetOutputPresentationTimeStamp(handle, outputPresentationTimeStamp); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMSampleBufferGetPresentationTimeStamp(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMSampleBufferGetSampleAttachmentsArray(IntPtr handle, bool createIfNecessary); public CMSampleBufferAttachmentSettings[] GetSampleAttachments(bool createIfNecessary) { IntPtr intPtr = CMSampleBufferGetSampleAttachmentsArray(handle, createIfNecessary); if (intPtr == IntPtr.Zero) { return new CMSampleBufferAttachmentSettings[0]; } return NSArray.ArrayFromHandle(intPtr, (IntPtr h) => new CMSampleBufferAttachmentSettings((NSMutableDictionary)Runtime.GetNSObject(h))); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern uint CMSampleBufferGetSampleSize(IntPtr handle, int sampleIndex); public uint GetSampleSize(int sampleIndex) { return CMSampleBufferGetSampleSize(handle, sampleIndex); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private unsafe static extern int CMSampleBufferGetSampleTimingInfoArray(IntPtr sbuf, int timingArrayEntries, CMSampleTimingInfo* timingArrayOut, out int timingArrayEntriesNeededOut); public CMSampleTimingInfo[] GetSampleTimingInfo() { int status; return GetSampleTimingInfo(out status); } public unsafe CMSampleTimingInfo[] GetSampleTimingInfo(out int status) { status = 0; if (handle == IntPtr.Zero) { return null; } if ((status = CMSampleBufferGetSampleTimingInfoArray(handle, 0, null, out var timingArrayEntriesNeededOut)) != 0) { return null; } CMSampleTimingInfo[] array = new CMSampleTimingInfo[timingArrayEntriesNeededOut]; if (timingArrayEntriesNeededOut == 0) { return array; } fixed (CMSampleTimingInfo* timingArrayOut = array) { if ((status = CMSampleBufferGetSampleTimingInfoArray(handle, timingArrayEntriesNeededOut, timingArrayOut, out timingArrayEntriesNeededOut)) != 0) { return null; } } return array; } private static string OSStatusToString(int status) { return new NSError(NSError.OsStatusErrorDomain, status).LocalizedDescription; } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern uint CMSampleBufferGetTotalSampleSize(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern int CMSampleBufferGetTypeID(); public static int GetTypeID() { return CMSampleBufferGetTypeID(); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferInvalidate(IntPtr handle); public int Invalidate() { return (int)CMSampleBufferInvalidate(handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern bool CMSampleBufferIsValid(IntPtr handle); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferMakeDataReady(IntPtr handle); public int MakeDataReady() { return (int)CMSampleBufferMakeDataReady(handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferSetDataBuffer(IntPtr handle, IntPtr dataBufferHandle); public int SetDataBuffer(CMBlockBuffer dataBuffer) { IntPtr zero = IntPtr.Zero; if (dataBuffer != null) { zero = dataBuffer.handle; } return (int)CMSampleBufferSetDataBuffer(handle, zero); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferSetDataReady(IntPtr handle); public int SetDataReady() { return (int)CMSampleBufferSetDataReady(handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMSampleBufferError CMSampleBufferTrackDataReadiness(IntPtr handle, IntPtr handleToTrack); public int TrackDataReadiness(CMSampleBuffer bufferToTrack) { IntPtr zero = IntPtr.Zero; if (bufferToTrack != null) { zero = bufferToTrack.handle; } return (int)CMSampleBufferTrackDataReadiness(handle, zero); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSampleBufferAttachmentSettings.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreMedia; public class CMSampleBufferAttachmentSettings : DictionaryContainer { private static class Selectors { public static readonly NSString NotSync; public static readonly NSString PartialSync; public static readonly NSString HasRedundantCoding; public static readonly NSString IsDependedOnByOthers; public static readonly NSString DependsOnOthers; public static readonly NSString EarlierDisplayTimesAllowed; public static readonly NSString DisplayImmediately; public static readonly NSString DoNotDisplay; public static readonly NSString ResetDecoderBeforeDecoding; public static readonly NSString DrainAfterDecoding; public static readonly NSString PostNotificationWhenConsumed; public static readonly NSString ResumeOutput; public static readonly NSString TransitionID; public static readonly NSString TrimDurationAtStart; public static readonly NSString TrimDurationAtEnd; public static readonly NSString SpeedMultiplier; public static readonly NSString Reverse; public static readonly NSString FillDiscontinuitiesWithSilence; public static readonly NSString EmptyMedia; public static readonly NSString PermanentEmptyMedia; public static readonly NSString DisplayEmptyMediaImmediately; public static readonly NSString EndsPreviousSampleDuration; public static readonly NSString SampleReferenceURL; public static readonly NSString SampleReferenceByteOffset; public static readonly NSString GradualDecoderRefresh; static Selectors() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", 0); if (intPtr == IntPtr.Zero) { return; } try { NotSync = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_NotSync"); PartialSync = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_PartialSync"); HasRedundantCoding = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_HasRedundantCoding"); IsDependedOnByOthers = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_IsDependedOnByOthers"); DependsOnOthers = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_DependsOnOthers"); EarlierDisplayTimesAllowed = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_EarlierDisplayTimesAllowed"); DisplayImmediately = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_DisplayImmediately"); DoNotDisplay = Dlfcn.GetStringConstant(intPtr, "kCMSampleAttachmentKey_DoNotDisplay"); ResetDecoderBeforeDecoding = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding"); DrainAfterDecoding = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_DrainAfterDecoding"); PostNotificationWhenConsumed = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed"); ResumeOutput = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_ResumeOutput"); TransitionID = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_TransitionID"); TrimDurationAtStart = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_TrimDurationAtStart"); TrimDurationAtEnd = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_TrimDurationAtEnd"); SpeedMultiplier = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_SpeedMultiplier"); Reverse = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_Reverse"); FillDiscontinuitiesWithSilence = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence"); EmptyMedia = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_EmptyMedia"); PermanentEmptyMedia = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_PermanentEmptyMedia"); DisplayEmptyMediaImmediately = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately"); EndsPreviousSampleDuration = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_EndsPreviousSampleDuration"); SampleReferenceURL = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_SampleReferenceURL"); SampleReferenceByteOffset = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_SampleReferenceByteOffset"); GradualDecoderRefresh = Dlfcn.GetStringConstant(intPtr, "kCMSampleBufferAttachmentKey_GradualDecoderRefresh"); } finally { Dlfcn.dlclose(intPtr); } } } public bool? NotSync { get { return GetBoolValue(Selectors.NotSync); } set { SetBooleanValue(Selectors.NotSync, value); } } public bool? PartialSync { get { return GetBoolValue(Selectors.PartialSync); } set { SetBooleanValue(Selectors.PartialSync, value); } } public bool? RedundantCoding { get { return GetBoolValue(Selectors.HasRedundantCoding); } set { SetBooleanValue(Selectors.HasRedundantCoding, value); } } public bool? DependedOnByOthers { get { return GetBoolValue(Selectors.IsDependedOnByOthers); } set { SetBooleanValue(Selectors.IsDependedOnByOthers, value); } } public bool? DependsOnOthers { get { return GetBoolValue(Selectors.DependsOnOthers); } set { SetBooleanValue(Selectors.DependsOnOthers, value); } } public bool? EarlierDisplayTimesAllowed { get { return GetBoolValue(Selectors.EarlierDisplayTimesAllowed); } set { SetBooleanValue(Selectors.EarlierDisplayTimesAllowed, value); } } public bool? DisplayImmediately { get { return GetBoolValue(Selectors.DisplayImmediately); } set { SetBooleanValue(Selectors.DisplayImmediately, value); } } public bool? DoNotDisplay { get { return GetBoolValue(Selectors.DoNotDisplay); } set { SetBooleanValue(Selectors.DoNotDisplay, value); } } public bool? ResetDecoderBeforeDecoding { get { return GetBoolValue(Selectors.ResetDecoderBeforeDecoding); } set { SetBooleanValue(Selectors.ResetDecoderBeforeDecoding, value); } } public bool? DrainAfterDecoding { get { return GetBoolValue(Selectors.DrainAfterDecoding); } set { SetBooleanValue(Selectors.DrainAfterDecoding, value); } } public bool? Reverse { get { return GetBoolValue(Selectors.Reverse); } set { SetBooleanValue(Selectors.Reverse, value); } } public bool? FillDiscontinuitiesWithSilence { get { return GetBoolValue(Selectors.FillDiscontinuitiesWithSilence); } set { SetBooleanValue(Selectors.FillDiscontinuitiesWithSilence, value); } } public bool? EmptyMedia { get { return GetBoolValue(Selectors.EmptyMedia); } set { SetBooleanValue(Selectors.EmptyMedia, value); } } public bool? PermanentEmptyMedia { get { return GetBoolValue(Selectors.PermanentEmptyMedia); } set { SetBooleanValue(Selectors.PermanentEmptyMedia, value); } } public bool? DisplayEmptyMediaImmediately { get { return GetBoolValue(Selectors.DisplayEmptyMediaImmediately); } set { SetBooleanValue(Selectors.DisplayEmptyMediaImmediately, value); } } public bool? EndsPreviousSampleDuration { get { return GetBoolValue(Selectors.EndsPreviousSampleDuration); } set { SetBooleanValue(Selectors.EndsPreviousSampleDuration, value); } } internal CMSampleBufferAttachmentSettings(NSMutableDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSampleBufferError.cs ================================================ namespace CoreMedia; public enum CMSampleBufferError { None = 0, AllocationFailed = -12730, RequiredParameterMissing = -12731, AlreadyHasDataBuffer = -12732, BufferNotReady = -12733, SampleIndexOutOfRange = -12734, BufferHasNoSampleSizes = -12735, BufferHasNoSampleTimingInfo = -12736, ArrayTooSmall = -12737, InvalidEntryCount = -12738, CannotSubdivide = -12739, SampleTimingInfoInvalid = -12740, InvalidMediaTypeForOperation = -12741, InvalidSampleData = -12742, InvalidMediaFormat = -12743, Invalidated = -12744 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSampleTimingInfo.cs ================================================ namespace CoreMedia; public struct CMSampleTimingInfo { public CMTime Duration; public CMTime PresentationTimeStamp; public CMTime DecodeTimeStamp; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSubtitleFormatType.cs ================================================ namespace CoreMedia; public enum CMSubtitleFormatType : uint { Text3G = 1954034535u, WebVTT = 2004251764u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMSyncError.cs ================================================ namespace CoreMedia; public enum CMSyncError { None = 0, MissingRequiredParameter = -12752, InvalidParameter = -12753, AllocationFailed = -12754, RateMustBeNonZero = -12755 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTextMarkupAttributes.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(6, 0)] public class CMTextMarkupAttributes : DictionaryContainer { private static class Keys { public static readonly NSString ForegroundColorARGB; public static readonly NSString BackgroundColorARGB; public static readonly NSString BoldStyle; public static readonly NSString ItalicStyle; public static readonly NSString UnderlineStyle; public static readonly NSString FontFamilyName; public static readonly NSString RelativeFontSize; static Keys() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", 0); if (intPtr == IntPtr.Zero) { return; } try { ForegroundColorARGB = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_ForegroundColorARGB"); BackgroundColorARGB = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_BackgroundColorARGB"); BoldStyle = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_BoldStyle"); ItalicStyle = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_ItalicStyle"); UnderlineStyle = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_UnderlineStyle"); FontFamilyName = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_FontFamilyName"); RelativeFontSize = Dlfcn.GetStringConstant(intPtr, "kCMTextMarkupAttribute_RelativeFontSize"); } finally { Dlfcn.dlclose(intPtr); } } } public TextMarkupColor? ForegroundColor { get { NSNumber[] array = GetArray(Keys.ForegroundColorARGB); if (array == null) { return null; } return new TextMarkupColor(array[1].FloatValue, array[2].FloatValue, array[3].FloatValue, array[0].FloatValue); } set { if (value.HasValue) { TextMarkupColor value2 = value.Value; SetArrayValue(Keys.ForegroundColorARGB, new NSNumber[4] { NSNumber.FromFloat(value2.Alpha), NSNumber.FromFloat(value2.Red), NSNumber.FromFloat(value2.Green), NSNumber.FromFloat(value2.Blue) }); } else { RemoveValue(Keys.ForegroundColorARGB); } } } public TextMarkupColor? BackgroundColor { get { NSNumber[] array = GetArray(Keys.BackgroundColorARGB); if (array == null) { return null; } return new TextMarkupColor(array[1].FloatValue, array[2].FloatValue, array[3].FloatValue, array[0].FloatValue); } set { if (value.HasValue) { TextMarkupColor value2 = value.Value; SetArrayValue(Keys.BackgroundColorARGB, new NSNumber[4] { NSNumber.FromFloat(value2.Alpha), NSNumber.FromFloat(value2.Red), NSNumber.FromFloat(value2.Green), NSNumber.FromFloat(value2.Blue) }); } else { RemoveValue(Keys.BackgroundColorARGB); } } } public bool? Bold { get { return GetBoolValue(Keys.BoldStyle); } set { SetBooleanValue(Keys.BoldStyle, value); } } public bool? Italic { get { return GetBoolValue(Keys.ItalicStyle); } set { SetBooleanValue(Keys.ItalicStyle, value); } } public bool? Underline { get { return GetBoolValue(Keys.UnderlineStyle); } set { SetBooleanValue(Keys.UnderlineStyle, value); } } public string FontFamilyName { get { return GetStringValue(Keys.FontFamilyName); } set { SetStringValue(Keys.FontFamilyName, value); } } public int? RelativeFontSize { get { return GetInt32Value(Keys.RelativeFontSize); } set { if (value < 0) { throw new ArgumentOutOfRangeException("value"); } SetNumberValue(Keys.RelativeFontSize, value); } } public CMTextMarkupAttributes() { } public CMTextMarkupAttributes(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTime.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreMedia; public struct CMTime { [Flags] public enum Flags { Valid = 1, HasBeenRounded = 2, PositiveInfinity = 4, NegativeInfinity = 8, Indefinite = 0x10, ImpliedValueFlagsMask = 0x1C } public static CMTime Invalid; private const Flags kIndefinite = Flags.Valid | Flags.Indefinite; public static CMTime Indefinite; private const Flags kPositive = Flags.Valid | Flags.PositiveInfinity; public static CMTime PositiveInfinity; private const Flags kNegative = Flags.Valid | Flags.NegativeInfinity; public static CMTime NegativeInfinity; public static CMTime Zero; public const int MaxTimeScale = int.MaxValue; public long Value; public int TimeScale; public Flags TimeFlags; public long TimeEpoch; public static readonly NSString ValueKey; public static readonly NSString ScaleKey; public static readonly NSString EpochKey; public static readonly NSString FlagsKey; public bool IsInvalid => (TimeFlags & Flags.Valid) == 0; public bool IsIndefinite => (TimeFlags & (Flags.Valid | Flags.Indefinite)) == (Flags.Valid | Flags.Indefinite); public bool IsPositiveInfinity => (TimeFlags & (Flags.Valid | Flags.PositiveInfinity)) == (Flags.Valid | Flags.PositiveInfinity); public bool IsNegativeInfinity => (TimeFlags & (Flags.Valid | Flags.NegativeInfinity)) == (Flags.Valid | Flags.NegativeInfinity); public CMTime AbsoluteValue => CMTimeAbsoluteValue(this); public double Seconds => CMTimeGetSeconds(this); public IntPtr AsDictionary => CMTimeCopyAsDictionary(this, IntPtr.Zero); public string Description => NSString.FromHandle(CMTimeCopyDescription(IntPtr.Zero, this)).ToString(); private CMTime(Flags f) { Value = 0L; TimeScale = 0; TimeEpoch = 0L; TimeFlags = f; } private CMTime(Flags f, int timescale) { Value = 0L; TimeScale = timescale; TimeEpoch = 0L; TimeFlags = f; } public CMTime(long value, int timescale) { Value = value; TimeScale = timescale; TimeFlags = Flags.Valid; TimeEpoch = 0L; } public CMTime(long value, int timescale, long epoch) { Value = value; TimeScale = timescale; TimeFlags = Flags.Valid; TimeEpoch = epoch; } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeAbsoluteValue(CMTime time); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern int CMTimeCompare(CMTime time1, CMTime time2); public static int Compare(CMTime time1, CMTime time2) { return CMTimeCompare(time1, time2); } public static bool operator ==(CMTime time1, CMTime time2) { return Compare(time1, time2) == 0; } public static bool operator !=(CMTime time1, CMTime time2) { return !(time1 == time2); } public override bool Equals(object obj) { if (!(obj is CMTime)) { return false; } return (CMTime)obj == this; } public override int GetHashCode() { return Value.GetHashCode() ^ TimeScale.GetHashCode() ^ TimeFlags.GetHashCode() ^ TimeEpoch.GetHashCode(); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeAdd(CMTime addend1, CMTime addend2); public static CMTime Add(CMTime time1, CMTime time2) { return CMTimeAdd(time1, time2); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeSubtract(CMTime minuend, CMTime subtraend); public static CMTime Subtract(CMTime minuend, CMTime subtraend) { return CMTimeSubtract(minuend, subtraend); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMultiply(CMTime time, int multiplier); public static CMTime Multiply(CMTime time, int multiplier) { return CMTimeMultiply(time, multiplier); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMultiplyByFloat64(CMTime time, double multiplier); public static CMTime Multiply(CMTime time, double multiplier) { return CMTimeMultiplyByFloat64(time, multiplier); } public static CMTime operator +(CMTime time1, CMTime time2) { return Add(time1, time2); } public static CMTime operator -(CMTime minuend, CMTime subtraend) { return Subtract(minuend, subtraend); } public static CMTime operator *(CMTime time, int multiplier) { return Multiply(time, multiplier); } public static CMTime operator *(CMTime time, double multiplier) { return Multiply(time, multiplier); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeConvertScale(CMTime time, int newScale, CMTimeRoundingMethod method); public CMTime ConvertScale(int newScale, CMTimeRoundingMethod method) { return CMTimeConvertScale(this, newScale, method); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern double CMTimeGetSeconds(CMTime time); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMakeWithSeconds(double seconds, int preferredTimeScale); public static CMTime FromSeconds(double seconds, int preferredTimeScale) { return CMTimeMakeWithSeconds(seconds, preferredTimeScale); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMaximum(CMTime time1, CMTime time2); public static CMTime GetMaximum(CMTime time1, CMTime time2) { return CMTimeMaximum(time1, time2); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMinimum(CMTime time1, CMTime time2); public static CMTime GetMinimum(CMTime time1, CMTime time2) { return CMTimeMinimum(time1, time2); } static CMTime() { Invalid = new CMTime((Flags)0); Indefinite = new CMTime(Flags.Valid | Flags.Indefinite); PositiveInfinity = new CMTime(Flags.Valid | Flags.PositiveInfinity); NegativeInfinity = new CMTime(Flags.Valid | Flags.NegativeInfinity); Zero = new CMTime(Flags.Valid, 1); IntPtr intPtr = Dlfcn.dlopen("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia", 0); if (intPtr != IntPtr.Zero) { try { ValueKey = Dlfcn.GetStringConstant(intPtr, "kCMTimeValueKey"); ScaleKey = Dlfcn.GetStringConstant(intPtr, "kCMTimeScaleKey"); EpochKey = Dlfcn.GetStringConstant(intPtr, "kCMTimeEpochKey"); FlagsKey = Dlfcn.GetStringConstant(intPtr, "kCMTimeFlagsKey"); } finally { Dlfcn.dlclose(intPtr); } } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimeCopyAsDictionary(CMTime time, IntPtr allocator); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimeCopyDescription(IntPtr allocator, CMTime time); public override string ToString() { return Description; } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimeMakeFromDictionary(IntPtr dict); public static CMTime FromDictionary(IntPtr dict) { return CMTimeMakeFromDictionary(dict); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimeCodeFormatType.cs ================================================ namespace CoreMedia; public enum CMTimeCodeFormatType : uint { TimeCode32 = 1953325924u, TimeCode64 = 1952658996u, Counter32 = 1668166450u, Counter64 = 1668167220u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimeMapping.cs ================================================ namespace CoreMedia; public struct CMTimeMapping { public CMTimeRange Source; public CMTimeRange Target; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimeRange.cs ================================================ namespace CoreMedia; public struct CMTimeRange { public CMTime Start; public CMTime Duration; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimeRoundingMethod.cs ================================================ namespace CoreMedia; public enum CMTimeRoundingMethod { RoundHalfAwayFromZero = 1, RoundTowardZero = 2, RoundAwayFromZero = 3, QuickTime = 4, RoundTowardPositiveInfinity = 5, RoundTowardNegativeInfinity = 6, Default = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimeScale.cs ================================================ using System; namespace CoreMedia; public struct CMTimeScale { public static readonly CMTimeScale MaxValue = new CMTimeScale(int.MaxValue); public int Value; public CMTimeScale(int value) { if (value < 0 || value > int.MaxValue) { throw new ArgumentOutOfRangeException("value"); } Value = value; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimebase.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreMedia; [Since(6, 0)] public class CMTimebase : CMClockOrTimebase { public const double VeryLongTimeInterval = 8073216000.0; public double EffectiveRate => CMTimebaseGetEffectiveRate(base.Handle); public double Rate { get { return CMTimebaseGetRate(base.Handle); } set { CMTimebaseError cMTimebaseError = CMTimebaseSetRate(base.Handle, value); if (cMTimebaseError != 0) { throw new ArgumentException(cMTimebaseError.ToString()); } } } public new CMTime Time { get { return CMTimebaseGetTime(base.Handle); } set { CMTimebaseError cMTimebaseError = CMTimebaseSetTime(base.Handle, value); if (cMTimebaseError != 0) { throw new ArgumentException(cMTimebaseError.ToString()); } } } public CMTimebase(IntPtr handle) : base(handle) { } private CMTimebase(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseCreateWithMasterClock(IntPtr allocator, IntPtr masterClock, out IntPtr timebaseOut); public CMTimebase(CMClock masterClock) { if (masterClock == null) { throw new ArgumentNullException("masterClock"); } CMTimebaseError cMTimebaseError = CMTimebaseCreateWithMasterClock(IntPtr.Zero, masterClock.Handle, out handle); if (cMTimebaseError != 0) { throw new ArgumentException(cMTimebaseError.ToString()); } CFObject.CFRetain(base.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseCreateWithMasterTimebase(IntPtr allocator, IntPtr masterTimebase, out IntPtr timebaseOut); public CMTimebase(CMTimebase masterTimebase) { if (masterTimebase == null) { throw new ArgumentNullException("masterTimebase"); } CMTimebaseError cMTimebaseError = CMTimebaseCreateWithMasterTimebase(IntPtr.Zero, masterTimebase.Handle, out handle); if (cMTimebaseError != 0) { throw new ArgumentException(cMTimebaseError.ToString()); } CFObject.CFRetain(base.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern double CMTimebaseGetEffectiveRate(IntPtr timebase); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern double CMTimebaseGetRate(IntPtr timebase); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetRate(IntPtr timebase, double rate); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimebaseGetTime(IntPtr timebase); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetTime(IntPtr timebase, CMTime time); [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimebaseGetMasterTimebase(IntPtr timebase); public CMTimebase GetMasterTimebase() { IntPtr intPtr = CMTimebaseGetMasterTimebase(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CMTimebase(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimebaseGetMasterClock(IntPtr timebase); public CMClock GetMasterClock() { IntPtr intPtr = CMTimebaseGetMasterClock(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CMClock(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimebaseGetMaster(IntPtr timebase); public CMClockOrTimebase GetMaster() { IntPtr intPtr = CMTimebaseGetMaster(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CMClockOrTimebase(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern IntPtr CMTimebaseGetUltimateMasterClock(IntPtr timebase); public CMClock GetUltimateMasterClock() { IntPtr intPtr = CMTimebaseGetUltimateMasterClock(base.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CMClock(intPtr, owns: false); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTime CMTimebaseGetTimeWithTimeScale(IntPtr timebase, CMTimeScale timescale, CMTimeRoundingMethod method); public CMTime GetTime(CMTimeScale timeScale, CMTimeRoundingMethod roundingMethod) { return CMTimebaseGetTimeWithTimeScale(base.Handle, timeScale, roundingMethod); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetAnchorTime(IntPtr timebase, CMTime timebaseTime, CMTime immediateMasterTime); public CMTimebaseError SetAnchorTime(CMTime timebaseTime, CMTime immediateMasterTime) { return CMTimebaseSetAnchorTime(base.Handle, timebaseTime, immediateMasterTime); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseGetTimeAndRate(IntPtr timebase, out CMTime time, out double rate); public CMTimebaseError GetTimeAndRate(out CMTime time, out double rate) { return CMTimebaseGetTimeAndRate(base.Handle, out time, out rate); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetRateAndAnchorTime(IntPtr timebase, double rate, CMTime timebaseTime, CMTime immediateMasterTime); public CMTimebaseError SetRateAndAnchorTime(double rate, CMTime timebaseTime, CMTime immediateMasterTime) { return CMTimebaseSetRateAndAnchorTime(base.Handle, rate, timebaseTime, immediateMasterTime); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseNotificationBarrier(IntPtr timebase); public CMTimebaseError NotificationBarrier() { return CMTimebaseNotificationBarrier(handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseAddTimer(IntPtr timebase, IntPtr timer, IntPtr runloop); public CMTimebaseError AddTimer(NSTimer timer, NSRunLoop runloop) { if (timer == null) { throw new ArgumentNullException("timer"); } if (runloop == null) { throw new ArgumentNullException("runloop"); } return CMTimebaseAddTimer(base.Handle, timer.Handle, runloop.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseRemoveTimer(IntPtr timebase, IntPtr timer); public CMTimebaseError RemoveTimer(NSTimer timer) { if (timer == null) { throw new ArgumentNullException("timer"); } return CMTimebaseRemoveTimer(base.Handle, timer.Handle); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetTimerNextFireTime(IntPtr timebase, IntPtr timer, CMTime fireTime, uint flags); public CMTimebaseError SetTimerNextFireTime(NSTimer timer, CMTime fireTime) { if (timer == null) { throw new ArgumentNullException("timer"); } return CMTimebaseSetTimerNextFireTime(base.Handle, timer.Handle, fireTime, 0u); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMTimebaseError CMTimebaseSetTimerToFireImmediately(IntPtr timebase, IntPtr timer); public CMTimebaseError SetTimerToFireImmediately(NSTimer timer) { if (timer == null) { throw new ArgumentNullException("timer"); } return CMTimebaseSetTimerToFireImmediately(base.Handle, timer.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMTimebaseError.cs ================================================ namespace CoreMedia; public enum CMTimebaseError { None = 0, MissingRequiredParameter = -12748, InvalidParameter = -12749, AllocationFailed = -12750, TimerIntervalTooShort = -12751, ReadOnly = -12757 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMVideoCodecType.cs ================================================ namespace CoreMedia; public enum CMVideoCodecType { YUV422YpCbCr8 = 846624121, Animation = 1919706400, Cinepak = 1668704612, JPEG = 1785750887, JPEG_OpenDML = 1684890161, SorensonVideo = 1398165809, SorensonVideo3 = 1398165811, H263 = 1748121139, H264 = 1635148593, Mpeg4Video = 1836070006, Mpeg2Video = 1836069494, Mpeg1Video = 1836069238, DvcNtsc = 1685480224, DvcPal = 1685480304, DvcProPal = 1685483632, DvcPro50NTSC = 1685468526, DvcPro50PAL = 1685468528, DvcProHD720p60 = 1685481584, DvcProHD720p50 = 1685481585, DvcProHD1080i60 = 1685481526, DvcProHD1080i50 = 1685481525, DvcProHD1080p30 = 1685481523, DvcProHD1080p25 = 1685481522, AppleProRes4444 = 1634743400, AppleProRes422HQ = 1634755432, AppleProRes422 = 1634755438, AppleProRes422LT = 1634755443, AppleProRes422Proxy = 1634755439 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMVideoDimensions.cs ================================================ namespace CoreMedia; public struct CMVideoDimensions { public int Width; public int Height; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/CMVideoFormatDescription.cs ================================================ using System; using System.Runtime.InteropServices; using CoreGraphics; using CoreVideo; using ObjCRuntime; namespace CoreMedia; [Since(4, 0)] public class CMVideoFormatDescription : CMFormatDescription { public CMVideoDimensions Dimensions => CMFormatDescription.CMVideoFormatDescriptionGetDimensions(handle); internal CMVideoFormatDescription(IntPtr handle) : base(handle) { } internal CMVideoFormatDescription(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMFormatDescriptionError CMVideoFormatDescriptionCreate(IntPtr allocator, CMVideoCodecType codecType, int width, int height, IntPtr extensions, out IntPtr outDesc); public CMVideoFormatDescription(CMVideoCodecType codecType, CMVideoDimensions size) : base(IntPtr.Zero) { CMFormatDescriptionError cMFormatDescriptionError = CMVideoFormatDescriptionCreate(IntPtr.Zero, codecType, size.Width, size.Height, IntPtr.Zero, out handle); if (cMFormatDescriptionError != 0) { throw new ArgumentException(cMFormatDescriptionError.ToString()); } } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private static extern CMFormatDescriptionError CMVideoFormatDescriptionCreateForImageBuffer(IntPtr allocator, IntPtr imageBuffer, out IntPtr outDesc); public static CMVideoFormatDescription CreateForImageBuffer(CVImageBuffer imageBuffer, out CMFormatDescriptionError error) { if (imageBuffer == null) { throw new ArgumentNullException("imageBuffer"); } error = CMVideoFormatDescriptionCreateForImageBuffer(IntPtr.Zero, imageBuffer.handle, out var outDesc); if (error != 0) { return null; } return new CMVideoFormatDescription(outDesc, owns: true); } [DllImport("/System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia")] private new static extern CGRect CMVideoFormatDescriptionGetCleanAperture(IntPtr handle, bool originIsAtTopLeft); public CGRect GetCleanAperture(bool originIsAtTopLeft) { return CMVideoFormatDescriptionGetCleanAperture(handle, originIsAtTopLeft); } public CGSize GetPresentationDimensions(bool usePixelAspectRatio, bool useCleanAperture) { return CMFormatDescription.CMVideoFormatDescriptionGetPresentationDimensions(handle, usePixelAspectRatio, useCleanAperture); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMedia/TextMarkupColor.cs ================================================ using System; namespace CoreMedia; public struct TextMarkupColor { public float Red { get; private set; } public float Green { get; private set; } public float Blue { get; private set; } public float Alpha { get; private set; } public TextMarkupColor(float red, float green, float blue, float alpha) { this = default(TextMarkupColor); if (red < 0f || (double)red > 1.0) { throw new ArgumentOutOfRangeException("red"); } if (green < 0f || (double)green > 1.0) { throw new ArgumentOutOfRangeException("green"); } if (blue < 0f || (double)blue > 1.0) { throw new ArgumentOutOfRangeException("blue"); } if (alpha < 0f || (double)alpha > 1.0) { throw new ArgumentOutOfRangeException("alpha"); } Red = red; Green = green; Blue = blue; Alpha = alpha; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/IOErrorEventArgs.cs ================================================ using System; namespace CoreMidi; public class IOErrorEventArgs : EventArgs { public MidiDevice Device { get; set; } public int ErrorCode { get; set; } public IOErrorEventArgs(MidiDevice device, int errorCode) { Device = device; ErrorCode = errorCode; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/Midi.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreMidi; public static class Midi { public static int DestinationCount => MIDIGetNumberOfDestinations(); public static int SourceCount => MIDIGetNumberOfSources(); public static int ExternalDeviceCount => MIDIGetNumberOfExternalDevices(); public static int DeviceCount => MIDIGetNumberOfDevices(); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern void MIDIRestart(); [DllImport("/usr/lib/libSystem.dylib")] internal static extern void memcpy(IntPtr target, IntPtr source, int n); public static void Restart() { MIDIRestart(); } internal static IntPtr EncodePackets(MidiPacket[] packets) { int num = 4; for (int num2 = packets.Length; num2 > 0; num2--) { int length = packets[num2 - 1].Length; length = (length + 3) & -4; num += 12 + length; } IntPtr intPtr = Marshal.AllocHGlobal(num); Marshal.WriteInt32(intPtr, 0, packets.Length); int num3 = 4; for (int i = 0; i < packets.Length; i++) { Marshal.WriteInt64(intPtr, num3, packets[i].TimeStamp); num3 += 8; Marshal.WriteInt16(intPtr, num3, (short)packets[i].Length); num3 += 2; memcpy((IntPtr)((long)intPtr + num3), packets[i].Bytes, packets[i].Length); num3 += (packets[i].Length + 3) & -4; } return intPtr; } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIGetNumberOfDestinations(); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIGetNumberOfSources(); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIGetNumberOfExternalDevices(); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIGetNumberOfDevices(); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIGetExternalDevice(int item); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIGetDevice(int item); public static MidiDevice GetDevice(int deviceIndex) { IntPtr intPtr = MIDIGetDevice(deviceIndex); if (intPtr == IntPtr.Zero) { return null; } return new MidiDevice(intPtr); } public static MidiDevice GetExternalDevice(int deviceIndex) { IntPtr intPtr = MIDIGetExternalDevice(deviceIndex); if (intPtr == IntPtr.Zero) { return null; } return new MidiDevice(intPtr); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiClient.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreMidi; public class MidiClient : MidiObject { private struct MidiObjectAddRemoveNotification { public MidiNotificationMessageId id; public int MessageSize; public IntPtr Parent; public MidiObjectType ParentType; public IntPtr Child; public MidiObjectType ChildType; } private struct MidiObjectPropertyChangeNotification { public MidiNotificationMessageId id; public int MessageSize; public IntPtr ObjectHandle; public MidiObjectType ObjectType; public IntPtr PropertyName; } private struct MidiIOErrorNotification { public MidiNotificationMessageId id; public int MessageSize; public IntPtr DeviceRef; public int ErrorCode; } private GCHandle gch; public string Name { get; private set; } public event EventHandler SetupChanged; public event EventHandler ObjectAdded; public event EventHandler ObjectRemoved; public event EventHandler PropertyChanged; public event EventHandler ThruConnectionsChanged; public event EventHandler SerialPortOwnerChanged; public event EventHandler IOError; [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIClientCreate(IntPtr str, MidiNotifyProc callback, IntPtr context, out IntPtr handle); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIClientDispose(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDISourceCreate(IntPtr handle, IntPtr name, out IntPtr endpoint); internal override void DisposeHandle() { if (handle != IntPtr.Zero) { if (owns) { MIDIClientDispose(handle); } handle = IntPtr.Zero; gch.Free(); } } public MidiClient(string name) { using NSString nSString = new NSString(name); gch = GCHandle.Alloc(this); int num = MIDIClientCreate(nSString.Handle, ClientCallback, GCHandle.ToIntPtr(gch), out handle); if (num != 0) { gch.Free(); handle = IntPtr.Zero; throw new MidiException((MidiError)num); } Name = name; } public override string ToString() { return Name; } public MidiEndpoint CreateVirtualSource(string name) { using NSString nSString = new NSString(name); if (MIDISourceCreate(handle, nSString.Handle, out var endpoint) != 0) { return null; } return new MidiEndpoint(endpoint, owns: true); } public MidiPort CreateInputPort(string name) { return new MidiPort(this, name, input: true); } public MidiPort CreateOutputPort(string name) { return new MidiPort(this, name, input: false); } private static void ClientCallback(IntPtr message, IntPtr context) { MidiClient midiClient = (MidiClient)GCHandle.FromIntPtr(context).Target; switch ((MidiNotificationMessageId)Marshal.ReadInt32(message)) { case MidiNotificationMessageId.SetupChanged: midiClient.SetupChanged?.Invoke(midiClient, EventArgs.Empty); break; case MidiNotificationMessageId.ObjectAdded: { EventHandler objectAdded = midiClient.ObjectAdded; if (objectAdded != null) { MidiObjectAddRemoveNotification midiObjectAddRemoveNotification = (MidiObjectAddRemoveNotification)Marshal.PtrToStructure(message, typeof(MidiObjectAddRemoveNotification)); objectAdded(midiClient, new ObjectAddedOrRemovedEventArgs(MidiObject.MidiObjectFromType(midiObjectAddRemoveNotification.ParentType, midiObjectAddRemoveNotification.Parent), MidiObject.MidiObjectFromType(midiObjectAddRemoveNotification.ChildType, midiObjectAddRemoveNotification.Child))); } break; } case MidiNotificationMessageId.ObjectRemoved: { EventHandler objectRemoved = midiClient.ObjectRemoved; if (objectRemoved != null) { MidiObjectAddRemoveNotification midiObjectAddRemoveNotification2 = (MidiObjectAddRemoveNotification)Marshal.PtrToStructure(message, typeof(MidiObjectAddRemoveNotification)); objectRemoved(midiClient, new ObjectAddedOrRemovedEventArgs(MidiObject.MidiObjectFromType(midiObjectAddRemoveNotification2.ParentType, midiObjectAddRemoveNotification2.Parent), MidiObject.MidiObjectFromType(midiObjectAddRemoveNotification2.ChildType, midiObjectAddRemoveNotification2.Child))); } break; } case MidiNotificationMessageId.PropertyChanged: { EventHandler propertyChanged = midiClient.PropertyChanged; if (propertyChanged != null) { MidiObjectPropertyChangeNotification midiObjectPropertyChangeNotification = (MidiObjectPropertyChangeNotification)Marshal.PtrToStructure(message, typeof(MidiObjectPropertyChangeNotification)); propertyChanged(midiClient, new ObjectPropertyChangedEventArgs(MidiObject.MidiObjectFromType(midiObjectPropertyChangeNotification.ObjectType, midiObjectPropertyChangeNotification.ObjectHandle), NSString.FromHandle(midiObjectPropertyChangeNotification.PropertyName))); } break; } case MidiNotificationMessageId.ThruConnectionsChanged: midiClient.ThruConnectionsChanged?.Invoke(midiClient, EventArgs.Empty); break; case MidiNotificationMessageId.SerialPortOwnerChanged: midiClient.SerialPortOwnerChanged?.Invoke(midiClient, EventArgs.Empty); break; case MidiNotificationMessageId.IOError: { EventHandler iOError = midiClient.IOError; if (iOError != null) { MidiIOErrorNotification midiIOErrorNotification = (MidiIOErrorNotification)Marshal.PtrToStructure(message, typeof(MidiIOErrorNotification)); iOError(midiClient, new IOErrorEventArgs(new MidiDevice(midiIOErrorNotification.DeviceRef), midiIOErrorNotification.ErrorCode)); } break; } } } public override void Dispose(bool disposing) { this.SetupChanged = null; this.ObjectAdded = null; this.ObjectRemoved = null; this.PropertyChanged = null; this.ThruConnectionsChanged = null; this.SerialPortOwnerChanged = null; this.IOError = null; base.Dispose(disposing); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiDevice.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreMidi; public class MidiDevice : MidiObject { public int EntityCount => MIDIDeviceGetNumberOfEntities(handle); public string Image { get { return GetString(MidiObject.kMIDIPropertyImage); } set { SetString(MidiObject.kMIDIPropertyImage, value); } } public string DriverDeviceEditorApp { get { return GetString(MidiObject.kMIDIPropertyDriverDeviceEditorApp); } set { SetString(MidiObject.kMIDIPropertyDriverDeviceEditorApp, value); } } public int SingleRealtimeEntity { get { return GetInt(MidiObject.kMIDIPropertySingleRealtimeEntity); } set { SetInt(MidiObject.kMIDIPropertySingleRealtimeEntity, value); } } public int UniqueID { get { return GetInt(MidiObject.kMIDIPropertyUniqueID); } set { SetInt(MidiObject.kMIDIPropertyUniqueID, value); } } public int AdvanceScheduleTimeMuSec { get { return GetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec); } set { SetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec, value); } } public bool CanRoute { get { return GetInt(MidiObject.kMIDIPropertyCanRoute) != 0; } set { SetInt(MidiObject.kMIDIPropertyCanRoute, value ? 1 : 0); } } public int ConnectionUniqueIDInt { get { return GetInt(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetInt(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public NSData ConnectionUniqueIDData { get { return GetData(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetData(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public int DeviceID { get { return GetInt(MidiObject.kMIDIPropertyDeviceID); } set { SetInt(MidiObject.kMIDIPropertyDeviceID, value); } } public string DisplayName { get { return GetString(MidiObject.kMIDIPropertyDisplayName); } set { SetString(MidiObject.kMIDIPropertyDisplayName, value); } } public string DriverOwner { get { return GetString(MidiObject.kMIDIPropertyDriverOwner); } set { SetString(MidiObject.kMIDIPropertyDriverOwner, value); } } public int DriverVersion { get { return GetInt(MidiObject.kMIDIPropertyDriverVersion); } set { SetInt(MidiObject.kMIDIPropertyDriverVersion, value); } } public bool IsDrumMachine => GetInt(MidiObject.kMIDIPropertyIsDrumMachine) != 0; public bool IsEffectUnit => GetInt(MidiObject.kMIDIPropertyIsEffectUnit) != 0; public bool IsEmbeddedEntity => GetInt(MidiObject.kMIDIPropertyIsEmbeddedEntity) != 0; public bool IsMixer => GetInt(MidiObject.kMIDIPropertyIsMixer) != 0; public bool IsSampler => GetInt(MidiObject.kMIDIPropertyIsSampler) != 0; public string Manufacturer { get { return GetString(MidiObject.kMIDIPropertyManufacturer); } set { SetString(MidiObject.kMIDIPropertyManufacturer, value); } } public int MaxReceiveChannels => GetInt(MidiObject.kMIDIPropertyMaxReceiveChannels); public int MaxSysExSpeed { get { try { return GetInt(MidiObject.kMIDIPropertyMaxSysExSpeed); } catch { return 3125; } } set { SetInt(MidiObject.kMIDIPropertyMaxSysExSpeed, value); } } public int MaxTransmitChannels { get { return GetInt(MidiObject.kMIDIPropertyMaxTransmitChannels); } set { SetInt(MidiObject.kMIDIPropertyMaxTransmitChannels, value); } } public string Model { get { return GetString(MidiObject.kMIDIPropertyModel); } set { SetString(MidiObject.kMIDIPropertyModel, value); } } public string Name { get { return GetString(MidiObject.kMIDIPropertyName); } set { SetString(MidiObject.kMIDIPropertyName, value); } } public NSDictionary NameConfiguration { get { return GetDictionary(MidiObject.kMIDIPropertyNameConfiguration); } set { SetDictionary(MidiObject.kMIDIPropertyNameConfiguration, value); } } public bool Offline { get { return GetInt(MidiObject.kMIDIPropertyOffline) != 0; } set { SetInt(MidiObject.kMIDIPropertyOffline, value ? 1 : 0); } } public bool PanDisruptsStereo { get { return GetInt(MidiObject.kMIDIPropertyPanDisruptsStereo) != 0; } set { SetInt(MidiObject.kMIDIPropertyPanDisruptsStereo, value ? 1 : 0); } } public bool Private { get { return GetInt(MidiObject.kMIDIPropertyPrivate) != 0; } set { SetInt(MidiObject.kMIDIPropertyPrivate, value ? 1 : 0); } } public bool ReceivesBankSelectLSB { get { return GetInt(MidiObject.kMIDIPropertyReceivesBankSelectLSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesBankSelectLSB, value ? 1 : 0); } } public bool ReceivesBankSelectMSB { get { return GetInt(MidiObject.kMIDIPropertyReceivesBankSelectMSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesBankSelectMSB, value ? 1 : 0); } } public bool ReceivesClock { get { return GetInt(MidiObject.kMIDIPropertyReceivesClock) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesClock, value ? 1 : 0); } } public bool ReceivesMTC { get { return GetInt(MidiObject.kMIDIPropertyReceivesMTC) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesMTC, value ? 1 : 0); } } public bool ReceivesNotes { get { return GetInt(MidiObject.kMIDIPropertyReceivesNotes) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesNotes, value ? 1 : 0); } } public bool ReceivesProgramChanges { get { return GetInt(MidiObject.kMIDIPropertyReceivesProgramChanges) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesProgramChanges, value ? 1 : 0); } } public bool SupportsGeneralMidi { get { return GetInt(MidiObject.kMIDIPropertySupportsGeneralMIDI) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsGeneralMIDI, value ? 1 : 0); } } public bool SupportsMMC { get { return GetInt(MidiObject.kMIDIPropertySupportsMMC) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsMMC, value ? 1 : 0); } } public bool SupportsShowControl { get { return GetInt(MidiObject.kMIDIPropertySupportsShowControl) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsShowControl, value ? 1 : 0); } } public bool TransmitsBankSelectLSB { get { return GetInt(MidiObject.kMIDIPropertyTransmitsBankSelectLSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsBankSelectLSB, value ? 1 : 0); } } public bool TransmitsBankSelectMSB { get { return GetInt(MidiObject.kMIDIPropertyTransmitsBankSelectMSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsBankSelectMSB, value ? 1 : 0); } } public bool TransmitsClock { get { return GetInt(MidiObject.kMIDIPropertyTransmitsClock) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsClock, value ? 1 : 0); } } public bool TransmitsMTC { get { return GetInt(MidiObject.kMIDIPropertyTransmitsMTC) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsMTC, value ? 1 : 0); } } public bool TransmitsNotes { get { return GetInt(MidiObject.kMIDIPropertyTransmitsNotes) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsNotes, value ? 1 : 0); } } public bool TransmitsProgramChanges { get { return GetInt(MidiObject.kMIDIPropertyTransmitsProgramChanges) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsProgramChanges, value ? 1 : 0); } } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIDeviceGetNumberOfEntities(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIDeviceGetEntity(IntPtr handle, int item); public MidiEntity GetEntity(int entityIndex) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("handle"); } IntPtr intPtr = MIDIDeviceGetEntity(handle, entityIndex); if (intPtr == IntPtr.Zero) { return null; } return new MidiEntity(intPtr); } internal MidiDevice(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiEndpoint.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreMidi; public class MidiEndpoint : MidiObject { private GCHandle gch; public string EndpointName { get; private set; } public MidiEntity Entity { get { if (MIDIEndpointGetEntity(handle, out var entity) == 0) { return new MidiEntity(entity); } return null; } } public bool IsNetworkSession { get { using NSDictionary nSDictionary = GetDictionaryProperties(deep: true); if (nSDictionary == null) { return false; } using NSString key = new NSString("apple.midirtp.session"); return nSDictionary.ContainsKey(key); } } public int AdvanceScheduleTimeMuSec { get { return GetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec); } set { SetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec, value); } } public int ConnectionUniqueIDInt { get { return GetInt(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetInt(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public NSData ConnectionUniqueIDData { get { return GetData(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetData(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public string DisplayName { get { return GetString(MidiObject.kMIDIPropertyDisplayName); } set { SetString(MidiObject.kMIDIPropertyDisplayName, value); } } public string DriverOwner { get { return GetString(MidiObject.kMIDIPropertyDriverOwner); } set { SetString(MidiObject.kMIDIPropertyDriverOwner, value); } } public int DriverVersion { get { return GetInt(MidiObject.kMIDIPropertyDriverVersion); } set { SetInt(MidiObject.kMIDIPropertyDriverVersion, value); } } public int IsBroadcast { get { return GetInt(MidiObject.kMIDIPropertyIsBroadcast); } set { SetInt(MidiObject.kMIDIPropertyIsBroadcast, value); } } public string Manufacturer { get { return GetString(MidiObject.kMIDIPropertyManufacturer); } set { SetString(MidiObject.kMIDIPropertyManufacturer, value); } } public int MaxSysExSpeed { get { try { return GetInt(MidiObject.kMIDIPropertyMaxSysExSpeed); } catch { return 3125; } } set { SetInt(MidiObject.kMIDIPropertyMaxSysExSpeed, value); } } public string Name { get { return GetString(MidiObject.kMIDIPropertyName); } set { SetString(MidiObject.kMIDIPropertyName, value); } } public NSDictionary NameConfiguration { get { return GetDictionary(MidiObject.kMIDIPropertyNameConfiguration); } set { SetDictionary(MidiObject.kMIDIPropertyNameConfiguration, value); } } public bool Offline { get { return GetInt(MidiObject.kMIDIPropertyOffline) != 0; } set { SetInt(MidiObject.kMIDIPropertyOffline, value ? 1 : 0); } } public bool Private { get { return GetInt(MidiObject.kMIDIPropertyPrivate) != 0; } set { SetInt(MidiObject.kMIDIPropertyPrivate, value ? 1 : 0); } } public int ReceiveChannels { get { return GetInt(MidiObject.kMIDIPropertyReceiveChannels); } set { SetInt(MidiObject.kMIDIPropertyReceiveChannels, value); } } public int TransmitChannels { get { return GetInt(MidiObject.kMIDIPropertyTransmitChannels); } set { SetInt(MidiObject.kMIDIPropertyTransmitChannels, value); } } public event EventHandler MessageReceived; [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIEndpointDispose(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIDestinationCreate(IntPtr client, IntPtr name, MidiReadProc readProc, IntPtr context, out IntPtr midiEndpoint); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIFlushOutput(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern MidiError MIDIReceived(IntPtr handle, IntPtr packetList); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIGetSource(int sourceIndex); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIGetDestination(int destinationIndex); internal override void DisposeHandle() { if (handle != IntPtr.Zero) { if (owns) { MIDIEndpointDispose(handle); } handle = IntPtr.Zero; gch.Free(); } } internal MidiEndpoint(IntPtr handle) : base(handle, owns: false) { EndpointName = "Endpoint from Lookup"; } internal MidiEndpoint(IntPtr handle, bool owns) : base(handle, owns) { EndpointName = "Endpoint from Lookup"; } internal MidiEndpoint(IntPtr handle, string endpointName, bool owns) : base(handle, owns) { EndpointName = endpointName; } public static MidiEndpoint GetSource(int sourceIndex) { IntPtr intPtr = MIDIGetSource(sourceIndex); if (intPtr == IntPtr.Zero) { return null; } return new MidiEndpoint(intPtr, "Source" + sourceIndex, owns: false); } public static MidiEndpoint GetDestination(int destinationIndex) { IntPtr intPtr = MIDIGetDestination(destinationIndex); if (intPtr == IntPtr.Zero) { return null; } return new MidiEndpoint(intPtr, "Destination" + destinationIndex, owns: false); } internal MidiEndpoint(MidiClient client, string name) { using NSString nSString = new NSString(name); GCHandle value = GCHandle.Alloc(this); int num = MIDIDestinationCreate(client.handle, nSString.Handle, Read, GCHandle.ToIntPtr(value), out handle); if (num != 0) { value.Free(); handle = IntPtr.Zero; throw new MidiException((MidiError)num); } EndpointName = name; } public override void Dispose(bool disposing) { this.MessageReceived = null; base.Dispose(disposing); } private static void Read(IntPtr packetList, IntPtr context, IntPtr srcPtr) { MidiEndpoint midiEndpoint = (MidiEndpoint)GCHandle.FromIntPtr(context).Target; midiEndpoint.MessageReceived?.Invoke(midiEndpoint, new MidiPacketsEventArgs(packetList)); } public void FlushOutput() { MIDIFlushOutput(handle); } public MidiError Received(MidiPacket[] packets) { if (packets == null) { throw new ArgumentNullException("packets"); } IntPtr intPtr = Midi.EncodePackets(packets); MidiError result = MIDIReceived(handle, intPtr); Marshal.FreeHGlobal(intPtr); return result; } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIEndpointGetEntity(IntPtr endpoint, out IntPtr entity); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiEntity.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreMidi; public class MidiEntity : MidiObject { public int Destinations => MIDIEntityGetNumberOfDestinations(handle); public int Sources => MIDIEntityGetNumberOfSources(handle); public MidiDevice Device { get { if (MIDIEntityGetDevice(handle, out var devRef) == 0) { return new MidiDevice(devRef); } return null; } } public int AdvanceScheduleTimeMuSec { get { return GetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec); } set { SetInt(MidiObject.kMIDIPropertyAdvanceScheduleTimeMuSec, value); } } public bool CanRoute { get { return GetInt(MidiObject.kMIDIPropertyCanRoute) != 0; } set { SetInt(MidiObject.kMIDIPropertyCanRoute, value ? 1 : 0); } } public int ConnectionUniqueIDInt { get { return GetInt(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetInt(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public NSData ConnectionUniqueIDData { get { return GetData(MidiObject.kMIDIPropertyConnectionUniqueID); } set { SetData(MidiObject.kMIDIPropertyConnectionUniqueID, value); } } public int DeviceID { get { return GetInt(MidiObject.kMIDIPropertyDeviceID); } set { SetInt(MidiObject.kMIDIPropertyDeviceID, value); } } public string DisplayName { get { return GetString(MidiObject.kMIDIPropertyDisplayName); } set { SetString(MidiObject.kMIDIPropertyDisplayName, value); } } public string DriverOwner { get { return GetString(MidiObject.kMIDIPropertyDriverOwner); } set { SetString(MidiObject.kMIDIPropertyDriverOwner, value); } } public int DriverVersion { get { return GetInt(MidiObject.kMIDIPropertyDriverVersion); } set { SetInt(MidiObject.kMIDIPropertyDriverVersion, value); } } public int IsBroadcast { get { return GetInt(MidiObject.kMIDIPropertyIsBroadcast); } set { SetInt(MidiObject.kMIDIPropertyIsBroadcast, value); } } public bool IsDrumMachine => GetInt(MidiObject.kMIDIPropertyIsDrumMachine) != 0; public bool IsEffectUnit => GetInt(MidiObject.kMIDIPropertyIsEffectUnit) != 0; public bool IsEmbeddedEntity => GetInt(MidiObject.kMIDIPropertyIsEmbeddedEntity) != 0; public bool IsMixer => GetInt(MidiObject.kMIDIPropertyIsMixer) != 0; public bool IsSampler => GetInt(MidiObject.kMIDIPropertyIsSampler) != 0; public int MaxReceiveChannels => GetInt(MidiObject.kMIDIPropertyMaxReceiveChannels); public int MaxSysExSpeed { get { try { return GetInt(MidiObject.kMIDIPropertyMaxSysExSpeed); } catch { return 3125; } } set { SetInt(MidiObject.kMIDIPropertyMaxSysExSpeed, value); } } public int MaxTransmitChannels { get { return GetInt(MidiObject.kMIDIPropertyMaxTransmitChannels); } set { SetInt(MidiObject.kMIDIPropertyMaxTransmitChannels, value); } } public string Model { get { return GetString(MidiObject.kMIDIPropertyModel); } set { SetString(MidiObject.kMIDIPropertyModel, value); } } public string Name { get { return GetString(MidiObject.kMIDIPropertyName); } set { SetString(MidiObject.kMIDIPropertyName, value); } } public NSDictionary NameConfiguration { get { return GetDictionary(MidiObject.kMIDIPropertyNameConfiguration); } set { SetDictionary(MidiObject.kMIDIPropertyNameConfiguration, value); } } public bool Offline { get { return GetInt(MidiObject.kMIDIPropertyOffline) != 0; } set { SetInt(MidiObject.kMIDIPropertyOffline, value ? 1 : 0); } } public bool PanDisruptsStereo { get { return GetInt(MidiObject.kMIDIPropertyPanDisruptsStereo) != 0; } set { SetInt(MidiObject.kMIDIPropertyPanDisruptsStereo, value ? 1 : 0); } } public bool Private { get { return GetInt(MidiObject.kMIDIPropertyPrivate) != 0; } set { SetInt(MidiObject.kMIDIPropertyPrivate, value ? 1 : 0); } } public bool ReceivesBankSelectLSB { get { return GetInt(MidiObject.kMIDIPropertyReceivesBankSelectLSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesBankSelectLSB, value ? 1 : 0); } } public bool ReceivesBankSelectMSB { get { return GetInt(MidiObject.kMIDIPropertyReceivesBankSelectMSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesBankSelectMSB, value ? 1 : 0); } } public bool ReceivesClock { get { return GetInt(MidiObject.kMIDIPropertyReceivesClock) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesClock, value ? 1 : 0); } } public bool ReceivesMTC { get { return GetInt(MidiObject.kMIDIPropertyReceivesMTC) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesMTC, value ? 1 : 0); } } public bool ReceivesNotes { get { return GetInt(MidiObject.kMIDIPropertyReceivesNotes) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesNotes, value ? 1 : 0); } } public bool ReceivesProgramChanges { get { return GetInt(MidiObject.kMIDIPropertyReceivesProgramChanges) != 0; } set { SetInt(MidiObject.kMIDIPropertyReceivesProgramChanges, value ? 1 : 0); } } public bool SupportsGeneralMidi { get { return GetInt(MidiObject.kMIDIPropertySupportsGeneralMIDI) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsGeneralMIDI, value ? 1 : 0); } } public bool SupportsMMC { get { return GetInt(MidiObject.kMIDIPropertySupportsMMC) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsMMC, value ? 1 : 0); } } public bool SupportsShowControl { get { return GetInt(MidiObject.kMIDIPropertySupportsShowControl) != 0; } set { SetInt(MidiObject.kMIDIPropertySupportsShowControl, value ? 1 : 0); } } public bool TransmitsBankSelectLSB { get { return GetInt(MidiObject.kMIDIPropertyTransmitsBankSelectLSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsBankSelectLSB, value ? 1 : 0); } } public bool TransmitsBankSelectMSB { get { return GetInt(MidiObject.kMIDIPropertyTransmitsBankSelectMSB) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsBankSelectMSB, value ? 1 : 0); } } public bool TransmitsClock { get { return GetInt(MidiObject.kMIDIPropertyTransmitsClock) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsClock, value ? 1 : 0); } } public bool TransmitsMTC { get { return GetInt(MidiObject.kMIDIPropertyTransmitsMTC) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsMTC, value ? 1 : 0); } } public bool TransmitsNotes { get { return GetInt(MidiObject.kMIDIPropertyTransmitsNotes) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsNotes, value ? 1 : 0); } } public bool TransmitsProgramChanges { get { return GetInt(MidiObject.kMIDIPropertyTransmitsProgramChanges) != 0; } set { SetInt(MidiObject.kMIDIPropertyTransmitsProgramChanges, value ? 1 : 0); } } internal MidiEntity(IntPtr handle) : base(handle) { } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIEntityGetDestination(IntPtr entity, int idx); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern IntPtr MIDIEntityGetSource(IntPtr entity, int idx); public MidiEndpoint GetDestination(int idx) { if (MIDIEntityGetDestination(handle, idx) == IntPtr.Zero) { return null; } return new MidiEndpoint(handle, owns: false); } public MidiEndpoint GetSource(int idx) { if (MIDIEntityGetSource(handle, idx) == IntPtr.Zero) { return null; } return new MidiEndpoint(handle, owns: false); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIEntityGetNumberOfDestinations(IntPtr entity); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIEntityGetNumberOfSources(IntPtr entity); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIEntityGetDevice(IntPtr handle, out IntPtr devRef); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiError.cs ================================================ namespace CoreMidi; public enum MidiError { Ok = 0, InvalidClient = -10830, InvalidPort = -10831, WrongEndpointType = -10832, NoConnection = -10833, UnknownEndpoint = -10834, UnknownProperty = -10835, WrongPropertyType = -10836, NoCurrentSetup = -10837, MessageSendErr = -10838, ServerStartErr = -10839, SetupFormatErr = -10840, WrongThread = -10841, ObjectNotFound = -10842, IDNotUnique = -10843, NotPermitted = -10844 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiException.cs ================================================ using System; namespace CoreMidi; public class MidiException : Exception { public MidiError ErrorCode { get; private set; } internal MidiException(MidiError code) : base(code.ToString()) { ErrorCode = code; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiNetworkConnectionPolicy.cs ================================================ namespace CoreMidi; public enum MidiNetworkConnectionPolicy { NoOne, HostsInContactsList, Anyone } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiNotificationMessageId.cs ================================================ namespace CoreMidi; internal enum MidiNotificationMessageId { SetupChanged = 1, ObjectAdded, ObjectRemoved, PropertyChanged, ThruConnectionsChanged, SerialPortOwnerChanged, IOError } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiNotifyProc.cs ================================================ using System; namespace CoreMidi; internal delegate void MidiNotifyProc(IntPtr message, IntPtr context); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiObject.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreMidi; public class MidiObject : INativeObject, IDisposable { internal IntPtr handle; internal bool owns; internal static IntPtr kMIDIPropertyAdvanceScheduleTimeMuSec; internal static IntPtr kMIDIPropertyCanRoute; internal static IntPtr kMIDIPropertyConnectionUniqueID; internal static IntPtr kMIDIPropertyDeviceID; internal static IntPtr kMIDIPropertyDisplayName; internal static IntPtr kMIDIPropertyDriverDeviceEditorApp; internal static IntPtr kMIDIPropertyDriverOwner; internal static IntPtr kMIDIPropertyDriverVersion; internal static IntPtr kMIDIPropertyImage; internal static IntPtr kMIDIPropertyIsBroadcast; internal static IntPtr kMIDIPropertyIsDrumMachine; internal static IntPtr kMIDIPropertyIsEffectUnit; internal static IntPtr kMIDIPropertyIsEmbeddedEntity; internal static IntPtr kMIDIPropertyIsMixer; internal static IntPtr kMIDIPropertyIsSampler; internal static IntPtr kMIDIPropertyManufacturer; internal static IntPtr kMIDIPropertyMaxReceiveChannels; internal static IntPtr kMIDIPropertyMaxSysExSpeed; internal static IntPtr kMIDIPropertyMaxTransmitChannels; internal static IntPtr kMIDIPropertyModel; internal static IntPtr kMIDIPropertyName; internal static IntPtr kMIDIPropertyNameConfiguration; internal static IntPtr kMIDIPropertyOffline; internal static IntPtr kMIDIPropertyPanDisruptsStereo; internal static IntPtr kMIDIPropertyPrivate; internal static IntPtr kMIDIPropertyReceiveChannels; internal static IntPtr kMIDIPropertyReceivesBankSelectLSB; internal static IntPtr kMIDIPropertyReceivesBankSelectMSB; internal static IntPtr kMIDIPropertyReceivesClock; internal static IntPtr kMIDIPropertyReceivesMTC; internal static IntPtr kMIDIPropertyReceivesNotes; internal static IntPtr kMIDIPropertyReceivesProgramChanges; internal static IntPtr kMIDIPropertySingleRealtimeEntity; internal static IntPtr kMIDIPropertySupportsGeneralMIDI; internal static IntPtr kMIDIPropertySupportsMMC; internal static IntPtr kMIDIPropertySupportsShowControl; internal static IntPtr kMIDIPropertyTransmitChannels; internal static IntPtr kMIDIPropertyTransmitsBankSelectLSB; internal static IntPtr kMIDIPropertyTransmitsBankSelectMSB; internal static IntPtr kMIDIPropertyTransmitsClock; internal static IntPtr kMIDIPropertyTransmitsMTC; internal static IntPtr kMIDIPropertyTransmitsNotes; internal static IntPtr kMIDIPropertyTransmitsProgramChanges; internal static IntPtr kMIDIPropertyUniqueID; public IntPtr Handle => handle; static MidiObject() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI", 0); kMIDIPropertyAdvanceScheduleTimeMuSec = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyAdvanceScheduleTimeMuSec"); kMIDIPropertyCanRoute = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyCanRoute"); kMIDIPropertyConnectionUniqueID = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyConnectionUniqueID"); kMIDIPropertyDeviceID = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyDeviceID"); kMIDIPropertyDisplayName = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyDisplayName"); kMIDIPropertyDriverDeviceEditorApp = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyDriverDeviceEditorApp"); kMIDIPropertyDriverOwner = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyDriverOwner"); kMIDIPropertyDriverVersion = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyDriverVersion"); kMIDIPropertyImage = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyImage"); kMIDIPropertyIsBroadcast = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsBroadcast"); kMIDIPropertyIsDrumMachine = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsDrumMachine"); kMIDIPropertyIsEffectUnit = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsEffectUnit"); kMIDIPropertyIsEmbeddedEntity = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsEmbeddedEntity"); kMIDIPropertyIsMixer = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsMixer"); kMIDIPropertyIsSampler = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyIsSampler"); kMIDIPropertyManufacturer = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyManufacturer"); kMIDIPropertyMaxReceiveChannels = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyMaxReceiveChannels"); kMIDIPropertyMaxSysExSpeed = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyMaxSysExSpeed"); kMIDIPropertyMaxTransmitChannels = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyMaxTransmitChannels"); kMIDIPropertyModel = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyModel"); kMIDIPropertyName = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyName"); kMIDIPropertyNameConfiguration = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyNameConfiguration"); kMIDIPropertyOffline = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyOffline"); kMIDIPropertyPanDisruptsStereo = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyPanDisruptsStereo"); kMIDIPropertyPrivate = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyPrivate"); kMIDIPropertyReceiveChannels = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceiveChannels"); kMIDIPropertyReceivesBankSelectLSB = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesBankSelectLSB"); kMIDIPropertyReceivesBankSelectMSB = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesBankSelectMSB"); kMIDIPropertyReceivesClock = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesClock"); kMIDIPropertyReceivesMTC = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesMTC"); kMIDIPropertyReceivesNotes = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesNotes"); kMIDIPropertyReceivesProgramChanges = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyReceivesProgramChanges"); kMIDIPropertySingleRealtimeEntity = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertySingleRealtimeEntity"); kMIDIPropertySupportsGeneralMIDI = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertySupportsGeneralMIDI"); kMIDIPropertySupportsMMC = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertySupportsMMC"); kMIDIPropertySupportsShowControl = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertySupportsShowControl"); kMIDIPropertyTransmitChannels = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitChannels"); kMIDIPropertyTransmitsBankSelectLSB = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsBankSelectLSB"); kMIDIPropertyTransmitsBankSelectMSB = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsBankSelectMSB"); kMIDIPropertyTransmitsClock = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsClock"); kMIDIPropertyTransmitsMTC = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsMTC"); kMIDIPropertyTransmitsNotes = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsNotes"); kMIDIPropertyTransmitsProgramChanges = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyTransmitsProgramChanges"); kMIDIPropertyUniqueID = Dlfcn.GetIntPtr(intPtr, "kMIDIPropertyUniqueID"); } internal MidiObject() { owns = true; } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectGetIntegerProperty(IntPtr obj, IntPtr str, out int ret); internal int GetInt(IntPtr property) { int ret; int num = MIDIObjectGetIntegerProperty(handle, property, out ret); if (num == 0) { return ret; } throw new MidiException((MidiError)num); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectSetIntegerProperty(IntPtr obj, IntPtr str, int val); internal void SetInt(IntPtr property, int value) { MIDIObjectSetIntegerProperty(handle, property, value); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectGetDictionaryProperty(IntPtr obj, IntPtr str, out IntPtr dict); internal NSDictionary GetDictionary(IntPtr property) { IntPtr dict; int num = MIDIObjectGetDictionaryProperty(handle, property, out dict); if (num == 0) { return (NSDictionary)Runtime.GetNSObject(dict); } throw new MidiException((MidiError)num); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectSetDictionaryProperty(IntPtr obj, IntPtr str, IntPtr dict); internal void SetDictionary(IntPtr property, NSDictionary dict) { MIDIObjectSetDictionaryProperty(handle, property, dict.Handle); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectGetDataProperty(IntPtr obj, IntPtr str, out IntPtr data); public NSData GetData(IntPtr property) { IntPtr data; int num = MIDIObjectGetDataProperty(handle, property, out data); if (num == 0) { return (NSData)Runtime.GetNSObject(data); } throw new MidiException((MidiError)num); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectSetDataProperty(IntPtr obj, IntPtr str, IntPtr data); public void SetData(IntPtr property, NSData data) { if (data == null) { throw new ArgumentNullException("data"); } MIDIObjectSetDataProperty(handle, property, data.Handle); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectGetStringProperty(IntPtr obj, IntPtr str, out IntPtr data); public string GetString(IntPtr property) { if (MIDIObjectGetStringProperty(handle, property, out var data) == 0) { string result = NSString.FromHandle(data); CFObject.CFRelease(data); return result; } return null; } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectSetStringProperty(IntPtr obj, IntPtr str, IntPtr nstr); public void SetString(IntPtr property, string value) { if (value == null) { throw new ArgumentNullException("value"); } using NSString nSString = new NSString(value); MIDIObjectSetDictionaryProperty(handle, property, nSString.Handle); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern MidiError MIDIObjectRemoveProperty(IntPtr obj, IntPtr str); public MidiError RemoveProperty(string property) { using NSString nSString = new NSString(property); return MIDIObjectRemoveProperty(handle, nSString.Handle); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIObjectGetProperties(IntPtr obj, out IntPtr dict, bool deep); public NSDictionary GetDictionaryProperties(bool deep) { if (MIDIObjectGetProperties(handle, out var dict, deep) != 0) { return null; } return (NSDictionary)Runtime.GetNSObject(dict); } public MidiObject(IntPtr handle) : this(handle, owns: true) { } internal MidiObject(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to context creation"); } this.handle = handle; this.owns = owns; } ~MidiObject() { Dispose(disposing: false); } internal virtual void DisposeHandle() { handle = IntPtr.Zero; } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { DisposeHandle(); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern MidiError MIDIObjectFindByUniqueID(int uniqueId, out IntPtr obj, out MidiObjectType objectType); internal static MidiObject MidiObjectFromType(MidiObjectType type, IntPtr handle) { return (type & ~MidiObjectType.ExternalMask) switch { MidiObjectType.Other => new MidiObject(handle), MidiObjectType.Device => new MidiDevice(handle), MidiObjectType.Entity => new MidiEntity(handle), MidiObjectType.Source => new MidiEndpoint(handle, owns: false), MidiObjectType.Destination => new MidiEndpoint(handle, owns: false), _ => throw new Exception("Unknown MidiObjectType " + (int)type), }; } private static MidiError FindByUniqueId(int uniqueId, out MidiObject result) { IntPtr obj; MidiObjectType objectType; MidiError midiError = MIDIObjectFindByUniqueID(uniqueId, out obj, out objectType); result = null; if (midiError != 0) { return midiError; } result = MidiObjectFromType(objectType, obj); return midiError; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiObjectType.cs ================================================ using System; namespace CoreMidi; [Flags] internal enum MidiObjectType { Other = -1, Device = 0, Entity = 1, Source = 2, Destination = 3, ExternalMask = 0x10, ExternalDevice = 0x10, ExternalEntity = 0x11, ExternalSource = 0x12, ExternalDestination = 0x13 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiPacket.cs ================================================ using System; namespace CoreMidi; public class MidiPacket { public long TimeStamp; private IntPtr byteptr; private byte[] bytes; private int start; public ushort Length; public unsafe IntPtr Bytes { get { if (bytes == null) { return byteptr; } fixed (byte* ptr = &bytes[start]) { return (IntPtr)ptr; } } } public MidiPacket(long timestamp, ushort length, IntPtr bytes) { TimeStamp = timestamp; Length = length; byteptr = bytes; } public MidiPacket(long timestamp, byte[] bytes) : this(timestamp, bytes, 0, bytes.Length, check: false) { } public MidiPacket(long timestamp, byte[] bytes, int start, int len) : this(timestamp, bytes, start, len, check: true) { } private MidiPacket(long timestamp, byte[] bytes, int start, int length, bool check) { if (bytes == null) { throw new ArgumentNullException("bytes"); } if (length > 65535) { throw new ArgumentException("lenght is bigger than 64k"); } if (check) { if (start < 0 || start >= bytes.Length) { throw new ArgumentException("range is not within bytes"); } if (start + length > bytes.Length) { throw new ArgumentException("range is not within bytes"); } } TimeStamp = timestamp; Length = (ushort)length; this.start = start; this.bytes = bytes; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiPacketsEventArgs.cs ================================================ using System; namespace CoreMidi; public class MidiPacketsEventArgs : EventArgs { private IntPtr packetList; public IntPtr PacketListRaw => packetList; public MidiPacket[] Packets => MidiPort.ToPackets(packetList); internal MidiPacketsEventArgs(IntPtr packetList) { this.packetList = packetList; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiPort.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; namespace CoreMidi; public class MidiPort : MidiObject { private GCHandle gch; private bool input; public MidiClient Client { get; private set; } public string PortName { get; private set; } public event EventHandler MessageReceived; [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIInputPortCreate(IntPtr client, IntPtr portName, MidiReadProc readProc, IntPtr context, out IntPtr midiPort); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIOutputPortCreate(IntPtr client, IntPtr portName, out IntPtr midiPort); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIPortDispose(IntPtr port); internal MidiPort(MidiClient client, string portName, bool input) { using NSString nSString = new NSString(portName); GCHandle value = GCHandle.Alloc(this); int num = ((!input) ? MIDIOutputPortCreate(client.handle, nSString.Handle, out handle) : MIDIInputPortCreate(client.handle, nSString.Handle, Read, GCHandle.ToIntPtr(value), out handle)); if (num != 0) { value.Free(); handle = IntPtr.Zero; throw new MidiException((MidiError)num); } Client = client; PortName = portName; this.input = input; } internal override void DisposeHandle() { if (handle != IntPtr.Zero) { if (owns) { MIDIPortDispose(handle); } handle = IntPtr.Zero; gch.Free(); } } internal static MidiPacket[] ToPackets(IntPtr packetList) { int num = Marshal.ReadInt32(packetList); int num2 = 4; MidiPacket[] array = new MidiPacket[num]; for (int i = 0; i < num; i++) { ushort num3 = (ushort)Marshal.ReadInt16(packetList, num2 + 8); array[i] = new MidiPacket(Marshal.ReadInt64(packetList, num2), num3, (IntPtr)((long)packetList + num2 + 10)); num2 += 10 + num3; } return array; } public override void Dispose(bool disposing) { this.MessageReceived = null; base.Dispose(disposing); } private static void Read(IntPtr packetList, IntPtr context, IntPtr srcPtr) { MidiPort midiPort = (MidiPort)GCHandle.FromIntPtr(context).Target; midiPort.MessageReceived?.Invoke(midiPort, new MidiPacketsEventArgs(packetList)); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIPortConnectSource(IntPtr port, IntPtr endpoint, IntPtr context); [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern int MIDIPortDisconnectSource(IntPtr port, IntPtr endpoint); public MidiError ConnectSource(MidiEndpoint endpoint) { if (endpoint == null) { throw new ArgumentNullException("endpoint"); } return (MidiError)MIDIPortConnectSource(handle, endpoint.handle, GCHandle.ToIntPtr(gch)); } public MidiError Disconnect(MidiEndpoint endpoint) { if (endpoint == null) { throw new ArgumentNullException("endpoint"); } return (MidiError)MIDIPortDisconnectSource(handle, endpoint.handle); } public override string ToString() { return string.Concat(input ? "[input:" : "[output:", Client, ":", PortName, "]"); } [DllImport("/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI")] private static extern MidiError MIDISend(IntPtr port, IntPtr endpoint, IntPtr packets); public MidiError Send(MidiEndpoint endpoint, MidiPacket[] packets) { if (endpoint == null) { throw new ArgumentNullException("endpoint"); } if (packets == null) { throw new ArgumentNullException("packets"); } IntPtr intPtr = Midi.EncodePackets(packets); MidiError result = MIDISend(handle, endpoint.handle, intPtr); Marshal.FreeHGlobal(intPtr); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/MidiReadProc.cs ================================================ using System; namespace CoreMidi; internal delegate void MidiReadProc(IntPtr packetList, IntPtr context, IntPtr srcPtr); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/ObjectAddedOrRemovedEventArgs.cs ================================================ using System; namespace CoreMidi; public class ObjectAddedOrRemovedEventArgs : EventArgs { public MidiObject Parent { get; private set; } public MidiObject Child { get; private set; } public ObjectAddedOrRemovedEventArgs(MidiObject parent, MidiObject child) { Parent = parent; Child = child; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreMidi/ObjectPropertyChangedEventArgs.cs ================================================ using System; namespace CoreMidi; public class ObjectPropertyChangedEventArgs : EventArgs { public MidiObject MidiObject { get; private set; } public string PropertyName { get; private set; } public ObjectPropertyChangedEventArgs(MidiObject midiObject, string propertyName) { MidiObject = midiObject; PropertyName = propertyName; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreServices/CFHTTPAuthentication.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace CoreServices; public class CFHTTPAuthentication : CFType, INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle { get { CheckHandle(); return handle; } } public bool IsValid => CFHTTPAuthenticationIsValid(Handle, IntPtr.Zero); public bool RequiresAccountDomain => CFHTTPAuthenticationRequiresAccountDomain(Handle); public bool RequiresOrderedRequests => CFHTTPAuthenticationRequiresOrderedRequests(Handle); public bool RequiresUserNameAndPassword => CFHTTPAuthenticationRequiresUserNameAndPassword(Handle); internal CFHTTPAuthentication(IntPtr handle) : this(handle, owns: false) { } internal CFHTTPAuthentication(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork", EntryPoint = "CFHTTPAuthenticationGetTypeID")] public static extern int GetTypeID(); ~CFHTTPAuthentication() { Dispose(disposing: false); } protected void CheckHandle() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(GetType().Name); } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPAuthenticationCreateFromResponse(IntPtr allocator, IntPtr response); public static CFHTTPAuthentication CreateFromResponse(CFHTTPMessage response) { if (response.IsRequest) { throw new InvalidOperationException(); } IntPtr intPtr = CFHTTPAuthenticationCreateFromResponse(IntPtr.Zero, response.Handle); if (intPtr == IntPtr.Zero) { return null; } return new CFHTTPAuthentication(intPtr); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPAuthenticationIsValid(IntPtr handle, IntPtr error); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPAuthenticationAppliesToRequest(IntPtr handle, IntPtr request); public bool AppliesToRequest(CFHTTPMessage request) { if (!request.IsRequest) { throw new InvalidOperationException(); } return CFHTTPAuthenticationAppliesToRequest(Handle, request.Handle); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPAuthenticationRequiresAccountDomain(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPAuthenticationRequiresOrderedRequests(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPAuthenticationRequiresUserNameAndPassword(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPAuthenticationCopyMethod(IntPtr handle); public string GetMethod() { IntPtr intPtr = CFHTTPAuthenticationCopyMethod(Handle); if (intPtr == IntPtr.Zero) { return null; } using CFString cFString = new CFString(intPtr); return cFString; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreServices/CFHTTPMessage.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreServices; public class CFHTTPMessage : CFType, INativeObject, IDisposable { private struct CFStreamError { public int domain; public int code; } private enum ErrorHTTPAuthentication { TypeUnsupported = -1000, BadUserName = -1001, BadPassword = -1002 } public enum AuthenticationScheme { Default, Basic, Negotiate, NTLM, Digest } internal IntPtr handle; private static readonly NSString _HTTPVersion1_0; private static readonly NSString _HTTPVersion1_1; private static readonly NSString _AuthenticationSchemeBasic; private static readonly NSString _AuthenticationSchemeNegotiate; private static readonly NSString _AuthenticationSchemeNTLM; private static readonly NSString _AuthenticationSchemeDigest; private static readonly NSString _AuthenticationUsername; private static readonly NSString _AuthenticationPassword; private static readonly NSString _AuthenticationAccountDomain; public IntPtr Handle { get { CheckHandle(); return handle; } } public bool IsRequest { get { CheckHandle(); return CFHTTPMessageIsRequest(Handle); } } public CFIndex ResponseStatusCode { get { if (IsRequest) { throw new InvalidOperationException(); } return CFHTTPMessageGetResponseStatusCode(Handle); } } public string ResponseStatusLine { get { if (IsRequest) { throw new InvalidOperationException(); } IntPtr intPtr = CFHTTPMessageCopyResponseStatusLine(Handle); if (intPtr == IntPtr.Zero) { return null; } using NSString nSString = new NSString(intPtr); return nSString.ToString(); } } public Version Version { get { CheckHandle(); IntPtr intPtr = CFHTTPMessageCopyVersion(handle); try { if (intPtr.Equals((object?)(nint)_HTTPVersion1_0.Handle)) { return HttpVersion.Version10; } return HttpVersion.Version11; } finally { if (intPtr != IntPtr.Zero) { CFObject.CFRelease(intPtr); } } } } public bool IsHeaderComplete { get { CheckHandle(); return CFHTTPMessageIsHeaderComplete(Handle); } } internal CFHTTPMessage(IntPtr handle) : this(handle, owns: false) { } internal CFHTTPMessage(IntPtr handle, bool owns) { if (!owns) { CFObject.CFRetain(handle); } this.handle = handle; } static CFHTTPMessage() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork", 0); if (intPtr == IntPtr.Zero) { throw new InvalidOperationException(); } try { _HTTPVersion1_0 = GetStringConstant(intPtr, "kCFHTTPVersion1_0"); _HTTPVersion1_1 = GetStringConstant(intPtr, "kCFHTTPVersion1_1"); _AuthenticationSchemeBasic = GetStringConstant(intPtr, "kCFHTTPAuthenticationSchemeBasic"); _AuthenticationSchemeNegotiate = GetStringConstant(intPtr, "kCFHTTPAuthenticationSchemeNegotiate"); _AuthenticationSchemeNTLM = GetStringConstant(intPtr, "kCFHTTPAuthenticationSchemeNTLM"); _AuthenticationSchemeDigest = GetStringConstant(intPtr, "kCFHTTPAuthenticationSchemeDigest"); _AuthenticationUsername = GetStringConstant(intPtr, "kCFHTTPAuthenticationUsername"); _AuthenticationPassword = GetStringConstant(intPtr, "kCFHTTPAuthenticationPassword"); _AuthenticationAccountDomain = GetStringConstant(intPtr, "kCFHTTPAuthenticationAccountDomain"); } finally { Dlfcn.dlclose(intPtr); } } private static NSString GetStringConstant(IntPtr handle, string name) { NSString stringConstant = Dlfcn.GetStringConstant(handle, name); if (stringConstant == null) { throw new InvalidOperationException($"Cannot get '{name}' property."); } return stringConstant; } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork", EntryPoint = "CFHTTPMessageGetTypeID")] public static extern int GetTypeID(); ~CFHTTPMessage() { Dispose(disposing: false); } protected void CheckHandle() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException(GetType().Name); } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } private static IntPtr GetVersion(Version version) { if (version == null || version.Equals(HttpVersion.Version11)) { return _HTTPVersion1_1.Handle; } if (version.Equals(HttpVersion.Version10)) { return _HTTPVersion1_0.Handle; } throw new ArgumentException(); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPMessageCreateEmpty(IntPtr allocator, bool isRequest); public static CFHTTPMessage CreateEmpty(bool request) { IntPtr intPtr = CFHTTPMessageCreateEmpty(IntPtr.Zero, request); if (intPtr == IntPtr.Zero) { return null; } return new CFHTTPMessage(intPtr); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPMessageCreateRequest(IntPtr allocator, IntPtr requestMethod, IntPtr url, IntPtr httpVersion); public static CFHTTPMessage CreateRequest(CFUrl url, NSString method, Version version) { IntPtr intPtr = CFHTTPMessageCreateRequest(IntPtr.Zero, method.Handle, url.Handle, GetVersion(version)); if (intPtr == IntPtr.Zero) { return null; } return new CFHTTPMessage(intPtr); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageIsRequest(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern CFIndex CFHTTPMessageGetResponseStatusCode(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPMessageCopyResponseStatusLine(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPMessageCopyVersion(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageIsHeaderComplete(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageAppendBytes(IntPtr message, ref byte[] newBytes, CFIndex numBytes); public bool AppendBytes(byte[] bytes) { if (bytes == null) { throw new ArgumentNullException("bytes"); } return AppendBytes(bytes, bytes.Length); } public bool AppendBytes(byte[] bytes, int count) { if (bytes == null) { throw new ArgumentNullException("bytes"); } return CFHTTPMessageAppendBytes(Handle, ref bytes, count); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHTTPMessageCopyAllHeaderFields(IntPtr handle); public NSDictionary GetAllHeaderFields() { CheckHandle(); IntPtr intPtr = CFHTTPMessageCopyAllHeaderFields(handle); if (intPtr == IntPtr.Zero) { return null; } return new NSDictionary(intPtr); } private InvalidOperationException GetException(ErrorHTTPAuthentication code) { switch (code) { case ErrorHTTPAuthentication.BadUserName: throw new InvalidOperationException("Bad username."); case ErrorHTTPAuthentication.BadPassword: throw new InvalidOperationException("Bad password."); case ErrorHTTPAuthentication.TypeUnsupported: throw new InvalidOperationException("Authentication type not supported."); default: throw new InvalidOperationException("Unknown error."); } } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageApplyCredentials(IntPtr request, IntPtr auth, IntPtr user, IntPtr pass, out CFStreamError error); public void ApplyCredentials(CFHTTPAuthentication auth, string userName, string password, string domain = null) { if (auth.RequiresAccountDomain) { ApplyCredentialDictionary(auth, userName, password, domain); return; } CFString cFString = new CFString(userName); CFString cFString2 = new CFString(password); try { if (!CFHTTPMessageApplyCredentials(Handle, auth.Handle, cFString.Handle, cFString2.Handle, out var error)) { throw GetException((ErrorHTTPAuthentication)error.code); } } finally { cFString.Dispose(); cFString2.Dispose(); } } internal static IntPtr GetAuthScheme(AuthenticationScheme scheme) { return scheme switch { AuthenticationScheme.Default => IntPtr.Zero, AuthenticationScheme.Basic => _AuthenticationSchemeBasic.Handle, AuthenticationScheme.Negotiate => _AuthenticationSchemeNegotiate.Handle, AuthenticationScheme.NTLM => _AuthenticationSchemeNTLM.Handle, AuthenticationScheme.Digest => _AuthenticationSchemeDigest.Handle, _ => throw new ArgumentException(), }; } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageAddAuthentication(IntPtr request, IntPtr response, IntPtr username, IntPtr password, IntPtr scheme, bool forProxy); public bool AddAuthentication(CFHTTPMessage failureResponse, NSString username, NSString password, AuthenticationScheme scheme, bool forProxy) { return CFHTTPMessageAddAuthentication(Handle, failureResponse.Handle, username.Handle, password.Handle, GetAuthScheme(scheme), forProxy); } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern bool CFHTTPMessageApplyCredentialDictionary(IntPtr request, IntPtr auth, IntPtr dict, out CFStreamError error); public void ApplyCredentialDictionary(CFHTTPAuthentication auth, string userName, string password, string domain = null) { NSString[] array = new NSString[3]; CFString[] array2 = new CFString[3]; array[0] = _AuthenticationUsername; array[1] = _AuthenticationPassword; array[2] = _AuthenticationAccountDomain; array2[0] = userName; array2[1] = password; array2[2] = ((domain != null) ? ((CFString)domain) : null); CFDictionary cFDictionary = CFDictionary.FromObjectsAndKeys(array2, array); try { if (CFHTTPMessageApplyCredentialDictionary(Handle, auth.Handle, cFDictionary.Handle, out var error)) { return; } throw GetException((ErrorHTTPAuthentication)error.code); } finally { cFDictionary.Dispose(); array2[0].Dispose(); array2[1].Dispose(); if (array2[2] != null) { array2[2].Dispose(); } } } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern void CFHTTPMessageSetHeaderFieldValue(IntPtr message, IntPtr headerField, IntPtr value); public void SetHeaderFieldValue(string name, string value) { NSString nSString = (NSString)name; NSString nSString2 = ((value != null) ? ((NSString)value) : null); IntPtr value2 = ((nSString2 != null) ? nSString2.Handle : IntPtr.Zero); CFHTTPMessageSetHeaderFieldValue(Handle, nSString.Handle, value2); nSString.Dispose(); if (nSString2 != null) { nSString2.Dispose(); } } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern void CFHTTPMessageSetBody(IntPtr message, IntPtr data); internal void SetBody(CFData data) { CFHTTPMessageSetBody(Handle, data.Handle); } public void SetBody(byte[] buffer) { using CFDataBuffer cFDataBuffer = new CFDataBuffer(buffer); CFHTTPMessageSetBody(Handle, cFDataBuffer.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreServices/CFHTTPStream.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreServices; public class CFHTTPStream : CFReadStream { private static readonly NSString _AttemptPersistentConnection; private static readonly NSString _FinalURL; private static readonly NSString _FinalRequest; private static readonly NSString _Proxy; private static readonly NSString _RequestBytesWrittenCount; private static readonly NSString _ResponseHeader; private static readonly NSString _ShouldAutoredirect; public CFUrl FinalURL { get { IntPtr property = GetProperty(_FinalURL); if (property == IntPtr.Zero) { return null; } if (CFType.GetTypeID(property) != CFUrl.GetTypeID()) { CFObject.CFRelease(property); throw new InvalidCastException(); } return new CFUrl(property); } } public bool AttemptPersistentConnection { get { IntPtr property = GetProperty(_AttemptPersistentConnection); if (property == IntPtr.Zero) { return false; } if (property == CFBoolean.False.Handle) { return false; } if (property == CFBoolean.True.Handle) { return true; } throw new InvalidCastException(); } set { SetProperty(_AttemptPersistentConnection, CFBoolean.FromBoolean(value)); } } public int RequestBytesWrittenCount { get { IntPtr property = GetProperty(_RequestBytesWrittenCount); if (property == IntPtr.Zero) { return 0; } using NSNumber nSNumber = new NSNumber(property); return nSNumber.Int32Value; } } public bool ShouldAutoredirect { get { IntPtr property = GetProperty(_ShouldAutoredirect); if (property == IntPtr.Zero) { return false; } if (property == CFBoolean.False.Handle) { return false; } if (property == CFBoolean.True.Handle) { return true; } throw new InvalidCastException(); } set { SetProperty(_ShouldAutoredirect, CFBoolean.FromBoolean(value)); } } internal CFDictionary Proxy { set { SetProperty(_Proxy, value); } } static CFHTTPStream() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork", 0); if (intPtr == IntPtr.Zero) { throw new InvalidOperationException(); } try { _AttemptPersistentConnection = GetStringConstant(intPtr, "kCFStreamPropertyHTTPAttemptPersistentConnection"); _FinalURL = GetStringConstant(intPtr, "kCFStreamPropertyHTTPFinalURL"); _FinalRequest = GetStringConstant(intPtr, "kCFStreamPropertyHTTPFinalRequest"); _Proxy = GetStringConstant(intPtr, "kCFStreamPropertyHTTPProxy"); _RequestBytesWrittenCount = GetStringConstant(intPtr, "kCFStreamPropertyHTTPRequestBytesWrittenCount"); _ResponseHeader = GetStringConstant(intPtr, "kCFStreamPropertyHTTPResponseHeader"); _ShouldAutoredirect = GetStringConstant(intPtr, "kCFStreamPropertyHTTPShouldAutoredirect"); } finally { Dlfcn.dlclose(intPtr); } } private static NSString GetStringConstant(IntPtr handle, string name) { NSString stringConstant = Dlfcn.GetStringConstant(handle, name); if (stringConstant == null) { throw new InvalidOperationException($"Cannot get '{name}' property."); } return stringConstant; } internal CFHTTPStream(IntPtr handle) : base(handle) { } public CFHTTPMessage GetFinalRequest() { IntPtr property = GetProperty(_FinalRequest); if (property == IntPtr.Zero) { return null; } if (CFType.GetTypeID(property) != CFHTTPMessage.GetTypeID()) { CFObject.CFRelease(property); throw new InvalidCastException(); } return new CFHTTPMessage(property); } public CFHTTPMessage GetResponseHeader() { IntPtr property = GetProperty(_ResponseHeader); if (property == IntPtr.Zero) { return null; } if (CFType.GetTypeID(property) != CFHTTPMessage.GetTypeID()) { CFObject.CFRelease(property); throw new InvalidCastException(); } return new CFHTTPMessage(property); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreServices/CFHost.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace CoreServices; internal class CFHost : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; private CFHost(IntPtr handle) { this.handle = handle; } ~CFHost() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/CFNetwork")] private static extern IntPtr CFHostCreateWithName(IntPtr allocator, IntPtr name); public static CFHost Create(string name) { CFString cFString = new CFString(name); return new CFHost(CFHostCreateWithName(IntPtr.Zero, cFString.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/Adapter.cs ================================================ using System; using System.Collections.Generic; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; internal static class Adapter { public static void AssertWritable(NSDictionary dictionary) { if (!(dictionary is NSMutableDictionary)) { throw new NotSupportedException(); } } public static int? BitwiseOr(int? a, int? b) { if (!a.HasValue) { return b; } return a.Value | (b ?? 0); } public static uint? BitwiseOr(uint? a, uint? b) { if (!a.HasValue) { return b; } return a.Value | (b ?? 0); } public static int? GetInt32Value(IDictionary dictionary, NSObject key) { NSObject nSObject = dictionary[key]; if (nSObject == null) { return null; } return ((NSNumber)nSObject).Int32Value; } public static T[] GetNativeArray(NSDictionary dictionary, NSObject key, Converter converter) { IntPtr value = CFDictionary.GetValue(dictionary.Handle, key.Handle); if (value == IntPtr.Zero || CFArray.GetCount(value) == 0) { return new T[0]; } return NSArray.ArrayFromHandle(value, converter); } public static float? GetSingleValue(IDictionary dictionary, NSObject key) { NSObject nSObject = dictionary[key]; if (nSObject == null) { return null; } return ((NSNumber)nSObject).FloatValue; } public static string[] GetStringArray(IDictionary dictionary, NSObject key) { NSObject nSObject = dictionary[key]; if (nSObject == null) { return new string[0]; } return NSArray.StringArrayFromHandle(nSObject.Handle); } public static string GetStringValue(IDictionary dictionary, NSObject key) { NSObject nSObject = dictionary[key]; if (nSObject == null) { return null; } return ((NSString)nSObject).ToString(); } public static uint? GetUInt32Value(IDictionary dictionary, NSObject key) { NSObject nSObject = dictionary[key]; if (nSObject == null) { return null; } return ((NSNumber)nSObject).UInt32Value; } public static void SetValue(IDictionary dictionary, NSObject key, int? value) { if (value.HasValue) { dictionary[key] = new NSNumber(value.Value); } else { dictionary.Remove(key); } } public static void SetValue(IDictionary dictionary, NSObject key, float? value) { if (value.HasValue) { dictionary[key] = new NSNumber(value.Value); } else { dictionary.Remove(key); } } public static void SetValue(IDictionary dictionary, NSObject key, uint? value) { if (value.HasValue) { dictionary[key] = new NSNumber(value.Value); } else { dictionary.Remove(key); } } public static void SetValue(IDictionary dictionary, NSObject key, IEnumerable value) { List list; if (value == null || (list = new List(value)).Count == 0) { SetValue(dictionary, key, (NSObject)null); return; } using NSArray value2 = NSArray.FromStrings(list.ToArray()); SetValue(dictionary, key, value2); } public static void SetValue(IDictionary dictionary, NSObject key, NSObject value) { if (value != null) { dictionary[key] = value; } else { dictionary.Remove(key); } } public static void SetValue(IDictionary dictionary, NSObject key, string value) { if (value == null) { SetValue(dictionary, key, (NSObject)null); return; } using NSString value2 = new NSString(value); SetValue(dictionary, key, (NSObject)value2); } public static void SetNativeValue(NSDictionary dictionary, NSObject key, IEnumerable value) where T : INativeObject { List handles; if (value == null || (handles = GetHandles(value)).Count == 0) { SetNativeValue(dictionary, key, null); return; } using CFArray value2 = CFArray.FromIntPtrs(handles.ToArray()); SetNativeValue(dictionary, key, value2); } private static List GetHandles(IEnumerable value) where T : INativeObject { List list = new List(); foreach (T item in value) { list.Add(item.Handle); } return list; } public static void SetNativeValue(NSDictionary dictionary, NSObject key, INativeObject value) { if (value != null) { AssertWritable(dictionary); CFMutableDictionary.SetValue(dictionary.Handle, key.Handle, value.Handle); } else { ((IDictionary)dictionary).Remove(key); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTBaselineClass.cs ================================================ namespace CoreText; public enum CTBaselineClass { Roman, IdeographicCentered, IdeographicLow, IdeographicHigh, Hanging, Math } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTBaselineClassID.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; internal static class CTBaselineClassID { public static readonly NSString Roman; public static readonly NSString IdeographicCentered; public static readonly NSString IdeographicLow; public static readonly NSString IdeographicHigh; public static readonly NSString Hanging; public static readonly NSString Math; static CTBaselineClassID() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Roman = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassRoman"); IdeographicCentered = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassIdeographicCentered"); IdeographicLow = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassIdeographicLow"); IdeographicHigh = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassIdeographicHigh"); Hanging = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassHanging"); Math = Dlfcn.GetStringConstant(intPtr, "kCTBaselineClassMath"); } finally { Dlfcn.dlclose(intPtr); } } public static NSString ToNSString(CTBaselineClass key) { return key switch { CTBaselineClass.Roman => Roman, CTBaselineClass.IdeographicCentered => IdeographicCentered, CTBaselineClass.IdeographicLow => IdeographicLow, CTBaselineClass.IdeographicHigh => IdeographicHigh, CTBaselineClass.Hanging => Hanging, CTBaselineClass.Math => Math, _ => throw new ArgumentOutOfRangeException("key"), }; } public static CTBaselineClass FromHandle(IntPtr handle) { if (handle == Roman.Handle) { return CTBaselineClass.Roman; } if (handle == IdeographicCentered.Handle) { return CTBaselineClass.IdeographicCentered; } if (handle == IdeographicLow.Handle) { return CTBaselineClass.IdeographicLow; } if (handle == IdeographicHigh.Handle) { return CTBaselineClass.IdeographicHigh; } if (handle == Hanging.Handle) { return CTBaselineClass.Hanging; } if (handle == Math.Handle) { return CTBaselineClass.Math; } throw new ArgumentOutOfRangeException("handle"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTBaselineFondID.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; internal static class CTBaselineFondID { public static readonly NSString Reference; public static readonly NSString Original; static CTBaselineFondID() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Reference = Dlfcn.GetStringConstant(intPtr, "kCTBaselineReferenceFont"); Original = Dlfcn.GetStringConstant(intPtr, "kCTBaselineOriginalFont"); } finally { Dlfcn.dlclose(intPtr); } } public static NSString ToNSString(CTBaselineFont key) { return key switch { CTBaselineFont.Reference => Reference, CTBaselineFont.Original => Original, _ => throw new ArgumentOutOfRangeException("key"), }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTBaselineFont.cs ================================================ namespace CoreText; public enum CTBaselineFont { Reference, Original } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTCharacterCollection.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTCharacterCollection : ushort { IdentityMapping, AdobeCNS1, AdobeGB1, AdobeJapan1, AdobeJapan2, AdobeKorea1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFont.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFont : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public double Size => CTFontGetSize(handle); public CGAffineTransform Matrix => CTFontGetMatrix(handle); public CTFontSymbolicTraits SymbolicTraits => CTFontGetSymbolicTraits(handle); public string PostScriptName => GetStringAndRelease(CTFontCopyPostScriptName(handle)); public string FamilyName => GetStringAndRelease(CTFontCopyFamilyName(handle)); public string FullName => GetStringAndRelease(CTFontCopyFullName(handle)); public string DisplayName => GetStringAndRelease(CTFontCopyDisplayName(handle)); public NSCharacterSet CharacterSet { get { NSCharacterSet nSCharacterSet = (NSCharacterSet)Runtime.GetNSObject(CTFontCopyCharacterSet(handle)); if (nSCharacterSet == null) { return null; } nSCharacterSet.Release(); return nSCharacterSet; } } public uint StringEncoding => CTFontGetStringEncoding(handle); public double AscentMetric => CTFontGetAscent(handle); public double DescentMetric => CTFontGetDescent(handle); public double LeadingMetric => CTFontGetLeading(handle); public uint UnitsPerEmMetric => CTFontGetUnitsPerEm(handle); public int GlyphCount => CTFontGetGlyphCount(handle); public CGRect BoundingBox => CTFontGetBoundingBox(handle); public double UnderlinePosition => CTFontGetUnderlinePosition(handle); public double UnderlineThickness => CTFontGetUnderlineThickness(handle); public double SlantAngle => CTFontGetSlantAngle(handle); public double CapHeightMetric => CTFontGetCapHeight(handle); public double XHeightMetric => CTFontGetXHeight(handle); internal CTFont(IntPtr handle) : this(handle, owns: false) { } internal CTFont(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { GC.SuppressFinalize(this); throw new ArgumentNullException("handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTFont() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithName(IntPtr name, double size, IntPtr matrix); public CTFont(string name, double size) { if (name == null) { throw ConstructorError.ArgumentNull(this, "name"); } using (NSString nSString = new NSString(name)) { handle = CTFontCreateWithName(nSString.Handle, size, IntPtr.Zero); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithName(IntPtr name, double size, ref CGAffineTransform matrix); public CTFont(string name, double size, ref CGAffineTransform matrix) { if (name == null) { throw ConstructorError.ArgumentNull(this, "name"); } using (CFString cFString = (CFString)name) { handle = CTFontCreateWithName(cFString.Handle, size, ref matrix); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithFontDescriptor(IntPtr descriptor, double size, IntPtr matrix); public CTFont(CTFontDescriptor descriptor, double size) { if (descriptor == null) { throw ConstructorError.ArgumentNull(this, "descriptor"); } handle = CTFontCreateWithFontDescriptor(descriptor.Handle, size, IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithFontDescriptor(IntPtr descriptor, double size, ref CGAffineTransform matrix); public CTFont(CTFontDescriptor descriptor, double size, ref CGAffineTransform matrix) { if (descriptor == null) { throw ConstructorError.ArgumentNull(this, "descriptor"); } handle = CTFontCreateWithFontDescriptor(descriptor.Handle, size, ref matrix); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithNameAndOptions(IntPtr name, double size, IntPtr matrix, CTFontOptions options); public CTFont(string name, double size, CTFontOptions options) { if (name == null) { throw ConstructorError.ArgumentNull(this, "name"); } using (CFString cFString = (CFString)name) { handle = CTFontCreateWithNameAndOptions(cFString.Handle, size, IntPtr.Zero, options); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithNameAndOptions(IntPtr name, double size, ref CGAffineTransform matrix, CTFontOptions options); public CTFont(string name, double size, ref CGAffineTransform matrix, CTFontOptions options) { if (name == null) { throw ConstructorError.ArgumentNull(this, "name"); } using (CFString cFString = (CFString)name) { handle = CTFontCreateWithNameAndOptions(cFString.Handle, size, ref matrix, options); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithFontDescriptorAndOptions(IntPtr descriptor, double size, IntPtr matrix, CTFontOptions options); public CTFont(CTFontDescriptor descriptor, double size, CTFontOptions options) { if (descriptor == null) { throw ConstructorError.ArgumentNull(this, "descriptor"); } handle = CTFontCreateWithFontDescriptorAndOptions(descriptor.Handle, size, IntPtr.Zero, options); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithFontDescriptorAndOptions(IntPtr descriptor, double size, ref CGAffineTransform matrix, CTFontOptions options); public CTFont(CTFontDescriptor descriptor, double size, CTFontOptions options, ref CGAffineTransform matrix) { if (descriptor == null) { throw ConstructorError.ArgumentNull(this, "descriptor"); } handle = CTFontCreateWithFontDescriptorAndOptions(descriptor.Handle, size, ref matrix, options); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateWithGraphicsFont(IntPtr cgfontRef, double size, ref CGAffineTransform affine, IntPtr attrs); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontCreateWithGraphicsFont")] private static extern IntPtr CTFontCreateWithGraphicsFont2(IntPtr cgfontRef, double size, IntPtr affine, IntPtr attrs); public CTFont(CGFont font, double size, CGAffineTransform transform, CTFontDescriptor descriptor) { if (font == null) { throw new ArgumentNullException("font"); } handle = CTFontCreateWithGraphicsFont(font.Handle, size, ref transform, descriptor?.Handle ?? IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } public CTFont(CGFont font, double size, CTFontDescriptor descriptor) { if (font == null) { throw new ArgumentNullException("font"); } handle = CTFontCreateWithGraphicsFont2(font.Handle, size, IntPtr.Zero, descriptor?.Handle ?? IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } public CTFont(CGFont font, double size, CGAffineTransform transform) { if (font == null) { throw new ArgumentNullException("font"); } handle = CTFontCreateWithGraphicsFont(font.Handle, size, ref transform, IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateUIFontForLanguage(CTFontUIFontType uiType, double size, IntPtr language); public CTFont(CTFontUIFontType uiType, double size, string language) { if (language == null) { throw ConstructorError.ArgumentNull(this, "language"); } using (CFString cFString = (CFString)language) { handle = CTFontCreateUIFontForLanguage(uiType, size, cFString.Handle); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithAttributes(IntPtr font, double size, IntPtr matrix, IntPtr attributues); public CTFont WithAttributes(double size, CTFontDescriptor attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return CreateFont(CTFontCreateCopyWithAttributes(handle, size, IntPtr.Zero, attributes.Handle)); } private static CTFont CreateFont(IntPtr h) { if (h == IntPtr.Zero) { return null; } return new CTFont(h, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithAttributes(IntPtr font, double size, ref CGAffineTransform matrix, IntPtr attributues); public CTFont WithAttributes(double size, CTFontDescriptor attributes, ref CGAffineTransform matrix) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return CreateFont(CTFontCreateCopyWithAttributes(handle, size, ref matrix, attributes.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithSymbolicTraits(IntPtr font, double size, IntPtr matrix, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask); public CTFont WithSymbolicTraits(double size, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask) { return CreateFont(CTFontCreateCopyWithSymbolicTraits(handle, size, IntPtr.Zero, symTraitValue, symTraitMask)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithSymbolicTraits(IntPtr font, double size, ref CGAffineTransform matrix, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask); public CTFont WithSymbolicTraits(double size, CTFontSymbolicTraits symTraitValue, CTFontSymbolicTraits symTraitMask, ref CGAffineTransform matrix) { return CreateFont(CTFontCreateCopyWithSymbolicTraits(handle, size, ref matrix, symTraitValue, symTraitMask)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithFamily(IntPtr font, double size, IntPtr matrix, IntPtr family); public CTFont WithFamily(double size, string family) { if (family == null) { throw new ArgumentNullException("family"); } using CFString cFString = (CFString)family; return CreateFont(CTFontCreateCopyWithFamily(handle, size, IntPtr.Zero, cFString.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateCopyWithFamily(IntPtr font, double size, ref CGAffineTransform matrix, IntPtr family); public CTFont WithFamily(double size, string family, ref CGAffineTransform matrix) { if (family == null) { throw new ArgumentNullException("family"); } using CFString cFString = (CFString)family; return CreateFont(CTFontCreateCopyWithFamily(handle, size, ref matrix, cFString.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreateForString(IntPtr currentFont, IntPtr @string, NSRange range); public CTFont ForString(string value, NSRange range) { if (value == null) { throw new ArgumentNullException("value"); } using CFString cFString = (CFString)value; return CreateFont(CTFontCreateForString(handle, cFString.Handle, range)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyFontDescriptor(IntPtr font); public CTFontDescriptor GetFontDescriptor() { IntPtr intPtr = CTFontCopyFontDescriptor(handle); if (intPtr == IntPtr.Zero) { return null; } return new CTFontDescriptor(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyAttribute(IntPtr font, IntPtr attribute); public NSObject GetAttribute(NSString attribute) { if (attribute == null) { throw new ArgumentNullException("attribute"); } return Runtime.GetNSObject(CTFontCopyAttribute(handle, attribute.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetSize(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGAffineTransform CTFontGetMatrix(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CTFontSymbolicTraits CTFontGetSymbolicTraits(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyTraits(IntPtr font); public CTFontTraits GetTraits() { NSDictionary nSDictionary = (NSDictionary)Runtime.GetNSObject(CTFontCopyTraits(handle)); if (nSDictionary == null) { return null; } nSDictionary.Release(); return new CTFontTraits(nSDictionary); } private static string GetStringAndRelease(IntPtr cfStringRef) { if (cfStringRef == IntPtr.Zero) { return null; } using CFString cFString = new CFString(cfStringRef, owns: true); return cFString; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyPostScriptName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyFamilyName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyFullName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyDisplayName(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyName(IntPtr font, IntPtr nameKey); public string GetName(CTFontNameKey nameKey) { return GetStringAndRelease(CTFontCopyName(handle, CTFontNameKeyId.ToId(nameKey).Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyLocalizedName(IntPtr font, IntPtr nameKey); public string GetLocalizedName(CTFontNameKey nameKey) { return GetStringAndRelease(CTFontCopyLocalizedName(handle, CTFontNameKeyId.ToId(nameKey).Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyCharacterSet(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern uint CTFontGetStringEncoding(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopySupportedLanguages(IntPtr font); public string[] GetSupportedLanguages() { IntPtr intPtr = CTFontCopySupportedLanguages(handle); if (intPtr == IntPtr.Zero) { return new string[0]; } string[] result = NSArray.ArrayFromHandle(intPtr, CFString.FetchString); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontGetGlyphsForCharacters(IntPtr font, [In] char[] characters, [Out] ushort[] glyphs, int count); public bool GetGlyphsForCharacters(char[] characters, ushort[] glyphs, int count) { AssertCount(count); AssertLength("characters", characters, count); AssertLength("glyphs", characters, count); return CTFontGetGlyphsForCharacters(handle, characters, glyphs, count); } public bool GetGlyphsForCharacters(char[] characters, ushort[] glyphs) { return GetGlyphsForCharacters(characters, glyphs, Math.Min(characters.Length, glyphs.Length)); } private static void AssertCount(int count) { if (count < 0) { throw new ArgumentOutOfRangeException("count", "cannot be negative"); } } private static void AssertLength(string name, T[] array, int count) { AssertLength(name, array, count, canBeNull: false); } private static void AssertLength(string name, T[] array, int count, bool canBeNull) { if (!canBeNull || array != null) { if (array == null) { throw new ArgumentNullException(name); } if (array.Length < count) { throw new ArgumentException($"{name}.Length cannot be < count", name); } } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetAscent(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetDescent(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetLeading(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern uint CTFontGetUnitsPerEm(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTFontGetGlyphCount(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTFontGetBoundingBox(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetUnderlinePosition(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetUnderlineThickness(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetSlantAngle(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetCapHeight(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetXHeight(IntPtr font); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern ushort CTFontGetGlyphWithName(IntPtr font, IntPtr glyphName); public ushort GetGlyphWithName(string glyphName) { if (glyphName == null) { throw new ArgumentNullException("glyphName"); } using NSString nSString = new NSString(glyphName); return CTFontGetGlyphWithName(handle, nSString.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTFontGetBoundingRectsForGlyphs(IntPtr font, CTFontOrientation orientation, [In] ushort[] glyphs, [Out] CGRect[] boundingRects, int count); public CGRect GetBoundingRects(CTFontOrientation orientation, ushort[] glyphs, CGRect[] boundingRects, int count) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("boundingRects", boundingRects, count, canBeNull: true); return CTFontGetBoundingRectsForGlyphs(handle, orientation, glyphs, boundingRects, count); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTFontGetOpticalBoundsForGlyphs(IntPtr font, [In] ushort[] glyphs, [Out] CGRect[] boundingRects, int count, CTFontOptions options); [Since(6, 0)] public CGRect GetOpticalBounds(ushort[] glyphs, CGRect[] boundingRects, int count, CTFontOptions options = CTFontOptions.Default) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("boundingRects", boundingRects, count, canBeNull: true); return CTFontGetOpticalBoundsForGlyphs(handle, glyphs, boundingRects, count, CTFontOptions.Default); } public CGRect GetBoundingRects(CTFontOrientation orientation, ushort[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } return GetBoundingRects(orientation, glyphs, null, glyphs.Length); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTFontGetAdvancesForGlyphs(IntPtr font, CTFontOrientation orientation, [In] ushort[] glyphs, [Out] CGSize[] advances, int count); public double GetAdvancesForGlyphs(CTFontOrientation orientation, ushort[] glyphs, CGSize[] advances, int count) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("advances", advances, count, canBeNull: true); return CTFontGetAdvancesForGlyphs(handle, orientation, glyphs, advances, count); } public double GetAdvancesForGlyphs(CTFontOrientation orientation, ushort[] glyphs) { if (glyphs == null) { throw new ArgumentNullException("glyphs"); } return GetAdvancesForGlyphs(orientation, glyphs, null, glyphs.Length); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTFontGetVerticalTranslationsForGlyphs(IntPtr font, [In] ushort[] glyphs, [Out] CGSize[] translations, int count); public void GetVerticalTranslationsForGlyphs(ushort[] glyphs, CGSize[] translations, int count) { AssertCount(count); AssertLength("glyphs", glyphs, count); AssertLength("translations", translations, count); CTFontGetVerticalTranslationsForGlyphs(handle, glyphs, translations, count); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreatePathForGlyph(IntPtr font, ushort glyph, IntPtr transform); public CGPath GetPathForGlyph(ushort glyph) { IntPtr intPtr = CTFontCreatePathForGlyph(handle, glyph, IntPtr.Zero); if (intPtr == IntPtr.Zero) { return null; } return new CGPath(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCreatePathForGlyph(IntPtr font, ushort glyph, ref CGAffineTransform transform); public CGPath GetPathForGlyph(ushort glyph, ref CGAffineTransform transform) { IntPtr intPtr = CTFontCreatePathForGlyph(handle, glyph, ref transform); if (intPtr == IntPtr.Zero) { return null; } return new CGPath(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTFontDrawGlyphs(IntPtr font, [In] ushort[] glyphs, [In] CGPoint[] positions, int count, IntPtr context); [Since(4, 2)] public void DrawGlyphs(CGContext context, ushort[] glyphs, CGPoint[] positions) { if (context == null) { throw new ArgumentNullException("context"); } if (glyphs == null) { throw new ArgumentNullException("glyphs"); } if (positions == null) { throw new ArgumentNullException("positions"); } int num = glyphs.Length; if (num != positions.Length) { throw new ArgumentException("array sizes fo context and glyphs differ"); } CTFontDrawGlyphs(handle, glyphs, positions, num, context.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTFontGetLigatureCaretPositions(IntPtr handle, ushort glyph, [Out] double[] positions, int max); [Since(4, 2)] public int GetLigatureCaretPositions(ushort glyph, double[] positions) { if (positions == null) { throw new ArgumentNullException("positions"); } return CTFontGetLigatureCaretPositions(handle, glyph, positions, positions.Length); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyVariationAxes(IntPtr font); public CTFontVariationAxes[] GetVariationAxes() { IntPtr intPtr = CTFontCopyVariationAxes(handle); if (intPtr == IntPtr.Zero) { return new CTFontVariationAxes[0]; } CTFontVariationAxes[] result = NSArray.ArrayFromHandle(intPtr, (IntPtr d) => new CTFontVariationAxes((NSDictionary)Runtime.GetNSObject(d))); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyVariation(IntPtr font); public CTFontVariation GetVariation() { IntPtr intPtr = CTFontCopyVariation(handle); if (intPtr == IntPtr.Zero) { return null; } return new CTFontVariation((NSDictionary)Runtime.GetNSObject(intPtr)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyFeatures(IntPtr font); public CTFontFeatures[] GetFeatures() { IntPtr intPtr = CTFontCopyFeatures(handle); if (intPtr == IntPtr.Zero) { return new CTFontFeatures[0]; } CTFontFeatures[] result = NSArray.ArrayFromHandle(intPtr, (IntPtr d) => new CTFontFeatures((NSDictionary)Runtime.GetNSObject(d))); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyFeatureSettings(IntPtr font); public CTFontFeatureSettings[] GetFeatureSettings() { IntPtr intPtr = CTFontCopyFeatureSettings(handle); if (intPtr == IntPtr.Zero) { return new CTFontFeatureSettings[0]; } CTFontFeatureSettings[] result = NSArray.ArrayFromHandle(intPtr, (IntPtr d) => new CTFontFeatureSettings((NSDictionary)Runtime.GetNSObject(d))); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyGraphicsFont(IntPtr font, IntPtr attributes); public CGFont ToCGFont(CTFontDescriptor attributes) { IntPtr intPtr = CTFontCopyGraphicsFont(handle, attributes?.Handle ?? IntPtr.Zero); if (intPtr == IntPtr.Zero) { return null; } return new CGFont(intPtr, owns: true); } public CGFont ToCGFont() { return ToCGFont(null); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyAvailableTables(IntPtr font, CTFontTableOptions options); public CTFontTable[] GetAvailableTables(CTFontTableOptions options) { IntPtr intPtr = CTFontCopyAvailableTables(handle, options); if (intPtr == IntPtr.Zero) { return new CTFontTable[0]; } CTFontTable[] result = NSArray.ArrayFromHandle(intPtr, (IntPtr v) => (CTFontTable)(int)v); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCopyTable(IntPtr font, CTFontTable table, CTFontTableOptions options); public NSData GetFontTableData(CTFontTable table, CTFontTableOptions options) { IntPtr intPtr = CTFontCopyTable(handle, table, options); if (intPtr == IntPtr.Zero) { return null; } NSData nSData = new NSData(intPtr); nSData.Release(); return nSData; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontGetTypeID")] private static extern IntPtr CTFontCopyDefaultCascadeListForLanguages(IntPtr font, IntPtr languagePrefList); [Since(6, 0)] public CTFontDescriptor[] GetDefaultCascadeList(string[] languages) { if (languages == null) { throw new ArgumentNullException("languages"); } using NSArray nSArray = NSArray.FromStrings(languages); using CFArray cFArray = new CFArray(CTFontCopyDefaultCascadeListForLanguages(handle, nSArray.Handle), owns: true); int count = cFArray.Count; CTFontDescriptor[] array = new CTFontDescriptor[count]; for (int i = 0; i < count; i++) { array[i] = new CTFontDescriptor(cFArray.GetValue(i), owns: true); } return array; } public override string ToString() { return FullName; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", EntryPoint = "CTFontGetTypeID")] public static extern int GetTypeID(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontCollection.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontCollection : INativeObject, IDisposable { private delegate int CTFontCollectionSortDescriptorsCallback(IntPtr first, IntPtr second, IntPtr refCon); internal IntPtr handle; public IntPtr Handle => handle; internal CTFontCollection(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTFontCollection() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCollectionCreateFromAvailableFonts(IntPtr options); public CTFontCollection(CTFontCollectionOptions options) { handle = CTFontCollectionCreateFromAvailableFonts(options?.Dictionary.Handle ?? IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCollectionCreateWithFontDescriptors(IntPtr queryDescriptors, IntPtr options); public CTFontCollection(CTFontDescriptor[] queryDescriptors, CTFontCollectionOptions options) { using (CFArray cFArray = ((queryDescriptors == null) ? null : CFArray.FromNativeObjects(queryDescriptors))) { handle = CTFontCollectionCreateWithFontDescriptors(cFArray?.Handle ?? IntPtr.Zero, options?.Dictionary.Handle ?? IntPtr.Zero); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCollectionCreateCopyWithFontDescriptors(IntPtr original, IntPtr queryDescriptors, IntPtr options); public CTFontCollection WithFontDescriptors(CTFontDescriptor[] queryDescriptors, CTFontCollectionOptions options) { IntPtr intPtr; using (CFArray cFArray = ((queryDescriptors == null) ? null : CFArray.FromNativeObjects(queryDescriptors))) { intPtr = CTFontCollectionCreateCopyWithFontDescriptors(handle, cFArray?.Handle ?? IntPtr.Zero, options?.Dictionary.Handle ?? IntPtr.Zero); } if (intPtr == IntPtr.Zero) { return null; } return new CTFontCollection(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCollectionCreateMatchingFontDescriptors(IntPtr collection); public CTFontDescriptor[] GetMatchingFontDescriptors() { IntPtr intPtr = CTFontCollectionCreateMatchingFontDescriptors(handle); if (intPtr == IntPtr.Zero) { return new CTFontDescriptor[0]; } CTFontDescriptor[] result = NSArray.ArrayFromHandle(intPtr, (IntPtr fd) => new CTFontDescriptor(fd, owns: false)); CFObject.CFRelease(intPtr); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(IntPtr collection, CTFontCollectionSortDescriptorsCallback sortCallback, IntPtr refCon); [MonoPInvokeCallback(typeof(CTFontCollectionSortDescriptorsCallback))] private static int CompareDescriptors(IntPtr first, IntPtr second, IntPtr context) { if (!(GCHandle.FromIntPtr(context).Target is Comparison comparison)) { return 0; } return comparison(new CTFontDescriptor(first, owns: false), new CTFontDescriptor(second, owns: false)); } public CTFontDescriptor[] GetMatchingFontDescriptors(Comparison comparer) { GCHandle value = GCHandle.Alloc(comparer); try { IntPtr cfArrayRef = CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(handle, CompareDescriptors, GCHandle.ToIntPtr(value)); if (cfArrayRef == IntPtr.Zero) { return new CTFontDescriptor[0]; } CTFontDescriptor[] result = NSArray.ArrayFromHandle(cfArrayRef, (IntPtr fd) => new CTFontDescriptor(cfArrayRef, owns: false)); CFObject.CFRelease(cfArrayRef); return result; } finally { value.Free(); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontCollectionOptionKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTFontCollectionOptionKey { public static readonly NSString RemoveDuplicates; static CTFontCollectionOptionKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { RemoveDuplicates = Dlfcn.GetStringConstant(intPtr, "kCTFontCollectionRemoveDuplicatesOption"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontCollectionOptions.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontCollectionOptions { public NSDictionary Dictionary { get; private set; } public bool RemoveDuplicates { get { int? int32Value = Adapter.GetInt32Value(Dictionary, CTFontCollectionOptionKey.RemoveDuplicates); if (!int32Value.HasValue) { return false; } return int32Value.Value != 0; } set { int? value2 = (value ? new int?(1) : null); Adapter.SetValue(Dictionary, CTFontCollectionOptionKey.RemoveDuplicates, value2); } } public CTFontCollectionOptions() : this(new NSMutableDictionary()) { } public CTFontCollectionOptions(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontDescriptor.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontDescriptor : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; internal CTFontDescriptor(IntPtr handle) : this(handle, owns: false) { } internal CTFontDescriptor(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTFontDescriptor() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateWithNameAndSize(IntPtr name, double size); public CTFontDescriptor(string name, double size) { if (name == null) { throw ConstructorError.ArgumentNull(this, "name"); } using (CFString cFString = (CFString)name) { handle = CTFontDescriptorCreateWithNameAndSize(cFString.Handle, size); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateWithAttributes(IntPtr attributes); public CTFontDescriptor(CTFontDescriptorAttributes attributes) { if (attributes == null) { throw ConstructorError.ArgumentNull(this, "attributes"); } handle = CTFontDescriptorCreateWithAttributes(attributes.Dictionary.Handle); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateCopyWithAttributes(IntPtr original, IntPtr attributes); public CTFontDescriptor WithAttributes(NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return CreateDescriptor(CTFontDescriptorCreateCopyWithAttributes(handle, attributes.Handle)); } private static CTFontDescriptor CreateDescriptor(IntPtr h) { if (h == IntPtr.Zero) { return null; } return new CTFontDescriptor(h, owns: true); } public CTFontDescriptor WithAttributes(CTFontDescriptorAttributes attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return CreateDescriptor(CTFontDescriptorCreateCopyWithAttributes(handle, attributes.Dictionary.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateCopyWithVariation(IntPtr original, IntPtr variationIdentifier, double variationValue); public CTFontDescriptor WithVariation(uint variationIdentifier, double variationValue) { using NSNumber nSNumber = new NSNumber(variationIdentifier); return CreateDescriptor(CTFontDescriptorCreateCopyWithVariation(handle, nSNumber.Handle, variationValue)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateCopyWithFeature(IntPtr original, IntPtr featureTypeIdentifier, IntPtr featureSelectorIdentifier); [Advice("Use WithFeature with specific selector")] public CTFontDescriptor WithFeature(NSNumber featureTypeIdentifier, NSNumber featureSelectorIdentifier) { if (featureTypeIdentifier == null) { throw new ArgumentNullException("featureTypeIdentifier"); } if (featureSelectorIdentifier == null) { throw new ArgumentNullException("featureSelectorIdentifier"); } return CreateDescriptor(CTFontDescriptorCreateCopyWithFeature(handle, featureTypeIdentifier.Handle, featureSelectorIdentifier.Handle)); } public CTFontDescriptor WithFeature(CTFontFeatureAllTypographicFeatures.Selector featureSelector) { return WithFeature(FontFeatureGroup.AllTypographicFeatures, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureLigatures.Selector featureSelector) { return WithFeature(FontFeatureGroup.Ligatures, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCursiveConnection.Selector featureSelector) { return WithFeature(FontFeatureGroup.CursiveConnection, (int)featureSelector); } [Obsolete("Deprecated")] public CTFontDescriptor WithFeature(CTFontFeatureLetterCase.Selector featureSelector) { return WithFeature(FontFeatureGroup.LetterCase, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureVerticalSubstitutionConnection.Selector featureSelector) { return WithFeature(FontFeatureGroup.VerticalSubstitution, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureLinguisticRearrangementConnection.Selector featureSelector) { return WithFeature(FontFeatureGroup.LinguisticRearrangement, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureNumberSpacing.Selector featureSelector) { return WithFeature(FontFeatureGroup.NumberSpacing, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureSmartSwash.Selector featureSelector) { return WithFeature(FontFeatureGroup.SmartSwash, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureDiacritics.Selector featureSelector) { return WithFeature(FontFeatureGroup.Diacritics, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureVerticalPosition.Selector featureSelector) { return WithFeature(FontFeatureGroup.VerticalPosition, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureFractions.Selector featureSelector) { return WithFeature(FontFeatureGroup.Fractions, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureOverlappingCharacters.Selector featureSelector) { return WithFeature(FontFeatureGroup.OverlappingCharacters, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureTypographicExtras.Selector featureSelector) { return WithFeature(FontFeatureGroup.TypographicExtras, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureMathematicalExtras.Selector featureSelector) { return WithFeature(FontFeatureGroup.MathematicalExtras, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureOrnamentSets.Selector featureSelector) { return WithFeature(FontFeatureGroup.OrnamentSets, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCharacterAlternatives.Selector featureSelector) { return WithFeature(FontFeatureGroup.CharacterAlternatives, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureDesignComplexity.Selector featureSelector) { return WithFeature(FontFeatureGroup.DesignComplexity, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureStyleOptions.Selector featureSelector) { return WithFeature(FontFeatureGroup.StyleOptions, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCharacterShape.Selector featureSelector) { return WithFeature(FontFeatureGroup.CharacterShape, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureNumberCase.Selector featureSelector) { return WithFeature(FontFeatureGroup.NumberCase, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureTextSpacing.Selector featureSelector) { return WithFeature(FontFeatureGroup.TextSpacing, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureTransliteration.Selector featureSelector) { return WithFeature(FontFeatureGroup.Transliteration, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureAnnotation.Selector featureSelector) { return WithFeature(FontFeatureGroup.Annotation, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureKanaSpacing.Selector featureSelector) { return WithFeature(FontFeatureGroup.KanaSpacing, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureIdeographicSpacing.Selector featureSelector) { return WithFeature(FontFeatureGroup.IdeographicSpacing, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureUnicodeDecomposition.Selector featureSelector) { return WithFeature(FontFeatureGroup.UnicodeDecomposition, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureRubyKana.Selector featureSelector) { return WithFeature(FontFeatureGroup.RubyKana, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCJKSymbolAlternatives.Selector featureSelector) { return WithFeature(FontFeatureGroup.CJKSymbolAlternatives, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureIdeographicAlternatives.Selector featureSelector) { return WithFeature(FontFeatureGroup.IdeographicAlternatives, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCJKVerticalRomanPlacement.Selector featureSelector) { return WithFeature(FontFeatureGroup.CJKVerticalRomanPlacement, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureItalicCJKRoman.Selector featureSelector) { return WithFeature(FontFeatureGroup.ItalicCJKRoman, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCaseSensitiveLayout.Selector featureSelector) { return WithFeature(FontFeatureGroup.CaseSensitiveLayout, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureAlternateKana.Selector featureSelector) { return WithFeature(FontFeatureGroup.AlternateKana, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureStylisticAlternatives.Selector featureSelector) { return WithFeature(FontFeatureGroup.StylisticAlternatives, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureContextualAlternates.Selector featureSelector) { return WithFeature(FontFeatureGroup.ContextualAlternates, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureLowerCase.Selector featureSelector) { return WithFeature(FontFeatureGroup.LowerCase, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureUpperCase.Selector featureSelector) { return WithFeature(FontFeatureGroup.UpperCase, (int)featureSelector); } public CTFontDescriptor WithFeature(CTFontFeatureCJKRomanSpacing.Selector featureSelector) { return WithFeature(FontFeatureGroup.CJKRomanSpacing, (int)featureSelector); } private CTFontDescriptor WithFeature(FontFeatureGroup featureGroup, int featureSelector) { using NSNumber nSNumber = new NSNumber((int)featureGroup); using NSNumber nSNumber2 = new NSNumber(featureSelector); return CreateDescriptor(CTFontDescriptorCreateCopyWithFeature(handle, nSNumber.Handle, nSNumber2.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateMatchingFontDescriptors(IntPtr descriptor, IntPtr mandatoryAttributes); public CTFontDescriptor[] GetMatchingFontDescriptors(NSSet mandatoryAttributes) { IntPtr cfArrayRef = CTFontDescriptorCreateMatchingFontDescriptors(handle, mandatoryAttributes?.Handle ?? IntPtr.Zero); if (cfArrayRef == IntPtr.Zero) { return new CTFontDescriptor[0]; } CTFontDescriptor[] result = NSArray.ArrayFromHandle(cfArrayRef, (IntPtr fd) => new CTFontDescriptor(cfArrayRef, owns: false)); CFObject.CFRelease(cfArrayRef); return result; } public CTFontDescriptor[] GetMatchingFontDescriptors(params NSString[] mandatoryAttributes) { NSSet mandatoryAttributes2 = NSSet.MakeNSObjectSet(mandatoryAttributes); return GetMatchingFontDescriptors(mandatoryAttributes2); } public CTFontDescriptor[] GetMatchingFontDescriptors() { NSSet mandatoryAttributes = null; return GetMatchingFontDescriptors(mandatoryAttributes); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCreateMatchingFontDescriptor(IntPtr descriptor, IntPtr mandatoryAttributes); public CTFontDescriptor GetMatchingFontDescriptor(NSSet mandatoryAttributes) { return CreateDescriptor(CTFontDescriptorCreateMatchingFontDescriptors(handle, mandatoryAttributes?.Handle ?? IntPtr.Zero)); } public CTFontDescriptor GetMatchingFontDescriptor(params NSString[] mandatoryAttributes) { NSSet mandatoryAttributes2 = NSSet.MakeNSObjectSet(mandatoryAttributes); return GetMatchingFontDescriptor(mandatoryAttributes2); } public CTFontDescriptor GetMatchingFontDescriptor() { NSSet mandatoryAttributes = null; return GetMatchingFontDescriptor(mandatoryAttributes); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCopyAttributes(IntPtr descriptor); public CTFontDescriptorAttributes GetAttributes() { IntPtr intPtr = CTFontDescriptorCopyAttributes(handle); if (intPtr == IntPtr.Zero) { return null; } NSDictionary obj = (NSDictionary)Runtime.GetNSObject(intPtr); obj.Release(); return new CTFontDescriptorAttributes(obj); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCopyAttribute(IntPtr descriptor, IntPtr attribute); public NSObject GetAttribute(NSString attribute) { if (attribute == null) { throw new ArgumentNullException("attribute"); } return Runtime.GetNSObject(CTFontDescriptorCopyAttribute(handle, attribute.Handle)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCopyLocalizedAttribute(IntPtr descriptor, IntPtr attribute, IntPtr language); public NSObject GetLocalizedAttribute(NSString attribute) { return Runtime.GetNSObject(CTFontDescriptorCopyLocalizedAttribute(handle, attribute.Handle, IntPtr.Zero)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFontDescriptorCopyLocalizedAttribute(IntPtr descriptor, IntPtr attribute, out IntPtr language); public NSObject GetLocalizedAttribute(NSString attribute, out NSString language) { IntPtr language2; NSObject nSObject = Runtime.GetNSObject(CTFontDescriptorCopyLocalizedAttribute(handle, attribute.Handle, out language2)); language = (NSString)Runtime.GetNSObject(language2); if (language2 != IntPtr.Zero) { CFObject.CFRelease(language2); } return nSObject; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontDescriptorMatchFontDescriptorsWithProgressHandler(IntPtr descriptors, IntPtr mandatoryAttributes, Func progressHandler); [Since(6, 0)] public static bool MatchFontDescriptors(CTFontDescriptor[] descriptors, NSSet mandatoryAttributes, Func progressHandler) { IntPtr mandatoryAttributes2 = mandatoryAttributes?.Handle ?? IntPtr.Zero; using CFArray cFArray = CFArray.FromNativeObjects(descriptors); return CTFontDescriptorMatchFontDescriptorsWithProgressHandler(cFArray.Handle, mandatoryAttributes2, progressHandler); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontDescriptorAttributeKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTFontDescriptorAttributeKey { public static readonly NSString Url; public static readonly NSString Name; public static readonly NSString DisplayName; public static readonly NSString FamilyName; public static readonly NSString StyleName; public static readonly NSString Traits; public static readonly NSString Variation; public static readonly NSString Size; public static readonly NSString Matrix; public static readonly NSString CascadeList; public static readonly NSString CharacterSet; public static readonly NSString Languages; public static readonly NSString BaselineAdjust; public static readonly NSString MacintoshEncodings; public static readonly NSString Features; public static readonly NSString FeatureSettings; public static readonly NSString FixedAdvance; public static readonly NSString FontOrientation; public static readonly NSString FontFormat; public static readonly NSString RegistrationScope; public static readonly NSString Priority; public static readonly NSString Enabled; static CTFontDescriptorAttributeKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Url = Dlfcn.GetStringConstant(intPtr, "kCTFontURLAttribute"); Name = Dlfcn.GetStringConstant(intPtr, "kCTFontNameAttribute"); DisplayName = Dlfcn.GetStringConstant(intPtr, "kCTFontDisplayNameAttribute"); FamilyName = Dlfcn.GetStringConstant(intPtr, "kCTFontFamilyNameAttribute"); StyleName = Dlfcn.GetStringConstant(intPtr, "kCTFontStyleNameAttribute"); Traits = Dlfcn.GetStringConstant(intPtr, "kCTFontTraitsAttribute"); Variation = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAttribute"); Size = Dlfcn.GetStringConstant(intPtr, "kCTFontSizeAttribute"); Matrix = Dlfcn.GetStringConstant(intPtr, "kCTFontMatrixAttribute"); CascadeList = Dlfcn.GetStringConstant(intPtr, "kCTFontCascadeListAttribute"); CharacterSet = Dlfcn.GetStringConstant(intPtr, "kCTFontCharacterSetAttribute"); Languages = Dlfcn.GetStringConstant(intPtr, "kCTFontLanguagesAttribute"); BaselineAdjust = Dlfcn.GetStringConstant(intPtr, "kCTFontBaselineAdjustAttribute"); MacintoshEncodings = Dlfcn.GetStringConstant(intPtr, "kCTFontMacintoshEncodingsAttribute"); Features = Dlfcn.GetStringConstant(intPtr, "kCTFontFeaturesAttribute"); FeatureSettings = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureSettingsAttribute"); FixedAdvance = Dlfcn.GetStringConstant(intPtr, "kCTFontFixedAdvanceAttribute"); FontOrientation = Dlfcn.GetStringConstant(intPtr, "kCTFontOrientationAttribute"); FontFormat = Dlfcn.GetStringConstant(intPtr, "kCTFontFormatAttribute"); RegistrationScope = Dlfcn.GetStringConstant(intPtr, "kCTFontRegistrationScopeAttribute"); Priority = Dlfcn.GetStringConstant(intPtr, "kCTFontPriorityAttribute"); Enabled = Dlfcn.GetStringConstant(intPtr, "kCTFontEnabledAttribute"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontDescriptorAttributes.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontDescriptorAttributes { public NSDictionary Dictionary { get; private set; } public NSUrl Url { get { return (NSUrl)Dictionary[CTFontDescriptorAttributeKey.Url]; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Url, value); } } public string Name { get { return Adapter.GetStringValue(Dictionary, CTFontDescriptorAttributeKey.Name); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Name, value); } } public string DisplayName { get { return Adapter.GetStringValue(Dictionary, CTFontDescriptorAttributeKey.DisplayName); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.DisplayName, value); } } public string FamilyName { get { return Adapter.GetStringValue(Dictionary, CTFontDescriptorAttributeKey.FamilyName); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.FamilyName, value); } } public string StyleName { get { return Adapter.GetStringValue(Dictionary, CTFontDescriptorAttributeKey.StyleName); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.StyleName, value); } } public CTFontTraits Traits { get { NSDictionary nSDictionary = (NSDictionary)Dictionary[CTFontDescriptorAttributeKey.Traits]; if (nSDictionary == null) { return null; } return new CTFontTraits(nSDictionary); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Traits, value?.Dictionary); } } public CTFontVariation Variation { get { NSDictionary nSDictionary = (NSDictionary)Dictionary[CTFontDescriptorAttributeKey.Variation]; if (nSDictionary != null) { return new CTFontVariation(nSDictionary); } return null; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Variation, value?.Dictionary); } } public float? Size { get { return Adapter.GetSingleValue(Dictionary, CTFontDescriptorAttributeKey.Size); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Size, value); } } public unsafe CGAffineTransform? Matrix { get { NSData nSData = (NSData)Dictionary[CTFontDescriptorAttributeKey.Matrix]; if (nSData == null) { return null; } return (CGAffineTransform)Marshal.PtrToStructure(nSData.Bytes, typeof(CGAffineTransform)); } set { if (!value.HasValue) { Adapter.SetValue((IDictionary)Dictionary, (NSObject)CTFontDescriptorAttributeKey.Matrix, (NSObject)null); return; } byte[] array = new byte[Marshal.SizeOf(typeof(CGAffineTransform))]; fixed (byte* ptr = array) { Marshal.StructureToPtr(value.Value, (IntPtr)ptr, fDeleteOld: false); } Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Matrix, NSData.FromArray(array)); } } public IEnumerable CascadeList { get { return Adapter.GetNativeArray(Dictionary, CTFontDescriptorAttributeKey.CascadeList, (IntPtr d) => new CTFontDescriptor(d, owns: false)); } set { Adapter.SetNativeValue(Dictionary, CTFontDescriptorAttributeKey.CascadeList, value); } } public NSCharacterSet CharacterSet { get { return (NSCharacterSet)Dictionary[CTFontDescriptorAttributeKey.CharacterSet]; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.CharacterSet, value); } } public IEnumerable Languages { get { return Adapter.GetStringArray(Dictionary, CTFontDescriptorAttributeKey.Languages); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Languages, value); } } public float? BaselineAdjust { get { return Adapter.GetSingleValue(Dictionary, CTFontDescriptorAttributeKey.BaselineAdjust); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.BaselineAdjust, value); } } public float? MacintoshEncodings { get { return Adapter.GetSingleValue(Dictionary, CTFontDescriptorAttributeKey.MacintoshEncodings); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.MacintoshEncodings, value); } } public IEnumerable Features { get { return Adapter.GetNativeArray(Dictionary, CTFontDescriptorAttributeKey.Features, (IntPtr d) => new CTFontFeatures((NSDictionary)Runtime.GetNSObject(d))); } set { List source; if (value == null || (source = new List(value)).Count == 0) { Adapter.SetValue((IDictionary)Dictionary, (NSObject)CTFontDescriptorAttributeKey.Features, (NSObject)null); return; } Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Features, NSArray.FromNSObjects(((IEnumerable)source).Select((Func)((CTFontFeatures e) => e.Dictionary)).ToList())); } } public IEnumerable FeatureSettings { get { return Adapter.GetNativeArray(Dictionary, CTFontDescriptorAttributeKey.Features, (IntPtr d) => new CTFontFeatureSettings((NSDictionary)Runtime.GetNSObject(d))); } set { List source; if (value == null || (source = new List(value)).Count == 0) { Adapter.SetValue((IDictionary)Dictionary, (NSObject)CTFontDescriptorAttributeKey.Features, (NSObject)null); return; } Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.FeatureSettings, NSArray.FromNSObjects(((IEnumerable)source).Select((Func)((CTFontFeatureSettings e) => e.Dictionary)).ToList())); } } public float? FixedAdvance { get { return Adapter.GetSingleValue(Dictionary, CTFontDescriptorAttributeKey.FixedAdvance); } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.FixedAdvance, value); } } public CTFontOrientation? FontOrientation { get { uint? uInt32Value = Adapter.GetUInt32Value(Dictionary, CTFontDescriptorAttributeKey.FontOrientation); if (uInt32Value.HasValue) { return (CTFontOrientation)uInt32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.FontOrientation, value.HasValue ? new uint?((uint)value.Value) : null); } } public CTFontFormat? FontFormat { get { uint? uInt32Value = Adapter.GetUInt32Value(Dictionary, CTFontDescriptorAttributeKey.FontFormat); if (uInt32Value.HasValue) { return (CTFontFormat)uInt32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.FontFormat, value.HasValue ? new uint?((uint)value.Value) : null); } } public NSNumber RegistrationScope { get { return (NSNumber)Dictionary[CTFontDescriptorAttributeKey.RegistrationScope]; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.RegistrationScope, value); } } public CTFontPriority? Priority { get { uint? uInt32Value = Adapter.GetUInt32Value(Dictionary, CTFontDescriptorAttributeKey.Priority); if (uInt32Value.HasValue) { return (CTFontPriority)uInt32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Priority, value.HasValue ? new uint?((uint)value.Value) : null); } } public bool Enabled { get { NSNumber nSNumber = (NSNumber)Dictionary[CTFontDescriptorAttributeKey.Enabled]; if (nSNumber == null) { return false; } return nSNumber.Int32Value != 0; } set { Adapter.SetValue(Dictionary, CTFontDescriptorAttributeKey.Enabled, value ? new NSNumber(1) : null); } } public CTFontDescriptorAttributes() : this(new NSMutableDictionary()) { } public CTFontDescriptorAttributes(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontDescriptorMatchingState.cs ================================================ namespace CoreText; public enum CTFontDescriptorMatchingState : uint { Started, Finished, WillBeginQuerying, Stalled, WillBeginDownloading, Downloading, DownloadingFinished, Matched, FailedWithError } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureAllTypographicFeatures.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureAllTypographicFeatures : CTFontFeatureSelectors { public enum Selector { AllTypeFeaturesOn, AllTypeFeaturesOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureAllTypographicFeatures(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureAlternateKana.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureAlternateKana : CTFontFeatureSelectors { public enum Selector { AlternateHorizKanaOn, AlternateHorizKanaOff, AlternateVertKanaOn, AlternateVertKanaOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureAlternateKana(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureAnnotation.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureAnnotation : CTFontFeatureSelectors { public enum Selector { NoAnnotation, BoxAnnotation, RoundedBoxAnnotation, CircleAnnotation, InvertedCircleAnnotation, ParenthesisAnnotation, PeriodAnnotation, RomanNumeralAnnotation, DiamondAnnotation, InvertedBoxAnnotation, InvertedRoundedBoxAnnotation } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureAnnotation(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCJKRomanSpacing.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCJKRomanSpacing : CTFontFeatureSelectors { public enum Selector { HalfWidthCJKRoman, ProportionalCJKRoman, DefaultCJKRoman, FullWidthCJKRoman } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCJKRomanSpacing(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCJKSymbolAlternatives.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCJKSymbolAlternatives : CTFontFeatureSelectors { public enum Selector { NoCJKSymbolAlternatives, CJKSymbolAltOne, CJKSymbolAltTwo, CJKSymbolAltThree, CJKSymbolAltFour, CJKSymbolAltFive } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCJKSymbolAlternatives(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCJKVerticalRomanPlacement.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCJKVerticalRomanPlacement : CTFontFeatureSelectors { public enum Selector { CJKVerticalRomanCentered, CJKVerticalRomanHBaseline } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCJKVerticalRomanPlacement(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCaseSensitiveLayout.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCaseSensitiveLayout : CTFontFeatureSelectors { public enum Selector { CaseSensitiveLayoutOn, CaseSensitiveLayoutOff, CaseSensitiveSpacingOn, CaseSensitiveSpacingOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCaseSensitiveLayout(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCharacterAlternatives.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCharacterAlternatives : CTFontFeatureSelectors { public enum Selector { NoAlternates } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCharacterAlternatives(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCharacterShape.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCharacterShape : CTFontFeatureSelectors { public enum Selector { TraditionalCharacters, SimplifiedCharacters, JIS1978Characters, JIS1983Characters, JIS1990Characters, TraditionalAltOne, TraditionalAltTwo, TraditionalAltThree, TraditionalAltFour, TraditionalAltFive, ExpertCharacters, JIS2004Characters, HojoCharacters, NLCCharacters, TraditionalNamesCharacters } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureCharacterShape(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureContextualAlternates.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureContextualAlternates : CTFontFeatureSelectors { public enum Selector { ContextualAlternatesOn, ContextualAlternatesOff, SwashAlternatesOn, SwashAlternatesOff, ContextualSwashAlternatesOn, ContextualSwashAlternatesOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureContextualAlternates(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureCursiveConnection.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureCursiveConnection : CTFontFeatureSelectors { public enum Selector { Unconnected, PartiallyConnected, Cursive } public Selector Feature => Feature; public CTFontFeatureCursiveConnection(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureDesignComplexity.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureDesignComplexity : CTFontFeatureSelectors { public enum Selector { DesignLevel1, DesignLevel2, DesignLevel3, DesignLevel4, DesignLevel5 } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureDesignComplexity(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureDiacritics.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureDiacritics : CTFontFeatureSelectors { public enum Selector { ShowDiacritics, HideDiacritics, DecomposeDiacritics } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureDiacritics(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureFractions.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureFractions : CTFontFeatureSelectors { public enum Selector { NoFractions, VerticalFractions, DiagonalFractions } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureFractions(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureIdeographicAlternatives.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureIdeographicAlternatives : CTFontFeatureSelectors { public enum Selector { NoIdeographicAlternatives, IdeographicAltOne, IdeographicAltTwo, IdeographicAltThree, IdeographicAltFour, IdeographicAltFive } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureIdeographicAlternatives(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureIdeographicSpacing.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureIdeographicSpacing : CTFontFeatureSelectors { public enum Selector { FullWidthIdeographs, ProportionalIdeographs, HalfWidthIdeographs } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureIdeographicSpacing(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureItalicCJKRoman.cs ================================================ using System; using Foundation; namespace CoreText; public class CTFontFeatureItalicCJKRoman : CTFontFeatureSelectors { public enum Selector { [Obsolete("Deprecated. Use CJKItalicRomanOff instead")] NoCJKItalicRoman, [Obsolete("Deprecated. Use CJKItalicRomanOn instead")] CJKItalicRoman, CJKItalicRomanOn, CJKItalicRomanOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureItalicCJKRoman(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureKanaSpacing.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureKanaSpacing : CTFontFeatureSelectors { public enum Selector { FullWidthKana, ProportionalKana } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureKanaSpacing(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontFeatureKey { public static readonly NSString Identifier; public static readonly NSString Name; public static readonly NSString Exclusive; public static readonly NSString Selectors; static CTFontFeatureKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Identifier = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureTypeIdentifierKey"); Name = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureTypeNameKey"); Exclusive = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureTypeExclusiveKey"); Selectors = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureTypeSelectorsKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureLetterCase.cs ================================================ using System; using Foundation; namespace CoreText; [Obsolete("Deprecated")] public class CTFontFeatureLetterCase : CTFontFeatureSelectors { public enum Selector { UpperAndLowerCase, AllCaps, AllLowerCase, SmallCaps, InitialCaps, InitialCapsAndSmallCaps } public Selector Feature => Feature; public CTFontFeatureLetterCase(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureLigatures.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureLigatures : CTFontFeatureSelectors { public enum Selector { RequiredLigaturesOn, RequiredLigaturesOff, CommonLigaturesOn, CommonLigaturesOff, RareLigaturesOn, RareLigaturesOff, LogosOn, LogosOff, RebusPicturesOn, RebusPicturesOff, DiphthongLigaturesOn, DiphthongLigaturesOff, SquaredLigaturesOn, SquaredLigaturesOff, AbbrevSquaredLigaturesOn, AbbrevSquaredLigaturesOff, SymbolLigaturesOn, SymbolLigaturesOff, ContextualLigaturesOn, ContextualLigaturesOff, HistoricalLigaturesOn, HistoricalLigaturesOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureLigatures(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureLinguisticRearrangementConnection.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureLinguisticRearrangementConnection : CTFontFeatureSelectors { public enum Selector { LinguisticRearrangementOn, LinguisticRearrangementOff } public Selector Feature => Feature; public CTFontFeatureLinguisticRearrangementConnection(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureLowerCase.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureLowerCase : CTFontFeatureSelectors { public enum Selector { DefaultLowerCase, LowerCaseSmallCaps, LowerCasePetiteCaps } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureLowerCase(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureMathematicalExtras.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureMathematicalExtras : CTFontFeatureSelectors { public enum Selector { HyphenToMinusOn, HyphenToMinusOff, AsteriskToMultiplyOn, AsteriskToMultiplyOff, SlashToDivideOn, SlashToDivideOff, InequalityLigaturesOn, InequalityLigaturesOff, ExponentsOn, ExponentsOff, MathematicalGreekOn, MathematicalGreekOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureMathematicalExtras(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureNumberCase.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureNumberCase : CTFontFeatureSelectors { public enum Selector { LowerCaseNumbers, UpperCaseNumbers } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureNumberCase(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureNumberSpacing.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureNumberSpacing : CTFontFeatureSelectors { public enum Selector { MonospacedNumbers, ProportionalNumbers, ThirdWidthNumbers, QuarterWidthNumbers } public Selector Feature => Feature; public CTFontFeatureNumberSpacing(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureOrnamentSets.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureOrnamentSets : CTFontFeatureSelectors { public enum Selector { NoOrnaments, Dingbats, PiCharacters, Fleurons, DecorativeBorders, InternationalSymbols, MathSymbols } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureOrnamentSets(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureOverlappingCharacters.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureOverlappingCharacters : CTFontFeatureSelectors { public enum Selector { PreventOverlapOn, PreventOverlapOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureOverlappingCharacters(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureRubyKana.cs ================================================ using System; using Foundation; namespace CoreText; public class CTFontFeatureRubyKana : CTFontFeatureSelectors { public enum Selector { [Obsolete("Deprecated. Use RubyKanaOn instead")] NoRubyKana, [Obsolete("Deprecated. Use RubyKanaOff instead")] RubyKana, RubyKanaOn, RubyKanaOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureRubyKana(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureSelectorKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontFeatureSelectorKey { public static readonly NSString Identifier; public static readonly NSString Name; public static readonly NSString Default; public static readonly NSString Setting; static CTFontFeatureSelectorKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Identifier = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureSelectorIdentifierKey"); Name = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureSelectorNameKey"); Default = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureSelectorDefaultKey"); Setting = Dlfcn.GetStringConstant(intPtr, "kCTFontFeatureSelectorSettingKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureSelectors.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontFeatureSelectors { public NSDictionary Dictionary { get; private set; } [Advice("Use one of descendant classes")] public NSNumber Identifier { get { return (NSNumber)Dictionary[CTFontFeatureSelectorKey.Identifier]; } set { Adapter.SetValue(Dictionary, CTFontFeatureSelectorKey.Identifier, value); } } protected int FeatureWeak => (int)(NSNumber)Dictionary[CTFontFeatureSelectorKey.Identifier]; public string Name { get { return Adapter.GetStringValue(Dictionary, CTFontFeatureSelectorKey.Name); } set { Adapter.SetValue(Dictionary, CTFontFeatureSelectorKey.Name, value); } } public bool Default { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTFontFeatureSelectorKey.Default.Handle); } set { CFMutableDictionary.SetValue(Dictionary.Handle, CTFontFeatureSelectorKey.Default.Handle, value); } } public bool Setting { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTFontFeatureSelectorKey.Setting.Handle); } set { CFMutableDictionary.SetValue(Dictionary.Handle, CTFontFeatureSelectorKey.Setting.Handle, value); } } public CTFontFeatureSelectors() : this(new NSMutableDictionary()) { } public CTFontFeatureSelectors(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } internal static CTFontFeatureSelectors Create(FontFeatureGroup featureGroup, NSDictionary dictionary) { return featureGroup switch { FontFeatureGroup.AllTypographicFeatures => new CTFontFeatureAllTypographicFeatures(dictionary), FontFeatureGroup.Ligatures => new CTFontFeatureLigatures(dictionary), FontFeatureGroup.CursiveConnection => new CTFontFeatureCursiveConnection(dictionary), FontFeatureGroup.LetterCase => new CTFontFeatureLetterCase(dictionary), FontFeatureGroup.VerticalSubstitution => new CTFontFeatureVerticalSubstitutionConnection(dictionary), FontFeatureGroup.LinguisticRearrangement => new CTFontFeatureLinguisticRearrangementConnection(dictionary), FontFeatureGroup.NumberSpacing => new CTFontFeatureNumberSpacing(dictionary), FontFeatureGroup.SmartSwash => new CTFontFeatureSmartSwash(dictionary), FontFeatureGroup.Diacritics => new CTFontFeatureDiacritics(dictionary), FontFeatureGroup.VerticalPosition => new CTFontFeatureVerticalPosition(dictionary), FontFeatureGroup.Fractions => new CTFontFeatureFractions(dictionary), FontFeatureGroup.OverlappingCharacters => new CTFontFeatureOverlappingCharacters(dictionary), FontFeatureGroup.TypographicExtras => new CTFontFeatureTypographicExtras(dictionary), FontFeatureGroup.MathematicalExtras => new CTFontFeatureMathematicalExtras(dictionary), FontFeatureGroup.OrnamentSets => new CTFontFeatureOrnamentSets(dictionary), FontFeatureGroup.CharacterAlternatives => new CTFontFeatureCharacterAlternatives(dictionary), FontFeatureGroup.DesignComplexity => new CTFontFeatureDesignComplexity(dictionary), FontFeatureGroup.StyleOptions => new CTFontFeatureStyleOptions(dictionary), FontFeatureGroup.CharacterShape => new CTFontFeatureCharacterShape(dictionary), FontFeatureGroup.NumberCase => new CTFontFeatureNumberCase(dictionary), FontFeatureGroup.TextSpacing => new CTFontFeatureTextSpacing(dictionary), FontFeatureGroup.Transliteration => new CTFontFeatureTransliteration(dictionary), FontFeatureGroup.Annotation => new CTFontFeatureAnnotation(dictionary), FontFeatureGroup.KanaSpacing => new CTFontFeatureKanaSpacing(dictionary), FontFeatureGroup.IdeographicSpacing => new CTFontFeatureIdeographicSpacing(dictionary), FontFeatureGroup.UnicodeDecomposition => new CTFontFeatureUnicodeDecomposition(dictionary), FontFeatureGroup.RubyKana => new CTFontFeatureRubyKana(dictionary), FontFeatureGroup.CJKSymbolAlternatives => new CTFontFeatureCJKSymbolAlternatives(dictionary), FontFeatureGroup.IdeographicAlternatives => new CTFontFeatureIdeographicAlternatives(dictionary), FontFeatureGroup.CJKVerticalRomanPlacement => new CTFontFeatureCJKVerticalRomanPlacement(dictionary), FontFeatureGroup.ItalicCJKRoman => new CTFontFeatureItalicCJKRoman(dictionary), FontFeatureGroup.CaseSensitiveLayout => new CTFontFeatureCaseSensitiveLayout(dictionary), FontFeatureGroup.AlternateKana => new CTFontFeatureAlternateKana(dictionary), FontFeatureGroup.StylisticAlternatives => new CTFontFeatureStylisticAlternatives(dictionary), FontFeatureGroup.ContextualAlternates => new CTFontFeatureContextualAlternates(dictionary), FontFeatureGroup.LowerCase => new CTFontFeatureLowerCase(dictionary), FontFeatureGroup.UpperCase => new CTFontFeatureUpperCase(dictionary), FontFeatureGroup.CJKRomanSpacing => new CTFontFeatureCJKRomanSpacing(dictionary), _ => new CTFontFeatureSelectors(dictionary), }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureSettings.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontFeatureSettings { public NSDictionary Dictionary { get; private set; } [Advice("Use FeatureGroup property instead")] public NSNumber TypeIdentifier { get { return (NSNumber)Dictionary[CTFontFeatureKey.Identifier]; } set { Adapter.SetValue(Dictionary, CTFontFeatureKey.Identifier, value); } } public FontFeatureGroup FeatureGroup => (FontFeatureGroup)(int)(NSNumber)Dictionary[CTFontFeatureKey.Identifier]; [Advice("Use FeatureWeak or FeatureGroup instead")] public NSNumber SelectorIdentifier { get { return (NSNumber)Dictionary[CTFontFeatureSelectorKey.Identifier]; } set { Adapter.SetValue(Dictionary, CTFontFeatureSelectorKey.Identifier, value); } } public int FeatureWeak => (int)(NSNumber)Dictionary[CTFontFeatureSelectorKey.Identifier]; public CTFontFeatureSettings(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureSmartSwash.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureSmartSwash : CTFontFeatureSelectors { public enum Selector { WordInitialSwashesOn, WordInitialSwashesOff, WordFinalSwashesOn, WordFinalSwashesOff, LineInitialSwashesOn, LineInitialSwashesOff, LineFinalSwashesOn, LineFinalSwashesOff, NonFinalSwashesOn, NonFinalSwashesOff } public Selector Feature => Feature; public CTFontFeatureSmartSwash(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureStyleOptions.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureStyleOptions : CTFontFeatureSelectors { public enum Selector { NoStyleOptions, DisplayText, EngravedText, IlluminatedCaps, TitlingCaps, TallCaps } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureStyleOptions(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureStylisticAlternatives.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureStylisticAlternatives : CTFontFeatureSelectors { public enum Selector { NoStylisticAlternates = 0, StylisticAltOneOn = 2, StylisticAltOneOff = 3, StylisticAltTwoOn = 4, StylisticAltTwoOff = 5, StylisticAltThreeOn = 6, StylisticAltThreeOff = 7, StylisticAltFourOn = 8, StylisticAltFourOff = 9, StylisticAltFiveOn = 10, StylisticAltFiveOff = 11, StylisticAltSixOn = 12, StylisticAltSixOff = 13, StylisticAltSevenOn = 14, StylisticAltSevenOff = 15, StylisticAltEightOn = 16, StylisticAltEightOff = 17, StylisticAltNineOn = 18, StylisticAltNineOff = 19, StylisticAltTenOn = 20, StylisticAltTenOff = 21, StylisticAltElevenOn = 22, StylisticAltElevenOff = 23, StylisticAltTwelveOn = 24, StylisticAltTwelveOff = 25, StylisticAltThirteenOn = 26, StylisticAltThirteenOff = 27, StylisticAltFourteenOn = 28, StylisticAltFourteenOff = 29, StylisticAltFifteenOn = 30, StylisticAltFifteenOff = 31, StylisticAltSixteenOn = 32, StylisticAltSixteenOff = 33, StylisticAltSeventeenOn = 34, StylisticAltSeventeenOff = 35, StylisticAltEighteenOn = 36, StylisticAltEighteenOff = 37, StylisticAltNineteenOn = 38, StylisticAltNineteenOff = 39, StylisticAltTwentyOn = 40, StylisticAltTwentyOff = 41 } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureStylisticAlternatives(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureTextSpacing.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureTextSpacing : CTFontFeatureSelectors { public enum Selector { ProportionalText, MonospacedText, HalfWidthText, ThirdWidthText, QuarterWidthText, AltProportionalText, AltHalfWidthText } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureTextSpacing(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureTransliteration.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureTransliteration : CTFontFeatureSelectors { public enum Selector { NoTransliteration, HanjaToHangul, HiraganaToKatakana, KatakanaToHiragana, KanaToRomanization, RomanizationToHiragana, RomanizationToKatakana, HanjaToHangulAltOne, HanjaToHangulAltTwo, HanjaToHangulAltThree } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureTransliteration(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureTypographicExtras.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureTypographicExtras : CTFontFeatureSelectors { public enum Selector { HyphensToEmDashOn, HyphensToEmDashOff, HyphenToEnDashOn, HyphenToEnDashOff, SlashedZeroOn, SlashedZeroOff, FormInterrobangOn, FormInterrobangOff, SmartQuotesOn, SmartQuotesOff, PeriodsToEllipsisOn, PeriodsToEllipsisOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureTypographicExtras(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureUnicodeDecomposition.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureUnicodeDecomposition : CTFontFeatureSelectors { public enum Selector { CanonicalCompositionOn, CanonicalCompositionOff, CompatibilityCompositionOn, CompatibilityCompositionOff, TranscodingCompositionOn, TranscodingCompositionOff } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureUnicodeDecomposition(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureUpperCase.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureUpperCase : CTFontFeatureSelectors { public enum Selector { DefaultUpperCase, UpperCaseSmallCaps, UpperCasePetiteCaps } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureUpperCase(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureVerticalPosition.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureVerticalPosition : CTFontFeatureSelectors { public enum Selector { NormalPosition, Superiors, Inferiors, Ordinals, ScientificInferiors } public Selector Feature => (Selector)base.FeatureWeak; public CTFontFeatureVerticalPosition(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatureVerticalSubstitutionConnection.cs ================================================ using Foundation; namespace CoreText; public class CTFontFeatureVerticalSubstitutionConnection : CTFontFeatureSelectors { public enum Selector { SubstituteVerticalFormsOn, SubstituteVerticalFormsOff } public Selector Feature => Feature; public CTFontFeatureVerticalSubstitutionConnection(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFeatures.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontFeatures { public NSDictionary Dictionary { get; private set; } [Advice("Use FeatureGroup property instead")] public NSNumber Identifier { get { return (NSNumber)Dictionary[CTFontFeatureKey.Identifier]; } set { Adapter.SetValue(Dictionary, CTFontFeatureKey.Identifier, value); } } public string Name { get { return Adapter.GetStringValue(Dictionary, CTFontFeatureKey.Name); } set { Adapter.SetValue(Dictionary, CTFontFeatureKey.Name, value); } } public FontFeatureGroup FeatureGroup => (FontFeatureGroup)(int)(NSNumber)Dictionary[CTFontFeatureKey.Identifier]; public bool Exclusive { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTFontFeatureKey.Exclusive.Handle); } set { CFMutableDictionary.SetValue(Dictionary.Handle, CTFontFeatureKey.Exclusive.Handle, value); } } public IEnumerable Selectors { get { return Adapter.GetNativeArray(Dictionary, CTFontFeatureKey.Selectors, (IntPtr d) => CTFontFeatureSelectors.Create(FeatureGroup, (NSDictionary)Runtime.GetNSObject(d))); } set { List source; if (value == null || (source = new List(value)).Count == 0) { Adapter.SetValue((IDictionary)Dictionary, (NSObject)CTFontFeatureKey.Selectors, (NSObject)null); return; } Adapter.SetValue(Dictionary, CTFontFeatureKey.Selectors, NSArray.FromNSObjects(((IEnumerable)source).Select((Func)((CTFontFeatureSelectors e) => e.Dictionary)).ToList())); } } public CTFontFeatures() : this(new NSMutableDictionary()) { } public CTFontFeatures(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontFormat.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontFormat : uint { Unrecognized, OpenTypePostScript, OpenTypeTrueType, TrueType, PostScript, Bitmap } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontManager.cs ================================================ using System; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(4, 1)] public class CTFontManager { public static readonly NSString ErrorDomain; public static readonly NSString ErrorFontUrlsKey; [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerIsSupportedFont(IntPtr url); public static bool IsFontSupported(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return CTFontManagerIsSupportedFont(url.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerRegisterFontsForURL(IntPtr fontUrl, CTFontManagerScope scope, IntPtr error); public static NSError RegisterFontsForUrl(NSUrl fontUrl, CTFontManagerScope scope) { if (fontUrl == null) { throw new ArgumentNullException("fontUrl"); } NSError nSError = new NSError(ErrorDomain, 0); if (CTFontManagerRegisterFontsForURL(fontUrl.Handle, scope, nSError.Handle)) { return null; } return nSError; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerRegisterFontsForURLs(IntPtr arrayRef, CTFontManagerScope scope, IntPtr error); public static NSError[] RegisterFontsForUrl(NSUrl[] fontUrls, CTFontManagerScope scope) { if (fontUrls == null) { throw new ArgumentNullException("fontUrls"); } for (int i = 0; i < fontUrls.Length; i++) { if (fontUrls[i] == null) { throw new ArgumentException("contains a null entry", "fontUrls"); } } NSArray nSArray = NSArray.FromNSObjects(fontUrls); NSError[] array = new NSError[fontUrls.Length]; for (int j = 0; j < fontUrls.Length; j++) { array[j] = new NSError(ErrorDomain, 0); } NSArray nSArray2 = NSArray.FromNSObjects(array); if (CTFontManagerRegisterFontsForURLs(nSArray.Handle, scope, nSArray2.Handle)) { return null; } return array; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerUnregisterFontsForURL(IntPtr fotUrl, CTFontManagerScope scope, IntPtr error); public static NSError UnregisterFontsForUrl(NSUrl fontUrl, CTFontManagerScope scope) { if (fontUrl == null) { throw new ArgumentNullException("fontUrl"); } NSError nSError = new NSError(ErrorDomain, 0); if (CTFontManagerUnregisterFontsForURLs(fontUrl.Handle, scope, nSError.Handle)) { return null; } return nSError; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerUnregisterFontsForURLs(IntPtr arrayRef, CTFontManagerScope scope, IntPtr error); public static NSError[] UnregisterFontsForUrl(NSUrl[] fontUrls, CTFontManagerScope scope) { if (fontUrls == null) { throw new ArgumentNullException("fontUrls"); } for (int i = 0; i < fontUrls.Length; i++) { if (fontUrls[i] == null) { throw new ArgumentException("contains a null entry", "fontUrls"); } } NSArray nSArray = NSArray.FromNSObjects(fontUrls); NSError[] array = new NSError[fontUrls.Length]; for (int j = 0; j < fontUrls.Length; j++) { array[j] = new NSError(ErrorDomain, 0); } NSArray nSArray2 = NSArray.FromNSObjects(array); if (CTFontManagerUnregisterFontsForURLs(nSArray.Handle, scope, nSArray2.Handle)) { return null; } return array; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerRegisterGraphicsFont(IntPtr cgfont, out IntPtr error); public static bool RegisterGraphicsFont(CGFont font, out NSError error) { if (font == null) { throw new ArgumentNullException("font"); } IntPtr error2; bool num = CTFontManagerRegisterGraphicsFont(font.Handle, out error2); if (num) { error = null; return num; } error = new NSError(error2); return num; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern bool CTFontManagerUnregisterGraphicsFont(IntPtr cgfont, out IntPtr error); public static bool UnregisterGraphicsFont(CGFont font, out NSError error) { if (font == null) { throw new ArgumentNullException("font"); } IntPtr error2; bool num = CTFontManagerUnregisterGraphicsFont(font.Handle, out error2); if (num) { error = null; return num; } error = new NSError(error2); return num; } static CTFontManager() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { ErrorDomain = Dlfcn.GetStringConstant(intPtr, "kCTFontManagerErrorDomain"); ErrorFontUrlsKey = Dlfcn.GetStringConstant(intPtr, "kCTFontManagerErrorFontURLsKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontManagerAutoActivation.cs ================================================ namespace CoreText; public enum CTFontManagerAutoActivation { Default, Disabled, Enabled, PromptUser } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontManagerError.cs ================================================ namespace CoreText; public enum CTFontManagerError { None = 0, FileNotFount = 101, InsufficientPermissions = 102, UnrecognizedFormat = 103, InvalidFontData = 104, AlreadyRegistered = 105, NotRegistered = 201, InUse = 202, SystemRequired = 202 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontManagerScope.cs ================================================ namespace CoreText; public enum CTFontManagerScope { None, Process, User, Session } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontNameKey.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontNameKey { Copyright, Family, SubFamily, Style, Unique, Full, Version, PostScript, Trademark, Manufacturer, Designer, Description, VendorUrl, DesignerUrl, License, LicenseUrl, SampleText, PostscriptCid } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontNameKeyId.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; internal static class CTFontNameKeyId { public static readonly NSString Copyright; public static readonly NSString Family; public static readonly NSString SubFamily; public static readonly NSString Style; public static readonly NSString Unique; public static readonly NSString Full; public static readonly NSString Version; public static readonly NSString PostScript; public static readonly NSString Trademark; public static readonly NSString Manufacturer; public static readonly NSString Designer; public static readonly NSString Description; public static readonly NSString VendorUrl; public static readonly NSString DesignerUrl; public static readonly NSString License; public static readonly NSString LicenseUrl; public static readonly NSString SampleText; public static readonly NSString PostscriptCid; static CTFontNameKeyId() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Copyright = Dlfcn.GetStringConstant(intPtr, "kCTFontCopyrightNameKey"); Family = Dlfcn.GetStringConstant(intPtr, "kCTFontFamilyNameKey"); SubFamily = Dlfcn.GetStringConstant(intPtr, "kCTFontSubFamilyNameKey"); Style = Dlfcn.GetStringConstant(intPtr, "kCTFontStyleNameKey"); Unique = Dlfcn.GetStringConstant(intPtr, "kCTFontUniqueNameKey"); Full = Dlfcn.GetStringConstant(intPtr, "kCTFontFullNameKey"); Version = Dlfcn.GetStringConstant(intPtr, "kCTFontVersionNameKey"); PostScript = Dlfcn.GetStringConstant(intPtr, "kCTFontPostScriptNameKey"); Trademark = Dlfcn.GetStringConstant(intPtr, "kCTFontTrademarkNameKey"); Manufacturer = Dlfcn.GetStringConstant(intPtr, "kCTFontManufacturerNameKey"); Designer = Dlfcn.GetStringConstant(intPtr, "kCTFontDesignerNameKey"); Description = Dlfcn.GetStringConstant(intPtr, "kCTFontDescriptionNameKey"); VendorUrl = Dlfcn.GetStringConstant(intPtr, "kCTFontVendorURLNameKey"); DesignerUrl = Dlfcn.GetStringConstant(intPtr, "kCTFontDesignerURLNameKey"); License = Dlfcn.GetStringConstant(intPtr, "kCTFontLicenseNameKey"); LicenseUrl = Dlfcn.GetStringConstant(intPtr, "kCTFontLicenseURLNameKey"); SampleText = Dlfcn.GetStringConstant(intPtr, "kCTFontSampleTextNameKey"); PostscriptCid = Dlfcn.GetStringConstant(intPtr, "kCTFontPostScriptCIDNameKey"); } finally { Dlfcn.dlclose(intPtr); } } public static NSString ToId(CTFontNameKey key) { return key switch { CTFontNameKey.Copyright => Copyright, CTFontNameKey.Family => Family, CTFontNameKey.SubFamily => SubFamily, CTFontNameKey.Style => Style, CTFontNameKey.Unique => Unique, CTFontNameKey.Full => Full, CTFontNameKey.Version => Version, CTFontNameKey.PostScript => PostScript, CTFontNameKey.Trademark => Trademark, CTFontNameKey.Manufacturer => Manufacturer, CTFontNameKey.Designer => Designer, CTFontNameKey.Description => Description, CTFontNameKey.VendorUrl => VendorUrl, CTFontNameKey.DesignerUrl => DesignerUrl, CTFontNameKey.License => License, CTFontNameKey.LicenseUrl => LicenseUrl, CTFontNameKey.SampleText => SampleText, CTFontNameKey.PostscriptCid => PostscriptCid, _ => throw new NotSupportedException("Invalid CTFontNameKey value: " + key), }; } public static CTFontNameKey ToFontNameKey(NSString key) { if (key == Copyright) { return CTFontNameKey.Copyright; } if (key == Family) { return CTFontNameKey.Family; } if (key == SubFamily) { return CTFontNameKey.SubFamily; } if (key == Style) { return CTFontNameKey.Style; } if (key == Unique) { return CTFontNameKey.Unique; } if (key == Full) { return CTFontNameKey.Full; } if (key == Version) { return CTFontNameKey.Version; } if (key == PostScript) { return CTFontNameKey.PostScript; } if (key == Trademark) { return CTFontNameKey.Trademark; } if (key == Manufacturer) { return CTFontNameKey.Manufacturer; } if (key == Designer) { return CTFontNameKey.Designer; } if (key == Description) { return CTFontNameKey.Description; } if (key == VendorUrl) { return CTFontNameKey.VendorUrl; } if (key == DesignerUrl) { return CTFontNameKey.DesignerUrl; } if (key == License) { return CTFontNameKey.License; } if (key == LicenseUrl) { return CTFontNameKey.LicenseUrl; } if (key == SampleText) { return CTFontNameKey.SampleText; } if (key == PostscriptCid) { return CTFontNameKey.PostscriptCid; } throw new NotSupportedException("Invalid CTFontNameKeyId value: " + key); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontOptions.cs ================================================ using System; using ObjCRuntime; namespace CoreText; [Since(3, 2)] [Flags] public enum CTFontOptions { Default = 0, PreventAutoActivation = 1, PreferSystemFont = 4, IncludeDisabled = 0x80 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontOrientation.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontOrientation : uint { Default, Horizontal, Vertical } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontPriority.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontPriority : uint { System = 10000u, Network = 20000u, Computer = 30000u, User = 40000u, Dynamic = 50000u, Process = 60000u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontStylisticClass.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontStylisticClass : uint { None = 0u, Unknown = 0u, OldStyleSerifs = 268435456u, TransitionalSerifs = 536870912u, ModernSerifs = 805306368u, ClarendonSerifs = 1073741824u, SlabSerifs = 1342177280u, FreeformSerifs = 1879048192u, SansSerif = 2147483648u, Ornamentals = 2415919104u, Scripts = 2684354560u, Symbolic = 3221225472u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontSymbolicTraits.cs ================================================ using System; using ObjCRuntime; namespace CoreText; [Since(3, 2)] [Flags] public enum CTFontSymbolicTraits : uint { None = 0u, Italic = 1u, Bold = 2u, Expanded = 0x20u, Condensed = 0x40u, MonoSpace = 0x400u, Vertical = 0x800u, UIOptimized = 0x1000u, ColorGlyphs = 0x2000u, Composite = 0x4000u, Mask = 0xF0000000u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontTable.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontTable : uint { BaselineBASE = 1111577413u, PostscriptFontProgram = 1128678944u, DigitalSignature = 1146308935u, EmbeddedBitmap = 1161970772u, EmbeddedBitmapLocation = 1161972803u, EmbeddedBitmapScaling = 1161974595u, GlyphDefinition = 1195656518u, GlyphPositioning = 1196445523u, GlyphSubstitution = 1196643650u, JustificationJSTF = 1246975046u, LinearThreshold = 1280594760u, WindowsSpecificMetrics = 1330851634u, Pcl5Data = 1346587732u, VerticalDeviceMetrics = 1447316824u, VerticalOrigin = 1448038983u, GlyphReference = 1516335206u, AccentAttachment = 1633906292u, AxisVariation = 1635148146u, BitmapData = 1650745716u, BitmapFontHeader = 1651008868u, BitmapLocation = 1651273571u, BaselineBsln = 1651731566u, CharacterToGlyphMapping = 1668112752u, ControlValueTableVariation = 1668702578u, ControlValueTable = 1668707360u, FontDescriptor = 1717859171u, LayoutFeature = 1717920116u, FontMetrics = 1718449272u, FontProgram = 1718642541u, FontVariation = 1719034226u, GridFitting = 1734439792u, GlyphData = 1735162214u, GlyphVariation = 1735811442u, HorizontalDeviceMetrics = 1751412088u, FontHeader = 1751474532u, HorizontalHeader = 1751672161u, HorizontalMetrics = 1752003704u, HorizontalStyle = 1752396921u, JustificationJust = 1786082164u, Kerning = 1801810542u, ExtendedKerning = 1801810552u, LigatureCaret = 1818452338u, IndexToLocation = 1819239265u, MaximumProfile = 1835104368u, Morph = 1836020340u, ExtendedMorph = 1836020344u, Name = 1851878757u, OpticalBounds = 1869636196u, PostScriptInformation = 1886352244u, ControlValueTableProgram = 1886545264u, Properties = 1886547824u, Tracking = 1953653099u, VerticalHeader = 1986553185u, VerticalMetrics = 1986884728u, SBitmapData = 1935829364u, SExtendedBitmapData = 1935829368u, AnchorPoints = 1634626418u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontTableOptions.cs ================================================ using System; using ObjCRuntime; namespace CoreText; [Since(3, 2)] [Flags] public enum CTFontTableOptions : uint { None = 0u, ExcludeSynthetic = 1u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontTraitKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTFontTraitKey { public static readonly NSString Symbolic; public static readonly NSString Weight; public static readonly NSString Width; public static readonly NSString Slant; static CTFontTraitKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Symbolic = Dlfcn.GetStringConstant(intPtr, "kCTFontSymbolicTrait"); Weight = Dlfcn.GetStringConstant(intPtr, "kCTFontWeightTrait"); Width = Dlfcn.GetStringConstant(intPtr, "kCTFontWidthTrait"); Slant = Dlfcn.GetStringConstant(intPtr, "kCTFontSlantTrait"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontTraits.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontTraits { internal const int ClassMaskShift = 28; internal const uint StylisticClassMask = 4026531840u; public NSDictionary Dictionary { get; private set; } public uint? Symbolic { get { return Adapter.GetUInt32Value(Dictionary, CTFontTraitKey.Symbolic); } set { Adapter.SetValue(Dictionary, CTFontTraitKey.Symbolic, value); } } public CTFontSymbolicTraits? SymbolicTraits { get { uint? symbolic = Symbolic; if (symbolic.HasValue) { return (CTFontSymbolicTraits)(symbolic.Value & 0xFFFFFFFu); } return null; } set { CTFontStylisticClass? stylisticClass = StylisticClass; Symbolic = Adapter.BitwiseOr(stylisticClass.HasValue ? new uint?((uint)stylisticClass.Value) : null, value.HasValue ? new uint?((uint)value.Value) : null); } } public CTFontStylisticClass? StylisticClass { get { uint? symbolic = Symbolic; if (symbolic.HasValue) { return (CTFontStylisticClass)(symbolic.Value & 0xF0000000u); } return null; } set { CTFontSymbolicTraits? symbolicTraits = SymbolicTraits; Symbolic = Adapter.BitwiseOr(symbolicTraits.HasValue ? new uint?((uint)symbolicTraits.Value) : null, value.HasValue ? new uint?((uint)value.Value) : null); } } public float? Weight { get { return Adapter.GetSingleValue(Dictionary, CTFontTraitKey.Weight); } set { Adapter.SetValue(Dictionary, CTFontTraitKey.Weight, value); } } public float? Width { get { return Adapter.GetSingleValue(Dictionary, CTFontTraitKey.Width); } set { Adapter.SetValue(Dictionary, CTFontTraitKey.Width, value); } } public float? Slant { get { return Adapter.GetSingleValue(Dictionary, CTFontTraitKey.Slant); } set { Adapter.SetValue(Dictionary, CTFontTraitKey.Slant, value); } } public CTFontTraits() : this(new NSMutableDictionary()) { } public CTFontTraits(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontUIFontType.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTFontUIFontType : uint { None = uint.MaxValue, User = 0u, UserFixedPitch = 1u, System = 2u, EmphasizedSystem = 3u, SmallSystem = 4u, SmallEmphasizedSystem = 5u, MiniSystem = 6u, MiniEmphasizedSystem = 7u, Views = 8u, Application = 9u, Label = 10u, MenuTitle = 11u, MenuItem = 12u, MenuItemMark = 13u, MenuItemCmdKey = 14u, WindowTitle = 15u, PushButton = 16u, UtilityWindowTitle = 17u, AlertHeader = 18u, SystemDetail = 19u, EmphasizedSystemDetail = 20u, Toolbar = 21u, SmallToolbar = 22u, Message = 23u, Palette = 24u, ToolTip = 25u, ControlContent = 26u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontVariation.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontVariation { public NSDictionary Dictionary { get; private set; } public CTFontVariation() : this(new NSMutableDictionary()) { } public CTFontVariation(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontVariationAxes.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFontVariationAxes { public NSDictionary Dictionary { get; private set; } public NSNumber Identifier { get { return (NSNumber)Dictionary[CTFontVariationAxisKey.Identifier]; } set { Adapter.SetValue(Dictionary, CTFontVariationAxisKey.Identifier, value); } } public NSNumber MinimumValue { get { return (NSNumber)Dictionary[CTFontVariationAxisKey.MinimumValue]; } set { Adapter.SetValue(Dictionary, CTFontVariationAxisKey.MinimumValue, value); } } public NSNumber MaximumValue { get { return (NSNumber)Dictionary[CTFontVariationAxisKey.MaximumValue]; } set { Adapter.SetValue(Dictionary, CTFontVariationAxisKey.MaximumValue, value); } } public NSNumber DefaultValue { get { return (NSNumber)Dictionary[CTFontVariationAxisKey.DefaultValue]; } set { Adapter.SetValue(Dictionary, CTFontVariationAxisKey.DefaultValue, value); } } public string Name { get { return Adapter.GetStringValue(Dictionary, CTFontVariationAxisKey.Name); } set { Adapter.SetValue(Dictionary, CTFontVariationAxisKey.Name, value); } } public CTFontVariationAxes() : this(new NSMutableDictionary()) { } public CTFontVariationAxes(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFontVariationAxisKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTFontVariationAxisKey { public static readonly NSString Identifier; public static readonly NSString MinimumValue; public static readonly NSString MaximumValue; public static readonly NSString DefaultValue; public static readonly NSString Name; static CTFontVariationAxisKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Identifier = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAxisIdentifierKey"); MinimumValue = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAxisMinimumValueKey"); MaximumValue = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAxisMaximumValueKey"); DefaultValue = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAxisDefaultValueKey"); Name = Dlfcn.GetStringConstant(intPtr, "kCTFontVariationAxisNameKey"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFrame.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFrame : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; internal CTFrame(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTFrame() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern NSRange CTFrameGetStringRange(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern NSRange CTFrameGetVisibleStringRange(IntPtr handle); public NSRange GetStringRange() { return CTFrameGetStringRange(handle); } public NSRange GetVisibleStringRange() { return CTFrameGetVisibleStringRange(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFrameGetPath(IntPtr handle); public CGPath GetPath() { IntPtr intPtr = CTFrameGetPath(handle); if (!(intPtr == IntPtr.Zero)) { return new CGPath(intPtr, owns: false); } return null; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFrameGetFrameAttributes(IntPtr handle); public CTFrameAttributes GetFrameAttributes() { NSDictionary nSDictionary = (NSDictionary)Runtime.GetNSObject(CTFrameGetFrameAttributes(handle)); if (nSDictionary != null) { return new CTFrameAttributes(nSDictionary); } return null; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFrameGetLines(IntPtr handle); public CTLine[] GetLines() { IntPtr intPtr = CTFrameGetLines(handle); if (intPtr == IntPtr.Zero) { return new CTLine[0]; } return NSArray.ArrayFromHandleFunc(intPtr, (IntPtr p) => new CTLine(p, owns: false)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTFrameGetLineOrigins(IntPtr handle, NSRange range, [Out] CGPoint[] origins); public void GetLineOrigins(NSRange range, CGPoint[] origins) { if (origins == null) { throw new ArgumentNullException("origins"); } if (range.Length != 0L && (ulong)origins.Length < range.Length) { throw new ArgumentException("origins must contain at least range.Length elements.", "origins"); } if (origins.Length < CFArray.GetCount(CTFrameGetLines(handle))) { throw new ArgumentException("origins must contain at least GetLines().Length elements.", "origins"); } CTFrameGetLineOrigins(handle, range, origins); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTFrameDraw(IntPtr handle, IntPtr context); public void Draw(CGContext ctx) { if (ctx == null) { throw new ArgumentNullException("ctx"); } CTFrameDraw(handle, ctx.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFrameAttributeKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTFrameAttributeKey { public static readonly NSString Progression; [Since(4, 2)] public static readonly NSString PathFillRule; [Since(4, 2)] public static readonly NSString PathWidth; [Since(4, 3)] public static readonly NSString ClippingPaths; [Since(4, 3)] public static readonly NSString PathClippingPath; static CTFrameAttributeKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Progression = Dlfcn.GetStringConstant(intPtr, "kCTFrameProgressionAttributeName"); PathFillRule = Dlfcn.GetStringConstant(intPtr, "kCTFramePathFillRuleAttributeName"); PathWidth = Dlfcn.GetStringConstant(intPtr, "kCTFramePathWidthAttributeName"); ClippingPaths = Dlfcn.GetStringConstant(intPtr, "kCTFrameClippingPathsAttributeName"); PathClippingPath = Dlfcn.GetStringConstant(intPtr, "kCTFramePathClippingPathAttributeName"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFrameAttributes.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFrameAttributes { public NSDictionary Dictionary { get; private set; } public CTFrameProgression? Progression { get { uint? uInt32Value = Adapter.GetUInt32Value(Dictionary, CTFrameAttributeKey.Progression); if (uInt32Value.HasValue) { return (CTFrameProgression)uInt32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTFrameAttributeKey.Progression, value.HasValue ? new uint?((uint)value.Value) : null); } } public CTFrameAttributes() : this(new NSMutableDictionary()) { } public CTFrameAttributes(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFramePathFillRule.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(4, 2)] public enum CTFramePathFillRule { EvenOdd, WindingNumber } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFrameProgression.cs ================================================ using System; using ObjCRuntime; namespace CoreText; [Since(3, 2)] [Flags] public enum CTFrameProgression : uint { TopToBottom = 0u, RightToLeft = 1u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTFramesetter.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTFramesetter : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; internal CTFramesetter(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTFramesetter() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFramesetterCreateWithAttributedString(IntPtr @string); public CTFramesetter(NSAttributedString value) { if (value == null) { throw ConstructorError.ArgumentNull(this, "value"); } handle = CTFramesetterCreateWithAttributedString(value.Handle); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFramesetterCreateFrame(IntPtr framesetter, NSRange stringRange, IntPtr path, IntPtr frameAttributes); public CTFrame GetFrame(NSRange stringRange, CGPath path, CTFrameAttributes frameAttributes) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = CTFramesetterCreateFrame(handle, stringRange, path.Handle, frameAttributes?.Dictionary.Handle ?? IntPtr.Zero); if (intPtr == IntPtr.Zero) { return null; } return new CTFrame(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTFramesetterGetTypesetter(IntPtr framesetter); public CTTypesetter GetTypesetter() { IntPtr intPtr = CTFramesetterGetTypesetter(handle); if (intPtr == IntPtr.Zero) { return null; } return new CTTypesetter(intPtr, owns: false); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGSize CTFramesetterSuggestFrameSizeWithConstraints(IntPtr framesetter, NSRange stringRange, IntPtr frameAttributes, CGSize constraints, out NSRange fitRange); public CGSize SuggestFrameSize(NSRange stringRange, CTFrameAttributes frameAttributes, CGSize constraints, out NSRange fitRange) { return CTFramesetterSuggestFrameSizeWithConstraints(handle, stringRange, frameAttributes?.Dictionary.Handle ?? IntPtr.Zero, constraints, out fitRange); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTGlyphInfo.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTGlyphInfo : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public string GlyphName => CFString.FetchString(CTGlyphInfoGetGlyphName(handle)); public ushort CharacterIdentifier => CTGlyphInfoGetCharacterIdentifier(handle); public CTCharacterCollection CharacterCollection => CTGlyphInfoGetCharacterCollection(handle); internal CTGlyphInfo(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTGlyphInfo() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTGlyphInfoCreateWithGlyphName(IntPtr glyphName, IntPtr font, IntPtr baseString); public CTGlyphInfo(string glyphName, CTFont font, string baseString) { if (glyphName == null) { throw ConstructorError.ArgumentNull(this, "glyphName"); } if (font == null) { throw ConstructorError.ArgumentNull(this, "font"); } if (baseString == null) { throw ConstructorError.ArgumentNull(this, "baseString"); } using (NSString nSString = new NSString(glyphName)) { using NSString nSString2 = new NSString(baseString); handle = CTGlyphInfoCreateWithGlyphName(nSString.Handle, font.Handle, nSString2.Handle); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTGlyphInfoCreateWithGlyph(ushort glyph, IntPtr font, IntPtr baseString); public CTGlyphInfo(ushort glyph, CTFont font, string baseString) { if (font == null) { throw ConstructorError.ArgumentNull(this, "font"); } if (baseString == null) { throw ConstructorError.ArgumentNull(this, "baseString"); } using (NSString nSString = new NSString(baseString)) { handle = CTGlyphInfoCreateWithGlyph(glyph, font.Handle, nSString.Handle); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTGlyphInfoCreateWithCharacterIdentifier(ushort cid, CTCharacterCollection collection, IntPtr baseString); public CTGlyphInfo(ushort cid, CTCharacterCollection collection, string baseString) { if (baseString == null) { throw ConstructorError.ArgumentNull(this, "baseString"); } using (NSString nSString = new NSString(baseString)) { handle = CTGlyphInfoCreateWithCharacterIdentifier(cid, collection, nSString.Handle); } if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTGlyphInfoGetGlyphName(IntPtr glyphInfo); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern ushort CTGlyphInfoGetCharacterIdentifier(IntPtr glyphInfo); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CTCharacterCollection CTGlyphInfoGetCharacterCollection(IntPtr glyphInfo); public override string ToString() { return GlyphName; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTLigatureFormation.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTLigatureFormation { Essential, Standard, All } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTLine.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTLine : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int GlyphCount => CTLineGetGlyphCount(handle); public NSRange StringRange => CTLineGetStringRange(handle); public double TrailingWhitespaceWidth => CTLineGetTrailingWhitespaceWidth(handle); internal CTLine(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTLine() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTLineCreateWithAttributedString(IntPtr @string); public CTLine(NSAttributedString value) { if (value == null) { throw ConstructorError.ArgumentNull(this, "value"); } handle = CTLineCreateWithAttributedString(value.Handle); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTLineCreateTruncatedLine(IntPtr line, double width, CTLineTruncation truncationType, IntPtr truncationToken); public CTLine GetTruncatedLine(double width, CTLineTruncation truncationType, CTLine truncationToken) { IntPtr intPtr = CTLineCreateTruncatedLine(handle, width, truncationType, truncationToken?.Handle ?? IntPtr.Zero); if (intPtr == IntPtr.Zero) { return null; } return new CTLine(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTLineCreateJustifiedLine(IntPtr line, double justificationFactor, double justificationWidth); public CTLine GetJustifiedLine(double justificationFactor, double justificationWidth) { IntPtr intPtr = CTLineCreateJustifiedLine(handle, justificationFactor, justificationWidth); if (intPtr == IntPtr.Zero) { return null; } return new CTLine(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTLineGetGlyphCount(IntPtr line); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTLineGetGlyphRuns(IntPtr line); public CTRun[] GetGlyphRuns() { IntPtr intPtr = CTLineGetGlyphRuns(handle); if (intPtr == IntPtr.Zero) { return new CTRun[0]; } return NSArray.ArrayFromHandle(intPtr, (IntPtr v) => new CTRun(v, owns: false)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern NSRange CTLineGetStringRange(IntPtr line); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetPenOffsetForFlush(IntPtr line, double flushFactor, double flushWidth); public double GetPenOffsetForFlush(double flushFactor, double flushWidth) { return CTLineGetPenOffsetForFlush(handle, flushFactor, flushWidth); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTLineDraw(IntPtr line, IntPtr context); public void Draw(CGContext context) { if (context == null) { throw new ArgumentNullException("context"); } CTLineDraw(handle, context.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTLineGetImageBounds(IntPtr line, IntPtr context); public CGRect GetImageBounds(CGContext context) { if (context == null) { throw new ArgumentNullException("context"); } return CTLineGetImageBounds(handle, context.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTLineGetBoundsWithOptions(IntPtr line, CTLineBoundsOptions options); [Since(6, 0)] public CGRect GetBounds(CTLineBoundsOptions options) { return CTLineGetBoundsWithOptions(handle, options); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetTypographicBounds(IntPtr line, out double ascent, out double descent, out double leading); public double GetTypographicBounds(out double ascent, out double descent, out double leading) { return CTLineGetTypographicBounds(handle, out ascent, out descent, out leading); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetTypographicBounds(IntPtr line, IntPtr ascent, IntPtr descent, IntPtr leading); public double GetTypographicBounds() { return CTLineGetTypographicBounds(handle, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetTrailingWhitespaceWidth(IntPtr line); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTLineGetStringIndexForPosition(IntPtr line, CGPoint position); public int GetStringIndexForPosition(CGPoint position) { return CTLineGetStringIndexForPosition(handle, position); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetOffsetForStringIndex(IntPtr line, int charIndex, out double secondaryOffset); public double GetOffsetForStringIndex(int charIndex, out double secondaryOffset) { return CTLineGetOffsetForStringIndex(handle, charIndex, out secondaryOffset); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTLineGetOffsetForStringIndex(IntPtr line, int charIndex, IntPtr secondaryOffset); public double GetOffsetForStringIndex(int charIndex) { return CTLineGetOffsetForStringIndex(handle, charIndex, IntPtr.Zero); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTLineBoundsOptions.cs ================================================ namespace CoreText; public enum CTLineBoundsOptions { ExcludeTypographicLeading = 1, ExcludeTypographicShifts = 2, UseHangingPunctuation = 4, UseGlyphPathBounds = 8, UseOpticalBounds = 0x10 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTLineBreakMode.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTLineBreakMode : byte { WordWrapping, CharWrapping, Clipping, TruncatingHead, TruncatingTail, TruncatingMiddle } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTLineTruncation.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTLineTruncation { Start, End, Middle } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyle.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTParagraphStyle : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public CTTextAlignment Alignment => (CTTextAlignment)GetByteValue(CTParagraphStyleSpecifier.Alignment); public CTLineBreakMode LineBreakMode => (CTLineBreakMode)GetByteValue(CTParagraphStyleSpecifier.Alignment); public CTWritingDirection BaseWritingDirection => (CTWritingDirection)GetByteValue(CTParagraphStyleSpecifier.Alignment); public float FirstLineHeadIndent => GetFloatValue(CTParagraphStyleSpecifier.FirstLineHeadIndent); public float HeadIndent => GetFloatValue(CTParagraphStyleSpecifier.HeadIndent); public float TailIndent => GetFloatValue(CTParagraphStyleSpecifier.TailIndent); public float DefaultTabInterval => GetFloatValue(CTParagraphStyleSpecifier.DefaultTabInterval); public float LineHeightMultiple => GetFloatValue(CTParagraphStyleSpecifier.LineHeightMultiple); public float MaximumLineHeight => GetFloatValue(CTParagraphStyleSpecifier.MaximumLineHeight); public float MinimumLineHeight => GetFloatValue(CTParagraphStyleSpecifier.MinimumLineHeight); public float LineSpacing => GetFloatValue(CTParagraphStyleSpecifier.LineSpacing); public float ParagraphSpacing => GetFloatValue(CTParagraphStyleSpecifier.ParagraphSpacing); public float ParagraphSpacingBefore => GetFloatValue(CTParagraphStyleSpecifier.ParagraphSpacingBefore); internal CTParagraphStyle(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTParagraphStyle() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTParagraphStyleCreate(CTParagraphStyleSetting[] settings, int settingCount); public CTParagraphStyle(CTParagraphStyleSettings settings) { handle = ((settings == null) ? CTParagraphStyleCreate(null, 0) : CreateFromSettings(settings)); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } private unsafe static IntPtr CreateFromSettings(CTParagraphStyleSettings s) { IntPtr zero = IntPtr.Zero; List specifiers = s.GetSpecifiers(); CTParagraphStyleSetting[] array = new CTParagraphStyleSetting[specifiers.Count]; CTParagraphStyleSettingValue[] array2 = new CTParagraphStyleSettingValue[specifiers.Count]; int num = 0; foreach (CTParagraphStyleSpecifierValue item in specifiers) { item.WriteValue(array2, num); array[num].spec = item.Spec; array[num].valueSize = (uint)item.ValueSize; num++; } fixed (CTParagraphStyleSettingValue* ptr = array2) { for (num = 0; num < array.Length; num++) { byte* ptr2 = &ptr[num].int8; array[num].value = (IntPtr)ptr2; } zero = CTParagraphStyleCreate(array, array.Length); } num = 0; foreach (CTParagraphStyleSpecifierValue item2 in specifiers) { item2.Dispose(array2, num); } return zero; } public CTParagraphStyle() : this(null) { } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTParagraphStyleCreateCopy(IntPtr paragraphStyle); public CTParagraphStyle Clone() { return new CTParagraphStyle(CTParagraphStyleCreateCopy(handle), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private unsafe static extern bool CTParagraphStyleGetValueForSpecifier(IntPtr paragraphStyle, CTParagraphStyleSpecifier spec, uint valueBufferSize, void* valueBuffer); public unsafe CTTextTab[] GetTabStops() { IntPtr intPtr = default(IntPtr); if (!CTParagraphStyleGetValueForSpecifier(handle, CTParagraphStyleSpecifier.TabStops, (uint)IntPtr.Size, &intPtr)) { throw new InvalidOperationException("Unable to get property value."); } if (intPtr == IntPtr.Zero) { return new CTTextTab[0]; } return NSArray.ArrayFromHandle(intPtr, (IntPtr p) => new CTTextTab(p, owns: false)); } private unsafe byte GetByteValue(CTParagraphStyleSpecifier spec) { byte result = default(byte); if (!CTParagraphStyleGetValueForSpecifier(handle, spec, 1u, &result)) { throw new InvalidOperationException("Unable to get property value."); } return result; } private unsafe float GetFloatValue(CTParagraphStyleSpecifier spec) { float result = default(float); if (!CTParagraphStyleGetValueForSpecifier(handle, spec, 4u, &result)) { throw new InvalidOperationException("Unable to get property value."); } return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSetting.cs ================================================ using System; namespace CoreText; internal struct CTParagraphStyleSetting { public CTParagraphStyleSpecifier spec; public uint valueSize; public IntPtr value; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSettingValue.cs ================================================ using System; using System.Runtime.InteropServices; namespace CoreText; [StructLayout(LayoutKind.Explicit)] internal struct CTParagraphStyleSettingValue { [FieldOffset(0)] public byte int8; [FieldOffset(0)] public float single; [FieldOffset(0)] public IntPtr pointer; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSettings.cs ================================================ using System; using System.Collections.Generic; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTParagraphStyleSettings { public IEnumerable TabStops { get; set; } public CTTextAlignment? Alignment { get; set; } public CTLineBreakMode? LineBreakMode { get; set; } public CTWritingDirection? BaseWritingDirection { get; set; } public float? FirstLineHeadIndent { get; set; } public float? HeadIndent { get; set; } public float? TailIndent { get; set; } public float? DefaultTabInterval { get; set; } public float? LineHeightMultiple { get; set; } public float? MaximumLineHeight { get; set; } public float? MinimumLineHeight { get; set; } public float? LineSpacing { get; set; } public float? ParagraphSpacing { get; set; } public float? ParagraphSpacingBefore { get; set; } public float? MaximumLineSpacing { get; set; } public float? MinimumLineSpacing { get; set; } public float? LineSpacingAdjustment { get; set; } internal List GetSpecifiers() { List list = new List(); if (TabStops != null) { list.Add(CreateValue(CTParagraphStyleSpecifier.TabStops, TabStops)); } if (Alignment.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.Alignment, (byte)Alignment.Value)); } if (LineBreakMode.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.LineBreakMode, (byte)LineBreakMode.Value)); } if (BaseWritingDirection.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.BaseWritingDirection, (byte)BaseWritingDirection.Value)); } if (FirstLineHeadIndent.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.FirstLineHeadIndent, FirstLineHeadIndent.Value)); } if (HeadIndent.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.HeadIndent, HeadIndent.Value)); } if (TailIndent.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.TailIndent, TailIndent.Value)); } if (DefaultTabInterval.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.DefaultTabInterval, DefaultTabInterval.Value)); } if (LineHeightMultiple.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.LineHeightMultiple, LineHeightMultiple.Value)); } if (MaximumLineHeight.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.MaximumLineHeight, MaximumLineHeight.Value)); } if (MinimumLineHeight.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.MinimumLineHeight, MinimumLineHeight.Value)); } if (LineSpacing.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.LineSpacing, LineSpacing.Value)); } if (ParagraphSpacing.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.ParagraphSpacing, ParagraphSpacing.Value)); } if (ParagraphSpacingBefore.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.ParagraphSpacingBefore, ParagraphSpacingBefore.Value)); } if (MaximumLineSpacing.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.MaximumLineSpacing, MaximumLineSpacing.Value)); } if (MinimumLineSpacing.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.MinimumLineSpacing, MinimumLineSpacing.Value)); } if (LineSpacingAdjustment.HasValue) { list.Add(CreateValue(CTParagraphStyleSpecifier.LineSpacingAdjustment, LineSpacingAdjustment.Value)); } return list; } private static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, IEnumerable value) { List list = new List(); foreach (CTTextTab item in value) { list.Add(item.Handle); } return new CTParagraphStyleSpecifierIntPtrsValue(spec, list.ToArray()); } private static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, byte value) { return new CTParagraphStyleSpecifierByteValue(spec, value); } private static CTParagraphStyleSpecifierValue CreateValue(CTParagraphStyleSpecifier spec, float value) { return new CTParagraphStyleSpecifierSingleValue(spec, value); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSpecifier.cs ================================================ namespace CoreText; internal enum CTParagraphStyleSpecifier : uint { Alignment, FirstLineHeadIndent, HeadIndent, TailIndent, TabStops, DefaultTabInterval, LineBreakMode, LineHeightMultiple, MaximumLineHeight, MinimumLineHeight, LineSpacing, ParagraphSpacing, ParagraphSpacingBefore, BaseWritingDirection, MaximumLineSpacing, MinimumLineSpacing, LineSpacingAdjustment, LineBoundsOptions, Count } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSpecifierByteValue.cs ================================================ namespace CoreText; internal class CTParagraphStyleSpecifierByteValue : CTParagraphStyleSpecifierValue { private byte value; internal override int ValueSize => 1; public CTParagraphStyleSpecifierByteValue(CTParagraphStyleSpecifier spec, byte value) : base(spec) { this.value = value; } internal override void WriteValue(CTParagraphStyleSettingValue[] values, int index) { values[index].int8 = value; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSpecifierIntPtrsValue.cs ================================================ using System; using CoreFoundation; namespace CoreText; internal class CTParagraphStyleSpecifierIntPtrsValue : CTParagraphStyleSpecifierValue { private CFArray value; internal override int ValueSize => IntPtr.Size; public CTParagraphStyleSpecifierIntPtrsValue(CTParagraphStyleSpecifier spec, IntPtr[] value) : base(spec) { this.value = CFArray.FromIntPtrs(value); } internal override void WriteValue(CTParagraphStyleSettingValue[] values, int index) { values[index].pointer = value.Handle; } public override void Dispose(CTParagraphStyleSettingValue[] values, int index) { values[index].pointer = IntPtr.Zero; value.Dispose(); value = null; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSpecifierSingleValue.cs ================================================ namespace CoreText; internal class CTParagraphStyleSpecifierSingleValue : CTParagraphStyleSpecifierValue { private float value; internal override int ValueSize => 4; public CTParagraphStyleSpecifierSingleValue(CTParagraphStyleSpecifier spec, float value) : base(spec) { this.value = value; } internal override void WriteValue(CTParagraphStyleSettingValue[] values, int index) { values[index].single = value; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTParagraphStyleSpecifierValue.cs ================================================ namespace CoreText; internal abstract class CTParagraphStyleSpecifierValue { internal CTParagraphStyleSpecifier Spec { get; private set; } internal abstract int ValueSize { get; } protected CTParagraphStyleSpecifierValue(CTParagraphStyleSpecifier spec) { Spec = spec; } internal abstract void WriteValue(CTParagraphStyleSettingValue[] values, int index); public virtual void Dispose(CTParagraphStyleSettingValue[] values, int index) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRun.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTRun : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public int GlyphCount => CTRunGetGlyphCount(handle); public CTRunStatus Status => CTRunGetStatus(handle); public NSRange StringRange => CTRunGetStringRange(handle); public CGAffineTransform TextMatrix => CTRunGetTextMatrix(handle); internal CTRun(IntPtr handle) : this(handle, owns: false) { } internal CTRun(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTRun() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTRunDraw(IntPtr h, IntPtr context, NSRange range); public void Draw(CGContext context, NSRange range) { CTRunDraw(handle, context.Handle, range); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTRunGetAdvances(IntPtr h, NSRange range, [In][Out] CGSize[] buffer); public CGSize[] GetAdvances(NSRange range, CGSize[] buffer) { buffer = GetBuffer(range, buffer); CTRunGetAdvances(handle, range, buffer); return buffer; } private T[] GetBuffer(NSRange range, T[] buffer) { int glyphCount = GlyphCount; if (buffer != null && range.Length != 0L && (ulong)buffer.Length < range.Length) { throw new ArgumentException("buffer.Length must be >= range.Length.", "buffer"); } if (buffer != null && range.Length == 0L && buffer.Length < glyphCount) { throw new ArgumentException("buffer.Length must be >= GlyphCount.", "buffer"); } return buffer ?? new T[(range.Length == 0L) ? glyphCount : ((int)range.Length)]; } public CGSize[] GetAdvances(NSRange range) { return GetAdvances(range, null); } public CGSize[] GetAdvances() { return GetAdvances(new NSRange(0, 0), null); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTRunGetAttributes(IntPtr handle); public CTStringAttributes GetAttributes() { NSDictionary nSDictionary = (NSDictionary)Runtime.GetNSObject(CTRunGetAttributes(handle)); if (nSDictionary != null) { return new CTStringAttributes(nSDictionary); } return null; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTRunGetGlyphCount(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTRunGetGlyphs(IntPtr h, NSRange range, [In][Out] ushort[] buffer); public ushort[] GetGlyphs(NSRange range, ushort[] buffer) { buffer = GetBuffer(range, buffer); CTRunGetGlyphs(handle, range, buffer); return buffer; } public ushort[] GetGlyphs(NSRange range) { return GetGlyphs(range, null); } public ushort[] GetGlyphs() { return GetGlyphs(new NSRange(0, 0), null); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGRect CTRunGetImageBounds(IntPtr h, IntPtr context, NSRange range); public CGRect GetImageBounds(CGContext context, NSRange range) { return CTRunGetImageBounds(handle, context.Handle, range); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTRunGetPositions(IntPtr h, NSRange range, [In][Out] CGPoint[] buffer); public CGPoint[] GetPositions(NSRange range, CGPoint[] buffer) { buffer = GetBuffer(range, buffer); CTRunGetPositions(handle, range, buffer); return buffer; } public CGPoint[] GetPositions(NSRange range) { return GetPositions(range, null); } public CGPoint[] GetPositions() { return GetPositions(new NSRange(0, 0), null); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CTRunStatus CTRunGetStatus(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern void CTRunGetStringIndices(IntPtr h, NSRange range, [In][Out] int[] buffer); public int[] GetStringIndices(NSRange range, int[] buffer) { buffer = GetBuffer(range, buffer); CTRunGetStringIndices(handle, range, buffer); return buffer; } public int[] GetStringIndices(NSRange range) { return GetStringIndices(range, null); } public int[] GetStringIndices() { return GetStringIndices(new NSRange(0, 0), null); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern NSRange CTRunGetStringRange(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CGAffineTransform CTRunGetTextMatrix(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTRunGetTypographicBounds(IntPtr h, NSRange range, out double ascent, out double descent, out double leading); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTRunGetTypographicBounds(IntPtr h, NSRange range, IntPtr ascent, IntPtr descent, IntPtr leading); public double GetTypographicBounds(NSRange range, out double ascent, out double descent, out double leading) { return CTRunGetTypographicBounds(handle, range, out ascent, out descent, out leading); } public double GetTypographicBounds() { NSRange nSRange = default(NSRange); nSRange.Location = 0uL; nSRange.Length = 0uL; NSRange range = nSRange; return CTRunGetTypographicBounds(handle, range, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegate.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTRunDelegate : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public CTRunDelegateOperations Operations => CTRunDelegateOperations.GetOperations(CTRunDelegateGetRefCon(handle)); internal CTRunDelegate(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new ArgumentNullException("handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTRunDelegate() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTRunDelegateCreate(CTRunDelegateCallbacks callbacks, IntPtr refCon); public CTRunDelegate(CTRunDelegateOperations operations) { if (operations == null) { throw ConstructorError.ArgumentNull(this, "operations"); } handle = CTRunDelegateCreate(operations.GetCallbacks(), GCHandle.ToIntPtr(operations.handle)); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTRunDelegateGetRefCon(IntPtr runDelegate); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateCallbacks.cs ================================================ using System.Runtime.InteropServices; namespace CoreText; [StructLayout(LayoutKind.Sequential)] internal class CTRunDelegateCallbacks { public CTRunDelegateVersion version; public CTRunDelegateDeallocateCallback dealloc; public CTRunDelegateGetAscentCallback getAscent; public CTRunDelegateGetDescentCallback getDescent; public CTRunDelegateGetWidthCallback getWidth; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateDeallocateCallback.cs ================================================ using System; namespace CoreText; internal delegate void CTRunDelegateDeallocateCallback(IntPtr refCon); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateGetAscentCallback.cs ================================================ using System; namespace CoreText; internal delegate float CTRunDelegateGetAscentCallback(IntPtr refCon); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateGetDescentCallback.cs ================================================ using System; namespace CoreText; internal delegate float CTRunDelegateGetDescentCallback(IntPtr refCon); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateGetWidthCallback.cs ================================================ using System; namespace CoreText; internal delegate float CTRunDelegateGetWidthCallback(IntPtr refCon); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateOperations.cs ================================================ using System; using System.Reflection; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTRunDelegateOperations : IDisposable { internal GCHandle handle; protected CTRunDelegateOperations() { handle = GCHandle.Alloc(this); } public virtual void Dispose() { } public virtual float GetAscent() { return 0f; } public virtual float GetDescent() { return 0f; } public virtual float GetWidth() { return 0f; } internal CTRunDelegateCallbacks GetCallbacks() { CTRunDelegateCallbacks cTRunDelegateCallbacks = new CTRunDelegateCallbacks { version = CTRunDelegateVersion.Version1, dealloc = Deallocate }; BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Public; MethodInfo method; if ((method = GetType().GetMethod("GetAscent", bindingAttr)) != null && method.DeclaringType != typeof(CTRunDelegateOperations)) { cTRunDelegateCallbacks.getAscent = GetAscent; } if ((method = GetType().GetMethod("GetDescent", bindingAttr)) != null && method.DeclaringType != typeof(CTRunDelegateOperations)) { cTRunDelegateCallbacks.getDescent = GetDescent; } if ((method = GetType().GetMethod("GetWidth", bindingAttr)) != null && method.DeclaringType != typeof(CTRunDelegateOperations)) { cTRunDelegateCallbacks.getWidth = GetWidth; } return cTRunDelegateCallbacks; } [MonoPInvokeCallback(typeof(CTRunDelegateDeallocateCallback))] private static void Deallocate(IntPtr refCon) { CTRunDelegateOperations operations = GetOperations(refCon); if (operations != null) { operations.Dispose(); if (operations.handle.IsAllocated) { operations.handle.Free(); } operations.handle = default(GCHandle); } } internal static CTRunDelegateOperations GetOperations(IntPtr refCon) { return GCHandle.FromIntPtr(refCon).Target as CTRunDelegateOperations; } [MonoPInvokeCallback(typeof(CTRunDelegateGetAscentCallback))] private static float GetAscent(IntPtr refCon) { return GetOperations(refCon)?.GetAscent() ?? 0f; } [MonoPInvokeCallback(typeof(CTRunDelegateGetDescentCallback))] private static float GetDescent(IntPtr refCon) { return GetOperations(refCon)?.GetDescent() ?? 0f; } [MonoPInvokeCallback(typeof(CTRunDelegateGetWidthCallback))] private static float GetWidth(IntPtr refCon) { return GetOperations(refCon)?.GetWidth() ?? 0f; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunDelegateVersion.cs ================================================ namespace CoreText; internal enum CTRunDelegateVersion { Version1 = 1, CurrentVersion = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTRunStatus.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTRunStatus { NoStatus = 0, RightToLeft = 1, NonMonotonic = 2, HasNonIdentityMatrix = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTStringAttributeKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTStringAttributeKey { public static readonly NSString Font; public static readonly NSString ForegroundColorFromContext; public static readonly NSString KerningAdjustment; public static readonly NSString LigatureFormation; public static readonly NSString ForegroundColor; public static readonly NSString ParagraphStyle; public static readonly NSString StrokeWidth; public static readonly NSString StrokeColor; public static readonly NSString UnderlineStyle; public static readonly NSString Superscript; public static readonly NSString UnderlineColor; public static readonly NSString VerticalForms; public static readonly NSString GlyphInfo; public static readonly NSString CharacterShape; public static readonly NSString RunDelegate; internal static readonly NSString BaselineClass; internal static readonly NSString BaselineInfo; internal static readonly NSString BaselineReferenceInfo; internal static readonly NSString WritingDirection; static CTStringAttributeKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { Font = Dlfcn.GetStringConstant(intPtr, "kCTFontAttributeName"); ForegroundColorFromContext = Dlfcn.GetStringConstant(intPtr, "kCTForegroundColorFromContextAttributeName"); KerningAdjustment = Dlfcn.GetStringConstant(intPtr, "kCTKernAttributeName"); LigatureFormation = Dlfcn.GetStringConstant(intPtr, "kCTLigatureAttributeName"); ForegroundColor = Dlfcn.GetStringConstant(intPtr, "kCTForegroundColorAttributeName"); ParagraphStyle = Dlfcn.GetStringConstant(intPtr, "kCTParagraphStyleAttributeName"); StrokeWidth = Dlfcn.GetStringConstant(intPtr, "kCTStrokeWidthAttributeName"); StrokeColor = Dlfcn.GetStringConstant(intPtr, "kCTStrokeColorAttributeName"); UnderlineStyle = Dlfcn.GetStringConstant(intPtr, "kCTUnderlineStyleAttributeName"); Superscript = Dlfcn.GetStringConstant(intPtr, "kCTSuperscriptAttributeName"); UnderlineColor = Dlfcn.GetStringConstant(intPtr, "kCTUnderlineColorAttributeName"); VerticalForms = Dlfcn.GetStringConstant(intPtr, "kCTVerticalFormsAttributeName"); GlyphInfo = Dlfcn.GetStringConstant(intPtr, "kCTGlyphInfoAttributeName"); CharacterShape = Dlfcn.GetStringConstant(intPtr, "kCTCharacterShapeAttributeName"); RunDelegate = Dlfcn.GetStringConstant(intPtr, "kCTRunDelegateAttributeName"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTStringAttributes.cs ================================================ using System; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTStringAttributes { private const int UnderlineStyleMask = 15; private const int UnderlineStyleModifiersMask = 1792; public NSDictionary Dictionary { get; private set; } public CTFont Font { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.Font.Handle); if (!(value == IntPtr.Zero)) { return new CTFont(value, owns: false); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.Font, value); } } public bool ForegroundColorFromContext { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTStringAttributeKey.ForegroundColorFromContext.Handle); } set { Adapter.AssertWritable(Dictionary); CFMutableDictionary.SetValue(Dictionary.Handle, CTStringAttributeKey.ForegroundColorFromContext.Handle, value); } } public float? KerningAdjustment { get { return Adapter.GetSingleValue(Dictionary, CTStringAttributeKey.KerningAdjustment); } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.KerningAdjustment, value); } } public CTLigatureFormation? LigatureFormation { get { int? int32Value = Adapter.GetInt32Value(Dictionary, CTStringAttributeKey.LigatureFormation); if (int32Value.HasValue) { return (CTLigatureFormation)int32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.LigatureFormation, value.HasValue ? new int?((int)value.Value) : null); } } public CGColor ForegroundColor { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.ForegroundColor.Handle); if (!(value == IntPtr.Zero)) { return new CGColor(value); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.ForegroundColor, value); } } public CTParagraphStyle ParagraphStyle { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.ParagraphStyle.Handle); if (!(value == IntPtr.Zero)) { return new CTParagraphStyle(value, owns: false); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.ParagraphStyle, value); } } public float? StrokeWidth { get { return Adapter.GetSingleValue(Dictionary, CTStringAttributeKey.StrokeWidth); } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.StrokeWidth, value); } } public CGColor StrokeColor { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.StrokeColor.Handle); if (!(value == IntPtr.Zero)) { return new CGColor(value); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.StrokeColor, value); } } public int? UnderlineStyleValue { get { return Adapter.GetInt32Value(Dictionary, CTStringAttributeKey.UnderlineStyle); } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.UnderlineStyle, value); } } public CTUnderlineStyle? UnderlineStyle { get { int? underlineStyleValue = UnderlineStyleValue; if (underlineStyleValue.HasValue) { return (CTUnderlineStyle)(underlineStyleValue.Value & 0xF); } return null; } set { CTUnderlineStyleModifiers? underlineStyleModifiers = UnderlineStyleModifiers; UnderlineStyleValue = Adapter.BitwiseOr(underlineStyleModifiers.HasValue ? new int?((int)underlineStyleModifiers.Value) : null, value.HasValue ? new int?((int)value.Value) : null); } } public CTUnderlineStyleModifiers? UnderlineStyleModifiers { get { int? underlineStyleValue = UnderlineStyleValue; if (underlineStyleValue.HasValue) { return (CTUnderlineStyleModifiers)(underlineStyleValue.Value & 0x700); } return null; } set { CTUnderlineStyleModifiers? underlineStyleModifiers = UnderlineStyleModifiers; UnderlineStyleValue = Adapter.BitwiseOr(underlineStyleModifiers.HasValue ? new int?((int)underlineStyleModifiers.Value) : null, value.HasValue ? new int?((int)value.Value) : null); } } public CTSuperscriptStyle? Superscript { get { int? int32Value = Adapter.GetInt32Value(Dictionary, CTStringAttributeKey.Superscript); if (int32Value.HasValue) { return (CTSuperscriptStyle)int32Value.Value; } return null; } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.Superscript, value.HasValue ? new int?((int)value.Value) : null); } } public CGColor UnderlineColor { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.UnderlineColor.Handle); if (!(value == IntPtr.Zero)) { return new CGColor(value); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.UnderlineColor, value); } } public bool VerticalForms { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTStringAttributeKey.VerticalForms.Handle); } set { Adapter.AssertWritable(Dictionary); CFMutableDictionary.SetValue(Dictionary.Handle, CTStringAttributeKey.VerticalForms.Handle, value); } } public CTGlyphInfo GlyphInfo { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.GlyphInfo.Handle); if (!(value == IntPtr.Zero)) { return new CTGlyphInfo(value, owns: false); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.GlyphInfo, value); } } public int? CharacterShape { get { return Adapter.GetInt32Value(Dictionary, CTStringAttributeKey.CharacterShape); } set { Adapter.SetValue(Dictionary, CTStringAttributeKey.CharacterShape, value); } } public CTRunDelegate RunDelegate { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.RunDelegate.Handle); if (!(value == IntPtr.Zero)) { return new CTRunDelegate(value, owns: false); } return null; } set { Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.RunDelegate, value); } } [Since(6, 0)] public CTBaselineClass? BaselineClass { get { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, CTStringAttributeKey.BaselineClass.Handle); if (!(value == IntPtr.Zero)) { return CTBaselineClassID.FromHandle(value); } return null; } set { NSString value2 = ((!value.HasValue) ? null : CTBaselineClassID.ToNSString(value.Value)); Adapter.SetNativeValue(Dictionary, CTStringAttributeKey.BaselineClass, value2); } } public CTStringAttributes() : this(new NSMutableDictionary()) { } public CTStringAttributes(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } [Since(6, 0)] public void SetBaselineInfo(CTBaselineClass baselineClass, double offset) { SetBaseline(baselineClass, offset, CTStringAttributeKey.BaselineInfo); } [Since(6, 0)] public void SetBaselineReferenceInfo(CTBaselineClass baselineClass, double offset) { SetBaseline(baselineClass, offset, CTStringAttributeKey.BaselineReferenceInfo); } private void SetBaseline(CTBaselineClass baselineClass, double offset, NSString infoKey) { IntPtr value = CFDictionary.GetValue(Dictionary.Handle, infoKey.Handle); NSMutableDictionary nSMutableDictionary = ((value == IntPtr.Zero) ? new NSMutableDictionary() : new NSMutableDictionary(value)); NSString key = CTBaselineClassID.ToNSString(baselineClass); Adapter.SetValue(nSMutableDictionary, key, new NSNumber(offset)); if (value == IntPtr.Zero) { Adapter.SetNativeValue(Dictionary, (NSObject)infoKey, (INativeObject)nSMutableDictionary); } } [Since(6, 0)] public void SetWritingDirection(params CTWritingDirection[] writingDirections) { IntPtr[] array = new IntPtr[writingDirections.Length]; for (int i = 0; i < writingDirections.Length; i++) { array[i] = new NSNumber((int)writingDirections[i]).Handle; } IntPtr value = CFArray.Create(array); CFMutableDictionary.SetValue(Dictionary.Handle, CTStringAttributeKey.WritingDirection.Handle, value); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTSuperscriptStyle.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTSuperscriptStyle { None = 0, Superscript = 1, Subscript = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTextAlignment.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTTextAlignment : byte { Left, Right, Center, Justified, Natural } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTextTab.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTTextTab : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public CTTextAlignment TextAlignment => CTTextTabGetAlignment(handle); public double Location => CTTextTabGetLocation(handle); internal CTTextTab(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTTextTab() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTextTabCreate(CTTextAlignment alignment, double location, IntPtr options); public CTTextTab(CTTextAlignment alignment, double location) : this(alignment, location, null) { } public CTTextTab(CTTextAlignment alignment, double location, CTTextTabOptions options) { handle = CTTextTabCreate(alignment, location, options?.Dictionary.Handle ?? IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern CTTextAlignment CTTextTabGetAlignment(IntPtr tab); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern double CTTextTabGetLocation(IntPtr tab); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTextTabGetOptions(IntPtr tab); public CTTextTabOptions GetOptions() { IntPtr intPtr = CTTextTabGetOptions(handle); if (intPtr == IntPtr.Zero) { return null; } return new CTTextTabOptions((NSDictionary)Runtime.GetNSObject(intPtr)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTextTabOptionKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTTextTabOptionKey { public static readonly NSString ColumnTerminators; static CTTextTabOptionKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { ColumnTerminators = Dlfcn.GetStringConstant(intPtr, "kCTTabColumnTerminatorsAttributeName"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTextTabOptions.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTTextTabOptions { public NSDictionary Dictionary { get; private set; } public NSCharacterSet ColumnTerminators { get { return (NSCharacterSet)Dictionary[CTTextTabOptionKey.ColumnTerminators]; } set { Adapter.SetValue(Dictionary, CTTextTabOptionKey.ColumnTerminators, value); } } public CTTextTabOptions() : this(new NSMutableDictionary()) { } public CTTextTabOptions(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTypesetter.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTTypesetter : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; internal CTTypesetter(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw ConstructorError.ArgumentNull(this, "handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CTTypesetter() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTypesetterCreateWithAttributedString(IntPtr @string); public CTTypesetter(NSAttributedString value) { if (value == null) { throw ConstructorError.ArgumentNull(this, "value"); } handle = CTTypesetterCreateWithAttributedString(value.Handle); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTypesetterCreateWithAttributedStringAndOptions(IntPtr @string, IntPtr options); public CTTypesetter(NSAttributedString value, CTTypesetterOptions options) { if (value == null) { throw ConstructorError.ArgumentNull(this, "value"); } handle = CTTypesetterCreateWithAttributedStringAndOptions(value.Handle, options?.Dictionary.Handle ?? IntPtr.Zero); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTypesetterCreateLineWithOffset(IntPtr typesetter, NSRange stringRange, double offset); public CTLine GetLine(NSRange stringRange, double offset) { IntPtr intPtr = CTTypesetterCreateLineWithOffset(handle, stringRange, offset); if (intPtr == IntPtr.Zero) { return null; } return new CTLine(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern IntPtr CTTypesetterCreateLine(IntPtr typesetter, NSRange stringRange); public CTLine GetLine(NSRange stringRange) { IntPtr intPtr = CTTypesetterCreateLine(handle, stringRange); if (intPtr == IntPtr.Zero) { return null; } return new CTLine(intPtr, owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTTypesetterSuggestLineBreakWithOffset(IntPtr typesetter, int startIndex, double width, double offset); public int SuggestLineBreak(int startIndex, double width, double offset) { return CTTypesetterSuggestLineBreakWithOffset(handle, startIndex, width, offset); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTTypesetterSuggestLineBreak(IntPtr typesetter, int startIndex, double width); public int SuggestLineBreak(int startIndex, double width) { return CTTypesetterSuggestLineBreak(handle, startIndex, width); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTTypesetterSuggestClusterBreakWithOffset(IntPtr typesetter, int startIndex, double width, double offset); public int SuggestClusterBreak(int startIndex, double width, double offset) { return CTTypesetterSuggestClusterBreakWithOffset(handle, startIndex, width, offset); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText")] private static extern int CTTypesetterSuggestClusterBreak(IntPtr typesetter, int startIndex, double width); public int SuggestClusterBreak(int startIndex, double width) { return CTTypesetterSuggestClusterBreak(handle, startIndex, width); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTypesetterOptionKey.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public static class CTTypesetterOptionKey { [Obsolete("Deprecated in iOS 6.0")] public static readonly NSString DisableBidiProcessing; public static readonly NSString ForceEmbeddingLevel; static CTTypesetterOptionKey() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 0); if (intPtr == IntPtr.Zero) { return; } try { DisableBidiProcessing = Dlfcn.GetStringConstant(intPtr, "kCTTypesetterOptionDisableBidiProcessing"); ForceEmbeddingLevel = Dlfcn.GetStringConstant(intPtr, "kCTTypesetterOptionForcedEmbeddingLevel"); } finally { Dlfcn.dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTTypesetterOptions.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreText; [Since(3, 2)] public class CTTypesetterOptions { public NSDictionary Dictionary { get; private set; } [Obsolete("Deprecated in iOS 6.0")] public bool DisableBidiProcessing { get { return CFDictionary.GetBooleanValue(Dictionary.Handle, CTTypesetterOptionKey.DisableBidiProcessing.Handle); } set { Adapter.AssertWritable(Dictionary); CFMutableDictionary.SetValue(Dictionary.Handle, CTTypesetterOptionKey.DisableBidiProcessing.Handle, value); } } public int? ForceEmbeddingLevel { get { return Adapter.GetInt32Value(Dictionary, CTTypesetterOptionKey.ForceEmbeddingLevel); } set { Adapter.SetValue(Dictionary, CTTypesetterOptionKey.ForceEmbeddingLevel, value); } } public CTTypesetterOptions() : this(new NSMutableDictionary()) { } public CTTypesetterOptions(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTUnderlineStyle.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTUnderlineStyle { None = 0, Single = 1, Thick = 2, Double = 9 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTUnderlineStyleModifiers.cs ================================================ using ObjCRuntime; namespace CoreText; [Since(3, 2)] public enum CTUnderlineStyleModifiers { PatternSolid = 0, PatternDot = 256, PatternDash = 512, PatternDashDot = 768, PatternDashDotDot = 1024 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/CTWritingDirection.cs ================================================ using System; using ObjCRuntime; namespace CoreText; [Since(3, 2)] [Flags] public enum CTWritingDirection : sbyte { Natural = -1, LeftToRight = 0, RightToLeft = 1, Embedding = 0, Override = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/ConstructorError.cs ================================================ using System; namespace CoreText; internal static class ConstructorError { public static Exception ArgumentNull(object self, string argument) { GC.SuppressFinalize(self); return new ArgumentNullException(argument); } public static Exception Unknown(object self) { GC.SuppressFinalize(self); return new ArgumentException($"Unable to create {self.GetType().Name} instance."); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreText/FontFeatureGroup.cs ================================================ using System; namespace CoreText; public enum FontFeatureGroup { AllTypographicFeatures = 0, Ligatures = 1, CursiveConnection = 2, [Obsolete("Deprecated. Use LowerCase or UpperCase instead")] LetterCase = 3, VerticalSubstitution = 4, LinguisticRearrangement = 5, NumberSpacing = 6, SmartSwash = 8, Diacritics = 9, VerticalPosition = 10, Fractions = 11, OverlappingCharacters = 13, TypographicExtras = 14, MathematicalExtras = 15, OrnamentSets = 16, CharacterAlternatives = 17, DesignComplexity = 18, StyleOptions = 19, CharacterShape = 20, NumberCase = 21, TextSpacing = 22, Transliteration = 23, Annotation = 24, KanaSpacing = 25, IdeographicSpacing = 26, UnicodeDecomposition = 27, RubyKana = 28, CJKSymbolAlternatives = 29, IdeographicAlternatives = 30, CJKVerticalRomanPlacement = 31, ItalicCJKRoman = 32, CaseSensitiveLayout = 33, AlternateKana = 34, StylisticAlternatives = 35, ContextualAlternates = 36, LowerCase = 37, UpperCase = 38, CJKRomanSpacing = 103 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVAttachmentMode.cs ================================================ namespace CoreVideo; public enum CVAttachmentMode : uint { ShouldNotPropagate, ShouldPropagate } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVBuffer.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(4, 0)] public class CVBuffer : INativeObject, IDisposable { public static readonly NSString MovieTimeKey; public static readonly NSString TimeValueKey; public static readonly NSString TimeScaleKey; public static readonly NSString PropagatedAttachmentsKey; public static readonly NSString NonPropagatedAttachmentsKey; internal IntPtr handle; public IntPtr Handle => handle; static CVBuffer() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { MovieTimeKey = Dlfcn.GetStringConstant(intPtr, "kCVBufferMovieTimeKey"); TimeValueKey = Dlfcn.GetStringConstant(intPtr, "kCVBufferTimeValueKey"); TimeScaleKey = Dlfcn.GetStringConstant(intPtr, "kCVBufferTimeScaleKey"); PropagatedAttachmentsKey = Dlfcn.GetStringConstant(intPtr, "kCVBufferPropagatedAttachmentsKey"); NonPropagatedAttachmentsKey = Dlfcn.GetStringConstant(intPtr, "kCVBufferNonPropagatedAttachmentsKey"); } finally { Dlfcn.dlclose(intPtr); } } internal CVBuffer() { } internal CVBuffer(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to context creation"); } CVBufferRetain(handle); this.handle = handle; } [Preserve(Conditional = true)] internal CVBuffer(IntPtr handle, bool owns) { if (!owns) { CVBufferRetain(handle); } this.handle = handle; } ~CVBuffer() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CVBufferRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferRemoveAllAttachments(IntPtr buffer); public void RemoveAllAttachments() { CVBufferRemoveAllAttachments(handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferRemoveAttachment(IntPtr buffer, IntPtr key); public void RemoveAttachment(NSString key) { CVBufferRemoveAttachment(handle, key.Handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVBufferGetAttachment(IntPtr buffer, IntPtr key, out CVAttachmentMode attachmentMode); public NSObject GetAttachment(NSString key, out CVAttachmentMode attachmentMode) { return Runtime.GetNSObject(CVBufferGetAttachment(handle, key.Handle, out attachmentMode)); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVBufferGetAttachments(IntPtr buffer, CVAttachmentMode attachmentMode); public NSDictionary GetAttachments(CVAttachmentMode attachmentMode) { return (NSDictionary)Runtime.GetNSObject(CVBufferGetAttachments(handle, attachmentMode)); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferPropagateAttachments(IntPtr sourceBuffer, IntPtr destinationBuffer); public void PropogateAttachments(CVBuffer destinationBuffer) { CVBufferPropagateAttachments(handle, destinationBuffer.Handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferSetAttachment(IntPtr buffer, IntPtr key, IntPtr value, CVAttachmentMode attachmentMode); public void SetAttachment(NSString key, NSObject value, CVAttachmentMode attachmentMode) { CVBufferSetAttachment(handle, key.Handle, value.Handle, attachmentMode); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVBufferSetAttachments(IntPtr buffer, IntPtr theAttachments, CVAttachmentMode attachmentMode); public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode) { CVBufferSetAttachments(handle, theAttachments.Handle, attachmentMode); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVDisplayLink.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; using OpenGL; namespace CoreVideo; public class CVDisplayLink : INativeObject, IDisposable { public delegate CVReturn DisplayLinkOutputCallback(CVDisplayLink displayLink, ref CVTimeStamp inNow, ref CVTimeStamp inOutputTime, CVOptionFlags flagsIn, ref CVOptionFlags flagsOut); private delegate CVReturn CVDisplayLinkOutputCallback(IntPtr displayLink, ref CVTimeStamp inNow, ref CVTimeStamp inOutputTime, CVOptionFlags flagsIn, ref CVOptionFlags flagsOut, IntPtr displayLinkContext); internal IntPtr handle; private GCHandle callbackHandle; private static CVDisplayLinkOutputCallback static_OutputCallback = OutputCallback; public IntPtr Handle => handle; public CVTime NominalOutputVideoRefreshPeriod => CVDisplayLinkGetNominalOutputVideoRefreshPeriod(handle); public CVTime OutputVideoLatency => CVDisplayLinkGetOutputVideoLatency(handle); public double ActualOutputVideoRefreshPeriod => CVDisplayLinkGetActualOutputVideoRefreshPeriod(handle); public bool IsRunning => CVDisplayLinkIsRunning(handle); public CVDisplayLink(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to display link creation"); } CVDisplayLinkRetain(handle); this.handle = handle; } [Preserve(Conditional = true)] internal CVDisplayLink(IntPtr handle, bool owns) { if (!owns) { CVDisplayLinkRetain(handle); } this.handle = handle; } ~CVDisplayLink() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVDisplayLinkRetain(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVDisplayLinkRelease(IntPtr handle); protected virtual void Dispose(bool disposing) { if (callbackHandle.IsAllocated) { callbackHandle.Free(); } if (handle != IntPtr.Zero) { CVDisplayLinkRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkCreateWithActiveCGDisplays(IntPtr displayLinkOut); public CVDisplayLink() { IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); try { CVReturn cVReturn = CVDisplayLinkCreateWithActiveCGDisplays(intPtr); if (cVReturn != 0) { throw new Exception("CVDisplayLink returned: " + cVReturn); } handle = Marshal.ReadIntPtr(intPtr); } finally { Marshal.FreeHGlobal(intPtr); } } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkSetCurrentCGDisplay(IntPtr displayLink, int displayId); public CVReturn SetCurrentDisplay(int displayId) { return CVDisplayLinkSetCurrentCGDisplay(handle, displayId); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(IntPtr displayLink, IntPtr cglContext, IntPtr cglPixelFormat); public CVReturn SetCurrentDisplay(CGLContext cglContext, CGLPixelFormat cglPixelFormat) { return CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(handle, cglContext.Handle, cglPixelFormat.Handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern int CVDisplayLinkGetCurrentCGDisplay(IntPtr displayLink); public int GetCurrentDisplay() { return CVDisplayLinkGetCurrentCGDisplay(handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkStart(IntPtr displayLink); public CVReturn Start() { return CVDisplayLinkStart(handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkStop(IntPtr displayLink); public CVReturn Stop() { return CVDisplayLinkStop(handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod(IntPtr displayLink); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVTime CVDisplayLinkGetOutputVideoLatency(IntPtr displayLink); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern double CVDisplayLinkGetActualOutputVideoRefreshPeriod(IntPtr displayLink); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern bool CVDisplayLinkIsRunning(IntPtr displayLink); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkGetCurrentTime(IntPtr displayLink, out CVTimeStamp outTime); public CVReturn GetCurrentTime(out CVTimeStamp outTime) { return CVDisplayLinkGetCurrentTime(Handle, out outTime); } private static CVReturn OutputCallback(IntPtr displayLink, ref CVTimeStamp inNow, ref CVTimeStamp inOutputTime, CVOptionFlags flagsIn, ref CVOptionFlags flagsOut, IntPtr displayLinkContext) { DisplayLinkOutputCallback obj = (DisplayLinkOutputCallback)GCHandle.FromIntPtr(displayLinkContext).Target; CVDisplayLink displayLink2 = new CVDisplayLink(displayLink, owns: false); return obj(displayLink2, ref inNow, ref inOutputTime, flagsIn, ref flagsOut); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVDisplayLinkSetOutputCallback(IntPtr displayLink, CVDisplayLinkOutputCallback function, IntPtr userInfo); public CVReturn SetOutputCallback(DisplayLinkOutputCallback callback) { callbackHandle = GCHandle.Alloc(callback); return CVDisplayLinkSetOutputCallback(Handle, static_OutputCallback, GCHandle.ToIntPtr(callbackHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVFillExtendedPixelsCallBack.cs ================================================ using System; namespace CoreVideo; public delegate bool CVFillExtendedPixelsCallBack(IntPtr pixelBuffer, IntPtr refCon); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVFillExtendedPixelsCallBackData.cs ================================================ using System; namespace CoreVideo; public struct CVFillExtendedPixelsCallBackData { public int Version; public CVFillExtendedPixelsCallBack FillCallBack; public IntPtr UserInfo; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVImageBuffer.cs ================================================ using System; using System.Runtime.InteropServices; using CoreGraphics; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(4, 0)] public class CVImageBuffer : CVBuffer { public static readonly NSString CGColorSpaceKey; public static readonly NSString GammaLevelKey; public static readonly NSString CleanApertureKey; public static readonly NSString PreferredCleanApertureKey; public static readonly NSString CleanApertureWidthKey; public static readonly NSString CleanApertureHeightKey; public static readonly NSString CleanApertureHorizontalOffsetKey; public static readonly NSString CleanApertureVerticalOffsetKey; public static readonly NSString FieldCountKey; public static readonly NSString FieldDetailKey; public static readonly NSString FieldDetailTemporalTopFirst; public static readonly NSString FieldDetailTemporalBottomFirst; public static readonly NSString FieldDetailSpatialFirstLineEarly; public static readonly NSString FieldDetailSpatialFirstLineLate; public static readonly NSString PixelAspectRatioKey; public static readonly NSString PixelAspectRatioHorizontalSpacingKey; public static readonly NSString PixelAspectRatioVerticalSpacingKey; public static readonly NSString DisplayDimensionsKey; public static readonly NSString DisplayWidthKey; public static readonly NSString DisplayHeightKey; public static readonly NSString YCbCrMatrixKey; public static readonly NSString YCbCrMatrix_ITU_R_709_2; public static readonly NSString YCbCrMatrix_ITU_R_601_4; public static readonly NSString YCbCrMatrix_SMPTE_240M_1995; public static readonly NSString ChromaSubsamplingKey; public static readonly NSString ChromaSubsampling_420; public static readonly NSString ChromaSubsampling_422; public static readonly NSString ChromaSubsampling_411; public static readonly NSString TransferFunctionKey; public static readonly NSString TransferFunction_ITU_R_709_2; public static readonly NSString TransferFunction_SMPTE_240M_1995; public static readonly NSString TransferFunction_UseGamma; public static readonly NSString ChromaLocationTopFieldKey; public static readonly NSString ChromaLocationBottomFieldKey; public static readonly NSString ChromaLocation_Left; public static readonly NSString ChromaLocation_Center; public static readonly NSString ChromaLocation_TopLeft; public static readonly NSString ChromaLocation_Top; public static readonly NSString ChromaLocation_BottomLeft; public static readonly NSString ChromaLocation_Bottom; public static readonly NSString ChromaLocation_DV420; public CGRect CleanRect => CVImageBufferGetCleanRect(handle); public CGSize DisplaySize => CVImageBufferGetDisplaySize(handle); public CGSize EncodedSize => CVImageBufferGetDisplaySize(handle); public bool IsFlipped => CVImageBufferIsFlipped(handle); public CGColorSpace ColorSpace => new CGColorSpace(CVImageBufferGetColorSpace(handle)); static CVImageBuffer() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { CGColorSpaceKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCGColorSpaceKey"); GammaLevelKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferGammaLevelKey"); CleanApertureKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCleanApertureKey"); PreferredCleanApertureKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferPreferredCleanApertureKey"); CleanApertureWidthKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCleanApertureWidthKey"); CleanApertureHeightKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCleanApertureHeightKey"); CleanApertureHorizontalOffsetKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCleanApertureHorizontalOffsetKey"); CleanApertureVerticalOffsetKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferCleanApertureVerticalOffsetKey"); FieldCountKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldCountKey"); FieldDetailKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldDetailKey"); FieldDetailTemporalTopFirst = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldDetailTemporalTopFirst"); FieldDetailTemporalBottomFirst = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldDetailTemporalBottomFirst"); FieldDetailSpatialFirstLineEarly = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldDetailSpatialFirstLineEarly"); FieldDetailSpatialFirstLineLate = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferFieldDetailSpatialFirstLineLate"); PixelAspectRatioKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferPixelAspectRatioKey"); PixelAspectRatioHorizontalSpacingKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferPixelAspectRatioHorizontalSpacingKey"); PixelAspectRatioVerticalSpacingKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferPixelAspectRatioVerticalSpacingKey"); DisplayDimensionsKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferDisplayDimensionsKey"); DisplayWidthKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferDisplayWidthKey"); DisplayHeightKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferDisplayHeightKey"); YCbCrMatrixKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferYCbCrMatrixKey"); YCbCrMatrix_ITU_R_709_2 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferYCbCrMatrix_ITU_R_709_2"); YCbCrMatrix_ITU_R_601_4 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferYCbCrMatrix_ITU_R_601_4"); YCbCrMatrix_SMPTE_240M_1995 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferYCbCrMatrix_SMPTE_240M_1995"); ChromaSubsamplingKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaSubsamplingKey"); ChromaSubsampling_420 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaSubsampling_420"); ChromaSubsampling_422 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaSubsampling_422"); ChromaSubsampling_411 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaSubsampling_411"); TransferFunctionKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferTransferFunctionKey"); TransferFunction_ITU_R_709_2 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferTransferFunction_ITU_R_709_2"); TransferFunction_SMPTE_240M_1995 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferTransferFunction_SMPTE_240M_1995"); TransferFunction_UseGamma = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferTransferFunction_UseGamma"); ChromaLocationTopFieldKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocationTopFieldKey"); ChromaLocationBottomFieldKey = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocationBottomFieldKey"); ChromaLocation_Left = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_Left"); ChromaLocation_Center = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_Center"); ChromaLocation_TopLeft = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_TopLeft"); ChromaLocation_Top = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_Top"); ChromaLocation_BottomLeft = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_BottomLeft"); ChromaLocation_Bottom = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_Bottom"); ChromaLocation_DV420 = Dlfcn.GetStringConstant(intPtr, "kCVImageBufferChromaLocation_DV420"); } finally { Dlfcn.dlclose(intPtr); } } internal CVImageBuffer(IntPtr handle) : base(handle) { } internal CVImageBuffer() { } [Preserve(Conditional = true)] internal CVImageBuffer(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CGRect CVImageBufferGetCleanRect(IntPtr imageBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CGSize CVImageBufferGetDisplaySize(IntPtr imageBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CGSize CVImageBufferGetEncodedSize(IntPtr imageBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern bool CVImageBufferIsFlipped(IntPtr imageBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVImageBufferGetColorSpace(IntPtr handle); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVOptionFlags.cs ================================================ namespace CoreVideo; public enum CVOptionFlags : long { None } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBuffer.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(4, 0)] public class CVPixelBuffer : CVImageBuffer { public static readonly NSString PixelFormatTypeKey; public static readonly NSString MemoryAllocatorKey; public static readonly NSString WidthKey; public static readonly NSString HeightKey; public static readonly NSString ExtendedPixelsLeftKey; public static readonly NSString ExtendedPixelsTopKey; public static readonly NSString ExtendedPixelsRightKey; public static readonly NSString ExtendedPixelsBottomKey; public static readonly NSString BytesPerRowAlignmentKey; public static readonly NSString CGBitmapContextCompatibilityKey; public static readonly NSString CGImageCompatibilityKey; public static readonly NSString OpenGLCompatibilityKey; public static readonly NSString IOSurfacePropertiesKey; public static readonly NSString PlaneAlignmentKey; public static readonly NSString OpenGLESCompatibilityKey; public static readonly int CVImageBufferType; public IntPtr BaseAddress => CVPixelBufferGetBaseAddress(handle); public int BytesPerRow => (int)CVPixelBufferGetBytesPerRow(handle); public int DataSize => (int)CVPixelBufferGetDataSize(handle); public int Height => (int)CVPixelBufferGetHeight(handle); public int Width => (int)CVPixelBufferGetWidth(handle); public int PlaneCount => (int)CVPixelBufferGetPlaneCount(handle); public bool IsPlanar => CVPixelBufferIsPlanar(handle); public CVPixelFormatType PixelFormatType => CVPixelBufferGetPixelFormatType(handle); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern int CVPixelBufferGetTypeID(); static CVPixelBuffer() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { PixelFormatTypeKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferPixelFormatTypeKey"); MemoryAllocatorKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferMemoryAllocatorKey"); WidthKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferWidthKey"); HeightKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferHeightKey"); ExtendedPixelsLeftKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferExtendedPixelsLeftKey"); ExtendedPixelsTopKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferExtendedPixelsTopKey"); ExtendedPixelsRightKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferExtendedPixelsRightKey"); ExtendedPixelsBottomKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferExtendedPixelsBottomKey"); BytesPerRowAlignmentKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferBytesPerRowAlignmentKey"); CGBitmapContextCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferCGBitmapContextCompatibilityKey"); CGImageCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferCGImageCompatibilityKey"); OpenGLCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferOpenGLCompatibilityKey"); IOSurfacePropertiesKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferIOSurfacePropertiesKey"); PlaneAlignmentKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferPlaneAlignmentKey"); CVImageBufferType = CVPixelBufferGetTypeID(); OpenGLESCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferOpenGLESCompatibilityKey"); } finally { Dlfcn.dlclose(intPtr); } } internal CVPixelBuffer(IntPtr handle) : base(handle) { } [Preserve(Conditional = true)] internal CVPixelBuffer(IntPtr handle, bool owns) : base(handle, owns) { } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferCreate(IntPtr allocator, IntPtr width, IntPtr height, CVPixelFormatType pixelFormatType, IntPtr pixelBufferAttributes, IntPtr pixelBufferOut); public CVPixelBuffer(int width, int height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes attributes) : this(width, height, pixelFormatType, attributes?.Dictionary) { } [Advice("Use constructor with CVPixelBufferAttributes")] public CVPixelBuffer(int width, int height, CVPixelFormatType pixelFormatType, NSDictionary pixelBufferAttributes) { if (width <= 0) { throw new ArgumentOutOfRangeException("width"); } if (height <= 0) { throw new ArgumentOutOfRangeException("height"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); CVReturn cVReturn = CVPixelBufferCreate(IntPtr.Zero, (IntPtr)width, (IntPtr)height, pixelFormatType, pixelBufferAttributes?.Handle ?? IntPtr.Zero, intPtr); if (cVReturn != 0) { Marshal.FreeHGlobal(intPtr); throw new ArgumentException(cVReturn.ToString()); } handle = Marshal.ReadIntPtr(intPtr); Marshal.FreeHGlobal(intPtr); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferCreateResolvedAttributesDictionary(IntPtr allocator, IntPtr attributes, IntPtr resolvedDictionaryOut); public NSDictionary GetAttributes(NSDictionary[] attributes) { IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); NSArray nSArray = NSArray.FromNSObjects(attributes); CVReturn cVReturn = CVPixelBufferCreateResolvedAttributesDictionary(IntPtr.Zero, nSArray.Handle, intPtr); if (cVReturn != 0) { Marshal.FreeHGlobal(intPtr); throw new Exception("CVPixelBufferCreate returned: " + cVReturn); } NSDictionary result = (NSDictionary)Runtime.GetNSObject(Marshal.ReadIntPtr(intPtr)); Marshal.FreeHGlobal(intPtr); return result; } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferFillExtendedPixels(IntPtr pixelBuffer); public CVReturn FillExtendedPixels() { return CVPixelBufferFillExtendedPixels(handle); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetBaseAddress(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetBytesPerRow(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetDataSize(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetHeight(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetWidth(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetPlaneCount(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern bool CVPixelBufferIsPlanar(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVPixelFormatType CVPixelBufferGetPixelFormatType(IntPtr pixelBuffer); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetBaseAddressOfPlane(IntPtr pixelBuffer, IntPtr planeIndex); public IntPtr GetBaseAddress(int planeIndex) { return CVPixelBufferGetBaseAddressOfPlane(handle, (IntPtr)planeIndex); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetBytesPerRowOfPlane(IntPtr pixelBuffer, IntPtr planeIndex); public int GetBytesPerRowOfPlane(int planeIndex) { return (int)CVPixelBufferGetBytesPerRowOfPlane(handle, (IntPtr)planeIndex); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetHeightOfPlane(IntPtr pixelBuffer, IntPtr planeIndex); public int GetHeightOfPlane(int planeIndex) { return (int)CVPixelBufferGetHeightOfPlane(handle, (IntPtr)planeIndex); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferGetWidthtOfPlane(IntPtr pixelBuffer, IntPtr planeIndex); public int GetWidthtOfPlane(int planeIndex) { return (int)CVPixelBufferGetWidthtOfPlane(handle, (IntPtr)planeIndex); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferLockBaseAddress(IntPtr pixelBuffer, CVOptionFlags lockFlags); public CVReturn Lock(CVOptionFlags lockFlags) { return CVPixelBufferLockBaseAddress(handle, lockFlags); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferUnlockBaseAddress(IntPtr pixelBuffer, CVOptionFlags unlockFlags); public CVReturn Unlock(CVOptionFlags unlockFlags) { return CVPixelBufferUnlockBaseAddress(handle, unlockFlags); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBufferAttributes.cs ================================================ using CoreFoundation; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(6, 0)] public class CVPixelBufferAttributes : DictionaryContainer { public CVPixelFormatType? PixelFormatType { get { return (CVPixelFormatType?)GetUIntValue(CVPixelBuffer.PixelFormatTypeKey); } set { SetNumberValue(CVPixelBuffer.PixelFormatTypeKey, (uint?)value); } } public CFAllocator MemoryAllocator { set { SetNativeValue(CVPixelBuffer.MemoryAllocatorKey, value); } } public int? Width { get { return GetInt32Value(CVPixelBuffer.WidthKey); } set { SetNumberValue(CVPixelBuffer.WidthKey, value); } } public int? Height { get { return GetInt32Value(CVPixelBuffer.HeightKey); } set { SetNumberValue(CVPixelBuffer.HeightKey, value); } } public int? ExtendedPixelsLeft { get { return GetInt32Value(CVPixelBuffer.ExtendedPixelsLeftKey); } set { SetNumberValue(CVPixelBuffer.ExtendedPixelsLeftKey, value); } } public int? ExtendedPixelsTop { get { return GetInt32Value(CVPixelBuffer.ExtendedPixelsTopKey); } set { SetNumberValue(CVPixelBuffer.ExtendedPixelsTopKey, value); } } public int? ExtendedPixelsRight { get { return GetInt32Value(CVPixelBuffer.ExtendedPixelsRightKey); } set { SetNumberValue(CVPixelBuffer.ExtendedPixelsRightKey, value); } } public int? ExtendedPixelsBottom { get { return GetInt32Value(CVPixelBuffer.ExtendedPixelsBottomKey); } set { SetNumberValue(CVPixelBuffer.ExtendedPixelsBottomKey, value); } } public int? BytesPerRowAlignment { get { return GetInt32Value(CVPixelBuffer.BytesPerRowAlignmentKey); } set { SetNumberValue(CVPixelBuffer.BytesPerRowAlignmentKey, value); } } public bool? CGBitmapContextCompatibility { get { return GetBoolValue(CVPixelBuffer.CGBitmapContextCompatibilityKey); } set { SetBooleanValue(CVPixelBuffer.CGBitmapContextCompatibilityKey, value); } } public bool? CGImageCompatibility { get { return GetBoolValue(CVPixelBuffer.CGImageCompatibilityKey); } set { SetBooleanValue(CVPixelBuffer.CGImageCompatibilityKey, value); } } public bool? OpenGLCompatibility { get { return GetBoolValue(CVPixelBuffer.OpenGLCompatibilityKey); } set { SetBooleanValue(CVPixelBuffer.OpenGLCompatibilityKey, value); } } public int? PlaneAlignment { get { return GetInt32Value(CVPixelBuffer.PlaneAlignmentKey); } set { SetNumberValue(CVPixelBuffer.PlaneAlignmentKey, value); } } [Since(6, 0)] public bool? OpenGLESCompatibility { get { return GetBoolValue(CVPixelBuffer.OpenGLESCompatibilityKey); } set { SetBooleanValue(CVPixelBuffer.OpenGLESCompatibilityKey, value); } } public CVPixelBufferAttributes() : base(new NSMutableDictionary()) { } public CVPixelBufferAttributes(NSDictionary dictionary) : base(dictionary) { } public CVPixelBufferAttributes(CVPixelFormatType pixelFormatType, int width, int height) : this() { PixelFormatType = pixelFormatType; Width = width; Height = height; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBufferLock.cs ================================================ using System; namespace CoreVideo; [Flags] public enum CVPixelBufferLock { ReadOnly = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBufferPool.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(4, 0)] public class CVPixelBufferPool : INativeObject, IDisposable { public static readonly NSString MinimumBufferCountKey; public static readonly NSString MaximumBufferAgeKey; private IntPtr handle; public IntPtr Handle => handle; public int TypeID => CVPixelBufferPoolGetTypeID(); public NSDictionary PixelBufferAttributes => (NSDictionary)Runtime.GetNSObject(CVPixelBufferPoolGetPixelBufferAttributes(handle)); public NSDictionary Attributes => (NSDictionary)Runtime.GetNSObject(CVPixelBufferPoolGetAttributes(handle)); public CVPixelBufferPoolSettings Settings { get { NSDictionary attributes = Attributes; if (attributes != null) { return new CVPixelBufferPoolSettings(attributes); } return null; } } static CVPixelBufferPool() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { MinimumBufferCountKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferPoolMinimumBufferCountKey"); MaximumBufferAgeKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferPoolMaximumBufferAgeKey"); } finally { Dlfcn.dlclose(intPtr); } } internal CVPixelBufferPool(IntPtr handle) { if (handle == IntPtr.Zero) { throw new ArgumentException("Invalid parameters to context creation"); } CVPixelBufferPoolRetain(handle); this.handle = handle; } [Preserve(Conditional = true)] internal CVPixelBufferPool(IntPtr handle, bool owns) { if (!owns) { CVPixelBufferPoolRetain(handle); } this.handle = handle; } ~CVPixelBufferPool() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVPixelBufferPoolRelease(IntPtr handle); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVPixelBufferPoolRetain(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CVPixelBufferPoolRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern int CVPixelBufferPoolGetTypeID(); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferPoolGetPixelBufferAttributes(IntPtr pool); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelBufferPoolGetAttributes(IntPtr pool); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferPoolCreatePixelBuffer(IntPtr allocator, IntPtr pixelBufferPool, IntPtr pixelBufferOut); public CVPixelBuffer CreatePixelBuffer() { IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); CVReturn cVReturn = CVPixelBufferPoolCreatePixelBuffer(IntPtr.Zero, handle, intPtr); if (cVReturn != 0) { Marshal.FreeHGlobal(intPtr); throw new Exception("CVPixelBufferPoolCreatePixelBuffer returned " + cVReturn); } CVPixelBuffer result = new CVPixelBuffer(Marshal.ReadIntPtr(intPtr)); Marshal.FreeHGlobal(intPtr); return result; } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(IntPtr allocator, IntPtr pixelBufferPool, IntPtr auxAttributes, out IntPtr pixelBufferOut); public CVPixelBuffer CreatePixelBuffer(CVPixelBufferPoolAllocationSettings allocationSettings, out CVReturn error) { error = CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(IntPtr.Zero, handle, allocationSettings?.Dictionary.Handle ?? IntPtr.Zero, out var pixelBufferOut); if (error != 0) { return null; } return new CVPixelBuffer(pixelBufferOut); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern CVReturn CVPixelBufferPoolCreate(IntPtr allocator, IntPtr poolAttributes, IntPtr pixelBufferAttributes, IntPtr poolOut); [Advice("Use overload with CVPixelBufferPoolSettings")] public CVPixelBufferPool(NSDictionary poolAttributes, NSDictionary pixelBufferAttributes) { if (pixelBufferAttributes == null) { throw new ArgumentNullException("pixelBufferAttributes"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); CVReturn cVReturn = CVPixelBufferPoolCreate(IntPtr.Zero, poolAttributes?.Handle ?? IntPtr.Zero, pixelBufferAttributes.Handle, intPtr); if (cVReturn != 0) { Marshal.FreeHGlobal(intPtr); throw new Exception("CVPixelBufferPoolCreate returned " + cVReturn); } handle = Marshal.ReadIntPtr(intPtr); Marshal.FreeHGlobal(intPtr); } public CVPixelBufferPool(CVPixelBufferPoolSettings settings, CVPixelBufferAttributes pixelBufferAttributes) : this(settings?.Dictionary, pixelBufferAttributes?.Dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBufferPoolAllocationSettings.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace CoreVideo; public class CVPixelBufferPoolAllocationSettings : DictionaryContainer { private static readonly NSString ThresholdKey; public int? Threshold { get { return GetInt32Value(ThresholdKey); } set { SetNumberValue(ThresholdKey, value); } } static CVPixelBufferPoolAllocationSettings() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { ThresholdKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelBufferPoolAllocationThresholdKey"); } finally { Dlfcn.dlclose(intPtr); } } public CVPixelBufferPoolAllocationSettings() : base(new NSMutableDictionary()) { } public CVPixelBufferPoolAllocationSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelBufferPoolSettings.cs ================================================ using Foundation; namespace CoreVideo; public class CVPixelBufferPoolSettings : DictionaryContainer { public int? MinimumBufferCount { get { return GetInt32Value(CVPixelBufferPool.MinimumBufferCountKey); } set { SetNumberValue(CVPixelBufferPool.MinimumBufferCountKey, value); } } public double? MaximumBufferAgeInSeconds { get { return GetDoubleValue(CVPixelBufferPool.MaximumBufferAgeKey); } set { SetNumberValue(CVPixelBufferPool.MaximumBufferAgeKey, value); } } public CVPixelBufferPoolSettings() : base(new NSMutableDictionary()) { } public CVPixelBufferPoolSettings(NSDictionary dictionary) : base(dictionary) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelFormatDescription.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreVideo; [Since(4, 0)] public static class CVPixelFormatDescription { public static readonly NSString NameKey; public static readonly NSString ConstantKey; public static readonly NSString CodecTypeKey; public static readonly NSString FourCCKey; public static readonly NSString PlanesKey; public static readonly NSString BlockWidthKey; public static readonly NSString BlockHeightKey; public static readonly NSString BitsPerBlockKey; public static readonly NSString BlockHorizontalAlignmentKey; public static readonly NSString BlockVerticalAlignmentKey; public static readonly NSString BlackBlockKey; public static readonly NSString HorizontalSubsamplingKey; public static readonly NSString VerticalSubsamplingKey; public static readonly NSString OpenGLFormatKey; public static readonly NSString OpenGLTypeKey; public static readonly NSString OpenGLInternalFormatKey; public static readonly NSString CGBitmapInfoKey; public static readonly NSString QDCompatibilityKey; public static readonly NSString CGBitmapContextCompatibilityKey; public static readonly NSString CGImageCompatibilityKey; public static readonly NSString OpenGLCompatibilityKey; public static readonly NSString FillExtendedPixelsCallbackKey; public static NSDictionary[] AllTypes => NSArray.ArrayFromHandle(CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(IntPtr.Zero)); static CVPixelFormatDescription() { IntPtr intPtr = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); if (intPtr == IntPtr.Zero) { return; } try { NameKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatName"); ConstantKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatConstant"); CodecTypeKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatCodecType"); FourCCKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatFourCC"); PlanesKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatPlanes"); BlockWidthKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBlockWidth"); BlockHeightKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBlockHeight"); BitsPerBlockKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBitsPerBlock"); BlockHorizontalAlignmentKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBlockHorizontalAlignment"); BlockVerticalAlignmentKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBlockVerticalAlignment"); BlackBlockKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatBlackBlock"); HorizontalSubsamplingKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatHorizontalSubsampling"); VerticalSubsamplingKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatVerticalSubsampling"); OpenGLFormatKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatOpenGLFormat"); OpenGLTypeKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatOpenGLType"); OpenGLInternalFormatKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatOpenGLInternalFormat"); CGBitmapInfoKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatCGBitmapInfo"); QDCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatQDCompatibility"); CGBitmapContextCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatCGBitmapContextCompatibility"); CGImageCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatCGImageCompatibility"); OpenGLCompatibilityKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatOpenGLCompatibility"); FillExtendedPixelsCallbackKey = Dlfcn.GetStringConstant(intPtr, "kCVPixelFormatFillExtendedPixelsCallback"); } finally { Dlfcn.dlclose(intPtr); } } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(IntPtr allocator); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern IntPtr CVPixelFormatDescriptionCreateWithPixelFormatType(IntPtr allocator, int pixelFormat); public static NSDictionary Create(int pixelFormat) { return (NSDictionary)Runtime.GetNSObject(CVPixelFormatDescriptionCreateWithPixelFormatType(IntPtr.Zero, pixelFormat)); } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")] private static extern void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(IntPtr description, int pixelFormat); public static void Register(NSDictionary description, int pixelFormat) { CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(description.Handle, pixelFormat); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPixelFormatType.cs ================================================ namespace CoreVideo; public enum CVPixelFormatType : uint { CV1Monochrome = 1u, CV2Indexed = 2u, CV4Indexed = 4u, CV8Indexed = 8u, CV1IndexedGray_WhiteIsZero = 33u, CV2IndexedGray_WhiteIsZero = 34u, CV4IndexedGray_WhiteIsZero = 36u, CV8IndexedGray_WhiteIsZero = 40u, CV16BE555 = 16u, CV24RGB = 24u, CV32ARGB = 32u, CV16LE555 = 1278555445u, CV16LE5551 = 892679473u, CV16BE565 = 1110783541u, CV16LE565 = 1278555701u, CV24BGR = 842285639u, CV32BGRA = 1111970369u, CV32ABGR = 1094862674u, CV32RGBA = 1380401729u, CV64ARGB = 1647719521u, CV48RGB = 1647589490u, CV32AlphaGray = 1647522401u, CV16Gray = 1647392359u, CV422YpCbCr8 = 846624121u, CV4444YpCbCrA8 = 1983131704u, CV4444YpCbCrA8R = 1916022840u, CV444YpCbCr8 = 1983066168u, CV422YpCbCr16 = 1983000886u, CV422YpCbCr10 = 1983000880u, CV444YpCbCr10 = 1983131952u, CV420YpCbCr8Planar = 2033463856u, CV420YpCbCr8PlanarFullRange = 1714696752u, CV422YpCbCr_4A_8BiPlanar = 1630697081u, CV420YpCbCr8BiPlanarVideoRange = 875704438u, CV420YpCbCr8BiPlanarFullRange = 875704422u, CV422YpCbCr8_yuvs = 2037741171u, CV422YpCbCr8FullRange = 2037741158u, CV30RGB = 1378955371u, CV4444AYpCbCr8 = 2033463352u, CV4444AYpCbCr16 = 2033463606u, OneComponent8 = 1278226488u, TwoComponent8 = 843264056u, OneComponent16Half = 1278226536u, OneComponent32Float = 1278226534u, TwoComponent16Half = 843264104u, TwoComponent32Float = 843264102u, CV64RGBAHalf = 1380411457u, CV128RGBAFloat = 1380410945u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPlanarComponentInfo.cs ================================================ namespace CoreVideo; public struct CVPlanarComponentInfo { public int Offset; public uint RowBytes; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPlanarPixelBufferInfo.cs ================================================ namespace CoreVideo; public struct CVPlanarPixelBufferInfo { public CVPlanarComponentInfo[] ComponentInfo; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVPlanarPixelBufferInfo_YCbCrPlanar.cs ================================================ namespace CoreVideo; public struct CVPlanarPixelBufferInfo_YCbCrPlanar { public CVPlanarComponentInfo ComponentInfoY; public CVPlanarComponentInfo ComponentInfoCb; public CVPlanarComponentInfo ComponentInfoCr; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVReturn.cs ================================================ namespace CoreVideo; public enum CVReturn { Success = 0, First = -6660, Error = -6660, InvalidArgument = -6661, AllocationFailed = -6662, InvalidDisplay = -6670, DisplayLinkAlreadyRunning = -6671, DisplayLinkNotRunning = -6672, DisplayLinkCallbacksNotSet = -6673, InvalidPixelFormat = -6680, InvalidSize = -6681, InvalidPixelBufferAttributes = -6682, PixelBufferNotOpenGLCompatible = -6683, WouldExceedAllocationThreshold = -6689, PoolAllocationFailed = -6690, InvalidPoolAttributes = -6691, Last = -6699 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVSMPTETime.cs ================================================ namespace CoreVideo; public struct CVSMPTETime { public short Subframes; public short SubframeDivisor; public uint Counter; public uint Type; public uint Flags; public short Hours; public short Minutes; public short Seconds; public short Frames; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVSMPTETimeFlags.cs ================================================ using System; namespace CoreVideo; [Flags] public enum CVSMPTETimeFlags { Valid = 1, Running = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVSMPTETimeType.cs ================================================ namespace CoreVideo; public enum CVSMPTETimeType { Type24, Type25, Type30Drop, Type30, Type2997, Type2997Drop, Type60, Type5994 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVTime.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace CoreVideo; public struct CVTime { public long TimeValue; public long TimeScale; public CVTimeFlags TimeFlags; private static IntPtr CoreVideo_libraryHandle = Dlfcn.dlopen("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", 0); public int Flags { get { return (int)TimeFlags; } set { TimeFlags = (CVTimeFlags)value; } } public static CVTime ZeroTime => (CVTime)Marshal.PtrToStructure(Dlfcn.GetIndirect(CoreVideo_libraryHandle, "kCVZeroTime"), typeof(CVTime)); public static CVTime IndefiniteTime => (CVTime)Marshal.PtrToStructure(Dlfcn.GetIndirect(CoreVideo_libraryHandle, "kCVIndefiniteTime"), typeof(CVTime)); public override bool Equals(object other) { if (!(other is CVTime cVTime)) { return false; } if (TimeValue == cVTime.TimeValue && TimeScale == cVTime.TimeScale) { return TimeFlags == cVTime.TimeFlags; } return false; } public override int GetHashCode() { return TimeValue.GetHashCode() ^ TimeScale.GetHashCode() ^ Flags; } [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", EntryPoint = "CVGetCurrentHostTime")] public static extern long GetCurrentHostTime(); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", EntryPoint = "CVGetHostClockFrequency")] public static extern double GetHostClockFrequency(); [DllImport("/System/Library/Frameworks/CoreVideo.framework/CoreVideo", EntryPoint = "CVGetHostClockMinimumTimeDelta")] public static extern int GetHostClockMinimumTimeDelta(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVTimeFlags.cs ================================================ using System; namespace CoreVideo; [Flags] public enum CVTimeFlags { IsIndefinite = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVTimeStamp.cs ================================================ namespace CoreVideo; public struct CVTimeStamp { public uint Version; public int VideoTimeScale; public long VideoTime; public ulong HostTime; public double RateScalar; public long VideoRefreshPeriod; public CVSMPTETime SMPTETime; public ulong Flags; public ulong Reserved; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreVideo/CVTimeStampFlags.cs ================================================ using System; namespace CoreVideo; [Flags] public enum CVTimeStampFlags { VideoTimeValid = 1, HostTimeValid = 2, SMPTETimeValid = 4, VideoRefreshPeriodValid = 8, RateScalarValid = 0x10, TopField = 0x10000, BottomField = 0x20000, VideoHostTimeValid = 3, IsInterlaced = 0x30000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreWlan/CW8021XProfile.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreWlan; [Register("CW8021XProfile", true)] public class CW8021XProfile : NSObject { private static readonly IntPtr selUserDefinedNameHandle = Selector.GetHandle("userDefinedName"); private static readonly IntPtr selSetUserDefinedName_Handle = Selector.GetHandle("setUserDefinedName:"); private static readonly IntPtr selSsidHandle = Selector.GetHandle("ssid"); private static readonly IntPtr selSetSsid_Handle = Selector.GetHandle("setSsid:"); private static readonly IntPtr selUsernameHandle = Selector.GetHandle("username"); private static readonly IntPtr selSetUsername_Handle = Selector.GetHandle("setUsername:"); private static readonly IntPtr selPasswordHandle = Selector.GetHandle("password"); private static readonly IntPtr selSetPassword_Handle = Selector.GetHandle("setPassword:"); private static readonly IntPtr selAlwaysPromptForPasswordHandle = Selector.GetHandle("alwaysPromptForPassword"); private static readonly IntPtr selSetAlwaysPromptForPassword_Handle = Selector.GetHandle("setAlwaysPromptForPassword:"); private static readonly IntPtr selProfileHandle = Selector.GetHandle("profile"); private static readonly IntPtr selAllUser8021XProfilesHandle = Selector.GetHandle("allUser8021XProfiles"); private static readonly IntPtr selIsEqualToProfile_Handle = Selector.GetHandle("isEqualToProfile:"); private static readonly IntPtr class_ptr = Class.GetHandle("CW8021XProfile"); private static object __mt_Profile_var_static; private static object __mt_AllUser8021XProfiles_var_static; public override IntPtr ClassHandle => class_ptr; public virtual string UserDefinedName { [Export("userDefinedName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserDefinedNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserDefinedNameHandle)); } [Export("setUserDefinedName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserDefinedName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserDefinedName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Ssid { [Export("ssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSsidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSsidHandle)); } [Export("setSsid:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSsid_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSsid_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Username { [Export("username")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUsernameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUsernameHandle)); } [Export("setUsername:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUsername_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUsername_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Password { [Export("password")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPasswordHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPasswordHandle)); } [Export("setPassword:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPassword_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPassword_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool AlwaysPromptForPassword { [Export("alwaysPromptForPassword")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysPromptForPasswordHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysPromptForPasswordHandle); } [Export("setAlwaysPromptForPassword:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysPromptForPassword_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysPromptForPassword_Handle, value); } } } public static CW8021XProfile Profile { [Export("profile")] get { return (CW8021XProfile)(__mt_Profile_var_static = (CW8021XProfile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selProfileHandle))); } } public static CW8021XProfile[] AllUser8021XProfiles { [Export("allUser8021XProfiles")] get { return (CW8021XProfile[])(__mt_AllUser8021XProfiles_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllUser8021XProfilesHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CW8021XProfile() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CW8021XProfile(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CW8021XProfile(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CW8021XProfile(IntPtr handle) : base(handle) { } [Export("isEqualToProfile:")] public virtual bool IsEqualToProfile(CW8021XProfile profile) { if (profile == null) { throw new ArgumentNullException("profile"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToProfile_Handle, profile.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToProfile_Handle, profile.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreWlan/CWConfiguration.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreWlan; [Register("CWConfiguration", true)] public class CWConfiguration : NSObject { private static readonly IntPtr selRememberedNetworksHandle = Selector.GetHandle("rememberedNetworks"); private static readonly IntPtr selSetRememberedNetworks_Handle = Selector.GetHandle("setRememberedNetworks:"); private static readonly IntPtr selPreferredNetworksHandle = Selector.GetHandle("preferredNetworks"); private static readonly IntPtr selSetPreferredNetworks_Handle = Selector.GetHandle("setPreferredNetworks:"); private static readonly IntPtr selAlwaysRememberNetworksHandle = Selector.GetHandle("alwaysRememberNetworks"); private static readonly IntPtr selSetAlwaysRememberNetworks_Handle = Selector.GetHandle("setAlwaysRememberNetworks:"); private static readonly IntPtr selDisconnectOnLogoutHandle = Selector.GetHandle("disconnectOnLogout"); private static readonly IntPtr selSetDisconnectOnLogout_Handle = Selector.GetHandle("setDisconnectOnLogout:"); private static readonly IntPtr selRequireAdminForNetworkChangeHandle = Selector.GetHandle("requireAdminForNetworkChange"); private static readonly IntPtr selSetRequireAdminForNetworkChange_Handle = Selector.GetHandle("setRequireAdminForNetworkChange:"); private static readonly IntPtr selRequireAdminForPowerChangeHandle = Selector.GetHandle("requireAdminForPowerChange"); private static readonly IntPtr selSetRequireAdminForPowerChange_Handle = Selector.GetHandle("setRequireAdminForPowerChange:"); private static readonly IntPtr selRequireAdminForIBSSCreationHandle = Selector.GetHandle("requireAdminForIBSSCreation"); private static readonly IntPtr selSetRequireAdminForIBSSCreation_Handle = Selector.GetHandle("setRequireAdminForIBSSCreation:"); private static readonly IntPtr selIsEqualToConfiguration_Handle = Selector.GetHandle("isEqualToConfiguration:"); private static readonly IntPtr class_ptr = Class.GetHandle("CWConfiguration"); private object __mt_RememberedNetworks_var; private object __mt_PreferredNetworks_var; public override IntPtr ClassHandle => class_ptr; public virtual NSSet RememberedNetworks { [Export("rememberedNetworks")] get { return (NSSet)(__mt_RememberedNetworks_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRememberedNetworksHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRememberedNetworksHandle))))); } [Export("setRememberedNetworks:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRememberedNetworks_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRememberedNetworks_Handle, value.Handle); } __mt_RememberedNetworks_var = value; } } public virtual CWWirelessProfile[] PreferredNetworks { [Export("preferredNetworks")] get { return (CWWirelessProfile[])(__mt_PreferredNetworks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferredNetworksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferredNetworksHandle)))); } [Export("setPreferredNetworks:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPreferredNetworks_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPreferredNetworks_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_PreferredNetworks_var = value; } } public virtual bool AlwaysRememberNetworks { [Export("alwaysRememberNetworks")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysRememberNetworksHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysRememberNetworksHandle); } [Export("setAlwaysRememberNetworks:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysRememberNetworks_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysRememberNetworks_Handle, value); } } } public virtual bool DisconnectOnLogout { [Export("disconnectOnLogout")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisconnectOnLogoutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisconnectOnLogoutHandle); } [Export("setDisconnectOnLogout:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisconnectOnLogout_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisconnectOnLogout_Handle, value); } } } public virtual bool RequireAdminForNetworkChange { [Export("requireAdminForNetworkChange")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRequireAdminForNetworkChangeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRequireAdminForNetworkChangeHandle); } [Export("setRequireAdminForNetworkChange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRequireAdminForNetworkChange_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRequireAdminForNetworkChange_Handle, value); } } } public virtual bool RequireAdminForPowerChange { [Export("requireAdminForPowerChange")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRequireAdminForPowerChangeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRequireAdminForPowerChangeHandle); } [Export("setRequireAdminForPowerChange:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRequireAdminForPowerChange_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRequireAdminForPowerChange_Handle, value); } } } public virtual bool RequireAdminForIBSSCreation { [Export("requireAdminForIBSSCreation")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRequireAdminForIBSSCreationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRequireAdminForIBSSCreationHandle); } [Export("setRequireAdminForIBSSCreation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetRequireAdminForIBSSCreation_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetRequireAdminForIBSSCreation_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CWConfiguration() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CWConfiguration(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWConfiguration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWConfiguration(IntPtr handle) : base(handle) { } [Export("isEqualToConfiguration:")] public virtual bool IsEqualToConfiguration(CWConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToConfiguration_Handle, configuration.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToConfiguration_Handle, configuration.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_RememberedNetworks_var = null; __mt_PreferredNetworks_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreWlan/CWInterface.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace CoreWlan; [Register("CWInterface", true)] public class CWInterface : NSObject { private static readonly IntPtr selSupportsWoWHandle = Selector.GetHandle("supportsWoW"); private static readonly IntPtr selSupportsWEPHandle = Selector.GetHandle("supportsWEP"); private static readonly IntPtr selSupportsAES_CCMHandle = Selector.GetHandle("supportsAES_CCM"); private static readonly IntPtr selSupportsIBSSHandle = Selector.GetHandle("supportsIBSS"); private static readonly IntPtr selSupportsTKIPHandle = Selector.GetHandle("supportsTKIP"); private static readonly IntPtr selSupportsPMGTHandle = Selector.GetHandle("supportsPMGT"); private static readonly IntPtr selSupportsHostAPHandle = Selector.GetHandle("supportsHostAP"); private static readonly IntPtr selSupportsMonitorModeHandle = Selector.GetHandle("supportsMonitorMode"); private static readonly IntPtr selSupportsWPAHandle = Selector.GetHandle("supportsWPA"); private static readonly IntPtr selSupportsWPA2Handle = Selector.GetHandle("supportsWPA2"); private static readonly IntPtr selSupportsWMEHandle = Selector.GetHandle("supportsWME"); private static readonly IntPtr selSupportsShortGI40MHzHandle = Selector.GetHandle("supportsShortGI40MHz"); private static readonly IntPtr selSupportsShortGI20MHzHandle = Selector.GetHandle("supportsShortGI20MHz"); private static readonly IntPtr selSupportsTSNHandle = Selector.GetHandle("supportsTSN"); private static readonly IntPtr selPowerHandle = Selector.GetHandle("power"); private static readonly IntPtr selPowerSaveHandle = Selector.GetHandle("powerSave"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSupportedChannelsHandle = Selector.GetHandle("supportedChannels"); private static readonly IntPtr selSupportedPHYModesHandle = Selector.GetHandle("supportedPHYModes"); private static readonly IntPtr selChannelHandle = Selector.GetHandle("channel"); private static readonly IntPtr selPhyModeHandle = Selector.GetHandle("phyMode"); private static readonly IntPtr selSsidHandle = Selector.GetHandle("ssid"); private static readonly IntPtr selBssidHandle = Selector.GetHandle("bssid"); private static readonly IntPtr selBssidDataHandle = Selector.GetHandle("bssidData"); private static readonly IntPtr selRssiHandle = Selector.GetHandle("rssi"); private static readonly IntPtr selNoiseHandle = Selector.GetHandle("noise"); private static readonly IntPtr selTxRateHandle = Selector.GetHandle("txRate"); private static readonly IntPtr selSecurityModeHandle = Selector.GetHandle("securityMode"); private static readonly IntPtr selInterfaceStateHandle = Selector.GetHandle("interfaceState"); private static readonly IntPtr selCountryCodeHandle = Selector.GetHandle("countryCode"); private static readonly IntPtr selOpModeHandle = Selector.GetHandle("opMode"); private static readonly IntPtr selTxPowerHandle = Selector.GetHandle("txPower"); private static readonly IntPtr selConfigurationHandle = Selector.GetHandle("configuration"); private static readonly IntPtr selSupportedInterfacesHandle = Selector.GetHandle("supportedInterfaces"); private static readonly IntPtr selInterfaceHandle = Selector.GetHandle("interface"); private static readonly IntPtr selInterfaceWithName_Handle = Selector.GetHandle("interfaceWithName:"); private static readonly IntPtr selInitWithInterfaceName_Handle = Selector.GetHandle("initWithInterfaceName:"); private static readonly IntPtr selIsEqualToInterface_Handle = Selector.GetHandle("isEqualToInterface:"); private static readonly IntPtr selSetPowerError_Handle = Selector.GetHandle("setPower:error:"); private static readonly IntPtr selSetChannelError_Handle = Selector.GetHandle("setChannel:error:"); private static readonly IntPtr selScanForNetworksWithParametersError_Handle = Selector.GetHandle("scanForNetworksWithParameters:error:"); private static readonly IntPtr selAssociateToNetworkParametersError_Handle = Selector.GetHandle("associateToNetwork:parameters:error:"); private static readonly IntPtr selDisassociateHandle = Selector.GetHandle("disassociate"); private static readonly IntPtr selEnableIBSSWithParametersError_Handle = Selector.GetHandle("enableIBSSWithParameters:error:"); private static readonly IntPtr selCommitConfigurationError_Handle = Selector.GetHandle("commitConfiguration:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("CWInterface"); private object __mt_SupportedChannels_var; private object __mt_SupportedPhyModes_var; private object __mt_Channel_var; private object __mt_PhyMode_var; private object __mt_BssidData_var; private object __mt_Rssi_var; private object __mt_Noise_var; private object __mt_TxRate_var; private object __mt_SecurityMode_var; private object __mt_InterfaceState_var; private object __mt_OpMode_var; private object __mt_TxPower_var; private object __mt_Configuration_var; private static object __mt_MainInterface_var_static; public override IntPtr ClassHandle => class_ptr; public virtual bool SupportsWow { [Export("supportsWoW")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsWoWHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsWoWHandle); } } public virtual bool SupportsWep { [Export("supportsWEP")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsWEPHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsWEPHandle); } } public virtual bool SupportsAesCcm { [Export("supportsAES_CCM")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsAES_CCMHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsAES_CCMHandle); } } public virtual bool SupportsIbss { [Export("supportsIBSS")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsIBSSHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsIBSSHandle); } } public virtual bool SupportsTkip { [Export("supportsTKIP")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsTKIPHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsTKIPHandle); } } public virtual bool SupportsPmgt { [Export("supportsPMGT")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsPMGTHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsPMGTHandle); } } public virtual bool SupportsHostAP { [Export("supportsHostAP")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsHostAPHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsHostAPHandle); } } public virtual bool SupportsMonitorMode { [Export("supportsMonitorMode")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsMonitorModeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsMonitorModeHandle); } } public virtual bool SupportsWpa { [Export("supportsWPA")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsWPAHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsWPAHandle); } } public virtual bool SupportsWpa2 { [Export("supportsWPA2")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsWPA2Handle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsWPA2Handle); } } public virtual bool SupportsWme { [Export("supportsWME")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsWMEHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsWMEHandle); } } public virtual bool SupportsShortGI40MHz { [Export("supportsShortGI40MHz")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsShortGI40MHzHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsShortGI40MHzHandle); } } public virtual bool SupportsShortGI20MHz { [Export("supportsShortGI20MHz")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsShortGI20MHzHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsShortGI20MHzHandle); } } public virtual bool SupportsTsn { [Export("supportsTSN")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsTSNHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsTSNHandle); } } public virtual bool Power { [Export("power")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPowerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPowerHandle); } } public virtual bool PowerSave { [Export("powerSave")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPowerSaveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPowerSaveHandle); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual NSNumber[] SupportedChannels { [Export("supportedChannels")] get { return (NSNumber[])(__mt_SupportedChannels_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSupportedChannelsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSupportedChannelsHandle)))); } } public virtual NSNumber[] SupportedPhyModes { [Export("supportedPHYModes")] get { return (NSNumber[])(__mt_SupportedPhyModes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSupportedPHYModesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSupportedPHYModesHandle)))); } } public virtual NSNumber Channel { [Export("channel")] get { return (NSNumber)(__mt_Channel_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChannelHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChannelHandle))))); } } public virtual NSNumber PhyMode { [Export("phyMode")] get { return (NSNumber)(__mt_PhyMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPhyModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPhyModeHandle))))); } } public virtual string Ssid { [Export("ssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSsidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSsidHandle)); } } public virtual string Bssid { [Export("bssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBssidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBssidHandle)); } } public virtual NSData BssidData { [Export("bssidData")] get { return (NSData)(__mt_BssidData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBssidDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBssidDataHandle))))); } } public virtual NSNumber Rssi { [Export("rssi")] get { return (NSNumber)(__mt_Rssi_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRssiHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRssiHandle))))); } } public virtual NSNumber Noise { [Export("noise")] get { return (NSNumber)(__mt_Noise_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNoiseHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNoiseHandle))))); } } public virtual NSNumber TxRate { [Export("txRate")] get { return (NSNumber)(__mt_TxRate_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTxRateHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTxRateHandle))))); } } public virtual NSNumber SecurityMode { [Export("securityMode")] get { return (NSNumber)(__mt_SecurityMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSecurityModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSecurityModeHandle))))); } } public virtual NSNumber InterfaceState { [Export("interfaceState")] get { return (NSNumber)(__mt_InterfaceState_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInterfaceStateHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInterfaceStateHandle))))); } } public virtual string CountryCode { [Export("countryCode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCountryCodeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCountryCodeHandle)); } } public virtual NSNumber OpMode { [Export("opMode")] get { return (NSNumber)(__mt_OpMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOpModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOpModeHandle))))); } } public virtual NSNumber TxPower { [Export("txPower")] get { return (NSNumber)(__mt_TxPower_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTxPowerHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTxPowerHandle))))); } } public virtual CWConfiguration Configuration { [Export("configuration")] get { return (CWConfiguration)(__mt_Configuration_var = ((!IsDirectBinding) ? ((CWConfiguration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConfigurationHandle))) : ((CWConfiguration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConfigurationHandle))))); } } public static string[] SupportedInterfaces { [Export("supportedInterfaces")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selSupportedInterfacesHandle)); } } public static CWInterface MainInterface { [Export("interface")] get { return (CWInterface)(__mt_MainInterface_var_static = (CWInterface)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selInterfaceHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CWInterface() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CWInterface(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWInterface(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWInterface(IntPtr handle) : base(handle) { } [Export("interfaceWithName:")] public static CWInterface FromName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); CWInterface result = (CWInterface)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selInterfaceWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithInterfaceName:")] public CWInterface(string name) : base(NSObjectFlag.Empty) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithInterfaceName_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithInterfaceName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("isEqualToInterface:")] public virtual bool IsEqualToInterface(CWInterface intface) { if (intface == null) { throw new ArgumentNullException("intface"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToInterface_Handle, intface.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToInterface_Handle, intface.Handle); } [Export("setPower:error:")] public virtual bool SetPower(bool power, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selSetPowerError_Handle, power, intPtr) : Messaging.bool_objc_msgSend_bool_IntPtr(base.Handle, selSetPowerError_Handle, power, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setChannel:error:")] public virtual bool SetChannel(uint channel, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_UInt32_IntPtr(base.SuperHandle, selSetChannelError_Handle, channel, intPtr) : Messaging.bool_objc_msgSend_UInt32_IntPtr(base.Handle, selSetChannelError_Handle, channel, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("scanForNetworksWithParameters:error:")] public virtual CWNetwork[] ScanForNetworksWithParameters(NSDictionary parameters, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); CWNetwork[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScanForNetworksWithParametersError_Handle, parameters?.Handle ?? IntPtr.Zero, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selScanForNetworksWithParametersError_Handle, parameters?.Handle ?? IntPtr.Zero, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("associateToNetwork:parameters:error:")] public virtual bool AssociateToNetwork(CWNetwork network, NSDictionary parameters, out NSError error) { if (network == null) { throw new ArgumentNullException("network"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAssociateToNetworkParametersError_Handle, network.Handle, parameters?.Handle ?? IntPtr.Zero, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selAssociateToNetworkParametersError_Handle, network.Handle, parameters?.Handle ?? IntPtr.Zero, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("disassociate")] public virtual void Disassociate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisassociateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisassociateHandle); } } [Export("enableIBSSWithParameters:error:")] public virtual bool EnableIBSSWithParameters(NSDictionary parameters, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEnableIBSSWithParametersError_Handle, parameters?.Handle ?? IntPtr.Zero, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selEnableIBSSWithParametersError_Handle, parameters?.Handle ?? IntPtr.Zero, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("commitConfiguration:error:")] public virtual bool CommitConfiguration(CWConfiguration config, out NSError error) { if (config == null) { throw new ArgumentNullException("config"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCommitConfigurationError_Handle, config.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selCommitConfigurationError_Handle, config.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SupportedChannels_var = null; __mt_SupportedPhyModes_var = null; __mt_Channel_var = null; __mt_PhyMode_var = null; __mt_BssidData_var = null; __mt_Rssi_var = null; __mt_Noise_var = null; __mt_TxRate_var = null; __mt_SecurityMode_var = null; __mt_InterfaceState_var = null; __mt_OpMode_var = null; __mt_TxPower_var = null; __mt_Configuration_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreWlan/CWNetwork.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreWlan; [Register("CWNetwork", true)] public class CWNetwork : NSObject { private static readonly IntPtr selSsidHandle = Selector.GetHandle("ssid"); private static readonly IntPtr selBssidHandle = Selector.GetHandle("bssid"); private static readonly IntPtr selBssidDataHandle = Selector.GetHandle("bssidData"); private static readonly IntPtr selSecurityModeHandle = Selector.GetHandle("securityMode"); private static readonly IntPtr selPhyModeHandle = Selector.GetHandle("phyMode"); private static readonly IntPtr selChannelHandle = Selector.GetHandle("channel"); private static readonly IntPtr selRssiHandle = Selector.GetHandle("rssi"); private static readonly IntPtr selNoiseHandle = Selector.GetHandle("noise"); private static readonly IntPtr selIeDataHandle = Selector.GetHandle("ieData"); private static readonly IntPtr selIsIBSSHandle = Selector.GetHandle("isIBSS"); private static readonly IntPtr selWirelessProfileHandle = Selector.GetHandle("wirelessProfile"); private static readonly IntPtr selIsEqualToNetwork_Handle = Selector.GetHandle("isEqualToNetwork:"); private static readonly IntPtr class_ptr = Class.GetHandle("CWNetwork"); private object __mt_BssidData_var; private object __mt_SecurityMode_var; private object __mt_PhyMode_var; private object __mt_Channel_var; private object __mt_Rssi_var; private object __mt_Noise_var; private object __mt_IeData_var; private object __mt_WirelessProfile_var; public override IntPtr ClassHandle => class_ptr; public virtual string Ssid { [Export("ssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSsidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSsidHandle)); } } public virtual string Bssid { [Export("bssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBssidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBssidHandle)); } } public virtual NSData BssidData { [Export("bssidData")] get { return (NSData)(__mt_BssidData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBssidDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBssidDataHandle))))); } } public virtual NSNumber SecurityMode { [Export("securityMode")] get { return (NSNumber)(__mt_SecurityMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSecurityModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSecurityModeHandle))))); } } public virtual NSNumber PhyMode { [Export("phyMode")] get { return (NSNumber)(__mt_PhyMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPhyModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPhyModeHandle))))); } } public virtual NSNumber Channel { [Export("channel")] get { return (NSNumber)(__mt_Channel_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChannelHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChannelHandle))))); } } public virtual NSNumber Rssi { [Export("rssi")] get { return (NSNumber)(__mt_Rssi_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRssiHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRssiHandle))))); } } public virtual NSNumber Noise { [Export("noise")] get { return (NSNumber)(__mt_Noise_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNoiseHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNoiseHandle))))); } } public virtual NSData IeData { [Export("ieData")] get { return (NSData)(__mt_IeData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIeDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIeDataHandle))))); } } public virtual bool IsIBSS { [Export("isIBSS")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsIBSSHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsIBSSHandle); } } public virtual CWWirelessProfile WirelessProfile { [Export("wirelessProfile")] get { return (CWWirelessProfile)(__mt_WirelessProfile_var = ((!IsDirectBinding) ? ((CWWirelessProfile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWirelessProfileHandle))) : ((CWWirelessProfile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWirelessProfileHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CWNetwork() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CWNetwork(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWNetwork(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWNetwork(IntPtr handle) : base(handle) { } [Export("isEqualToNetwork:")] public virtual bool IsEqualToNetwork(CWNetwork network) { if (network == null) { throw new ArgumentNullException("network"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToNetwork_Handle, network.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToNetwork_Handle, network.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BssidData_var = null; __mt_SecurityMode_var = null; __mt_PhyMode_var = null; __mt_Channel_var = null; __mt_Rssi_var = null; __mt_Noise_var = null; __mt_IeData_var = null; __mt_WirelessProfile_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/CoreWlan/CWWirelessProfile.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace CoreWlan; [Register("CWWirelessProfile", true)] public class CWWirelessProfile : NSObject { private static readonly IntPtr selSsidHandle = Selector.GetHandle("ssid"); private static readonly IntPtr selSetSsid_Handle = Selector.GetHandle("setSsid:"); private static readonly IntPtr selSecurityModeHandle = Selector.GetHandle("securityMode"); private static readonly IntPtr selSetSecurityMode_Handle = Selector.GetHandle("setSecurityMode:"); private static readonly IntPtr selPassphraseHandle = Selector.GetHandle("passphrase"); private static readonly IntPtr selSetPassphrase_Handle = Selector.GetHandle("setPassphrase:"); private static readonly IntPtr selUser8021XProfileHandle = Selector.GetHandle("user8021XProfile"); private static readonly IntPtr selSetUser8021XProfile_Handle = Selector.GetHandle("setUser8021XProfile:"); private static readonly IntPtr selIsEqualToProfile_Handle = Selector.GetHandle("isEqualToProfile:"); private static readonly IntPtr class_ptr = Class.GetHandle("CWWirelessProfile"); private object __mt_SecurityMode_var; private object __mt_User8021XProfile_var; public override IntPtr ClassHandle => class_ptr; public virtual string Ssid { [Export("ssid")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSsidHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSsidHandle)); } [Export("setSsid:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSsid_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSsid_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSNumber SecurityMode { [Export("securityMode")] get { return (NSNumber)(__mt_SecurityMode_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSecurityModeHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSecurityModeHandle))))); } [Export("setSecurityMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSecurityMode_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSecurityMode_Handle, value.Handle); } __mt_SecurityMode_var = value; } } public virtual string Passphrase { [Export("passphrase")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPassphraseHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPassphraseHandle)); } [Export("setPassphrase:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPassphrase_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPassphrase_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual CW8021XProfile User8021XProfile { [Export("user8021XProfile")] get { return (CW8021XProfile)(__mt_User8021XProfile_var = ((!IsDirectBinding) ? ((CW8021XProfile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUser8021XProfileHandle))) : ((CW8021XProfile)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUser8021XProfileHandle))))); } [Export("setUser8021XProfile:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUser8021XProfile_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUser8021XProfile_Handle, value.Handle); } __mt_User8021XProfile_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public CWWirelessProfile() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public CWWirelessProfile(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWWirelessProfile(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public CWWirelessProfile(IntPtr handle) : base(handle) { } [Export("isEqualToProfile:")] public virtual bool IsEqualToProfile(CWWirelessProfile profile) { if (profile == null) { throw new ArgumentNullException("profile"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToProfile_Handle, profile.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToProfile_Handle, profile.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_SecurityMode_var = null; __mt_User8021XProfile_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/EventFilter.cs ================================================ namespace Darwin; public enum EventFilter : short { Read = -1, Write = -2, Aio = -3, Vnode = -4, Proc = -5, Signal = -6, Timer = -7, MachPort = -8, FS = -9, User = -10, VM = -11 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/EventFlags.cs ================================================ using System; namespace Darwin; [Flags] public enum EventFlags : ushort { Add = 1, Delete = 2, Enable = 4, Disable = 8, OneShot = 0x10, Clear = 0x20, Receipt = 0x40, Dispatch = 0x80, Flag0 = 0x1000, Flag1 = 0x2000, SystemFlags = 0xF000, EOF = 0x8000, Error = 0x4000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/FilterFlags.cs ================================================ using System; namespace Darwin; [Flags] public enum FilterFlags : uint { ReadPoll = 0x1000u, ReadOutOfBand = 0x2000u, ReadLowWaterMark = 1u, WriteLowWaterMark = 1u, NoteTrigger = 0x1000000u, NoteFFNop = 0u, NoteFFAnd = 0x40000000u, NoteFFOr = 0x80000000u, NoteFFCopy = 0xC0000000u, NoteFFCtrlMask = 0xC0000000u, NoteFFlagsMask = 0xFFFFFFu, VNodeDelete = 1u, VNodeWrite = 2u, VNodeExtend = 4u, VNodeAttrib = 8u, VNodeLink = 0x10u, VNodeRename = 0x20u, VNodeRevoke = 0x40u, VNodeNone = 0x80u, ProcExit = 0x80000000u, ProcFork = 0x40000000u, ProcExec = 0x20000000u, ProcReap = 0x10000000u, ProcSignal = 0x8000000u, ProcExitStatus = 0x4000000u, ProcResourceEnd = 0x2000000u, ProcAppactive = 0x800000u, ProcAppBackground = 0x400000u, ProcAppNonUI = 0x200000u, ProcAppInactive = 0x100000u, ProcAppAllStates = 0xF00000u, ProcPDataMask = 0xFFFFFu, ProcControlMask = 0xFFF00000u, VMPressure = 0x80000000u, VMPressureTerminate = 0x40000000u, VMPressureSuddenTerminate = 0x20000000u, VMError = 0x10000000u, TimerSeconds = 1u, TimerMicroSeconds = 2u, TimerNanoSeconds = 4u, TimerAbsolute = 8u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/KernelEvent.cs ================================================ using System; namespace Darwin; public struct KernelEvent { public IntPtr Ident; public EventFilter Filter; public EventFlags Flags; public uint FilterFlags; public IntPtr Data; public IntPtr UserData; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/KernelQueue.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace Darwin; public class KernelQueue : IDisposable, INativeObject { private int handle; public IntPtr Handle => (IntPtr)handle; [DllImport("/usr/lib/libSystem.dylib")] private static extern int kqueue(); [DllImport("/usr/lib/libSystem.dylib")] private static extern int close(int fd); public KernelQueue() { handle = kqueue(); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ~KernelQueue() { Dispose(disposing: false); } protected virtual void Dispose(bool disposing) { if (handle != -1) { close(handle); handle = -1; } } [DllImport("/usr/lib/libSystem.dylib")] private unsafe static extern int kevent(int kq, KernelEvent* changeList, int nChanges, KernelEvent* eventList, int nEvents, IntPtr timeout); [DllImport("/usr/lib/libSystem.dylib")] private unsafe static extern int kevent(int kq, KernelEvent* changeList, int nChanges, KernelEvent* eventList, int nEvents, ref TimeSpec timeout); public unsafe int KEvent(KernelEvent[] changeList, int nChanges, KernelEvent[] eventList, int nEvents, ref TimeSpec timeOut) { if (changeList != null && changeList.Length < nChanges) { throw new ArgumentException("nChanges is larger than the number of elements in changeList"); } if (eventList != null && eventList.Length < nEvents) { throw new ArgumentException("nChanges is larger than the number of elements in changeList"); } fixed (KernelEvent* changeList2 = &changeList[0]) { fixed (KernelEvent* eventList2 = &eventList[0]) { return kevent(handle, changeList2, nChanges, eventList2, nEvents, ref timeOut); } } } public unsafe int KEvent(KernelEvent[] changeList, int nChanges, KernelEvent[] eventList, int nEvents) { if (changeList != null && changeList.Length < nChanges) { throw new ArgumentException("nChanges is larger than the number of elements in changeList"); } if (eventList != null && eventList.Length < nEvents) { throw new ArgumentException("nChanges is larger than the number of elements in changeList"); } fixed (KernelEvent* changeList2 = &changeList[0]) { fixed (KernelEvent* eventList2 = &eventList[0]) { return kevent(handle, changeList2, nChanges, eventList2, nEvents, IntPtr.Zero); } } } public unsafe int KEvent(KernelEvent[] changeList, KernelEvent[] eventList, ref TimeSpec timeOut) { fixed (KernelEvent* changeList2 = &changeList[0]) { fixed (KernelEvent* eventList2 = &eventList[0]) { return kevent(handle, changeList2, (changeList != null) ? changeList.Length : 0, eventList2, (eventList != null) ? eventList.Length : 0, ref timeOut); } } } public unsafe int KEvent(KernelEvent[] changeList, KernelEvent[] eventList) { fixed (KernelEvent* changeList2 = &changeList[0]) { fixed (KernelEvent* eventList2 = &eventList[0]) { return kevent(handle, changeList2, (changeList != null) ? changeList.Length : 0, eventList2, (eventList != null) ? eventList.Length : 0, IntPtr.Zero); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/Message.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace Darwin; public class Message : IDisposable, INativeObject { public enum Kind { Message, Query } [Flags] public enum Op { CaseFold = 0x10, Prefix = 0x20, Suffix = 0x40, Substring = 0x60, Numeric = 0x80, Regex = 0x100, Equal = 1, Greater = 2, GreaterEqual = 3, Less = 4, LessEqual = 5, NotEqual = 6, True = 7 } public IntPtr Handle { get; private set; } public string this[string key] { get { if (key == null) { throw new ArgumentNullException("key"); } return asl_get(Handle, key); } set { if (key == null) { throw new ArgumentNullException("key"); } asl_set(Handle, key, value); } } public string this[int key] => asl_key(Handle, key); public string Time { get { return this["Time"]; } set { this["Time"] = value; } } public string Host { get { return this["Host"]; } set { this["Host"] = value; } } public string Sender { get { return this["Sender"]; } set { this["Sender"] = value; } } public string Facility { get { return this["Facility"]; } set { this["Facility"] = value; } } public string PID { get { return this["PID"]; } set { this["PID"] = value; } } public string UID { get { return this["UID"]; } set { this["UID"] = value; } } public string GID { get { return this["GID"]; } set { this["GID"] = value; } } public string Level { get { return this["Level"]; } set { this["Level"] = value; } } public string Msg { get { return this["Message"]; } set { this["Message"] = value; } } internal Message(IntPtr handle) { Handle = handle; } public Message(Kind kind) { Handle = asl_new(kind); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ~Message() { Dispose(disposing: false); } [DllImport("/usr/lib/libSystem.dylib")] private static extern void asl_free(IntPtr handle); protected virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { asl_free(Handle); Handle = IntPtr.Zero; } } [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_new(Kind kind); [DllImport("/usr/lib/libSystem.dylib")] private static extern string asl_get(IntPtr handle, string key); [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_set(IntPtr handle, string key, string value); [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_unset(IntPtr handle, string key); public void Remove(string key) { if (key == null) { throw new ArgumentNullException("key"); } asl_unset(Handle, key); } [DllImport("/usr/lib/libSystem.dylib")] private static extern string asl_key(IntPtr handle, int key); [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_set_query(IntPtr handle, string key, string value, int op); public bool SetQuery(string key, Op op, string value) { return asl_set_query(Handle, key, value, (int)op) == 0; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/SystemLog.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using ObjCRuntime; namespace Darwin; public class SystemLog : IDisposable, INativeObject { [Flags] public enum Option { Stderr = 0, NoDelay = 1, NoRemote = 2 } private static SystemLog _default; private bool disposed; private IntPtr handle; public static SystemLog Default { get { if (_default == null) { _default = new SystemLog(IntPtr.Zero); } return _default; } } public IntPtr Handle => handle; public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ~SystemLog() { Dispose(disposing: false); } protected virtual void Dispose(bool disposing) { if (!disposed) { asl_close(handle); disposed = true; handle = IntPtr.Zero; } } [DllImport("/usr/lib/libSystem.dylib")] private static extern void asl_close(IntPtr handle); [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_open(string ident, string facility, Option options); private SystemLog(IntPtr handle) { this.handle = handle; } public SystemLog(string ident, string facility, Option options = Option.Stderr) { if (ident == null) { throw new ArgumentNullException("ident"); } if (facility == null) { throw new ArgumentNullException("facility"); } handle = asl_open(ident, facility, options); } [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_open_from_file(int fd, string ident, string facility); public SystemLog(int fileDescriptor, string ident, string facility) { if (ident == null) { throw new ArgumentNullException("ident"); } if (facility == null) { throw new ArgumentNullException("facility"); } handle = asl_open_from_file(fileDescriptor, ident, facility); } [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_add_log_file(IntPtr handle, int fd); [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_remove_log_file(IntPtr handle, int fd); public void AddLogFile(int descriptor) { asl_add_log_file(handle, descriptor); } public void RemoveLogFile(int descriptor) { asl_remove_log_file(handle, descriptor); } [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_log(IntPtr handle, IntPtr msgHandle, string text); public int Log(Message msg, string text, params object[] args) { string text2 = ((text == null) ? "" : string.Format(text, args)); if (text2.IndexOf("%") != -1) { text2 = text2.Replace("%", "%%"); } return asl_log(handle, msg?.Handle ?? IntPtr.Zero, text2); } public int Log(string text) { if (text == null) { throw new ArgumentNullException("text"); } return asl_log(handle, IntPtr.Zero, text); } [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_send(IntPtr handle, IntPtr msgHandle); public int Log(Message msg) { if (msg == null) { throw new ArgumentNullException("msg"); } return asl_send(handle, msg.Handle); } [DllImport("/usr/lib/libSystem.dylib")] private static extern int asl_set_filter(IntPtr handle, int f); public int SetFilter(int level) { return asl_set_filter(handle, level); } [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr asl_search(IntPtr handle, IntPtr msg); [DllImport("/usr/lib/libSystem.dylib")] private static extern IntPtr aslresponse_next(IntPtr handle); [DllImport("/usr/lib/libSystem.dylib")] private static extern void aslresponse_free(IntPtr handle); public IEnumerable Search(Message msg) { if (msg == null) { throw new ArgumentNullException("msg"); } IntPtr search = asl_search(handle, msg.Handle); while (true) { IntPtr intPtr; IntPtr mh = (intPtr = aslresponse_next(search)); if (!(intPtr != IntPtr.Zero)) { break; } yield return new Message(mh); } aslresponse_free(search); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Darwin/TimeSpec.cs ================================================ namespace Darwin; public struct TimeSpec { public int Seconds; public int NanoSeconds; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/AEEventClass.cs ================================================ namespace Foundation; public enum AEEventClass : uint { Mouse = 1836021107u, Keyboard = 1801812322u, TextInput = 1952807028u, Application = 1634758764u, RemoteAppleEvent = 1701867619u, Menu = 1835363957u, Window = 2003398244u, Control = 1668183148u, Command = 1668113523u, Tablet = 1952607348u, Volume = 1987013664u, Appearance = 1634758765u, Service = 1936028278u, Toolbar = 1952604530u, ToolbarItem = 1952606580u, Accessibility = 1633903461u, HIObject = 1751740258u, AppleEvent = 1634039412u, Internet = 1196773964u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/AEEventID.cs ================================================ namespace Foundation; public enum AEEventID : uint { OpenApplication = 1868656752u, ReopenApplication = 1918988400u, OpenDocuments = 1868853091u, PrintDocuments = 188563030u, OpenContents = 1868787566u, QuitApplication = 1903520116u, ShowPreferences = 1886545254u, ApplicationDied = 1868720500u, GetUrl = 1196773964u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ActionAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Method)] public sealed class ActionAttribute : ExportAttribute { public ActionAttribute() { } public ActionAttribute(string selector) : base(selector) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/AdviceAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)] public sealed class AdviceAttribute : Attribute { public string Message { get; private set; } public AdviceAttribute(string message) { Message = message; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ConnectAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Property)] public sealed class ConnectAttribute : Attribute { private string name; public string Name { get { return name; } set { name = value; } } public ConnectAttribute() { } public ConnectAttribute(string name) { this.name = name; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/DictionaryContainer.cs ================================================ using System; using CoreFoundation; using ObjCRuntime; namespace Foundation; public abstract class DictionaryContainer { public NSDictionary Dictionary { get; private set; } internal DictionaryContainer() { Dictionary = new NSMutableDictionary(); } internal DictionaryContainer(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } protected T[] GetArray(NSString key) where T : NSObject { if (key == null) { throw new ArgumentNullException("key"); } IntPtr value = CFDictionary.GetValue(Dictionary.Handle, key.Handle); if (value == IntPtr.Zero) { return null; } return NSArray.ArrayFromHandle(value); } protected T[] GetArray(NSString key, Func creator) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr value = CFDictionary.GetValue(Dictionary.Handle, key.Handle); if (value == IntPtr.Zero) { return null; } return NSArray.ArrayFromHandleFunc(value, creator); } protected int? GetInt32Value(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return ((NSNumber)value).Int32Value; } protected long? GetLongValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return ((NSNumber)value).Int64Value; } protected uint? GetUIntValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return ((NSNumber)value).UInt32Value; } protected float? GetFloatValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return ((NSNumber)value).FloatValue; } protected double? GetDoubleValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return ((NSNumber)value).DoubleValue; } protected bool? GetBoolValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr value = CFDictionary.GetValue(Dictionary.Handle, key.Handle); if (value == IntPtr.Zero) { return null; } return CFBoolean.GetValue(value); } protected NSDictionary GetNSDictionary(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } Dictionary.TryGetValue(key, out var value); return value as NSDictionary; } protected string GetNSStringValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } Dictionary.TryGetValue(key, out var value); return value as NSString; } protected string GetStringValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (!Dictionary.TryGetValue(key, out var value)) { return null; } return CFString.FetchString(value.Handle); } protected string GetStringValue(string key) { if (key == null) { throw new ArgumentNullException("key"); } using CFString cFString = new CFString(key); return CFString.FetchString(CFDictionary.GetValue(Dictionary.Handle, cFString.handle)); } protected void SetArrayValue(NSString key, NSNumber[] values) { if (key == null) { throw new ArgumentNullException("key"); } if (values == null) { RemoveValue(key); } else { Dictionary[key] = NSArray.FromNSObjects(values); } } protected void SetArrayValue(NSString key, string[] values) { if (key == null) { throw new ArgumentNullException("key"); } if (values == null) { RemoveValue(key); } else { Dictionary[key] = NSArray.FromStrings(values); } } protected void SetArrayValue(NSString key, INativeObject[] values) { if (key == null) { throw new ArgumentNullException("key"); } if (values == null) { RemoveValue(key); } else { CFMutableDictionary.SetValue(Dictionary.Handle, key.Handle, CFArray.FromNativeObjects(values).Handle); } } protected void SetBooleanValue(NSString key, bool? value) { if (key == null) { throw new ArgumentNullException("key"); } if (!value.HasValue) { RemoveValue(key); } else { CFMutableDictionary.SetValue(Dictionary.Handle, key.Handle, value.Value ? CFBoolean.True.Handle : CFBoolean.False.Handle); } } protected void SetNumberValue(NSString key, int? value) { if (key == null) { throw new ArgumentNullException("key"); } if (!value.HasValue) { RemoveValue(key); } else { Dictionary[key] = new NSNumber(value.Value); } } protected void SetNumberValue(NSString key, uint? value) { if (key == null) { throw new ArgumentNullException("key"); } if (!value.HasValue) { RemoveValue(key); } else { Dictionary[key] = new NSNumber(value.Value); } } protected void SetNumberValue(NSString key, long? value) { if (key == null) { throw new ArgumentNullException("key"); } Dictionary[key] = new NSNumber(value.Value); } protected void SetNumberValue(NSString key, float? value) { if (key == null) { throw new ArgumentNullException("key"); } if (!value.HasValue) { RemoveValue(key); } else { Dictionary[key] = new NSNumber(value.Value); } } protected void SetNumberValue(NSString key, double? value) { if (key == null) { throw new ArgumentNullException("key"); } if (!value.HasValue) { RemoveValue(key); } else { Dictionary[key] = new NSNumber(value.Value); } } protected void SetStringValue(NSString key, string value) { SetStringValue(key, (value == null) ? null : new NSString(value)); } protected void SetStringValue(NSString key, NSString value) { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { RemoveValue(key); } else { Dictionary[key] = value; } } protected void SetNativeValue(NSString key, INativeObject value, bool removeNullValue = true) { if (key == null) { throw new ArgumentNullException("key"); } if (value == null && removeNullValue) { RemoveValue(key); } else { CFMutableDictionary.SetValue(Dictionary.Handle, key.Handle, value?.Handle ?? IntPtr.Zero); } } protected void RemoveValue(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } ((NSMutableDictionary)Dictionary).Remove(key); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ExportAttribute.cs ================================================ using System; using System.Reflection; using ObjCRuntime; namespace Foundation; [AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property)] public class ExportAttribute : Attribute { private string selector; private ArgumentSemantic semantic; public string Selector { get { return selector; } set { selector = value; } } public ArgumentSemantic ArgumentSemantic { get { return semantic; } set { semantic = value; } } public bool IsVariadic { get; set; } public ExportAttribute() { } public ExportAttribute(string selector) { this.selector = selector; semantic = ArgumentSemantic.None; } public ExportAttribute(string selector, ArgumentSemantic semantic) { this.selector = selector; this.semantic = semantic; } public ExportAttribute ToGetter(PropertyInfo prop) { if (string.IsNullOrEmpty(Selector)) { Selector = prop.Name; } return new ExportAttribute(selector, semantic); } public ExportAttribute ToSetter(PropertyInfo prop) { if (string.IsNullOrEmpty(Selector)) { Selector = prop.Name; } return new ExportAttribute($"set{char.ToUpperInvariant(selector[0])}{selector.Substring(1)}:", semantic); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/FieldAttribute.cs ================================================ namespace Foundation; [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public class FieldAttribute : Attribute { public string SymbolName { get; set; } public string LibraryName { get; set; } public FieldAttribute(string symbolName) { SymbolName = symbolName; } public FieldAttribute(string symbolName, string libraryName) { SymbolName = symbolName; LibraryName = libraryName; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/InternalNSNotificationHandler.cs ================================================ using System; namespace Foundation; [Register] internal class InternalNSNotificationHandler : NSObject { private NSNotificationCenter notificationCenter; private Action notify; public InternalNSNotificationHandler(NSNotificationCenter notificationCenter, Action notify) { this.notificationCenter = notificationCenter; this.notify = notify; } [Export("post:")] [Preserve(Conditional = true)] public void Post(NSNotification s) { notify(s); s.Dispose(); } protected override void Dispose(bool disposing) { if (disposing && notificationCenter != null) { notificationCenter.RemoveObserver(this); notificationCenter = null; } base.Dispose(disposing); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/LinkerSafeAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Assembly)] public sealed class LinkerSafeAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ModelAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class ModelAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ModelNotImplementedException.cs ================================================ using System; namespace Foundation; public class ModelNotImplementedException : Exception { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAction.cs ================================================ namespace Foundation; public delegate void NSAction(); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSActionDispatcher.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Register("__MonoMac_NSActionDispatcher")] internal sealed class NSActionDispatcher : NSObject { public const string SelectorName = "xamarinApplySelector"; public static readonly Selector Selector = new Selector("xamarinApplySelector"); private readonly NSAction action; public NSActionDispatcher(NSAction action) { if (action == null) { throw new ArgumentNullException("action"); } this.action = action; } [Export("xamarinApplySelector")] [Preserve(Conditional = true)] public void Apply() { action(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAffineTransform.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using ObjCRuntime; namespace Foundation; [Register("NSAffineTransform", true)] public class NSAffineTransform : NSObject { private static readonly IntPtr selTransformStructHandle = Selector.GetHandle("transformStruct"); private static readonly IntPtr selSetTransformStruct_Handle = Selector.GetHandle("setTransformStruct:"); private static readonly IntPtr selInitWithTransform_Handle = Selector.GetHandle("initWithTransform:"); private static readonly IntPtr selTranslateXByYBy_Handle = Selector.GetHandle("translateXBy:yBy:"); private static readonly IntPtr selRotateByDegrees_Handle = Selector.GetHandle("rotateByDegrees:"); private static readonly IntPtr selRotateByRadians_Handle = Selector.GetHandle("rotateByRadians:"); private static readonly IntPtr selScaleBy_Handle = Selector.GetHandle("scaleBy:"); private static readonly IntPtr selScaleXByYBy_Handle = Selector.GetHandle("scaleXBy:yBy:"); private static readonly IntPtr selInvertHandle = Selector.GetHandle("invert"); private static readonly IntPtr selAppendTransform_Handle = Selector.GetHandle("appendTransform:"); private static readonly IntPtr selPrependTransform_Handle = Selector.GetHandle("prependTransform:"); private static readonly IntPtr selTransformPoint_Handle = Selector.GetHandle("transformPoint:"); private static readonly IntPtr selTransformSize_Handle = Selector.GetHandle("transformSize:"); private static readonly IntPtr selTransformBezierPath_Handle = Selector.GetHandle("transformBezierPath:"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selConcatHandle = Selector.GetHandle("concat"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAffineTransform"); public override IntPtr ClassHandle => class_ptr; public virtual CGAffineTransform TransformStruct { [Export("transformStruct")] get { CGAffineTransform retval; if (IsDirectBinding) { Messaging.CGAffineTransform_objc_msgSend_stret(out retval, base.Handle, selTransformStructHandle); } else { Messaging.CGAffineTransform_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTransformStructHandle); } return retval; } [Export("setTransformStruct:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGAffineTransform(base.Handle, selSetTransformStruct_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGAffineTransform(base.SuperHandle, selSetTransformStruct_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAffineTransform() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAffineTransform(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAffineTransform(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAffineTransform(IntPtr handle) : base(handle) { } [Export("initWithTransform:")] public NSAffineTransform(NSAffineTransform transform) : base(NSObjectFlag.Empty) { if (transform == null) { throw new ArgumentNullException("transform"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithTransform_Handle, transform.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithTransform_Handle, transform.Handle); } } [Export("translateXBy:yBy:")] public virtual void Translate(double deltaX, double deltaY) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Double(base.Handle, selTranslateXByYBy_Handle, deltaX, deltaY); } else { Messaging.void_objc_msgSendSuper_Double_Double(base.SuperHandle, selTranslateXByYBy_Handle, deltaX, deltaY); } } [Export("rotateByDegrees:")] public virtual void RotateByDegrees(double angle) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selRotateByDegrees_Handle, angle); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selRotateByDegrees_Handle, angle); } } [Export("rotateByRadians:")] public virtual void RotateByRadians(double angle) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selRotateByRadians_Handle, angle); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selRotateByRadians_Handle, angle); } } [Export("scaleBy:")] public virtual void Scale(double scale) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selScaleBy_Handle, scale); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selScaleBy_Handle, scale); } } [Export("scaleXBy:yBy:")] public virtual void Scale(double scaleX, double scaleY) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_Double(base.Handle, selScaleXByYBy_Handle, scaleX, scaleY); } else { Messaging.void_objc_msgSendSuper_Double_Double(base.SuperHandle, selScaleXByYBy_Handle, scaleX, scaleY); } } [Export("invert")] public virtual void Invert() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvertHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvertHandle); } } [Export("appendTransform:")] public virtual void AppendTransform(NSAffineTransform transform) { if (transform == null) { throw new ArgumentNullException("transform"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendTransform_Handle, transform.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendTransform_Handle, transform.Handle); } } [Export("prependTransform:")] public virtual void PrependTransform(NSAffineTransform transform) { if (transform == null) { throw new ArgumentNullException("transform"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPrependTransform_Handle, transform.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrependTransform_Handle, transform.Handle); } } [Export("transformPoint:")] public virtual CGPoint TransformPoint(CGPoint aPoint) { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selTransformPoint_Handle, aPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selTransformPoint_Handle, aPoint); } [Export("transformSize:")] public virtual CGSize TransformSize(CGSize aSize) { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_CGSize(base.Handle, selTransformSize_Handle, aSize); } return Messaging.CGSize_objc_msgSendSuper_CGSize(base.SuperHandle, selTransformSize_Handle, aSize); } [Export("transformBezierPath:")] public virtual NSBezierPath TransformBezierPath(NSBezierPath path) { if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTransformBezierPath_Handle, path.Handle)); } return (NSBezierPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTransformBezierPath_Handle, path.Handle)); } [Export("set")] public virtual void Set() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSetHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSetHandle); } } [Export("concat")] public virtual void Concat() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selConcatHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selConcatHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAlignmentOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSAlignmentOptions : ulong { MinXInward = 1uL, MinYInward = 2uL, MaxXInward = 4uL, MaxYInward = 8uL, WidthInward = 0x10uL, HeightInward = 0x20uL, MinXOutward = 0x100uL, MinYOutward = 0x200uL, MaxXOutward = 0x400uL, MaxYOutward = 0x800uL, WidthOutward = 0x1000uL, HeightOutward = 0x2000uL, MinXNearest = 0x10000uL, MinYNearest = 0x20000uL, MaxXNearest = 0x40000uL, MaxYNearest = 0x80000uL, WidthNearest = 0x100000uL, HeightNearest = 0x200000uL, RectFlipped = 18446744071562067968uL, AllEdgesInward = 0xFuL, AllEdgesOutward = 0xF00uL, AllEdgesNearest = 0xF0000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAppleEventDescriptor.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSAppleEventDescriptor", true)] public class NSAppleEventDescriptor : NSObject { private static readonly IntPtr selNullDescriptorHandle = Selector.GetHandle("nullDescriptor"); private static readonly IntPtr selListDescriptorHandle = Selector.GetHandle("listDescriptor"); private static readonly IntPtr selRecordDescriptorHandle = Selector.GetHandle("recordDescriptor"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selBooleanValueHandle = Selector.GetHandle("booleanValue"); private static readonly IntPtr selInt32ValueHandle = Selector.GetHandle("int32Value"); private static readonly IntPtr selTypeCodeValueHandle = Selector.GetHandle("typeCodeValue"); private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selEventClassHandle = Selector.GetHandle("eventClass"); private static readonly IntPtr selEventIDHandle = Selector.GetHandle("eventID"); private static readonly IntPtr selNumberOfItemsHandle = Selector.GetHandle("numberOfItems"); private static readonly IntPtr selDescriptorWithBoolean_Handle = Selector.GetHandle("descriptorWithBoolean:"); private static readonly IntPtr selDescriptorWithEnumCode_Handle = Selector.GetHandle("descriptorWithEnumCode:"); private static readonly IntPtr selDescriptorWithInt32_Handle = Selector.GetHandle("descriptorWithInt32:"); private static readonly IntPtr selDescriptorWithTypeCode_Handle = Selector.GetHandle("descriptorWithTypeCode:"); private static readonly IntPtr selDescriptorWithString_Handle = Selector.GetHandle("descriptorWithString:"); private static readonly IntPtr selInitListDescriptorHandle = Selector.GetHandle("initListDescriptor"); private static readonly IntPtr selInitRecordDescriptorHandle = Selector.GetHandle("initRecordDescriptor"); private static readonly IntPtr selEnumCodeValueHandle = Selector.GetHandle("enumCodeValue"); private static readonly IntPtr selSetParamDescriptorForKeyword_Handle = Selector.GetHandle("setParamDescriptor:forKeyword:"); private static readonly IntPtr selParamDescriptorForKeyword_Handle = Selector.GetHandle("paramDescriptorForKeyword:"); private static readonly IntPtr selRemoveParamDescriptorWithKeyword_Handle = Selector.GetHandle("removeParamDescriptorWithKeyword:"); private static readonly IntPtr selSetAttributeDescriptorForKeyword_Handle = Selector.GetHandle("setAttributeDescriptor:forKeyword:"); private static readonly IntPtr selAttributeDescriptorForKeyword_Handle = Selector.GetHandle("attributeDescriptorForKeyword:"); private static readonly IntPtr selInsertDescriptorAtIndex_Handle = Selector.GetHandle("insertDescriptor:atIndex:"); private static readonly IntPtr selDescriptorAtIndex_Handle = Selector.GetHandle("descriptorAtIndex:"); private static readonly IntPtr selRemoveDescriptorAtIndex_Handle = Selector.GetHandle("removeDescriptorAtIndex:"); private static readonly IntPtr selSetDescriptorForKeyword_Handle = Selector.GetHandle("setDescriptor:forKeyword:"); private static readonly IntPtr selDescriptorForKeyword_Handle = Selector.GetHandle("descriptorForKeyword:"); private static readonly IntPtr selRemoveDescriptorWithKeyword_Handle = Selector.GetHandle("removeDescriptorWithKeyword:"); private static readonly IntPtr selKeywordForDescriptorAtIndex_Handle = Selector.GetHandle("keywordForDescriptorAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAppleEventDescriptor"); private static object __mt_NullDescriptor_var_static; private static object __mt_ListDescriptor_var_static; private static object __mt_RecordDescriptor_var_static; private object __mt_Data_var; public override IntPtr ClassHandle => class_ptr; public static NSAppleEventDescriptor NullDescriptor { [Export("nullDescriptor")] get { return (NSAppleEventDescriptor)(__mt_NullDescriptor_var_static = (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selNullDescriptorHandle))); } } public static NSAppleEventDescriptor ListDescriptor { [Export("listDescriptor")] get { return (NSAppleEventDescriptor)(__mt_ListDescriptor_var_static = (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selListDescriptorHandle))); } } public static NSAppleEventDescriptor RecordDescriptor { [Export("recordDescriptor")] get { return (NSAppleEventDescriptor)(__mt_RecordDescriptor_var_static = (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selRecordDescriptorHandle))); } } public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public virtual bool BooleanValue { [Export("booleanValue")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBooleanValueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBooleanValueHandle); } } public virtual int Int32Value { [Export("int32Value")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selInt32ValueHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selInt32ValueHandle); } } public virtual uint TypeCodeValue { [Export("typeCodeValue")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selTypeCodeValueHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selTypeCodeValueHandle); } } public virtual string StringValue { [Export("stringValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } } public virtual AEEventClass EventClass { [Export("eventClass")] get { if (IsDirectBinding) { return (AEEventClass)Messaging.UInt32_objc_msgSend(base.Handle, selEventClassHandle); } return (AEEventClass)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selEventClassHandle); } } public virtual AEEventID EventID { [Export("eventID")] get { if (IsDirectBinding) { return (AEEventID)Messaging.UInt32_objc_msgSend(base.Handle, selEventIDHandle); } return (AEEventID)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selEventIDHandle); } } public virtual int NumberOfItems { [Export("numberOfItems")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfItemsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfItemsHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAppleEventDescriptor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAppleEventDescriptor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppleEventDescriptor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppleEventDescriptor(IntPtr handle) : base(handle) { } [Export("descriptorWithBoolean:")] public static NSAppleEventDescriptor DescriptorWithBoolean(bool boolean) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(class_ptr, selDescriptorWithBoolean_Handle, boolean)); } [Export("descriptorWithEnumCode:")] public static NSAppleEventDescriptor DescriptorWithEnumCode(uint enumerator) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(class_ptr, selDescriptorWithEnumCode_Handle, enumerator)); } [Export("descriptorWithInt32:")] public static NSAppleEventDescriptor DescriptorWithInt32(int signedInt) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(class_ptr, selDescriptorWithInt32_Handle, signedInt)); } [Export("descriptorWithTypeCode:")] public static NSAppleEventDescriptor DescriptorWithTypeCode(uint typeCode) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(class_ptr, selDescriptorWithTypeCode_Handle, typeCode)); } [Export("descriptorWithString:")] public static NSAppleEventDescriptor DescriptorWithString(string str) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); NSAppleEventDescriptor result = (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDescriptorWithString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initListDescriptor")] public virtual NSObject InitListDescriptor() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInitListDescriptorHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitListDescriptorHandle)); } [Export("initRecordDescriptor")] public virtual NSObject InitRecordDescriptor() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInitRecordDescriptorHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitRecordDescriptorHandle)); } [Export("enumCodeValue")] public virtual uint EnumCodeValue() { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selEnumCodeValueHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selEnumCodeValueHandle); } [Export("setParamDescriptor:forKeyword:")] public virtual void SetParamDescriptorforKeyword(NSAppleEventDescriptor descriptor, uint keyword) { if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt32(base.Handle, selSetParamDescriptorForKeyword_Handle, descriptor.Handle, keyword); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selSetParamDescriptorForKeyword_Handle, descriptor.Handle, keyword); } } [Export("paramDescriptorForKeyword:")] public virtual NSAppleEventDescriptor ParamDescriptorForKeyword(uint keyword) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selParamDescriptorForKeyword_Handle, keyword)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selParamDescriptorForKeyword_Handle, keyword)); } [Export("removeParamDescriptorWithKeyword:")] public virtual void RemoveParamDescriptorWithKeyword(uint keyword) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selRemoveParamDescriptorWithKeyword_Handle, keyword); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selRemoveParamDescriptorWithKeyword_Handle, keyword); } } [Export("setAttributeDescriptor:forKeyword:")] public virtual void SetAttributeDescriptorforKeyword(NSAppleEventDescriptor descriptor, uint keyword) { if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt32(base.Handle, selSetAttributeDescriptorForKeyword_Handle, descriptor.Handle, keyword); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selSetAttributeDescriptorForKeyword_Handle, descriptor.Handle, keyword); } } [Export("attributeDescriptorForKeyword:")] public virtual NSAppleEventDescriptor AttributeDescriptorForKeyword(uint keyword) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selAttributeDescriptorForKeyword_Handle, keyword)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selAttributeDescriptorForKeyword_Handle, keyword)); } [Export("insertDescriptor:atIndex:")] public virtual void InsertDescriptoratIndex(NSAppleEventDescriptor descriptor, int index) { if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertDescriptorAtIndex_Handle, descriptor.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertDescriptorAtIndex_Handle, descriptor.Handle, index); } } [Export("descriptorAtIndex:")] public virtual NSAppleEventDescriptor DescriptorAtIndex(int index) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selDescriptorAtIndex_Handle, index)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selDescriptorAtIndex_Handle, index)); } [Export("removeDescriptorAtIndex:")] public virtual void RemoveDescriptorAtIndex(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selRemoveDescriptorAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selRemoveDescriptorAtIndex_Handle, index); } } [Export("setDescriptor:forKeyword:")] public virtual void SetDescriptorforKeyword(NSAppleEventDescriptor descriptor, uint keyword) { if (descriptor == null) { throw new ArgumentNullException("descriptor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt32(base.Handle, selSetDescriptorForKeyword_Handle, descriptor.Handle, keyword); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selSetDescriptorForKeyword_Handle, descriptor.Handle, keyword); } } [Export("descriptorForKeyword:")] public virtual NSAppleEventDescriptor DescriptorForKeyword(uint keyword) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selDescriptorForKeyword_Handle, keyword)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selDescriptorForKeyword_Handle, keyword)); } [Export("removeDescriptorWithKeyword:")] public virtual void RemoveDescriptorWithKeyword(uint keyword) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selRemoveDescriptorWithKeyword_Handle, keyword); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selRemoveDescriptorWithKeyword_Handle, keyword); } } [Export("keywordForDescriptorAtIndex:")] public virtual uint KeywordForDescriptorAtIndex(int index) { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend_int(base.Handle, selKeywordForDescriptorAtIndex_Handle, index); } return Messaging.UInt32_objc_msgSendSuper_int(base.SuperHandle, selKeywordForDescriptorAtIndex_Handle, index); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Data_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAppleEventManager.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSAppleEventManager", true)] public class NSAppleEventManager : NSObject { private static readonly IntPtr selSharedAppleEventManagerHandle = Selector.GetHandle("sharedAppleEventManager"); private static readonly IntPtr selCurrentAppleEventHandle = Selector.GetHandle("currentAppleEvent"); private static readonly IntPtr selCurrentReplyAppleEventHandle = Selector.GetHandle("currentReplyAppleEvent"); private static readonly IntPtr selSetEventHandlerAndSelectorForEventClassAndEventID_Handle = Selector.GetHandle("setEventHandler:andSelector:forEventClass:andEventID:"); private static readonly IntPtr selRemoveEventHandlerForEventClassAndEventID_Handle = Selector.GetHandle("removeEventHandlerForEventClass:andEventID:"); private static readonly IntPtr selSuspendCurrentAppleEventHandle = Selector.GetHandle("suspendCurrentAppleEvent"); private static readonly IntPtr selAppleEventForSuspensionID_Handle = Selector.GetHandle("appleEventForSuspensionID:"); private static readonly IntPtr selReplyAppleEventForSuspensionID_Handle = Selector.GetHandle("replyAppleEventForSuspensionID:"); private static readonly IntPtr selSetCurrentAppleEventAndReplyEventWithSuspensionID_Handle = Selector.GetHandle("setCurrentAppleEventAndReplyEventWithSuspensionID:"); private static readonly IntPtr selResumeWithSuspensionID_Handle = Selector.GetHandle("resumeWithSuspensionID:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAppleEventManager"); private static object __mt_SharedAppleEventManager_var_static; private object __mt_CurrentAppleEvent_var; private object __mt_CurrentReplyAppleEvent_var; public override IntPtr ClassHandle => class_ptr; public static NSAppleEventManager SharedAppleEventManager { [Export("sharedAppleEventManager")] get { return (NSAppleEventManager)(__mt_SharedAppleEventManager_var_static = (NSAppleEventManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedAppleEventManagerHandle))); } } public virtual NSAppleEventDescriptor CurrentAppleEvent { [Export("currentAppleEvent")] get { return (NSAppleEventDescriptor)(__mt_CurrentAppleEvent_var = ((!IsDirectBinding) ? ((NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentAppleEventHandle))) : ((NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentAppleEventHandle))))); } } public virtual NSAppleEventDescriptor CurrentReplyAppleEvent { [Export("currentReplyAppleEvent")] get { return (NSAppleEventDescriptor)(__mt_CurrentReplyAppleEvent_var = ((!IsDirectBinding) ? ((NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentReplyAppleEventHandle))) : ((NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentReplyAppleEventHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAppleEventManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAppleEventManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppleEventManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAppleEventManager(IntPtr handle) : base(handle) { } [Export("setEventHandler:andSelector:forEventClass:andEventID:")] public virtual void SetEventHandler(NSObject handler, Selector handleEventSelector, AEEventClass eventClass, AEEventID eventID) { if (handler == null) { throw new ArgumentNullException("handler"); } if (handleEventSelector == null) { throw new ArgumentNullException("handleEventSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt32_UInt32(base.Handle, selSetEventHandlerAndSelectorForEventClassAndEventID_Handle, handler.Handle, handleEventSelector.Handle, (uint)eventClass, (uint)eventID); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_UInt32_UInt32(base.SuperHandle, selSetEventHandlerAndSelectorForEventClassAndEventID_Handle, handler.Handle, handleEventSelector.Handle, (uint)eventClass, (uint)eventID); } } [Export("removeEventHandlerForEventClass:andEventID:")] public virtual void RemoveEventHandlerForEventClassandEventID(AEEventClass eventClass, AEEventID eventID) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32_UInt32(base.Handle, selRemoveEventHandlerForEventClassAndEventID_Handle, (uint)eventClass, (uint)eventID); } else { Messaging.void_objc_msgSendSuper_UInt32_UInt32(base.SuperHandle, selRemoveEventHandlerForEventClassAndEventID_Handle, (uint)eventClass, (uint)eventID); } } [Export("suspendCurrentAppleEvent")] public virtual IntPtr SuspendCurrentAppleEvent() { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selSuspendCurrentAppleEventHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuspendCurrentAppleEventHandle); } [Export("appleEventForSuspensionID:")] public virtual NSAppleEventDescriptor AppleEventForSuspensionID(IntPtr suspensionID) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAppleEventForSuspensionID_Handle, suspensionID)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppleEventForSuspensionID_Handle, suspensionID)); } [Export("replyAppleEventForSuspensionID:")] public virtual NSAppleEventDescriptor ReplyAppleEventForSuspensionID(IntPtr suspensionID) { if (IsDirectBinding) { return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selReplyAppleEventForSuspensionID_Handle, suspensionID)); } return (NSAppleEventDescriptor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplyAppleEventForSuspensionID_Handle, suspensionID)); } [Export("setCurrentAppleEventAndReplyEventWithSuspensionID:")] public virtual void SetCurrentAppleEventAndReplyEventWithSuspensionID(IntPtr suspensionID) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrentAppleEventAndReplyEventWithSuspensionID_Handle, suspensionID); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrentAppleEventAndReplyEventWithSuspensionID_Handle, suspensionID); } } [Export("resumeWithSuspensionID:")] public virtual void ResumeWithSuspensionID(IntPtr suspensionID) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selResumeWithSuspensionID_Handle, suspensionID); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selResumeWithSuspensionID_Handle, suspensionID); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CurrentAppleEvent_var = null; __mt_CurrentReplyAppleEvent_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSArchiveReplaceEventArgs.cs ================================================ using System; namespace Foundation; public class NSArchiveReplaceEventArgs : EventArgs { public NSObject OldObject { get; set; } public NSObject NewObject { get; set; } public NSArchiveReplaceEventArgs(NSObject oldObject, NSObject newObject) { OldObject = oldObject; NewObject = newObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSArray.cs ================================================ using ObjCRuntime; using System.Collections; using System.ComponentModel; using System.Runtime.InteropServices; namespace Foundation; [Register("NSArray", true)] public class NSArray : NSObject { private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selObjectAtIndex_Handle = Selector.GetHandle("objectAtIndex:"); private static readonly IntPtr selArrayWithObjectsCount_Handle = Selector.GetHandle("arrayWithObjects:count:"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr selWriteToFileAtomically_Handle = Selector.GetHandle("writeToFile:atomically:"); private static readonly IntPtr selArrayWithContentsOfFile_Handle = Selector.GetHandle("arrayWithContentsOfFile:"); private static readonly IntPtr selSortedArrayUsingComparator_Handle = Selector.GetHandle("sortedArrayUsingComparator:"); private static readonly IntPtr selFilteredArrayUsingPredicate_Handle = Selector.GetHandle("filteredArrayUsingPredicate:"); #region private const string selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_ = "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"; private static readonly IntPtr selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_Handle = Selector.GetHandle(selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_); private const string selArrayWithContentsOfURL_Error_ = "arrayWithContentsOfURL:error:"; private static readonly IntPtr selArrayWithContentsOfURL_Error_Handle = Selector.GetHandle(selArrayWithContentsOfURL_Error_); private const string selCopyWithZone_ = "copyWithZone:"; private static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle(selCopyWithZone_); private const string selWriteToURL_Error_ = "writeToURL:error:"; private static readonly IntPtr selWriteToURL_Error_Handle = Selector.GetHandle(selWriteToURL_Error_); private const string selContainsObject_ = "containsObject:"; private static readonly IntPtr selContainsObject_Handle = Selector.GetHandle(selContainsObject_); private const string selIndexOfObject_ = "indexOfObject:"; private static readonly IntPtr selIndexOfObject_Handle = Selector.GetHandle("indexOfObject:"); private const string selMutableCopyWithZone_ = "mutableCopyWithZone:"; private static readonly IntPtr selMutableCopyWithZone_Handle = Selector.GetHandle(selMutableCopyWithZone_); private const string selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_ = "removeObserver:fromObjectsAtIndexes:forKeyPath:"; private static readonly IntPtr selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Handle = Selector.GetHandle(selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_); private const string selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Context_ = "removeObserver:fromObjectsAtIndexes:forKeyPath:context:"; private static readonly IntPtr selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Context_Handle = Selector.GetHandle(selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Context_); #endregion private static readonly IntPtr class_ptr = Class.GetHandle("NSArray"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSArray() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend(Handle, Selector.Init); } else { Handle = Messaging.IntPtr_objc_msgSendSuper(SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSArray(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSArray(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSArray(IntPtr handle) : base(handle) { } public virtual ulong Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(Handle, selCountHandle); } return Messaging.UInt64_objc_msgSendSuper(SuperHandle, selCountHandle); } } internal NSArray(bool empty) { Handle = IntPtr.Zero; } public static NSArray FromNSObjects(params NSObject[] items) { return FromNSObjects((IList)items); } public static NSArray FromNSObjects(int count, params NSObject[] items) { if (items.Length < count) { throw new ArgumentException("count is larger than the number of items", "count"); } return FromNSObjects(items, count); } public static NSArray FromObjects(params object[] items) { if (items == null) { return new NSArray(empty: true); } return FromObjects(items.Length, items); } public static NSArray FromObjects(int count, params object[] items) { if (items == null) { return new NSArray(empty: true); } if (count > items.Length) { throw new ArgumentException("count is larger than the number of items", "count"); } NSObject[] array = new NSObject[count]; for (int i = 0; i < count; i++) { NSObject nSObject = NSObject.FromObject(items[i]); if (nSObject == null) { throw new ArgumentException($"Do not know how to marshal object of type '{items[i].GetType()}' to an NSObject"); } array[i] = nSObject; } return FromNSObjects(array); } public static NSArray FromObjects(IntPtr array, int count) { return FromObjects(array, (ulong)count); } internal static NSArray FromNSObjects(IList items) { if (items == null) { return new NSArray(empty: true); } IntPtr intPtr = Marshal.AllocHGlobal(items.Count * IntPtr.Size); for (int i = 0; i < items.Count; i++) { Marshal.WriteIntPtr(intPtr, i * IntPtr.Size, items[i].Handle); } NSArray result = FromObjects(intPtr, items.Count); Marshal.FreeHGlobal(intPtr); return result; } internal static NSArray FromNSObjects(IList items, int count) { if (items == null) { return new NSArray(empty: true); } IntPtr intPtr = Marshal.AllocHGlobal(items.Count * IntPtr.Size); for (int i = 0; i < count; i++) { Marshal.WriteIntPtr(intPtr, i * IntPtr.Size, items[i].Handle); } NSArray result = FromObjects(intPtr, count); Marshal.FreeHGlobal(intPtr); return result; } public static NSArray FromStrings(params string[] items) { if (items == null) { throw new ArgumentNullException("items"); } IntPtr intPtr = Marshal.AllocHGlobal(items.Length * IntPtr.Size); try { NSString[] array = new NSString[items.Length]; for (int i = 0; i < items.Length; i++) { if (items[i] == null) { throw new ArgumentNullException($"items[{i}]"); } array[i] = new NSString(items[i]); IntPtr val = array[i].Handle; Marshal.WriteIntPtr(intPtr, i * IntPtr.Size, val); } NSArray result = FromObjects(intPtr, items.Length); NSString[] array2 = array; for (int j = 0; j < array2.Length; j++) { array2[j].Dispose(); } return result; } finally { Marshal.FreeHGlobal(intPtr); } } public static NSArray FromIntPtrs(IntPtr[] vals) { if (vals == null) { throw new ArgumentNullException("vals"); } int num = vals.Length; IntPtr intPtr = Marshal.AllocHGlobal(num * IntPtr.Size); for (int i = 0; i < num; i++) { Marshal.WriteIntPtr(intPtr, i * IntPtr.Size, vals[i]); } NSArray result = FromObjects(intPtr, vals.Length); Marshal.FreeHGlobal(intPtr); return result; } public static string[] StringArrayFromHandle(IntPtr handle) { if (handle == IntPtr.Zero) { return null; } uint num = Messaging.UInt32_objc_msgSend(handle, selCountHandle); string[] array = new string[num]; for (uint num2 = 0u; num2 < num; num2++) { IntPtr usrhandle = Messaging.IntPtr_objc_msgSend_UInt32(handle, selObjectAtIndex_Handle, num2); array[num2] = NSString.FromHandle(usrhandle); } return array; } public static T[] ArrayFromHandle(IntPtr handle) where T : NSObject { if (handle == IntPtr.Zero) { return null; } uint num = Messaging.UInt32_objc_msgSend(handle, selCountHandle); T[] array = new T[num]; for (uint num2 = 0u; num2 < num; num2++) { IntPtr ptr = Messaging.IntPtr_objc_msgSend_UInt32(handle, selObjectAtIndex_Handle, num2); array[num2] = (T)Runtime.GetNSObject(ptr); array[num2].Handle = ptr; } return array; } public static T[] FromArray(NSArray weakArray) where T : NSObject { if (weakArray == null || weakArray.Handle == IntPtr.Zero) { return null; } try { ulong count = weakArray.Count; T[] array = new T[count]; for (ulong num = 0uL; num < count; num++) { array[num] = (T)Runtime.GetNSObject(weakArray.ValueAt(num)); } return array; } catch { return null; } } public static T[] ArrayFromHandleFunc(IntPtr handle, Func createObject) { if (handle == IntPtr.Zero) { return null; } uint num = Messaging.UInt32_objc_msgSend(handle, selCountHandle); T[] array = new T[num]; for (uint num2 = 0u; num2 < num; num2++) { IntPtr arg = Messaging.IntPtr_objc_msgSend_UInt32(handle, selObjectAtIndex_Handle, num2); array[num2] = createObject(arg); } return array; } public static T[] ArrayFromHandle(IntPtr handle, Converter creator) { if (handle == IntPtr.Zero) { return null; } uint num = Messaging.UInt32_objc_msgSend(handle, selCountHandle); T[] array = new T[num]; for (uint num2 = 0u; num2 < num; num2++) { IntPtr input = Messaging.IntPtr_objc_msgSend_UInt32(handle, selObjectAtIndex_Handle, num2); array[num2] = creator(input); } return array; } [Export("objectAtIndex:")] public virtual IntPtr ValueAt(ulong idx) { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend_UInt64(Handle, selObjectAtIndex_Handle, idx); } return Messaging.IntPtr_objc_msgSendSuper_UInt64(SuperHandle, selObjectAtIndex_Handle, idx); } [Export("arrayWithObjects:count:")] internal static NSArray FromObjects(IntPtr array, ulong count) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(class_ptr, selArrayWithObjectsCount_Handle, array, count)); } [Export("valueForKey:")] public new virtual NSObject ValueForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selValueForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selValueForKey_Handle, key.Handle)); } [Export("setValue:forKey:")] public new virtual void SetValueForKey(NSObject value, NSString key) { if (value == null) { throw new ArgumentNullException("value"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetValueForKey_Handle, value.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetValueForKey_Handle, value.Handle, key.Handle); } } [Export("writeToFile:atomically:")] public virtual bool WriteToFile(string path, bool useAuxiliaryFile) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool(SuperHandle, selWriteToFileAtomically_Handle, arg, useAuxiliaryFile) : Messaging.bool_objc_msgSend_IntPtr_bool(Handle, selWriteToFileAtomically_Handle, arg, useAuxiliaryFile)); NSString.ReleaseNative(arg); return result; } [Export("arrayWithContentsOfFile:")] public static NSArray FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSArray result = (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selArrayWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("sortedArrayUsingComparator:")] public unsafe virtual NSArray Sort(NSComparator cmptr) { if (cmptr == null) { throw new ArgumentNullException("cmptr"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSComparator.Handler, cmptr); NSArray result = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selSortedArrayUsingComparator_Handle, (IntPtr)ptr))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selSortedArrayUsingComparator_Handle, (IntPtr)ptr)))); ptr->CleanupBlock(); return result; } [Export("filteredArrayUsingPredicate:")] public virtual NSArray Filter(NSPredicate predicate) { if (predicate == null) { throw new ArgumentNullException("predicate"); } if (IsDirectBinding) { return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selFilteredArrayUsingPredicate_Handle, predicate.Handle)); } return (NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selFilteredArrayUsingPredicate_Handle, predicate.Handle)); } #region internal static IntPtr GetAtIndex(IntPtr handle, nuint i) { return Messaging.IntPtr_objc_msgSend_nuint(handle, selObjectAtIndex_Handle, i); } internal static uint GetCount(IntPtr handle) { return Messaging.UInt32_objc_msgSend(handle, selCountHandle); } internal static NSArray From(T[] items, long count = -1L) { if (items == null || count == 0) return new NSArray(); if (count == -1) count = items.Length; else if (count > items.Length) throw new ArgumentException("count is larger than the number of items", "count"); NSObject[] array = new NSObject[count]; for (long nint = 0; nint < count; ++nint) { NSObject nSObject = NSObject.FromObject(items[nint]); if (nSObject == null) throw new ArgumentException($"Do not know how to marshal object of type '{items[nint].GetType()}' to an NSObject"); array[nint] = nSObject; } return FromNSObjects(array); } public static T[] ArrayFromNativeHandle(IntPtr handle) where T : class, INativeObject { if (handle == IntPtr.Zero) { return null; } uint num = Messaging.UInt32_objc_msgSend(handle, selCountHandle); T[] array = new T[num]; for (uint num2 = 0u; num2 < num; num2++) { IntPtr ptr = Messaging.IntPtr_objc_msgSend_UInt32(handle, selObjectAtIndex_Handle, num2); array[num2] = Runtime.GetNativeObject(ptr); } return array; } public static NSArray FromNSObjectsTx(params T[] items) where T : class, INativeObject { return FromNativeObjectsTx(items); } internal static NSArray FromNativeObjectsTx(T[] items) where T : class, INativeObject { if (items == null) return new NSArray(); return FromNativeObjectsTx(items, items.Length); } internal static NSArray FromNativeObjectsTx(T[] items, long count) where T : class, INativeObject { if (items == null) return new NSArray(); if (count > items.Length) throw new ArgumentException("count is larger than the number of items", "count"); IntPtr intPtr = Marshal.AllocHGlobal((IntPtr)(count * IntPtr.Size)); for (nint nint = 0; nint < count; ++nint) { IntPtr val = items[(long)nint]?.Handle ?? NSNull.Null.Handle; Marshal.WriteIntPtr(intPtr, (int)(nint * IntPtr.Size), val); } NSArray nSObject = Runtime.GetNSObjectTx(_FromObjects(intPtr, count)); Marshal.FreeHGlobal(intPtr); return nSObject; } private static T UnsafeGetItem(IntPtr handle, nuint index) where T : class, INativeObject { IntPtr atIndex = GetAtIndex(handle, index); if (atIndex == NSNull.Null.Handle) return null; return Runtime.GetNativeObject(atIndex); } public T GetItem(nuint index) where T : class, INativeObject { if (index >= GetCount(Handle)) throw new ArgumentOutOfRangeException("index"); return UnsafeGetItem(Handle, index); } [Export(selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_)] public virtual void AddObserver(NSObject observer, NSIndexSet indexes, string keyPath, NSKeyValueObservingOptions options, IntPtr context) { if (observer == null) throw new ArgumentNullException("observer"); if (indexes == null) throw new ArgumentNullException("indexes"); if (keyPath == null) throw new ArgumentNullException("keyPath"); IntPtr arg = NSString.CreateNative(keyPath); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64_IntPtr(Handle, selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_Handle, observer.Handle, indexes.Handle, arg, (ulong)options, context); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64_IntPtr(SuperHandle, selAddObserver_ToObjectsAtIndexes_ForKeyPath_Options_Context_Handle, observer.Handle, indexes.Handle, arg, (ulong)options, context); NSString.ReleaseNative(arg); } [Export(selArrayWithContentsOfURL_Error_)] public static NSArray? FromUrl(NSUrl url, out NSError error) { if (url == null) throw new ArgumentNullException("url"); IntPtr arg = IntPtr.Zero; NSArray nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr(class_ptr, selArrayWithContentsOfURL_Error_Handle, url.Handle, ref arg)); error = Runtime.GetNSObjectTx(arg); return nSObject; } [Export(selCopyWithZone_)] public virtual NSObject Copy(NSZone? zone) { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); return nSObject; } [Export(selWriteToURL_Error_)] public virtual bool Write(NSUrl url, out NSError error) { if (url == null) throw new ArgumentNullException("url"); IntPtr arg = IntPtr.Zero; bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_ref_IntPtr(SuperHandle, selWriteToURL_Error_Handle, url.Handle, ref arg) : Messaging.bool_objc_msgSend_IntPtr_ref_IntPtr(Handle, selWriteToURL_Error_Handle, url.Handle, ref arg)); error = Runtime.GetNSObjectTx(arg); return result; } [Export(selContainsObject_)] public virtual bool Contains(NSObject anObject) { if (anObject == null) throw new ArgumentNullException("anObject"); if (IsDirectBinding) return Messaging.bool_objc_msgSend_IntPtr(Handle, selContainsObject_Handle, anObject.Handle); return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selContainsObject_Handle, anObject.Handle); } [Export(selIndexOfObject_)] public virtual nuint IndexOf(NSObject anObject) { if (anObject == null) throw new ArgumentNullException("anObject"); if (IsDirectBinding) return Messaging.nuint_objc_msgSend_IntPtr(Handle, selIndexOfObject_Handle, anObject.Handle); return Messaging.nuint_objc_msgSendSuper_IntPtr(SuperHandle, selIndexOfObject_Handle, anObject.Handle); } [Export(selMutableCopyWithZone_)] public virtual NSObject MutableCopy(NSZone? zone) { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selMutableCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selMutableCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); return nSObject; } [Export(selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_)] public virtual void RemoveObserver(NSObject observer, NSIndexSet indexes, string keyPath) { if (observer == null) throw new ArgumentNullException("observer"); if (indexes == null) throw new ArgumentNullException("indexes"); if (keyPath == null) throw new ArgumentNullException("keyPath"); IntPtr arg = NSString.CreateNative(keyPath); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Handle, observer.Handle, indexes.Handle, arg); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Handle, observer.Handle, indexes.Handle, arg); NSString.ReleaseNative(arg); } [Export("removeObserver:fromObjectsAtIndexes:forKeyPath:context:")] public virtual void RemoveObserver(NSObject observer, NSIndexSet indexes, string keyPath, IntPtr context) { if (observer == null) throw new ArgumentNullException("observer"); if (indexes == null) throw new ArgumentNullException("indexes"); if (keyPath == null) throw new ArgumentNullException("keyPath"); IntPtr arg = NSString.CreateNative(keyPath); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Context_Handle, observer.Handle, indexes.Handle, arg, context); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selRemoveObserver_FromObjectsAtIndexes_ForKeyPath_Context_Handle, observer.Handle, indexes.Handle, arg, context); NSString.ReleaseNative(arg); } internal bool _Contains(IntPtr anObject) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selContainsObject_Handle, anObject); } internal nuint _IndexOf(IntPtr anObject) { return Messaging.nuint_objc_msgSend_IntPtr(Handle, selIndexOfObject_Handle, anObject); } internal static IntPtr _FromObjects(IntPtr array, long count) { return Messaging.IntPtr_objc_msgSend_IntPtr_long(class_ptr, selArrayWithObjectsCount_Handle, array, count); } #endregion } [Register("NSArray", SkipRegistration = true)] public sealed class NSArray : NSArray, IEnumerable, IEnumerable where TKey : class, INativeObject { public TKey this[nint idx] => GetItem((nuint)idx); public NSArray() { } public NSArray(NSCoder coder) : base(coder) { } internal NSArray(IntPtr handle) : base(handle) { } public static NSArray FromNSObjects(params TKey[] items) { if (items == null) { throw new ArgumentNullException("items"); } return FromNSObjects(items.Length, items); } public static NSArray FromNSObjects(int count, params TKey[] items) { if (items == null) { throw new ArgumentNullException("items"); } if (count > items.Length) { throw new ArgumentException("count is larger than the number of items", "count"); } IntPtr intPtr = Marshal.AllocHGlobal((IntPtr)(count * IntPtr.Size)); for (nint nint = 0; nint < count; ++nint) { IntPtr val = items[(long)nint]?.Handle ?? NSNull.Null.Handle; Marshal.WriteIntPtr(intPtr, (int)(nint * IntPtr.Size), val); } IntPtr ptr = NSArray._FromObjects(intPtr, count); NSArray nSObject = Runtime.GetNSObjectTx>(ptr); Marshal.FreeHGlobal(intPtr); return nSObject; } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAsyncActionDispatcher.cs ================================================ using System; using System.Runtime.InteropServices; namespace Foundation; [Register("__MonoMac_NSAsyncActionDispatcher")] internal class NSAsyncActionDispatcher : NSObject { private GCHandle gch; private NSAction action; [Obsolete("Do not use, this method is only used internally")] public NSAsyncActionDispatcher(IntPtr handle) : base(handle) { } public NSAsyncActionDispatcher(NSAction action) { this.action = action; gch = GCHandle.Alloc(this); } [Export("xamarinApplySelector")] [Preserve(Conditional = true)] public void Apply() { try { action(); } finally { action = null; gch.Free(); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAttributedRangeCallback.cs ================================================ namespace Foundation; public delegate void NSAttributedRangeCallback(NSDictionary attrs, NSRange range, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAttributedString.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using CoreText; using ObjCRuntime; namespace Foundation; [Register("NSAttributedString", true)] public class NSAttributedString : NSObject { private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selAttributesAtIndexEffectiveRange_Handle = Selector.GetHandle("attributesAtIndex:effectiveRange:"); private static readonly IntPtr selAttributeAtIndexEffectiveRange_Handle = Selector.GetHandle("attribute:atIndex:effectiveRange:"); private static readonly IntPtr selAttributedSubstringFromRange_Handle = Selector.GetHandle("attributedSubstringFromRange:"); private static readonly IntPtr selAttributesAtIndexLongestEffectiveRangeInRange_Handle = Selector.GetHandle("attributesAtIndex:longestEffectiveRange:inRange:"); private static readonly IntPtr selAttributeAtIndexLongestEffectiveRangeInRange_Handle = Selector.GetHandle("attribute:atIndex:longestEffectiveRange:inRange:"); private static readonly IntPtr selIsEqualToAttributedString_Handle = Selector.GetHandle("isEqualToAttributedString:"); private static readonly IntPtr selInitWithString_Handle = Selector.GetHandle("initWithString:"); private static readonly IntPtr selInitWithStringAttributes_Handle = Selector.GetHandle("initWithString:attributes:"); private static readonly IntPtr selInitWithAttributedString_Handle = Selector.GetHandle("initWithAttributedString:"); private static readonly IntPtr selEnumerateAttributesInRangeOptionsUsingBlock_Handle = Selector.GetHandle("enumerateAttributesInRange:options:usingBlock:"); private static readonly IntPtr selEnumerateAttributeInRangeOptionsUsingBlock_Handle = Selector.GetHandle("enumerateAttribute:inRange:options:usingBlock:"); private static readonly IntPtr selInitWithDataOptionsDocumentAttributesError_Handle = Selector.GetHandle("initWithData:options:documentAttributes:error:"); private static readonly IntPtr selInitWithDocFormatDocumentAttributes_Handle = Selector.GetHandle("initWithDocFormat:documentAttributes:"); private static readonly IntPtr selInitWithHTMLBaseURLDocumentAttributes_Handle = Selector.GetHandle("initWithHTML:baseURL:documentAttributes:"); private static readonly IntPtr selDrawAtPoint_Handle = Selector.GetHandle("drawAtPoint:"); private static readonly IntPtr selDrawInRect_Handle = Selector.GetHandle("drawInRect:"); private static readonly IntPtr selDrawWithRectOptions_Handle = Selector.GetHandle("drawWithRect:options:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSAttributedString"); private static NSString _FontAttributeName; private static NSString _LinkAttributeName; private static NSString _UnderlineStyleAttributeName; private static NSString _StrikethroughStyleAttributeName; private static NSString _StrokeWidthAttributeName; private static NSString _ParagraphStyleAttributeName; private static NSString _ForegroundColorAttributeName; private static NSString _BackgroundColorAttributeName; private static NSString _LigatureAttributeName; private static NSString _ObliquenessAttributeName; private static NSString _SuperscriptAttributeName; private static NSString _AttachmentAttributeName; private static NSString _BaselineOffsetAttributeName; private static NSString _KernAttributeName; private static NSString _StrokeColorAttributeName; private static NSString _UnderlineColorAttributeName; private static NSString _StrikethroughColorAttributeName; private static NSString _ShadowAttributeName; private static NSString _ExpansionAttributeName; private static NSString _CursorAttributeName; private static NSString _ToolTipAttributeName; private static NSString _MarkedClauseSegmentAttributeName; private static NSString _WritingDirectionAttributeName; private static NSString _VerticalGlyphFormAttributeName; public override IntPtr ClassHandle => class_ptr; public virtual string Value { [Export("string")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } } public virtual ulong Length { [Export("length")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public virtual CGSize Size { [Export("size")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeHandle); } } [Field("NSFontAttributeName", "AppKit")] public static NSString FontAttributeName { get { if (_FontAttributeName == null) { _FontAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSFontAttributeName"); } return _FontAttributeName; } } [Field("NSLinkAttributeName", "AppKit")] public static NSString LinkAttributeName { get { if (_LinkAttributeName == null) { _LinkAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSLinkAttributeName"); } return _LinkAttributeName; } } [Field("NSUnderlineStyleAttributeName", "AppKit")] public static NSString UnderlineStyleAttributeName { get { if (_UnderlineStyleAttributeName == null) { _UnderlineStyleAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSUnderlineStyleAttributeName"); } return _UnderlineStyleAttributeName; } } [Field("NSStrikethroughStyleAttributeName", "AppKit")] public static NSString StrikethroughStyleAttributeName { get { if (_StrikethroughStyleAttributeName == null) { _StrikethroughStyleAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSStrikethroughStyleAttributeName"); } return _StrikethroughStyleAttributeName; } } [Field("NSStrokeWidthAttributeName", "AppKit")] public static NSString StrokeWidthAttributeName { get { if (_StrokeWidthAttributeName == null) { _StrokeWidthAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSStrokeWidthAttributeName"); } return _StrokeWidthAttributeName; } } [Field("NSParagraphStyleAttributeName", "AppKit")] public static NSString ParagraphStyleAttributeName { get { if (_ParagraphStyleAttributeName == null) { _ParagraphStyleAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSParagraphStyleAttributeName"); } return _ParagraphStyleAttributeName; } } [Field("NSForegroundColorAttributeName", "AppKit")] public static NSString ForegroundColorAttributeName { get { if (_ForegroundColorAttributeName == null) { _ForegroundColorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSForegroundColorAttributeName"); } return _ForegroundColorAttributeName; } } [Field("NSBackgroundColorAttributeName", "AppKit")] public static NSString BackgroundColorAttributeName { get { if (_BackgroundColorAttributeName == null) { _BackgroundColorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSBackgroundColorAttributeName"); } return _BackgroundColorAttributeName; } } [Field("NSLigatureAttributeName", "AppKit")] public static NSString LigatureAttributeName { get { if (_LigatureAttributeName == null) { _LigatureAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSLigatureAttributeName"); } return _LigatureAttributeName; } } [Field("NSObliquenessAttributeName", "AppKit")] public static NSString ObliquenessAttributeName { get { if (_ObliquenessAttributeName == null) { _ObliquenessAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSObliquenessAttributeName"); } return _ObliquenessAttributeName; } } [Field("NSSuperscriptAttributeName", "AppKit")] public static NSString SuperscriptAttributeName { get { if (_SuperscriptAttributeName == null) { _SuperscriptAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSSuperscriptAttributeName"); } return _SuperscriptAttributeName; } } [Field("NSAttachmentAttributeName", "AppKit")] public static NSString AttachmentAttributeName { get { if (_AttachmentAttributeName == null) { _AttachmentAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSAttachmentAttributeName"); } return _AttachmentAttributeName; } } [Field("NSBaselineOffsetAttributeName", "AppKit")] public static NSString BaselineOffsetAttributeName { get { if (_BaselineOffsetAttributeName == null) { _BaselineOffsetAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSBaselineOffsetAttributeName"); } return _BaselineOffsetAttributeName; } } [Field("NSKernAttributeName", "AppKit")] public static NSString KernAttributeName { get { if (_KernAttributeName == null) { _KernAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSKernAttributeName"); } return _KernAttributeName; } } [Field("NSStrokeColorAttributeName", "AppKit")] public static NSString StrokeColorAttributeName { get { if (_StrokeColorAttributeName == null) { _StrokeColorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSStrokeColorAttributeName"); } return _StrokeColorAttributeName; } } [Field("NSUnderlineColorAttributeName", "AppKit")] public static NSString UnderlineColorAttributeName { get { if (_UnderlineColorAttributeName == null) { _UnderlineColorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSUnderlineColorAttributeName"); } return _UnderlineColorAttributeName; } } [Field("NSStrikethroughColorAttributeName", "AppKit")] public static NSString StrikethroughColorAttributeName { get { if (_StrikethroughColorAttributeName == null) { _StrikethroughColorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSStrikethroughColorAttributeName"); } return _StrikethroughColorAttributeName; } } [Field("NSShadowAttributeName", "AppKit")] public static NSString ShadowAttributeName { get { if (_ShadowAttributeName == null) { _ShadowAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSShadowAttributeName"); } return _ShadowAttributeName; } } [Field("NSExpansionAttributeName", "AppKit")] public static NSString ExpansionAttributeName { get { if (_ExpansionAttributeName == null) { _ExpansionAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSExpansionAttributeName"); } return _ExpansionAttributeName; } } [Field("NSCursorAttributeName", "AppKit")] public static NSString CursorAttributeName { get { if (_CursorAttributeName == null) { _CursorAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSCursorAttributeName"); } return _CursorAttributeName; } } [Field("NSToolTipAttributeName", "AppKit")] public static NSString ToolTipAttributeName { get { if (_ToolTipAttributeName == null) { _ToolTipAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSToolTipAttributeName"); } return _ToolTipAttributeName; } } [Field("NSMarkedClauseSegmentAttributeName", "AppKit")] public static NSString MarkedClauseSegmentAttributeName { get { if (_MarkedClauseSegmentAttributeName == null) { _MarkedClauseSegmentAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSMarkedClauseSegmentAttributeName"); } return _MarkedClauseSegmentAttributeName; } } [Field("NSWritingDirectionAttributeName", "AppKit")] public static NSString WritingDirectionAttributeName { get { if (_WritingDirectionAttributeName == null) { _WritingDirectionAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSWritingDirectionAttributeName"); } return _WritingDirectionAttributeName; } } [Field("NSVerticalGlyphFormAttributeName", "AppKit")] public static NSString VerticalGlyphFormAttributeName { get { if (_VerticalGlyphFormAttributeName == null) { _VerticalGlyphFormAttributeName = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSVerticalGlyphFormAttributeName"); } return _VerticalGlyphFormAttributeName; } } public NSAttributedString(string str, CTStringAttributes attributes) : this(str, attributes?.Dictionary) { } public CTStringAttributes GetCoreTextAttributes(ulong location, out NSRange effectiveRange) { NSDictionary attributes = GetAttributes(location, out effectiveRange); if (attributes != null) { return new CTStringAttributes(attributes); } return null; } public CTStringAttributes GetCoreTextAttributes(ulong location, out NSRange longestEffectiveRange, NSRange rangeLimit) { NSDictionary attributes = GetAttributes(location, out longestEffectiveRange, rangeLimit); if (attributes != null) { return new CTStringAttributes(attributes); } return null; } public NSAttributedString Substring(int start, int len) { return Substring(new NSRange(start, len)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSAttributedString() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSAttributedString(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAttributedString(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAttributedString(IntPtr handle) : base(handle) { } [Export("attributesAtIndex:effectiveRange:")] public virtual NSDictionary GetAttributes(ulong location, out NSRange effectiveRange) { if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_out_NSRange(base.Handle, selAttributesAtIndexEffectiveRange_Handle, location, out effectiveRange)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_out_NSRange(base.SuperHandle, selAttributesAtIndexEffectiveRange_Handle, location, out effectiveRange)); } [Export("attribute:atIndex:effectiveRange:")] public virtual NSObject GetAttribute(string attribute, ulong location, out NSRange effectiveRange) { if (attribute == null) { throw new ArgumentNullException("attribute"); } IntPtr arg = NSString.CreateNative(attribute); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_out_NSRange(base.SuperHandle, selAttributeAtIndexEffectiveRange_Handle, arg, location, out effectiveRange)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_out_NSRange(base.Handle, selAttributeAtIndexEffectiveRange_Handle, arg, location, out effectiveRange))); NSString.ReleaseNative(arg); return result; } [Export("attributedSubstringFromRange:")] internal virtual NSAttributedString Substring(NSRange range) { if (IsDirectBinding) { return (NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(base.Handle, selAttributedSubstringFromRange_Handle, range)); } return (NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_NSRange(base.SuperHandle, selAttributedSubstringFromRange_Handle, range)); } [Export("attributesAtIndex:longestEffectiveRange:inRange:")] public virtual NSDictionary GetAttributes(ulong location, out NSRange longestEffectiveRange, NSRange rangeLimit) { if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_out_NSRange_NSRange(base.Handle, selAttributesAtIndexLongestEffectiveRangeInRange_Handle, location, out longestEffectiveRange, rangeLimit)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_out_NSRange_NSRange(base.SuperHandle, selAttributesAtIndexLongestEffectiveRangeInRange_Handle, location, out longestEffectiveRange, rangeLimit)); } [Export("attribute:atIndex:longestEffectiveRange:inRange:")] public virtual NSObject GetAttribute(string attribute, ulong location, out NSRange longestEffectiveRange, NSRange rangeLimit) { if (attribute == null) { throw new ArgumentNullException("attribute"); } IntPtr arg = NSString.CreateNative(attribute); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_out_NSRange_NSRange(base.SuperHandle, selAttributeAtIndexLongestEffectiveRangeInRange_Handle, arg, location, out longestEffectiveRange, rangeLimit)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_out_NSRange_NSRange(base.Handle, selAttributeAtIndexLongestEffectiveRangeInRange_Handle, arg, location, out longestEffectiveRange, rangeLimit))); NSString.ReleaseNative(arg); return result; } [Export("isEqualToAttributedString:")] public virtual bool IsEqual(NSAttributedString other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToAttributedString_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToAttributedString_Handle, other.Handle); } [Export("initWithString:")] public NSAttributedString(string str) : base(NSObjectFlag.Empty) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithString:attributes:")] [EditorBrowsable(EditorBrowsableState.Advanced)] public NSAttributedString(string str, NSDictionary attributes) : base(NSObjectFlag.Empty) { if (str == null) { throw new ArgumentNullException("str"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithStringAttributes_Handle, arg, attributes.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithStringAttributes_Handle, arg, attributes.Handle); } NSString.ReleaseNative(arg); } [Export("initWithAttributedString:")] public NSAttributedString(NSAttributedString other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAttributedString_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAttributedString_Handle, other.Handle); } } [Export("enumerateAttributesInRange:options:usingBlock:")] public unsafe virtual void EnumerateAttributes(NSRange range, NSAttributedStringEnumeration options, NSAttributedRangeCallback callback) { if (callback == null) { throw new ArgumentNullException("callback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAttributedRangeCallback.Handler, callback); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_UInt64_IntPtr(base.Handle, selEnumerateAttributesInRangeOptionsUsingBlock_Handle, range, (ulong)options, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_NSRange_UInt64_IntPtr(base.SuperHandle, selEnumerateAttributesInRangeOptionsUsingBlock_Handle, range, (ulong)options, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("enumerateAttribute:inRange:options:usingBlock:")] public unsafe virtual void EnumerateAttribute(NSString attributeName, NSRange inRange, NSAttributedStringEnumeration options, NSAttributedStringCallback callback) { if (attributeName == null) { throw new ArgumentNullException("attributeName"); } if (callback == null) { throw new ArgumentNullException("callback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAttributedStringCallback.Handler, callback); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr(base.Handle, selEnumerateAttributeInRangeOptionsUsingBlock_Handle, attributeName.Handle, inRange, (ulong)options, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr(base.SuperHandle, selEnumerateAttributeInRangeOptionsUsingBlock_Handle, attributeName.Handle, inRange, (ulong)options, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("initWithData:options:documentAttributes:error:")] public NSAttributedString(NSData data, NSDictionary options, out NSDictionary docAttributes, out NSError error) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (options == null) { throw new ArgumentNullException("options"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithDataOptionsDocumentAttributesError_Handle, data.Handle, options.Handle, intPtr, intPtr2); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithDataOptionsDocumentAttributesError_Handle, data.Handle, options.Handle, intPtr, intPtr2); } IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); docAttributes = ((intPtr3 != IntPtr.Zero) ? ((NSDictionary)Runtime.GetNSObject(intPtr3)) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); error = ((intPtr4 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr4)) : null); Marshal.FreeHGlobal(intPtr2); } [Export("initWithDocFormat:documentAttributes:")] public NSAttributedString(NSData wordDocFormat, out NSDictionary docAttributes) : base(NSObjectFlag.Empty) { if (wordDocFormat == null) { throw new ArgumentNullException("wordDocFormat"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDocFormatDocumentAttributes_Handle, wordDocFormat.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDocFormatDocumentAttributes_Handle, wordDocFormat.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); docAttributes = ((intPtr2 != IntPtr.Zero) ? ((NSDictionary)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithHTML:baseURL:documentAttributes:")] public NSAttributedString(NSData htmlData, NSUrl baseUrl, out NSDictionary docAttributes) : base(NSObjectFlag.Empty) { if (htmlData == null) { throw new ArgumentNullException("htmlData"); } if (baseUrl == null) { throw new ArgumentNullException("baseUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithHTMLBaseURLDocumentAttributes_Handle, htmlData.Handle, baseUrl.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithHTMLBaseURLDocumentAttributes_Handle, htmlData.Handle, baseUrl.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); docAttributes = ((intPtr2 != IntPtr.Zero) ? ((NSDictionary)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("drawAtPoint:")] public virtual void DrawString(CGPoint point) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selDrawAtPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selDrawAtPoint_Handle, point); } } [Export("drawInRect:")] public virtual void DrawString(CGRect rect) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawInRect_Handle, rect); } } [Export("drawWithRect:options:")] public virtual void DrawString(CGRect rect, NSStringDrawingOptions options) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_UInt64(base.Handle, selDrawWithRectOptions_Handle, rect, (ulong)options); } else { Messaging.void_objc_msgSendSuper_CGRect_UInt64(base.SuperHandle, selDrawWithRectOptions_Handle, rect, (ulong)options); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAttributedStringCallback.cs ================================================ namespace Foundation; public delegate void NSAttributedStringCallback(NSObject value, NSRange range, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAttributedStringEnumeration.cs ================================================ using System; namespace Foundation; [Flags] public enum NSAttributedStringEnumeration : ulong { None = 0uL, Reverse = 2uL, LongestEffectiveRangeNotRequired = 0x100000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSAutoreleasePool.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Register("NSAutoreleasePool", true)] public class NSAutoreleasePool : NSObject, IDisposable { public override IntPtr ClassHandle => Class.GetHandle("NSAutoreleasePool"); [Export("init")] public NSAutoreleasePool() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.intptr_objc_msgSend(base.Handle, Selector.GetHandle("init")); } else { base.Handle = Messaging.intptr_objc_msgSendSuper(base.SuperHandle, Selector.GetHandle("init")); } } public NSAutoreleasePool(NSObjectFlag t) : base(t) { } public NSAutoreleasePool(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSBlockOperation.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSBlockOperation", true)] public class NSBlockOperation : NSOperation { private static readonly IntPtr selExecutionBlocksHandle = Selector.GetHandle("executionBlocks"); private static readonly IntPtr selBlockOperationWithBlock_Handle = Selector.GetHandle("blockOperationWithBlock:"); private static readonly IntPtr selAddExecutionBlock_Handle = Selector.GetHandle("addExecutionBlock:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBlockOperation"); private object __mt_ExecutionBlocks_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject[] ExecutionBlocks { [Export("executionBlocks")] get { return (NSObject[])(__mt_ExecutionBlocks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExecutionBlocksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExecutionBlocksHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSBlockOperation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBlockOperation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBlockOperation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBlockOperation(IntPtr handle) : base(handle) { } [Export("blockOperationWithBlock:")] public unsafe static NSBlockOperation Create(NSAction method) { if (method == null) { throw new ArgumentNullException("method"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, method); NSBlockOperation result = (NSBlockOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selBlockOperationWithBlock_Handle, (IntPtr)ptr)); ptr->CleanupBlock(); return result; } [Export("addExecutionBlock:")] public unsafe virtual void AddExecutionBlock(NSAction method) { if (method == null) { throw new ArgumentNullException("method"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, method); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddExecutionBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddExecutionBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ExecutionBlocks_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSBundle.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSBundle", true)] public class NSBundle : NSObject { private static readonly IntPtr selMainBundleHandle = Selector.GetHandle("mainBundle"); private static readonly IntPtr selAllBundlesHandle = Selector.GetHandle("allBundles"); private static readonly IntPtr selAllFrameworksHandle = Selector.GetHandle("allFrameworks"); private static readonly IntPtr selIsLoadedHandle = Selector.GetHandle("isLoaded"); private static readonly IntPtr selBundlePathHandle = Selector.GetHandle("bundlePath"); private static readonly IntPtr selResourcePathHandle = Selector.GetHandle("resourcePath"); private static readonly IntPtr selExecutablePathHandle = Selector.GetHandle("executablePath"); private static readonly IntPtr selPrivateFrameworksPathHandle = Selector.GetHandle("privateFrameworksPath"); private static readonly IntPtr selSharedFrameworksPathHandle = Selector.GetHandle("sharedFrameworksPath"); private static readonly IntPtr selSharedSupportPathHandle = Selector.GetHandle("sharedSupportPath"); private static readonly IntPtr selBuiltInPlugInsPathHandle = Selector.GetHandle("builtInPlugInsPath"); private static readonly IntPtr selBundleIdentifierHandle = Selector.GetHandle("bundleIdentifier"); private static readonly IntPtr selPrincipalClassHandle = Selector.GetHandle("principalClass"); private static readonly IntPtr selDevelopmentLocalizationHandle = Selector.GetHandle("developmentLocalization"); private static readonly IntPtr selInfoDictionaryHandle = Selector.GetHandle("infoDictionary"); private static readonly IntPtr selAppStoreReceiptURLHandle = Selector.GetHandle("appStoreReceiptURL"); private static readonly IntPtr selBundleURLHandle = Selector.GetHandle("bundleURL"); private static readonly IntPtr selResourceURLHandle = Selector.GetHandle("resourceURL"); private static readonly IntPtr selExecutableURLHandle = Selector.GetHandle("executableURL"); private static readonly IntPtr selPrivateFrameworksURLHandle = Selector.GetHandle("privateFrameworksURL"); private static readonly IntPtr selSharedFrameworksURLHandle = Selector.GetHandle("sharedFrameworksURL"); private static readonly IntPtr selSharedSupportURLHandle = Selector.GetHandle("sharedSupportURL"); private static readonly IntPtr selBuiltInPlugInsURLHandle = Selector.GetHandle("builtInPlugInsURL"); private static readonly IntPtr selPreferredLocalizationsHandle = Selector.GetHandle("preferredLocalizations"); private static readonly IntPtr selLocalizationsHandle = Selector.GetHandle("localizations"); private static readonly IntPtr selBundleWithPath_Handle = Selector.GetHandle("bundleWithPath:"); private static readonly IntPtr selInitWithPath_Handle = Selector.GetHandle("initWithPath:"); private static readonly IntPtr selBundleForClass_Handle = Selector.GetHandle("bundleForClass:"); private static readonly IntPtr selBundleWithIdentifier_Handle = Selector.GetHandle("bundleWithIdentifier:"); private static readonly IntPtr selLoadHandle = Selector.GetHandle("load"); private static readonly IntPtr selUnloadHandle = Selector.GetHandle("unload"); private static readonly IntPtr selPathForAuxiliaryExecutable_Handle = Selector.GetHandle("pathForAuxiliaryExecutable:"); private static readonly IntPtr selClassNamed_Handle = Selector.GetHandle("classNamed:"); private static readonly IntPtr selPathForResourceOfTypeInDirectory_Handle = Selector.GetHandle("pathForResource:ofType:inDirectory:"); private static readonly IntPtr selPathForResourceOfType_Handle = Selector.GetHandle("pathForResource:ofType:"); private static readonly IntPtr selPathForResourceOfTypeInDirectoryForLocalization_Handle = Selector.GetHandle("pathForResource:ofType:inDirectory:forLocalization:"); private static readonly IntPtr selLocalizedStringForKeyValueTable_Handle = Selector.GetHandle("localizedStringForKey:value:table:"); private static readonly IntPtr selObjectForInfoDictionaryKey_Handle = Selector.GetHandle("objectForInfoDictionaryKey:"); private static readonly IntPtr selLoadNibNamedOwner_Handle = Selector.GetHandle("loadNibNamed:owner:"); private static readonly IntPtr selPathForImageResource_Handle = Selector.GetHandle("pathForImageResource:"); private static readonly IntPtr selPathForSoundResource_Handle = Selector.GetHandle("pathForSoundResource:"); private static readonly IntPtr selURLForAuxiliaryExecutable_Handle = Selector.GetHandle("URLForAuxiliaryExecutable:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selBundleWithURL_Handle = Selector.GetHandle("bundleWithURL:"); private static readonly IntPtr selPathsForResourcesOfTypeInDirectory_Handle = Selector.GetHandle("pathsForResourcesOfType:inDirectory:"); private static readonly IntPtr selPathsForResourcesOfTypeInDirectoryForLocalization_Handle = Selector.GetHandle("pathsForResourcesOfType:inDirectory:forLocalization:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSBundle"); private static object __mt_MainBundle_var_static; private static object __mt__AllBundles_var_static; private static object __mt_AllFrameworks_var_static; private object __mt_InfoDictionary_var; private object __mt_AppStoreReceiptUrl_var; private object __mt_BundleUrl_var; private object __mt_ResourceUrl_var; private object __mt_ExecutableUrl_var; private object __mt_PrivateFrameworksUrl_var; private object __mt_SharedFrameworksUrl_var; private object __mt_SharedSupportUrl_var; private object __mt_BuiltInPluginsUrl_var; public override IntPtr ClassHandle => class_ptr; public static NSBundle MainBundle { [Export("mainBundle")] get { return (NSBundle)(__mt_MainBundle_var_static = (NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMainBundleHandle))); } } public static NSBundle[] _AllBundles { [Export("allBundles")] get { return (NSBundle[])(__mt__AllBundles_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllBundlesHandle))); } } public static NSBundle[] AllFrameworks { [Export("allFrameworks")] get { return (NSBundle[])(__mt_AllFrameworks_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllFrameworksHandle))); } } public virtual bool IsLoaded { [Export("isLoaded")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLoadedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLoadedHandle); } } public virtual string BundlePath { [Export("bundlePath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBundlePathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBundlePathHandle)); } } public virtual string ResourcePath { [Export("resourcePath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selResourcePathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResourcePathHandle)); } } public virtual string ExecutablePath { [Export("executablePath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExecutablePathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExecutablePathHandle)); } } public virtual string PrivateFrameworksPath { [Export("privateFrameworksPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPrivateFrameworksPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrivateFrameworksPathHandle)); } } public virtual string SharedFrameworksPath { [Export("sharedFrameworksPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSharedFrameworksPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSharedFrameworksPathHandle)); } } public virtual string SharedSupportPath { [Export("sharedSupportPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSharedSupportPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSharedSupportPathHandle)); } } public virtual string BuiltinPluginsPath { [Export("builtInPlugInsPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBuiltInPlugInsPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBuiltInPlugInsPathHandle)); } } public virtual string BundleIdentifier { [Export("bundleIdentifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBundleIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBundleIdentifierHandle)); } } public virtual Class PrincipalClass { [Export("principalClass")] get { if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selPrincipalClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrincipalClassHandle)); } } public virtual string DevelopmentLocalization { [Export("developmentLocalization")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDevelopmentLocalizationHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDevelopmentLocalizationHandle)); } } public virtual NSDictionary InfoDictionary { [Export("infoDictionary")] get { return (NSDictionary)(__mt_InfoDictionary_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInfoDictionaryHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInfoDictionaryHandle))))); } } public virtual NSUrl AppStoreReceiptUrl { [Export("appStoreReceiptURL")] get { return (NSUrl)(__mt_AppStoreReceiptUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAppStoreReceiptURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAppStoreReceiptURLHandle))))); } } [Since(4, 0)] public virtual NSUrl BundleUrl { [Export("bundleURL")] get { return (NSUrl)(__mt_BundleUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBundleURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBundleURLHandle))))); } } [Since(4, 0)] public virtual NSUrl ResourceUrl { [Export("resourceURL")] get { return (NSUrl)(__mt_ResourceUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResourceURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selResourceURLHandle))))); } } [Since(4, 0)] public virtual NSUrl ExecutableUrl { [Export("executableURL")] get { return (NSUrl)(__mt_ExecutableUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExecutableURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExecutableURLHandle))))); } } [Since(4, 0)] public virtual NSUrl PrivateFrameworksUrl { [Export("privateFrameworksURL")] get { return (NSUrl)(__mt_PrivateFrameworksUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrivateFrameworksURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPrivateFrameworksURLHandle))))); } } [Since(4, 0)] public virtual NSUrl SharedFrameworksUrl { [Export("sharedFrameworksURL")] get { return (NSUrl)(__mt_SharedFrameworksUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSharedFrameworksURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSharedFrameworksURLHandle))))); } } [Since(4, 0)] public virtual NSUrl SharedSupportUrl { [Export("sharedSupportURL")] get { return (NSUrl)(__mt_SharedSupportUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSharedSupportURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSharedSupportURLHandle))))); } } [Since(4, 0)] public virtual NSUrl BuiltInPluginsUrl { [Export("builtInPlugInsURL")] get { return (NSUrl)(__mt_BuiltInPluginsUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBuiltInPlugInsURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBuiltInPlugInsURLHandle))))); } } public virtual string[] PreferredLocalizations { [Export("preferredLocalizations")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferredLocalizationsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferredLocalizationsHandle)); } } public virtual string[] Localizations { [Export("localizations")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizationsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizationsHandle)); } } public string LocalizedString(string key, string comment) { return LocalizedString(key, "", ""); } public string LocalizedString(string key, string val, string table, string comment) { return LocalizedString(key, val, table); } public string[] PathsForResources(string fileExtension) { return PathsForResources(fileExtension, null); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSBundle(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBundle(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSBundle(IntPtr handle) : base(handle) { } [Export("bundleWithPath:")] public static NSBundle FromPath(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSBundle result = (NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selBundleWithPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("initWithPath:")] public NSBundle(string path) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithPath_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithPath_Handle, arg); } NSString.ReleaseNative(arg); } [Export("bundleForClass:")] public static NSBundle FromClass(Class c) { if (c == null) { throw new ArgumentNullException("c"); } return (NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selBundleForClass_Handle, c.Handle)); } [Export("bundleWithIdentifier:")] public static NSBundle FromIdentifier(string str) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); NSBundle result = (NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selBundleWithIdentifier_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("load")] public virtual bool Load() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selLoadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selLoadHandle); } [Export("unload")] public virtual bool Unload() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUnloadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUnloadHandle); } [Export("pathForAuxiliaryExecutable:")] public virtual string PathForAuxiliaryExecutable(string s) { if (s == null) { throw new ArgumentNullException("s"); } IntPtr arg = NSString.CreateNative(s); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPathForAuxiliaryExecutable_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPathForAuxiliaryExecutable_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("classNamed:")] public virtual Class ClassNamed(string className) { if (className == null) { throw new ArgumentNullException("className"); } IntPtr arg = NSString.CreateNative(className); Class result = ((!IsDirectBinding) ? new Class(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selClassNamed_Handle, arg)) : new Class(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selClassNamed_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("pathForResource:ofType:inDirectory:")] public static string PathForResourceAbsolute(string name, string ofType, string bundleDirectory) { if (name == null) { throw new ArgumentNullException("name"); } if (bundleDirectory == null) { throw new ArgumentNullException("bundleDirectory"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(ofType); IntPtr arg3 = NSString.CreateNative(bundleDirectory); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selPathForResourceOfTypeInDirectory_Handle, arg, arg2, arg3)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); return result; } [Export("pathForResource:ofType:")] public virtual string PathForResource(string name, string ofType) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(ofType); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPathForResourceOfType_Handle, arg, arg2)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selPathForResourceOfType_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("pathForResource:ofType:inDirectory:forLocalization:")] public virtual string PathForResource(string name, string ofType, string subpath, string localizationName) { if (name == null) { throw new ArgumentNullException("name"); } if (subpath == null) { throw new ArgumentNullException("subpath"); } if (localizationName == null) { throw new ArgumentNullException("localizationName"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(ofType); IntPtr arg3 = NSString.CreateNative(subpath); IntPtr arg4 = NSString.CreateNative(localizationName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPathForResourceOfTypeInDirectoryForLocalization_Handle, arg, arg2, arg3, arg4)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selPathForResourceOfTypeInDirectoryForLocalization_Handle, arg, arg2, arg3, arg4))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); NSString.ReleaseNative(arg4); return result; } [Export("localizedStringForKey:value:table:")] public virtual string LocalizedString(string key, string value, string table) { IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(value); IntPtr arg3 = NSString.CreateNative(table); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selLocalizedStringForKeyValueTable_Handle, arg, arg2, arg3)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selLocalizedStringForKeyValueTable_Handle, arg, arg2, arg3))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); return result; } [Export("objectForInfoDictionaryKey:")] public virtual NSObject ObjectForInfoDictionary(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForInfoDictionaryKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForInfoDictionaryKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("loadNibNamed:owner:")] public static bool LoadNib(string nibName, NSObject owner) { if (nibName == null) { throw new ArgumentNullException("nibName"); } if (owner == null) { throw new ArgumentNullException("owner"); } IntPtr arg = NSString.CreateNative(nibName); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr(class_ptr, selLoadNibNamedOwner_Handle, arg, owner.Handle); NSString.ReleaseNative(arg); return result; } [Export("pathForImageResource:")] public virtual string PathForImageResource(string resource) { if (resource == null) { throw new ArgumentNullException("resource"); } IntPtr arg = NSString.CreateNative(resource); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPathForImageResource_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPathForImageResource_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("pathForSoundResource:")] public virtual string PathForSoundResource(string resource) { if (resource == null) { throw new ArgumentNullException("resource"); } IntPtr arg = NSString.CreateNative(resource); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPathForSoundResource_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPathForSoundResource_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("URLForAuxiliaryExecutable:")] public virtual NSUrl UrlForAuxiliaryExecutable(string executable) { if (executable == null) { throw new ArgumentNullException("executable"); } IntPtr arg = NSString.CreateNative(executable); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selURLForAuxiliaryExecutable_Handle, arg))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selURLForAuxiliaryExecutable_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("initWithURL:")] public NSBundle(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("bundleWithURL:")] public static NSBundle FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSBundle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selBundleWithURL_Handle, url.Handle)); } [Export("pathsForResourcesOfType:inDirectory:")] public virtual string[] PathsForResources(string fileExtension, string subDirectory) { if (fileExtension == null) { throw new ArgumentNullException("fileExtension"); } IntPtr arg = NSString.CreateNative(fileExtension); IntPtr arg2 = NSString.CreateNative(subDirectory); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPathsForResourcesOfTypeInDirectory_Handle, arg, arg2)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selPathsForResourcesOfTypeInDirectory_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("pathsForResourcesOfType:inDirectory:forLocalization:")] public virtual string[] PathsForResources(string fileExtension, string subDirectory, string localizationName) { if (fileExtension == null) { throw new ArgumentNullException("fileExtension"); } IntPtr arg = NSString.CreateNative(fileExtension); IntPtr arg2 = NSString.CreateNative(subDirectory); IntPtr arg3 = NSString.CreateNative(localizationName); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPathsForResourcesOfTypeInDirectoryForLocalization_Handle, arg, arg2, arg3)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selPathsForResourcesOfTypeInDirectoryForLocalization_Handle, arg, arg2, arg3))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); return result; } [Export("pathsForResourcesOfType:inDirectory:")] public static string[] GetPathsForResources(string fileExtension, string bundlePath) { if (fileExtension == null) { throw new ArgumentNullException("fileExtension"); } if (bundlePath == null) { throw new ArgumentNullException("bundlePath"); } IntPtr arg = NSString.CreateNative(fileExtension); IntPtr arg2 = NSString.CreateNative(bundlePath); string[] result = NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selPathsForResourcesOfTypeInDirectory_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InfoDictionary_var = null; __mt_AppStoreReceiptUrl_var = null; __mt_BundleUrl_var = null; __mt_ResourceUrl_var = null; __mt_ExecutableUrl_var = null; __mt_PrivateFrameworksUrl_var = null; __mt_SharedFrameworksUrl_var = null; __mt_SharedSupportUrl_var = null; __mt_BuiltInPluginsUrl_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSBundleExecutableArchitecture.cs ================================================ namespace Foundation; public enum NSBundleExecutableArchitecture { I386 = 7, PPC = 18, X86_64 = 16777223, PPC64 = 16777234 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSByteCountFormatter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSByteCountFormatter", true)] public class NSByteCountFormatter : NSFormatter { private static readonly IntPtr selAllowsNonnumericFormattingHandle = Selector.GetHandle("allowsNonnumericFormatting"); private static readonly IntPtr selSetAllowsNonnumericFormatting_Handle = Selector.GetHandle("setAllowsNonnumericFormatting:"); private static readonly IntPtr selIncludesUnitHandle = Selector.GetHandle("includesUnit"); private static readonly IntPtr selSetIncludesUnit_Handle = Selector.GetHandle("setIncludesUnit:"); private static readonly IntPtr selIncludesCountHandle = Selector.GetHandle("includesCount"); private static readonly IntPtr selSetIncludesCount_Handle = Selector.GetHandle("setIncludesCount:"); private static readonly IntPtr selIncludesActualByteCountHandle = Selector.GetHandle("includesActualByteCount"); private static readonly IntPtr selSetIncludesActualByteCount_Handle = Selector.GetHandle("setIncludesActualByteCount:"); private static readonly IntPtr selIsAdaptiveHandle = Selector.GetHandle("isAdaptive"); private static readonly IntPtr selSetAdaptive_Handle = Selector.GetHandle("setAdaptive:"); private static readonly IntPtr selZeroPadsFractionDigitsHandle = Selector.GetHandle("zeroPadsFractionDigits"); private static readonly IntPtr selSetZeroPadsFractionDigits_Handle = Selector.GetHandle("setZeroPadsFractionDigits:"); private static readonly IntPtr selAllowedUnitsHandle = Selector.GetHandle("allowedUnits"); private static readonly IntPtr selSetAllowedUnits_Handle = Selector.GetHandle("setAllowedUnits:"); private static readonly IntPtr selCountStyleHandle = Selector.GetHandle("countStyle"); private static readonly IntPtr selSetCountStyle_Handle = Selector.GetHandle("setCountStyle:"); private static readonly IntPtr selStringFromByteCountCountStyle_Handle = Selector.GetHandle("stringFromByteCount:countStyle:"); private static readonly IntPtr selStringFromByteCount_Handle = Selector.GetHandle("stringFromByteCount:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSByteCountFormatter"); public override IntPtr ClassHandle => class_ptr; public virtual bool AllowsNonnumericFormatting { [Export("allowsNonnumericFormatting")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsNonnumericFormattingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsNonnumericFormattingHandle); } [Export("setAllowsNonnumericFormatting:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsNonnumericFormatting_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsNonnumericFormatting_Handle, value); } } } public virtual bool IncludesUnit { [Export("includesUnit")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIncludesUnitHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIncludesUnitHandle); } [Export("setIncludesUnit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIncludesUnit_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIncludesUnit_Handle, value); } } } public virtual bool IncludesCount { [Export("includesCount")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIncludesCountHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIncludesCountHandle); } [Export("setIncludesCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIncludesCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIncludesCount_Handle, value); } } } public virtual bool IncludesActualByteCount { [Export("includesActualByteCount")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIncludesActualByteCountHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIncludesActualByteCountHandle); } [Export("setIncludesActualByteCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIncludesActualByteCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIncludesActualByteCount_Handle, value); } } } public virtual bool Adaptive { [Export("isAdaptive")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAdaptiveHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAdaptiveHandle); } [Export("setAdaptive:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAdaptive_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAdaptive_Handle, value); } } } public virtual bool ZeroPadsFractionDigits { [Export("zeroPadsFractionDigits")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selZeroPadsFractionDigitsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selZeroPadsFractionDigitsHandle); } [Export("setZeroPadsFractionDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetZeroPadsFractionDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetZeroPadsFractionDigits_Handle, value); } } } public virtual NSByteCountFormatterUnits AllowedUnits { [Export("allowedUnits")] get { if (IsDirectBinding) { return (NSByteCountFormatterUnits)Messaging.UInt64_objc_msgSend(base.Handle, selAllowedUnitsHandle); } return (NSByteCountFormatterUnits)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAllowedUnitsHandle); } [Export("setAllowedUnits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAllowedUnits_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAllowedUnits_Handle, (ulong)value); } } } public virtual NSByteCountFormatterCountStyle CountStyle { [Export("countStyle")] get { if (IsDirectBinding) { return (NSByteCountFormatterCountStyle)Messaging.Int64_objc_msgSend(base.Handle, selCountStyleHandle); } return (NSByteCountFormatterCountStyle)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selCountStyleHandle); } [Export("setCountStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetCountStyle_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetCountStyle_Handle, (long)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSByteCountFormatter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSByteCountFormatter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSByteCountFormatter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSByteCountFormatter(IntPtr handle) : base(handle) { } [Export("stringFromByteCount:countStyle:")] public static string Format(long byteCount, NSByteCountFormatterCountStyle countStyle) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64_Int64(class_ptr, selStringFromByteCountCountStyle_Handle, byteCount, (long)countStyle)); } [Export("stringFromByteCount:")] public virtual string Format(long byteCount) { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selStringFromByteCount_Handle, byteCount)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selStringFromByteCount_Handle, byteCount)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSByteCountFormatterCountStyle.cs ================================================ namespace Foundation; public enum NSByteCountFormatterCountStyle : long { File, Memory, Decimal, Binary } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSByteCountFormatterUnits.cs ================================================ using System; namespace Foundation; [Flags] public enum NSByteCountFormatterUnits : ulong { UseDefault = 0uL, UseBytes = 1uL, UseKB = 2uL, UseMB = 4uL, UseGB = 8uL, UseTB = 0x10uL, UsePB = 0x20uL, UseEB = 0x40uL, UseZB = 0x80uL, UseYBOrHigher = 0xFF00uL, UseAll = 0xFFFFuL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCache.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSCache", true)] public class NSCache : NSObject { [Register] private sealed class _NSCacheDelegate : NSCacheDelegate { internal EventHandler willEvictObject; [Preserve(Conditional = true)] public override void WillEvictObject(NSCache cache, NSObject obj) { EventHandler eventHandler = willEvictObject; if (eventHandler != null) { NSObjectEventArgs e = new NSObjectEventArgs(obj); eventHandler(cache, e); } } } private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selTotalCostLimitHandle = Selector.GetHandle("totalCostLimit"); private static readonly IntPtr selSetTotalCostLimit_Handle = Selector.GetHandle("setTotalCostLimit:"); private static readonly IntPtr selCountLimitHandle = Selector.GetHandle("countLimit"); private static readonly IntPtr selSetCountLimit_Handle = Selector.GetHandle("setCountLimit:"); private static readonly IntPtr selEvictsObjectsWithDiscardedContentHandle = Selector.GetHandle("evictsObjectsWithDiscardedContent"); private static readonly IntPtr selSetEvictsObjectsWithDiscardedContent_Handle = Selector.GetHandle("setEvictsObjectsWithDiscardedContent:"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selSetObjectForKey_Handle = Selector.GetHandle("setObject:forKey:"); private static readonly IntPtr selSetObjectForKeyCost_Handle = Selector.GetHandle("setObject:forKey:cost:"); private static readonly IntPtr selRemoveObjectForKey_Handle = Selector.GetHandle("removeObjectForKey:"); private static readonly IntPtr selRemoveAllObjectsHandle = Selector.GetHandle("removeAllObjects"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCache"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public NSCacheDelegate Delegate { get { return WeakDelegate as NSCacheDelegate; } set { WeakDelegate = value; } } public virtual ulong TotalCostLimit { [Export("totalCostLimit")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selTotalCostLimitHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTotalCostLimitHandle); } [Export("setTotalCostLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTotalCostLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTotalCostLimit_Handle, value); } } } public virtual ulong CountLimit { [Export("countLimit")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCountLimitHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCountLimitHandle); } [Export("setCountLimit:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCountLimit_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCountLimit_Handle, value); } } } public virtual bool EvictsObjectsWithDiscardedContent { [Export("evictsObjectsWithDiscardedContent")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEvictsObjectsWithDiscardedContentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEvictsObjectsWithDiscardedContentHandle); } [Export("setEvictsObjectsWithDiscardedContent:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEvictsObjectsWithDiscardedContent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEvictsObjectsWithDiscardedContent_Handle, value); } } } public event EventHandler WillEvictObject { add { _NSCacheDelegate nSCacheDelegate = EnsureNSCacheDelegate(); nSCacheDelegate.willEvictObject = (EventHandler)System.Delegate.Combine(nSCacheDelegate.willEvictObject, value); } remove { _NSCacheDelegate nSCacheDelegate = EnsureNSCacheDelegate(); nSCacheDelegate.willEvictObject = (EventHandler)System.Delegate.Remove(nSCacheDelegate.willEvictObject, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCache() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCache(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCache(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCache(IntPtr handle) : base(handle) { } [Export("objectForKey:")] public virtual NSObject ObjectForKey(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKey_Handle, key.Handle)); } [Export("setObject:forKey:")] public virtual void SetObjectforKey(NSObject obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetObjectForKey_Handle, obj.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetObjectForKey_Handle, obj.Handle, key.Handle); } } [Export("setObject:forKey:cost:")] public virtual void SetCost(NSObject obj, NSObject key, ulong cost) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selSetObjectForKeyCost_Handle, obj.Handle, key.Handle, cost); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selSetObjectForKeyCost_Handle, obj.Handle, key.Handle, cost); } } [Export("removeObjectForKey:")] public virtual void RemoveObjectForKey(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectForKey_Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectForKey_Handle, key.Handle); } } [Export("removeAllObjects")] public virtual void RemoveAllObjects() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllObjectsHandle); } } private _NSCacheDelegate EnsureNSCacheDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSCacheDelegate)) { nSObject = (WeakDelegate = new _NSCacheDelegate()); } return (_NSCacheDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCacheDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSCacheDelegate", true)] [Model] public class NSCacheDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCacheDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCacheDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCacheDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCacheDelegate(IntPtr handle) : base(handle) { } [Export("cache:willEvictObject:")] public virtual void WillEvictObject(NSCache cache, NSObject obj) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCachedUrlResponse.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSCachedURLResponse", true)] public class NSCachedUrlResponse : NSObject { private static readonly IntPtr selResponseHandle = Selector.GetHandle("response"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selStoragePolicyHandle = Selector.GetHandle("storagePolicy"); private static readonly IntPtr selInitWithResponseDataUserInfoStoragePolicy_Handle = Selector.GetHandle("initWithResponse:data:userInfo:storagePolicy:"); private static readonly IntPtr selInitWithResponseData_Handle = Selector.GetHandle("initWithResponse:data:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCachedURLResponse"); private object __mt_Response_var; private object __mt_Data_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrlResponse Response { [Export("response")] get { return (NSUrlResponse)(__mt_Response_var = ((!IsDirectBinding) ? ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResponseHandle))) : ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selResponseHandle))))); } } public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } } public virtual NSUrlCacheStoragePolicy StoragePolicy { [Export("storagePolicy")] get { if (IsDirectBinding) { return (NSUrlCacheStoragePolicy)Messaging.UInt64_objc_msgSend(base.Handle, selStoragePolicyHandle); } return (NSUrlCacheStoragePolicy)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStoragePolicyHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCachedUrlResponse(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCachedUrlResponse(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCachedUrlResponse(IntPtr handle) : base(handle) { } [Export("initWithResponse:data:userInfo:storagePolicy:")] public NSCachedUrlResponse(NSUrlResponse response, NSData data, NSDictionary userInfo, NSUrlCacheStoragePolicy storagePolicy) : base(NSObjectFlag.Empty) { if (response == null) { throw new ArgumentNullException("response"); } if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64(base.Handle, selInitWithResponseDataUserInfoStoragePolicy_Handle, response.Handle, data.Handle, userInfo?.Handle ?? IntPtr.Zero, (ulong)storagePolicy); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64(base.SuperHandle, selInitWithResponseDataUserInfoStoragePolicy_Handle, response.Handle, data.Handle, userInfo?.Handle ?? IntPtr.Zero, (ulong)storagePolicy); } } [Export("initWithResponse:data:")] public NSCachedUrlResponse(NSUrlResponse response, NSData data) : base(NSObjectFlag.Empty) { if (response == null) { throw new ArgumentNullException("response"); } if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithResponseData_Handle, response.Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithResponseData_Handle, response.Handle, data.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Response_var = null; __mt_Data_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCalculationError.cs ================================================ namespace Foundation; public enum NSCalculationError : ulong { None, PrecisionLoss, Underflow, Overflow, DivideByZero } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCalendar.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSCalendar", true)] public class NSCalendar : NSObject { private static readonly IntPtr selCalendarIdentifierHandle = Selector.GetHandle("calendarIdentifier"); private static readonly IntPtr selCurrentCalendarHandle = Selector.GetHandle("currentCalendar"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selTimeZoneHandle = Selector.GetHandle("timeZone"); private static readonly IntPtr selSetTimeZone_Handle = Selector.GetHandle("setTimeZone:"); private static readonly IntPtr selFirstWeekdayHandle = Selector.GetHandle("firstWeekday"); private static readonly IntPtr selSetFirstWeekday_Handle = Selector.GetHandle("setFirstWeekday:"); private static readonly IntPtr selMinimumDaysInFirstWeekHandle = Selector.GetHandle("minimumDaysInFirstWeek"); private static readonly IntPtr selSetMinimumDaysInFirstWeek_Handle = Selector.GetHandle("setMinimumDaysInFirstWeek:"); private static readonly IntPtr selInitWithCalendarIdentifier_Handle = Selector.GetHandle("initWithCalendarIdentifier:"); private static readonly IntPtr selComponentsFromDate_Handle = Selector.GetHandle("components:fromDate:"); private static readonly IntPtr selComponentsFromDateToDateOptions_Handle = Selector.GetHandle("components:fromDate:toDate:options:"); private static readonly IntPtr selDateByAddingComponentsToDateOptions_Handle = Selector.GetHandle("dateByAddingComponents:toDate:options:"); private static readonly IntPtr selDateFromComponents_Handle = Selector.GetHandle("dateFromComponents:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCalendar"); private static object __mt_CurrentCalendar_var_static; private object __mt_Locale_var; private object __mt_TimeZone_var; private static NSString _NSGregorianCalendar; private static NSString _NSBuddhistCalendar; private static NSString _NSChineseCalendar; private static NSString _NSHebrewCalendar; private static NSString _NSIslamicCalendar; private static NSString _NSIslamicCivilCalendar; private static NSString _NSJapaneseCalendar; private static NSString _NSRepublicOfChinaCalendar; private static NSString _NSPersianCalendar; private static NSString _NSIndianCalendar; private static NSString _NSISO8601Calendar; public override IntPtr ClassHandle => class_ptr; public virtual string Identifier { [Export("calendarIdentifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCalendarIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalendarIdentifierHandle)); } } public static NSCalendar CurrentCalendar { [Export("currentCalendar")] get { return (NSCalendar)(__mt_CurrentCalendar_var_static = (NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentCalendarHandle))); } } public virtual NSLocale Locale { [Export("locale")] get { return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public virtual NSTimeZone TimeZone { [Export("timeZone")] get { return (NSTimeZone)(__mt_TimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimeZoneHandle))))); } [Export("setTimeZone:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimeZone_Handle, value.Handle); } __mt_TimeZone_var = value; } } public virtual ulong FirstWeekDay { [Export("firstWeekday")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selFirstWeekdayHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFirstWeekdayHandle); } [Export("setFirstWeekday:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFirstWeekday_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFirstWeekday_Handle, value); } } } public virtual ulong MinimumDaysInFirstWeek { [Export("minimumDaysInFirstWeek")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMinimumDaysInFirstWeekHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMinimumDaysInFirstWeekHandle); } [Export("setMinimumDaysInFirstWeek:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMinimumDaysInFirstWeek_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMinimumDaysInFirstWeek_Handle, value); } } } [Field("NSGregorianCalendar", "Foundation")] internal static NSString NSGregorianCalendar { get { if (_NSGregorianCalendar == null) { _NSGregorianCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSGregorianCalendar"); } return _NSGregorianCalendar; } } [Field("NSBuddhistCalendar", "Foundation")] internal static NSString NSBuddhistCalendar { get { if (_NSBuddhistCalendar == null) { _NSBuddhistCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSBuddhistCalendar"); } return _NSBuddhistCalendar; } } [Field("NSChineseCalendar", "Foundation")] internal static NSString NSChineseCalendar { get { if (_NSChineseCalendar == null) { _NSChineseCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSChineseCalendar"); } return _NSChineseCalendar; } } [Field("NSHebrewCalendar", "Foundation")] internal static NSString NSHebrewCalendar { get { if (_NSHebrewCalendar == null) { _NSHebrewCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSHebrewCalendar"); } return _NSHebrewCalendar; } } [Field("NSIslamicCalendar", "Foundation")] internal static NSString NSIslamicCalendar { get { if (_NSIslamicCalendar == null) { _NSIslamicCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSIslamicCalendar"); } return _NSIslamicCalendar; } } [Field("NSIslamicCivilCalendar", "Foundation")] internal static NSString NSIslamicCivilCalendar { get { if (_NSIslamicCivilCalendar == null) { _NSIslamicCivilCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSIslamicCivilCalendar"); } return _NSIslamicCivilCalendar; } } [Field("NSJapaneseCalendar", "Foundation")] internal static NSString NSJapaneseCalendar { get { if (_NSJapaneseCalendar == null) { _NSJapaneseCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSJapaneseCalendar"); } return _NSJapaneseCalendar; } } [Field("NSRepublicOfChinaCalendar", "Foundation")] internal static NSString NSRepublicOfChinaCalendar { get { if (_NSRepublicOfChinaCalendar == null) { _NSRepublicOfChinaCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSRepublicOfChinaCalendar"); } return _NSRepublicOfChinaCalendar; } } [Field("NSPersianCalendar", "Foundation")] internal static NSString NSPersianCalendar { get { if (_NSPersianCalendar == null) { _NSPersianCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSPersianCalendar"); } return _NSPersianCalendar; } } [Field("NSIndianCalendar", "Foundation")] internal static NSString NSIndianCalendar { get { if (_NSIndianCalendar == null) { _NSIndianCalendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSIndianCalendar"); } return _NSIndianCalendar; } } [Field("NSISO8601Calendar", "Foundation")] internal static NSString NSISO8601Calendar { get { if (_NSISO8601Calendar == null) { _NSISO8601Calendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSISO8601Calendar"); } return _NSISO8601Calendar; } } private static NSString GetCalendarIdentifier(NSCalendarType type) { return type switch { NSCalendarType.Gregorian => NSGregorianCalendar, NSCalendarType.Buddhist => NSBuddhistCalendar, NSCalendarType.Chinese => NSChineseCalendar, NSCalendarType.Hebrew => NSHebrewCalendar, NSCalendarType.Islamic => NSIslamicCalendar, NSCalendarType.IslamicCivil => NSIslamicCivilCalendar, NSCalendarType.Japanese => NSJapaneseCalendar, NSCalendarType.RepublicOfChina => NSRepublicOfChinaCalendar, NSCalendarType.Persian => NSPersianCalendar, NSCalendarType.Indian => NSIndianCalendar, NSCalendarType.ISO8601 => NSISO8601Calendar, _ => throw new ArgumentException("Unknown NSCalendarType value"), }; } public NSCalendar(NSCalendarType calendarType) : this(GetCalendarIdentifier(calendarType)) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCalendar(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCalendar(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCalendar(IntPtr handle) : base(handle) { } [Export("initWithCalendarIdentifier:")] public NSCalendar(NSString identifier) : base(NSObjectFlag.Empty) { if (identifier == null) { throw new ArgumentNullException("identifier"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithCalendarIdentifier_Handle, identifier.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithCalendarIdentifier_Handle, identifier.Handle); } } [Export("components:fromDate:")] public virtual NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate) { if (fromDate == null) { throw new ArgumentNullException("fromDate"); } if (IsDirectBinding) { return (NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(base.Handle, selComponentsFromDate_Handle, (ulong)unitFlags, fromDate.Handle)); } return (NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selComponentsFromDate_Handle, (ulong)unitFlags, fromDate.Handle)); } [Export("components:fromDate:toDate:options:")] public virtual NSDateComponents Components(NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSDateComponentsWrappingBehavior opts) { if (fromDate == null) { throw new ArgumentNullException("fromDate"); } if (toDate == null) { throw new ArgumentNullException("toDate"); } if (IsDirectBinding) { return (NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_UInt64(base.Handle, selComponentsFromDateToDateOptions_Handle, (ulong)unitFlags, fromDate.Handle, toDate.Handle, (ulong)opts)); } return (NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_UInt64(base.SuperHandle, selComponentsFromDateToDateOptions_Handle, (ulong)unitFlags, fromDate.Handle, toDate.Handle, (ulong)opts)); } [Export("dateByAddingComponents:toDate:options:")] public virtual NSDate DateByAddingComponents(NSDateComponents comps, NSDate date, NSDateComponentsWrappingBehavior opts) { if (comps == null) { throw new ArgumentNullException("comps"); } if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selDateByAddingComponentsToDateOptions_Handle, comps.Handle, date.Handle, (ulong)opts)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selDateByAddingComponentsToDateOptions_Handle, comps.Handle, date.Handle, (ulong)opts)); } [Export("dateFromComponents:")] public virtual NSDate DateFromComponents(NSDateComponents comps) { if (comps == null) { throw new ArgumentNullException("comps"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDateFromComponents_Handle, comps.Handle)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDateFromComponents_Handle, comps.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locale_var = null; __mt_TimeZone_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCalendarType.cs ================================================ namespace Foundation; public enum NSCalendarType { Gregorian, Buddhist, Chinese, Hebrew, Islamic, IslamicCivil, Japanese, RepublicOfChina, Persian, Indian, ISO8601 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCalendarUnit.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Flags] public enum NSCalendarUnit : ulong { Era = 2uL, Year = 4uL, Month = 8uL, Day = 0x10uL, Hour = 0x20uL, Minute = 0x40uL, Second = 0x80uL, Week = 0x100uL, Weekday = 0x200uL, WeekdayOrdinal = 0x400uL, Quarter = 0x800uL, [Since(5, 0)] WeekOfMonth = 0x1000uL, [Since(5, 0)] WeekOfYear = 0x2000uL, [Since(5, 0)] YearForWeakOfYear = 0x4000uL, [Since(4, 0)] Calendar = 0x100000uL, [Since(4, 0)] TimeZone = 0x200000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCharacterSet.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSCharacterSet", true)] public class NSCharacterSet : NSObject { private static readonly IntPtr selAlphanumericCharacterSetHandle = Selector.GetHandle("alphanumericCharacterSet"); private static readonly IntPtr selCapitalizedLetterCharacterSetHandle = Selector.GetHandle("capitalizedLetterCharacterSet"); private static readonly IntPtr selControlCharacterSetHandle = Selector.GetHandle("controlCharacterSet"); private static readonly IntPtr selDecimalDigitCharacterSetHandle = Selector.GetHandle("decimalDigitCharacterSet"); private static readonly IntPtr selDecomposableCharacterSetHandle = Selector.GetHandle("decomposableCharacterSet"); private static readonly IntPtr selIllegalCharacterSetHandle = Selector.GetHandle("illegalCharacterSet"); private static readonly IntPtr selLetterCharacterSetHandle = Selector.GetHandle("letterCharacterSet"); private static readonly IntPtr selLowercaseLetterCharacterSetHandle = Selector.GetHandle("lowercaseLetterCharacterSet"); private static readonly IntPtr selNewlineCharacterSetHandle = Selector.GetHandle("newlineCharacterSet"); private static readonly IntPtr selNonBaseCharacterSetHandle = Selector.GetHandle("nonBaseCharacterSet"); private static readonly IntPtr selPunctuationCharacterSetHandle = Selector.GetHandle("punctuationCharacterSet"); private static readonly IntPtr selSymbolCharacterSetHandle = Selector.GetHandle("symbolCharacterSet"); private static readonly IntPtr selUppercaseLetterCharacterSetHandle = Selector.GetHandle("uppercaseLetterCharacterSet"); private static readonly IntPtr selWhitespaceAndNewlineCharacterSetHandle = Selector.GetHandle("whitespaceAndNewlineCharacterSet"); private static readonly IntPtr selWhitespaceCharacterSetHandle = Selector.GetHandle("whitespaceCharacterSet"); private static readonly IntPtr selInvertedSetHandle = Selector.GetHandle("invertedSet"); private static readonly IntPtr selCharacterSetWithBitmapRepresentation_Handle = Selector.GetHandle("characterSetWithBitmapRepresentation:"); private static readonly IntPtr selCharacterSetWithCharactersInString_Handle = Selector.GetHandle("characterSetWithCharactersInString:"); private static readonly IntPtr selCharacterSetWithContentsOfFile_Handle = Selector.GetHandle("characterSetWithContentsOfFile:"); private static readonly IntPtr selCharacterSetWithRange_Handle = Selector.GetHandle("characterSetWithRange:"); private static readonly IntPtr selBitmapRepresentationHandle = Selector.GetHandle("bitmapRepresentation"); private static readonly IntPtr selCharacterIsMember_Handle = Selector.GetHandle("characterIsMember:"); private static readonly IntPtr selHasMemberInPlane_Handle = Selector.GetHandle("hasMemberInPlane:"); private static readonly IntPtr selIsSupersetOfSet_Handle = Selector.GetHandle("isSupersetOfSet:"); private static readonly IntPtr selLongCharacterIsMember_Handle = Selector.GetHandle("longCharacterIsMember:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCharacterSet"); private static object __mt_Alphanumerics_var_static; private static object __mt_Capitalized_var_static; private static object __mt_Controls_var_static; private static object __mt_DecimalDigits_var_static; private static object __mt_Decomposables_var_static; private static object __mt_Illegals_var_static; private static object __mt_Letters_var_static; private static object __mt_LowercaseLetters_var_static; private static object __mt_Newlines_var_static; private static object __mt_Marks_var_static; private static object __mt_Punctuation_var_static; private static object __mt_Symbols_var_static; private static object __mt_UppercaseLetters_var_static; private static object __mt_WhitespaceAndNewlines_var_static; private static object __mt_Whitespaces_var_static; private object __mt_InvertedSet_var; public override IntPtr ClassHandle => class_ptr; public static NSCharacterSet Alphanumerics { [Export("alphanumericCharacterSet")] get { return (NSCharacterSet)(__mt_Alphanumerics_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAlphanumericCharacterSetHandle))); } } public static NSCharacterSet Capitalized { [Export("capitalizedLetterCharacterSet")] get { return (NSCharacterSet)(__mt_Capitalized_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCapitalizedLetterCharacterSetHandle))); } } public static NSCharacterSet Controls { [Export("controlCharacterSet")] get { return (NSCharacterSet)(__mt_Controls_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selControlCharacterSetHandle))); } } public static NSCharacterSet DecimalDigits { [Export("decimalDigitCharacterSet")] get { return (NSCharacterSet)(__mt_DecimalDigits_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDecimalDigitCharacterSetHandle))); } } public static NSCharacterSet Decomposables { [Export("decomposableCharacterSet")] get { return (NSCharacterSet)(__mt_Decomposables_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDecomposableCharacterSetHandle))); } } public static NSCharacterSet Illegals { [Export("illegalCharacterSet")] get { return (NSCharacterSet)(__mt_Illegals_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selIllegalCharacterSetHandle))); } } public static NSCharacterSet Letters { [Export("letterCharacterSet")] get { return (NSCharacterSet)(__mt_Letters_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLetterCharacterSetHandle))); } } public static NSCharacterSet LowercaseLetters { [Export("lowercaseLetterCharacterSet")] get { return (NSCharacterSet)(__mt_LowercaseLetters_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLowercaseLetterCharacterSetHandle))); } } public static NSCharacterSet Newlines { [Export("newlineCharacterSet")] get { return (NSCharacterSet)(__mt_Newlines_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selNewlineCharacterSetHandle))); } } public static NSCharacterSet Marks { [Export("nonBaseCharacterSet")] get { return (NSCharacterSet)(__mt_Marks_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selNonBaseCharacterSetHandle))); } } public static NSCharacterSet Punctuation { [Export("punctuationCharacterSet")] get { return (NSCharacterSet)(__mt_Punctuation_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPunctuationCharacterSetHandle))); } } public static NSCharacterSet Symbols { [Export("symbolCharacterSet")] get { return (NSCharacterSet)(__mt_Symbols_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSymbolCharacterSetHandle))); } } public static NSCharacterSet UppercaseLetters { [Export("uppercaseLetterCharacterSet")] get { return (NSCharacterSet)(__mt_UppercaseLetters_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selUppercaseLetterCharacterSetHandle))); } } public static NSCharacterSet WhitespaceAndNewlines { [Export("whitespaceAndNewlineCharacterSet")] get { return (NSCharacterSet)(__mt_WhitespaceAndNewlines_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWhitespaceAndNewlineCharacterSetHandle))); } } public static NSCharacterSet Whitespaces { [Export("whitespaceCharacterSet")] get { return (NSCharacterSet)(__mt_Whitespaces_var_static = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selWhitespaceCharacterSetHandle))); } } public virtual NSCharacterSet InvertedSet { [Export("invertedSet")] get { return (NSCharacterSet)(__mt_InvertedSet_var = ((!IsDirectBinding) ? ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInvertedSetHandle))) : ((NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInvertedSetHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCharacterSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCharacterSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCharacterSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCharacterSet(IntPtr handle) : base(handle) { } [Export("characterSetWithBitmapRepresentation:")] public static NSCharacterSet FromBitmap(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCharacterSetWithBitmapRepresentation_Handle, data.Handle)); } [Export("characterSetWithCharactersInString:")] public static NSCharacterSet FromString(string aString) { if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); NSCharacterSet result = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCharacterSetWithCharactersInString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("characterSetWithContentsOfFile:")] public static NSCharacterSet FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSCharacterSet result = (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCharacterSetWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("characterSetWithRange:")] public static NSCharacterSet FromRange(NSRange aRange) { return (NSCharacterSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(class_ptr, selCharacterSetWithRange_Handle, aRange)); } [Export("bitmapRepresentation")] public virtual NSData GetBitmapRepresentation() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBitmapRepresentationHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBitmapRepresentationHandle)); } [Export("characterIsMember:")] public virtual bool Contains(char aCharacter) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_Char(base.Handle, selCharacterIsMember_Handle, aCharacter); } return Messaging.bool_objc_msgSendSuper_Char(base.SuperHandle, selCharacterIsMember_Handle, aCharacter); } [Export("hasMemberInPlane:")] public virtual bool HasMemberInPlane(byte thePlane) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_byte(base.Handle, selHasMemberInPlane_Handle, thePlane); } return Messaging.bool_objc_msgSendSuper_byte(base.SuperHandle, selHasMemberInPlane_Handle, thePlane); } [Export("isSupersetOfSet:")] public virtual bool IsSupersetOf(NSCharacterSet theOtherSet) { if (theOtherSet == null) { throw new ArgumentNullException("theOtherSet"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsSupersetOfSet_Handle, theOtherSet.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsSupersetOfSet_Handle, theOtherSet.Handle); } [Export("longCharacterIsMember:")] public virtual bool Contains(uint theLongChar) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_UInt32(base.Handle, selLongCharacterIsMember_Handle, theLongChar); } return Messaging.bool_objc_msgSendSuper_UInt32(base.SuperHandle, selLongCharacterIsMember_Handle, theLongChar); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InvertedSet_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCoder.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSCoder", true)] public class NSCoder : NSObject { private static readonly IntPtr selAllowedClassesHandle = Selector.GetHandle("allowedClasses"); private static readonly IntPtr selEncodeObject_Handle = Selector.GetHandle("encodeObject:"); private static readonly IntPtr selEncodeRootObject_Handle = Selector.GetHandle("encodeRootObject:"); private static readonly IntPtr selDecodeObjectHandle = Selector.GetHandle("decodeObject"); private static readonly IntPtr selEncodeConditionalObjectForKey_Handle = Selector.GetHandle("encodeConditionalObject:forKey:"); private static readonly IntPtr selEncodeObjectForKey_Handle = Selector.GetHandle("encodeObject:forKey:"); private static readonly IntPtr selEncodeBoolForKey_Handle = Selector.GetHandle("encodeBool:forKey:"); private static readonly IntPtr selEncodeDoubleForKey_Handle = Selector.GetHandle("encodeDouble:forKey:"); private static readonly IntPtr selEncodeFloatForKey_Handle = Selector.GetHandle("encodeFloat:forKey:"); private static readonly IntPtr selEncodeInt32ForKey_Handle = Selector.GetHandle("encodeInt32:forKey:"); private static readonly IntPtr selEncodeInt64ForKey_Handle = Selector.GetHandle("encodeInt64:forKey:"); private static readonly IntPtr selEncodeBytesLengthForKey_Handle = Selector.GetHandle("encodeBytes:length:forKey:"); private static readonly IntPtr selContainsValueForKey_Handle = Selector.GetHandle("containsValueForKey:"); private static readonly IntPtr selDecodeBoolForKey_Handle = Selector.GetHandle("decodeBoolForKey:"); private static readonly IntPtr selDecodeDoubleForKey_Handle = Selector.GetHandle("decodeDoubleForKey:"); private static readonly IntPtr selDecodeFloatForKey_Handle = Selector.GetHandle("decodeFloatForKey:"); private static readonly IntPtr selDecodeInt32ForKey_Handle = Selector.GetHandle("decodeInt32ForKey:"); private static readonly IntPtr selDecodeInt64ForKey_Handle = Selector.GetHandle("decodeInt64ForKey:"); private static readonly IntPtr selDecodeObjectForKey_Handle = Selector.GetHandle("decodeObjectForKey:"); private static readonly IntPtr selDecodeBytesForKeyReturnedLength_Handle = Selector.GetHandle("decodeBytesForKey:returnedLength:"); private static readonly IntPtr selRequiresSecureCodingHandle = Selector.GetHandle("requiresSecureCoding"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCoder"); private object __mt_AllowedClasses_var; public override IntPtr ClassHandle => class_ptr; [Since(6, 0)] public virtual NSSet AllowedClasses { [Export("allowedClasses")] get { return (NSSet)(__mt_AllowedClasses_var = ((!IsDirectBinding) ? ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllowedClassesHandle))) : ((NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAllowedClassesHandle))))); } } public unsafe void Encode(byte[] buffer, string key) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (key == null) { throw new ArgumentNullException("key"); } fixed (byte* ptr = &buffer[0]) { EncodeBlock((IntPtr)ptr, buffer.Length, key); } } public unsafe void Encode(byte[] buffer, int offset, int count, string key) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (key == null) { throw new ArgumentNullException("key"); } if (offset < 0) { throw new ArgumentException("offset < 0"); } if (count < 0) { throw new ArgumentException("count < 0"); } if (offset > buffer.Length - count) { throw new ArgumentException("Reading would overrun buffer"); } fixed (byte* ptr = &buffer[0]) { EncodeBlock((IntPtr)ptr, buffer.Length, key); } } public unsafe byte[] DecodeBytes(string key) { int num = 0; int* ptr = # IntPtr intPtr = DecodeBytes(key, (IntPtr)ptr); if (intPtr == IntPtr.Zero) { return null; } byte[] array = new byte[num]; Marshal.Copy(intPtr, array, 0, num); return array; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSCoder() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCoder(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCoder(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCoder(IntPtr handle) : base(handle) { } [Export("encodeObject:")] public virtual void Encode(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEncodeObject_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEncodeObject_Handle, obj.Handle); } } [Export("encodeRootObject:")] public virtual void EncodeRoot(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEncodeRootObject_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEncodeRootObject_Handle, obj.Handle); } } [Export("decodeObject")] public virtual NSObject DecodeObject() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDecodeObjectHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDecodeObjectHandle)); } [Export("encodeConditionalObject:forKey:")] public virtual void EncodeConditionalObject(NSObject val, string key) { if (val == null) { throw new ArgumentNullException("val"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selEncodeConditionalObjectForKey_Handle, val.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEncodeConditionalObjectForKey_Handle, val.Handle, arg); } NSString.ReleaseNative(arg); } [Export("encodeObject:forKey:")] public virtual void Encode(NSObject val, string key) { if (val == null) { throw new ArgumentNullException("val"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selEncodeObjectForKey_Handle, val.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEncodeObjectForKey_Handle, val.Handle, arg); } NSString.ReleaseNative(arg); } [Export("encodeBool:forKey:")] public virtual void Encode(bool val, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_IntPtr(base.Handle, selEncodeBoolForKey_Handle, val, arg); } else { Messaging.void_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selEncodeBoolForKey_Handle, val, arg); } NSString.ReleaseNative(arg); } [Export("encodeDouble:forKey:")] public virtual void Encode(double val, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_IntPtr(base.Handle, selEncodeDoubleForKey_Handle, val, arg); } else { Messaging.void_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selEncodeDoubleForKey_Handle, val, arg); } NSString.ReleaseNative(arg); } [Export("encodeFloat:forKey:")] public virtual void Encode(float val, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_IntPtr(base.Handle, selEncodeFloatForKey_Handle, val, arg); } else { Messaging.void_objc_msgSendSuper_float_IntPtr(base.SuperHandle, selEncodeFloatForKey_Handle, val, arg); } NSString.ReleaseNative(arg); } [Export("encodeInt32:forKey:")] public virtual void Encode(int val, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr(base.Handle, selEncodeInt32ForKey_Handle, val, arg); } else { Messaging.void_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selEncodeInt32ForKey_Handle, val, arg); } NSString.ReleaseNative(arg); } [Export("encodeInt64:forKey:")] public virtual void Encode(long val, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_IntPtr(base.Handle, selEncodeInt64ForKey_Handle, val, arg); } else { Messaging.void_objc_msgSendSuper_Int64_IntPtr(base.SuperHandle, selEncodeInt64ForKey_Handle, val, arg); } NSString.ReleaseNative(arg); } [Export("encodeBytes:length:forKey:")] public virtual void EncodeBlock(IntPtr bytes, int length, string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int_IntPtr(base.Handle, selEncodeBytesLengthForKey_Handle, bytes, length, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr(base.SuperHandle, selEncodeBytesLengthForKey_Handle, bytes, length, arg); } NSString.ReleaseNative(arg); } [Export("containsValueForKey:")] public virtual bool ContainsKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selContainsValueForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selContainsValueForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeBoolForKey:")] public virtual bool DecodeBool(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeBoolForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selDecodeBoolForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeDoubleForKey:")] public virtual double DecodeDouble(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); double result = ((!IsDirectBinding) ? Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeDoubleForKey_Handle, arg) : Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDecodeDoubleForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeFloatForKey:")] public virtual float DecodeFloat(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); float result = ((!IsDirectBinding) ? Messaging.float_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeFloatForKey_Handle, arg) : Messaging.float_objc_msgSend_IntPtr(base.Handle, selDecodeFloatForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeInt32ForKey:")] public virtual int DecodeInt(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); int result = ((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeInt32ForKey_Handle, arg) : Messaging.int_objc_msgSend_IntPtr(base.Handle, selDecodeInt32ForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeInt64ForKey:")] public virtual long DecodeLong(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeInt64ForKey_Handle, arg) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selDecodeInt64ForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("decodeObjectForKey:")] public virtual NSObject DecodeObject(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecodeObjectForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecodeObjectForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("decodeBytesForKey:returnedLength:")] internal virtual IntPtr DecodeBytes(string key, IntPtr length_ptr) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDecodeBytesForKeyReturnedLength_Handle, arg, length_ptr) : Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDecodeBytesForKeyReturnedLength_Handle, arg, length_ptr)); NSString.ReleaseNative(arg); return result; } [Export("requiresSecureCoding")] public virtual bool RequiresSecureCoding() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRequiresSecureCodingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRequiresSecureCodingHandle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AllowedClasses_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSComparator.cs ================================================ namespace Foundation; public delegate long NSComparator(NSObject obj1, NSObject obj2); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSComparisonPredicate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSComparisonPredicate", true)] public class NSComparisonPredicate : NSPredicate { private static readonly IntPtr selPredicateOperatorTypeHandle = Selector.GetHandle("predicateOperatorType"); private static readonly IntPtr selComparisonPredicateModifierHandle = Selector.GetHandle("comparisonPredicateModifier"); private static readonly IntPtr selLeftExpressionHandle = Selector.GetHandle("leftExpression"); private static readonly IntPtr selRightExpressionHandle = Selector.GetHandle("rightExpression"); private static readonly IntPtr selCustomSelectorHandle = Selector.GetHandle("customSelector"); private static readonly IntPtr selOptionsHandle = Selector.GetHandle("options"); private static readonly IntPtr selPredicateWithLeftExpressionRightExpressionModifierTypeOptions_Handle = Selector.GetHandle("predicateWithLeftExpression:rightExpression:modifier:type:options:"); private static readonly IntPtr selPredicateWithLeftExpressionRightExpressionCustomSelector_Handle = Selector.GetHandle("predicateWithLeftExpression:rightExpression:customSelector:"); private static readonly IntPtr selInitWithLeftExpressionRightExpressionModifierTypeOptions_Handle = Selector.GetHandle("initWithLeftExpression:rightExpression:modifier:type:options:"); private static readonly IntPtr selInitWithLeftExpressionRightExpressionCustomSelector_Handle = Selector.GetHandle("initWithLeftExpression:rightExpression:customSelector:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSComparisonPredicate"); private object __mt_LeftExpression_var; private object __mt_RightExpression_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPredicateOperatorType PredicateOperatorType { [Export("predicateOperatorType")] get { if (IsDirectBinding) { return (NSPredicateOperatorType)Messaging.UInt64_objc_msgSend(base.Handle, selPredicateOperatorTypeHandle); } return (NSPredicateOperatorType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPredicateOperatorTypeHandle); } } public virtual NSComparisonPredicateModifier ComparisonPredicateModifier { [Export("comparisonPredicateModifier")] get { if (IsDirectBinding) { return (NSComparisonPredicateModifier)Messaging.UInt64_objc_msgSend(base.Handle, selComparisonPredicateModifierHandle); } return (NSComparisonPredicateModifier)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selComparisonPredicateModifierHandle); } } public virtual NSExpression LeftExpression { [Export("leftExpression")] get { return (NSExpression)(__mt_LeftExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLeftExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLeftExpressionHandle))))); } } public virtual NSExpression RightExpression { [Export("rightExpression")] get { return (NSExpression)(__mt_RightExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRightExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRightExpressionHandle))))); } } public virtual Selector CustomSelector { [Export("customSelector")] get { if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCustomSelectorHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCustomSelectorHandle)); } } public virtual NSComparisonPredicateOptions Options { [Export("options")] get { if (IsDirectBinding) { return (NSComparisonPredicateOptions)Messaging.UInt64_objc_msgSend(base.Handle, selOptionsHandle); } return (NSComparisonPredicateOptions)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOptionsHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSComparisonPredicate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSComparisonPredicate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComparisonPredicate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSComparisonPredicate(IntPtr handle) : base(handle) { } [Export("predicateWithLeftExpression:rightExpression:modifier:type:options:")] public static NSPredicate Create(NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier comparisonModifier, NSPredicateOperatorType operatorType, NSComparisonPredicateOptions comparisonOptions) { if (leftExpression == null) { throw new ArgumentNullException("leftExpression"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_UInt64_UInt64(class_ptr, selPredicateWithLeftExpressionRightExpressionModifierTypeOptions_Handle, leftExpression.Handle, rightExpression.Handle, (ulong)comparisonModifier, (ulong)operatorType, (ulong)comparisonOptions)); } [Export("predicateWithLeftExpression:rightExpression:customSelector:")] public static NSPredicate FromSelector(NSExpression leftExpression, NSExpression rightExpression, Selector selector) { if (leftExpression == null) { throw new ArgumentNullException("leftExpression"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } if (selector == null) { throw new ArgumentNullException("selector"); } return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selPredicateWithLeftExpressionRightExpressionCustomSelector_Handle, leftExpression.Handle, rightExpression.Handle, selector.Handle)); } [Export("initWithLeftExpression:rightExpression:modifier:type:options:")] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier comparisonModifier, NSPredicateOperatorType operatorType, NSComparisonPredicateOptions comparisonOptions) : base(NSObjectFlag.Empty) { if (leftExpression == null) { throw new ArgumentNullException("leftExpression"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_UInt64_UInt64(base.Handle, selInitWithLeftExpressionRightExpressionModifierTypeOptions_Handle, leftExpression.Handle, rightExpression.Handle, (ulong)comparisonModifier, (ulong)operatorType, (ulong)comparisonOptions); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_UInt64_UInt64(base.SuperHandle, selInitWithLeftExpressionRightExpressionModifierTypeOptions_Handle, leftExpression.Handle, rightExpression.Handle, (ulong)comparisonModifier, (ulong)operatorType, (ulong)comparisonOptions); } } [Export("initWithLeftExpression:rightExpression:customSelector:")] public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, Selector selector) : base(NSObjectFlag.Empty) { if (leftExpression == null) { throw new ArgumentNullException("leftExpression"); } if (rightExpression == null) { throw new ArgumentNullException("rightExpression"); } if (selector == null) { throw new ArgumentNullException("selector"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithLeftExpressionRightExpressionCustomSelector_Handle, leftExpression.Handle, rightExpression.Handle, selector.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithLeftExpressionRightExpressionCustomSelector_Handle, leftExpression.Handle, rightExpression.Handle, selector.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LeftExpression_var = null; __mt_RightExpression_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSComparisonPredicateModifier.cs ================================================ namespace Foundation; public enum NSComparisonPredicateModifier : ulong { Direct, All, Any } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSComparisonPredicateOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSComparisonPredicateOptions : ulong { None = 0uL, CaseInsensitive = 1uL, DiacriticInsensitive = 2uL, Normalized = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSComparisonResult.cs ================================================ namespace Foundation; public enum NSComparisonResult : long { Ascending = -1L, Same, Descending } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCompoundPredicate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSCompoundPredicate", true)] public class NSCompoundPredicate : NSPredicate { private static readonly IntPtr selCompoundPredicateTypeHandle = Selector.GetHandle("compoundPredicateType"); private static readonly IntPtr selSubpredicatesHandle = Selector.GetHandle("subpredicates"); private static readonly IntPtr selInitWithTypeSubpredicates_Handle = Selector.GetHandle("initWithType:subpredicates:"); private static readonly IntPtr selAndPredicateWithSubpredicates_Handle = Selector.GetHandle("andPredicateWithSubpredicates:"); private static readonly IntPtr selOrPredicateWithSubpredicates_Handle = Selector.GetHandle("orPredicateWithSubpredicates:"); private static readonly IntPtr selNotPredicateWithSubpredicate_Handle = Selector.GetHandle("notPredicateWithSubpredicate:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSCompoundPredicate"); private object __mt_Subpredicates_var; public override IntPtr ClassHandle => class_ptr; public virtual NSCompoundPredicateType Type { [Export("compoundPredicateType")] get { if (IsDirectBinding) { return (NSCompoundPredicateType)Messaging.UInt64_objc_msgSend(base.Handle, selCompoundPredicateTypeHandle); } return (NSCompoundPredicateType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCompoundPredicateTypeHandle); } } public virtual NSPredicate[] Subpredicates { [Export("subpredicates")] get { return (NSPredicate[])(__mt_Subpredicates_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubpredicatesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubpredicatesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSCompoundPredicate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCompoundPredicate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSCompoundPredicate(IntPtr handle) : base(handle) { } [Export("initWithType:subpredicates:")] public NSCompoundPredicate(NSCompoundPredicateType type, NSPredicate[] subpredicates) : base(NSObjectFlag.Empty) { if (subpredicates == null) { throw new ArgumentNullException("subpredicates"); } NSArray nSArray = NSArray.FromNSObjects(subpredicates); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(base.Handle, selInitWithTypeSubpredicates_Handle, (ulong)type, nSArray.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selInitWithTypeSubpredicates_Handle, (ulong)type, nSArray.Handle); } nSArray.Dispose(); } [Export("andPredicateWithSubpredicates:")] public static NSPredicate CreateAndPredicate(NSPredicate[] subpredicates) { if (subpredicates == null) { throw new ArgumentNullException("subpredicates"); } NSArray nSArray = NSArray.FromNSObjects(subpredicates); NSPredicate result = (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAndPredicateWithSubpredicates_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("orPredicateWithSubpredicates:")] public static NSPredicate CreateOrPredicate(NSPredicate[] subpredicates) { if (subpredicates == null) { throw new ArgumentNullException("subpredicates"); } NSArray nSArray = NSArray.FromNSObjects(subpredicates); NSPredicate result = (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selOrPredicateWithSubpredicates_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("notPredicateWithSubpredicate:")] public static NSPredicate CreateNotPredicate(NSPredicate predicate) { if (predicate == null) { throw new ArgumentNullException("predicate"); } return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selNotPredicateWithSubpredicate_Handle, predicate.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Subpredicates_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSCompoundPredicateType.cs ================================================ namespace Foundation; public enum NSCompoundPredicateType : ulong { Not, And, Or } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSConnection.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSConnection", true)] public class NSConnection : NSObject { private static readonly IntPtr selRootObjectHandle = Selector.GetHandle("rootObject"); private static readonly IntPtr selSetRootObject_Handle = Selector.GetHandle("setRootObject:"); private static readonly IntPtr selRemoteObjectsHandle = Selector.GetHandle("remoteObjects"); private static readonly IntPtr selLocalObjectsHandle = Selector.GetHandle("localObjects"); private static readonly IntPtr selCurrentConversationHandle = Selector.GetHandle("currentConversation"); private static readonly IntPtr selAllConnectionsHandle = Selector.GetHandle("allConnections"); private static readonly IntPtr selRequestTimeoutHandle = Selector.GetHandle("requestTimeout"); private static readonly IntPtr selSetRequestTimeout_Handle = Selector.GetHandle("setRequestTimeout:"); private static readonly IntPtr selReplyTimeoutHandle = Selector.GetHandle("replyTimeout"); private static readonly IntPtr selSetReplyTimeout_Handle = Selector.GetHandle("setReplyTimeout:"); private static readonly IntPtr selIndependentConversationQueueingHandle = Selector.GetHandle("independentConversationQueueing"); private static readonly IntPtr selSetIndependentConversationQueueing_Handle = Selector.GetHandle("setIndependentConversationQueueing:"); private static readonly IntPtr selRequestModesHandle = Selector.GetHandle("requestModes"); private static readonly IntPtr selIsValidHandle = Selector.GetHandle("isValid"); private static readonly IntPtr selReceivePortHandle = Selector.GetHandle("receivePort"); private static readonly IntPtr selSendPortHandle = Selector.GetHandle("sendPort"); private static readonly IntPtr selStatisticsHandle = Selector.GetHandle("statistics"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selConnectionWithReceivePortSendPort_Handle = Selector.GetHandle("connectionWithReceivePort:sendPort:"); private static readonly IntPtr selRunInNewThreadHandle = Selector.GetHandle("runInNewThread"); private static readonly IntPtr selAddRunLoop_Handle = Selector.GetHandle("addRunLoop:"); private static readonly IntPtr selRemoveRunLoop_Handle = Selector.GetHandle("removeRunLoop:"); private static readonly IntPtr selServiceConnectionWithNameRootObjectUsingNameServer_Handle = Selector.GetHandle("serviceConnectionWithName:rootObject:usingNameServer:"); private static readonly IntPtr selServiceConnectionWithNameRootObject_Handle = Selector.GetHandle("serviceConnectionWithName:rootObject:"); private static readonly IntPtr selRegisterName_Handle = Selector.GetHandle("registerName:"); private static readonly IntPtr selRegisterNameWithNameServer_Handle = Selector.GetHandle("registerName:withNameServer:"); private static readonly IntPtr selConnectionWithRegisteredNameHost_Handle = Selector.GetHandle("connectionWithRegisteredName:host:"); private static readonly IntPtr selConnectionWithRegisteredNameHostUsingNameServer_Handle = Selector.GetHandle("connectionWithRegisteredName:host:usingNameServer:"); private static readonly IntPtr selRootProxyHandle = Selector.GetHandle("rootProxy"); private static readonly IntPtr selRootProxyForConnectionWithRegisteredNameHost_Handle = Selector.GetHandle("rootProxyForConnectionWithRegisteredName:host:"); private static readonly IntPtr selRootProxyForConnectionWithRegisteredNameHostUsingNameServer_Handle = Selector.GetHandle("rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); private static readonly IntPtr selAddRequestMode_Handle = Selector.GetHandle("addRequestMode:"); private static readonly IntPtr selRemoveRequestMode_Handle = Selector.GetHandle("removeRequestMode:"); private static readonly IntPtr selInvalidateHandle = Selector.GetHandle("invalidate"); private static readonly IntPtr selDispatchWithComponents_Handle = Selector.GetHandle("dispatchWithComponents:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSConnection"); private object __mt_RootObject_var; private object __mt_RemoteObjects_var; private object __mt_LocalObjects_var; private static object __mt_CurrentConversation_var_static; private static object __mt_AllConnections_var_static; private object __mt_RequestModes_var; private object __mt_ReceivePort_var; private object __mt_SendPort_var; private object __mt_Statistics_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject RootObject { [Export("rootObject")] get { return (NSObject)(__mt_RootObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRootObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRootObjectHandle)))); } [Export("setRootObject:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRootObject_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRootObject_Handle, value.Handle); } __mt_RootObject_var = value; } } public virtual NSObject[] RemoteObjects { [Export("remoteObjects")] get { return (NSObject[])(__mt_RemoteObjects_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRemoteObjectsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRemoteObjectsHandle)))); } } public virtual NSObject[] LocalObjects { [Export("localObjects")] get { return (NSObject[])(__mt_LocalObjects_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalObjectsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalObjectsHandle)))); } } public static NSObject CurrentConversation { [Export("currentConversation")] get { return (NSObject)(__mt_CurrentConversation_var_static = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentConversationHandle))); } } public static NSConnection[] AllConnections { [Export("allConnections")] get { return (NSConnection[])(__mt_AllConnections_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAllConnectionsHandle))); } } public virtual double RequestTimeout { [Export("requestTimeout")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRequestTimeoutHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRequestTimeoutHandle); } [Export("setRequestTimeout:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRequestTimeout_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRequestTimeout_Handle, value); } } } public virtual double ReplyTimeout { [Export("replyTimeout")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selReplyTimeoutHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selReplyTimeoutHandle); } [Export("setReplyTimeout:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetReplyTimeout_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetReplyTimeout_Handle, value); } } } public virtual bool IndependentConversationQueueing { [Export("independentConversationQueueing")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIndependentConversationQueueingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIndependentConversationQueueingHandle); } [Export("setIndependentConversationQueueing:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndependentConversationQueueing_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndependentConversationQueueing_Handle, value); } } } public virtual NSString[] RequestModes { [Export("requestModes")] get { return (NSString[])(__mt_RequestModes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRequestModesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRequestModesHandle)))); } } public virtual bool IsValid { [Export("isValid")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsValidHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsValidHandle); } } public virtual NSPort ReceivePort { [Export("receivePort")] get { return (NSPort)(__mt_ReceivePort_var = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReceivePortHandle))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReceivePortHandle))))); } } public virtual NSPort SendPort { [Export("sendPort")] get { return (NSPort)(__mt_SendPort_var = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSendPortHandle))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSendPortHandle))))); } } public virtual NSDictionary Statistics { [Export("statistics")] get { return (NSDictionary)(__mt_Statistics_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStatisticsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStatisticsHandle))))); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSConnectionDelegate Delegate { get { return WeakDelegate as NSConnectionDelegate; } set { WeakDelegate = value; } } public TProxy GetRootProxy() where TProxy : NSObject { return GetRootProxy(_GetRootProxy()); } public static TProxy GetRootProxy(string name, string hostName) where TProxy : NSObject { return GetRootProxy(_GetRootProxy(name, hostName)); } public static TProxy GetRootProxy(string name, string hostName, NSPortNameServer server) where TProxy : NSObject { return GetRootProxy(_GetRootProxy(name, hostName, server)); } private static TProxy GetRootProxy(IntPtr handle) where TProxy : NSObject { TProxy val = Runtime.TryGetNSObject(handle) as TProxy; if (val == null) { val = (TProxy)Activator.CreateInstance(typeof(TProxy), handle); } return val; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSConnection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSConnection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSConnection(IntPtr handle) : base(handle) { } [Export("connectionWithReceivePort:sendPort:")] public static NSConnection Create(NSPort receivePort, NSPort sendPort) { return (NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selConnectionWithReceivePortSendPort_Handle, receivePort?.Handle ?? IntPtr.Zero, sendPort?.Handle ?? IntPtr.Zero)); } [Export("runInNewThread")] public virtual void RunInNewThread() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRunInNewThreadHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRunInNewThreadHandle); } } [Export("addRunLoop:")] public virtual void AddRunLoop(NSRunLoop runLoop) { if (runLoop == null) { throw new ArgumentNullException("runLoop"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRunLoop_Handle, runLoop.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRunLoop_Handle, runLoop.Handle); } } [Export("removeRunLoop:")] public virtual void RemoveRunLoop(NSRunLoop runLoop) { if (runLoop == null) { throw new ArgumentNullException("runLoop"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveRunLoop_Handle, runLoop.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveRunLoop_Handle, runLoop.Handle); } } [Export("serviceConnectionWithName:rootObject:usingNameServer:")] public static NSConnection CreateService(string name, NSObject root, NSPortNameServer server) { if (name == null) { throw new ArgumentNullException("name"); } if (root == null) { throw new ArgumentNullException("root"); } if (server == null) { throw new ArgumentNullException("server"); } IntPtr arg = NSString.CreateNative(name); NSConnection result = (NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selServiceConnectionWithNameRootObjectUsingNameServer_Handle, arg, root.Handle, server.Handle)); NSString.ReleaseNative(arg); return result; } [Export("serviceConnectionWithName:rootObject:")] public static NSConnection CreateService(string name, NSObject root) { if (name == null) { throw new ArgumentNullException("name"); } if (root == null) { throw new ArgumentNullException("root"); } IntPtr arg = NSString.CreateNative(name); NSConnection result = (NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selServiceConnectionWithNameRootObject_Handle, arg, root.Handle)); NSString.ReleaseNative(arg); return result; } [Export("registerName:")] public virtual bool RegisterName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRegisterName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("registerName:withNameServer:")] public virtual bool RegisterName(string name, NSPortNameServer server) { if (name == null) { throw new ArgumentNullException("name"); } if (server == null) { throw new ArgumentNullException("server"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRegisterNameWithNameServer_Handle, arg, server.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRegisterNameWithNameServer_Handle, arg, server.Handle)); NSString.ReleaseNative(arg); return result; } [Export("connectionWithRegisteredName:host:")] public static NSConnection LookupService(string name, string hostName) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(hostName); NSConnection result = (NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selConnectionWithRegisteredNameHost_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("connectionWithRegisteredName:host:usingNameServer:")] public static NSConnection LookupService(string name, string hostName, NSPortNameServer server) { if (name == null) { throw new ArgumentNullException("name"); } if (server == null) { throw new ArgumentNullException("server"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(hostName); NSConnection result = (NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selConnectionWithRegisteredNameHostUsingNameServer_Handle, arg, arg2, server.Handle)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("rootProxy")] internal virtual IntPtr _GetRootProxy() { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selRootProxyHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRootProxyHandle); } [Export("rootProxyForConnectionWithRegisteredName:host:")] internal static IntPtr _GetRootProxy(string name, string hostName) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(hostName); IntPtr result = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selRootProxyForConnectionWithRegisteredNameHost_Handle, arg, arg2); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("rootProxyForConnectionWithRegisteredName:host:usingNameServer:")] internal static IntPtr _GetRootProxy(string name, string hostName, NSPortNameServer server) { if (name == null) { throw new ArgumentNullException("name"); } if (server == null) { throw new ArgumentNullException("server"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(hostName); IntPtr result = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selRootProxyForConnectionWithRegisteredNameHostUsingNameServer_Handle, arg, arg2, server.Handle); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("addRequestMode:")] public virtual void AddRequestMode(NSString runLoopMode) { if (runLoopMode == null) { throw new ArgumentNullException("runLoopMode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddRequestMode_Handle, runLoopMode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddRequestMode_Handle, runLoopMode.Handle); } } [Export("removeRequestMode:")] public virtual void RemoveRequestMode(NSString runLoopMode) { if (runLoopMode == null) { throw new ArgumentNullException("runLoopMode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveRequestMode_Handle, runLoopMode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveRequestMode_Handle, runLoopMode.Handle); } } [Export("invalidate")] public virtual void Invalidate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateHandle); } } [Export("dispatchWithComponents:")] public virtual void Dispatch(NSArray components) { if (components == null) { throw new ArgumentNullException("components"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDispatchWithComponents_Handle, components.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDispatchWithComponents_Handle, components.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_RootObject_var = null; __mt_RemoteObjects_var = null; __mt_LocalObjects_var = null; __mt_RequestModes_var = null; __mt_ReceivePort_var = null; __mt_SendPort_var = null; __mt_Statistics_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSConnectionDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSConnectionDelegate", true)] [Model] public class NSConnectionDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSConnectionDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSConnectionDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSConnectionDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSConnectionDelegate(IntPtr handle) : base(handle) { } [Export("authenticateComponents:withData:")] public virtual bool AuthenticateComponents(NSArray components, NSData authenticationData) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("authenticationDataForComponents:")] public virtual NSData GetAuthenticationData(NSArray components) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:shouldMakeNewConnection:")] public virtual bool ShouldMakeNewConnection(NSConnection parentConnection, NSConnection newConnection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:handleRequest:")] public virtual bool HandleRequest(NSConnection connection, NSDistantObjectRequest request) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("createConversationForConnection:")] public virtual NSObject CreateConversation(NSConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("makeNewConnection:sender:")] public virtual bool AllowNewConnection(NSConnection newConnection, NSConnection parentConnection) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSData.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSData", true)] public class NSData : NSObject, IEnumerable, IEnumerable { private class UnmanagedMemoryStreamWithRef : UnmanagedMemoryStream { private NSData source; public unsafe UnmanagedMemoryStreamWithRef(NSData source) : base((byte*)(void*)source.Bytes, (long)source.Length) { this.source = source; } protected override void Dispose(bool disposing) { source = null; base.Dispose(disposing); } } private class UnmanagedMemoryStreamWithMutableRef : UnmanagedMemoryStreamWithRef { private NSData source; private IntPtr base_address; public UnmanagedMemoryStreamWithMutableRef(NSData source) : base(source) { base_address = source.Bytes; this.source = source; } protected override void Dispose(bool disposing) { source = null; base.Dispose(disposing); } private static void InvalidOperation() { throw new InvalidOperationException("The underlying NSMutableData changed while we were consuming data"); } public override int Read([In][Out] byte[] buffer, int offset, int count) { if (base_address != source.Bytes) { InvalidOperation(); } return base.Read(buffer, offset, count); } public override int ReadByte() { if (base_address != source.Bytes) { InvalidOperation(); } return base.ReadByte(); } public override void Write(byte[] buffer, int offset, int count) { if (base_address != source.Bytes) { InvalidOperation(); } base.Write(buffer, offset, count); } public override void WriteByte(byte value) { if (base_address != source.Bytes) { InvalidOperation(); } base.WriteByte(value); } } private static readonly IntPtr selBytesHandle = Selector.GetHandle("bytes"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selSetLength_Handle = Selector.GetHandle("setLength:"); private static readonly IntPtr selDataWithContentsOfURL_Handle = Selector.GetHandle("dataWithContentsOfURL:"); private static readonly IntPtr selDataWithContentsOfURLOptionsError_Handle = Selector.GetHandle("dataWithContentsOfURL:options:error:"); private static readonly IntPtr selDataWithContentsOfFile_Handle = Selector.GetHandle("dataWithContentsOfFile:"); private static readonly IntPtr selDataWithContentsOfFileOptionsError_Handle = Selector.GetHandle("dataWithContentsOfFile:options:error:"); private static readonly IntPtr selDataWithData_Handle = Selector.GetHandle("dataWithData:"); private static readonly IntPtr selDataWithBytesLength_Handle = Selector.GetHandle("dataWithBytes:length:"); private static readonly IntPtr selWriteToFileOptionsError_Handle = Selector.GetHandle("writeToFile:options:error:"); private static readonly IntPtr selWriteToURLOptionsError_Handle = Selector.GetHandle("writeToURL:options:error:"); private static readonly IntPtr selRangeOfDataOptionsRange_Handle = Selector.GetHandle("rangeOfData:options:range:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSData"); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSData() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSData(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSData(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSData(IntPtr handle) : base(handle) { } internal NSData(IntPtr handle, bool owns) : base(handle) { if (!owns) { Release(); } } public virtual byte this[int idx] { get { if (idx < 0 || idx >= int.MaxValue || idx > (int)Length) { throw new ArgumentException("idx"); } return Marshal.ReadByte(Bytes, idx); } set { throw new NotImplementedException("NSData arrays can not be modified, use an NSMUtableData instead"); } } public override IntPtr ClassHandle => class_ptr; public virtual IntPtr Bytes { [Export("bytes")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selBytesHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBytesHandle); } } public virtual ulong Length { [Export("length")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } set { throw new NotImplementedException(); } } IEnumerator IEnumerable.GetEnumerator() { IntPtr source = Bytes; int top = (int)Length; for (int i = 0; i < top; i++) { yield return Marshal.ReadByte(source, i); } } IEnumerator IEnumerable.GetEnumerator() { IntPtr source = Bytes; int top = (int)Length; for (int i = 0; i < top; i++) { yield return Marshal.ReadByte(source, i); } } public static NSData FromString(string s) { if (s == null) { throw new ArgumentNullException("s"); } return new NSString(s).Encode(NSStringEncoding.UTF8); } public unsafe static NSData FromArray(byte[] buffer) { if (buffer == null) { throw new ArgumentNullException("buffer"); } if (buffer.Length == 0) { return FromBytes(IntPtr.Zero, 0uL); } fixed (byte* ptr = &buffer[0]) { return FromBytes((IntPtr)ptr, (uint)buffer.Length); } } public unsafe static NSData FromStream(Stream stream) { if (stream == null) { throw new ArgumentNullException("stream"); } if (!stream.CanRead) { return null; } NSMutableData nSMutableData = null; long capacity; try { capacity = stream.Length; } catch { capacity = 8192L; } nSMutableData = NSMutableData.FromCapacity((ulong)capacity); byte[] array = new byte[32768]; try { int num; while ((num = stream.Read(array, 0, array.Length)) != 0) { try { fixed (byte* ptr = &array[0]) { nSMutableData.AppendBytes((IntPtr)ptr, (uint)num); } } finally { } } return nSMutableData; } catch { return null; } } public virtual Stream AsStream() { if (this is NSMutableData) { return new UnmanagedMemoryStreamWithMutableRef(this); } return new UnmanagedMemoryStreamWithRef(this); } public static NSData FromString(string s, NSStringEncoding encoding) { return new NSString(s).Encode(encoding); } public static implicit operator NSData(string s) { return new NSString(s).Encode(NSStringEncoding.UTF8); } public NSString ToString(NSStringEncoding encoding) { return NSString.FromData(this, encoding); } public override string ToString() { return ToString(NSStringEncoding.UTF8); } public unsafe bool Save(string file, bool auxiliaryFile, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr addr = (IntPtr)(&ptr); bool result = _Save(file, (ulong)(int)(auxiliaryFile ? 1u : 0u), addr); error = (NSError)Runtime.GetNSObject(ptr); return result; } public unsafe bool Save(string file, NSDataWritingOptions options, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr addr = (IntPtr)(&ptr); bool result = _Save(file, (ulong)options, addr); error = (NSError)Runtime.GetNSObject(ptr); return result; } public unsafe bool Save(NSUrl url, bool auxiliaryFile, out NSError error) { IntPtr ptr = default(IntPtr); IntPtr addr = (IntPtr)(&ptr); bool result = _Save(url, (ulong)(int)(auxiliaryFile ? 1u : 0u), addr); error = (NSError)Runtime.GetNSObject(ptr); return result; } [Export("dataWithContentsOfURL:")] public static NSData FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataWithContentsOfURL_Handle, url.Handle)); } [Export("dataWithContentsOfURL:options:error:")] public static NSData FromUrl(NSUrl url, NSDataReadingOptions mask, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selDataWithContentsOfURLOptionsError_Handle, url.Handle, (ulong)mask, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("dataWithContentsOfFile:")] public static NSData FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("dataWithContentsOfFile:options:error:")] public static NSData FromFile(string path, NSDataReadingOptions mask, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selDataWithContentsOfFileOptionsError_Handle, arg, (ulong)mask, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("dataWithData:")] public static NSData FromData(NSData source) { if (source == null) { throw new ArgumentNullException("source"); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataWithData_Handle, source.Handle)); } [Export("dataWithBytes:length:")] public static NSData FromBytes(IntPtr bytes, ulong size) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(class_ptr, selDataWithBytesLength_Handle, bytes, size)); } [Export("writeToFile:options:error:")] public virtual bool _Save(string file, ulong options, IntPtr addr) { if (file == null) { throw new ArgumentNullException("file"); } IntPtr arg = NSString.CreateNative(file); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selWriteToFileOptionsError_Handle, arg, options, addr) : Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selWriteToFileOptionsError_Handle, arg, options, addr)); NSString.ReleaseNative(arg); return result; } [Export("writeToURL:options:error:")] public virtual bool _Save(NSUrl url, ulong options, IntPtr addr) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selWriteToURLOptionsError_Handle, url.Handle, options, addr); } return Messaging.bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selWriteToURLOptionsError_Handle, url.Handle, options, addr); } [Export("rangeOfData:options:range:")] public virtual NSRange Find(NSData dataToFind, NSDataSearchOptions searchOptions, NSRange searchRange) { if (dataToFind == null) { throw new ArgumentNullException("dataToFind"); } if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_IntPtr_UInt64_NSRange(base.Handle, selRangeOfDataOptionsRange_Handle, dataToFind.Handle, (ulong)searchOptions, searchRange); } return Messaging.NSRange_objc_msgSendSuper_IntPtr_UInt64_NSRange(base.SuperHandle, selRangeOfDataOptionsRange_Handle, dataToFind.Handle, (ulong)searchOptions, searchRange); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDataReadingOptions.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Flags] public enum NSDataReadingOptions : ulong { Mapped = 1uL, Uncached = 2uL, [Since(5, 0)] Coordinated = 4uL, [Since(5, 0)] MappedAlways = 8uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDataSearchOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSDataSearchOptions : ulong { SearchBackwards = 1uL, SearchAnchored = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDataWritingOptions.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Flags] public enum NSDataWritingOptions : ulong { Atomic = 1uL, WithoutOverwriting = 2uL, [Obsolete("No longer available")] Coordinated = 4uL, [Since(4, 0)] FileProtectionNone = 0x10000000uL, [Since(4, 0)] FileProtectionComplete = 0x20000000uL, [Since(4, 0)] FileProtectionMask = 0xF0000000uL, [Since(5, 0)] FileProtectionCompleteUnlessOpen = 0x30000000uL, [Since(5, 0)] FileProtectionCompleteUntilFirstUserAuthentication = 0x40000000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDate", true)] public class NSDate : NSObject { private const long NSDATE_TICKS = 631139040000000000L; private static readonly IntPtr selTimeIntervalSinceReferenceDateHandle = Selector.GetHandle("timeIntervalSinceReferenceDate"); private static readonly IntPtr selDateHandle = Selector.GetHandle("date"); private static readonly IntPtr selDistantPastHandle = Selector.GetHandle("distantPast"); private static readonly IntPtr selDistantFutureHandle = Selector.GetHandle("distantFuture"); private static readonly IntPtr selDateWithTimeIntervalSinceReferenceDate_Handle = Selector.GetHandle("dateWithTimeIntervalSinceReferenceDate:"); private static readonly IntPtr selDateWithTimeIntervalSince1970_Handle = Selector.GetHandle("dateWithTimeIntervalSince1970:"); private static readonly IntPtr selDateByAddingTimeInterval_Handle = Selector.GetHandle("dateByAddingTimeInterval:"); private static readonly IntPtr selDateWithTimeIntervalSinceNow_Handle = Selector.GetHandle("dateWithTimeIntervalSinceNow:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDate"); private static object __mt_Now_var_static; private static object __mt_DistantPast_var_static; private static object __mt_DistantFuture_var_static; public override IntPtr ClassHandle => class_ptr; public virtual double SecondsSinceReferenceDate { [Export("timeIntervalSinceReferenceDate")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeIntervalSinceReferenceDateHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeIntervalSinceReferenceDateHandle); } } public static NSDate Now { [Export("date")] get { return (NSDate)(__mt_Now_var_static = (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDateHandle))); } } public static NSDate DistantPast { [Export("distantPast")] get { return (NSDate)(__mt_DistantPast_var_static = (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDistantPastHandle))); } } public static NSDate DistantFuture { [Export("distantFuture")] get { return (NSDate)(__mt_DistantFuture_var_static = (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDistantFutureHandle))); } } public static implicit operator DateTime(NSDate d) { double secondsSinceReferenceDate = d.SecondsSinceReferenceDate; if (secondsSinceReferenceDate < -63113904000.0) { return DateTime.MinValue; } if (secondsSinceReferenceDate > 252423993599.0) { return DateTime.MaxValue; } return new DateTime((long)(secondsSinceReferenceDate * 10000000.0 + 6.3113904E+17), DateTimeKind.Utc); } public static implicit operator NSDate(DateTime dt) { return FromTimeIntervalSinceReferenceDate((dt.ToUniversalTime().Ticks - 631139040000000000L) / 10000000); } public override string ToString() { return Description; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDate(IntPtr handle) : base(handle) { } [Export("dateWithTimeIntervalSinceReferenceDate:")] public static NSDate FromTimeIntervalSinceReferenceDate(double secs) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selDateWithTimeIntervalSinceReferenceDate_Handle, secs)); } [Export("dateWithTimeIntervalSince1970:")] public static NSDate FromTimeIntervalSince1970(double secs) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selDateWithTimeIntervalSince1970_Handle, secs)); } [Export("dateByAddingTimeInterval:")] public virtual NSDate AddSeconds(double seconds) { if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(base.Handle, selDateByAddingTimeInterval_Handle, seconds)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selDateByAddingTimeInterval_Handle, seconds)); } [Export("dateWithTimeIntervalSinceNow:")] public static NSDate FromTimeIntervalSinceNow(double secs) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selDateWithTimeIntervalSinceNow_Handle, secs)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDateComponents.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDateComponents", true)] public class NSDateComponents : NSObject { private static readonly IntPtr selTimeZoneHandle = Selector.GetHandle("timeZone"); private static readonly IntPtr selSetTimeZone_Handle = Selector.GetHandle("setTimeZone:"); private static readonly IntPtr selCalendarHandle = Selector.GetHandle("calendar"); private static readonly IntPtr selSetCalendar_Handle = Selector.GetHandle("setCalendar:"); private static readonly IntPtr selQuarterHandle = Selector.GetHandle("quarter"); private static readonly IntPtr selSetQuarter_Handle = Selector.GetHandle("setQuarter:"); private static readonly IntPtr selDateHandle = Selector.GetHandle("date"); private static readonly IntPtr selEraHandle = Selector.GetHandle("era"); private static readonly IntPtr selSetEra_Handle = Selector.GetHandle("setEra:"); private static readonly IntPtr selYearHandle = Selector.GetHandle("year"); private static readonly IntPtr selSetYear_Handle = Selector.GetHandle("setYear:"); private static readonly IntPtr selMonthHandle = Selector.GetHandle("month"); private static readonly IntPtr selSetMonth_Handle = Selector.GetHandle("setMonth:"); private static readonly IntPtr selDayHandle = Selector.GetHandle("day"); private static readonly IntPtr selSetDay_Handle = Selector.GetHandle("setDay:"); private static readonly IntPtr selHourHandle = Selector.GetHandle("hour"); private static readonly IntPtr selSetHour_Handle = Selector.GetHandle("setHour:"); private static readonly IntPtr selMinuteHandle = Selector.GetHandle("minute"); private static readonly IntPtr selSetMinute_Handle = Selector.GetHandle("setMinute:"); private static readonly IntPtr selSecondHandle = Selector.GetHandle("second"); private static readonly IntPtr selSetSecond_Handle = Selector.GetHandle("setSecond:"); private static readonly IntPtr selWeekHandle = Selector.GetHandle("week"); private static readonly IntPtr selSetWeek_Handle = Selector.GetHandle("setWeek:"); private static readonly IntPtr selWeekdayHandle = Selector.GetHandle("weekday"); private static readonly IntPtr selSetWeekday_Handle = Selector.GetHandle("setWeekday:"); private static readonly IntPtr selWeekdayOrdinalHandle = Selector.GetHandle("weekdayOrdinal"); private static readonly IntPtr selSetWeekdayOrdinal_Handle = Selector.GetHandle("setWeekdayOrdinal:"); private static readonly IntPtr selWeekOfMonthHandle = Selector.GetHandle("weekOfMonth"); private static readonly IntPtr selSetWeekOfMonth_Handle = Selector.GetHandle("setWeekOfMonth:"); private static readonly IntPtr selWeekOfYearHandle = Selector.GetHandle("weekOfYear"); private static readonly IntPtr selSetWeekOfYear_Handle = Selector.GetHandle("setWeekOfYear:"); private static readonly IntPtr selYearForWeekOfYearHandle = Selector.GetHandle("yearForWeekOfYear"); private static readonly IntPtr selSetYearForWeekOfYear_Handle = Selector.GetHandle("setYearForWeekOfYear:"); private static readonly IntPtr selIsLeapMonthHandle = Selector.GetHandle("isLeapMonth"); private static readonly IntPtr selSetLeapMonth_Handle = Selector.GetHandle("setLeapMonth:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDateComponents"); private object __mt_TimeZone_var; private object __mt_Calendar_var; private object __mt_Date_var; public override IntPtr ClassHandle => class_ptr; [Since(4, 0)] public virtual NSTimeZone TimeZone { [Export("timeZone")] get { return (NSTimeZone)(__mt_TimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimeZoneHandle))))); } [Export("setTimeZone:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimeZone_Handle, value.Handle); } __mt_TimeZone_var = value; } } [Since(4, 0)] public virtual NSCalendar Calendar { [Export("calendar")] get { return (NSCalendar)(__mt_Calendar_var = ((!IsDirectBinding) ? ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalendarHandle))) : ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCalendarHandle))))); } [Export("setCalendar:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCalendar_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCalendar_Handle, value.Handle); } __mt_Calendar_var = value; } } [Since(4, 0)] public virtual long Quarter { [Export("quarter")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selQuarterHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selQuarterHandle); } [Export("setQuarter:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetQuarter_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetQuarter_Handle, value); } } } [Since(4, 0)] public virtual NSDate Date { [Export("date")] get { return (NSDate)(__mt_Date_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDateHandle))))); } } public virtual long Era { [Export("era")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selEraHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEraHandle); } [Export("setEra:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetEra_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetEra_Handle, value); } } } public virtual long Year { [Export("year")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selYearHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selYearHandle); } [Export("setYear:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetYear_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetYear_Handle, value); } } } public virtual long Month { [Export("month")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMonthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMonthHandle); } [Export("setMonth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMonth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMonth_Handle, value); } } } public virtual long Day { [Export("day")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selDayHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selDayHandle); } [Export("setDay:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetDay_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetDay_Handle, value); } } } public virtual long Hour { [Export("hour")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selHourHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selHourHandle); } [Export("setHour:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetHour_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetHour_Handle, value); } } } public virtual long Minute { [Export("minute")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMinuteHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMinuteHandle); } [Export("setMinute:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMinute_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMinute_Handle, value); } } } public virtual long Second { [Export("second")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSecondHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSecondHandle); } [Export("setSecond:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetSecond_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetSecond_Handle, value); } } } public virtual long Week { [Export("week")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWeekHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWeekHandle); } [Export("setWeek:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetWeek_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetWeek_Handle, value); } } } public virtual long Weekday { [Export("weekday")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWeekdayHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWeekdayHandle); } [Export("setWeekday:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetWeekday_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetWeekday_Handle, value); } } } public virtual long WeekdayOrdinal { [Export("weekdayOrdinal")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWeekdayOrdinalHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWeekdayOrdinalHandle); } [Export("setWeekdayOrdinal:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetWeekdayOrdinal_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetWeekdayOrdinal_Handle, value); } } } [Since(5, 0)] public virtual long WeekOfMonth { [Export("weekOfMonth")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWeekOfMonthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWeekOfMonthHandle); } [Export("setWeekOfMonth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetWeekOfMonth_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetWeekOfMonth_Handle, value); } } } [Since(5, 0)] public virtual long WeekOfYear { [Export("weekOfYear")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selWeekOfYearHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selWeekOfYearHandle); } [Export("setWeekOfYear:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetWeekOfYear_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetWeekOfYear_Handle, value); } } } [Since(5, 0)] public virtual long YearForWeekOfYear { [Export("yearForWeekOfYear")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selYearForWeekOfYearHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selYearForWeekOfYearHandle); } [Export("setYearForWeekOfYear:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetYearForWeekOfYear_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetYearForWeekOfYear_Handle, value); } } } [Since(6, 0)] public virtual bool IsLeapMonth { [Export("isLeapMonth")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLeapMonthHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLeapMonthHandle); } [Export("setLeapMonth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLeapMonth_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLeapMonth_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDateComponents() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDateComponents(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDateComponents(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDateComponents(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TimeZone_var = null; __mt_Calendar_var = null; __mt_Date_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDateComponentsWrappingBehavior.cs ================================================ namespace Foundation; public enum NSDateComponentsWrappingBehavior : ulong { None, WrapCalendarComponents } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDateFormatter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDateFormatter", true)] public class NSDateFormatter : NSFormatter { private static readonly IntPtr selDateFormatHandle = Selector.GetHandle("dateFormat"); private static readonly IntPtr selSetDateFormat_Handle = Selector.GetHandle("setDateFormat:"); private static readonly IntPtr selDateStyleHandle = Selector.GetHandle("dateStyle"); private static readonly IntPtr selSetDateStyle_Handle = Selector.GetHandle("setDateStyle:"); private static readonly IntPtr selTimeStyleHandle = Selector.GetHandle("timeStyle"); private static readonly IntPtr selSetTimeStyle_Handle = Selector.GetHandle("setTimeStyle:"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selGeneratesCalendarDatesHandle = Selector.GetHandle("generatesCalendarDates"); private static readonly IntPtr selSetGeneratesCalendarDates_Handle = Selector.GetHandle("setGeneratesCalendarDates:"); private static readonly IntPtr selFormatterBehaviorHandle = Selector.GetHandle("formatterBehavior"); private static readonly IntPtr selSetFormatterBehavior_Handle = Selector.GetHandle("setFormatterBehavior:"); private static readonly IntPtr selDefaultFormatterBehaviorHandle = Selector.GetHandle("defaultFormatterBehavior"); private static readonly IntPtr selSetDefaultFormatterBehavior_Handle = Selector.GetHandle("setDefaultFormatterBehavior:"); private static readonly IntPtr selTimeZoneHandle = Selector.GetHandle("timeZone"); private static readonly IntPtr selSetTimeZone_Handle = Selector.GetHandle("setTimeZone:"); private static readonly IntPtr selCalendarHandle = Selector.GetHandle("calendar"); private static readonly IntPtr selSetCalendar_Handle = Selector.GetHandle("setCalendar:"); private static readonly IntPtr selIsLenientHandle = Selector.GetHandle("isLenient"); private static readonly IntPtr selSetLenient_Handle = Selector.GetHandle("setLenient:"); private static readonly IntPtr selTwoDigitStartDateHandle = Selector.GetHandle("twoDigitStartDate"); private static readonly IntPtr selSetTwoDigitStartDate_Handle = Selector.GetHandle("setTwoDigitStartDate:"); private static readonly IntPtr selDefaultDateHandle = Selector.GetHandle("defaultDate"); private static readonly IntPtr selSetDefaultDate_Handle = Selector.GetHandle("setDefaultDate:"); private static readonly IntPtr selEraSymbolsHandle = Selector.GetHandle("eraSymbols"); private static readonly IntPtr selSetEraSymbols_Handle = Selector.GetHandle("setEraSymbols:"); private static readonly IntPtr selMonthSymbolsHandle = Selector.GetHandle("monthSymbols"); private static readonly IntPtr selSetMonthSymbols_Handle = Selector.GetHandle("setMonthSymbols:"); private static readonly IntPtr selShortMonthSymbolsHandle = Selector.GetHandle("shortMonthSymbols"); private static readonly IntPtr selSetShortMonthSymbols_Handle = Selector.GetHandle("setShortMonthSymbols:"); private static readonly IntPtr selWeekdaySymbolsHandle = Selector.GetHandle("weekdaySymbols"); private static readonly IntPtr selSetWeekdaySymbols_Handle = Selector.GetHandle("setWeekdaySymbols:"); private static readonly IntPtr selShortWeekdaySymbolsHandle = Selector.GetHandle("shortWeekdaySymbols"); private static readonly IntPtr selSetShortWeekdaySymbols_Handle = Selector.GetHandle("setShortWeekdaySymbols:"); private static readonly IntPtr selAMSymbolHandle = Selector.GetHandle("AMSymbol"); private static readonly IntPtr selSetAMSymbol_Handle = Selector.GetHandle("setAMSymbol:"); private static readonly IntPtr selPMSymbolHandle = Selector.GetHandle("PMSymbol"); private static readonly IntPtr selSetPMSymbol_Handle = Selector.GetHandle("setPMSymbol:"); private static readonly IntPtr selLongEraSymbolsHandle = Selector.GetHandle("longEraSymbols"); private static readonly IntPtr selSetLongEraSymbols_Handle = Selector.GetHandle("setLongEraSymbols:"); private static readonly IntPtr selVeryShortMonthSymbolsHandle = Selector.GetHandle("veryShortMonthSymbols"); private static readonly IntPtr selSetVeryShortMonthSymbols_Handle = Selector.GetHandle("setVeryShortMonthSymbols:"); private static readonly IntPtr selStandaloneMonthSymbolsHandle = Selector.GetHandle("standaloneMonthSymbols"); private static readonly IntPtr selSetStandaloneMonthSymbols_Handle = Selector.GetHandle("setStandaloneMonthSymbols:"); private static readonly IntPtr selShortStandaloneMonthSymbolsHandle = Selector.GetHandle("shortStandaloneMonthSymbols"); private static readonly IntPtr selSetShortStandaloneMonthSymbols_Handle = Selector.GetHandle("setShortStandaloneMonthSymbols:"); private static readonly IntPtr selVeryShortStandaloneMonthSymbolsHandle = Selector.GetHandle("veryShortStandaloneMonthSymbols"); private static readonly IntPtr selSetVeryShortStandaloneMonthSymbols_Handle = Selector.GetHandle("setVeryShortStandaloneMonthSymbols:"); private static readonly IntPtr selVeryShortWeekdaySymbolsHandle = Selector.GetHandle("veryShortWeekdaySymbols"); private static readonly IntPtr selSetVeryShortWeekdaySymbols_Handle = Selector.GetHandle("setVeryShortWeekdaySymbols:"); private static readonly IntPtr selStandaloneWeekdaySymbolsHandle = Selector.GetHandle("standaloneWeekdaySymbols"); private static readonly IntPtr selSetStandaloneWeekdaySymbols_Handle = Selector.GetHandle("setStandaloneWeekdaySymbols:"); private static readonly IntPtr selShortStandaloneWeekdaySymbolsHandle = Selector.GetHandle("shortStandaloneWeekdaySymbols"); private static readonly IntPtr selSetShortStandaloneWeekdaySymbols_Handle = Selector.GetHandle("setShortStandaloneWeekdaySymbols:"); private static readonly IntPtr selVeryShortStandaloneWeekdaySymbolsHandle = Selector.GetHandle("veryShortStandaloneWeekdaySymbols"); private static readonly IntPtr selSetVeryShortStandaloneWeekdaySymbols_Handle = Selector.GetHandle("setVeryShortStandaloneWeekdaySymbols:"); private static readonly IntPtr selQuarterSymbolsHandle = Selector.GetHandle("quarterSymbols"); private static readonly IntPtr selSetQuarterSymbols_Handle = Selector.GetHandle("setQuarterSymbols:"); private static readonly IntPtr selShortQuarterSymbolsHandle = Selector.GetHandle("shortQuarterSymbols"); private static readonly IntPtr selSetShortQuarterSymbols_Handle = Selector.GetHandle("setShortQuarterSymbols:"); private static readonly IntPtr selStandaloneQuarterSymbolsHandle = Selector.GetHandle("standaloneQuarterSymbols"); private static readonly IntPtr selSetStandaloneQuarterSymbols_Handle = Selector.GetHandle("setStandaloneQuarterSymbols:"); private static readonly IntPtr selShortStandaloneQuarterSymbolsHandle = Selector.GetHandle("shortStandaloneQuarterSymbols"); private static readonly IntPtr selSetShortStandaloneQuarterSymbols_Handle = Selector.GetHandle("setShortStandaloneQuarterSymbols:"); private static readonly IntPtr selGregorianStartDateHandle = Selector.GetHandle("gregorianStartDate"); private static readonly IntPtr selSetGregorianStartDate_Handle = Selector.GetHandle("setGregorianStartDate:"); private static readonly IntPtr selStringFromDate_Handle = Selector.GetHandle("stringFromDate:"); private static readonly IntPtr selDateFromString_Handle = Selector.GetHandle("dateFromString:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDateFormatter"); private object __mt_Locale_var; private object __mt_TimeZone_var; private object __mt_Calendar_var; private object __mt_TwoDigitStartDate_var; private object __mt_DefaultDate_var; private object __mt_GregorianStartDate_var; public override IntPtr ClassHandle => class_ptr; public virtual string DateFormat { [Export("dateFormat")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDateFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDateFormatHandle)); } [Export("setDateFormat:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDateFormat_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDateFormat_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDateFormatterStyle DateStyle { [Export("dateStyle")] get { if (IsDirectBinding) { return (NSDateFormatterStyle)Messaging.UInt64_objc_msgSend(base.Handle, selDateStyleHandle); } return (NSDateFormatterStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDateStyleHandle); } [Export("setDateStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDateStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDateStyle_Handle, (ulong)value); } } } public virtual NSDateFormatterStyle TimeStyle { [Export("timeStyle")] get { if (IsDirectBinding) { return (NSDateFormatterStyle)Messaging.UInt64_objc_msgSend(base.Handle, selTimeStyleHandle); } return (NSDateFormatterStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTimeStyleHandle); } [Export("setTimeStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetTimeStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetTimeStyle_Handle, (ulong)value); } } } public virtual NSLocale Locale { [Export("locale")] get { return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public virtual bool GeneratesCalendarDates { [Export("generatesCalendarDates")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selGeneratesCalendarDatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selGeneratesCalendarDatesHandle); } [Export("setGeneratesCalendarDates:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGeneratesCalendarDates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGeneratesCalendarDates_Handle, value); } } } public virtual NSDateFormatterBehavior Behavior { [Export("formatterBehavior")] get { if (IsDirectBinding) { return (NSDateFormatterBehavior)Messaging.UInt64_objc_msgSend(base.Handle, selFormatterBehaviorHandle); } return (NSDateFormatterBehavior)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFormatterBehaviorHandle); } [Export("setFormatterBehavior:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFormatterBehavior_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFormatterBehavior_Handle, (ulong)value); } } } public static NSDateFormatterBehavior DefaultBehavior { [Export("defaultFormatterBehavior")] get { return (NSDateFormatterBehavior)Messaging.UInt64_objc_msgSend(class_ptr, selDefaultFormatterBehaviorHandle); } [Export("setDefaultFormatterBehavior:")] set { Messaging.void_objc_msgSend_UInt64(class_ptr, selSetDefaultFormatterBehavior_Handle, (ulong)value); } } public virtual NSTimeZone TimeZone { [Export("timeZone")] get { return (NSTimeZone)(__mt_TimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTimeZoneHandle))))); } [Export("setTimeZone:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTimeZone_Handle, value.Handle); } __mt_TimeZone_var = value; } } public virtual NSCalendar Calendar { [Export("calendar")] get { return (NSCalendar)(__mt_Calendar_var = ((!IsDirectBinding) ? ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCalendarHandle))) : ((NSCalendar)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCalendarHandle))))); } [Export("setCalendar:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCalendar_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCalendar_Handle, value.Handle); } __mt_Calendar_var = value; } } public virtual bool IsLenient { [Export("isLenient")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLenientHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLenientHandle); } [Export("setLenient:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLenient_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLenient_Handle, value); } } } public virtual NSDate TwoDigitStartDate { [Export("twoDigitStartDate")] get { return (NSDate)(__mt_TwoDigitStartDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTwoDigitStartDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTwoDigitStartDateHandle))))); } [Export("setTwoDigitStartDate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTwoDigitStartDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTwoDigitStartDate_Handle, value.Handle); } __mt_TwoDigitStartDate_var = value; } } public virtual NSDate DefaultDate { [Export("defaultDate")] get { return (NSDate)(__mt_DefaultDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultDateHandle))))); } [Export("setDefaultDate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultDate_Handle, value.Handle); } __mt_DefaultDate_var = value; } } public virtual string[] EraSymbols { [Export("eraSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selEraSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEraSymbolsHandle)); } [Export("setEraSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEraSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEraSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] MonthSymbols { [Export("monthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMonthSymbolsHandle)); } [Export("setMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortMonthSymbols { [Export("shortMonthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortMonthSymbolsHandle)); } [Export("setShortMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] WeekdaySymbols { [Export("weekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWeekdaySymbolsHandle)); } [Export("setWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortWeekdaySymbols { [Export("shortWeekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortWeekdaySymbolsHandle)); } [Export("setShortWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string AMSymbol { [Export("AMSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAMSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAMSymbolHandle)); } [Export("setAMSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAMSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAMSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PMSymbol { [Export("PMSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPMSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPMSymbolHandle)); } [Export("setPMSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPMSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPMSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string[] LongEraSymbols { [Export("longEraSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLongEraSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLongEraSymbolsHandle)); } [Export("setLongEraSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLongEraSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLongEraSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] VeryShortMonthSymbols { [Export("veryShortMonthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVeryShortMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVeryShortMonthSymbolsHandle)); } [Export("setVeryShortMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVeryShortMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVeryShortMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] StandaloneMonthSymbols { [Export("standaloneMonthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStandaloneMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandaloneMonthSymbolsHandle)); } [Export("setStandaloneMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandaloneMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandaloneMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortStandaloneMonthSymbols { [Export("shortStandaloneMonthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortStandaloneMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortStandaloneMonthSymbolsHandle)); } [Export("setShortStandaloneMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortStandaloneMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortStandaloneMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] VeryShortStandaloneMonthSymbols { [Export("veryShortStandaloneMonthSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVeryShortStandaloneMonthSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVeryShortStandaloneMonthSymbolsHandle)); } [Export("setVeryShortStandaloneMonthSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVeryShortStandaloneMonthSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVeryShortStandaloneMonthSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] VeryShortWeekdaySymbols { [Export("veryShortWeekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVeryShortWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVeryShortWeekdaySymbolsHandle)); } [Export("setVeryShortWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVeryShortWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVeryShortWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] StandaloneWeekdaySymbols { [Export("standaloneWeekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStandaloneWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandaloneWeekdaySymbolsHandle)); } [Export("setStandaloneWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandaloneWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandaloneWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortStandaloneWeekdaySymbols { [Export("shortStandaloneWeekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortStandaloneWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortStandaloneWeekdaySymbolsHandle)); } [Export("setShortStandaloneWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortStandaloneWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortStandaloneWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] VeryShortStandaloneWeekdaySymbols { [Export("veryShortStandaloneWeekdaySymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVeryShortStandaloneWeekdaySymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVeryShortStandaloneWeekdaySymbolsHandle)); } [Export("setVeryShortStandaloneWeekdaySymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVeryShortStandaloneWeekdaySymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVeryShortStandaloneWeekdaySymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] QuarterSymbols { [Export("quarterSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selQuarterSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQuarterSymbolsHandle)); } [Export("setQuarterSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetQuarterSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetQuarterSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortQuarterSymbols { [Export("shortQuarterSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortQuarterSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortQuarterSymbolsHandle)); } [Export("setShortQuarterSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortQuarterSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortQuarterSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] StandaloneQuarterSymbols { [Export("standaloneQuarterSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStandaloneQuarterSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandaloneQuarterSymbolsHandle)); } [Export("setStandaloneQuarterSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandaloneQuarterSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandaloneQuarterSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual string[] ShortStandaloneQuarterSymbols { [Export("shortStandaloneQuarterSymbols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selShortStandaloneQuarterSymbolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selShortStandaloneQuarterSymbolsHandle)); } [Export("setShortStandaloneQuarterSymbols:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetShortStandaloneQuarterSymbols_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetShortStandaloneQuarterSymbols_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual NSDate GregorianStartDate { [Export("gregorianStartDate")] get { return (NSDate)(__mt_GregorianStartDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGregorianStartDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGregorianStartDateHandle))))); } [Export("setGregorianStartDate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGregorianStartDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGregorianStartDate_Handle, value.Handle); } __mt_GregorianStartDate_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDateFormatter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDateFormatter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDateFormatter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDateFormatter(IntPtr handle) : base(handle) { } [Export("stringFromDate:")] public virtual string ToString(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringFromDate_Handle, date.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringFromDate_Handle, date.Handle)); } [Export("dateFromString:")] public virtual NSDate Parse(string date) { if (date == null) { throw new ArgumentNullException("date"); } IntPtr arg = NSString.CreateNative(date); NSDate result = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDateFromString_Handle, arg))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDateFromString_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locale_var = null; __mt_TimeZone_var = null; __mt_Calendar_var = null; __mt_TwoDigitStartDate_var = null; __mt_DefaultDate_var = null; __mt_GregorianStartDate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDateFormatterBehavior.cs ================================================ namespace Foundation; public enum NSDateFormatterBehavior : ulong { Default = 0uL, Mode_10_4 = 1040uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDateFormatterStyle.cs ================================================ namespace Foundation; public enum NSDateFormatterStyle : ulong { None, Short, Medium, Long, Full } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDecimal.cs ================================================ using System; using System.Runtime.InteropServices; namespace Foundation; public struct NSDecimal { public int fields; public short m1; public short m2; public short m3; public short m4; public short m5; public short m6; public short m7; public short m8; [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalCompare")] public static extern NSComparisonResult Compare(ref NSDecimal left, ref NSDecimal right); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalRound")] public static extern void Round(out NSDecimal result, ref NSDecimal number, int scale, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalNormalize")] public static extern NSCalculationError Normalize(ref NSDecimal number1, ref NSDecimal number2); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalAdd")] public static extern NSCalculationError Add(out NSDecimal result, ref NSDecimal left, ref NSDecimal right, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalSubtract")] public static extern NSCalculationError Subtract(out NSDecimal result, ref NSDecimal left, ref NSDecimal right, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalMultiply")] public static extern NSCalculationError Multiply(out NSDecimal result, ref NSDecimal left, ref NSDecimal right, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalDivide")] public static extern NSCalculationError Divide(out NSDecimal result, ref NSDecimal left, ref NSDecimal right, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalPower")] public static extern NSComparisonResult Power(out NSDecimal result, ref NSDecimal number, int power, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalMultiplyByPowerOf10")] public static extern NSComparisonResult MultiplyByPowerOf10(out NSDecimal result, ref NSDecimal number, short power10, NSRoundingMode mode); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSDecimalMultiplyByPowerOf10")] private static extern IntPtr NSDecimalString(ref NSDecimal value, IntPtr locale); public override string ToString() { return $"{fields}:{m1}{m2}{m3}{m4}{m5}{m6}{m7}{m8}"; } public static NSDecimal operator +(NSDecimal left, NSDecimal right) { Add(out var result, ref left, ref right, NSRoundingMode.Plain); return result; } public static NSDecimal operator -(NSDecimal left, NSDecimal right) { Subtract(out var result, ref left, ref right, NSRoundingMode.Plain); return result; } public static NSDecimal operator *(NSDecimal left, NSDecimal right) { Multiply(out var result, ref left, ref right, NSRoundingMode.Plain); return result; } public static NSDecimal operator /(NSDecimal left, NSDecimal right) { Divide(out var result, ref left, ref right, NSRoundingMode.Plain); return result; } public static bool operator ==(NSDecimal left, NSDecimal right) { return Compare(ref left, ref right) == NSComparisonResult.Same; } public static bool operator !=(NSDecimal left, NSDecimal right) { return Compare(ref left, ref right) != NSComparisonResult.Same; } public static implicit operator NSDecimal(int value) { return new NSNumber(value).NSDecimalValue; } public static explicit operator int(NSDecimal value) { return new NSDecimalNumber(value).Int32Value; } public override bool Equals(object obj) { if (!(obj is NSDecimal)) { return false; } return this == (NSDecimal)obj; } public override int GetHashCode() { return fields ^ m1 ^ m2 ^ m3 ^ m4 ^ m5 ^ m6 ^ m7 ^ m8; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDecimalNumber.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDecimalNumber", true)] public class NSDecimalNumber : NSNumber { private static readonly IntPtr selDecimalValueHandle = Selector.GetHandle("decimalValue"); private static readonly IntPtr selZeroHandle = Selector.GetHandle("zero"); private static readonly IntPtr selOneHandle = Selector.GetHandle("one"); private static readonly IntPtr selMinimumDecimalNumberHandle = Selector.GetHandle("minimumDecimalNumber"); private static readonly IntPtr selMaximumDecimalNumberHandle = Selector.GetHandle("maximumDecimalNumber"); private static readonly IntPtr selNotANumberHandle = Selector.GetHandle("notANumber"); private static readonly IntPtr selDefaultBehaviorHandle = Selector.GetHandle("defaultBehavior"); private static readonly IntPtr selSetDefaultBehavior_Handle = Selector.GetHandle("setDefaultBehavior:"); private static readonly IntPtr selDoubleValueHandle = Selector.GetHandle("doubleValue"); private static readonly IntPtr selInitWithMantissaExponentIsNegative_Handle = Selector.GetHandle("initWithMantissa:exponent:isNegative:"); private static readonly IntPtr selInitWithDecimal_Handle = Selector.GetHandle("initWithDecimal:"); private static readonly IntPtr selInitWithString_Handle = Selector.GetHandle("initWithString:"); private static readonly IntPtr selInitWithStringLocale_Handle = Selector.GetHandle("initWithString:locale:"); private static readonly IntPtr selDescriptionWithLocale_Handle = Selector.GetHandle("descriptionWithLocale:"); private static readonly IntPtr selDecimalNumberByAdding_Handle = Selector.GetHandle("decimalNumberByAdding:"); private static readonly IntPtr selDecimalNumberByAddingWithBehavior_Handle = Selector.GetHandle("decimalNumberByAdding:withBehavior:"); private static readonly IntPtr selDecimalNumberBySubtracting_Handle = Selector.GetHandle("decimalNumberBySubtracting:"); private static readonly IntPtr selDecimalNumberBySubtractingWithBehavior_Handle = Selector.GetHandle("decimalNumberBySubtracting:withBehavior:"); private static readonly IntPtr selDecimalNumberByMultiplyingBy_Handle = Selector.GetHandle("decimalNumberByMultiplyingBy:"); private static readonly IntPtr selDecimalNumberByMultiplyingByWithBehavior_Handle = Selector.GetHandle("decimalNumberByMultiplyingBy:withBehavior:"); private static readonly IntPtr selDecimalNumberByDividingBy_Handle = Selector.GetHandle("decimalNumberByDividingBy:"); private static readonly IntPtr selDecimalNumberByDividingByWithBehavior_Handle = Selector.GetHandle("decimalNumberByDividingBy:withBehavior:"); private static readonly IntPtr selDecimalNumberByRaisingToPower_Handle = Selector.GetHandle("decimalNumberByRaisingToPower:"); private static readonly IntPtr selDecimalNumberByRaisingToPowerWithBehavior_Handle = Selector.GetHandle("decimalNumberByRaisingToPower:withBehavior:"); private static readonly IntPtr selDecimalNumberByMultiplyingByPowerOf10_Handle = Selector.GetHandle("decimalNumberByMultiplyingByPowerOf10:"); private static readonly IntPtr selDecimalNumberByMultiplyingByPowerOf10WithBehavior_Handle = Selector.GetHandle("decimalNumberByMultiplyingByPowerOf10:withBehavior:"); private static readonly IntPtr selDecimalNumberByRoundingAccordingToBehavior_Handle = Selector.GetHandle("decimalNumberByRoundingAccordingToBehavior:"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDecimalNumber"); private static object __mt_Zero_var_static; private static object __mt_One_var_static; private static object __mt_MinValue_var_static; private static object __mt_MaxValue_var_static; private static object __mt_NaN_var_static; private static object __mt_DefaultBehavior_var_static; public override IntPtr ClassHandle => class_ptr; public new virtual NSDecimal NSDecimalValue { [Export("decimalValue")] get { NSDecimal retval; if (IsDirectBinding) { Messaging.NSDecimal_objc_msgSend_stret(out retval, base.Handle, selDecimalValueHandle); } else { Messaging.NSDecimal_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDecimalValueHandle); } return retval; } } public static NSDecimalNumber Zero { [Export("zero")] get { return (NSDecimalNumber)(__mt_Zero_var_static = (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selZeroHandle))); } } public static NSDecimalNumber One { [Export("one")] get { return (NSDecimalNumber)(__mt_One_var_static = (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOneHandle))); } } public static NSDecimalNumber MinValue { [Export("minimumDecimalNumber")] get { return (NSDecimalNumber)(__mt_MinValue_var_static = (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMinimumDecimalNumberHandle))); } } public static NSDecimalNumber MaxValue { [Export("maximumDecimalNumber")] get { return (NSDecimalNumber)(__mt_MaxValue_var_static = (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMaximumDecimalNumberHandle))); } } public static NSDecimalNumber NaN { [Export("notANumber")] get { return (NSDecimalNumber)(__mt_NaN_var_static = (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selNotANumberHandle))); } } public static NSObject DefaultBehavior { [Export("defaultBehavior")] get { return (NSObject)(__mt_DefaultBehavior_var_static = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultBehaviorHandle))); } [Export("setDefaultBehavior:")] set { if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetDefaultBehavior_Handle, value.Handle); } } public new virtual double DoubleValue { [Export("doubleValue")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDoubleValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDoubleValueHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDecimalNumber() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDecimalNumber(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDecimalNumber(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDecimalNumber(IntPtr handle) : base(handle) { } [Export("initWithMantissa:exponent:isNegative:")] public NSDecimalNumber(long mantissa, short exponent, bool isNegative) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Int64_short_bool(base.Handle, selInitWithMantissaExponentIsNegative_Handle, mantissa, exponent, isNegative); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Int64_short_bool(base.SuperHandle, selInitWithMantissaExponentIsNegative_Handle, mantissa, exponent, isNegative); } } [Export("initWithDecimal:")] public NSDecimalNumber(NSDecimal dec) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_NSDecimal(base.Handle, selInitWithDecimal_Handle, dec); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_NSDecimal(base.SuperHandle, selInitWithDecimal_Handle, dec); } } [Export("initWithString:")] public NSDecimalNumber(string numberValue) : base(NSObjectFlag.Empty) { if (numberValue == null) { throw new ArgumentNullException("numberValue"); } IntPtr arg = NSString.CreateNative(numberValue); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithString:locale:")] public NSDecimalNumber(string numberValue, NSObject locale) : base(NSObjectFlag.Empty) { if (numberValue == null) { throw new ArgumentNullException("numberValue"); } if (locale == null) { throw new ArgumentNullException("locale"); } IntPtr arg = NSString.CreateNative(numberValue); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithStringLocale_Handle, arg, locale.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithStringLocale_Handle, arg, locale.Handle); } NSString.ReleaseNative(arg); } [Export("descriptionWithLocale:")] public new virtual string DescriptionWithLocale(NSLocale locale) { if (locale == null) { throw new ArgumentNullException("locale"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDescriptionWithLocale_Handle, locale.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDescriptionWithLocale_Handle, locale.Handle)); } [Export("decimalNumberByAdding:")] public virtual NSDecimalNumber Add(NSDecimalNumber d) { if (d == null) { throw new ArgumentNullException("d"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecimalNumberByAdding_Handle, d.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecimalNumberByAdding_Handle, d.Handle)); } [Export("decimalNumberByAdding:withBehavior:")] public virtual NSDecimalNumber Add(NSDecimalNumber d, NSObject Behavior) { if (d == null) { throw new ArgumentNullException("d"); } if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDecimalNumberByAddingWithBehavior_Handle, d.Handle, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDecimalNumberByAddingWithBehavior_Handle, d.Handle, Behavior.Handle)); } [Export("decimalNumberBySubtracting:")] public virtual NSDecimalNumber Subtract(NSDecimalNumber d) { if (d == null) { throw new ArgumentNullException("d"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecimalNumberBySubtracting_Handle, d.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecimalNumberBySubtracting_Handle, d.Handle)); } [Export("decimalNumberBySubtracting:withBehavior:")] public virtual NSDecimalNumber Subtract(NSDecimalNumber d, NSObject Behavior) { if (d == null) { throw new ArgumentNullException("d"); } if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDecimalNumberBySubtractingWithBehavior_Handle, d.Handle, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDecimalNumberBySubtractingWithBehavior_Handle, d.Handle, Behavior.Handle)); } [Export("decimalNumberByMultiplyingBy:")] public virtual NSDecimalNumber Multiply(NSDecimalNumber d) { if (d == null) { throw new ArgumentNullException("d"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecimalNumberByMultiplyingBy_Handle, d.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecimalNumberByMultiplyingBy_Handle, d.Handle)); } [Export("decimalNumberByMultiplyingBy:withBehavior:")] public virtual NSDecimalNumber Multiply(NSDecimalNumber d, NSObject Behavior) { if (d == null) { throw new ArgumentNullException("d"); } if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDecimalNumberByMultiplyingByWithBehavior_Handle, d.Handle, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDecimalNumberByMultiplyingByWithBehavior_Handle, d.Handle, Behavior.Handle)); } [Export("decimalNumberByDividingBy:")] public virtual NSDecimalNumber Divide(NSDecimalNumber d) { if (d == null) { throw new ArgumentNullException("d"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecimalNumberByDividingBy_Handle, d.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecimalNumberByDividingBy_Handle, d.Handle)); } [Export("decimalNumberByDividingBy:withBehavior:")] public virtual NSDecimalNumber Divide(NSDecimalNumber d, NSObject Behavior) { if (d == null) { throw new ArgumentNullException("d"); } if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDecimalNumberByDividingByWithBehavior_Handle, d.Handle, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDecimalNumberByDividingByWithBehavior_Handle, d.Handle, Behavior.Handle)); } [Export("decimalNumberByRaisingToPower:")] public virtual NSDecimalNumber RaiseTo(ulong power) { if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selDecimalNumberByRaisingToPower_Handle, power)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selDecimalNumberByRaisingToPower_Handle, power)); } [Export("decimalNumberByRaisingToPower:withBehavior:")] public virtual NSDecimalNumber RaiseTo(ulong power, NSObject Behavior) { if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr(base.Handle, selDecimalNumberByRaisingToPowerWithBehavior_Handle, power, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selDecimalNumberByRaisingToPowerWithBehavior_Handle, power, Behavior.Handle)); } [Export("decimalNumberByMultiplyingByPowerOf10:")] public virtual NSDecimalNumber MultiplyPowerOf10(short power) { if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_short(base.Handle, selDecimalNumberByMultiplyingByPowerOf10_Handle, power)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_short(base.SuperHandle, selDecimalNumberByMultiplyingByPowerOf10_Handle, power)); } [Export("decimalNumberByMultiplyingByPowerOf10:withBehavior:")] public virtual NSDecimalNumber MultiplyPowerOf10(short power, NSObject Behavior) { if (Behavior == null) { throw new ArgumentNullException("Behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_short_IntPtr(base.Handle, selDecimalNumberByMultiplyingByPowerOf10WithBehavior_Handle, power, Behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_short_IntPtr(base.SuperHandle, selDecimalNumberByMultiplyingByPowerOf10WithBehavior_Handle, power, Behavior.Handle)); } [Export("decimalNumberByRoundingAccordingToBehavior:")] public virtual NSDecimalNumber Rounding(NSObject behavior) { if (behavior == null) { throw new ArgumentNullException("behavior"); } if (IsDirectBinding) { return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDecimalNumberByRoundingAccordingToBehavior_Handle, behavior.Handle)); } return (NSDecimalNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDecimalNumberByRoundingAccordingToBehavior_Handle, behavior.Handle)); } [Export("compare:")] public new virtual long Compare(NSNumber other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, other.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, other.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDecoderCallback.cs ================================================ namespace Foundation; public delegate NSObject NSDecoderCallback(NSKeyedUnarchiver unarchiver, NSObject obj); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDecoderHandler.cs ================================================ using ObjCRuntime; namespace Foundation; public delegate Class NSDecoderHandler(NSKeyedUnarchiver unarchiver, string klass, string[] classes); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDictionary.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDictionary", true)] public class NSDictionary : NSObject, IDictionary, ICollection, IEnumerable, IDictionary, ICollection>, IEnumerable> { private class ShimEnumerator : IDictionaryEnumerator, IEnumerator, IDisposable { private IEnumerator> e; public DictionaryEntry Entry { get { DictionaryEntry result = default(DictionaryEntry); result.Key = e.Current.Key; result.Value = e.Current.Value; return result; } } public object Key => e.Current.Key; public object Value => e.Current.Value; public object Current => Entry; public ShimEnumerator(NSDictionary host) { e = host.GetEnumerator(); } public void Dispose() { e.Dispose(); } public bool MoveNext() { return e.MoveNext(); } public void Reset() { e.Reset(); } } private static readonly NSObject marker = new NSObject(); private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selAllKeysHandle = Selector.GetHandle("allKeys"); private static readonly IntPtr selAllValuesHandle = Selector.GetHandle("allValues"); private static readonly IntPtr selDescriptionInStringsFileFormatHandle = Selector.GetHandle("descriptionInStringsFileFormat"); private static readonly IntPtr selObjectEnumeratorHandle = Selector.GetHandle("objectEnumerator"); private static readonly IntPtr selDictionaryWithContentsOfFile_Handle = Selector.GetHandle("dictionaryWithContentsOfFile:"); private static readonly IntPtr selDictionaryWithContentsOfURL_Handle = Selector.GetHandle("dictionaryWithContentsOfURL:"); private static readonly IntPtr selDictionaryWithObjectForKey_Handle = Selector.GetHandle("dictionaryWithObject:forKey:"); private static readonly IntPtr selDictionaryWithDictionary_Handle = Selector.GetHandle("dictionaryWithDictionary:"); private static readonly IntPtr selDictionaryWithObjectsForKeysCount_Handle = Selector.GetHandle("dictionaryWithObjects:forKeys:count:"); private static readonly IntPtr selDictionaryWithObjectsForKeys_Handle = Selector.GetHandle("dictionaryWithObjects:forKeys:"); private static readonly IntPtr selInitWithDictionary_Handle = Selector.GetHandle("initWithDictionary:"); private static readonly IntPtr selInitWithContentsOfFile_Handle = Selector.GetHandle("initWithContentsOfFile:"); private static readonly IntPtr selInitWithObjectsForKeys_Handle = Selector.GetHandle("initWithObjects:forKeys:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selAllKeysForObject_Handle = Selector.GetHandle("allKeysForObject:"); private static readonly IntPtr selIsEqualToDictionary_Handle = Selector.GetHandle("isEqualToDictionary:"); private static readonly IntPtr selObjectsForKeysNotFoundMarker_Handle = Selector.GetHandle("objectsForKeys:notFoundMarker:"); private static readonly IntPtr selWriteToFileAtomically_Handle = Selector.GetHandle("writeToFile:atomically:"); private static readonly IntPtr selWriteToURLAtomically_Handle = Selector.GetHandle("writeToURL:atomically:"); private static readonly IntPtr selSharedKeySetForKeys_Handle = Selector.GetHandle("sharedKeySetForKeys:"); #region private const string selObjectsForKeys_NotFoundMarker_ = "objectsForKeys:notFoundMarker:"; private static readonly IntPtr selObjectsForKeys_NotFoundMarker_Handle = Selector.GetHandle(selObjectsForKeys_NotFoundMarker_); private const string selDictionaryWithObjects_ForKeys_ = "dictionaryWithObjects:forKeys:"; private static readonly IntPtr selDictionaryWithObjects_ForKeys_Handle = Selector.GetHandle(selDictionaryWithObjects_ForKeys_); private const string selDictionaryWithObjects_ForKeys_Count_ = "dictionaryWithObjects:forKeys:count:"; private static readonly IntPtr selDictionaryWithObjects_ForKeys_Count_Handle = Selector.GetHandle(selDictionaryWithObjects_ForKeys_Count_); #endregion private static readonly IntPtr class_ptr = Class.GetHandle("NSDictionary"); private object __mt_Keys_var; private object __mt_Values_var; private object __mt_ObjectEnumerator_var; int ICollection.Count => (int)Count; bool ICollection.IsSynchronized => false; object ICollection.SyncRoot => this; int ICollection>.Count => (int)Count; bool ICollection>.IsReadOnly => true; bool IDictionary.IsFixedSize => true; bool IDictionary.IsReadOnly => true; object IDictionary.this[object key] { get { if (!(key is NSObject key2)) { return null; } return ObjectForKey(key2); } set { throw new NotSupportedException(); } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; public virtual NSObject this[NSObject key] { get { if (key == null) { throw new ArgumentNullException("key"); } return ObjectForKey(key); } set { throw new NotSupportedException(); } } public virtual NSObject this[NSString key] { get { if (key == null) { throw new ArgumentNullException("key"); } return ObjectForKey(key); } set { throw new NotSupportedException(); } } public virtual NSObject this[string key] { get { if (key == null) { throw new ArgumentNullException("key"); } using NSString key2 = new NSString(key); return ObjectForKey(key2); } set { throw new NotSupportedException(); } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; public override IntPtr ClassHandle => class_ptr; public virtual ulong Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(Handle, selCountHandle); } return Messaging.UInt64_objc_msgSendSuper(SuperHandle, selCountHandle); } } public virtual NSObject[] Keys { [Export("allKeys")] get { using (new NSAutoreleasePool()) { return (NSObject[])(__mt_Keys_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAllKeysHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selAllKeysHandle)))); } } } public virtual NSObject[] Values { [Export("allValues")] get { using (new NSAutoreleasePool()) { return (NSObject[])(__mt_Values_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAllValuesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selAllValuesHandle)))); } } } public virtual string DescriptionInStringsFileFormat { [Export("descriptionInStringsFileFormat")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selDescriptionInStringsFileFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDescriptionInStringsFileFormatHandle)); } } public virtual NSEnumerator ObjectEnumerator { [Export("objectEnumerator")] get { return (NSEnumerator)(__mt_ObjectEnumerator_var = ((!IsDirectBinding) ? ((NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selObjectEnumeratorHandle))) : ((NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selObjectEnumeratorHandle))))); } } public NSDictionary(NSObject first, NSObject second, params NSObject[] args) : this(PickOdd(second, args), PickEven(first, args)) { } public NSDictionary(object first, object second, params object[] args) : this(PickOdd(second, args), PickEven(first, args)) { } private static NSArray PickEven(NSObject f, NSObject[] args) { int num = args.Length; if (num % 2 != 0) { throw new ArgumentException("The arguments to NSDictionary should be a multiple of two", "args"); } NSObject[] array = new NSObject[1 + num / 2]; array[0] = f; int i = 0; int num2 = 1; for (; i < num; i += 2) { array[num2++] = args[i]; } return NSArray.FromNSObjects(array); } private static NSArray PickOdd(NSObject f, NSObject[] args) { NSObject[] array = new NSObject[1 + args.Length / 2]; array[0] = f; int i = 1; int num = 1; for (; i < args.Length; i += 2) { array[num++] = args[i]; } return NSArray.FromNSObjects(array); } private static NSArray PickEven(object f, object[] args) { int num = args.Length; if (num % 2 != 0) { throw new ArgumentException("The arguments to NSDictionary should be a multiple of two", "args"); } object[] array = new object[1 + num / 2]; array[0] = f; int i = 0; int num2 = 1; for (; i < num; i += 2) { array[num2++] = args[i]; } return NSArray.FromObjects(array); } private static NSArray PickOdd(object f, object[] args) { object[] array = new object[1 + args.Length / 2]; array[0] = f; int i = 1; int num = 1; for (; i < args.Length; i += 2) { array[num++] = args[i]; } return NSArray.FromObjects(array); } public static NSDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } NSArray nSArray = NSArray.FromNSObjects(objects); NSArray nSArray2 = NSArray.FromNSObjects(keys); NSDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public static NSDictionary FromObjectsAndKeys(object[] objects, object[] keys) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } NSArray nSArray = NSArray.FromObjects(objects); NSArray nSArray2 = NSArray.FromObjects(keys); NSDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public static NSDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys, int count) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } NSArray nSArray = NSArray.FromNSObjects(objects, count); NSArray nSArray2 = NSArray.FromNSObjects(keys, count); NSDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public static NSDictionary FromObjectsAndKeys(object[] objects, object[] keys, int count) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } NSArray nSArray = NSArray.FromObjects(count, objects); NSArray nSArray2 = NSArray.FromObjects(count, keys); NSDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } internal bool ContainsKeyValuePair(KeyValuePair pair) { if (!TryGetValue(pair.Key, out var value)) { return false; } return EqualityComparer.Default.Equals(pair.Value, value); } void ICollection.CopyTo(Array array, int arrayIndex) { if (array == null) { throw new ArgumentNullException("array"); } if (arrayIndex < 0) { throw new ArgumentOutOfRangeException("arrayIndex"); } if (array.Rank > 1) { throw new ArgumentException("array is multidimensional"); } if (array.Length > 0 && arrayIndex >= array.Length) { throw new ArgumentException("arrayIndex is equal to or greater than array.Length"); } if (arrayIndex + (int)Count > array.Length) { throw new ArgumentException("Not enough room from arrayIndex to end of array for this Hashtable"); } IDictionaryEnumerator enumerator = ((IDictionary)this).GetEnumerator(); int num = arrayIndex; while (enumerator.MoveNext()) { array.SetValue(enumerator.Entry, num++); } } void ICollection>.Add(KeyValuePair item) { throw new NotSupportedException(); } void ICollection>.Clear() { throw new NotSupportedException(); } bool ICollection>.Contains(KeyValuePair keyValuePair) { return ContainsKeyValuePair(keyValuePair); } void ICollection>.CopyTo(KeyValuePair[] array, int index) { if (array == null) { throw new ArgumentNullException("array"); } if (index < 0) { throw new ArgumentOutOfRangeException("index"); } if (index > array.Length) { throw new ArgumentException("index larger than largest valid index of array"); } if (array.Length - index < (int)Count) { throw new ArgumentException("Destination array cannot hold the requested elements!"); } IEnumerator> enumerator = GetEnumerator(); while (enumerator.MoveNext()) { array[index++] = enumerator.Current; } } bool ICollection>.Remove(KeyValuePair keyValuePair) { throw new NotSupportedException(); } void IDictionary.Add(object key, object value) { throw new NotSupportedException(); } void IDictionary.Clear() { throw new NotSupportedException(); } bool IDictionary.Contains(object key) { if (key == null) { throw new ArgumentNullException("key"); } if (!(key is NSObject key2)) { return false; } return ContainsKey(key2); } IDictionaryEnumerator IDictionary.GetEnumerator() { return new ShimEnumerator(this); } void IDictionary.Remove(object key) { throw new NotSupportedException(); } void IDictionary.Add(NSObject key, NSObject value) { throw new NotSupportedException(); } public bool ContainsKey(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } return ObjectForKey(key) != null; } bool IDictionary.Remove(NSObject key) { throw new NotSupportedException(); } public bool TryGetValue(NSObject key, out NSObject value) { if (key == null) { throw new ArgumentNullException("key"); } value = ObjectForKey(key); if (value == null) { return false; } return true; } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public IEnumerator> GetEnumerator() { NSObject[] keys = Keys; foreach (NSObject key in keys) { yield return new KeyValuePair(key, ObjectForKey(key)); } } public IntPtr LowlevelObjectForKey(IntPtr key) { return Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selObjectForKey_Handle, key); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDictionary() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend(Handle, Selector.Init); } else { Handle = Messaging.IntPtr_objc_msgSendSuper(SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDictionary(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDictionary(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDictionary(IntPtr handle) : base(handle) { } [Export("dictionaryWithContentsOfFile:")] public static NSDictionary FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("dictionaryWithContentsOfURL:")] public static NSDictionary FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithContentsOfURL_Handle, url.Handle)); } [Export("dictionaryWithObject:forKey:")] public static NSDictionary FromObjectAndKey(NSObject obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjectForKey_Handle, obj.Handle, key.Handle)); } [Export("dictionaryWithDictionary:")] public static NSDictionary FromDictionary(NSDictionary source) { if (source == null) { throw new ArgumentNullException("source"); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithDictionary_Handle, source.Handle)); } [Export("dictionaryWithObjects:forKeys:count:")] internal static NSDictionary FromObjectsAndKeysInternal(NSArray objects, NSArray keys, ulong count) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(class_ptr, selDictionaryWithObjectsForKeysCount_Handle, objects?.Handle ?? IntPtr.Zero, keys?.Handle ?? IntPtr.Zero, count)); } [Export("dictionaryWithObjects:forKeys:")] internal static NSDictionary FromObjectsAndKeysInternal(NSArray objects, NSArray keys) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjectsForKeys_Handle, objects?.Handle ?? IntPtr.Zero, keys?.Handle ?? IntPtr.Zero)); } [Export("initWithDictionary:")] public NSDictionary(NSDictionary other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithDictionary_Handle, other.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithDictionary_Handle, other.Handle); } } [Export("initWithContentsOfFile:")] public NSDictionary(string fileName) : base(NSObjectFlag.Empty) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr arg = NSString.CreateNative(fileName); if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithContentsOfFile_Handle, arg); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithContentsOfFile_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithObjects:forKeys:")] internal NSDictionary(NSArray objects, NSArray keys) : base(NSObjectFlag.Empty) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selInitWithObjectsForKeys_Handle, objects.Handle, keys.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selInitWithObjectsForKeys_Handle, objects.Handle, keys.Handle); } } [Export("initWithContentsOfURL:")] public NSDictionary(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } [Export("objectForKey:")] public virtual NSObject ObjectForKey(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selObjectForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selObjectForKey_Handle, key.Handle)); } [Export("allKeysForObject:")] public virtual NSObject[] KeysForObject(NSObject obj) { using (new NSAutoreleasePool()) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selAllKeysForObject_Handle, obj.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selAllKeysForObject_Handle, obj.Handle)); } } [Export("isEqualToDictionary:")] public virtual bool IsEqualToDictionary(NSDictionary other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selIsEqualToDictionary_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selIsEqualToDictionary_Handle, other.Handle); } [Export("objectsForKeys:notFoundMarker:")] public virtual NSObject[] ObjectsForKeys(NSArray keys, NSObject marker) { using (new NSAutoreleasePool()) { if (keys == null) { throw new ArgumentNullException("keys"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selObjectsForKeysNotFoundMarker_Handle, keys.Handle, marker.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selObjectsForKeysNotFoundMarker_Handle, keys.Handle, marker.Handle)); } } [Export("writeToFile:atomically:")] public virtual bool WriteToFile(string path, bool useAuxiliaryFile) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool(SuperHandle, selWriteToFileAtomically_Handle, arg, useAuxiliaryFile) : Messaging.bool_objc_msgSend_IntPtr_bool(Handle, selWriteToFileAtomically_Handle, arg, useAuxiliaryFile)); NSString.ReleaseNative(arg); return result; } [Export("writeToURL:atomically:")] public virtual bool WriteToUrl(NSUrl url, bool atomically) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_bool(Handle, selWriteToURLAtomically_Handle, url.Handle, atomically); } return Messaging.bool_objc_msgSendSuper_IntPtr_bool(SuperHandle, selWriteToURLAtomically_Handle, url.Handle, atomically); } [Export("sharedKeySetForKeys:")] public static NSObject GetSharedKeySetForKeys(NSObject[] keys) { if (keys == null) { throw new ArgumentNullException("keys"); } NSArray nSArray = NSArray.FromNSObjects(keys); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSharedKeySetForKeys_Handle, nSArray.Handle)); nSArray.Dispose(); return nSObject; } #region internal IntPtr _AllKeys() { return Messaging.IntPtr_objc_msgSend(Handle, selAllKeysHandle); } internal IntPtr _AllKeysForObject(IntPtr obj) { return Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selAllKeysForObject_Handle, obj); } internal IntPtr _AllValues() { return Messaging.IntPtr_objc_msgSend(Handle, selAllValuesHandle); } internal IntPtr _ObjectForKey(IntPtr key) { return Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selObjectForKey_Handle, key); } internal IntPtr _ObjectsForKeys(IntPtr keys, IntPtr marker) { return Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selObjectsForKeys_NotFoundMarker_Handle, keys, marker); } [Export(selDictionaryWithObjects_ForKeys_)] internal static IntPtr _FromObjectsAndKeysInternal(IntPtr objects, IntPtr keys) { return Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjects_ForKeys_Handle, objects, keys); } [Export(selDictionaryWithObjects_ForKeys_Count_)] internal static IntPtr _FromObjectsAndKeysInternal(IntPtr objects, IntPtr keys, long count) { return Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_long(class_ptr, selDictionaryWithObjects_ForKeys_Count_Handle, objects, keys, count); } internal bool TryGetValueTx(INativeObject key, out T value) where T : class, INativeObject { if (key == null) { throw new ArgumentNullException("key"); } value = null; IntPtr intPtr = _ObjectForKey(key.Handle); if (intPtr == IntPtr.Zero) { return false; } value = Runtime.GetNativeObject(intPtr); return true; } #endregion protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) { __mt_Keys_var = null; __mt_Values_var = null; __mt_ObjectEnumerator_var = null; } } } [Register("NSDictionary", SkipRegistration = true)] public sealed class NSDictionary : NSDictionary, IDictionary, ICollection>, IEnumerable>, IEnumerable where TKey : class, INativeObject where TValue : class, INativeObject { public new TKey[] Keys { get { using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllKeys()); } } } public new TValue[] Values { get { using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllValues()); } } } public TValue this[TKey key] => ObjectForKey(key); TValue IDictionary.this[TKey key] { get { return this[key]; } set { throw new NotSupportedException(); } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; int ICollection>.Count => (int)Count; bool ICollection>.IsReadOnly => true; public NSDictionary() { } public NSDictionary(NSCoder coder) : base(coder) { } public NSDictionary(string filename) : base(filename) { } public NSDictionary(NSUrl url) : base(url) { } internal NSDictionary(IntPtr handle) : base(handle) { } public NSDictionary(NSDictionary other) : base(other) { } internal static bool ValidateKeysAndValues(TKey[] keys, TValue[] values) { if (keys == null) { throw new ArgumentNullException("keys"); } if (values == null) { throw new ArgumentNullException("values"); } if (values.Length != keys.Length) { throw new ArgumentException("values and keys arrays have different sizes"); } return true; } private NSDictionary(TKey[] keys, TValue[] values, bool validation) : base(NSArray.FromNativeObjectsTx(values), NSArray.FromNativeObjectsTx(keys)) { } public NSDictionary(TKey[] keys, TValue[] values) : this(keys, values, ValidateKeysAndValues(keys, values)) { } public NSDictionary(TKey key, TValue value) : base(NSArray.FromNSObjectsTx(value), NSArray.FromNSObjectsTx(key)) { } public TValue ObjectForKey(TKey key) { if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNativeObject(_ObjectForKey(key.Handle)); } public TKey[] KeysForObject(TValue obj) { if (obj == null) { throw new ArgumentNullException("obj"); } using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllKeysForObject(obj.Handle)); } } public TValue[] ObjectsForKeys(TKey[] keys, TValue marker) { if (keys == null) { throw new ArgumentNullException("keys"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (keys.Length == 0) { return new TValue[0]; } using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_ObjectsForKeys(NSArray.From(keys, -1L).Handle, marker.Handle)); } } private static NSDictionary GenericFromObjectsAndKeysInternal(NSArray objects, NSArray keys) { return Runtime.GetNativeObject>(NSDictionary._FromObjectsAndKeysInternal(objects.Handle, keys.Handle)); } public static NSDictionary FromObjectsAndKeys(TValue[] objects, TKey[] keys, nint count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromNativeObjectsTx(objects, count); using NSArray keys2 = NSArray.FromNativeObjectsTx(keys, count); return GenericFromObjectsAndKeysInternal(objects2, keys2); } [Obsolete("'TKey' and 'TValue' are inversed and won't work unless both types are identical. Use the generic overload that takes a count parameter instead.")] public static NSDictionary FromObjectsAndKeys(TKey[] objects, TValue[] keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } using NSArray objects2 = NSArray.FromNativeObjectsTx(objects); using NSArray keys2 = NSArray.FromNativeObjectsTx(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public new static NSDictionary FromObjectsAndKeys(object[] objects, object[] keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } using NSArray objects2 = NSArray.FromObjects(objects); using NSArray keys2 = NSArray.FromObjects(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public static NSDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys, long count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromNativeObjectsTx(objects, count); using NSArray keys2 = NSArray.FromNativeObjectsTx(keys, count); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public static NSDictionary FromObjectsAndKeys(object[] objects, object[] keys, long count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromObjects(count, objects); using NSArray keys2 = NSArray.FromObjects(count, keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public bool ContainsKey(TKey key) { if (key == null) { throw new ArgumentNullException("key"); } return _ObjectForKey(key.Handle) != IntPtr.Zero; } public bool TryGetValue(TKey key, out TValue value) { return (value = ObjectForKey(key)) != null; } bool IDictionary.ContainsKey(TKey key) { return ContainsKey(key); } void IDictionary.Add(TKey key, TValue value) { throw new NotSupportedException(); } bool IDictionary.Remove(TKey key) { throw new NotSupportedException(); } bool IDictionary.TryGetValue(TKey key, out TValue value) { return TryGetValue(key, out value); } void ICollection>.Add(KeyValuePair item) { throw new NotSupportedException(); } void ICollection>.Clear() { throw new NotSupportedException(); } bool ICollection>.Contains(KeyValuePair item) { if (!TryGetValueTx((INativeObject)item.Key, out TValue value)) return false; return value == item.Value; } void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) { if (array == null) { throw new ArgumentNullException("array"); } if (arrayIndex < 0) { throw new ArgumentOutOfRangeException("arrayIndex"); } int num = array.Length; if (num > 0 && arrayIndex >= num) { throw new ArgumentException("arrayIndex is equal to or greater than array.Length"); } if (arrayIndex + (int)Count > num) { throw new ArgumentException("Not enough room from arrayIndex to end of array for this dictionary"); } int num2 = arrayIndex; foreach (KeyValuePair item in (IEnumerable>)this) { array[num2++] = item; } } bool ICollection>.Remove(KeyValuePair item) { throw new NotSupportedException(); } IEnumerator> IEnumerable>.GetEnumerator() { TKey[] keys = Keys; foreach (TKey key in keys) { yield return new KeyValuePair(key, ObjectForKey(key)); } } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDirectoryEnumerationOptions.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Since(4, 0)] [Flags] public enum NSDirectoryEnumerationOptions : ulong { SkipsNone = 0uL, SkipsSubdirectoryDescendants = 1uL, SkipsPackageDescendants = 2uL, SkipsHiddenFiles = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDirectoryEnumerator.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDirectoryEnumerator", true)] public class NSDirectoryEnumerator : NSEnumerator { private static readonly IntPtr selFileAttributesHandle = Selector.GetHandle("fileAttributes"); private static readonly IntPtr selDirectoryAttributesHandle = Selector.GetHandle("directoryAttributes"); private static readonly IntPtr selSkipDescendentsHandle = Selector.GetHandle("skipDescendents"); private static readonly IntPtr selFileModificationDateHandle = Selector.GetHandle("fileModificationDate"); private static readonly IntPtr selFileTypeHandle = Selector.GetHandle("fileType"); private static readonly IntPtr selFilePosixPermissionsHandle = Selector.GetHandle("filePosixPermissions"); private static readonly IntPtr selFileOwnerAccountNameHandle = Selector.GetHandle("fileOwnerAccountName"); private static readonly IntPtr selFileGroupOwnerAccountNameHandle = Selector.GetHandle("fileGroupOwnerAccountName"); private static readonly IntPtr selFileSystemNumberHandle = Selector.GetHandle("fileSystemNumber"); private static readonly IntPtr selFileSystemFileNumberHandle = Selector.GetHandle("fileSystemFileNumber"); private static readonly IntPtr selFileExtensionHiddenHandle = Selector.GetHandle("fileExtensionHidden"); private static readonly IntPtr selFileHFSCreatorCodeHandle = Selector.GetHandle("fileHFSCreatorCode"); private static readonly IntPtr selFileHFSTypeCodeHandle = Selector.GetHandle("fileHFSTypeCode"); private static readonly IntPtr selFileIsImmutableHandle = Selector.GetHandle("fileIsImmutable"); private static readonly IntPtr selFileIsAppendOnlyHandle = Selector.GetHandle("fileIsAppendOnly"); private static readonly IntPtr selFileCreationDateHandle = Selector.GetHandle("fileCreationDate"); private static readonly IntPtr selFileOwnerAccountIDHandle = Selector.GetHandle("fileOwnerAccountID"); private static readonly IntPtr selFileGroupOwnerAccountIDHandle = Selector.GetHandle("fileGroupOwnerAccountID"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDirectoryEnumerator"); private object __mt_FileAttributes_var; private object __mt_DirectoryAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary FileAttributes { [Export("fileAttributes")] get { return (NSDictionary)(__mt_FileAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileAttributesHandle))))); } } public virtual NSDictionary DirectoryAttributes { [Export("directoryAttributes")] get { return (NSDictionary)(__mt_DirectoryAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDirectoryAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDirectoryAttributesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDirectoryEnumerator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDirectoryEnumerator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDirectoryEnumerator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDirectoryEnumerator(IntPtr handle) : base(handle) { } [Export("skipDescendents")] public virtual void SkipDescendents() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSkipDescendentsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSkipDescendentsHandle); } } [Export("fileModificationDate")] public virtual NSDate FileModificationDate(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileModificationDateHandle)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileModificationDateHandle)); } [Export("fileType")] public virtual string FileType(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileTypeHandle)); } [Export("filePosixPermissions")] public virtual uint FilePosixPermissions(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(fileAttributes.Handle, selFilePosixPermissionsHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFilePosixPermissionsHandle); } [Export("fileOwnerAccountName")] public virtual string FileOwnerAccountName(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileOwnerAccountNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileOwnerAccountNameHandle)); } [Export("fileGroupOwnerAccountName")] public virtual string FileGroupOwnerAccountName(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileGroupOwnerAccountNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileGroupOwnerAccountNameHandle)); } [Export("fileSystemNumber")] public virtual long FileSystemNumber(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(fileAttributes.Handle, selFileSystemNumberHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selFileSystemNumberHandle); } [Export("fileSystemFileNumber")] public virtual ulong FileSystemFileNumber(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(fileAttributes.Handle, selFileSystemFileNumberHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFileSystemFileNumberHandle); } [Export("fileExtensionHidden")] public virtual bool FileExtensionHidden(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend(fileAttributes.Handle, selFileExtensionHiddenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFileExtensionHiddenHandle); } [Export("fileHFSCreatorCode")] public virtual uint FileHfsCreatorCode(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(fileAttributes.Handle, selFileHFSCreatorCodeHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFileHFSCreatorCodeHandle); } [Export("fileHFSTypeCode")] public virtual uint FileHfsTypeCode(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(fileAttributes.Handle, selFileHFSTypeCodeHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFileHFSTypeCodeHandle); } [Export("fileIsImmutable")] public virtual bool FileIsImmutable(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend(fileAttributes.Handle, selFileIsImmutableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFileIsImmutableHandle); } [Export("fileIsAppendOnly")] public virtual bool FileIsAppendOnly(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend(fileAttributes.Handle, selFileIsAppendOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFileIsAppendOnlyHandle); } [Export("fileCreationDate")] public virtual NSDate FileCreationDate(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileCreationDateHandle)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileCreationDateHandle)); } [Export("fileOwnerAccountID")] public virtual NSNumber FileOwnerAccountID(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileOwnerAccountIDHandle)); } return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileOwnerAccountIDHandle)); } [Export("fileGroupOwnerAccountID")] public virtual NSNumber FileGroupOwnerAccountID(NSDictionary fileAttributes) { if (fileAttributes == null) { throw new ArgumentNullException("fileAttributes"); } if (IsDirectBinding) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(fileAttributes.Handle, selFileGroupOwnerAccountIDHandle)); } return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileGroupOwnerAccountIDHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FileAttributes_var = null; __mt_DirectoryAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDistantObjectRequest.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDistantObjectRequest", true)] public class NSDistantObjectRequest : NSObject { private static readonly IntPtr selConnectionHandle = Selector.GetHandle("connection"); private static readonly IntPtr selConversationHandle = Selector.GetHandle("conversation"); private static readonly IntPtr selInvocationHandle = Selector.GetHandle("invocation"); private static readonly IntPtr selReplyWithException_Handle = Selector.GetHandle("replyWithException:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDistantObjectRequest"); private object __mt_Connection_var; private object __mt_Conversation_var; private object __mt_Invocation_var; public override IntPtr ClassHandle => class_ptr; public virtual NSConnection Connection { [Export("connection")] get { return (NSConnection)(__mt_Connection_var = ((!IsDirectBinding) ? ((NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionHandle))) : ((NSConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionHandle))))); } } public virtual NSObject Conversation { [Export("conversation")] get { return (NSObject)(__mt_Conversation_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConversationHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConversationHandle)))); } } public virtual NSInvocation Invocation { [Export("invocation")] get { return (NSInvocation)(__mt_Invocation_var = ((!IsDirectBinding) ? ((NSInvocation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInvocationHandle))) : ((NSInvocation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInvocationHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDistantObjectRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDistantObjectRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDistantObjectRequest(IntPtr handle) : base(handle) { } [Export("replyWithException:")] public virtual void Reply(NSException exception) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplyWithException_Handle, exception?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplyWithException_Handle, exception?.Handle ?? IntPtr.Zero); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Connection_var = null; __mt_Conversation_var = null; __mt_Invocation_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSDistributedNotificationCenter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSDistributedNotificationCenter", true)] public class NSDistributedNotificationCenter : NSNotificationCenter { private static readonly IntPtr selDefaultCenterHandle = Selector.GetHandle("defaultCenter"); private static readonly IntPtr selSuspendedHandle = Selector.GetHandle("suspended"); private static readonly IntPtr selSetSuspended_Handle = Selector.GetHandle("setSuspended:"); private static readonly IntPtr selAddObserverSelectorNameObjectSuspensionBehavior_Handle = Selector.GetHandle("addObserver:selector:name:object:suspensionBehavior:"); private static readonly IntPtr selPostNotificationNameObjectUserInfoDeliverImmediately_Handle = Selector.GetHandle("postNotificationName:object:userInfo:deliverImmediately:"); private static readonly IntPtr selPostNotificationNameObjectUserInfoOptions_Handle = Selector.GetHandle("postNotificationName:object:userInfo:options:"); private static readonly IntPtr selAddObserverSelectorNameObject_Handle = Selector.GetHandle("addObserver:selector:name:object:"); private static readonly IntPtr selPostNotificationNameObject_Handle = Selector.GetHandle("postNotificationName:object:"); private static readonly IntPtr selPostNotificationNameObjectUserInfo_Handle = Selector.GetHandle("postNotificationName:object:userInfo:"); private static readonly IntPtr selRemoveObserverNameObject_Handle = Selector.GetHandle("removeObserver:name:object:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSDistributedNotificationCenter"); private static object __mt_DefaultCenter_var_static; private static NSString _NSLocalNotificationCenterType; public override IntPtr ClassHandle => class_ptr; public new static NSObject DefaultCenter { [Export("defaultCenter")] get { return (NSObject)(__mt_DefaultCenter_var_static = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultCenterHandle))); } } public virtual bool Suspended { [Export("suspended")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSuspendedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSuspendedHandle); } [Export("setSuspended:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSuspended_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSuspended_Handle, value); } } } [Field("NSLocalNotificationCenterType", "Foundation")] public static NSString NSLocalNotificationCenterType { get { if (_NSLocalNotificationCenterType == null) { _NSLocalNotificationCenterType = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocalNotificationCenterType"); } return _NSLocalNotificationCenterType; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSDistributedNotificationCenter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSDistributedNotificationCenter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDistributedNotificationCenter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSDistributedNotificationCenter(IntPtr handle) : base(handle) { } [Export("addObserver:selector:name:object:suspensionBehavior:")] public virtual void AddObserver(NSObject observer, Selector selector, string notificationName, string notificationSenderc, NSNotificationSuspensionBehavior suspensionBehavior) { if (observer == null) { throw new ArgumentNullException("observer"); } if (selector == null) { throw new ArgumentNullException("selector"); } IntPtr arg = NSString.CreateNative(notificationName); IntPtr arg2 = NSString.CreateNative(notificationSenderc); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_UInt64(base.Handle, selAddObserverSelectorNameObjectSuspensionBehavior_Handle, observer.Handle, selector.Handle, arg, arg2, (ulong)suspensionBehavior); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_UInt64(base.SuperHandle, selAddObserverSelectorNameObjectSuspensionBehavior_Handle, observer.Handle, selector.Handle, arg, arg2, (ulong)suspensionBehavior); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("postNotificationName:object:userInfo:deliverImmediately:")] public virtual void PostNotificationName(string name, string anObject, NSDictionary userInfo, bool deliverImmediately) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(anObject); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool(base.Handle, selPostNotificationNameObjectUserInfoDeliverImmediately_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero, deliverImmediately); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool(base.SuperHandle, selPostNotificationNameObjectUserInfoDeliverImmediately_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero, deliverImmediately); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("postNotificationName:object:userInfo:options:")] public virtual void PostNotificationName(string name, string anObjecb, NSDictionary userInfo, NSNotificationFlags options) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(anObjecb); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64(base.Handle, selPostNotificationNameObjectUserInfoOptions_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero, (ulong)options); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64(base.SuperHandle, selPostNotificationNameObjectUserInfoOptions_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero, (ulong)options); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("addObserver:selector:name:object:")] public new virtual void AddObserver(NSObject observer, Selector aSelector, string aName, NSObject anObject) { if (observer == null) { throw new ArgumentNullException("observer"); } if (aSelector == null) { throw new ArgumentNullException("aSelector"); } IntPtr arg = NSString.CreateNative(aName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selAddObserverSelectorNameObject_Handle, observer.Handle, aSelector.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddObserverSelectorNameObject_Handle, observer.Handle, aSelector.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } [Export("postNotificationName:object:")] public virtual void PostNotificationName(string aName, string anObject) { if (aName == null) { throw new ArgumentNullException("aName"); } IntPtr arg = NSString.CreateNative(aName); IntPtr arg2 = NSString.CreateNative(anObject); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selPostNotificationNameObject_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPostNotificationNameObject_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("postNotificationName:object:userInfo:")] public virtual void PostNotificationName(string aName, string anObject, NSDictionary aUserInfo) { if (aName == null) { throw new ArgumentNullException("aName"); } IntPtr arg = NSString.CreateNative(aName); IntPtr arg2 = NSString.CreateNative(anObject); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selPostNotificationNameObjectUserInfo_Handle, arg, arg2, aUserInfo?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPostNotificationNameObjectUserInfo_Handle, arg, arg2, aUserInfo?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("removeObserver:name:object:")] public new virtual void RemoveObserver(NSObject observer, string aName, NSObject anObject) { if (observer == null) { throw new ArgumentNullException("observer"); } IntPtr arg = NSString.CreateNative(aName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRemoveObserverNameObject_Handle, observer.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRemoveObserverNameObject_Handle, observer.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSEncodeHook.cs ================================================ namespace Foundation; public delegate NSObject NSEncodeHook(NSKeyedArchiver archiver, NSObject obj); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSEnumerateErrorHandler.cs ================================================ namespace Foundation; public delegate bool NSEnumerateErrorHandler(NSUrl url, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSEnumerationOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSEnumerationOptions : ulong { SortConcurrent = 1uL, Reverse = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSEnumerator.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSEnumerator", true)] public class NSEnumerator : NSObject { private static readonly IntPtr selNextObjectHandle = Selector.GetHandle("nextObject"); private static readonly IntPtr class_ptr = Class.GetHandle("NSEnumerator"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSEnumerator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSEnumerator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEnumerator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSEnumerator(IntPtr handle) : base(handle) { } [Export("nextObject")] public virtual NSObject NextObject() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextObjectHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextObjectHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSError.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSError", true)] public class NSError : NSObject { private static readonly IntPtr selDomainHandle = Selector.GetHandle("domain"); private static readonly IntPtr selCodeHandle = Selector.GetHandle("code"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selLocalizedDescriptionHandle = Selector.GetHandle("localizedDescription"); private static readonly IntPtr selErrorWithDomainCodeUserInfo_Handle = Selector.GetHandle("errorWithDomain:code:userInfo:"); private static readonly IntPtr selInitWithDomainCodeUserInfo_Handle = Selector.GetHandle("initWithDomain:code:userInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSError"); private object __mt_UserInfo_var; private static NSString _CocoaErrorDomain; private static NSString _PosixErrorDomain; private static NSString _OsStatusErrorDomain; private static NSString _MachErrorDomain; private static NSString _UnderlyingErrorKey; private static NSString _LocalizedDescriptionKey; private static NSString _LocalizedFailureReasonErrorKey; private static NSString _LocalizedRecoverySuggestionErrorKey; private static NSString _LocalizedRecoveryOptionsErrorKey; private static NSString _RecoveryAttempterErrorKey; private static NSString _HelpAnchorErrorKey; private static NSString _StringEncodingErrorKey; private static NSString _UrlErrorKey; private static NSString _FilePathErrorKey; public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSError(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSError(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSError(IntPtr handle) : base(handle) { } [Advice("Always specify a domain and error code when creating an NSError instance")] public NSError() : this(new NSString("Invalid .ctor used"), 0L, null) { } public NSError(NSString domain, int code) : this(domain, code, null) { } public virtual string Domain { [Export("domain")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDomainHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDomainHandle)); } } public virtual long Code { [Export("code")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selCodeHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selCodeHandle); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } } public virtual string LocalizedDescription { [Export("localizedDescription")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedDescriptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedDescriptionHandle)); } } [Field("NSCocoaErrorDomain", "Foundation")] public static NSString CocoaErrorDomain { get { if (_CocoaErrorDomain == null) { _CocoaErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSCocoaErrorDomain"); } return _CocoaErrorDomain; } } [Field("NSPOSIXErrorDomain", "Foundation")] public static NSString PosixErrorDomain { get { if (_PosixErrorDomain == null) { _PosixErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSPOSIXErrorDomain"); } return _PosixErrorDomain; } } [Field("NSOSStatusErrorDomain", "Foundation")] public static NSString OsStatusErrorDomain { get { if (_OsStatusErrorDomain == null) { _OsStatusErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSOSStatusErrorDomain"); } return _OsStatusErrorDomain; } } [Field("NSMachErrorDomain", "Foundation")] public static NSString MachErrorDomain { get { if (_MachErrorDomain == null) { _MachErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMachErrorDomain"); } return _MachErrorDomain; } } [Field("NSUnderlyingErrorKey", "Foundation")] public static NSString UnderlyingErrorKey { get { if (_UnderlyingErrorKey == null) { _UnderlyingErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUnderlyingErrorKey"); } return _UnderlyingErrorKey; } } [Field("NSLocalizedDescriptionKey", "Foundation")] public static NSString LocalizedDescriptionKey { get { if (_LocalizedDescriptionKey == null) { _LocalizedDescriptionKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocalizedDescriptionKey"); } return _LocalizedDescriptionKey; } } [Field("NSLocalizedFailureReasonErrorKey", "Foundation")] public static NSString LocalizedFailureReasonErrorKey { get { if (_LocalizedFailureReasonErrorKey == null) { _LocalizedFailureReasonErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocalizedFailureReasonErrorKey"); } return _LocalizedFailureReasonErrorKey; } } [Field("NSLocalizedRecoverySuggestionErrorKey", "Foundation")] public static NSString LocalizedRecoverySuggestionErrorKey { get { if (_LocalizedRecoverySuggestionErrorKey == null) { _LocalizedRecoverySuggestionErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocalizedRecoverySuggestionErrorKey"); } return _LocalizedRecoverySuggestionErrorKey; } } [Field("NSLocalizedRecoveryOptionsErrorKey", "Foundation")] public static NSString LocalizedRecoveryOptionsErrorKey { get { if (_LocalizedRecoveryOptionsErrorKey == null) { _LocalizedRecoveryOptionsErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocalizedRecoveryOptionsErrorKey"); } return _LocalizedRecoveryOptionsErrorKey; } } [Field("NSRecoveryAttempterErrorKey", "Foundation")] public static NSString RecoveryAttempterErrorKey { get { if (_RecoveryAttempterErrorKey == null) { _RecoveryAttempterErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSRecoveryAttempterErrorKey"); } return _RecoveryAttempterErrorKey; } } [Field("NSHelpAnchorErrorKey", "Foundation")] public static NSString HelpAnchorErrorKey { get { if (_HelpAnchorErrorKey == null) { _HelpAnchorErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSHelpAnchorErrorKey"); } return _HelpAnchorErrorKey; } } [Field("NSStringEncodingErrorKey", "Foundation")] public static NSString StringEncodingErrorKey { get { if (_StringEncodingErrorKey == null) { _StringEncodingErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStringEncodingErrorKey"); } return _StringEncodingErrorKey; } } [Field("NSURLErrorKey", "Foundation")] public static NSString UrlErrorKey { get { if (_UrlErrorKey == null) { _UrlErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLErrorKey"); } return _UrlErrorKey; } } [Field("NSFilePathErrorKey", "Foundation")] public static NSString FilePathErrorKey { get { if (_FilePathErrorKey == null) { _FilePathErrorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFilePathErrorKey"); } return _FilePathErrorKey; } } public static NSError FromDomain(NSString domain, int code) { return FromDomain(domain, code, null); } public override string ToString() { return LocalizedDescription; } [Export("errorWithDomain:code:userInfo:")] public static NSError FromDomain(NSString domain, long code, NSDictionary userInfo) { if (domain == null) { throw new ArgumentNullException("domain"); } return (NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_Int64_IntPtr(class_ptr, selErrorWithDomainCodeUserInfo_Handle, domain.Handle, code, userInfo?.Handle ?? IntPtr.Zero)); } [Export("initWithDomain:code:userInfo:")] public NSError(NSString domain, long code, NSDictionary userInfo) : base(NSObjectFlag.Empty) { if (domain == null) { throw new ArgumentNullException("domain"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_IntPtr(base.Handle, selInitWithDomainCodeUserInfo_Handle, domain.Handle, code, userInfo?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr(base.SuperHandle, selInitWithDomainCodeUserInfo_Handle, domain.Handle, code, userInfo?.Handle ?? IntPtr.Zero); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSErrorEventArgs.cs ================================================ using System; namespace Foundation; public class NSErrorEventArgs : EventArgs { public NSError Error { get; private set; } public NSErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSErrorException.cs ================================================ using System; namespace Foundation; public class NSErrorException : Exception { private NSError error; public NSError Error => error; public string Domain => error.Domain; public long Code => error.Code; public NSDictionary UserInfo => error.UserInfo; public NSErrorException(NSError error) { this.error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSException.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSException", true)] public class NSException : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selReasonHandle = Selector.GetHandle("reason"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selCallStackReturnAddressesHandle = Selector.GetHandle("callStackReturnAddresses"); private static readonly IntPtr selInitWithNameReasonUserInfo_Handle = Selector.GetHandle("initWithName:reason:userInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSException"); private object __mt_UserInfo_var; private object __mt_CallStackReturnAddresses_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual string Reason { [Export("reason")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selReasonHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReasonHandle)); } } public virtual NSObject UserInfo { [Export("userInfo")] get { return (NSObject)(__mt_UserInfo_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle)))); } } public virtual NSNumber[] CallStackReturnAddresses { [Export("callStackReturnAddresses")] get { return (NSNumber[])(__mt_CallStackReturnAddresses_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCallStackReturnAddressesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCallStackReturnAddressesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSException(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSException(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSException(IntPtr handle) : base(handle) { } [Export("initWithName:reason:userInfo:")] public NSException(string name, string reason, NSDictionary userInfo) : base(NSObjectFlag.Empty) { if (name == null) { throw new ArgumentNullException("name"); } if (reason == null) { throw new ArgumentNullException("reason"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(reason); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithNameReasonUserInfo_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithNameReasonUserInfo_Handle, arg, arg2, userInfo?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_UserInfo_var = null; __mt_CallStackReturnAddresses_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSExpression.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSExpression", true)] public class NSExpression : NSObject { private static readonly IntPtr selExpressionForEvaluatedObjectHandle = Selector.GetHandle("expressionForEvaluatedObject"); private static readonly IntPtr selExpressionTypeHandle = Selector.GetHandle("expressionType"); private static readonly IntPtr selConstantValueHandle = Selector.GetHandle("constantValue"); private static readonly IntPtr selKeyPathHandle = Selector.GetHandle("keyPath"); private static readonly IntPtr selFunctionHandle = Selector.GetHandle("function"); private static readonly IntPtr selVariableHandle = Selector.GetHandle("variable"); private static readonly IntPtr selOperandHandle = Selector.GetHandle("operand"); private static readonly IntPtr selArgumentsHandle = Selector.GetHandle("arguments"); private static readonly IntPtr selCollectionHandle = Selector.GetHandle("collection"); private static readonly IntPtr selPredicateHandle = Selector.GetHandle("predicate"); private static readonly IntPtr selLeftExpressionHandle = Selector.GetHandle("leftExpression"); private static readonly IntPtr selRightExpressionHandle = Selector.GetHandle("rightExpression"); private static readonly IntPtr selExpressionForConstantValue_Handle = Selector.GetHandle("expressionForConstantValue:"); private static readonly IntPtr selExpressionForVariable_Handle = Selector.GetHandle("expressionForVariable:"); private static readonly IntPtr selExpressionForKeyPath_Handle = Selector.GetHandle("expressionForKeyPath:"); private static readonly IntPtr selExpressionForFunctionArguments_Handle = Selector.GetHandle("expressionForFunction:arguments:"); private static readonly IntPtr selExpressionWithFormatArgumentArray_Handle = Selector.GetHandle("expressionWithFormat:argumentArray:"); private static readonly IntPtr selExpressionForAggregate_Handle = Selector.GetHandle("expressionForAggregate:"); private static readonly IntPtr selExpressionForUnionSetWith_Handle = Selector.GetHandle("expressionForUnionSet:with:"); private static readonly IntPtr selExpressionForIntersectSetWith_Handle = Selector.GetHandle("expressionForIntersectSet:with:"); private static readonly IntPtr selExpressionForMinusSetWith_Handle = Selector.GetHandle("expressionForMinusSet:with:"); private static readonly IntPtr selExpressionForSubqueryUsingIteratorVariablePredicate_Handle = Selector.GetHandle("expressionForSubquery:usingIteratorVariable:predicate:"); private static readonly IntPtr selExpressionForFunctionSelectorNameArguments_Handle = Selector.GetHandle("expressionForFunction:selectorName:arguments:"); private static readonly IntPtr selExpressionForBlockArguments_Handle = Selector.GetHandle("expressionForBlock:arguments:"); private static readonly IntPtr selInitWithExpressionType_Handle = Selector.GetHandle("initWithExpressionType:"); private static readonly IntPtr selExpressionValueWithObjectContext_Handle = Selector.GetHandle("expressionValueWithObject:context:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSExpression"); private static object __mt_ExpressionForEvaluatedObject_var_static; private object __mt_ConstantValue_var; private object __mt_Operand_var; private object __mt_Arguments_var; private object __mt_Collection_var; private object __mt_Predicate_var; private object __mt_LeftExpression_var; private object __mt_RightExpression_var; public override IntPtr ClassHandle => class_ptr; public static NSExpression ExpressionForEvaluatedObject { [Export("expressionForEvaluatedObject")] get { return (NSExpression)(__mt_ExpressionForEvaluatedObject_var_static = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selExpressionForEvaluatedObjectHandle))); } } public virtual NSExpressionType ExpressionType { [Export("expressionType")] get { if (IsDirectBinding) { return (NSExpressionType)Messaging.UInt64_objc_msgSend(base.Handle, selExpressionTypeHandle); } return (NSExpressionType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selExpressionTypeHandle); } } public virtual NSObject ConstantValue { [Export("constantValue")] get { return (NSObject)(__mt_ConstantValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConstantValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConstantValueHandle)))); } } public virtual string KeyPath { [Export("keyPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyPathHandle)); } } public virtual string Function { [Export("function")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFunctionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFunctionHandle)); } } public virtual string Variable { [Export("variable")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVariableHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVariableHandle)); } } public virtual NSExpression Operand { [Export("operand")] get { return (NSExpression)(__mt_Operand_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOperandHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOperandHandle))))); } } public virtual NSExpression[] Arguments { [Export("arguments")] get { return (NSExpression[])(__mt_Arguments_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArgumentsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selArgumentsHandle)))); } } public virtual NSObject Collection { [Export("collection")] get { return (NSObject)(__mt_Collection_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCollectionHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCollectionHandle)))); } } public virtual NSPredicate Predicate { [Export("predicate")] get { return (NSPredicate)(__mt_Predicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPredicateHandle))))); } } public virtual NSExpression LeftExpression { [Export("leftExpression")] get { return (NSExpression)(__mt_LeftExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLeftExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLeftExpressionHandle))))); } } public virtual NSExpression RightExpression { [Export("rightExpression")] get { return (NSExpression)(__mt_RightExpression_var = ((!IsDirectBinding) ? ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRightExpressionHandle))) : ((NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRightExpressionHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSExpression(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSExpression(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSExpression(IntPtr handle) : base(handle) { } [Export("expressionForConstantValue:")] public static NSExpression FromConstant(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selExpressionForConstantValue_Handle, obj.Handle)); } [Export("expressionForVariable:")] public static NSExpression FromVariable(string string1) { if (string1 == null) { throw new ArgumentNullException("string1"); } IntPtr arg = NSString.CreateNative(string1); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selExpressionForVariable_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("expressionForKeyPath:")] public static NSExpression FromKeyPath(string keyPath) { if (keyPath == null) { throw new ArgumentNullException("keyPath"); } IntPtr arg = NSString.CreateNative(keyPath); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selExpressionForKeyPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("expressionForFunction:arguments:")] public static NSExpression FromFunction(string name, NSExpression[] parameters) { if (name == null) { throw new ArgumentNullException("name"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } IntPtr arg = NSString.CreateNative(name); NSArray nSArray = NSArray.FromNSObjects(parameters); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionForFunctionArguments_Handle, arg, nSArray.Handle)); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("expressionWithFormat:argumentArray:")] public static NSExpression FromFormat(string format, NSExpression[] parameters) { if (format == null) { throw new ArgumentNullException("format"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } IntPtr arg = NSString.CreateNative(format); NSArray nSArray = NSArray.FromNSObjects(parameters); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionWithFormatArgumentArray_Handle, arg, nSArray.Handle)); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("expressionForAggregate:")] public static NSExpression FromAggregate(NSExpression[] subexpressions) { if (subexpressions == null) { throw new ArgumentNullException("subexpressions"); } NSArray nSArray = NSArray.FromNSObjects(subexpressions); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selExpressionForAggregate_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("expressionForUnionSet:with:")] public static NSExpression FromUnionSet(NSExpression left, NSExpression right) { if (left == null) { throw new ArgumentNullException("left"); } if (right == null) { throw new ArgumentNullException("right"); } return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionForUnionSetWith_Handle, left.Handle, right.Handle)); } [Export("expressionForIntersectSet:with:")] public static NSExpression FromIntersectSet(NSExpression left, NSExpression right) { if (left == null) { throw new ArgumentNullException("left"); } if (right == null) { throw new ArgumentNullException("right"); } return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionForIntersectSetWith_Handle, left.Handle, right.Handle)); } [Export("expressionForMinusSet:with:")] public static NSExpression FromMinusSet(NSExpression left, NSExpression right) { if (left == null) { throw new ArgumentNullException("left"); } if (right == null) { throw new ArgumentNullException("right"); } return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionForMinusSetWith_Handle, left.Handle, right.Handle)); } [Export("expressionForSubquery:usingIteratorVariable:predicate:")] public static NSExpression FromSubquery(NSExpression expression, string variable, NSObject predicate) { if (expression == null) { throw new ArgumentNullException("expression"); } if (variable == null) { throw new ArgumentNullException("variable"); } if (predicate == null) { throw new ArgumentNullException("predicate"); } IntPtr arg = NSString.CreateNative(variable); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selExpressionForSubqueryUsingIteratorVariablePredicate_Handle, expression.Handle, arg, predicate.Handle)); NSString.ReleaseNative(arg); return result; } [Export("expressionForFunction:selectorName:arguments:")] public static NSExpression FromFunction(NSExpression target, string name, NSExpression[] parameters) { if (target == null) { throw new ArgumentNullException("target"); } if (name == null) { throw new ArgumentNullException("name"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } IntPtr arg = NSString.CreateNative(name); NSArray nSArray = NSArray.FromNSObjects(parameters); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selExpressionForFunctionSelectorNameArguments_Handle, target.Handle, arg, nSArray.Handle)); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("expressionForBlock:arguments:")] public unsafe static NSExpression FromFunction(NSExpressionHandler target, NSExpression[] parameters) { if (target == null) { throw new ArgumentNullException("target"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSExpressionHandler.Handler, target); NSArray nSArray = NSArray.FromNSObjects(parameters); NSExpression result = (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selExpressionForBlockArguments_Handle, (IntPtr)ptr, nSArray.Handle)); ptr->CleanupBlock(); nSArray.Dispose(); return result; } [Export("initWithExpressionType:")] public NSExpression(NSExpressionType type) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithExpressionType_Handle, (ulong)type); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithExpressionType_Handle, (ulong)type); } } [Export("expressionValueWithObject:context:")] public virtual NSExpression ExpressionValueWithObject(NSObject object1, NSMutableDictionary context) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (context == null) { throw new ArgumentNullException("context"); } if (IsDirectBinding) { return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selExpressionValueWithObjectContext_Handle, object1.Handle, context.Handle)); } return (NSExpression)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selExpressionValueWithObjectContext_Handle, object1.Handle, context.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ConstantValue_var = null; __mt_Operand_var = null; __mt_Arguments_var = null; __mt_Collection_var = null; __mt_Predicate_var = null; __mt_LeftExpression_var = null; __mt_RightExpression_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSExpressionHandler.cs ================================================ namespace Foundation; public delegate void NSExpressionHandler(NSObject evaluatedObject, NSExpression[] expressions, NSMutableDictionary context); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSExpressionType.cs ================================================ namespace Foundation; public enum NSExpressionType : ulong { ConstantValue = 0uL, EvaluatedObject = 1uL, Variable = 2uL, KeyPath = 3uL, Function = 4uL, UnionSet = 5uL, IntersectSet = 6uL, MinusSet = 7uL, Subquery = 13uL, NSAggregate = 14uL, Block = 19uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFastEnumerationState.cs ================================================ namespace Foundation; internal struct NSFastEnumerationState { private nint state; internal IntPtr itemsPtr; internal IntPtr mutationsPtr; private nint extra1; private nint extra2; private nint extra3; private nint extra4; private nint extra5; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFastEnumerator.cs ================================================ using ObjCRuntime; using System.Collections; using System.Runtime.InteropServices; namespace Foundation; internal class NSFastEnumerator { [DllImport("/usr/lib/libobjc.dylib")] public static extern nuint objc_msgSend(IntPtr receiver, IntPtr selector, ref NSFastEnumerationState arg1, IntPtr[] arg2, nuint arg3); } internal class NSFastEnumerator : IEnumerator, IDisposable, IEnumerator where T : class, INativeObject { private NSFastEnumerationState state; private NSObject collection; private IntPtr[] array; private nuint count; private IntPtr mutationValue; private nuint current; private bool started; object IEnumerator.Current { get { VerifyNonMutated(); return Current; } } public T Current => Runtime.GetNativeObject(Marshal.ReadIntPtr(state.itemsPtr, IntPtr.Size * (int)current)); public NSFastEnumerator(NSObject collection) { this.collection = collection; } private void Fetch() { if (array == null) { array = new IntPtr[16]; } count = NSFastEnumerator.objc_msgSend(collection.Handle, Selector.GetHandle("countByEnumeratingWithState:objects:count:"), ref state, array, (nuint)array.Length); if (!started) { started = true; mutationValue = Marshal.ReadIntPtr(state.mutationsPtr); } current = 0; } private void VerifyNonMutated() { if (mutationValue != Marshal.ReadIntPtr(state.mutationsPtr)) throw new InvalidOperationException("Collection was modified"); } bool IEnumerator.MoveNext() { if (array == null || current == count - 1) { Fetch(); if (count == 0) return false; } else ++current; VerifyNonMutated(); return true; } void IEnumerator.Reset() { state = default; started = false; } void IDisposable.Dispose() { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileAttributes.cs ================================================ namespace Foundation; public class NSFileAttributes { public bool? AppendOnly { get; set; } public bool? Busy { get; set; } public bool? FileExtensionHidden { get; set; } public NSDate CreationDate { get; set; } public string OwnerAccountName { get; set; } public uint? DeviceIdentifier { get; set; } public uint? FileGroupOwnerAccountID { get; set; } public bool? Immutable { get; set; } public NSDate ModificationDate { get; set; } public uint? FileOwnerAccountID { get; set; } public uint? HfsTypeCode { get; set; } public uint? PosixPermissions { get; set; } public uint? FileReferenceCount { get; set; } public uint? FileSystemFileNumber { get; set; } public ulong? FileSize { get; set; } public NSFileType? FileType { get; set; } internal NSDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (AppendOnly.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromBoolean(AppendOnly.Value), NSFileManager.AppendOnly); } if (Busy.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromBoolean(Busy.Value), NSFileManager.Busy); } if (CreationDate != null) { nSMutableDictionary.SetObject(CreationDate, NSFileManager.CreationDate); } if (ModificationDate != null) { nSMutableDictionary.SetObject(ModificationDate, NSFileManager.ModificationDate); } if (OwnerAccountName != null) { nSMutableDictionary.SetObject(new NSString(OwnerAccountName), NSFileManager.OwnerAccountName); } if (DeviceIdentifier.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(DeviceIdentifier.Value), NSFileManager.DeviceIdentifier); } if (FileExtensionHidden.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromBoolean(FileExtensionHidden.Value), NSFileManager.ExtensionHidden); } if (FileGroupOwnerAccountID.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(FileGroupOwnerAccountID.Value), NSFileManager.GroupOwnerAccountID); } if (FileOwnerAccountID.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(FileOwnerAccountID.Value), NSFileManager.OwnerAccountID); } if (HfsTypeCode.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(HfsTypeCode.Value), NSFileManager.HfsTypeCode); } if (PosixPermissions.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(PosixPermissions.Value), NSFileManager.PosixPermissions); } if (FileReferenceCount.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(FileReferenceCount.Value), NSFileManager.ReferenceCount); } if (FileSystemFileNumber.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt32(FileSystemFileNumber.Value), NSFileManager.SystemFileNumber); } if (FileSize.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromUInt64(FileSize.Value), NSFileManager.Size); } if (Immutable.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromBoolean(Immutable.Value), NSFileManager.Immutable); } if (FileType.HasValue) { NSString nSString = null; nSMutableDictionary.SetObject(FileType.Value switch { NSFileType.Directory => NSFileManager.TypeDirectory, NSFileType.Regular => NSFileManager.TypeRegular, NSFileType.SymbolicLink => NSFileManager.TypeSymbolicLink, NSFileType.Socket => NSFileManager.TypeSocket, NSFileType.CharacterSpecial => NSFileManager.TypeCharacterSpecial, NSFileType.BlockSpecial => NSFileManager.TypeBlockSpecial, _ => NSFileManager.TypeUnknown, }, NSFileManager.NSFileType); } return nSMutableDictionary; } internal static bool fetch(NSDictionary dict, NSString key, ref bool b) { if (!(dict.ObjectForKey(key) is NSNumber nSNumber)) { return false; } b = nSNumber.BoolValue; return true; } internal static bool fetch(NSDictionary dict, NSString key, ref uint b) { if (!(dict.ObjectForKey(key) is NSNumber nSNumber)) { return false; } b = nSNumber.UInt32Value; return true; } internal static bool fetch(NSDictionary dict, NSString key, ref ulong b) { if (!(dict.ObjectForKey(key) is NSNumber nSNumber)) { return false; } b = nSNumber.UInt64Value; return true; } public static NSFileAttributes FromDict(NSDictionary dict) { if (dict == null) { return null; } NSFileAttributes nSFileAttributes = new NSFileAttributes(); bool b = false; if (fetch(dict, NSFileManager.AppendOnly, ref b)) { nSFileAttributes.AppendOnly = b; } if (fetch(dict, NSFileManager.Busy, ref b)) { nSFileAttributes.Busy = b; } if (fetch(dict, NSFileManager.Immutable, ref b)) { nSFileAttributes.Immutable = b; } if (fetch(dict, NSFileManager.ExtensionHidden, ref b)) { nSFileAttributes.FileExtensionHidden = b; } if (dict.ObjectForKey(NSFileManager.CreationDate) is NSDate creationDate) { nSFileAttributes.CreationDate = creationDate; } if (dict.ObjectForKey(NSFileManager.ModificationDate) is NSDate modificationDate) { nSFileAttributes.ModificationDate = modificationDate; } NSString nSString = dict.ObjectForKey(NSFileManager.OwnerAccountName) as NSString; if (nSString != null) { nSFileAttributes.OwnerAccountName = nSString.ToString(); } uint b2 = 0u; if (fetch(dict, NSFileManager.DeviceIdentifier, ref b2)) { nSFileAttributes.DeviceIdentifier = b2; } if (fetch(dict, NSFileManager.GroupOwnerAccountID, ref b2)) { nSFileAttributes.FileGroupOwnerAccountID = b2; } if (fetch(dict, NSFileManager.OwnerAccountID, ref b2)) { nSFileAttributes.FileOwnerAccountID = b2; } if (fetch(dict, NSFileManager.HfsTypeCode, ref b2)) { nSFileAttributes.HfsTypeCode = b2; } if (fetch(dict, NSFileManager.PosixPermissions, ref b2)) { nSFileAttributes.PosixPermissions = b2; } if (fetch(dict, NSFileManager.ReferenceCount, ref b2)) { nSFileAttributes.FileReferenceCount = b2; } if (fetch(dict, NSFileManager.SystemFileNumber, ref b2)) { nSFileAttributes.FileSystemFileNumber = b2; } ulong b3 = 0uL; if (fetch(dict, NSFileManager.Size, ref b3)) { nSFileAttributes.FileSize = b3; } return nSFileAttributes; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileCoordinator.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSFileCoordinator", true)] public class NSFileCoordinator : NSObject { private static readonly IntPtr selFilePresentersHandle = Selector.GetHandle("filePresenters"); private static readonly IntPtr selAddFilePresenter_Handle = Selector.GetHandle("addFilePresenter:"); private static readonly IntPtr selRemoveFilePresenter_Handle = Selector.GetHandle("removeFilePresenter:"); private static readonly IntPtr selInitWithFilePresenter_Handle = Selector.GetHandle("initWithFilePresenter:"); private static readonly IntPtr selCoordinateReadingItemAtURLOptionsErrorByAccessor_Handle = Selector.GetHandle("coordinateReadingItemAtURL:options:error:byAccessor:"); private static readonly IntPtr selCoordinateWritingItemAtURLOptionsErrorByAccessor_Handle = Selector.GetHandle("coordinateWritingItemAtURL:options:error:byAccessor:"); private static readonly IntPtr selCoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle = Selector.GetHandle("coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"); private static readonly IntPtr selCoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle = Selector.GetHandle("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"); private static readonly IntPtr selPrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor_Handle = Selector.GetHandle("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:"); private static readonly IntPtr selItemAtURLDidMoveToURL_Handle = Selector.GetHandle("itemAtURL:didMoveToURL:"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr selItemAtURLWillMoveToURL_Handle = Selector.GetHandle("itemAtURL:willMoveToURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFileCoordinator"); private static object __mt_FilePresenters_var_static; public override IntPtr ClassHandle => class_ptr; public static NSFilePresenter[] FilePresenters { [Export("filePresenters")] get { return (NSFilePresenter[])(__mt_FilePresenters_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selFilePresentersHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFileCoordinator() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileCoordinator(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileCoordinator(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileCoordinator(IntPtr handle) : base(handle) { } [Export("addFilePresenter:")] public static void AddFilePresenter(NSFilePresenter filePresenter) { if (filePresenter == null) { throw new ArgumentNullException("filePresenter"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selAddFilePresenter_Handle, filePresenter.Handle); _ = FilePresenters; } [Export("removeFilePresenter:")] public static void RemoveFilePresenter(NSFilePresenter filePresenter) { if (filePresenter == null) { throw new ArgumentNullException("filePresenter"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selRemoveFilePresenter_Handle, filePresenter.Handle); _ = FilePresenters; } [Export("initWithFilePresenter:")] public NSFileCoordinator(NSFilePresenter filePresenterOrNil) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithFilePresenter_Handle, filePresenterOrNil?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithFilePresenter_Handle, filePresenterOrNil?.Handle ?? IntPtr.Zero); } } [Export("coordinateReadingItemAtURL:options:error:byAccessor:")] public unsafe virtual void CoordinateRead(NSUrl itemUrl, NSFileCoordinatorReadingOptions options, out NSError error, NSFileCoordinatorWorker worker) { if (itemUrl == null) { throw new ArgumentNullException("itemUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (worker == null) { throw new ArgumentNullException("worker"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileCoordinatorWorker.Handler, worker); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selCoordinateReadingItemAtURLOptionsErrorByAccessor_Handle, itemUrl.Handle, (ulong)options, intPtr, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selCoordinateReadingItemAtURLOptionsErrorByAccessor_Handle, itemUrl.Handle, (ulong)options, intPtr, (IntPtr)ptr); } ptr->CleanupBlock(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("coordinateWritingItemAtURL:options:error:byAccessor:")] public unsafe virtual void CoordinateWrite(NSUrl url, NSFileCoordinatorWritingOptions options, out NSError error, NSFileCoordinatorWorker worker) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (worker == null) { throw new ArgumentNullException("worker"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileCoordinatorWorker.Handler, worker); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selCoordinateWritingItemAtURLOptionsErrorByAccessor_Handle, url.Handle, (ulong)options, intPtr, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selCoordinateWritingItemAtURLOptionsErrorByAccessor_Handle, url.Handle, (ulong)options, intPtr, (IntPtr)ptr); } ptr->CleanupBlock(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")] public unsafe virtual void CoordinateReadWrite(NSUrl readingURL, NSFileCoordinatorReadingOptions readingOptions, NSUrl writingURL, NSFileCoordinatorWritingOptions writingOptions, out NSError error, NSFileCoordinatorWorkerRW readWriteWorker) { if (readingURL == null) { throw new ArgumentNullException("readingURL"); } if (writingURL == null) { throw new ArgumentNullException("writingURL"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (readWriteWorker == null) { throw new ArgumentNullException("readWriteWorker"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileCoordinatorWorkerRW.Handler, readWriteWorker); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selCoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle, readingURL.Handle, (ulong)readingOptions, writingURL.Handle, (ulong)writingOptions, intPtr, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selCoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle, readingURL.Handle, (ulong)readingOptions, writingURL.Handle, (ulong)writingOptions, intPtr, (IntPtr)ptr); } ptr->CleanupBlock(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")] public unsafe virtual void CoordinateWriteWrite(NSUrl writingURL, NSFileCoordinatorWritingOptions writingOptions, NSUrl writingURL2, NSFileCoordinatorWritingOptions writingOptions2, out NSError error, NSFileCoordinatorWorkerRW writeWriteWorker) { if (writingURL == null) { throw new ArgumentNullException("writingURL"); } if (writingURL2 == null) { throw new ArgumentNullException("writingURL2"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (writeWriteWorker == null) { throw new ArgumentNullException("writeWriteWorker"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileCoordinatorWorkerRW.Handler, writeWriteWorker); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selCoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle, writingURL.Handle, (ulong)writingOptions, writingURL2.Handle, (ulong)writingOptions2, intPtr, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selCoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor_Handle, writingURL.Handle, (ulong)writingOptions, writingURL2.Handle, (ulong)writingOptions2, intPtr, (IntPtr)ptr); } ptr->CleanupBlock(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:")] public unsafe virtual void CoordinateBatc(NSUrl[] readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSUrl[] writingURLs, NSFileCoordinatorWritingOptions writingOptions, out NSError error, NSAction batchHandler) { if (readingURLs == null) { throw new ArgumentNullException("readingURLs"); } if (writingURLs == null) { throw new ArgumentNullException("writingURLs"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (batchHandler == null) { throw new ArgumentNullException("batchHandler"); } NSArray nSArray = NSArray.FromNSObjects(readingURLs); NSArray nSArray2 = NSArray.FromNSObjects(writingURLs); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, batchHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selPrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor_Handle, nSArray.Handle, (ulong)readingOptions, nSArray2.Handle, (ulong)writingOptions, intPtr, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selPrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor_Handle, nSArray.Handle, (ulong)readingOptions, nSArray2.Handle, (ulong)writingOptions, intPtr, (IntPtr)ptr); } nSArray.Dispose(); nSArray2.Dispose(); ptr->CleanupBlock(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("itemAtURL:didMoveToURL:")] public virtual void ItemMoved(NSUrl fromUrl, NSUrl toUrl) { if (fromUrl == null) { throw new ArgumentNullException("fromUrl"); } if (toUrl == null) { throw new ArgumentNullException("toUrl"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selItemAtURLDidMoveToURL_Handle, fromUrl.Handle, toUrl.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selItemAtURLDidMoveToURL_Handle, fromUrl.Handle, toUrl.Handle); } } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } [Export("itemAtURL:willMoveToURL:")] [MountainLion] public virtual void WillMove(NSUrl oldUrl, NSUrl newUrl) { if (oldUrl == null) { throw new ArgumentNullException("oldUrl"); } if (newUrl == null) { throw new ArgumentNullException("newUrl"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selItemAtURLWillMoveToURL_Handle, oldUrl.Handle, newUrl.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selItemAtURLWillMoveToURL_Handle, oldUrl.Handle, newUrl.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileCoordinatorReadingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSFileCoordinatorReadingOptions : ulong { WithoutChanges = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileCoordinatorWorker.cs ================================================ namespace Foundation; public delegate void NSFileCoordinatorWorker(NSUrl newUrl); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileCoordinatorWorkerRW.cs ================================================ namespace Foundation; public delegate void NSFileCoordinatorWorkerRW(NSUrl newReadingUrl, NSUrl newWritingUrl); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileCoordinatorWritingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSFileCoordinatorWritingOptions : ulong { ForDeleting = 1uL, ForMoving = 2uL, ForMerging = 4uL, ForReplacing = 8uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileHandle.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSFileHandle", true)] public class NSFileHandle : NSObject { public static class Notifications { public static NSObject ObserveReadCompletion(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ReadCompletionNotification, delegate(NSNotification notification) { handler(null, new NSFileHandleReadEventArgs(notification)); }); } public static NSObject ObserveReadToEndOfFileCompletion(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ReadToEndOfFileCompletionNotification, delegate(NSNotification notification) { handler(null, new NSFileHandleReadEventArgs(notification)); }); } public static NSObject ObserveConnectionAccepted(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ConnectionAcceptedNotification, delegate(NSNotification notification) { handler(null, new NSFileHandleConnectionAcceptedEventArgs(notification)); }); } public static NSObject ObserveDataAvailable(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DataAvailableNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selFileDescriptorHandle = Selector.GetHandle("fileDescriptor"); private static readonly IntPtr selAvailableDataHandle = Selector.GetHandle("availableData"); private static readonly IntPtr selReadDataToEndOfFileHandle = Selector.GetHandle("readDataToEndOfFile"); private static readonly IntPtr selReadDataOfLength_Handle = Selector.GetHandle("readDataOfLength:"); private static readonly IntPtr selWriteData_Handle = Selector.GetHandle("writeData:"); private static readonly IntPtr selOffsetInFileHandle = Selector.GetHandle("offsetInFile"); private static readonly IntPtr selSeekToEndOfFileHandle = Selector.GetHandle("seekToEndOfFile"); private static readonly IntPtr selSeekToFileOffset_Handle = Selector.GetHandle("seekToFileOffset:"); private static readonly IntPtr selTruncateFileAtOffset_Handle = Selector.GetHandle("truncateFileAtOffset:"); private static readonly IntPtr selSynchronizeFileHandle = Selector.GetHandle("synchronizeFile"); private static readonly IntPtr selCloseFileHandle = Selector.GetHandle("closeFile"); private static readonly IntPtr selFileHandleWithStandardInputHandle = Selector.GetHandle("fileHandleWithStandardInput"); private static readonly IntPtr selFileHandleWithStandardOutputHandle = Selector.GetHandle("fileHandleWithStandardOutput"); private static readonly IntPtr selFileHandleWithStandardErrorHandle = Selector.GetHandle("fileHandleWithStandardError"); private static readonly IntPtr selFileHandleWithNullDeviceHandle = Selector.GetHandle("fileHandleWithNullDevice"); private static readonly IntPtr selFileHandleForReadingAtPath_Handle = Selector.GetHandle("fileHandleForReadingAtPath:"); private static readonly IntPtr selFileHandleForWritingAtPath_Handle = Selector.GetHandle("fileHandleForWritingAtPath:"); private static readonly IntPtr selFileHandleForUpdatingAtPath_Handle = Selector.GetHandle("fileHandleForUpdatingAtPath:"); private static readonly IntPtr selFileHandleForReadingFromURLError_Handle = Selector.GetHandle("fileHandleForReadingFromURL:error:"); private static readonly IntPtr selFileHandleForWritingToURLError_Handle = Selector.GetHandle("fileHandleForWritingToURL:error:"); private static readonly IntPtr selFileHandleForUpdatingURLError_Handle = Selector.GetHandle("fileHandleForUpdatingURL:error:"); private static readonly IntPtr selReadInBackgroundAndNotifyForModes_Handle = Selector.GetHandle("readInBackgroundAndNotifyForModes:"); private static readonly IntPtr selReadInBackgroundAndNotifyHandle = Selector.GetHandle("readInBackgroundAndNotify"); private static readonly IntPtr selReadToEndOfFileInBackgroundAndNotifyForModes_Handle = Selector.GetHandle("readToEndOfFileInBackgroundAndNotifyForModes:"); private static readonly IntPtr selReadToEndOfFileInBackgroundAndNotifyHandle = Selector.GetHandle("readToEndOfFileInBackgroundAndNotify"); private static readonly IntPtr selAcceptConnectionInBackgroundAndNotifyForModes_Handle = Selector.GetHandle("acceptConnectionInBackgroundAndNotifyForModes:"); private static readonly IntPtr selAcceptConnectionInBackgroundAndNotifyHandle = Selector.GetHandle("acceptConnectionInBackgroundAndNotify"); private static readonly IntPtr selWaitForDataInBackgroundAndNotifyForModes_Handle = Selector.GetHandle("waitForDataInBackgroundAndNotifyForModes:"); private static readonly IntPtr selWaitForDataInBackgroundAndNotifyHandle = Selector.GetHandle("waitForDataInBackgroundAndNotify"); private static readonly IntPtr selInitWithFileDescriptorCloseOnDealloc_Handle = Selector.GetHandle("initWithFileDescriptor:closeOnDealloc:"); private static readonly IntPtr selInitWithFileDescriptor_Handle = Selector.GetHandle("initWithFileDescriptor:"); private static readonly IntPtr selSetReadabilityHandler_Handle = Selector.GetHandle("setReadabilityHandler:"); private static readonly IntPtr selSetWriteabilityHandler_Handle = Selector.GetHandle("setWriteabilityHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFileHandle"); private static NSString _OperationException; private static NSString _ReadCompletionNotification; private static NSString _ReadToEndOfFileCompletionNotification; private static NSString _ConnectionAcceptedNotification; private static NSString _DataAvailableNotification; public override IntPtr ClassHandle => class_ptr; public virtual int FileDescriptor { [Export("fileDescriptor")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selFileDescriptorHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selFileDescriptorHandle); } } [Field("NSFileHandleOperationException", "Foundation")] public static NSString OperationException { get { if (_OperationException == null) { _OperationException = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHandleOperationException"); } return _OperationException; } } [Field("NSFileHandleReadCompletionNotification", "Foundation")] public static NSString ReadCompletionNotification { get { if (_ReadCompletionNotification == null) { _ReadCompletionNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHandleReadCompletionNotification"); } return _ReadCompletionNotification; } } [Field("NSFileHandleReadToEndOfFileCompletionNotification", "Foundation")] public static NSString ReadToEndOfFileCompletionNotification { get { if (_ReadToEndOfFileCompletionNotification == null) { _ReadToEndOfFileCompletionNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHandleReadToEndOfFileCompletionNotification"); } return _ReadToEndOfFileCompletionNotification; } } [Field("NSFileHandleConnectionAcceptedNotification", "Foundation")] public static NSString ConnectionAcceptedNotification { get { if (_ConnectionAcceptedNotification == null) { _ConnectionAcceptedNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHandleConnectionAcceptedNotification"); } return _ConnectionAcceptedNotification; } } [Field("NSFileHandleDataAvailableNotification", "Foundation")] public static NSString DataAvailableNotification { get { if (_DataAvailableNotification == null) { _DataAvailableNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHandleDataAvailableNotification"); } return _DataAvailableNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileHandle(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileHandle(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileHandle(IntPtr handle) : base(handle) { } [Export("availableData")] public virtual NSData AvailableData() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableDataHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableDataHandle)); } [Export("readDataToEndOfFile")] public virtual NSData ReadDataToEndOfFile() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReadDataToEndOfFileHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReadDataToEndOfFileHandle)); } [Export("readDataOfLength:")] public virtual NSData ReadDataOfLength(ulong length) { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selReadDataOfLength_Handle, length)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selReadDataOfLength_Handle, length)); } [Export("writeData:")] public virtual void WriteData(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWriteData_Handle, data.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteData_Handle, data.Handle); } } [Export("offsetInFile")] public virtual ulong OffsetInFile() { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selOffsetInFileHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOffsetInFileHandle); } [Export("seekToEndOfFile")] public virtual ulong SeekToEndOfFile() { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selSeekToEndOfFileHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSeekToEndOfFileHandle); } [Export("seekToFileOffset:")] public virtual void SeekToFileOffset(ulong offset) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSeekToFileOffset_Handle, offset); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSeekToFileOffset_Handle, offset); } } [Export("truncateFileAtOffset:")] public virtual void TruncateFileAtOffset(ulong offset) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selTruncateFileAtOffset_Handle, offset); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selTruncateFileAtOffset_Handle, offset); } } [Export("synchronizeFile")] public virtual void SynchronizeFile() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSynchronizeFileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSynchronizeFileHandle); } } [Export("closeFile")] public virtual void CloseFile() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseFileHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseFileHandle); } } [Export("fileHandleWithStandardInput")] public static NSFileHandle FromStandardInput() { return (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFileHandleWithStandardInputHandle)); } [Export("fileHandleWithStandardOutput")] public static NSFileHandle FromStandardOutput() { return (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFileHandleWithStandardOutputHandle)); } [Export("fileHandleWithStandardError")] public static NSFileHandle FromStandardError() { return (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFileHandleWithStandardErrorHandle)); } [Export("fileHandleWithNullDevice")] public static NSFileHandle FromNullDevice() { return (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selFileHandleWithNullDeviceHandle)); } [Export("fileHandleForReadingAtPath:")] public static NSFileHandle OpenRead(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFileHandleForReadingAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fileHandleForWritingAtPath:")] public static NSFileHandle OpenWrite(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFileHandleForWritingAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fileHandleForUpdatingAtPath:")] public static NSFileHandle OpenUpdate(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selFileHandleForUpdatingAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fileHandleForReadingFromURL:error:")] public static NSFileHandle OpenReadUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selFileHandleForReadingFromURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("fileHandleForWritingToURL:error:")] public static NSFileHandle OpenWriteUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selFileHandleForWritingToURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("fileHandleForUpdatingURL:error:")] public static NSFileHandle OpenUpdateUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSFileHandle result = (NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selFileHandleForUpdatingURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("readInBackgroundAndNotifyForModes:")] public virtual void ReadInBackground(NSString[] notifyRunLoopModes) { if (notifyRunLoopModes == null) { throw new ArgumentNullException("notifyRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(notifyRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReadInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReadInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("readInBackgroundAndNotify")] public virtual void ReadInBackground() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReadInBackgroundAndNotifyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReadInBackgroundAndNotifyHandle); } } [Export("readToEndOfFileInBackgroundAndNotifyForModes:")] public virtual void ReadToEndOfFileInBackground(NSString[] notifyRunLoopModes) { if (notifyRunLoopModes == null) { throw new ArgumentNullException("notifyRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(notifyRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReadToEndOfFileInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReadToEndOfFileInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("readToEndOfFileInBackgroundAndNotify")] public virtual void ReadToEndOfFileInBackground() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReadToEndOfFileInBackgroundAndNotifyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReadToEndOfFileInBackgroundAndNotifyHandle); } } [Export("acceptConnectionInBackgroundAndNotifyForModes:")] public virtual void AcceptConnectionInBackground(NSString[] notifyRunLoopModes) { if (notifyRunLoopModes == null) { throw new ArgumentNullException("notifyRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(notifyRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAcceptConnectionInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAcceptConnectionInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("acceptConnectionInBackgroundAndNotify")] public virtual void AcceptConnectionInBackground() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAcceptConnectionInBackgroundAndNotifyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAcceptConnectionInBackgroundAndNotifyHandle); } } [Export("waitForDataInBackgroundAndNotifyForModes:")] public virtual void WaitForDataInBackground(NSString[] notifyRunLoopModes) { if (notifyRunLoopModes == null) { throw new ArgumentNullException("notifyRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(notifyRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWaitForDataInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWaitForDataInBackgroundAndNotifyForModes_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("waitForDataInBackgroundAndNotify")] public virtual void WaitForDataInBackground() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWaitForDataInBackgroundAndNotifyHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWaitForDataInBackgroundAndNotifyHandle); } } [Export("initWithFileDescriptor:closeOnDealloc:")] public NSFileHandle(int fd, bool closeOnDealloc) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int_bool(base.Handle, selInitWithFileDescriptorCloseOnDealloc_Handle, fd, closeOnDealloc); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int_bool(base.SuperHandle, selInitWithFileDescriptorCloseOnDealloc_Handle, fd, closeOnDealloc); } } [Export("initWithFileDescriptor:")] public NSFileHandle(int fd) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selInitWithFileDescriptor_Handle, fd); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selInitWithFileDescriptor_Handle, fd); } } [Export("setReadabilityHandler:")] public unsafe virtual void SetReadabilityHandler(NSFileHandleUpdateHandler readCallback) { BlockLiteral* ptr; if (readCallback == null) { ptr = null; } else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileHandleUpdateHandler.Handler, readCallback); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetReadabilityHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetReadabilityHandler_Handle, (IntPtr)ptr); } if (ptr != null) { ptr->CleanupBlock(); } } [Export("setWriteabilityHandler:")] public unsafe virtual void SetWriteabilityHandle(NSFileHandleUpdateHandler writeCallback) { BlockLiteral* ptr; if (writeCallback == null) { ptr = null; } else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSFileHandleUpdateHandler.Handler, writeCallback); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetWriteabilityHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetWriteabilityHandler_Handle, (IntPtr)ptr); } if (ptr != null) { ptr->CleanupBlock(); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileHandleConnectionAcceptedEventArgs.cs ================================================ using System; using ObjCRuntime; namespace Foundation; public class NSFileHandleConnectionAcceptedEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSFileHandle NearSocketConnection { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSFileHandleNotificationFileHandleItem"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSFileHandle)Runtime.GetNSObject(intPtr); } } public int UnixErrorCode { get { IntPtr intPtr; using (NSString nSString = new NSString("NSFileHandleError")) { intPtr = base.Notification.UserInfo.LowlevelObjectForKey(nSString.Handle); } if (intPtr == IntPtr.Zero) { return 0; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.Int32Value; } } public NSFileHandleConnectionAcceptedEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileHandleReadEventArgs.cs ================================================ using System; using ObjCRuntime; namespace Foundation; public class NSFileHandleReadEventArgs : NSNotificationEventArgs { private static IntPtr k0; public NSData AvailableData { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSFileHandleNotificationDataItem"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (NSData)Runtime.GetNSObject(intPtr); } } public int UnixErrorCode { get { IntPtr intPtr; using (NSString nSString = new NSString("NSFileHandleError")) { intPtr = base.Notification.UserInfo.LowlevelObjectForKey(nSString.Handle); } if (intPtr == IntPtr.Zero) { return 0; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.Int32Value; } } public NSFileHandleReadEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileHandleUpdateHandler.cs ================================================ namespace Foundation; public delegate void NSFileHandleUpdateHandler(NSFileHandle handle); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileManager.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSFileManager", true)] public class NSFileManager : NSObject { public static class Notifications { public static NSObject ObserveUbiquityIdentityDidChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(UbiquityIdentityDidChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selDefaultManagerHandle = Selector.GetHandle("defaultManager"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selUbiquityIdentityTokenHandle = Selector.GetHandle("ubiquityIdentityToken"); private static readonly IntPtr selSetAttributesOfItemAtPathError_Handle = Selector.GetHandle("setAttributes:ofItemAtPath:error:"); private static readonly IntPtr selCreateDirectoryAtPathWithIntermediateDirectoriesAttributesError_Handle = Selector.GetHandle("createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); private static readonly IntPtr selContentsOfDirectoryAtPathError_Handle = Selector.GetHandle("contentsOfDirectoryAtPath:error:"); private static readonly IntPtr selSubpathsOfDirectoryAtPathError_Handle = Selector.GetHandle("subpathsOfDirectoryAtPath:error:"); private static readonly IntPtr selAttributesOfItemAtPathError_Handle = Selector.GetHandle("attributesOfItemAtPath:error:"); private static readonly IntPtr selAttributesOfFileSystemForPathError_Handle = Selector.GetHandle("attributesOfFileSystemForPath:error:"); private static readonly IntPtr selCreateSymbolicLinkAtPathWithDestinationPathError_Handle = Selector.GetHandle("createSymbolicLinkAtPath:withDestinationPath:error:"); private static readonly IntPtr selDestinationOfSymbolicLinkAtPathError_Handle = Selector.GetHandle("destinationOfSymbolicLinkAtPath:error:"); private static readonly IntPtr selCopyItemAtPathToPathError_Handle = Selector.GetHandle("copyItemAtPath:toPath:error:"); private static readonly IntPtr selMoveItemAtPathToPathError_Handle = Selector.GetHandle("moveItemAtPath:toPath:error:"); private static readonly IntPtr selLinkItemAtPathToPathError_Handle = Selector.GetHandle("linkItemAtPath:toPath:error:"); private static readonly IntPtr selRemoveItemAtPathError_Handle = Selector.GetHandle("removeItemAtPath:error:"); private static readonly IntPtr selCurrentDirectoryPathHandle = Selector.GetHandle("currentDirectoryPath"); private static readonly IntPtr selChangeCurrentDirectoryPath_Handle = Selector.GetHandle("changeCurrentDirectoryPath:"); private static readonly IntPtr selFileExistsAtPath_Handle = Selector.GetHandle("fileExistsAtPath:"); private static readonly IntPtr selFileExistsAtPathIsDirectory_Handle = Selector.GetHandle("fileExistsAtPath:isDirectory:"); private static readonly IntPtr selIsReadableFileAtPath_Handle = Selector.GetHandle("isReadableFileAtPath:"); private static readonly IntPtr selIsWritableFileAtPath_Handle = Selector.GetHandle("isWritableFileAtPath:"); private static readonly IntPtr selIsExecutableFileAtPath_Handle = Selector.GetHandle("isExecutableFileAtPath:"); private static readonly IntPtr selIsDeletableFileAtPath_Handle = Selector.GetHandle("isDeletableFileAtPath:"); private static readonly IntPtr selContentsEqualAtPathAndPath_Handle = Selector.GetHandle("contentsEqualAtPath:andPath:"); private static readonly IntPtr selDisplayNameAtPath_Handle = Selector.GetHandle("displayNameAtPath:"); private static readonly IntPtr selComponentsToDisplayForPath_Handle = Selector.GetHandle("componentsToDisplayForPath:"); private static readonly IntPtr selEnumeratorAtPath_Handle = Selector.GetHandle("enumeratorAtPath:"); private static readonly IntPtr selSubpathsAtPath_Handle = Selector.GetHandle("subpathsAtPath:"); private static readonly IntPtr selContentsAtPath_Handle = Selector.GetHandle("contentsAtPath:"); private static readonly IntPtr selCreateFileAtPathContentsAttributes_Handle = Selector.GetHandle("createFileAtPath:contents:attributes:"); private static readonly IntPtr selContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError_Handle = Selector.GetHandle("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); private static readonly IntPtr selCopyItemAtURLToURLError_Handle = Selector.GetHandle("copyItemAtURL:toURL:error:"); private static readonly IntPtr selMoveItemAtURLToURLError_Handle = Selector.GetHandle("moveItemAtURL:toURL:error:"); private static readonly IntPtr selLinkItemAtURLToURLError_Handle = Selector.GetHandle("linkItemAtURL:toURL:error:"); private static readonly IntPtr selRemoveItemAtURLError_Handle = Selector.GetHandle("removeItemAtURL:error:"); private static readonly IntPtr selEnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler_Handle = Selector.GetHandle("enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); private static readonly IntPtr selURLForDirectoryInDomainAppropriateForURLCreateError_Handle = Selector.GetHandle("URLForDirectory:inDomain:appropriateForURL:create:error:"); private static readonly IntPtr selURLsForDirectoryInDomains_Handle = Selector.GetHandle("URLsForDirectory:inDomains:"); private static readonly IntPtr selReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError_Handle = Selector.GetHandle("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); private static readonly IntPtr selMountedVolumeURLsIncludingResourceValuesForKeysOptions_Handle = Selector.GetHandle("mountedVolumeURLsIncludingResourceValuesForKeys:options:"); private static readonly IntPtr selCreateDirectoryAtURLWithIntermediateDirectoriesAttributesError_Handle = Selector.GetHandle("createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); private static readonly IntPtr selCreateSymbolicLinkAtURLWithDestinationURLError_Handle = Selector.GetHandle("createSymbolicLinkAtURL:withDestinationURL:error:"); private static readonly IntPtr selSetUbiquitousItemAtURLDestinationURLError_Handle = Selector.GetHandle("setUbiquitous:itemAtURL:destinationURL:error:"); private static readonly IntPtr selIsUbiquitousItemAtURL_Handle = Selector.GetHandle("isUbiquitousItemAtURL:"); private static readonly IntPtr selStartDownloadingUbiquitousItemAtURLError_Handle = Selector.GetHandle("startDownloadingUbiquitousItemAtURL:error:"); private static readonly IntPtr selEvictUbiquitousItemAtURLError_Handle = Selector.GetHandle("evictUbiquitousItemAtURL:error:"); private static readonly IntPtr selURLForUbiquityContainerIdentifier_Handle = Selector.GetHandle("URLForUbiquityContainerIdentifier:"); private static readonly IntPtr selURLForPublishingUbiquitousItemAtURLExpirationDateError_Handle = Selector.GetHandle("URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFileManager"); private static object __mt_DefaultManager_var_static; private object __mt_WeakDelegate_var; private object __mt_UbiquityIdentityToken_var; private static NSString _NSFileType; private static NSString _TypeDirectory; private static NSString _TypeRegular; private static NSString _TypeSymbolicLink; private static NSString _TypeSocket; private static NSString _TypeCharacterSpecial; private static NSString _TypeBlockSpecial; private static NSString _TypeUnknown; private static NSString _Size; private static NSString _ModificationDate; private static NSString _ReferenceCount; private static NSString _DeviceIdentifier; private static NSString _OwnerAccountName; private static NSString _GroupOwnerAccountName; private static NSString _PosixPermissions; private static NSString _SystemNumber; private static NSString _SystemFileNumber; private static NSString _ExtensionHidden; private static NSString _HfsCreatorCode; private static NSString _HfsTypeCode; private static NSString _Immutable; private static NSString _AppendOnly; private static NSString _CreationDate; private static NSString _OwnerAccountID; private static NSString _GroupOwnerAccountID; private static NSString _Busy; private static NSString _SystemSize; private static NSString _SystemFreeSize; private static NSString _SystemNodes; private static NSString _SystemFreeNodes; private static NSString _UbiquityIdentityDidChangeNotification; public string CurrentDirectory { get { return GetCurrentDirectory(); } set { ChangeCurrentDirectory(value); } } public override IntPtr ClassHandle => class_ptr; public static NSFileManager DefaultManager { [Export("defaultManager")] get { return (NSFileManager)(__mt_DefaultManager_var_static = (NSFileManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultManagerHandle))); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value.Handle); } __mt_WeakDelegate_var = value; } } public NSFileManagerDelegate Delegate { get { return WeakDelegate as NSFileManagerDelegate; } set { WeakDelegate = value; } } [MountainLion] [Since(6, 0)] public virtual NSObject UbiquityIdentityToken { [MountainLion] [Export("ubiquityIdentityToken")] get { return (NSObject)(__mt_UbiquityIdentityToken_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUbiquityIdentityTokenHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUbiquityIdentityTokenHandle)))); } } [Field("NSFileType", "Foundation")] public static NSString NSFileType { get { if (_NSFileType == null) { _NSFileType = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileType"); } return _NSFileType; } } [Field("NSFileTypeDirectory", "Foundation")] public static NSString TypeDirectory { get { if (_TypeDirectory == null) { _TypeDirectory = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeDirectory"); } return _TypeDirectory; } } [Field("NSFileTypeRegular", "Foundation")] public static NSString TypeRegular { get { if (_TypeRegular == null) { _TypeRegular = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeRegular"); } return _TypeRegular; } } [Field("NSFileTypeSymbolicLink", "Foundation")] public static NSString TypeSymbolicLink { get { if (_TypeSymbolicLink == null) { _TypeSymbolicLink = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeSymbolicLink"); } return _TypeSymbolicLink; } } [Field("NSFileTypeSocket", "Foundation")] public static NSString TypeSocket { get { if (_TypeSocket == null) { _TypeSocket = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeSocket"); } return _TypeSocket; } } [Field("NSFileTypeCharacterSpecial", "Foundation")] public static NSString TypeCharacterSpecial { get { if (_TypeCharacterSpecial == null) { _TypeCharacterSpecial = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeCharacterSpecial"); } return _TypeCharacterSpecial; } } [Field("NSFileTypeBlockSpecial", "Foundation")] public static NSString TypeBlockSpecial { get { if (_TypeBlockSpecial == null) { _TypeBlockSpecial = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeBlockSpecial"); } return _TypeBlockSpecial; } } [Field("NSFileTypeUnknown", "Foundation")] public static NSString TypeUnknown { get { if (_TypeUnknown == null) { _TypeUnknown = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileTypeUnknown"); } return _TypeUnknown; } } [Field("NSFileSize", "Foundation")] public static NSString Size { get { if (_Size == null) { _Size = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSize"); } return _Size; } } [Field("NSFileModificationDate", "Foundation")] public static NSString ModificationDate { get { if (_ModificationDate == null) { _ModificationDate = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileModificationDate"); } return _ModificationDate; } } [Field("NSFileReferenceCount", "Foundation")] public static NSString ReferenceCount { get { if (_ReferenceCount == null) { _ReferenceCount = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileReferenceCount"); } return _ReferenceCount; } } [Field("NSFileDeviceIdentifier", "Foundation")] public static NSString DeviceIdentifier { get { if (_DeviceIdentifier == null) { _DeviceIdentifier = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileDeviceIdentifier"); } return _DeviceIdentifier; } } [Field("NSFileOwnerAccountName", "Foundation")] public static NSString OwnerAccountName { get { if (_OwnerAccountName == null) { _OwnerAccountName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileOwnerAccountName"); } return _OwnerAccountName; } } [Field("NSFileGroupOwnerAccountName", "Foundation")] public static NSString GroupOwnerAccountName { get { if (_GroupOwnerAccountName == null) { _GroupOwnerAccountName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileGroupOwnerAccountName"); } return _GroupOwnerAccountName; } } [Field("NSFilePosixPermissions", "Foundation")] public static NSString PosixPermissions { get { if (_PosixPermissions == null) { _PosixPermissions = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFilePosixPermissions"); } return _PosixPermissions; } } [Field("NSFileSystemNumber", "Foundation")] public static NSString SystemNumber { get { if (_SystemNumber == null) { _SystemNumber = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemNumber"); } return _SystemNumber; } } [Field("NSFileSystemFileNumber", "Foundation")] public static NSString SystemFileNumber { get { if (_SystemFileNumber == null) { _SystemFileNumber = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemFileNumber"); } return _SystemFileNumber; } } [Field("NSFileExtensionHidden", "Foundation")] public static NSString ExtensionHidden { get { if (_ExtensionHidden == null) { _ExtensionHidden = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileExtensionHidden"); } return _ExtensionHidden; } } [Field("NSFileHFSCreatorCode", "Foundation")] public static NSString HfsCreatorCode { get { if (_HfsCreatorCode == null) { _HfsCreatorCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHFSCreatorCode"); } return _HfsCreatorCode; } } [Field("NSFileHFSTypeCode", "Foundation")] public static NSString HfsTypeCode { get { if (_HfsTypeCode == null) { _HfsTypeCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileHFSTypeCode"); } return _HfsTypeCode; } } [Field("NSFileImmutable", "Foundation")] public static NSString Immutable { get { if (_Immutable == null) { _Immutable = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileImmutable"); } return _Immutable; } } [Field("NSFileAppendOnly", "Foundation")] public static NSString AppendOnly { get { if (_AppendOnly == null) { _AppendOnly = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileAppendOnly"); } return _AppendOnly; } } [Field("NSFileCreationDate", "Foundation")] public static NSString CreationDate { get { if (_CreationDate == null) { _CreationDate = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileCreationDate"); } return _CreationDate; } } [Field("NSFileOwnerAccountID", "Foundation")] public static NSString OwnerAccountID { get { if (_OwnerAccountID == null) { _OwnerAccountID = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileOwnerAccountID"); } return _OwnerAccountID; } } [Field("NSFileGroupOwnerAccountID", "Foundation")] public static NSString GroupOwnerAccountID { get { if (_GroupOwnerAccountID == null) { _GroupOwnerAccountID = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileGroupOwnerAccountID"); } return _GroupOwnerAccountID; } } [Field("NSFileBusy", "Foundation")] public static NSString Busy { get { if (_Busy == null) { _Busy = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileBusy"); } return _Busy; } } [Field("NSFileSystemSize", "Foundation")] public static NSString SystemSize { get { if (_SystemSize == null) { _SystemSize = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemSize"); } return _SystemSize; } } [Field("NSFileSystemFreeSize", "Foundation")] public static NSString SystemFreeSize { get { if (_SystemFreeSize == null) { _SystemFreeSize = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemFreeSize"); } return _SystemFreeSize; } } [Field("NSFileSystemNodes", "Foundation")] public static NSString SystemNodes { get { if (_SystemNodes == null) { _SystemNodes = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemNodes"); } return _SystemNodes; } } [Field("NSFileSystemFreeNodes", "Foundation")] public static NSString SystemFreeNodes { get { if (_SystemFreeNodes == null) { _SystemFreeNodes = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSFileSystemFreeNodes"); } return _SystemFreeNodes; } } [Field("NSUbiquityIdentityDidChangeNotification", "Foundation")] [MountainLion] public static NSString UbiquityIdentityDidChangeNotification { [MountainLion] get { if (_UbiquityIdentityDidChangeNotification == null) { _UbiquityIdentityDidChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUbiquityIdentityDidChangeNotification"); } return _UbiquityIdentityDidChangeNotification; } } public bool SetAttributes(NSFileAttributes attributes, string path, out NSError error) { if (attributes == null) { throw new ArgumentNullException("attributes"); } return SetAttributes(attributes.ToDictionary(), path, out error); } public bool SetAttributes(NSFileAttributes attributes, string path) { if (attributes == null) { throw new ArgumentNullException("attributes"); } NSError error; return SetAttributes(attributes.ToDictionary(), path, out error); } public bool CreateDirectory(string path, bool createIntermediates, NSFileAttributes attributes, out NSError error) { NSDictionary attributes2 = attributes?.ToDictionary(); return CreateDirectory(path, createIntermediates, attributes2, out error); } public bool CreateDirectory(string path, bool createIntermediates, NSFileAttributes attributes) { NSDictionary attributes2 = attributes?.ToDictionary(); NSError error; return CreateDirectory(path, createIntermediates, attributes2, out error); } public bool CreateFile(string path, NSData data, NSFileAttributes attributes) { NSDictionary attr = attributes?.ToDictionary(); return CreateFile(path, data, attr); } public NSFileAttributes GetAttributes(string path, out NSError error) { return NSFileAttributes.FromDict(_GetAttributes(path, out error)); } public NSFileAttributes GetAttributes(string path) { NSError error; return NSFileAttributes.FromDict(_GetAttributes(path, out error)); } public NSFileSystemAttributes GetFileSystemAttributes(string path) { NSError error; return NSFileSystemAttributes.FromDict(_GetFileSystemAttributes(path, out error)); } public NSFileSystemAttributes GetFileSystemAttributes(string path, out NSError error) { return NSFileSystemAttributes.FromDict(_GetFileSystemAttributes(path, out error)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFileManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileManager(IntPtr handle) : base(handle) { } [Export("setAttributes:ofItemAtPath:error:")] public virtual bool SetAttributes(NSDictionary attributes, string path, out NSError error) { if (attributes == null) { throw new ArgumentNullException("attributes"); } if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetAttributesOfItemAtPathError_Handle, attributes.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetAttributesOfItemAtPathError_Handle, attributes.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("createDirectoryAtPath:withIntermediateDirectories:attributes:error:")] public virtual bool CreateDirectory(string path, bool createIntermediates, NSDictionary attributes, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr(base.SuperHandle, selCreateDirectoryAtPathWithIntermediateDirectoriesAttributesError_Handle, arg, createIntermediates, attributes?.Handle ?? IntPtr.Zero, intPtr) : Messaging.bool_objc_msgSend_IntPtr_bool_IntPtr_IntPtr(base.Handle, selCreateDirectoryAtPathWithIntermediateDirectoriesAttributesError_Handle, arg, createIntermediates, attributes?.Handle ?? IntPtr.Zero, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("contentsOfDirectoryAtPath:error:")] public virtual string[] GetDirectoryContent(string path, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selContentsOfDirectoryAtPathError_Handle, arg, intPtr)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selContentsOfDirectoryAtPathError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("subpathsOfDirectoryAtPath:error:")] public virtual string[] GetDirectoryContentRecursive(string path, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSubpathsOfDirectoryAtPathError_Handle, arg, intPtr)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selSubpathsOfDirectoryAtPathError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("attributesOfItemAtPath:error:")] internal virtual NSDictionary _GetAttributes(string path, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAttributesOfItemAtPathError_Handle, arg, intPtr))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selAttributesOfItemAtPathError_Handle, arg, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("attributesOfFileSystemForPath:error:")] internal virtual NSDictionary _GetFileSystemAttributes(string path, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAttributesOfFileSystemForPathError_Handle, arg, intPtr))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selAttributesOfFileSystemForPathError_Handle, arg, intPtr)))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("createSymbolicLinkAtPath:withDestinationPath:error:")] public virtual bool CreateSymbolicLink(string path, string destPath, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } if (destPath == null) { throw new ArgumentNullException("destPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); IntPtr arg2 = NSString.CreateNative(destPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateSymbolicLinkAtPathWithDestinationPathError_Handle, arg, arg2, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCreateSymbolicLinkAtPathWithDestinationPathError_Handle, arg, arg2, intPtr)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("destinationOfSymbolicLinkAtPath:error:")] public virtual string GetSymbolicLinkDestination(string path, out NSError error) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDestinationOfSymbolicLinkAtPathError_Handle, arg, intPtr)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDestinationOfSymbolicLinkAtPathError_Handle, arg, intPtr))); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("copyItemAtPath:toPath:error:")] public virtual bool Copy(string srcPath, string dstPath, out NSError error) { if (srcPath == null) { throw new ArgumentNullException("srcPath"); } if (dstPath == null) { throw new ArgumentNullException("dstPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(srcPath); IntPtr arg2 = NSString.CreateNative(dstPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCopyItemAtPathToPathError_Handle, arg, arg2, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCopyItemAtPathToPathError_Handle, arg, arg2, intPtr)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("moveItemAtPath:toPath:error:")] public virtual bool Move(string srcPath, string dstPath, out NSError error) { if (srcPath == null) { throw new ArgumentNullException("srcPath"); } if (dstPath == null) { throw new ArgumentNullException("dstPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(srcPath); IntPtr arg2 = NSString.CreateNative(dstPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMoveItemAtPathToPathError_Handle, arg, arg2, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selMoveItemAtPathToPathError_Handle, arg, arg2, intPtr)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("linkItemAtPath:toPath:error:")] public virtual bool Link(string srcPath, string dstPath, out NSError error) { if (srcPath == null) { throw new ArgumentNullException("srcPath"); } if (dstPath == null) { throw new ArgumentNullException("dstPath"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(srcPath); IntPtr arg2 = NSString.CreateNative(dstPath); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selLinkItemAtPathToPathError_Handle, arg, arg2, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selLinkItemAtPathToPathError_Handle, arg, arg2, intPtr)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeItemAtPath:error:")] public virtual bool Remove(string path, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveItemAtPathError_Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveItemAtPathError_Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("currentDirectoryPath")] public virtual string GetCurrentDirectory() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDirectoryPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDirectoryPathHandle)); } [Export("changeCurrentDirectoryPath:")] public virtual bool ChangeCurrentDirectory(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeCurrentDirectoryPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selChangeCurrentDirectoryPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fileExistsAtPath:")] public virtual bool FileExists(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selFileExistsAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selFileExistsAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("fileExistsAtPath:isDirectory:")] public virtual bool FileExists(string path, ref bool isDirectory) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_out_Boolean(base.SuperHandle, selFileExistsAtPathIsDirectory_Handle, arg, out isDirectory) : Messaging.bool_objc_msgSend_IntPtr_out_Boolean(base.Handle, selFileExistsAtPathIsDirectory_Handle, arg, out isDirectory)); NSString.ReleaseNative(arg); return result; } [Export("isReadableFileAtPath:")] public virtual bool IsReadableFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsReadableFileAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsReadableFileAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("isWritableFileAtPath:")] public virtual bool IsWritableFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsWritableFileAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsWritableFileAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("isExecutableFileAtPath:")] public virtual bool IsExecutableFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsExecutableFileAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsExecutableFileAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("isDeletableFileAtPath:")] public virtual bool IsDeletableFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsDeletableFileAtPath_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsDeletableFileAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("contentsEqualAtPath:andPath:")] public virtual bool ContentsEqual(string path1, string path2) { if (path1 == null) { throw new ArgumentNullException("path1"); } if (path2 == null) { throw new ArgumentNullException("path2"); } IntPtr arg = NSString.CreateNative(path1); IntPtr arg2 = NSString.CreateNative(path2); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selContentsEqualAtPathAndPath_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selContentsEqualAtPathAndPath_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("displayNameAtPath:")] public virtual string DisplayName(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDisplayNameAtPath_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDisplayNameAtPath_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("componentsToDisplayForPath:")] public virtual string[] ComponentsToDisplay(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selComponentsToDisplayForPath_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selComponentsToDisplayForPath_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("enumeratorAtPath:")] public virtual NSDirectoryEnumerator GetEnumerator(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSDirectoryEnumerator result = ((!IsDirectBinding) ? ((NSDirectoryEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selEnumeratorAtPath_Handle, arg))) : ((NSDirectoryEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selEnumeratorAtPath_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("subpathsAtPath:")] public virtual string[] Subpaths(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSubpathsAtPath_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSubpathsAtPath_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("contentsAtPath:")] public virtual NSData Contents(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selContentsAtPath_Handle, arg))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selContentsAtPath_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createFileAtPath:contents:attributes:")] public virtual bool CreateFile(string path, NSData data, NSDictionary attr) { if (path == null) { throw new ArgumentNullException("path"); } if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateFileAtPathContentsAttributes_Handle, arg, data.Handle, attr?.Handle ?? IntPtr.Zero) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCreateFileAtPathContentsAttributes_Handle, arg, data.Handle, attr?.Handle ?? IntPtr.Zero)); NSString.ReleaseNative(arg); return result; } [Export("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:")] public virtual NSUrl[] GetDirectoryContent(NSUrl url, NSArray properties, NSDirectoryEnumerationOptions options, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } if (properties == null) { throw new ArgumentNullException("properties"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSUrl[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(base.SuperHandle, selContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError_Handle, url.Handle, properties.Handle, (ulong)options, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(base.Handle, selContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError_Handle, url.Handle, properties.Handle, (ulong)options, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("copyItemAtURL:toURL:error:")] public virtual bool Copy(NSUrl srcUrl, NSUrl dstUrl, out NSError error) { if (srcUrl == null) { throw new ArgumentNullException("srcUrl"); } if (dstUrl == null) { throw new ArgumentNullException("dstUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCopyItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCopyItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("moveItemAtURL:toURL:error:")] public virtual bool Move(NSUrl srcUrl, NSUrl dstUrl, out NSError error) { if (srcUrl == null) { throw new ArgumentNullException("srcUrl"); } if (dstUrl == null) { throw new ArgumentNullException("dstUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selMoveItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selMoveItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("linkItemAtURL:toURL:error:")] public virtual bool Link(NSUrl srcUrl, NSUrl dstUrl, out NSError error) { if (srcUrl == null) { throw new ArgumentNullException("srcUrl"); } if (dstUrl == null) { throw new ArgumentNullException("dstUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selLinkItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selLinkItemAtURLToURLError_Handle, srcUrl.Handle, dstUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeItemAtURL:error:")] public virtual bool Remove(NSUrl url, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveItemAtURLError_Handle, url?.Handle ?? IntPtr.Zero, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveItemAtURLError_Handle, url?.Handle ?? IntPtr.Zero, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:")] public unsafe virtual NSDirectoryEnumerator GetEnumerator(NSUrl url, NSArray properties, NSDirectoryEnumerationOptions options, NSEnumerateErrorHandler handler) { if (url == null) { throw new ArgumentNullException("url"); } BlockLiteral* ptr; if (handler == null) { ptr = null; } else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSEnumerateErrorHandler.Handler, handler); } NSDirectoryEnumerator result = ((!IsDirectBinding) ? ((NSDirectoryEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(base.SuperHandle, selEnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler_Handle, url.Handle, properties?.Handle ?? IntPtr.Zero, (ulong)options, (IntPtr)ptr))) : ((NSDirectoryEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(base.Handle, selEnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler_Handle, url.Handle, properties?.Handle ?? IntPtr.Zero, (ulong)options, (IntPtr)ptr)))); if (ptr != null) { ptr->CleanupBlock(); } return result; } [Export("URLForDirectory:inDomain:appropriateForURL:create:error:")] public virtual NSUrl GetUrl(NSSearchPathDirectory directory, NSSearchPathDomain domain, NSUrl url, bool shouldCreate, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_UInt64_IntPtr_bool_IntPtr(base.SuperHandle, selURLForDirectoryInDomainAppropriateForURLCreateError_Handle, (ulong)directory, (ulong)domain, url?.Handle ?? IntPtr.Zero, shouldCreate, intPtr))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_UInt64_IntPtr_bool_IntPtr(base.Handle, selURLForDirectoryInDomainAppropriateForURLCreateError_Handle, (ulong)directory, (ulong)domain, url?.Handle ?? IntPtr.Zero, shouldCreate, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("URLsForDirectory:inDomains:")] public virtual NSUrl[] GetUrls(NSSearchPathDirectory directory, NSSearchPathDomain domains) { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_UInt64_UInt64(base.Handle, selURLsForDirectoryInDomains_Handle, (ulong)directory, (ulong)domains)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt64_UInt64(base.SuperHandle, selURLsForDirectoryInDomains_Handle, (ulong)directory, (ulong)domains)); } [Export("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:")] public virtual bool Replace(NSUrl originalItem, NSUrl newItem, string backupItemName, NSFileManagerItemReplacementOptions options, out NSUrl resultingURL, out NSError error) { if (originalItem == null) { throw new ArgumentNullException("originalItem"); } if (newItem == null) { throw new ArgumentNullException("newItem"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); IntPtr arg = NSString.CreateNative(backupItemName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError_Handle, originalItem.Handle, newItem.Handle, arg, (ulong)options, intPtr, intPtr2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError_Handle, originalItem.Handle, newItem.Handle, arg, (ulong)options, intPtr, intPtr2)); NSString.ReleaseNative(arg); IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); resultingURL = ((intPtr3 != IntPtr.Zero) ? ((NSUrl)Runtime.GetNSObject(intPtr3)) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); error = ((intPtr4 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr4)) : null); Marshal.FreeHGlobal(intPtr2); return result; } [Export("mountedVolumeURLsIncludingResourceValuesForKeys:options:")] public virtual NSUrl[] GetMountedVolumes(NSArray properties, NSVolumeEnumerationOptions options) { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selMountedVolumeURLsIncludingResourceValuesForKeysOptions_Handle, properties?.Handle ?? IntPtr.Zero, (ulong)options)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selMountedVolumeURLsIncludingResourceValuesForKeysOptions_Handle, properties?.Handle ?? IntPtr.Zero, (ulong)options)); } [Export("createDirectoryAtURL:withIntermediateDirectories:attributes:error:")] public virtual bool CreateDirectory(NSUrl url, bool createIntermediates, NSDictionary attributes, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr(base.SuperHandle, selCreateDirectoryAtURLWithIntermediateDirectoriesAttributesError_Handle, url.Handle, createIntermediates, attributes?.Handle ?? IntPtr.Zero, intPtr) : Messaging.bool_objc_msgSend_IntPtr_bool_IntPtr_IntPtr(base.Handle, selCreateDirectoryAtURLWithIntermediateDirectoriesAttributesError_Handle, url.Handle, createIntermediates, attributes?.Handle ?? IntPtr.Zero, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("createSymbolicLinkAtURL:withDestinationURL:error:")] public virtual bool CreateSymbolicLink(NSUrl url, NSUrl destURL, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } if (destURL == null) { throw new ArgumentNullException("destURL"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateSymbolicLinkAtURLWithDestinationURLError_Handle, url.Handle, destURL.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCreateSymbolicLinkAtURLWithDestinationURLError_Handle, url.Handle, destURL.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setUbiquitous:itemAtURL:destinationURL:error:")] public virtual bool SetUbiquitous(bool flag, NSUrl url, NSUrl destinationUrl, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } if (destinationUrl == null) { throw new ArgumentNullException("destinationUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_bool_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetUbiquitousItemAtURLDestinationURLError_Handle, flag, url.Handle, destinationUrl.Handle, intPtr) : Messaging.bool_objc_msgSend_bool_IntPtr_IntPtr_IntPtr(base.Handle, selSetUbiquitousItemAtURLDestinationURLError_Handle, flag, url.Handle, destinationUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("isUbiquitousItemAtURL:")] public virtual bool IsUbiquitous(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsUbiquitousItemAtURL_Handle, url.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsUbiquitousItemAtURL_Handle, url.Handle); } [Export("startDownloadingUbiquitousItemAtURL:error:")] public virtual bool StartDownloadingUbiquitous(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStartDownloadingUbiquitousItemAtURLError_Handle, url.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selStartDownloadingUbiquitousItemAtURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("evictUbiquitousItemAtURL:error:")] public virtual bool EvictUbiquitous(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEvictUbiquitousItemAtURLError_Handle, url.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selEvictUbiquitousItemAtURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("URLForUbiquityContainerIdentifier:")] public virtual NSUrl GetUrlForUbiquityContainer(string containerIdentifier) { IntPtr arg = NSString.CreateNative(containerIdentifier); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selURLForUbiquityContainerIdentifier_Handle, arg))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selURLForUbiquityContainerIdentifier_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("URLForPublishingUbiquitousItemAtURL:expirationDate:error:")] public virtual NSUrl GetUrlForPublishingUbiquitousItem(NSUrl url, out NSDate expirationDate, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selURLForPublishingUbiquitousItemAtURLExpirationDateError_Handle, url.Handle, intPtr, intPtr2))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selURLForPublishingUbiquitousItemAtURLExpirationDateError_Handle, url.Handle, intPtr, intPtr2)))); IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); expirationDate = ((intPtr3 != IntPtr.Zero) ? ((NSDate)Runtime.GetNSObject(intPtr3)) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); error = ((intPtr4 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr4)) : null); Marshal.FreeHGlobal(intPtr2); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_UbiquityIdentityToken_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileManagerDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSFileManagerDelegate", true)] [Model] public class NSFileManagerDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFileManagerDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileManagerDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileManagerDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileManagerDelegate(IntPtr handle) : base(handle) { } [Export("fileManager:shouldCopyItemAtPath:toPath:")] public virtual bool ShouldCopyItemAtPath(NSFileManager fm, NSString srcPath, NSString dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldProceedAfterError:")] public virtual bool ShouldProceedAfterError(NSFileManager fm, NSDictionary errorInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldCopyItemAtPath:toPath:")] public virtual bool ShouldCopyItemAtPath(NSFileManager fileManager, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:")] public virtual bool ShouldProceedAfterErrorCopyingItem(NSFileManager fileManager, NSError error, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldMoveItemAtPath:toPath:")] public virtual bool ShouldMoveItemAtPath(NSFileManager fileManager, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldProceedAfterError:movingItemAtPath:toPath:")] public virtual bool ShouldProceedAfterErrorMovingItem(NSFileManager fileManager, NSError error, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldLinkItemAtPath:toPath:")] public virtual bool ShouldLinkItemAtPath(NSFileManager fileManager, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:")] public virtual bool ShouldProceedAfterErrorLinkingItem(NSFileManager fileManager, NSError error, string srcPath, string dstPath) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldRemoveItemAtPath:")] public virtual bool ShouldRemoveItemAtPath(NSFileManager fileManager, string path) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("fileManager:shouldProceedAfterError:removingItemAtPath:")] public virtual bool ShouldProceedAfterErrorRemovingItem(NSFileManager fileManager, NSError error, string path) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileManagerItemReplacementOptions.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Since(4, 0)] [Flags] public enum NSFileManagerItemReplacementOptions : ulong { None = 0uL, UsingNewMetadataOnly = 1uL, WithoutDeletingBackupItem = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFilePresenter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSFilePresenter", true)] [Model] public abstract class NSFilePresenter : NSObject { public abstract NSUrl PresentedItemURL { [Export("presentedItemURL")] get; } public virtual NSOperationQueue PesentedItemOperationQueue { [Export("presentedItemOperationQueue")] get { throw new ModelNotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFilePresenter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFilePresenter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFilePresenter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFilePresenter(IntPtr handle) : base(handle) { } [Export("presentedItemDidMoveToURL:")] public virtual void PresentedItemMoved(NSUrl newURL) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedItemDidChange")] public virtual void PresentedItemChanged() { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedItemDidGainVersion:")] public virtual void PresentedItemGainedVersion(NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedItemDidLoseVersion:")] public virtual void PresentedItemLostVersion(NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedItemDidResolveConflictVersion:")] public virtual void PresentedItemResolveConflictVersion(NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemDidAppearAtURL:")] public virtual void PresentedSubitemAppeared(NSUrl atUrl) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemAtURL:didMoveToURL:")] public virtual void PresentedSubitemMoved(NSUrl oldURL, NSUrl newURL) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemDidChangeAtURL:")] public virtual void PresentedSubitemChanged(NSUrl url) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemAtURL:didGainVersion:")] public virtual void PresentedSubitemGainedVersion(NSUrl url, NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemAtURL:didLoseVersion:")] public virtual void PresentedSubitemLostVersion(NSUrl url, NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("presentedSubitemAtURL:didResolveConflictVersion:")] public virtual void PresentedSubitemResolvedConflictVersion(NSUrl url, NSFileVersion version) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileSystemAttributes.cs ================================================ namespace Foundation; public class NSFileSystemAttributes { private NSDictionary dict; public ulong Size { get; internal set; } public ulong FreeSize { get; internal set; } public long Nodes { get; internal set; } public long FreeNodes { get; internal set; } public uint Number { get; internal set; } internal NSFileSystemAttributes(NSDictionary dict) { this.dict = dict; } internal static NSFileSystemAttributes FromDict(NSDictionary dict) { if (dict == null) { return null; } NSFileSystemAttributes nSFileSystemAttributes = new NSFileSystemAttributes(dict); ulong b = 0uL; uint b2 = 0u; nSFileSystemAttributes.Size = (NSFileAttributes.fetch(dict, NSFileManager.SystemSize, ref b) ? b : 0); nSFileSystemAttributes.FreeSize = (NSFileAttributes.fetch(dict, NSFileManager.SystemFreeSize, ref b) ? b : 0); nSFileSystemAttributes.Nodes = (long)(NSFileAttributes.fetch(dict, NSFileManager.SystemNodes, ref b) ? b : 0); nSFileSystemAttributes.FreeNodes = (long)(NSFileAttributes.fetch(dict, NSFileManager.SystemFreeNodes, ref b) ? b : 0); nSFileSystemAttributes.Number = (NSFileAttributes.fetch(dict, NSFileManager.SystemFreeNodes, ref b2) ? b2 : 0u); return nSFileSystemAttributes; } public static implicit operator NSDictionary(NSFileSystemAttributes attr) { return attr.dict; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileType.cs ================================================ namespace Foundation; public enum NSFileType { Directory, Regular, SymbolicLink, Socket, CharacterSpecial, BlockSpecial, Unknown } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileVersion.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSFileVersion", true)] public class NSFileVersion : NSObject { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selLocalizedNameHandle = Selector.GetHandle("localizedName"); private static readonly IntPtr selLocalizedNameOfSavingComputerHandle = Selector.GetHandle("localizedNameOfSavingComputer"); private static readonly IntPtr selModificationDateHandle = Selector.GetHandle("modificationDate"); private static readonly IntPtr selPersistentIdentifierHandle = Selector.GetHandle("persistentIdentifier"); private static readonly IntPtr selIsConflictHandle = Selector.GetHandle("isConflict"); private static readonly IntPtr selIsResolvedHandle = Selector.GetHandle("isResolved"); private static readonly IntPtr selSetResolved_Handle = Selector.GetHandle("setResolved:"); private static readonly IntPtr selIsDiscardableHandle = Selector.GetHandle("isDiscardable"); private static readonly IntPtr selSetDiscardable_Handle = Selector.GetHandle("setDiscardable:"); private static readonly IntPtr selCurrentVersionOfItemAtURL_Handle = Selector.GetHandle("currentVersionOfItemAtURL:"); private static readonly IntPtr selOtherVersionsOfItemAtURL_Handle = Selector.GetHandle("otherVersionsOfItemAtURL:"); private static readonly IntPtr selUnresolvedConflictVersionsOfItemAtURL_Handle = Selector.GetHandle("unresolvedConflictVersionsOfItemAtURL:"); private static readonly IntPtr selVersionOfItemAtURLForPersistentIdentifier_Handle = Selector.GetHandle("versionOfItemAtURL:forPersistentIdentifier:"); private static readonly IntPtr selAddVersionOfItemAtURLWithContentsOfURLOptionsError_Handle = Selector.GetHandle("addVersionOfItemAtURL:withContentsOfURL:options:error:"); private static readonly IntPtr selTemporaryDirectoryURLForNewVersionOfItemAtURL_Handle = Selector.GetHandle("temporaryDirectoryURLForNewVersionOfItemAtURL:"); private static readonly IntPtr selReplaceItemAtURLOptionsError_Handle = Selector.GetHandle("replaceItemAtURL:options:error:"); private static readonly IntPtr selRemoveAndReturnError_Handle = Selector.GetHandle("removeAndReturnError:"); private static readonly IntPtr selRemoveOtherVersionsOfItemAtURLError_Handle = Selector.GetHandle("removeOtherVersionsOfItemAtURL:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFileVersion"); private object __mt_Url_var; private object __mt_ModificationDate_var; private object __mt_PersistentIdentifier_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } public virtual string LocalizedName { [Export("localizedName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedNameHandle)); } } public virtual string LocalizedNameOfSavingComputer { [Export("localizedNameOfSavingComputer")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedNameOfSavingComputerHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedNameOfSavingComputerHandle)); } } public virtual NSDate ModificationDate { [Export("modificationDate")] get { return (NSDate)(__mt_ModificationDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selModificationDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selModificationDateHandle))))); } } public virtual NSObject PersistentIdentifier { [Export("persistentIdentifier")] get { return (NSObject)(__mt_PersistentIdentifier_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentIdentifierHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentIdentifierHandle)))); } } public virtual bool IsConflict { [Export("isConflict")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsConflictHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsConflictHandle); } } public virtual bool Resolved { [Export("isResolved")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsResolvedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsResolvedHandle); } [Export("setResolved:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetResolved_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetResolved_Handle, value); } } } public virtual bool Discardable { [Export("isDiscardable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDiscardableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDiscardableHandle); } [Export("setDiscardable:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDiscardable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDiscardable_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileVersion(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileVersion(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileVersion(IntPtr handle) : base(handle) { } [Export("currentVersionOfItemAtURL:")] public static NSFileVersion GetCurrentVersion(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSFileVersion)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCurrentVersionOfItemAtURL_Handle, url.Handle)); } [Export("otherVersionsOfItemAtURL:")] public static NSFileVersion[] GetOtherVersions(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selOtherVersionsOfItemAtURL_Handle, url.Handle)); } [Export("unresolvedConflictVersionsOfItemAtURL:")] public static NSFileVersion[] GetUnresolvedConflictVersions(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selUnresolvedConflictVersionsOfItemAtURL_Handle, url.Handle)); } [Export("versionOfItemAtURL:forPersistentIdentifier:")] public static NSFileVersion GetSpecificVersion(NSUrl url, NSObject persistentIdentifier) { if (url == null) { throw new ArgumentNullException("url"); } if (persistentIdentifier == null) { throw new ArgumentNullException("persistentIdentifier"); } return (NSFileVersion)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selVersionOfItemAtURLForPersistentIdentifier_Handle, url.Handle, persistentIdentifier.Handle)); } [Export("addVersionOfItemAtURL:withContentsOfURL:options:error:")] public static NSFileVersion AddVersion(NSUrl url, NSUrl contentsURL, NSFileVersionAddingOptions options, out NSError outError) { if (url == null) { throw new ArgumentNullException("url"); } if (contentsURL == null) { throw new ArgumentNullException("contentsURL"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSFileVersion result = (NSFileVersion)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(class_ptr, selAddVersionOfItemAtURLWithContentsOfURLOptionsError_Handle, url.Handle, contentsURL.Handle, (ulong)options, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("temporaryDirectoryURLForNewVersionOfItemAtURL:")] public static NSUrl TemporaryDirectoryForItem(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selTemporaryDirectoryURLForNewVersionOfItemAtURL_Handle, url.Handle)); } [Export("replaceItemAtURL:options:error:")] public virtual NSUrl ReplaceItem(NSUrl url, NSFileVersionReplacingOptions options, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selReplaceItemAtURLOptionsError_Handle, url.Handle, (ulong)options, intPtr))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selReplaceItemAtURLOptionsError_Handle, url.Handle, (ulong)options, intPtr)))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeAndReturnError:")] public virtual bool Remove(out NSError outError) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAndReturnError_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemoveAndReturnError_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeOtherVersionsOfItemAtURL:error:")] public static bool RemoveOtherVersions(NSUrl url, out NSError outError) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr(class_ptr, selRemoveOtherVersionsOfItemAtURLError_Handle, url.Handle, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_ModificationDate_var = null; __mt_PersistentIdentifier_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileVersionAddingOptions.cs ================================================ namespace Foundation; public enum NSFileVersionAddingOptions : ulong { ByMoving = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileVersionReplacingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSFileVersionReplacingOptions : ulong { ByMoving = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileWrapper.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSFileWrapper", true)] public class NSFileWrapper : NSObject { private static readonly IntPtr selIsDirectoryHandle = Selector.GetHandle("isDirectory"); private static readonly IntPtr selIsRegularFileHandle = Selector.GetHandle("isRegularFile"); private static readonly IntPtr selIsSymbolicLinkHandle = Selector.GetHandle("isSymbolicLink"); private static readonly IntPtr selFileWrappersHandle = Selector.GetHandle("fileWrappers"); private static readonly IntPtr selSymbolicLinkDestinationURLHandle = Selector.GetHandle("symbolicLinkDestinationURL"); private static readonly IntPtr selPreferredFilenameHandle = Selector.GetHandle("preferredFilename"); private static readonly IntPtr selSetPreferredFilename_Handle = Selector.GetHandle("setPreferredFilename:"); private static readonly IntPtr selFilenameHandle = Selector.GetHandle("filename"); private static readonly IntPtr selSetFilename_Handle = Selector.GetHandle("setFilename:"); private static readonly IntPtr selFileAttributesHandle = Selector.GetHandle("fileAttributes"); private static readonly IntPtr selSetFileAttributes_Handle = Selector.GetHandle("setFileAttributes:"); private static readonly IntPtr selInitWithURLOptionsError_Handle = Selector.GetHandle("initWithURL:options:error:"); private static readonly IntPtr selInitDirectoryWithFileWrappers_Handle = Selector.GetHandle("initDirectoryWithFileWrappers:"); private static readonly IntPtr selInitRegularFileWithContents_Handle = Selector.GetHandle("initRegularFileWithContents:"); private static readonly IntPtr selInitSymbolicLinkWithDestinationURL_Handle = Selector.GetHandle("initSymbolicLinkWithDestinationURL:"); private static readonly IntPtr selMatchesContentsOfURL_Handle = Selector.GetHandle("matchesContentsOfURL:"); private static readonly IntPtr selReadFromURLOptionsError_Handle = Selector.GetHandle("readFromURL:options:error:"); private static readonly IntPtr selWriteToURLOptionsOriginalContentsURLError_Handle = Selector.GetHandle("writeToURL:options:originalContentsURL:error:"); private static readonly IntPtr selSerializedRepresentationHandle = Selector.GetHandle("serializedRepresentation"); private static readonly IntPtr selAddFileWrapper_Handle = Selector.GetHandle("addFileWrapper:"); private static readonly IntPtr selAddRegularFileWithContentsPreferredFilename_Handle = Selector.GetHandle("addRegularFileWithContents:preferredFilename:"); private static readonly IntPtr selRemoveFileWrapper_Handle = Selector.GetHandle("removeFileWrapper:"); private static readonly IntPtr selKeyForFileWrapper_Handle = Selector.GetHandle("keyForFileWrapper:"); private static readonly IntPtr selRegularFileContentsHandle = Selector.GetHandle("regularFileContents"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFileWrapper"); private object __mt_FileWrappers_var; private object __mt_SymbolicLinkDestinationURL_var; private object __mt_FileAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsDirectory { [Export("isDirectory")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDirectoryHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDirectoryHandle); } } public virtual bool IsRegularFile { [Export("isRegularFile")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRegularFileHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRegularFileHandle); } } public virtual bool IsSymbolicLink { [Export("isSymbolicLink")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSymbolicLinkHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSymbolicLinkHandle); } } public virtual NSDictionary FileWrappers { [Export("fileWrappers")] get { return (NSDictionary)(__mt_FileWrappers_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileWrappersHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileWrappersHandle))))); } } public virtual NSUrl SymbolicLinkDestinationURL { [Export("symbolicLinkDestinationURL")] get { return (NSUrl)(__mt_SymbolicLinkDestinationURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSymbolicLinkDestinationURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSymbolicLinkDestinationURLHandle))))); } } public virtual string PreferredFilename { [Export("preferredFilename")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferredFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferredFilenameHandle)); } [Export("setPreferredFilename:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPreferredFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPreferredFilename_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Filename { [Export("filename")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilenameHandle)); } [Export("setFilename:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFilename_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary FileAttributes { [Export("fileAttributes")] get { return (NSDictionary)(__mt_FileAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileAttributesHandle))))); } [Export("setFileAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFileAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFileAttributes_Handle, value.Handle); } __mt_FileAttributes_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFileWrapper() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFileWrapper(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileWrapper(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFileWrapper(IntPtr handle) : base(handle) { } [Export("initWithURL:options:error:")] public NSFileWrapper(NSUrl url, NSFileWrapperReadingOptions options, out NSError outError) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selInitWithURLOptionsError_Handle, url.Handle, (ulong)options, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selInitWithURLOptionsError_Handle, url.Handle, (ulong)options, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initDirectoryWithFileWrappers:")] public NSFileWrapper(NSDictionary childrenByPreferredName) : base(NSObjectFlag.Empty) { if (childrenByPreferredName == null) { throw new ArgumentNullException("childrenByPreferredName"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitDirectoryWithFileWrappers_Handle, childrenByPreferredName.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitDirectoryWithFileWrappers_Handle, childrenByPreferredName.Handle); } } [Export("initRegularFileWithContents:")] public NSFileWrapper(NSData contents) : base(NSObjectFlag.Empty) { if (contents == null) { throw new ArgumentNullException("contents"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitRegularFileWithContents_Handle, contents.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitRegularFileWithContents_Handle, contents.Handle); } } [Export("initSymbolicLinkWithDestinationURL:")] public NSFileWrapper(NSUrl urlToSymbolicLink) : base(NSObjectFlag.Empty) { if (urlToSymbolicLink == null) { throw new ArgumentNullException("urlToSymbolicLink"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitSymbolicLinkWithDestinationURL_Handle, urlToSymbolicLink.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitSymbolicLinkWithDestinationURL_Handle, urlToSymbolicLink.Handle); } } [Export("matchesContentsOfURL:")] public virtual bool MatchesContentsOfURL(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selMatchesContentsOfURL_Handle, url.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selMatchesContentsOfURL_Handle, url.Handle); } [Export("readFromURL:options:error:")] public virtual bool Read(NSUrl url, NSFileWrapperReadingOptions options, out NSError outError) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr(base.SuperHandle, selReadFromURLOptionsError_Handle, url.Handle, (ulong)options, intPtr) : Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr(base.Handle, selReadFromURLOptionsError_Handle, url.Handle, (ulong)options, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writeToURL:options:originalContentsURL:error:")] public virtual bool Write(NSUrl url, NSFileWrapperWritingOptions options, NSUrl originalContentsURL, out NSError outError) { if (url == null) { throw new ArgumentNullException("url"); } if (originalContentsURL == null) { throw new ArgumentNullException("originalContentsURL"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(base.SuperHandle, selWriteToURLOptionsOriginalContentsURLError_Handle, url.Handle, (ulong)options, originalContentsURL.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(base.Handle, selWriteToURLOptionsOriginalContentsURLError_Handle, url.Handle, (ulong)options, originalContentsURL.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); outError = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("serializedRepresentation")] public virtual NSData GetSerializedRepresentation() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSerializedRepresentationHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSerializedRepresentationHandle)); } [Export("addFileWrapper:")] public virtual string AddFileWrapper(NSFileWrapper child) { if (child == null) { throw new ArgumentNullException("child"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAddFileWrapper_Handle, child.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddFileWrapper_Handle, child.Handle)); } [Export("addRegularFileWithContents:preferredFilename:")] public virtual string AddRegularFile(NSData dataContents, string preferredFilename) { if (dataContents == null) { throw new ArgumentNullException("dataContents"); } if (preferredFilename == null) { throw new ArgumentNullException("preferredFilename"); } IntPtr arg = NSString.CreateNative(preferredFilename); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddRegularFileWithContentsPreferredFilename_Handle, dataContents.Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddRegularFileWithContentsPreferredFilename_Handle, dataContents.Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("removeFileWrapper:")] public virtual void RemoveFileWrapper(NSFileWrapper child) { if (child == null) { throw new ArgumentNullException("child"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveFileWrapper_Handle, child.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveFileWrapper_Handle, child.Handle); } } [Export("keyForFileWrapper:")] public virtual string KeyForFileWrapper(NSFileWrapper child) { if (child == null) { throw new ArgumentNullException("child"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selKeyForFileWrapper_Handle, child.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selKeyForFileWrapper_Handle, child.Handle)); } [Export("regularFileContents")] public virtual NSData GetRegularFileContents() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRegularFileContentsHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRegularFileContentsHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FileWrappers_var = null; __mt_SymbolicLinkDestinationURL_var = null; __mt_FileAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileWrapperReadingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSFileWrapperReadingOptions : ulong { Immediate = 1uL, WithoutMapping = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFileWrapperWritingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSFileWrapperWritingOptions : ulong { Atomic = 1uL, WithNameUpdating = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSFormatter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSFormatter", true)] public class NSFormatter : NSObject { private static readonly IntPtr selStringForObjectValue_Handle = Selector.GetHandle("stringForObjectValue:"); private static readonly IntPtr selEditingStringForObjectValue_Handle = Selector.GetHandle("editingStringForObjectValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSFormatter"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSFormatter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSFormatter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFormatter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSFormatter(IntPtr handle) : base(handle) { } [Export("stringForObjectValue:")] public virtual string StringFor(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringForObjectValue_Handle, value.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringForObjectValue_Handle, value.Handle)); } [Export("editingStringForObjectValue:")] public virtual string EditingStringFor(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selEditingStringForObjectValue_Handle, value.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selEditingStringForObjectValue_Handle, value.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSHttpCookie.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSHTTPCookie", true)] public class NSHttpCookie : NSObject { public static NSString KeyName; public static NSString KeyValue; public static NSString KeyOriginURL; public static NSString KeyVersion; public static NSString KeyDomain; public static NSString KeyPath; public static NSString KeySecure; public static NSString KeyExpires; public static NSString KeyComment; public static NSString KeyCommentURL; public static NSString KeyDiscard; public static NSString KeyMaximumAge; public static NSString KeyPort; private static readonly IntPtr selPropertiesHandle; private static readonly IntPtr selVersionHandle; private static readonly IntPtr selValueHandle; private static readonly IntPtr selExpiresDateHandle; private static readonly IntPtr selIsSessionOnlyHandle; private static readonly IntPtr selDomainHandle; private static readonly IntPtr selNameHandle; private static readonly IntPtr selPathHandle; private static readonly IntPtr selIsSecureHandle; private static readonly IntPtr selIsHTTPOnlyHandle; private static readonly IntPtr selCommentHandle; private static readonly IntPtr selCommentURLHandle; private static readonly IntPtr selPortListHandle; private static readonly IntPtr selInitWithProperties_Handle; private static readonly IntPtr selCookieWithProperties_Handle; private static readonly IntPtr selRequestHeaderFieldsWithCookies_Handle; private static readonly IntPtr selCookiesWithResponseHeaderFieldsForURL_Handle; private static readonly IntPtr class_ptr; private object __mt_Properties_var; private object __mt_ExpiresDate_var; private object __mt_CommentUrl_var; private object __mt_PortList_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary Properties { [Export("properties")] get { return (NSDictionary)(__mt_Properties_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPropertiesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPropertiesHandle))))); } } public virtual ulong Version { [Export("version")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selVersionHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selVersionHandle); } } public virtual string Value { [Export("value")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)); } } public virtual NSDate ExpiresDate { [Export("expiresDate")] get { return (NSDate)(__mt_ExpiresDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExpiresDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExpiresDateHandle))))); } } public virtual bool IsSessionOnly { [Export("isSessionOnly")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSessionOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSessionOnlyHandle); } } public virtual string Domain { [Export("domain")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDomainHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDomainHandle)); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual string Path { [Export("path")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathHandle)); } } public virtual bool IsSecure { [Export("isSecure")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSecureHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSecureHandle); } } public virtual bool IsHttpOnly { [Export("isHTTPOnly")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHTTPOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHTTPOnlyHandle); } } public virtual string Comment { [Export("comment")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCommentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommentHandle)); } } public virtual NSUrl CommentUrl { [Export("commentURL")] get { return (NSUrl)(__mt_CommentUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommentURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCommentURLHandle))))); } } public virtual NSNumber[] PortList { [Export("portList")] get { return (NSNumber[])(__mt_PortList_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPortListHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPortListHandle)))); } } static NSHttpCookie() { selPropertiesHandle = Selector.GetHandle("properties"); selVersionHandle = Selector.GetHandle("version"); selValueHandle = Selector.GetHandle("value"); selExpiresDateHandle = Selector.GetHandle("expiresDate"); selIsSessionOnlyHandle = Selector.GetHandle("isSessionOnly"); selDomainHandle = Selector.GetHandle("domain"); selNameHandle = Selector.GetHandle("name"); selPathHandle = Selector.GetHandle("path"); selIsSecureHandle = Selector.GetHandle("isSecure"); selIsHTTPOnlyHandle = Selector.GetHandle("isHTTPOnly"); selCommentHandle = Selector.GetHandle("comment"); selCommentURLHandle = Selector.GetHandle("commentURL"); selPortListHandle = Selector.GetHandle("portList"); selInitWithProperties_Handle = Selector.GetHandle("initWithProperties:"); selCookieWithProperties_Handle = Selector.GetHandle("cookieWithProperties:"); selRequestHeaderFieldsWithCookies_Handle = Selector.GetHandle("requestHeaderFieldsWithCookies:"); selCookiesWithResponseHeaderFieldsForURL_Handle = Selector.GetHandle("cookiesWithResponseHeaderFields:forURL:"); class_ptr = Class.GetHandle("NSHTTPCookie"); IntPtr intPtr = Libraries.Foundation.Handle; if (!(intPtr == IntPtr.Zero)) { KeyName = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieName"); KeyValue = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieValue"); KeyOriginURL = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieOriginURL"); KeyVersion = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieVersion"); KeyDomain = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieDomain"); KeyPath = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookiePath"); KeySecure = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieSecure"); KeyExpires = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieExpires"); KeyComment = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieComment"); KeyCommentURL = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieCommentURL"); KeyDiscard = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieDiscard"); KeyMaximumAge = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieMaximumAge"); KeyPort = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookiePort"); } } public NSHttpCookie(string name, string value) : this(name, value, null, null) { CreateCookie(name, value, null, null, null, null, null, null, null, null, null, null); } public NSHttpCookie(string name, string value, string path) : this(name, value, path, null) { CreateCookie(name, value, path, null, null, null, null, null, null, null, null, null); } public NSHttpCookie(string name, string value, string path, string domain) { CreateCookie(name, value, path, domain, null, null, null, null, null, null, null, null); } private void CreateCookie(string name, string value, string path, string domain, string comment, string commentUrl, bool? discard, DateTime? expires, int? maximumAge, string ports, bool? secure, int? version) { if (name == null) { throw new ArgumentNullException("name"); } if (value == null) { throw new ArgumentNullException("value"); } if (string.IsNullOrEmpty(path)) { path = "/"; } if (string.IsNullOrEmpty(domain)) { domain = "*"; } using NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); nSMutableDictionary.Add(KeyName, new NSString(name)); nSMutableDictionary.Add(KeyValue, new NSString(value)); nSMutableDictionary.Add(KeyPath, new NSString(path)); nSMutableDictionary.Add(KeyDomain, new NSString(domain)); if (!string.IsNullOrEmpty(comment)) { nSMutableDictionary.Add(KeyComment, new NSString(comment)); } if (!string.IsNullOrEmpty(commentUrl)) { nSMutableDictionary.Add(KeyCommentURL, new NSString(commentUrl)); } if (discard.HasValue) { nSMutableDictionary.Add(KeyDiscard, new NSString(discard.Value ? "TRUE" : "FALSE")); } if (expires.HasValue && expires.Value != DateTime.MinValue) { nSMutableDictionary.Add(KeyExpires, (NSDate)expires.Value); } if (maximumAge.HasValue) { nSMutableDictionary.Add(KeyMaximumAge, new NSString(maximumAge.Value.ToString())); } if (!string.IsNullOrEmpty(ports)) { nSMutableDictionary.Add(KeyPort, new NSString(ports.Replace("\"", string.Empty))); } if (secure.HasValue && secure.Value) { nSMutableDictionary.Add(KeySecure, new NSString("1")); } if (version.HasValue) { nSMutableDictionary.Add(KeyVersion, new NSString(version.Value.ToString())); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithProperties_Handle, nSMutableDictionary.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithProperties_Handle, nSMutableDictionary.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSHttpCookie(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpCookie(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpCookie(IntPtr handle) : base(handle) { } [Export("initWithProperties:")] public NSHttpCookie(NSDictionary properties) : base(NSObjectFlag.Empty) { if (properties == null) { throw new ArgumentNullException("properties"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithProperties_Handle, properties.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithProperties_Handle, properties.Handle); } } [Export("cookieWithProperties:")] public static NSHttpCookie CookieFromProperties(NSDictionary properties) { if (properties == null) { throw new ArgumentNullException("properties"); } return (NSHttpCookie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCookieWithProperties_Handle, properties.Handle)); } [Export("requestHeaderFieldsWithCookies:")] public static NSDictionary RequestHeaderFieldsWithCookies(NSHttpCookie[] cookies) { if (cookies == null) { throw new ArgumentNullException("cookies"); } NSArray nSArray = NSArray.FromNSObjects(cookies); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selRequestHeaderFieldsWithCookies_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("cookiesWithResponseHeaderFields:forURL:")] public static NSHttpCookie[] CookiesWithResponseHeaderFields(NSDictionary headerFields, NSUrl url) { if (headerFields == null) { throw new ArgumentNullException("headerFields"); } if (url == null) { throw new ArgumentNullException("url"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selCookiesWithResponseHeaderFieldsForURL_Handle, headerFields.Handle, url.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Properties_var = null; __mt_ExpiresDate_var = null; __mt_CommentUrl_var = null; __mt_PortList_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSHttpCookieAcceptPolicy.cs ================================================ namespace Foundation; public enum NSHttpCookieAcceptPolicy : ulong { Always, Never, OnlyFromMainDocumentDomain } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSHttpCookieStorage.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSHTTPCookieStorage", true)] public class NSHttpCookieStorage : NSObject { public static NSString CookiesChangedNotification; public static NSString AcceptPolicyChangedNotification; private static readonly IntPtr selSharedHTTPCookieStorageHandle; private static readonly IntPtr selCookiesHandle; private static readonly IntPtr selCookieAcceptPolicyHandle; private static readonly IntPtr selSetCookieAcceptPolicy_Handle; private static readonly IntPtr selSetCookie_Handle; private static readonly IntPtr selDeleteCookie_Handle; private static readonly IntPtr selCookiesForURL_Handle; private static readonly IntPtr selSetCookiesForURLMainDocumentURL_Handle; private static readonly IntPtr selSortedCookiesUsingDescriptors_Handle; private static readonly IntPtr class_ptr; private static object __mt_SharedStorage_var_static; private object __mt_Cookies_var; public override IntPtr ClassHandle => class_ptr; public static NSHttpCookieStorage SharedStorage { [Export("sharedHTTPCookieStorage")] get { return (NSHttpCookieStorage)(__mt_SharedStorage_var_static = (NSHttpCookieStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedHTTPCookieStorageHandle))); } } public virtual NSHttpCookie[] Cookies { [Export("cookies")] get { return (NSHttpCookie[])(__mt_Cookies_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCookiesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCookiesHandle)))); } } public virtual NSHttpCookieAcceptPolicy AcceptPolicy { [Export("cookieAcceptPolicy")] get { if (IsDirectBinding) { return (NSHttpCookieAcceptPolicy)Messaging.UInt64_objc_msgSend(base.Handle, selCookieAcceptPolicyHandle); } return (NSHttpCookieAcceptPolicy)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCookieAcceptPolicyHandle); } [Export("setCookieAcceptPolicy:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCookieAcceptPolicy_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCookieAcceptPolicy_Handle, (ulong)value); } } } static NSHttpCookieStorage() { selSharedHTTPCookieStorageHandle = Selector.GetHandle("sharedHTTPCookieStorage"); selCookiesHandle = Selector.GetHandle("cookies"); selCookieAcceptPolicyHandle = Selector.GetHandle("cookieAcceptPolicy"); selSetCookieAcceptPolicy_Handle = Selector.GetHandle("setCookieAcceptPolicy:"); selSetCookie_Handle = Selector.GetHandle("setCookie:"); selDeleteCookie_Handle = Selector.GetHandle("deleteCookie:"); selCookiesForURL_Handle = Selector.GetHandle("cookiesForURL:"); selSetCookiesForURLMainDocumentURL_Handle = Selector.GetHandle("setCookies:forURL:mainDocumentURL:"); selSortedCookiesUsingDescriptors_Handle = Selector.GetHandle("sortedCookiesUsingDescriptors:"); class_ptr = Class.GetHandle("NSHTTPCookieStorage"); IntPtr intPtr = Libraries.Foundation.Handle; if (!(intPtr == IntPtr.Zero)) { CookiesChangedNotification = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieManagerAcceptPolicyChangedNotification"); AcceptPolicyChangedNotification = Dlfcn.GetStringConstant(intPtr, "NSHTTPCookieManagerCookiesChangedNotification"); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSHttpCookieStorage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpCookieStorage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpCookieStorage(IntPtr handle) : base(handle) { } [Export("setCookie:")] public virtual void SetCookie(NSHttpCookie cookie) { if (cookie == null) { throw new ArgumentNullException("cookie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCookie_Handle, cookie.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCookie_Handle, cookie.Handle); } } [Export("deleteCookie:")] public virtual void DeleteCookie(NSHttpCookie cookie) { if (cookie == null) { throw new ArgumentNullException("cookie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeleteCookie_Handle, cookie.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeleteCookie_Handle, cookie.Handle); } } [Export("cookiesForURL:")] public virtual NSHttpCookie[] CookiesForUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCookiesForURL_Handle, url.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCookiesForURL_Handle, url.Handle)); } [Export("setCookies:forURL:mainDocumentURL:")] public virtual void SetCookies(NSHttpCookie[] cookies, NSUrl forUrl, NSUrl mainDocumentUrl) { if (cookies == null) { throw new ArgumentNullException("cookies"); } if (forUrl == null) { throw new ArgumentNullException("forUrl"); } if (mainDocumentUrl == null) { throw new ArgumentNullException("mainDocumentUrl"); } NSArray nSArray = NSArray.FromNSObjects(cookies); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetCookiesForURLMainDocumentURL_Handle, nSArray.Handle, forUrl.Handle, mainDocumentUrl.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetCookiesForURLMainDocumentURL_Handle, nSArray.Handle, forUrl.Handle, mainDocumentUrl.Handle); } nSArray.Dispose(); } [Export("sortedCookiesUsingDescriptors:")] public virtual NSHttpCookie[] GetSortedCookies(NSSortDescriptor[] sortDescriptors) { if (sortDescriptors == null) { throw new ArgumentNullException("sortDescriptors"); } NSArray nSArray = NSArray.FromNSObjects(sortDescriptors); NSHttpCookie[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSortedCookiesUsingDescriptors_Handle, nSArray.Handle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSortedCookiesUsingDescriptors_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Cookies_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSHttpUrlResponse.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSHTTPURLResponse", true)] public class NSHttpUrlResponse : NSUrlResponse { private static readonly IntPtr selStatusCodeHandle = Selector.GetHandle("statusCode"); private static readonly IntPtr selAllHeaderFieldsHandle = Selector.GetHandle("allHeaderFields"); private static readonly IntPtr selInitWithURLStatusCodeHTTPVersionHeaderFields_Handle = Selector.GetHandle("initWithURL:statusCode:HTTPVersion:headerFields:"); private static readonly IntPtr selLocalizedStringForStatusCode_Handle = Selector.GetHandle("localizedStringForStatusCode:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSHTTPURLResponse"); private object __mt_AllHeaderFields_var; public override IntPtr ClassHandle => class_ptr; public virtual long StatusCode { [Export("statusCode")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selStatusCodeHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selStatusCodeHandle); } } public virtual NSDictionary AllHeaderFields { [Export("allHeaderFields")] get { return (NSDictionary)(__mt_AllHeaderFields_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllHeaderFieldsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAllHeaderFieldsHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSHttpUrlResponse() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSHttpUrlResponse(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpUrlResponse(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSHttpUrlResponse(IntPtr handle) : base(handle) { } [Export("initWithURL:statusCode:HTTPVersion:headerFields:")] public NSHttpUrlResponse(NSUrl url, long statusCode, string httpVersion, NSDictionary headerFields) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (httpVersion == null) { throw new ArgumentNullException("httpVersion"); } if (headerFields == null) { throw new ArgumentNullException("headerFields"); } IntPtr arg = NSString.CreateNative(httpVersion); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_IntPtr_IntPtr(base.Handle, selInitWithURLStatusCodeHTTPVersionHeaderFields_Handle, url.Handle, statusCode, arg, headerFields.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr_IntPtr(base.SuperHandle, selInitWithURLStatusCodeHTTPVersionHeaderFields_Handle, url.Handle, statusCode, arg, headerFields.Handle); } NSString.ReleaseNative(arg); } [Export("localizedStringForStatusCode:")] public static string LocalizedStringForStatusCode(long statusCode) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_Int64(class_ptr, selLocalizedStringForStatusCode_Handle, statusCode)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AllHeaderFields_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSIndexPath.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSIndexPath", true)] public class NSIndexPath : NSObject { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selIndexPathWithIndex_Handle = Selector.GetHandle("indexPathWithIndex:"); private static readonly IntPtr selIndexPathWithIndexesLength_Handle = Selector.GetHandle("indexPathWithIndexes:length:"); private static readonly IntPtr selIndexPathByAddingIndex_Handle = Selector.GetHandle("indexPathByAddingIndex:"); private static readonly IntPtr selIndexPathByRemovingLastIndexHandle = Selector.GetHandle("indexPathByRemovingLastIndex"); private static readonly IntPtr selIndexAtPosition_Handle = Selector.GetHandle("indexAtPosition:"); private static readonly IntPtr selGetIndexes_Handle = Selector.GetHandle("getIndexes:"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSIndexPath"); public override IntPtr ClassHandle => class_ptr; public virtual ulong Length { [Export("length")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } [Advice("Use NSIndexPath.Create (int[]) instead")] public NSIndexPath FromIndexes(uint[] indexes) { if (indexes == null) { throw new ArgumentNullException("indexes"); } IntPtr intPtr = Marshal.AllocHGlobal(4 * indexes.Length); for (int i = 0; i < indexes.Length; i++) { Marshal.WriteInt32(intPtr, i * 4, (int)indexes[i]); } NSIndexPath result = _FromIndex(intPtr, (ulong)indexes.Length); Marshal.FreeHGlobal(intPtr); return result; } public static NSIndexPath Create(params int[] indexes) { if (indexes == null) { throw new ArgumentNullException("indexes"); } IntPtr intPtr = Marshal.AllocHGlobal(4 * indexes.Length); for (int i = 0; i < indexes.Length; i++) { Marshal.WriteInt32(intPtr, i * 4, indexes[i]); } NSIndexPath result = _FromIndex(intPtr, (ulong)indexes.Length); Marshal.FreeHGlobal(intPtr); return result; } public static NSIndexPath Create(params uint[] indexes) { if (indexes == null) { throw new ArgumentNullException("indexes"); } IntPtr intPtr = Marshal.AllocHGlobal(4 * indexes.Length); for (int i = 0; i < indexes.Length; i++) { Marshal.WriteInt32(intPtr, i * 4, (int)indexes[i]); } NSIndexPath result = _FromIndex(intPtr, (ulong)indexes.Length); Marshal.FreeHGlobal(intPtr); return result; } public uint[] GetIndexes() { int num = (int)Length; IntPtr intPtr = Marshal.AllocHGlobal(4 * num); uint[] array = new uint[num]; for (int i = 0; i < num; i++) { array[i] = (uint)Marshal.ReadInt32(intPtr, i * 4); } Marshal.FreeHGlobal(intPtr); return array; } public override bool Equals(object obj) { if (obj == null) { return false; } if (!(obj is NSIndexPath other)) { return false; } return Compare(other) == 0; } public override int GetHashCode() { return (int)Length; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSIndexPath() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSIndexPath(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIndexPath(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIndexPath(IntPtr handle) : base(handle) { } [Export("indexPathWithIndex:")] public static NSIndexPath FromIndex(ulong index) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selIndexPathWithIndex_Handle, index)); } [Export("indexPathWithIndexes:length:")] internal static NSIndexPath _FromIndex(IntPtr indexes, ulong len) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(class_ptr, selIndexPathWithIndexesLength_Handle, indexes, len)); } [Export("indexPathByAddingIndex:")] public virtual NSIndexPath IndexPathByAddingIndex(ulong index) { if (IsDirectBinding) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selIndexPathByAddingIndex_Handle, index)); } return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexPathByAddingIndex_Handle, index)); } [Export("indexPathByRemovingLastIndex")] public virtual NSIndexPath IndexPathByRemovingLastIndex() { if (IsDirectBinding) { return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIndexPathByRemovingLastIndexHandle)); } return (NSIndexPath)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIndexPathByRemovingLastIndexHandle)); } [Export("indexAtPosition:")] public virtual ulong IndexAtPosition(ulong position) { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selIndexAtPosition_Handle, position); } return Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexAtPosition_Handle, position); } [Export("getIndexes:")] internal virtual void _GetIndexes(IntPtr target) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetIndexes_Handle, target); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetIndexes_Handle, target); } } [Export("compare:")] public virtual long Compare(NSIndexPath other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, other.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, other.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSIndexSet.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSIndexSet", true)] public class NSIndexSet : NSObject, IEnumerable, IEnumerable { private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selFirstIndexHandle = Selector.GetHandle("firstIndex"); private static readonly IntPtr selLastIndexHandle = Selector.GetHandle("lastIndex"); private static readonly IntPtr selIndexSetWithIndex_Handle = Selector.GetHandle("indexSetWithIndex:"); private static readonly IntPtr selIndexSetWithIndexesInRange_Handle = Selector.GetHandle("indexSetWithIndexesInRange:"); private static readonly IntPtr selInitWithIndex_Handle = Selector.GetHandle("initWithIndex:"); private static readonly IntPtr selInitWithIndexSet_Handle = Selector.GetHandle("initWithIndexSet:"); private static readonly IntPtr selIsEqualToIndexSet_Handle = Selector.GetHandle("isEqualToIndexSet:"); private static readonly IntPtr selIndexGreaterThanIndex_Handle = Selector.GetHandle("indexGreaterThanIndex:"); private static readonly IntPtr selIndexLessThanIndex_Handle = Selector.GetHandle("indexLessThanIndex:"); private static readonly IntPtr selIndexGreaterThanOrEqualToIndex_Handle = Selector.GetHandle("indexGreaterThanOrEqualToIndex:"); private static readonly IntPtr selIndexLessThanOrEqualToIndex_Handle = Selector.GetHandle("indexLessThanOrEqualToIndex:"); private static readonly IntPtr selContainsIndex_Handle = Selector.GetHandle("containsIndex:"); private static readonly IntPtr selContainsIndexes_Handle = Selector.GetHandle("containsIndexes:"); private static readonly IntPtr selEnumerateRangesUsingBlock_Handle = Selector.GetHandle("enumerateRangesUsingBlock:"); private static readonly IntPtr selEnumerateRangesWithOptionsUsingBlock_Handle = Selector.GetHandle("enumerateRangesWithOptions:usingBlock:"); private static readonly IntPtr selEnumerateRangesInRangeOptionsUsingBlock_Handle = Selector.GetHandle("enumerateRangesInRange:options:usingBlock:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSIndexSet"); public override IntPtr ClassHandle => class_ptr; public virtual ulong Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCountHandle); } } public virtual ulong FirstIndex { [Export("firstIndex")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selFirstIndexHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFirstIndexHandle); } } public virtual ulong LastIndex { [Export("lastIndex")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLastIndexHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLastIndexHandle); } } IEnumerator IEnumerable.GetEnumerator() { for (ulong i = FirstIndex; i <= LastIndex; i = IndexGreaterThan(i)) { yield return i; } } public IEnumerator GetEnumerator() { for (ulong i = FirstIndex; i <= LastIndex; i = IndexGreaterThan(i)) { yield return i; } } public ulong[] ToArray() { ulong[] array = new ulong[Count]; int num = 0; for (ulong num2 = FirstIndex; num2 <= LastIndex; num2 = IndexGreaterThan(num2)) { array[num++] = num2; } return array; } public static NSIndexSet FromArray(ulong[] items) { if (items == null) { return new NSIndexSet(); } NSMutableIndexSet nSMutableIndexSet = new NSMutableIndexSet(); foreach (ulong index in items) { nSMutableIndexSet.Add(index); } return nSMutableIndexSet; } public static NSIndexSet FromArray(int[] items) { if (items == null) { return new NSIndexSet(); } NSMutableIndexSet nSMutableIndexSet = new NSMutableIndexSet(); foreach (int num in items) { if (num < 0) { throw new ArgumentException("One of the items values is negative"); } nSMutableIndexSet.Add((uint)num); } return nSMutableIndexSet; } public NSIndexSet(int value) : this((uint)value) { if (value < 0) { throw new ArgumentException("value must be positive"); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSIndexSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSIndexSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIndexSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSIndexSet(IntPtr handle) : base(handle) { } [Export("indexSetWithIndex:")] public static NSIndexSet FromIndex(ulong idx) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selIndexSetWithIndex_Handle, idx)); } [Export("indexSetWithIndexesInRange:")] public static NSIndexSet FromNSRange(NSRange indexRange) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(class_ptr, selIndexSetWithIndexesInRange_Handle, indexRange)); } [Export("initWithIndex:")] public NSIndexSet(ulong index) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithIndex_Handle, index); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithIndex_Handle, index); } } [Export("initWithIndexSet:")] public NSIndexSet(NSIndexSet other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIndexSet_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIndexSet_Handle, other.Handle); } } [Export("isEqualToIndexSet:")] public virtual bool IsEqual(NSIndexSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToIndexSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToIndexSet_Handle, other.Handle); } [Export("indexGreaterThanIndex:")] public virtual ulong IndexGreaterThan(ulong index) { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selIndexGreaterThanIndex_Handle, index); } return Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexGreaterThanIndex_Handle, index); } [Export("indexLessThanIndex:")] public virtual ulong IndexLessThan(ulong index) { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selIndexLessThanIndex_Handle, index); } return Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexLessThanIndex_Handle, index); } [Export("indexGreaterThanOrEqualToIndex:")] public virtual ulong IndexGreaterThanOrEqual(ulong index) { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selIndexGreaterThanOrEqualToIndex_Handle, index); } return Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexGreaterThanOrEqualToIndex_Handle, index); } [Export("indexLessThanOrEqualToIndex:")] public virtual ulong IndexLessThanOrEqual(ulong index) { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_UInt64(base.Handle, selIndexLessThanOrEqualToIndex_Handle, index); } return Messaging.UInt64_objc_msgSendSuper_UInt64(base.SuperHandle, selIndexLessThanOrEqualToIndex_Handle, index); } [Export("containsIndex:")] public virtual bool Contains(ulong index) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_UInt64(base.Handle, selContainsIndex_Handle, index); } return Messaging.bool_objc_msgSendSuper_UInt64(base.SuperHandle, selContainsIndex_Handle, index); } [Export("containsIndexes:")] public virtual bool Contains(NSIndexSet indexes) { if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selContainsIndexes_Handle, indexes.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selContainsIndexes_Handle, indexes.Handle); } [Export("enumerateRangesUsingBlock:")] public unsafe virtual void EnumerateRanges(NSRangeIterator iterator) { if (iterator == null) { throw new ArgumentNullException("iterator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSRangeIterator.Handler, iterator); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEnumerateRangesUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEnumerateRangesUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("enumerateRangesWithOptions:usingBlock:")] public unsafe virtual void EnumerateRanges(NSEnumerationOptions opts, NSRangeIterator iterator) { if (iterator == null) { throw new ArgumentNullException("iterator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSRangeIterator.Handler, iterator); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(base.Handle, selEnumerateRangesWithOptionsUsingBlock_Handle, (ulong)opts, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selEnumerateRangesWithOptionsUsingBlock_Handle, (ulong)opts, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("enumerateRangesInRange:options:usingBlock:")] public unsafe virtual void EnumerateRanges(NSRange range, NSEnumerationOptions opts, NSRangeIterator iterator) { if (iterator == null) { throw new ArgumentNullException("iterator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSRangeIterator.Handler, iterator); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_UInt64_IntPtr(base.Handle, selEnumerateRangesInRangeOptionsUsingBlock_Handle, range, (ulong)opts, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_NSRange_UInt64_IntPtr(base.SuperHandle, selEnumerateRangesInRangeOptionsUsingBlock_Handle, range, (ulong)opts, (IntPtr)ptr); } ptr->CleanupBlock(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSInputStream.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreFoundation; using ObjCRuntime; namespace Foundation; [Register("NSInputStream", true)] public class NSInputStream : NSStream { private const string selReadMaxLength = "read:maxLength:"; private CFStreamEventType flags; private IntPtr callback; private CFStreamClientContext context; private static readonly IntPtr selHasBytesAvailableHandle = Selector.GetHandle("hasBytesAvailable"); private static readonly IntPtr selInitWithFileAtPath_Handle = Selector.GetHandle("initWithFileAtPath:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInputStreamWithData_Handle = Selector.GetHandle("inputStreamWithData:"); private static readonly IntPtr selInputStreamWithFileAtPath_Handle = Selector.GetHandle("inputStreamWithFileAtPath:"); private static readonly IntPtr selInputStreamWithURL_Handle = Selector.GetHandle("inputStreamWithURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSInputStream"); public override IntPtr ClassHandle => class_ptr; public long Read(byte[] buffer, ulong len) { return objc_msgSend(base.Handle, Selector.GetHandle("read:maxLength:"), buffer, len); } [DllImport("/usr/lib/libobjc.dylib")] private static extern long objc_msgSend(IntPtr handle, IntPtr sel, [In][Out] byte[] buffer, ulong len); [DllImport("/usr/lib/libobjc.dylib")] private static extern long objc_msgSend(IntPtr handle, IntPtr sel, IntPtr buffer, ulong len); [Export("read:maxLength:")] public virtual long Read(IntPtr buffer, ulong len) { if (buffer == IntPtr.Zero) { throw new ArgumentNullException("buffer"); } if (IsDirectBinding) { return objc_msgSend(base.Handle, Selector.GetHandle("read:maxLength:"), buffer, len); } return objc_msgSend(base.SuperHandle, Selector.GetHandle("read:maxLength:"), buffer, len); } protected override void Dispose(bool disposing) { context.Release(); context.Info = IntPtr.Zero; base.Dispose(disposing); } [Export("_setCFClientFlags:callback:context:")] protected virtual bool SetCFClientFlags(CFStreamEventType inFlags, IntPtr inCallback, IntPtr inContextPtr) { if (inContextPtr == IntPtr.Zero) { return false; } CFStreamClientContext cFStreamClientContext = (CFStreamClientContext)Marshal.PtrToStructure(inContextPtr, typeof(CFStreamClientContext)); if (cFStreamClientContext.Version != 0) { return false; } context.Release(); context = cFStreamClientContext; context.Retain(); flags = inFlags; callback = inCallback; return true; } [Export("getBuffer:length:")] protected virtual bool GetBuffer(out IntPtr buffer, out uint len) { buffer = IntPtr.Zero; len = 0u; return false; } public void Notify(CFStreamEventType eventType) { if ((flags & eventType) != 0) { context.Invoke(callback, base.Handle, eventType); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] protected NSInputStream() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSInputStream(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSInputStream(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSInputStream(IntPtr handle) : base(handle) { } [Export("hasBytesAvailable")] public virtual bool HasBytesAvailable() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasBytesAvailableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasBytesAvailableHandle); } [Export("initWithFileAtPath:")] public NSInputStream(string path) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithFileAtPath_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithFileAtPath_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithData:")] public NSInputStream(NSData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("initWithURL:")] public NSInputStream(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("inputStreamWithData:")] public static NSInputStream FromData(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return (NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selInputStreamWithData_Handle, data.Handle)); } [Export("inputStreamWithFileAtPath:")] public static NSInputStream FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSInputStream result = (NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selInputStreamWithFileAtPath_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("inputStreamWithURL:")] public static NSInputStream FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selInputStreamWithURL_Handle, url.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSInvocation.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSInvocation", true)] public class NSInvocation : NSObject { private static readonly IntPtr selSelectorHandle = Selector.GetHandle("selector"); private static readonly IntPtr selSetSelector_Handle = Selector.GetHandle("setSelector:"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selSetTarget_Handle = Selector.GetHandle("setTarget:"); private static readonly IntPtr selMethodSignatureHandle = Selector.GetHandle("methodSignature"); private static readonly IntPtr selSetArgumentAtIndex_Handle = Selector.GetHandle("setArgument:atIndex:"); private static readonly IntPtr selGetArgumentAtIndex_Handle = Selector.GetHandle("getArgument:atIndex:"); private static readonly IntPtr selSetReturnValue_Handle = Selector.GetHandle("setReturnValue:"); private static readonly IntPtr selGetReturnValue_Handle = Selector.GetHandle("getReturnValue:"); private static readonly IntPtr selInvokeHandle = Selector.GetHandle("invoke"); private static readonly IntPtr selInvokeWithTarget_Handle = Selector.GetHandle("invokeWithTarget:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSInvocation"); private object __mt_Target_var; private object __mt_MethodSignature_var; public override IntPtr ClassHandle => class_ptr; public virtual Selector Selector { [Export("selector")] get { if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectorHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectorHandle)); } [Export("setSelector:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelector_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelector_Handle, value.Handle); } } } public virtual NSObject Target { [Export("target")] get { return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } [Export("setTarget:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTarget_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTarget_Handle, value.Handle); } __mt_Target_var = value; } } public virtual NSMethodSignature MethodSignature { [Export("methodSignature")] get { return (NSMethodSignature)(__mt_MethodSignature_var = ((!IsDirectBinding) ? ((NSMethodSignature)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMethodSignatureHandle))) : ((NSMethodSignature)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMethodSignatureHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSInvocation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSInvocation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSInvocation(IntPtr handle) : base(handle) { } [Export("setArgument:atIndex:")] internal virtual void _SetArgument(IntPtr buffer, int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetArgumentAtIndex_Handle, buffer, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetArgumentAtIndex_Handle, buffer, index); } } [Export("getArgument:atIndex:")] internal virtual void _GetArgument(IntPtr buffer, int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selGetArgumentAtIndex_Handle, buffer, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selGetArgumentAtIndex_Handle, buffer, index); } } [Export("setReturnValue:")] internal virtual void _SetReturnValue(IntPtr buffer) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetReturnValue_Handle, buffer); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetReturnValue_Handle, buffer); } } [Export("getReturnValue:")] internal virtual void _GetReturnValue(IntPtr buffer) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetReturnValue_Handle, buffer); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetReturnValue_Handle, buffer); } } [Export("invoke")] public virtual void Invoke() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvokeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvokeHandle); } } [Export("invokeWithTarget:")] public virtual void Invoke(NSObject target) { if (target == null) { throw new ArgumentNullException("target"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInvokeWithTarget_Handle, target.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInvokeWithTarget_Handle, target.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Target_var = null; __mt_MethodSignature_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSJsonReadingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSJsonReadingOptions : ulong { MutableContainers = 1uL, MutableLeaves = 2uL, AllowFragments = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSJsonSerialization.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSJSONSerialization", true)] public class NSJsonSerialization : NSObject { private static readonly IntPtr selIsValidJSONObject_Handle = Selector.GetHandle("isValidJSONObject:"); private static readonly IntPtr selDataWithJSONObjectOptionsError_Handle = Selector.GetHandle("dataWithJSONObject:options:error:"); private static readonly IntPtr selJSONObjectWithDataOptionsError_Handle = Selector.GetHandle("JSONObjectWithData:options:error:"); private static readonly IntPtr selWriteJSONObjectToStreamOptionsError_Handle = Selector.GetHandle("writeJSONObject:toStream:options:error:"); private static readonly IntPtr selJSONObjectWithStreamOptionsError_Handle = Selector.GetHandle("JSONObjectWithStream:options:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSJSONSerialization"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSJsonSerialization(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSJsonSerialization(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSJsonSerialization(IntPtr handle) : base(handle) { } [Export("isValidJSONObject:")] public static bool IsValidJSONObject(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selIsValidJSONObject_Handle, obj.Handle); } [Export("dataWithJSONObject:options:error:")] public static NSData Serialize(NSObject obj, NSJsonWritingOptions opt, out NSError error) { if (obj == null) { throw new ArgumentNullException("obj"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selDataWithJSONObjectOptionsError_Handle, obj.Handle, (ulong)opt, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("JSONObjectWithData:options:error:")] public static NSObject Deserialize(NSData data, NSJsonReadingOptions opt, NSError error) { if (data == null) { throw new ArgumentNullException("data"); } if (error == null) { throw new ArgumentNullException("error"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selJSONObjectWithDataOptionsError_Handle, data.Handle, (ulong)opt, error.Handle)); } [Export("writeJSONObject:toStream:options:error:")] public static long Serialize(NSObject obj, NSOutputStream stream, NSJsonWritingOptions opt, out NSError error) { if (obj == null) { throw new ArgumentNullException("obj"); } if (stream == null) { throw new ArgumentNullException("stream"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); long result = Messaging.Int64_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(class_ptr, selWriteJSONObjectToStreamOptionsError_Handle, obj.Handle, stream.Handle, (ulong)opt, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("JSONObjectWithStream:options:error:")] public static NSObject Deserialize(NSInputStream stream, NSJsonReadingOptions opt, out NSError error) { if (stream == null) { throw new ArgumentNullException("stream"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(class_ptr, selJSONObjectWithStreamOptionsError_Handle, stream.Handle, (ulong)opt, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSJsonWritingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSJsonWritingOptions : ulong { PrettyPrinted = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyValueChange.cs ================================================ namespace Foundation; public enum NSKeyValueChange : ulong { Setting = 1uL, Insertion, Removal, Replacement } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyValueObservingOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSKeyValueObservingOptions : ulong { New = 1uL, Old = 2uL, OldNew = 3uL, Initial = 4uL, Prior = 8uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyValueSetMutationKind.cs ================================================ namespace Foundation; public enum NSKeyValueSetMutationKind : ulong { UnionSet = 1uL, MinusSet, IntersectSet, SetSet } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyedArchiver.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSKeyedArchiver", true)] public class NSKeyedArchiver : NSCoder { [Register] private sealed class _NSKeyedArchiverDelegate : NSKeyedArchiverDelegate { internal EventHandler encodedObject; internal EventHandler finished; internal NSEncodeHook willEncode; internal EventHandler finishing; internal EventHandler replacingObject; [Preserve(Conditional = true)] public override void EncodedObject(NSKeyedArchiver archiver, NSObject obj) { EventHandler eventHandler = encodedObject; if (eventHandler != null) { NSObjectEventArgs e = new NSObjectEventArgs(obj); eventHandler(archiver, e); } } [Preserve(Conditional = true)] public override void Finished(NSKeyedArchiver archiver) { finished?.Invoke(archiver, EventArgs.Empty); } [Preserve(Conditional = true)] public override NSObject WillEncode(NSKeyedArchiver archiver, NSObject obj) { return willEncode?.Invoke(archiver, obj); } [Preserve(Conditional = true)] public override void Finishing(NSKeyedArchiver archiver) { finishing?.Invoke(archiver, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ReplacingObject(NSKeyedArchiver archiver, NSObject oldObject, NSObject newObject) { EventHandler eventHandler = replacingObject; if (eventHandler != null) { NSArchiveReplaceEventArgs e = new NSArchiveReplaceEventArgs(oldObject, newObject); eventHandler(archiver, e); } } } private static readonly IntPtr selOutputFormatHandle = Selector.GetHandle("outputFormat"); private static readonly IntPtr selSetOutputFormat_Handle = Selector.GetHandle("setOutputFormat:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitForWritingWithMutableData_Handle = Selector.GetHandle("initForWritingWithMutableData:"); private static readonly IntPtr selArchivedDataWithRootObject_Handle = Selector.GetHandle("archivedDataWithRootObject:"); private static readonly IntPtr selArchiveRootObjectToFile_Handle = Selector.GetHandle("archiveRootObject:toFile:"); private static readonly IntPtr selFinishEncodingHandle = Selector.GetHandle("finishEncoding"); private static readonly IntPtr selSetClassNameForClass_Handle = Selector.GetHandle("setClassName:forClass:"); private static readonly IntPtr selClassNameForClass_Handle = Selector.GetHandle("classNameForClass:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSKeyedArchiver"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSPropertyListFormat PropertyListFormat { [Export("outputFormat")] get { if (IsDirectBinding) { return (NSPropertyListFormat)Messaging.UInt64_objc_msgSend(base.Handle, selOutputFormatHandle); } return (NSPropertyListFormat)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOutputFormatHandle); } [Export("setOutputFormat:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetOutputFormat_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetOutputFormat_Handle, (ulong)value); } } } public NSKeyedArchiverDelegate Delegate { get { return WeakDelegate as NSKeyedArchiverDelegate; } set { WeakDelegate = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSEncodeHook WillEncode { get { return EnsureNSKeyedArchiverDelegate().willEncode; } set { EnsureNSKeyedArchiverDelegate().willEncode = value; } } public event EventHandler EncodedObject { add { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.encodedObject = (EventHandler)System.Delegate.Combine(nSKeyedArchiverDelegate.encodedObject, value); } remove { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.encodedObject = (EventHandler)System.Delegate.Remove(nSKeyedArchiverDelegate.encodedObject, value); } } public event EventHandler Finished { add { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.finished = (EventHandler)System.Delegate.Combine(nSKeyedArchiverDelegate.finished, value); } remove { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.finished = (EventHandler)System.Delegate.Remove(nSKeyedArchiverDelegate.finished, value); } } public event EventHandler Finishing { add { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.finishing = (EventHandler)System.Delegate.Combine(nSKeyedArchiverDelegate.finishing, value); } remove { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.finishing = (EventHandler)System.Delegate.Remove(nSKeyedArchiverDelegate.finishing, value); } } public event EventHandler ReplacingObject { add { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.replacingObject = (EventHandler)System.Delegate.Combine(nSKeyedArchiverDelegate.replacingObject, value); } remove { _NSKeyedArchiverDelegate nSKeyedArchiverDelegate = EnsureNSKeyedArchiverDelegate(); nSKeyedArchiverDelegate.replacingObject = (EventHandler)System.Delegate.Remove(nSKeyedArchiverDelegate.replacingObject, value); } } public static void GlobalSetClassName(string name, Class kls) { if (name == null) { throw new ArgumentNullException("name"); } if (kls == null) { throw new ArgumentNullException("kls"); } NSString nSString = new NSString(name); Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selSetClassNameForClass_Handle, nSString.Handle, kls.Handle); nSString.Dispose(); } public static string GlobalGetClassName(Class kls) { if (kls == null) { throw new ArgumentNullException("kls"); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selClassNameForClass_Handle, kls.Handle)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSKeyedArchiver(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedArchiver(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedArchiver(IntPtr handle) : base(handle) { } [Export("initForWritingWithMutableData:")] public NSKeyedArchiver(NSMutableData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitForWritingWithMutableData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitForWritingWithMutableData_Handle, data.Handle); } } [Export("archivedDataWithRootObject:")] public static NSData ArchivedDataWithRootObject(NSObject root) { if (root == null) { throw new ArgumentNullException("root"); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selArchivedDataWithRootObject_Handle, root.Handle)); } [Export("archiveRootObject:toFile:")] public static bool ArchiveRootObjectToFile(NSObject root, string file) { if (root == null) { throw new ArgumentNullException("root"); } if (file == null) { throw new ArgumentNullException("file"); } IntPtr arg = NSString.CreateNative(file); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr(class_ptr, selArchiveRootObjectToFile_Handle, root.Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("finishEncoding")] public virtual void FinishEncoding() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFinishEncodingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFinishEncodingHandle); } } [Export("setClassName:forClass:")] public virtual void SetClassName(string name, Class kls) { if (name == null) { throw new ArgumentNullException("name"); } if (kls == null) { throw new ArgumentNullException("kls"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetClassNameForClass_Handle, arg, kls.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetClassNameForClass_Handle, arg, kls.Handle); } NSString.ReleaseNative(arg); } [Export("classNameForClass:")] public virtual string GetClassName(Class kls) { if (kls == null) { throw new ArgumentNullException("kls"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selClassNameForClass_Handle, kls.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selClassNameForClass_Handle, kls.Handle)); } private _NSKeyedArchiverDelegate EnsureNSKeyedArchiverDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSKeyedArchiverDelegate)) { nSObject = (WeakDelegate = new _NSKeyedArchiverDelegate()); } return (_NSKeyedArchiverDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyedArchiverDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSKeyedArchiverDelegate", true)] [Model] public class NSKeyedArchiverDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSKeyedArchiverDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSKeyedArchiverDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedArchiverDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedArchiverDelegate(IntPtr handle) : base(handle) { } [Export("archiver:didEncodeObject:")] public virtual void EncodedObject(NSKeyedArchiver archiver, NSObject obj) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("archiverDidFinish:")] public virtual void Finished(NSKeyedArchiver archiver) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("archiver:willEncodeObject:")] public virtual NSObject WillEncode(NSKeyedArchiver archiver, NSObject obj) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("archiverWillFinish:")] public virtual void Finishing(NSKeyedArchiver archiver) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("archiver:willReplaceObject:withObject:")] public virtual void ReplacingObject(NSKeyedArchiver archiver, NSObject oldObject, NSObject newObject) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyedUnarchiver.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSKeyedUnarchiver", true)] public class NSKeyedUnarchiver : NSCoder { [Register] private sealed class _NSKeyedUnarchiverDelegate : NSKeyedUnarchiverDelegate { internal NSDecoderCallback decodedObject; internal EventHandler finished; internal NSDecoderHandler cannotDecodeClass; internal EventHandler finishing; internal EventHandler replacingObject; [Preserve(Conditional = true)] public override NSObject DecodedObject(NSKeyedUnarchiver unarchiver, NSObject obj) { return decodedObject?.Invoke(unarchiver, obj); } [Preserve(Conditional = true)] public override void Finished(NSKeyedUnarchiver unarchiver) { finished?.Invoke(unarchiver, EventArgs.Empty); } [Preserve(Conditional = true)] public override Class CannotDecodeClass(NSKeyedUnarchiver unarchiver, string klass, string[] classes) { return cannotDecodeClass?.Invoke(unarchiver, klass, classes); } [Preserve(Conditional = true)] public override void Finishing(NSKeyedUnarchiver unarchiver) { finishing?.Invoke(unarchiver, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ReplacingObject(NSKeyedUnarchiver unarchiver, NSObject oldObject, NSObject newObject) { EventHandler eventHandler = replacingObject; if (eventHandler != null) { NSArchiveReplaceEventArgs e = new NSArchiveReplaceEventArgs(oldObject, newObject); eventHandler(unarchiver, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitForReadingWithData_Handle = Selector.GetHandle("initForReadingWithData:"); private static readonly IntPtr selUnarchiveObjectWithData_Handle = Selector.GetHandle("unarchiveObjectWithData:"); private static readonly IntPtr selUnarchiveObjectWithFile_Handle = Selector.GetHandle("unarchiveObjectWithFile:"); private static readonly IntPtr selFinishDecodingHandle = Selector.GetHandle("finishDecoding"); private static readonly IntPtr selSetClassForClassName_Handle = Selector.GetHandle("setClass:forClassName:"); private static readonly IntPtr selClassForClassName_Handle = Selector.GetHandle("classForClassName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSKeyedUnarchiver"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public NSKeyedUnarchiverDelegate Delegate { get { return WeakDelegate as NSKeyedUnarchiverDelegate; } set { WeakDelegate = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSDecoderCallback DecodedObject { get { return EnsureNSKeyedUnarchiverDelegate().decodedObject; } set { EnsureNSKeyedUnarchiverDelegate().decodedObject = value; } } public NSDecoderHandler CannotDecodeClass { get { return EnsureNSKeyedUnarchiverDelegate().cannotDecodeClass; } set { EnsureNSKeyedUnarchiverDelegate().cannotDecodeClass = value; } } public event EventHandler Finished { add { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.finished = (EventHandler)System.Delegate.Combine(nSKeyedUnarchiverDelegate.finished, value); } remove { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.finished = (EventHandler)System.Delegate.Remove(nSKeyedUnarchiverDelegate.finished, value); } } public event EventHandler Finishing { add { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.finishing = (EventHandler)System.Delegate.Combine(nSKeyedUnarchiverDelegate.finishing, value); } remove { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.finishing = (EventHandler)System.Delegate.Remove(nSKeyedUnarchiverDelegate.finishing, value); } } public event EventHandler ReplacingObject { add { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.replacingObject = (EventHandler)System.Delegate.Combine(nSKeyedUnarchiverDelegate.replacingObject, value); } remove { _NSKeyedUnarchiverDelegate nSKeyedUnarchiverDelegate = EnsureNSKeyedUnarchiverDelegate(); nSKeyedUnarchiverDelegate.replacingObject = (EventHandler)System.Delegate.Remove(nSKeyedUnarchiverDelegate.replacingObject, value); } } public static void GlobalSetClass(Class kls, string codedName) { if (codedName == null) { throw new ArgumentNullException("codedName"); } if (kls == null) { throw new ArgumentNullException("kls"); } using NSString nSString = new NSString(codedName); Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selSetClassForClassName_Handle, kls.Handle, nSString.Handle); } public static Class GlobalGetClass(string codedName) { if (codedName == null) { throw new ArgumentNullException("codedName"); } using NSString nSString = new NSString(codedName); return new Class(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selClassForClassName_Handle, nSString.Handle)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSKeyedUnarchiver(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedUnarchiver(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedUnarchiver(IntPtr handle) : base(handle) { } [Export("initForReadingWithData:")] public NSKeyedUnarchiver(NSData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitForReadingWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitForReadingWithData_Handle, data.Handle); } } [Export("unarchiveObjectWithData:")] public static NSObject UnarchiveObject(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selUnarchiveObjectWithData_Handle, data.Handle)); } [Export("unarchiveObjectWithFile:")] public static NSObject UnarchiveFile(string file) { if (file == null) { throw new ArgumentNullException("file"); } IntPtr arg = NSString.CreateNative(file); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selUnarchiveObjectWithFile_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("finishDecoding")] public virtual void FinishDecoding() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFinishDecodingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFinishDecodingHandle); } } [Export("setClass:forClassName:")] public virtual void SetClass(Class kls, string codedName) { if (kls == null) { throw new ArgumentNullException("kls"); } if (codedName == null) { throw new ArgumentNullException("codedName"); } IntPtr arg = NSString.CreateNative(codedName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetClassForClassName_Handle, kls.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetClassForClassName_Handle, kls.Handle, arg); } NSString.ReleaseNative(arg); } [Export("classForClassName:")] public virtual Class GetClass(string codedName) { if (codedName == null) { throw new ArgumentNullException("codedName"); } IntPtr arg = NSString.CreateNative(codedName); Class result = ((!IsDirectBinding) ? new Class(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selClassForClassName_Handle, arg)) : new Class(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selClassForClassName_Handle, arg))); NSString.ReleaseNative(arg); return result; } private _NSKeyedUnarchiverDelegate EnsureNSKeyedUnarchiverDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSKeyedUnarchiverDelegate)) { nSObject = (WeakDelegate = new _NSKeyedUnarchiverDelegate()); } return (_NSKeyedUnarchiverDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSKeyedUnarchiverDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSKeyedUnarchiverDelegate", true)] [Model] public class NSKeyedUnarchiverDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSKeyedUnarchiverDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSKeyedUnarchiverDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedUnarchiverDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSKeyedUnarchiverDelegate(IntPtr handle) : base(handle) { } [Export("unarchiver:didDecodeObject:")] public virtual NSObject DecodedObject(NSKeyedUnarchiver unarchiver, NSObject obj) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("unarchiverDidFinish:")] public virtual void Finished(NSKeyedUnarchiver unarchiver) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("unarchiver:cannotDecodeObjectOfClassName:originalClasses:")] public virtual Class CannotDecodeClass(NSKeyedUnarchiver unarchiver, string klass, string[] classes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("unarchiverWillFinish:")] public virtual void Finishing(NSKeyedUnarchiver unarchiver) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("unarchiver:willReplaceObject:withObject:")] public virtual void ReplacingObject(NSKeyedUnarchiver unarchiver, NSObject oldObject, NSObject newObject) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLinguisticTag.cs ================================================ using ObjCRuntime; namespace Foundation; public static class NSLinguisticTag { private static NSString _SchemeTokenType; private static NSString _SchemeLexicalClass; private static NSString _SchemeNameType; private static NSString _SchemeNameTypeOrLexicalClass; private static NSString _SchemeLemma; private static NSString _SchemeLanguage; private static NSString _SchemeScript; private static NSString _Word; private static NSString _Punctuation; private static NSString _Whitespace; private static NSString _Other; private static NSString _Noun; private static NSString _Verb; private static NSString _Adjective; private static NSString _Adverb; private static NSString _Pronoun; private static NSString _Determiner; private static NSString _Particle; private static NSString _Preposition; private static NSString _Number; private static NSString _Conjunction; private static NSString _Interjection; private static NSString _Classifier; private static NSString _Idiom; private static NSString _OtherWord; private static NSString _SentenceTerminator; private static NSString _OpenQuote; private static NSString _CloseQuote; private static NSString _OpenParenthesis; private static NSString _CloseParenthesis; private static NSString _WordJoiner; private static NSString _Dash; private static NSString _OtherPunctuation; private static NSString _ParagraphBreak; private static NSString _OtherWhitespace; private static NSString _PersonalName; private static NSString _PlaceName; private static NSString _OrganizationName; [Field("NSLinguisticTagSchemeTokenType", "Foundation")] public static NSString SchemeTokenType { get { if (_SchemeTokenType == null) { _SchemeTokenType = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeTokenType"); } return _SchemeTokenType; } } [Field("NSLinguisticTagSchemeLexicalClass", "Foundation")] public static NSString SchemeLexicalClass { get { if (_SchemeLexicalClass == null) { _SchemeLexicalClass = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeLexicalClass"); } return _SchemeLexicalClass; } } [Field("NSLinguisticTagSchemeNameType", "Foundation")] public static NSString SchemeNameType { get { if (_SchemeNameType == null) { _SchemeNameType = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeNameType"); } return _SchemeNameType; } } [Field("NSLinguisticTagSchemeNameTypeOrLexicalClass", "Foundation")] public static NSString SchemeNameTypeOrLexicalClass { get { if (_SchemeNameTypeOrLexicalClass == null) { _SchemeNameTypeOrLexicalClass = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeNameTypeOrLexicalClass"); } return _SchemeNameTypeOrLexicalClass; } } [Field("NSLinguisticTagSchemeLemma", "Foundation")] public static NSString SchemeLemma { get { if (_SchemeLemma == null) { _SchemeLemma = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeLemma"); } return _SchemeLemma; } } [Field("NSLinguisticTagSchemeLanguage", "Foundation")] public static NSString SchemeLanguage { get { if (_SchemeLanguage == null) { _SchemeLanguage = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeLanguage"); } return _SchemeLanguage; } } [Field("NSLinguisticTagSchemeScript", "Foundation")] public static NSString SchemeScript { get { if (_SchemeScript == null) { _SchemeScript = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSchemeScript"); } return _SchemeScript; } } [Field("NSLinguisticTagWord", "Foundation")] public static NSString Word { get { if (_Word == null) { _Word = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagWord"); } return _Word; } } [Field("NSLinguisticTagPunctuation", "Foundation")] public static NSString Punctuation { get { if (_Punctuation == null) { _Punctuation = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagPunctuation"); } return _Punctuation; } } [Field("NSLinguisticTagWhitespace", "Foundation")] public static NSString Whitespace { get { if (_Whitespace == null) { _Whitespace = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagWhitespace"); } return _Whitespace; } } [Field("NSLinguisticTagOther", "Foundation")] public static NSString Other { get { if (_Other == null) { _Other = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOther"); } return _Other; } } [Field("NSLinguisticTagNoun", "Foundation")] public static NSString Noun { get { if (_Noun == null) { _Noun = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagNoun"); } return _Noun; } } [Field("NSLinguisticTagVerb", "Foundation")] public static NSString Verb { get { if (_Verb == null) { _Verb = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagVerb"); } return _Verb; } } [Field("NSLinguisticTagAdjective", "Foundation")] public static NSString Adjective { get { if (_Adjective == null) { _Adjective = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagAdjective"); } return _Adjective; } } [Field("NSLinguisticTagAdverb", "Foundation")] public static NSString Adverb { get { if (_Adverb == null) { _Adverb = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagAdverb"); } return _Adverb; } } [Field("NSLinguisticTagPronoun", "Foundation")] public static NSString Pronoun { get { if (_Pronoun == null) { _Pronoun = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagPronoun"); } return _Pronoun; } } [Field("NSLinguisticTagDeterminer", "Foundation")] public static NSString Determiner { get { if (_Determiner == null) { _Determiner = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagDeterminer"); } return _Determiner; } } [Field("NSLinguisticTagParticle", "Foundation")] public static NSString Particle { get { if (_Particle == null) { _Particle = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagParticle"); } return _Particle; } } [Field("NSLinguisticTagPreposition", "Foundation")] public static NSString Preposition { get { if (_Preposition == null) { _Preposition = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagPreposition"); } return _Preposition; } } [Field("NSLinguisticTagNumber", "Foundation")] public static NSString Number { get { if (_Number == null) { _Number = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagNumber"); } return _Number; } } [Field("NSLinguisticTagConjunction", "Foundation")] public static NSString Conjunction { get { if (_Conjunction == null) { _Conjunction = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagConjunction"); } return _Conjunction; } } [Field("NSLinguisticTagInterjection", "Foundation")] public static NSString Interjection { get { if (_Interjection == null) { _Interjection = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagInterjection"); } return _Interjection; } } [Field("NSLinguisticTagClassifier", "Foundation")] public static NSString Classifier { get { if (_Classifier == null) { _Classifier = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagClassifier"); } return _Classifier; } } [Field("NSLinguisticTagIdiom", "Foundation")] public static NSString Idiom { get { if (_Idiom == null) { _Idiom = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagIdiom"); } return _Idiom; } } [Field("NSLinguisticTagOtherWord", "Foundation")] public static NSString OtherWord { get { if (_OtherWord == null) { _OtherWord = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOtherWord"); } return _OtherWord; } } [Field("NSLinguisticTagSentenceTerminator", "Foundation")] public static NSString SentenceTerminator { get { if (_SentenceTerminator == null) { _SentenceTerminator = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagSentenceTerminator"); } return _SentenceTerminator; } } [Field("NSLinguisticTagOpenQuote", "Foundation")] public static NSString OpenQuote { get { if (_OpenQuote == null) { _OpenQuote = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOpenQuote"); } return _OpenQuote; } } [Field("NSLinguisticTagCloseQuote", "Foundation")] public static NSString CloseQuote { get { if (_CloseQuote == null) { _CloseQuote = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagCloseQuote"); } return _CloseQuote; } } [Field("NSLinguisticTagOpenParenthesis", "Foundation")] public static NSString OpenParenthesis { get { if (_OpenParenthesis == null) { _OpenParenthesis = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOpenParenthesis"); } return _OpenParenthesis; } } [Field("NSLinguisticTagCloseParenthesis", "Foundation")] public static NSString CloseParenthesis { get { if (_CloseParenthesis == null) { _CloseParenthesis = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagCloseParenthesis"); } return _CloseParenthesis; } } [Field("NSLinguisticTagWordJoiner", "Foundation")] public static NSString WordJoiner { get { if (_WordJoiner == null) { _WordJoiner = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagWordJoiner"); } return _WordJoiner; } } [Field("NSLinguisticTagDash", "Foundation")] public static NSString Dash { get { if (_Dash == null) { _Dash = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagDash"); } return _Dash; } } [Field("NSLinguisticTagOtherPunctuation", "Foundation")] public static NSString OtherPunctuation { get { if (_OtherPunctuation == null) { _OtherPunctuation = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOtherPunctuation"); } return _OtherPunctuation; } } [Field("NSLinguisticTagParagraphBreak", "Foundation")] public static NSString ParagraphBreak { get { if (_ParagraphBreak == null) { _ParagraphBreak = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagParagraphBreak"); } return _ParagraphBreak; } } [Field("NSLinguisticTagOtherWhitespace", "Foundation")] public static NSString OtherWhitespace { get { if (_OtherWhitespace == null) { _OtherWhitespace = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOtherWhitespace"); } return _OtherWhitespace; } } [Field("NSLinguisticTagPersonalName", "Foundation")] public static NSString PersonalName { get { if (_PersonalName == null) { _PersonalName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagPersonalName"); } return _PersonalName; } } [Field("NSLinguisticTagPlaceName", "Foundation")] public static NSString PlaceName { get { if (_PlaceName == null) { _PlaceName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagPlaceName"); } return _PlaceName; } } [Field("NSLinguisticTagOrganizationName", "Foundation")] public static NSString OrganizationName { get { if (_OrganizationName == null) { _OrganizationName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLinguisticTagOrganizationName"); } return _OrganizationName; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLinguisticTagger.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSLinguisticTagger", true)] public class NSLinguisticTagger : NSObject { private static readonly IntPtr selTagSchemesHandle = Selector.GetHandle("tagSchemes"); private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selSetString_Handle = Selector.GetHandle("setString:"); private static readonly IntPtr selInitWithTagSchemesOptions_Handle = Selector.GetHandle("initWithTagSchemes:options:"); private static readonly IntPtr selAvailableTagSchemesForLanguage_Handle = Selector.GetHandle("availableTagSchemesForLanguage:"); private static readonly IntPtr selSetOrthographyRange_Handle = Selector.GetHandle("setOrthography:range:"); private static readonly IntPtr selOrthographyAtIndexEffectiveRange_Handle = Selector.GetHandle("orthographyAtIndex:effectiveRange:"); private static readonly IntPtr selStringEditedInRangeChangeInLength_Handle = Selector.GetHandle("stringEditedInRange:changeInLength:"); private static readonly IntPtr selEnumerateTagsInRangeSchemeOptionsUsingBlock_Handle = Selector.GetHandle("enumerateTagsInRange:scheme:options:usingBlock:"); private static readonly IntPtr selSentenceRangeForRange_Handle = Selector.GetHandle("sentenceRangeForRange:"); private static readonly IntPtr selTagAtIndexSchemeTokenRangeSentenceRange_Handle = Selector.GetHandle("tagAtIndex:scheme:tokenRange:sentenceRange:"); private static readonly IntPtr selTagsInRangeSchemeOptionsTokenRanges_Handle = Selector.GetHandle("tagsInRange:scheme:options:tokenRanges:"); private static readonly IntPtr selPossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores_Handle = Selector.GetHandle("possibleTagsAtIndex:scheme:tokenRange:sentenceRange:scores:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLinguisticTagger"); private object __mt_TagSchemes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSString[] TagSchemes { [Export("tagSchemes")] get { return (NSString[])(__mt_TagSchemes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTagSchemesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTagSchemesHandle)))); } } public virtual string AnalysisString { [Export("string")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } [Export("setString:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetString_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSLinguisticTagger() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLinguisticTagger(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLinguisticTagger(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLinguisticTagger(IntPtr handle) : base(handle) { } [Export("initWithTagSchemes:options:")] public NSLinguisticTagger(NSString[] tagSchemes, NSLinguisticTaggerOptions opts) : base(NSObjectFlag.Empty) { if (tagSchemes == null) { throw new ArgumentNullException("tagSchemes"); } NSArray nSArray = NSArray.FromNSObjects(tagSchemes); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selInitWithTagSchemesOptions_Handle, nSArray.Handle, (ulong)opts); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selInitWithTagSchemesOptions_Handle, nSArray.Handle, (ulong)opts); } nSArray.Dispose(); } [Export("availableTagSchemesForLanguage:")] public static NSString[] GetAvailableTagSchemesForLanguage(string language) { if (language == null) { throw new ArgumentNullException("language"); } IntPtr arg = NSString.CreateNative(language); NSString[] result = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selAvailableTagSchemesForLanguage_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setOrthography:range:")] public virtual void SetOrthographyrange(NSOrthography orthography, NSRange range) { if (orthography == null) { throw new ArgumentNullException("orthography"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetOrthographyRange_Handle, orthography.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetOrthographyRange_Handle, orthography.Handle, range); } } [Export("orthographyAtIndex:effectiveRange:")] public virtual NSOrthography GetOrthography(ulong charIndex, ref NSRange effectiveRange) { if (IsDirectBinding) { return (NSOrthography)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_out_NSRange(base.Handle, selOrthographyAtIndexEffectiveRange_Handle, charIndex, out effectiveRange)); } return (NSOrthography)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_out_NSRange(base.SuperHandle, selOrthographyAtIndexEffectiveRange_Handle, charIndex, out effectiveRange)); } [Export("stringEditedInRange:changeInLength:")] public virtual void StringEditedInRange(NSRange newRange, long delta) { if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_Int64(base.Handle, selStringEditedInRangeChangeInLength_Handle, newRange, delta); } else { Messaging.void_objc_msgSendSuper_NSRange_Int64(base.SuperHandle, selStringEditedInRangeChangeInLength_Handle, newRange, delta); } } [Export("enumerateTagsInRange:scheme:options:usingBlock:")] public unsafe virtual void EnumerateTagsInRange(NSRange range, NSString tagScheme, NSLinguisticTaggerOptions opts, NSLingusticEnumerator enumerator) { if (tagScheme == null) { throw new ArgumentNullException("tagScheme"); } if (enumerator == null) { throw new ArgumentNullException("enumerator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSLingusticEnumerator.Handler, enumerator); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr_UInt64_IntPtr(base.Handle, selEnumerateTagsInRangeSchemeOptionsUsingBlock_Handle, range, tagScheme.Handle, (ulong)opts, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr_UInt64_IntPtr(base.SuperHandle, selEnumerateTagsInRangeSchemeOptionsUsingBlock_Handle, range, tagScheme.Handle, (ulong)opts, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("sentenceRangeForRange:")] public virtual NSRange GetSentenceRangeForRange(NSRange range) { if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend_NSRange(base.Handle, selSentenceRangeForRange_Handle, range); } return Messaging.NSRange_objc_msgSendSuper_NSRange(base.SuperHandle, selSentenceRangeForRange_Handle, range); } [Export("tagAtIndex:scheme:tokenRange:sentenceRange:")] public virtual string GetTag(ulong charIndex, NSString tagScheme, ref NSRange tokenRange, ref NSRange sentenceRange) { if (tagScheme == null) { throw new ArgumentNullException("tagScheme"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_out_NSRange_out_NSRange(base.Handle, selTagAtIndexSchemeTokenRangeSentenceRange_Handle, charIndex, tagScheme.Handle, out tokenRange, out sentenceRange)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_out_NSRange_out_NSRange(base.SuperHandle, selTagAtIndexSchemeTokenRangeSentenceRange_Handle, charIndex, tagScheme.Handle, out tokenRange, out sentenceRange)); } [Export("tagsInRange:scheme:options:tokenRanges:")] internal virtual NSString[] GetTagsInRange(NSRange range, NSString tagScheme, NSLinguisticTaggerOptions opts, ref NSArray tokenRanges) { if (tagScheme == null) { throw new ArgumentNullException("tagScheme"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSString[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_NSRange_IntPtr_UInt64_IntPtr(base.SuperHandle, selTagsInRangeSchemeOptionsTokenRanges_Handle, range, tagScheme.Handle, (ulong)opts, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_NSRange_IntPtr_UInt64_IntPtr(base.Handle, selTagsInRangeSchemeOptionsTokenRanges_Handle, range, tagScheme.Handle, (ulong)opts, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); tokenRanges = ((intPtr2 != IntPtr.Zero) ? ((NSArray)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("possibleTagsAtIndex:scheme:tokenRange:sentenceRange:scores:")] internal virtual NSString[] GetPossibleTags(ulong charIndex, NSString tagScheme, ref NSRange tokenRange, ref NSRange sentenceRange, ref NSArray scores) { if (tagScheme == null) { throw new ArgumentNullException("tagScheme"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSString[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_out_NSRange_out_NSRange_IntPtr(base.SuperHandle, selPossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores_Handle, charIndex, tagScheme.Handle, out tokenRange, out sentenceRange, intPtr)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_out_NSRange_out_NSRange_IntPtr(base.Handle, selPossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores_Handle, charIndex, tagScheme.Handle, out tokenRange, out sentenceRange, intPtr))); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); scores = ((intPtr2 != IntPtr.Zero) ? ((NSArray)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_TagSchemes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLinguisticTaggerOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSLinguisticTaggerOptions : ulong { OmitWords = 1uL, OmitPunctuation = 2uL, OmitWhitespace = 4uL, OmitOther = 8uL, JoinNames = 0x10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLingusticEnumerator.cs ================================================ namespace Foundation; public delegate void NSLingusticEnumerator(NSString tag, NSRange tokenRange, NSRange sentenceRange, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLocale.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSLocale", true)] public class NSLocale : NSObject { public static class Notifications { public static NSObject ObserveCurrentLocaleDidChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(CurrentLocaleDidChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selSystemLocaleHandle = Selector.GetHandle("systemLocale"); private static readonly IntPtr selCurrentLocaleHandle = Selector.GetHandle("currentLocale"); private static readonly IntPtr selAutoupdatingCurrentLocaleHandle = Selector.GetHandle("autoupdatingCurrentLocale"); private static readonly IntPtr selLocaleIdentifierHandle = Selector.GetHandle("localeIdentifier"); private static readonly IntPtr selAvailableLocaleIdentifiersHandle = Selector.GetHandle("availableLocaleIdentifiers"); private static readonly IntPtr selISOLanguageCodesHandle = Selector.GetHandle("ISOLanguageCodes"); private static readonly IntPtr selISOCurrencyCodesHandle = Selector.GetHandle("ISOCurrencyCodes"); private static readonly IntPtr selISOCountryCodesHandle = Selector.GetHandle("ISOCountryCodes"); private static readonly IntPtr selCommonISOCurrencyCodesHandle = Selector.GetHandle("commonISOCurrencyCodes"); private static readonly IntPtr selPreferredLanguagesHandle = Selector.GetHandle("preferredLanguages"); private static readonly IntPtr selInitWithLocaleIdentifier_Handle = Selector.GetHandle("initWithLocaleIdentifier:"); private static readonly IntPtr selComponentsFromLocaleIdentifier_Handle = Selector.GetHandle("componentsFromLocaleIdentifier:"); private static readonly IntPtr selLocaleIdentifierFromComponents_Handle = Selector.GetHandle("localeIdentifierFromComponents:"); private static readonly IntPtr selCanonicalLanguageIdentifierFromString_Handle = Selector.GetHandle("canonicalLanguageIdentifierFromString:"); private static readonly IntPtr selCanonicalLocaleIdentifierFromString_Handle = Selector.GetHandle("canonicalLocaleIdentifierFromString:"); private static readonly IntPtr selCharacterDirectionForLanguage_Handle = Selector.GetHandle("characterDirectionForLanguage:"); private static readonly IntPtr selLineDirectionForLanguage_Handle = Selector.GetHandle("lineDirectionForLanguage:"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selDisplayNameForKeyValue_Handle = Selector.GetHandle("displayNameForKey:value:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSLocale"); private static object __mt_SystemLocale_var_static; private static object __mt_CurrentLocale_var_static; private static object __mt_AutoUpdatingCurrentLocale_var_static; private static NSString _CurrentLocaleDidChangeNotification; private static NSString __Identifier; private static NSString __LanguageCode; private static NSString __CountryCode; private static NSString __ScriptCode; private static NSString __VariantCode; private static NSString __ExemplarCharacterSet; private static NSString __Calendar; private static NSString __CollationIdentifier; private static NSString __UsesMetricSystem; private static NSString __MeasurementSystem; private static NSString __DecimalSeparator; private static NSString __GroupingSeparator; private static NSString __CurrencySymbol; private static NSString __CurrencyCode; private static NSString __CollatorIdentifier; private static NSString __QuotationBeginDelimiterKey; private static NSString __QuotationEndDelimiterKey; private static NSString __AlternateQuotationBeginDelimiterKey; private static NSString __AlternateQuotationEndDelimiterKey; public string Identifier => (NSString)ObjectForKey(_Identifier); public string LanguageCode => (NSString)ObjectForKey(_LanguageCode); public string CountryCode => (NSString)ObjectForKey(_CountryCode); public string ScriptCode => (NSString)ObjectForKey(_ScriptCode); public string VariantCode => (NSString)ObjectForKey(_VariantCode); public NSCharacterSet ExemplarCharacterSet => ObjectForKey(_ExemplarCharacterSet) as NSCharacterSet; public NSCalendar Calendar => ObjectForKey(_Calendar) as NSCalendar; public string CollationIdentifier => (NSString)ObjectForKey(_CollationIdentifier); public bool UsesMetricSystem => ((NSNumber)ObjectForKey(_UsesMetricSystem)).Int32Value != 0; public string MeasurementSystem => (NSString)ObjectForKey(_MeasurementSystem); public string DecimalSeparator => (NSString)ObjectForKey(_DecimalSeparator); public string GroupingSeparator => (NSString)ObjectForKey(_GroupingSeparator); public string CurrencySymbol => (NSString)ObjectForKey(_CurrencySymbol); public string CurrencyCode => (NSString)ObjectForKey(_CurrencyCode); public string CollatorIdentifier => (NSString)ObjectForKey(_CollatorIdentifier); public string QuotationBeginDelimiterKey => (NSString)ObjectForKey(_QuotationBeginDelimiterKey); public string QuotationEndDelimiterKey => (NSString)ObjectForKey(_QuotationEndDelimiterKey); public string AlternateQuotationBeginDelimiterKey => (NSString)ObjectForKey(_AlternateQuotationBeginDelimiterKey); public string AlternateQuotationEndDelimiterKey => (NSString)ObjectForKey(_AlternateQuotationEndDelimiterKey); public override IntPtr ClassHandle => class_ptr; public static NSLocale SystemLocale { [Export("systemLocale")] get { return (NSLocale)(__mt_SystemLocale_var_static = (NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSystemLocaleHandle))); } } public static NSLocale CurrentLocale { [Export("currentLocale")] get { return (NSLocale)(__mt_CurrentLocale_var_static = (NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentLocaleHandle))); } } public static NSLocale AutoUpdatingCurrentLocale { [Export("autoupdatingCurrentLocale")] get { return (NSLocale)(__mt_AutoUpdatingCurrentLocale_var_static = (NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selAutoupdatingCurrentLocaleHandle))); } } public virtual string LocaleIdentifier { [Export("localeIdentifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleIdentifierHandle)); } } public static string[] AvailableLocaleIdentifiers { [Export("availableLocaleIdentifiers")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selAvailableLocaleIdentifiersHandle)); } } public static string[] ISOLanguageCodes { [Export("ISOLanguageCodes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selISOLanguageCodesHandle)); } } public static string[] ISOCurrencyCodes { [Export("ISOCurrencyCodes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selISOCurrencyCodesHandle)); } } public static string[] ISOCountryCodes { [Export("ISOCountryCodes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selISOCountryCodesHandle)); } } public static string[] CommonISOCurrencyCodes { [Export("commonISOCurrencyCodes")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selCommonISOCurrencyCodesHandle)); } } public static string[] PreferredLanguages { [Export("preferredLanguages")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selPreferredLanguagesHandle)); } } [Field("NSCurrentLocaleDidChangeNotification", "Foundation")] public static NSString CurrentLocaleDidChangeNotification { get { if (_CurrentLocaleDidChangeNotification == null) { _CurrentLocaleDidChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSCurrentLocaleDidChangeNotification"); } return _CurrentLocaleDidChangeNotification; } } [Field("NSLocaleIdentifier", "Foundation")] internal static NSString _Identifier { get { if (__Identifier == null) { __Identifier = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleIdentifier"); } return __Identifier; } } [Field("NSLocaleLanguageCode", "Foundation")] internal static NSString _LanguageCode { get { if (__LanguageCode == null) { __LanguageCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleLanguageCode"); } return __LanguageCode; } } [Field("NSLocaleCountryCode", "Foundation")] internal static NSString _CountryCode { get { if (__CountryCode == null) { __CountryCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCountryCode"); } return __CountryCode; } } [Field("NSLocaleScriptCode", "Foundation")] internal static NSString _ScriptCode { get { if (__ScriptCode == null) { __ScriptCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleScriptCode"); } return __ScriptCode; } } [Field("NSLocaleVariantCode", "Foundation")] internal static NSString _VariantCode { get { if (__VariantCode == null) { __VariantCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleVariantCode"); } return __VariantCode; } } [Field("NSLocaleExemplarCharacterSet", "Foundation")] internal static NSString _ExemplarCharacterSet { get { if (__ExemplarCharacterSet == null) { __ExemplarCharacterSet = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleExemplarCharacterSet"); } return __ExemplarCharacterSet; } } [Field("NSLocaleCalendar", "Foundation")] internal static NSString _Calendar { get { if (__Calendar == null) { __Calendar = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCalendar"); } return __Calendar; } } [Field("NSLocaleCollationIdentifier", "Foundation")] internal static NSString _CollationIdentifier { get { if (__CollationIdentifier == null) { __CollationIdentifier = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCollationIdentifier"); } return __CollationIdentifier; } } [Field("NSLocaleUsesMetricSystem", "Foundation")] internal static NSString _UsesMetricSystem { get { if (__UsesMetricSystem == null) { __UsesMetricSystem = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleUsesMetricSystem"); } return __UsesMetricSystem; } } [Field("NSLocaleMeasurementSystem", "Foundation")] internal static NSString _MeasurementSystem { get { if (__MeasurementSystem == null) { __MeasurementSystem = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleMeasurementSystem"); } return __MeasurementSystem; } } [Field("NSLocaleDecimalSeparator", "Foundation")] internal static NSString _DecimalSeparator { get { if (__DecimalSeparator == null) { __DecimalSeparator = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleDecimalSeparator"); } return __DecimalSeparator; } } [Field("NSLocaleGroupingSeparator", "Foundation")] internal static NSString _GroupingSeparator { get { if (__GroupingSeparator == null) { __GroupingSeparator = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleGroupingSeparator"); } return __GroupingSeparator; } } [Field("NSLocaleCurrencySymbol", "Foundation")] internal static NSString _CurrencySymbol { get { if (__CurrencySymbol == null) { __CurrencySymbol = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCurrencySymbol"); } return __CurrencySymbol; } } [Field("NSLocaleCurrencyCode", "Foundation")] internal static NSString _CurrencyCode { get { if (__CurrencyCode == null) { __CurrencyCode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCurrencyCode"); } return __CurrencyCode; } } [Field("NSLocaleCollatorIdentifier", "Foundation")] internal static NSString _CollatorIdentifier { get { if (__CollatorIdentifier == null) { __CollatorIdentifier = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleCollatorIdentifier"); } return __CollatorIdentifier; } } [Field("NSLocaleQuotationBeginDelimiterKey", "Foundation")] internal static NSString _QuotationBeginDelimiterKey { get { if (__QuotationBeginDelimiterKey == null) { __QuotationBeginDelimiterKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleQuotationBeginDelimiterKey"); } return __QuotationBeginDelimiterKey; } } [Field("NSLocaleQuotationEndDelimiterKey", "Foundation")] internal static NSString _QuotationEndDelimiterKey { get { if (__QuotationEndDelimiterKey == null) { __QuotationEndDelimiterKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleQuotationEndDelimiterKey"); } return __QuotationEndDelimiterKey; } } [Field("NSLocaleAlternateQuotationBeginDelimiterKey", "Foundation")] internal static NSString _AlternateQuotationBeginDelimiterKey { get { if (__AlternateQuotationBeginDelimiterKey == null) { __AlternateQuotationBeginDelimiterKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleAlternateQuotationBeginDelimiterKey"); } return __AlternateQuotationBeginDelimiterKey; } } [Field("NSLocaleAlternateQuotationEndDelimiterKey", "Foundation")] internal static NSString _AlternateQuotationEndDelimiterKey { get { if (__AlternateQuotationEndDelimiterKey == null) { __AlternateQuotationEndDelimiterKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSLocaleAlternateQuotationEndDelimiterKey"); } return __AlternateQuotationEndDelimiterKey; } } public string GetIdentifierDisplayName(string value) { return DisplayNameForKey(_Identifier, value); } public string GetLanguageCodeDisplayName(string value) { return DisplayNameForKey(_LanguageCode, value); } public string GetCountryCodeDisplayName(string value) { return DisplayNameForKey(_CountryCode, value); } public string GetCurrencyCodeDisplayName(string value) { return DisplayNameForKey(_CurrencyCode, value); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSLocale(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLocale(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSLocale(IntPtr handle) : base(handle) { } [Export("initWithLocaleIdentifier:")] public NSLocale(string identifier) : base(NSObjectFlag.Empty) { if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithLocaleIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithLocaleIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } [Export("componentsFromLocaleIdentifier:")] public static NSDictionary ComponentsFromLocaleIdentifier(string identifier) { if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); NSDictionary result = (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selComponentsFromLocaleIdentifier_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("localeIdentifierFromComponents:")] public static string LocaleIdentifierFromComponents(NSDictionary dict) { if (dict == null) { throw new ArgumentNullException("dict"); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLocaleIdentifierFromComponents_Handle, dict.Handle)); } [Export("canonicalLanguageIdentifierFromString:")] public static string CanonicalLanguageIdentifierFromString(string str) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCanonicalLanguageIdentifierFromString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("canonicalLocaleIdentifierFromString:")] public static string CanonicalLocaleIdentifierFromString(string str) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); string result = NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCanonicalLocaleIdentifierFromString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("characterDirectionForLanguage:")] public static NSLocaleLanguageDirection GetCharacterDirection(string isoLanguageCode) { if (isoLanguageCode == null) { throw new ArgumentNullException("isoLanguageCode"); } IntPtr arg = NSString.CreateNative(isoLanguageCode); ulong result = Messaging.UInt64_objc_msgSend_IntPtr(class_ptr, selCharacterDirectionForLanguage_Handle, arg); NSString.ReleaseNative(arg); return (NSLocaleLanguageDirection)result; } [Export("lineDirectionForLanguage:")] public static NSLocaleLanguageDirection GetLineDirection(string isoLanguageCode) { if (isoLanguageCode == null) { throw new ArgumentNullException("isoLanguageCode"); } IntPtr arg = NSString.CreateNative(isoLanguageCode); ulong result = Messaging.UInt64_objc_msgSend_IntPtr(class_ptr, selLineDirectionForLanguage_Handle, arg); NSString.ReleaseNative(arg); return (NSLocaleLanguageDirection)result; } [Export("objectForKey:")] internal virtual NSObject ObjectForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKey_Handle, key.Handle)); } [Export("displayNameForKey:value:")] internal virtual NSString DisplayNameForKey(NSString key, string value) { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); NSString result = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDisplayNameForKeyValue_Handle, key.Handle, arg))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selDisplayNameForKeyValue_Handle, key.Handle, arg)))); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSLocaleLanguageDirection.cs ================================================ namespace Foundation; public enum NSLocaleLanguageDirection : ulong { Unknown, LeftToRight, RightToLeft, TopToBottom, BottomToTop } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMachPort.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMachPort", true)] public class NSMachPort : NSPort { private static readonly IntPtr selMachPortHandle = Selector.GetHandle("machPort"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selPortWithMachPort_Handle = Selector.GetHandle("portWithMachPort:"); private static readonly IntPtr selPortWithMachPortOptions_Handle = Selector.GetHandle("portWithMachPort:options:"); private static readonly IntPtr selRemoveFromRunLoopForMode_Handle = Selector.GetHandle("removeFromRunLoop:forMode:"); private static readonly IntPtr selScheduleInRunLoopForMode_Handle = Selector.GetHandle("scheduleInRunLoop:forMode:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMachPort"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual uint MachPort { [Export("machPort")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selMachPortHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMachPortHandle); } } public new virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public new NSMachPortDelegate Delegate { get { return WeakDelegate as NSMachPortDelegate; } set { WeakDelegate = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMachPort() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMachPort(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMachPort(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMachPort(IntPtr handle) : base(handle) { } [Export("portWithMachPort:")] public static NSPort FromMachPort(uint port) { return (NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(class_ptr, selPortWithMachPort_Handle, port)); } [Export("portWithMachPort:options:")] public static NSPort FromMachPort(uint port, NSMachPortRights options) { return (NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32_UInt64(class_ptr, selPortWithMachPortOptions_Handle, port, (ulong)options)); } [Export("removeFromRunLoop:forMode:")] public virtual void RemoveFromRunLoop(NSRunLoop runLoop, NSString mode) { if (runLoop == null) { throw new ArgumentNullException("runLoop"); } if (mode == null) { throw new ArgumentNullException("mode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveFromRunLoopForMode_Handle, runLoop.Handle, mode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveFromRunLoopForMode_Handle, runLoop.Handle, mode.Handle); } } [Export("scheduleInRunLoop:forMode:")] public virtual void ScheduleInRunLoop(NSRunLoop runLoop, NSString mode) { if (runLoop == null) { throw new ArgumentNullException("runLoop"); } if (mode == null) { throw new ArgumentNullException("mode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, runLoop.Handle, mode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, runLoop.Handle, mode.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMachPortDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMachPortDelegate", true)] [Model] public class NSMachPortDelegate : NSPortDelegate { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMachPortDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMachPortDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMachPortDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMachPortDelegate(IntPtr handle) : base(handle) { } [Export("handleMachMessage:")] public virtual void MachMessageReceived(IntPtr msgHeader) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMachPortRights.cs ================================================ using System; namespace Foundation; [Flags] public enum NSMachPortRights : ulong { None = 0uL, SendRight = 1uL, ReceiveRight = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataItem.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMetadataItem", true)] public class NSMetadataItem : NSObject { private static readonly IntPtr selAttributesHandle = Selector.GetHandle("attributes"); private static readonly IntPtr selValueForAttribute_Handle = Selector.GetHandle("valueForAttribute:"); private static readonly IntPtr selValuesForAttributes_Handle = Selector.GetHandle("valuesForAttributes:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMetadataItem"); private object __mt_Attributes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject[] Attributes { [Export("attributes")] get { return (NSObject[])(__mt_Attributes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMetadataItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMetadataItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataItem(IntPtr handle) : base(handle) { } [Export("valueForAttribute:")] public virtual NSObject ValueForAttribute(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForAttribute_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForAttribute_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("valuesForAttributes:")] public virtual NSDictionary ValuesForAttributes(NSArray keys) { if (keys == null) { throw new ArgumentNullException("keys"); } if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValuesForAttributes_Handle, keys.Handle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValuesForAttributes_Handle, keys.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Attributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQuery.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMetadataQuery", true)] public class NSMetadataQuery : NSObject { [Register] private sealed class _NSMetadataQueryDelegate : NSMetadataQueryDelegate { internal NSMetadataQueryObject replacementObjectForResultObject; internal NSMetadataQueryValue replacementValueForAttributevalue; [Preserve(Conditional = true)] public override NSObject ReplacementObjectForResultObject(NSMetadataQuery query, NSMetadataItem result) { return replacementObjectForResultObject?.Invoke(query, result); } [Preserve(Conditional = true)] public override NSObject ReplacementValueForAttributevalue(NSMetadataQuery query, string attributeName, NSObject value) { return replacementValueForAttributevalue?.Invoke(query, attributeName, value); } } public static class Notifications { public static NSObject ObserveDidStartGathering(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidStartGatheringNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveGatheringProgress(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(GatheringProgressNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidFinishGathering(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidFinishGatheringNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidUpdate(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidUpdateNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selIsStartedHandle = Selector.GetHandle("isStarted"); private static readonly IntPtr selIsGatheringHandle = Selector.GetHandle("isGathering"); private static readonly IntPtr selIsStoppedHandle = Selector.GetHandle("isStopped"); private static readonly IntPtr selResultCountHandle = Selector.GetHandle("resultCount"); private static readonly IntPtr selResultsHandle = Selector.GetHandle("results"); private static readonly IntPtr selValueListsHandle = Selector.GetHandle("valueLists"); private static readonly IntPtr selGroupedResultsHandle = Selector.GetHandle("groupedResults"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selPredicateHandle = Selector.GetHandle("predicate"); private static readonly IntPtr selSetPredicate_Handle = Selector.GetHandle("setPredicate:"); private static readonly IntPtr selSortDescriptorsHandle = Selector.GetHandle("sortDescriptors"); private static readonly IntPtr selSetSortDescriptors_Handle = Selector.GetHandle("setSortDescriptors:"); private static readonly IntPtr selValueListAttributesHandle = Selector.GetHandle("valueListAttributes"); private static readonly IntPtr selSetValueListAttributes_Handle = Selector.GetHandle("setValueListAttributes:"); private static readonly IntPtr selGroupingAttributesHandle = Selector.GetHandle("groupingAttributes"); private static readonly IntPtr selSetGroupingAttributes_Handle = Selector.GetHandle("setGroupingAttributes:"); private static readonly IntPtr selNotificationBatchingIntervalHandle = Selector.GetHandle("notificationBatchingInterval"); private static readonly IntPtr selSetNotificationBatchingInterval_Handle = Selector.GetHandle("setNotificationBatchingInterval:"); private static readonly IntPtr selSearchScopesHandle = Selector.GetHandle("searchScopes"); private static readonly IntPtr selSetSearchScopes_Handle = Selector.GetHandle("setSearchScopes:"); private static readonly IntPtr selStartQueryHandle = Selector.GetHandle("startQuery"); private static readonly IntPtr selStopQueryHandle = Selector.GetHandle("stopQuery"); private static readonly IntPtr selDisableUpdatesHandle = Selector.GetHandle("disableUpdates"); private static readonly IntPtr selEnableUpdatesHandle = Selector.GetHandle("enableUpdates"); private static readonly IntPtr selResultAtIndex_Handle = Selector.GetHandle("resultAtIndex:"); private static readonly IntPtr selIndexOfResult_Handle = Selector.GetHandle("indexOfResult:"); private static readonly IntPtr selValueOfAttributeForResultAtIndex_Handle = Selector.GetHandle("valueOfAttribute:forResultAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMetadataQuery"); private object __mt_Results_var; private object __mt_ValueLists_var; private object __mt_GroupedResults_var; private object __mt_WeakDelegate_var; private object __mt_Predicate_var; private object __mt_SortDescriptors_var; private object __mt_ValueListAttributes_var; private object __mt_GroupingAttributes_var; private object __mt_SearchScopes_var; private static NSString _DidStartGatheringNotification; private static NSString _GatheringProgressNotification; private static NSString _DidFinishGatheringNotification; private static NSString _DidUpdateNotification; private static NSString _ResultContentRelevanceAttribute; private static NSString _UserHomeScope; private static NSString _LocalComputerScope; private static NSString _QueryNetworkScope; private static NSString _QueryLocalDocumentsScope; private static NSString _QueryUbiquitousDocumentsScope; private static NSString _QueryUbiquitousDataScope; private static NSString _ItemFSNameKey; private static NSString _ItemDisplayNameKey; private static NSString _ItemURLKey; private static NSString _ItemPathKey; private static NSString _ItemFSSizeKey; private static NSString _ItemFSCreationDateKey; private static NSString _ItemFSContentChangeDateKey; private static NSString _ItemIsUbiquitousKey; private static NSString _UbiquitousItemHasUnresolvedConflictsKey; private static NSString _UbiquitousItemIsDownloadedKey; private static NSString _UbiquitousItemIsDownloadingKey; private static NSString _UbiquitousItemIsUploadedKey; private static NSString _UbiquitousItemIsUploadingKey; private static NSString _UbiquitousItemPercentDownloadedKey; private static NSString _UbiquitousItemPercentUploadedKey; public override IntPtr ClassHandle => class_ptr; public virtual bool IsStarted { [Export("isStarted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsStartedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsStartedHandle); } } public virtual bool IsGathering { [Export("isGathering")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsGatheringHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsGatheringHandle); } } public virtual bool IsStopped { [Export("isStopped")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsStoppedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsStoppedHandle); } } public virtual ulong ResultCount { [Export("resultCount")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selResultCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selResultCountHandle); } } public virtual NSMetadataItem[] Results { [Export("results")] get { return (NSMetadataItem[])(__mt_Results_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResultsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selResultsHandle)))); } } public virtual NSDictionary ValueLists { [Export("valueLists")] get { return (NSDictionary)(__mt_ValueLists_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueListsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueListsHandle))))); } } public virtual NSObject[] GroupedResults { [Export("groupedResults")] get { return (NSObject[])(__mt_GroupedResults_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGroupedResultsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selGroupedResultsHandle)))); } } public virtual NSMetadataQueryDelegate WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSMetadataQueryDelegate)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? ((NSMetadataQueryDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle))) : ((NSMetadataQueryDelegate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle))))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSMetadataQueryDelegate Delegate { get { return WeakDelegate; } set { WeakDelegate = value; } } public virtual NSPredicate Predicate { [Export("predicate")] get { return (NSPredicate)(__mt_Predicate_var = ((!IsDirectBinding) ? ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPredicateHandle))) : ((NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPredicateHandle))))); } [Export("setPredicate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPredicate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPredicate_Handle, value.Handle); } __mt_Predicate_var = value; } } public virtual NSSortDescriptor[] SortDescriptors { [Export("sortDescriptors")] get { return (NSSortDescriptor[])(__mt_SortDescriptors_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSortDescriptorsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSortDescriptorsHandle)))); } [Export("setSortDescriptors:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSortDescriptors_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSortDescriptors_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SortDescriptors_var = value; } } public virtual NSObject[] ValueListAttributes { [Export("valueListAttributes")] get { return (NSObject[])(__mt_ValueListAttributes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueListAttributesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueListAttributesHandle)))); } [Export("setValueListAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValueListAttributes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValueListAttributes_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_ValueListAttributes_var = value; } } public virtual NSArray GroupingAttributes { [Export("groupingAttributes")] get { return (NSArray)(__mt_GroupingAttributes_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGroupingAttributesHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGroupingAttributesHandle))))); } [Export("setGroupingAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGroupingAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGroupingAttributes_Handle, value.Handle); } __mt_GroupingAttributes_var = value; } } public virtual double NotificationBatchingInterval { [Export("notificationBatchingInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selNotificationBatchingIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selNotificationBatchingIntervalHandle); } [Export("setNotificationBatchingInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetNotificationBatchingInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetNotificationBatchingInterval_Handle, value); } } } public virtual NSObject[] SearchScopes { [Export("searchScopes")] get { return (NSObject[])(__mt_SearchScopes_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSearchScopesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSearchScopesHandle)))); } [Export("setSearchScopes:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSearchScopes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSearchScopes_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_SearchScopes_var = value; } } [Field("NSMetadataQueryDidStartGatheringNotification", "Foundation")] public static NSString DidStartGatheringNotification { get { if (_DidStartGatheringNotification == null) { _DidStartGatheringNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryDidStartGatheringNotification"); } return _DidStartGatheringNotification; } } [Field("NSMetadataQueryGatheringProgressNotification", "Foundation")] public static NSString GatheringProgressNotification { get { if (_GatheringProgressNotification == null) { _GatheringProgressNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryGatheringProgressNotification"); } return _GatheringProgressNotification; } } [Field("NSMetadataQueryDidFinishGatheringNotification", "Foundation")] public static NSString DidFinishGatheringNotification { get { if (_DidFinishGatheringNotification == null) { _DidFinishGatheringNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryDidFinishGatheringNotification"); } return _DidFinishGatheringNotification; } } [Field("NSMetadataQueryDidUpdateNotification", "Foundation")] public static NSString DidUpdateNotification { get { if (_DidUpdateNotification == null) { _DidUpdateNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryDidUpdateNotification"); } return _DidUpdateNotification; } } [Field("NSMetadataQueryResultContentRelevanceAttribute", "Foundation")] public static NSString ResultContentRelevanceAttribute { get { if (_ResultContentRelevanceAttribute == null) { _ResultContentRelevanceAttribute = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryResultContentRelevanceAttribute"); } return _ResultContentRelevanceAttribute; } } [Field("NSMetadataQueryUserHomeScope", "Foundation")] public static NSString UserHomeScope { get { if (_UserHomeScope == null) { _UserHomeScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryUserHomeScope"); } return _UserHomeScope; } } [Field("NSMetadataQueryLocalComputerScope", "Foundation")] public static NSString LocalComputerScope { get { if (_LocalComputerScope == null) { _LocalComputerScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryLocalComputerScope"); } return _LocalComputerScope; } } [Field("NSMetadataQueryNetworkScope", "Foundation")] public static NSString QueryNetworkScope { get { if (_QueryNetworkScope == null) { _QueryNetworkScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryNetworkScope"); } return _QueryNetworkScope; } } [Field("NSMetadataQueryLocalDocumentsScope", "Foundation")] public static NSString QueryLocalDocumentsScope { get { if (_QueryLocalDocumentsScope == null) { _QueryLocalDocumentsScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryLocalDocumentsScope"); } return _QueryLocalDocumentsScope; } } [Field("NSMetadataQueryUbiquitousDocumentsScope", "Foundation")] public static NSString QueryUbiquitousDocumentsScope { get { if (_QueryUbiquitousDocumentsScope == null) { _QueryUbiquitousDocumentsScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryUbiquitousDocumentsScope"); } return _QueryUbiquitousDocumentsScope; } } [Field("NSMetadataQueryUbiquitousDataScope", "Foundation")] public static NSString QueryUbiquitousDataScope { get { if (_QueryUbiquitousDataScope == null) { _QueryUbiquitousDataScope = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataQueryUbiquitousDataScope"); } return _QueryUbiquitousDataScope; } } [Field("NSMetadataItemFSNameKey", "Foundation")] public static NSString ItemFSNameKey { get { if (_ItemFSNameKey == null) { _ItemFSNameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemFSNameKey"); } return _ItemFSNameKey; } } [Field("NSMetadataItemDisplayNameKey", "Foundation")] public static NSString ItemDisplayNameKey { get { if (_ItemDisplayNameKey == null) { _ItemDisplayNameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemDisplayNameKey"); } return _ItemDisplayNameKey; } } [Field("NSMetadataItemURLKey", "Foundation")] public static NSString ItemURLKey { get { if (_ItemURLKey == null) { _ItemURLKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemURLKey"); } return _ItemURLKey; } } [Field("NSMetadataItemPathKey", "Foundation")] public static NSString ItemPathKey { get { if (_ItemPathKey == null) { _ItemPathKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemPathKey"); } return _ItemPathKey; } } [Field("NSMetadataItemFSSizeKey", "Foundation")] public static NSString ItemFSSizeKey { get { if (_ItemFSSizeKey == null) { _ItemFSSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemFSSizeKey"); } return _ItemFSSizeKey; } } [Field("NSMetadataItemFSCreationDateKey", "Foundation")] public static NSString ItemFSCreationDateKey { get { if (_ItemFSCreationDateKey == null) { _ItemFSCreationDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemFSCreationDateKey"); } return _ItemFSCreationDateKey; } } [Field("NSMetadataItemFSContentChangeDateKey", "Foundation")] public static NSString ItemFSContentChangeDateKey { get { if (_ItemFSContentChangeDateKey == null) { _ItemFSContentChangeDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemFSContentChangeDateKey"); } return _ItemFSContentChangeDateKey; } } [Field("NSMetadataItemIsUbiquitousKey", "Foundation")] public static NSString ItemIsUbiquitousKey { get { if (_ItemIsUbiquitousKey == null) { _ItemIsUbiquitousKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataItemIsUbiquitousKey"); } return _ItemIsUbiquitousKey; } } [Field("NSMetadataUbiquitousItemHasUnresolvedConflictsKey", "Foundation")] public static NSString UbiquitousItemHasUnresolvedConflictsKey { get { if (_UbiquitousItemHasUnresolvedConflictsKey == null) { _UbiquitousItemHasUnresolvedConflictsKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemHasUnresolvedConflictsKey"); } return _UbiquitousItemHasUnresolvedConflictsKey; } } [Field("NSMetadataUbiquitousItemIsDownloadedKey", "Foundation")] public static NSString UbiquitousItemIsDownloadedKey { get { if (_UbiquitousItemIsDownloadedKey == null) { _UbiquitousItemIsDownloadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemIsDownloadedKey"); } return _UbiquitousItemIsDownloadedKey; } } [Field("NSMetadataUbiquitousItemIsDownloadingKey", "Foundation")] public static NSString UbiquitousItemIsDownloadingKey { get { if (_UbiquitousItemIsDownloadingKey == null) { _UbiquitousItemIsDownloadingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemIsDownloadingKey"); } return _UbiquitousItemIsDownloadingKey; } } [Field("NSMetadataUbiquitousItemIsUploadedKey", "Foundation")] public static NSString UbiquitousItemIsUploadedKey { get { if (_UbiquitousItemIsUploadedKey == null) { _UbiquitousItemIsUploadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemIsUploadedKey"); } return _UbiquitousItemIsUploadedKey; } } [Field("NSMetadataUbiquitousItemIsUploadingKey", "Foundation")] public static NSString UbiquitousItemIsUploadingKey { get { if (_UbiquitousItemIsUploadingKey == null) { _UbiquitousItemIsUploadingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemIsUploadingKey"); } return _UbiquitousItemIsUploadingKey; } } [Field("NSMetadataUbiquitousItemPercentDownloadedKey", "Foundation")] public static NSString UbiquitousItemPercentDownloadedKey { get { if (_UbiquitousItemPercentDownloadedKey == null) { _UbiquitousItemPercentDownloadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemPercentDownloadedKey"); } return _UbiquitousItemPercentDownloadedKey; } } [Field("NSMetadataUbiquitousItemPercentUploadedKey", "Foundation")] public static NSString UbiquitousItemPercentUploadedKey { get { if (_UbiquitousItemPercentUploadedKey == null) { _UbiquitousItemPercentUploadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSMetadataUbiquitousItemPercentUploadedKey"); } return _UbiquitousItemPercentUploadedKey; } } public NSMetadataQueryObject ReplacementObjectForResultObject { get { return EnsureNSMetadataQueryDelegate().replacementObjectForResultObject; } set { EnsureNSMetadataQueryDelegate().replacementObjectForResultObject = value; } } public NSMetadataQueryValue ReplacementValueForAttributevalue { get { return EnsureNSMetadataQueryDelegate().replacementValueForAttributevalue; } set { EnsureNSMetadataQueryDelegate().replacementValueForAttributevalue = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMetadataQuery() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMetadataQuery(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQuery(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQuery(IntPtr handle) : base(handle) { } [Export("startQuery")] public virtual bool StartQuery() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selStartQueryHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selStartQueryHandle); } [Export("stopQuery")] public virtual void StopQuery() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopQueryHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopQueryHandle); } } [Export("disableUpdates")] public virtual void DisableUpdates() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableUpdatesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableUpdatesHandle); } } [Export("enableUpdates")] public virtual void EnableUpdates() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableUpdatesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableUpdatesHandle); } } [Export("resultAtIndex:")] public virtual NSObject ResultAtIndex(ulong idx) { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selResultAtIndex_Handle, idx)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selResultAtIndex_Handle, idx)); } [Export("indexOfResult:")] public virtual ulong IndexOfResult(NSObject result) { if (result == null) { throw new ArgumentNullException("result"); } if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend_IntPtr(base.Handle, selIndexOfResult_Handle, result.Handle); } return Messaging.UInt64_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfResult_Handle, result.Handle); } [Export("valueOfAttribute:forResultAtIndex:")] public virtual NSObject ValueOfAttribute(string attribyteName, ulong atIndex) { if (attribyteName == null) { throw new ArgumentNullException("attribyteName"); } IntPtr arg = NSString.CreateNative(attribyteName); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selValueOfAttributeForResultAtIndex_Handle, arg, atIndex)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(base.Handle, selValueOfAttributeForResultAtIndex_Handle, arg, atIndex))); NSString.ReleaseNative(arg); return result; } private _NSMetadataQueryDelegate EnsureNSMetadataQueryDelegate() { NSMetadataQueryDelegate nSMetadataQueryDelegate = Delegate; if (nSMetadataQueryDelegate == null || !(nSMetadataQueryDelegate is _NSMetadataQueryDelegate)) { nSMetadataQueryDelegate = (Delegate = new _NSMetadataQueryDelegate()); } return (_NSMetadataQueryDelegate)nSMetadataQueryDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Results_var = null; __mt_ValueLists_var = null; __mt_GroupedResults_var = null; __mt_WeakDelegate_var = null; __mt_Predicate_var = null; __mt_SortDescriptors_var = null; __mt_ValueListAttributes_var = null; __mt_GroupingAttributes_var = null; __mt_SearchScopes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQueryAttributeValueTuple.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMetadataQueryAttributeValueTuple", true)] public class NSMetadataQueryAttributeValueTuple : NSObject { private static readonly IntPtr selAttributeHandle = Selector.GetHandle("attribute"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMetadataQueryAttributeValueTuple"); private object __mt_Value_var; public override IntPtr ClassHandle => class_ptr; public virtual string Attribute { [Export("attribute")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributeHandle)); } } public virtual NSObject Value { [Export("value")] get { return (NSObject)(__mt_Value_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)))); } } public virtual ulong Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCountHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMetadataQueryAttributeValueTuple() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMetadataQueryAttributeValueTuple(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryAttributeValueTuple(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryAttributeValueTuple(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Value_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQueryDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSMetadataQueryDelegate", true)] [Model] public class NSMetadataQueryDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMetadataQueryDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMetadataQueryDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryDelegate(IntPtr handle) : base(handle) { } [Export("metadataQuery:replacementObjectForResultObject:")] public virtual NSObject ReplacementObjectForResultObject(NSMetadataQuery query, NSMetadataItem result) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("metadataQuery:replacementValueForAttribute:value:")] public virtual NSObject ReplacementValueForAttributevalue(NSMetadataQuery query, string attributeName, NSObject value) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQueryObject.cs ================================================ namespace Foundation; public delegate NSObject NSMetadataQueryObject(NSMetadataQuery query, NSMetadataItem result); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQueryResultGroup.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMetadataQueryResultGroup", true)] public class NSMetadataQueryResultGroup : NSObject { private static readonly IntPtr selAttributeHandle = Selector.GetHandle("attribute"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selSubgroupsHandle = Selector.GetHandle("subgroups"); private static readonly IntPtr selResultCountHandle = Selector.GetHandle("resultCount"); private static readonly IntPtr selResultsHandle = Selector.GetHandle("results"); private static readonly IntPtr selResultAtIndex_Handle = Selector.GetHandle("resultAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMetadataQueryResultGroup"); private object __mt_Value_var; private object __mt_Subgroups_var; private object __mt_Results_var; public override IntPtr ClassHandle => class_ptr; public virtual string Attribute { [Export("attribute")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributeHandle)); } } public virtual NSObject Value { [Export("value")] get { return (NSObject)(__mt_Value_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)))); } } public virtual NSObject[] Subgroups { [Export("subgroups")] get { return (NSObject[])(__mt_Subgroups_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubgroupsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubgroupsHandle)))); } } public virtual ulong ResultCount { [Export("resultCount")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selResultCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selResultCountHandle); } } public virtual NSObject[] Results { [Export("results")] get { return (NSObject[])(__mt_Results_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResultsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selResultsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMetadataQueryResultGroup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMetadataQueryResultGroup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryResultGroup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMetadataQueryResultGroup(IntPtr handle) : base(handle) { } [Export("resultAtIndex:")] public virtual NSObject ResultAtIndex(ulong idx) { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selResultAtIndex_Handle, idx)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selResultAtIndex_Handle, idx)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Value_var = null; __mt_Subgroups_var = null; __mt_Results_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMetadataQueryValue.cs ================================================ namespace Foundation; public delegate NSObject NSMetadataQueryValue(NSMetadataQuery query, string attributeName, NSObject value); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMethodSignature.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMethodSignature", true)] public class NSMethodSignature : NSObject { private static readonly IntPtr selNumberOfArgumentsHandle = Selector.GetHandle("numberOfArguments"); private static readonly IntPtr selFrameLengthHandle = Selector.GetHandle("frameLength"); private static readonly IntPtr selMethodReturnLengthHandle = Selector.GetHandle("methodReturnLength"); private static readonly IntPtr selIsOnewayHandle = Selector.GetHandle("isOneway"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMethodSignature"); public override IntPtr ClassHandle => class_ptr; public virtual uint NumberOfArguments { [Export("numberOfArguments")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selNumberOfArgumentsHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selNumberOfArgumentsHandle); } } public virtual uint FrameLength { [Export("frameLength")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selFrameLengthHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFrameLengthHandle); } } public virtual uint MethodReturnLength { [Export("methodReturnLength")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selMethodReturnLengthHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMethodReturnLengthHandle); } } public virtual bool IsOneway { [Export("isOneway")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOnewayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOnewayHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMethodSignature(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMethodSignature(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMethodSignature(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableArray.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableArray", true)] public class NSMutableArray : NSArray { private static readonly IntPtr selInitWithCapacity_Handle = Selector.GetHandle("initWithCapacity:"); private static readonly IntPtr selAddObject_Handle = Selector.GetHandle("addObject:"); private static readonly IntPtr selInsertObjectAtIndex_Handle = Selector.GetHandle("insertObject:atIndex:"); private static readonly IntPtr selRemoveLastObjectHandle = Selector.GetHandle("removeLastObject"); private static readonly IntPtr selRemoveObjectAtIndex_Handle = Selector.GetHandle("removeObjectAtIndex:"); private static readonly IntPtr selReplaceObjectAtIndexWithObject_Handle = Selector.GetHandle("replaceObjectAtIndex:withObject:"); private static readonly IntPtr selRemoveAllObjectsHandle = Selector.GetHandle("removeAllObjects"); private static readonly IntPtr selAddObjectsFromArray_Handle = Selector.GetHandle("addObjectsFromArray:"); private static readonly IntPtr selInsertObjectsAtIndexes_Handle = Selector.GetHandle("insertObjects:atIndexes:"); private static readonly IntPtr selRemoveObjectsAtIndexes_Handle = Selector.GetHandle("removeObjectsAtIndexes:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableArray"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableArray() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableArray(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableArray(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableArray(IntPtr handle) : base(handle) { } [Export("initWithCapacity:")] public NSMutableArray(ulong capacity) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithCapacity_Handle, capacity); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithCapacity_Handle, capacity); } } [Export("addObject:")] public virtual void Add(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObject_Handle, obj.Handle); } } [Export("insertObject:atIndex:")] public virtual void Insert(NSObject obj, ulong index) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selInsertObjectAtIndex_Handle, obj.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selInsertObjectAtIndex_Handle, obj.Handle, index); } } [Export("removeLastObject")] public virtual void RemoveLastObject() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveLastObjectHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveLastObjectHandle); } } [Export("removeObjectAtIndex:")] public virtual void RemoveObject(ulong index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selRemoveObjectAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selRemoveObjectAtIndex_Handle, index); } } [Export("replaceObjectAtIndex:withObject:")] public virtual void ReplaceObject(ulong index, NSObject withObject) { if (withObject == null) { throw new ArgumentNullException("withObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(base.Handle, selReplaceObjectAtIndexWithObject_Handle, index, withObject.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selReplaceObjectAtIndexWithObject_Handle, index, withObject.Handle); } } [Export("removeAllObjects")] public virtual void RemoveAllObjects() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllObjectsHandle); } } [Export("addObjectsFromArray:")] public virtual void AddObjects(NSObject[] source) { if (source == null) { throw new ArgumentNullException("source"); } NSArray nSArray = NSArray.FromNSObjects(source); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObjectsFromArray_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObjectsFromArray_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertObjects:atIndexes:")] public virtual void InsertObjects(NSObject[] objects, NSIndexSet atIndexes) { if (objects == null) { throw new ArgumentNullException("objects"); } if (atIndexes == null) { throw new ArgumentNullException("atIndexes"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertObjectsAtIndexes_Handle, nSArray.Handle, atIndexes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertObjectsAtIndexes_Handle, nSArray.Handle, atIndexes.Handle); } nSArray.Dispose(); } [Export("removeObjectsAtIndexes:")] public virtual void RemoveObjectsAtIndexes(NSIndexSet indexSet) { if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectsAtIndexes_Handle, indexSet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectsAtIndexes_Handle, indexSet.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableAttributedString.cs ================================================ using System; using System.ComponentModel; using CoreText; using ObjCRuntime; namespace Foundation; [Register("NSMutableAttributedString", true)] public class NSMutableAttributedString : NSAttributedString { private static readonly IntPtr selInitWithString_Handle = Selector.GetHandle("initWithString:"); private static readonly IntPtr selInitWithStringAttributes_Handle = Selector.GetHandle("initWithString:attributes:"); private static readonly IntPtr selInitWithAttributedString_Handle = Selector.GetHandle("initWithAttributedString:"); private static readonly IntPtr selReplaceCharactersInRangeWithString_Handle = Selector.GetHandle("replaceCharactersInRange:withString:"); private static readonly IntPtr selSetAttributesRange_Handle = Selector.GetHandle("setAttributes:range:"); private static readonly IntPtr selAddAttributeValueRange_Handle = Selector.GetHandle("addAttribute:value:range:"); private static readonly IntPtr selAddAttributesRange_Handle = Selector.GetHandle("addAttributes:range:"); private static readonly IntPtr selRemoveAttributeRange_Handle = Selector.GetHandle("removeAttribute:range:"); private static readonly IntPtr selReplaceCharactersInRangeWithAttributedString_Handle = Selector.GetHandle("replaceCharactersInRange:withAttributedString:"); private static readonly IntPtr selInsertAttributedStringAtIndex_Handle = Selector.GetHandle("insertAttributedString:atIndex:"); private static readonly IntPtr selAppendAttributedString_Handle = Selector.GetHandle("appendAttributedString:"); private static readonly IntPtr selDeleteCharactersInRange_Handle = Selector.GetHandle("deleteCharactersInRange:"); private static readonly IntPtr selSetAttributedString_Handle = Selector.GetHandle("setAttributedString:"); private static readonly IntPtr selBeginEditingHandle = Selector.GetHandle("beginEditing"); private static readonly IntPtr selEndEditingHandle = Selector.GetHandle("endEditing"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableAttributedString"); public override IntPtr ClassHandle => class_ptr; public NSMutableAttributedString(string str, CTStringAttributes attributes) : this(str, attributes?.Dictionary) { } public void SetAttributes(CTStringAttributes attrs, NSRange range) { SetAttributes(attrs?.Dictionary, range); } public void AddAttributes(CTStringAttributes attrs, NSRange range) { AddAttributes(attrs?.Dictionary, range); } public void Append(NSAttributedString first, params object[] rest) { Append(first); foreach (object obj in rest) { if (obj is NSAttributedString) { Append((NSAttributedString)obj); } else if (obj is string) { Append(new NSAttributedString((string)obj)); } else { Append(new NSAttributedString(obj.ToString())); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableAttributedString() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableAttributedString(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableAttributedString(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableAttributedString(IntPtr handle) : base(handle) { } [Export("initWithString:")] public NSMutableAttributedString(string str) : base(NSObjectFlag.Empty) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithString:attributes:")] public NSMutableAttributedString(string str, NSDictionary attributes) : base(NSObjectFlag.Empty) { if (str == null) { throw new ArgumentNullException("str"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithStringAttributes_Handle, arg, attributes.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithStringAttributes_Handle, arg, attributes.Handle); } NSString.ReleaseNative(arg); } [Export("initWithAttributedString:")] public NSMutableAttributedString(NSAttributedString other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithAttributedString_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithAttributedString_Handle, other.Handle); } } [Export("replaceCharactersInRange:withString:")] public virtual void Replace(NSRange range, string newValue) { if (newValue == null) { throw new ArgumentNullException("newValue"); } IntPtr arg = NSString.CreateNative(newValue); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr(base.Handle, selReplaceCharactersInRangeWithString_Handle, range, arg); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selReplaceCharactersInRangeWithString_Handle, range, arg); } NSString.ReleaseNative(arg); } [Export("setAttributes:range:")] public virtual void SetAttributes(NSDictionary attrs, NSRange range) { if (attrs == null) { throw new ArgumentNullException("attrs"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selSetAttributesRange_Handle, attrs.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selSetAttributesRange_Handle, attrs.Handle, range); } } [Export("addAttribute:value:range:")] public virtual void AddAttribute(NSString attributeName, NSObject value, NSRange range) { if (attributeName == null) { throw new ArgumentNullException("attributeName"); } if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_NSRange(base.Handle, selAddAttributeValueRange_Handle, attributeName.Handle, value.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_NSRange(base.SuperHandle, selAddAttributeValueRange_Handle, attributeName.Handle, value.Handle, range); } } [Export("addAttributes:range:")] public virtual void AddAttributes(NSDictionary attrs, NSRange range) { if (attrs == null) { throw new ArgumentNullException("attrs"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selAddAttributesRange_Handle, attrs.Handle, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selAddAttributesRange_Handle, attrs.Handle, range); } } [Export("removeAttribute:range:")] public virtual void RemoveAttribute(string name, NSRange range) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_NSRange(base.Handle, selRemoveAttributeRange_Handle, arg, range); } else { Messaging.void_objc_msgSendSuper_IntPtr_NSRange(base.SuperHandle, selRemoveAttributeRange_Handle, arg, range); } NSString.ReleaseNative(arg); } [Export("replaceCharactersInRange:withAttributedString:")] public virtual void Replace(NSRange range, NSAttributedString value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_IntPtr(base.Handle, selReplaceCharactersInRangeWithAttributedString_Handle, range, value.Handle); } else { Messaging.void_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selReplaceCharactersInRangeWithAttributedString_Handle, range, value.Handle); } } [Export("insertAttributedString:atIndex:")] public virtual void Insert(NSAttributedString attrString, ulong location) { if (attrString == null) { throw new ArgumentNullException("attrString"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selInsertAttributedStringAtIndex_Handle, attrString.Handle, location); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selInsertAttributedStringAtIndex_Handle, attrString.Handle, location); } } [Export("appendAttributedString:")] public virtual void Append(NSAttributedString attrString) { if (attrString == null) { throw new ArgumentNullException("attrString"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendAttributedString_Handle, attrString.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendAttributedString_Handle, attrString.Handle); } } [Export("deleteCharactersInRange:")] public virtual void DeleteRange(NSRange range) { if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selDeleteCharactersInRange_Handle, range); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selDeleteCharactersInRange_Handle, range); } } [Export("setAttributedString:")] public virtual void SetString(NSAttributedString attrString) { if (attrString == null) { throw new ArgumentNullException("attrString"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAttributedString_Handle, attrString.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributedString_Handle, attrString.Handle); } } [Export("beginEditing")] public virtual void BeginEditing() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBeginEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBeginEditingHandle); } } [Export("endEditing")] public virtual void EndEditing() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEndEditingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEndEditingHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableCharacterSet.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableCharacterSet", true)] public class NSMutableCharacterSet : NSCharacterSet { private static readonly IntPtr selRemoveCharactersInRange_Handle = Selector.GetHandle("removeCharactersInRange:"); private static readonly IntPtr selAddCharactersInString_Handle = Selector.GetHandle("addCharactersInString:"); private static readonly IntPtr selRemoveCharactersInString_Handle = Selector.GetHandle("removeCharactersInString:"); private static readonly IntPtr selFormUnionWithCharacterSet_Handle = Selector.GetHandle("formUnionWithCharacterSet:"); private static readonly IntPtr selFormIntersectionWithCharacterSet_Handle = Selector.GetHandle("formIntersectionWithCharacterSet:"); private static readonly IntPtr selInvertHandle = Selector.GetHandle("invert"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableCharacterSet"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableCharacterSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableCharacterSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableCharacterSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableCharacterSet(IntPtr handle) : base(handle) { } [Export("removeCharactersInRange:")] public virtual void RemoveCharacters(NSRange aRange) { if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selRemoveCharactersInRange_Handle, aRange); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selRemoveCharactersInRange_Handle, aRange); } } [Export("addCharactersInString:")] public virtual void AddCharacters(string aString) { if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddCharactersInString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddCharactersInString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeCharactersInString:")] public virtual void RemoveCharacters(string aString) { if (aString == null) { throw new ArgumentNullException("aString"); } IntPtr arg = NSString.CreateNative(aString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveCharactersInString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveCharactersInString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("formUnionWithCharacterSet:")] public virtual void UnionWith(NSCharacterSet otherSet) { if (otherSet == null) { throw new ArgumentNullException("otherSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFormUnionWithCharacterSet_Handle, otherSet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFormUnionWithCharacterSet_Handle, otherSet.Handle); } } [Export("formIntersectionWithCharacterSet:")] public virtual void IntersectWith(NSCharacterSet otherSet) { if (otherSet == null) { throw new ArgumentNullException("otherSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFormIntersectionWithCharacterSet_Handle, otherSet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFormIntersectionWithCharacterSet_Handle, otherSet.Handle); } } [Export("invert")] public virtual void Invert() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvertHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvertHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableData.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSMutableData", true)] public class NSMutableData : NSData, IEnumerable, IEnumerable { private static readonly IntPtr selMutableBytesHandle = Selector.GetHandle("mutableBytes"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selSetLength_Handle = Selector.GetHandle("setLength:"); private static readonly IntPtr selDataWithCapacity_Handle = Selector.GetHandle("dataWithCapacity:"); private static readonly IntPtr selDataWithLength_Handle = Selector.GetHandle("dataWithLength:"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selInitWithCapacity_Handle = Selector.GetHandle("initWithCapacity:"); private static readonly IntPtr selAppendData_Handle = Selector.GetHandle("appendData:"); private static readonly IntPtr selAppendBytesLength_Handle = Selector.GetHandle("appendBytes:length:"); private static readonly IntPtr selSetData_Handle = Selector.GetHandle("setData:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableData"); public override byte this[int idx] { set { if (idx < 0 || idx >= int.MaxValue || idx > (int)Length) { throw new ArgumentException("idx"); } Marshal.WriteByte(Bytes, idx, value); } } public override IntPtr ClassHandle => class_ptr; public virtual IntPtr MutableBytes { [Export("mutableBytes")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selMutableBytesHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMutableBytesHandle); } } public override ulong Length { [Export("length")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } [Export("setLength:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLength_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLength_Handle, value); } } } public unsafe void AppendBytes(byte[] bytes) { if (bytes == null) { throw new ArgumentNullException("bytes"); } fixed (byte* ptr = &bytes[0]) { AppendBytes((IntPtr)ptr, (uint)bytes.Length); } } public unsafe void AppendBytes(byte[] bytes, int start, int len) { if (bytes == null) { throw new ArgumentNullException("bytes"); } if (start < 0 || start > bytes.Length) { throw new ArgumentException("start"); } if (start + len > bytes.Length) { throw new ArgumentException("len"); } fixed (byte* ptr = &bytes[start]) { AppendBytes((IntPtr)ptr, (uint)len); } } IEnumerator IEnumerable.GetEnumerator() { IntPtr source = Bytes; int top = (int)Length; for (int i = 0; i < top; i++) { if (source == Bytes && top == (int)Length) { yield return Marshal.ReadByte(source, i); continue; } throw new InvalidOperationException("The NSMutableData has changed"); } } IEnumerator IEnumerable.GetEnumerator() { IntPtr source = Bytes; int top = (int)Length; for (int i = 0; i < top; i++) { if (source == Bytes && top == (int)Length) { yield return Marshal.ReadByte(source, i); continue; } throw new InvalidOperationException("The NSMutableData has changed"); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableData() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableData(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableData(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableData(IntPtr handle) : base(handle) { } [Export("dataWithCapacity:")] public static NSMutableData FromCapacity(ulong capacity) { using (new NSAutoreleasePool()) { return (NSMutableData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selDataWithCapacity_Handle, capacity)); } } [Export("dataWithLength:")] public static NSMutableData FromLength(ulong length) { using (new NSAutoreleasePool()) { return (NSMutableData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selDataWithLength_Handle, length)); } } [Export("data")] public static NSMutableData Create() { using (new NSAutoreleasePool()) { return (NSMutableData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDataHandle)); } } [Export("setLength:")] public virtual void SetLength(ulong len) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetLength_Handle, len); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetLength_Handle, len); } } [Export("initWithCapacity:")] public NSMutableData(ulong len) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithCapacity_Handle, len); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithCapacity_Handle, len); } } [Export("appendData:")] public virtual void AppendData(NSData other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendData_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendData_Handle, other.Handle); } } [Export("appendBytes:length:")] public virtual void AppendBytes(IntPtr bytes, ulong len) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selAppendBytesLength_Handle, bytes, len); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selAppendBytesLength_Handle, bytes, len); } } [Export("setData:")] public virtual void SetData(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetData_Handle, data.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetData_Handle, data.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableDictionary.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableDictionary", true)] public class NSMutableDictionary : NSDictionary, IDictionary, ICollection, IEnumerable, IDictionary, ICollection>, IEnumerable> { private class ShimEnumerator : IDictionaryEnumerator, IEnumerator { private IEnumerator> e; public DictionaryEntry Entry { get { DictionaryEntry result = default(DictionaryEntry); result.Key = e.Current.Key; result.Value = e.Current.Value; return result; } } public object Key => e.Current.Key; public object Value => e.Current.Value; public object Current => Entry; public ShimEnumerator(NSMutableDictionary host) { e = host.GetEnumerator(); } public void Dispose() { e.Dispose(); } public bool MoveNext() { return e.MoveNext(); } public void Reset() { e.Reset(); } } private static readonly NSObject marker = new NSObject(); private static readonly IntPtr selDictionaryWithContentsOfFile_Handle = Selector.GetHandle("dictionaryWithContentsOfFile:"); private static readonly IntPtr selDictionaryWithContentsOfURL_Handle = Selector.GetHandle("dictionaryWithContentsOfURL:"); private static readonly IntPtr selDictionaryWithObjectForKey_Handle = Selector.GetHandle("dictionaryWithObject:forKey:"); private static readonly IntPtr selDictionaryWithDictionary_Handle = Selector.GetHandle("dictionaryWithDictionary:"); private static readonly IntPtr selDictionaryWithObjectsForKeysCount_Handle = Selector.GetHandle("dictionaryWithObjects:forKeys:count:"); private static readonly IntPtr selDictionaryWithObjectsForKeys_Handle = Selector.GetHandle("dictionaryWithObjects:forKeys:"); private static readonly IntPtr selInitWithDictionary_Handle = Selector.GetHandle("initWithDictionary:"); private static readonly IntPtr selInitWithContentsOfFile_Handle = Selector.GetHandle("initWithContentsOfFile:"); private static readonly IntPtr selInitWithContentsOfURL_Handle = Selector.GetHandle("initWithContentsOfURL:"); private static readonly IntPtr selRemoveAllObjectsHandle = Selector.GetHandle("removeAllObjects"); private static readonly IntPtr selRemoveObjectForKey_Handle = Selector.GetHandle("removeObjectForKey:"); private static readonly IntPtr selSetObjectForKey_Handle = Selector.GetHandle("setObject:forKey:"); private static readonly IntPtr selDictionaryWithSharedKeySet_Handle = Selector.GetHandle("dictionaryWithSharedKeySet:"); #region private const string selSetObject_ForKey_ = "setObject:forKey:"; private static readonly IntPtr selSetObject_ForKey_Handle = Selector.GetHandle(selSetObject_ForKey_); private const string selInitWithObjects_ForKeys_ = "initWithObjects:forKeys:"; private static readonly IntPtr selInitWithObjects_ForKeys_Handle = Selector.GetHandle(selInitWithObjects_ForKeys_); #endregion private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableDictionary"); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableDictionary() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend(Handle, Selector.Init); } else { Handle = Messaging.IntPtr_objc_msgSendSuper(SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableDictionary(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableDictionary(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableDictionary(IntPtr handle) : base(handle) { } #region [Export(selInitWithObjects_ForKeys_)] internal NSMutableDictionary(NSArray objects, NSArray keys) : base(NSObjectFlag.Empty) { if (objects == null) throw new ArgumentNullException("objects"); if (keys == null) throw new ArgumentNullException("keys"); if (IsDirectBinding) InitializeWithHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selInitWithObjects_ForKeys_Handle, objects.Handle, keys.Handle)); else InitializeWithHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selInitWithObjects_ForKeys_Handle, objects.Handle, keys.Handle)); } #endregion int ICollection>.Count => (int)Count; bool ICollection>.IsReadOnly => false; bool IDictionary.IsFixedSize => false; bool IDictionary.IsReadOnly => false; object IDictionary.this[object key] { get { if (!(key is NSObject key2)) { return null; } return ObjectForKey(key2); } set { NSObject nSObject = key as NSObject; NSObject nSObject2 = value as NSObject; if (nSObject == null || nSObject2 == null) { throw new ArgumentException("You can only use NSObjects for keys and values in an NSMutableDictionary"); } SetObject(nSObject2, nSObject); } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; public override NSObject this[NSObject key] { get { if (key == null) { throw new ArgumentNullException("key"); } return ObjectForKey(key); } set { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, value.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetObjectForKey_Handle, value.Handle, key.Handle); } } } public override NSObject this[NSString key] { get { if (key == null) { throw new ArgumentNullException("key"); } return ObjectForKey(key); } set { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, value.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetObjectForKey_Handle, value.Handle, key.Handle); } } } public override NSObject this[string key] { get { if (key == null) { throw new ArgumentNullException("key"); } using NSString key2 = new NSString(key); return ObjectForKey(key2); } set { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } using NSString nSString = new NSString(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, value.Handle, nSString.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetObjectForKey_Handle, value.Handle, nSString.Handle); } } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; public override IntPtr ClassHandle => class_ptr; internal NSMutableDictionary(IntPtr handle, bool owns) : base(handle) { if (!owns) { Release(); } } public new static NSMutableDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } NSArray nSArray = NSArray.FromNSObjects(objects); NSArray nSArray2 = NSArray.FromNSObjects(keys); NSMutableDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public new static NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } NSArray nSArray = NSArray.FromObjects(objects); NSArray nSArray2 = NSArray.FromObjects(keys); NSMutableDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public new static NSMutableDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys, int count) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } NSArray nSArray = NSArray.FromNSObjects(objects); NSArray nSArray2 = NSArray.FromNSObjects(keys); NSMutableDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } public new static NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys, int count) { if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } NSArray nSArray = NSArray.FromObjects(objects); NSArray nSArray2 = NSArray.FromObjects(keys); NSMutableDictionary result = FromObjectsAndKeysInternal(nSArray, nSArray2); nSArray.Dispose(); nSArray2.Dispose(); return result; } void ICollection>.Add(KeyValuePair item) { SetObject(item.Value, item.Key); } public void Clear() { RemoveAllObjects(); } bool ICollection>.Contains(KeyValuePair keyValuePair) { return ContainsKeyValuePair(keyValuePair); } void ICollection>.CopyTo(KeyValuePair[] array, int index) { if (array == null) { throw new ArgumentNullException("array"); } if (index < 0) { throw new ArgumentOutOfRangeException("index"); } if (index > array.Length) { throw new ArgumentException("index larger than largest valid index of array"); } if (array.Length - index < (int)Count) { throw new ArgumentException("Destination array cannot hold the requested elements!"); } IEnumerator> enumerator = GetEnumerator(); while (enumerator.MoveNext()) { array[index++] = enumerator.Current; } } bool ICollection>.Remove(KeyValuePair keyValuePair) { ulong count = Count; RemoveObjectForKey(keyValuePair.Key); return count != Count; } void IDictionary.Add(object key, object value) { NSObject nSObject = key as NSObject; NSObject nSObject2 = value as NSObject; if (nSObject == null || nSObject2 == null) { throw new ArgumentException("You can only use NSObjects for keys and values in an NSMutableDictionary"); } SetObject(nSObject2, nSObject); } bool IDictionary.Contains(object key) { if (key == null) { throw new ArgumentNullException("key"); } if (!(key is NSObject key2)) { return false; } return ContainsKey(key2); } IDictionaryEnumerator IDictionary.GetEnumerator() { return new ShimEnumerator(this); } void IDictionary.Remove(object key) { if (key == null) { throw new ArgumentNullException("key"); } if (!(key is NSObject key2)) { throw new ArgumentException("The key must be an NSObject"); } RemoveObjectForKey(key2); } public void Add(NSObject key, NSObject value) { SetObject(value, key); } public bool Remove(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } ulong count = Count; RemoveObjectForKey(key); return count != Count; } public new bool TryGetValue(NSObject key, out NSObject value) { if (key == null) { throw new ArgumentNullException("key"); } NSArray keys = NSArray.FromNSObjects(key); NSObject[] array = ObjectsForKeys(keys, marker); if (marker == array[0]) { value = null; return false; } value = array[0]; return true; } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public new IEnumerator> GetEnumerator() { NSObject[] keys = Keys; foreach (NSObject key in keys) { yield return new KeyValuePair(key, ObjectForKey(key)); } } public static NSMutableDictionary LowlevelFromObjectAndKey(IntPtr obj, IntPtr key) { return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjectForKey_Handle, obj, key)); } public void LowlevelSetObject(IntPtr obj, IntPtr key) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, obj, key); } public void LowlevelSetObject(NSObject obj, IntPtr key) { if (obj == null) { throw new ArgumentNullException("obj"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, obj.Handle, key); } [Export("dictionaryWithContentsOfFile:")] public new static NSMutableDictionary FromFile(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSMutableDictionary result = (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithContentsOfFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("dictionaryWithContentsOfURL:")] public new static NSMutableDictionary FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithContentsOfURL_Handle, url.Handle)); } [Export("dictionaryWithObject:forKey:")] public new static NSMutableDictionary FromObjectAndKey(NSObject obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjectForKey_Handle, obj.Handle, key.Handle)); } [Export("dictionaryWithDictionary:")] public new static NSMutableDictionary FromDictionary(NSDictionary source) { if (source == null) { throw new ArgumentNullException("source"); } return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithDictionary_Handle, source.Handle)); } [Export("dictionaryWithObjects:forKeys:count:")] internal static NSMutableDictionary FromObjectsAndKeysInternalCount(NSArray objects, NSArray keys, ulong count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(class_ptr, selDictionaryWithObjectsForKeysCount_Handle, objects.Handle, keys.Handle, count)); } [Export("dictionaryWithObjects:forKeys:")] internal new static NSMutableDictionary FromObjectsAndKeysInternal(NSArray objects, NSArray Keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (Keys == null) { throw new ArgumentNullException("Keys"); } return (NSMutableDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDictionaryWithObjectsForKeys_Handle, objects.Handle, Keys.Handle)); } [Export("initWithDictionary:")] public NSMutableDictionary(NSDictionary other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithDictionary_Handle, other.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithDictionary_Handle, other.Handle); } } [Export("initWithContentsOfFile:")] public NSMutableDictionary(string fileName) : base(NSObjectFlag.Empty) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr arg = NSString.CreateNative(fileName); if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithContentsOfFile_Handle, arg); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithContentsOfFile_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithContentsOfURL:")] public NSMutableDictionary(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithContentsOfURL_Handle, url.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithContentsOfURL_Handle, url.Handle); } } [Export("removeAllObjects")] internal virtual void RemoveAllObjects() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selRemoveAllObjectsHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selRemoveAllObjectsHandle); } } [Export("removeObjectForKey:")] internal virtual void RemoveObjectForKey(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveObjectForKey_Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selRemoveObjectForKey_Handle, key.Handle); } } [Export("setObject:forKey:")] internal virtual void SetObject(NSObject obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObjectForKey_Handle, obj.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetObjectForKey_Handle, obj.Handle, key.Handle); } } [Export("dictionaryWithSharedKeySet:")] public static NSDictionary FromSharedKeySet(NSObject sharedKeyToken) { if (sharedKeyToken == null) { throw new ArgumentNullException("sharedKeyToken"); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryWithSharedKeySet_Handle, sharedKeyToken.Handle)); } #region internal void _RemoveObjectForKey(IntPtr key) { Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveObjectForKey_Handle, key); } internal void _SetObject(IntPtr obj, IntPtr key) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObject_ForKey_Handle, obj, key); } #endregion } [Register("NSMutableDictionary", SkipRegistration = true)] public sealed class NSMutableDictionary : NSMutableDictionary, IDictionary, ICollection>, IEnumerable>, IEnumerable where TKey : class, INativeObject where TValue : class, INativeObject { public new TKey[] Keys { get { using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllKeys()); } } } public new TValue[] Values { get { using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllValues()); } } } public TValue this[TKey index] { get { return ObjectForKey(index); } set { Add(index, value); } } TValue IDictionary.this[TKey index] { get { return this[index]; } set { this[index] = value; } } ICollection IDictionary.Keys => Keys; ICollection IDictionary.Values => Values; int ICollection>.Count => (int)Count; bool ICollection>.IsReadOnly => false; public NSMutableDictionary() { } public NSMutableDictionary(NSCoder coder) : base(coder) { } internal NSMutableDictionary(IntPtr handle) : base(handle) { } public NSMutableDictionary(NSMutableDictionary other) : base(other) { } public NSMutableDictionary(NSDictionary other) : base(other) { } private NSMutableDictionary(TKey[] keys, TValue[] values, bool validation) : base(NSArray.FromNSObjectsTx(values), NSArray.FromNSObjectsTx(keys)) { } public NSMutableDictionary(TKey[] keys, TValue[] values) : this(keys, values, NSDictionary.ValidateKeysAndValues(keys, values)) { } public NSMutableDictionary(TKey key, TValue value) : base(NSArray.FromNSObjectsTx(value), NSArray.FromNSObjectsTx(key)) { } public TValue ObjectForKey(TKey key) { if (key == null) { throw new ArgumentNullException("key"); } return Runtime.GetNativeObject(_ObjectForKey(key.Handle)); } public TKey[] KeysForObject(TValue obj) { if (obj == null) { throw new ArgumentNullException("obj"); } using (new NSAutoreleasePool()) { return NSArray.ArrayFromNativeHandle(_AllKeysForObject(obj.Handle)); } } public TValue[] ObjectsForKeys(TKey[] keys, TValue marker) { if (keys == null) { throw new ArgumentNullException("keys"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (keys.Length == 0) { return new TValue[0]; } return NSArray.ArrayFromNativeHandle(_ObjectsForKeys(NSArray.From(keys, -1L).Handle, marker.Handle)); } public void Add(TKey key, TValue value) { if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } _SetObject(value.Handle, key.Handle); } public bool Remove(TKey key) { if (key == null) { throw new ArgumentNullException("key"); } ulong count = Count; _RemoveObjectForKey(key.Handle); return count != Count; } public bool TryGetValue(TKey key, out TValue value) { return (value = ObjectForKey(key)) != null; } public bool ContainsKey(TKey key) { return ObjectForKey(key) != null; } private static NSMutableDictionary GenericFromObjectsAndKeysInternal(NSArray objects, NSArray keys) { return Runtime.GetNativeObject>(NSDictionary._FromObjectsAndKeysInternal(objects.Handle, keys.Handle)); } public static NSMutableDictionary FromObjectsAndKeys(TValue[] objects, TKey[] keys, nint count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromNSObjectsTx(objects); using NSArray keys2 = NSArray.FromNSObjectsTx(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } [Obsolete("'TKey' and 'TValue' are inversed and won't work unless both types are identical. Use the generic overload that takes a count parameter instead.")] public static NSMutableDictionary FromObjectsAndKeys(TKey[] objects, TValue[] keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } using NSArray objects2 = NSArray.FromNSObjectsTx(objects); using NSArray keys2 = NSArray.FromNSObjectsTx(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public new static NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } using NSArray objects2 = NSArray.FromObjects(objects); using NSArray keys2 = NSArray.FromObjects(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public new static NSMutableDictionary FromObjectsAndKeys(NSObject[] objects, NSObject[] keys, nint count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromNSObjects(objects); using NSArray keys2 = NSArray.FromNSObjects(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } public new static NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys, nint count) { if (objects == null) { throw new ArgumentNullException("objects"); } if (keys == null) { throw new ArgumentNullException("keys"); } if (objects.Length != keys.Length) { throw new ArgumentException("objects and keys arrays have different sizes"); } if (count < 1 || objects.Length < count || keys.Length < count) { throw new ArgumentException("count"); } using NSArray objects2 = NSArray.FromObjects(objects); using NSArray keys2 = NSArray.FromObjects(keys); return GenericFromObjectsAndKeysInternal(objects2, keys2); } void IDictionary.Add(TKey key, TValue value) { Add(key, value); } bool IDictionary.Remove(TKey key) { return Remove(key); } bool IDictionary.TryGetValue(TKey key, out TValue value) { return TryGetValue(key, out value); } bool IDictionary.ContainsKey(TKey key) { return ContainsKey(key); } void ICollection>.Add(KeyValuePair item) { Add(item.Key, item.Value); } void ICollection>.Clear() { Clear(); } bool ICollection>.Contains(KeyValuePair item) { if (!TryGetValue(item.Key, out var value)) { return false; } return value == item.Value; } void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) { if (array == null) { throw new ArgumentNullException("array"); } if (arrayIndex < 0) { throw new ArgumentOutOfRangeException("arrayIndex"); } int num = array.Length; if (num > 0 && arrayIndex >= num) { throw new ArgumentException("arrayIndex is equal to or greater than array.Length"); } if (arrayIndex + (int)Count > num) { throw new ArgumentException("Not enough room from arrayIndex to end of array for this dictionary"); } int num2 = arrayIndex; foreach (KeyValuePair item in (IEnumerable>)this) { array[num2++] = item; } } bool ICollection>.Remove(KeyValuePair item) { if (item.Key == null) { throw new ArgumentNullException("item.Key"); } if (item.Value == null) { throw new ArgumentNullException("item.Value"); } if (!TryGetValue(item.Key, out var value)) { return false; } if (value == item.Value) { Remove(item.Key); return true; } return false; } IEnumerator> IEnumerable>.GetEnumerator() { TKey[] keys = Keys; foreach (TKey key in keys) { yield return new KeyValuePair(key, ObjectForKey(key)); } } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable>)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableIndexSet.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableIndexSet", true)] public class NSMutableIndexSet : NSIndexSet { private static readonly IntPtr selInitWithIndex_Handle = Selector.GetHandle("initWithIndex:"); private static readonly IntPtr selInitWithIndexSet_Handle = Selector.GetHandle("initWithIndexSet:"); private static readonly IntPtr selAddIndexes_Handle = Selector.GetHandle("addIndexes:"); private static readonly IntPtr selRemoveIndexes_Handle = Selector.GetHandle("removeIndexes:"); private static readonly IntPtr selRemoveAllIndexesHandle = Selector.GetHandle("removeAllIndexes"); private static readonly IntPtr selAddIndex_Handle = Selector.GetHandle("addIndex:"); private static readonly IntPtr selRemoveIndex_Handle = Selector.GetHandle("removeIndex:"); private static readonly IntPtr selShiftIndexesStartingAtIndexBy_Handle = Selector.GetHandle("shiftIndexesStartingAtIndex:by:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableIndexSet"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableIndexSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableIndexSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableIndexSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableIndexSet(IntPtr handle) : base(handle) { } [Export("initWithIndex:")] public NSMutableIndexSet(ulong index) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithIndex_Handle, index); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithIndex_Handle, index); } } [Export("initWithIndexSet:")] public NSMutableIndexSet(NSIndexSet other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIndexSet_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIndexSet_Handle, other.Handle); } } [Export("addIndexes:")] public virtual void Add(NSIndexSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddIndexes_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddIndexes_Handle, other.Handle); } } [Export("removeIndexes:")] public virtual void Remove(NSIndexSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveIndexes_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveIndexes_Handle, other.Handle); } } [Export("removeAllIndexes")] public virtual void Clear() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllIndexesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllIndexesHandle); } } [Export("addIndex:")] public virtual void Add(ulong index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selAddIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selAddIndex_Handle, index); } } [Export("removeIndex:")] public virtual void Remove(ulong index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selRemoveIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selRemoveIndex_Handle, index); } } [Export("shiftIndexesStartingAtIndex:by:")] public virtual void ShiftIndexes(ulong startIndex, long delta) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_Int64(base.Handle, selShiftIndexesStartingAtIndexBy_Handle, startIndex, delta); } else { Messaging.void_objc_msgSendSuper_UInt64_Int64(base.SuperHandle, selShiftIndexesStartingAtIndexBy_Handle, startIndex, delta); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableOrderedSet.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableOrderedSet", true)] public class NSMutableOrderedSet : NSOrderedSet { private static readonly IntPtr selInitWithObject_Handle = Selector.GetHandle("initWithObject:"); private static readonly IntPtr selInitWithSet_Handle = Selector.GetHandle("initWithSet:"); private static readonly IntPtr selInitWithOrderedSet_Handle = Selector.GetHandle("initWithOrderedSet:"); private static readonly IntPtr selInitWithCapacity_Handle = Selector.GetHandle("initWithCapacity:"); private static readonly IntPtr selInitWithArray_Handle = Selector.GetHandle("initWithArray:"); private static readonly IntPtr selUnionSet_Handle = Selector.GetHandle("unionSet:"); private static readonly IntPtr selMinusSet_Handle = Selector.GetHandle("minusSet:"); private static readonly IntPtr selInsertObjectAtIndex_Handle = Selector.GetHandle("insertObject:atIndex:"); private static readonly IntPtr selRemoveObjectAtIndex_Handle = Selector.GetHandle("removeObjectAtIndex:"); private static readonly IntPtr selReplaceObjectAtIndexWithObject_Handle = Selector.GetHandle("replaceObjectAtIndex:withObject:"); private static readonly IntPtr selAddObject_Handle = Selector.GetHandle("addObject:"); private static readonly IntPtr selAddObjectsFromArray_Handle = Selector.GetHandle("addObjectsFromArray:"); private static readonly IntPtr selInsertObjectsAtIndexes_Handle = Selector.GetHandle("insertObjects:atIndexes:"); private static readonly IntPtr selRemoveObjectsAtIndexes_Handle = Selector.GetHandle("removeObjectsAtIndexes:"); private static readonly IntPtr selExchangeObjectAtIndexWithObjectAtIndex_Handle = Selector.GetHandle("exchangeObjectAtIndex:withObjectAtIndex:"); private static readonly IntPtr selMoveObjectsAtIndexesToIndex_Handle = Selector.GetHandle("moveObjectsAtIndexes:toIndex:"); private static readonly IntPtr selSetObjectAtIndex_Handle = Selector.GetHandle("setObject:atIndex:"); private static readonly IntPtr selReplaceObjectsAtIndexesWithObjects_Handle = Selector.GetHandle("replaceObjectsAtIndexes:withObjects:"); private static readonly IntPtr selRemoveObjectsInRange_Handle = Selector.GetHandle("removeObjectsInRange:"); private static readonly IntPtr selRemoveAllObjectsHandle = Selector.GetHandle("removeAllObjects"); private static readonly IntPtr selRemoveObject_Handle = Selector.GetHandle("removeObject:"); private static readonly IntPtr selRemoveObjectsInArray_Handle = Selector.GetHandle("removeObjectsInArray:"); private static readonly IntPtr selIntersectOrderedSet_Handle = Selector.GetHandle("intersectOrderedSet:"); private static readonly IntPtr selSortUsingComparator_Handle = Selector.GetHandle("sortUsingComparator:"); private static readonly IntPtr selSortWithOptionsUsingComparator_Handle = Selector.GetHandle("sortWithOptions:usingComparator:"); private static readonly IntPtr selSortRangeOptionsUsingComparator_Handle = Selector.GetHandle("sortRange:options:usingComparator:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableOrderedSet"); public new NSObject this[int idx] { get { return GetObject(idx); } set { SetObject(value, idx); } } public override IntPtr ClassHandle => class_ptr; public NSMutableOrderedSet(params NSObject[] objs) : this(NSArray.FromNSObjects(objs)) { } public NSMutableOrderedSet(params object[] objs) : this(NSArray.FromObjects(objs)) { } public NSMutableOrderedSet(params string[] strings) : this(NSArray.FromStrings(strings)) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableOrderedSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableOrderedSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableOrderedSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableOrderedSet(IntPtr handle) : base(handle) { } [Export("initWithObject:")] public NSMutableOrderedSet(NSObject start) : base(NSObjectFlag.Empty) { if (start == null) { throw new ArgumentNullException("start"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithObject_Handle, start.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithObject_Handle, start.Handle); } } [Export("initWithSet:")] public NSMutableOrderedSet(NSSet source) : base(NSObjectFlag.Empty) { if (source == null) { throw new ArgumentNullException("source"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithSet_Handle, source.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithSet_Handle, source.Handle); } } [Export("initWithOrderedSet:")] public NSMutableOrderedSet(NSOrderedSet source) : base(NSObjectFlag.Empty) { if (source == null) { throw new ArgumentNullException("source"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithOrderedSet_Handle, source.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithOrderedSet_Handle, source.Handle); } } [Export("initWithCapacity:")] public NSMutableOrderedSet(int capacity) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selInitWithCapacity_Handle, capacity); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selInitWithCapacity_Handle, capacity); } } [Export("initWithArray:")] internal NSMutableOrderedSet(NSArray array) : base(NSObjectFlag.Empty) { if (array == null) { throw new ArgumentNullException("array"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithArray_Handle, array.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithArray_Handle, array.Handle); } } [Export("unionSet:")] internal virtual void UnionSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selUnionSet_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnionSet_Handle, other.Handle); } } [Export("minusSet:")] internal virtual void MinusSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMinusSet_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMinusSet_Handle, other.Handle); } } [Export("insertObject:atIndex:")] public virtual void Insert(NSObject obj, int atIndex) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertObjectAtIndex_Handle, obj.Handle, atIndex); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertObjectAtIndex_Handle, obj.Handle, atIndex); } } [Export("removeObjectAtIndex:")] public virtual void Remove(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selRemoveObjectAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selRemoveObjectAtIndex_Handle, index); } } [Export("replaceObjectAtIndex:withObject:")] public virtual void Replace(int objectAtIndex, NSObject newObject) { if (newObject == null) { throw new ArgumentNullException("newObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr(base.Handle, selReplaceObjectAtIndexWithObject_Handle, objectAtIndex, newObject.Handle); } else { Messaging.void_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selReplaceObjectAtIndexWithObject_Handle, objectAtIndex, newObject.Handle); } } [Export("addObject:")] public virtual void Add(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObject_Handle, obj.Handle); } } [Export("addObjectsFromArray:")] public virtual void AddObjects(NSObject[] source) { if (source == null) { throw new ArgumentNullException("source"); } NSArray nSArray = NSArray.FromNSObjects(source); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObjectsFromArray_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObjectsFromArray_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("insertObjects:atIndexes:")] public virtual void InsertObjects(NSObject[] objects, NSIndexSet atIndexes) { if (objects == null) { throw new ArgumentNullException("objects"); } if (atIndexes == null) { throw new ArgumentNullException("atIndexes"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertObjectsAtIndexes_Handle, nSArray.Handle, atIndexes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertObjectsAtIndexes_Handle, nSArray.Handle, atIndexes.Handle); } nSArray.Dispose(); } [Export("removeObjectsAtIndexes:")] public virtual void RemoveObjects(NSIndexSet indexSet) { if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectsAtIndexes_Handle, indexSet.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectsAtIndexes_Handle, indexSet.Handle); } } [Export("exchangeObjectAtIndex:withObjectAtIndex:")] public virtual void ExchangeObject(int first, int second) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int_int(base.Handle, selExchangeObjectAtIndexWithObjectAtIndex_Handle, first, second); } else { Messaging.void_objc_msgSendSuper_int_int(base.SuperHandle, selExchangeObjectAtIndexWithObjectAtIndex_Handle, first, second); } } [Export("moveObjectsAtIndexes:toIndex:")] public virtual void MoveObjects(NSIndexSet indexSet, int destination) { if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selMoveObjectsAtIndexesToIndex_Handle, indexSet.Handle, destination); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selMoveObjectsAtIndexesToIndex_Handle, indexSet.Handle, destination); } } [Export("setObject:atIndex:")] public virtual void SetObject(NSObject obj, int index) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetObjectAtIndex_Handle, obj.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetObjectAtIndex_Handle, obj.Handle, index); } } [Export("replaceObjectsAtIndexes:withObjects:")] public virtual void ReplaceObjects(NSIndexSet indexSet, NSObject[] replacementObjects) { if (indexSet == null) { throw new ArgumentNullException("indexSet"); } if (replacementObjects == null) { throw new ArgumentNullException("replacementObjects"); } NSArray nSArray = NSArray.FromNSObjects(replacementObjects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selReplaceObjectsAtIndexesWithObjects_Handle, indexSet.Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReplaceObjectsAtIndexesWithObjects_Handle, indexSet.Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("removeObjectsInRange:")] public virtual void RemoveObjects(NSRange range) { if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange(base.Handle, selRemoveObjectsInRange_Handle, range); } else { Messaging.void_objc_msgSendSuper_NSRange(base.SuperHandle, selRemoveObjectsInRange_Handle, range); } } [Export("removeAllObjects")] public virtual void RemoveAllObjects() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllObjectsHandle); } } [Export("removeObject:")] public virtual void RemoveObject(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObject_Handle, obj.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObject_Handle, obj.Handle); } } [Export("removeObjectsInArray:")] public virtual void RemoveObjects(NSObject[] objects) { if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectsInArray_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectsInArray_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("intersectOrderedSet:")] public virtual void Intersect(NSOrderedSet intersectWith) { if (intersectWith == null) { throw new ArgumentNullException("intersectWith"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selIntersectOrderedSet_Handle, intersectWith.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntersectOrderedSet_Handle, intersectWith.Handle); } } [Export("sortUsingComparator:")] public unsafe virtual void Sort(NSComparator comparator) { if (comparator == null) { throw new ArgumentNullException("comparator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSComparator.Handler, comparator); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSortUsingComparator_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSortUsingComparator_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("sortWithOptions:usingComparator:")] public unsafe virtual void Sort(NSSortOptions sortOptions, NSComparator comparator) { if (comparator == null) { throw new ArgumentNullException("comparator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSComparator.Handler, comparator); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr(base.Handle, selSortWithOptionsUsingComparator_Handle, (ulong)sortOptions, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr(base.SuperHandle, selSortWithOptionsUsingComparator_Handle, (ulong)sortOptions, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("sortRange:options:usingComparator:")] public unsafe virtual void SortRange(NSRange range, NSSortOptions sortOptions, NSComparator comparator) { if (comparator == null) { throw new ArgumentNullException("comparator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSComparator.Handler, comparator); if (IsDirectBinding) { Messaging.void_objc_msgSend_NSRange_UInt64_IntPtr(base.Handle, selSortRangeOptionsUsingComparator_Handle, range, (ulong)sortOptions, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_NSRange_UInt64_IntPtr(base.SuperHandle, selSortRangeOptionsUsingComparator_Handle, range, (ulong)sortOptions, (IntPtr)ptr); } ptr->CleanupBlock(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableSet.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableSet", true)] public class NSMutableSet : NSSet, IEnumerable, IEnumerable { private static readonly IntPtr selInitWithArray_Handle = Selector.GetHandle("initWithArray:"); private static readonly IntPtr selInitWithSet_Handle = Selector.GetHandle("initWithSet:"); private static readonly IntPtr selInitWithCapacity_Handle = Selector.GetHandle("initWithCapacity:"); private static readonly IntPtr selAddObject_Handle = Selector.GetHandle("addObject:"); private static readonly IntPtr selRemoveObject_Handle = Selector.GetHandle("removeObject:"); private static readonly IntPtr selRemoveAllObjectsHandle = Selector.GetHandle("removeAllObjects"); private static readonly IntPtr selAddObjectsFromArray_Handle = Selector.GetHandle("addObjectsFromArray:"); private static readonly IntPtr selMinusSet_Handle = Selector.GetHandle("minusSet:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableSet"); public override IntPtr ClassHandle => class_ptr; public NSMutableSet(NSObject[] objs) : this(NSArray.FromNSObjects(objs)) { } public NSMutableSet(params string[] strings) : this(NSArray.FromStrings(strings)) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableSet(IntPtr handle) : base(handle) { } [Export("initWithArray:")] public NSMutableSet(NSArray other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithArray_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithArray_Handle, other.Handle); } } [Export("initWithSet:")] public NSMutableSet(NSSet other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithSet_Handle, other.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithSet_Handle, other.Handle); } } [Export("initWithCapacity:")] public NSMutableSet(ulong capacity) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithCapacity_Handle, capacity); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithCapacity_Handle, capacity); } } #region internal NSMutableSet(params INativeObject[] objs) : this(NSArray.FromNativeObjectsTx(objs)) { } #endregion [Export("addObject:")] public virtual void Add(NSObject nso) { if (nso == null) { throw new ArgumentNullException("nso"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, nso.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObject_Handle, nso.Handle); } } [Export("removeObject:")] public virtual void Remove(NSObject nso) { if (nso == null) { throw new ArgumentNullException("nso"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObject_Handle, nso.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObject_Handle, nso.Handle); } } [Export("removeAllObjects")] public virtual void RemoveAll() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllObjectsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllObjectsHandle); } } [Export("addObjectsFromArray:")] public virtual void AddObjects(NSObject[] objects) { if (objects == null) { throw new ArgumentNullException("objects"); } NSArray nSArray = NSArray.FromNSObjects(objects); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObjectsFromArray_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddObjectsFromArray_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("minusSet:")] internal virtual void MinusSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMinusSet_Handle, other.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMinusSet_Handle, other.Handle); } } #region internal void _Add(IntPtr obj) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObject_Handle, obj); } internal void _AddObjects(IntPtr objects) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddObjectsFromArray_Handle, objects); } internal void _Remove(IntPtr nso) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObject_Handle, nso); } #endregion } [Register("NSMutableSet", SkipRegistration = true)] public sealed class NSMutableSet : NSMutableSet, IEnumerable, IEnumerable where TKey : class, INativeObject { public new TKey AnyObject => Runtime.GetNativeObject(base._AnyObject); public NSMutableSet() { } public NSMutableSet(NSCoder coder) : base(coder) { } internal NSMutableSet(IntPtr handle) : base(handle) { } public NSMutableSet(params TKey[] objs) : base(objs) { } public NSMutableSet(NSSet other) : base(other) { } public NSMutableSet(NSMutableSet other) : base(other) { } public TKey LookupMember(TKey probe) { if (probe == null) { throw new ArgumentNullException("probe"); } return Runtime.GetNativeObject(_LookupMember(probe.Handle)); } public bool Contains(TKey obj) { if (obj == null) { throw new ArgumentNullException("obj"); } return _Contains(obj.Handle); } public TKey[] ToArray() { return ToNativeArray(); } public static NSMutableSet operator +(NSMutableSet first, NSMutableSet second) { if (first == null || first.Count == (byte)0) { return new NSMutableSet(second); } if (second == null || second.Count == (byte)0) { return new NSMutableSet(first); } return new NSMutableSet(first._SetByAddingObjectsFromSet(second.Handle)); } public static NSMutableSet operator -(NSMutableSet first, NSMutableSet second) { if (first == null || first.Count == (byte)0) { return null; } if (second == null || second.Count == (byte)0) { return new NSMutableSet(first); } NSMutableSet nSMutableSet = new NSMutableSet(first); nSMutableSet.MinusSet(second); return nSMutableSet; } public void Add(TKey obj) { if (obj == null) { throw new ArgumentNullException("obj"); } _Add(obj.Handle); } public void Remove(TKey obj) { if (obj == null) { throw new ArgumentNullException("obj"); } _Remove(obj.Handle); } public void AddObjects(params TKey[] objects) { if (objects == null) { throw new ArgumentNullException("objects"); } for (int i = 0; i < objects.Length; i++) { if (objects[i] == null) { throw new ArgumentNullException("objects[" + i + "]"); } } using NSArray nSArray = NSArray.From(objects, -1L); _AddObjects(nSArray.Handle); } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSMutableUrlRequest.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSMutableURLRequest", true)] public class NSMutableUrlRequest : NSUrlRequest { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selCachePolicyHandle = Selector.GetHandle("cachePolicy"); private static readonly IntPtr selSetCachePolicy_Handle = Selector.GetHandle("setCachePolicy:"); private static readonly IntPtr selTimeoutIntervalHandle = Selector.GetHandle("timeoutInterval"); private static readonly IntPtr selSetTimeoutInterval_Handle = Selector.GetHandle("setTimeoutInterval:"); private static readonly IntPtr selMainDocumentURLHandle = Selector.GetHandle("mainDocumentURL"); private static readonly IntPtr selSetMainDocumentURL_Handle = Selector.GetHandle("setMainDocumentURL:"); private static readonly IntPtr selHTTPMethodHandle = Selector.GetHandle("HTTPMethod"); private static readonly IntPtr selSetHTTPMethod_Handle = Selector.GetHandle("setHTTPMethod:"); private static readonly IntPtr selAllHTTPHeaderFieldsHandle = Selector.GetHandle("allHTTPHeaderFields"); private static readonly IntPtr selSetAllHTTPHeaderFields_Handle = Selector.GetHandle("setAllHTTPHeaderFields:"); private static readonly IntPtr selHTTPBodyHandle = Selector.GetHandle("HTTPBody"); private static readonly IntPtr selSetHTTPBody_Handle = Selector.GetHandle("setHTTPBody:"); private static readonly IntPtr selHTTPBodyStreamHandle = Selector.GetHandle("HTTPBodyStream"); private static readonly IntPtr selSetHTTPBodyStream_Handle = Selector.GetHandle("setHTTPBodyStream:"); private static readonly IntPtr selHTTPShouldHandleCookiesHandle = Selector.GetHandle("HTTPShouldHandleCookies"); private static readonly IntPtr selSetHTTPShouldHandleCookies_Handle = Selector.GetHandle("setHTTPShouldHandleCookies:"); private static readonly IntPtr selNetworkServiceTypeHandle = Selector.GetHandle("networkServiceType"); private static readonly IntPtr selSetNetworkServiceType_Handle = Selector.GetHandle("setNetworkServiceType:"); private static readonly IntPtr selAllowsCellularAccessHandle = Selector.GetHandle("allowsCellularAccess"); private static readonly IntPtr selSetAllowsCellularAccess_Handle = Selector.GetHandle("setAllowsCellularAccess:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithURLCachePolicyTimeoutInterval_Handle = Selector.GetHandle("initWithURL:cachePolicy:timeoutInterval:"); private static readonly IntPtr selSetValueForHTTPHeaderField_Handle = Selector.GetHandle("setValue:forHTTPHeaderField:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSMutableURLRequest"); private object __mt_Url_var; private object __mt_MainDocumentURL_var; private object __mt_Headers_var; private object __mt_Body_var; private object __mt_BodyStream_var; public new string this[string key] { get { return Header(key); } set { _SetValue(value, key); } } public override IntPtr ClassHandle => class_ptr; public new virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } public new virtual NSUrlRequestCachePolicy CachePolicy { [Export("cachePolicy")] get { if (IsDirectBinding) { return (NSUrlRequestCachePolicy)Messaging.UInt64_objc_msgSend(base.Handle, selCachePolicyHandle); } return (NSUrlRequestCachePolicy)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCachePolicyHandle); } [Export("setCachePolicy:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetCachePolicy_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetCachePolicy_Handle, (ulong)value); } } } public new virtual double TimeoutInterval { [Export("timeoutInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeoutIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeoutIntervalHandle); } [Export("setTimeoutInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetTimeoutInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetTimeoutInterval_Handle, value); } } } public new virtual NSUrl MainDocumentURL { [Export("mainDocumentURL")] get { return (NSUrl)(__mt_MainDocumentURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainDocumentURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainDocumentURLHandle))))); } [Export("setMainDocumentURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMainDocumentURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMainDocumentURL_Handle, value.Handle); } __mt_MainDocumentURL_var = value; } } public new virtual string HttpMethod { [Export("HTTPMethod")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPMethodHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPMethodHandle)); } [Export("setHTTPMethod:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHTTPMethod_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHTTPMethod_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual NSDictionary Headers { [Export("allHTTPHeaderFields")] get { return (NSDictionary)(__mt_Headers_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllHTTPHeaderFieldsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAllHTTPHeaderFieldsHandle))))); } [Export("setAllHTTPHeaderFields:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAllHTTPHeaderFields_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAllHTTPHeaderFields_Handle, value.Handle); } __mt_Headers_var = value; } } public new virtual NSData Body { [Export("HTTPBody")] get { return (NSData)(__mt_Body_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPBodyHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPBodyHandle))))); } [Export("setHTTPBody:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHTTPBody_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHTTPBody_Handle, value.Handle); } __mt_Body_var = value; } } public new virtual NSInputStream BodyStream { [Export("HTTPBodyStream")] get { return (NSInputStream)(__mt_BodyStream_var = ((!IsDirectBinding) ? ((NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPBodyStreamHandle))) : ((NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPBodyStreamHandle))))); } [Export("setHTTPBodyStream:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHTTPBodyStream_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHTTPBodyStream_Handle, value.Handle); } __mt_BodyStream_var = value; } } public new virtual bool ShouldHandleCookies { [Export("HTTPShouldHandleCookies")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHTTPShouldHandleCookiesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHTTPShouldHandleCookiesHandle); } [Export("setHTTPShouldHandleCookies:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHTTPShouldHandleCookies_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHTTPShouldHandleCookies_Handle, value); } } } public new virtual NSUrlRequestNetworkServiceType NetworkServiceType { [Export("networkServiceType")] get { if (IsDirectBinding) { return (NSUrlRequestNetworkServiceType)Messaging.UInt64_objc_msgSend(base.Handle, selNetworkServiceTypeHandle); } return (NSUrlRequestNetworkServiceType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNetworkServiceTypeHandle); } [Export("setNetworkServiceType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetNetworkServiceType_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetNetworkServiceType_Handle, (ulong)value); } } } public new virtual bool AllowsCellularAccess { [Export("allowsCellularAccess")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsCellularAccessHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsCellularAccessHandle); } [Export("setAllowsCellularAccess:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsCellularAccess_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsCellularAccess_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSMutableUrlRequest() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSMutableUrlRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableUrlRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSMutableUrlRequest(IntPtr handle) : base(handle) { } [Export("initWithURL:")] public NSMutableUrlRequest(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("initWithURL:cachePolicy:timeoutInterval:")] public NSMutableUrlRequest(NSUrl url, NSUrlRequestCachePolicy cachePolicy, double timeoutInterval) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_Double(base.Handle, selInitWithURLCachePolicyTimeoutInterval_Handle, url.Handle, (ulong)cachePolicy, timeoutInterval); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_Double(base.SuperHandle, selInitWithURLCachePolicyTimeoutInterval_Handle, url.Handle, (ulong)cachePolicy, timeoutInterval); } } [Export("setValue:forHTTPHeaderField:")] internal virtual void _SetValue(string value, string field) { if (value == null) { throw new ArgumentNullException("value"); } if (field == null) { throw new ArgumentNullException("field"); } IntPtr arg = NSString.CreateNative(value); IntPtr arg2 = NSString.CreateNative(field); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValueForHTTPHeaderField_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValueForHTTPHeaderField_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_MainDocumentURL_var = null; __mt_Headers_var = null; __mt_Body_var = null; __mt_BodyStream_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetDomainEventArgs.cs ================================================ using System; namespace Foundation; public class NSNetDomainEventArgs : EventArgs { public string Domain { get; set; } public bool MoreComing { get; set; } public NSNetDomainEventArgs(string domain, bool moreComing) { Domain = domain; MoreComing = moreComing; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetService.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNetService", true)] public class NSNetService : NSObject { [Register] private sealed class _NSNetServiceDelegate : NSNetServiceDelegate { internal EventHandler willPublish; internal EventHandler published; internal EventHandler publishFailure; internal EventHandler willResolve; internal EventHandler addressResolved; internal EventHandler resolveFailure; internal EventHandler stopped; internal EventHandler updatedTxtRecordData; [Preserve(Conditional = true)] public override void WillPublish(NSNetService sender) { willPublish?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void Published(NSNetService sender) { published?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void PublishFailure(NSNetService sender, NSDictionary errors) { EventHandler eventHandler = publishFailure; if (eventHandler != null) { NSNetServiceErrorEventArgs e = new NSNetServiceErrorEventArgs(errors); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void WillResolve(NSNetService sender) { willResolve?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void AddressResolved(NSNetService sender) { addressResolved?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void ResolveFailure(NSNetService sender, NSDictionary errors) { EventHandler eventHandler = resolveFailure; if (eventHandler != null) { NSNetServiceErrorEventArgs e = new NSNetServiceErrorEventArgs(errors); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void Stopped(NSNetService sender) { stopped?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void UpdatedTxtRecordData(NSNetService sender, NSData data) { EventHandler eventHandler = updatedTxtRecordData; if (eventHandler != null) { NSNetServiceDataEventArgs e = new NSNetServiceDataEventArgs(data); eventHandler(sender, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selDomainHandle = Selector.GetHandle("domain"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selAddressesHandle = Selector.GetHandle("addresses"); private static readonly IntPtr selPortHandle = Selector.GetHandle("port"); private static readonly IntPtr selHostNameHandle = Selector.GetHandle("hostName"); private static readonly IntPtr selInitWithDomainTypeNamePort_Handle = Selector.GetHandle("initWithDomain:type:name:port:"); private static readonly IntPtr selInitWithDomainTypeName_Handle = Selector.GetHandle("initWithDomain:type:name:"); private static readonly IntPtr selScheduleInRunLoopForMode_Handle = Selector.GetHandle("scheduleInRunLoop:forMode:"); private static readonly IntPtr selRemoveFromRunLoopForMode_Handle = Selector.GetHandle("removeFromRunLoop:forMode:"); private static readonly IntPtr selPublishHandle = Selector.GetHandle("publish"); private static readonly IntPtr selPublishWithOptions_Handle = Selector.GetHandle("publishWithOptions:"); private static readonly IntPtr selResolveHandle = Selector.GetHandle("resolve"); private static readonly IntPtr selResolveWithTimeout_Handle = Selector.GetHandle("resolveWithTimeout:"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr selDictionaryFromTXTRecordData_Handle = Selector.GetHandle("dictionaryFromTXTRecordData:"); private static readonly IntPtr selDataFromTXTRecordDictionary_Handle = Selector.GetHandle("dataFromTXTRecordDictionary:"); private static readonly IntPtr selGetInputStreamOutputStream_Handle = Selector.GetHandle("getInputStream:outputStream:"); private static readonly IntPtr selTXTRecordDataHandle = Selector.GetHandle("TXTRecordData"); private static readonly IntPtr selSetTXTRecordData_Handle = Selector.GetHandle("setTXTRecordData:"); private static readonly IntPtr selStartMonitoringHandle = Selector.GetHandle("startMonitoring"); private static readonly IntPtr selStopMonitoringHandle = Selector.GetHandle("stopMonitoring"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNetService"); private object __mt_WeakDelegate_var; private object __mt_Addresses_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSNetServiceDelegate Delegate { get { return WeakDelegate as NSNetServiceDelegate; } set { WeakDelegate = value; } } public virtual string Domain { [Export("domain")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDomainHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDomainHandle)); } } public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual NSData[] Addresses { [Export("addresses")] get { return (NSData[])(__mt_Addresses_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAddressesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAddressesHandle)))); } } public virtual int Port { [Export("port")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPortHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPortHandle); } } public virtual string HostName { [Export("hostName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHostNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHostNameHandle)); } } public event EventHandler WillPublish { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.willPublish = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.willPublish, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.willPublish = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.willPublish, value); } } public event EventHandler Published { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.published = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.published, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.published = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.published, value); } } public event EventHandler PublishFailure { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.publishFailure = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.publishFailure, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.publishFailure = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.publishFailure, value); } } public event EventHandler WillResolve { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.willResolve = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.willResolve, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.willResolve = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.willResolve, value); } } public event EventHandler AddressResolved { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.addressResolved = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.addressResolved, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.addressResolved = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.addressResolved, value); } } public event EventHandler ResolveFailure { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.resolveFailure = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.resolveFailure, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.resolveFailure = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.resolveFailure, value); } } public event EventHandler Stopped { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.stopped = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.stopped, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.stopped = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.stopped, value); } } public event EventHandler UpdatedTxtRecordData { add { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.updatedTxtRecordData = (EventHandler)System.Delegate.Combine(nSNetServiceDelegate.updatedTxtRecordData, value); } remove { _NSNetServiceDelegate nSNetServiceDelegate = EnsureNSNetServiceDelegate(); nSNetServiceDelegate.updatedTxtRecordData = (EventHandler)System.Delegate.Remove(nSNetServiceDelegate.updatedTxtRecordData, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNetService() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNetService(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetService(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetService(IntPtr handle) : base(handle) { } [Export("initWithDomain:type:name:port:")] public NSNetService(string domain, string type, string name, int port) : base(NSObjectFlag.Empty) { if (domain == null) { throw new ArgumentNullException("domain"); } if (type == null) { throw new ArgumentNullException("type"); } if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(domain); IntPtr arg2 = NSString.CreateNative(type); IntPtr arg3 = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_int(base.Handle, selInitWithDomainTypeNamePort_Handle, arg, arg2, arg3, port); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_int(base.SuperHandle, selInitWithDomainTypeNamePort_Handle, arg, arg2, arg3, port); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("initWithDomain:type:name:")] public NSNetService(string domain, string type, string name) : base(NSObjectFlag.Empty) { if (domain == null) { throw new ArgumentNullException("domain"); } if (type == null) { throw new ArgumentNullException("type"); } if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(domain); IntPtr arg2 = NSString.CreateNative(type); IntPtr arg3 = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithDomainTypeName_Handle, arg, arg2, arg3); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithDomainTypeName_Handle, arg, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("scheduleInRunLoop:forMode:")] public virtual void Schedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeFromRunLoop:forMode:")] public virtual void Unschedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Export("publish")] public virtual void Publish() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPublishHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPublishHandle); } } [Export("publishWithOptions:")] public virtual void Publish(NSNetServiceOptions options) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selPublishWithOptions_Handle, (ulong)options); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selPublishWithOptions_Handle, (ulong)options); } } [Export("resolve")] [Obsolete("Deprecated in iOS 2.0 / OSX 10.4, use Resolve(double)", false)] public virtual void Resolve() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResolveHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResolveHandle); } } [Export("resolveWithTimeout:")] public virtual void Resolve(double timeOut) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selResolveWithTimeout_Handle, timeOut); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selResolveWithTimeout_Handle, timeOut); } } [Export("stop")] public virtual void Stop() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopHandle); } } [Export("dictionaryFromTXTRecordData:")] public static NSDictionary DictionaryFromTxtRecord(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDictionaryFromTXTRecordData_Handle, data.Handle)); } [Export("dataFromTXTRecordDictionary:")] public static NSData DataFromTxtRecord(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataFromTXTRecordDictionary_Handle, dictionary.Handle)); } [Export("getInputStream:outputStream:")] internal virtual bool GetStreams(IntPtr ptrToInputStorage, IntPtr ptrToOutputStorage) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetInputStreamOutputStream_Handle, ptrToInputStorage, ptrToOutputStorage); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetInputStreamOutputStream_Handle, ptrToInputStorage, ptrToOutputStorage); } [Export("TXTRecordData")] public virtual NSData GetTxtRecordData() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTXTRecordDataHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTXTRecordDataHandle)); } [Export("setTXTRecordData:")] public virtual bool SetTxtRecordData(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSetTXTRecordData_Handle, data.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTXTRecordData_Handle, data.Handle); } [Export("startMonitoring")] public virtual void StartMonitoring() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartMonitoringHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartMonitoringHandle); } } [Export("stopMonitoring")] public virtual void StopMonitoring() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopMonitoringHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopMonitoringHandle); } } private _NSNetServiceDelegate EnsureNSNetServiceDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSNetServiceDelegate)) { nSObject = (WeakDelegate = new _NSNetServiceDelegate()); } return (_NSNetServiceDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Addresses_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceBrowser.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNetServiceBrowser", true)] public class NSNetServiceBrowser : NSObject { [Register] private sealed class _NSNetServiceBrowserDelegate : NSNetServiceBrowserDelegate { internal EventHandler searchStarted; internal EventHandler searchStopped; internal EventHandler notSearched; internal EventHandler foundDomain; internal EventHandler foundService; internal EventHandler domainRemoved; internal EventHandler serviceRemoved; [Preserve(Conditional = true)] public override void SearchStarted(NSNetServiceBrowser sender) { searchStarted?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void SearchStopped(NSNetServiceBrowser sender) { searchStopped?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void NotSearched(NSNetServiceBrowser sender, NSDictionary errors) { EventHandler eventHandler = notSearched; if (eventHandler != null) { NSNetServiceErrorEventArgs e = new NSNetServiceErrorEventArgs(errors); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void FoundDomain(NSNetServiceBrowser sender, string domain, bool moreComing) { EventHandler eventHandler = foundDomain; if (eventHandler != null) { NSNetDomainEventArgs e = new NSNetDomainEventArgs(domain, moreComing); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void FoundService(NSNetServiceBrowser sender, NSNetService service, bool moreComing) { EventHandler eventHandler = foundService; if (eventHandler != null) { NSNetServiceEventArgs e = new NSNetServiceEventArgs(service, moreComing); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void DomainRemoved(NSNetServiceBrowser sender, string domain, bool moreComing) { EventHandler eventHandler = domainRemoved; if (eventHandler != null) { NSNetDomainEventArgs e = new NSNetDomainEventArgs(domain, moreComing); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ServiceRemoved(NSNetServiceBrowser sender, NSNetService service, bool moreComing) { EventHandler eventHandler = serviceRemoved; if (eventHandler != null) { NSNetServiceEventArgs e = new NSNetServiceEventArgs(service, moreComing); eventHandler(sender, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selScheduleInRunLoopForMode_Handle = Selector.GetHandle("scheduleInRunLoop:forMode:"); private static readonly IntPtr selRemoveFromRunLoopForMode_Handle = Selector.GetHandle("removeFromRunLoop:forMode:"); private static readonly IntPtr selSearchForBrowsableDomainsHandle = Selector.GetHandle("searchForBrowsableDomains"); private static readonly IntPtr selSearchForRegistrationDomainsHandle = Selector.GetHandle("searchForRegistrationDomains"); private static readonly IntPtr selSearchForServicesOfTypeInDomain_Handle = Selector.GetHandle("searchForServicesOfType:inDomain:"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNetServiceBrowser"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSNetServiceBrowserDelegate Delegate { get { return WeakDelegate as NSNetServiceBrowserDelegate; } set { WeakDelegate = value; } } public event EventHandler SearchStarted { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.searchStarted = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.searchStarted, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.searchStarted = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.searchStarted, value); } } public event EventHandler SearchStopped { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.searchStopped = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.searchStopped, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.searchStopped = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.searchStopped, value); } } public event EventHandler NotSearched { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.notSearched = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.notSearched, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.notSearched = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.notSearched, value); } } public event EventHandler FoundDomain { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.foundDomain = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.foundDomain, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.foundDomain = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.foundDomain, value); } } public event EventHandler FoundService { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.foundService = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.foundService, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.foundService = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.foundService, value); } } public event EventHandler DomainRemoved { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.domainRemoved = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.domainRemoved, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.domainRemoved = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.domainRemoved, value); } } public event EventHandler ServiceRemoved { add { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.serviceRemoved = (EventHandler)System.Delegate.Combine(nSNetServiceBrowserDelegate.serviceRemoved, value); } remove { _NSNetServiceBrowserDelegate nSNetServiceBrowserDelegate = EnsureNSNetServiceBrowserDelegate(); nSNetServiceBrowserDelegate.serviceRemoved = (EventHandler)System.Delegate.Remove(nSNetServiceBrowserDelegate.serviceRemoved, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNetServiceBrowser() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNetServiceBrowser(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceBrowser(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceBrowser(IntPtr handle) : base(handle) { } [Export("scheduleInRunLoop:forMode:")] public virtual void Schedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeFromRunLoop:forMode:")] public virtual void Unschedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Export("searchForBrowsableDomains")] public virtual void SearchForBrowsableDomains() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSearchForBrowsableDomainsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSearchForBrowsableDomainsHandle); } } [Export("searchForRegistrationDomains")] public virtual void SearchForRegistrationDomains() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSearchForRegistrationDomainsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSearchForRegistrationDomainsHandle); } } [Export("searchForServicesOfType:inDomain:")] public virtual void SearchForServices(string type, string domain) { if (type == null) { throw new ArgumentNullException("type"); } if (domain == null) { throw new ArgumentNullException("domain"); } IntPtr arg = NSString.CreateNative(type); IntPtr arg2 = NSString.CreateNative(domain); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSearchForServicesOfTypeInDomain_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSearchForServicesOfTypeInDomain_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("stop")] public virtual void Stop() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopHandle); } } private _NSNetServiceBrowserDelegate EnsureNSNetServiceBrowserDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSNetServiceBrowserDelegate)) { nSObject = (WeakDelegate = new _NSNetServiceBrowserDelegate()); } return (_NSNetServiceBrowserDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceBrowserDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSNetServiceBrowserDelegate", true)] [Model] public class NSNetServiceBrowserDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNetServiceBrowserDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNetServiceBrowserDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceBrowserDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceBrowserDelegate(IntPtr handle) : base(handle) { } [Export("netServiceBrowserWillSearch:")] public virtual void SearchStarted(NSNetServiceBrowser sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowserDidStopSearch:")] public virtual void SearchStopped(NSNetServiceBrowser sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowser:didNotSearch:")] public virtual void NotSearched(NSNetServiceBrowser sender, NSDictionary errors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowser:didFindDomain:moreComing:")] public virtual void FoundDomain(NSNetServiceBrowser sender, string domain, bool moreComing) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowser:didFindService:moreComing:")] public virtual void FoundService(NSNetServiceBrowser sender, NSNetService service, bool moreComing) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowser:didRemoveDomain:moreComing:")] public virtual void DomainRemoved(NSNetServiceBrowser sender, string domain, bool moreComing) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceBrowser:didRemoveService:moreComing:")] public virtual void ServiceRemoved(NSNetServiceBrowser sender, NSNetService service, bool moreComing) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceDataEventArgs.cs ================================================ using System; namespace Foundation; public class NSNetServiceDataEventArgs : EventArgs { public NSData Data { get; set; } public NSNetServiceDataEventArgs(NSData data) { Data = data; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSNetServiceDelegate", true)] [Model] public class NSNetServiceDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNetServiceDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNetServiceDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNetServiceDelegate(IntPtr handle) : base(handle) { } [Export("netServiceWillPublish:")] public virtual void WillPublish(NSNetService sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceDidPublish:")] public virtual void Published(NSNetService sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netService:didNotPublish:")] public virtual void PublishFailure(NSNetService sender, NSDictionary errors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceWillResolve:")] public virtual void WillResolve(NSNetService sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceDidResolveAddress:")] public virtual void AddressResolved(NSNetService sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netService:didNotResolve:")] public virtual void ResolveFailure(NSNetService sender, NSDictionary errors) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netServiceDidStop:")] public virtual void Stopped(NSNetService sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("netService:didUpdateTXTRecordData:")] public virtual void UpdatedTxtRecordData(NSNetService sender, NSData data) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceErrorEventArgs.cs ================================================ using System; namespace Foundation; public class NSNetServiceErrorEventArgs : EventArgs { public NSDictionary Errors { get; set; } public NSNetServiceErrorEventArgs(NSDictionary errors) { Errors = errors; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceEventArgs.cs ================================================ using System; namespace Foundation; public class NSNetServiceEventArgs : EventArgs { public NSNetService Service { get; set; } public bool MoreComing { get; set; } public NSNetServiceEventArgs(NSNetService service, bool moreComing) { Service = service; MoreComing = moreComing; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServiceOptions.cs ================================================ namespace Foundation; public enum NSNetServiceOptions : ulong { NoAutoRename = 1uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNetServicesStatus.cs ================================================ namespace Foundation; public enum NSNetServicesStatus : long { UnknownError = -72000L, CollisionError = -72001L, NotFoundError = -72002L, ActivityInProgress = -72003L, BadArgumentError = -72004L, CancelledError = -72005L, InvalidError = -72006L, TimeoutError = -72007L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotification.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNotification", true)] public class NSNotification : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selObjectHandle = Selector.GetHandle("object"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selNotificationWithNameObject_Handle = Selector.GetHandle("notificationWithName:object:"); private static readonly IntPtr selNotificationWithNameObjectUserInfo_Handle = Selector.GetHandle("notificationWithName:object:userInfo:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNotification"); private object __mt_Object_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual NSObject Object { [Export("object")] get { return (NSObject)(__mt_Object_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectHandle)))); } } public virtual NSDictionary UserInfo { [Export("userInfo")] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNotification(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotification(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotification(IntPtr handle) : base(handle) { } [Export("notificationWithName:object:")] public static NSNotification FromName(string name, NSObject obj) { if (name == null) { throw new ArgumentNullException("name"); } if (obj == null) { throw new ArgumentNullException("obj"); } IntPtr arg = NSString.CreateNative(name); NSNotification result = (NSNotification)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selNotificationWithNameObject_Handle, arg, obj.Handle)); NSString.ReleaseNative(arg); return result; } [Export("notificationWithName:object:userInfo:")] public static NSNotification FromName(string name, NSObject obj, NSDictionary userInfo) { if (name == null) { throw new ArgumentNullException("name"); } if (obj == null) { throw new ArgumentNullException("obj"); } if (userInfo == null) { throw new ArgumentNullException("userInfo"); } IntPtr arg = NSString.CreateNative(name); NSNotification result = (NSNotification)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selNotificationWithNameObjectUserInfo_Handle, arg, obj.Handle, userInfo.Handle)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Object_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationCenter.cs ================================================ using System; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNotificationCenter", true)] public class NSNotificationCenter : NSObject { private class ObservedData { public NSObject Observer; public string Name; public NSObject Object; } private const string postSelector = "post:"; private List __mt_ObserverList_var = new List(); private static readonly IntPtr selDefaultCenterHandle = Selector.GetHandle("defaultCenter"); private static readonly IntPtr selAddObserverSelectorNameObject_Handle = Selector.GetHandle("addObserver:selector:name:object:"); private static readonly IntPtr selPostNotification_Handle = Selector.GetHandle("postNotification:"); private static readonly IntPtr selPostNotificationNameObject_Handle = Selector.GetHandle("postNotificationName:object:"); private static readonly IntPtr selPostNotificationNameObjectUserInfo_Handle = Selector.GetHandle("postNotificationName:object:userInfo:"); private static readonly IntPtr selRemoveObserver_Handle = Selector.GetHandle("removeObserver:"); private static readonly IntPtr selRemoveObserverNameObject_Handle = Selector.GetHandle("removeObserver:name:object:"); private static readonly IntPtr selAddObserverForNameObjectQueueUsingBlock_Handle = Selector.GetHandle("addObserverForName:object:queue:usingBlock:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNotificationCenter"); private static object __mt_DefaultCenter_var_static; public override IntPtr ClassHandle => class_ptr; public static NSNotificationCenter DefaultCenter { [Export("defaultCenter")] get { return (NSNotificationCenter)(__mt_DefaultCenter_var_static = (NSNotificationCenter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultCenterHandle))); } } [Advice("Use AddObserver(NSString, Action, NSObject)")] public NSObject AddObserver(string aName, Action notify, NSObject fromObject) { return AddObserver(new NSString(aName), notify, fromObject); } public NSObject AddObserver(NSString aName, Action notify, NSObject fromObject) { if (notify == null) { throw new ArgumentNullException("notify"); } InternalNSNotificationHandler internalNSNotificationHandler = new InternalNSNotificationHandler(this, notify); AddObserver(internalNSNotificationHandler, new Selector("post:"), aName, fromObject); return internalNSNotificationHandler; } public NSObject AddObserver(NSString aName, Action notify) { return AddObserver(aName, notify, null); } [Advice("Use AddObserver(NSString, Action) instead")] public NSObject AddObserver(string aName, Action notify) { return AddObserver(aName, notify, null); } [Advice("Use AddObserver(NSObject, Selector, NSString, NSObject) instead")] public void AddObserver(NSObject observer, Selector aSelector, string aname, NSObject anObject) { AddObserver(observer, aSelector, new NSString(aname), anObject); } public void RemoveObservers(IEnumerable keys) { if (keys == null) { return; } foreach (NSObject key in keys) { RemoveObserver(key); } } private void AddObserverToList(NSObject observer, string aName, NSObject anObject) { __mt_ObserverList_var.Add(new ObservedData { Observer = observer, Name = aName, Object = anObject }); } private void RemoveObserversFromList(NSObject observer, string aName, NSObject anObject) { for (int num = __mt_ObserverList_var.Count - 1; num >= 0; num--) { ObservedData observedData = __mt_ObserverList_var[num]; if (observer == observedData.Observer && (aName == null || !(aName != observedData.Name)) && (anObject == null || anObject == observedData.Object)) { __mt_ObserverList_var.RemoveAt(num); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNotificationCenter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNotificationCenter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotificationCenter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotificationCenter(IntPtr handle) : base(handle) { } [Export("addObserver:selector:name:object:")] public virtual void AddObserver(NSObject observer, Selector aSelector, NSString aName, NSObject anObject) { if (observer == null) { throw new ArgumentNullException("observer"); } if (aSelector == null) { throw new ArgumentNullException("aSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selAddObserverSelectorNameObject_Handle, observer.Handle, aSelector.Handle, (aName == null) ? IntPtr.Zero : aName.Handle, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddObserverSelectorNameObject_Handle, observer.Handle, aSelector.Handle, (aName == null) ? IntPtr.Zero : aName.Handle, anObject?.Handle ?? IntPtr.Zero); } AddObserverToList(observer, aName, anObject); } [Export("postNotification:")] public virtual void PostNotification(NSNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPostNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPostNotification_Handle, notification.Handle); } } [Export("postNotificationName:object:")] public virtual void PostNotificationName(string aName, NSObject anObject) { if (aName == null) { throw new ArgumentNullException("aName"); } IntPtr arg = NSString.CreateNative(aName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selPostNotificationNameObject_Handle, arg, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPostNotificationNameObject_Handle, arg, anObject?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } [Export("postNotificationName:object:userInfo:")] public virtual void PostNotificationName(string aName, NSObject anObject, NSDictionary aUserInfo) { if (aName == null) { throw new ArgumentNullException("aName"); } IntPtr arg = NSString.CreateNative(aName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selPostNotificationNameObjectUserInfo_Handle, arg, anObject?.Handle ?? IntPtr.Zero, aUserInfo?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPostNotificationNameObjectUserInfo_Handle, arg, anObject?.Handle ?? IntPtr.Zero, aUserInfo?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } [Export("removeObserver:")] public virtual void RemoveObserver(NSObject observer) { if (observer == null) { throw new ArgumentNullException("observer"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObserver_Handle, observer.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObserver_Handle, observer.Handle); } RemoveObserversFromList(observer, null, null); } [Export("removeObserver:name:object:")] public virtual void RemoveObserver(NSObject observer, string aName, NSObject anObject) { if (observer == null) { throw new ArgumentNullException("observer"); } IntPtr arg = NSString.CreateNative(aName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRemoveObserverNameObject_Handle, observer.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRemoveObserverNameObject_Handle, observer.Handle, arg, anObject?.Handle ?? IntPtr.Zero); } RemoveObserversFromList(observer, aName, anObject); NSString.ReleaseNative(arg); } [Export("addObserverForName:object:queue:usingBlock:")] public unsafe virtual NSObject AddObserver(string name, NSObject obj, NSOperationQueue queue, NSNotificationHandler handler) { if (name == null) { throw new ArgumentNullException("name"); } if (obj == null) { throw new ArgumentNullException("obj"); } if (queue == null) { throw new ArgumentNullException("queue"); } if (handler == null) { throw new ArgumentNullException("handler"); } IntPtr arg = NSString.CreateNative(name); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSNotificationHandler.Handler, handler); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selAddObserverForNameObjectQueueUsingBlock_Handle, arg, obj.Handle, queue.Handle, (IntPtr)ptr)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selAddObserverForNameObjectQueueUsingBlock_Handle, arg, obj.Handle, queue.Handle, (IntPtr)ptr))); NSString.ReleaseNative(arg); ptr->CleanupBlock(); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationCoalescing.cs ================================================ using System; namespace Foundation; [Flags] public enum NSNotificationCoalescing : ulong { NoCoalescing = 0uL, CoalescingOnName = 1uL, CoalescingOnSender = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationEventArgs.cs ================================================ using System; namespace Foundation; public class NSNotificationEventArgs : EventArgs { public NSNotification Notification { get; private set; } public NSNotificationEventArgs(NSNotification notification) { Notification = notification; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationFlags.cs ================================================ using System; namespace Foundation; [Flags] public enum NSNotificationFlags : ulong { DeliverImmediately = 1uL, PostToAllSessions = 2uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationHandler.cs ================================================ namespace Foundation; public delegate void NSNotificationHandler(NSNotification notification); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationQueue.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNotificationQueue", true)] public class NSNotificationQueue : NSObject { private static readonly IntPtr selDefaultQueueHandle = Selector.GetHandle("defaultQueue"); private static readonly IntPtr selInitWithNotificationCenter_Handle = Selector.GetHandle("initWithNotificationCenter:"); private static readonly IntPtr selEnqueueNotificationPostingStyle_Handle = Selector.GetHandle("enqueueNotification:postingStyle:"); private static readonly IntPtr selEnqueueNotificationPostingStyleCoalesceMaskForModes_Handle = Selector.GetHandle("enqueueNotification:postingStyle:coalesceMask:forModes:"); private static readonly IntPtr selDequeueNotificationsMatchingCoalesceMask_Handle = Selector.GetHandle("dequeueNotificationsMatching:coalesceMask:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNotificationQueue"); [ThreadStatic] private static object __mt_DefaultQueue_var_static; public override IntPtr ClassHandle => class_ptr; public static NSObject DefaultQueue { [Export("defaultQueue")] get { return (NSObject)(__mt_DefaultQueue_var_static = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultQueueHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNotificationQueue() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNotificationQueue(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotificationQueue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNotificationQueue(IntPtr handle) : base(handle) { } [Export("initWithNotificationCenter:")] public NSNotificationQueue(NSNotificationCenter notificationCenter) : base(NSObjectFlag.Empty) { if (notificationCenter == null) { throw new ArgumentNullException("notificationCenter"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithNotificationCenter_Handle, notificationCenter.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithNotificationCenter_Handle, notificationCenter.Handle); } } [Export("enqueueNotification:postingStyle:")] public virtual void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selEnqueueNotificationPostingStyle_Handle, notification.Handle, (ulong)postingStyle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selEnqueueNotificationPostingStyle_Handle, notification.Handle, (ulong)postingStyle); } } [Export("enqueueNotification:postingStyle:coalesceMask:forModes:")] public virtual void EnqueueNotification(NSNotification notification, NSPostingStyle postingStyle, NSNotificationCoalescing coalesceMask, string[] modes) { if (notification == null) { throw new ArgumentNullException("notification"); } if (modes == null) { throw new ArgumentNullException("modes"); } NSArray nSArray = NSArray.FromStrings(modes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr(base.Handle, selEnqueueNotificationPostingStyleCoalesceMaskForModes_Handle, notification.Handle, (ulong)postingStyle, (ulong)coalesceMask, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_UInt64_IntPtr(base.SuperHandle, selEnqueueNotificationPostingStyleCoalesceMaskForModes_Handle, notification.Handle, (ulong)postingStyle, (ulong)coalesceMask, nSArray.Handle); } nSArray.Dispose(); } [Export("dequeueNotificationsMatching:coalesceMask:")] public virtual void DequeueNotificationsMatchingcoalesceMask(NSNotification notification, NSNotificationCoalescing coalesceMask) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64(base.Handle, selDequeueNotificationsMatchingCoalesceMask_Handle, notification.Handle, (ulong)coalesceMask); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64(base.SuperHandle, selDequeueNotificationsMatchingCoalesceMask_Handle, notification.Handle, (ulong)coalesceMask); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNotificationSuspensionBehavior.cs ================================================ namespace Foundation; public enum NSNotificationSuspensionBehavior : ulong { Drop = 1uL, Coalesce, Hold, DeliverImmediately } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNull.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNull", true)] public class NSNull : NSObject { private static readonly IntPtr selNullHandle = Selector.GetHandle("null"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNull"); private static object __mt_Null_var_static; public override IntPtr ClassHandle => class_ptr; public static NSNull Null { [Export("null")] get { return (NSNull)(__mt_Null_var_static = (NSNull)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selNullHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNull() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNull(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNull(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNull(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumber.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNumber", true)] public class NSNumber : NSValue { private static readonly IntPtr selCharValueHandle = Selector.GetHandle("charValue"); private static readonly IntPtr selUnsignedCharValueHandle = Selector.GetHandle("unsignedCharValue"); private static readonly IntPtr selShortValueHandle = Selector.GetHandle("shortValue"); private static readonly IntPtr selUnsignedShortValueHandle = Selector.GetHandle("unsignedShortValue"); private static readonly IntPtr selIntValueHandle = Selector.GetHandle("intValue"); private static readonly IntPtr selUnsignedIntValueHandle = Selector.GetHandle("unsignedIntValue"); private static readonly IntPtr selLongLongValueHandle = Selector.GetHandle("longLongValue"); private static readonly IntPtr selUnsignedLongLongValueHandle = Selector.GetHandle("unsignedLongLongValue"); private static readonly IntPtr selFloatValueHandle = Selector.GetHandle("floatValue"); private static readonly IntPtr selDoubleValueHandle = Selector.GetHandle("doubleValue"); private static readonly IntPtr selDecimalValueHandle = Selector.GetHandle("decimalValue"); private static readonly IntPtr selBoolValueHandle = Selector.GetHandle("boolValue"); private static readonly IntPtr selIntegerValueHandle = Selector.GetHandle("integerValue"); private static readonly IntPtr selUnsignedIntegerValueHandle = Selector.GetHandle("unsignedIntegerValue"); private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr selIsEqualToNumber_Handle = Selector.GetHandle("isEqualToNumber:"); private static readonly IntPtr selDescriptionWithLocale_Handle = Selector.GetHandle("descriptionWithLocale:"); private static readonly IntPtr selInitWithChar_Handle = Selector.GetHandle("initWithChar:"); private static readonly IntPtr selInitWithUnsignedChar_Handle = Selector.GetHandle("initWithUnsignedChar:"); private static readonly IntPtr selInitWithShort_Handle = Selector.GetHandle("initWithShort:"); private static readonly IntPtr selInitWithUnsignedShort_Handle = Selector.GetHandle("initWithUnsignedShort:"); private static readonly IntPtr selInitWithInt_Handle = Selector.GetHandle("initWithInt:"); private static readonly IntPtr selInitWithUnsignedInt_Handle = Selector.GetHandle("initWithUnsignedInt:"); private static readonly IntPtr selInitWithLongLong_Handle = Selector.GetHandle("initWithLongLong:"); private static readonly IntPtr selInitWithUnsignedLongLong_Handle = Selector.GetHandle("initWithUnsignedLongLong:"); private static readonly IntPtr selInitWithFloat_Handle = Selector.GetHandle("initWithFloat:"); private static readonly IntPtr selInitWithDouble_Handle = Selector.GetHandle("initWithDouble:"); private static readonly IntPtr selInitWithBool_Handle = Selector.GetHandle("initWithBool:"); private static readonly IntPtr selNumberWithChar_Handle = Selector.GetHandle("numberWithChar:"); private static readonly IntPtr selNumberWithUnsignedChar_Handle = Selector.GetHandle("numberWithUnsignedChar:"); private static readonly IntPtr selNumberWithShort_Handle = Selector.GetHandle("numberWithShort:"); private static readonly IntPtr selNumberWithUnsignedShort_Handle = Selector.GetHandle("numberWithUnsignedShort:"); private static readonly IntPtr selNumberWithInt_Handle = Selector.GetHandle("numberWithInt:"); private static readonly IntPtr selNumberWithUnsignedInt_Handle = Selector.GetHandle("numberWithUnsignedInt:"); private static readonly IntPtr selNumberWithLongLong_Handle = Selector.GetHandle("numberWithLongLong:"); private static readonly IntPtr selNumberWithUnsignedLongLong_Handle = Selector.GetHandle("numberWithUnsignedLongLong:"); private static readonly IntPtr selNumberWithFloat_Handle = Selector.GetHandle("numberWithFloat:"); private static readonly IntPtr selNumberWithDouble_Handle = Selector.GetHandle("numberWithDouble:"); private static readonly IntPtr selNumberWithBool_Handle = Selector.GetHandle("numberWithBool:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNumber"); public override IntPtr ClassHandle => class_ptr; public virtual sbyte SByteValue { [Export("charValue")] get { if (IsDirectBinding) { return Messaging.SByte_objc_msgSend(base.Handle, selCharValueHandle); } return Messaging.SByte_objc_msgSendSuper(base.SuperHandle, selCharValueHandle); } } public virtual byte ByteValue { [Export("unsignedCharValue")] get { if (IsDirectBinding) { return Messaging.byte_objc_msgSend(base.Handle, selUnsignedCharValueHandle); } return Messaging.byte_objc_msgSendSuper(base.SuperHandle, selUnsignedCharValueHandle); } } public virtual short Int16Value { [Export("shortValue")] get { if (IsDirectBinding) { return Messaging.short_objc_msgSend(base.Handle, selShortValueHandle); } return Messaging.short_objc_msgSendSuper(base.SuperHandle, selShortValueHandle); } } public virtual ushort UInt16Value { [Export("unsignedShortValue")] get { if (IsDirectBinding) { return Messaging.UInt16_objc_msgSend(base.Handle, selUnsignedShortValueHandle); } return Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selUnsignedShortValueHandle); } } public virtual int Int32Value { [Export("intValue")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIntValueHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIntValueHandle); } } public virtual uint UInt32Value { [Export("unsignedIntValue")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selUnsignedIntValueHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selUnsignedIntValueHandle); } } public virtual long Int64Value { [Export("longLongValue")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selLongLongValueHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLongLongValueHandle); } } public virtual ulong UInt64Value { [Export("unsignedLongLongValue")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selUnsignedLongLongValueHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selUnsignedLongLongValueHandle); } } public virtual float FloatValue { [Export("floatValue")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selFloatValueHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selFloatValueHandle); } } public virtual double DoubleValue { [Export("doubleValue")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selDoubleValueHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selDoubleValueHandle); } } public virtual NSDecimal NSDecimalValue { [Export("decimalValue")] get { NSDecimal retval; if (IsDirectBinding) { Messaging.NSDecimal_objc_msgSend_stret(out retval, base.Handle, selDecimalValueHandle); } else { Messaging.NSDecimal_objc_msgSendSuper_stret(out retval, base.SuperHandle, selDecimalValueHandle); } return retval; } } public virtual bool BoolValue { [Export("boolValue")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBoolValueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBoolValueHandle); } } public virtual long IntValue { [Export("integerValue")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selIntegerValueHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selIntegerValueHandle); } } public virtual ulong UnsignedIntegerValue { [Export("unsignedIntegerValue")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selUnsignedIntegerValueHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selUnsignedIntegerValueHandle); } } public virtual string StringValue { [Export("stringValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } } public static implicit operator NSNumber(float value) { return FromFloat(value); } public static implicit operator NSNumber(double value) { return FromDouble(value); } public static implicit operator NSNumber(bool value) { return FromBoolean(value); } public static implicit operator NSNumber(sbyte value) { return FromSByte(value); } public static implicit operator NSNumber(byte value) { return FromByte(value); } public static implicit operator NSNumber(short value) { return FromInt16(value); } public static implicit operator NSNumber(ushort value) { return FromUInt16(value); } public static implicit operator NSNumber(int value) { return FromInt32(value); } public static implicit operator NSNumber(uint value) { return FromUInt32(value); } public static implicit operator NSNumber(long value) { return FromInt64(value); } public static implicit operator NSNumber(ulong value) { return FromUInt64(value); } public static explicit operator byte(NSNumber source) { return source.ByteValue; } public static explicit operator sbyte(NSNumber source) { return source.SByteValue; } public static explicit operator short(NSNumber source) { return source.Int16Value; } public static explicit operator ushort(NSNumber source) { return source.UInt16Value; } public static explicit operator int(NSNumber source) { return source.Int32Value; } public static explicit operator uint(NSNumber source) { return source.UInt32Value; } public static explicit operator long(NSNumber source) { return source.Int64Value; } public static explicit operator ulong(NSNumber source) { return source.UInt64Value; } public static explicit operator float(NSNumber source) { return source.FloatValue; } public static explicit operator double(NSNumber source) { return source.DoubleValue; } public static explicit operator bool(NSNumber source) { return source.BoolValue; } public override string ToString() { return StringValue; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNumber(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNumber(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNumber(IntPtr handle) : base(handle) { } [Export("compare:")] public virtual int Compare(NSNumber otherNumber) { if (otherNumber == null) { throw new ArgumentNullException("otherNumber"); } if (IsDirectBinding) { return Messaging.int_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, otherNumber.Handle); } return Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, otherNumber.Handle); } [Export("isEqualToNumber:")] public virtual bool IsEqualToNumber(NSNumber number) { if (number == null) { throw new ArgumentNullException("number"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToNumber_Handle, number.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToNumber_Handle, number.Handle); } [Export("descriptionWithLocale:")] public virtual string DescriptionWithLocale(NSLocale locale) { if (locale == null) { throw new ArgumentNullException("locale"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDescriptionWithLocale_Handle, locale.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDescriptionWithLocale_Handle, locale.Handle)); } [Export("initWithChar:")] public NSNumber(sbyte value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_SByte(base.Handle, selInitWithChar_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_SByte(base.SuperHandle, selInitWithChar_Handle, value); } } [Export("initWithUnsignedChar:")] public NSNumber(byte value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_byte(base.Handle, selInitWithUnsignedChar_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_byte(base.SuperHandle, selInitWithUnsignedChar_Handle, value); } } [Export("initWithShort:")] public NSNumber(short value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_short(base.Handle, selInitWithShort_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_short(base.SuperHandle, selInitWithShort_Handle, value); } } [Export("initWithUnsignedShort:")] public NSNumber(ushort value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt16(base.Handle, selInitWithUnsignedShort_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt16(base.SuperHandle, selInitWithUnsignedShort_Handle, value); } } [Export("initWithInt:")] public NSNumber(int value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selInitWithInt_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selInitWithInt_Handle, value); } } [Export("initWithUnsignedInt:")] public NSNumber(uint value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selInitWithUnsignedInt_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selInitWithUnsignedInt_Handle, value); } } [Export("initWithLongLong:")] public NSNumber(long value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Int64(base.Handle, selInitWithLongLong_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Int64(base.SuperHandle, selInitWithLongLong_Handle, value); } } [Export("initWithUnsignedLongLong:")] public NSNumber(ulong value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64(base.Handle, selInitWithUnsignedLongLong_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64(base.SuperHandle, selInitWithUnsignedLongLong_Handle, value); } } [Export("initWithFloat:")] public NSNumber(float value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_float(base.Handle, selInitWithFloat_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_float(base.SuperHandle, selInitWithFloat_Handle, value); } } [Export("initWithDouble:")] public NSNumber(double value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_Double(base.Handle, selInitWithDouble_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_Double(base.SuperHandle, selInitWithDouble_Handle, value); } } [Export("initWithBool:")] public NSNumber(bool value) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_bool(base.Handle, selInitWithBool_Handle, value); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_bool(base.SuperHandle, selInitWithBool_Handle, value); } } [Export("numberWithChar:")] public static NSNumber FromSByte(sbyte value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_SByte(class_ptr, selNumberWithChar_Handle, value)); } [Export("numberWithUnsignedChar:")] public static NSNumber FromByte(byte value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_byte(class_ptr, selNumberWithUnsignedChar_Handle, value)); } [Export("numberWithShort:")] public static NSNumber FromInt16(short value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_short(class_ptr, selNumberWithShort_Handle, value)); } [Export("numberWithUnsignedShort:")] public static NSNumber FromUInt16(ushort value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt16(class_ptr, selNumberWithUnsignedShort_Handle, value)); } [Export("numberWithInt:")] public static NSNumber FromInt32(int value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(class_ptr, selNumberWithInt_Handle, value)); } [Export("numberWithUnsignedInt:")] public static NSNumber FromUInt32(uint value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(class_ptr, selNumberWithUnsignedInt_Handle, value)); } [Export("numberWithLongLong:")] public static NSNumber FromInt64(long value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Int64(class_ptr, selNumberWithLongLong_Handle, value)); } [Export("numberWithUnsignedLongLong:")] public static NSNumber FromUInt64(ulong value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64(class_ptr, selNumberWithUnsignedLongLong_Handle, value)); } [Export("numberWithFloat:")] public static NSNumber FromFloat(float value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_float(class_ptr, selNumberWithFloat_Handle, value)); } [Export("numberWithDouble:")] public static NSNumber FromDouble(double value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double(class_ptr, selNumberWithDouble_Handle, value)); } [Export("numberWithBool:")] public static NSNumber FromBoolean(bool value) { return (NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(class_ptr, selNumberWithBool_Handle, value)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumberFormatter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSNumberFormatter", true)] public class NSNumberFormatter : NSFormatter { private static readonly IntPtr selNumberStyleHandle = Selector.GetHandle("numberStyle"); private static readonly IntPtr selSetNumberStyle_Handle = Selector.GetHandle("setNumberStyle:"); private static readonly IntPtr selLocaleHandle = Selector.GetHandle("locale"); private static readonly IntPtr selSetLocale_Handle = Selector.GetHandle("setLocale:"); private static readonly IntPtr selGeneratesDecimalNumbersHandle = Selector.GetHandle("generatesDecimalNumbers"); private static readonly IntPtr selSetGeneratesDecimalNumbers_Handle = Selector.GetHandle("setGeneratesDecimalNumbers:"); private static readonly IntPtr selFormatterBehaviorHandle = Selector.GetHandle("formatterBehavior"); private static readonly IntPtr selSetFormatterBehavior_Handle = Selector.GetHandle("setFormatterBehavior:"); private static readonly IntPtr selDefaultFormatterBehaviorHandle = Selector.GetHandle("defaultFormatterBehavior"); private static readonly IntPtr selSetDefaultFormatterBehavior_Handle = Selector.GetHandle("setDefaultFormatterBehavior:"); private static readonly IntPtr selNegativeFormatHandle = Selector.GetHandle("negativeFormat"); private static readonly IntPtr selSetNegativeFormat_Handle = Selector.GetHandle("setNegativeFormat:"); private static readonly IntPtr selTextAttributesForNegativeValuesHandle = Selector.GetHandle("textAttributesForNegativeValues"); private static readonly IntPtr selSetTextAttributesForNegativeValues_Handle = Selector.GetHandle("setTextAttributesForNegativeValues:"); private static readonly IntPtr selPositiveFormatHandle = Selector.GetHandle("positiveFormat"); private static readonly IntPtr selSetPositiveFormat_Handle = Selector.GetHandle("setPositiveFormat:"); private static readonly IntPtr selTextAttributesForPositiveValuesHandle = Selector.GetHandle("textAttributesForPositiveValues"); private static readonly IntPtr selSetTextAttributesForPositiveValues_Handle = Selector.GetHandle("setTextAttributesForPositiveValues:"); private static readonly IntPtr selAllowsFloatsHandle = Selector.GetHandle("allowsFloats"); private static readonly IntPtr selSetAllowsFloats_Handle = Selector.GetHandle("setAllowsFloats:"); private static readonly IntPtr selDecimalSeparatorHandle = Selector.GetHandle("decimalSeparator"); private static readonly IntPtr selSetDecimalSeparator_Handle = Selector.GetHandle("setDecimalSeparator:"); private static readonly IntPtr selAlwaysShowsDecimalSeparatorHandle = Selector.GetHandle("alwaysShowsDecimalSeparator"); private static readonly IntPtr selSetAlwaysShowsDecimalSeparator_Handle = Selector.GetHandle("setAlwaysShowsDecimalSeparator:"); private static readonly IntPtr selCurrencyDecimalSeparatorHandle = Selector.GetHandle("currencyDecimalSeparator"); private static readonly IntPtr selSetCurrencyDecimalSeparator_Handle = Selector.GetHandle("setCurrencyDecimalSeparator:"); private static readonly IntPtr selUsesGroupingSeparatorHandle = Selector.GetHandle("usesGroupingSeparator"); private static readonly IntPtr selSetUsesGroupingSeparator_Handle = Selector.GetHandle("setUsesGroupingSeparator:"); private static readonly IntPtr selGroupingSeparatorHandle = Selector.GetHandle("groupingSeparator"); private static readonly IntPtr selSetGroupingSeparator_Handle = Selector.GetHandle("setGroupingSeparator:"); private static readonly IntPtr selZeroSymbolHandle = Selector.GetHandle("zeroSymbol"); private static readonly IntPtr selSetZeroSymbol_Handle = Selector.GetHandle("setZeroSymbol:"); private static readonly IntPtr selTextAttributesForZeroHandle = Selector.GetHandle("textAttributesForZero"); private static readonly IntPtr selSetTextAttributesForZero_Handle = Selector.GetHandle("setTextAttributesForZero:"); private static readonly IntPtr selNilSymbolHandle = Selector.GetHandle("nilSymbol"); private static readonly IntPtr selSetNilSymbol_Handle = Selector.GetHandle("setNilSymbol:"); private static readonly IntPtr selTextAttributesForNilHandle = Selector.GetHandle("textAttributesForNil"); private static readonly IntPtr selSetTextAttributesForNil_Handle = Selector.GetHandle("setTextAttributesForNil:"); private static readonly IntPtr selNotANumberSymbolHandle = Selector.GetHandle("notANumberSymbol"); private static readonly IntPtr selSetNotANumberSymbol_Handle = Selector.GetHandle("setNotANumberSymbol:"); private static readonly IntPtr selTextAttributesForNotANumberHandle = Selector.GetHandle("textAttributesForNotANumber"); private static readonly IntPtr selSetTextAttributesForNotANumber_Handle = Selector.GetHandle("setTextAttributesForNotANumber:"); private static readonly IntPtr selPositiveInfinitySymbolHandle = Selector.GetHandle("positiveInfinitySymbol"); private static readonly IntPtr selSetPositiveInfinitySymbol_Handle = Selector.GetHandle("setPositiveInfinitySymbol:"); private static readonly IntPtr selTextAttributesForPositiveInfinityHandle = Selector.GetHandle("textAttributesForPositiveInfinity"); private static readonly IntPtr selSetTextAttributesForPositiveInfinity_Handle = Selector.GetHandle("setTextAttributesForPositiveInfinity:"); private static readonly IntPtr selNegativeInfinitySymbolHandle = Selector.GetHandle("negativeInfinitySymbol"); private static readonly IntPtr selSetNegativeInfinitySymbol_Handle = Selector.GetHandle("setNegativeInfinitySymbol:"); private static readonly IntPtr selTextAttributesForNegativeInfinityHandle = Selector.GetHandle("textAttributesForNegativeInfinity"); private static readonly IntPtr selSetTextAttributesForNegativeInfinity_Handle = Selector.GetHandle("setTextAttributesForNegativeInfinity:"); private static readonly IntPtr selPositivePrefixHandle = Selector.GetHandle("positivePrefix"); private static readonly IntPtr selSetPositivePrefix_Handle = Selector.GetHandle("setPositivePrefix:"); private static readonly IntPtr selPositiveSuffixHandle = Selector.GetHandle("positiveSuffix"); private static readonly IntPtr selSetPositiveSuffix_Handle = Selector.GetHandle("setPositiveSuffix:"); private static readonly IntPtr selNegativePrefixHandle = Selector.GetHandle("negativePrefix"); private static readonly IntPtr selSetNegativePrefix_Handle = Selector.GetHandle("setNegativePrefix:"); private static readonly IntPtr selNegativeSuffixHandle = Selector.GetHandle("negativeSuffix"); private static readonly IntPtr selSetNegativeSuffix_Handle = Selector.GetHandle("setNegativeSuffix:"); private static readonly IntPtr selCurrencyCodeHandle = Selector.GetHandle("currencyCode"); private static readonly IntPtr selSetCurrencyCode_Handle = Selector.GetHandle("setCurrencyCode:"); private static readonly IntPtr selCurrencySymbolHandle = Selector.GetHandle("currencySymbol"); private static readonly IntPtr selSetCurrencySymbol_Handle = Selector.GetHandle("setCurrencySymbol:"); private static readonly IntPtr selInternationalCurrencySymbolHandle = Selector.GetHandle("internationalCurrencySymbol"); private static readonly IntPtr selSetInternationalCurrencySymbol_Handle = Selector.GetHandle("setInternationalCurrencySymbol:"); private static readonly IntPtr selPercentSymbolHandle = Selector.GetHandle("percentSymbol"); private static readonly IntPtr selSetPercentSymbol_Handle = Selector.GetHandle("setPercentSymbol:"); private static readonly IntPtr selPerMillSymbolHandle = Selector.GetHandle("perMillSymbol"); private static readonly IntPtr selSetPerMillSymbol_Handle = Selector.GetHandle("setPerMillSymbol:"); private static readonly IntPtr selMinusSignHandle = Selector.GetHandle("minusSign"); private static readonly IntPtr selSetMinusSign_Handle = Selector.GetHandle("setMinusSign:"); private static readonly IntPtr selPlusSignHandle = Selector.GetHandle("plusSign"); private static readonly IntPtr selSetPlusSign_Handle = Selector.GetHandle("setPlusSign:"); private static readonly IntPtr selExponentSymbolHandle = Selector.GetHandle("exponentSymbol"); private static readonly IntPtr selSetExponentSymbol_Handle = Selector.GetHandle("setExponentSymbol:"); private static readonly IntPtr selGroupingSizeHandle = Selector.GetHandle("groupingSize"); private static readonly IntPtr selSetGroupingSize_Handle = Selector.GetHandle("setGroupingSize:"); private static readonly IntPtr selSecondaryGroupingSizeHandle = Selector.GetHandle("secondaryGroupingSize"); private static readonly IntPtr selSetSecondaryGroupingSize_Handle = Selector.GetHandle("setSecondaryGroupingSize:"); private static readonly IntPtr selMultiplierHandle = Selector.GetHandle("multiplier"); private static readonly IntPtr selSetMultiplier_Handle = Selector.GetHandle("setMultiplier:"); private static readonly IntPtr selFormatWidthHandle = Selector.GetHandle("formatWidth"); private static readonly IntPtr selSetFormatWidth_Handle = Selector.GetHandle("setFormatWidth:"); private static readonly IntPtr selPaddingCharacterHandle = Selector.GetHandle("paddingCharacter"); private static readonly IntPtr selSetPaddingCharacter_Handle = Selector.GetHandle("setPaddingCharacter:"); private static readonly IntPtr selPaddingPositionHandle = Selector.GetHandle("paddingPosition"); private static readonly IntPtr selSetPaddingPosition_Handle = Selector.GetHandle("setPaddingPosition:"); private static readonly IntPtr selRoundingModeHandle = Selector.GetHandle("roundingMode"); private static readonly IntPtr selSetRoundingMode_Handle = Selector.GetHandle("setRoundingMode:"); private static readonly IntPtr selRoundingIncrementHandle = Selector.GetHandle("roundingIncrement"); private static readonly IntPtr selSetRoundingIncrement_Handle = Selector.GetHandle("setRoundingIncrement:"); private static readonly IntPtr selMinimumIntegerDigitsHandle = Selector.GetHandle("minimumIntegerDigits"); private static readonly IntPtr selSetMinimumIntegerDigits_Handle = Selector.GetHandle("setMinimumIntegerDigits:"); private static readonly IntPtr selMaximumIntegerDigitsHandle = Selector.GetHandle("maximumIntegerDigits"); private static readonly IntPtr selSetMaximumIntegerDigits_Handle = Selector.GetHandle("setMaximumIntegerDigits:"); private static readonly IntPtr selMinimumFractionDigitsHandle = Selector.GetHandle("minimumFractionDigits"); private static readonly IntPtr selSetMinimumFractionDigits_Handle = Selector.GetHandle("setMinimumFractionDigits:"); private static readonly IntPtr selMaximumFractionDigitsHandle = Selector.GetHandle("maximumFractionDigits"); private static readonly IntPtr selSetMaximumFractionDigits_Handle = Selector.GetHandle("setMaximumFractionDigits:"); private static readonly IntPtr selMinimumHandle = Selector.GetHandle("minimum"); private static readonly IntPtr selSetMinimum_Handle = Selector.GetHandle("setMinimum:"); private static readonly IntPtr selMaximumHandle = Selector.GetHandle("maximum"); private static readonly IntPtr selSetMaximum_Handle = Selector.GetHandle("setMaximum:"); private static readonly IntPtr selCurrencyGroupingSeparatorHandle = Selector.GetHandle("currencyGroupingSeparator"); private static readonly IntPtr selSetCurrencyGroupingSeparator_Handle = Selector.GetHandle("setCurrencyGroupingSeparator:"); private static readonly IntPtr selIsLenientHandle = Selector.GetHandle("isLenient"); private static readonly IntPtr selSetLenient_Handle = Selector.GetHandle("setLenient:"); private static readonly IntPtr selUsesSignificantDigitsHandle = Selector.GetHandle("usesSignificantDigits"); private static readonly IntPtr selSetUsesSignificantDigits_Handle = Selector.GetHandle("setUsesSignificantDigits:"); private static readonly IntPtr selMinimumSignificantDigitsHandle = Selector.GetHandle("minimumSignificantDigits"); private static readonly IntPtr selSetMinimumSignificantDigits_Handle = Selector.GetHandle("setMinimumSignificantDigits:"); private static readonly IntPtr selMaximumSignificantDigitsHandle = Selector.GetHandle("maximumSignificantDigits"); private static readonly IntPtr selSetMaximumSignificantDigits_Handle = Selector.GetHandle("setMaximumSignificantDigits:"); private static readonly IntPtr selIsPartialStringValidationEnabledHandle = Selector.GetHandle("isPartialStringValidationEnabled"); private static readonly IntPtr selSetPartialStringValidationEnabled_Handle = Selector.GetHandle("setPartialStringValidationEnabled:"); private static readonly IntPtr selStringFromNumber_Handle = Selector.GetHandle("stringFromNumber:"); private static readonly IntPtr selNumberFromString_Handle = Selector.GetHandle("numberFromString:"); private static readonly IntPtr selLocalizedStringFromNumberNumberStyle_Handle = Selector.GetHandle("localizedStringFromNumber:numberStyle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSNumberFormatter"); private object __mt_Locale_var; private object __mt_TextAttributesForNegativeValues_var; private object __mt_TextAttributesForPositiveValues_var; private object __mt_TextAttributesForZero_var; private object __mt_TextAttributesForNil_var; private object __mt_TextAttributesForNotANumber_var; private object __mt_TextAttributesForPositiveInfinity_var; private object __mt_TextAttributesForNegativeInfinity_var; private object __mt_Multiplier_var; private object __mt_RoundingIncrement_var; private object __mt_Minimum_var; private object __mt_Maximum_var; public override IntPtr ClassHandle => class_ptr; public virtual NSNumberFormatterStyle NumberStyle { [Export("numberStyle")] get { if (IsDirectBinding) { return (NSNumberFormatterStyle)Messaging.UInt64_objc_msgSend(base.Handle, selNumberStyleHandle); } return (NSNumberFormatterStyle)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNumberStyleHandle); } [Export("setNumberStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetNumberStyle_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetNumberStyle_Handle, (ulong)value); } } } public virtual NSLocale Locale { [Export("locale")] get { return (NSLocale)(__mt_Locale_var = ((!IsDirectBinding) ? ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocaleHandle))) : ((NSLocale)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLocaleHandle))))); } [Export("setLocale:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLocale_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLocale_Handle, value.Handle); } __mt_Locale_var = value; } } public virtual bool GeneratesDecimalNumbers { [Export("generatesDecimalNumbers")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selGeneratesDecimalNumbersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selGeneratesDecimalNumbersHandle); } [Export("setGeneratesDecimalNumbers:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGeneratesDecimalNumbers_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGeneratesDecimalNumbers_Handle, value); } } } public virtual NSNumberFormatterBehavior FormatterBehavior { [Export("formatterBehavior")] get { if (IsDirectBinding) { return (NSNumberFormatterBehavior)Messaging.UInt64_objc_msgSend(base.Handle, selFormatterBehaviorHandle); } return (NSNumberFormatterBehavior)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFormatterBehaviorHandle); } [Export("setFormatterBehavior:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFormatterBehavior_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFormatterBehavior_Handle, (ulong)value); } } } public static NSNumberFormatterBehavior DefaultFormatterBehavior { [Export("defaultFormatterBehavior")] get { return (NSNumberFormatterBehavior)Messaging.UInt64_objc_msgSend(class_ptr, selDefaultFormatterBehaviorHandle); } [Export("setDefaultFormatterBehavior:")] set { Messaging.void_objc_msgSend_UInt64(class_ptr, selSetDefaultFormatterBehavior_Handle, (ulong)value); } } public virtual string NegativeFormat { [Export("negativeFormat")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNegativeFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNegativeFormatHandle)); } [Export("setNegativeFormat:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNegativeFormat_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNegativeFormat_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForNegativeValues { [Export("textAttributesForNegativeValues")] get { return (NSDictionary)(__mt_TextAttributesForNegativeValues_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForNegativeValuesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForNegativeValuesHandle))))); } [Export("setTextAttributesForNegativeValues:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForNegativeValues_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForNegativeValues_Handle, value.Handle); } __mt_TextAttributesForNegativeValues_var = value; } } public virtual string PositiveFormat { [Export("positiveFormat")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPositiveFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPositiveFormatHandle)); } [Export("setPositiveFormat:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPositiveFormat_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPositiveFormat_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForPositiveValues { [Export("textAttributesForPositiveValues")] get { return (NSDictionary)(__mt_TextAttributesForPositiveValues_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForPositiveValuesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForPositiveValuesHandle))))); } [Export("setTextAttributesForPositiveValues:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForPositiveValues_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForPositiveValues_Handle, value.Handle); } __mt_TextAttributesForPositiveValues_var = value; } } public virtual bool AllowsFloats { [Export("allowsFloats")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsFloatsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsFloatsHandle); } [Export("setAllowsFloats:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsFloats_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsFloats_Handle, value); } } } public virtual string DecimalSeparator { [Export("decimalSeparator")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDecimalSeparatorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDecimalSeparatorHandle)); } [Export("setDecimalSeparator:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDecimalSeparator_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDecimalSeparator_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool AlwaysShowsDecimalSeparator { [Export("alwaysShowsDecimalSeparator")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAlwaysShowsDecimalSeparatorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAlwaysShowsDecimalSeparatorHandle); } [Export("setAlwaysShowsDecimalSeparator:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAlwaysShowsDecimalSeparator_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAlwaysShowsDecimalSeparator_Handle, value); } } } public virtual string CurrencyDecimalSeparator { [Export("currencyDecimalSeparator")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrencyDecimalSeparatorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrencyDecimalSeparatorHandle)); } [Export("setCurrencyDecimalSeparator:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrencyDecimalSeparator_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrencyDecimalSeparator_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool UsesGroupingSeparator { [Export("usesGroupingSeparator")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesGroupingSeparatorHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesGroupingSeparatorHandle); } [Export("setUsesGroupingSeparator:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesGroupingSeparator_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesGroupingSeparator_Handle, value); } } } public virtual string GroupingSeparator { [Export("groupingSeparator")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selGroupingSeparatorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGroupingSeparatorHandle)); } [Export("setGroupingSeparator:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGroupingSeparator_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGroupingSeparator_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ZeroSymbol { [Export("zeroSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selZeroSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selZeroSymbolHandle)); } [Export("setZeroSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetZeroSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetZeroSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForZero { [Export("textAttributesForZero")] get { return (NSDictionary)(__mt_TextAttributesForZero_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForZeroHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForZeroHandle))))); } [Export("setTextAttributesForZero:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForZero_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForZero_Handle, value.Handle); } __mt_TextAttributesForZero_var = value; } } public virtual string NilSymbol { [Export("nilSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNilSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNilSymbolHandle)); } [Export("setNilSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNilSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNilSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForNil { [Export("textAttributesForNil")] get { return (NSDictionary)(__mt_TextAttributesForNil_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForNilHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForNilHandle))))); } [Export("setTextAttributesForNil:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForNil_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForNil_Handle, value.Handle); } __mt_TextAttributesForNil_var = value; } } public virtual string NotANumberSymbol { [Export("notANumberSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNotANumberSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNotANumberSymbolHandle)); } [Export("setNotANumberSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNotANumberSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNotANumberSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForNotANumber { [Export("textAttributesForNotANumber")] get { return (NSDictionary)(__mt_TextAttributesForNotANumber_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForNotANumberHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForNotANumberHandle))))); } [Export("setTextAttributesForNotANumber:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForNotANumber_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForNotANumber_Handle, value.Handle); } __mt_TextAttributesForNotANumber_var = value; } } public virtual string PositiveInfinitySymbol { [Export("positiveInfinitySymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPositiveInfinitySymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPositiveInfinitySymbolHandle)); } [Export("setPositiveInfinitySymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPositiveInfinitySymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPositiveInfinitySymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForPositiveInfinity { [Export("textAttributesForPositiveInfinity")] get { return (NSDictionary)(__mt_TextAttributesForPositiveInfinity_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForPositiveInfinityHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForPositiveInfinityHandle))))); } [Export("setTextAttributesForPositiveInfinity:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForPositiveInfinity_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForPositiveInfinity_Handle, value.Handle); } __mt_TextAttributesForPositiveInfinity_var = value; } } public virtual string NegativeInfinitySymbol { [Export("negativeInfinitySymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNegativeInfinitySymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNegativeInfinitySymbolHandle)); } [Export("setNegativeInfinitySymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNegativeInfinitySymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNegativeInfinitySymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary TextAttributesForNegativeInfinity { [Export("textAttributesForNegativeInfinity")] get { return (NSDictionary)(__mt_TextAttributesForNegativeInfinity_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextAttributesForNegativeInfinityHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTextAttributesForNegativeInfinityHandle))))); } [Export("setTextAttributesForNegativeInfinity:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextAttributesForNegativeInfinity_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextAttributesForNegativeInfinity_Handle, value.Handle); } __mt_TextAttributesForNegativeInfinity_var = value; } } public virtual string PositivePrefix { [Export("positivePrefix")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPositivePrefixHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPositivePrefixHandle)); } [Export("setPositivePrefix:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPositivePrefix_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPositivePrefix_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PositiveSuffix { [Export("positiveSuffix")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPositiveSuffixHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPositiveSuffixHandle)); } [Export("setPositiveSuffix:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPositiveSuffix_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPositiveSuffix_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string NegativePrefix { [Export("negativePrefix")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNegativePrefixHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNegativePrefixHandle)); } [Export("setNegativePrefix:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNegativePrefix_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNegativePrefix_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string NegativeSuffix { [Export("negativeSuffix")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNegativeSuffixHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNegativeSuffixHandle)); } [Export("setNegativeSuffix:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNegativeSuffix_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNegativeSuffix_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CurrencyCode { [Export("currencyCode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrencyCodeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrencyCodeHandle)); } [Export("setCurrencyCode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrencyCode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrencyCode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CurrencySymbol { [Export("currencySymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrencySymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrencySymbolHandle)); } [Export("setCurrencySymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrencySymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrencySymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string InternationalCurrencySymbol { [Export("internationalCurrencySymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInternationalCurrencySymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInternationalCurrencySymbolHandle)); } [Export("setInternationalCurrencySymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInternationalCurrencySymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInternationalCurrencySymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PercentSymbol { [Export("percentSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPercentSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPercentSymbolHandle)); } [Export("setPercentSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPercentSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPercentSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PerMillSymbol { [Export("perMillSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPerMillSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPerMillSymbolHandle)); } [Export("setPerMillSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPerMillSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPerMillSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string MinusSign { [Export("minusSign")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMinusSignHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinusSignHandle)); } [Export("setMinusSign:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinusSign_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinusSign_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string PlusSign { [Export("plusSign")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPlusSignHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPlusSignHandle)); } [Export("setPlusSign:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPlusSign_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPlusSign_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ExponentSymbol { [Export("exponentSymbol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selExponentSymbolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExponentSymbolHandle)); } [Export("setExponentSymbol:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetExponentSymbol_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetExponentSymbol_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual uint GroupingSize { [Export("groupingSize")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selGroupingSizeHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selGroupingSizeHandle); } [Export("setGroupingSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetGroupingSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetGroupingSize_Handle, value); } } } public virtual uint SecondaryGroupingSize { [Export("secondaryGroupingSize")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selSecondaryGroupingSizeHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selSecondaryGroupingSizeHandle); } [Export("setSecondaryGroupingSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetSecondaryGroupingSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetSecondaryGroupingSize_Handle, value); } } } public virtual NSNumber Multiplier { [Export("multiplier")] get { return (NSNumber)(__mt_Multiplier_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMultiplierHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMultiplierHandle))))); } [Export("setMultiplier:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMultiplier_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMultiplier_Handle, value.Handle); } __mt_Multiplier_var = value; } } public virtual ulong FormatWidth { [Export("formatWidth")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selFormatWidthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selFormatWidthHandle); } [Export("setFormatWidth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetFormatWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetFormatWidth_Handle, value); } } } public virtual string PaddingCharacter { [Export("paddingCharacter")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPaddingCharacterHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPaddingCharacterHandle)); } [Export("setPaddingCharacter:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPaddingCharacter_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPaddingCharacter_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSNumberFormatterPadPosition PaddingPosition { [Export("paddingPosition")] get { if (IsDirectBinding) { return (NSNumberFormatterPadPosition)Messaging.UInt64_objc_msgSend(base.Handle, selPaddingPositionHandle); } return (NSNumberFormatterPadPosition)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPaddingPositionHandle); } [Export("setPaddingPosition:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetPaddingPosition_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetPaddingPosition_Handle, (ulong)value); } } } public virtual NSNumberFormatterRoundingMode RoundingMode { [Export("roundingMode")] get { if (IsDirectBinding) { return (NSNumberFormatterRoundingMode)Messaging.UInt64_objc_msgSend(base.Handle, selRoundingModeHandle); } return (NSNumberFormatterRoundingMode)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selRoundingModeHandle); } [Export("setRoundingMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetRoundingMode_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetRoundingMode_Handle, (ulong)value); } } } public virtual NSNumber RoundingIncrement { [Export("roundingIncrement")] get { return (NSNumber)(__mt_RoundingIncrement_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRoundingIncrementHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRoundingIncrementHandle))))); } [Export("setRoundingIncrement:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRoundingIncrement_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRoundingIncrement_Handle, value.Handle); } __mt_RoundingIncrement_var = value; } } public virtual ulong MinimumIntegerDigits { [Export("minimumIntegerDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMinimumIntegerDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMinimumIntegerDigitsHandle); } [Export("setMinimumIntegerDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMinimumIntegerDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMinimumIntegerDigits_Handle, value); } } } public virtual ulong MaximumIntegerDigits { [Export("maximumIntegerDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMaximumIntegerDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMaximumIntegerDigitsHandle); } [Export("setMaximumIntegerDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMaximumIntegerDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMaximumIntegerDigits_Handle, value); } } } public virtual ulong MinimumFractionDigits { [Export("minimumFractionDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMinimumFractionDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMinimumFractionDigitsHandle); } [Export("setMinimumFractionDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMinimumFractionDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMinimumFractionDigits_Handle, value); } } } public virtual ulong MaximumFractionDigits { [Export("maximumFractionDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMaximumFractionDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMaximumFractionDigitsHandle); } [Export("setMaximumFractionDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMaximumFractionDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMaximumFractionDigits_Handle, value); } } } public virtual NSNumber Minimum { [Export("minimum")] get { return (NSNumber)(__mt_Minimum_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMinimumHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMinimumHandle))))); } [Export("setMinimum:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMinimum_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMinimum_Handle, value.Handle); } __mt_Minimum_var = value; } } public virtual NSNumber Maximum { [Export("maximum")] get { return (NSNumber)(__mt_Maximum_var = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMaximumHandle))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMaximumHandle))))); } [Export("setMaximum:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMaximum_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMaximum_Handle, value.Handle); } __mt_Maximum_var = value; } } public virtual string CurrencyGroupingSeparator { [Export("currencyGroupingSeparator")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrencyGroupingSeparatorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrencyGroupingSeparatorHandle)); } [Export("setCurrencyGroupingSeparator:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrencyGroupingSeparator_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrencyGroupingSeparator_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Lenient { [Export("isLenient")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLenientHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLenientHandle); } [Export("setLenient:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLenient_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLenient_Handle, value); } } } public virtual bool UsesSignificantDigits { [Export("usesSignificantDigits")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesSignificantDigitsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesSignificantDigitsHandle); } [Export("setUsesSignificantDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesSignificantDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesSignificantDigits_Handle, value); } } } public virtual ulong MinimumSignificantDigits { [Export("minimumSignificantDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMinimumSignificantDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMinimumSignificantDigitsHandle); } [Export("setMinimumSignificantDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMinimumSignificantDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMinimumSignificantDigits_Handle, value); } } } public virtual ulong MaximumSignificantDigits { [Export("maximumSignificantDigits")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMaximumSignificantDigitsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMaximumSignificantDigitsHandle); } [Export("setMaximumSignificantDigits:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMaximumSignificantDigits_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMaximumSignificantDigits_Handle, value); } } } public virtual bool PartialStringValidationEnabled { [Export("isPartialStringValidationEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPartialStringValidationEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPartialStringValidationEnabledHandle); } [Export("setPartialStringValidationEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPartialStringValidationEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPartialStringValidationEnabled_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSNumberFormatter() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSNumberFormatter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNumberFormatter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSNumberFormatter(IntPtr handle) : base(handle) { } [Export("stringFromNumber:")] public virtual string StringFromNumber(NSNumber number) { if (number == null) { throw new ArgumentNullException("number"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringFromNumber_Handle, number.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringFromNumber_Handle, number.Handle)); } [Export("numberFromString:")] public virtual NSNumber NumberFromString(string text) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); NSNumber result = ((!IsDirectBinding) ? ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNumberFromString_Handle, arg))) : ((NSNumber)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNumberFromString_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("localizedStringFromNumber:numberStyle:")] public static string LocalizedStringFromNumbernumberStyle(NSNumber num, NSNumberFormatterStyle nstyle) { if (num == null) { throw new ArgumentNullException("num"); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64(class_ptr, selLocalizedStringFromNumberNumberStyle_Handle, num.Handle, (ulong)nstyle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Locale_var = null; __mt_TextAttributesForNegativeValues_var = null; __mt_TextAttributesForPositiveValues_var = null; __mt_TextAttributesForZero_var = null; __mt_TextAttributesForNil_var = null; __mt_TextAttributesForNotANumber_var = null; __mt_TextAttributesForPositiveInfinity_var = null; __mt_TextAttributesForNegativeInfinity_var = null; __mt_Multiplier_var = null; __mt_RoundingIncrement_var = null; __mt_Minimum_var = null; __mt_Maximum_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumberFormatterBehavior.cs ================================================ namespace Foundation; public enum NSNumberFormatterBehavior : ulong { Default = 0uL, Version_10_0 = 1000uL, Version_10_4 = 1040uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumberFormatterPadPosition.cs ================================================ namespace Foundation; public enum NSNumberFormatterPadPosition : ulong { BeforePrefix, AfterPrefix, BeforeSuffix, AfterSuffix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumberFormatterRoundingMode.cs ================================================ namespace Foundation; public enum NSNumberFormatterRoundingMode : ulong { Ceiling, Floor, Down, Up, HalfEven, HalfDown, HalfUp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSNumberFormatterStyle.cs ================================================ namespace Foundation; public enum NSNumberFormatterStyle : ulong { None, Decimal, Currency, Percent, Scientific, SpellOut } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSObject.cs ================================================ using CoreGraphics; using ObjCRuntime; using System.Reflection; using System.Runtime.InteropServices; using Xamarin.Utiles; namespace Foundation; [StructLayout(LayoutKind.Sequential)] [Register("NSObject", true)] public class NSObject : INativeObject, IDisposable { [Flags] internal enum Flags : byte { Disposed = 1, NativeRef = 2, IsDirectBinding = 4, RegisteredToggleRef = 8, InFinalizerQueue = 0x10, HasManagedRef = 0x20, IsCustomType = 0x80 } private struct objc_super { public IntPtr receiver; public IntPtr super; } [Register("__NSObject_Disposer")] [Preserve(AllMembers = true)] internal class NSObject_Disposer : NSObject { private static readonly List drainList1 = new List(); private static readonly List drainList2 = new List(); private static List handles = drainList1; private new static readonly IntPtr class_ptr = Class.GetHandle("__NSObject_Disposer"); private static readonly IntPtr drainHandle = Selector.GetHandle("drain:"); private new static readonly object lock_obj = new object(); private NSObject_Disposer() { } internal static void Add(NSObject handle) { bool flag; lock (lock_obj) { handles.Add(handle); flag = handles.Count == 1; } if (flag) { Messaging.void_objc_msgSend_intptr_intptr_bool(class_ptr, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, drainHandle, IntPtr.Zero, arg3: false); } } [Export("drain:")] private static void Drain(NSObject ctx) { List list; lock (lock_obj) { list = handles; if (handles == drainList1) { handles = drainList2; } else { handles = drainList1; } } foreach (NSObject item in list) { item.ReleaseManagedRef(); } list.Clear(); } } private delegate IntPtr RetainTrampolineDelegate(IntPtr @this, IntPtr sel); private delegate void ReleaseTrampolineDelegate(IntPtr @this, IntPtr sel); private const string selConformsToProtocol = "conformsToProtocol:"; private const string selEncodeWithCoder = "encodeWithCoder:"; private const string selAwakeFromNib = "awakeFromNib"; private const string selRespondsToSelector = "respondsToSelector:"; private static IntPtr selConformsToProtocolHandle = Selector.GetHandle("conformsToProtocol:"); private static IntPtr selEncodeWithCoderHandle = Selector.GetHandle("encodeWithCoder:"); private static IntPtr selAwakeFromNibHandle = Selector.GetHandle("awakeFromNib"); private static IntPtr selRespondsToSelectorHandle = Selector.GetHandle("respondsToSelector:"); private IntPtr handle; private IntPtr super; private bool disposed; internal bool IsDirectBinding; public static readonly Assembly MonoMacAssembly = typeof(NSObject).Assembly; private IntPtr gchandle; private bool has_managed_ref; private static object lock_obj = new object(); private static IntPtr RetainTrampolineFunctionPointer; private static IntPtr ReleaseTrampolineFunctionPointer; private static RetainTrampolineDelegate retainTrampoline; private static ReleaseTrampolineDelegate releaseTrampoline; private static readonly IntPtr selDescriptionHandle = Selector.GetHandle("description"); private static readonly IntPtr selDebugDescriptionHandle = Selector.GetHandle("debugDescription"); private static readonly IntPtr selObserveValueForKeyPathOfObjectChangeContext_Handle = Selector.GetHandle("observeValueForKeyPath:ofObject:change:context:"); private static readonly IntPtr selAddObserverForKeyPathOptionsContext_Handle = Selector.GetHandle("addObserver:forKeyPath:options:context:"); private static readonly IntPtr selRemoveObserverForKeyPath_Handle = Selector.GetHandle("removeObserver:forKeyPath:"); private static readonly IntPtr selWillChangeValueForKey_Handle = Selector.GetHandle("willChangeValueForKey:"); private static readonly IntPtr selDidChangeValueForKey_Handle = Selector.GetHandle("didChangeValueForKey:"); private static readonly IntPtr selWillChangeValuesAtIndexesForKey_Handle = Selector.GetHandle("willChange:valuesAtIndexes:forKey:"); private static readonly IntPtr selDidChangeValuesAtIndexesForKey_Handle = Selector.GetHandle("didChange:valuesAtIndexes:forKey:"); private static readonly IntPtr selWillChangeValueForKeyWithSetMutationUsingObjects_Handle = Selector.GetHandle("willChangeValueForKey:withSetMutation:usingObjects:"); private static readonly IntPtr selDidChangeValueForKeyWithSetMutationUsingObjects_Handle = Selector.GetHandle("didChangeValueForKey:withSetMutation:usingObjects:"); private static readonly IntPtr selKeyPathsForValuesAffectingValueForKey_Handle = Selector.GetHandle("keyPathsForValuesAffectingValueForKey:"); private static readonly IntPtr selAutomaticallyNotifiesObserversForKey_Handle = Selector.GetHandle("automaticallyNotifiesObserversForKey:"); private static readonly IntPtr selValueForKey_Handle = Selector.GetHandle("valueForKey:"); private static readonly IntPtr selSetValueForKey_Handle = Selector.GetHandle("setValue:forKey:"); private static readonly IntPtr selValueForKeyPath_Handle = Selector.GetHandle("valueForKeyPath:"); private static readonly IntPtr selSetValueForKeyPath_Handle = Selector.GetHandle("setValue:forKeyPath:"); private static readonly IntPtr selValueForUndefinedKey_Handle = Selector.GetHandle("valueForUndefinedKey:"); private static readonly IntPtr selSetValueForUndefinedKey_Handle = Selector.GetHandle("setValue:forUndefinedKey:"); private static readonly IntPtr selSetNilValueForKey_Handle = Selector.GetHandle("setNilValueForKey:"); private static readonly IntPtr selDictionaryWithValuesForKeys_Handle = Selector.GetHandle("dictionaryWithValuesForKeys:"); private static readonly IntPtr selSetValuesForKeysWithDictionary_Handle = Selector.GetHandle("setValuesForKeysWithDictionary:"); private static readonly IntPtr selExposedBindingsHandle = Selector.GetHandle("exposedBindings"); private static readonly IntPtr selValueClassForBinding_Handle = Selector.GetHandle("valueClassForBinding:"); private static readonly IntPtr selBindToObjectWithKeyPathOptions_Handle = Selector.GetHandle("bind:toObject:withKeyPath:options:"); private static readonly IntPtr selUnbind_Handle = Selector.GetHandle("unbind:"); private static readonly IntPtr selInfoForBinding_Handle = Selector.GetHandle("infoForBinding:"); private static readonly IntPtr selOptionDescriptionsForBinding_Handle = Selector.GetHandle("optionDescriptionsForBinding:"); private static readonly IntPtr selDefaultPlaceholderForMarkerWithBinding_Handle = Selector.GetHandle("defaultPlaceholderForMarker:withBinding:"); private static readonly IntPtr selSetDefaultPlaceholderForMarkerWithBinding_Handle = Selector.GetHandle("setDefaultPlaceholder:forMarker:withBinding:"); private static readonly IntPtr selObjectDidEndEditing_Handle = Selector.GetHandle("objectDidEndEditing:"); private static readonly IntPtr selCommitEditingHandle = Selector.GetHandle("commitEditing"); private static readonly IntPtr selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle = Selector.GetHandle("commitEditingWithDelegate:didCommitSelector:contextInfo:"); private static readonly IntPtr selCopyHandle = Selector.GetHandle("copy"); private static readonly IntPtr selMutableCopyHandle = Selector.GetHandle("mutableCopy"); private static readonly IntPtr selPerformSelectorWithObjectAfterDelayInModes_Handle = Selector.GetHandle("performSelector:withObject:afterDelay:inModes:"); private static readonly IntPtr selPerformSelectorOnThreadWithObjectWaitUntilDone_Handle = Selector.GetHandle("performSelector:onThread:withObject:waitUntilDone:"); private static readonly IntPtr selPerformSelectorOnThreadWithObjectWaitUntilDoneModes_Handle = Selector.GetHandle("performSelector:onThread:withObject:waitUntilDone:modes:"); private static readonly IntPtr selCancelPreviousPerformRequestsWithTarget_Handle = Selector.GetHandle("cancelPreviousPerformRequestsWithTarget:"); private static readonly IntPtr selCancelPreviousPerformRequestsWithTargetSelectorObject_Handle = Selector.GetHandle("cancelPreviousPerformRequestsWithTarget:selector:object:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSObject"); private static NSString _ChangeKindKey; private static NSString _ChangeNewKey; private static NSString _ChangeOldKey; private static NSString _ChangeIndexesKey; private static NSString _ChangeNotificationIsPriorKey; private static IntPtr fl = Dlfcn.dlopen("/System/Library/Frameworks/Foundation.framework/Foundation", 1); private static IntPtr al = Dlfcn.dlopen("/System/Library/Frameworks/AppKit.framework/AppKit", 1); private static IntPtr ab = Dlfcn.dlopen("/System/Library/Frameworks/AddressBook.framework/AddressBook", 1); private static IntPtr ct = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/CoreText", 1); private static IntPtr wl = Dlfcn.dlopen("/System/Library/Frameworks/WebKit.framework/WebKit", 1); private static IntPtr zl = Dlfcn.dlopen("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", 1); private static IntPtr ql = Dlfcn.dlopen("/System/Library/Frameworks/QTKit.framework/QTKit", 1); private static IntPtr cl = Dlfcn.dlopen("/System/Library/Frameworks/CoreLocation.framework/CoreLocation", 1); private static IntPtr ll = Dlfcn.dlopen("/System/Library/Frameworks/Security.framework/Security", 1); private static IntPtr zc = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/QuartzComposer.framework/QuartzComposer", 1); private static IntPtr cw = Dlfcn.dlopen("/System/Library/Frameworks/CoreWLAN.framework/CoreWLAN", 1); private static IntPtr pk = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework/PDFKit", 1); private static IntPtr ik = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/ImageKit.framework/ImageKit", 1); private static IntPtr sb = Dlfcn.dlopen("/System/Library/Frameworks/ScriptingBridge.framework/ScriptingBridge", 1); private static IntPtr av = Dlfcn.dlopen("/System/Library/Frameworks/AVFoundation.framework/AVFoundation", 1); public unsafe IntPtr SuperHandle { get { if (super == IntPtr.Zero) { super = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(objc_super))); objc_super* ptr = (objc_super*)(void*)super; ptr->receiver = handle; ptr->super = ClassHandle; } return super; } } public IntPtr Handle { get { return handle; } set { if (!(handle == value)) { if (handle != IntPtr.Zero) { Runtime.UnregisterNSObject(handle); } handle = value; if (handle != IntPtr.Zero) { Runtime.RegisterNSObject(this, handle); } } } } [Export("retainCount")] public virtual int RetainCount { get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(Handle, Selector.RetainCount); } return Messaging.int_objc_msgSendSuper(SuperHandle, Selector.RetainCount); } } public virtual IntPtr ClassHandle => class_ptr; public virtual string Description { [Export("description")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selDescriptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDescriptionHandle)); } } public virtual string DebugDescription { [Export("debugDescription")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selDebugDescriptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDebugDescriptionHandle)); } } [Field("NSKeyValueChangeKindKey", "Foundation")] public static NSString ChangeKindKey { get { if (_ChangeKindKey == null) { _ChangeKindKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSKeyValueChangeKindKey"); } return _ChangeKindKey; } } [Field("NSKeyValueChangeNewKey", "Foundation")] public static NSString ChangeNewKey { get { if (_ChangeNewKey == null) { _ChangeNewKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSKeyValueChangeNewKey"); } return _ChangeNewKey; } } [Field("NSKeyValueChangeOldKey", "Foundation")] public static NSString ChangeOldKey { get { if (_ChangeOldKey == null) { _ChangeOldKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSKeyValueChangeOldKey"); } return _ChangeOldKey; } } [Field("NSKeyValueChangeIndexesKey", "Foundation")] public static NSString ChangeIndexesKey { get { if (_ChangeIndexesKey == null) { _ChangeIndexesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSKeyValueChangeIndexesKey"); } return _ChangeIndexesKey; } } [Field("NSKeyValueChangeNotificationIsPriorKey", "Foundation")] public static NSString ChangeNotificationIsPriorKey { get { if (_ChangeNotificationIsPriorKey == null) { _ChangeNotificationIsPriorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSKeyValueChangeNotificationIsPriorKey"); } return _ChangeNotificationIsPriorKey; } } [Export("init")] public NSObject() { bool alloced = AllocIfNeeded(); InitializeObject(alloced); } public NSObject(NSObjectFlag x) { bool alloced = AllocIfNeeded(); InitializeObject(alloced); } public NSObject(IntPtr handle) : this(handle, alloced: false) { } public NSObject(IntPtr handle, bool alloced) { this.handle = handle; InitializeObject(alloced); } ~NSObject() { Dispose(disposing: false); } protected void InitializeHandle(IntPtr selector) { if (IsDirectBinding) Handle = Messaging.IntPtr_objc_msgSend(Handle, selector); else Handle = Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selector); } protected void InitializeHandle(IntPtr selector, NSCoder coder) { if (IsDirectBinding) Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selector, coder.Handle); else Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selector, coder.Handle); } protected void InitializeWithHandle(IntPtr handle) { Handle = handle; } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [Export("encodeWithCoder:")] public virtual void EncodeTo(NSCoder coder) { if (coder == null) { throw new ArgumentNullException("coder"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_intptr(Handle, selEncodeWithCoderHandle, coder.Handle); } else { Messaging.void_objc_msgSendSuper_intptr(SuperHandle, selEncodeWithCoderHandle, coder.Handle); } } [Export("conformsToProtocol:")] [Preserve] public virtual bool ConformsToProtocol(IntPtr protocol) { if ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_intptr(SuperHandle, selConformsToProtocolHandle, protocol) : Messaging.bool_objc_msgSend_intptr(Handle, selConformsToProtocolHandle, protocol)) { return true; } object[] customAttributes = GetType().GetCustomAttributes(typeof(AdoptsAttribute), inherit: true); for (int i = 0; i < customAttributes.Length; i++) { if (((AdoptsAttribute)customAttributes[i]).ProtocolHandle == protocol) { return true; } } return false; } [Export("respondsToSelector:")] public virtual bool RespondsToSelector(Selector sel) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_intptr(Handle, selRespondsToSelectorHandle, sel.Handle); } return Messaging.bool_objc_msgSendSuper_intptr(SuperHandle, selRespondsToSelectorHandle, sel.Handle); } [Export("doesNotRecognizeSelector:")] public virtual void DoesNotRecognizeSelector(Selector sel) { Messaging.void_objc_msgSendSuper_intptr(SuperHandle, Selector.DoesNotRecognizeSelectorHandle, sel.Handle); } public void Release() { Messaging.void_objc_msgSend(handle, Selector.ReleaseHandle); } public NSObject Retain() { Messaging.void_objc_msgSend(handle, Selector.RetainHandle); return this; } public NSObject Autorelease() { Messaging.void_objc_msgSend(handle, Selector.AutoreleaseHandle); return this; } private bool AllocIfNeeded() { if (handle == IntPtr.Zero) { handle = Messaging.intptr_objc_msgSend(Class.GetHandle(GetType()), Selector.AllocHandle); return true; } return false; } private IntPtr GetObjCIvar(string name) { object_getInstanceVariable(handle, name, out var val); return val; } public NSObject GetNativeField(string name) { IntPtr objCIvar = GetObjCIvar(name); if (objCIvar == IntPtr.Zero) { return null; } return Runtime.GetNSObject(objCIvar); } private void SetObjCIvar(string name, IntPtr value) { object_setInstanceVariable(handle, name, value); } public void SetNativeField(string name, NSObject value) { if (value == null) { SetObjCIvar(name, IntPtr.Zero); } else { SetObjCIvar(name, value.Handle); } } [DllImport("/usr/lib/libobjc.dylib")] private static extern void object_getInstanceVariable(IntPtr obj, string name, out IntPtr val); [DllImport("/usr/lib/libobjc.dylib")] private static extern void object_setInstanceVariable(IntPtr obj, string name, IntPtr val); [Export("performSelector:withObject:afterDelay:")] public virtual void PerformSelector(Selector sel, NSObject obj, double delay) { if (sel == null) { throw new ArgumentNullException("sel"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_intptr_intptr_double(Handle, Selector.PerformSelectorWithObjectAfterDelayHandle, sel.Handle, obj?.Handle ?? IntPtr.Zero, delay); } else { Messaging.void_objc_msgSendSuper_intptr_intptr_double(SuperHandle, Selector.PerformSelectorWithObjectAfterDelayHandle, sel.Handle, obj?.Handle ?? IntPtr.Zero, delay); } } [Export("awakeFromNib")] public virtual void AwakeFromNib() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selAwakeFromNibHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selAwakeFromNibHandle); } } private void InvokeOnMainThread(Selector sel, NSObject obj, bool wait) { Messaging.void_objc_msgSend_intptr_intptr_bool(Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, sel.Handle, obj?.Handle ?? IntPtr.Zero, wait); } public void BeginInvokeOnMainThread(Selector sel, NSObject obj) { InvokeOnMainThread(sel, obj, wait: false); } public void InvokeOnMainThread(Selector sel, NSObject obj) { InvokeOnMainThread(sel, obj, wait: true); } public void BeginInvokeOnMainThread(NSAction action) { NSAsyncActionDispatcher nSAsyncActionDispatcher = new NSAsyncActionDispatcher(action); Messaging.void_objc_msgSend_intptr_intptr_bool(nSAsyncActionDispatcher.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, NSActionDispatcher.Selector.Handle, nSAsyncActionDispatcher.Handle, arg3: false); } public void InvokeOnMainThread(NSAction action) { using NSActionDispatcher nSActionDispatcher = new NSActionDispatcher(action); Messaging.void_objc_msgSend_intptr_intptr_bool(nSActionDispatcher.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, NSActionDispatcher.Selector.Handle, nSActionDispatcher.Handle, arg3: true); } public static NSObject FromObject(object obj) { if (obj == null) { return NSNull.Null; } Type type = obj.GetType(); if (type == typeof(NSObject) || type.IsSubclassOf(typeof(NSObject))) { return (NSObject)obj; } switch (Type.GetTypeCode(type)) { case TypeCode.Boolean: return new NSNumber((bool)obj); case TypeCode.Char: return new NSNumber((char)obj); case TypeCode.SByte: return new NSNumber((sbyte)obj); case TypeCode.Byte: return new NSNumber((byte)obj); case TypeCode.Int16: return new NSNumber((short)obj); case TypeCode.UInt16: return new NSNumber((ushort)obj); case TypeCode.Int32: return new NSNumber((int)obj); case TypeCode.UInt32: return new NSNumber((uint)obj); case TypeCode.Int64: return new NSNumber((long)obj); case TypeCode.UInt64: return new NSNumber((ulong)obj); case TypeCode.Single: return new NSNumber((float)obj); case TypeCode.Double: return new NSNumber((double)obj); case TypeCode.String: return new NSString((string)obj); default: if (type == typeof(IntPtr)) { return NSValue.ValueFromPointer((IntPtr)obj); } if (type == typeof(CGSize)) { return NSValue.FromSize((CGSize)obj); } if (type == typeof(CGRect)) { return NSValue.FromRectangle((CGRect)obj); } if (type == typeof(CGPoint)) { return NSValue.FromPoint((CGPoint)obj); } if (obj is INativeObject nativeObject) { return Runtime.GetNSObject(nativeObject.Handle); } return null; } } public void SetValueForKeyPath(IntPtr handle, NSString keyPath) { if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetValueForKeyPath_Handle, handle, keyPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetValueForKeyPath_Handle, handle, keyPath.Handle); } } public override string ToString() { return Description ?? base.ToString(); } public virtual void Invoke(NSAction action, double delay) { NSAsyncActionDispatcher obj = new NSAsyncActionDispatcher(action); PerformSelector(NSActionDispatcher.Selector, obj, delay); } public virtual void Invoke(NSAction action, TimeSpan delay) { NSAsyncActionDispatcher obj = new NSAsyncActionDispatcher(action); PerformSelector(NSActionDispatcher.Selector, obj, delay.TotalSeconds); } internal void ClearHandle() { handle = IntPtr.Zero; } protected virtual void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (handle != IntPtr.Zero) { if (disposing) { ReleaseManagedRef(); } else { NSObject_Disposer.Add(this); } } if (super != IntPtr.Zero) { Marshal.FreeHGlobal(super); super = IntPtr.Zero; } } private void InitializeObject(bool alloced) { if (alloced && handle == IntPtr.Zero && Class.ThrowOnInitFailure) { if (ClassHandle == IntPtr.Zero) { throw new Exception($"Could not create an native instance of the type '{GetType().FullName}': the native class hasn't been loaded.\nIt is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false."); } throw new Exception($"Failed to create a instance of the native type '{new Class(ClassHandle).Name}'.\nIt is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false."); } IsDirectBinding = GetType().Assembly == MonoMacAssembly; Runtime.RegisterNSObject(this, handle); CreateManagedRef(!alloced); } private static int GetRetainCount(IntPtr @this) { return Messaging.int_objc_msgSend(@this, Selector.RetainCount); } private void UnregisterObject() { Runtime.NativeObjectHasDied(handle); } private void FreeGCHandle() { if (gchandle != IntPtr.Zero) { GCHandle.FromIntPtr(gchandle).Free(); gchandle = IntPtr.Zero; } } private void SwitchGCHandle(bool to_weak) { if (gchandle != IntPtr.Zero) { GCHandle.FromIntPtr(gchandle).Free(); } if (to_weak) { gchandle = GCHandle.ToIntPtr(GCHandle.Alloc(this, GCHandleType.WeakTrackResurrection)); } else { gchandle = GCHandle.ToIntPtr(GCHandle.Alloc(this, GCHandleType.Normal)); } } internal static void OverrideRetainAndRelease(IntPtr @class) { lock (lock_obj) { if (ReleaseTrampolineFunctionPointer == IntPtr.Zero) { retainTrampoline = RetainTrampoline; releaseTrampoline = ReleaseTrampoline; RetainTrampolineFunctionPointer = Marshal.GetFunctionPointerForDelegate(retainTrampoline); ReleaseTrampolineFunctionPointer = Marshal.GetFunctionPointerForDelegate(releaseTrampoline); } } Class.class_addMethod(@class, Selector.RetainHandle, RetainTrampolineFunctionPointer, "@@:"); Class.class_addMethod(@class, Selector.ReleaseHandle, ReleaseTrampolineFunctionPointer, "v@:"); } private static bool IsUserType(IntPtr @this) { IntPtr intPtr = object_getClass(@this); if (Class.class_getMethodImplementation(intPtr, Selector.RetainHandle) == RetainTrampolineFunctionPointer) { return true; } Type type = Class.Lookup(intPtr, throw_on_error: false); if (type != null) { return Class.IsCustomType(type); } return false; } private void CreateGCHandle(bool force_weak) { bool num = force_weak || GetRetainCount(handle) == 1; has_managed_ref = true; if (num) { gchandle = GCHandle.ToIntPtr(GCHandle.Alloc(this, GCHandleType.WeakTrackResurrection)); } else { gchandle = GCHandle.ToIntPtr(GCHandle.Alloc(this, GCHandleType.Normal)); } } private void CreateManagedRef(bool retain) { if (IsUserType(handle) && gchandle == IntPtr.Zero) { CreateGCHandle(!retain); } if (retain) { Messaging.void_objc_msgSend(handle, Selector.RetainHandle); } } private void ReleaseManagedRef() { IntPtr intPtr = handle; if (IsUserType(intPtr)) { has_managed_ref = false; } else { UnregisterObject(); } Messaging.void_objc_msgSend(intPtr, Selector.ReleaseHandle); } [DllImport("/usr/lib/libobjc.dylib")] private static extern IntPtr object_getClass(IntPtr @this); [DllImport("/usr/lib/libobjc.dylib")] private static extern IntPtr objc_msgSendSuper(ref objc_super super, IntPtr selector); private static IntPtr InvokeObjCMethodImplementation(IntPtr @this, IntPtr sel) { IntPtr cls = object_getClass(@this); IntPtr cls2 = Class.class_getSuperclass(cls); IntPtr intPtr = Class.class_getMethodImplementation(cls, sel); IntPtr intPtr2 = Class.class_getMethodImplementation(cls2, sel); while (intPtr == intPtr2) { cls2 = Class.class_getSuperclass(cls2); intPtr2 = Class.class_getMethodImplementation(cls2, sel); } objc_super objc_super = default(objc_super); objc_super.receiver = @this; objc_super.super = cls2; return objc_msgSendSuper(ref objc_super, sel); } private static void ReleaseTrampoline(IntPtr @this, IntPtr sel) { int num = Messaging.int_objc_msgSend(@this, Selector.RetainCount); NSObject nSObject = null; if (num == 1) { nSObject = Runtime.TryGetNSObject(@this); if (nSObject != null) { nSObject.UnregisterObject(); nSObject.FreeGCHandle(); } } if (num == 2) { nSObject = Runtime.TryGetNSObject(@this); if (nSObject != null && nSObject.has_managed_ref) { nSObject.SwitchGCHandle(to_weak: true); } } InvokeObjCMethodImplementation(@this, sel); } private static IntPtr RetainTrampoline(IntPtr @this, IntPtr sel) { int num = Messaging.int_objc_msgSend(@this, Selector.RetainCount); NSObject nSObject = null; if (num == 1) { nSObject = Runtime.TryGetNSObject(@this); if (nSObject != null && nSObject.has_managed_ref) { nSObject.SwitchGCHandle(to_weak: false); } } @this = InvokeObjCMethodImplementation(@this, sel); return @this; } internal void SetAsProxy() { IsDirectBinding = true; } [Export("observeValueForKeyPath:ofObject:change:context:")] public virtual void ObserveValue(NSString keyPath, NSObject ofObject, NSDictionary change, IntPtr context) { if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (ofObject == null) { throw new ArgumentNullException("ofObject"); } if (change == null) { throw new ArgumentNullException("change"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selObserveValueForKeyPathOfObjectChangeContext_Handle, keyPath.Handle, ofObject.Handle, change.Handle, context); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selObserveValueForKeyPathOfObjectChangeContext_Handle, keyPath.Handle, ofObject.Handle, change.Handle, context); } } [Export("addObserver:forKeyPath:options:context:")] public virtual void AddObserver(NSObject observer, NSString keyPath, NSKeyValueObservingOptions options, IntPtr context) { if (observer == null) { throw new ArgumentNullException("observer"); } if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(Handle, selAddObserverForKeyPathOptionsContext_Handle, observer.Handle, keyPath.Handle, (ulong)options, context); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(SuperHandle, selAddObserverForKeyPathOptionsContext_Handle, observer.Handle, keyPath.Handle, (ulong)options, context); } } [Export("removeObserver:forKeyPath:")] public virtual void RemoveObserver(NSObject observer, NSString keyPath) { if (observer == null) { throw new ArgumentNullException("observer"); } if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selRemoveObserverForKeyPath_Handle, observer.Handle, keyPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selRemoveObserverForKeyPath_Handle, observer.Handle, keyPath.Handle); } } [Export("willChangeValueForKey:")] public virtual void WillChangeValue(string forKey) { if (forKey == null) { throw new ArgumentNullException("forKey"); } IntPtr arg = NSString.CreateNative(forKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selWillChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selWillChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("didChangeValueForKey:")] public virtual void DidChangeValue(string forKey) { if (forKey == null) { throw new ArgumentNullException("forKey"); } IntPtr arg = NSString.CreateNative(forKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selDidChangeValueForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selDidChangeValueForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("willChange:valuesAtIndexes:forKey:")] public virtual void WillChange(NSKeyValueChange changeKind, NSIndexSet indexes, NSString forKey) { if (indexes == null) { throw new ArgumentNullException("indexes"); } if (forKey == null) { throw new ArgumentNullException("forKey"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr_IntPtr(Handle, selWillChangeValuesAtIndexesForKey_Handle, (ulong)changeKind, indexes.Handle, forKey.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr_IntPtr(SuperHandle, selWillChangeValuesAtIndexesForKey_Handle, (ulong)changeKind, indexes.Handle, forKey.Handle); } } [Export("didChange:valuesAtIndexes:forKey:")] public virtual void DidChange(NSKeyValueChange changeKind, NSIndexSet indexes, NSString forKey) { if (indexes == null) { throw new ArgumentNullException("indexes"); } if (forKey == null) { throw new ArgumentNullException("forKey"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64_IntPtr_IntPtr(Handle, selDidChangeValuesAtIndexesForKey_Handle, (ulong)changeKind, indexes.Handle, forKey.Handle); } else { Messaging.void_objc_msgSendSuper_UInt64_IntPtr_IntPtr(SuperHandle, selDidChangeValuesAtIndexesForKey_Handle, (ulong)changeKind, indexes.Handle, forKey.Handle); } } [Export("willChangeValueForKey:withSetMutation:usingObjects:")] public virtual void WillChange(NSString forKey, NSKeyValueSetMutationKind mutationKind, NSSet objects) { if (forKey == null) { throw new ArgumentNullException("forKey"); } if (objects == null) { throw new ArgumentNullException("objects"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr(Handle, selWillChangeValueForKeyWithSetMutationUsingObjects_Handle, forKey.Handle, (ulong)mutationKind, objects.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr(SuperHandle, selWillChangeValueForKeyWithSetMutationUsingObjects_Handle, forKey.Handle, (ulong)mutationKind, objects.Handle); } } [Export("didChangeValueForKey:withSetMutation:usingObjects:")] public virtual void DidChange(NSString forKey, NSKeyValueSetMutationKind mutationKind, NSSet objects) { if (forKey == null) { throw new ArgumentNullException("forKey"); } if (objects == null) { throw new ArgumentNullException("objects"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_UInt64_IntPtr(Handle, selDidChangeValueForKeyWithSetMutationUsingObjects_Handle, forKey.Handle, (ulong)mutationKind, objects.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_UInt64_IntPtr(SuperHandle, selDidChangeValueForKeyWithSetMutationUsingObjects_Handle, forKey.Handle, (ulong)mutationKind, objects.Handle); } } [Export("keyPathsForValuesAffectingValueForKey:")] public static NSSet GetKeyPathsForValuesAffecting(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selKeyPathsForValuesAffectingValueForKey_Handle, key.Handle)); } [Export("automaticallyNotifiesObserversForKey:")] public static bool AutomaticallyNotifiesObserversForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selAutomaticallyNotifiesObserversForKey_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("valueForKey:")] public virtual NSObject ValueForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selValueForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selValueForKey_Handle, key.Handle)); } [Export("setValue:forKey:")] public virtual void SetValueForKey(NSObject value, NSString key) { if (value == null) { throw new ArgumentNullException("value"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetValueForKey_Handle, value.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetValueForKey_Handle, value.Handle, key.Handle); } } [Export("valueForKeyPath:")] public virtual NSObject ValueForKeyPath(NSString keyPath) { if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selValueForKeyPath_Handle, keyPath.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selValueForKeyPath_Handle, keyPath.Handle)); } [Export("setValue:forKeyPath:")] public virtual void SetValueForKeyPath(NSObject value, NSString keyPath) { if (value == null) { throw new ArgumentNullException("value"); } if (keyPath == null) { throw new ArgumentNullException("keyPath"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetValueForKeyPath_Handle, value.Handle, keyPath.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetValueForKeyPath_Handle, value.Handle, keyPath.Handle); } } [Export("valueForUndefinedKey:")] public virtual NSObject ValueForUndefinedKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selValueForUndefinedKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selValueForUndefinedKey_Handle, key.Handle)); } [Export("setValue:forUndefinedKey:")] public virtual void SetValueForUndefinedKey(NSObject value, NSString undefinedKey) { if (value == null) { throw new ArgumentNullException("value"); } if (undefinedKey == null) { throw new ArgumentNullException("undefinedKey"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetValueForUndefinedKey_Handle, value.Handle, undefinedKey.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetValueForUndefinedKey_Handle, value.Handle, undefinedKey.Handle); } } [Export("setNilValueForKey:")] public virtual void SetNilValueForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetNilValueForKey_Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetNilValueForKey_Handle, key.Handle); } } [Export("dictionaryWithValuesForKeys:")] public virtual NSDictionary GetDictionaryOfValuesFromKeys(NSString[] keys) { if (keys == null) { throw new ArgumentNullException("keys"); } NSArray nSArray = NSArray.FromNSObjects(keys); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selDictionaryWithValuesForKeys_Handle, nSArray.Handle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selDictionaryWithValuesForKeys_Handle, nSArray.Handle)))); nSArray.Dispose(); return result; } [Export("setValuesForKeysWithDictionary:")] public virtual void SetValuesForKeysWithDictionary(NSDictionary keyedValues) { if (keyedValues == null) { throw new ArgumentNullException("keyedValues"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetValuesForKeysWithDictionary_Handle, keyedValues.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetValuesForKeysWithDictionary_Handle, keyedValues.Handle); } } [Export("exposedBindings")] public virtual NSString[] ExposedBindings() { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selExposedBindingsHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selExposedBindingsHandle)); } [Export("valueClassForBinding:")] public virtual Class BindingValueClass(string binding) { if (binding == null) { throw new ArgumentNullException("binding"); } IntPtr arg = NSString.CreateNative(binding); Class result = ((!IsDirectBinding) ? new Class(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selValueClassForBinding_Handle, arg)) : new Class(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selValueClassForBinding_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("bind:toObject:withKeyPath:options:")] public virtual void Bind(string binding, NSObject observable, string keyPath, NSDictionary options) { if (binding == null) { throw new ArgumentNullException("binding"); } if (observable == null) { throw new ArgumentNullException("observable"); } if (keyPath == null) { throw new ArgumentNullException("keyPath"); } IntPtr arg = NSString.CreateNative(binding); IntPtr arg2 = NSString.CreateNative(keyPath); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selBindToObjectWithKeyPathOptions_Handle, arg, observable.Handle, arg2, options?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selBindToObjectWithKeyPathOptions_Handle, arg, observable.Handle, arg2, options?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("unbind:")] public virtual void Unbind(string binding) { if (binding == null) { throw new ArgumentNullException("binding"); } IntPtr arg = NSString.CreateNative(binding); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selUnbind_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selUnbind_Handle, arg); } NSString.ReleaseNative(arg); } [Export("infoForBinding:")] public virtual NSDictionary BindingInfo(string binding) { if (binding == null) { throw new ArgumentNullException("binding"); } IntPtr arg = NSString.CreateNative(binding); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInfoForBinding_Handle, arg))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInfoForBinding_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("optionDescriptionsForBinding:")] public virtual NSObject[] BindingOptionDescriptions(string aBinding) { if (aBinding == null) { throw new ArgumentNullException("aBinding"); } IntPtr arg = NSString.CreateNative(aBinding); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selOptionDescriptionsForBinding_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selOptionDescriptionsForBinding_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("defaultPlaceholderForMarker:withBinding:")] public static NSObject GetDefaultPlaceholder(NSObject marker, string binding) { if (marker == null) { throw new ArgumentNullException("marker"); } if (binding == null) { throw new ArgumentNullException("binding"); } IntPtr arg = NSString.CreateNative(binding); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDefaultPlaceholderForMarkerWithBinding_Handle, marker.Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("setDefaultPlaceholder:forMarker:withBinding:")] public static void SetDefaultPlaceholder(NSObject placeholder, NSObject marker, string binding) { if (placeholder == null) { throw new ArgumentNullException("placeholder"); } if (marker == null) { throw new ArgumentNullException("marker"); } if (binding == null) { throw new ArgumentNullException("binding"); } IntPtr arg = NSString.CreateNative(binding); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selSetDefaultPlaceholderForMarkerWithBinding_Handle, placeholder.Handle, marker.Handle, arg); NSString.ReleaseNative(arg); } [Export("objectDidEndEditing:")] public virtual void ObjectDidEndEditing(NSObject editor) { if (editor == null) { throw new ArgumentNullException("editor"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selObjectDidEndEditing_Handle, editor.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selObjectDidEndEditing_Handle, editor.Handle); } } [Export("commitEditing")] public virtual bool CommitEditing() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selCommitEditingHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selCommitEditingHandle); } [Export("commitEditingWithDelegate:didCommitSelector:contextInfo:")] public virtual void CommitEditing(NSObject objDelegate, Selector didCommitSelector, IntPtr contextInfo) { if (objDelegate == null) { throw new ArgumentNullException("objDelegate"); } if (didCommitSelector == null) { throw new ArgumentNullException("didCommitSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, objDelegate.Handle, didCommitSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selCommitEditingWithDelegateDidCommitSelectorContextInfo_Handle, objDelegate.Handle, didCommitSelector.Handle, contextInfo); } } [Export("copy")] public virtual NSObject Copy() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selCopyHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCopyHandle)); } [Export("mutableCopy")] public virtual NSObject MutableCopy() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selMutableCopyHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selMutableCopyHandle)); } [Export("performSelector:withObject:afterDelay:inModes:")] public virtual void PerformSelector(Selector selector, NSObject withObject, double afterDelay, NSString[] nsRunLoopModes) { if (selector == null) { throw new ArgumentNullException("selector"); } if (withObject == null) { throw new ArgumentNullException("withObject"); } if (nsRunLoopModes == null) { throw new ArgumentNullException("nsRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(nsRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_Double_IntPtr(Handle, selPerformSelectorWithObjectAfterDelayInModes_Handle, selector.Handle, withObject.Handle, afterDelay, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_Double_IntPtr(SuperHandle, selPerformSelectorWithObjectAfterDelayInModes_Handle, selector.Handle, withObject.Handle, afterDelay, nSArray.Handle); } nSArray.Dispose(); } [Export("performSelector:onThread:withObject:waitUntilDone:")] public virtual void PerformSelector(Selector selector, NSThread onThread, NSObject withObject, bool waitUntilDone) { if (selector == null) { throw new ArgumentNullException("selector"); } if (onThread == null) { throw new ArgumentNullException("onThread"); } if (withObject == null) { throw new ArgumentNullException("withObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool(Handle, selPerformSelectorOnThreadWithObjectWaitUntilDone_Handle, selector.Handle, onThread.Handle, withObject.Handle, waitUntilDone); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool(SuperHandle, selPerformSelectorOnThreadWithObjectWaitUntilDone_Handle, selector.Handle, onThread.Handle, withObject.Handle, waitUntilDone); } } [Export("performSelector:onThread:withObject:waitUntilDone:modes:")] public virtual void PerformSelector(Selector selector, NSThread onThread, NSObject withObject, bool waitUntilDone, NSString[] nsRunLoopModes) { if (selector == null) { throw new ArgumentNullException("selector"); } if (onThread == null) { throw new ArgumentNullException("onThread"); } if (withObject == null) { throw new ArgumentNullException("withObject"); } if (nsRunLoopModes == null) { throw new ArgumentNullException("nsRunLoopModes"); } NSArray nSArray = NSArray.FromNSObjects(nsRunLoopModes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool_IntPtr(Handle, selPerformSelectorOnThreadWithObjectWaitUntilDoneModes_Handle, selector.Handle, onThread.Handle, withObject.Handle, waitUntilDone, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool_IntPtr(SuperHandle, selPerformSelectorOnThreadWithObjectWaitUntilDoneModes_Handle, selector.Handle, onThread.Handle, withObject.Handle, waitUntilDone, nSArray.Handle); } nSArray.Dispose(); } [Export("cancelPreviousPerformRequestsWithTarget:")] public static void CancelPreviousPerformRequest(NSObject aTarget) { if (aTarget == null) { throw new ArgumentNullException("aTarget"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selCancelPreviousPerformRequestsWithTarget_Handle, aTarget.Handle); } [Export("cancelPreviousPerformRequestsWithTarget:selector:object:")] public static void CancelPreviousPerformRequest(NSObject aTarget, Selector selector, NSObject argument) { if (aTarget == null) { throw new ArgumentNullException("aTarget"); } if (selector == null) { throw new ArgumentNullException("selector"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selCancelPreviousPerformRequestsWithTargetSelectorObject_Handle, aTarget.Handle, selector.Handle, argument?.Handle ?? IntPtr.Zero); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSObjectEventArgs.cs ================================================ using System; namespace Foundation; public class NSObjectEventArgs : EventArgs { public NSObject Obj { get; set; } public NSObjectEventArgs(NSObject obj) { Obj = obj; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSObjectFlag.cs ================================================ namespace Foundation; public class NSObjectFlag { public static readonly NSObjectFlag Empty; private NSObjectFlag() { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOperation.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSOperation", true)] public class NSOperation : NSObject { private static readonly IntPtr selIsCancelledHandle = Selector.GetHandle("isCancelled"); private static readonly IntPtr selIsExecutingHandle = Selector.GetHandle("isExecuting"); private static readonly IntPtr selIsFinishedHandle = Selector.GetHandle("isFinished"); private static readonly IntPtr selIsConcurrentHandle = Selector.GetHandle("isConcurrent"); private static readonly IntPtr selIsReadyHandle = Selector.GetHandle("isReady"); private static readonly IntPtr selDependenciesHandle = Selector.GetHandle("dependencies"); private static readonly IntPtr selThreadPriorityHandle = Selector.GetHandle("threadPriority"); private static readonly IntPtr selSetThreadPriority_Handle = Selector.GetHandle("setThreadPriority:"); private static readonly IntPtr selQueuePriorityHandle = Selector.GetHandle("queuePriority"); private static readonly IntPtr selSetQueuePriority_Handle = Selector.GetHandle("setQueuePriority:"); private static readonly IntPtr selStartHandle = Selector.GetHandle("start"); private static readonly IntPtr selMainHandle = Selector.GetHandle("main"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr selAddDependency_Handle = Selector.GetHandle("addDependency:"); private static readonly IntPtr selRemoveDependency_Handle = Selector.GetHandle("removeDependency:"); private static readonly IntPtr selWaitUntilFinishedHandle = Selector.GetHandle("waitUntilFinished"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOperation"); private object __mt_Dependencies_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsCancelled { [Export("isCancelled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCancelledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCancelledHandle); } } public virtual bool IsExecuting { [Export("isExecuting")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExecutingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExecutingHandle); } } public virtual bool IsFinished { [Export("isFinished")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFinishedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFinishedHandle); } } public virtual bool IsConcurrent { [Export("isConcurrent")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsConcurrentHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsConcurrentHandle); } } public virtual bool IsReady { [Export("isReady")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsReadyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsReadyHandle); } } public virtual NSOperation[] Dependencies { [Export("dependencies")] get { return (NSOperation[])(__mt_Dependencies_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDependenciesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDependenciesHandle)))); } } public virtual double ThreadPriority { [Export("threadPriority")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selThreadPriorityHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selThreadPriorityHandle); } [Export("setThreadPriority:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetThreadPriority_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetThreadPriority_Handle, value); } } } public virtual NSOperationQueuePriority QueuePriority { [Export("queuePriority")] get { if (IsDirectBinding) { return (NSOperationQueuePriority)Messaging.Int64_objc_msgSend(base.Handle, selQueuePriorityHandle); } return (NSOperationQueuePriority)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selQueuePriorityHandle); } [Export("setQueuePriority:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetQueuePriority_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetQueuePriority_Handle, (long)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOperation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOperation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOperation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOperation(IntPtr handle) : base(handle) { } [Export("start")] public virtual void Start() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartHandle); } } [Export("main")] public virtual void Main() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMainHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMainHandle); } } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } [Export("addDependency:")] public virtual void AddDependency(NSOperation op) { if (op == null) { throw new ArgumentNullException("op"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddDependency_Handle, op.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddDependency_Handle, op.Handle); } _ = Dependencies; } [Export("removeDependency:")] public virtual void RemoveDependency(NSOperation op) { if (op == null) { throw new ArgumentNullException("op"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveDependency_Handle, op.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveDependency_Handle, op.Handle); } _ = Dependencies; } [Export("waitUntilFinished")] public virtual void WaitUntilFinishedNS() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWaitUntilFinishedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWaitUntilFinishedHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Dependencies_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOperationQueue.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSOperationQueue", true)] public class NSOperationQueue : NSObject { private static readonly IntPtr selOperationsHandle = Selector.GetHandle("operations"); private static readonly IntPtr selOperationCountHandle = Selector.GetHandle("operationCount"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selCurrentQueueHandle = Selector.GetHandle("currentQueue"); private static readonly IntPtr selMainQueueHandle = Selector.GetHandle("mainQueue"); private static readonly IntPtr selMaxConcurrentOperationCountHandle = Selector.GetHandle("maxConcurrentOperationCount"); private static readonly IntPtr selSetMaxConcurrentOperationCount_Handle = Selector.GetHandle("setMaxConcurrentOperationCount:"); private static readonly IntPtr selIsSuspendedHandle = Selector.GetHandle("isSuspended"); private static readonly IntPtr selSetSuspended_Handle = Selector.GetHandle("setSuspended:"); private static readonly IntPtr selAddOperation_Handle = Selector.GetHandle("addOperation:"); private static readonly IntPtr selAddOperationsWaitUntilFinished_Handle = Selector.GetHandle("addOperations:waitUntilFinished:"); private static readonly IntPtr selAddOperationWithBlock_Handle = Selector.GetHandle("addOperationWithBlock:"); private static readonly IntPtr selCancelAllOperationsHandle = Selector.GetHandle("cancelAllOperations"); private static readonly IntPtr selWaitUntilAllOperationsAreFinishedHandle = Selector.GetHandle("waitUntilAllOperationsAreFinished"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOperationQueue"); private object __mt_Operations_var; private static object __mt_CurrentQueue_var_static; private static object __mt_MainQueue_var_static; public override IntPtr ClassHandle => class_ptr; public virtual NSOperation[] Operations { [Export("operations")] get { return (NSOperation[])(__mt_Operations_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOperationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOperationsHandle)))); } } public virtual ulong OperationCount { [Export("operationCount")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selOperationCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOperationCountHandle); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public static NSOperationQueue CurrentQueue { [Export("currentQueue")] get { return (NSOperationQueue)(__mt_CurrentQueue_var_static = (NSOperationQueue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentQueueHandle))); } } public static NSOperationQueue MainQueue { [Export("mainQueue")] get { return (NSOperationQueue)(__mt_MainQueue_var_static = (NSOperationQueue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMainQueueHandle))); } } public virtual long MaxConcurrentOperationCount { [Export("maxConcurrentOperationCount")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selMaxConcurrentOperationCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selMaxConcurrentOperationCountHandle); } [Export("setMaxConcurrentOperationCount:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetMaxConcurrentOperationCount_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetMaxConcurrentOperationCount_Handle, value); } } } public virtual bool Suspended { [Export("isSuspended")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSuspendedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSuspendedHandle); } [Export("setSuspended:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSuspended_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSuspended_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOperationQueue() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOperationQueue(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOperationQueue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOperationQueue(IntPtr handle) : base(handle) { } [Export("addOperation:")] public virtual void AddOperation(NSOperation op) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddOperation_Handle, op?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddOperation_Handle, op?.Handle ?? IntPtr.Zero); } _ = Operations; } [Export("addOperations:waitUntilFinished:")] public virtual void AddOperations(NSOperation[] operations, bool waitUntilFinished) { NSArray nSArray = ((operations == null) ? null : NSArray.FromNSObjects(operations)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selAddOperationsWaitUntilFinished_Handle, nSArray?.Handle ?? IntPtr.Zero, waitUntilFinished); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selAddOperationsWaitUntilFinished_Handle, nSArray?.Handle ?? IntPtr.Zero, waitUntilFinished); } nSArray?.Dispose(); _ = Operations; } [Export("addOperationWithBlock:")] public unsafe virtual void AddOperation(NSAction operation) { if (operation == null) { throw new ArgumentNullException("operation"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSAction.Handler, operation); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddOperationWithBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddOperationWithBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); _ = Operations; } [Export("cancelAllOperations")] public virtual void CancelAllOperations() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelAllOperationsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelAllOperationsHandle); } _ = Operations; } [Export("waitUntilAllOperationsAreFinished")] public virtual void WaitUntilAllOperationsAreFinished() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWaitUntilAllOperationsAreFinishedHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWaitUntilAllOperationsAreFinishedHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Operations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOperationQueuePriority.cs ================================================ using ObjCRuntime; namespace Foundation; [Since(4, 0)] public enum NSOperationQueuePriority : long { VeryLow = -8L, Low = -4L, Normal = 0L, High = 4L, VeryHigh = 8L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOrderedSet.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSOrderedSet", true)] public class NSOrderedSet : NSObject, IEnumerable, IEnumerable { internal const string selSetWithArray = "orderedSetWithArray:"; private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selInitWithObject_Handle = Selector.GetHandle("initWithObject:"); private static readonly IntPtr selInitWithArray_Handle = Selector.GetHandle("initWithArray:"); private static readonly IntPtr selInitWithSet_Handle = Selector.GetHandle("initWithSet:"); private static readonly IntPtr selInitWithOrderedSet_Handle = Selector.GetHandle("initWithOrderedSet:"); private static readonly IntPtr selObjectAtIndex_Handle = Selector.GetHandle("objectAtIndex:"); private static readonly IntPtr selArrayHandle = Selector.GetHandle("array"); private static readonly IntPtr selIndexOfObject_Handle = Selector.GetHandle("indexOfObject:"); private static readonly IntPtr selObjectEnumeratorHandle = Selector.GetHandle("objectEnumerator"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selContainsObject_Handle = Selector.GetHandle("containsObject:"); private static readonly IntPtr selFirstObjectHandle = Selector.GetHandle("firstObject"); private static readonly IntPtr selLastObjectHandle = Selector.GetHandle("lastObject"); private static readonly IntPtr selIsEqualToOrderedSet_Handle = Selector.GetHandle("isEqualToOrderedSet:"); private static readonly IntPtr selIntersectsOrderedSet_Handle = Selector.GetHandle("intersectsOrderedSet:"); private static readonly IntPtr selIntersectsSet_Handle = Selector.GetHandle("intersectsSet:"); private static readonly IntPtr selIsSubsetOfOrderedSet_Handle = Selector.GetHandle("isSubsetOfOrderedSet:"); private static readonly IntPtr selIsSubsetOfSet_Handle = Selector.GetHandle("isSubsetOfSet:"); private static readonly IntPtr selReversedOrderedSetHandle = Selector.GetHandle("reversedOrderedSet"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOrderedSet"); public NSObject this[int idx] => GetObject(idx); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selCountHandle); } } public NSOrderedSet(params NSObject[] objs) : this(NSArray.FromNSObjects(objs)) { } public NSOrderedSet(params object[] objs) : this(NSArray.FromObjects(objs)) { } public NSOrderedSet(params string[] strings) : this(NSArray.FromStrings(strings)) { } public T[] ToArray() where T : NSObject { return NSArray.ArrayFromHandle(_ToArray()); } public static NSOrderedSet MakeNSOrderedSet(T[] values) where T : NSObject { NSArray nSArray = NSArray.FromNSObjects(values); return (NSOrderedSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle("orderedSetWithArray:"), nSArray.Handle)); } public IEnumerator GetEnumerator() { NSEnumerator enumerator = _GetEnumerator(); while (true) { NSObject nSObject; NSObject obj = (nSObject = enumerator.NextObject()); if (nSObject != null) { yield return obj; continue; } break; } } IEnumerator IEnumerable.GetEnumerator() { NSEnumerator enumerator = _GetEnumerator(); while (true) { NSObject nSObject; NSObject obj = (nSObject = enumerator.NextObject()); if (nSObject != null) { yield return obj; continue; } break; } } public static NSOrderedSet operator +(NSOrderedSet first, NSOrderedSet second) { if (first == null) { return second; } if (second == null) { return first; } NSMutableOrderedSet nSMutableOrderedSet = new NSMutableOrderedSet(); nSMutableOrderedSet.UnionSet(second.AsSet()); return nSMutableOrderedSet; } public static NSOrderedSet operator -(NSOrderedSet first, NSOrderedSet second) { if (first == null) { return null; } if (second == null) { return first; } NSMutableOrderedSet nSMutableOrderedSet = new NSMutableOrderedSet(first); nSMutableOrderedSet.MinusSet(second.AsSet()); return nSMutableOrderedSet; } public static NSOrderedSet operator -(NSOrderedSet first, NSSet second) { if (first == null) { return null; } if (second == null) { return first; } NSMutableOrderedSet nSMutableOrderedSet = new NSMutableOrderedSet(first); nSMutableOrderedSet.MinusSet(second); return nSMutableOrderedSet; } public static bool operator ==(NSOrderedSet first, NSOrderedSet second) { return first.IsEqualToOrderedSet(second); } public static bool operator !=(NSOrderedSet first, NSOrderedSet second) { return !first.IsEqualToOrderedSet(second); } public bool Contains(object obj) { return Contains(NSObject.FromObject(obj)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSOrderedSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOrderedSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOrderedSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOrderedSet(IntPtr handle) : base(handle) { } [Export("initWithObject:")] public NSOrderedSet(NSObject start) : base(NSObjectFlag.Empty) { if (start == null) { throw new ArgumentNullException("start"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithObject_Handle, start.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithObject_Handle, start.Handle); } } [Export("initWithArray:")] internal NSOrderedSet(NSArray array) : base(NSObjectFlag.Empty) { if (array == null) { throw new ArgumentNullException("array"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithArray_Handle, array.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithArray_Handle, array.Handle); } } [Export("initWithSet:")] public NSOrderedSet(NSSet source) : base(NSObjectFlag.Empty) { if (source == null) { throw new ArgumentNullException("source"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithSet_Handle, source.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithSet_Handle, source.Handle); } } [Export("initWithOrderedSet:")] public NSOrderedSet(NSOrderedSet source) : base(NSObjectFlag.Empty) { if (source == null) { throw new ArgumentNullException("source"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithOrderedSet_Handle, source.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithOrderedSet_Handle, source.Handle); } } [Export("objectAtIndex:")] internal virtual NSObject GetObject(int idx) { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selObjectAtIndex_Handle, idx)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selObjectAtIndex_Handle, idx)); } [Export("array")] internal virtual IntPtr _ToArray() { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selArrayHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArrayHandle); } [Export("indexOfObject:")] public virtual int IndexOf(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.int_objc_msgSend_IntPtr(base.Handle, selIndexOfObject_Handle, obj.Handle); } return Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexOfObject_Handle, obj.Handle); } [Export("objectEnumerator")] internal virtual NSEnumerator _GetEnumerator() { if (IsDirectBinding) { return (NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectEnumeratorHandle)); } return (NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectEnumeratorHandle)); } [Export("set")] public virtual NSSet AsSet() { if (IsDirectBinding) { return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSetHandle)); } return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSetHandle)); } [Export("containsObject:")] public virtual bool Contains(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selContainsObject_Handle, obj.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selContainsObject_Handle, obj.Handle); } [Export("firstObject")] public virtual NSObject FirstObject() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFirstObjectHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFirstObjectHandle)); } [Export("lastObject")] public virtual NSObject LastObject() { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastObjectHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastObjectHandle)); } [Export("isEqualToOrderedSet:")] public virtual bool IsEqualToOrderedSet(NSOrderedSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToOrderedSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToOrderedSet_Handle, other.Handle); } [Export("intersectsOrderedSet:")] public virtual bool Intersects(NSOrderedSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIntersectsOrderedSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntersectsOrderedSet_Handle, other.Handle); } [Export("intersectsSet:")] public virtual bool Intersects(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIntersectsSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntersectsSet_Handle, other.Handle); } [Export("isSubsetOfOrderedSet:")] public virtual bool IsSubset(NSOrderedSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsSubsetOfOrderedSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsSubsetOfOrderedSet_Handle, other.Handle); } [Export("isSubsetOfSet:")] public virtual bool IsSubset(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsSubsetOfSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsSubsetOfSet_Handle, other.Handle); } [Export("reversedOrderedSet")] public virtual NSOrderedSet GetReverseOrderedSet() { if (IsDirectBinding) { return (NSOrderedSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReversedOrderedSetHandle)); } return (NSOrderedSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReversedOrderedSetHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOrthography.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSOrthography", true)] public class NSOrthography : NSObject { private static readonly IntPtr selDominantScriptHandle = Selector.GetHandle("dominantScript"); private static readonly IntPtr selLanguageMapHandle = Selector.GetHandle("languageMap"); private static readonly IntPtr selDominantLanguageHandle = Selector.GetHandle("dominantLanguage"); private static readonly IntPtr selAllScriptsHandle = Selector.GetHandle("allScripts"); private static readonly IntPtr selAllLanguagesHandle = Selector.GetHandle("allLanguages"); private static readonly IntPtr selLanguagesForScript_Handle = Selector.GetHandle("languagesForScript:"); private static readonly IntPtr selDominantLanguageForScript_Handle = Selector.GetHandle("dominantLanguageForScript:"); private static readonly IntPtr selInitWithDominantScriptLanguageMap_Handle = Selector.GetHandle("initWithDominantScript:languageMap:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOrthography"); private object __mt_LanguageMap_var; public override IntPtr ClassHandle => class_ptr; public virtual string DominantScript { [Export("dominantScript")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDominantScriptHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDominantScriptHandle)); } } public virtual NSDictionary LanguageMap { [Export("languageMap")] get { return (NSDictionary)(__mt_LanguageMap_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLanguageMapHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLanguageMapHandle))))); } } public virtual string DominantLanguage { [Export("dominantLanguage")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDominantLanguageHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDominantLanguageHandle)); } } public virtual string[] AllScripts { [Export("allScripts")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllScriptsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllScriptsHandle)); } } public virtual string[] AllLanguages { [Export("allLanguages")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllLanguagesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllLanguagesHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOrthography(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOrthography(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOrthography(IntPtr handle) : base(handle) { } [Export("languagesForScript:")] public virtual string[] LanguagesForScript(string script) { if (script == null) { throw new ArgumentNullException("script"); } IntPtr arg = NSString.CreateNative(script); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLanguagesForScript_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLanguagesForScript_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("dominantLanguageForScript:")] public virtual string DominantLanguageForScript(string script) { if (script == null) { throw new ArgumentNullException("script"); } IntPtr arg = NSString.CreateNative(script); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDominantLanguageForScript_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDominantLanguageForScript_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("initWithDominantScript:languageMap:")] public NSOrthography(string dominantScript, NSDictionary languageMap) : base(NSObjectFlag.Empty) { if (dominantScript == null) { throw new ArgumentNullException("dominantScript"); } IntPtr arg = NSString.CreateNative(dominantScript); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDominantScriptLanguageMap_Handle, arg, languageMap?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDominantScriptLanguageMap_Handle, arg, languageMap?.Handle ?? IntPtr.Zero); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LanguageMap_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSOutputStream.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSOutputStream", true)] public class NSOutputStream : NSStream { private const string selWriteMaxLength = "write:maxLength:"; private static readonly IntPtr selInitToMemoryHandle = Selector.GetHandle("initToMemory"); private static readonly IntPtr selHasSpaceAvailableHandle = Selector.GetHandle("hasSpaceAvailable"); private static readonly IntPtr selInitToFileAtPathAppend_Handle = Selector.GetHandle("initToFileAtPath:append:"); private static readonly IntPtr selOutputStreamToMemoryHandle = Selector.GetHandle("outputStreamToMemory"); private static readonly IntPtr selOutputStreamToFileAtPathAppend_Handle = Selector.GetHandle("outputStreamToFileAtPath:append:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSOutputStream"); public override IntPtr ClassHandle => class_ptr; public int Write(byte[] buffer, uint len) { return objc_msgSend(base.Handle, Selector.GetHandle("write:maxLength:"), buffer, len); } [DllImport("/usr/lib/libobjc.dylib")] private static extern int objc_msgSend(IntPtr handle, IntPtr sel, [In][Out] byte[] buffer, uint len); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSOutputStream(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutputStream(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSOutputStream(IntPtr handle) : base(handle) { } [Export("initToMemory")] public NSOutputStream() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, selInitToMemoryHandle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitToMemoryHandle); } } [Export("hasSpaceAvailable")] public virtual bool HasSpaceAvailable() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasSpaceAvailableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasSpaceAvailableHandle); } [Export("initToFileAtPath:append:")] public NSOutputStream(string path, bool shouldAppend) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitToFileAtPathAppend_Handle, arg, shouldAppend); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitToFileAtPathAppend_Handle, arg, shouldAppend); } NSString.ReleaseNative(arg); } [Export("outputStreamToMemory")] public static NSObject OutputStreamToMemory() { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selOutputStreamToMemoryHandle)); } [Export("outputStreamToFileAtPath:append:")] public static NSOutputStream CreateFile(string path, bool shouldAppend) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); NSOutputStream result = (NSOutputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool(class_ptr, selOutputStreamToFileAtPathAppend_Handle, arg, shouldAppend)); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPipe.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPipe", true)] public class NSPipe : NSObject { private static readonly IntPtr selFileHandleForReadingHandle = Selector.GetHandle("fileHandleForReading"); private static readonly IntPtr selFileHandleForWritingHandle = Selector.GetHandle("fileHandleForWriting"); private static readonly IntPtr selPipeHandle = Selector.GetHandle("pipe"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPipe"); private object __mt_ReadHandle_var; private object __mt_WriteHandle_var; public override IntPtr ClassHandle => class_ptr; public virtual NSFileHandle ReadHandle { [Export("fileHandleForReading")] get { return (NSFileHandle)(__mt_ReadHandle_var = ((!IsDirectBinding) ? ((NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileHandleForReadingHandle))) : ((NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileHandleForReadingHandle))))); } } public virtual NSFileHandle WriteHandle { [Export("fileHandleForWriting")] get { return (NSFileHandle)(__mt_WriteHandle_var = ((!IsDirectBinding) ? ((NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileHandleForWritingHandle))) : ((NSFileHandle)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileHandleForWritingHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPipe() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPipe(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPipe(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPipe(IntPtr handle) : base(handle) { } [Export("pipe")] public static NSPipe Create() { return (NSPipe)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPipeHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ReadHandle_var = null; __mt_WriteHandle_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPort.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPort", true)] public class NSPort : NSObject { private static readonly IntPtr selIsValidHandle = Selector.GetHandle("isValid"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selPortHandle = Selector.GetHandle("port"); private static readonly IntPtr selInvalidateHandle = Selector.GetHandle("invalidate"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPort"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsValid { [Export("isValid")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsValidHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsValidHandle); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSPortDelegate Delegate { get { return WeakDelegate as NSPortDelegate; } set { WeakDelegate = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPort(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPort(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPort(IntPtr handle) : base(handle) { } [Export("port")] public static NSPort Create() { return (NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPortHandle)); } [Export("invalidate")] public virtual void Invalidate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPortDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPortDelegate", true)] [Model] public class NSPortDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPortDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPortDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortDelegate(IntPtr handle) : base(handle) { } [Export("handlePortMessage:")] public virtual void MessageReceived(NSPortMessage message) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPortMessage.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPortMessage", true)] public class NSPortMessage : NSObject { private static readonly IntPtr selComponentsHandle = Selector.GetHandle("components"); private static readonly IntPtr selReceivePortHandle = Selector.GetHandle("receivePort"); private static readonly IntPtr selSendPortHandle = Selector.GetHandle("sendPort"); private static readonly IntPtr selMsgidHandle = Selector.GetHandle("msgid"); private static readonly IntPtr selSetMsgid_Handle = Selector.GetHandle("setMsgid:"); private static readonly IntPtr selInitWithSendPortReceivePortComponents_Handle = Selector.GetHandle("initWithSendPort:receivePort:components:"); private static readonly IntPtr selSendBeforeDate_Handle = Selector.GetHandle("sendBeforeDate:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPortMessage"); private object __mt_Components_var; private object __mt_ReceivePort_var; private object __mt_SendPort_var; public override IntPtr ClassHandle => class_ptr; public virtual NSArray Components { [Export("components")] get { return (NSArray)(__mt_Components_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selComponentsHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selComponentsHandle))))); } } public virtual NSPort ReceivePort { [Export("receivePort")] get { return (NSPort)(__mt_ReceivePort_var = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReceivePortHandle))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReceivePortHandle))))); } } public virtual NSPort SendPort { [Export("sendPort")] get { return (NSPort)(__mt_SendPort_var = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSendPortHandle))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSendPortHandle))))); } } public virtual uint MsgId { [Export("msgid")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selMsgidHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selMsgidHandle); } [Export("setMsgid:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetMsgid_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetMsgid_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPortMessage() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPortMessage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortMessage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortMessage(IntPtr handle) : base(handle) { } [Export("initWithSendPort:receivePort:components:")] public NSPortMessage(NSPort sendPort, NSPort recvPort, NSArray components) : base(NSObjectFlag.Empty) { if (sendPort == null) { throw new ArgumentNullException("sendPort"); } if (recvPort == null) { throw new ArgumentNullException("recvPort"); } if (components == null) { throw new ArgumentNullException("components"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithSendPortReceivePortComponents_Handle, sendPort.Handle, recvPort.Handle, components.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithSendPortReceivePortComponents_Handle, sendPort.Handle, recvPort.Handle, components.Handle); } } [Export("sendBeforeDate:")] public virtual bool SendBefore(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selSendBeforeDate_Handle, date.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selSendBeforeDate_Handle, date.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Components_var = null; __mt_ReceivePort_var = null; __mt_SendPort_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPortNameServer.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPortNameServer", true)] public class NSPortNameServer : NSObject { private static readonly IntPtr selSystemDefaultPortNameServerHandle = Selector.GetHandle("systemDefaultPortNameServer"); private static readonly IntPtr selPortForName_Handle = Selector.GetHandle("portForName:"); private static readonly IntPtr selPortForNameHost_Handle = Selector.GetHandle("portForName:host:"); private static readonly IntPtr selRegisterPortName_Handle = Selector.GetHandle("registerPort:name:"); private static readonly IntPtr selRemovePortForName_Handle = Selector.GetHandle("removePortForName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPortNameServer"); private static object __mt_SystemDefault_var_static; public override IntPtr ClassHandle => class_ptr; public static NSPortNameServer SystemDefault { [Export("systemDefaultPortNameServer")] get { return (NSPortNameServer)(__mt_SystemDefault_var_static = (NSPortNameServer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSystemDefaultPortNameServerHandle))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPortNameServer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortNameServer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPortNameServer(IntPtr handle) : base(handle) { } [Export("portForName:")] public virtual NSPort GetPort(string portName) { if (portName == null) { throw new ArgumentNullException("portName"); } IntPtr arg = NSString.CreateNative(portName); NSPort result = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPortForName_Handle, arg))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPortForName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("portForName:host:")] public virtual NSPort GetPort(string portName, string hostName) { if (portName == null) { throw new ArgumentNullException("portName"); } if (hostName == null) { throw new ArgumentNullException("hostName"); } IntPtr arg = NSString.CreateNative(portName); IntPtr arg2 = NSString.CreateNative(hostName); NSPort result = ((!IsDirectBinding) ? ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selPortForNameHost_Handle, arg, arg2))) : ((NSPort)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selPortForNameHost_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("registerPort:name:")] public virtual bool RegisterPort(NSPort port, string portName) { if (port == null) { throw new ArgumentNullException("port"); } if (portName == null) { throw new ArgumentNullException("portName"); } IntPtr arg = NSString.CreateNative(portName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRegisterPortName_Handle, port.Handle, arg) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRegisterPortName_Handle, port.Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("removePortForName:")] public virtual bool RemovePort(string portName) { if (portName == null) { throw new ArgumentNullException("portName"); } IntPtr arg = NSString.CreateNative(portName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemovePortForName_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selRemovePortForName_Handle, arg)); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPostingStyle.cs ================================================ namespace Foundation; public enum NSPostingStyle : ulong { PostWhenIdle = 1uL, PostASAP, Now } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPredicate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPredicate", true)] public class NSPredicate : NSObject { private static readonly IntPtr selPredicateFormatHandle = Selector.GetHandle("predicateFormat"); private static readonly IntPtr selPredicateWithFormatArgumentArray_Handle = Selector.GetHandle("predicateWithFormat:argumentArray:"); private static readonly IntPtr selPredicateWithValue_Handle = Selector.GetHandle("predicateWithValue:"); private static readonly IntPtr selPredicateWithBlock_Handle = Selector.GetHandle("predicateWithBlock:"); private static readonly IntPtr selPredicateWithSubstitutionVariables_Handle = Selector.GetHandle("predicateWithSubstitutionVariables:"); private static readonly IntPtr selEvaluateWithObject_Handle = Selector.GetHandle("evaluateWithObject:"); private static readonly IntPtr selEvaluateWithObjectSubstitutionVariables_Handle = Selector.GetHandle("evaluateWithObject:substitutionVariables:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPredicate"); public override IntPtr ClassHandle => class_ptr; public virtual string PredicateFormat { [Export("predicateFormat")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPredicateFormatHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPredicateFormatHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPredicate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPredicate(IntPtr handle) : base(handle) { } [Export("predicateWithFormat:argumentArray:")] public static NSPredicate FromFormat(string predicateFormat, NSObject[] arguments) { if (predicateFormat == null) { throw new ArgumentNullException("predicateFormat"); } if (arguments == null) { throw new ArgumentNullException("arguments"); } IntPtr arg = NSString.CreateNative(predicateFormat); NSArray nSArray = NSArray.FromNSObjects(arguments); NSPredicate result = (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selPredicateWithFormatArgumentArray_Handle, arg, nSArray.Handle)); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("predicateWithValue:")] public static NSPredicate FromValue(bool value) { return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(class_ptr, selPredicateWithValue_Handle, value)); } [Export("predicateWithBlock:")] public unsafe static NSPredicate FromExpression(NSPredicateEvaluator evaluator) { if (evaluator == null) { throw new ArgumentNullException("evaluator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSPredicateEvaluator.Handler, evaluator); NSPredicate result = (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPredicateWithBlock_Handle, (IntPtr)ptr)); ptr->CleanupBlock(); return result; } [Export("predicateWithSubstitutionVariables:")] public virtual NSPredicate PredicateWithSubstitutionVariables(NSDictionary substitutionVariables) { if (substitutionVariables == null) { throw new ArgumentNullException("substitutionVariables"); } if (IsDirectBinding) { return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPredicateWithSubstitutionVariables_Handle, substitutionVariables.Handle)); } return (NSPredicate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPredicateWithSubstitutionVariables_Handle, substitutionVariables.Handle)); } [Export("evaluateWithObject:")] public virtual bool EvaluateWithObject(NSObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selEvaluateWithObject_Handle, obj.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selEvaluateWithObject_Handle, obj.Handle); } [Export("evaluateWithObject:substitutionVariables:")] public virtual bool EvaluateWithObject(NSObject obj, NSDictionary substitutionVariables) { if (obj == null) { throw new ArgumentNullException("obj"); } if (substitutionVariables == null) { throw new ArgumentNullException("substitutionVariables"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selEvaluateWithObjectSubstitutionVariables_Handle, obj.Handle, substitutionVariables.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selEvaluateWithObjectSubstitutionVariables_Handle, obj.Handle, substitutionVariables.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPredicateEvaluator.cs ================================================ namespace Foundation; public delegate bool NSPredicateEvaluator(NSObject evaluatedObject, NSDictionary bindings); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPredicateOperatorType.cs ================================================ namespace Foundation; public enum NSPredicateOperatorType : ulong { LessThan = 0uL, LessThanOrEqualTo = 1uL, GreaterThan = 2uL, GreaterThanOrEqualTo = 3uL, EqualTo = 4uL, NotEqualTo = 5uL, Matches = 6uL, Like = 7uL, BeginsWith = 8uL, EndsWith = 9uL, In = 10uL, CustomSelector = 11uL, Contains = 99uL, Between = 100uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSProcessInfo.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSProcessInfo", true)] public class NSProcessInfo : NSObject { private static readonly IntPtr selProcessInfoHandle = Selector.GetHandle("processInfo"); private static readonly IntPtr selArgumentsHandle = Selector.GetHandle("arguments"); private static readonly IntPtr selEnvironmentHandle = Selector.GetHandle("environment"); private static readonly IntPtr selProcessIdentifierHandle = Selector.GetHandle("processIdentifier"); private static readonly IntPtr selGloballyUniqueStringHandle = Selector.GetHandle("globallyUniqueString"); private static readonly IntPtr selProcessNameHandle = Selector.GetHandle("processName"); private static readonly IntPtr selSetProcessName_Handle = Selector.GetHandle("setProcessName:"); private static readonly IntPtr selHostNameHandle = Selector.GetHandle("hostName"); private static readonly IntPtr selOperatingSystemHandle = Selector.GetHandle("operatingSystem"); private static readonly IntPtr selOperatingSystemNameHandle = Selector.GetHandle("operatingSystemName"); private static readonly IntPtr selOperatingSystemVersionStringHandle = Selector.GetHandle("operatingSystemVersionString"); private static readonly IntPtr selPhysicalMemoryHandle = Selector.GetHandle("physicalMemory"); private static readonly IntPtr selProcessorCountHandle = Selector.GetHandle("processorCount"); private static readonly IntPtr selActiveProcessorCountHandle = Selector.GetHandle("activeProcessorCount"); private static readonly IntPtr selSystemUptimeHandle = Selector.GetHandle("systemUptime"); private static readonly IntPtr selAutomaticTerminationSupportEnabledHandle = Selector.GetHandle("automaticTerminationSupportEnabled"); private static readonly IntPtr selSetAutomaticTerminationSupportEnabled_Handle = Selector.GetHandle("setAutomaticTerminationSupportEnabled:"); private static readonly IntPtr selEnableSuddenTerminationHandle = Selector.GetHandle("enableSuddenTermination"); private static readonly IntPtr selDisableSuddenTerminationHandle = Selector.GetHandle("disableSuddenTermination"); private static readonly IntPtr selEnableAutomaticTermination_Handle = Selector.GetHandle("enableAutomaticTermination:"); private static readonly IntPtr selDisableAutomaticTermination_Handle = Selector.GetHandle("disableAutomaticTermination:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSProcessInfo"); private static object __mt_ProcessInfo_var_static; private object __mt_Environment_var; public override IntPtr ClassHandle => class_ptr; public static NSProcessInfo ProcessInfo { [Export("processInfo")] get { return (NSProcessInfo)(__mt_ProcessInfo_var_static = (NSProcessInfo)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selProcessInfoHandle))); } } public virtual string[] Arguments { [Export("arguments")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selArgumentsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArgumentsHandle)); } } public virtual NSDictionary Environment { [Export("environment")] get { return (NSDictionary)(__mt_Environment_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEnvironmentHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEnvironmentHandle))))); } } public virtual int ProcessIdentifier { [Export("processIdentifier")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selProcessIdentifierHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selProcessIdentifierHandle); } } public virtual string GloballyUniqueString { [Export("globallyUniqueString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selGloballyUniqueStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGloballyUniqueStringHandle)); } } public virtual string ProcessName { [Export("processName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selProcessNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProcessNameHandle)); } [Export("setProcessName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetProcessName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetProcessName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string HostName { [Export("hostName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHostNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHostNameHandle)); } } public virtual ulong OperatingSystem { [Export("operatingSystem")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selOperatingSystemHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selOperatingSystemHandle); } } public virtual string OperatingSystemName { [Export("operatingSystemName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOperatingSystemNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOperatingSystemNameHandle)); } } public virtual string OperatingSystemVersionString { [Export("operatingSystemVersionString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOperatingSystemVersionStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOperatingSystemVersionStringHandle)); } } public virtual ulong PhysicalMemory { [Export("physicalMemory")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selPhysicalMemoryHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPhysicalMemoryHandle); } } public virtual ulong ProcessorCount { [Export("processorCount")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selProcessorCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selProcessorCountHandle); } } public virtual ulong ActiveProcessorCount { [Export("activeProcessorCount")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selActiveProcessorCountHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selActiveProcessorCountHandle); } } public virtual double SystemUptime { [Export("systemUptime")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selSystemUptimeHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selSystemUptimeHandle); } } public virtual bool AutomaticTerminationSupportEnabled { [Export("automaticTerminationSupportEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticTerminationSupportEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticTerminationSupportEnabledHandle); } [Export("setAutomaticTerminationSupportEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticTerminationSupportEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticTerminationSupportEnabled_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSProcessInfo() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSProcessInfo(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSProcessInfo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSProcessInfo(IntPtr handle) : base(handle) { } [Export("enableSuddenTermination")] public virtual void EnableSuddenTermination() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableSuddenTerminationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableSuddenTerminationHandle); } } [Export("disableSuddenTermination")] public virtual void DisableSuddenTermination() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableSuddenTerminationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableSuddenTerminationHandle); } } [Export("enableAutomaticTermination:")] public virtual void EnableAutomaticTermination(string reason) { if (reason == null) { throw new ArgumentNullException("reason"); } IntPtr arg = NSString.CreateNative(reason); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selEnableAutomaticTermination_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selEnableAutomaticTermination_Handle, arg); } NSString.ReleaseNative(arg); } [Export("disableAutomaticTermination:")] public virtual void DisableAutomaticTermination(string reason) { if (reason == null) { throw new ArgumentNullException("reason"); } IntPtr arg = NSString.CreateNative(reason); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDisableAutomaticTermination_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDisableAutomaticTermination_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Environment_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPropertyListFormat.cs ================================================ namespace Foundation; public enum NSPropertyListFormat : ulong { OpenStep = 1uL, Xml = 100uL, Binary = 200uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPropertyListMutabilityOptions.cs ================================================ namespace Foundation; public enum NSPropertyListMutabilityOptions : ulong { Immutable, MutableContainers, MutableContainersAndLeaves } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPropertyListReadOptions.cs ================================================ namespace Foundation; public enum NSPropertyListReadOptions : ulong { Immutable, MutableContainers, MutableContainersAndLeaves } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPropertyListSerialization.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSPropertyListSerialization", true)] public class NSPropertyListSerialization : NSObject { private static readonly IntPtr selDataWithPropertyListFormatOptionsError_Handle = Selector.GetHandle("dataWithPropertyList:format:options:error:"); private static readonly IntPtr selWritePropertyListToStreamFormatOptionsError_Handle = Selector.GetHandle("writePropertyList:toStream:format:options:error:"); private static readonly IntPtr selPropertyListWithDataOptionsFormatError_Handle = Selector.GetHandle("propertyListWithData:options:format:error:"); private static readonly IntPtr selPropertyListWithStreamOptionsFormatError_Handle = Selector.GetHandle("propertyListWithStream:options:format:error:"); private static readonly IntPtr selPropertyListIsValidForFormat_Handle = Selector.GetHandle("propertyList:isValidForFormat:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSPropertyListSerialization"); public override IntPtr ClassHandle => class_ptr; public static NSData DataWithPropertyList(NSObject plist, NSPropertyListFormat format, out NSError error) { return DataWithPropertyList(plist, format, NSPropertyListWriteOptions.Immutable, out error); } public static int WritePropertyList(NSObject plist, NSOutputStream stream, NSPropertyListFormat format, out NSError error) { return WritePropertyList(plist, stream, format, NSPropertyListWriteOptions.Immutable, out error); } public static NSObject PropertyListWithData(NSData data, ref NSPropertyListFormat format, out NSError error) { return PropertyListWithData(data, NSPropertyListReadOptions.Immutable, ref format, out error); } public static NSObject PropertyListWithStream(NSInputStream stream, ref NSPropertyListFormat format, out NSError error) { return PropertyListWithStream(stream, NSPropertyListReadOptions.Immutable, ref format, out error); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPropertyListSerialization(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyListSerialization(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPropertyListSerialization(IntPtr handle) : base(handle) { } [Export("dataWithPropertyList:format:options:error:")] public static NSData DataWithPropertyList(NSObject plist, NSPropertyListFormat format, NSPropertyListWriteOptions options, out NSError error) { if (plist == null) { throw new ArgumentNullException("plist"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr(class_ptr, selDataWithPropertyListFormatOptionsError_Handle, plist.Handle, (ulong)format, (ulong)options, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writePropertyList:toStream:format:options:error:")] public static int WritePropertyList(NSObject plist, NSOutputStream stream, NSPropertyListFormat format, NSPropertyListWriteOptions options, out NSError error) { if (plist == null) { throw new ArgumentNullException("plist"); } if (stream == null) { throw new ArgumentNullException("stream"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); int result = Messaging.int_objc_msgSend_IntPtr_IntPtr_UInt64_UInt64_IntPtr(class_ptr, selWritePropertyListToStreamFormatOptionsError_Handle, plist.Handle, stream.Handle, (ulong)format, (ulong)options, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("propertyListWithData:options:format:error:")] public static NSObject PropertyListWithData(NSData data, NSPropertyListReadOptions options, ref NSPropertyListFormat format, out NSError error) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_out_NSPropertyListFormat_IntPtr(class_ptr, selPropertyListWithDataOptionsFormatError_Handle, data.Handle, (ulong)options, out format, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return nSObject; } [Export("propertyListWithStream:options:format:error:")] public static NSObject PropertyListWithStream(NSInputStream stream, NSPropertyListReadOptions options, ref NSPropertyListFormat format, out NSError error) { if (stream == null) { throw new ArgumentNullException("stream"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_out_NSPropertyListFormat_IntPtr(class_ptr, selPropertyListWithStreamOptionsFormatError_Handle, stream.Handle, (ulong)options, out format, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return nSObject; } [Export("propertyList:isValidForFormat:")] public static bool IsValidForFormat(NSObject plist, NSPropertyListFormat format) { if (plist == null) { throw new ArgumentNullException("plist"); } return Messaging.bool_objc_msgSend_IntPtr_UInt64(class_ptr, selPropertyListIsValidForFormat_Handle, plist.Handle, (ulong)format); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPropertyListWriteOptions.cs ================================================ namespace Foundation; public enum NSPropertyListWriteOptions : ulong { Immutable, MutableContainers, MutableContainersAndLeaves } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSProxy.cs ================================================ using System.ComponentModel; namespace Foundation; [EditorBrowsable(EditorBrowsableState.Never)] [Register("NSProxy", true)] internal abstract class NSProxy : NSObject { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSPurgeableData.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSPurgeableData", true)] public class NSPurgeableData : NSMutableData { private static readonly IntPtr class_ptr = Class.GetHandle("NSPurgeableData"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSPurgeableData() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSPurgeableData(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPurgeableData(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSPurgeableData(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSRange.cs ================================================ namespace Foundation; public struct NSRange { public ulong Location; public ulong Length; public const ulong NotFound = ulong.MaxValue; public NSRange(ulong start, ulong len) { Location = start; Length = len; } public NSRange(int start, int len) { Location = (ulong)start; Length = (ulong)len; } public override string ToString() { return $"[Location={Location},Length={Length}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSRangeIterator.cs ================================================ namespace Foundation; public delegate void NSRangeIterator(NSRange range, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSRoundingMode.cs ================================================ namespace Foundation; public enum NSRoundingMode : ulong { Plain, Down, Up, Bankers } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSRunLoop.cs ================================================ using System; using System.ComponentModel; using CoreFoundation; using ObjCRuntime; namespace Foundation; [Register("NSRunLoop", true)] public class NSRunLoop : NSObject { private static readonly IntPtr selCurrentRunLoopHandle = Selector.GetHandle("currentRunLoop"); private static readonly IntPtr selMainRunLoopHandle = Selector.GetHandle("mainRunLoop"); private static readonly IntPtr selCurrentModeHandle = Selector.GetHandle("currentMode"); private static readonly IntPtr selGetCFRunLoopHandle = Selector.GetHandle("getCFRunLoop"); private static readonly IntPtr selAddTimerForMode_Handle = Selector.GetHandle("addTimer:forMode:"); private static readonly IntPtr selLimitDateForMode_Handle = Selector.GetHandle("limitDateForMode:"); private static readonly IntPtr selAcceptInputForModeBeforeDate_Handle = Selector.GetHandle("acceptInputForMode:beforeDate:"); private static readonly IntPtr selRunHandle = Selector.GetHandle("run"); private static readonly IntPtr selRunUntilDate_Handle = Selector.GetHandle("runUntilDate:"); private static readonly IntPtr selRunModeBeforeDate_Handle = Selector.GetHandle("runMode:beforeDate:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSRunLoop"); [ThreadStatic] private static object __mt_Current_var_static; private static object __mt_Main_var_static; private object __mt_CurrentMode_var; private static NSString _NSDefaultRunLoopMode; private static NSString _NSRunLoopCommonModes; private static NSString _NSRunLoopConnectionReplyMode; private static NSString _NSRunLoopModalPanelMode; private static NSString _NSRunLoopEventTracking; public NSRunLoopMode CurrentRunLoopMode { get { NSString currentMode = CurrentMode; if (currentMode == NSDefaultRunLoopMode) { return NSRunLoopMode.Default; } if (currentMode == NSRunLoopCommonModes) { return NSRunLoopMode.Common; } if (currentMode == NSRunLoopConnectionReplyMode) { return NSRunLoopMode.ConnectionReply; } if (currentMode == NSRunLoopModalPanelMode) { return NSRunLoopMode.ModalPanel; } if (currentMode == NSRunLoopEventTracking) { return NSRunLoopMode.EventTracking; } return NSRunLoopMode.Other; } } public override IntPtr ClassHandle => class_ptr; public static NSRunLoop Current { [Export("currentRunLoop")] get { return (NSRunLoop)(__mt_Current_var_static = (NSRunLoop)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentRunLoopHandle))); } } public static NSRunLoop Main { [Export("mainRunLoop")] get { return (NSRunLoop)(__mt_Main_var_static = (NSRunLoop)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMainRunLoopHandle))); } } public virtual NSString CurrentMode { [Export("currentMode")] get { return (NSString)(__mt_CurrentMode_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentModeHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentModeHandle))))); } } [Field("NSDefaultRunLoopMode", "Foundation")] public static NSString NSDefaultRunLoopMode { get { if (_NSDefaultRunLoopMode == null) { _NSDefaultRunLoopMode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSDefaultRunLoopMode"); } return _NSDefaultRunLoopMode; } } [Field("NSRunLoopCommonModes", "Foundation")] public static NSString NSRunLoopCommonModes { get { if (_NSRunLoopCommonModes == null) { _NSRunLoopCommonModes = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSRunLoopCommonModes"); } return _NSRunLoopCommonModes; } } [Field("NSConnectionReplyMode", "Foundation")] public static NSString NSRunLoopConnectionReplyMode { get { if (_NSRunLoopConnectionReplyMode == null) { _NSRunLoopConnectionReplyMode = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSConnectionReplyMode"); } return _NSRunLoopConnectionReplyMode; } } [Field("NSModalPanelRunLoopMode", "AppKit")] public static NSString NSRunLoopModalPanelMode { get { if (_NSRunLoopModalPanelMode == null) { _NSRunLoopModalPanelMode = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSModalPanelRunLoopMode"); } return _NSRunLoopModalPanelMode; } } [Field("NSEventTrackingRunLoopMode", "AppKit")] public static NSString NSRunLoopEventTracking { get { if (_NSRunLoopEventTracking == null) { _NSRunLoopEventTracking = Dlfcn.GetStringConstant(Libraries.AppKit.Handle, "NSEventTrackingRunLoopMode"); } return _NSRunLoopEventTracking; } } private static NSString GetRealMode(string mode) { if (mode == NSDefaultRunLoopMode) { return NSDefaultRunLoopMode; } if (mode == NSRunLoopCommonModes) { return NSRunLoopCommonModes; } return new NSString(mode); } private static NSString FromEnum(NSRunLoopMode mode) { return mode switch { NSRunLoopMode.Common => NSRunLoopCommonModes, NSRunLoopMode.ConnectionReply => NSRunLoopConnectionReplyMode, NSRunLoopMode.ModalPanel => NSRunLoopModalPanelMode, NSRunLoopMode.EventTracking => NSRunLoopEventTracking, _ => NSDefaultRunLoopMode, }; } [Advice("Use AddTimer (NSTimer, NSRunLoopMode)")] public void AddTimer(NSTimer timer, string forMode) { AddTimer(timer, GetRealMode(forMode)); } public void AddTimer(NSTimer timer, NSRunLoopMode forMode) { AddTimer(timer, FromEnum(forMode)); } [Advice("Use LimitDateForMode (NSRunLoopMode) instead")] public NSDate LimitDateForMode(string mode) { return LimitDateForMode(GetRealMode(mode)); } public NSDate LimitDateForMode(NSRunLoopMode mode) { return LimitDateForMode(FromEnum(mode)); } [Advice("Use AcceptInputForMode (NSRunLoopMode, NSDate)")] public void AcceptInputForMode(string mode, NSDate limitDate) { AcceptInputForMode(GetRealMode(mode), limitDate); } public void AcceptInputForMode(NSRunLoopMode mode, NSDate limitDate) { AcceptInputForMode(FromEnum(mode), limitDate); } public void Stop() { GetCFRunLoop().Stop(); } public void WakeUp() { GetCFRunLoop().WakeUp(); } public bool RunUntil(NSRunLoopMode mode, NSDate limitDate) { return RunUntil(FromEnum(mode), limitDate); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSRunLoop(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRunLoop(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSRunLoop(IntPtr handle) : base(handle) { } [Export("getCFRunLoop")] public virtual CFRunLoop GetCFRunLoop() { if (IsDirectBinding) { return new CFRunLoop(Messaging.IntPtr_objc_msgSend(base.Handle, selGetCFRunLoopHandle)); } return new CFRunLoop(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGetCFRunLoopHandle)); } [Export("addTimer:forMode:")] public virtual void AddTimer(NSTimer timer, NSString forMode) { if (timer == null) { throw new ArgumentNullException("timer"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddTimerForMode_Handle, timer.Handle, forMode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddTimerForMode_Handle, timer.Handle, forMode.Handle); } } [Export("limitDateForMode:")] public virtual NSDate LimitDateForMode(NSString mode) { if (mode == null) { throw new ArgumentNullException("mode"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLimitDateForMode_Handle, mode.Handle)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLimitDateForMode_Handle, mode.Handle)); } [Export("acceptInputForMode:beforeDate:")] public virtual void AcceptInputForMode(NSString mode, NSDate limitDate) { if (mode == null) { throw new ArgumentNullException("mode"); } if (limitDate == null) { throw new ArgumentNullException("limitDate"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAcceptInputForModeBeforeDate_Handle, mode.Handle, limitDate.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAcceptInputForModeBeforeDate_Handle, mode.Handle, limitDate.Handle); } } [Export("run")] public virtual void Run() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRunHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRunHandle); } } [Export("runUntilDate:")] public virtual void RunUntil(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRunUntilDate_Handle, date.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunUntilDate_Handle, date.Handle); } } [Export("runMode:beforeDate:")] public virtual bool RunUntil(NSString runLoopMode, NSDate limitdate) { if (runLoopMode == null) { throw new ArgumentNullException("runLoopMode"); } if (limitdate == null) { throw new ArgumentNullException("limitdate"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selRunModeBeforeDate_Handle, runLoopMode.Handle, limitdate.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRunModeBeforeDate_Handle, runLoopMode.Handle, limitdate.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_CurrentMode_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSRunLoopMode.cs ================================================ namespace Foundation; public enum NSRunLoopMode { Default = 0, Common = 1, ConnectionReply = 2, ModalPanel = 3, EventTracking = 4, Other = 1000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSearchPath.cs ================================================ using System; using System.Runtime.InteropServices; namespace Foundation; public static class NSSearchPath { public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde = true) { return NSArray.StringArrayFromHandle(NSSearchPathForDirectoriesInDomains(directory, domainMask, expandTilde)); } [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation")] private static extern IntPtr NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSearchPathDirectory.cs ================================================ namespace Foundation; public enum NSSearchPathDirectory : ulong { ApplicationDirectory = 1uL, DemoApplicationDirectory = 2uL, DeveloperApplicationDirectory = 3uL, AdminApplicationDirectory = 4uL, LibraryDirectory = 5uL, DeveloperDirectory = 6uL, UserDirectory = 7uL, DocumentationDirectory = 8uL, DocumentDirectory = 9uL, CoreServiceDirectory = 10uL, AutosavedInformationDirectory = 11uL, DesktopDirectory = 12uL, CachesDirectory = 13uL, ApplicationSupportDirectory = 14uL, DownloadsDirectory = 15uL, InputMethodsDirectory = 16uL, MoviesDirectory = 17uL, MusicDirectory = 18uL, PicturesDirectory = 19uL, PrinterDescriptionDirectory = 20uL, SharedPublicDirectory = 21uL, PreferencePanesDirectory = 22uL, ApplicationScriptsDirectory = 23uL, ItemReplacementDirectory = 99uL, AllApplicationsDirectory = 100uL, AllLibrariesDirectory = 101uL, TrashDirectory = 102uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSearchPathDomain.cs ================================================ using System; namespace Foundation; [Flags] public enum NSSearchPathDomain : ulong { None = 0uL, User = 1uL, Local = 2uL, Network = 4uL, System = 8uL, All = 0xFFFFuL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSet.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSSet", true)] public class NSSet : NSObject, IEnumerable, IEnumerable { internal const string selSetWithArray = "setWithArray:"; private static readonly IntPtr selCountHandle = Selector.GetHandle("count"); private static readonly IntPtr selAnyObjectHandle = Selector.GetHandle("anyObject"); private static readonly IntPtr selSetHandle = Selector.GetHandle("set"); private static readonly IntPtr selInitWithSet_Handle = Selector.GetHandle("initWithSet:"); private static readonly IntPtr selInitWithArray_Handle = Selector.GetHandle("initWithArray:"); private static readonly IntPtr selContainsObject_Handle = Selector.GetHandle("containsObject:"); private static readonly IntPtr selAllObjectsHandle = Selector.GetHandle("allObjects"); private static readonly IntPtr selIsEqualToSet_Handle = Selector.GetHandle("isEqualToSet:"); private static readonly IntPtr selObjectEnumeratorHandle = Selector.GetHandle("objectEnumerator"); private static readonly IntPtr selIsSubsetOfSet_Handle = Selector.GetHandle("isSubsetOfSet:"); private static readonly IntPtr selEnumerateObjectsUsingBlock_Handle = Selector.GetHandle("enumerateObjectsUsingBlock:"); private static readonly IntPtr selSetByAddingObjectsFromSet_Handle = Selector.GetHandle("setByAddingObjectsFromSet:"); private static readonly IntPtr selIntersectsSet_Handle = Selector.GetHandle("intersectsSet:"); #region private const string selMember_ = "member:"; private static readonly IntPtr selMember_Handle = Selector.GetHandle(selMember_); private const string selSetWithArray_ = "setWithArray:"; private static readonly IntPtr selSetWithArray_Handle = Selector.GetHandle(selSetWithArray_); #endregion private static readonly IntPtr class_ptr = Class.GetHandle("NSSet"); private object __mt_AnyObject_var; public override IntPtr ClassHandle => class_ptr; public virtual ulong Count { [Export("count")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(Handle, selCountHandle); } return Messaging.UInt64_objc_msgSendSuper(SuperHandle, selCountHandle); } } public virtual NSObject AnyObject { [Export("anyObject")] get { return (NSObject)(__mt_AnyObject_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAnyObjectHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selAnyObjectHandle)))); } } internal IntPtr _AnyObject { get { if (IsDirectBinding) return Messaging.IntPtr_objc_msgSend(Handle, selAnyObjectHandle); return Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAnyObjectHandle); } } public NSSet(params NSObject[] objs) : this(NSArray.FromNSObjects(objs)) { } public NSSet(params object[] objs) : this(NSArray.FromObjects(objs)) { } public NSSet(params string[] strings) : this(NSArray.FromStrings(strings)) { } public T[] ToArray() where T : NSObject { return NSArray.ArrayFromHandle(_AllObjects()); } public static NSSet MakeNSObjectSet(T[] values) where T : NSObject { NSArray nSArray = NSArray.FromNSObjects(values); return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle("setWithArray:"), nSArray.Handle)); } public IEnumerator GetEnumerator() { NSEnumerator enumerator = _GetEnumerator(); while (true) { NSObject nSObject; NSObject obj = (nSObject = enumerator.NextObject()); if (nSObject != null) { yield return obj; continue; } break; } } IEnumerator IEnumerable.GetEnumerator() { NSEnumerator enumerator = _GetEnumerator(); while (true) { NSObject nSObject; NSObject obj = (nSObject = enumerator.NextObject()); if (nSObject != null) { yield return obj; continue; } break; } } public static NSSet operator +(NSSet first, NSSet second) { if (first == null) { return second; } if (second == null) { return first; } return first.SetByAddingObjectsFromSet(second); } public static NSSet operator -(NSSet first, NSSet second) { if (first == null) { return null; } if (second == null) { return first; } NSMutableSet nSMutableSet = new NSMutableSet(first); nSMutableSet.MinusSet(second); return nSMutableSet; } public bool Contains(object obj) { return Contains(NSObject.FromObject(obj)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSet() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend(Handle, Selector.Init); } else { Handle = Messaging.IntPtr_objc_msgSendSuper(SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSet(IntPtr handle) : base(handle) { } [Export("set")] public static NSSet CreateSet() { return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSetHandle)); } [Export("initWithSet:")] public NSSet(NSSet other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithSet_Handle, other.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithSet_Handle, other.Handle); } } [Export("initWithArray:")] public NSSet(NSArray other) : base(NSObjectFlag.Empty) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { Handle = Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithArray_Handle, other.Handle); } else { Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithArray_Handle, other.Handle); } } [Export("containsObject:")] public virtual bool Contains(NSObject id) { if (id == null) { throw new ArgumentNullException("id"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selContainsObject_Handle, id.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selContainsObject_Handle, id.Handle); } [Export("allObjects")] internal virtual IntPtr _AllObjects() { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(Handle, selAllObjectsHandle); } return Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAllObjectsHandle); } [Export("isEqualToSet:")] public virtual bool IsEqualToSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selIsEqualToSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selIsEqualToSet_Handle, other.Handle); } [Export("objectEnumerator")] internal virtual NSEnumerator _GetEnumerator() { if (IsDirectBinding) { return (NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selObjectEnumeratorHandle)); } return (NSEnumerator)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selObjectEnumeratorHandle)); } [Export("isSubsetOfSet:")] public virtual bool IsSubsetOf(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selIsSubsetOfSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selIsSubsetOfSet_Handle, other.Handle); } [Export("enumerateObjectsUsingBlock:")] public unsafe virtual void Enumerate(NSSetEnumerator enumerator) { if (enumerator == null) { throw new ArgumentNullException("enumerator"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSSetEnumerator.Handler, enumerator); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selEnumerateObjectsUsingBlock_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selEnumerateObjectsUsingBlock_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } [Export("setByAddingObjectsFromSet:")] internal virtual NSSet SetByAddingObjectsFromSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selSetByAddingObjectsFromSet_Handle, other.Handle)); } return (NSSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selSetByAddingObjectsFromSet_Handle, other.Handle)); } [Export("intersectsSet:")] public virtual bool IntersectsSet(NSSet other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selIntersectsSet_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selIntersectsSet_Handle, other.Handle); } #region public T[] ToNativeArray() where T : class, INativeObject { IntPtr intPtr = _AllObjects(); return NSArray.ArrayFromNativeHandle(intPtr); } public static NSSet MakeNativeSet(T[] values) where T : class, INativeObject { using NSArray nSArray = NSArray.FromNativeObjectsTx(values); return Runtime.GetNativeObject(_SetWithArray(nSArray.Handle)); } [Export("setWithArray:")] internal static IntPtr _SetWithArray(IntPtr array) { return Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSetWithArray_Handle, array); } internal IntPtr _LookupMember(IntPtr probe) { return Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selMember_Handle, probe); } internal bool _Contains(IntPtr id) { return Messaging.bool_objc_msgSend_IntPtr(Handle, selContainsObject_Handle, id); } internal IntPtr _SetByAddingObjectsFromSet(IntPtr other) { return Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetByAddingObjectsFromSet_Handle, other); } #endregion protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) { __mt_AnyObject_var = null; } } } [Register("NSSet", SkipRegistration = true)] public sealed class NSSet : NSSet, IEnumerable, IEnumerable where TKey : class, INativeObject { public new TKey AnyObject => Runtime.GetNativeObject(_AnyObject); public NSSet() { } public NSSet(NSCoder coder) : base(coder) { } internal NSSet(IntPtr handle) : base(handle) { } public NSSet(params TKey[] objs) : base(objs) { } public NSSet(NSSet other) : base(other) { } public NSSet(NSMutableSet other) : base(other) { } public TKey LookupMember(TKey probe) { if (probe == null) throw new ArgumentNullException("probe"); return Runtime.GetNativeObject(_LookupMember(probe.Handle)); } public bool Contains(TKey obj) { if (obj == null) { throw new ArgumentNullException("obj"); } return _Contains(obj.Handle); } public TKey[] ToArray() { return ToNativeArray(); } public static NSSet operator +(NSSet first, NSSet second) { if (first == null || first.Count == (byte)0) { return new NSSet(second); } if (second == null || second.Count == (byte)0) { return new NSSet(first); } return new NSSet(first._SetByAddingObjectsFromSet(second.Handle)); } public static NSSet operator -(NSSet first, NSSet second) { if (first == null || first.Count == (byte)0) { return null; } if (second == null || second.Count == (byte)0) { return new NSSet(first); } NSMutableSet nSMutableSet = new NSMutableSet(first); nSMutableSet.MinusSet(second); return new NSSet(nSMutableSet); } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return new NSFastEnumerator(this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSetEnumerator.cs ================================================ namespace Foundation; public delegate void NSSetEnumerator(NSObject obj, ref bool stop); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSortDescriptor.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSSortDescriptor", true)] public class NSSortDescriptor : NSObject { private static readonly IntPtr selKeyHandle = Selector.GetHandle("key"); private static readonly IntPtr selAscendingHandle = Selector.GetHandle("ascending"); private static readonly IntPtr selSelectorHandle = Selector.GetHandle("selector"); private static readonly IntPtr selReversedSortDescriptorHandle = Selector.GetHandle("reversedSortDescriptor"); private static readonly IntPtr selInitWithKeyAscending_Handle = Selector.GetHandle("initWithKey:ascending:"); private static readonly IntPtr selInitWithKeyAscendingSelector_Handle = Selector.GetHandle("initWithKey:ascending:selector:"); private static readonly IntPtr selCompareObjectToObject_Handle = Selector.GetHandle("compareObject:toObject:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSSortDescriptor"); private object __mt_ReversedSortDescriptor_var; public override IntPtr ClassHandle => class_ptr; public virtual string Key { [Export("key")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selKeyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selKeyHandle)); } } public virtual bool Ascending { [Export("ascending")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAscendingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAscendingHandle); } } public virtual Selector Selector { [Export("selector")] get { if (IsDirectBinding) { return Selector.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectorHandle)); } return Selector.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectorHandle)); } } public virtual NSObject ReversedSortDescriptor { [Export("reversedSortDescriptor")] get { return (NSObject)(__mt_ReversedSortDescriptor_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReversedSortDescriptorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReversedSortDescriptorHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSSortDescriptor() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSSortDescriptor(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSortDescriptor(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSSortDescriptor(IntPtr handle) : base(handle) { } [Export("initWithKey:ascending:")] public NSSortDescriptor(string key, bool ascending) : base(NSObjectFlag.Empty) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitWithKeyAscending_Handle, arg, ascending); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitWithKeyAscending_Handle, arg, ascending); } NSString.ReleaseNative(arg); } [Export("initWithKey:ascending:selector:")] public NSSortDescriptor(string key, bool ascending, Selector selector) : base(NSObjectFlag.Empty) { if (key == null) { throw new ArgumentNullException("key"); } if (selector == null) { throw new ArgumentNullException("selector"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool_IntPtr(base.Handle, selInitWithKeyAscendingSelector_Handle, arg, ascending, selector.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool_IntPtr(base.SuperHandle, selInitWithKeyAscendingSelector_Handle, arg, ascending, selector.Handle); } NSString.ReleaseNative(arg); } [Export("compareObject:toObject:")] public virtual NSComparisonResult Compare(NSObject object1, NSObject object2) { if (object1 == null) { throw new ArgumentNullException("object1"); } if (object2 == null) { throw new ArgumentNullException("object2"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr_IntPtr(base.Handle, selCompareObjectToObject_Handle, object1.Handle, object2.Handle); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCompareObjectToObject_Handle, object1.Handle, object2.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ReversedSortDescriptor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSSortOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSSortOptions : ulong { Concurrent = 1uL, Stable = 0x10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStream.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSStream", true)] public class NSStream : NSObject { [Register] private sealed class _NSStreamDelegate : NSStreamDelegate { internal EventHandler handleEvent; [Preserve(Conditional = true)] public override void HandleEvent(NSStream theStream, NSStreamEvent streamEvent) { EventHandler eventHandler = handleEvent; if (eventHandler != null) { NSStreamEventArgs e = new NSStreamEventArgs(streamEvent); eventHandler(theStream, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selStreamStatusHandle = Selector.GetHandle("streamStatus"); private static readonly IntPtr selStreamErrorHandle = Selector.GetHandle("streamError"); private static readonly IntPtr selOpenHandle = Selector.GetHandle("open"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selPropertyForKey_Handle = Selector.GetHandle("propertyForKey:"); private static readonly IntPtr selSetPropertyForKey_Handle = Selector.GetHandle("setProperty:forKey:"); private static readonly IntPtr selScheduleInRunLoopForMode_Handle = Selector.GetHandle("scheduleInRunLoop:forMode:"); private static readonly IntPtr selRemoveFromRunLoopForMode_Handle = Selector.GetHandle("removeFromRunLoop:forMode:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSStream"); private object __mt_WeakDelegate_var; private object __mt_Error_var; private static NSString _SocketSecurityLevelKey; private static NSString _SocketSecurityLevelNone; private static NSString _SocketSecurityLevelSslV2; private static NSString _SocketSecurityLevelSslV3; private static NSString _SocketSecurityLevelTlsV1; private static NSString _SocketSecurityLevelNegotiatedSsl; private static NSString _SocksProxyConfigurationKey; private static NSString _SocksProxyHostKey; private static NSString _SocksProxyPortKey; private static NSString _SocksProxyVersionKey; private static NSString _SocksProxyUserKey; private static NSString _SocksProxyPasswordKey; private static NSString _SocksProxyVersion4; private static NSString _SocksProxyVersion5; private static NSString _DataWrittenToMemoryStreamKey; private static NSString _FileCurrentOffsetKey; private static NSString _SocketSslErrorDomain; private static NSString _SocksErrorDomain; private static NSString _NetworkServiceType; private static NSString _NetworkServiceTypeVoIP; private static NSString _NetworkServiceTypeVideo; private static NSString _NetworkServiceTypeBackground; private static NSString _NetworkServiceTypeVoice; public NSObject this[NSString key] { get { return PropertyForKey(key); } set { SetPropertyForKey(value, key); } } public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSStreamDelegate Delegate { get { return WeakDelegate as NSStreamDelegate; } set { WeakDelegate = value; } } public virtual NSStreamStatus Status { [Export("streamStatus")] get { if (IsDirectBinding) { return (NSStreamStatus)Messaging.UInt64_objc_msgSend(base.Handle, selStreamStatusHandle); } return (NSStreamStatus)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStreamStatusHandle); } } public virtual NSError Error { [Export("streamError")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStreamErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStreamErrorHandle))))); } } [Field("NSStreamSocketSecurityLevelKey", "Foundation")] public static NSString SocketSecurityLevelKey { get { if (_SocketSecurityLevelKey == null) { _SocketSecurityLevelKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelKey"); } return _SocketSecurityLevelKey; } } [Field("NSStreamSocketSecurityLevelNone", "Foundation")] public static NSString SocketSecurityLevelNone { get { if (_SocketSecurityLevelNone == null) { _SocketSecurityLevelNone = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelNone"); } return _SocketSecurityLevelNone; } } [Field("NSStreamSocketSecurityLevelSSLv2", "Foundation")] public static NSString SocketSecurityLevelSslV2 { get { if (_SocketSecurityLevelSslV2 == null) { _SocketSecurityLevelSslV2 = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelSSLv2"); } return _SocketSecurityLevelSslV2; } } [Field("NSStreamSocketSecurityLevelSSLv3", "Foundation")] public static NSString SocketSecurityLevelSslV3 { get { if (_SocketSecurityLevelSslV3 == null) { _SocketSecurityLevelSslV3 = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelSSLv3"); } return _SocketSecurityLevelSslV3; } } [Field("NSStreamSocketSecurityLevelTLSv1", "Foundation")] public static NSString SocketSecurityLevelTlsV1 { get { if (_SocketSecurityLevelTlsV1 == null) { _SocketSecurityLevelTlsV1 = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelTLSv1"); } return _SocketSecurityLevelTlsV1; } } [Field("NSStreamSocketSecurityLevelNegotiatedSSL", "Foundation")] public static NSString SocketSecurityLevelNegotiatedSsl { get { if (_SocketSecurityLevelNegotiatedSsl == null) { _SocketSecurityLevelNegotiatedSsl = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSecurityLevelNegotiatedSSL"); } return _SocketSecurityLevelNegotiatedSsl; } } [Field("NSStreamSOCKSProxyConfigurationKey", "Foundation")] public static NSString SocksProxyConfigurationKey { get { if (_SocksProxyConfigurationKey == null) { _SocksProxyConfigurationKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyConfigurationKey"); } return _SocksProxyConfigurationKey; } } [Field("NSStreamSOCKSProxyHostKey", "Foundation")] public static NSString SocksProxyHostKey { get { if (_SocksProxyHostKey == null) { _SocksProxyHostKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyHostKey"); } return _SocksProxyHostKey; } } [Field("NSStreamSOCKSProxyPortKey", "Foundation")] public static NSString SocksProxyPortKey { get { if (_SocksProxyPortKey == null) { _SocksProxyPortKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyPortKey"); } return _SocksProxyPortKey; } } [Field("NSStreamSOCKSProxyVersionKey", "Foundation")] public static NSString SocksProxyVersionKey { get { if (_SocksProxyVersionKey == null) { _SocksProxyVersionKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyVersionKey"); } return _SocksProxyVersionKey; } } [Field("NSStreamSOCKSProxyUserKey", "Foundation")] public static NSString SocksProxyUserKey { get { if (_SocksProxyUserKey == null) { _SocksProxyUserKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyUserKey"); } return _SocksProxyUserKey; } } [Field("NSStreamSOCKSProxyPasswordKey", "Foundation")] public static NSString SocksProxyPasswordKey { get { if (_SocksProxyPasswordKey == null) { _SocksProxyPasswordKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyPasswordKey"); } return _SocksProxyPasswordKey; } } [Field("NSStreamSOCKSProxyVersion4", "Foundation")] public static NSString SocksProxyVersion4 { get { if (_SocksProxyVersion4 == null) { _SocksProxyVersion4 = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyVersion4"); } return _SocksProxyVersion4; } } [Field("NSStreamSOCKSProxyVersion5", "Foundation")] public static NSString SocksProxyVersion5 { get { if (_SocksProxyVersion5 == null) { _SocksProxyVersion5 = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSProxyVersion5"); } return _SocksProxyVersion5; } } [Field("NSStreamDataWrittenToMemoryStreamKey", "Foundation")] public static NSString DataWrittenToMemoryStreamKey { get { if (_DataWrittenToMemoryStreamKey == null) { _DataWrittenToMemoryStreamKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamDataWrittenToMemoryStreamKey"); } return _DataWrittenToMemoryStreamKey; } } [Field("NSStreamFileCurrentOffsetKey", "Foundation")] public static NSString FileCurrentOffsetKey { get { if (_FileCurrentOffsetKey == null) { _FileCurrentOffsetKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamFileCurrentOffsetKey"); } return _FileCurrentOffsetKey; } } [Field("NSStreamSocketSSLErrorDomain", "Foundation")] public static NSString SocketSslErrorDomain { get { if (_SocketSslErrorDomain == null) { _SocketSslErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSocketSSLErrorDomain"); } return _SocketSslErrorDomain; } } [Field("NSStreamSOCKSErrorDomain", "Foundation")] public static NSString SocksErrorDomain { get { if (_SocksErrorDomain == null) { _SocksErrorDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamSOCKSErrorDomain"); } return _SocksErrorDomain; } } [Field("NSStreamNetworkServiceType", "Foundation")] public static NSString NetworkServiceType { get { if (_NetworkServiceType == null) { _NetworkServiceType = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamNetworkServiceType"); } return _NetworkServiceType; } } [Field("NSStreamNetworkServiceTypeVoIP", "Foundation")] public static NSString NetworkServiceTypeVoIP { get { if (_NetworkServiceTypeVoIP == null) { _NetworkServiceTypeVoIP = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamNetworkServiceTypeVoIP"); } return _NetworkServiceTypeVoIP; } } [Field("NSStreamNetworkServiceTypeVideo", "Foundation")] public static NSString NetworkServiceTypeVideo { get { if (_NetworkServiceTypeVideo == null) { _NetworkServiceTypeVideo = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamNetworkServiceTypeVideo"); } return _NetworkServiceTypeVideo; } } [Field("NSStreamNetworkServiceTypeBackground", "Foundation")] public static NSString NetworkServiceTypeBackground { get { if (_NetworkServiceTypeBackground == null) { _NetworkServiceTypeBackground = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamNetworkServiceTypeBackground"); } return _NetworkServiceTypeBackground; } } [Field("NSStreamNetworkServiceTypeVoice", "Foundation")] public static NSString NetworkServiceTypeVoice { get { if (_NetworkServiceTypeVoice == null) { _NetworkServiceTypeVoice = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSStreamNetworkServiceTypeVoice"); } return _NetworkServiceTypeVoice; } } public event EventHandler OnEvent { add { _NSStreamDelegate nSStreamDelegate = EnsureNSStreamDelegate(); nSStreamDelegate.handleEvent = (EventHandler)System.Delegate.Combine(nSStreamDelegate.handleEvent, value); } remove { _NSStreamDelegate nSStreamDelegate = EnsureNSStreamDelegate(); nSStreamDelegate.handleEvent = (EventHandler)System.Delegate.Remove(nSStreamDelegate.handleEvent, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSStream() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSStream(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStream(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStream(IntPtr handle) : base(handle) { } [Export("open")] public virtual void Open() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selOpenHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selOpenHandle); } } [Export("close")] public virtual void Close() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("propertyForKey:")] internal virtual NSObject PropertyForKey(NSString key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPropertyForKey_Handle, key.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPropertyForKey_Handle, key.Handle)); } [Export("setProperty:forKey:")] internal virtual bool SetPropertyForKey(NSObject property, NSString key) { if (property == null) { throw new ArgumentNullException("property"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetPropertyForKey_Handle, property.Handle, key.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetPropertyForKey_Handle, property.Handle, key.Handle); } [Export("scheduleInRunLoop:forMode:")] public virtual void Schedule(NSRunLoop aRunLoop, string mode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeFromRunLoop:forMode:")] public virtual void Unschedule(NSRunLoop aRunLoop, string mode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } private _NSStreamDelegate EnsureNSStreamDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSStreamDelegate)) { nSObject = (WeakDelegate = new _NSStreamDelegate()); } return (_NSStreamDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_Error_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStreamDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSStreamDelegate", true)] [Model] public class NSStreamDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSStreamDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSStreamDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStreamDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSStreamDelegate(IntPtr handle) : base(handle) { } [Export("stream:handleEvent:")] public virtual void HandleEvent(NSStream theStream, NSStreamEvent streamEvent) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStreamEvent.cs ================================================ namespace Foundation; public enum NSStreamEvent : ulong { None = 0uL, OpenCompleted = 1uL, HasBytesAvailable = 2uL, HasSpaceAvailable = 4uL, ErrorOccurred = 8uL, EndEncountered = 0x10uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStreamEventArgs.cs ================================================ using System; namespace Foundation; public class NSStreamEventArgs : EventArgs { public NSStreamEvent StreamEvent { get; set; } public NSStreamEventArgs(NSStreamEvent streamEvent) { StreamEvent = streamEvent; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStreamStatus.cs ================================================ namespace Foundation; public enum NSStreamStatus : ulong { NotOpen, Opening, Open, Reading, Writing, AtEnd, Closed, Error } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSString.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using ObjCRuntime; namespace Foundation; [Register("NSString", true)] public class NSString : NSObject { private const string selUTF8String = "UTF8String"; private const string selInitWithUTF8String = "initWithUTF8String:"; private const string selInitWithCharactersLength = "initWithCharacters:length:"; private static IntPtr selUTF8StringHandle = Selector.GetHandle("UTF8String"); private static IntPtr selInitWithUTF8StringHandle = Selector.GetHandle("initWithUTF8String:"); private static IntPtr selInitWithCharactersLengthHandle = Selector.GetHandle("initWithCharacters:length:"); private const string selDataUsingEncodingAllow = "dataUsingEncoding:allowLossyConversion:"; private const string selInitWithDataEncoding = "initWithData:encoding:"; private static IntPtr selDataUsingEncodingAllowHandle = Selector.GetHandle("dataUsingEncoding:allowLossyConversion:"); private static IntPtr selInitWithDataEncodingHandle = Selector.GetHandle("initWithData:encoding:"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selPathComponentsHandle = Selector.GetHandle("pathComponents"); private static readonly IntPtr selIsAbsolutePathHandle = Selector.GetHandle("isAbsolutePath"); private static readonly IntPtr selLastPathComponentHandle = Selector.GetHandle("lastPathComponent"); private static readonly IntPtr selPathExtensionHandle = Selector.GetHandle("pathExtension"); private static readonly IntPtr selSizeWithAttributes_Handle = Selector.GetHandle("sizeWithAttributes:"); private static readonly IntPtr selBoundingRectWithSizeOptionsAttributes_Handle = Selector.GetHandle("boundingRectWithSize:options:attributes:"); private static readonly IntPtr selDrawAtPointWithAttributes_Handle = Selector.GetHandle("drawAtPoint:withAttributes:"); private static readonly IntPtr selDrawInRectWithAttributes_Handle = Selector.GetHandle("drawInRect:withAttributes:"); private static readonly IntPtr selDrawWithRectOptionsAttributes_Handle = Selector.GetHandle("drawWithRect:options:attributes:"); private static readonly IntPtr selCharacterAtIndex_Handle = Selector.GetHandle("characterAtIndex:"); private static readonly IntPtr selHashHandle = Selector.GetHandle("hash"); private static readonly IntPtr selIsEqualToString_Handle = Selector.GetHandle("isEqualToString:"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr selCompareOptions_Handle = Selector.GetHandle("compare:options:"); private static readonly IntPtr selCompareOptionsRange_Handle = Selector.GetHandle("compare:options:range:"); private static readonly IntPtr selCompareOptionsRangeLocale_Handle = Selector.GetHandle("compare:options:range:locale:"); private static readonly IntPtr selStringByReplacingCharactersInRangeWithString_Handle = Selector.GetHandle("stringByReplacingCharactersInRange:withString:"); private static readonly IntPtr selPathWithComponents_Handle = Selector.GetHandle("pathWithComponents:"); private static readonly IntPtr selStringByDeletingLastPathComponentHandle = Selector.GetHandle("stringByDeletingLastPathComponent"); private static readonly IntPtr selStringByAppendingPathComponent_Handle = Selector.GetHandle("stringByAppendingPathComponent:"); private static readonly IntPtr selStringByDeletingPathExtensionHandle = Selector.GetHandle("stringByDeletingPathExtension"); private static readonly IntPtr selStringByAppendingPathExtension_Handle = Selector.GetHandle("stringByAppendingPathExtension:"); private static readonly IntPtr selStringByAbbreviatingWithTildeInPathHandle = Selector.GetHandle("stringByAbbreviatingWithTildeInPath"); private static readonly IntPtr selStringByExpandingTildeInPathHandle = Selector.GetHandle("stringByExpandingTildeInPath"); private static readonly IntPtr selStringByStandardizingPathHandle = Selector.GetHandle("stringByStandardizingPath"); private static readonly IntPtr selStringByResolvingSymlinksInPathHandle = Selector.GetHandle("stringByResolvingSymlinksInPath"); private static readonly IntPtr selStringsByAppendingPaths_Handle = Selector.GetHandle("stringsByAppendingPaths:"); private static readonly IntPtr selCapitalizedStringWithLocale_Handle = Selector.GetHandle("capitalizedStringWithLocale:"); private static readonly IntPtr selLowercaseStringWithLocale_Handle = Selector.GetHandle("lowercaseStringWithLocale:"); private static readonly IntPtr selUppercaseStringWithLocale_Handle = Selector.GetHandle("uppercaseStringWithLocale:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSString"); private object __mt_LastPathComponent_var; private object __mt_PathExtension_var; public char this[int idx] => _characterAtIndex((ulong)idx); public override IntPtr ClassHandle => class_ptr; public virtual ulong Length { [Export("length")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public virtual string[] PathComponents { [Export("pathComponents")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathComponentsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathComponentsHandle)); } } public virtual bool IsAbsolutePath { [Export("isAbsolutePath")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsAbsolutePathHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsAbsolutePathHandle); } } public virtual NSString LastPathComponent { [Export("lastPathComponent")] get { return (NSString)(__mt_LastPathComponent_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastPathComponentHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastPathComponentHandle))))); } } public virtual NSString PathExtension { [Export("pathExtension")] get { return (NSString)(__mt_PathExtension_var = ((!IsDirectBinding) ? ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathExtensionHandle))) : ((NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPathExtensionHandle))))); } } public unsafe static IntPtr CreateNative(string str) { if (str == null) { return IntPtr.Zero; } fixed (char* ptr = str) { return Messaging.intptr_objc_msgsend_intptr_int(Messaging.intptr_objc_msgSend(class_ptr, Selector.AllocHandle), selInitWithCharactersLengthHandle, (IntPtr)ptr, str.Length); } } public static void ReleaseNative(IntPtr handle) { if (!(handle == IntPtr.Zero)) { Messaging.void_objc_msgSend(handle, Selector.ReleaseHandle); } } public unsafe NSString(string str) { if (str == null) { throw new ArgumentNullException("str"); } fixed (char* ptr = str) { base.Handle = Messaging.intptr_objc_msgsend_intptr_int(base.Handle, selInitWithCharactersLengthHandle, (IntPtr)ptr, str.Length); } } public override string ToString() { return FromHandle(base.Handle); } public static implicit operator string(NSString str) { return str?.ToString(); } public static explicit operator NSString(string str) { if (str == null) { return null; } return new NSString(str); } public static string FromHandle(IntPtr usrhandle) { if (usrhandle == IntPtr.Zero) { return null; } return Messaging.StringFromNativeUtf8(Messaging.intptr_objc_msgSend(usrhandle, selUTF8StringHandle)); } public static bool Equals(NSString a, NSString b) { if ((object)a == b) { return true; } if ((object)a == null || (object)b == null) { return false; } if (a.Handle == b.Handle) { return true; } return a.IsEqualTo(b.Handle); } public static bool operator ==(NSString a, NSString b) { return Equals(a, b); } public static bool operator !=(NSString a, NSString b) { return !Equals(a, b); } public override bool Equals(object obj) { return Equals(this, obj as NSString); } public override int GetHashCode() { return (int)base.Handle; } [Advice("Use Encode instead")] public NSData DataUsingEncoding(NSStringEncoding enc) { return new NSData(Messaging.IntPtr_objc_msgSend_int_int(base.Handle, selDataUsingEncodingAllowHandle, (int)enc, 0)); } [Advice("Use Encode instead")] public NSData DataUsingEncoding(NSStringEncoding enc, bool allowLossyConversion) { return new NSData(Messaging.IntPtr_objc_msgSend_int_int(base.Handle, selDataUsingEncodingAllowHandle, (int)enc, allowLossyConversion ? 1 : 0)); } public NSData Encode(NSStringEncoding enc) { return new NSData(Messaging.IntPtr_objc_msgSend_int_int(base.Handle, selDataUsingEncodingAllowHandle, (int)enc, 0)); } public NSData Encode(NSStringEncoding enc, bool allowLossyConversion) { return new NSData(Messaging.IntPtr_objc_msgSend_int_int(base.Handle, selDataUsingEncodingAllowHandle, (int)enc, allowLossyConversion ? 1 : 0)); } public static NSString FromData(NSData data, NSStringEncoding encoding) { return new NSString(Messaging.IntPtr_objc_msgSend_IntPtr_int(Messaging.IntPtr_objc_msgSend(Class.GetHandle("NSString"), Selector.AllocHandle), selInitWithDataEncodingHandle, data.Handle, (int)encoding)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSString() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSString(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSString(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSString(IntPtr handle) : base(handle) { } public CGSize StringSize(NSDictionary attributedStringAttributes) { return Messaging.CGSize_objc_msgSend_IntPtr(base.Handle, selSizeWithAttributes_Handle, attributedStringAttributes?.Handle ?? IntPtr.Zero); } public CGRect BoundingRectWithSize(CGSize size, NSStringDrawingOptions options, NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } Messaging.CGRect_objc_msgSend_stret_CGSize_UInt64_IntPtr(out var retval, base.Handle, selBoundingRectWithSizeOptionsAttributes_Handle, size, (ulong)options, attributes.Handle); return retval; } public void DrawString(CGPoint point, NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } Messaging.void_objc_msgSend_CGPoint_IntPtr(base.Handle, selDrawAtPointWithAttributes_Handle, point, attributes.Handle); } public void DrawString(CGRect rect, NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selDrawInRectWithAttributes_Handle, rect, attributes.Handle); } public void DrawString(CGRect rect, NSStringDrawingOptions options, NSDictionary attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } Messaging.void_objc_msgSend_CGRect_UInt64_IntPtr(base.Handle, selDrawWithRectOptionsAttributes_Handle, rect, (ulong)options, attributes.Handle); } [Export("characterAtIndex:")] public virtual char _characterAtIndex(ulong index) { if (IsDirectBinding) { return Messaging.Char_objc_msgSend_UInt64(base.Handle, selCharacterAtIndex_Handle, index); } return Messaging.Char_objc_msgSendSuper_UInt64(base.SuperHandle, selCharacterAtIndex_Handle, index); } [Export("hash")] internal virtual ulong Hash() { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selHashHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selHashHandle); } [Export("isEqualToString:")] internal virtual bool IsEqualTo(IntPtr handle) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToString_Handle, handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToString_Handle, handle); } [Export("compare:")] public virtual NSComparisonResult Compare(NSString aString) { if (aString == null) { throw new ArgumentNullException("aString"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, aString.Handle); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, aString.Handle); } [Export("compare:options:")] public virtual NSComparisonResult Compare(NSString aString, NSStringCompareOptions mask) { if (aString == null) { throw new ArgumentNullException("aString"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr_UInt32(base.Handle, selCompareOptions_Handle, aString.Handle, (uint)mask); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selCompareOptions_Handle, aString.Handle, (uint)mask); } [Export("compare:options:range:")] public virtual NSComparisonResult Compare(NSString aString, NSStringCompareOptions mask, NSRange range) { if (aString == null) { throw new ArgumentNullException("aString"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr_UInt32_NSRange(base.Handle, selCompareOptionsRange_Handle, aString.Handle, (uint)mask, range); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr_UInt32_NSRange(base.SuperHandle, selCompareOptionsRange_Handle, aString.Handle, (uint)mask, range); } [Export("compare:options:range:locale:")] public virtual NSComparisonResult Compare(NSString aString, NSStringCompareOptions mask, NSRange range, NSLocale locale) { if (aString == null) { throw new ArgumentNullException("aString"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr_UInt32_NSRange_IntPtr(base.Handle, selCompareOptionsRangeLocale_Handle, aString.Handle, (uint)mask, range, locale?.Handle ?? IntPtr.Zero); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr_UInt32_NSRange_IntPtr(base.SuperHandle, selCompareOptionsRangeLocale_Handle, aString.Handle, (uint)mask, range, locale?.Handle ?? IntPtr.Zero); } [Export("stringByReplacingCharactersInRange:withString:")] public virtual NSString Replace(NSRange range, NSString replacement) { if (replacement == null) { throw new ArgumentNullException("replacement"); } if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange_IntPtr(base.Handle, selStringByReplacingCharactersInRangeWithString_Handle, range, replacement.Handle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_NSRange_IntPtr(base.SuperHandle, selStringByReplacingCharactersInRangeWithString_Handle, range, replacement.Handle)); } [Export("pathWithComponents:")] public static string[] PathWithComponents(string[] components) { if (components == null) { throw new ArgumentNullException("components"); } NSArray nSArray = NSArray.FromStrings(components); string[] result = NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selPathWithComponents_Handle, nSArray.Handle)); nSArray.Dispose(); return result; } [Export("stringByDeletingLastPathComponent")] public virtual NSString DeleteLastPathComponent() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByDeletingLastPathComponentHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByDeletingLastPathComponentHandle)); } [Export("stringByAppendingPathComponent:")] public virtual NSString AppendPathComponent(NSString str) { if (str == null) { throw new ArgumentNullException("str"); } if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringByAppendingPathComponent_Handle, str.Handle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringByAppendingPathComponent_Handle, str.Handle)); } [Export("stringByDeletingPathExtension")] public virtual NSString DeletePathExtension() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByDeletingPathExtensionHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByDeletingPathExtensionHandle)); } [Export("stringByAppendingPathExtension:")] public virtual NSString AppendPathExtension(NSString str) { if (str == null) { throw new ArgumentNullException("str"); } if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringByAppendingPathExtension_Handle, str.Handle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringByAppendingPathExtension_Handle, str.Handle)); } [Export("stringByAbbreviatingWithTildeInPath")] public virtual NSString AbbreviateTildeInPath() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByAbbreviatingWithTildeInPathHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByAbbreviatingWithTildeInPathHandle)); } [Export("stringByExpandingTildeInPath")] public virtual NSString ExpandTildeInPath() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByExpandingTildeInPathHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByExpandingTildeInPathHandle)); } [Export("stringByStandardizingPath")] public virtual NSString StandarizePath() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByStandardizingPathHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByStandardizingPathHandle)); } [Export("stringByResolvingSymlinksInPath")] public virtual NSString ResolveSymlinksInPath() { if (IsDirectBinding) { return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStringByResolvingSymlinksInPathHandle)); } return (NSString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringByResolvingSymlinksInPathHandle)); } [Export("stringsByAppendingPaths:")] public virtual string[] AppendPaths(string[] paths) { if (paths == null) { throw new ArgumentNullException("paths"); } NSArray nSArray = NSArray.FromStrings(paths); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringsByAppendingPaths_Handle, nSArray.Handle)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringsByAppendingPaths_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("capitalizedStringWithLocale:")] public virtual string Capitalize(NSLocale locale) { if (locale == null) { throw new ArgumentNullException("locale"); } if (IsDirectBinding) { return FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCapitalizedStringWithLocale_Handle, locale.Handle)); } return FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCapitalizedStringWithLocale_Handle, locale.Handle)); } [Export("lowercaseStringWithLocale:")] public virtual string ToLower(NSLocale locale) { if (locale == null) { throw new ArgumentNullException("locale"); } if (IsDirectBinding) { return FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLowercaseStringWithLocale_Handle, locale.Handle)); } return FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLowercaseStringWithLocale_Handle, locale.Handle)); } [Export("uppercaseStringWithLocale:")] public virtual string ToUpper(NSLocale locale) { if (locale == null) { throw new ArgumentNullException("locale"); } if (IsDirectBinding) { return FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selUppercaseStringWithLocale_Handle, locale.Handle)); } return FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selUppercaseStringWithLocale_Handle, locale.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_LastPathComponent_var = null; __mt_PathExtension_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStringCompareOptions.cs ================================================ namespace Foundation; public enum NSStringCompareOptions : uint { CaseInsensitiveSearch = 1u, LiteralSearch = 2u, BackwardsSearch = 4u, AnchoredSearch = 8u, NumericSearch = 0x40u, DiacriticInsensitiveSearch = 0x80u, WidthInsensitiveSearch = 0x100u, ForcedOrderingSearch = 0x200u, RegularExpressionSearch = 0x400u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStringDrawingOptions.cs ================================================ namespace Foundation; public enum NSStringDrawingOptions : ulong { UsesLineFragmentOrigin = 1uL, UsesFontLeading = 2uL, DisableScreenFontSubstitution = 4uL, UsesDeviceMetrics = 8uL, OneShot = 0x10uL, TruncatesLastVisibleLine = 0x20uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSStringEncoding.cs ================================================ namespace Foundation; public enum NSStringEncoding : uint { ASCIIStringEncoding = 1u, NEXTSTEP = 2u, JapaneseEUC = 3u, UTF8 = 4u, ISOLatin1 = 5u, Symbol = 6u, NonLossyASCII = 7u, ShiftJIS = 8u, ISOLatin2 = 9u, Unicode = 10u, WindowsCP1251 = 11u, WindowsCP1252 = 12u, WindowsCP1253 = 13u, WindowsCP1254 = 14u, WindowsCP1250 = 15u, ISO2022JP = 21u, MacOSRoman = 30u, UTF16BigEndian = 2415919360u, UTF16LittleEndian = 2483028224u, UTF32 = 2348810496u, UTF32BigEndian = 2550137088u, UTF32LittleEndian = 2617245952u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTask.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSTask", true)] public class NSTask : NSObject { private static readonly IntPtr selLaunchPathHandle = Selector.GetHandle("launchPath"); private static readonly IntPtr selSetLaunchPath_Handle = Selector.GetHandle("setLaunchPath:"); private static readonly IntPtr selArgumentsHandle = Selector.GetHandle("arguments"); private static readonly IntPtr selSetArguments_Handle = Selector.GetHandle("setArguments:"); private static readonly IntPtr selEnvironmentHandle = Selector.GetHandle("environment"); private static readonly IntPtr selSetEnvironment_Handle = Selector.GetHandle("setEnvironment:"); private static readonly IntPtr selCurrentDirectoryPathHandle = Selector.GetHandle("currentDirectoryPath"); private static readonly IntPtr selSetCurrentDirectoryPath_Handle = Selector.GetHandle("setCurrentDirectoryPath:"); private static readonly IntPtr selStandardInputHandle = Selector.GetHandle("standardInput"); private static readonly IntPtr selSetStandardInput_Handle = Selector.GetHandle("setStandardInput:"); private static readonly IntPtr selStandardOutputHandle = Selector.GetHandle("standardOutput"); private static readonly IntPtr selSetStandardOutput_Handle = Selector.GetHandle("setStandardOutput:"); private static readonly IntPtr selStandardErrorHandle = Selector.GetHandle("standardError"); private static readonly IntPtr selSetStandardError_Handle = Selector.GetHandle("setStandardError:"); private static readonly IntPtr selIsRunningHandle = Selector.GetHandle("isRunning"); private static readonly IntPtr selProcessIdentifierHandle = Selector.GetHandle("processIdentifier"); private static readonly IntPtr selTerminationStatusHandle = Selector.GetHandle("terminationStatus"); private static readonly IntPtr selTerminationReasonHandle = Selector.GetHandle("terminationReason"); private static readonly IntPtr selLaunchHandle = Selector.GetHandle("launch"); private static readonly IntPtr selInterruptHandle = Selector.GetHandle("interrupt"); private static readonly IntPtr selTerminateHandle = Selector.GetHandle("terminate"); private static readonly IntPtr selSuspendHandle = Selector.GetHandle("suspend"); private static readonly IntPtr selResumeHandle = Selector.GetHandle("resume"); private static readonly IntPtr selWaitUntilExitHandle = Selector.GetHandle("waitUntilExit"); private static readonly IntPtr selLaunchedTaskWithLaunchPathArguments_Handle = Selector.GetHandle("launchedTaskWithLaunchPath:arguments:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTask"); private object __mt_Environment_var; private object __mt_StandardInput_var; private object __mt_StandardOutput_var; private object __mt_StandardError_var; private static NSString _NSTaskDidTerminateNotification; public override IntPtr ClassHandle => class_ptr; public virtual string LaunchPath { [Export("launchPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLaunchPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLaunchPathHandle)); } [Export("setLaunchPath:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLaunchPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLaunchPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string[] Arguments { [Export("arguments")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selArgumentsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selArgumentsHandle)); } [Export("setArguments:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetArguments_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetArguments_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual NSDictionary Environment { [Export("environment")] get { return (NSDictionary)(__mt_Environment_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEnvironmentHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEnvironmentHandle))))); } [Export("setEnvironment:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEnvironment_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEnvironment_Handle, value.Handle); } __mt_Environment_var = value; } } public virtual string CurrentDirectoryPath { [Export("currentDirectoryPath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDirectoryPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDirectoryPathHandle)); } [Export("setCurrentDirectoryPath:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrentDirectoryPath_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrentDirectoryPath_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSObject StandardInput { [Export("standardInput")] get { return (NSObject)(__mt_StandardInput_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandardInputHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStandardInputHandle)))); } [Export("setStandardInput:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandardInput_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandardInput_Handle, value.Handle); } __mt_StandardInput_var = value; } } public virtual NSObject StandardOutput { [Export("standardOutput")] get { return (NSObject)(__mt_StandardOutput_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandardOutputHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStandardOutputHandle)))); } [Export("setStandardOutput:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandardOutput_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandardOutput_Handle, value.Handle); } __mt_StandardOutput_var = value; } } public virtual NSObject StandardError { [Export("standardError")] get { return (NSObject)(__mt_StandardError_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandardErrorHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStandardErrorHandle)))); } [Export("setStandardError:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandardError_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandardError_Handle, value.Handle); } __mt_StandardError_var = value; } } public virtual bool IsRunning { [Export("isRunning")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRunningHandle); } } public virtual int ProcessIdentifier { [Export("processIdentifier")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selProcessIdentifierHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selProcessIdentifierHandle); } } public virtual int TerminationStatus { [Export("terminationStatus")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTerminationStatusHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTerminationStatusHandle); } } public virtual NSTaskTerminationReason TerminationReason { [Export("terminationReason")] get { if (IsDirectBinding) { return (NSTaskTerminationReason)Messaging.int_objc_msgSend(base.Handle, selTerminationReasonHandle); } return (NSTaskTerminationReason)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTerminationReasonHandle); } } [Field("NSTaskDidTerminateNotification", "Foundation")] public static NSString NSTaskDidTerminateNotification { get { if (_NSTaskDidTerminateNotification == null) { _NSTaskDidTerminateNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSTaskDidTerminateNotification"); } return _NSTaskDidTerminateNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSTask() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTask(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTask(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTask(IntPtr handle) : base(handle) { } [Export("launch")] public virtual void Launch() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLaunchHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLaunchHandle); } } [Export("interrupt")] public virtual void Interrupt() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInterruptHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInterruptHandle); } } [Export("terminate")] public virtual void Terminate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selTerminateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selTerminateHandle); } } [Export("suspend")] public virtual bool Suspend() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSuspendHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSuspendHandle); } [Export("resume")] public virtual bool Resume() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selResumeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selResumeHandle); } [Export("waitUntilExit")] public virtual void WaitUntilExit() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selWaitUntilExitHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selWaitUntilExitHandle); } } [Export("launchedTaskWithLaunchPath:arguments:")] public static NSTask LaunchFromPath(string path, string[] arguments) { if (path == null) { throw new ArgumentNullException("path"); } if (arguments == null) { throw new ArgumentNullException("arguments"); } IntPtr arg = NSString.CreateNative(path); NSArray nSArray = NSArray.FromStrings(arguments); NSTask result = (NSTask)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selLaunchedTaskWithLaunchPathArguments_Handle, arg, nSArray.Handle)); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Environment_var = null; __mt_StandardInput_var = null; __mt_StandardOutput_var = null; __mt_StandardError_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTaskTerminationReason.cs ================================================ namespace Foundation; public enum NSTaskTerminationReason { Exit = 1, UncaughtSignal } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTextCheckingResult.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSTextCheckingResult", true)] public class NSTextCheckingResult : NSObject { private static readonly IntPtr selResultTypeHandle = Selector.GetHandle("resultType"); private static readonly IntPtr selRangeHandle = Selector.GetHandle("range"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTextCheckingResult"); public override IntPtr ClassHandle => class_ptr; public virtual NSTextCheckingType ResultType { [Export("resultType")] get { if (IsDirectBinding) { return (NSTextCheckingType)Messaging.UInt64_objc_msgSend(base.Handle, selResultTypeHandle); } return (NSTextCheckingType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selResultTypeHandle); } } public virtual NSRange Range { [Export("range")] get { if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTextCheckingResult(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextCheckingResult(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTextCheckingResult(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTextCheckingType.cs ================================================ namespace Foundation; public enum NSTextCheckingType : ulong { Orthography = 1uL, Spelling = 2uL, Grammar = 4uL, Date = 8uL, Address = 0x10uL, Link = 0x20uL, Quote = 0x40uL, Dash = 0x80uL, Replacement = 0x100uL, Correction = 0x200uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTextCheckingTypes.cs ================================================ namespace Foundation; public enum NSTextCheckingTypes : ulong { AllSystemTypes = 4294967295uL, AllCustomTypes = 18446744069414584320uL, AllTypes = ulong.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSThread.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSThread", true)] public class NSThread : NSObject { private static readonly IntPtr selCurrentThreadHandle = Selector.GetHandle("currentThread"); private static readonly IntPtr selIsMultiThreadedHandle = Selector.GetHandle("isMultiThreaded"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selStackSizeHandle = Selector.GetHandle("stackSize"); private static readonly IntPtr selSetStackSize_Handle = Selector.GetHandle("setStackSize:"); private static readonly IntPtr selIsMainThreadHandle = Selector.GetHandle("isMainThread"); private static readonly IntPtr selMainThreadHandle = Selector.GetHandle("mainThread"); private static readonly IntPtr selIsExecutingHandle = Selector.GetHandle("isExecuting"); private static readonly IntPtr selIsFinishedHandle = Selector.GetHandle("isFinished"); private static readonly IntPtr selIsCancelledHandle = Selector.GetHandle("isCancelled"); private static readonly IntPtr selSleepUntilDate_Handle = Selector.GetHandle("sleepUntilDate:"); private static readonly IntPtr selSleepForTimeInterval_Handle = Selector.GetHandle("sleepForTimeInterval:"); private static readonly IntPtr selExitHandle = Selector.GetHandle("exit"); private static readonly IntPtr selThreadPriorityHandle = Selector.GetHandle("threadPriority"); private static readonly IntPtr selSetThreadPriority_Handle = Selector.GetHandle("setThreadPriority:"); private static readonly IntPtr selInitWithTargetSelectorObject_Handle = Selector.GetHandle("initWithTarget:selector:object:"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr selStartHandle = Selector.GetHandle("start"); private static readonly IntPtr selMainHandle = Selector.GetHandle("main"); private static readonly IntPtr class_ptr = Class.GetHandle("NSThread"); private static object __mt_Current_var_static; private static object __mt_MainThread_var_static; public static double Priority { get { return _GetPriority(); } set { _SetPriority(value); } } public override IntPtr ClassHandle => class_ptr; public static NSThread Current { [Export("currentThread")] get { return (NSThread)(__mt_Current_var_static = (NSThread)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentThreadHandle))); } } public static bool IsMultiThreaded { [Export("isMultiThreaded")] get { return Messaging.bool_objc_msgSend(class_ptr, selIsMultiThreadedHandle); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual ulong StackSize { [Export("stackSize")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selStackSizeHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selStackSizeHandle); } [Export("setStackSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetStackSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetStackSize_Handle, value); } } } public virtual bool IsMainThread { [Export("isMainThread")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsMainThreadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsMainThreadHandle); } } public static bool IsMain { [Export("isMainThread")] get { return Messaging.bool_objc_msgSend(class_ptr, selIsMainThreadHandle); } } public static NSThread MainThread { [Export("mainThread")] get { return (NSThread)(__mt_MainThread_var_static = (NSThread)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMainThreadHandle))); } } public virtual bool IsExecuting { [Export("isExecuting")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsExecutingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsExecutingHandle); } } public virtual bool IsFinished { [Export("isFinished")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFinishedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFinishedHandle); } } public virtual bool IsCancelled { [Export("isCancelled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCancelledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCancelledHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSThread() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSThread(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSThread(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSThread(IntPtr handle) : base(handle) { } [Export("sleepUntilDate:")] public static void SleepUntil(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSleepUntilDate_Handle, date.Handle); } [Export("sleepForTimeInterval:")] public static void SleepFor(double timeInterval) { Messaging.void_objc_msgSend_Double(class_ptr, selSleepForTimeInterval_Handle, timeInterval); } [Export("exit")] public static void Exit() { Messaging.void_objc_msgSend(class_ptr, selExitHandle); } [Export("threadPriority")] internal static double _GetPriority() { return Messaging.Double_objc_msgSend(class_ptr, selThreadPriorityHandle); } [Export("setThreadPriority:")] internal static bool _SetPriority(double priority) { return Messaging.bool_objc_msgSend_Double(class_ptr, selSetThreadPriority_Handle, priority); } [Export("initWithTarget:selector:object:")] public NSThread(NSObject target, Selector selector, NSObject argument) : base(NSObjectFlag.Empty) { if (target == null) { throw new ArgumentNullException("target"); } if (selector == null) { throw new ArgumentNullException("selector"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithTargetSelectorObject_Handle, target.Handle, selector.Handle, argument?.Handle ?? IntPtr.Zero); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithTargetSelectorObject_Handle, target.Handle, selector.Handle, argument?.Handle ?? IntPtr.Zero); } } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } [Export("start")] public virtual void Start() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartHandle); } } [Export("main")] public virtual void Main() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selMainHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selMainHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTimeZone.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSTimeZone", true)] public class NSTimeZone : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selLocalTimeZoneHandle = Selector.GetHandle("localTimeZone"); private static readonly IntPtr selSecondsFromGMTHandle = Selector.GetHandle("secondsFromGMT"); private static readonly IntPtr selDefaultTimeZoneHandle = Selector.GetHandle("defaultTimeZone"); private static readonly IntPtr selSetDefaultTimeZone_Handle = Selector.GetHandle("setDefaultTimeZone:"); private static readonly IntPtr selSystemTimeZoneHandle = Selector.GetHandle("systemTimeZone"); private static readonly IntPtr selKnownTimeZoneNamesHandle = Selector.GetHandle("knownTimeZoneNames"); private static readonly IntPtr selTimeZoneDataVersionHandle = Selector.GetHandle("timeZoneDataVersion"); private static readonly IntPtr selInitWithName_Handle = Selector.GetHandle("initWithName:"); private static readonly IntPtr selInitWithNameData_Handle = Selector.GetHandle("initWithName:data:"); private static readonly IntPtr selSecondsFromGMTForDate_Handle = Selector.GetHandle("secondsFromGMTForDate:"); private static readonly IntPtr selAbbreviationForDate_Handle = Selector.GetHandle("abbreviationForDate:"); private static readonly IntPtr selIsDaylightSavingTimeForDate_Handle = Selector.GetHandle("isDaylightSavingTimeForDate:"); private static readonly IntPtr selDaylightSavingTimeOffsetForDate_Handle = Selector.GetHandle("daylightSavingTimeOffsetForDate:"); private static readonly IntPtr selNextDaylightSavingTimeTransitionAfterDate_Handle = Selector.GetHandle("nextDaylightSavingTimeTransitionAfterDate:"); private static readonly IntPtr selTimeZoneWithName_Handle = Selector.GetHandle("timeZoneWithName:"); private static readonly IntPtr selTimeZoneWithNameData_Handle = Selector.GetHandle("timeZoneWithName:data:"); private static readonly IntPtr selResetSystemTimeZoneHandle = Selector.GetHandle("resetSystemTimeZone"); private static readonly IntPtr selTimeZoneWithAbbreviation_Handle = Selector.GetHandle("timeZoneWithAbbreviation:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTimeZone"); private object __mt_Data_var; private static object __mt_LocalTimeZone_var_static; private static object __mt_DefaultTimeZone_var_static; private static object __mt_SystemTimeZone_var_static; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public static NSTimeZone LocalTimeZone { [Export("localTimeZone")] get { return (NSTimeZone)(__mt_LocalTimeZone_var_static = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selLocalTimeZoneHandle))); } } public virtual long GetSecondsFromGMT { [Export("secondsFromGMT")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selSecondsFromGMTHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selSecondsFromGMTHandle); } } public static NSTimeZone DefaultTimeZone { [Export("defaultTimeZone")] get { return (NSTimeZone)(__mt_DefaultTimeZone_var_static = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultTimeZoneHandle))); } [Export("setDefaultTimeZone:")] set { if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetDefaultTimeZone_Handle, value.Handle); } } public static NSTimeZone SystemTimeZone { [Export("systemTimeZone")] get { return (NSTimeZone)(__mt_SystemTimeZone_var_static = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSystemTimeZoneHandle))); } } internal static string[] _KnownTimeZoneNames { [Export("knownTimeZoneNames")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selKnownTimeZoneNamesHandle)); } } public static string DataVersion { [Export("timeZoneDataVersion")] get { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selTimeZoneDataVersionHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTimeZone(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTimeZone(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTimeZone(IntPtr handle) : base(handle) { } [Export("initWithName:")] public NSTimeZone(string name) : base(NSObjectFlag.Empty) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithName_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithName:data:")] public NSTimeZone(string name, NSData data) : base(NSObjectFlag.Empty) { if (name == null) { throw new ArgumentNullException("name"); } if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithNameData_Handle, arg, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithNameData_Handle, arg, data.Handle); } NSString.ReleaseNative(arg); } [Export("secondsFromGMTForDate:")] public virtual long SecondsFromGMT(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selSecondsFromGMTForDate_Handle, date.Handle); } return Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selSecondsFromGMTForDate_Handle, date.Handle); } [Export("abbreviationForDate:")] public virtual string Abbreviation(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAbbreviationForDate_Handle, date.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAbbreviationForDate_Handle, date.Handle)); } [Export("isDaylightSavingTimeForDate:")] public virtual bool IsDaylightSavingsTime(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsDaylightSavingTimeForDate_Handle, date.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsDaylightSavingTimeForDate_Handle, date.Handle); } [Export("daylightSavingTimeOffsetForDate:")] public virtual double DaylightSavingTimeOffset(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDaylightSavingTimeOffsetForDate_Handle, date.Handle); } return Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDaylightSavingTimeOffsetForDate_Handle, date.Handle); } [Export("nextDaylightSavingTimeTransitionAfterDate:")] public virtual NSDate NextDaylightSavingTimeTransitionAfter(NSDate date) { if (date == null) { throw new ArgumentNullException("date"); } if (IsDirectBinding) { return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNextDaylightSavingTimeTransitionAfterDate_Handle, date.Handle)); } return (NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNextDaylightSavingTimeTransitionAfterDate_Handle, date.Handle)); } [Export("timeZoneWithName:")] public static NSTimeZone FromName(string tzName) { if (tzName == null) { throw new ArgumentNullException("tzName"); } IntPtr arg = NSString.CreateNative(tzName); NSTimeZone result = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selTimeZoneWithName_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("timeZoneWithName:data:")] public static NSTimeZone FromName(string tzName, NSData data) { if (tzName == null) { throw new ArgumentNullException("tzName"); } if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(tzName); NSTimeZone result = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selTimeZoneWithNameData_Handle, arg, data.Handle)); NSString.ReleaseNative(arg); return result; } [Export("resetSystemTimeZone")] public static void ResetSystemTimeZone() { Messaging.void_objc_msgSend(class_ptr, selResetSystemTimeZoneHandle); } [Export("timeZoneWithAbbreviation:")] public static NSTimeZone FromAbbreviation(string abbreviation) { if (abbreviation == null) { throw new ArgumentNullException("abbreviation"); } IntPtr arg = NSString.CreateNative(abbreviation); NSTimeZone result = (NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selTimeZoneWithAbbreviation_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Data_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSTimer.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSTimer", true)] public class NSTimer : NSObject { private static readonly IntPtr selFireDateHandle = Selector.GetHandle("fireDate"); private static readonly IntPtr selSetFireDate_Handle = Selector.GetHandle("setFireDate:"); private static readonly IntPtr selIsValidHandle = Selector.GetHandle("isValid"); private static readonly IntPtr selTimeIntervalHandle = Selector.GetHandle("timeInterval"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats_Handle = Selector.GetHandle("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); private static readonly IntPtr selTimerWithTimeIntervalTargetSelectorUserInfoRepeats_Handle = Selector.GetHandle("timerWithTimeInterval:target:selector:userInfo:repeats:"); private static readonly IntPtr selInitWithFireDateIntervalTargetSelectorUserInfoRepeats_Handle = Selector.GetHandle("initWithFireDate:interval:target:selector:userInfo:repeats:"); private static readonly IntPtr selFireHandle = Selector.GetHandle("fire"); private static readonly IntPtr selInvalidateHandle = Selector.GetHandle("invalidate"); private static readonly IntPtr class_ptr = Class.GetHandle("NSTimer"); private object __mt_FireDate_var; private object __mt_UserInfo_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDate FireDate { [Export("fireDate")] get { return (NSDate)(__mt_FireDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFireDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFireDateHandle))))); } [Export("setFireDate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFireDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFireDate_Handle, value.Handle); } __mt_FireDate_var = value; } } public virtual bool IsValid { [Export("isValid")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsValidHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsValidHandle); } } public virtual double TimeInterval { [Export("timeInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeIntervalHandle); } } public virtual NSObject UserInfo { [Export("userInfo")] get { return (NSObject)(__mt_UserInfo_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle)))); } } public static NSTimer CreateRepeatingScheduledTimer(TimeSpan when, NSAction action) { return CreateScheduledTimer(when.TotalSeconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: true); } public static NSTimer CreateRepeatingScheduledTimer(double seconds, NSAction action) { return CreateScheduledTimer(seconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: true); } public static NSTimer CreateScheduledTimer(TimeSpan when, NSAction action) { return CreateScheduledTimer(when.TotalSeconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: false); } public static NSTimer CreateScheduledTimer(double seconds, NSAction action) { return CreateScheduledTimer(seconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: false); } public static NSTimer CreateRepeatingTimer(TimeSpan when, NSAction action) { return CreateTimer(when.TotalSeconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: true); } public static NSTimer CreateRepeatingTimer(double seconds, NSAction action) { return CreateTimer(seconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: true); } public static NSTimer CreateTimer(TimeSpan when, NSAction action) { return CreateTimer(when.TotalSeconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: false); } public static NSTimer CreateTimer(double seconds, NSAction action) { return CreateTimer(seconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats: false); } public NSTimer(NSDate date, TimeSpan when, NSAction action, bool repeats) : this(date, when.TotalSeconds, new NSActionDispatcher(action), NSActionDispatcher.Selector, null, repeats) { } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSTimer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTimer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSTimer(IntPtr handle) : base(handle) { } [Export("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:")] public static NSTimer CreateScheduledTimer(double seconds, NSObject target, Selector selector, NSObject userInfo, bool repeats) { if (target == null) { throw new ArgumentNullException("target"); } if (selector == null) { throw new ArgumentNullException("selector"); } return (NSTimer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_IntPtr_IntPtr_IntPtr_bool(class_ptr, selScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats_Handle, seconds, target.Handle, selector.Handle, userInfo?.Handle ?? IntPtr.Zero, repeats)); } [Export("timerWithTimeInterval:target:selector:userInfo:repeats:")] public static NSTimer CreateTimer(double seconds, NSObject target, Selector selector, NSObject userInfo, bool repeats) { if (target == null) { throw new ArgumentNullException("target"); } if (selector == null) { throw new ArgumentNullException("selector"); } return (NSTimer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_Double_IntPtr_IntPtr_IntPtr_bool(class_ptr, selTimerWithTimeIntervalTargetSelectorUserInfoRepeats_Handle, seconds, target.Handle, selector.Handle, userInfo?.Handle ?? IntPtr.Zero, repeats)); } [Export("initWithFireDate:interval:target:selector:userInfo:repeats:")] public NSTimer(NSDate date, double seconds, NSObject target, Selector selector, NSObject userInfo, bool repeats) : base(NSObjectFlag.Empty) { if (date == null) { throw new ArgumentNullException("date"); } if (target == null) { throw new ArgumentNullException("target"); } if (selector == null) { throw new ArgumentNullException("selector"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Double_IntPtr_IntPtr_IntPtr_bool(base.Handle, selInitWithFireDateIntervalTargetSelectorUserInfoRepeats_Handle, date.Handle, seconds, target.Handle, selector.Handle, userInfo?.Handle ?? IntPtr.Zero, repeats); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Double_IntPtr_IntPtr_IntPtr_bool(base.SuperHandle, selInitWithFireDateIntervalTargetSelectorUserInfoRepeats_Handle, date.Handle, seconds, target.Handle, selector.Handle, userInfo?.Handle ?? IntPtr.Zero, repeats); } } [Export("fire")] public virtual void Fire() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFireHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFireHandle); } } [Export("invalidate")] public virtual void Invalidate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateHandle); } } protected override void Dispose(bool disposing) { if (disposing) { Invalidate(); } base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FireDate_var = null; __mt_UserInfo_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUbiquitousKeyValueStore.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUbiquitousKeyValueStore", true)] public class NSUbiquitousKeyValueStore : NSObject { public static class Notifications { public static NSObject ObserveDidChangeExternally(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidChangeExternallyNotification, delegate(NSNotification notification) { handler(null, new NSUbiquitousKeyValueStoreChangeEventArgs(notification)); }); } } private static readonly IntPtr selDefaultStoreHandle = Selector.GetHandle("defaultStore"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selSetObjectForKey_Handle = Selector.GetHandle("setObject:forKey:"); private static readonly IntPtr selRemoveObjectForKey_Handle = Selector.GetHandle("removeObjectForKey:"); private static readonly IntPtr selStringForKey_Handle = Selector.GetHandle("stringForKey:"); private static readonly IntPtr selArrayForKey_Handle = Selector.GetHandle("arrayForKey:"); private static readonly IntPtr selDictionaryForKey_Handle = Selector.GetHandle("dictionaryForKey:"); private static readonly IntPtr selDataForKey_Handle = Selector.GetHandle("dataForKey:"); private static readonly IntPtr selLongLongForKey_Handle = Selector.GetHandle("longLongForKey:"); private static readonly IntPtr selDoubleForKey_Handle = Selector.GetHandle("doubleForKey:"); private static readonly IntPtr selBoolForKey_Handle = Selector.GetHandle("boolForKey:"); private static readonly IntPtr selSetStringForKey_Handle = Selector.GetHandle("setString:forKey:"); private static readonly IntPtr selSetDataForKey_Handle = Selector.GetHandle("setData:forKey:"); private static readonly IntPtr selSetArrayForKey_Handle = Selector.GetHandle("setArray:forKey:"); private static readonly IntPtr selSetDictionaryForKey_Handle = Selector.GetHandle("setDictionary:forKey:"); private static readonly IntPtr selSetLongLongForKey_Handle = Selector.GetHandle("setLongLong:forKey:"); private static readonly IntPtr selSetDoubleForKey_Handle = Selector.GetHandle("setDouble:forKey:"); private static readonly IntPtr selSetBoolForKey_Handle = Selector.GetHandle("setBool:forKey:"); private static readonly IntPtr selDictionaryRepresentationHandle = Selector.GetHandle("dictionaryRepresentation"); private static readonly IntPtr selSynchronizeHandle = Selector.GetHandle("synchronize"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUbiquitousKeyValueStore"); private static object __mt_DefaultStore_var_static; private static NSString _DidChangeExternallyNotification; private static NSString _ChangeReasonKey; private static NSString _ChangedKeysKey; public NSObject this[NSString key] { get { return ObjectForKey(key); } set { SetObjectForKey(value, key); } } public override IntPtr ClassHandle => class_ptr; public static NSUbiquitousKeyValueStore DefaultStore { [Export("defaultStore")] get { return (NSUbiquitousKeyValueStore)(__mt_DefaultStore_var_static = (NSUbiquitousKeyValueStore)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultStoreHandle))); } } [Field("NSUbiquitousKeyValueStoreDidChangeExternallyNotification", "Foundation")] public static NSString DidChangeExternallyNotification { get { if (_DidChangeExternallyNotification == null) { _DidChangeExternallyNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUbiquitousKeyValueStoreDidChangeExternallyNotification"); } return _DidChangeExternallyNotification; } } [Field("NSUbiquitousKeyValueStoreChangeReasonKey", "Foundation")] public static NSString ChangeReasonKey { get { if (_ChangeReasonKey == null) { _ChangeReasonKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUbiquitousKeyValueStoreChangeReasonKey"); } return _ChangeReasonKey; } } [Field("NSUbiquitousKeyValueStoreChangedKeysKey", "Foundation")] public static NSString ChangedKeysKey { get { if (_ChangedKeysKey == null) { _ChangedKeysKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUbiquitousKeyValueStoreChangedKeysKey"); } return _ChangedKeysKey; } } public void SetString(string key, string value) { _SetString(value, key); } public void SetData(string key, NSData value) { _SetData(value, key); } public void SetArray(string key, NSObject[] value) { _SetArray(value, key); } public void SetDictionary(string key, NSDictionary value) { _SetDictionary(value, key); } public void SetLong(string key, long value) { _SetLong(value, key); } public void SetDouble(string key, double value) { _SetDouble(value, key); } public void SetBool(string key, bool value) { _SetBool(value, key); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUbiquitousKeyValueStore() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUbiquitousKeyValueStore(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUbiquitousKeyValueStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUbiquitousKeyValueStore(IntPtr handle) : base(handle) { } [Export("objectForKey:")] internal virtual NSObject ObjectForKey(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setObject:forKey:")] internal virtual void SetObjectForKey(NSObject anObject, string aKey) { if (anObject == null) { throw new ArgumentNullException("anObject"); } if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetObjectForKey_Handle, anObject.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetObjectForKey_Handle, anObject.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeObjectForKey:")] public virtual void Remove(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("stringForKey:")] public virtual string GetString(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringForKey_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("arrayForKey:")] public virtual NSObject[] GetArray(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selArrayForKey_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selArrayForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("dictionaryForKey:")] public virtual NSDictionary GetDictionary(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDictionaryForKey_Handle, arg))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDictionaryForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("dataForKey:")] public virtual NSData GetData(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDataForKey_Handle, arg))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDataForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("longLongForKey:")] public virtual long GetLong(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); long result = ((!IsDirectBinding) ? Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selLongLongForKey_Handle, arg) : Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selLongLongForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("doubleForKey:")] public virtual double GetDouble(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); double result = ((!IsDirectBinding) ? Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDoubleForKey_Handle, arg) : Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDoubleForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("boolForKey:")] public virtual bool GetBool(string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selBoolForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selBoolForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setString:forKey:")] internal virtual void _SetString(string aString, string aKey) { if (aString == null) { throw new ArgumentNullException("aString"); } if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aString); IntPtr arg2 = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetStringForKey_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetStringForKey_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("setData:forKey:")] internal virtual void _SetData(NSData data, string key) { if (data == null) { throw new ArgumentNullException("data"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDataForKey_Handle, data.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDataForKey_Handle, data.Handle, arg); } NSString.ReleaseNative(arg); } [Export("setArray:forKey:")] internal virtual void _SetArray(NSObject[] array, string key) { if (array == null) { throw new ArgumentNullException("array"); } if (key == null) { throw new ArgumentNullException("key"); } NSArray nSArray = NSArray.FromNSObjects(array); IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetArrayForKey_Handle, nSArray.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetArrayForKey_Handle, nSArray.Handle, arg); } nSArray.Dispose(); NSString.ReleaseNative(arg); } [Export("setDictionary:forKey:")] internal virtual void _SetDictionary(NSDictionary aDictionary, string aKey) { if (aDictionary == null) { throw new ArgumentNullException("aDictionary"); } if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDictionaryForKey_Handle, aDictionary.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDictionaryForKey_Handle, aDictionary.Handle, arg); } NSString.ReleaseNative(arg); } [Export("setLongLong:forKey:")] internal virtual void _SetLong(long value, string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64_IntPtr(base.Handle, selSetLongLongForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_Int64_IntPtr(base.SuperHandle, selSetLongLongForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("setDouble:forKey:")] internal virtual void _SetDouble(double value, string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_IntPtr(base.Handle, selSetDoubleForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selSetDoubleForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("setBool:forKey:")] internal virtual void _SetBool(bool value, string aKey) { if (aKey == null) { throw new ArgumentNullException("aKey"); } IntPtr arg = NSString.CreateNative(aKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_IntPtr(base.Handle, selSetBoolForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selSetBoolForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("dictionaryRepresentation")] public virtual NSDictionary DictionaryRepresentation() { if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDictionaryRepresentationHandle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDictionaryRepresentationHandle)); } [Export("synchronize")] public virtual bool Synchronize() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSynchronizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSynchronizeHandle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUbiquitousKeyValueStoreChangeEventArgs.cs ================================================ using System; using ObjCRuntime; namespace Foundation; public class NSUbiquitousKeyValueStoreChangeEventArgs : NSNotificationEventArgs { private static IntPtr k0; private static IntPtr k1; public string[] ChangedKeys { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSUbiquitousKeyValueStoreChangedKeysKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return new string[0]; } return NSArray.StringArrayFromHandle(intPtr); } } public NSUbiquitousKeyValueStoreChangeReason ChangeReason { get { if (k1 == IntPtr.Zero) { k1 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSUbiquitousKeyValueStoreChangeReasonKey"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k1); if (intPtr == IntPtr.Zero) { return NSUbiquitousKeyValueStoreChangeReason.ServerChange; } using NSNumber nSNumber = new NSNumber(intPtr); return (NSUbiquitousKeyValueStoreChangeReason)nSNumber.Int32Value; } } public NSUbiquitousKeyValueStoreChangeEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUbiquitousKeyValueStoreChangeReason.cs ================================================ namespace Foundation; public enum NSUbiquitousKeyValueStoreChangeReason { ServerChange, InitialSyncChange, QuotaViolationChange, AccountChange } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUndoManager.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUndoManager", true)] public class NSUndoManager : NSObject { public static class Notifications { public static NSObject ObserveCheckpoint(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(CheckpointNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidOpenUndoGroup(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidOpenUndoGroupNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidRedoChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidRedoChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidUndoChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidUndoChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillCloseUndoGroup(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillCloseUndoGroupNotification, delegate(NSNotification notification) { handler(null, new NSUndoManagerCloseUndoGroupEventArgs(notification)); }); } public static NSObject ObserveWillRedoChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillRedoChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveWillUndoChange(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(WillUndoChangeNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDidCloseUndoGroup(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DidCloseUndoGroupNotification, delegate(NSNotification notification) { handler(null, new NSUndoManagerCloseUndoGroupEventArgs(notification)); }); } } private static readonly IntPtr selGroupingLevelHandle = Selector.GetHandle("groupingLevel"); private static readonly IntPtr selIsUndoRegistrationEnabledHandle = Selector.GetHandle("isUndoRegistrationEnabled"); private static readonly IntPtr selGroupsByEventHandle = Selector.GetHandle("groupsByEvent"); private static readonly IntPtr selSetGroupsByEvent_Handle = Selector.GetHandle("setGroupsByEvent:"); private static readonly IntPtr selLevelsOfUndoHandle = Selector.GetHandle("levelsOfUndo"); private static readonly IntPtr selSetLevelsOfUndo_Handle = Selector.GetHandle("setLevelsOfUndo:"); private static readonly IntPtr selRunLoopModesHandle = Selector.GetHandle("runLoopModes"); private static readonly IntPtr selSetRunLoopModes_Handle = Selector.GetHandle("setRunLoopModes:"); private static readonly IntPtr selCanUndoHandle = Selector.GetHandle("canUndo"); private static readonly IntPtr selCanRedoHandle = Selector.GetHandle("canRedo"); private static readonly IntPtr selIsUndoingHandle = Selector.GetHandle("isUndoing"); private static readonly IntPtr selIsRedoingHandle = Selector.GetHandle("isRedoing"); private static readonly IntPtr selUndoActionNameHandle = Selector.GetHandle("undoActionName"); private static readonly IntPtr selRedoActionNameHandle = Selector.GetHandle("redoActionName"); private static readonly IntPtr selUndoMenuItemTitleHandle = Selector.GetHandle("undoMenuItemTitle"); private static readonly IntPtr selRedoMenuItemTitleHandle = Selector.GetHandle("redoMenuItemTitle"); private static readonly IntPtr selUndoActionIsDiscardableHandle = Selector.GetHandle("undoActionIsDiscardable"); private static readonly IntPtr selRedoActionIsDiscardableHandle = Selector.GetHandle("redoActionIsDiscardable"); private static readonly IntPtr selBeginUndoGroupingHandle = Selector.GetHandle("beginUndoGrouping"); private static readonly IntPtr selEndUndoGroupingHandle = Selector.GetHandle("endUndoGrouping"); private static readonly IntPtr selDisableUndoRegistrationHandle = Selector.GetHandle("disableUndoRegistration"); private static readonly IntPtr selEnableUndoRegistrationHandle = Selector.GetHandle("enableUndoRegistration"); private static readonly IntPtr selUndoHandle = Selector.GetHandle("undo"); private static readonly IntPtr selRedoHandle = Selector.GetHandle("redo"); private static readonly IntPtr selUndoNestedGroupHandle = Selector.GetHandle("undoNestedGroup"); private static readonly IntPtr selRemoveAllActionsHandle = Selector.GetHandle("removeAllActions"); private static readonly IntPtr selRemoveAllActionsWithTarget_Handle = Selector.GetHandle("removeAllActionsWithTarget:"); private static readonly IntPtr selRegisterUndoWithTargetSelectorObject_Handle = Selector.GetHandle("registerUndoWithTarget:selector:object:"); private static readonly IntPtr selPrepareWithInvocationTarget_Handle = Selector.GetHandle("prepareWithInvocationTarget:"); private static readonly IntPtr selSetActionName_Handle = Selector.GetHandle("setActionName:"); private static readonly IntPtr selUndoMenuTitleForUndoActionName_Handle = Selector.GetHandle("undoMenuTitleForUndoActionName:"); private static readonly IntPtr selRedoMenuTitleForUndoActionName_Handle = Selector.GetHandle("redoMenuTitleForUndoActionName:"); private static readonly IntPtr selSetActionIsDiscardable_Handle = Selector.GetHandle("setActionIsDiscardable:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUndoManager"); private static NSString _CheckpointNotification; private static NSString _DidOpenUndoGroupNotification; private static NSString _DidRedoChangeNotification; private static NSString _DidUndoChangeNotification; private static NSString _WillCloseUndoGroupNotification; private static NSString _WillRedoChangeNotification; private static NSString _WillUndoChangeNotification; private static NSString _GroupIsDiscardableKey; private static NSString _DidCloseUndoGroupNotification; public override IntPtr ClassHandle => class_ptr; public virtual long GroupingLevel { [Export("groupingLevel")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selGroupingLevelHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selGroupingLevelHandle); } } public virtual bool IsUndoRegistrationEnabled { [Export("isUndoRegistrationEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsUndoRegistrationEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsUndoRegistrationEnabledHandle); } } public virtual bool GroupsByEvent { [Export("groupsByEvent")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selGroupsByEventHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selGroupsByEventHandle); } [Export("setGroupsByEvent:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetGroupsByEvent_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetGroupsByEvent_Handle, value); } } } public virtual long LevelsOfUndo { [Export("levelsOfUndo")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selLevelsOfUndoHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selLevelsOfUndoHandle); } [Export("setLevelsOfUndo:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetLevelsOfUndo_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetLevelsOfUndo_Handle, value); } } } public virtual string[] RunLoopModes { [Export("runLoopModes")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRunLoopModesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRunLoopModesHandle)); } [Export("setRunLoopModes:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetRunLoopModes_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetRunLoopModes_Handle, nSArray.Handle); } nSArray.Dispose(); } } public virtual bool CanUndo { [Export("canUndo")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanUndoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanUndoHandle); } } public virtual bool CanRedo { [Export("canRedo")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanRedoHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanRedoHandle); } } public virtual bool IsUndoing { [Export("isUndoing")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsUndoingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsUndoingHandle); } } public virtual bool IsRedoing { [Export("isRedoing")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRedoingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRedoingHandle); } } public virtual string UndoActionName { [Export("undoActionName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUndoActionNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUndoActionNameHandle)); } } public virtual string RedoActionName { [Export("redoActionName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRedoActionNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRedoActionNameHandle)); } } public virtual string UndoMenuItemTitle { [Export("undoMenuItemTitle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUndoMenuItemTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUndoMenuItemTitleHandle)); } } public virtual string RedoMenuItemTitle { [Export("redoMenuItemTitle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRedoMenuItemTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRedoMenuItemTitleHandle)); } } [Since(5, 0)] public virtual bool UndoActionIsDiscardable { [Export("undoActionIsDiscardable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUndoActionIsDiscardableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUndoActionIsDiscardableHandle); } } [Since(5, 0)] public virtual bool RedoActionIsDiscardable { [Export("redoActionIsDiscardable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRedoActionIsDiscardableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRedoActionIsDiscardableHandle); } } [Field("NSUndoManagerCheckpointNotification", "Foundation")] public static NSString CheckpointNotification { get { if (_CheckpointNotification == null) { _CheckpointNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerCheckpointNotification"); } return _CheckpointNotification; } } [Field("NSUndoManagerDidOpenUndoGroupNotification", "Foundation")] public static NSString DidOpenUndoGroupNotification { get { if (_DidOpenUndoGroupNotification == null) { _DidOpenUndoGroupNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerDidOpenUndoGroupNotification"); } return _DidOpenUndoGroupNotification; } } [Field("NSUndoManagerDidRedoChangeNotification", "Foundation")] public static NSString DidRedoChangeNotification { get { if (_DidRedoChangeNotification == null) { _DidRedoChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerDidRedoChangeNotification"); } return _DidRedoChangeNotification; } } [Field("NSUndoManagerDidUndoChangeNotification", "Foundation")] public static NSString DidUndoChangeNotification { get { if (_DidUndoChangeNotification == null) { _DidUndoChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerDidUndoChangeNotification"); } return _DidUndoChangeNotification; } } [Field("NSUndoManagerWillCloseUndoGroupNotification", "Foundation")] public static NSString WillCloseUndoGroupNotification { get { if (_WillCloseUndoGroupNotification == null) { _WillCloseUndoGroupNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerWillCloseUndoGroupNotification"); } return _WillCloseUndoGroupNotification; } } [Field("NSUndoManagerWillRedoChangeNotification", "Foundation")] public static NSString WillRedoChangeNotification { get { if (_WillRedoChangeNotification == null) { _WillRedoChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerWillRedoChangeNotification"); } return _WillRedoChangeNotification; } } [Field("NSUndoManagerWillUndoChangeNotification", "Foundation")] public static NSString WillUndoChangeNotification { get { if (_WillUndoChangeNotification == null) { _WillUndoChangeNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerWillUndoChangeNotification"); } return _WillUndoChangeNotification; } } [Field("NSUndoManagerGroupIsDiscardableKey", "Foundation")] public static NSString GroupIsDiscardableKey { get { if (_GroupIsDiscardableKey == null) { _GroupIsDiscardableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerGroupIsDiscardableKey"); } return _GroupIsDiscardableKey; } } [Field("NSUndoManagerDidCloseUndoGroupNotification", "Foundation")] public static NSString DidCloseUndoGroupNotification { get { if (_DidCloseUndoGroupNotification == null) { _DidCloseUndoGroupNotification = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUndoManagerDidCloseUndoGroupNotification"); } return _DidCloseUndoGroupNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUndoManager() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUndoManager(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUndoManager(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUndoManager(IntPtr handle) : base(handle) { } [Export("beginUndoGrouping")] public virtual void BeginUndoGrouping() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBeginUndoGroupingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBeginUndoGroupingHandle); } } [Export("endUndoGrouping")] public virtual void EndUndoGrouping() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEndUndoGroupingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEndUndoGroupingHandle); } } [Export("disableUndoRegistration")] public virtual void DisableUndoRegistration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDisableUndoRegistrationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDisableUndoRegistrationHandle); } } [Export("enableUndoRegistration")] public virtual void EnableUndoRegistration() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selEnableUndoRegistrationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selEnableUndoRegistrationHandle); } } [Export("undo")] public virtual void Undo() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUndoHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUndoHandle); } } [Export("redo")] public virtual void Redo() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRedoHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRedoHandle); } } [Export("undoNestedGroup")] public virtual void UndoNestedGroup() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selUndoNestedGroupHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selUndoNestedGroupHandle); } } [Export("removeAllActions")] public virtual void RemoveAllActions() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllActionsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllActionsHandle); } } [Export("removeAllActionsWithTarget:")] public virtual void RemoveAllActions(NSObject target) { if (target == null) { throw new ArgumentNullException("target"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAllActionsWithTarget_Handle, target.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAllActionsWithTarget_Handle, target.Handle); } } [Export("registerUndoWithTarget:selector:object:")] public virtual void RegisterUndoWithTarget(NSObject target, Selector selector, NSObject anObject) { if (target == null) { throw new ArgumentNullException("target"); } if (selector == null) { throw new ArgumentNullException("selector"); } if (anObject == null) { throw new ArgumentNullException("anObject"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRegisterUndoWithTargetSelectorObject_Handle, target.Handle, selector.Handle, anObject.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRegisterUndoWithTargetSelectorObject_Handle, target.Handle, selector.Handle, anObject.Handle); } } [Export("prepareWithInvocationTarget:")] public virtual NSObject PrepareWithInvocationTarget(NSObject target) { if (target == null) { throw new ArgumentNullException("target"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPrepareWithInvocationTarget_Handle, target.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrepareWithInvocationTarget_Handle, target.Handle)); } [Export("setActionName:")] public virtual void SetActionname(string actionName) { if (actionName == null) { throw new ArgumentNullException("actionName"); } IntPtr arg = NSString.CreateNative(actionName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetActionName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetActionName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("undoMenuTitleForUndoActionName:")] public virtual string UndoMenuTitleForUndoActionName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selUndoMenuTitleForUndoActionName_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selUndoMenuTitleForUndoActionName_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("redoMenuTitleForUndoActionName:")] public virtual string RedoMenuTitleForUndoActionName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRedoMenuTitleForUndoActionName_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRedoMenuTitleForUndoActionName_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setActionIsDiscardable:")] public virtual void SetActionIsDiscardable(bool discardable) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetActionIsDiscardable_Handle, discardable); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetActionIsDiscardable_Handle, discardable); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUndoManagerCloseUndoGroupEventArgs.cs ================================================ using System; using ObjCRuntime; namespace Foundation; public class NSUndoManagerCloseUndoGroupEventArgs : NSNotificationEventArgs { private static IntPtr k0; public bool? Discardable { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSUndoManagerGroupIsDiscardableKey"); } if (base.Notification.UserInfo == null) { return null; } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } using NSNumber nSNumber = new NSNumber(intPtr); return nSNumber.BoolValue; } } public NSUndoManagerCloseUndoGroupEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrl.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using AppKit; using ObjCRuntime; namespace Foundation; [Register("NSURL", true)] public class NSUrl : NSObject { private static readonly IntPtr selAbsoluteStringHandle = Selector.GetHandle("absoluteString"); private static readonly IntPtr selAbsoluteURLHandle = Selector.GetHandle("absoluteURL"); private static readonly IntPtr selBaseURLHandle = Selector.GetHandle("baseURL"); private static readonly IntPtr selFragmentHandle = Selector.GetHandle("fragment"); private static readonly IntPtr selHostHandle = Selector.GetHandle("host"); private static readonly IntPtr selIsFileURLHandle = Selector.GetHandle("isFileURL"); private static readonly IntPtr selParameterStringHandle = Selector.GetHandle("parameterString"); private static readonly IntPtr selPasswordHandle = Selector.GetHandle("password"); private static readonly IntPtr selPathHandle = Selector.GetHandle("path"); private static readonly IntPtr selQueryHandle = Selector.GetHandle("query"); private static readonly IntPtr selRelativePathHandle = Selector.GetHandle("relativePath"); private static readonly IntPtr selRelativeStringHandle = Selector.GetHandle("relativeString"); private static readonly IntPtr selResourceSpecifierHandle = Selector.GetHandle("resourceSpecifier"); private static readonly IntPtr selSchemeHandle = Selector.GetHandle("scheme"); private static readonly IntPtr selUserHandle = Selector.GetHandle("user"); private static readonly IntPtr selStandardizedURLHandle = Selector.GetHandle("standardizedURL"); private static readonly IntPtr selFilePathURLHandle = Selector.GetHandle("filePathURL"); private static readonly IntPtr selFileReferenceURLHandle = Selector.GetHandle("fileReferenceURL"); private static readonly IntPtr selInitWithSchemeHostPath_Handle = Selector.GetHandle("initWithScheme:host:path:"); private static readonly IntPtr selInitFileURLWithPathIsDirectory_Handle = Selector.GetHandle("initFileURLWithPath:isDirectory:"); private static readonly IntPtr selInitWithString_Handle = Selector.GetHandle("initWithString:"); private static readonly IntPtr selInitWithStringRelativeToURL_Handle = Selector.GetHandle("initWithString:relativeToURL:"); private static readonly IntPtr selURLWithString_Handle = Selector.GetHandle("URLWithString:"); private static readonly IntPtr selURLWithStringRelativeToURL_Handle = Selector.GetHandle("URLWithString:relativeToURL:"); private static readonly IntPtr selIsEqual_Handle = Selector.GetHandle("isEqual:"); private static readonly IntPtr selURLByAppendingPathComponentIsDirectory_Handle = Selector.GetHandle("URLByAppendingPathComponent:isDirectory:"); private static readonly IntPtr selURLFromPasteboard_Handle = Selector.GetHandle("URLFromPasteboard:"); private static readonly IntPtr selWriteToPasteboard_Handle = Selector.GetHandle("writeToPasteboard:"); private static readonly IntPtr selBookmarkDataWithContentsOfURLError_Handle = Selector.GetHandle("bookmarkDataWithContentsOfURL:error:"); private static readonly IntPtr selURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError_Handle = Selector.GetHandle("URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); private static readonly IntPtr selWriteBookmarkDataToURLOptionsError_Handle = Selector.GetHandle("writeBookmarkData:toURL:options:error:"); private static readonly IntPtr selStartAccessingSecurityScopedResourceHandle = Selector.GetHandle("startAccessingSecurityScopedResource"); private static readonly IntPtr selStopAccessingSecurityScopedResourceHandle = Selector.GetHandle("stopAccessingSecurityScopedResource"); private static readonly IntPtr selGetResourceValueForKeyError_Handle = Selector.GetHandle("getResourceValue:forKey:error:"); private static readonly IntPtr selResourceValuesForKeysError_Handle = Selector.GetHandle("resourceValuesForKeys:error:"); private static readonly IntPtr selSetResourceValueForKeyError_Handle = Selector.GetHandle("setResourceValue:forKey:error:"); private static readonly IntPtr selBookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError_Handle = Selector.GetHandle("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); private static readonly IntPtr selInitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError_Handle = Selector.GetHandle("initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURL"); private object __mt_AbsoluteUrl_var; private object __mt_BaseUrl_var; private object __mt_StandardizedUrl_var; private object __mt_FilePathUrl_var; private object __mt_FileReferenceUrl_var; private static NSString _NameKey; private static NSString _LocalizedNameKey; private static NSString _IsRegularFileKey; private static NSString _IsDirectoryKey; private static NSString _IsSymbolicLinkKey; private static NSString _IsVolumeKey; private static NSString _IsPackageKey; private static NSString _IsSystemImmutableKey; private static NSString _IsUserImmutableKey; private static NSString _IsHiddenKey; private static NSString _HasHiddenExtensionKey; private static NSString _CreationDateKey; private static NSString _ContentAccessDateKey; private static NSString _ContentModificationDateKey; private static NSString _AttributeModificationDateKey; private static NSString _LinkCountKey; private static NSString _ParentDirectoryURLKey; private static NSString _VolumeURLKey; private static NSString _TypeIdentifierKey; private static NSString _LocalizedTypeDescriptionKey; private static NSString _LabelNumberKey; private static NSString _LabelColorKey; private static NSString _LocalizedLabelKey; private static NSString _EffectiveIconKey; private static NSString _CustomIconKey; private static NSString _FileSizeKey; private static NSString _FileAllocatedSizeKey; private static NSString _IsAliasFileKey; private static NSString _VolumeLocalizedFormatDescriptionKey; private static NSString _VolumeTotalCapacityKey; private static NSString _VolumeAvailableCapacityKey; private static NSString _VolumeResourceCountKey; private static NSString _VolumeSupportsPersistentIDsKey; private static NSString _VolumeSupportsSymbolicLinksKey; private static NSString _VolumeSupportsHardLinksKey; private static NSString _VolumeSupportsJournalingKey; private static NSString _VolumeIsJournalingKey; private static NSString _VolumeSupportsSparseFilesKey; private static NSString _VolumeSupportsZeroRunsKey; private static NSString _VolumeSupportsCaseSensitiveNamesKey; private static NSString _VolumeSupportsCasePreservedNamesKey; private static NSString _KeysOfUnsetValuesKey; private static NSString _FileResourceIdentifierKey; private static NSString _VolumeIdentifierKey; private static NSString _PreferredIOBlockSizeKey; private static NSString _IsReadableKey; private static NSString _IsWritableKey; private static NSString _IsExecutableKey; private static NSString _IsMountTriggerKey; private static NSString _FileSecurityKey; private static NSString _FileResourceTypeKey; private static NSString _FileResourceTypeNamedPipe; private static NSString _FileResourceTypeCharacterSpecial; private static NSString _FileResourceTypeDirectory; private static NSString _FileResourceTypeBlockSpecial; private static NSString _FileResourceTypeRegular; private static NSString _FileResourceTypeSymbolicLink; private static NSString _FileResourceTypeSocket; private static NSString _FileResourceTypeUnknown; private static NSString _TotalFileSizeKey; private static NSString _TotalFileAllocatedSizeKey; private static NSString _VolumeSupportsRootDirectoryDatesKey; private static NSString _VolumeSupportsVolumeSizesKey; private static NSString _VolumeSupportsRenamingKey; private static NSString _VolumeSupportsAdvisoryFileLockingKey; private static NSString _VolumeSupportsExtendedSecurityKey; private static NSString _VolumeIsBrowsableKey; private static NSString _VolumeMaximumFileSizeKey; private static NSString _VolumeIsEjectableKey; private static NSString _VolumeIsRemovableKey; private static NSString _VolumeIsInternalKey; private static NSString _VolumeIsAutomountedKey; private static NSString _VolumeIsLocalKey; private static NSString _VolumeIsReadOnlyKey; private static NSString _VolumeCreationDateKey; private static NSString _VolumeURLForRemountingKey; private static NSString _VolumeUUIDStringKey; private static NSString _VolumeNameKey; private static NSString _VolumeLocalizedNameKey; private static NSString _IsUbiquitousItemKey; private static NSString _UbiquitousItemHasUnresolvedConflictsKey; private static NSString _UbiquitousItemIsDownloadedKey; private static NSString _UbiquitousItemIsDownloadingKey; private static NSString _UbiquitousItemIsUploadedKey; private static NSString _UbiquitousItemIsUploadingKey; private static NSString _UbiquitousItemPercentDownloadedKey; private static NSString _UbiquitousItemPercentUploadedKey; private static NSString _IsExcludedFromBackupKey; private static NSString _PathKey; public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrl(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrl(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrl(IntPtr handle) : base(handle) { } [Export("initWithScheme:host:path:")] public NSUrl(string scheme, string host, string path) : base(NSObjectFlag.Empty) { if (scheme == null) { throw new ArgumentNullException("scheme"); } if (host == null) { throw new ArgumentNullException("host"); } if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(scheme); IntPtr arg2 = NSString.CreateNative(host); IntPtr arg3 = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithSchemeHostPath_Handle, arg, arg2, arg3); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithSchemeHostPath_Handle, arg, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("initFileURLWithPath:isDirectory:")] public NSUrl(string path, bool isDir) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selInitFileURLWithPathIsDirectory_Handle, arg, isDir); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selInitFileURLWithPathIsDirectory_Handle, arg, isDir); } NSString.ReleaseNative(arg); } [Export("initWithString:")] public NSUrl(string path) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithString:relativeToURL:")] public NSUrl(string path, NSUrl relativeToUrl) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } if (relativeToUrl == null) { throw new ArgumentNullException("relativeToUrl"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithStringRelativeToURL_Handle, arg, relativeToUrl.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithStringRelativeToURL_Handle, arg, relativeToUrl.Handle); } NSString.ReleaseNative(arg); } public virtual string AbsoluteString { [Export("absoluteString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAbsoluteStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAbsoluteStringHandle)); } } public virtual NSUrl AbsoluteUrl { [Export("absoluteURL")] get { return (NSUrl)(__mt_AbsoluteUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAbsoluteURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAbsoluteURLHandle))))); } } public virtual NSUrl BaseUrl { [Export("baseURL")] get { return (NSUrl)(__mt_BaseUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBaseURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBaseURLHandle))))); } } public virtual string Fragment { [Export("fragment")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFragmentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFragmentHandle)); } } public virtual string Host { [Export("host")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHostHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHostHandle)); } } public virtual bool IsFileUrl { [Export("isFileURL")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFileURLHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFileURLHandle); } } public virtual string ParameterString { [Export("parameterString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selParameterStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParameterStringHandle)); } } public virtual string Password { [Export("password")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPasswordHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPasswordHandle)); } } public virtual string Path { [Export("path")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathHandle)); } } public virtual string Query { [Export("query")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selQueryHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQueryHandle)); } } public virtual string RelativePath { [Export("relativePath")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRelativePathHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRelativePathHandle)); } } public virtual string RelativeString { [Export("relativeString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRelativeStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRelativeStringHandle)); } } public virtual string ResourceSpecifier { [Export("resourceSpecifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selResourceSpecifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResourceSpecifierHandle)); } } public virtual string Scheme { [Export("scheme")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSchemeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSchemeHandle)); } } public virtual string User { [Export("user")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserHandle)); } } public virtual NSUrl StandardizedUrl { [Export("standardizedURL")] get { return (NSUrl)(__mt_StandardizedUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandardizedURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStandardizedURLHandle))))); } } public virtual NSUrl FilePathUrl { [Export("filePathURL")] get { return (NSUrl)(__mt_FilePathUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilePathURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilePathURLHandle))))); } } public virtual NSUrl FileReferenceUrl { [Export("fileReferenceURL")] get { return (NSUrl)(__mt_FileReferenceUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFileReferenceURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFileReferenceURLHandle))))); } } [Field("NSURLNameKey", "Foundation")] public static NSString NameKey { get { if (_NameKey == null) { _NameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLNameKey"); } return _NameKey; } } [Field("NSURLLocalizedNameKey", "Foundation")] public static NSString LocalizedNameKey { get { if (_LocalizedNameKey == null) { _LocalizedNameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLocalizedNameKey"); } return _LocalizedNameKey; } } [Field("NSURLIsRegularFileKey", "Foundation")] public static NSString IsRegularFileKey { get { if (_IsRegularFileKey == null) { _IsRegularFileKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsRegularFileKey"); } return _IsRegularFileKey; } } [Field("NSURLIsDirectoryKey", "Foundation")] public static NSString IsDirectoryKey { get { if (_IsDirectoryKey == null) { _IsDirectoryKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsDirectoryKey"); } return _IsDirectoryKey; } } [Field("NSURLIsSymbolicLinkKey", "Foundation")] public static NSString IsSymbolicLinkKey { get { if (_IsSymbolicLinkKey == null) { _IsSymbolicLinkKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsSymbolicLinkKey"); } return _IsSymbolicLinkKey; } } [Field("NSURLIsVolumeKey", "Foundation")] public static NSString IsVolumeKey { get { if (_IsVolumeKey == null) { _IsVolumeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsVolumeKey"); } return _IsVolumeKey; } } [Field("NSURLIsPackageKey", "Foundation")] public static NSString IsPackageKey { get { if (_IsPackageKey == null) { _IsPackageKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsPackageKey"); } return _IsPackageKey; } } [Field("NSURLIsSystemImmutableKey", "Foundation")] public static NSString IsSystemImmutableKey { get { if (_IsSystemImmutableKey == null) { _IsSystemImmutableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsSystemImmutableKey"); } return _IsSystemImmutableKey; } } [Field("NSURLIsUserImmutableKey", "Foundation")] public static NSString IsUserImmutableKey { get { if (_IsUserImmutableKey == null) { _IsUserImmutableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsUserImmutableKey"); } return _IsUserImmutableKey; } } [Field("NSURLIsHiddenKey", "Foundation")] public static NSString IsHiddenKey { get { if (_IsHiddenKey == null) { _IsHiddenKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsHiddenKey"); } return _IsHiddenKey; } } [Field("NSURLHasHiddenExtensionKey", "Foundation")] public static NSString HasHiddenExtensionKey { get { if (_HasHiddenExtensionKey == null) { _HasHiddenExtensionKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLHasHiddenExtensionKey"); } return _HasHiddenExtensionKey; } } [Field("NSURLCreationDateKey", "Foundation")] public static NSString CreationDateKey { get { if (_CreationDateKey == null) { _CreationDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLCreationDateKey"); } return _CreationDateKey; } } [Field("NSURLContentAccessDateKey", "Foundation")] public static NSString ContentAccessDateKey { get { if (_ContentAccessDateKey == null) { _ContentAccessDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLContentAccessDateKey"); } return _ContentAccessDateKey; } } [Field("NSURLContentModificationDateKey", "Foundation")] public static NSString ContentModificationDateKey { get { if (_ContentModificationDateKey == null) { _ContentModificationDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLContentModificationDateKey"); } return _ContentModificationDateKey; } } [Field("NSURLAttributeModificationDateKey", "Foundation")] public static NSString AttributeModificationDateKey { get { if (_AttributeModificationDateKey == null) { _AttributeModificationDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAttributeModificationDateKey"); } return _AttributeModificationDateKey; } } [Field("NSURLLinkCountKey", "Foundation")] public static NSString LinkCountKey { get { if (_LinkCountKey == null) { _LinkCountKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLinkCountKey"); } return _LinkCountKey; } } [Field("NSURLParentDirectoryURLKey", "Foundation")] public static NSString ParentDirectoryURLKey { get { if (_ParentDirectoryURLKey == null) { _ParentDirectoryURLKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLParentDirectoryURLKey"); } return _ParentDirectoryURLKey; } } [Field("NSURLVolumeURLKey", "Foundation")] public static NSString VolumeURLKey { get { if (_VolumeURLKey == null) { _VolumeURLKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeURLKey"); } return _VolumeURLKey; } } [Field("NSURLTypeIdentifierKey", "Foundation")] public static NSString TypeIdentifierKey { get { if (_TypeIdentifierKey == null) { _TypeIdentifierKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLTypeIdentifierKey"); } return _TypeIdentifierKey; } } [Field("NSURLLocalizedTypeDescriptionKey", "Foundation")] public static NSString LocalizedTypeDescriptionKey { get { if (_LocalizedTypeDescriptionKey == null) { _LocalizedTypeDescriptionKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLocalizedTypeDescriptionKey"); } return _LocalizedTypeDescriptionKey; } } [Field("NSURLLabelNumberKey", "Foundation")] public static NSString LabelNumberKey { get { if (_LabelNumberKey == null) { _LabelNumberKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLabelNumberKey"); } return _LabelNumberKey; } } [Field("NSURLLabelColorKey", "Foundation")] public static NSString LabelColorKey { get { if (_LabelColorKey == null) { _LabelColorKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLabelColorKey"); } return _LabelColorKey; } } [Field("NSURLLocalizedLabelKey", "Foundation")] public static NSString LocalizedLabelKey { get { if (_LocalizedLabelKey == null) { _LocalizedLabelKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLLocalizedLabelKey"); } return _LocalizedLabelKey; } } [Field("NSURLEffectiveIconKey", "Foundation")] public static NSString EffectiveIconKey { get { if (_EffectiveIconKey == null) { _EffectiveIconKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLEffectiveIconKey"); } return _EffectiveIconKey; } } [Field("NSURLCustomIconKey", "Foundation")] public static NSString CustomIconKey { get { if (_CustomIconKey == null) { _CustomIconKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLCustomIconKey"); } return _CustomIconKey; } } [Field("NSURLFileSizeKey", "Foundation")] public static NSString FileSizeKey { get { if (_FileSizeKey == null) { _FileSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileSizeKey"); } return _FileSizeKey; } } [Field("NSURLFileAllocatedSizeKey", "Foundation")] public static NSString FileAllocatedSizeKey { get { if (_FileAllocatedSizeKey == null) { _FileAllocatedSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileAllocatedSizeKey"); } return _FileAllocatedSizeKey; } } [Field("NSURLIsAliasFileKey", "Foundation")] public static NSString IsAliasFileKey { get { if (_IsAliasFileKey == null) { _IsAliasFileKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsAliasFileKey"); } return _IsAliasFileKey; } } [Field("NSURLVolumeLocalizedFormatDescriptionKey", "Foundation")] public static NSString VolumeLocalizedFormatDescriptionKey { get { if (_VolumeLocalizedFormatDescriptionKey == null) { _VolumeLocalizedFormatDescriptionKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeLocalizedFormatDescriptionKey"); } return _VolumeLocalizedFormatDescriptionKey; } } [Field("NSURLVolumeTotalCapacityKey", "Foundation")] public static NSString VolumeTotalCapacityKey { get { if (_VolumeTotalCapacityKey == null) { _VolumeTotalCapacityKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeTotalCapacityKey"); } return _VolumeTotalCapacityKey; } } [Field("NSURLVolumeAvailableCapacityKey", "Foundation")] public static NSString VolumeAvailableCapacityKey { get { if (_VolumeAvailableCapacityKey == null) { _VolumeAvailableCapacityKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeAvailableCapacityKey"); } return _VolumeAvailableCapacityKey; } } [Field("NSURLVolumeResourceCountKey", "Foundation")] public static NSString VolumeResourceCountKey { get { if (_VolumeResourceCountKey == null) { _VolumeResourceCountKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeResourceCountKey"); } return _VolumeResourceCountKey; } } [Field("NSURLVolumeSupportsPersistentIDsKey", "Foundation")] public static NSString VolumeSupportsPersistentIDsKey { get { if (_VolumeSupportsPersistentIDsKey == null) { _VolumeSupportsPersistentIDsKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsPersistentIDsKey"); } return _VolumeSupportsPersistentIDsKey; } } [Field("NSURLVolumeSupportsSymbolicLinksKey", "Foundation")] public static NSString VolumeSupportsSymbolicLinksKey { get { if (_VolumeSupportsSymbolicLinksKey == null) { _VolumeSupportsSymbolicLinksKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsSymbolicLinksKey"); } return _VolumeSupportsSymbolicLinksKey; } } [Field("NSURLVolumeSupportsHardLinksKey", "Foundation")] public static NSString VolumeSupportsHardLinksKey { get { if (_VolumeSupportsHardLinksKey == null) { _VolumeSupportsHardLinksKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsHardLinksKey"); } return _VolumeSupportsHardLinksKey; } } [Field("NSURLVolumeSupportsJournalingKey", "Foundation")] public static NSString VolumeSupportsJournalingKey { get { if (_VolumeSupportsJournalingKey == null) { _VolumeSupportsJournalingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsJournalingKey"); } return _VolumeSupportsJournalingKey; } } [Field("NSURLVolumeIsJournalingKey", "Foundation")] public static NSString VolumeIsJournalingKey { get { if (_VolumeIsJournalingKey == null) { _VolumeIsJournalingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsJournalingKey"); } return _VolumeIsJournalingKey; } } [Field("NSURLVolumeSupportsSparseFilesKey", "Foundation")] public static NSString VolumeSupportsSparseFilesKey { get { if (_VolumeSupportsSparseFilesKey == null) { _VolumeSupportsSparseFilesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsSparseFilesKey"); } return _VolumeSupportsSparseFilesKey; } } [Field("NSURLVolumeSupportsZeroRunsKey", "Foundation")] public static NSString VolumeSupportsZeroRunsKey { get { if (_VolumeSupportsZeroRunsKey == null) { _VolumeSupportsZeroRunsKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsZeroRunsKey"); } return _VolumeSupportsZeroRunsKey; } } [Field("NSURLVolumeSupportsCaseSensitiveNamesKey", "Foundation")] public static NSString VolumeSupportsCaseSensitiveNamesKey { get { if (_VolumeSupportsCaseSensitiveNamesKey == null) { _VolumeSupportsCaseSensitiveNamesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsCaseSensitiveNamesKey"); } return _VolumeSupportsCaseSensitiveNamesKey; } } [Field("NSURLVolumeSupportsCasePreservedNamesKey", "Foundation")] public static NSString VolumeSupportsCasePreservedNamesKey { get { if (_VolumeSupportsCasePreservedNamesKey == null) { _VolumeSupportsCasePreservedNamesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsCasePreservedNamesKey"); } return _VolumeSupportsCasePreservedNamesKey; } } [Field("NSURLKeysOfUnsetValuesKey", "Foundation")] public static NSString KeysOfUnsetValuesKey { get { if (_KeysOfUnsetValuesKey == null) { _KeysOfUnsetValuesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLKeysOfUnsetValuesKey"); } return _KeysOfUnsetValuesKey; } } [Field("NSURLFileResourceIdentifierKey", "Foundation")] public static NSString FileResourceIdentifierKey { get { if (_FileResourceIdentifierKey == null) { _FileResourceIdentifierKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceIdentifierKey"); } return _FileResourceIdentifierKey; } } [Field("NSURLVolumeIdentifierKey", "Foundation")] public static NSString VolumeIdentifierKey { get { if (_VolumeIdentifierKey == null) { _VolumeIdentifierKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIdentifierKey"); } return _VolumeIdentifierKey; } } [Field("NSURLPreferredIOBlockSizeKey", "Foundation")] public static NSString PreferredIOBlockSizeKey { get { if (_PreferredIOBlockSizeKey == null) { _PreferredIOBlockSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLPreferredIOBlockSizeKey"); } return _PreferredIOBlockSizeKey; } } [Field("NSURLIsReadableKey", "Foundation")] public static NSString IsReadableKey { get { if (_IsReadableKey == null) { _IsReadableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsReadableKey"); } return _IsReadableKey; } } [Field("NSURLIsWritableKey", "Foundation")] public static NSString IsWritableKey { get { if (_IsWritableKey == null) { _IsWritableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsWritableKey"); } return _IsWritableKey; } } [Field("NSURLIsExecutableKey", "Foundation")] public static NSString IsExecutableKey { get { if (_IsExecutableKey == null) { _IsExecutableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsExecutableKey"); } return _IsExecutableKey; } } [Field("NSURLIsMountTriggerKey", "Foundation")] public static NSString IsMountTriggerKey { get { if (_IsMountTriggerKey == null) { _IsMountTriggerKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsMountTriggerKey"); } return _IsMountTriggerKey; } } [Field("NSURLFileSecurityKey", "Foundation")] public static NSString FileSecurityKey { get { if (_FileSecurityKey == null) { _FileSecurityKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileSecurityKey"); } return _FileSecurityKey; } } [Field("NSURLFileResourceTypeKey", "Foundation")] public static NSString FileResourceTypeKey { get { if (_FileResourceTypeKey == null) { _FileResourceTypeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeKey"); } return _FileResourceTypeKey; } } [Field("NSURLFileResourceTypeNamedPipe", "Foundation")] public static NSString FileResourceTypeNamedPipe { get { if (_FileResourceTypeNamedPipe == null) { _FileResourceTypeNamedPipe = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeNamedPipe"); } return _FileResourceTypeNamedPipe; } } [Field("NSURLFileResourceTypeCharacterSpecial", "Foundation")] public static NSString FileResourceTypeCharacterSpecial { get { if (_FileResourceTypeCharacterSpecial == null) { _FileResourceTypeCharacterSpecial = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeCharacterSpecial"); } return _FileResourceTypeCharacterSpecial; } } [Field("NSURLFileResourceTypeDirectory", "Foundation")] public static NSString FileResourceTypeDirectory { get { if (_FileResourceTypeDirectory == null) { _FileResourceTypeDirectory = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeDirectory"); } return _FileResourceTypeDirectory; } } [Field("NSURLFileResourceTypeBlockSpecial", "Foundation")] public static NSString FileResourceTypeBlockSpecial { get { if (_FileResourceTypeBlockSpecial == null) { _FileResourceTypeBlockSpecial = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeBlockSpecial"); } return _FileResourceTypeBlockSpecial; } } [Field("NSURLFileResourceTypeRegular", "Foundation")] public static NSString FileResourceTypeRegular { get { if (_FileResourceTypeRegular == null) { _FileResourceTypeRegular = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeRegular"); } return _FileResourceTypeRegular; } } [Field("NSURLFileResourceTypeSymbolicLink", "Foundation")] public static NSString FileResourceTypeSymbolicLink { get { if (_FileResourceTypeSymbolicLink == null) { _FileResourceTypeSymbolicLink = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeSymbolicLink"); } return _FileResourceTypeSymbolicLink; } } [Field("NSURLFileResourceTypeSocket", "Foundation")] public static NSString FileResourceTypeSocket { get { if (_FileResourceTypeSocket == null) { _FileResourceTypeSocket = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeSocket"); } return _FileResourceTypeSocket; } } [Field("NSURLFileResourceTypeUnknown", "Foundation")] public static NSString FileResourceTypeUnknown { get { if (_FileResourceTypeUnknown == null) { _FileResourceTypeUnknown = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLFileResourceTypeUnknown"); } return _FileResourceTypeUnknown; } } [Field("NSURLTotalFileSizeKey", "Foundation")] public static NSString TotalFileSizeKey { get { if (_TotalFileSizeKey == null) { _TotalFileSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLTotalFileSizeKey"); } return _TotalFileSizeKey; } } [Field("NSURLTotalFileAllocatedSizeKey", "Foundation")] public static NSString TotalFileAllocatedSizeKey { get { if (_TotalFileAllocatedSizeKey == null) { _TotalFileAllocatedSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLTotalFileAllocatedSizeKey"); } return _TotalFileAllocatedSizeKey; } } [Field("NSURLVolumeSupportsRootDirectoryDatesKey", "Foundation")] public static NSString VolumeSupportsRootDirectoryDatesKey { get { if (_VolumeSupportsRootDirectoryDatesKey == null) { _VolumeSupportsRootDirectoryDatesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsRootDirectoryDatesKey"); } return _VolumeSupportsRootDirectoryDatesKey; } } [Field("NSURLVolumeSupportsVolumeSizesKey", "Foundation")] public static NSString VolumeSupportsVolumeSizesKey { get { if (_VolumeSupportsVolumeSizesKey == null) { _VolumeSupportsVolumeSizesKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsVolumeSizesKey"); } return _VolumeSupportsVolumeSizesKey; } } [Field("NSURLVolumeSupportsRenamingKey", "Foundation")] public static NSString VolumeSupportsRenamingKey { get { if (_VolumeSupportsRenamingKey == null) { _VolumeSupportsRenamingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsRenamingKey"); } return _VolumeSupportsRenamingKey; } } [Field("NSURLVolumeSupportsAdvisoryFileLockingKey", "Foundation")] public static NSString VolumeSupportsAdvisoryFileLockingKey { get { if (_VolumeSupportsAdvisoryFileLockingKey == null) { _VolumeSupportsAdvisoryFileLockingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsAdvisoryFileLockingKey"); } return _VolumeSupportsAdvisoryFileLockingKey; } } [Field("NSURLVolumeSupportsExtendedSecurityKey", "Foundation")] public static NSString VolumeSupportsExtendedSecurityKey { get { if (_VolumeSupportsExtendedSecurityKey == null) { _VolumeSupportsExtendedSecurityKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeSupportsExtendedSecurityKey"); } return _VolumeSupportsExtendedSecurityKey; } } [Field("NSURLVolumeIsBrowsableKey", "Foundation")] public static NSString VolumeIsBrowsableKey { get { if (_VolumeIsBrowsableKey == null) { _VolumeIsBrowsableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsBrowsableKey"); } return _VolumeIsBrowsableKey; } } [Field("NSURLVolumeMaximumFileSizeKey", "Foundation")] public static NSString VolumeMaximumFileSizeKey { get { if (_VolumeMaximumFileSizeKey == null) { _VolumeMaximumFileSizeKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeMaximumFileSizeKey"); } return _VolumeMaximumFileSizeKey; } } [Field("NSURLVolumeIsEjectableKey", "Foundation")] public static NSString VolumeIsEjectableKey { get { if (_VolumeIsEjectableKey == null) { _VolumeIsEjectableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsEjectableKey"); } return _VolumeIsEjectableKey; } } [Field("NSURLVolumeIsRemovableKey", "Foundation")] public static NSString VolumeIsRemovableKey { get { if (_VolumeIsRemovableKey == null) { _VolumeIsRemovableKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsRemovableKey"); } return _VolumeIsRemovableKey; } } [Field("NSURLVolumeIsInternalKey", "Foundation")] public static NSString VolumeIsInternalKey { get { if (_VolumeIsInternalKey == null) { _VolumeIsInternalKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsInternalKey"); } return _VolumeIsInternalKey; } } [Field("NSURLVolumeIsAutomountedKey", "Foundation")] public static NSString VolumeIsAutomountedKey { get { if (_VolumeIsAutomountedKey == null) { _VolumeIsAutomountedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsAutomountedKey"); } return _VolumeIsAutomountedKey; } } [Field("NSURLVolumeIsLocalKey", "Foundation")] public static NSString VolumeIsLocalKey { get { if (_VolumeIsLocalKey == null) { _VolumeIsLocalKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsLocalKey"); } return _VolumeIsLocalKey; } } [Field("NSURLVolumeIsReadOnlyKey", "Foundation")] public static NSString VolumeIsReadOnlyKey { get { if (_VolumeIsReadOnlyKey == null) { _VolumeIsReadOnlyKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeIsReadOnlyKey"); } return _VolumeIsReadOnlyKey; } } [Field("NSURLVolumeCreationDateKey", "Foundation")] public static NSString VolumeCreationDateKey { get { if (_VolumeCreationDateKey == null) { _VolumeCreationDateKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeCreationDateKey"); } return _VolumeCreationDateKey; } } [Field("NSURLVolumeURLForRemountingKey", "Foundation")] public static NSString VolumeURLForRemountingKey { get { if (_VolumeURLForRemountingKey == null) { _VolumeURLForRemountingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeURLForRemountingKey"); } return _VolumeURLForRemountingKey; } } [Field("NSURLVolumeUUIDStringKey", "Foundation")] public static NSString VolumeUUIDStringKey { get { if (_VolumeUUIDStringKey == null) { _VolumeUUIDStringKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeUUIDStringKey"); } return _VolumeUUIDStringKey; } } [Field("NSURLVolumeNameKey", "Foundation")] public static NSString VolumeNameKey { get { if (_VolumeNameKey == null) { _VolumeNameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeNameKey"); } return _VolumeNameKey; } } [Field("NSURLVolumeLocalizedNameKey", "Foundation")] public static NSString VolumeLocalizedNameKey { get { if (_VolumeLocalizedNameKey == null) { _VolumeLocalizedNameKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLVolumeLocalizedNameKey"); } return _VolumeLocalizedNameKey; } } [Field("NSURLIsUbiquitousItemKey", "Foundation")] public static NSString IsUbiquitousItemKey { get { if (_IsUbiquitousItemKey == null) { _IsUbiquitousItemKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsUbiquitousItemKey"); } return _IsUbiquitousItemKey; } } [Field("NSURLUbiquitousItemHasUnresolvedConflictsKey", "Foundation")] public static NSString UbiquitousItemHasUnresolvedConflictsKey { get { if (_UbiquitousItemHasUnresolvedConflictsKey == null) { _UbiquitousItemHasUnresolvedConflictsKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemHasUnresolvedConflictsKey"); } return _UbiquitousItemHasUnresolvedConflictsKey; } } [Field("NSURLUbiquitousItemIsDownloadedKey", "Foundation")] public static NSString UbiquitousItemIsDownloadedKey { get { if (_UbiquitousItemIsDownloadedKey == null) { _UbiquitousItemIsDownloadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemIsDownloadedKey"); } return _UbiquitousItemIsDownloadedKey; } } [Field("NSURLUbiquitousItemIsDownloadingKey", "Foundation")] public static NSString UbiquitousItemIsDownloadingKey { get { if (_UbiquitousItemIsDownloadingKey == null) { _UbiquitousItemIsDownloadingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemIsDownloadingKey"); } return _UbiquitousItemIsDownloadingKey; } } [Field("NSURLUbiquitousItemIsUploadedKey", "Foundation")] public static NSString UbiquitousItemIsUploadedKey { get { if (_UbiquitousItemIsUploadedKey == null) { _UbiquitousItemIsUploadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemIsUploadedKey"); } return _UbiquitousItemIsUploadedKey; } } [Field("NSURLUbiquitousItemIsUploadingKey", "Foundation")] public static NSString UbiquitousItemIsUploadingKey { get { if (_UbiquitousItemIsUploadingKey == null) { _UbiquitousItemIsUploadingKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemIsUploadingKey"); } return _UbiquitousItemIsUploadingKey; } } [Field("NSURLUbiquitousItemPercentDownloadedKey", "Foundation")] public static NSString UbiquitousItemPercentDownloadedKey { get { if (_UbiquitousItemPercentDownloadedKey == null) { _UbiquitousItemPercentDownloadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemPercentDownloadedKey"); } return _UbiquitousItemPercentDownloadedKey; } } [Field("NSURLUbiquitousItemPercentUploadedKey", "Foundation")] public static NSString UbiquitousItemPercentUploadedKey { get { if (_UbiquitousItemPercentUploadedKey == null) { _UbiquitousItemPercentUploadedKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLUbiquitousItemPercentUploadedKey"); } return _UbiquitousItemPercentUploadedKey; } } [Field("NSURLIsExcludedFromBackupKey", "Foundation")] [MountainLion] public static NSString IsExcludedFromBackupKey { [MountainLion] get { if (_IsExcludedFromBackupKey == null) { _IsExcludedFromBackupKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLIsExcludedFromBackupKey"); } return _IsExcludedFromBackupKey; } } [Field("NSURLPathKey", "Foundation")] [MountainLion] public static NSString PathKey { [MountainLion] get { if (_PathKey == null) { _PathKey = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLPathKey"); } return _PathKey; } } public NSUrl(string path, string relativeToUrl) : this(path, new NSUrl(relativeToUrl)) { } public override bool Equals(object t) { if (t == null) { return false; } if (t is NSUrl) { return IsEqual((NSUrl)t); } return false; } public override int GetHashCode() { return (int)base.Handle; } public static NSUrl FromFilename(string url) { return new NSUrl(url, isDir: false); } public NSUrl MakeRelative(string url) { return _FromStringRelative(url, this); } public override string ToString() { return AbsoluteString ?? base.ToString(); } public bool TryGetResource(string key, out NSObject value, out NSError error) { return GetResourceValue(out value, key, out error); } public bool TryGetResource(string key, out NSObject value) { NSError error; return GetResourceValue(out value, key, out error); } public bool SetResource(string key, NSObject value, out NSError error) { return SetResourceValue(value, key, out error); } public bool SetResource(string key, NSObject value) { NSError error; return SetResourceValue(value, key, out error); } [Export("URLWithString:")] public static NSUrl FromString(string s) { if (s == null) { throw new ArgumentNullException("s"); } IntPtr arg = NSString.CreateNative(s); NSUrl result = (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selURLWithString_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("URLWithString:relativeToURL:")] internal static NSUrl _FromStringRelative(string url, NSUrl relative) { if (url == null) { throw new ArgumentNullException("url"); } if (relative == null) { throw new ArgumentNullException("relative"); } IntPtr arg = NSString.CreateNative(url); NSUrl result = (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selURLWithStringRelativeToURL_Handle, arg, relative.Handle)); NSString.ReleaseNative(arg); return result; } [Export("isEqual:")] public virtual bool IsEqual(NSUrl other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqual_Handle, other.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqual_Handle, other.Handle); } [Export("URLByAppendingPathComponent:isDirectory:")] public virtual NSUrl Append(string pathComponent, bool isDirectory) { if (pathComponent == null) { throw new ArgumentNullException("pathComponent"); } IntPtr arg = NSString.CreateNative(pathComponent); NSUrl result = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selURLByAppendingPathComponentIsDirectory_Handle, arg, isDirectory))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selURLByAppendingPathComponentIsDirectory_Handle, arg, isDirectory)))); NSString.ReleaseNative(arg); return result; } [Export("URLFromPasteboard:")] public static NSUrl FromPasteboard(NSPasteboard pasteboard) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selURLFromPasteboard_Handle, pasteboard.Handle)); } [Export("writeToPasteboard:")] public virtual void WriteToPasteboard(NSPasteboard pasteboard) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWriteToPasteboard_Handle, pasteboard.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToPasteboard_Handle, pasteboard.Handle); } } [Export("bookmarkDataWithContentsOfURL:error:")] public static NSData GetBookmarkData(NSUrl bookmarkFileUrl, out NSError error) { if (bookmarkFileUrl == null) { throw new ArgumentNullException("bookmarkFileUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSData result = (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selBookmarkDataWithContentsOfURLError_Handle, bookmarkFileUrl.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")] public static NSUrl FromBookmarkData(NSData data, NSUrlBookmarkResolutionOptions options, NSUrl relativeToUrl, out bool isStale, out NSError error) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSUrl result = (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_out_Boolean_IntPtr(class_ptr, selURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError_Handle, data.Handle, (ulong)options, relativeToUrl?.Handle ?? IntPtr.Zero, out isStale, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("writeBookmarkData:toURL:options:error:")] public static bool WriteBookmarkData(NSData data, NSUrl bookmarkFileUrl, NSUrlBookmarkCreationOptions options, out NSError error) { if (data == null) { throw new ArgumentNullException("data"); } if (bookmarkFileUrl == null) { throw new ArgumentNullException("bookmarkFileUrl"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = Messaging.bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(class_ptr, selWriteBookmarkDataToURLOptionsError_Handle, data.Handle, bookmarkFileUrl.Handle, (ulong)options, intPtr); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("startAccessingSecurityScopedResource")] public virtual bool StartAccessingSecurityScopedResource() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selStartAccessingSecurityScopedResourceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selStartAccessingSecurityScopedResourceHandle); } [Export("stopAccessingSecurityScopedResource")] public virtual void StopAccessingSecurityScopedResource() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopAccessingSecurityScopedResourceHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopAccessingSecurityScopedResourceHandle); } } [Export("getResourceValue:forKey:error:")] internal virtual bool GetResourceValue(out NSObject value, string key, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (key == null) { throw new ArgumentNullException("key"); } IntPtr intPtr2 = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr2, 0); IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selGetResourceValueForKeyError_Handle, intPtr, arg, intPtr2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selGetResourceValueForKeyError_Handle, intPtr, arg, intPtr2)); NSString.ReleaseNative(arg); IntPtr intPtr3 = Marshal.ReadIntPtr(intPtr); value = ((intPtr3 != IntPtr.Zero) ? Runtime.GetNSObject(intPtr3) : null); Marshal.FreeHGlobal(intPtr); IntPtr intPtr4 = Marshal.ReadIntPtr(intPtr2); error = ((intPtr4 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr4)) : null); Marshal.FreeHGlobal(intPtr2); return result; } [Export("resourceValuesForKeys:error:")] public virtual NSDictionary GetResourceValues(NSString[] keys, out NSError error) { if (keys == null) { throw new ArgumentNullException("keys"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromNSObjects(keys); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selResourceValuesForKeysError_Handle, nSArray.Handle, intPtr))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selResourceValuesForKeysError_Handle, nSArray.Handle, intPtr)))); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("setResourceValue:forKey:error:")] internal virtual bool SetResourceValue(NSObject value, string key, out NSError error) { if (value == null) { throw new ArgumentNullException("value"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetResourceValueForKeyError_Handle, value.Handle, arg, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetResourceValueForKeyError_Handle, value.Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:")] public virtual NSData CreateBookmarkData(NSUrlBookmarkCreationOptions options, string[] resourceValues, NSUrl relativeUrl, out NSError error) { if (resourceValues == null) { throw new ArgumentNullException("resourceValues"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSArray nSArray = NSArray.FromStrings(resourceValues); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError_Handle, (ulong)options, nSArray.Handle, relativeUrl?.Handle ?? IntPtr.Zero, intPtr))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr(base.Handle, selBookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError_Handle, (ulong)options, nSArray.Handle, relativeUrl?.Handle ?? IntPtr.Zero, intPtr)))); nSArray.Dispose(); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")] public NSUrl(NSData bookmarkData, NSUrlBookmarkResolutionOptions resolutionOptions, NSUrl relativeUrl, out bool bookmarkIsStale, out NSError error) : base(NSObjectFlag.Empty) { if (bookmarkData == null) { throw new ArgumentNullException("bookmarkData"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_out_Boolean_IntPtr(base.Handle, selInitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError_Handle, bookmarkData.Handle, (ulong)resolutionOptions, relativeUrl?.Handle ?? IntPtr.Zero, out bookmarkIsStale, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr_out_Boolean_IntPtr(base.SuperHandle, selInitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError_Handle, bookmarkData.Handle, (ulong)resolutionOptions, relativeUrl?.Handle ?? IntPtr.Zero, out bookmarkIsStale, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } public static implicit operator Uri?(NSUrl? url) { if (url is null) return default; if (url.RelativePath == url.Path) return new Uri(url.AbsoluteString, UriKind.Absolute); return new Uri(url.RelativePath, UriKind.Relative); } public static implicit operator NSUrl?(Uri? uri) { if (uri is null) return default; if (uri.IsAbsoluteUri) return new NSUrl(uri.AbsoluteUri); return new NSUrl(uri.PathAndQuery); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AbsoluteUrl_var = null; __mt_BaseUrl_var = null; __mt_StandardizedUrl_var = null; __mt_FilePathUrl_var = null; __mt_FileReferenceUrl_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlAsyncResult.cs ================================================ namespace Foundation; public class NSUrlAsyncResult { public NSUrlResponse Response { get; set; } public NSData Data { get; set; } public NSUrlAsyncResult(NSUrlResponse response, NSData data) { Response = response; Data = data; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlAuthenticationChallenge.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLAuthenticationChallenge", true)] public class NSUrlAuthenticationChallenge : NSObject { private static readonly IntPtr selProtectionSpaceHandle = Selector.GetHandle("protectionSpace"); private static readonly IntPtr selProposedCredentialHandle = Selector.GetHandle("proposedCredential"); private static readonly IntPtr selPreviousFailureCountHandle = Selector.GetHandle("previousFailureCount"); private static readonly IntPtr selFailureResponseHandle = Selector.GetHandle("failureResponse"); private static readonly IntPtr selErrorHandle = Selector.GetHandle("error"); private static readonly IntPtr selSenderHandle = Selector.GetHandle("sender"); private static readonly IntPtr selInitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender_Handle = Selector.GetHandle("initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:"); private static readonly IntPtr selInitWithAuthenticationChallengeSender_Handle = Selector.GetHandle("initWithAuthenticationChallenge:sender:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLAuthenticationChallenge"); private object __mt_ProtectionSpace_var; private object __mt_ProposedCredential_var; private object __mt_FailureResponse_var; private object __mt_Error_var; private object __mt_Sender_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrlProtectionSpace ProtectionSpace { [Export("protectionSpace")] get { return (NSUrlProtectionSpace)(__mt_ProtectionSpace_var = ((!IsDirectBinding) ? ((NSUrlProtectionSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProtectionSpaceHandle))) : ((NSUrlProtectionSpace)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selProtectionSpaceHandle))))); } } public virtual NSUrlCredential ProposedCredential { [Export("proposedCredential")] get { return (NSUrlCredential)(__mt_ProposedCredential_var = ((!IsDirectBinding) ? ((NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProposedCredentialHandle))) : ((NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selProposedCredentialHandle))))); } } public virtual long PreviousFailureCount { [Export("previousFailureCount")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selPreviousFailureCountHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPreviousFailureCountHandle); } } public virtual NSUrlResponse FailureResponse { [Export("failureResponse")] get { return (NSUrlResponse)(__mt_FailureResponse_var = ((!IsDirectBinding) ? ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFailureResponseHandle))) : ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFailureResponseHandle))))); } } public virtual NSError Error { [Export("error")] get { return (NSError)(__mt_Error_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selErrorHandle))))); } } public virtual NSUrlConnection Sender { [Export("sender")] get { return (NSUrlConnection)(__mt_Sender_var = ((!IsDirectBinding) ? ((NSUrlConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSenderHandle))) : ((NSUrlConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSenderHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlAuthenticationChallenge(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlAuthenticationChallenge(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlAuthenticationChallenge(IntPtr handle) : base(handle) { } [Export("initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:")] public NSUrlAuthenticationChallenge(NSUrlProtectionSpace space, NSUrlCredential credential, long previousFailureCount, NSUrlResponse response, NSError error, NSUrlConnection sender) : base(NSObjectFlag.Empty) { if (space == null) { throw new ArgumentNullException("space"); } if (credential == null) { throw new ArgumentNullException("credential"); } if (response == null) { throw new ArgumentNullException("response"); } if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Int64_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender_Handle, space.Handle, credential.Handle, previousFailureCount, response.Handle, error?.Handle ?? IntPtr.Zero, sender.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender_Handle, space.Handle, credential.Handle, previousFailureCount, response.Handle, error?.Handle ?? IntPtr.Zero, sender.Handle); } } [Export("initWithAuthenticationChallenge:sender:")] public NSUrlAuthenticationChallenge(NSUrlAuthenticationChallenge challenge, NSUrlConnection sender) : base(NSObjectFlag.Empty) { if (challenge == null) { throw new ArgumentNullException("challenge"); } if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAuthenticationChallengeSender_Handle, challenge.Handle, sender.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAuthenticationChallengeSender_Handle, challenge.Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ProtectionSpace_var = null; __mt_ProposedCredential_var = null; __mt_FailureResponse_var = null; __mt_Error_var = null; __mt_Sender_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlBookmarkCreationOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSUrlBookmarkCreationOptions : ulong { PreferFileIDResolution = 0x100uL, MinimalBookmark = 0x200uL, SuitableForBookmarkFile = 0x400uL, WithSecurityScope = 0x800uL, SecurityScopeAllowOnlyReadAccess = 0x1000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlBookmarkResolutionOptions.cs ================================================ using System; namespace Foundation; [Flags] public enum NSUrlBookmarkResolutionOptions : ulong { WithoutUI = 0x100uL, WithoutMounting = 0x200uL, WithSecurityScope = 0x400uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlCache.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLCache", true)] public class NSUrlCache : NSObject { private static readonly IntPtr selSharedURLCacheHandle = Selector.GetHandle("sharedURLCache"); private static readonly IntPtr selSetSharedURLCache_Handle = Selector.GetHandle("setSharedURLCache:"); private static readonly IntPtr selMemoryCapacityHandle = Selector.GetHandle("memoryCapacity"); private static readonly IntPtr selSetMemoryCapacity_Handle = Selector.GetHandle("setMemoryCapacity:"); private static readonly IntPtr selDiskCapacityHandle = Selector.GetHandle("diskCapacity"); private static readonly IntPtr selSetDiskCapacity_Handle = Selector.GetHandle("setDiskCapacity:"); private static readonly IntPtr selCurrentMemoryUsageHandle = Selector.GetHandle("currentMemoryUsage"); private static readonly IntPtr selCurrentDiskUsageHandle = Selector.GetHandle("currentDiskUsage"); private static readonly IntPtr selInitWithMemoryCapacityDiskCapacityDiskPath_Handle = Selector.GetHandle("initWithMemoryCapacity:diskCapacity:diskPath:"); private static readonly IntPtr selCachedResponseForRequest_Handle = Selector.GetHandle("cachedResponseForRequest:"); private static readonly IntPtr selStoreCachedResponseForRequest_Handle = Selector.GetHandle("storeCachedResponse:forRequest:"); private static readonly IntPtr selRemoveCachedResponseForRequest_Handle = Selector.GetHandle("removeCachedResponseForRequest:"); private static readonly IntPtr selRemoveAllCachedResponsesHandle = Selector.GetHandle("removeAllCachedResponses"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLCache"); private static object __mt_SharedCache_var_static; public override IntPtr ClassHandle => class_ptr; public static NSUrlCache SharedCache { [Export("sharedURLCache")] get { return (NSUrlCache)(__mt_SharedCache_var_static = (NSUrlCache)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedURLCacheHandle))); } [Export("setSharedURLCache:")] set { if (value == null) { throw new ArgumentNullException("value"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetSharedURLCache_Handle, value.Handle); } } public virtual ulong MemoryCapacity { [Export("memoryCapacity")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMemoryCapacityHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMemoryCapacityHandle); } [Export("setMemoryCapacity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMemoryCapacity_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMemoryCapacity_Handle, value); } } } public virtual ulong DiskCapacity { [Export("diskCapacity")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selDiskCapacityHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selDiskCapacityHandle); } [Export("setDiskCapacity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetDiskCapacity_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetDiskCapacity_Handle, value); } } } public virtual ulong CurrentMemoryUsage { [Export("currentMemoryUsage")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCurrentMemoryUsageHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCurrentMemoryUsageHandle); } } public virtual ulong CurrentDiskUsage { [Export("currentDiskUsage")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selCurrentDiskUsageHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCurrentDiskUsageHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlCache() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlCache(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCache(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCache(IntPtr handle) : base(handle) { } [Export("initWithMemoryCapacity:diskCapacity:diskPath:")] public NSUrlCache(ulong memoryCapacity, ulong diskCapacity, string diskPath) : base(NSObjectFlag.Empty) { if (diskPath == null) { throw new ArgumentNullException("diskPath"); } IntPtr arg = NSString.CreateNative(diskPath); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_UInt64_UInt64_IntPtr(base.Handle, selInitWithMemoryCapacityDiskCapacityDiskPath_Handle, memoryCapacity, diskCapacity, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_UInt64_UInt64_IntPtr(base.SuperHandle, selInitWithMemoryCapacityDiskCapacityDiskPath_Handle, memoryCapacity, diskCapacity, arg); } NSString.ReleaseNative(arg); } [Export("cachedResponseForRequest:")] public virtual NSCachedUrlResponse CachedResponseForRequest(NSUrlRequest request) { if (request == null) { throw new ArgumentNullException("request"); } if (IsDirectBinding) { return (NSCachedUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCachedResponseForRequest_Handle, request.Handle)); } return (NSCachedUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCachedResponseForRequest_Handle, request.Handle)); } [Export("storeCachedResponse:forRequest:")] public virtual void StoreCachedResponse(NSCachedUrlResponse cachedResponse, NSUrlRequest forRequest) { if (cachedResponse == null) { throw new ArgumentNullException("cachedResponse"); } if (forRequest == null) { throw new ArgumentNullException("forRequest"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selStoreCachedResponseForRequest_Handle, cachedResponse.Handle, forRequest.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selStoreCachedResponseForRequest_Handle, cachedResponse.Handle, forRequest.Handle); } } [Export("removeCachedResponseForRequest:")] public virtual void RemoveCachedResponse(NSUrlRequest request) { if (request == null) { throw new ArgumentNullException("request"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveCachedResponseForRequest_Handle, request.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveCachedResponseForRequest_Handle, request.Handle); } } [Export("removeAllCachedResponses")] public virtual void RemoveAllCachedResponses() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllCachedResponsesHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllCachedResponsesHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlCacheStoragePolicy.cs ================================================ namespace Foundation; public enum NSUrlCacheStoragePolicy : ulong { Allowed, AllowedInMemoryOnly, NotAllowed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlConnection.cs ================================================ using System; using System.ComponentModel; using System.Threading.Tasks; using ObjCRuntime; namespace Foundation; [Register("NSURLConnection", true)] public class NSUrlConnection : NSObject { private const string selSendSynchronousRequestReturningResponseError = "sendSynchronousRequest:returningResponse:error:"; private static readonly IntPtr selCanHandleRequest_Handle = Selector.GetHandle("canHandleRequest:"); private static readonly IntPtr selConnectionWithRequestDelegate_Handle = Selector.GetHandle("connectionWithRequest:delegate:"); private static readonly IntPtr selInitWithRequestDelegate_Handle = Selector.GetHandle("initWithRequest:delegate:"); private static readonly IntPtr selInitWithRequestDelegateStartImmediately_Handle = Selector.GetHandle("initWithRequest:delegate:startImmediately:"); private static readonly IntPtr selStartHandle = Selector.GetHandle("start"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr selScheduleInRunLoopForMode_Handle = Selector.GetHandle("scheduleInRunLoop:forMode:"); private static readonly IntPtr selUnscheduleFromRunLoopForMode_Handle = Selector.GetHandle("unscheduleFromRunLoop:forMode:"); private static readonly IntPtr selUseCredentialForAuthenticationChallenge_Handle = Selector.GetHandle("useCredential:forAuthenticationChallenge:"); private static readonly IntPtr selContinueWithoutCredentialForAuthenticationChallenge_Handle = Selector.GetHandle("continueWithoutCredentialForAuthenticationChallenge:"); private static readonly IntPtr selCancelAuthenticationChallenge_Handle = Selector.GetHandle("cancelAuthenticationChallenge:"); private static readonly IntPtr selPerformDefaultHandlingForAuthenticationChallenge_Handle = Selector.GetHandle("performDefaultHandlingForAuthenticationChallenge:"); private static readonly IntPtr selRejectProtectionSpaceAndContinueWithChallenge_Handle = Selector.GetHandle("rejectProtectionSpaceAndContinueWithChallenge:"); private static readonly IntPtr selSetDelegateQueue_Handle = Selector.GetHandle("setDelegateQueue:"); private static readonly IntPtr selSendAsynchronousRequestQueueCompletionHandler_Handle = Selector.GetHandle("sendAsynchronousRequest:queue:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLConnection"); public override IntPtr ClassHandle => class_ptr; public unsafe static NSData SendSynchronousRequest(NSUrlRequest request, out NSUrlResponse response, out NSError error) { IntPtr zero = IntPtr.Zero; IntPtr zero2 = IntPtr.Zero; void* ptr = &zero; void* ptr2 = &zero2; IntPtr arg = (IntPtr)ptr; IntPtr arg2 = (IntPtr)ptr2; IntPtr ptr3 = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, Selector.GetHandle("sendSynchronousRequest:returningResponse:error:"), request.Handle, arg, arg2); if (zero != IntPtr.Zero) { response = (NSUrlResponse)Runtime.GetNSObject(zero); } else { response = null; } if (zero2 != IntPtr.Zero) { error = (NSError)Runtime.GetNSObject(zero2); } else { error = null; } return (NSData)Runtime.GetNSObject(ptr3); } [Advice("Use Schedule (NSRunLoop, NSString) instead")] public virtual void Schedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [Advice("Use Unschedule (NSRunLoop, NSString) instead")] public virtual void Unschedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } IntPtr arg = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selUnscheduleFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUnscheduleFromRunLoopForMode_Handle, aRunLoop.Handle, arg); } NSString.ReleaseNative(arg); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlConnection() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlConnection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnection(IntPtr handle) : base(handle) { } [Export("canHandleRequest:")] public static bool CanHandleRequest(NSUrlRequest request) { if (request == null) { throw new ArgumentNullException("request"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanHandleRequest_Handle, request.Handle); } [Export("connectionWithRequest:delegate:")] public static NSUrlConnection FromRequest(NSUrlRequest request, NSUrlConnectionDelegate connectionDelegate) { if (request == null) { throw new ArgumentNullException("request"); } if (connectionDelegate == null) { throw new ArgumentNullException("connectionDelegate"); } return (NSUrlConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selConnectionWithRequestDelegate_Handle, request.Handle, connectionDelegate.Handle)); } [Export("initWithRequest:delegate:")] public NSUrlConnection(NSUrlRequest request, NSUrlConnectionDelegate connectionDelegate) : base(NSObjectFlag.Empty) { if (request == null) { throw new ArgumentNullException("request"); } if (connectionDelegate == null) { throw new ArgumentNullException("connectionDelegate"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithRequestDelegate_Handle, request.Handle, connectionDelegate.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithRequestDelegate_Handle, request.Handle, connectionDelegate.Handle); } } [Export("initWithRequest:delegate:startImmediately:")] public NSUrlConnection(NSUrlRequest request, NSUrlConnectionDelegate connectionDelegate, bool startImmediately) : base(NSObjectFlag.Empty) { if (request == null) { throw new ArgumentNullException("request"); } if (connectionDelegate == null) { throw new ArgumentNullException("connectionDelegate"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selInitWithRequestDelegateStartImmediately_Handle, request.Handle, connectionDelegate.Handle, startImmediately); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selInitWithRequestDelegateStartImmediately_Handle, request.Handle, connectionDelegate.Handle, startImmediately); } } [Export("start")] public virtual void Start() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartHandle); } } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } [Export("scheduleInRunLoop:forMode:")] public virtual void Schedule(NSRunLoop aRunLoop, NSString forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, forMode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selScheduleInRunLoopForMode_Handle, aRunLoop.Handle, forMode.Handle); } } [Export("unscheduleFromRunLoop:forMode:")] public virtual void Unschedule(NSRunLoop aRunLoop, NSString forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selUnscheduleFromRunLoopForMode_Handle, aRunLoop.Handle, forMode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUnscheduleFromRunLoopForMode_Handle, aRunLoop.Handle, forMode.Handle); } } [Export("useCredential:forAuthenticationChallenge:")] public virtual void UseCredentials(NSUrlCredential credential, NSUrlAuthenticationChallenge challenge) { if (credential == null) { throw new ArgumentNullException("credential"); } if (challenge == null) { throw new ArgumentNullException("challenge"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selUseCredentialForAuthenticationChallenge_Handle, credential.Handle, challenge.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selUseCredentialForAuthenticationChallenge_Handle, credential.Handle, challenge.Handle); } } [Export("continueWithoutCredentialForAuthenticationChallenge:")] public virtual void ContinueWithoutCredentialForAuthenticationChallenge(NSUrlAuthenticationChallenge challenge) { if (challenge == null) { throw new ArgumentNullException("challenge"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selContinueWithoutCredentialForAuthenticationChallenge_Handle, challenge.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selContinueWithoutCredentialForAuthenticationChallenge_Handle, challenge.Handle); } } [Export("cancelAuthenticationChallenge:")] public virtual void CancelAuthenticationChallenge(NSUrlAuthenticationChallenge challenge) { if (challenge == null) { throw new ArgumentNullException("challenge"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCancelAuthenticationChallenge_Handle, challenge.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCancelAuthenticationChallenge_Handle, challenge.Handle); } } [Export("performDefaultHandlingForAuthenticationChallenge:")] public virtual void PerformDefaultHandlingForChallenge(NSUrlAuthenticationChallenge challenge) { if (challenge == null) { throw new ArgumentNullException("challenge"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformDefaultHandlingForAuthenticationChallenge_Handle, challenge.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformDefaultHandlingForAuthenticationChallenge_Handle, challenge.Handle); } } [Export("rejectProtectionSpaceAndContinueWithChallenge:")] public virtual void RejectProtectionSpaceAndContinueWithChallenge(NSUrlAuthenticationChallenge challenge) { if (challenge == null) { throw new ArgumentNullException("challenge"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRejectProtectionSpaceAndContinueWithChallenge_Handle, challenge.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRejectProtectionSpaceAndContinueWithChallenge_Handle, challenge.Handle); } } [Export("setDelegateQueue:")] public virtual void SetDelegateQueue(NSOperationQueue queue) { if (queue == null) { throw new ArgumentNullException("queue"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegateQueue_Handle, queue.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegateQueue_Handle, queue.Handle); } } [Export("sendAsynchronousRequest:queue:completionHandler:")] public unsafe static void SendAsynchronousRequest(NSUrlRequest request, NSOperationQueue queue, NSUrlConnectionDataResponse completionHandler) { if (request == null) { throw new ArgumentNullException("request"); } if (queue == null) { throw new ArgumentNullException("queue"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDNSUrlConnectionDataResponse.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selSendAsynchronousRequestQueueCompletionHandler_Handle, request.Handle, queue.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public static Task SendRequestAsync(NSUrlRequest request, NSOperationQueue queue) { TaskCompletionSource tcs = new TaskCompletionSource(); SendAsynchronousRequest(request, queue, delegate(NSUrlResponse response, NSData data, NSError error) { if (error != null) { tcs.SetException(new NSErrorException(error)); } else { tcs.SetResult(new NSUrlAsyncResult(response, data)); } }); return tcs.Task; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlConnectionDataResponse.cs ================================================ namespace Foundation; public delegate void NSUrlConnectionDataResponse(NSUrlResponse response, NSData data, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlConnectionDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSURLConnectionDelegate", true)] [Model] public class NSUrlConnectionDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlConnectionDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlConnectionDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnectionDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnectionDelegate(IntPtr handle) : base(handle) { } [Export("connection:willSendRequest:redirectResponse:")] public virtual NSUrlRequest WillSendRequest(NSUrlConnection connection, NSUrlRequest request, NSUrlResponse response) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:canAuthenticateAgainstProtectionSpace:")] public virtual bool CanAuthenticateAgainstProtectionSpace(NSUrlConnection connection, NSUrlProtectionSpace protectionSpace) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:needNewBodyStream:")] public virtual NSInputStream NeedNewBodyStream(NSUrlConnection connection, NSUrlRequest request) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didReceiveAuthenticationChallenge:")] public virtual void ReceivedAuthenticationChallenge(NSUrlConnection connection, NSUrlAuthenticationChallenge challenge) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didCancelAuthenticationChallenge:")] public virtual void CanceledAuthenticationChallenge(NSUrlConnection connection, NSUrlAuthenticationChallenge challenge) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connectionShouldUseCredentialStorage:")] public virtual bool ConnectionShouldUseCredentialStorage(NSUrlConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didReceiveResponse:")] public virtual void ReceivedResponse(NSUrlConnection connection, NSUrlResponse response) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didReceiveData:")] public virtual void ReceivedData(NSUrlConnection connection, NSData data) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:")] public virtual void SentBodyData(NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connectionDidFinishLoading:")] public virtual void FinishedLoading(NSUrlConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:didFailWithError:")] public virtual void FailedWithError(NSUrlConnection connection, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connection:willCacheResponse:")] public virtual NSCachedUrlResponse WillCacheResponse(NSUrlConnection connection, NSCachedUrlResponse cachedResponse) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlConnectionDownloadDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Protocol] [Register("NSUrlConnectionDownloadDelegate", true)] [Model] public abstract class NSUrlConnectionDownloadDelegate : NSUrlConnectionDelegate { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlConnectionDownloadDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlConnectionDownloadDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnectionDownloadDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlConnectionDownloadDelegate(IntPtr handle) : base(handle) { } [Export("connection:didWriteData:totalBytesWritten:expectedTotalBytes:")] public virtual void WroteData(NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:")] public virtual void ResumedDownloading(NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("connectionDidFinishDownloading:destinationURL:")] public abstract void FinishedDownloading(NSUrlConnection connection, NSUrl destinationUrl); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlCredential.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLCredential", true)] public class NSUrlCredential : NSObject { private static readonly IntPtr selPersistenceHandle = Selector.GetHandle("persistence"); private static readonly IntPtr selUserHandle = Selector.GetHandle("user"); private static readonly IntPtr selPasswordHandle = Selector.GetHandle("password"); private static readonly IntPtr selHasPasswordHandle = Selector.GetHandle("hasPassword"); private static readonly IntPtr selIdentityHandle = Selector.GetHandle("identity"); private static readonly IntPtr selInitWithUserPasswordPersistence_Handle = Selector.GetHandle("initWithUser:password:persistence:"); private static readonly IntPtr selCredentialWithUserPasswordPersistence_Handle = Selector.GetHandle("credentialWithUser:password:persistence:"); private static readonly IntPtr selCredentialForTrust_Handle = Selector.GetHandle("credentialForTrust:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLCredential"); public override IntPtr ClassHandle => class_ptr; public virtual NSUrlCredentialPersistence Persistence { [Export("persistence")] get { if (IsDirectBinding) { return (NSUrlCredentialPersistence)Messaging.UInt64_objc_msgSend(base.Handle, selPersistenceHandle); } return (NSUrlCredentialPersistence)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selPersistenceHandle); } } public virtual string User { [Export("user")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserHandle)); } } public virtual string Password { [Export("password")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPasswordHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPasswordHandle)); } } public virtual bool HasPassword { [Export("hasPassword")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasPasswordHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasPasswordHandle); } } public virtual IntPtr Identity { [Export("identity")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selIdentityHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentityHandle); } } public NSUrlCredential(IntPtr trust, bool ignored) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.GetHandle("initWithTrust:"), trust); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.GetHandle("initWithTrust:"), trust); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlCredential(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCredential(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCredential(IntPtr handle) : base(handle) { } [Export("initWithUser:password:persistence:")] public NSUrlCredential(string user, string password, NSUrlCredentialPersistence persistence) : base(NSObjectFlag.Empty) { if (user == null) { throw new ArgumentNullException("user"); } if (password == null) { throw new ArgumentNullException("password"); } IntPtr arg = NSString.CreateNative(user); IntPtr arg2 = NSString.CreateNative(password); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(base.Handle, selInitWithUserPasswordPersistence_Handle, arg, arg2, (ulong)persistence); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64(base.SuperHandle, selInitWithUserPasswordPersistence_Handle, arg, arg2, (ulong)persistence); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("credentialWithUser:password:persistence:")] public static NSUrlCredential FromUserPasswordPersistance(string user, string password, NSUrlCredentialPersistence persistence) { if (user == null) { throw new ArgumentNullException("user"); } if (password == null) { throw new ArgumentNullException("password"); } IntPtr arg = NSString.CreateNative(user); IntPtr arg2 = NSString.CreateNative(password); NSUrlCredential result = (NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(class_ptr, selCredentialWithUserPasswordPersistence_Handle, arg, arg2, (ulong)persistence)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("credentialForTrust:")] public static NSUrlCredential FromTrust(IntPtr SecTrustRef_trust) { return (NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCredentialForTrust_Handle, SecTrustRef_trust)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlCredentialPersistence.cs ================================================ namespace Foundation; public enum NSUrlCredentialPersistence : ulong { None, ForSession, Permanent } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlCredentialStorage.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLCredentialStorage", true)] public class NSUrlCredentialStorage : NSObject { private static readonly IntPtr selSharedCredentialStorageHandle = Selector.GetHandle("sharedCredentialStorage"); private static readonly IntPtr selAllCredentialsHandle = Selector.GetHandle("allCredentials"); private static readonly IntPtr selCredentialsForProtectionSpace_Handle = Selector.GetHandle("credentialsForProtectionSpace:"); private static readonly IntPtr selSetCredentialForProtectionSpace_Handle = Selector.GetHandle("setCredential:forProtectionSpace:"); private static readonly IntPtr selRemoveCredentialForProtectionSpace_Handle = Selector.GetHandle("removeCredential:forProtectionSpace:"); private static readonly IntPtr selDefaultCredentialForProtectionSpace_Handle = Selector.GetHandle("defaultCredentialForProtectionSpace:"); private static readonly IntPtr selSetDefaultCredentialForProtectionSpace_Handle = Selector.GetHandle("setDefaultCredential:forProtectionSpace:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLCredentialStorage"); private static object __mt_SharedCredentialStorage_var_static; private object __mt_AllCredentials_var; public override IntPtr ClassHandle => class_ptr; public static NSUrlCredentialStorage SharedCredentialStorage { [Export("sharedCredentialStorage")] get { return (NSUrlCredentialStorage)(__mt_SharedCredentialStorage_var_static = (NSUrlCredentialStorage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedCredentialStorageHandle))); } } public virtual NSDictionary AllCredentials { [Export("allCredentials")] get { return (NSDictionary)(__mt_AllCredentials_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllCredentialsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAllCredentialsHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlCredentialStorage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCredentialStorage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlCredentialStorage(IntPtr handle) : base(handle) { } [Export("credentialsForProtectionSpace:")] public virtual NSDictionary GetCredentials(NSUrlProtectionSpace forProtectionSpace) { if (forProtectionSpace == null) { throw new ArgumentNullException("forProtectionSpace"); } if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCredentialsForProtectionSpace_Handle, forProtectionSpace.Handle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCredentialsForProtectionSpace_Handle, forProtectionSpace.Handle)); } [Export("setCredential:forProtectionSpace:")] public virtual void SetCredential(NSUrlCredential credential, NSUrlProtectionSpace forProtectionSpace) { if (credential == null) { throw new ArgumentNullException("credential"); } if (forProtectionSpace == null) { throw new ArgumentNullException("forProtectionSpace"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } } [Export("removeCredential:forProtectionSpace:")] public virtual void RemoveCredential(NSUrlCredential credential, NSUrlProtectionSpace forProtectionSpace) { if (credential == null) { throw new ArgumentNullException("credential"); } if (forProtectionSpace == null) { throw new ArgumentNullException("forProtectionSpace"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } } [Export("defaultCredentialForProtectionSpace:")] public virtual NSUrlCredential GetDefaultCredential(NSUrlProtectionSpace forProtectionSpace) { if (forProtectionSpace == null) { throw new ArgumentNullException("forProtectionSpace"); } if (IsDirectBinding) { return (NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDefaultCredentialForProtectionSpace_Handle, forProtectionSpace.Handle)); } return (NSUrlCredential)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDefaultCredentialForProtectionSpace_Handle, forProtectionSpace.Handle)); } [Export("setDefaultCredential:forProtectionSpace:")] public virtual void SetDefaultCredential(NSUrlCredential credential, NSUrlProtectionSpace forProtectionSpace) { if (credential == null) { throw new ArgumentNullException("credential"); } if (forProtectionSpace == null) { throw new ArgumentNullException("forProtectionSpace"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetDefaultCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetDefaultCredentialForProtectionSpace_Handle, credential.Handle, forProtectionSpace.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AllCredentials_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlDownload.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLDownload", true)] public class NSUrlDownload : NSObject { private static readonly IntPtr selRequestHandle = Selector.GetHandle("request"); private static readonly IntPtr selResumeDataHandle = Selector.GetHandle("resumeData"); private static readonly IntPtr selDeletesFileUponFailureHandle = Selector.GetHandle("deletesFileUponFailure"); private static readonly IntPtr selSetDeletesFileUponFailure_Handle = Selector.GetHandle("setDeletesFileUponFailure:"); private static readonly IntPtr selCanResumeDownloadDecodedWithEncodingMIMEType_Handle = Selector.GetHandle("canResumeDownloadDecodedWithEncodingMIMEType:"); private static readonly IntPtr selInitWithRequestDelegate_Handle = Selector.GetHandle("initWithRequest:delegate:"); private static readonly IntPtr selInitWithResumeDataDelegatePath_Handle = Selector.GetHandle("initWithResumeData:delegate:path:"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr selSetDestinationAllowOverwrite_Handle = Selector.GetHandle("setDestination:allowOverwrite:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLDownload"); private object __mt_Request_var; private object __mt_ResumeData_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrlRequest Request { [Export("request")] get { return (NSUrlRequest)(__mt_Request_var = ((!IsDirectBinding) ? ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRequestHandle))) : ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRequestHandle))))); } } public virtual NSData ResumeData { [Export("resumeData")] get { return (NSData)(__mt_ResumeData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResumeDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selResumeDataHandle))))); } } public virtual bool DeletesFileUponFailure { [Export("deletesFileUponFailure")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDeletesFileUponFailureHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDeletesFileUponFailureHandle); } [Export("setDeletesFileUponFailure:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDeletesFileUponFailure_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDeletesFileUponFailure_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlDownload() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlDownload(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlDownload(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlDownload(IntPtr handle) : base(handle) { } [Export("canResumeDownloadDecodedWithEncodingMIMEType:")] public static bool CanResumeDownloadDecodedWithEncodingMimeType(string mimeType) { if (mimeType == null) { throw new ArgumentNullException("mimeType"); } IntPtr arg = NSString.CreateNative(mimeType); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanResumeDownloadDecodedWithEncodingMIMEType_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("initWithRequest:delegate:")] public NSUrlDownload(NSUrlRequest request, NSObject delegate1) : base(NSObjectFlag.Empty) { if (request == null) { throw new ArgumentNullException("request"); } if (delegate1 == null) { throw new ArgumentNullException("delegate1"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithRequestDelegate_Handle, request.Handle, delegate1.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithRequestDelegate_Handle, request.Handle, delegate1.Handle); } } [Export("initWithResumeData:delegate:path:")] public NSUrlDownload(NSData resumeData, NSObject delegate1, string path) : base(NSObjectFlag.Empty) { if (resumeData == null) { throw new ArgumentNullException("resumeData"); } if (delegate1 == null) { throw new ArgumentNullException("delegate1"); } if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithResumeDataDelegatePath_Handle, resumeData.Handle, delegate1.Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithResumeDataDelegatePath_Handle, resumeData.Handle, delegate1.Handle, arg); } NSString.ReleaseNative(arg); } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } [Export("setDestination:allowOverwrite:")] public virtual void SetDestination(string path, bool allowOverwrite) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetDestinationAllowOverwrite_Handle, arg, allowOverwrite); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetDestinationAllowOverwrite_Handle, arg, allowOverwrite); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Request_var = null; __mt_ResumeData_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlDownloadDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUrlDownloadDelegate", true)] [Model] public class NSUrlDownloadDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlDownloadDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlDownloadDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlDownloadDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlDownloadDelegate(IntPtr handle) : base(handle) { } [Export("downloadDidBegin:")] public virtual void DownloadBegan(NSUrlDownload download) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:willSendRequest:redirectResponse:")] public virtual NSUrlRequest WillSendRequest(NSUrlDownload download, NSUrlRequest request, NSUrlResponse redirectResponse) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didReceiveAuthenticationChallenge:")] public virtual void ReceivedAuthenticationChallenge(NSUrlDownload download, NSUrlAuthenticationChallenge challenge) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didCancelAuthenticationChallenge:")] public virtual void CanceledAuthenticationChallenge(NSUrlDownload download, NSUrlAuthenticationChallenge challenge) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didReceiveResponse:")] public virtual void ReceivedResponse(NSUrlDownload download, NSUrlResponse response) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:willResumeWithResponse:fromByte:")] public virtual void Resume(NSUrlDownload download, NSUrlResponse response, long startingByte) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didReceiveDataOfLength:")] public virtual void ReceivedData(NSUrlDownload download, uint length) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:shouldDecodeSourceDataOfMIMEType:")] public virtual bool DecodeSourceData(NSUrlDownload download, string encodingType) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:decideDestinationWithSuggestedFilename:")] public virtual void DecideDestination(NSUrlDownload download, string suggestedFilename) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didCreateDestination:")] public virtual void CreatedDestination(NSUrlDownload download, string path) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("downloadDidFinish:")] public virtual void Finished(NSUrlDownload download) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download:didFailWithError:")] public virtual void FailedWithError(NSUrlDownload download, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlError.cs ================================================ namespace Foundation; public enum NSUrlError { Unknown = -1, Cancelled = -999, BadURL = -1000, TimedOut = -1001, UnsupportedURL = -1002, CannotFindHost = -1003, CannotConnectToHost = -1004, NetworkConnectionLost = -1005, DNSLookupFailed = -1006, HTTPTooManyRedirects = -1007, ResourceUnavailable = -1008, NotConnectedToInternet = -1009, RedirectToNonExistentLocation = -1010, BadServerResponse = -1011, UserCancelledAuthentication = -1012, UserAuthenticationRequired = -1013, ZeroByteResource = -1014, CannotDecodeRawData = -1015, CannotDecodeContentData = -1016, CannotParseResponse = -1017, FileDoesNotExist = -1100, FileIsDirectory = -1101, NoPermissionsToReadFile = -1102, DataLengthExceedsMaximum = -1103, SecureConnectionFailed = -1200, ServerCertificateHasBadDate = -1201, ServerCertificateUntrusted = -1202, ServerCertificateHasUnknownRoot = -1203, ServerCertificateNotYetValid = -1204, ClientCertificateRejected = -1205, CannotLoadFromNetwork = -2000, CannotCreateFile = -3000, CannotOpenFile = -3001, CannotCloseFile = -3002, CannotWriteToFile = -3003, CannotRemoveFile = -3004, CannotMoveFile = -3005, DownloadDecodingFailedMidStream = -3006, DownloadDecodingFailedToComplete = -3007 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlProtectionSpace.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLProtectionSpace", true)] public class NSUrlProtectionSpace : NSObject { private static readonly IntPtr selRealmHandle = Selector.GetHandle("realm"); private static readonly IntPtr selReceivesCredentialSecurelyHandle = Selector.GetHandle("receivesCredentialSecurely"); private static readonly IntPtr selIsProxyHandle = Selector.GetHandle("isProxy"); private static readonly IntPtr selHostHandle = Selector.GetHandle("host"); private static readonly IntPtr selPortHandle = Selector.GetHandle("port"); private static readonly IntPtr selProxyTypeHandle = Selector.GetHandle("proxyType"); private static readonly IntPtr selProtocolHandle = Selector.GetHandle("protocol"); private static readonly IntPtr selAuthenticationMethodHandle = Selector.GetHandle("authenticationMethod"); private static readonly IntPtr selDistinguishedNamesHandle = Selector.GetHandle("distinguishedNames"); private static readonly IntPtr selServerTrustHandle = Selector.GetHandle("serverTrust"); private static readonly IntPtr selInitWithHostPortProtocolRealmAuthenticationMethod_Handle = Selector.GetHandle("initWithHost:port:protocol:realm:authenticationMethod:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLProtectionSpace"); private object __mt_DistinguishedNames_var; private static NSString _HTTP; private static NSString _HTTPS; private static NSString _FTP; private static NSString _HTTPProxy; private static NSString _HTTPSProxy; private static NSString _FTPProxy; private static NSString _SOCKSProxy; private static NSString _AuthenticationMethodDefault; private static NSString _AuthenticationMethodHTTPBasic; private static NSString _AuthenticationMethodHTTPDigest; private static NSString _AuthenticationMethodHTMLForm; private static NSString _AuthenticationMethodNTL; private static NSString _AuthenticationMethodNegotiat; private static NSString _AuthenticationMethodClientCertificate; private static NSString _AuthenticationMethodServerTrus; public override IntPtr ClassHandle => class_ptr; public virtual string Realm { [Export("realm")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selRealmHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRealmHandle)); } } public virtual bool ReceivesCredentialSecurely { [Export("receivesCredentialSecurely")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReceivesCredentialSecurelyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReceivesCredentialSecurelyHandle); } } public virtual bool IsProxy { [Export("isProxy")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsProxyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsProxyHandle); } } public virtual string Host { [Export("host")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHostHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHostHandle)); } } public virtual long Port { [Export("port")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selPortHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selPortHandle); } } public virtual string ProxyType { [Export("proxyType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selProxyTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProxyTypeHandle)); } } public virtual string Protocol { [Export("protocol")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selProtocolHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProtocolHandle)); } } public virtual string AuthenticationMethod { [Export("authenticationMethod")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAuthenticationMethodHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAuthenticationMethodHandle)); } } public virtual NSData[] DistinguishedNames { [Export("distinguishedNames")] get { return (NSData[])(__mt_DistinguishedNames_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDistinguishedNamesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDistinguishedNamesHandle)))); } } public virtual IntPtr ServerTrust { [Export("serverTrust")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selServerTrustHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selServerTrustHandle); } } [Field("NSURLProtectionSpaceHTTP", "Foundation")] public static NSString HTTP { get { if (_HTTP == null) { _HTTP = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceHTTP"); } return _HTTP; } } [Field("NSURLProtectionSpaceHTTPS", "Foundation")] public static NSString HTTPS { get { if (_HTTPS == null) { _HTTPS = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceHTTPS"); } return _HTTPS; } } [Field("NSURLProtectionSpaceFTP", "Foundation")] public static NSString FTP { get { if (_FTP == null) { _FTP = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceFTP"); } return _FTP; } } [Field("NSURLProtectionSpaceHTTPProxy", "Foundation")] public static NSString HTTPProxy { get { if (_HTTPProxy == null) { _HTTPProxy = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceHTTPProxy"); } return _HTTPProxy; } } [Field("NSURLProtectionSpaceHTTPSProxy", "Foundation")] public static NSString HTTPSProxy { get { if (_HTTPSProxy == null) { _HTTPSProxy = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceHTTPSProxy"); } return _HTTPSProxy; } } [Field("NSURLProtectionSpaceFTPProxy", "Foundation")] public static NSString FTPProxy { get { if (_FTPProxy == null) { _FTPProxy = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceFTPProxy"); } return _FTPProxy; } } [Field("NSURLProtectionSpaceSOCKSProxy", "Foundation")] public static NSString SOCKSProxy { get { if (_SOCKSProxy == null) { _SOCKSProxy = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLProtectionSpaceSOCKSProxy"); } return _SOCKSProxy; } } [Field("NSURLAuthenticationMethodDefault", "Foundation")] public static NSString AuthenticationMethodDefault { get { if (_AuthenticationMethodDefault == null) { _AuthenticationMethodDefault = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodDefault"); } return _AuthenticationMethodDefault; } } [Field("NSURLAuthenticationMethodHTTPBasic", "Foundation")] public static NSString AuthenticationMethodHTTPBasic { get { if (_AuthenticationMethodHTTPBasic == null) { _AuthenticationMethodHTTPBasic = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodHTTPBasic"); } return _AuthenticationMethodHTTPBasic; } } [Field("NSURLAuthenticationMethodHTTPDigest", "Foundation")] public static NSString AuthenticationMethodHTTPDigest { get { if (_AuthenticationMethodHTTPDigest == null) { _AuthenticationMethodHTTPDigest = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodHTTPDigest"); } return _AuthenticationMethodHTTPDigest; } } [Field("NSURLAuthenticationMethodHTMLForm", "Foundation")] public static NSString AuthenticationMethodHTMLForm { get { if (_AuthenticationMethodHTMLForm == null) { _AuthenticationMethodHTMLForm = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodHTMLForm"); } return _AuthenticationMethodHTMLForm; } } [Field("NSURLAuthenticationMethodNTLM", "Foundation")] public static NSString AuthenticationMethodNTL { get { if (_AuthenticationMethodNTL == null) { _AuthenticationMethodNTL = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodNTLM"); } return _AuthenticationMethodNTL; } } [Field("NSURLAuthenticationMethodNegotiate", "Foundation")] public static NSString AuthenticationMethodNegotiat { get { if (_AuthenticationMethodNegotiat == null) { _AuthenticationMethodNegotiat = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodNegotiate"); } return _AuthenticationMethodNegotiat; } } [Field("NSURLAuthenticationMethodClientCertificate", "Foundation")] public static NSString AuthenticationMethodClientCertificate { get { if (_AuthenticationMethodClientCertificate == null) { _AuthenticationMethodClientCertificate = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodClientCertificate"); } return _AuthenticationMethodClientCertificate; } } [Field("NSURLAuthenticationMethodServerTrust", "Foundation")] public static NSString AuthenticationMethodServerTrus { get { if (_AuthenticationMethodServerTrus == null) { _AuthenticationMethodServerTrus = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSURLAuthenticationMethodServerTrust"); } return _AuthenticationMethodServerTrus; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlProtectionSpace(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlProtectionSpace(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlProtectionSpace(IntPtr handle) : base(handle) { } [Export("initWithHost:port:protocol:realm:authenticationMethod:")] public NSUrlProtectionSpace(string host, long port, string protocol, string realm, string authenticationMethod) : base(NSObjectFlag.Empty) { if (host == null) { throw new ArgumentNullException("host"); } if (protocol == null) { throw new ArgumentNullException("protocol"); } if (realm == null) { throw new ArgumentNullException("realm"); } if (authenticationMethod == null) { throw new ArgumentNullException("authenticationMethod"); } IntPtr arg = NSString.CreateNative(host); IntPtr arg2 = NSString.CreateNative(protocol); IntPtr arg3 = NSString.CreateNative(realm); IntPtr arg4 = NSString.CreateNative(authenticationMethod); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_Int64_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithHostPortProtocolRealmAuthenticationMethod_Handle, arg, port, arg2, arg3, arg4); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithHostPortProtocolRealmAuthenticationMethod_Handle, arg, port, arg2, arg3, arg4); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); NSString.ReleaseNative(arg4); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DistinguishedNames_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlProtocol.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLProtocol", true)] public abstract class NSUrlProtocol : NSObject { private NSUrlProtocolClient client; private static readonly IntPtr selClientHandle = Selector.GetHandle("client"); private static readonly IntPtr selRequestHandle = Selector.GetHandle("request"); private static readonly IntPtr selCachedResponseHandle = Selector.GetHandle("cachedResponse"); private static readonly IntPtr selInitWithRequestCachedResponseClient_Handle = Selector.GetHandle("initWithRequest:cachedResponse:client:"); private static readonly IntPtr selCanInitWithRequest_Handle = Selector.GetHandle("canInitWithRequest:"); private static readonly IntPtr selCanonicalRequestForRequest_Handle = Selector.GetHandle("canonicalRequestForRequest:"); private static readonly IntPtr selRequestIsCacheEquivalentToRequest_Handle = Selector.GetHandle("requestIsCacheEquivalent:toRequest:"); private static readonly IntPtr selStartLoadingHandle = Selector.GetHandle("startLoading"); private static readonly IntPtr selStopLoadingHandle = Selector.GetHandle("stopLoading"); private static readonly IntPtr selPropertyForKeyInRequest_Handle = Selector.GetHandle("propertyForKey:inRequest:"); private static readonly IntPtr selSetPropertyForKeyInRequest_Handle = Selector.GetHandle("setProperty:forKey:inRequest:"); private static readonly IntPtr selRemovePropertyForKeyInRequest_Handle = Selector.GetHandle("removePropertyForKey:inRequest:"); private static readonly IntPtr selRegisterClass_Handle = Selector.GetHandle("registerClass:"); private static readonly IntPtr selUnregisterClass_Handle = Selector.GetHandle("unregisterClass:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLProtocol"); private object __mt_WeakClient_var; private object __mt_Request_var; private object __mt_CachedResponse_var; public NSUrlProtocolClient Client { get { if (client == null) { client = new NSUrlProtocolClient(WeakClient.Handle); } return client; } } public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakClient { [Export("client")] get { return (NSObject)(__mt_WeakClient_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClientHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selClientHandle)))); } } public virtual NSUrlRequest Request { [Export("request")] get { return (NSUrlRequest)(__mt_Request_var = ((!IsDirectBinding) ? ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRequestHandle))) : ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRequestHandle))))); } } public virtual NSCachedUrlResponse CachedResponse { [Export("cachedResponse")] get { return (NSCachedUrlResponse)(__mt_CachedResponse_var = ((!IsDirectBinding) ? ((NSCachedUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCachedResponseHandle))) : ((NSCachedUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCachedResponseHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlProtocol() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlProtocol(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlProtocol(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlProtocol(IntPtr handle) : base(handle) { } [Export("initWithRequest:cachedResponse:client:")] public NSUrlProtocol(NSUrlRequest request, NSCachedUrlResponse cachedResponse, NSUrlProtocolClient client) : base(NSObjectFlag.Empty) { if (request == null) { throw new ArgumentNullException("request"); } if (client == null) { throw new ArgumentNullException("client"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithRequestCachedResponseClient_Handle, request.Handle, cachedResponse?.Handle ?? IntPtr.Zero, client.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithRequestCachedResponseClient_Handle, request.Handle, cachedResponse?.Handle ?? IntPtr.Zero, client.Handle); } } [Export("canInitWithRequest:")] public static bool CanInitWithRequest(NSUrlRequest request) { if (request == null) { throw new ArgumentNullException("request"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithRequest_Handle, request.Handle); } [Export("canonicalRequestForRequest:")] public static NSUrlRequest GetCanonicalRequest(NSUrlRequest forRequest) { if (forRequest == null) { throw new ArgumentNullException("forRequest"); } return (NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCanonicalRequestForRequest_Handle, forRequest.Handle)); } [Export("requestIsCacheEquivalent:toRequest:")] public static bool IsRequestCacheEquivalent(NSUrlRequest first, NSUrlRequest second) { if (first == null) { throw new ArgumentNullException("first"); } if (second == null) { throw new ArgumentNullException("second"); } return Messaging.bool_objc_msgSend_IntPtr_IntPtr(class_ptr, selRequestIsCacheEquivalentToRequest_Handle, first.Handle, second.Handle); } [Export("startLoading")] public virtual void StartLoading() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartLoadingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartLoadingHandle); } } [Export("stopLoading")] public virtual void StopLoading() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopLoadingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopLoadingHandle); } } [Export("propertyForKey:inRequest:")] public static NSObject GetProperty(string key, NSUrlRequest inRequest) { if (key == null) { throw new ArgumentNullException("key"); } if (inRequest == null) { throw new ArgumentNullException("inRequest"); } IntPtr arg = NSString.CreateNative(key); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selPropertyForKeyInRequest_Handle, arg, inRequest.Handle)); NSString.ReleaseNative(arg); return nSObject; } [Export("setProperty:forKey:inRequest:")] public static void SetProperty(NSObject value, string key, NSMutableUrlRequest inRequest) { if (key == null) { throw new ArgumentNullException("key"); } if (inRequest == null) { throw new ArgumentNullException("inRequest"); } IntPtr arg = NSString.CreateNative(key); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selSetPropertyForKeyInRequest_Handle, value?.Handle ?? IntPtr.Zero, arg, inRequest.Handle); NSString.ReleaseNative(arg); } [Export("removePropertyForKey:inRequest:")] public static void RemoveProperty(string propertyKey, NSMutableUrlRequest request) { if (propertyKey == null) { throw new ArgumentNullException("propertyKey"); } if (request == null) { throw new ArgumentNullException("request"); } IntPtr arg = NSString.CreateNative(propertyKey); Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selRemovePropertyForKeyInRequest_Handle, arg, request.Handle); NSString.ReleaseNative(arg); } [Export("registerClass:")] public static bool RegisterClass(Class protocolClass) { if (protocolClass == null) { throw new ArgumentNullException("protocolClass"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selRegisterClass_Handle, protocolClass.Handle); } [Export("unregisterClass:")] public static void UnregisterClass(Class protocolClass) { if (protocolClass == null) { throw new ArgumentNullException("protocolClass"); } Messaging.void_objc_msgSend_IntPtr(class_ptr, selUnregisterClass_Handle, protocolClass.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakClient_var = null; __mt_Request_var = null; __mt_CachedResponse_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlProtocolClient.cs ================================================ using System; using ObjCRuntime; namespace Foundation; public sealed class NSUrlProtocolClient : NSObject { private const string selUrlProtocolWasRedirectedToRequestRedirectResponse_ = "URLProtocol:wasRedirectedToRequest:redirectResponse:"; private const string selUrlProtocolCachedResponseIsValid_ = "URLProtocol:cachedResponseIsValid:"; private const string selUrlProtocolDidReceiveResponseCacheStoragePolicy_ = "URLProtocol:didReceiveResponse:cacheStoragePolicy:"; private const string selUrlProtocolDidLoadData_ = "URLProtocol:didLoadData:"; private const string selUrlProtocolDidFinishLoading_ = "URLProtocolDidFinishLoading:"; private const string selUrlProtocolDidFailWithError_ = "URLProtocol:didFailWithError:"; private const string selUrlProtocolDidReceiveAuthenticationChallenge_ = "URLProtocol:didReceiveAuthenticationChallenge:"; private const string selUrlProtocolDidCancelAuthenticationChallenge_ = "URLProtocol:didCancelAuthenticationChallenge:"; public NSUrlProtocolClient(IntPtr handle) : base(handle) { } public void Redirected(NSUrlProtocol protocol, NSUrlRequest redirectedToEequest, NSUrlResponse redirectResponse) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:wasRedirectedToRequest:redirectResponse:"), protocol.Handle, redirectedToEequest.Handle, redirectResponse.Handle); } public void CachedResponseIsValid(NSUrlProtocol protocol, NSCachedUrlResponse cachedResponse) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:cachedResponseIsValid:"), protocol.Handle, cachedResponse.Handle); } public void ReceivedResponse(NSUrlProtocol protocol, NSUrlResponse response, NSUrlCacheStoragePolicy policy) { Messaging.void_objc_msgSend_intptr_intptr_nuint(base.Handle, Selector.GetHandle("URLProtocol:didReceiveResponse:cacheStoragePolicy:"), protocol.Handle, response.Handle, (ulong)policy); } public void DataLoaded(NSUrlProtocol protocol, NSData data) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:didLoadData:"), protocol.Handle, data.Handle); } public void FinishedLoading(NSUrlProtocol protocol) { Messaging.void_objc_msgSend_IntPtr(base.Handle, Selector.GetHandle("URLProtocolDidFinishLoading:"), protocol.Handle); } public void FailedWithError(NSUrlProtocol protocol, NSError error) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:didFailWithError:"), protocol.Handle, error.Handle); } public void ReceivedAuthenticationChallenge(NSUrlProtocol protocol, NSUrlAuthenticationChallenge challenge) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:didReceiveAuthenticationChallenge:"), protocol.Handle, challenge.Handle); } public void CancelledAuthenticationChallenge(NSUrlProtocol protocol, NSUrlAuthenticationChallenge challenge) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("URLProtocol:didCancelAuthenticationChallenge:"), protocol.Handle, challenge.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlRequest.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLRequest", true)] public class NSUrlRequest : NSObject { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selCachePolicyHandle = Selector.GetHandle("cachePolicy"); private static readonly IntPtr selTimeoutIntervalHandle = Selector.GetHandle("timeoutInterval"); private static readonly IntPtr selMainDocumentURLHandle = Selector.GetHandle("mainDocumentURL"); private static readonly IntPtr selNetworkServiceTypeHandle = Selector.GetHandle("networkServiceType"); private static readonly IntPtr selAllowsCellularAccessHandle = Selector.GetHandle("allowsCellularAccess"); private static readonly IntPtr selHTTPMethodHandle = Selector.GetHandle("HTTPMethod"); private static readonly IntPtr selAllHTTPHeaderFieldsHandle = Selector.GetHandle("allHTTPHeaderFields"); private static readonly IntPtr selHTTPBodyHandle = Selector.GetHandle("HTTPBody"); private static readonly IntPtr selHTTPBodyStreamHandle = Selector.GetHandle("HTTPBodyStream"); private static readonly IntPtr selHTTPShouldHandleCookiesHandle = Selector.GetHandle("HTTPShouldHandleCookies"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithURLCachePolicyTimeoutInterval_Handle = Selector.GetHandle("initWithURL:cachePolicy:timeoutInterval:"); private static readonly IntPtr selRequestWithURL_Handle = Selector.GetHandle("requestWithURL:"); private static readonly IntPtr selValueForHTTPHeaderField_Handle = Selector.GetHandle("valueForHTTPHeaderField:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLRequest"); private object __mt_Url_var; private object __mt_MainDocumentURL_var; private object __mt_Headers_var; private object __mt_Body_var; private object __mt_BodyStream_var; public string this[string key] => Header(key); public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } public virtual NSUrlRequestCachePolicy CachePolicy { [Export("cachePolicy")] get { if (IsDirectBinding) { return (NSUrlRequestCachePolicy)Messaging.UInt64_objc_msgSend(base.Handle, selCachePolicyHandle); } return (NSUrlRequestCachePolicy)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selCachePolicyHandle); } } public virtual double TimeoutInterval { [Export("timeoutInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selTimeoutIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selTimeoutIntervalHandle); } } public virtual NSUrl MainDocumentURL { [Export("mainDocumentURL")] get { return (NSUrl)(__mt_MainDocumentURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainDocumentURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainDocumentURLHandle))))); } } public virtual NSUrlRequestNetworkServiceType NetworkServiceType { [Export("networkServiceType")] get { if (IsDirectBinding) { return (NSUrlRequestNetworkServiceType)Messaging.UInt64_objc_msgSend(base.Handle, selNetworkServiceTypeHandle); } return (NSUrlRequestNetworkServiceType)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNetworkServiceTypeHandle); } } public virtual bool AllowsCellularAccess { [Export("allowsCellularAccess")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsCellularAccessHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsCellularAccessHandle); } } public virtual string HttpMethod { [Export("HTTPMethod")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPMethodHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPMethodHandle)); } } public virtual NSDictionary Headers { [Export("allHTTPHeaderFields")] get { return (NSDictionary)(__mt_Headers_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllHTTPHeaderFieldsHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAllHTTPHeaderFieldsHandle))))); } } public virtual NSData Body { [Export("HTTPBody")] get { return (NSData)(__mt_Body_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPBodyHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPBodyHandle))))); } } public virtual NSInputStream BodyStream { [Export("HTTPBodyStream")] get { return (NSInputStream)(__mt_BodyStream_var = ((!IsDirectBinding) ? ((NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHTTPBodyStreamHandle))) : ((NSInputStream)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHTTPBodyStreamHandle))))); } } public virtual bool ShouldHandleCookies { [Export("HTTPShouldHandleCookies")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHTTPShouldHandleCookiesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHTTPShouldHandleCookiesHandle); } } public override string ToString() { if (Url == null) { return base.ToString(); } return Url.AbsoluteString; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlRequest() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlRequest(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlRequest(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlRequest(IntPtr handle) : base(handle) { } [Export("initWithURL:")] public NSUrlRequest(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("initWithURL:cachePolicy:timeoutInterval:")] public NSUrlRequest(NSUrl url, NSUrlRequestCachePolicy cachePolicy, double timeoutInterval) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_UInt64_Double(base.Handle, selInitWithURLCachePolicyTimeoutInterval_Handle, url.Handle, (ulong)cachePolicy, timeoutInterval); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_UInt64_Double(base.SuperHandle, selInitWithURLCachePolicyTimeoutInterval_Handle, url.Handle, (ulong)cachePolicy, timeoutInterval); } } [Export("requestWithURL:")] public static NSUrlRequest FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selRequestWithURL_Handle, url.Handle)); } [Export("valueForHTTPHeaderField:")] internal virtual string Header(string field) { if (field == null) { throw new ArgumentNullException("field"); } IntPtr arg = NSString.CreateNative(field); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForHTTPHeaderField_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForHTTPHeaderField_Handle, arg))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; __mt_MainDocumentURL_var = null; __mt_Headers_var = null; __mt_Body_var = null; __mt_BodyStream_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlRequestCachePolicy.cs ================================================ namespace Foundation; public enum NSUrlRequestCachePolicy : ulong { UseProtocolCachePolicy = 0uL, ReloadIgnoringLocalCacheData = 1uL, ReloadIgnoringLocalAndRemoteCacheData = 4uL, ReloadIgnoringCacheData = 1uL, ReturnCacheDataElseLoad = 2uL, ReturnCacheDataDoNotLoad = 3uL, ReloadRevalidatingCacheData = 5uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlRequestNetworkServiceType.cs ================================================ namespace Foundation; public enum NSUrlRequestNetworkServiceType : ulong { Default, VoIP, Video, Background, Voice } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUrlResponse.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSURLResponse", true)] public class NSUrlResponse : NSObject { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selMIMETypeHandle = Selector.GetHandle("MIMEType"); private static readonly IntPtr selExpectedContentLengthHandle = Selector.GetHandle("expectedContentLength"); private static readonly IntPtr selTextEncodingNameHandle = Selector.GetHandle("textEncodingName"); private static readonly IntPtr selSuggestedFilenameHandle = Selector.GetHandle("suggestedFilename"); private static readonly IntPtr selInitWithURLMIMETypeExpectedContentLengthTextEncodingName_Handle = Selector.GetHandle("initWithURL:MIMEType:expectedContentLength:textEncodingName:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSURLResponse"); private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } public virtual string MimeType { [Export("MIMEType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMIMETypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMIMETypeHandle)); } } public virtual long ExpectedContentLength { [Export("expectedContentLength")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selExpectedContentLengthHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selExpectedContentLengthHandle); } } public virtual string TextEncodingName { [Export("textEncodingName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextEncodingNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextEncodingNameHandle)); } } public virtual string SuggestedFilename { [Export("suggestedFilename")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSuggestedFilenameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSuggestedFilenameHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUrlResponse() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUrlResponse(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlResponse(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUrlResponse(IntPtr handle) : base(handle) { } [Export("initWithURL:MIMEType:expectedContentLength:textEncodingName:")] public NSUrlResponse(NSUrl url, string mimetype, long expectedContentLength, string textEncodingName) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (mimetype == null) { throw new ArgumentNullException("mimetype"); } IntPtr arg = NSString.CreateNative(mimetype); IntPtr arg2 = NSString.CreateNative(textEncodingName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Int64_IntPtr(base.Handle, selInitWithURLMIMETypeExpectedContentLengthTextEncodingName_Handle, url.Handle, arg, expectedContentLength, arg2); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64_IntPtr(base.SuperHandle, selInitWithURLMIMETypeExpectedContentLengthTextEncodingName_Handle, url.Handle, arg, expectedContentLength, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUserDefaults.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUserDefaults", true)] public class NSUserDefaults : NSObject { private static readonly IntPtr selStandardUserDefaultsHandle = Selector.GetHandle("standardUserDefaults"); private static readonly IntPtr selResetStandardUserDefaultsHandle = Selector.GetHandle("resetStandardUserDefaults"); private static readonly IntPtr selInitWithUser_Handle = Selector.GetHandle("initWithUser:"); private static readonly IntPtr selObjectForKey_Handle = Selector.GetHandle("objectForKey:"); private static readonly IntPtr selSetObjectForKey_Handle = Selector.GetHandle("setObject:forKey:"); private static readonly IntPtr selRemoveObjectForKey_Handle = Selector.GetHandle("removeObjectForKey:"); private static readonly IntPtr selStringForKey_Handle = Selector.GetHandle("stringForKey:"); private static readonly IntPtr selArrayForKey_Handle = Selector.GetHandle("arrayForKey:"); private static readonly IntPtr selDictionaryForKey_Handle = Selector.GetHandle("dictionaryForKey:"); private static readonly IntPtr selDataForKey_Handle = Selector.GetHandle("dataForKey:"); private static readonly IntPtr selStringArrayForKey_Handle = Selector.GetHandle("stringArrayForKey:"); private static readonly IntPtr selIntegerForKey_Handle = Selector.GetHandle("integerForKey:"); private static readonly IntPtr selFloatForKey_Handle = Selector.GetHandle("floatForKey:"); private static readonly IntPtr selDoubleForKey_Handle = Selector.GetHandle("doubleForKey:"); private static readonly IntPtr selBoolForKey_Handle = Selector.GetHandle("boolForKey:"); private static readonly IntPtr selSetIntegerForKey_Handle = Selector.GetHandle("setInteger:forKey:"); private static readonly IntPtr selSetFloatForKey_Handle = Selector.GetHandle("setFloat:forKey:"); private static readonly IntPtr selSetDoubleForKey_Handle = Selector.GetHandle("setDouble:forKey:"); private static readonly IntPtr selSetBoolForKey_Handle = Selector.GetHandle("setBool:forKey:"); private static readonly IntPtr selRegisterDefaults_Handle = Selector.GetHandle("registerDefaults:"); private static readonly IntPtr selAddSuiteNamed_Handle = Selector.GetHandle("addSuiteNamed:"); private static readonly IntPtr selRemoveSuiteNamed_Handle = Selector.GetHandle("removeSuiteNamed:"); private static readonly IntPtr selDictionaryRepresentationHandle = Selector.GetHandle("dictionaryRepresentation"); private static readonly IntPtr selVolatileDomainNamesHandle = Selector.GetHandle("volatileDomainNames"); private static readonly IntPtr selVolatileDomainForName_Handle = Selector.GetHandle("volatileDomainForName:"); private static readonly IntPtr selSetVolatileDomainForName_Handle = Selector.GetHandle("setVolatileDomain:forName:"); private static readonly IntPtr selRemoveVolatileDomainForName_Handle = Selector.GetHandle("removeVolatileDomainForName:"); private static readonly IntPtr selPersistentDomainNamesHandle = Selector.GetHandle("persistentDomainNames"); private static readonly IntPtr selPersistentDomainForName_Handle = Selector.GetHandle("persistentDomainForName:"); private static readonly IntPtr selSetPersistentDomainForName_Handle = Selector.GetHandle("setPersistentDomain:forName:"); private static readonly IntPtr selRemovePersistentDomainForName_Handle = Selector.GetHandle("removePersistentDomainForName:"); private static readonly IntPtr selSynchronizeHandle = Selector.GetHandle("synchronize"); private static readonly IntPtr selObjectIsForcedForKey_Handle = Selector.GetHandle("objectIsForcedForKey:"); private static readonly IntPtr selObjectIsForcedForKeyInDomain_Handle = Selector.GetHandle("objectIsForcedForKey:inDomain:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUserDefaults"); private static object __mt_StandardUserDefaults_var_static; private static NSString _GlobalDomain; private static NSString _ArgumentDomain; private static NSString _RegistrationDomain; public NSObject this[string key] { get { return ObjectForKey(key); } set { SetObjectForKey(value, key); } } public override IntPtr ClassHandle => class_ptr; public static NSUserDefaults StandardUserDefaults { [Export("standardUserDefaults")] get { return (NSUserDefaults)(__mt_StandardUserDefaults_var_static = (NSUserDefaults)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selStandardUserDefaultsHandle))); } } [Field("NSGlobalDomain", "Foundation")] public static NSString GlobalDomain { get { if (_GlobalDomain == null) { _GlobalDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSGlobalDomain"); } return _GlobalDomain; } } [Field("NSArgumentDomain", "Foundation")] public static NSString ArgumentDomain { get { if (_ArgumentDomain == null) { _ArgumentDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSArgumentDomain"); } return _ArgumentDomain; } } [Field("NSRegistrationDomain", "Foundation")] public static NSString RegistrationDomain { get { if (_RegistrationDomain == null) { _RegistrationDomain = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSRegistrationDomain"); } return _RegistrationDomain; } } public void SetString(string value, string defaultName) { NSString nSString = new NSString(value); SetObjectForKey(nSString, defaultName); nSString.Dispose(); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUserDefaults() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUserDefaults(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserDefaults(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserDefaults(IntPtr handle) : base(handle) { } [Export("resetStandardUserDefaults")] public static void ResetStandardUserDefaults() { Messaging.void_objc_msgSend(class_ptr, selResetStandardUserDefaultsHandle); } [Export("initWithUser:")] public NSUserDefaults(string username) : base(NSObjectFlag.Empty) { if (username == null) { throw new ArgumentNullException("username"); } IntPtr arg = NSString.CreateNative(username); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithUser_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithUser_Handle, arg); } NSString.ReleaseNative(arg); } [Export("objectForKey:")] internal virtual NSObject ObjectForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setObject:forKey:")] internal virtual void SetObjectForKey(NSObject value, string defaultName) { if (value == null) { throw new ArgumentNullException("value"); } if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetObjectForKey_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetObjectForKey_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeObjectForKey:")] public virtual void RemoveObject(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveObjectForKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveObjectForKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("stringForKey:")] public virtual string StringForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringForKey_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("arrayForKey:")] public virtual NSObject[] ArrayForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); NSObject[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selArrayForKey_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selArrayForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("dictionaryForKey:")] public virtual NSDictionary DictionaryForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDictionaryForKey_Handle, arg))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDictionaryForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("dataForKey:")] public virtual NSData DataForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); NSData result = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDataForKey_Handle, arg))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDataForKey_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("stringArrayForKey:")] public virtual string[] StringArrayForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); string[] result = ((!IsDirectBinding) ? NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringArrayForKey_Handle, arg)) : NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringArrayForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("integerForKey:")] public virtual int IntForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); int result = ((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntegerForKey_Handle, arg) : Messaging.int_objc_msgSend_IntPtr(base.Handle, selIntegerForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("floatForKey:")] public virtual float FloatForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); float result = ((!IsDirectBinding) ? Messaging.float_objc_msgSendSuper_IntPtr(base.SuperHandle, selFloatForKey_Handle, arg) : Messaging.float_objc_msgSend_IntPtr(base.Handle, selFloatForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("doubleForKey:")] public virtual double DoubleForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); double result = ((!IsDirectBinding) ? Messaging.Double_objc_msgSendSuper_IntPtr(base.SuperHandle, selDoubleForKey_Handle, arg) : Messaging.Double_objc_msgSend_IntPtr(base.Handle, selDoubleForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("boolForKey:")] public virtual bool BoolForKey(string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selBoolForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selBoolForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setInteger:forKey:")] public virtual void SetInt(int value, string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr(base.Handle, selSetIntegerForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selSetIntegerForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("setFloat:forKey:")] public virtual void SetFloat(float value, string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_float_IntPtr(base.Handle, selSetFloatForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_float_IntPtr(base.SuperHandle, selSetFloatForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("setDouble:forKey:")] public virtual void SetDouble(double value, string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_IntPtr(base.Handle, selSetDoubleForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_Double_IntPtr(base.SuperHandle, selSetDoubleForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("setBool:forKey:")] public virtual void SetBool(bool value, string defaultName) { if (defaultName == null) { throw new ArgumentNullException("defaultName"); } IntPtr arg = NSString.CreateNative(defaultName); if (IsDirectBinding) { Messaging.void_objc_msgSend_bool_IntPtr(base.Handle, selSetBoolForKey_Handle, value, arg); } else { Messaging.void_objc_msgSendSuper_bool_IntPtr(base.SuperHandle, selSetBoolForKey_Handle, value, arg); } NSString.ReleaseNative(arg); } [Export("registerDefaults:")] public virtual void RegisterDefaults(NSDictionary registrationDictionary) { if (registrationDictionary == null) { throw new ArgumentNullException("registrationDictionary"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRegisterDefaults_Handle, registrationDictionary.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRegisterDefaults_Handle, registrationDictionary.Handle); } } [Export("addSuiteNamed:")] public virtual void AddSuite(string suiteName) { if (suiteName == null) { throw new ArgumentNullException("suiteName"); } IntPtr arg = NSString.CreateNative(suiteName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSuiteNamed_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSuiteNamed_Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeSuiteNamed:")] public virtual void RemoveSuite(string suiteName) { if (suiteName == null) { throw new ArgumentNullException("suiteName"); } IntPtr arg = NSString.CreateNative(suiteName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveSuiteNamed_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveSuiteNamed_Handle, arg); } NSString.ReleaseNative(arg); } [Export("dictionaryRepresentation")] public virtual NSDictionary AsDictionary() { if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDictionaryRepresentationHandle)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDictionaryRepresentationHandle)); } [Export("volatileDomainNames")] public virtual string[] VolatileDomainNames() { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVolatileDomainNamesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVolatileDomainNamesHandle)); } [Export("volatileDomainForName:")] public virtual NSDictionary GetVolatileDomain(string domainName) { if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selVolatileDomainForName_Handle, arg))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selVolatileDomainForName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setVolatileDomain:forName:")] public virtual void SetVolatileDomain(NSDictionary domain, string domainName) { if (domain == null) { throw new ArgumentNullException("domain"); } if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetVolatileDomainForName_Handle, domain.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetVolatileDomainForName_Handle, domain.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removeVolatileDomainForName:")] public virtual void RemoveVolatileDomain(string domainName) { if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveVolatileDomainForName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveVolatileDomainForName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("persistentDomainNames")] public virtual string[] PersistentDomainNames() { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPersistentDomainNamesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPersistentDomainNamesHandle)); } [Export("persistentDomainForName:")] public virtual NSDictionary PersistentDomainForName(string domainName) { if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); NSDictionary result = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPersistentDomainForName_Handle, arg))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPersistentDomainForName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setPersistentDomain:forName:")] public virtual void SetPersistentDomain(NSDictionary domain, string domainName) { if (domain == null) { throw new ArgumentNullException("domain"); } if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetPersistentDomainForName_Handle, domain.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetPersistentDomainForName_Handle, domain.Handle, arg); } NSString.ReleaseNative(arg); } [Export("removePersistentDomainForName:")] public virtual void RemovePersistentDomain(string domainName) { if (domainName == null) { throw new ArgumentNullException("domainName"); } IntPtr arg = NSString.CreateNative(domainName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemovePersistentDomainForName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemovePersistentDomainForName_Handle, arg); } NSString.ReleaseNative(arg); } [Export("synchronize")] public virtual bool Synchronize() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSynchronizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSynchronizeHandle); } [Export("objectIsForcedForKey:")] public virtual bool ObjectIsForced(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectIsForcedForKey_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selObjectIsForcedForKey_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("objectIsForcedForKey:inDomain:")] public virtual bool ObjectIsForced(string key, string domain) { if (key == null) { throw new ArgumentNullException("key"); } if (domain == null) { throw new ArgumentNullException("domain"); } IntPtr arg = NSString.CreateNative(key); IntPtr arg2 = NSString.CreateNative(domain); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selObjectIsForcedForKeyInDomain_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selObjectIsForcedForKeyInDomain_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUserNotification.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUserNotification", true)] [MountainLion] public class NSUserNotification : NSObject { private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selSubtitleHandle = Selector.GetHandle("subtitle"); private static readonly IntPtr selSetSubtitle_Handle = Selector.GetHandle("setSubtitle:"); private static readonly IntPtr selInformativeTextHandle = Selector.GetHandle("informativeText"); private static readonly IntPtr selSetInformativeText_Handle = Selector.GetHandle("setInformativeText:"); private static readonly IntPtr selActionButtonTitleHandle = Selector.GetHandle("actionButtonTitle"); private static readonly IntPtr selSetActionButtonTitle_Handle = Selector.GetHandle("setActionButtonTitle:"); private static readonly IntPtr selUserInfoHandle = Selector.GetHandle("userInfo"); private static readonly IntPtr selSetUserInfo_Handle = Selector.GetHandle("setUserInfo:"); private static readonly IntPtr selDeliveryDateHandle = Selector.GetHandle("deliveryDate"); private static readonly IntPtr selSetDeliveryDate_Handle = Selector.GetHandle("setDeliveryDate:"); private static readonly IntPtr selDeliveryTimeZoneHandle = Selector.GetHandle("deliveryTimeZone"); private static readonly IntPtr selSetDeliveryTimeZone_Handle = Selector.GetHandle("setDeliveryTimeZone:"); private static readonly IntPtr selDeliveryRepeatIntervalHandle = Selector.GetHandle("deliveryRepeatInterval"); private static readonly IntPtr selSetDeliveryRepeatInterval_Handle = Selector.GetHandle("setDeliveryRepeatInterval:"); private static readonly IntPtr selActualDeliveryDateHandle = Selector.GetHandle("actualDeliveryDate"); private static readonly IntPtr selIsPresentedHandle = Selector.GetHandle("isPresented"); private static readonly IntPtr selIsRemoteHandle = Selector.GetHandle("isRemote"); private static readonly IntPtr selSoundNameHandle = Selector.GetHandle("soundName"); private static readonly IntPtr selSetSoundName_Handle = Selector.GetHandle("setSoundName:"); private static readonly IntPtr selHasActionButtonHandle = Selector.GetHandle("hasActionButton"); private static readonly IntPtr selSetHasActionButton_Handle = Selector.GetHandle("setHasActionButton:"); private static readonly IntPtr selActivationTypeHandle = Selector.GetHandle("activationType"); private static readonly IntPtr selOtherButtonTitleHandle = Selector.GetHandle("otherButtonTitle"); private static readonly IntPtr selSetOtherButtonTitle_Handle = Selector.GetHandle("setOtherButtonTitle:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUserNotification"); private object __mt_UserInfo_var; private object __mt_DeliveryDate_var; private object __mt_DeliveryTimeZone_var; private object __mt_DeliveryRepeatInterval_var; private object __mt_ActualDeliveryDate_var; private static NSString _NSUserNotificationDefaultSoundName; public override IntPtr ClassHandle => class_ptr; public virtual string Title { [Export("title", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Subtitle { [Export("subtitle", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubtitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubtitleHandle)); } [Export("setSubtitle:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSubtitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSubtitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string InformativeText { [Export("informativeText", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInformativeTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInformativeTextHandle)); } [Export("setInformativeText:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInformativeText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInformativeText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ActionButtonTitle { [Export("actionButtonTitle", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selActionButtonTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionButtonTitleHandle)); } [Export("setActionButtonTitle:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetActionButtonTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetActionButtonTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSDictionary UserInfo { [Export("userInfo", ArgumentSemantic.Copy)] get { return (NSDictionary)(__mt_UserInfo_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserInfoHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserInfoHandle))))); } [Export("setUserInfo:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserInfo_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserInfo_Handle, value.Handle); } __mt_UserInfo_var = value; } } public virtual NSDate DeliveryDate { [Export("deliveryDate", ArgumentSemantic.Copy)] get { return (NSDate)(__mt_DeliveryDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeliveryDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeliveryDateHandle))))); } [Export("setDeliveryDate:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDeliveryDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDeliveryDate_Handle, value.Handle); } __mt_DeliveryDate_var = value; } } public virtual NSTimeZone DeliveryTimeZone { [Export("deliveryTimeZone", ArgumentSemantic.Copy)] get { return (NSTimeZone)(__mt_DeliveryTimeZone_var = ((!IsDirectBinding) ? ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeliveryTimeZoneHandle))) : ((NSTimeZone)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeliveryTimeZoneHandle))))); } [Export("setDeliveryTimeZone:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDeliveryTimeZone_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDeliveryTimeZone_Handle, value.Handle); } __mt_DeliveryTimeZone_var = value; } } public virtual NSDateComponents DeliveryRepeatInterval { [Export("deliveryRepeatInterval", ArgumentSemantic.Copy)] get { return (NSDateComponents)(__mt_DeliveryRepeatInterval_var = ((!IsDirectBinding) ? ((NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeliveryRepeatIntervalHandle))) : ((NSDateComponents)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeliveryRepeatIntervalHandle))))); } [Export("setDeliveryRepeatInterval:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDeliveryRepeatInterval_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDeliveryRepeatInterval_Handle, value.Handle); } __mt_DeliveryRepeatInterval_var = value; } } public virtual NSDate ActualDeliveryDate { [Export("actualDeliveryDate")] get { return (NSDate)(__mt_ActualDeliveryDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActualDeliveryDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selActualDeliveryDateHandle))))); } } public virtual bool Presented { [Export("isPresented")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsPresentedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsPresentedHandle); } } public virtual bool Remote { [Export("isRemote")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRemoteHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRemoteHandle); } } public virtual string SoundName { [Export("soundName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSoundNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSoundNameHandle)); } [Export("setSoundName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSoundName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSoundName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool HasActionButton { [Export("hasActionButton")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasActionButtonHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasActionButtonHandle); } [Export("setHasActionButton:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasActionButton_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasActionButton_Handle, value); } } } public virtual NSUserNotificationActivationType ActivationType { [Export("activationType")] get { if (IsDirectBinding) { return (NSUserNotificationActivationType)Messaging.int_objc_msgSend(base.Handle, selActivationTypeHandle); } return (NSUserNotificationActivationType)Messaging.int_objc_msgSendSuper(base.SuperHandle, selActivationTypeHandle); } } public virtual string OtherButtonTitle { [Export("otherButtonTitle", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOtherButtonTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOtherButtonTitleHandle)); } [Export("setOtherButtonTitle:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOtherButtonTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOtherButtonTitle_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("NSUserNotificationDefaultSoundName", "Foundation")] public static NSString NSUserNotificationDefaultSoundName { get { if (_NSUserNotificationDefaultSoundName == null) { _NSUserNotificationDefaultSoundName = Dlfcn.GetStringConstant(Libraries.Foundation.Handle, "NSUserNotificationDefaultSoundName"); } return _NSUserNotificationDefaultSoundName; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUserNotification() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUserNotification(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotification(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotification(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_UserInfo_var = null; __mt_DeliveryDate_var = null; __mt_DeliveryTimeZone_var = null; __mt_DeliveryRepeatInterval_var = null; __mt_ActualDeliveryDate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUserNotificationActivationType.cs ================================================ namespace Foundation; public enum NSUserNotificationActivationType { None, ContentsClicked, ActionButtonClicked } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUserNotificationCenter.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUserNotificationCenter", true)] [MountainLion] public class NSUserNotificationCenter : NSObject { [Register] private sealed class _NSUserNotificationCenterDelegate : NSUserNotificationCenterDelegate { internal EventHandler didDeliverNotification; internal EventHandler didActivateNotification; internal UNCShouldPresentNotification shouldPresentNotification; [Preserve(Conditional = true)] public override void DidDeliverNotification(NSUserNotificationCenter center, NSUserNotification notification) { EventHandler eventHandler = didDeliverNotification; if (eventHandler != null) { UNCDidDeliverNotificationEventArgs e = new UNCDidDeliverNotificationEventArgs(notification); eventHandler(center, e); } } [Preserve(Conditional = true)] public override void DidActivateNotification(NSUserNotificationCenter center, NSUserNotification notification) { EventHandler eventHandler = didActivateNotification; if (eventHandler != null) { UNCDidActivateNotificationEventArgs e = new UNCDidActivateNotificationEventArgs(notification); eventHandler(center, e); } } [Preserve(Conditional = true)] public override bool ShouldPresentNotification(NSUserNotificationCenter center, NSUserNotification notification) { return shouldPresentNotification?.Invoke(center, notification) ?? false; } } private static readonly IntPtr selDefaultUserNotificationCenterHandle = Selector.GetHandle("defaultUserNotificationCenter"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selScheduledNotificationsHandle = Selector.GetHandle("scheduledNotifications"); private static readonly IntPtr selSetScheduledNotifications_Handle = Selector.GetHandle("setScheduledNotifications:"); private static readonly IntPtr selDeliveredNotificationsHandle = Selector.GetHandle("deliveredNotifications"); private static readonly IntPtr selScheduleNotification_Handle = Selector.GetHandle("scheduleNotification:"); private static readonly IntPtr selRemoveScheduledNotification_Handle = Selector.GetHandle("removeScheduledNotification:"); private static readonly IntPtr selDeliverNotification_Handle = Selector.GetHandle("deliverNotification:"); private static readonly IntPtr selRemoveDeliveredNotification_Handle = Selector.GetHandle("removeDeliveredNotification:"); private static readonly IntPtr selRemoveAllDeliveredNotificationsHandle = Selector.GetHandle("removeAllDeliveredNotifications"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUserNotificationCenter"); private static object __mt_DefaultUserNotificationCenter_var_static; private object __mt_WeakDelegate_var; private object __mt_ScheduledNotifications_var; private object __mt_DeliveredNotifications_var; public override IntPtr ClassHandle => class_ptr; public static NSUserNotificationCenter DefaultUserNotificationCenter { [Export("defaultUserNotificationCenter")] get { return (NSUserNotificationCenter)(__mt_DefaultUserNotificationCenter_var_static = (NSUserNotificationCenter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultUserNotificationCenterHandle))); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public NSUserNotificationCenterDelegate Delegate { get { return WeakDelegate as NSUserNotificationCenterDelegate; } set { WeakDelegate = value; } } public virtual NSUserNotification[] ScheduledNotifications { [Export("scheduledNotifications")] get { return (NSUserNotification[])(__mt_ScheduledNotifications_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScheduledNotificationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selScheduledNotificationsHandle)))); } [Export("setScheduledNotifications:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetScheduledNotifications_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetScheduledNotifications_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_ScheduledNotifications_var = value; } } public virtual NSUserNotification[] DeliveredNotifications { [Export("deliveredNotifications")] get { return (NSUserNotification[])(__mt_DeliveredNotifications_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeliveredNotificationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDeliveredNotificationsHandle)))); } } public UNCShouldPresentNotification ShouldPresentNotification { get { return EnsureNSUserNotificationCenterDelegate().shouldPresentNotification; } set { EnsureNSUserNotificationCenterDelegate().shouldPresentNotification = value; } } public event EventHandler DidDeliverNotification { add { _NSUserNotificationCenterDelegate nSUserNotificationCenterDelegate = EnsureNSUserNotificationCenterDelegate(); nSUserNotificationCenterDelegate.didDeliverNotification = (EventHandler)System.Delegate.Combine(nSUserNotificationCenterDelegate.didDeliverNotification, value); } remove { _NSUserNotificationCenterDelegate nSUserNotificationCenterDelegate = EnsureNSUserNotificationCenterDelegate(); nSUserNotificationCenterDelegate.didDeliverNotification = (EventHandler)System.Delegate.Remove(nSUserNotificationCenterDelegate.didDeliverNotification, value); } } public event EventHandler DidActivateNotification { add { _NSUserNotificationCenterDelegate nSUserNotificationCenterDelegate = EnsureNSUserNotificationCenterDelegate(); nSUserNotificationCenterDelegate.didActivateNotification = (EventHandler)System.Delegate.Combine(nSUserNotificationCenterDelegate.didActivateNotification, value); } remove { _NSUserNotificationCenterDelegate nSUserNotificationCenterDelegate = EnsureNSUserNotificationCenterDelegate(); nSUserNotificationCenterDelegate.didActivateNotification = (EventHandler)System.Delegate.Remove(nSUserNotificationCenterDelegate.didActivateNotification, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUserNotificationCenter(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotificationCenter(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotificationCenter(IntPtr handle) : base(handle) { } [Export("scheduleNotification:")] public virtual void ScheduleNotification(NSUserNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selScheduleNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selScheduleNotification_Handle, notification.Handle); } _ = ScheduledNotifications; } [Export("removeScheduledNotification:")] public virtual void RemoveScheduledNotification(NSUserNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveScheduledNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveScheduledNotification_Handle, notification.Handle); } _ = ScheduledNotifications; } [Export("deliverNotification:")] public virtual void DeliverNotification(NSUserNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeliverNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeliverNotification_Handle, notification.Handle); } _ = DeliveredNotifications; } [Export("removeDeliveredNotification:")] public virtual void RemoveDeliveredNotification(NSUserNotification notification) { if (notification == null) { throw new ArgumentNullException("notification"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveDeliveredNotification_Handle, notification.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveDeliveredNotification_Handle, notification.Handle); } _ = DeliveredNotifications; } [Export("removeAllDeliveredNotifications")] public virtual void RemoveAllDeliveredNotifications() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllDeliveredNotificationsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllDeliveredNotificationsHandle); } _ = DeliveredNotifications; } private _NSUserNotificationCenterDelegate EnsureNSUserNotificationCenterDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _NSUserNotificationCenterDelegate)) { nSObject = (WeakDelegate = new _NSUserNotificationCenterDelegate()); } return (_NSUserNotificationCenterDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_ScheduledNotifications_var = null; __mt_DeliveredNotifications_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUserNotificationCenterDelegate.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSUserNotificationCenterDelegate", true)] [Model] [MountainLion] public class NSUserNotificationCenterDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUserNotificationCenterDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUserNotificationCenterDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotificationCenterDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUserNotificationCenterDelegate(IntPtr handle) : base(handle) { } [Export("userNotificationCenter:didDeliverNotification:")] public virtual void DidDeliverNotification(NSUserNotificationCenter center, NSUserNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("userNotificationCenter:didActivateNotification:")] public virtual void DidActivateNotification(NSUserNotificationCenter center, NSUserNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("userNotificationCenter:shouldPresentNotification:")] public virtual bool ShouldPresentNotification(NSUserNotificationCenter center, NSUserNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSUuid.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using ObjCRuntime; namespace Foundation; [Register("NSUUID", true)] public class NSUuid : NSObject { private static readonly IntPtr selInitWithUUIDString_Handle = Selector.GetHandle("initWithUUIDString:"); private static readonly IntPtr selGetUUIDBytes_Handle = Selector.GetHandle("getUUIDBytes:"); private static readonly IntPtr selUUIDStringHandle = Selector.GetHandle("UUIDString"); private static readonly IntPtr class_ptr = Class.GetHandle("NSUUID"); public override IntPtr ClassHandle => class_ptr; private unsafe static IntPtr GetIntPtr(byte[] bytes) { if (bytes == null) { throw new ArgumentNullException("bytes"); } if (bytes.Length < 16) { throw new ArgumentException("length must be at least 16 bytes"); } IntPtr result; fixed (byte* ptr = &bytes[0]) { result = (IntPtr)ptr; } return result; } public NSUuid(byte[] bytes) : base(NSObjectFlag.Empty) { IntPtr intPtr = GetIntPtr(bytes); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.GetHandle("initWithUUIDBytes:"), intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.GetHandle("initWithUUIDBytes:"), intPtr); } } public byte[] GetBytes() { byte[] array = new byte[16]; IntPtr intPtr = Marshal.AllocHGlobal(16); GetUuidBytes(intPtr); Marshal.Copy(intPtr, array, 0, 16); Marshal.FreeHGlobal(intPtr); return array; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSUuid() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSUuid(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUuid(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSUuid(IntPtr handle) : base(handle) { } [Export("initWithUUIDString:")] public NSUuid(string str) : base(NSObjectFlag.Empty) { if (str == null) { throw new ArgumentNullException("str"); } IntPtr arg = NSString.CreateNative(str); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithUUIDString_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithUUIDString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("getUUIDBytes:")] internal virtual void GetUuidBytes(IntPtr uuid) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetUUIDBytes_Handle, uuid); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetUUIDBytes_Handle, uuid); } } [Export("UUIDString")] public virtual string AsString() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUUIDStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUUIDStringHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSValue.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using CoreGraphics; using CoreMedia; using ObjCRuntime; namespace Foundation; [Register("NSValue", true)] public class NSValue : NSObject { private static readonly IntPtr selNonretainedObjectValueHandle = Selector.GetHandle("nonretainedObjectValue"); private static readonly IntPtr selPointerValueHandle = Selector.GetHandle("pointerValue"); private static readonly IntPtr selCMTimeValueHandle = Selector.GetHandle("CMTimeValue"); private static readonly IntPtr selCMTimeMappingValueHandle = Selector.GetHandle("CMTimeMappingValue"); private static readonly IntPtr selCMTimeRangeValueHandle = Selector.GetHandle("CMTimeRangeValue"); private static readonly IntPtr selRectValueHandle = Selector.GetHandle("rectValue"); private static readonly IntPtr selSizeValueHandle = Selector.GetHandle("sizeValue"); private static readonly IntPtr selPointValueHandle = Selector.GetHandle("pointValue"); private static readonly IntPtr selRangeValueHandle = Selector.GetHandle("rangeValue"); private static readonly IntPtr selGetValue_Handle = Selector.GetHandle("getValue:"); private static readonly IntPtr selObjCTypeHandle = Selector.GetHandle("objCType"); private static readonly IntPtr selValueWithNonretainedObject_Handle = Selector.GetHandle("valueWithNonretainedObject:"); private static readonly IntPtr selValueWithPointer_Handle = Selector.GetHandle("valueWithPointer:"); private static readonly IntPtr selIsEqualToValue_Handle = Selector.GetHandle("isEqualToValue:"); private static readonly IntPtr selValueWithRange_Handle = Selector.GetHandle("valueWithRange:"); private static readonly IntPtr selValueWithCMTime_Handle = Selector.GetHandle("valueWithCMTime:"); private static readonly IntPtr selValueWithCMTimeMapping_Handle = Selector.GetHandle("valueWithCMTimeMapping:"); private static readonly IntPtr selValueWithCMTimeRange_Handle = Selector.GetHandle("valueWithCMTimeRange:"); private static readonly IntPtr selValueWithRect_Handle = Selector.GetHandle("valueWithRect:"); private static readonly IntPtr selValueWithSize_Handle = Selector.GetHandle("valueWithSize:"); private static readonly IntPtr selValueWithPoint_Handle = Selector.GetHandle("valueWithPoint:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSValue"); private object __mt_NonretainedObjectValue_var; public string ObjCType => Marshal.PtrToStringAnsi(ObjCTypePtr()); public override IntPtr ClassHandle => class_ptr; public virtual NSObject NonretainedObjectValue { [Export("nonretainedObjectValue")] get { return (NSObject)(__mt_NonretainedObjectValue_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNonretainedObjectValueHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNonretainedObjectValueHandle)))); } } public virtual IntPtr PointerValue { [Export("pointerValue")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selPointerValueHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPointerValueHandle); } } public virtual CMTime CMTimeValue { [Export("CMTimeValue")] get { CMTime retval; if (IsDirectBinding) { Messaging.CMTime_objc_msgSend_stret(out retval, base.Handle, selCMTimeValueHandle); } else { Messaging.CMTime_objc_msgSendSuper_stret(out retval, base.SuperHandle, selCMTimeValueHandle); } return retval; } } public virtual CMTimeMapping CMTimeMappingValue { [Export("CMTimeMappingValue")] get { CMTimeMapping retval; if (IsDirectBinding) { Messaging.CMTimeMapping_objc_msgSend_stret(out retval, base.Handle, selCMTimeMappingValueHandle); } else { Messaging.CMTimeMapping_objc_msgSendSuper_stret(out retval, base.SuperHandle, selCMTimeMappingValueHandle); } return retval; } } public virtual CMTimeRange CMTimeRangeValue { [Export("CMTimeRangeValue")] get { CMTimeRange retval; if (IsDirectBinding) { Messaging.CMTimeRange_objc_msgSend_stret(out retval, base.Handle, selCMTimeRangeValueHandle); } else { Messaging.CMTimeRange_objc_msgSendSuper_stret(out retval, base.SuperHandle, selCMTimeRangeValueHandle); } return retval; } } public virtual CGRect RectangleValue { [Export("rectValue")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selRectValueHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRectValueHandle); } return retval; } } public virtual CGSize SizeValue { [Export("sizeValue")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selSizeValueHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selSizeValueHandle); } } public virtual CGPoint PointValue { [Export("pointValue")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selPointValueHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selPointValueHandle); } } public virtual NSRange RangeValue { [Export("rangeValue")] get { if (IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selRangeValueHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selRangeValueHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSValue(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSValue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSValue(IntPtr handle) : base(handle) { } [Export("getValue:")] public virtual void StoreValueAtAddress(IntPtr value) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetValue_Handle, value); } } [Export("objCType")] internal virtual IntPtr ObjCTypePtr() { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selObjCTypeHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjCTypeHandle); } [Export("valueWithNonretainedObject:")] public static NSValue ValueFromNonretainedObject(NSObject anObject) { if (anObject == null) { throw new ArgumentNullException("anObject"); } return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithNonretainedObject_Handle, anObject.Handle)); } [Export("valueWithPointer:")] public static NSValue ValueFromPointer(IntPtr pointer) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithPointer_Handle, pointer)); } [Export("isEqualToValue:")] public virtual bool IsEqualTo(NSValue value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToValue_Handle, value.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToValue_Handle, value.Handle); } [Export("valueWithRange:")] public static NSValue FromRange(NSRange range) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(class_ptr, selValueWithRange_Handle, range)); } [Export("valueWithCMTime:")] public static NSValue FromCMTime(CMTime time) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CMTime(class_ptr, selValueWithCMTime_Handle, time)); } [Export("valueWithCMTimeMapping:")] public static NSValue FromCMTimeMapping(CMTimeMapping timeMapping) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CMTimeMapping(class_ptr, selValueWithCMTimeMapping_Handle, timeMapping)); } [Export("valueWithCMTimeRange:")] public static NSValue FromCMTimeRange(CMTimeRange timeRange) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CMTimeRange(class_ptr, selValueWithCMTimeRange_Handle, timeRange)); } [Export("valueWithRect:")] public static NSValue FromRectangle(CGRect rect) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(class_ptr, selValueWithRect_Handle, rect)); } [Export("valueWithSize:")] public static NSValue FromSize(CGSize size) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGSize(class_ptr, selValueWithSize_Handle, size)); } [Export("valueWithPoint:")] public static NSValue FromPoint(CGPoint point) { return (NSValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(class_ptr, selValueWithPoint_Handle, point)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_NonretainedObjectValue_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSValueTransformer.cs ================================================ using System; using System.ComponentModel; using ObjCRuntime; namespace Foundation; [Register("NSValueTransformer", true)] public class NSValueTransformer : NSObject { private static readonly IntPtr selReverseTransformedValue_Handle = Selector.GetHandle("reverseTransformedValue:"); private static readonly IntPtr selTransformedValue_Handle = Selector.GetHandle("transformedValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("NSValueTransformer"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public NSValueTransformer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public NSValueTransformer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSValueTransformer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public NSValueTransformer(IntPtr handle) : base(handle) { } [Export("reverseTransformedValue:")] public virtual NSObject ReverseTransformedValue(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selReverseTransformedValue_Handle, value.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selReverseTransformedValue_Handle, value.Handle)); } [Export("transformedValue:")] public virtual NSObject TransformedValue(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTransformedValue_Handle, value.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTransformedValue_Handle, value.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSVolumeEnumerationOptions.cs ================================================ using System; using ObjCRuntime; namespace Foundation; [Since(4, 0)] [Flags] public enum NSVolumeEnumerationOptions : ulong { None = 0uL, SkipHiddenVolumes = 2uL, ProduceFileReferenceUrls = 4uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSWritingDirection.cs ================================================ namespace Foundation; public enum NSWritingDirection : long { Natural = -1L, LeftToRight = 0L, RightToLeft = -1L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/NSZone.cs ================================================ using ObjCRuntime; using System.Runtime.InteropServices; namespace Foundation; public class NSZone : INativeObject { public static readonly NSZone Default = new NSZone(NSDefaultMallocZone()); internal NSZone() { } public NSZone(IntPtr handle) { Handle = handle; } [Preserve(Conditional = true)] public NSZone(IntPtr handle, bool owns) : this(handle) { } public IntPtr Handle { get; private set; } public string Name { get { return new NSString(NSZoneName(Handle)).ToString(); } set { using NSString nSString = new NSString(value); NSSetZoneName(Handle, nSString.Handle); } } [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation")] private static extern IntPtr NSDefaultMallocZone(); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation")] private static extern IntPtr NSZoneName(IntPtr zone); [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation")] private static extern void NSSetZoneName(IntPtr zone, IntPtr name); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ObjCException.cs ================================================ using System; namespace Foundation; public class ObjCException : Exception { private NSException native_exc; public NSException NSException => native_exc; public string Reason => native_exc.Reason; public string Name => native_exc.Name; public override string Message => $"{Name}: {Reason}"; public ObjCException() { native_exc = new NSException("default", string.Empty, null); } public ObjCException(NSException exc) { native_exc = exc; } [Preserve] internal static void Throw(IntPtr handle) { throw new ObjCException(new NSException(handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/OutletAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Property)] public sealed class OutletAttribute : ExportAttribute { public OutletAttribute() { } public OutletAttribute(string name) : base(name) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/PreserveAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate)] public sealed class PreserveAttribute : Attribute { public bool AllMembers; public bool Conditional; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ProtocolAttribute.cs ================================================ namespace Foundation; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class ProtocolAttribute : Attribute { private string? informal_until; public Type WrapperType { get; set; } public string Name { get; set; } public bool IsInformal { get; set; } public string? FormalSince { get => informal_until; set { if (value != null) Version.Parse(value); informal_until = value; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/ProtocolMemberAttribute.cs ================================================ using ObjCRuntime; namespace Foundation; [AttributeUsage(AttributeTargets.Interface, AllowMultiple = true)] public sealed class ProtocolMemberAttribute : Attribute { public bool IsRequired { get; set; } public bool IsProperty { get; set; } public bool IsStatic { get; set; } public string? Name { get; set; } public string? Selector { get; set; } public Type? ReturnType { get; set; } public Type? ReturnTypeDelegateProxy { get; set; } public Type[]? ParameterType { get; set; } public bool[]? ParameterByRef { get; set; } public Type?[]? ParameterBlockProxy { get; set; } public bool IsVariadic { get; set; } public Type? PropertyType { get; set; } public string? GetterSelector { get; set; } public string? SetterSelector { get; set; } public ArgumentSemantic ArgumentSemantic { get; set; } public ExportAttribute? ToGetter() { if (!IsProperty) return default; if (string.IsNullOrWhiteSpace(GetterSelector)) return default; return new ExportAttribute(GetterSelector, ArgumentSemantic); } public ExportAttribute? ToSetter() { if (!IsProperty) return default; if (string.IsNullOrWhiteSpace(SetterSelector)) return default; return new ExportAttribute(SetterSelector, ArgumentSemantic); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/RegisterAttribute.cs ================================================ using System; namespace Foundation; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public sealed class RegisterAttribute : Attribute { private string name; private bool is_wrapper; public string Name { get { return name; } set { name = value; } } public bool IsWrapper { get { return is_wrapper; } set { is_wrapper = value; } } public bool SkipRegistration { get; set; } public RegisterAttribute() { } public RegisterAttribute(string name) { this.name = name; } public RegisterAttribute(string name, bool isWrapper) { this.name = name; is_wrapper = isWrapper; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/UNCDidActivateNotificationEventArgs.cs ================================================ using System; namespace Foundation; public class UNCDidActivateNotificationEventArgs : EventArgs { public NSUserNotification Notification { get; set; } public UNCDidActivateNotificationEventArgs(NSUserNotification notification) { Notification = notification; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/UNCDidDeliverNotificationEventArgs.cs ================================================ using System; namespace Foundation; public class UNCDidDeliverNotificationEventArgs : EventArgs { public NSUserNotification Notification { get; set; } public UNCDidDeliverNotificationEventArgs(NSUserNotification notification) { Notification = notification; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/UNCShouldPresentNotification.cs ================================================ namespace Foundation; public delegate bool UNCShouldPresentNotification(NSUserNotificationCenter center, NSUserNotification notification); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Foundation/You_Should_Not_Call_base_In_This_Method.cs ================================================ using System; namespace Foundation; public class You_Should_Not_Call_base_In_This_Method : Exception { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/HttpVersion.cs ================================================ using System; internal static class HttpVersion { public static Version Version10 = new Version(1, 0); public static Version Version11 = new Version(1, 1); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageDestination.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageIO; public class CGImageDestination : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public static string[] TypeIdentifiers => NSArray.StringArrayFromHandle(CGImageDestinationCopyTypeIdentifiers()); internal CGImageDestination(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGImageDestination(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CGImageDestination() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO", EntryPoint = "CGImageDestinationGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageDestinationCopyTypeIdentifiers(); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageDestinationCreateWithData(IntPtr data, IntPtr stringType, IntPtr count, IntPtr options); public static CGImageDestination FromData(NSData data, string typeIdentifier, int imageCount) { return FromData(data, typeIdentifier, imageCount, null); } public static CGImageDestination FromData(NSData data, string typeIdentifier, int imageCount, CGImageDestinationOptions options) { if (data == null) { throw new ArgumentNullException("data"); } if (typeIdentifier == null) { throw new ArgumentNullException("typeIdentifier"); } NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); IntPtr stringType = NSString.CreateNative(typeIdentifier); IntPtr intPtr = CGImageDestinationCreateWithData(data.Handle, stringType, (IntPtr)imageCount, nSMutableDictionary?.Handle ?? IntPtr.Zero); NSString.ReleaseNative(stringType); CGImageDestination result = ((intPtr == IntPtr.Zero) ? null : new CGImageDestination(intPtr, owns: true)); nSMutableDictionary?.Dispose(); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageDestinationCreateWithURL(IntPtr url, IntPtr stringType, IntPtr count, IntPtr options); public static CGImageDestination FromUrl(NSUrl url, string typeIdentifier, int imageCount) { return FromUrl(url, typeIdentifier, imageCount, null); } public static CGImageDestination FromUrl(NSUrl url, string typeIdentifier, int imageCount, CGImageDestinationOptions options) { if (url == null) { throw new ArgumentNullException("url"); } if (typeIdentifier == null) { throw new ArgumentNullException("typeIdentifier"); } NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); IntPtr stringType = NSString.CreateNative(typeIdentifier); IntPtr intPtr = CGImageDestinationCreateWithURL(url.Handle, stringType, (IntPtr)imageCount, nSMutableDictionary?.Handle ?? IntPtr.Zero); NSString.ReleaseNative(stringType); CGImageDestination result = ((intPtr == IntPtr.Zero) ? null : new CGImageDestination(intPtr, owns: true)); nSMutableDictionary?.Dispose(); return result; } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern void CGImageDestinationSetProperties(IntPtr handle, IntPtr props); public void SetProperties(NSDictionary properties) { if (properties == null) { throw new ArgumentNullException("properties"); } CGImageDestinationSetProperties(handle, properties.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern void CGImageDestinationAddImage(IntPtr handle, IntPtr image, IntPtr properties); public void AddImage(CGImage image, NSDictionary properties) { if (image == null) { throw new ArgumentNullException("image"); } CGImageDestinationAddImage(handle, image.Handle, properties?.Handle ?? IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern void CGImageDestinationAddImageFromSource(IntPtr handle, IntPtr sourceHandle, IntPtr index, IntPtr properties); public void AddImage(CGImageSource source, int index, NSDictionary properties) { if (source == null) { throw new ArgumentNullException("source"); } CGImageDestinationAddImageFromSource(handle, source.Handle, (IntPtr)index, properties?.Handle ?? IntPtr.Zero); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern bool CGImageDestinationFinalize(IntPtr handle); public bool Close() { bool result = CGImageDestinationFinalize(handle); Dispose(); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageDestinationOptions.cs ================================================ using System; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageIO; public class CGImageDestinationOptions { private static IntPtr kLossyCompressionQuality; private static IntPtr kBackgroundColor; public float? LossyCompressionQuality { get; set; } public CGColor DestinationBackgroundColor { get; set; } private static void Init() { if (!(kLossyCompressionQuality != IntPtr.Zero)) { IntPtr handle = Libraries.ImageIO.Handle; kLossyCompressionQuality = Dlfcn.GetIntPtr(handle, "kCGImageDestinationLossyCompressionQuality"); kBackgroundColor = Dlfcn.GetIntPtr(handle, "kCGImageDestinationBackgroundColor"); } } internal NSMutableDictionary ToDictionary() { Init(); NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (LossyCompressionQuality.HasValue) { nSMutableDictionary.LowlevelSetObject(new NSNumber(LossyCompressionQuality.Value), kLossyCompressionQuality); } if (DestinationBackgroundColor != null) { nSMutableDictionary.LowlevelSetObject(DestinationBackgroundColor.Handle, kBackgroundColor); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageOptions.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace ImageIO; public class CGImageOptions { private static IntPtr kTypeIdentifierHint; private static IntPtr kShouldCache; private static IntPtr kShouldAllowFloat; public string BestGuessTypeIdentifier { get; set; } public bool ShouldCache { get; set; } public bool ShouldAllowFloat { get; set; } private static void Init() { if (!(kTypeIdentifierHint != IntPtr.Zero)) { IntPtr handle = Libraries.ImageIO.Handle; kTypeIdentifierHint = Dlfcn.GetIntPtr(handle, "kCGImageSourceTypeIdentifierHint"); kShouldCache = Dlfcn.GetIntPtr(handle, "kCGImageSourceShouldCache"); kShouldAllowFloat = Dlfcn.GetIntPtr(handle, "kCGImageSourceShouldAllowFloat"); } } public CGImageOptions() { ShouldCache = true; } internal virtual NSMutableDictionary ToDictionary() { Init(); NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (BestGuessTypeIdentifier != null) { nSMutableDictionary.LowlevelSetObject(new NSString(BestGuessTypeIdentifier), kTypeIdentifierHint); } if (!ShouldCache) { nSMutableDictionary.LowlevelSetObject(CFBoolean.False.Handle, kShouldCache); } if (ShouldAllowFloat) { nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, kShouldAllowFloat); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageProperties.cs ================================================ using Foundation; using ObjCRuntime; namespace ImageIO; public static class CGImageProperties { private static NSString _TIFFDictionary; private static NSString _GIFDictionary; private static NSString _JFIFDictionary; private static NSString _ExifDictionary; private static NSString _PNGDictionary; private static NSString _IPTCDictionary; private static NSString _GPSDictionary; private static NSString _RawDictionary; private static NSString _CIFFDictionary; private static NSString _EightBIMDictionary; private static NSString _DNGDictionary; private static NSString _ExifAuxDictionary; private static NSString _MakerCanonDictionary; private static NSString _MakerNikonDictionary; private static NSString _MakerMinoltaDictionary; private static NSString _MakerFujiDictionary; private static NSString _MakerOlympusDictionary; private static NSString _MakerPentaxDictionary; private static NSString _FileSize; private static NSString _DPIHeight; private static NSString _DPIWidth; private static NSString _PixelWidth; private static NSString _PixelHeight; private static NSString _Depth; private static NSString _Orientation; private static NSString _IsFloat; private static NSString _IsIndexed; private static NSString _HasAlpha; private static NSString _ColorModel; private static NSString _ProfileName; private static NSString _ColorModelRGB; private static NSString _ColorModelGray; private static NSString _ColorModelCMYK; private static NSString _ColorModelLab; private static NSString _ExifExposureTime; private static NSString _ExifFNumber; private static NSString _ExifExposureProgram; private static NSString _ExifSpectralSensitivity; private static NSString _ExifISOSpeedRatings; private static NSString _ExifOECF; private static NSString _ExifVersion; private static NSString _ExifDateTimeOriginal; private static NSString _ExifDateTimeDigitized; private static NSString _ExifComponentsConfiguration; private static NSString _ExifCompressedBitsPerPixel; private static NSString _ExifShutterSpeedValue; private static NSString _ExifApertureValue; private static NSString _ExifBrightnessValue; private static NSString _ExifExposureBiasValue; private static NSString _ExifMaxApertureValue; private static NSString _ExifSubjectDistance; private static NSString _ExifMeteringMode; private static NSString _ExifLightSource; private static NSString _ExifFlash; private static NSString _ExifFocalLength; private static NSString _ExifSubjectArea; private static NSString _ExifMakerNote; private static NSString _ExifUserComment; private static NSString _ExifSubsecTime; private static NSString _ExifSubsecTimeOrginal; private static NSString _ExifSubsecTimeDigitized; private static NSString _ExifFlashPixVersion; private static NSString _ExifColorSpace; private static NSString _ExifPixelXDimension; private static NSString _ExifPixelYDimension; private static NSString _ExifRelatedSoundFile; private static NSString _ExifFlashEnergy; private static NSString _ExifSpatialFrequencyResponse; private static NSString _ExifFocalPlaneXResolution; private static NSString _ExifFocalPlaneYResolution; private static NSString _ExifFocalPlaneResolutionUnit; private static NSString _ExifSubjectLocation; private static NSString _ExifExposureIndex; private static NSString _ExifSensingMethod; private static NSString _ExifFileSource; private static NSString _ExifSceneType; private static NSString _ExifCFAPattern; private static NSString _ExifCustomRendered; private static NSString _ExifExposureMode; private static NSString _ExifWhiteBalance; private static NSString _ExifDigitalZoomRatio; private static NSString _ExifFocalLenIn35mmFilm; private static NSString _ExifSceneCaptureType; private static NSString _ExifGainControl; private static NSString _ExifContrast; private static NSString _ExifSaturation; private static NSString _ExifSharpness; private static NSString _ExifDeviceSettingDescription; private static NSString _ExifSubjectDistRange; private static NSString _ExifImageUniqueID; private static NSString _ExifGamma; private static NSString _ExifCameraOwnerName; private static NSString _ExifBodySerialNumber; private static NSString _ExifLensSpecification; private static NSString _ExifLensMake; private static NSString _ExifLensModel; private static NSString _ExifLensSerialNumber; private static NSString _ExifAuxLensInfo; private static NSString _ExifAuxLensModel; private static NSString _ExifAuxSerialNumber; private static NSString _ExifAuxLensID; private static NSString _ExifAuxLensSerialNumber; private static NSString _ExifAuxImageNumber; private static NSString _ExifAuxFlashCompensation; private static NSString _ExifAuxOwnerName; private static NSString _ExifAuxFirmware; private static NSString _GIFLoopCount; private static NSString _GIFDelayTime; private static NSString _GIFImageColorMap; private static NSString _GIFHasGlobalColorMap; private static NSString _GIFUnclampedDelayTime; private static NSString _GPSVersion; private static NSString _GPSLatitudeRef; private static NSString _GPSLatitude; private static NSString _GPSLongitudeRef; private static NSString _GPSLongitude; private static NSString _GPSAltitudeRef; private static NSString _GPSAltitude; private static NSString _GPSTimeStamp; private static NSString _GPSSatellites; private static NSString _GPSStatus; private static NSString _GPSMeasureMode; private static NSString _GPSDOP; private static NSString _GPSSpeedRef; private static NSString _GPSSpeed; private static NSString _GPSTrackRef; private static NSString _GPSTrack; private static NSString _GPSImgDirectionRef; private static NSString _GPSImgDirection; private static NSString _GPSMapDatum; private static NSString _GPSDestLatitudeRef; private static NSString _GPSDestLatitude; private static NSString _GPSDestLongitudeRef; private static NSString _GPSDestLongitude; private static NSString _GPSDestBearingRef; private static NSString _GPSDestBearing; private static NSString _GPSDestDistanceRef; private static NSString _GPSDestDistance; private static NSString _GPSAreaInformation; private static NSString _GPSDateStamp; private static NSString _GPSDifferental; private static NSString _IPTCObjectTypeReference; private static NSString _IPTCObjectAttributeReference; private static NSString _IPTCObjectName; private static NSString _IPTCEditStatus; private static NSString _IPTCEditorialUpdate; private static NSString _IPTCUrgency; private static NSString _IPTCSubjectReference; private static NSString _IPTCCategory; private static NSString _IPTCSupplementalCategory; private static NSString _IPTCFixtureIdentifier; private static NSString _IPTCKeywords; private static NSString _IPTCContentLocationCode; private static NSString _IPTCContentLocationName; private static NSString _IPTCReleaseDate; private static NSString _IPTCReleaseTime; private static NSString _IPTCExpirationDate; private static NSString _IPTCExpirationTime; private static NSString _IPTCSpecialInstructions; private static NSString _IPTCActionAdvised; private static NSString _IPTCReferenceService; private static NSString _IPTCReferenceDate; private static NSString _IPTCReferenceNumber; private static NSString _IPTCDateCreated; private static NSString _IPTCTimeCreated; private static NSString _IPTCDigitalCreationDate; private static NSString _IPTCDigitalCreationTime; private static NSString _IPTCOriginatingProgram; private static NSString _IPTCProgramVersion; private static NSString _IPTCObjectCycle; private static NSString _IPTCByline; private static NSString _IPTCBylineTitle; private static NSString _IPTCCity; private static NSString _IPTCSubLocation; private static NSString _IPTCProvinceState; private static NSString _IPTCCountryPrimaryLocationCode; private static NSString _IPTCCountryPrimaryLocationName; private static NSString _IPTCOriginalTransmissionReference; private static NSString _IPTCHeadline; private static NSString _IPTCCredit; private static NSString _IPTCSource; private static NSString _IPTCCopyrightNotice; private static NSString _IPTCContact; private static NSString _IPTCCaptionAbstract; private static NSString _IPTCWriterEditor; private static NSString _IPTCImageType; private static NSString _IPTCImageOrientation; private static NSString _IPTCLanguageIdentifier; private static NSString _IPTCStarRating; private static NSString _IPTCCreatorContactInfo; private static NSString _IPTCRightsUsageTerms; private static NSString _IPTCScene; private static NSString _IPTCContactInfoCity; private static NSString _IPTCContactInfoCountry; private static NSString _IPTCContactInfoAddress; private static NSString _IPTCContactInfoPostalCode; private static NSString _IPTCContactInfoStateProvince; private static NSString _IPTCContactInfoEmails; private static NSString _IPTCContactInfoPhones; private static NSString _IPTCContactInfoWebURLs; private static NSString _JFIFVersion; private static NSString _JFIFXDensity; private static NSString _JFIFYDensity; private static NSString _JFIFDensityUnit; private static NSString _JFIFIsProgressive; private static NSString _PNGGamma; private static NSString _PNGInterlaceType; private static NSString _PNGXPixelsPerMeter; private static NSString _PNGYPixelsPerMeter; private static NSString _PNGsRGBIntent; private static NSString _PNGChromaticities; private static NSString _PNGAuthor; private static NSString _PNGCopyright; private static NSString _PNGCreationTime; private static NSString _PNGDescription; private static NSString _PNGModificationTime; private static NSString _PNGSoftware; private static NSString _PNGTitle; private static NSString _TIFFCompression; private static NSString _TIFFPhotometricInterpretation; private static NSString _TIFFDocumentName; private static NSString _TIFFImageDescription; private static NSString _TIFFMake; private static NSString _TIFFModel; private static NSString _TIFFOrientation; private static NSString _TIFFXResolution; private static NSString _TIFFYResolution; private static NSString _TIFFResolutionUnit; private static NSString _TIFFSoftware; private static NSString _TIFFTransferFunction; private static NSString _TIFFDateTime; private static NSString _TIFFArtist; private static NSString _TIFFHostComputer; private static NSString _TIFFWhitePoint; private static NSString _TIFFPrimaryChromaticities; private static NSString _DNGVersion; private static NSString _DNGBackwardVersion; private static NSString _DNGUniqueCameraModel; private static NSString _DNGLocalizedCameraModel; private static NSString _DNGCameraSerialNumber; private static NSString _DNGLensInfo; private static NSString _EightBIMLayerNames; private static NSString _CIFFDescription; private static NSString _CIFFFirmware; private static NSString _CIFFOwnerName; private static NSString _CIFFImageName; private static NSString _CIFFImageFileName; private static NSString _CIFFReleaseMethod; private static NSString _CIFFReleaseTiming; private static NSString _CIFFRecordID; private static NSString _CIFFSelfTimingTime; private static NSString _CIFFCameraSerialNumber; private static NSString _CIFFImageSerialNumber; private static NSString _CIFFContinuousDrive; private static NSString _CIFFFocusMode; private static NSString _CIFFMeteringMode; private static NSString _CIFFShootingMode; private static NSString _CIFFLensMaxMM; private static NSString _CIFFLensMinMM; private static NSString _CIFFLensModel; private static NSString _CIFFWhiteBalanceIndex; private static NSString _CIFFFlashExposureComp; private static NSString _CIFFMeasuredEV; private static NSString _MakerNikonISOSetting; private static NSString _MakerNikonColorMode; private static NSString _MakerNikonQuality; private static NSString _MakerNikonWhiteBalanceMode; private static NSString _MakerNikonSharpenMode; private static NSString _MakerNikonFocusMode; private static NSString _MakerNikonFlashSetting; private static NSString _MakerNikonISOSelection; private static NSString _MakerNikonFlashExposureComp; private static NSString _MakerNikonImageAdjustment; private static NSString _MakerNikonLensAdapter; private static NSString _MakerNikonLensType; private static NSString _MakerNikonLensInfo; private static NSString _MakerNikonFocusDistance; private static NSString _MakerNikonDigitalZoom; private static NSString _MakerNikonShootingMode; private static NSString _MakerNikonShutterCount; private static NSString _MakerNikonCameraSerialNumber; private static NSString _MakerCanonOwnerName; private static NSString _MakerCanonCameraSerialNumber; private static NSString _MakerCanonImageSerialNumber; private static NSString _MakerCanonFlashExposureComp; private static NSString _MakerCanonContinuousDrive; private static NSString _MakerCanonLensModel; private static NSString _MakerCanonFirmware; private static NSString _MakerCanonAspectRatioInfo; [Field("kCGImagePropertyTIFFDictionary", "ImageIO")] public static NSString TIFFDictionary { get { if (_TIFFDictionary == null) { _TIFFDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFDictionary"); } return _TIFFDictionary; } } [Field("kCGImagePropertyGIFDictionary", "ImageIO")] public static NSString GIFDictionary { get { if (_GIFDictionary == null) { _GIFDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFDictionary"); } return _GIFDictionary; } } [Field("kCGImagePropertyJFIFDictionary", "ImageIO")] public static NSString JFIFDictionary { get { if (_JFIFDictionary == null) { _JFIFDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFDictionary"); } return _JFIFDictionary; } } [Field("kCGImagePropertyExifDictionary", "ImageIO")] public static NSString ExifDictionary { get { if (_ExifDictionary == null) { _ExifDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifDictionary"); } return _ExifDictionary; } } [Field("kCGImagePropertyPNGDictionary", "ImageIO")] public static NSString PNGDictionary { get { if (_PNGDictionary == null) { _PNGDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGDictionary"); } return _PNGDictionary; } } [Field("kCGImagePropertyIPTCDictionary", "ImageIO")] public static NSString IPTCDictionary { get { if (_IPTCDictionary == null) { _IPTCDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCDictionary"); } return _IPTCDictionary; } } [Field("kCGImagePropertyGPSDictionary", "ImageIO")] public static NSString GPSDictionary { get { if (_GPSDictionary == null) { _GPSDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDictionary"); } return _GPSDictionary; } } [Field("kCGImagePropertyRawDictionary", "ImageIO")] public static NSString RawDictionary { get { if (_RawDictionary == null) { _RawDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyRawDictionary"); } return _RawDictionary; } } [Field("kCGImagePropertyCIFFDictionary", "ImageIO")] public static NSString CIFFDictionary { get { if (_CIFFDictionary == null) { _CIFFDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFDictionary"); } return _CIFFDictionary; } } [Field("kCGImageProperty8BIMDictionary", "ImageIO")] public static NSString EightBIMDictionary { get { if (_EightBIMDictionary == null) { _EightBIMDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImageProperty8BIMDictionary"); } return _EightBIMDictionary; } } [Field("kCGImagePropertyDNGDictionary", "ImageIO")] public static NSString DNGDictionary { get { if (_DNGDictionary == null) { _DNGDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGDictionary"); } return _DNGDictionary; } } [Field("kCGImagePropertyExifAuxDictionary", "ImageIO")] public static NSString ExifAuxDictionary { get { if (_ExifAuxDictionary == null) { _ExifAuxDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxDictionary"); } return _ExifAuxDictionary; } } [Field("kCGImagePropertyMakerCanonDictionary", "ImageIO")] public static NSString MakerCanonDictionary { get { if (_MakerCanonDictionary == null) { _MakerCanonDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonDictionary"); } return _MakerCanonDictionary; } } [Field("kCGImagePropertyMakerNikonDictionary", "ImageIO")] public static NSString MakerNikonDictionary { get { if (_MakerNikonDictionary == null) { _MakerNikonDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonDictionary"); } return _MakerNikonDictionary; } } [Field("kCGImagePropertyMakerMinoltaDictionary", "ImageIO")] public static NSString MakerMinoltaDictionary { get { if (_MakerMinoltaDictionary == null) { _MakerMinoltaDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerMinoltaDictionary"); } return _MakerMinoltaDictionary; } } [Field("kCGImagePropertyMakerFujiDictionary", "ImageIO")] public static NSString MakerFujiDictionary { get { if (_MakerFujiDictionary == null) { _MakerFujiDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerFujiDictionary"); } return _MakerFujiDictionary; } } [Field("kCGImagePropertyMakerOlympusDictionary", "ImageIO")] public static NSString MakerOlympusDictionary { get { if (_MakerOlympusDictionary == null) { _MakerOlympusDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerOlympusDictionary"); } return _MakerOlympusDictionary; } } [Field("kCGImagePropertyMakerPentaxDictionary", "ImageIO")] public static NSString MakerPentaxDictionary { get { if (_MakerPentaxDictionary == null) { _MakerPentaxDictionary = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerPentaxDictionary"); } return _MakerPentaxDictionary; } } [Field("kCGImagePropertyFileSize", "ImageIO")] public static NSString FileSize { get { if (_FileSize == null) { _FileSize = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyFileSize"); } return _FileSize; } } [Field("kCGImagePropertyDPIHeight", "ImageIO")] public static NSString DPIHeight { get { if (_DPIHeight == null) { _DPIHeight = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDPIHeight"); } return _DPIHeight; } } [Field("kCGImagePropertyDPIWidth", "ImageIO")] public static NSString DPIWidth { get { if (_DPIWidth == null) { _DPIWidth = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDPIWidth"); } return _DPIWidth; } } [Field("kCGImagePropertyPixelWidth", "ImageIO")] public static NSString PixelWidth { get { if (_PixelWidth == null) { _PixelWidth = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPixelWidth"); } return _PixelWidth; } } [Field("kCGImagePropertyPixelHeight", "ImageIO")] public static NSString PixelHeight { get { if (_PixelHeight == null) { _PixelHeight = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPixelHeight"); } return _PixelHeight; } } [Field("kCGImagePropertyDepth", "ImageIO")] public static NSString Depth { get { if (_Depth == null) { _Depth = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDepth"); } return _Depth; } } [Field("kCGImagePropertyOrientation", "ImageIO")] public static NSString Orientation { get { if (_Orientation == null) { _Orientation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyOrientation"); } return _Orientation; } } [Field("kCGImagePropertyIsFloat", "ImageIO")] public static NSString IsFloat { get { if (_IsFloat == null) { _IsFloat = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIsFloat"); } return _IsFloat; } } [Field("kCGImagePropertyIsIndexed", "ImageIO")] public static NSString IsIndexed { get { if (_IsIndexed == null) { _IsIndexed = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIsIndexed"); } return _IsIndexed; } } [Field("kCGImagePropertyHasAlpha", "ImageIO")] public static NSString HasAlpha { get { if (_HasAlpha == null) { _HasAlpha = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyHasAlpha"); } return _HasAlpha; } } [Field("kCGImagePropertyColorModel", "ImageIO")] public static NSString ColorModel { get { if (_ColorModel == null) { _ColorModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyColorModel"); } return _ColorModel; } } [Field("kCGImagePropertyProfileName", "ImageIO")] public static NSString ProfileName { get { if (_ProfileName == null) { _ProfileName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyProfileName"); } return _ProfileName; } } [Field("kCGImagePropertyColorModelRGB", "ImageIO")] public static NSString ColorModelRGB { get { if (_ColorModelRGB == null) { _ColorModelRGB = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyColorModelRGB"); } return _ColorModelRGB; } } [Field("kCGImagePropertyColorModelGray", "ImageIO")] public static NSString ColorModelGray { get { if (_ColorModelGray == null) { _ColorModelGray = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyColorModelGray"); } return _ColorModelGray; } } [Field("kCGImagePropertyColorModelCMYK", "ImageIO")] public static NSString ColorModelCMYK { get { if (_ColorModelCMYK == null) { _ColorModelCMYK = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyColorModelCMYK"); } return _ColorModelCMYK; } } [Field("kCGImagePropertyColorModelLab", "ImageIO")] public static NSString ColorModelLab { get { if (_ColorModelLab == null) { _ColorModelLab = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyColorModelLab"); } return _ColorModelLab; } } [Field("kCGImagePropertyExifExposureTime", "ImageIO")] public static NSString ExifExposureTime { get { if (_ExifExposureTime == null) { _ExifExposureTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifExposureTime"); } return _ExifExposureTime; } } [Field("kCGImagePropertyExifFNumber", "ImageIO")] public static NSString ExifFNumber { get { if (_ExifFNumber == null) { _ExifFNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFNumber"); } return _ExifFNumber; } } [Field("kCGImagePropertyExifExposureProgram", "ImageIO")] public static NSString ExifExposureProgram { get { if (_ExifExposureProgram == null) { _ExifExposureProgram = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifExposureProgram"); } return _ExifExposureProgram; } } [Field("kCGImagePropertyExifSpectralSensitivity", "ImageIO")] public static NSString ExifSpectralSensitivity { get { if (_ExifSpectralSensitivity == null) { _ExifSpectralSensitivity = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSpectralSensitivity"); } return _ExifSpectralSensitivity; } } [Field("kCGImagePropertyExifISOSpeedRatings", "ImageIO")] public static NSString ExifISOSpeedRatings { get { if (_ExifISOSpeedRatings == null) { _ExifISOSpeedRatings = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifISOSpeedRatings"); } return _ExifISOSpeedRatings; } } [Field("kCGImagePropertyExifOECF", "ImageIO")] public static NSString ExifOECF { get { if (_ExifOECF == null) { _ExifOECF = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifOECF"); } return _ExifOECF; } } [Field("kCGImagePropertyExifVersion", "ImageIO")] public static NSString ExifVersion { get { if (_ExifVersion == null) { _ExifVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifVersion"); } return _ExifVersion; } } [Field("kCGImagePropertyExifDateTimeOriginal", "ImageIO")] public static NSString ExifDateTimeOriginal { get { if (_ExifDateTimeOriginal == null) { _ExifDateTimeOriginal = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifDateTimeOriginal"); } return _ExifDateTimeOriginal; } } [Field("kCGImagePropertyExifDateTimeDigitized", "ImageIO")] public static NSString ExifDateTimeDigitized { get { if (_ExifDateTimeDigitized == null) { _ExifDateTimeDigitized = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifDateTimeDigitized"); } return _ExifDateTimeDigitized; } } [Field("kCGImagePropertyExifComponentsConfiguration", "ImageIO")] public static NSString ExifComponentsConfiguration { get { if (_ExifComponentsConfiguration == null) { _ExifComponentsConfiguration = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifComponentsConfiguration"); } return _ExifComponentsConfiguration; } } [Field("kCGImagePropertyExifCompressedBitsPerPixel", "ImageIO")] public static NSString ExifCompressedBitsPerPixel { get { if (_ExifCompressedBitsPerPixel == null) { _ExifCompressedBitsPerPixel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifCompressedBitsPerPixel"); } return _ExifCompressedBitsPerPixel; } } [Field("kCGImagePropertyExifShutterSpeedValue", "ImageIO")] public static NSString ExifShutterSpeedValue { get { if (_ExifShutterSpeedValue == null) { _ExifShutterSpeedValue = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifShutterSpeedValue"); } return _ExifShutterSpeedValue; } } [Field("kCGImagePropertyExifApertureValue", "ImageIO")] public static NSString ExifApertureValue { get { if (_ExifApertureValue == null) { _ExifApertureValue = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifApertureValue"); } return _ExifApertureValue; } } [Field("kCGImagePropertyExifBrightnessValue", "ImageIO")] public static NSString ExifBrightnessValue { get { if (_ExifBrightnessValue == null) { _ExifBrightnessValue = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifBrightnessValue"); } return _ExifBrightnessValue; } } [Field("kCGImagePropertyExifExposureBiasValue", "ImageIO")] public static NSString ExifExposureBiasValue { get { if (_ExifExposureBiasValue == null) { _ExifExposureBiasValue = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifExposureBiasValue"); } return _ExifExposureBiasValue; } } [Field("kCGImagePropertyExifMaxApertureValue", "ImageIO")] public static NSString ExifMaxApertureValue { get { if (_ExifMaxApertureValue == null) { _ExifMaxApertureValue = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifMaxApertureValue"); } return _ExifMaxApertureValue; } } [Field("kCGImagePropertyExifSubjectDistance", "ImageIO")] public static NSString ExifSubjectDistance { get { if (_ExifSubjectDistance == null) { _ExifSubjectDistance = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubjectDistance"); } return _ExifSubjectDistance; } } [Field("kCGImagePropertyExifMeteringMode", "ImageIO")] public static NSString ExifMeteringMode { get { if (_ExifMeteringMode == null) { _ExifMeteringMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifMeteringMode"); } return _ExifMeteringMode; } } [Field("kCGImagePropertyExifLightSource", "ImageIO")] public static NSString ExifLightSource { get { if (_ExifLightSource == null) { _ExifLightSource = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifLightSource"); } return _ExifLightSource; } } [Field("kCGImagePropertyExifFlash", "ImageIO")] public static NSString ExifFlash { get { if (_ExifFlash == null) { _ExifFlash = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFlash"); } return _ExifFlash; } } [Field("kCGImagePropertyExifFocalLength", "ImageIO")] public static NSString ExifFocalLength { get { if (_ExifFocalLength == null) { _ExifFocalLength = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFocalLength"); } return _ExifFocalLength; } } [Field("kCGImagePropertyExifSubjectArea", "ImageIO")] public static NSString ExifSubjectArea { get { if (_ExifSubjectArea == null) { _ExifSubjectArea = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubjectArea"); } return _ExifSubjectArea; } } [Field("kCGImagePropertyExifMakerNote", "ImageIO")] public static NSString ExifMakerNote { get { if (_ExifMakerNote == null) { _ExifMakerNote = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifMakerNote"); } return _ExifMakerNote; } } [Field("kCGImagePropertyExifUserComment", "ImageIO")] public static NSString ExifUserComment { get { if (_ExifUserComment == null) { _ExifUserComment = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifUserComment"); } return _ExifUserComment; } } [Field("kCGImagePropertyExifSubsecTime", "ImageIO")] public static NSString ExifSubsecTime { get { if (_ExifSubsecTime == null) { _ExifSubsecTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubsecTime"); } return _ExifSubsecTime; } } [Field("kCGImagePropertyExifSubsecTimeOrginal", "ImageIO")] public static NSString ExifSubsecTimeOrginal { get { if (_ExifSubsecTimeOrginal == null) { _ExifSubsecTimeOrginal = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubsecTimeOrginal"); } return _ExifSubsecTimeOrginal; } } [Field("kCGImagePropertyExifSubsecTimeDigitized", "ImageIO")] public static NSString ExifSubsecTimeDigitized { get { if (_ExifSubsecTimeDigitized == null) { _ExifSubsecTimeDigitized = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubsecTimeDigitized"); } return _ExifSubsecTimeDigitized; } } [Field("kCGImagePropertyExifFlashPixVersion", "ImageIO")] public static NSString ExifFlashPixVersion { get { if (_ExifFlashPixVersion == null) { _ExifFlashPixVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFlashPixVersion"); } return _ExifFlashPixVersion; } } [Field("kCGImagePropertyExifColorSpace", "ImageIO")] public static NSString ExifColorSpace { get { if (_ExifColorSpace == null) { _ExifColorSpace = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifColorSpace"); } return _ExifColorSpace; } } [Field("kCGImagePropertyExifPixelXDimension", "ImageIO")] public static NSString ExifPixelXDimension { get { if (_ExifPixelXDimension == null) { _ExifPixelXDimension = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifPixelXDimension"); } return _ExifPixelXDimension; } } [Field("kCGImagePropertyExifPixelYDimension", "ImageIO")] public static NSString ExifPixelYDimension { get { if (_ExifPixelYDimension == null) { _ExifPixelYDimension = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifPixelYDimension"); } return _ExifPixelYDimension; } } [Field("kCGImagePropertyExifRelatedSoundFile", "ImageIO")] public static NSString ExifRelatedSoundFile { get { if (_ExifRelatedSoundFile == null) { _ExifRelatedSoundFile = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifRelatedSoundFile"); } return _ExifRelatedSoundFile; } } [Field("kCGImagePropertyExifFlashEnergy", "ImageIO")] public static NSString ExifFlashEnergy { get { if (_ExifFlashEnergy == null) { _ExifFlashEnergy = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFlashEnergy"); } return _ExifFlashEnergy; } } [Field("kCGImagePropertyExifSpatialFrequencyResponse", "ImageIO")] public static NSString ExifSpatialFrequencyResponse { get { if (_ExifSpatialFrequencyResponse == null) { _ExifSpatialFrequencyResponse = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSpatialFrequencyResponse"); } return _ExifSpatialFrequencyResponse; } } [Field("kCGImagePropertyExifFocalPlaneXResolution", "ImageIO")] public static NSString ExifFocalPlaneXResolution { get { if (_ExifFocalPlaneXResolution == null) { _ExifFocalPlaneXResolution = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFocalPlaneXResolution"); } return _ExifFocalPlaneXResolution; } } [Field("kCGImagePropertyExifFocalPlaneYResolution", "ImageIO")] public static NSString ExifFocalPlaneYResolution { get { if (_ExifFocalPlaneYResolution == null) { _ExifFocalPlaneYResolution = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFocalPlaneYResolution"); } return _ExifFocalPlaneYResolution; } } [Field("kCGImagePropertyExifFocalPlaneResolutionUnit", "ImageIO")] public static NSString ExifFocalPlaneResolutionUnit { get { if (_ExifFocalPlaneResolutionUnit == null) { _ExifFocalPlaneResolutionUnit = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFocalPlaneResolutionUnit"); } return _ExifFocalPlaneResolutionUnit; } } [Field("kCGImagePropertyExifSubjectLocation", "ImageIO")] public static NSString ExifSubjectLocation { get { if (_ExifSubjectLocation == null) { _ExifSubjectLocation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubjectLocation"); } return _ExifSubjectLocation; } } [Field("kCGImagePropertyExifExposureIndex", "ImageIO")] public static NSString ExifExposureIndex { get { if (_ExifExposureIndex == null) { _ExifExposureIndex = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifExposureIndex"); } return _ExifExposureIndex; } } [Field("kCGImagePropertyExifSensingMethod", "ImageIO")] public static NSString ExifSensingMethod { get { if (_ExifSensingMethod == null) { _ExifSensingMethod = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSensingMethod"); } return _ExifSensingMethod; } } [Field("kCGImagePropertyExifFileSource", "ImageIO")] public static NSString ExifFileSource { get { if (_ExifFileSource == null) { _ExifFileSource = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFileSource"); } return _ExifFileSource; } } [Field("kCGImagePropertyExifSceneType", "ImageIO")] public static NSString ExifSceneType { get { if (_ExifSceneType == null) { _ExifSceneType = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSceneType"); } return _ExifSceneType; } } [Field("kCGImagePropertyExifCFAPattern", "ImageIO")] public static NSString ExifCFAPattern { get { if (_ExifCFAPattern == null) { _ExifCFAPattern = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifCFAPattern"); } return _ExifCFAPattern; } } [Field("kCGImagePropertyExifCustomRendered", "ImageIO")] public static NSString ExifCustomRendered { get { if (_ExifCustomRendered == null) { _ExifCustomRendered = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifCustomRendered"); } return _ExifCustomRendered; } } [Field("kCGImagePropertyExifExposureMode", "ImageIO")] public static NSString ExifExposureMode { get { if (_ExifExposureMode == null) { _ExifExposureMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifExposureMode"); } return _ExifExposureMode; } } [Field("kCGImagePropertyExifWhiteBalance", "ImageIO")] public static NSString ExifWhiteBalance { get { if (_ExifWhiteBalance == null) { _ExifWhiteBalance = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifWhiteBalance"); } return _ExifWhiteBalance; } } [Field("kCGImagePropertyExifDigitalZoomRatio", "ImageIO")] public static NSString ExifDigitalZoomRatio { get { if (_ExifDigitalZoomRatio == null) { _ExifDigitalZoomRatio = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifDigitalZoomRatio"); } return _ExifDigitalZoomRatio; } } [Field("kCGImagePropertyExifFocalLenIn35mmFilm", "ImageIO")] public static NSString ExifFocalLenIn35mmFilm { get { if (_ExifFocalLenIn35mmFilm == null) { _ExifFocalLenIn35mmFilm = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifFocalLenIn35mmFilm"); } return _ExifFocalLenIn35mmFilm; } } [Field("kCGImagePropertyExifSceneCaptureType", "ImageIO")] public static NSString ExifSceneCaptureType { get { if (_ExifSceneCaptureType == null) { _ExifSceneCaptureType = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSceneCaptureType"); } return _ExifSceneCaptureType; } } [Field("kCGImagePropertyExifGainControl", "ImageIO")] public static NSString ExifGainControl { get { if (_ExifGainControl == null) { _ExifGainControl = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifGainControl"); } return _ExifGainControl; } } [Field("kCGImagePropertyExifContrast", "ImageIO")] public static NSString ExifContrast { get { if (_ExifContrast == null) { _ExifContrast = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifContrast"); } return _ExifContrast; } } [Field("kCGImagePropertyExifSaturation", "ImageIO")] public static NSString ExifSaturation { get { if (_ExifSaturation == null) { _ExifSaturation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSaturation"); } return _ExifSaturation; } } [Field("kCGImagePropertyExifSharpness", "ImageIO")] public static NSString ExifSharpness { get { if (_ExifSharpness == null) { _ExifSharpness = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSharpness"); } return _ExifSharpness; } } [Field("kCGImagePropertyExifDeviceSettingDescription", "ImageIO")] public static NSString ExifDeviceSettingDescription { get { if (_ExifDeviceSettingDescription == null) { _ExifDeviceSettingDescription = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifDeviceSettingDescription"); } return _ExifDeviceSettingDescription; } } [Field("kCGImagePropertyExifSubjectDistRange", "ImageIO")] public static NSString ExifSubjectDistRange { get { if (_ExifSubjectDistRange == null) { _ExifSubjectDistRange = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifSubjectDistRange"); } return _ExifSubjectDistRange; } } [Field("kCGImagePropertyExifImageUniqueID", "ImageIO")] public static NSString ExifImageUniqueID { get { if (_ExifImageUniqueID == null) { _ExifImageUniqueID = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifImageUniqueID"); } return _ExifImageUniqueID; } } [Field("kCGImagePropertyExifGamma", "ImageIO")] public static NSString ExifGamma { get { if (_ExifGamma == null) { _ExifGamma = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifGamma"); } return _ExifGamma; } } [Field("kCGImagePropertyExifCameraOwnerName", "ImageIO")] public static NSString ExifCameraOwnerName { get { if (_ExifCameraOwnerName == null) { _ExifCameraOwnerName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifCameraOwnerName"); } return _ExifCameraOwnerName; } } [Field("kCGImagePropertyExifBodySerialNumber", "ImageIO")] public static NSString ExifBodySerialNumber { get { if (_ExifBodySerialNumber == null) { _ExifBodySerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifBodySerialNumber"); } return _ExifBodySerialNumber; } } [Field("kCGImagePropertyExifLensSpecification", "ImageIO")] public static NSString ExifLensSpecification { get { if (_ExifLensSpecification == null) { _ExifLensSpecification = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifLensSpecification"); } return _ExifLensSpecification; } } [Field("kCGImagePropertyExifLensMake", "ImageIO")] public static NSString ExifLensMake { get { if (_ExifLensMake == null) { _ExifLensMake = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifLensMake"); } return _ExifLensMake; } } [Field("kCGImagePropertyExifLensModel", "ImageIO")] public static NSString ExifLensModel { get { if (_ExifLensModel == null) { _ExifLensModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifLensModel"); } return _ExifLensModel; } } [Field("kCGImagePropertyExifLensSerialNumber", "ImageIO")] public static NSString ExifLensSerialNumber { get { if (_ExifLensSerialNumber == null) { _ExifLensSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifLensSerialNumber"); } return _ExifLensSerialNumber; } } [Field("kCGImagePropertyExifAuxLensInfo", "ImageIO")] public static NSString ExifAuxLensInfo { get { if (_ExifAuxLensInfo == null) { _ExifAuxLensInfo = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxLensInfo"); } return _ExifAuxLensInfo; } } [Field("kCGImagePropertyExifAuxLensModel", "ImageIO")] public static NSString ExifAuxLensModel { get { if (_ExifAuxLensModel == null) { _ExifAuxLensModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxLensModel"); } return _ExifAuxLensModel; } } [Field("kCGImagePropertyExifAuxSerialNumber", "ImageIO")] public static NSString ExifAuxSerialNumber { get { if (_ExifAuxSerialNumber == null) { _ExifAuxSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxSerialNumber"); } return _ExifAuxSerialNumber; } } [Field("kCGImagePropertyExifAuxLensID", "ImageIO")] public static NSString ExifAuxLensID { get { if (_ExifAuxLensID == null) { _ExifAuxLensID = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxLensID"); } return _ExifAuxLensID; } } [Field("kCGImagePropertyExifAuxLensSerialNumber", "ImageIO")] public static NSString ExifAuxLensSerialNumber { get { if (_ExifAuxLensSerialNumber == null) { _ExifAuxLensSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxLensSerialNumber"); } return _ExifAuxLensSerialNumber; } } [Field("kCGImagePropertyExifAuxImageNumber", "ImageIO")] public static NSString ExifAuxImageNumber { get { if (_ExifAuxImageNumber == null) { _ExifAuxImageNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxImageNumber"); } return _ExifAuxImageNumber; } } [Field("kCGImagePropertyExifAuxFlashCompensation", "ImageIO")] public static NSString ExifAuxFlashCompensation { get { if (_ExifAuxFlashCompensation == null) { _ExifAuxFlashCompensation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxFlashCompensation"); } return _ExifAuxFlashCompensation; } } [Field("kCGImagePropertyExifAuxOwnerName", "ImageIO")] public static NSString ExifAuxOwnerName { get { if (_ExifAuxOwnerName == null) { _ExifAuxOwnerName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxOwnerName"); } return _ExifAuxOwnerName; } } [Field("kCGImagePropertyExifAuxFirmware", "ImageIO")] public static NSString ExifAuxFirmware { get { if (_ExifAuxFirmware == null) { _ExifAuxFirmware = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyExifAuxFirmware"); } return _ExifAuxFirmware; } } [Field("kCGImagePropertyGIFLoopCount", "ImageIO")] public static NSString GIFLoopCount { get { if (_GIFLoopCount == null) { _GIFLoopCount = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFLoopCount"); } return _GIFLoopCount; } } [Field("kCGImagePropertyGIFDelayTime", "ImageIO")] public static NSString GIFDelayTime { get { if (_GIFDelayTime == null) { _GIFDelayTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFDelayTime"); } return _GIFDelayTime; } } [Field("kCGImagePropertyGIFImageColorMap", "ImageIO")] public static NSString GIFImageColorMap { get { if (_GIFImageColorMap == null) { _GIFImageColorMap = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFImageColorMap"); } return _GIFImageColorMap; } } [Field("kCGImagePropertyGIFHasGlobalColorMap", "ImageIO")] public static NSString GIFHasGlobalColorMap { get { if (_GIFHasGlobalColorMap == null) { _GIFHasGlobalColorMap = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFHasGlobalColorMap"); } return _GIFHasGlobalColorMap; } } [Field("kCGImagePropertyGIFUnclampedDelayTime", "ImageIO")] public static NSString GIFUnclampedDelayTime { get { if (_GIFUnclampedDelayTime == null) { _GIFUnclampedDelayTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGIFUnclampedDelayTime"); } return _GIFUnclampedDelayTime; } } [Field("kCGImagePropertyGPSVersion", "ImageIO")] public static NSString GPSVersion { get { if (_GPSVersion == null) { _GPSVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSVersion"); } return _GPSVersion; } } [Field("kCGImagePropertyGPSLatitudeRef", "ImageIO")] public static NSString GPSLatitudeRef { get { if (_GPSLatitudeRef == null) { _GPSLatitudeRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSLatitudeRef"); } return _GPSLatitudeRef; } } [Field("kCGImagePropertyGPSLatitude", "ImageIO")] public static NSString GPSLatitude { get { if (_GPSLatitude == null) { _GPSLatitude = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSLatitude"); } return _GPSLatitude; } } [Field("kCGImagePropertyGPSLongitudeRef", "ImageIO")] public static NSString GPSLongitudeRef { get { if (_GPSLongitudeRef == null) { _GPSLongitudeRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSLongitudeRef"); } return _GPSLongitudeRef; } } [Field("kCGImagePropertyGPSLongitude", "ImageIO")] public static NSString GPSLongitude { get { if (_GPSLongitude == null) { _GPSLongitude = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSLongitude"); } return _GPSLongitude; } } [Field("kCGImagePropertyGPSAltitudeRef", "ImageIO")] public static NSString GPSAltitudeRef { get { if (_GPSAltitudeRef == null) { _GPSAltitudeRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSAltitudeRef"); } return _GPSAltitudeRef; } } [Field("kCGImagePropertyGPSAltitude", "ImageIO")] public static NSString GPSAltitude { get { if (_GPSAltitude == null) { _GPSAltitude = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSAltitude"); } return _GPSAltitude; } } [Field("kCGImagePropertyGPSTimeStamp", "ImageIO")] public static NSString GPSTimeStamp { get { if (_GPSTimeStamp == null) { _GPSTimeStamp = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSTimeStamp"); } return _GPSTimeStamp; } } [Field("kCGImagePropertyGPSSatellites", "ImageIO")] public static NSString GPSSatellites { get { if (_GPSSatellites == null) { _GPSSatellites = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSSatellites"); } return _GPSSatellites; } } [Field("kCGImagePropertyGPSStatus", "ImageIO")] public static NSString GPSStatus { get { if (_GPSStatus == null) { _GPSStatus = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSStatus"); } return _GPSStatus; } } [Field("kCGImagePropertyGPSMeasureMode", "ImageIO")] public static NSString GPSMeasureMode { get { if (_GPSMeasureMode == null) { _GPSMeasureMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSMeasureMode"); } return _GPSMeasureMode; } } [Field("kCGImagePropertyGPSDOP", "ImageIO")] public static NSString GPSDOP { get { if (_GPSDOP == null) { _GPSDOP = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDOP"); } return _GPSDOP; } } [Field("kCGImagePropertyGPSSpeedRef", "ImageIO")] public static NSString GPSSpeedRef { get { if (_GPSSpeedRef == null) { _GPSSpeedRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSSpeedRef"); } return _GPSSpeedRef; } } [Field("kCGImagePropertyGPSSpeed", "ImageIO")] public static NSString GPSSpeed { get { if (_GPSSpeed == null) { _GPSSpeed = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSSpeed"); } return _GPSSpeed; } } [Field("kCGImagePropertyGPSTrackRef", "ImageIO")] public static NSString GPSTrackRef { get { if (_GPSTrackRef == null) { _GPSTrackRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSTrackRef"); } return _GPSTrackRef; } } [Field("kCGImagePropertyGPSTrack", "ImageIO")] public static NSString GPSTrack { get { if (_GPSTrack == null) { _GPSTrack = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSTrack"); } return _GPSTrack; } } [Field("kCGImagePropertyGPSImgDirectionRef", "ImageIO")] public static NSString GPSImgDirectionRef { get { if (_GPSImgDirectionRef == null) { _GPSImgDirectionRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSImgDirectionRef"); } return _GPSImgDirectionRef; } } [Field("kCGImagePropertyGPSImgDirection", "ImageIO")] public static NSString GPSImgDirection { get { if (_GPSImgDirection == null) { _GPSImgDirection = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSImgDirection"); } return _GPSImgDirection; } } [Field("kCGImagePropertyGPSMapDatum", "ImageIO")] public static NSString GPSMapDatum { get { if (_GPSMapDatum == null) { _GPSMapDatum = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSMapDatum"); } return _GPSMapDatum; } } [Field("kCGImagePropertyGPSDestLatitudeRef", "ImageIO")] public static NSString GPSDestLatitudeRef { get { if (_GPSDestLatitudeRef == null) { _GPSDestLatitudeRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestLatitudeRef"); } return _GPSDestLatitudeRef; } } [Field("kCGImagePropertyGPSDestLatitude", "ImageIO")] public static NSString GPSDestLatitude { get { if (_GPSDestLatitude == null) { _GPSDestLatitude = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestLatitude"); } return _GPSDestLatitude; } } [Field("kCGImagePropertyGPSDestLongitudeRef", "ImageIO")] public static NSString GPSDestLongitudeRef { get { if (_GPSDestLongitudeRef == null) { _GPSDestLongitudeRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestLongitudeRef"); } return _GPSDestLongitudeRef; } } [Field("kCGImagePropertyGPSDestLongitude", "ImageIO")] public static NSString GPSDestLongitude { get { if (_GPSDestLongitude == null) { _GPSDestLongitude = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestLongitude"); } return _GPSDestLongitude; } } [Field("kCGImagePropertyGPSDestBearingRef", "ImageIO")] public static NSString GPSDestBearingRef { get { if (_GPSDestBearingRef == null) { _GPSDestBearingRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestBearingRef"); } return _GPSDestBearingRef; } } [Field("kCGImagePropertyGPSDestBearing", "ImageIO")] public static NSString GPSDestBearing { get { if (_GPSDestBearing == null) { _GPSDestBearing = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestBearing"); } return _GPSDestBearing; } } [Field("kCGImagePropertyGPSDestDistanceRef", "ImageIO")] public static NSString GPSDestDistanceRef { get { if (_GPSDestDistanceRef == null) { _GPSDestDistanceRef = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestDistanceRef"); } return _GPSDestDistanceRef; } } [Field("kCGImagePropertyGPSDestDistance", "ImageIO")] public static NSString GPSDestDistance { get { if (_GPSDestDistance == null) { _GPSDestDistance = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDestDistance"); } return _GPSDestDistance; } } [Field("kCGImagePropertyGPSAreaInformation", "ImageIO")] public static NSString GPSAreaInformation { get { if (_GPSAreaInformation == null) { _GPSAreaInformation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSAreaInformation"); } return _GPSAreaInformation; } } [Field("kCGImagePropertyGPSDateStamp", "ImageIO")] public static NSString GPSDateStamp { get { if (_GPSDateStamp == null) { _GPSDateStamp = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDateStamp"); } return _GPSDateStamp; } } [Field("kCGImagePropertyGPSDifferental", "ImageIO")] public static NSString GPSDifferental { get { if (_GPSDifferental == null) { _GPSDifferental = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyGPSDifferental"); } return _GPSDifferental; } } [Field("kCGImagePropertyIPTCObjectTypeReference", "ImageIO")] public static NSString IPTCObjectTypeReference { get { if (_IPTCObjectTypeReference == null) { _IPTCObjectTypeReference = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCObjectTypeReference"); } return _IPTCObjectTypeReference; } } [Field("kCGImagePropertyIPTCObjectAttributeReference", "ImageIO")] public static NSString IPTCObjectAttributeReference { get { if (_IPTCObjectAttributeReference == null) { _IPTCObjectAttributeReference = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCObjectAttributeReference"); } return _IPTCObjectAttributeReference; } } [Field("kCGImagePropertyIPTCObjectName", "ImageIO")] public static NSString IPTCObjectName { get { if (_IPTCObjectName == null) { _IPTCObjectName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCObjectName"); } return _IPTCObjectName; } } [Field("kCGImagePropertyIPTCEditStatus", "ImageIO")] public static NSString IPTCEditStatus { get { if (_IPTCEditStatus == null) { _IPTCEditStatus = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCEditStatus"); } return _IPTCEditStatus; } } [Field("kCGImagePropertyIPTCEditorialUpdate", "ImageIO")] public static NSString IPTCEditorialUpdate { get { if (_IPTCEditorialUpdate == null) { _IPTCEditorialUpdate = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCEditorialUpdate"); } return _IPTCEditorialUpdate; } } [Field("kCGImagePropertyIPTCUrgency", "ImageIO")] public static NSString IPTCUrgency { get { if (_IPTCUrgency == null) { _IPTCUrgency = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCUrgency"); } return _IPTCUrgency; } } [Field("kCGImagePropertyIPTCSubjectReference", "ImageIO")] public static NSString IPTCSubjectReference { get { if (_IPTCSubjectReference == null) { _IPTCSubjectReference = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCSubjectReference"); } return _IPTCSubjectReference; } } [Field("kCGImagePropertyIPTCCategory", "ImageIO")] public static NSString IPTCCategory { get { if (_IPTCCategory == null) { _IPTCCategory = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCategory"); } return _IPTCCategory; } } [Field("kCGImagePropertyIPTCSupplementalCategory", "ImageIO")] public static NSString IPTCSupplementalCategory { get { if (_IPTCSupplementalCategory == null) { _IPTCSupplementalCategory = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCSupplementalCategory"); } return _IPTCSupplementalCategory; } } [Field("kCGImagePropertyIPTCFixtureIdentifier", "ImageIO")] public static NSString IPTCFixtureIdentifier { get { if (_IPTCFixtureIdentifier == null) { _IPTCFixtureIdentifier = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCFixtureIdentifier"); } return _IPTCFixtureIdentifier; } } [Field("kCGImagePropertyIPTCKeywords", "ImageIO")] public static NSString IPTCKeywords { get { if (_IPTCKeywords == null) { _IPTCKeywords = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCKeywords"); } return _IPTCKeywords; } } [Field("kCGImagePropertyIPTCContentLocationCode", "ImageIO")] public static NSString IPTCContentLocationCode { get { if (_IPTCContentLocationCode == null) { _IPTCContentLocationCode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContentLocationCode"); } return _IPTCContentLocationCode; } } [Field("kCGImagePropertyIPTCContentLocationName", "ImageIO")] public static NSString IPTCContentLocationName { get { if (_IPTCContentLocationName == null) { _IPTCContentLocationName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContentLocationName"); } return _IPTCContentLocationName; } } [Field("kCGImagePropertyIPTCReleaseDate", "ImageIO")] public static NSString IPTCReleaseDate { get { if (_IPTCReleaseDate == null) { _IPTCReleaseDate = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCReleaseDate"); } return _IPTCReleaseDate; } } [Field("kCGImagePropertyIPTCReleaseTime", "ImageIO")] public static NSString IPTCReleaseTime { get { if (_IPTCReleaseTime == null) { _IPTCReleaseTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCReleaseTime"); } return _IPTCReleaseTime; } } [Field("kCGImagePropertyIPTCExpirationDate", "ImageIO")] public static NSString IPTCExpirationDate { get { if (_IPTCExpirationDate == null) { _IPTCExpirationDate = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCExpirationDate"); } return _IPTCExpirationDate; } } [Field("kCGImagePropertyIPTCExpirationTime", "ImageIO")] public static NSString IPTCExpirationTime { get { if (_IPTCExpirationTime == null) { _IPTCExpirationTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCExpirationTime"); } return _IPTCExpirationTime; } } [Field("kCGImagePropertyIPTCSpecialInstructions", "ImageIO")] public static NSString IPTCSpecialInstructions { get { if (_IPTCSpecialInstructions == null) { _IPTCSpecialInstructions = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCSpecialInstructions"); } return _IPTCSpecialInstructions; } } [Field("kCGImagePropertyIPTCActionAdvised", "ImageIO")] public static NSString IPTCActionAdvised { get { if (_IPTCActionAdvised == null) { _IPTCActionAdvised = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCActionAdvised"); } return _IPTCActionAdvised; } } [Field("kCGImagePropertyIPTCReferenceService", "ImageIO")] public static NSString IPTCReferenceService { get { if (_IPTCReferenceService == null) { _IPTCReferenceService = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCReferenceService"); } return _IPTCReferenceService; } } [Field("kCGImagePropertyIPTCReferenceDate", "ImageIO")] public static NSString IPTCReferenceDate { get { if (_IPTCReferenceDate == null) { _IPTCReferenceDate = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCReferenceDate"); } return _IPTCReferenceDate; } } [Field("kCGImagePropertyIPTCReferenceNumber", "ImageIO")] public static NSString IPTCReferenceNumber { get { if (_IPTCReferenceNumber == null) { _IPTCReferenceNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCReferenceNumber"); } return _IPTCReferenceNumber; } } [Field("kCGImagePropertyIPTCDateCreated", "ImageIO")] public static NSString IPTCDateCreated { get { if (_IPTCDateCreated == null) { _IPTCDateCreated = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCDateCreated"); } return _IPTCDateCreated; } } [Field("kCGImagePropertyIPTCTimeCreated", "ImageIO")] public static NSString IPTCTimeCreated { get { if (_IPTCTimeCreated == null) { _IPTCTimeCreated = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCTimeCreated"); } return _IPTCTimeCreated; } } [Field("kCGImagePropertyIPTCDigitalCreationDate", "ImageIO")] public static NSString IPTCDigitalCreationDate { get { if (_IPTCDigitalCreationDate == null) { _IPTCDigitalCreationDate = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCDigitalCreationDate"); } return _IPTCDigitalCreationDate; } } [Field("kCGImagePropertyIPTCDigitalCreationTime", "ImageIO")] public static NSString IPTCDigitalCreationTime { get { if (_IPTCDigitalCreationTime == null) { _IPTCDigitalCreationTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCDigitalCreationTime"); } return _IPTCDigitalCreationTime; } } [Field("kCGImagePropertyIPTCOriginatingProgram", "ImageIO")] public static NSString IPTCOriginatingProgram { get { if (_IPTCOriginatingProgram == null) { _IPTCOriginatingProgram = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCOriginatingProgram"); } return _IPTCOriginatingProgram; } } [Field("kCGImagePropertyIPTCProgramVersion", "ImageIO")] public static NSString IPTCProgramVersion { get { if (_IPTCProgramVersion == null) { _IPTCProgramVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCProgramVersion"); } return _IPTCProgramVersion; } } [Field("kCGImagePropertyIPTCObjectCycle", "ImageIO")] public static NSString IPTCObjectCycle { get { if (_IPTCObjectCycle == null) { _IPTCObjectCycle = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCObjectCycle"); } return _IPTCObjectCycle; } } [Field("kCGImagePropertyIPTCByline", "ImageIO")] public static NSString IPTCByline { get { if (_IPTCByline == null) { _IPTCByline = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCByline"); } return _IPTCByline; } } [Field("kCGImagePropertyIPTCBylineTitle", "ImageIO")] public static NSString IPTCBylineTitle { get { if (_IPTCBylineTitle == null) { _IPTCBylineTitle = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCBylineTitle"); } return _IPTCBylineTitle; } } [Field("kCGImagePropertyIPTCCity", "ImageIO")] public static NSString IPTCCity { get { if (_IPTCCity == null) { _IPTCCity = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCity"); } return _IPTCCity; } } [Field("kCGImagePropertyIPTCSubLocation", "ImageIO")] public static NSString IPTCSubLocation { get { if (_IPTCSubLocation == null) { _IPTCSubLocation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCSubLocation"); } return _IPTCSubLocation; } } [Field("kCGImagePropertyIPTCProvinceState", "ImageIO")] public static NSString IPTCProvinceState { get { if (_IPTCProvinceState == null) { _IPTCProvinceState = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCProvinceState"); } return _IPTCProvinceState; } } [Field("kCGImagePropertyIPTCCountryPrimaryLocationCode", "ImageIO")] public static NSString IPTCCountryPrimaryLocationCode { get { if (_IPTCCountryPrimaryLocationCode == null) { _IPTCCountryPrimaryLocationCode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCountryPrimaryLocationCode"); } return _IPTCCountryPrimaryLocationCode; } } [Field("kCGImagePropertyIPTCCountryPrimaryLocationName", "ImageIO")] public static NSString IPTCCountryPrimaryLocationName { get { if (_IPTCCountryPrimaryLocationName == null) { _IPTCCountryPrimaryLocationName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCountryPrimaryLocationName"); } return _IPTCCountryPrimaryLocationName; } } [Field("kCGImagePropertyIPTCOriginalTransmissionReference", "ImageIO")] public static NSString IPTCOriginalTransmissionReference { get { if (_IPTCOriginalTransmissionReference == null) { _IPTCOriginalTransmissionReference = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCOriginalTransmissionReference"); } return _IPTCOriginalTransmissionReference; } } [Field("kCGImagePropertyIPTCHeadline", "ImageIO")] public static NSString IPTCHeadline { get { if (_IPTCHeadline == null) { _IPTCHeadline = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCHeadline"); } return _IPTCHeadline; } } [Field("kCGImagePropertyIPTCCredit", "ImageIO")] public static NSString IPTCCredit { get { if (_IPTCCredit == null) { _IPTCCredit = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCredit"); } return _IPTCCredit; } } [Field("kCGImagePropertyIPTCSource", "ImageIO")] public static NSString IPTCSource { get { if (_IPTCSource == null) { _IPTCSource = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCSource"); } return _IPTCSource; } } [Field("kCGImagePropertyIPTCCopyrightNotice", "ImageIO")] public static NSString IPTCCopyrightNotice { get { if (_IPTCCopyrightNotice == null) { _IPTCCopyrightNotice = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCopyrightNotice"); } return _IPTCCopyrightNotice; } } [Field("kCGImagePropertyIPTCContact", "ImageIO")] public static NSString IPTCContact { get { if (_IPTCContact == null) { _IPTCContact = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContact"); } return _IPTCContact; } } [Field("kCGImagePropertyIPTCCaptionAbstract", "ImageIO")] public static NSString IPTCCaptionAbstract { get { if (_IPTCCaptionAbstract == null) { _IPTCCaptionAbstract = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCaptionAbstract"); } return _IPTCCaptionAbstract; } } [Field("kCGImagePropertyIPTCWriterEditor", "ImageIO")] public static NSString IPTCWriterEditor { get { if (_IPTCWriterEditor == null) { _IPTCWriterEditor = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCWriterEditor"); } return _IPTCWriterEditor; } } [Field("kCGImagePropertyIPTCImageType", "ImageIO")] public static NSString IPTCImageType { get { if (_IPTCImageType == null) { _IPTCImageType = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCImageType"); } return _IPTCImageType; } } [Field("kCGImagePropertyIPTCImageOrientation", "ImageIO")] public static NSString IPTCImageOrientation { get { if (_IPTCImageOrientation == null) { _IPTCImageOrientation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCImageOrientation"); } return _IPTCImageOrientation; } } [Field("kCGImagePropertyIPTCLanguageIdentifier", "ImageIO")] public static NSString IPTCLanguageIdentifier { get { if (_IPTCLanguageIdentifier == null) { _IPTCLanguageIdentifier = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCLanguageIdentifier"); } return _IPTCLanguageIdentifier; } } [Field("kCGImagePropertyIPTCStarRating", "ImageIO")] public static NSString IPTCStarRating { get { if (_IPTCStarRating == null) { _IPTCStarRating = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCStarRating"); } return _IPTCStarRating; } } [Field("kCGImagePropertyIPTCCreatorContactInfo", "ImageIO")] public static NSString IPTCCreatorContactInfo { get { if (_IPTCCreatorContactInfo == null) { _IPTCCreatorContactInfo = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCCreatorContactInfo"); } return _IPTCCreatorContactInfo; } } [Field("kCGImagePropertyIPTCRightsUsageTerms", "ImageIO")] public static NSString IPTCRightsUsageTerms { get { if (_IPTCRightsUsageTerms == null) { _IPTCRightsUsageTerms = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCRightsUsageTerms"); } return _IPTCRightsUsageTerms; } } [Field("kCGImagePropertyIPTCScene", "ImageIO")] public static NSString IPTCScene { get { if (_IPTCScene == null) { _IPTCScene = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCScene"); } return _IPTCScene; } } [Field("kCGImagePropertyIPTCContactInfoCity", "ImageIO")] public static NSString IPTCContactInfoCity { get { if (_IPTCContactInfoCity == null) { _IPTCContactInfoCity = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoCity"); } return _IPTCContactInfoCity; } } [Field("kCGImagePropertyIPTCContactInfoCountry", "ImageIO")] public static NSString IPTCContactInfoCountry { get { if (_IPTCContactInfoCountry == null) { _IPTCContactInfoCountry = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoCountry"); } return _IPTCContactInfoCountry; } } [Field("kCGImagePropertyIPTCContactInfoAddress", "ImageIO")] public static NSString IPTCContactInfoAddress { get { if (_IPTCContactInfoAddress == null) { _IPTCContactInfoAddress = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoAddress"); } return _IPTCContactInfoAddress; } } [Field("kCGImagePropertyIPTCContactInfoPostalCode", "ImageIO")] public static NSString IPTCContactInfoPostalCode { get { if (_IPTCContactInfoPostalCode == null) { _IPTCContactInfoPostalCode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoPostalCode"); } return _IPTCContactInfoPostalCode; } } [Field("kCGImagePropertyIPTCContactInfoStateProvince", "ImageIO")] public static NSString IPTCContactInfoStateProvince { get { if (_IPTCContactInfoStateProvince == null) { _IPTCContactInfoStateProvince = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoStateProvince"); } return _IPTCContactInfoStateProvince; } } [Field("kCGImagePropertyIPTCContactInfoEmails", "ImageIO")] public static NSString IPTCContactInfoEmails { get { if (_IPTCContactInfoEmails == null) { _IPTCContactInfoEmails = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoEmails"); } return _IPTCContactInfoEmails; } } [Field("kCGImagePropertyIPTCContactInfoPhones", "ImageIO")] public static NSString IPTCContactInfoPhones { get { if (_IPTCContactInfoPhones == null) { _IPTCContactInfoPhones = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoPhones"); } return _IPTCContactInfoPhones; } } [Field("kCGImagePropertyIPTCContactInfoWebURLs", "ImageIO")] public static NSString IPTCContactInfoWebURLs { get { if (_IPTCContactInfoWebURLs == null) { _IPTCContactInfoWebURLs = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyIPTCContactInfoWebURLs"); } return _IPTCContactInfoWebURLs; } } [Field("kCGImagePropertyJFIFVersion", "ImageIO")] public static NSString JFIFVersion { get { if (_JFIFVersion == null) { _JFIFVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFVersion"); } return _JFIFVersion; } } [Field("kCGImagePropertyJFIFXDensity", "ImageIO")] public static NSString JFIFXDensity { get { if (_JFIFXDensity == null) { _JFIFXDensity = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFXDensity"); } return _JFIFXDensity; } } [Field("kCGImagePropertyJFIFYDensity", "ImageIO")] public static NSString JFIFYDensity { get { if (_JFIFYDensity == null) { _JFIFYDensity = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFYDensity"); } return _JFIFYDensity; } } [Field("kCGImagePropertyJFIFDensityUnit", "ImageIO")] public static NSString JFIFDensityUnit { get { if (_JFIFDensityUnit == null) { _JFIFDensityUnit = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFDensityUnit"); } return _JFIFDensityUnit; } } [Field("kCGImagePropertyJFIFIsProgressive", "ImageIO")] public static NSString JFIFIsProgressive { get { if (_JFIFIsProgressive == null) { _JFIFIsProgressive = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyJFIFIsProgressive"); } return _JFIFIsProgressive; } } [Field("kCGImagePropertyPNGGamma", "ImageIO")] public static NSString PNGGamma { get { if (_PNGGamma == null) { _PNGGamma = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGGamma"); } return _PNGGamma; } } [Field("kCGImagePropertyPNGInterlaceType", "ImageIO")] public static NSString PNGInterlaceType { get { if (_PNGInterlaceType == null) { _PNGInterlaceType = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGInterlaceType"); } return _PNGInterlaceType; } } [Field("kCGImagePropertyPNGXPixelsPerMeter", "ImageIO")] public static NSString PNGXPixelsPerMeter { get { if (_PNGXPixelsPerMeter == null) { _PNGXPixelsPerMeter = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGXPixelsPerMeter"); } return _PNGXPixelsPerMeter; } } [Field("kCGImagePropertyPNGYPixelsPerMeter", "ImageIO")] public static NSString PNGYPixelsPerMeter { get { if (_PNGYPixelsPerMeter == null) { _PNGYPixelsPerMeter = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGYPixelsPerMeter"); } return _PNGYPixelsPerMeter; } } [Field("kCGImagePropertyPNGsRGBIntent", "ImageIO")] public static NSString PNGsRGBIntent { get { if (_PNGsRGBIntent == null) { _PNGsRGBIntent = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGsRGBIntent"); } return _PNGsRGBIntent; } } [Field("kCGImagePropertyPNGChromaticities", "ImageIO")] public static NSString PNGChromaticities { get { if (_PNGChromaticities == null) { _PNGChromaticities = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGChromaticities"); } return _PNGChromaticities; } } [Field("kCGImagePropertyPNGAuthor", "ImageIO")] public static NSString PNGAuthor { get { if (_PNGAuthor == null) { _PNGAuthor = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGAuthor"); } return _PNGAuthor; } } [Field("kCGImagePropertyPNGCopyright", "ImageIO")] public static NSString PNGCopyright { get { if (_PNGCopyright == null) { _PNGCopyright = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGCopyright"); } return _PNGCopyright; } } [Field("kCGImagePropertyPNGCreationTime", "ImageIO")] public static NSString PNGCreationTime { get { if (_PNGCreationTime == null) { _PNGCreationTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGCreationTime"); } return _PNGCreationTime; } } [Field("kCGImagePropertyPNGDescription", "ImageIO")] public static NSString PNGDescription { get { if (_PNGDescription == null) { _PNGDescription = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGDescription"); } return _PNGDescription; } } [Field("kCGImagePropertyPNGModificationTime", "ImageIO")] public static NSString PNGModificationTime { get { if (_PNGModificationTime == null) { _PNGModificationTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGModificationTime"); } return _PNGModificationTime; } } [Field("kCGImagePropertyPNGSoftware", "ImageIO")] public static NSString PNGSoftware { get { if (_PNGSoftware == null) { _PNGSoftware = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGSoftware"); } return _PNGSoftware; } } [Field("kCGImagePropertyPNGTitle", "ImageIO")] public static NSString PNGTitle { get { if (_PNGTitle == null) { _PNGTitle = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyPNGTitle"); } return _PNGTitle; } } [Field("kCGImagePropertyTIFFCompression", "ImageIO")] public static NSString TIFFCompression { get { if (_TIFFCompression == null) { _TIFFCompression = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFCompression"); } return _TIFFCompression; } } [Field("kCGImagePropertyTIFFPhotometricInterpretation", "ImageIO")] public static NSString TIFFPhotometricInterpretation { get { if (_TIFFPhotometricInterpretation == null) { _TIFFPhotometricInterpretation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFPhotometricInterpretation"); } return _TIFFPhotometricInterpretation; } } [Field("kCGImagePropertyTIFFDocumentName", "ImageIO")] public static NSString TIFFDocumentName { get { if (_TIFFDocumentName == null) { _TIFFDocumentName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFDocumentName"); } return _TIFFDocumentName; } } [Field("kCGImagePropertyTIFFImageDescription", "ImageIO")] public static NSString TIFFImageDescription { get { if (_TIFFImageDescription == null) { _TIFFImageDescription = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFImageDescription"); } return _TIFFImageDescription; } } [Field("kCGImagePropertyTIFFMake", "ImageIO")] public static NSString TIFFMake { get { if (_TIFFMake == null) { _TIFFMake = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFMake"); } return _TIFFMake; } } [Field("kCGImagePropertyTIFFModel", "ImageIO")] public static NSString TIFFModel { get { if (_TIFFModel == null) { _TIFFModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFModel"); } return _TIFFModel; } } [Field("kCGImagePropertyTIFFOrientation", "ImageIO")] public static NSString TIFFOrientation { get { if (_TIFFOrientation == null) { _TIFFOrientation = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFOrientation"); } return _TIFFOrientation; } } [Field("kCGImagePropertyTIFFXResolution", "ImageIO")] public static NSString TIFFXResolution { get { if (_TIFFXResolution == null) { _TIFFXResolution = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFXResolution"); } return _TIFFXResolution; } } [Field("kCGImagePropertyTIFFYResolution", "ImageIO")] public static NSString TIFFYResolution { get { if (_TIFFYResolution == null) { _TIFFYResolution = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFYResolution"); } return _TIFFYResolution; } } [Field("kCGImagePropertyTIFFResolutionUnit", "ImageIO")] public static NSString TIFFResolutionUnit { get { if (_TIFFResolutionUnit == null) { _TIFFResolutionUnit = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFResolutionUnit"); } return _TIFFResolutionUnit; } } [Field("kCGImagePropertyTIFFSoftware", "ImageIO")] public static NSString TIFFSoftware { get { if (_TIFFSoftware == null) { _TIFFSoftware = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFSoftware"); } return _TIFFSoftware; } } [Field("kCGImagePropertyTIFFTransferFunction", "ImageIO")] public static NSString TIFFTransferFunction { get { if (_TIFFTransferFunction == null) { _TIFFTransferFunction = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFTransferFunction"); } return _TIFFTransferFunction; } } [Field("kCGImagePropertyTIFFDateTime", "ImageIO")] public static NSString TIFFDateTime { get { if (_TIFFDateTime == null) { _TIFFDateTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFDateTime"); } return _TIFFDateTime; } } [Field("kCGImagePropertyTIFFArtist", "ImageIO")] public static NSString TIFFArtist { get { if (_TIFFArtist == null) { _TIFFArtist = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFArtist"); } return _TIFFArtist; } } [Field("kCGImagePropertyTIFFHostComputer", "ImageIO")] public static NSString TIFFHostComputer { get { if (_TIFFHostComputer == null) { _TIFFHostComputer = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFHostComputer"); } return _TIFFHostComputer; } } [Field("kCGImagePropertyTIFFWhitePoint", "ImageIO")] public static NSString TIFFWhitePoint { get { if (_TIFFWhitePoint == null) { _TIFFWhitePoint = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFWhitePoint"); } return _TIFFWhitePoint; } } [Field("kCGImagePropertyTIFFPrimaryChromaticities", "ImageIO")] public static NSString TIFFPrimaryChromaticities { get { if (_TIFFPrimaryChromaticities == null) { _TIFFPrimaryChromaticities = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyTIFFPrimaryChromaticities"); } return _TIFFPrimaryChromaticities; } } [Field("kCGImagePropertyDNGVersion", "ImageIO")] public static NSString DNGVersion { get { if (_DNGVersion == null) { _DNGVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGVersion"); } return _DNGVersion; } } [Field("kCGImagePropertyDNGBackwardVersion", "ImageIO")] public static NSString DNGBackwardVersion { get { if (_DNGBackwardVersion == null) { _DNGBackwardVersion = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGBackwardVersion"); } return _DNGBackwardVersion; } } [Field("kCGImagePropertyDNGUniqueCameraModel", "ImageIO")] public static NSString DNGUniqueCameraModel { get { if (_DNGUniqueCameraModel == null) { _DNGUniqueCameraModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGUniqueCameraModel"); } return _DNGUniqueCameraModel; } } [Field("kCGImagePropertyDNGLocalizedCameraModel", "ImageIO")] public static NSString DNGLocalizedCameraModel { get { if (_DNGLocalizedCameraModel == null) { _DNGLocalizedCameraModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGLocalizedCameraModel"); } return _DNGLocalizedCameraModel; } } [Field("kCGImagePropertyDNGCameraSerialNumber", "ImageIO")] public static NSString DNGCameraSerialNumber { get { if (_DNGCameraSerialNumber == null) { _DNGCameraSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGCameraSerialNumber"); } return _DNGCameraSerialNumber; } } [Field("kCGImagePropertyDNGLensInfo", "ImageIO")] public static NSString DNGLensInfo { get { if (_DNGLensInfo == null) { _DNGLensInfo = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyDNGLensInfo"); } return _DNGLensInfo; } } [Field("kCGImageProperty8BIMLayerNames", "ImageIO")] public static NSString EightBIMLayerNames { get { if (_EightBIMLayerNames == null) { _EightBIMLayerNames = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImageProperty8BIMLayerNames"); } return _EightBIMLayerNames; } } [Field("kCGImagePropertyCIFFDescription", "ImageIO")] public static NSString CIFFDescription { get { if (_CIFFDescription == null) { _CIFFDescription = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFDescription"); } return _CIFFDescription; } } [Field("kCGImagePropertyCIFFFirmware", "ImageIO")] public static NSString CIFFFirmware { get { if (_CIFFFirmware == null) { _CIFFFirmware = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFFirmware"); } return _CIFFFirmware; } } [Field("kCGImagePropertyCIFFOwnerName", "ImageIO")] public static NSString CIFFOwnerName { get { if (_CIFFOwnerName == null) { _CIFFOwnerName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFOwnerName"); } return _CIFFOwnerName; } } [Field("kCGImagePropertyCIFFImageName", "ImageIO")] public static NSString CIFFImageName { get { if (_CIFFImageName == null) { _CIFFImageName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFImageName"); } return _CIFFImageName; } } [Field("kCGImagePropertyCIFFImageFileName", "ImageIO")] public static NSString CIFFImageFileName { get { if (_CIFFImageFileName == null) { _CIFFImageFileName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFImageFileName"); } return _CIFFImageFileName; } } [Field("kCGImagePropertyCIFFReleaseMethod", "ImageIO")] public static NSString CIFFReleaseMethod { get { if (_CIFFReleaseMethod == null) { _CIFFReleaseMethod = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFReleaseMethod"); } return _CIFFReleaseMethod; } } [Field("kCGImagePropertyCIFFReleaseTiming", "ImageIO")] public static NSString CIFFReleaseTiming { get { if (_CIFFReleaseTiming == null) { _CIFFReleaseTiming = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFReleaseTiming"); } return _CIFFReleaseTiming; } } [Field("kCGImagePropertyCIFFRecordID", "ImageIO")] public static NSString CIFFRecordID { get { if (_CIFFRecordID == null) { _CIFFRecordID = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFRecordID"); } return _CIFFRecordID; } } [Field("kCGImagePropertyCIFFSelfTimingTime", "ImageIO")] public static NSString CIFFSelfTimingTime { get { if (_CIFFSelfTimingTime == null) { _CIFFSelfTimingTime = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFSelfTimingTime"); } return _CIFFSelfTimingTime; } } [Field("kCGImagePropertyCIFFCameraSerialNumber", "ImageIO")] public static NSString CIFFCameraSerialNumber { get { if (_CIFFCameraSerialNumber == null) { _CIFFCameraSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFCameraSerialNumber"); } return _CIFFCameraSerialNumber; } } [Field("kCGImagePropertyCIFFImageSerialNumber", "ImageIO")] public static NSString CIFFImageSerialNumber { get { if (_CIFFImageSerialNumber == null) { _CIFFImageSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFImageSerialNumber"); } return _CIFFImageSerialNumber; } } [Field("kCGImagePropertyCIFFContinuousDrive", "ImageIO")] public static NSString CIFFContinuousDrive { get { if (_CIFFContinuousDrive == null) { _CIFFContinuousDrive = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFContinuousDrive"); } return _CIFFContinuousDrive; } } [Field("kCGImagePropertyCIFFFocusMode", "ImageIO")] public static NSString CIFFFocusMode { get { if (_CIFFFocusMode == null) { _CIFFFocusMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFFocusMode"); } return _CIFFFocusMode; } } [Field("kCGImagePropertyCIFFMeteringMode", "ImageIO")] public static NSString CIFFMeteringMode { get { if (_CIFFMeteringMode == null) { _CIFFMeteringMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFMeteringMode"); } return _CIFFMeteringMode; } } [Field("kCGImagePropertyCIFFShootingMode", "ImageIO")] public static NSString CIFFShootingMode { get { if (_CIFFShootingMode == null) { _CIFFShootingMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFShootingMode"); } return _CIFFShootingMode; } } [Field("kCGImagePropertyCIFFLensMaxMM", "ImageIO")] public static NSString CIFFLensMaxMM { get { if (_CIFFLensMaxMM == null) { _CIFFLensMaxMM = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFLensMaxMM"); } return _CIFFLensMaxMM; } } [Field("kCGImagePropertyCIFFLensMinMM", "ImageIO")] public static NSString CIFFLensMinMM { get { if (_CIFFLensMinMM == null) { _CIFFLensMinMM = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFLensMinMM"); } return _CIFFLensMinMM; } } [Field("kCGImagePropertyCIFFLensModel", "ImageIO")] public static NSString CIFFLensModel { get { if (_CIFFLensModel == null) { _CIFFLensModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFLensModel"); } return _CIFFLensModel; } } [Field("kCGImagePropertyCIFFWhiteBalanceIndex", "ImageIO")] public static NSString CIFFWhiteBalanceIndex { get { if (_CIFFWhiteBalanceIndex == null) { _CIFFWhiteBalanceIndex = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFWhiteBalanceIndex"); } return _CIFFWhiteBalanceIndex; } } [Field("kCGImagePropertyCIFFFlashExposureComp", "ImageIO")] public static NSString CIFFFlashExposureComp { get { if (_CIFFFlashExposureComp == null) { _CIFFFlashExposureComp = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFFlashExposureComp"); } return _CIFFFlashExposureComp; } } [Field("kCGImagePropertyCIFFMeasuredEV", "ImageIO")] public static NSString CIFFMeasuredEV { get { if (_CIFFMeasuredEV == null) { _CIFFMeasuredEV = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyCIFFMeasuredEV"); } return _CIFFMeasuredEV; } } [Field("kCGImagePropertyMakerNikonISOSetting", "ImageIO")] public static NSString MakerNikonISOSetting { get { if (_MakerNikonISOSetting == null) { _MakerNikonISOSetting = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonISOSetting"); } return _MakerNikonISOSetting; } } [Field("kCGImagePropertyMakerNikonColorMode", "ImageIO")] public static NSString MakerNikonColorMode { get { if (_MakerNikonColorMode == null) { _MakerNikonColorMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonColorMode"); } return _MakerNikonColorMode; } } [Field("kCGImagePropertyMakerNikonQuality", "ImageIO")] public static NSString MakerNikonQuality { get { if (_MakerNikonQuality == null) { _MakerNikonQuality = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonQuality"); } return _MakerNikonQuality; } } [Field("kCGImagePropertyMakerNikonWhiteBalanceMode", "ImageIO")] public static NSString MakerNikonWhiteBalanceMode { get { if (_MakerNikonWhiteBalanceMode == null) { _MakerNikonWhiteBalanceMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonWhiteBalanceMode"); } return _MakerNikonWhiteBalanceMode; } } [Field("kCGImagePropertyMakerNikonSharpenMode", "ImageIO")] public static NSString MakerNikonSharpenMode { get { if (_MakerNikonSharpenMode == null) { _MakerNikonSharpenMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonSharpenMode"); } return _MakerNikonSharpenMode; } } [Field("kCGImagePropertyMakerNikonFocusMode", "ImageIO")] public static NSString MakerNikonFocusMode { get { if (_MakerNikonFocusMode == null) { _MakerNikonFocusMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonFocusMode"); } return _MakerNikonFocusMode; } } [Field("kCGImagePropertyMakerNikonFlashSetting", "ImageIO")] public static NSString MakerNikonFlashSetting { get { if (_MakerNikonFlashSetting == null) { _MakerNikonFlashSetting = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonFlashSetting"); } return _MakerNikonFlashSetting; } } [Field("kCGImagePropertyMakerNikonISOSelection", "ImageIO")] public static NSString MakerNikonISOSelection { get { if (_MakerNikonISOSelection == null) { _MakerNikonISOSelection = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonISOSelection"); } return _MakerNikonISOSelection; } } [Field("kCGImagePropertyMakerNikonFlashExposureComp", "ImageIO")] public static NSString MakerNikonFlashExposureComp { get { if (_MakerNikonFlashExposureComp == null) { _MakerNikonFlashExposureComp = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonFlashExposureComp"); } return _MakerNikonFlashExposureComp; } } [Field("kCGImagePropertyMakerNikonImageAdjustment", "ImageIO")] public static NSString MakerNikonImageAdjustment { get { if (_MakerNikonImageAdjustment == null) { _MakerNikonImageAdjustment = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonImageAdjustment"); } return _MakerNikonImageAdjustment; } } [Field("kCGImagePropertyMakerNikonLensAdapter", "ImageIO")] public static NSString MakerNikonLensAdapter { get { if (_MakerNikonLensAdapter == null) { _MakerNikonLensAdapter = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonLensAdapter"); } return _MakerNikonLensAdapter; } } [Field("kCGImagePropertyMakerNikonLensType", "ImageIO")] public static NSString MakerNikonLensType { get { if (_MakerNikonLensType == null) { _MakerNikonLensType = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonLensType"); } return _MakerNikonLensType; } } [Field("kCGImagePropertyMakerNikonLensInfo", "ImageIO")] public static NSString MakerNikonLensInfo { get { if (_MakerNikonLensInfo == null) { _MakerNikonLensInfo = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonLensInfo"); } return _MakerNikonLensInfo; } } [Field("kCGImagePropertyMakerNikonFocusDistance", "ImageIO")] public static NSString MakerNikonFocusDistance { get { if (_MakerNikonFocusDistance == null) { _MakerNikonFocusDistance = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonFocusDistance"); } return _MakerNikonFocusDistance; } } [Field("kCGImagePropertyMakerNikonDigitalZoom", "ImageIO")] public static NSString MakerNikonDigitalZoom { get { if (_MakerNikonDigitalZoom == null) { _MakerNikonDigitalZoom = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonDigitalZoom"); } return _MakerNikonDigitalZoom; } } [Field("kCGImagePropertyMakerNikonShootingMode", "ImageIO")] public static NSString MakerNikonShootingMode { get { if (_MakerNikonShootingMode == null) { _MakerNikonShootingMode = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonShootingMode"); } return _MakerNikonShootingMode; } } [Field("kCGImagePropertyMakerNikonShutterCount", "ImageIO")] public static NSString MakerNikonShutterCount { get { if (_MakerNikonShutterCount == null) { _MakerNikonShutterCount = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonShutterCount"); } return _MakerNikonShutterCount; } } [Field("kCGImagePropertyMakerNikonCameraSerialNumber", "ImageIO")] public static NSString MakerNikonCameraSerialNumber { get { if (_MakerNikonCameraSerialNumber == null) { _MakerNikonCameraSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerNikonCameraSerialNumber"); } return _MakerNikonCameraSerialNumber; } } [Field("kCGImagePropertyMakerCanonOwnerName", "ImageIO")] public static NSString MakerCanonOwnerName { get { if (_MakerCanonOwnerName == null) { _MakerCanonOwnerName = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonOwnerName"); } return _MakerCanonOwnerName; } } [Field("kCGImagePropertyMakerCanonCameraSerialNumber", "ImageIO")] public static NSString MakerCanonCameraSerialNumber { get { if (_MakerCanonCameraSerialNumber == null) { _MakerCanonCameraSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonCameraSerialNumber"); } return _MakerCanonCameraSerialNumber; } } [Field("kCGImagePropertyMakerCanonImageSerialNumber", "ImageIO")] public static NSString MakerCanonImageSerialNumber { get { if (_MakerCanonImageSerialNumber == null) { _MakerCanonImageSerialNumber = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonImageSerialNumber"); } return _MakerCanonImageSerialNumber; } } [Field("kCGImagePropertyMakerCanonFlashExposureComp", "ImageIO")] public static NSString MakerCanonFlashExposureComp { get { if (_MakerCanonFlashExposureComp == null) { _MakerCanonFlashExposureComp = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonFlashExposureComp"); } return _MakerCanonFlashExposureComp; } } [Field("kCGImagePropertyMakerCanonContinuousDrive", "ImageIO")] public static NSString MakerCanonContinuousDrive { get { if (_MakerCanonContinuousDrive == null) { _MakerCanonContinuousDrive = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonContinuousDrive"); } return _MakerCanonContinuousDrive; } } [Field("kCGImagePropertyMakerCanonLensModel", "ImageIO")] public static NSString MakerCanonLensModel { get { if (_MakerCanonLensModel == null) { _MakerCanonLensModel = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonLensModel"); } return _MakerCanonLensModel; } } [Field("kCGImagePropertyMakerCanonFirmware", "ImageIO")] public static NSString MakerCanonFirmware { get { if (_MakerCanonFirmware == null) { _MakerCanonFirmware = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonFirmware"); } return _MakerCanonFirmware; } } [Field("kCGImagePropertyMakerCanonAspectRatioInfo", "ImageIO")] public static NSString MakerCanonAspectRatioInfo { get { if (_MakerCanonAspectRatioInfo == null) { _MakerCanonAspectRatioInfo = Dlfcn.GetStringConstant(Libraries.ImageIO.Handle, "kCGImagePropertyMakerCanonAspectRatioInfo"); } return _MakerCanonAspectRatioInfo; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageSource.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageIO; public class CGImageSource : INativeObject, IDisposable { internal IntPtr handle; public static string[] TypeIdentifiers => NSArray.StringArrayFromHandle(CGImageSourceCopyTypeIdentifiers()); public IntPtr Handle => handle; public string TypeIdentifier => NSString.FromHandle(CGImageSourceGetType(handle)); public int ImageCount => CGImageSourceGetCount(handle).ToInt32(); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO", EntryPoint = "CGImageSourceGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCopyTypeIdentifiers(); internal CGImageSource(IntPtr handle) : this(handle, owns: false) { this.handle = handle; } [Preserve(Conditional = true)] internal CGImageSource(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } ~CGImageSource() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateWithURL(IntPtr url, IntPtr options); public static CGImageSource FromUrl(NSUrl url) { return FromUrl(url, null); } public static CGImageSource FromUrl(NSUrl url, CGImageOptions options) { if (url == null) { throw new ArgumentNullException("url"); } using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImageSource(CGImageSourceCreateWithURL(url.Handle, nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateWithDataProvider(IntPtr provider, IntPtr options); public static CGImageSource FromDataProvider(CGDataProvider provider) { return FromDataProvider(provider, null); } public static CGImageSource FromDataProvider(CGDataProvider provider, CGImageOptions options) { if (provider == null) { throw new ArgumentNullException("provider"); } using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImageSource(CGImageSourceCreateWithDataProvider(provider.Handle, nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateWithData(IntPtr data, IntPtr options); public static CGImageSource FromData(NSData data) { return FromData(data, null); } public static CGImageSource FromData(NSData data, CGImageOptions options) { if (data == null) { throw new ArgumentNullException("data"); } using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImageSource(CGImageSourceCreateWithData(data.Handle, nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceGetType(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceGetCount(IntPtr handle); [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCopyProperties(IntPtr handle, IntPtr dictOptions); [Advice("Use GetProperties")] public NSDictionary CopyProperties(NSDictionary dict) { return new NSDictionary(CGImageSourceCopyProperties(handle, dict?.Handle ?? IntPtr.Zero)); } [Advice("Use GetProperties")] public NSDictionary CopyProperties(CGImageOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return CopyProperties(options.ToDictionary()); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCopyPropertiesAtIndex(IntPtr handle, IntPtr idx, IntPtr dictOptions); [Advice("Use GetProperties")] public NSDictionary CopyProperties(NSDictionary dict, int imageIndex) { return new NSDictionary(CGImageSourceCopyPropertiesAtIndex(handle, new IntPtr(imageIndex), dict?.Handle ?? IntPtr.Zero)); } [Advice("Use GetProperties")] public NSDictionary CopyProperties(CGImageOptions options, int imageIndex) { if (options == null) { throw new ArgumentNullException("options"); } return CopyProperties(options.ToDictionary(), imageIndex); } public CoreGraphics.CGImageProperties GetProperties(CGImageOptions options = null) { return new CoreGraphics.CGImageProperties(CopyProperties(options?.ToDictionary())); } public CoreGraphics.CGImageProperties GetProperties(int index, CGImageOptions options = null) { return new CoreGraphics.CGImageProperties(CopyProperties(options?.ToDictionary(), index)); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateImageAtIndex(IntPtr isrc, IntPtr index, IntPtr options); public CGImage CreateImage(int index, CGImageOptions options) { using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImage(CGImageSourceCreateImageAtIndex(handle, new IntPtr(index), nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateThumbnailAtIndex(IntPtr isrc, IntPtr index, IntPtr options); public CGImage CreateThumbnail(int index, CGImageThumbnailOptions options) { using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImage(CGImageSourceCreateThumbnailAtIndex(handle, new IntPtr(index), nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern IntPtr CGImageSourceCreateIncremental(IntPtr options); public static CGImageSource CreateIncremental(CGImageOptions options) { using NSMutableDictionary nSMutableDictionary = options?.ToDictionary(); return new CGImageSource(CGImageSourceCreateIncremental(nSMutableDictionary?.Handle ?? IntPtr.Zero), owns: true); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern void CGImageSourceUpdateData(IntPtr handle, IntPtr data, bool final); public void UpdateData(NSData data, bool final) { if (data == null) { throw new ArgumentNullException("data"); } CGImageSourceUpdateData(handle, data.Handle, final); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern void CGImageSourceUpdateDataProvider(IntPtr handle, IntPtr dataProvider); public void UpdateDataProvider(CGDataProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } CGImageSourceUpdateDataProvider(handle, provider.Handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern CGImageSourceStatus CGImageSourceGetStatus(IntPtr handle); public CGImageSourceStatus GetStatus() { return CGImageSourceGetStatus(handle); } [DllImport("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO")] private static extern CGImageSourceStatus CGImageSourceGetStatusAtIndex(IntPtr handle, IntPtr idx); public CGImageSourceStatus GetStatus(int index) { return CGImageSourceGetStatusAtIndex(handle, new IntPtr(index)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageSourceStatus.cs ================================================ namespace ImageIO; public enum CGImageSourceStatus { Complete = 0, Incomplete = -1, ReadingHeader = -2, UnknownType = -3, InvalidData = -4, UnexpectedEOF = -5 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageIO/CGImageThumbnailOptions.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace ImageIO; public class CGImageThumbnailOptions : CGImageOptions { private static IntPtr kCreateThumbnailFromImageIfAbsent; private static IntPtr kCreateThumbnailFromImageAlways; private static IntPtr kThumbnailMaxPixelSize; private static IntPtr kCreateThumbnailWithTransform; public bool CreateThumbnailFromImageIfAbsent { get; set; } public bool CreateThumbnailFromImageAlways { get; set; } public int? MaxPixelSize { get; set; } public bool CreateThumbnailWithTransform { get; set; } private static void Init() { if (!(kCreateThumbnailWithTransform != IntPtr.Zero)) { IntPtr handle = Libraries.ImageIO.Handle; kCreateThumbnailFromImageIfAbsent = Dlfcn.GetIntPtr(handle, "kCGImageSourceCreateThumbnailFromImageIfAbsent"); kCreateThumbnailFromImageAlways = Dlfcn.GetIntPtr(handle, "kCGImageSourceCreateThumbnailFromImageAlways"); kThumbnailMaxPixelSize = Dlfcn.GetIntPtr(handle, "kCGImageSourceThumbnailMaxPixelSize"); kCreateThumbnailWithTransform = Dlfcn.GetIntPtr(handle, "kCGImageSourceCreateThumbnailWithTransform"); } } internal override NSMutableDictionary ToDictionary() { Init(); NSMutableDictionary nSMutableDictionary = base.ToDictionary(); IntPtr handle = CFBoolean.True.Handle; if (CreateThumbnailFromImageIfAbsent) { nSMutableDictionary.LowlevelSetObject(handle, kCreateThumbnailFromImageIfAbsent); } if (CreateThumbnailFromImageAlways) { nSMutableDictionary.LowlevelSetObject(handle, kCreateThumbnailFromImageAlways); } if (MaxPixelSize.HasValue) { nSMutableDictionary.LowlevelSetObject(new NSNumber(MaxPixelSize.Value), kThumbnailMaxPixelSize); } if (CreateThumbnailWithTransform) { nSMutableDictionary.LowlevelSetObject(handle, kCreateThumbnailWithTransform); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCameraDeviceView.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKCameraDeviceView", true)] public class IKCameraDeviceView : NSView { [Register] private sealed class _IKCameraDeviceViewDelegate : IKCameraDeviceViewDelegate { internal EventHandler selectionDidChange; internal EventHandler didEncounterError; [Preserve(Conditional = true)] public override void SelectionDidChange(IKCameraDeviceView cameraDeviceView) { selectionDidChange?.Invoke(cameraDeviceView, EventArgs.Empty); } [Preserve(Conditional = true)] public override void DidEncounterError(IKCameraDeviceView cameraDeviceView, NSError error) { EventHandler eventHandler = didEncounterError; if (eventHandler != null) { IKCameraDeviceViewNSErrorEventArgs e = new IKCameraDeviceViewNSErrorEventArgs(error); eventHandler(cameraDeviceView, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selHasDisplayModeTableHandle = Selector.GetHandle("hasDisplayModeTable"); private static readonly IntPtr selSetHasDisplayModeTable_Handle = Selector.GetHandle("setHasDisplayModeTable:"); private static readonly IntPtr selHasDisplayModeIconHandle = Selector.GetHandle("hasDisplayModeIcon"); private static readonly IntPtr selSetHasDisplayModeIcon_Handle = Selector.GetHandle("setHasDisplayModeIcon:"); private static readonly IntPtr selDownloadAllControlLabelHandle = Selector.GetHandle("downloadAllControlLabel"); private static readonly IntPtr selSetDownloadAllControlLabel_Handle = Selector.GetHandle("setDownloadAllControlLabel:"); private static readonly IntPtr selDownloadSelectedControlLabelHandle = Selector.GetHandle("downloadSelectedControlLabel"); private static readonly IntPtr selSetDownloadSelectedControlLabel_Handle = Selector.GetHandle("setDownloadSelectedControlLabel:"); private static readonly IntPtr selIconSizeHandle = Selector.GetHandle("iconSize"); private static readonly IntPtr selSetIconSize_Handle = Selector.GetHandle("setIconSize:"); private static readonly IntPtr selTransferModeHandle = Selector.GetHandle("transferMode"); private static readonly IntPtr selSetTransferMode_Handle = Selector.GetHandle("setTransferMode:"); private static readonly IntPtr selDisplaysDownloadsDirectoryControlHandle = Selector.GetHandle("displaysDownloadsDirectoryControl"); private static readonly IntPtr selSetDisplaysDownloadsDirectoryControl_Handle = Selector.GetHandle("setDisplaysDownloadsDirectoryControl:"); private static readonly IntPtr selDownloadsDirectoryHandle = Selector.GetHandle("downloadsDirectory"); private static readonly IntPtr selSetDownloadsDirectory_Handle = Selector.GetHandle("setDownloadsDirectory:"); private static readonly IntPtr selDisplaysPostProcessApplicationControlHandle = Selector.GetHandle("displaysPostProcessApplicationControl"); private static readonly IntPtr selSetDisplaysPostProcessApplicationControl_Handle = Selector.GetHandle("setDisplaysPostProcessApplicationControl:"); private static readonly IntPtr selPostProcessApplicationHandle = Selector.GetHandle("postProcessApplication"); private static readonly IntPtr selSetPostProcessApplication_Handle = Selector.GetHandle("setPostProcessApplication:"); private static readonly IntPtr selCanRotateSelectedItemsLeftHandle = Selector.GetHandle("canRotateSelectedItemsLeft"); private static readonly IntPtr selCanRotateSelectedItemsRightHandle = Selector.GetHandle("canRotateSelectedItemsRight"); private static readonly IntPtr selCanDeleteSelectedItemsHandle = Selector.GetHandle("canDeleteSelectedItems"); private static readonly IntPtr selCanDownloadSelectedItemsHandle = Selector.GetHandle("canDownloadSelectedItems"); private static readonly IntPtr selSelectedIndexesHandle = Selector.GetHandle("selectedIndexes"); private static readonly IntPtr selSelectIndexesByExtendingSelection_Handle = Selector.GetHandle("selectIndexes:byExtendingSelection:"); private static readonly IntPtr selRotateLeft_Handle = Selector.GetHandle("rotateLeft:"); private static readonly IntPtr selRotateRight_Handle = Selector.GetHandle("rotateRight:"); private static readonly IntPtr selDeleteSelectedItems_Handle = Selector.GetHandle("deleteSelectedItems:"); private static readonly IntPtr selDownloadSelectedItems_Handle = Selector.GetHandle("downloadSelectedItems:"); private static readonly IntPtr selDownloadAllItems_Handle = Selector.GetHandle("downloadAllItems:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKCameraDeviceView"); private object __mt_WeakDelegate_var; private object __mt_DownloadsDirectory_var; private object __mt_PostProcessApplication_var; private object __mt_SelectedIndexes_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public IKCameraDeviceViewDelegate Delegate { get { return WeakDelegate as IKCameraDeviceViewDelegate; } set { WeakDelegate = value; } } public virtual bool HasDisplayModeTable { [Export("hasDisplayModeTable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasDisplayModeTableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasDisplayModeTableHandle); } [Export("setHasDisplayModeTable:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasDisplayModeTable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasDisplayModeTable_Handle, value); } } } public virtual bool HasDisplayModeIcon { [Export("hasDisplayModeIcon")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasDisplayModeIconHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasDisplayModeIconHandle); } [Export("setHasDisplayModeIcon:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasDisplayModeIcon_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasDisplayModeIcon_Handle, value); } } } public virtual string DownloadAllControlLabel { [Export("downloadAllControlLabel", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDownloadAllControlLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDownloadAllControlLabelHandle)); } [Export("setDownloadAllControlLabel:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDownloadAllControlLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDownloadAllControlLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string DownloadSelectedControlLabel { [Export("downloadSelectedControlLabel", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDownloadSelectedControlLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDownloadSelectedControlLabelHandle)); } [Export("setDownloadSelectedControlLabel:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDownloadSelectedControlLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDownloadSelectedControlLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int IconSize { [Export("iconSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIconSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIconSizeHandle); } [Export("setIconSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetIconSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetIconSize_Handle, value); } } } public virtual IKCameraDeviceViewTransferMode TransferMode { [Export("transferMode")] get { if (IsDirectBinding) { return (IKCameraDeviceViewTransferMode)Messaging.int_objc_msgSend(base.Handle, selTransferModeHandle); } return (IKCameraDeviceViewTransferMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTransferModeHandle); } [Export("setTransferMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTransferMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTransferMode_Handle, (int)value); } } } public virtual bool DisplaysDownloadsDirectoryControl { [Export("displaysDownloadsDirectoryControl")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysDownloadsDirectoryControlHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysDownloadsDirectoryControlHandle); } [Export("setDisplaysDownloadsDirectoryControl:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysDownloadsDirectoryControl_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysDownloadsDirectoryControl_Handle, value); } } } public virtual NSUrl DownloadsDirectory { [Export("downloadsDirectory", ArgumentSemantic.Retain)] get { return (NSUrl)(__mt_DownloadsDirectory_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDownloadsDirectoryHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDownloadsDirectoryHandle))))); } [Export("setDownloadsDirectory:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDownloadsDirectory_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDownloadsDirectory_Handle, value.Handle); } __mt_DownloadsDirectory_var = value; } } public virtual bool DisplaysPostProcessApplicationControl { [Export("displaysPostProcessApplicationControl")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysPostProcessApplicationControlHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysPostProcessApplicationControlHandle); } [Export("setDisplaysPostProcessApplicationControl:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysPostProcessApplicationControl_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysPostProcessApplicationControl_Handle, value); } } } public virtual NSUrl PostProcessApplication { [Export("postProcessApplication", ArgumentSemantic.Retain)] get { return (NSUrl)(__mt_PostProcessApplication_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPostProcessApplicationHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPostProcessApplicationHandle))))); } [Export("setPostProcessApplication:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPostProcessApplication_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPostProcessApplication_Handle, value.Handle); } __mt_PostProcessApplication_var = value; } } public virtual bool CanRotateSelectedItemsLeft { [Export("canRotateSelectedItemsLeft")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanRotateSelectedItemsLeftHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanRotateSelectedItemsLeftHandle); } } public virtual bool CanRotateSelectedItemsRight { [Export("canRotateSelectedItemsRight")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanRotateSelectedItemsRightHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanRotateSelectedItemsRightHandle); } } public virtual bool CanDeleteSelectedItems { [Export("canDeleteSelectedItems")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanDeleteSelectedItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanDeleteSelectedItemsHandle); } } public virtual bool CanDownloadSelectedItems { [Export("canDownloadSelectedItems")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanDownloadSelectedItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanDownloadSelectedItemsHandle); } } public virtual NSIndexSet SelectedIndexes { [Export("selectedIndexes")] get { return (NSIndexSet)(__mt_SelectedIndexes_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedIndexesHandle))))); } } public event EventHandler SelectionDidChange { add { _IKCameraDeviceViewDelegate iKCameraDeviceViewDelegate = EnsureIKCameraDeviceViewDelegate(); iKCameraDeviceViewDelegate.selectionDidChange = (EventHandler)System.Delegate.Combine(iKCameraDeviceViewDelegate.selectionDidChange, value); } remove { _IKCameraDeviceViewDelegate iKCameraDeviceViewDelegate = EnsureIKCameraDeviceViewDelegate(); iKCameraDeviceViewDelegate.selectionDidChange = (EventHandler)System.Delegate.Remove(iKCameraDeviceViewDelegate.selectionDidChange, value); } } public event EventHandler DidEncounterError { add { _IKCameraDeviceViewDelegate iKCameraDeviceViewDelegate = EnsureIKCameraDeviceViewDelegate(); iKCameraDeviceViewDelegate.didEncounterError = (EventHandler)System.Delegate.Combine(iKCameraDeviceViewDelegate.didEncounterError, value); } remove { _IKCameraDeviceViewDelegate iKCameraDeviceViewDelegate = EnsureIKCameraDeviceViewDelegate(); iKCameraDeviceViewDelegate.didEncounterError = (EventHandler)System.Delegate.Remove(iKCameraDeviceViewDelegate.didEncounterError, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKCameraDeviceView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKCameraDeviceView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKCameraDeviceView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKCameraDeviceView(IntPtr handle) : base(handle) { } [Export("selectIndexes:byExtendingSelection:")] public virtual void SelectItemsAt(NSIndexSet indexes, bool extendSelection) { if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSelectIndexesByExtendingSelection_Handle, indexes.Handle, extendSelection); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSelectIndexesByExtendingSelection_Handle, indexes.Handle, extendSelection); } } [Export("rotateLeft:")] public virtual void RotateLeft(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRotateLeft_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRotateLeft_Handle, sender.Handle); } } [Export("rotateRight:")] public virtual void RotateRight(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRotateRight_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRotateRight_Handle, sender.Handle); } } [Export("deleteSelectedItems:")] public virtual void DeleteSelectedItems(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeleteSelectedItems_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeleteSelectedItems_Handle, sender.Handle); } } [Export("downloadSelectedItems:")] public virtual void DownloadSelectedItems(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDownloadSelectedItems_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDownloadSelectedItems_Handle, sender.Handle); } } [Export("downloadAllItems:")] public virtual void DownloadAllItems(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDownloadAllItems_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDownloadAllItems_Handle, sender.Handle); } } private _IKCameraDeviceViewDelegate EnsureIKCameraDeviceViewDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _IKCameraDeviceViewDelegate)) { nSObject = (WeakDelegate = new _IKCameraDeviceViewDelegate()); } return (_IKCameraDeviceViewDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_DownloadsDirectory_var = null; __mt_PostProcessApplication_var = null; __mt_SelectedIndexes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCameraDeviceViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKCameraDeviceViewDelegate", true)] [Model] public class IKCameraDeviceViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKCameraDeviceViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKCameraDeviceViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKCameraDeviceViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKCameraDeviceViewDelegate(IntPtr handle) : base(handle) { } [Export("cameraDeviceViewSelectionDidChange:")] public virtual void SelectionDidChange(IKCameraDeviceView cameraDeviceView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("cameraDeviceView:didEncounterError:")] public virtual void DidEncounterError(IKCameraDeviceView cameraDeviceView, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCameraDeviceViewDisplayMode.cs ================================================ namespace ImageKit; public enum IKCameraDeviceViewDisplayMode { Table, Icon } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCameraDeviceViewNSErrorEventArgs.cs ================================================ using System; using Foundation; namespace ImageKit; public class IKCameraDeviceViewNSErrorEventArgs : EventArgs { public NSError Error { get; set; } public IKCameraDeviceViewNSErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCameraDeviceViewTransferMode.cs ================================================ namespace ImageKit; public enum IKCameraDeviceViewTransferMode { File, Memory } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKCellsStyle.cs ================================================ using System; namespace ImageKit; [Flags] public enum IKCellsStyle : uint { None = 0u, Shadowed = 1u, Outlined = 2u, Titled = 4u, Subtitled = 8u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKDeviceBrowserView.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKDeviceBrowserView", true)] public class IKDeviceBrowserView : NSView { [Register] private sealed class _IKDeviceBrowserViewDelegate : IKDeviceBrowserViewDelegate { internal EventHandler didEncounterError; [Preserve(Conditional = true)] public override void DidEncounterError(IKDeviceBrowserView deviceBrowserView, NSError error) { EventHandler eventHandler = didEncounterError; if (eventHandler != null) { IKDeviceBrowserViewNSErrorEventArgs e = new IKDeviceBrowserViewNSErrorEventArgs(error); eventHandler(deviceBrowserView, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selDisplaysLocalCamerasHandle = Selector.GetHandle("displaysLocalCameras"); private static readonly IntPtr selSetDisplaysLocalCameras_Handle = Selector.GetHandle("setDisplaysLocalCameras:"); private static readonly IntPtr selDisplaysNetworkCamerasHandle = Selector.GetHandle("displaysNetworkCameras"); private static readonly IntPtr selSetDisplaysNetworkCameras_Handle = Selector.GetHandle("setDisplaysNetworkCameras:"); private static readonly IntPtr selDisplaysLocalScannersHandle = Selector.GetHandle("displaysLocalScanners"); private static readonly IntPtr selSetDisplaysLocalScanners_Handle = Selector.GetHandle("setDisplaysLocalScanners:"); private static readonly IntPtr selDisplaysNetworkScannersHandle = Selector.GetHandle("displaysNetworkScanners"); private static readonly IntPtr selSetDisplaysNetworkScanners_Handle = Selector.GetHandle("setDisplaysNetworkScanners:"); private static readonly IntPtr selModeHandle = Selector.GetHandle("mode"); private static readonly IntPtr selSetMode_Handle = Selector.GetHandle("setMode:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKDeviceBrowserView"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public IKDeviceBrowserViewDelegate Delegate { get { return WeakDelegate as IKDeviceBrowserViewDelegate; } set { WeakDelegate = value; } } public virtual bool DisplaysLocalCameras { [Export("displaysLocalCameras")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysLocalCamerasHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysLocalCamerasHandle); } [Export("setDisplaysLocalCameras:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysLocalCameras_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysLocalCameras_Handle, value); } } } public virtual bool DisplaysNetworkCameras { [Export("displaysNetworkCameras")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysNetworkCamerasHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysNetworkCamerasHandle); } [Export("setDisplaysNetworkCameras:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysNetworkCameras_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysNetworkCameras_Handle, value); } } } public virtual bool DisplaysLocalScanners { [Export("displaysLocalScanners")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysLocalScannersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysLocalScannersHandle); } [Export("setDisplaysLocalScanners:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysLocalScanners_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysLocalScanners_Handle, value); } } } public virtual bool DisplaysNetworkScanners { [Export("displaysNetworkScanners")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysNetworkScannersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysNetworkScannersHandle); } [Export("setDisplaysNetworkScanners:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysNetworkScanners_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysNetworkScanners_Handle, value); } } } public virtual IKDeviceBrowserViewDisplayMode Mode { [Export("mode")] get { if (IsDirectBinding) { return (IKDeviceBrowserViewDisplayMode)Messaging.int_objc_msgSend(base.Handle, selModeHandle); } return (IKDeviceBrowserViewDisplayMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selModeHandle); } [Export("setMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMode_Handle, (int)value); } } } public event EventHandler DidEncounterError { add { _IKDeviceBrowserViewDelegate iKDeviceBrowserViewDelegate = EnsureIKDeviceBrowserViewDelegate(); iKDeviceBrowserViewDelegate.didEncounterError = (EventHandler)System.Delegate.Combine(iKDeviceBrowserViewDelegate.didEncounterError, value); } remove { _IKDeviceBrowserViewDelegate iKDeviceBrowserViewDelegate = EnsureIKDeviceBrowserViewDelegate(); iKDeviceBrowserViewDelegate.didEncounterError = (EventHandler)System.Delegate.Remove(iKDeviceBrowserViewDelegate.didEncounterError, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKDeviceBrowserView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKDeviceBrowserView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKDeviceBrowserView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKDeviceBrowserView(IntPtr handle) : base(handle) { } private _IKDeviceBrowserViewDelegate EnsureIKDeviceBrowserViewDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _IKDeviceBrowserViewDelegate)) { nSObject = (WeakDelegate = new _IKDeviceBrowserViewDelegate()); } return (_IKDeviceBrowserViewDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKDeviceBrowserViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKDeviceBrowserViewDelegate", true)] [Model] public class IKDeviceBrowserViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKDeviceBrowserViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKDeviceBrowserViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKDeviceBrowserViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKDeviceBrowserViewDelegate(IntPtr handle) : base(handle) { } [Export("deviceBrowserView:didEncounterError:")] public virtual void DidEncounterError(IKDeviceBrowserView deviceBrowserView, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKDeviceBrowserViewDisplayMode.cs ================================================ namespace ImageKit; public enum IKDeviceBrowserViewDisplayMode { Table, Outline, Icon } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKDeviceBrowserViewNSErrorEventArgs.cs ================================================ using System; using Foundation; namespace ImageKit; public class IKDeviceBrowserViewNSErrorEventArgs : EventArgs { public NSError Error { get; set; } public IKDeviceBrowserViewNSErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKFilterBrowserPanel.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKFilterBrowserPanel", true)] public class IKFilterBrowserPanel : NSPanel { private static readonly IntPtr selFilterNameHandle = Selector.GetHandle("filterName"); private static readonly IntPtr selFilterBrowserPanelWithStyleMask_Handle = Selector.GetHandle("filterBrowserPanelWithStyleMask:"); private static readonly IntPtr selBeginWithOptionsModelessDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginWithOptions:modelessDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selBeginSheetWithOptionsModalForWindowModalDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginSheetWithOptions:modalForWindow:modalDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selRunModalWithOptions_Handle = Selector.GetHandle("runModalWithOptions:"); private static readonly IntPtr selFilterBrowserViewWithOptions_Handle = Selector.GetHandle("filterBrowserViewWithOptions:"); private static readonly IntPtr selFinish_Handle = Selector.GetHandle("finish:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKFilterBrowserPanel"); private static NSString _FilterSelectedNotification; private static NSString _FilterDoubleClickNotification; private static NSString _WillPreviewFilterNotification; private static NSString _ShowCategories; private static NSString _ShowPreview; private static NSString _ExcludeCategories; private static NSString _ExcludeFilters; private static NSString _DefaultInputImage; public override IntPtr ClassHandle => class_ptr; public virtual string FilterName { [Export("filterName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterNameHandle)); } } [Field("IKFilterBrowserFilterSelectedNotification", "ImageKit")] public static NSString FilterSelectedNotification { get { if (_FilterSelectedNotification == null) { _FilterSelectedNotification = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserFilterSelectedNotification"); } return _FilterSelectedNotification; } } [Field("IKFilterBrowserFilterDoubleClickNotification", "ImageKit")] public static NSString FilterDoubleClickNotification { get { if (_FilterDoubleClickNotification == null) { _FilterDoubleClickNotification = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserFilterDoubleClickNotification"); } return _FilterDoubleClickNotification; } } [Field("IKFilterBrowserWillPreviewFilterNotification", "ImageKit")] public static NSString WillPreviewFilterNotification { get { if (_WillPreviewFilterNotification == null) { _WillPreviewFilterNotification = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserWillPreviewFilterNotification"); } return _WillPreviewFilterNotification; } } [Field("IKFilterBrowserShowCategories", "ImageKit")] public static NSString ShowCategories { get { if (_ShowCategories == null) { _ShowCategories = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserShowCategories"); } return _ShowCategories; } } [Field("IKFilterBrowserShowPreview", "ImageKit")] public static NSString ShowPreview { get { if (_ShowPreview == null) { _ShowPreview = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserShowPreview"); } return _ShowPreview; } } [Field("IKFilterBrowserExcludeCategories", "ImageKit")] public static NSString ExcludeCategories { get { if (_ExcludeCategories == null) { _ExcludeCategories = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserExcludeCategories"); } return _ExcludeCategories; } } [Field("IKFilterBrowserExcludeFilters", "ImageKit")] public static NSString ExcludeFilters { get { if (_ExcludeFilters == null) { _ExcludeFilters = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserExcludeFilters"); } return _ExcludeFilters; } } [Field("IKFilterBrowserDefaultInputImage", "ImageKit")] public static NSString DefaultInputImage { get { if (_DefaultInputImage == null) { _DefaultInputImage = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKFilterBrowserDefaultInputImage"); } return _DefaultInputImage; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKFilterBrowserPanel() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKFilterBrowserPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterBrowserPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterBrowserPanel(IntPtr handle) : base(handle) { } [Export("filterBrowserPanelWithStyleMask:")] public IKFilterBrowserPanel(IKFilterBrowserPanelStyleMask styleMask) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selFilterBrowserPanelWithStyleMask_Handle, (int)styleMask); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selFilterBrowserPanelWithStyleMask_Handle, (int)styleMask); } } [Export("beginWithOptions:modelessDelegate:didEndSelector:contextInfo:")] public virtual void Begin(NSDictionary options, NSObject modelessDelegate, Selector didEndSelector, IntPtr contextInfo) { if (options == null) { throw new ArgumentNullException("options"); } if (modelessDelegate == null) { throw new ArgumentNullException("modelessDelegate"); } if (didEndSelector == null) { throw new ArgumentNullException("didEndSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginWithOptionsModelessDelegateDidEndSelectorContextInfo_Handle, options.Handle, modelessDelegate.Handle, didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginWithOptionsModelessDelegateDidEndSelectorContextInfo_Handle, options.Handle, modelessDelegate.Handle, didEndSelector.Handle, contextInfo); } } [Export("beginSheetWithOptions:modalForWindow:modalDelegate:didEndSelector:contextInfo:")] public virtual void BeginSheet(NSDictionary options, NSWindow docWindow, NSObject modalDelegate, Selector didEndSelector, IntPtr contextInfo) { if (options == null) { throw new ArgumentNullException("options"); } if (docWindow == null) { throw new ArgumentNullException("docWindow"); } if (modalDelegate == null) { throw new ArgumentNullException("modalDelegate"); } if (didEndSelector == null) { throw new ArgumentNullException("didEndSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginSheetWithOptionsModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, options.Handle, docWindow.Handle, modalDelegate.Handle, didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginSheetWithOptionsModalForWindowModalDelegateDidEndSelectorContextInfo_Handle, options.Handle, docWindow.Handle, modalDelegate.Handle, didEndSelector.Handle, contextInfo); } } [Export("runModalWithOptions:")] public virtual int RunModal(NSDictionary options) { if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return Messaging.int_objc_msgSend_IntPtr(base.Handle, selRunModalWithOptions_Handle, options.Handle); } return Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selRunModalWithOptions_Handle, options.Handle); } [Export("filterBrowserViewWithOptions:")] public virtual IKFilterBrowserView FilterBrowserView(NSDictionary options) { if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return (IKFilterBrowserView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFilterBrowserViewWithOptions_Handle, options.Handle)); } return (IKFilterBrowserView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFilterBrowserViewWithOptions_Handle, options.Handle)); } [Export("finish:")] public virtual void Finish(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFinish_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFinish_Handle, sender.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKFilterBrowserPanelStyleMask.cs ================================================ using System; namespace ImageKit; [Flags] public enum IKFilterBrowserPanelStyleMask { Normal = 0, Textured = 0x100 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKFilterBrowserView.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKFilterBrowserView", true)] public class IKFilterBrowserView : NSView { private static readonly IntPtr selFilterNameHandle = Selector.GetHandle("filterName"); private static readonly IntPtr selSetPreviewState_Handle = Selector.GetHandle("setPreviewState:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKFilterBrowserView"); public override IntPtr ClassHandle => class_ptr; public virtual string FilterName { [Export("filterName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterNameHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKFilterBrowserView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKFilterBrowserView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterBrowserView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterBrowserView(IntPtr handle) : base(handle) { } [Export("setPreviewState:")] public virtual void SetPreviewState(bool showPreview) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreviewState_Handle, showPreview); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreviewState_Handle, showPreview); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKFilterCustomUIProvider.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKFilterCustomUIProvider", true)] [Model] public abstract class IKFilterCustomUIProvider : NSObject { private static NSString _SizeFlavor; private static NSString _SizeMini; private static NSString _SizeSmall; private static NSString _SizeRegular; private static NSString _MaxSize; private static NSString _FlavorAllowFallback; [Field("IKUISizeFlavor", "ImageKit")] public static NSString SizeFlavor { get { if (_SizeFlavor == null) { _SizeFlavor = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUISizeFlavor"); } return _SizeFlavor; } } [Field("IKUISizeMini", "ImageKit")] public static NSString SizeMini { get { if (_SizeMini == null) { _SizeMini = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUISizeMini"); } return _SizeMini; } } [Field("IKUISizeSmall", "ImageKit")] public static NSString SizeSmall { get { if (_SizeSmall == null) { _SizeSmall = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUISizeSmall"); } return _SizeSmall; } } [Field("IKUISizeRegular", "ImageKit")] public static NSString SizeRegular { get { if (_SizeRegular == null) { _SizeRegular = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUISizeRegular"); } return _SizeRegular; } } [Field("IKUImaxSize", "ImageKit")] public static NSString MaxSize { get { if (_MaxSize == null) { _MaxSize = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUImaxSize"); } return _MaxSize; } } [Field("IKUIFlavorAllowFallback", "ImageKit")] public static NSString FlavorAllowFallback { get { if (_FlavorAllowFallback == null) { _FlavorAllowFallback = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKUIFlavorAllowFallback"); } return _FlavorAllowFallback; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKFilterCustomUIProvider() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKFilterCustomUIProvider(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterCustomUIProvider(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterCustomUIProvider(IntPtr handle) : base(handle) { } [Export("provideViewForUIConfiguration:excludedKeys:")] public abstract IKFilterUIView GetFilterUIView(NSDictionary configurationOptions, NSArray excludedKeys); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKFilterUIView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKFilterUIView", true)] public class IKFilterUIView : NSView { private static readonly IntPtr selFilterHandle = Selector.GetHandle("filter"); private static readonly IntPtr selObjectControllerHandle = Selector.GetHandle("objectController"); private static readonly IntPtr selInitWithFrameFilter_Handle = Selector.GetHandle("initWithFrame:filter:"); private static readonly IntPtr selViewForUIConfigurationExcludedKeys_Handle = Selector.GetHandle("viewForUIConfiguration:excludedKeys:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKFilterUIView"); private object __mt_Filter_var; private object __mt_ObjectController_var; public override IntPtr ClassHandle => class_ptr; public virtual CIFilter Filter { [Export("filter")] get { return (CIFilter)(__mt_Filter_var = ((!IsDirectBinding) ? ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterHandle))) : ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterHandle))))); } } public virtual NSObjectController ObjectController { [Export("objectController")] get { return (NSObjectController)(__mt_ObjectController_var = ((!IsDirectBinding) ? ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selObjectControllerHandle))) : ((NSObjectController)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selObjectControllerHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKFilterUIView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKFilterUIView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterUIView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKFilterUIView(IntPtr handle) : base(handle) { } [Export("initWithFrame:filter:")] public IKFilterUIView(CGRect frame, CIFilter filter) : base(NSObjectFlag.Empty) { if (filter == null) { throw new ArgumentNullException("filter"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(base.Handle, selInitWithFrameFilter_Handle, frame, filter.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selInitWithFrameFilter_Handle, frame, filter.Handle); } } [Export("viewForUIConfiguration:excludedKeys:")] public virtual IKFilterUIView GetFilterUIView(CIFilter filter, NSDictionary configurationOptions, NSArray excludedKeys) { if (filter == null) { throw new ArgumentNullException("filter"); } if (configurationOptions == null) { throw new ArgumentNullException("configurationOptions"); } if (IsDirectBinding) { return (IKFilterUIView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(filter.Handle, selViewForUIConfigurationExcludedKeys_Handle, configurationOptions.Handle, excludedKeys?.Handle ?? IntPtr.Zero)); } return (IKFilterUIView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selViewForUIConfigurationExcludedKeys_Handle, configurationOptions.Handle, excludedKeys?.Handle ?? IntPtr.Zero)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Filter_var = null; __mt_ObjectController_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKGroupStyle.cs ================================================ namespace ImageKit; public enum IKGroupStyle { Bezel, Disclosure } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserCell.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreAnimation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageBrowserCell", true)] public class IKImageBrowserCell : NSObject { private static readonly IntPtr selImageBrowserViewHandle = Selector.GetHandle("imageBrowserView"); private static readonly IntPtr selRepresentedItemHandle = Selector.GetHandle("representedItem"); private static readonly IntPtr selIndexOfRepresentedItemHandle = Selector.GetHandle("indexOfRepresentedItem"); private static readonly IntPtr selFrameHandle = Selector.GetHandle("frame"); private static readonly IntPtr selImageContainerFrameHandle = Selector.GetHandle("imageContainerFrame"); private static readonly IntPtr selImageFrameHandle = Selector.GetHandle("imageFrame"); private static readonly IntPtr selSelectionFrameHandle = Selector.GetHandle("selectionFrame"); private static readonly IntPtr selTitleFrameHandle = Selector.GetHandle("titleFrame"); private static readonly IntPtr selSubtitleFrameHandle = Selector.GetHandle("subtitleFrame"); private static readonly IntPtr selImageAlignmentHandle = Selector.GetHandle("imageAlignment"); private static readonly IntPtr selIsSelectedHandle = Selector.GetHandle("isSelected"); private static readonly IntPtr selCellStateHandle = Selector.GetHandle("cellState"); private static readonly IntPtr selOpacityHandle = Selector.GetHandle("opacity"); private static readonly IntPtr selLayerForType_Handle = Selector.GetHandle("layerForType:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKImageBrowserCell"); private object __mt_ImageBrowserView_var; private object __mt_RepresentedItem_var; private static NSString _BackgroundLayer; private static NSString _ForegroundLayer; private static NSString _SelectionLayer; private static NSString _PlaceHolderLayer; public override IntPtr ClassHandle => class_ptr; public virtual IKImageBrowserView ImageBrowserView { [Export("imageBrowserView")] get { return (IKImageBrowserView)(__mt_ImageBrowserView_var = ((!IsDirectBinding) ? ((IKImageBrowserView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageBrowserViewHandle))) : ((IKImageBrowserView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageBrowserViewHandle))))); } } public virtual NSObject RepresentedItem { [Export("representedItem")] get { return (NSObject)(__mt_RepresentedItem_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentedItemHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentedItemHandle)))); } } public virtual int IndexOfRepresentedItem { [Export("indexOfRepresentedItem")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIndexOfRepresentedItemHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIndexOfRepresentedItemHandle); } } public virtual CGRect Frame { [Export("frame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selFrameHandle); } return retval; } } public virtual CGRect ImageContainerFrame { [Export("imageContainerFrame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selImageContainerFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selImageContainerFrameHandle); } return retval; } } public virtual CGRect ImageFrame { [Export("imageFrame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selImageFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selImageFrameHandle); } return retval; } } public virtual CGRect SelectionFrame { [Export("selectionFrame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selSelectionFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selSelectionFrameHandle); } return retval; } } public virtual CGRect TitleFrame { [Export("titleFrame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selTitleFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selTitleFrameHandle); } return retval; } } public virtual CGRect SubtitleFrame { [Export("subtitleFrame")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selSubtitleFrameHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selSubtitleFrameHandle); } return retval; } } public virtual NSImageAlignment ImageAlignment { [Export("imageAlignment")] get { if (IsDirectBinding) { return (NSImageAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selImageAlignmentHandle); } return (NSImageAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selImageAlignmentHandle); } } public virtual bool IsSelected { [Export("isSelected")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSelectedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSelectedHandle); } } public virtual IKImageBrowserCellState CellState { [Export("cellState")] get { if (IsDirectBinding) { return (IKImageBrowserCellState)Messaging.int_objc_msgSend(base.Handle, selCellStateHandle); } return (IKImageBrowserCellState)Messaging.int_objc_msgSendSuper(base.SuperHandle, selCellStateHandle); } } public virtual double Opacity { [Export("opacity")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selOpacityHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selOpacityHandle); } } [Field("IKImageBrowserCellBackgroundLayer", "ImageKit")] public static NSString BackgroundLayer { get { if (_BackgroundLayer == null) { _BackgroundLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellBackgroundLayer"); } return _BackgroundLayer; } } [Field("IKImageBrowserCellForegroundLayer", "ImageKit")] public static NSString ForegroundLayer { get { if (_ForegroundLayer == null) { _ForegroundLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellForegroundLayer"); } return _ForegroundLayer; } } [Field("IKImageBrowserCellSelectionLayer", "ImageKit")] public static NSString SelectionLayer { get { if (_SelectionLayer == null) { _SelectionLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellSelectionLayer"); } return _SelectionLayer; } } [Field("IKImageBrowserCellPlaceHolderLayer", "ImageKit")] public static NSString PlaceHolderLayer { get { if (_PlaceHolderLayer == null) { _PlaceHolderLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellPlaceHolderLayer"); } return _PlaceHolderLayer; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageBrowserCell() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageBrowserCell(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserCell(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserCell(IntPtr handle) : base(handle) { } [Export("layerForType:")] public virtual CALayer Layer(string layerType) { if (layerType == null) { throw new ArgumentNullException("layerType"); } IntPtr arg = NSString.CreateNative(layerType); CALayer result = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLayerForType_Handle, arg))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLayerForType_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ImageBrowserView_var = null; __mt_RepresentedItem_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserCellState.cs ================================================ namespace ImageKit; public enum IKImageBrowserCellState { NoImage, Invalid, Ready } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserDataSource.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageBrowserDataSource", true)] [Model] public abstract class IKImageBrowserDataSource : NSObject { private static NSString _GroupRangeKey; private static NSString _GroupBackgroundColorKey; private static NSString _GroupTitleKey; private static NSString _GroupStyleKey; private static NSString _GroupHeaderLayer; private static NSString _GroupFooterLayer; [Field("IKImageBrowserGroupRangeKey", "ImageKit")] public static NSString GroupRangeKey { get { if (_GroupRangeKey == null) { _GroupRangeKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupRangeKey"); } return _GroupRangeKey; } } [Field("IKImageBrowserGroupBackgroundColorKey", "ImageKit")] public static NSString GroupBackgroundColorKey { get { if (_GroupBackgroundColorKey == null) { _GroupBackgroundColorKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupBackgroundColorKey"); } return _GroupBackgroundColorKey; } } [Field("IKImageBrowserGroupTitleKey", "ImageKit")] public static NSString GroupTitleKey { get { if (_GroupTitleKey == null) { _GroupTitleKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupTitleKey"); } return _GroupTitleKey; } } [Field("IKImageBrowserGroupStyleKey", "ImageKit")] public static NSString GroupStyleKey { get { if (_GroupStyleKey == null) { _GroupStyleKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupStyleKey"); } return _GroupStyleKey; } } [Field("IKImageBrowserGroupHeaderLayer", "ImageKit")] public static NSString GroupHeaderLayer { get { if (_GroupHeaderLayer == null) { _GroupHeaderLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupHeaderLayer"); } return _GroupHeaderLayer; } } [Field("IKImageBrowserGroupFooterLayer", "ImageKit")] public static NSString GroupFooterLayer { get { if (_GroupFooterLayer == null) { _GroupFooterLayer = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserGroupFooterLayer"); } return _GroupFooterLayer; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageBrowserDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageBrowserDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserDataSource(IntPtr handle) : base(handle) { } [Export("numberOfItemsInImageBrowser:")] public abstract int ItemCount(IKImageBrowserView aBrowser); [Export("imageBrowser:itemAtIndex:")] public abstract IKImageBrowserItem GetItem(IKImageBrowserView aBrowser, int index); [Export("imageBrowser:removeItemsAtIndexes:")] public virtual void RemoveItems(IKImageBrowserView aBrowser, NSIndexSet indexes) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:moveItemsAtIndexes:toIndex:")] public virtual bool MoveItems(IKImageBrowserView aBrowser, NSIndexSet indexes, int destinationIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:writeItemsAtIndexes:toPasteboard:")] public virtual int WriteItemsToPasteboard(IKImageBrowserView aBrowser, NSIndexSet itemIndexes, NSPasteboard pasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("numberOfGroupsInImageBrowser:")] public virtual int GroupCount(IKImageBrowserView aBrowser) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:groupAtIndex:")] public virtual NSDictionary GetGroup(IKImageBrowserView aBrowser, int index) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserDelegate.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageBrowserDelegate", true)] [Model] public class IKImageBrowserDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageBrowserDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageBrowserDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserDelegate(IntPtr handle) : base(handle) { } [Export("imageBrowserSelectionDidChange:")] public virtual void SelectionDidChange(IKImageBrowserView browser) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:cellWasDoubleClickedAtIndex:")] public virtual void CellWasDoubleClicked(IKImageBrowserView browser, int index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:cellWasRightClickedAtIndex:withEvent:")] public virtual void CellWasRightClicked(IKImageBrowserView browser, int index, NSEvent nsevent) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("imageBrowser:backgroundWasRightClickedWithEvent:")] public virtual void BackgroundWasRightClicked(IKImageBrowserView browser, NSEvent nsevent) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserDropOperation.cs ================================================ namespace ImageKit; public enum IKImageBrowserDropOperation { On, Before } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserItem.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageBrowserItem", true)] [Model] public abstract class IKImageBrowserItem : NSObject { private static NSString _PathRepresentationType; private static NSString _NSURLRepresentationType; private static NSString _NSImageRepresentationType; private static NSString _CGImageRepresentationType; private static NSString _CGImageSourceRepresentationType; private static NSString _NSDataRepresentationType; private static NSString _NSBitmapImageRepresentationType; private static NSString _QTMovieRepresentationType; private static NSString _QTMoviePathRepresentationType; private static NSString _QCCompositionRepresentationType; private static NSString _QCCompositionPathRepresentationType; private static NSString _QuickLookPathRepresentationType; private static NSString _IconRefPathRepresentationType; private static NSString _IconRefRepresentationType; private static NSString _PDFPageRepresentationType; public abstract string ImageUID { [Export("imageUID")] get; } public abstract NSString ImageRepresentationType { [Export("imageRepresentationType")] get; } public abstract NSObject ImageRepresentation { [Export("imageRepresentation")] get; } public virtual int ImageVersion { [Export("imageVersion")] get { throw new ModelNotImplementedException(); } } public virtual string ImageTitle { [Export("imageTitle")] get { throw new ModelNotImplementedException(); } } public virtual string ImageSubtitle { [Export("imageSubtitle")] get { throw new ModelNotImplementedException(); } } public virtual bool IsSelectable { [Export("isSelectable")] get { throw new ModelNotImplementedException(); } } [Field("IKImageBrowserPathRepresentationType", "ImageKit")] public static NSString PathRepresentationType { get { if (_PathRepresentationType == null) { _PathRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserPathRepresentationType"); } return _PathRepresentationType; } } [Field("IKImageBrowserNSURLRepresentationType", "ImageKit")] public static NSString NSURLRepresentationType { get { if (_NSURLRepresentationType == null) { _NSURLRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserNSURLRepresentationType"); } return _NSURLRepresentationType; } } [Field("IKImageBrowserNSImageRepresentationType", "ImageKit")] public static NSString NSImageRepresentationType { get { if (_NSImageRepresentationType == null) { _NSImageRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserNSImageRepresentationType"); } return _NSImageRepresentationType; } } [Field("IKImageBrowserCGImageRepresentationType", "ImageKit")] public static NSString CGImageRepresentationType { get { if (_CGImageRepresentationType == null) { _CGImageRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCGImageRepresentationType"); } return _CGImageRepresentationType; } } [Field("IKImageBrowserCGImageSourceRepresentationType", "ImageKit")] public static NSString CGImageSourceRepresentationType { get { if (_CGImageSourceRepresentationType == null) { _CGImageSourceRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCGImageSourceRepresentationType"); } return _CGImageSourceRepresentationType; } } [Field("IKImageBrowserNSDataRepresentationType", "ImageKit")] public static NSString NSDataRepresentationType { get { if (_NSDataRepresentationType == null) { _NSDataRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserNSDataRepresentationType"); } return _NSDataRepresentationType; } } [Field("IKImageBrowserNSBitmapImageRepresentationType", "ImageKit")] public static NSString NSBitmapImageRepresentationType { get { if (_NSBitmapImageRepresentationType == null) { _NSBitmapImageRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserNSBitmapImageRepresentationType"); } return _NSBitmapImageRepresentationType; } } [Field("IKImageBrowserQTMovieRepresentationType", "ImageKit")] public static NSString QTMovieRepresentationType { get { if (_QTMovieRepresentationType == null) { _QTMovieRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserQTMovieRepresentationType"); } return _QTMovieRepresentationType; } } [Field("IKImageBrowserQTMoviePathRepresentationType", "ImageKit")] public static NSString QTMoviePathRepresentationType { get { if (_QTMoviePathRepresentationType == null) { _QTMoviePathRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserQTMoviePathRepresentationType"); } return _QTMoviePathRepresentationType; } } [Field("IKImageBrowserQCCompositionRepresentationType", "ImageKit")] public static NSString QCCompositionRepresentationType { get { if (_QCCompositionRepresentationType == null) { _QCCompositionRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserQCCompositionRepresentationType"); } return _QCCompositionRepresentationType; } } [Field("IKImageBrowserQCCompositionPathRepresentationType", "ImageKit")] public static NSString QCCompositionPathRepresentationType { get { if (_QCCompositionPathRepresentationType == null) { _QCCompositionPathRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserQCCompositionPathRepresentationType"); } return _QCCompositionPathRepresentationType; } } [Field("IKImageBrowserQuickLookPathRepresentationType", "ImageKit")] public static NSString QuickLookPathRepresentationType { get { if (_QuickLookPathRepresentationType == null) { _QuickLookPathRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserQuickLookPathRepresentationType"); } return _QuickLookPathRepresentationType; } } [Field("IKImageBrowserIconRefPathRepresentationType", "ImageKit")] public static NSString IconRefPathRepresentationType { get { if (_IconRefPathRepresentationType == null) { _IconRefPathRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserIconRefPathRepresentationType"); } return _IconRefPathRepresentationType; } } [Field("IKImageBrowserIconRefRepresentationType", "ImageKit")] public static NSString IconRefRepresentationType { get { if (_IconRefRepresentationType == null) { _IconRefRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserIconRefRepresentationType"); } return _IconRefRepresentationType; } } [Field("IKImageBrowserPDFPageRepresentationType", "ImageKit")] public static NSString PDFPageRepresentationType { get { if (_PDFPageRepresentationType == null) { _PDFPageRepresentationType = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserPDFPageRepresentationType"); } return _PDFPageRepresentationType; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageBrowserItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageBrowserItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserItem(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreAnimation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageBrowserView", true)] public class IKImageBrowserView : NSView { [Register] private sealed class _IKImageBrowserDelegate : IKImageBrowserDelegate { internal EventHandler selectionDidChange; internal EventHandler cellWasDoubleClicked; internal EventHandler cellWasRightClicked; internal EventHandler backgroundWasRightClicked; [Preserve(Conditional = true)] public override void SelectionDidChange(IKImageBrowserView browser) { selectionDidChange?.Invoke(browser, EventArgs.Empty); } [Preserve(Conditional = true)] public override void CellWasDoubleClicked(IKImageBrowserView browser, int index) { EventHandler eventHandler = cellWasDoubleClicked; if (eventHandler != null) { IKImageBrowserViewIndexEventArgs e = new IKImageBrowserViewIndexEventArgs(index); eventHandler(browser, e); } } [Preserve(Conditional = true)] public override void CellWasRightClicked(IKImageBrowserView browser, int index, NSEvent nsevent) { EventHandler eventHandler = cellWasRightClicked; if (eventHandler != null) { IKImageBrowserViewIndexEventEventArgs e = new IKImageBrowserViewIndexEventEventArgs(index, nsevent); eventHandler(browser, e); } } [Preserve(Conditional = true)] public override void BackgroundWasRightClicked(IKImageBrowserView browser, NSEvent nsevent) { EventHandler eventHandler = backgroundWasRightClicked; if (eventHandler != null) { IKImageBrowserViewEventEventArgs e = new IKImageBrowserViewEventEventArgs(nsevent); eventHandler(browser, e); } } } private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selCellsStyleMaskHandle = Selector.GetHandle("cellsStyleMask"); private static readonly IntPtr selSetCellsStyleMask_Handle = Selector.GetHandle("setCellsStyleMask:"); private static readonly IntPtr selConstrainsToOriginalSizeHandle = Selector.GetHandle("constrainsToOriginalSize"); private static readonly IntPtr selSetConstrainsToOriginalSize_Handle = Selector.GetHandle("setConstrainsToOriginalSize:"); private static readonly IntPtr selBackgroundLayerHandle = Selector.GetHandle("backgroundLayer"); private static readonly IntPtr selSetBackgroundLayer_Handle = Selector.GetHandle("setBackgroundLayer:"); private static readonly IntPtr selForegroundLayerHandle = Selector.GetHandle("foregroundLayer"); private static readonly IntPtr selSetForegroundLayer_Handle = Selector.GetHandle("setForegroundLayer:"); private static readonly IntPtr selZoomValueHandle = Selector.GetHandle("zoomValue"); private static readonly IntPtr selSetZoomValue_Handle = Selector.GetHandle("setZoomValue:"); private static readonly IntPtr selContentResizingMaskHandle = Selector.GetHandle("contentResizingMask"); private static readonly IntPtr selSetContentResizingMask_Handle = Selector.GetHandle("setContentResizingMask:"); private static readonly IntPtr selCellSizeHandle = Selector.GetHandle("cellSize"); private static readonly IntPtr selSetCellSize_Handle = Selector.GetHandle("setCellSize:"); private static readonly IntPtr selIntercellSpacingHandle = Selector.GetHandle("intercellSpacing"); private static readonly IntPtr selSetIntercellSpacing_Handle = Selector.GetHandle("setIntercellSpacing:"); private static readonly IntPtr selNumberOfRowsHandle = Selector.GetHandle("numberOfRows"); private static readonly IntPtr selNumberOfColumnsHandle = Selector.GetHandle("numberOfColumns"); private static readonly IntPtr selCanControlQuickLookPanelHandle = Selector.GetHandle("canControlQuickLookPanel"); private static readonly IntPtr selSetCanControlQuickLookPanel_Handle = Selector.GetHandle("setCanControlQuickLookPanel:"); private static readonly IntPtr selSelectionIndexesHandle = Selector.GetHandle("selectionIndexes"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selAllowsEmptySelectionHandle = Selector.GetHandle("allowsEmptySelection"); private static readonly IntPtr selSetAllowsEmptySelection_Handle = Selector.GetHandle("setAllowsEmptySelection:"); private static readonly IntPtr selAllowsReorderingHandle = Selector.GetHandle("allowsReordering"); private static readonly IntPtr selSetAllowsReordering_Handle = Selector.GetHandle("setAllowsReordering:"); private static readonly IntPtr selAnimatesHandle = Selector.GetHandle("animates"); private static readonly IntPtr selSetAnimates_Handle = Selector.GetHandle("setAnimates:"); private static readonly IntPtr selDraggingDestinationDelegateHandle = Selector.GetHandle("draggingDestinationDelegate"); private static readonly IntPtr selSetDraggingDestinationDelegate_Handle = Selector.GetHandle("setDraggingDestinationDelegate:"); private static readonly IntPtr selAllowsDroppingOnItemsHandle = Selector.GetHandle("allowsDroppingOnItems"); private static readonly IntPtr selSetAllowsDroppingOnItems_Handle = Selector.GetHandle("setAllowsDroppingOnItems:"); private static readonly IntPtr selInitWithFrame_Handle = Selector.GetHandle("initWithFrame:"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr selNewCellForRepresentedItem_Handle = Selector.GetHandle("newCellForRepresentedItem:"); private static readonly IntPtr selCellForItemAtIndex_Handle = Selector.GetHandle("cellForItemAtIndex:"); private static readonly IntPtr selScrollIndexToVisible_Handle = Selector.GetHandle("scrollIndexToVisible:"); private static readonly IntPtr selIndexOfItemAtPoint_Handle = Selector.GetHandle("indexOfItemAtPoint:"); private static readonly IntPtr selItemFrameAtIndex_Handle = Selector.GetHandle("itemFrameAtIndex:"); private static readonly IntPtr selVisibleItemIndexesHandle = Selector.GetHandle("visibleItemIndexes"); private static readonly IntPtr selRowIndexesInRect_Handle = Selector.GetHandle("rowIndexesInRect:"); private static readonly IntPtr selColumnIndexesInRect_Handle = Selector.GetHandle("columnIndexesInRect:"); private static readonly IntPtr selRectOfColumn_Handle = Selector.GetHandle("rectOfColumn:"); private static readonly IntPtr selRectOfRow_Handle = Selector.GetHandle("rectOfRow:"); private static readonly IntPtr selSetSelectionIndexesByExtendingSelection_Handle = Selector.GetHandle("setSelectionIndexes:byExtendingSelection:"); private static readonly IntPtr selExpandGroupAtIndex_Handle = Selector.GetHandle("expandGroupAtIndex:"); private static readonly IntPtr selCollapseGroupAtIndex_Handle = Selector.GetHandle("collapseGroupAtIndex:"); private static readonly IntPtr selIsGroupExpandedAtIndex_Handle = Selector.GetHandle("isGroupExpandedAtIndex:"); private static readonly IntPtr selIndexAtLocationOfDroppedItemHandle = Selector.GetHandle("indexAtLocationOfDroppedItem"); private static readonly IntPtr selDropOperationHandle = Selector.GetHandle("dropOperation"); private static readonly IntPtr selSetDropIndexDropOperation_Handle = Selector.GetHandle("setDropIndex:dropOperation:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKImageBrowserView"); private object __mt_WeakDataSource_var; private object __mt_WeakDelegate_var; private object __mt_BackgroundLayer_var; private object __mt_ForegroundLayer_var; private object __mt_SelectionIndexes_var; private object __mt_DraggingDestinationDelegate_var; private static NSString _BackgroundColorKey; private static NSString _SelectionColorKey; private static NSString _CellsOutlineColorKey; private static NSString _CellsTitleAttributesKey; private static NSString _CellsHighlightedTitleAttributesKey; private static NSString _CellsSubtitleAttributesKey; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDataSource { [Export("dataSource", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDataSource_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle)))); } [Export("setDataSource:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDataSource_var = value; } } public IKImageBrowserDataSource DataSource { get { return WeakDataSource as IKImageBrowserDataSource; } set { WeakDataSource = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public IKImageBrowserDelegate Delegate { get { return WeakDelegate as IKImageBrowserDelegate; } set { WeakDelegate = value; } } public virtual IKCellsStyle CellsStyleMask { [Export("cellsStyleMask")] get { if (IsDirectBinding) { return (IKCellsStyle)Messaging.UInt32_objc_msgSend(base.Handle, selCellsStyleMaskHandle); } return (IKCellsStyle)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selCellsStyleMaskHandle); } [Export("setCellsStyleMask:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetCellsStyleMask_Handle, (uint)value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetCellsStyleMask_Handle, (uint)value); } } } public virtual bool ConstrainsToOriginalSize { [Export("constrainsToOriginalSize")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selConstrainsToOriginalSizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selConstrainsToOriginalSizeHandle); } [Export("setConstrainsToOriginalSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetConstrainsToOriginalSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetConstrainsToOriginalSize_Handle, value); } } } public virtual CALayer BackgroundLayer { [Export("backgroundLayer")] get { return (CALayer)(__mt_BackgroundLayer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundLayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundLayerHandle))))); } [Export("setBackgroundLayer:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundLayer_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundLayer_Handle, value.Handle); } __mt_BackgroundLayer_var = value; } } public virtual CALayer ForegroundLayer { [Export("foregroundLayer")] get { return (CALayer)(__mt_ForegroundLayer_var = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selForegroundLayerHandle))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selForegroundLayerHandle))))); } [Export("setForegroundLayer:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetForegroundLayer_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetForegroundLayer_Handle, value.Handle); } __mt_ForegroundLayer_var = value; } } public virtual float ZoomValue { [Export("zoomValue")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selZoomValueHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selZoomValueHandle); } [Export("setZoomValue:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetZoomValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetZoomValue_Handle, value); } } } public virtual NSViewResizingMask ContentResizingMask { [Export("contentResizingMask")] get { if (IsDirectBinding) { return (NSViewResizingMask)Messaging.UInt64_objc_msgSend(base.Handle, selContentResizingMaskHandle); } return (NSViewResizingMask)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selContentResizingMaskHandle); } [Export("setContentResizingMask:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetContentResizingMask_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetContentResizingMask_Handle, (ulong)value); } } } public virtual CGSize CellSize { [Export("cellSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selCellSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selCellSizeHandle); } [Export("setCellSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetCellSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetCellSize_Handle, value); } } } public virtual CGSize IntercellSpacing { [Export("intercellSpacing")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selIntercellSpacingHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selIntercellSpacingHandle); } [Export("setIntercellSpacing:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetIntercellSpacing_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetIntercellSpacing_Handle, value); } } } public virtual ulong RowCount { [Export("numberOfRows")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selNumberOfRowsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNumberOfRowsHandle); } } public virtual ulong ColumnCount { [Export("numberOfColumns")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selNumberOfColumnsHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNumberOfColumnsHandle); } } public virtual bool CanControlQuickLookPanel { [Export("canControlQuickLookPanel")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanControlQuickLookPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanControlQuickLookPanelHandle); } [Export("setCanControlQuickLookPanel:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCanControlQuickLookPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCanControlQuickLookPanel_Handle, value); } } } public virtual NSIndexSet SelectionIndexes { [Export("selectionIndexes")] get { return (NSIndexSet)(__mt_SelectionIndexes_var = ((!IsDirectBinding) ? ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionIndexesHandle))) : ((NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionIndexesHandle))))); } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual bool AllowsEmptySelection { [Export("allowsEmptySelection")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsEmptySelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsEmptySelectionHandle); } [Export("setAllowsEmptySelection:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsEmptySelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsEmptySelection_Handle, value); } } } public virtual bool AllowsReordering { [Export("allowsReordering")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsReorderingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsReorderingHandle); } [Export("setAllowsReordering:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsReordering_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsReordering_Handle, value); } } } public virtual bool Animates { [Export("animates")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAnimatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAnimatesHandle); } [Export("setAnimates:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAnimates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAnimates_Handle, value); } } } public virtual NSDraggingDestination DraggingDestinationDelegate { [Export("draggingDestinationDelegate")] get { return (NSDraggingDestination)(__mt_DraggingDestinationDelegate_var = ((!IsDirectBinding) ? ((NSDraggingDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDraggingDestinationDelegateHandle))) : ((NSDraggingDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDraggingDestinationDelegateHandle))))); } [Export("setDraggingDestinationDelegate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDraggingDestinationDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDraggingDestinationDelegate_Handle, value.Handle); } __mt_DraggingDestinationDelegate_var = value; } } public virtual bool AllowsDroppingOnItems { [Export("allowsDroppingOnItems")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDroppingOnItemsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDroppingOnItemsHandle); } [Export("setAllowsDroppingOnItems:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsDroppingOnItems_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsDroppingOnItems_Handle, value); } } } [Field("IKImageBrowserBackgroundColorKey", "ImageKit")] public static NSString BackgroundColorKey { get { if (_BackgroundColorKey == null) { _BackgroundColorKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserBackgroundColorKey"); } return _BackgroundColorKey; } } [Field("IKImageBrowserSelectionColorKey", "ImageKit")] public static NSString SelectionColorKey { get { if (_SelectionColorKey == null) { _SelectionColorKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserSelectionColorKey"); } return _SelectionColorKey; } } [Field("IKImageBrowserCellsOutlineColorKey", "ImageKit")] public static NSString CellsOutlineColorKey { get { if (_CellsOutlineColorKey == null) { _CellsOutlineColorKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellsOutlineColorKey"); } return _CellsOutlineColorKey; } } [Field("IKImageBrowserCellsTitleAttributesKey", "ImageKit")] public static NSString CellsTitleAttributesKey { get { if (_CellsTitleAttributesKey == null) { _CellsTitleAttributesKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellsTitleAttributesKey"); } return _CellsTitleAttributesKey; } } [Field("IKImageBrowserCellsHighlightedTitleAttributesKey", "ImageKit")] public static NSString CellsHighlightedTitleAttributesKey { get { if (_CellsHighlightedTitleAttributesKey == null) { _CellsHighlightedTitleAttributesKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellsHighlightedTitleAttributesKey"); } return _CellsHighlightedTitleAttributesKey; } } [Field("IKImageBrowserCellsSubtitleAttributesKey", "ImageKit")] public static NSString CellsSubtitleAttributesKey { get { if (_CellsSubtitleAttributesKey == null) { _CellsSubtitleAttributesKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKImageBrowserCellsSubtitleAttributesKey"); } return _CellsSubtitleAttributesKey; } } public event EventHandler SelectionDidChange { add { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.selectionDidChange = (EventHandler)System.Delegate.Combine(iKImageBrowserDelegate.selectionDidChange, value); } remove { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.selectionDidChange = (EventHandler)System.Delegate.Remove(iKImageBrowserDelegate.selectionDidChange, value); } } public event EventHandler CellWasDoubleClicked { add { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.cellWasDoubleClicked = (EventHandler)System.Delegate.Combine(iKImageBrowserDelegate.cellWasDoubleClicked, value); } remove { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.cellWasDoubleClicked = (EventHandler)System.Delegate.Remove(iKImageBrowserDelegate.cellWasDoubleClicked, value); } } public event EventHandler CellWasRightClicked { add { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.cellWasRightClicked = (EventHandler)System.Delegate.Combine(iKImageBrowserDelegate.cellWasRightClicked, value); } remove { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.cellWasRightClicked = (EventHandler)System.Delegate.Remove(iKImageBrowserDelegate.cellWasRightClicked, value); } } public event EventHandler BackgroundWasRightClicked { add { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.backgroundWasRightClicked = (EventHandler)System.Delegate.Combine(iKImageBrowserDelegate.backgroundWasRightClicked, value); } remove { _IKImageBrowserDelegate iKImageBrowserDelegate = EnsureIKImageBrowserDelegate(); iKImageBrowserDelegate.backgroundWasRightClicked = (EventHandler)System.Delegate.Remove(iKImageBrowserDelegate.backgroundWasRightClicked, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageBrowserView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageBrowserView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageBrowserView(IntPtr handle) : base(handle) { } [Export("initWithFrame:")] public IKImageBrowserView(CGRect frame) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithFrame_Handle, frame); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithFrame_Handle, frame); } } [Export("reloadData")] public virtual void ReloadData() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } [Export("newCellForRepresentedItem:")] public virtual IKImageBrowserCell NewCell(IKImageBrowserItem representedItem) { if (representedItem == null) { throw new ArgumentNullException("representedItem"); } if (IsDirectBinding) { return (IKImageBrowserCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNewCellForRepresentedItem_Handle, representedItem.Handle)); } return (IKImageBrowserCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNewCellForRepresentedItem_Handle, representedItem.Handle)); } [Export("cellForItemAtIndex:")] public virtual IKImageBrowserCell GetCellAt(int itemIndex) { if (IsDirectBinding) { return (IKImageBrowserCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selCellForItemAtIndex_Handle, itemIndex)); } return (IKImageBrowserCell)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selCellForItemAtIndex_Handle, itemIndex)); } [Export("scrollIndexToVisible:")] public virtual void ScrollIndexToVisible(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selScrollIndexToVisible_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selScrollIndexToVisible_Handle, index); } } [Export("indexOfItemAtPoint:")] public virtual long GetIndexOfItem(CGPoint point) { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selIndexOfItemAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selIndexOfItemAtPoint_Handle, point); } [Export("itemFrameAtIndex:")] public virtual CGRect GetItemFrame(long index) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selItemFrameAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selItemFrameAtIndex_Handle, index); } return retval; } [Export("visibleItemIndexes")] public virtual NSIndexSet GetVisibleItemIndexes() { if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVisibleItemIndexesHandle)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVisibleItemIndexesHandle)); } [Export("rowIndexesInRect:")] public virtual NSIndexSet GetRowIndexes(CGRect rect) { if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selRowIndexesInRect_Handle, rect)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selRowIndexesInRect_Handle, rect)); } [Export("columnIndexesInRect:")] public virtual NSIndexSet GetColumnIndexes(CGRect rect) { if (IsDirectBinding) { return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selColumnIndexesInRect_Handle, rect)); } return (NSIndexSet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selColumnIndexesInRect_Handle, rect)); } [Export("rectOfColumn:")] public virtual CGRect GetRectOfColumn(ulong columnIndex) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_UInt64(out retval, base.Handle, selRectOfColumn_Handle, columnIndex); } else { Messaging.CGRect_objc_msgSendSuper_stret_UInt64(out retval, base.SuperHandle, selRectOfColumn_Handle, columnIndex); } return retval; } [Export("rectOfRow:")] public virtual CGRect GetRectOfRow(ulong rowIndex) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_UInt64(out retval, base.Handle, selRectOfRow_Handle, rowIndex); } else { Messaging.CGRect_objc_msgSendSuper_stret_UInt64(out retval, base.SuperHandle, selRectOfRow_Handle, rowIndex); } return retval; } [Export("setSelectionIndexes:byExtendingSelection:")] public virtual void SelectItemsAt(NSIndexSet indexes, bool extendSelection) { if (indexes == null) { throw new ArgumentNullException("indexes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetSelectionIndexesByExtendingSelection_Handle, indexes.Handle, extendSelection); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetSelectionIndexesByExtendingSelection_Handle, indexes.Handle, extendSelection); } } [Export("expandGroupAtIndex:")] public virtual void ExpandGroup(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selExpandGroupAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selExpandGroupAtIndex_Handle, index); } } [Export("collapseGroupAtIndex:")] public virtual void CollapseGroup(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selCollapseGroupAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selCollapseGroupAtIndex_Handle, index); } } [Export("isGroupExpandedAtIndex:")] public virtual bool IsGroupExpanded(int index) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_int(base.Handle, selIsGroupExpandedAtIndex_Handle, index); } return Messaging.bool_objc_msgSendSuper_int(base.SuperHandle, selIsGroupExpandedAtIndex_Handle, index); } [Export("indexAtLocationOfDroppedItem")] public virtual int GetIndexAtLocationOfDroppedItem() { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIndexAtLocationOfDroppedItemHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIndexAtLocationOfDroppedItemHandle); } [Export("dropOperation")] public virtual IKImageBrowserDropOperation DropOperation() { if (IsDirectBinding) { return (IKImageBrowserDropOperation)Messaging.int_objc_msgSend(base.Handle, selDropOperationHandle); } return (IKImageBrowserDropOperation)Messaging.int_objc_msgSendSuper(base.SuperHandle, selDropOperationHandle); } [Export("setDropIndex:dropOperation:")] public virtual void SetDropIndex(int index, IKImageBrowserDropOperation operation) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int_int(base.Handle, selSetDropIndexDropOperation_Handle, index, (int)operation); } else { Messaging.void_objc_msgSendSuper_int_int(base.SuperHandle, selSetDropIndexDropOperation_Handle, index, (int)operation); } } private _IKImageBrowserDelegate EnsureIKImageBrowserDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _IKImageBrowserDelegate)) { nSObject = (WeakDelegate = new _IKImageBrowserDelegate()); } return (_IKImageBrowserDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDataSource_var = null; __mt_WeakDelegate_var = null; __mt_BackgroundLayer_var = null; __mt_ForegroundLayer_var = null; __mt_SelectionIndexes_var = null; __mt_DraggingDestinationDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserViewEventEventArgs.cs ================================================ using System; using AppKit; namespace ImageKit; public class IKImageBrowserViewEventEventArgs : EventArgs { public NSEvent Nsevent { get; set; } public IKImageBrowserViewEventEventArgs(NSEvent nsevent) { Nsevent = nsevent; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserViewIndexEventArgs.cs ================================================ using System; namespace ImageKit; public class IKImageBrowserViewIndexEventArgs : EventArgs { public int Index { get; set; } public IKImageBrowserViewIndexEventArgs(int index) { Index = index; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageBrowserViewIndexEventEventArgs.cs ================================================ using System; using AppKit; namespace ImageKit; public class IKImageBrowserViewIndexEventEventArgs : EventArgs { public int Index { get; set; } public NSEvent Nsevent { get; set; } public IKImageBrowserViewIndexEventEventArgs(int index, NSEvent nsevent) { Index = index; Nsevent = nsevent; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageEditPanel.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageEditPanel", true)] public class IKImageEditPanel : NSPanel { private static readonly IntPtr selSharedImageEditPanelHandle = Selector.GetHandle("sharedImageEditPanel"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selSetDataSource_Handle = Selector.GetHandle("setDataSource:"); private static readonly IntPtr selFilterArrayHandle = Selector.GetHandle("filterArray"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr class_ptr = Class.GetHandle("IKImageEditPanel"); private static object __mt_SharedPanel_var_static; private object __mt_DataSource_var; private object __mt_filterArray_var; public override IntPtr ClassHandle => class_ptr; public static IKImageEditPanel SharedPanel { [Export("sharedImageEditPanel")] get { return (IKImageEditPanel)(__mt_SharedPanel_var_static = (IKImageEditPanel)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedImageEditPanelHandle))); } } public virtual IKImageEditPanelDataSource DataSource { [Export("dataSource", ArgumentSemantic.Assign)] get { return (IKImageEditPanelDataSource)(__mt_DataSource_var = ((!IsDirectBinding) ? ((IKImageEditPanelDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle))) : ((IKImageEditPanelDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle))))); } [Export("setDataSource:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataSource_Handle, value?.Handle ?? IntPtr.Zero); } __mt_DataSource_var = value; } } public virtual NSArray filterArray { [Export("filterArray")] get { return (NSArray)(__mt_filterArray_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFilterArrayHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFilterArrayHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageEditPanel(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageEditPanel(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageEditPanel(IntPtr handle) : base(handle) { } [Export("reloadData")] public virtual void ReloadData() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DataSource_var = null; __mt_filterArray_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageEditPanelDataSource.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageEditPanelDataSource", true)] [Model] public abstract class IKImageEditPanelDataSource : NSObject { public abstract CGImage Image { [Export("image")] get; } public virtual NSDictionary ImageProperties { [Export("imageProperties")] get { throw new ModelNotImplementedException(); } } public virtual bool HasAdjustMode { [Export("hasAdjustMode")] get { throw new ModelNotImplementedException(); } } public virtual bool HasEffectsMode { [Export("hasEffectsMode")] get { throw new ModelNotImplementedException(); } } public virtual bool HasDetailsMode { [Export("hasDetailsMode")] get { throw new ModelNotImplementedException(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageEditPanelDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageEditPanelDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageEditPanelDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageEditPanelDataSource(IntPtr handle) : base(handle) { } [Export("setImage:imageProperties:")] public abstract void SetImageAndProperties(CGImage image, NSDictionary metaData); [Export("thumbnailWithMaximumSize:")] public virtual CGImage GetThumbnail(CGSize maximumSize) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKImageView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreAnimation; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKImageView", true)] public class IKImageView : NSView { private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selZoomFactorHandle = Selector.GetHandle("zoomFactor"); private static readonly IntPtr selSetZoomFactor_Handle = Selector.GetHandle("setZoomFactor:"); private static readonly IntPtr selRotationAngleHandle = Selector.GetHandle("rotationAngle"); private static readonly IntPtr selSetRotationAngle_Handle = Selector.GetHandle("setRotationAngle:"); private static readonly IntPtr selCurrentToolModeHandle = Selector.GetHandle("currentToolMode"); private static readonly IntPtr selSetCurrentToolMode_Handle = Selector.GetHandle("setCurrentToolMode:"); private static readonly IntPtr selAutoresizesHandle = Selector.GetHandle("autoresizes"); private static readonly IntPtr selSetAutoresizes_Handle = Selector.GetHandle("setAutoresizes:"); private static readonly IntPtr selHasHorizontalScrollerHandle = Selector.GetHandle("hasHorizontalScroller"); private static readonly IntPtr selSetHasHorizontalScroller_Handle = Selector.GetHandle("setHasHorizontalScroller:"); private static readonly IntPtr selHasVerticalScrollerHandle = Selector.GetHandle("hasVerticalScroller"); private static readonly IntPtr selSetHasVerticalScroller_Handle = Selector.GetHandle("setHasVerticalScroller:"); private static readonly IntPtr selAutohidesScrollersHandle = Selector.GetHandle("autohidesScrollers"); private static readonly IntPtr selSetAutohidesScrollers_Handle = Selector.GetHandle("setAutohidesScrollers:"); private static readonly IntPtr selSupportsDragAndDropHandle = Selector.GetHandle("supportsDragAndDrop"); private static readonly IntPtr selSetSupportsDragAndDrop_Handle = Selector.GetHandle("setSupportsDragAndDrop:"); private static readonly IntPtr selEditableHandle = Selector.GetHandle("editable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selDoubleClickOpensImageEditPanelHandle = Selector.GetHandle("doubleClickOpensImageEditPanel"); private static readonly IntPtr selSetDoubleClickOpensImageEditPanel_Handle = Selector.GetHandle("setDoubleClickOpensImageEditPanel:"); private static readonly IntPtr selImageCorrectionHandle = Selector.GetHandle("imageCorrection"); private static readonly IntPtr selSetImageCorrection_Handle = Selector.GetHandle("setImageCorrection:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selImageHandle = Selector.GetHandle("image"); private static readonly IntPtr selImageSizeHandle = Selector.GetHandle("imageSize"); private static readonly IntPtr selImagePropertiesHandle = Selector.GetHandle("imageProperties"); private static readonly IntPtr selSetImageImageProperties_Handle = Selector.GetHandle("setImage:imageProperties:"); private static readonly IntPtr selSetImageWithURL_Handle = Selector.GetHandle("setImageWithURL:"); private static readonly IntPtr selSetRotationAngleCenterPoint_Handle = Selector.GetHandle("setRotationAngle:centerPoint:"); private static readonly IntPtr selRotateImageLeft_Handle = Selector.GetHandle("rotateImageLeft:"); private static readonly IntPtr selRotateImageRight_Handle = Selector.GetHandle("rotateImageRight:"); private static readonly IntPtr selSetImageZoomFactorCenterPoint_Handle = Selector.GetHandle("setImageZoomFactor:centerPoint:"); private static readonly IntPtr selZoomImageToRect_Handle = Selector.GetHandle("zoomImageToRect:"); private static readonly IntPtr selZoomImageToFit_Handle = Selector.GetHandle("zoomImageToFit:"); private static readonly IntPtr selZoomImageToActualSize_Handle = Selector.GetHandle("zoomImageToActualSize:"); private static readonly IntPtr selZoomIn_Handle = Selector.GetHandle("zoomIn:"); private static readonly IntPtr selZoomOut_Handle = Selector.GetHandle("zoomOut:"); private static readonly IntPtr selFlipImageHorizontal_Handle = Selector.GetHandle("flipImageHorizontal:"); private static readonly IntPtr selFlipImageVertical_Handle = Selector.GetHandle("flipImageVertical:"); private static readonly IntPtr selCrop_Handle = Selector.GetHandle("crop:"); private static readonly IntPtr selSetOverlayForType_Handle = Selector.GetHandle("setOverlay:forType:"); private static readonly IntPtr selOverlayForType_Handle = Selector.GetHandle("overlayForType:"); private static readonly IntPtr selScrollToPoint_Handle = Selector.GetHandle("scrollToPoint:"); private static readonly IntPtr selScrollToRect_Handle = Selector.GetHandle("scrollToRect:"); private static readonly IntPtr selConvertViewPointToImagePoint_Handle = Selector.GetHandle("convertViewPointToImagePoint:"); private static readonly IntPtr selConvertViewRectToImageRect_Handle = Selector.GetHandle("convertViewRectToImageRect:"); private static readonly IntPtr selConvertImagePointToViewPoint_Handle = Selector.GetHandle("convertImagePointToViewPoint:"); private static readonly IntPtr selConvertImageRectToViewRect_Handle = Selector.GetHandle("convertImageRectToViewRect:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKImageView"); private object __mt_Delegate_var; private object __mt_ImageCorrection_var; private object __mt_BackgroundColor_var; private object __mt_ImageProperties_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Delegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_Delegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_Delegate_var = value; } } public virtual double ZoomFactor { [Export("zoomFactor")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selZoomFactorHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selZoomFactorHandle); } [Export("setZoomFactor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetZoomFactor_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetZoomFactor_Handle, value); } } } public virtual double RotationAngle { [Export("rotationAngle")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selRotationAngleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selRotationAngleHandle); } [Export("setRotationAngle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetRotationAngle_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetRotationAngle_Handle, value); } } } public virtual string CurrentToolMode { [Export("currentToolMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentToolModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentToolModeHandle)); } [Export("setCurrentToolMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrentToolMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrentToolMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Autoresizes { [Export("autoresizes")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoresizesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoresizesHandle); } [Export("setAutoresizes:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoresizes_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoresizes_Handle, value); } } } public virtual bool HasHorizontalScroller { [Export("hasHorizontalScroller")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasHorizontalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasHorizontalScrollerHandle); } [Export("setHasHorizontalScroller:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasHorizontalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasHorizontalScroller_Handle, value); } } } public virtual bool HasVerticalScroller { [Export("hasVerticalScroller")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasVerticalScrollerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasVerticalScrollerHandle); } [Export("setHasVerticalScroller:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasVerticalScroller_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasVerticalScroller_Handle, value); } } } public virtual bool AutohidesScrollers { [Export("autohidesScrollers")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutohidesScrollersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutohidesScrollersHandle); } [Export("setAutohidesScrollers:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutohidesScrollers_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutohidesScrollers_Handle, value); } } } public virtual bool SupportsDragAndDrop { [Export("supportsDragAndDrop")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsDragAndDropHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsDragAndDropHandle); } [Export("setSupportsDragAndDrop:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSupportsDragAndDrop_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSupportsDragAndDrop_Handle, value); } } } public virtual bool Editable { [Export("editable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEditableHandle); } [Export("setEditable:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual bool DoubleClickOpensImageEditPanel { [Export("doubleClickOpensImageEditPanel")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDoubleClickOpensImageEditPanelHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDoubleClickOpensImageEditPanelHandle); } [Export("setDoubleClickOpensImageEditPanel:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDoubleClickOpensImageEditPanel_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDoubleClickOpensImageEditPanel_Handle, value); } } } public virtual CIFilter ImageCorrection { [Export("imageCorrection", ArgumentSemantic.Assign)] get { return (CIFilter)(__mt_ImageCorrection_var = ((!IsDirectBinding) ? ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageCorrectionHandle))) : ((CIFilter)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImageCorrectionHandle))))); } [Export("setImageCorrection:", ArgumentSemantic.Assign)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImageCorrection_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImageCorrection_Handle, value.Handle); } __mt_ImageCorrection_var = value; } } public virtual NSColor BackgroundColor { [Export("backgroundColor", ArgumentSemantic.Assign)] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:", ArgumentSemantic.Assign)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual CGImage Image { [Export("image")] get { if (IsDirectBinding) { return new CGImage(Messaging.IntPtr_objc_msgSend(base.Handle, selImageHandle)); } return new CGImage(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageHandle)); } } public virtual CGSize ImageSize { [Export("imageSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selImageSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selImageSizeHandle); } } public virtual NSDictionary ImageProperties { [Export("imageProperties")] get { return (NSDictionary)(__mt_ImageProperties_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImagePropertiesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImagePropertiesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKImageView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKImageView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKImageView(IntPtr handle) : base(handle) { } [Export("setImage:imageProperties:")] public virtual void SetImageimageProperties(CGImage image, NSDictionary metaData) { if (metaData == null) { throw new ArgumentNullException("metaData"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetImageImageProperties_Handle, image.Handle, metaData.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetImageImageProperties_Handle, image.Handle, metaData.Handle); } } [Export("setImageWithURL:")] public virtual void SetImageWithURL(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetImageWithURL_Handle, url.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetImageWithURL_Handle, url.Handle); } } [Export("setRotationAngle:centerPoint:")] public virtual void SetRotation(double rotationAngle, CGPoint centerPoint) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_CGPoint(base.Handle, selSetRotationAngleCenterPoint_Handle, rotationAngle, centerPoint); } else { Messaging.void_objc_msgSendSuper_Double_CGPoint(base.SuperHandle, selSetRotationAngleCenterPoint_Handle, rotationAngle, centerPoint); } } [Export("rotateImageLeft:")] public virtual void RotateImageLeft(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRotateImageLeft_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRotateImageLeft_Handle, sender.Handle); } } [Export("rotateImageRight:")] public virtual void RotateImageRight(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRotateImageRight_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRotateImageRight_Handle, sender.Handle); } } [Export("setImageZoomFactor:centerPoint:")] public virtual void SetImageZoomFactor(double zoomFactor, CGPoint centerPoint) { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double_CGPoint(base.Handle, selSetImageZoomFactorCenterPoint_Handle, zoomFactor, centerPoint); } else { Messaging.void_objc_msgSendSuper_Double_CGPoint(base.SuperHandle, selSetImageZoomFactorCenterPoint_Handle, zoomFactor, centerPoint); } } [Export("zoomImageToRect:")] public virtual void ZoomImageToRect(CGRect rect) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selZoomImageToRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selZoomImageToRect_Handle, rect); } } [Export("zoomImageToFit:")] public virtual void ZoomImageToFit(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomImageToFit_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomImageToFit_Handle, sender.Handle); } } [Export("zoomImageToActualSize:")] public virtual void ZoomImageToActualSize(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomImageToActualSize_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomImageToActualSize_Handle, sender.Handle); } } [Export("zoomIn:")] public virtual void ZoomIn(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomIn_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomIn_Handle, sender.Handle); } } [Export("zoomOut:")] public virtual void ZoomOut(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomOut_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomOut_Handle, sender.Handle); } } [Export("flipImageHorizontal:")] public virtual void FlipImageHorizontal(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFlipImageHorizontal_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFlipImageHorizontal_Handle, sender.Handle); } } [Export("flipImageVertical:")] public virtual void FlipImageVertical(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selFlipImageVertical_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selFlipImageVertical_Handle, sender.Handle); } } [Export("crop:")] public virtual void Crop(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCrop_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCrop_Handle, sender.Handle); } } [Export("setOverlay:forType:")] public virtual void SetOverlay(CALayer layer, string layerType) { if (layer == null) { throw new ArgumentNullException("layer"); } if (layerType == null) { throw new ArgumentNullException("layerType"); } IntPtr arg = NSString.CreateNative(layerType); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetOverlayForType_Handle, layer.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetOverlayForType_Handle, layer.Handle, arg); } NSString.ReleaseNative(arg); } [Export("overlayForType:")] public virtual CALayer GetOverlay(string layerType) { if (layerType == null) { throw new ArgumentNullException("layerType"); } IntPtr arg = NSString.CreateNative(layerType); CALayer result = ((!IsDirectBinding) ? ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selOverlayForType_Handle, arg))) : ((CALayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selOverlayForType_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("scrollToPoint:")] public virtual void ScrollTo(CGPoint point) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selScrollToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selScrollToPoint_Handle, point); } } [Export("scrollToRect:")] public virtual void ScrollTo(CGRect rect) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selScrollToRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selScrollToRect_Handle, rect); } } [Export("convertViewPointToImagePoint:")] public virtual CGPoint ConvertViewPointToImagePoint(CGPoint viewPoint) { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertViewPointToImagePoint_Handle, viewPoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertViewPointToImagePoint_Handle, viewPoint); } [Export("convertViewRectToImageRect:")] public virtual CGRect ConvertViewRectToImageRect(CGRect viewRect) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertViewRectToImageRect_Handle, viewRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertViewRectToImageRect_Handle, viewRect); } return retval; } [Export("convertImagePointToViewPoint:")] public virtual CGPoint ConvertImagePointToViewPoint(CGPoint imagePoint) { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint(base.Handle, selConvertImagePointToViewPoint_Handle, imagePoint); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint(base.SuperHandle, selConvertImagePointToViewPoint_Handle, imagePoint); } [Export("convertImageRectToViewRect:")] public virtual CGRect ConvertImageRectToViewRect(CGRect imageRect) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect(out retval, base.Handle, selConvertImageRectToViewRect_Handle, imageRect); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect(out retval, base.SuperHandle, selConvertImageRectToViewRect_Handle, imageRect); } return retval; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Delegate_var = null; __mt_ImageCorrection_var = null; __mt_BackgroundColor_var = null; __mt_ImageProperties_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKPictureTaker.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKPictureTaker", true)] public class IKPictureTaker : NSPanel { private static readonly IntPtr selPictureTakerHandle = Selector.GetHandle("pictureTaker"); private static readonly IntPtr selInputImageHandle = Selector.GetHandle("inputImage"); private static readonly IntPtr selSetInputImage_Handle = Selector.GetHandle("setInputImage:"); private static readonly IntPtr selMirroringHandle = Selector.GetHandle("mirroring"); private static readonly IntPtr selSetMirroring_Handle = Selector.GetHandle("setMirroring:"); private static readonly IntPtr selRunModalHandle = Selector.GetHandle("runModal"); private static readonly IntPtr selBeginPictureTakerWithDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginPictureTakerWithDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selBeginPictureTakerSheetForWindowWithDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("beginPictureTakerSheetForWindow:withDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selPopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo_Handle = Selector.GetHandle("popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:"); private static readonly IntPtr selOutputImageHandle = Selector.GetHandle("outputImage"); private static readonly IntPtr class_ptr = Class.GetHandle("IKPictureTaker"); private static object __mt_SharedPictureTaker_var_static; private object __mt_InputImage_var; private static NSString _AllowsVideoCaptureKey; private static NSString _AllowsFileChoosingKey; private static NSString _ShowRecentPictureKey; private static NSString _UpdateRecentPictureKey; private static NSString _AllowsEditingKey; private static NSString _ShowEffectsKey; private static NSString _InformationalTextKey; private static NSString _ImageTransformsKey; private static NSString _OutputImageMaxSizeKey; private static NSString _CropAreaSizeKey; private static NSString _ShowAddressBookPictureKey; private static NSString _ShowEmptyPictureKey; private static NSString _RemainOpenAfterValidateKey; public override IntPtr ClassHandle => class_ptr; public static IKPictureTaker SharedPictureTaker { [Export("pictureTaker")] get { return (IKPictureTaker)(__mt_SharedPictureTaker_var_static = (IKPictureTaker)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selPictureTakerHandle))); } } public virtual NSImage InputImage { [Export("inputImage")] get { return (NSImage)(__mt_InputImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInputImageHandle))))); } [Export("setInputImage:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInputImage_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInputImage_Handle, value.Handle); } __mt_InputImage_var = value; } } public virtual bool Mirroring { [Export("mirroring")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMirroringHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMirroringHandle); } [Export("setMirroring:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMirroring_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMirroring_Handle, value); } } } [Field("IKPictureTakerAllowsVideoCaptureKey", "ImageKit")] public static NSString AllowsVideoCaptureKey { get { if (_AllowsVideoCaptureKey == null) { _AllowsVideoCaptureKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerAllowsVideoCaptureKey"); } return _AllowsVideoCaptureKey; } } [Field("IKPictureTakerAllowsFileChoosingKey", "ImageKit")] public static NSString AllowsFileChoosingKey { get { if (_AllowsFileChoosingKey == null) { _AllowsFileChoosingKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerAllowsFileChoosingKey"); } return _AllowsFileChoosingKey; } } [Field("IKPictureTakerShowRecentPictureKey", "ImageKit")] public static NSString ShowRecentPictureKey { get { if (_ShowRecentPictureKey == null) { _ShowRecentPictureKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerShowRecentPictureKey"); } return _ShowRecentPictureKey; } } [Field("IKPictureTakerUpdateRecentPictureKey", "ImageKit")] public static NSString UpdateRecentPictureKey { get { if (_UpdateRecentPictureKey == null) { _UpdateRecentPictureKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerUpdateRecentPictureKey"); } return _UpdateRecentPictureKey; } } [Field("IKPictureTakerAllowsEditingKey", "ImageKit")] public static NSString AllowsEditingKey { get { if (_AllowsEditingKey == null) { _AllowsEditingKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerAllowsEditingKey"); } return _AllowsEditingKey; } } [Field("IKPictureTakerShowEffectsKey", "ImageKit")] public static NSString ShowEffectsKey { get { if (_ShowEffectsKey == null) { _ShowEffectsKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerShowEffectsKey"); } return _ShowEffectsKey; } } [Field("IKPictureTakerInformationalTextKey", "ImageKit")] public static NSString InformationalTextKey { get { if (_InformationalTextKey == null) { _InformationalTextKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerInformationalTextKey"); } return _InformationalTextKey; } } [Field("IKPictureTakerImageTransformsKey", "ImageKit")] public static NSString ImageTransformsKey { get { if (_ImageTransformsKey == null) { _ImageTransformsKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerImageTransformsKey"); } return _ImageTransformsKey; } } [Field("IKPictureTakerOutputImageMaxSizeKey", "ImageKit")] public static NSString OutputImageMaxSizeKey { get { if (_OutputImageMaxSizeKey == null) { _OutputImageMaxSizeKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerOutputImageMaxSizeKey"); } return _OutputImageMaxSizeKey; } } [Field("IKPictureTakerCropAreaSizeKey", "ImageKit")] public static NSString CropAreaSizeKey { get { if (_CropAreaSizeKey == null) { _CropAreaSizeKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerCropAreaSizeKey"); } return _CropAreaSizeKey; } } [Field("IKPictureTakerShowAddressBookPictureKey", "ImageKit")] public static NSString ShowAddressBookPictureKey { get { if (_ShowAddressBookPictureKey == null) { _ShowAddressBookPictureKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerShowAddressBookPictureKey"); } return _ShowAddressBookPictureKey; } } [Field("IKPictureTakerShowEmptyPictureKey", "ImageKit")] public static NSString ShowEmptyPictureKey { get { if (_ShowEmptyPictureKey == null) { _ShowEmptyPictureKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerShowEmptyPictureKey"); } return _ShowEmptyPictureKey; } } [Field("IKPictureTakerRemainOpenAfterValidateKey", "ImageKit")] public static NSString RemainOpenAfterValidateKey { get { if (_RemainOpenAfterValidateKey == null) { _RemainOpenAfterValidateKey = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKPictureTakerRemainOpenAfterValidateKey"); } return _RemainOpenAfterValidateKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKPictureTaker() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKPictureTaker(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKPictureTaker(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKPictureTaker(IntPtr handle) : base(handle) { } [Export("runModal")] public virtual int RunModal() { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selRunModalHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selRunModalHandle); } [Export("beginPictureTakerWithDelegate:didEndSelector:contextInfo:")] public virtual void BeginPictureTaker(NSObject aDelegate, Selector didEndSelector, IntPtr contextInfo) { if (aDelegate == null) { throw new ArgumentNullException("aDelegate"); } if (didEndSelector == null) { throw new ArgumentNullException("didEndSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selBeginPictureTakerWithDelegateDidEndSelectorContextInfo_Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginPictureTakerWithDelegateDidEndSelectorContextInfo_Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } } [Export("beginPictureTakerSheetForWindow:withDelegate:didEndSelector:contextInfo:")] public virtual void BeginPictureTakerSheet(NSWindow aWindow, NSObject aDelegate, Selector didEndSelector, IntPtr contextInfo) { if (aWindow == null) { throw new ArgumentNullException("aWindow"); } if (aDelegate == null) { throw new ArgumentNullException("aDelegate"); } if (didEndSelector == null) { throw new ArgumentNullException("didEndSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selBeginPictureTakerSheetForWindowWithDelegateDidEndSelectorContextInfo_Handle, aWindow.Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selBeginPictureTakerSheetForWindowWithDelegateDidEndSelectorContextInfo_Handle, aWindow.Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } } [Export("popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:")] public virtual void PopUpRecentsMenu(NSView aView, NSObject aDelegate, Selector didEndSelector, IntPtr contextInfo) { if (aView == null) { throw new ArgumentNullException("aView"); } if (aDelegate == null) { throw new ArgumentNullException("aDelegate"); } if (didEndSelector == null) { throw new ArgumentNullException("didEndSelector"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selPopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo_Handle, aView.Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selPopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo_Handle, aView.Handle, aDelegate.Handle, didEndSelector.Handle, contextInfo); } } [Export("outputImage")] public virtual NSImage GetOutputImage() { if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputImageHandle)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputImageHandle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InputImage_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKSaveOptions.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKSaveOptions", true)] public class IKSaveOptions : NSObject { [Register] private sealed class _IKSaveOptionsDelegate : IKSaveOptionsDelegate { internal SaveOptionsShouldShowUTType shouldShowType; [Preserve(Conditional = true)] public override bool ShouldShowType(IKSaveOptions saveOptions, string imageUTType) { return shouldShowType?.Invoke(saveOptions, imageUTType) ?? false; } } private static readonly IntPtr selImagePropertiesHandle = Selector.GetHandle("imageProperties"); private static readonly IntPtr selImageUTTypeHandle = Selector.GetHandle("imageUTType"); private static readonly IntPtr selUserSelectionHandle = Selector.GetHandle("userSelection"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selInitWithImagePropertiesImageUTType_Handle = Selector.GetHandle("initWithImageProperties:imageUTType:"); private static readonly IntPtr selAddSaveOptionsAccessoryViewToSavePanel_Handle = Selector.GetHandle("addSaveOptionsAccessoryViewToSavePanel:"); private static readonly IntPtr selAddSaveOptionsToView_Handle = Selector.GetHandle("addSaveOptionsToView:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKSaveOptions"); private object __mt_ImageProperties_var; private object __mt_UserSelection_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary ImageProperties { [Export("imageProperties")] get { return (NSDictionary)(__mt_ImageProperties_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImagePropertiesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImagePropertiesHandle))))); } } public virtual string ImageUTType { [Export("imageUTType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selImageUTTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImageUTTypeHandle)); } } public virtual NSDictionary UserSelection { [Export("userSelection")] get { return (NSDictionary)(__mt_UserSelection_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserSelectionHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserSelectionHandle))))); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public IKSaveOptionsDelegate Delegate { get { return WeakDelegate as IKSaveOptionsDelegate; } set { WeakDelegate = value; } } public SaveOptionsShouldShowUTType ShouldShowType { get { return EnsureIKSaveOptionsDelegate().shouldShowType; } set { EnsureIKSaveOptionsDelegate().shouldShowType = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKSaveOptions() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKSaveOptions(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSaveOptions(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSaveOptions(IntPtr handle) : base(handle) { } [Export("initWithImageProperties:imageUTType:")] public IKSaveOptions(NSDictionary imageProperties, string imageUTType) : base(NSObjectFlag.Empty) { if (imageProperties == null) { throw new ArgumentNullException("imageProperties"); } if (imageUTType == null) { throw new ArgumentNullException("imageUTType"); } IntPtr arg = NSString.CreateNative(imageUTType); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithImagePropertiesImageUTType_Handle, imageProperties.Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithImagePropertiesImageUTType_Handle, imageProperties.Handle, arg); } NSString.ReleaseNative(arg); } [Export("addSaveOptionsAccessoryViewToSavePanel:")] public virtual void AddSaveOptionsToPanel(NSSavePanel savePanel) { if (savePanel == null) { throw new ArgumentNullException("savePanel"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSaveOptionsAccessoryViewToSavePanel_Handle, savePanel.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSaveOptionsAccessoryViewToSavePanel_Handle, savePanel.Handle); } } [Export("addSaveOptionsToView:")] public virtual void AddSaveOptionsToView(NSView view) { if (view == null) { throw new ArgumentNullException("view"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSaveOptionsToView_Handle, view.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSaveOptionsToView_Handle, view.Handle); } } private _IKSaveOptionsDelegate EnsureIKSaveOptionsDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _IKSaveOptionsDelegate)) { nSObject = (WeakDelegate = new _IKSaveOptionsDelegate()); } return (_IKSaveOptionsDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ImageProperties_var = null; __mt_UserSelection_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKSaveOptionsDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKSaveOptionsDelegate", true)] [Model] public class IKSaveOptionsDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKSaveOptionsDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKSaveOptionsDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSaveOptionsDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSaveOptionsDelegate(IntPtr handle) : base(handle) { } [Export("saveOptions:shouldShowUTType:")] public virtual bool ShouldShowType(IKSaveOptions saveOptions, string imageUTType) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceView.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKScannerDeviceView", true)] public class IKScannerDeviceView : NSView { [Register] private sealed class _IKScannerDeviceViewDelegate : IKScannerDeviceViewDelegate { internal EventHandler didScan; internal EventHandler didEncounterError; [Preserve(Conditional = true)] public override void DidScan(IKScannerDeviceView scannerDeviceView, NSUrl url, NSData data, NSError error) { EventHandler eventHandler = didScan; if (eventHandler != null) { IKScannerDeviceViewScanEventArgs e = new IKScannerDeviceViewScanEventArgs(url, data, error); eventHandler(scannerDeviceView, e); } } [Preserve(Conditional = true)] public override void DidEncounterError(IKScannerDeviceView scannerDeviceView, NSError error) { EventHandler eventHandler = didEncounterError; if (eventHandler != null) { IKScannerDeviceViewErrorEventArgs e = new IKScannerDeviceViewErrorEventArgs(error); eventHandler(scannerDeviceView, e); } } } private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selModeHandle = Selector.GetHandle("mode"); private static readonly IntPtr selSetMode_Handle = Selector.GetHandle("setMode:"); private static readonly IntPtr selHasDisplayModeSimpleHandle = Selector.GetHandle("hasDisplayModeSimple"); private static readonly IntPtr selSetHasDisplayModeSimple_Handle = Selector.GetHandle("setHasDisplayModeSimple:"); private static readonly IntPtr selHasDisplayModeAdvancedHandle = Selector.GetHandle("hasDisplayModeAdvanced"); private static readonly IntPtr selSetHasDisplayModeAdvanced_Handle = Selector.GetHandle("setHasDisplayModeAdvanced:"); private static readonly IntPtr selTransferModeHandle = Selector.GetHandle("transferMode"); private static readonly IntPtr selSetTransferMode_Handle = Selector.GetHandle("setTransferMode:"); private static readonly IntPtr selScanControlLabelHandle = Selector.GetHandle("scanControlLabel"); private static readonly IntPtr selSetScanControlLabel_Handle = Selector.GetHandle("setScanControlLabel:"); private static readonly IntPtr selOverviewControlLabelHandle = Selector.GetHandle("overviewControlLabel"); private static readonly IntPtr selSetOverviewControlLabel_Handle = Selector.GetHandle("setOverviewControlLabel:"); private static readonly IntPtr selDisplaysDownloadsDirectoryControlHandle = Selector.GetHandle("displaysDownloadsDirectoryControl"); private static readonly IntPtr selSetDisplaysDownloadsDirectoryControl_Handle = Selector.GetHandle("setDisplaysDownloadsDirectoryControl:"); private static readonly IntPtr selDownloadsDirectoryHandle = Selector.GetHandle("downloadsDirectory"); private static readonly IntPtr selSetDownloadsDirectory_Handle = Selector.GetHandle("setDownloadsDirectory:"); private static readonly IntPtr selDocumentNameHandle = Selector.GetHandle("documentName"); private static readonly IntPtr selSetDocumentName_Handle = Selector.GetHandle("setDocumentName:"); private static readonly IntPtr selDisplaysPostProcessApplicationControlHandle = Selector.GetHandle("displaysPostProcessApplicationControl"); private static readonly IntPtr selSetDisplaysPostProcessApplicationControl_Handle = Selector.GetHandle("setDisplaysPostProcessApplicationControl:"); private static readonly IntPtr selPostProcessApplicationHandle = Selector.GetHandle("postProcessApplication"); private static readonly IntPtr selSetPostProcessApplication_Handle = Selector.GetHandle("setPostProcessApplication:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKScannerDeviceView"); private object __mt_WeakDelegate_var; private object __mt_DownloadsDirectory_var; private object __mt_PostProcessApplication_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public IKScannerDeviceViewDelegate Delegate { get { return WeakDelegate as IKScannerDeviceViewDelegate; } set { WeakDelegate = value; } } public virtual IKScannerDeviceViewDisplayMode DisplayMode { [Export("mode")] get { if (IsDirectBinding) { return (IKScannerDeviceViewDisplayMode)Messaging.int_objc_msgSend(base.Handle, selModeHandle); } return (IKScannerDeviceViewDisplayMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selModeHandle); } [Export("setMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMode_Handle, (int)value); } } } public virtual bool HasDisplayModeSimple { [Export("hasDisplayModeSimple")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasDisplayModeSimpleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasDisplayModeSimpleHandle); } [Export("setHasDisplayModeSimple:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasDisplayModeSimple_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasDisplayModeSimple_Handle, value); } } } public virtual bool HasDisplayModeAdvanced { [Export("hasDisplayModeAdvanced")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasDisplayModeAdvancedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasDisplayModeAdvancedHandle); } [Export("setHasDisplayModeAdvanced:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHasDisplayModeAdvanced_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHasDisplayModeAdvanced_Handle, value); } } } public virtual IKScannerDeviceViewTransferMode TransferMode { [Export("transferMode")] get { if (IsDirectBinding) { return (IKScannerDeviceViewTransferMode)Messaging.int_objc_msgSend(base.Handle, selTransferModeHandle); } return (IKScannerDeviceViewTransferMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selTransferModeHandle); } [Export("setTransferMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTransferMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTransferMode_Handle, (int)value); } } } public virtual string ScanControlLabel { [Export("scanControlLabel", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selScanControlLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScanControlLabelHandle)); } [Export("setScanControlLabel:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetScanControlLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetScanControlLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string OverviewControlLabel { [Export("overviewControlLabel", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOverviewControlLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOverviewControlLabelHandle)); } [Export("setOverviewControlLabel:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOverviewControlLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOverviewControlLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool DisplaysDownloadsDirectoryControl { [Export("displaysDownloadsDirectoryControl")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysDownloadsDirectoryControlHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysDownloadsDirectoryControlHandle); } [Export("setDisplaysDownloadsDirectoryControl:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysDownloadsDirectoryControl_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysDownloadsDirectoryControl_Handle, value); } } } public virtual NSUrl DownloadsDirectory { [Export("downloadsDirectory", ArgumentSemantic.Retain)] get { return (NSUrl)(__mt_DownloadsDirectory_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDownloadsDirectoryHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDownloadsDirectoryHandle))))); } [Export("setDownloadsDirectory:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDownloadsDirectory_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDownloadsDirectory_Handle, value.Handle); } __mt_DownloadsDirectory_var = value; } } public virtual string DocumentName { [Export("documentName", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentNameHandle)); } [Export("setDocumentName:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool DisplaysPostProcessApplicationControl { [Export("displaysPostProcessApplicationControl")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysPostProcessApplicationControlHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysPostProcessApplicationControlHandle); } [Export("setDisplaysPostProcessApplicationControl:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysPostProcessApplicationControl_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysPostProcessApplicationControl_Handle, value); } } } public virtual NSUrl PostProcessApplication { [Export("postProcessApplication", ArgumentSemantic.Retain)] get { return (NSUrl)(__mt_PostProcessApplication_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPostProcessApplicationHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPostProcessApplicationHandle))))); } [Export("setPostProcessApplication:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPostProcessApplication_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPostProcessApplication_Handle, value.Handle); } __mt_PostProcessApplication_var = value; } } public event EventHandler DidScan { add { _IKScannerDeviceViewDelegate iKScannerDeviceViewDelegate = EnsureIKScannerDeviceViewDelegate(); iKScannerDeviceViewDelegate.didScan = (EventHandler)System.Delegate.Combine(iKScannerDeviceViewDelegate.didScan, value); } remove { _IKScannerDeviceViewDelegate iKScannerDeviceViewDelegate = EnsureIKScannerDeviceViewDelegate(); iKScannerDeviceViewDelegate.didScan = (EventHandler)System.Delegate.Remove(iKScannerDeviceViewDelegate.didScan, value); } } public event EventHandler DidEncounterError { add { _IKScannerDeviceViewDelegate iKScannerDeviceViewDelegate = EnsureIKScannerDeviceViewDelegate(); iKScannerDeviceViewDelegate.didEncounterError = (EventHandler)System.Delegate.Combine(iKScannerDeviceViewDelegate.didEncounterError, value); } remove { _IKScannerDeviceViewDelegate iKScannerDeviceViewDelegate = EnsureIKScannerDeviceViewDelegate(); iKScannerDeviceViewDelegate.didEncounterError = (EventHandler)System.Delegate.Remove(iKScannerDeviceViewDelegate.didEncounterError, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKScannerDeviceView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKScannerDeviceView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKScannerDeviceView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKScannerDeviceView(IntPtr handle) : base(handle) { } private _IKScannerDeviceViewDelegate EnsureIKScannerDeviceViewDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _IKScannerDeviceViewDelegate)) { nSObject = (WeakDelegate = new _IKScannerDeviceViewDelegate()); } return (_IKScannerDeviceViewDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; __mt_DownloadsDirectory_var = null; __mt_PostProcessApplication_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKScannerDeviceViewDelegate", true)] [Model] public class IKScannerDeviceViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKScannerDeviceViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKScannerDeviceViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKScannerDeviceViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKScannerDeviceViewDelegate(IntPtr handle) : base(handle) { } [Export("scannerDeviceView:didScanToURL:fileData:error:")] public virtual void DidScan(IKScannerDeviceView scannerDeviceView, NSUrl url, NSData data, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("scannerDeviceView:didEncounterError:")] public virtual void DidEncounterError(IKScannerDeviceView scannerDeviceView, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceViewDisplayMode.cs ================================================ namespace ImageKit; public enum IKScannerDeviceViewDisplayMode { Simple, Advanced } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceViewErrorEventArgs.cs ================================================ using System; using Foundation; namespace ImageKit; public class IKScannerDeviceViewErrorEventArgs : EventArgs { public NSError Error { get; set; } public IKScannerDeviceViewErrorEventArgs(NSError error) { Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceViewScanEventArgs.cs ================================================ using System; using Foundation; namespace ImageKit; public class IKScannerDeviceViewScanEventArgs : EventArgs { public NSUrl Url { get; set; } public NSData Data { get; set; } public NSError Error { get; set; } public IKScannerDeviceViewScanEventArgs(NSUrl url, NSData data, NSError error) { Url = url; Data = data; Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKScannerDeviceViewTransferMode.cs ================================================ namespace ImageKit; public enum IKScannerDeviceViewTransferMode { File, Memory } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKSlideshow.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKSlideshow", true)] public class IKSlideshow : NSObject { private static readonly IntPtr selSharedSlideshowHandle = Selector.GetHandle("sharedSlideshow"); private static readonly IntPtr selAutoPlayDelayHandle = Selector.GetHandle("autoPlayDelay"); private static readonly IntPtr selSetAutoPlayDelay_Handle = Selector.GetHandle("setAutoPlayDelay:"); private static readonly IntPtr selIndexOfCurrentSlideshowItemHandle = Selector.GetHandle("indexOfCurrentSlideshowItem"); private static readonly IntPtr selRunSlideshowWithDataSourceInModeOptions_Handle = Selector.GetHandle("runSlideshowWithDataSource:inMode:options:"); private static readonly IntPtr selStopSlideshow_Handle = Selector.GetHandle("stopSlideshow:"); private static readonly IntPtr selReloadDataHandle = Selector.GetHandle("reloadData"); private static readonly IntPtr selReloadSlideshowItemAtIndex_Handle = Selector.GetHandle("reloadSlideshowItemAtIndex:"); private static readonly IntPtr selCanExportToApplication_Handle = Selector.GetHandle("canExportToApplication:"); private static readonly IntPtr selExportSlideshowItemToApplication_Handle = Selector.GetHandle("exportSlideshowItem:toApplication:"); private static readonly IntPtr class_ptr = Class.GetHandle("IKSlideshow"); private static object __mt_SharedSlideshow_var_static; private static NSString _ModeImages; private static NSString _ModePDF; private static NSString _ModeOther; private static NSString _WrapAround; private static NSString _StartPaused; private static NSString _StartIndex; private static NSString _Screen; private static NSString _AudioFile; private static NSString _PDFDisplayBox; private static NSString _PDFDisplayMode; private static NSString _PDFDisplaysAsBook; private static NSString _IPhotoBundleIdentifier; private static NSString _ApertureBundleIdentifier; private static NSString _MailBundleIdentifier; public override IntPtr ClassHandle => class_ptr; public static IKSlideshow SharedSlideshow { [Export("sharedSlideshow")] get { return (IKSlideshow)(__mt_SharedSlideshow_var_static = (IKSlideshow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedSlideshowHandle))); } } public virtual double autoPlayDelay { [Export("autoPlayDelay")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selAutoPlayDelayHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selAutoPlayDelayHandle); } [Export("setAutoPlayDelay:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetAutoPlayDelay_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetAutoPlayDelay_Handle, value); } } } public virtual int IndexOfCurrentSlideshowItem { [Export("indexOfCurrentSlideshowItem")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIndexOfCurrentSlideshowItemHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIndexOfCurrentSlideshowItemHandle); } } [Field("IKSlideshowModeImages", "ImageKit")] public static NSString ModeImages { get { if (_ModeImages == null) { _ModeImages = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowModeImages"); } return _ModeImages; } } [Field("IKSlideshowModePDF", "ImageKit")] public static NSString ModePDF { get { if (_ModePDF == null) { _ModePDF = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowModePDF"); } return _ModePDF; } } [Field("IKSlideshowModeOther", "ImageKit")] public static NSString ModeOther { get { if (_ModeOther == null) { _ModeOther = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowModeOther"); } return _ModeOther; } } [Field("IKSlideshowWrapAround", "ImageKit")] public static NSString WrapAround { get { if (_WrapAround == null) { _WrapAround = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowWrapAround"); } return _WrapAround; } } [Field("IKSlideshowStartPaused", "ImageKit")] public static NSString StartPaused { get { if (_StartPaused == null) { _StartPaused = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowStartPaused"); } return _StartPaused; } } [Field("IKSlideshowStartIndex", "ImageKit")] public static NSString StartIndex { get { if (_StartIndex == null) { _StartIndex = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowStartIndex"); } return _StartIndex; } } [Field("IKSlideshowScreen", "ImageKit")] public static NSString Screen { get { if (_Screen == null) { _Screen = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowScreen"); } return _Screen; } } [Field("IKSlideshowAudioFile", "ImageKit")] public static NSString AudioFile { get { if (_AudioFile == null) { _AudioFile = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowAudioFile"); } return _AudioFile; } } [Field("IKSlideshowPDFDisplayBox", "ImageKit")] public static NSString PDFDisplayBox { get { if (_PDFDisplayBox == null) { _PDFDisplayBox = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowPDFDisplayBox"); } return _PDFDisplayBox; } } [Field("IKSlideshowPDFDisplayMode", "ImageKit")] public static NSString PDFDisplayMode { get { if (_PDFDisplayMode == null) { _PDFDisplayMode = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowPDFDisplayMode"); } return _PDFDisplayMode; } } [Field("IKSlideshowPDFDisplaysAsBook", "ImageKit")] public static NSString PDFDisplaysAsBook { get { if (_PDFDisplaysAsBook == null) { _PDFDisplaysAsBook = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IKSlideshowPDFDisplaysAsBook"); } return _PDFDisplaysAsBook; } } [Field("IK_iPhotoBundleIdentifier", "ImageKit")] public static NSString IPhotoBundleIdentifier { get { if (_IPhotoBundleIdentifier == null) { _IPhotoBundleIdentifier = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IK_iPhotoBundleIdentifier"); } return _IPhotoBundleIdentifier; } } [Field("IK_ApertureBundleIdentifier", "ImageKit")] public static NSString ApertureBundleIdentifier { get { if (_ApertureBundleIdentifier == null) { _ApertureBundleIdentifier = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IK_ApertureBundleIdentifier"); } return _ApertureBundleIdentifier; } } [Field("IK_MailBundleIdentifier", "ImageKit")] public static NSString MailBundleIdentifier { get { if (_MailBundleIdentifier == null) { _MailBundleIdentifier = Dlfcn.GetStringConstant(Libraries.ImageKit.Handle, "IK_MailBundleIdentifier"); } return _MailBundleIdentifier; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKSlideshow() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKSlideshow(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSlideshow(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSlideshow(IntPtr handle) : base(handle) { } [Export("runSlideshowWithDataSource:inMode:options:")] public virtual void RunSlideshow(IKSlideshowDataSource dataSource, string slideshowMode, NSDictionary slideshowOptions) { if (dataSource == null) { throw new ArgumentNullException("dataSource"); } if (slideshowMode == null) { throw new ArgumentNullException("slideshowMode"); } if (slideshowOptions == null) { throw new ArgumentNullException("slideshowOptions"); } IntPtr arg = NSString.CreateNative(slideshowMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selRunSlideshowWithDataSourceInModeOptions_Handle, dataSource.Handle, arg, slideshowOptions.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selRunSlideshowWithDataSourceInModeOptions_Handle, dataSource.Handle, arg, slideshowOptions.Handle); } NSString.ReleaseNative(arg); } [Export("stopSlideshow:")] public virtual void StopSlideshow(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStopSlideshow_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStopSlideshow_Handle, sender.Handle); } } [Export("reloadData")] public virtual void ReloadData() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadDataHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadDataHandle); } } [Export("reloadSlideshowItemAtIndex:")] public virtual void ReloadSlideshowItem(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selReloadSlideshowItemAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selReloadSlideshowItemAtIndex_Handle, index); } } [Export("canExportToApplication:")] public static bool CanExportToApplication(string applicationBundleIdentifier) { if (applicationBundleIdentifier == null) { throw new ArgumentNullException("applicationBundleIdentifier"); } IntPtr arg = NSString.CreateNative(applicationBundleIdentifier); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanExportToApplication_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("exportSlideshowItem:toApplication:")] public static void ExportSlideshowItemtoApplication(NSObject item, string applicationBundleIdentifier) { if (item == null) { throw new ArgumentNullException("item"); } if (applicationBundleIdentifier == null) { throw new ArgumentNullException("applicationBundleIdentifier"); } IntPtr arg = NSString.CreateNative(applicationBundleIdentifier); Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, selExportSlideshowItemToApplication_Handle, item.Handle, arg); NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/IKSlideshowDataSource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ImageKit; [Register("IKSlideshowDataSource", true)] [Model] public abstract class IKSlideshowDataSource : NSObject { public abstract int ItemCount { [Export("numberOfSlideshowItems")] get; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public IKSlideshowDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public IKSlideshowDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSlideshowDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public IKSlideshowDataSource(IntPtr handle) : base(handle) { } [Export("slideshowItemAtIndex:")] public abstract NSObject GetItemAt(int index); [Export("nameOfSlideshowItemAtIndex:")] public virtual string GetNameOfItemAt(int index) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("canExportSlideshowItemAtIndex:toApplication:")] public virtual bool CanExportItemToApplication(int index, string applicationBundleIdentifier) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("slideshowWillStart")] public virtual void WillStart() { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("slideshowDidStop")] public virtual void DidStop() { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("slideshowDidChangeCurrentIndex:")] public virtual void DidChange(int newIndex) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ImageKit/SaveOptionsShouldShowUTType.cs ================================================ namespace ImageKit; public delegate bool SaveOptionsShouldShowUTType(IKSaveOptions saveOptions, string imageUTType); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/IJSExport.cs ================================================ using Foundation; using ObjCRuntime; namespace JavaScriptCore; [Protocol(Name = "JSExport", WrapperType = typeof(JSExportWrapper))] public interface IJSExport : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSClassAttributes.cs ================================================ namespace JavaScriptCore; [Flags] public enum JSClassAttributes : uint { None = 0u, NoAutomaticPrototype = 2u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSContext.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace JavaScriptCore; [Register("JSContext", true)] public class JSContext : NSObject { private const string selJSGlobalContextRef = "JSGlobalContextRef"; private static readonly IntPtr selJSGlobalContextRefHandle = Selector.GetHandle("JSGlobalContextRef"); private const string selContextWithJSGlobalContextRef_ = "contextWithJSGlobalContextRef:"; private static readonly IntPtr selContextWithJSGlobalContextRef_Handle = Selector.GetHandle("contextWithJSGlobalContextRef:"); private const string selCurrentArguments = "currentArguments"; private static readonly IntPtr selCurrentArgumentsHandle = Selector.GetHandle("currentArguments"); private const string selCurrentCallee = "currentCallee"; private static readonly IntPtr selCurrentCalleeHandle = Selector.GetHandle("currentCallee"); private const string selCurrentContext = "currentContext"; private static readonly IntPtr selCurrentContextHandle = Selector.GetHandle("currentContext"); private const string selCurrentThis = "currentThis"; private static readonly IntPtr selCurrentThisHandle = Selector.GetHandle("currentThis"); private const string selEvaluateScript_ = "evaluateScript:"; private static readonly IntPtr selEvaluateScript_Handle = Selector.GetHandle("evaluateScript:"); private const string selEvaluateScript_WithSourceURL_ = "evaluateScript:withSourceURL:"; private static readonly IntPtr selEvaluateScript_WithSourceURL_Handle = Selector.GetHandle("evaluateScript:withSourceURL:"); private const string selException = "exception"; private static readonly IntPtr selExceptionHandle = Selector.GetHandle("exception"); private const string selExceptionHandler = "exceptionHandler"; private static readonly IntPtr selExceptionHandlerHandle = Selector.GetHandle("exceptionHandler"); private const string selGlobalObject = "globalObject"; private static readonly IntPtr selGlobalObjectHandle = Selector.GetHandle("globalObject"); private const string selInit = "init"; private static readonly IntPtr selInitHandle = Selector.GetHandle("init"); private const string selInitWithVirtualMachine_ = "initWithVirtualMachine:"; private static readonly IntPtr selInitWithVirtualMachine_Handle = Selector.GetHandle("initWithVirtualMachine:"); private const string selName = "name"; private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private const string selObjectForKeyedSubscript_ = "objectForKeyedSubscript:"; private static readonly IntPtr selObjectForKeyedSubscript_Handle = Selector.GetHandle("objectForKeyedSubscript:"); private const string selSetException_ = "setException:"; private static readonly IntPtr selSetException_Handle = Selector.GetHandle("setException:"); private const string selSetExceptionHandler_ = "setExceptionHandler:"; private static readonly IntPtr selSetExceptionHandler_Handle = Selector.GetHandle("setExceptionHandler:"); private const string selSetName_ = "setName:"; private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private const string selSetObject_ForKeyedSubscript_ = "setObject:forKeyedSubscript:"; private static readonly IntPtr selSetObject_ForKeyedSubscript_Handle = Selector.GetHandle("setObject:forKeyedSubscript:"); private const string selVirtualMachine = "virtualMachine"; private static readonly IntPtr selVirtualMachineHandle = Selector.GetHandle("virtualMachine"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("JSContext"); public JSValue this[NSObject key] { get { return _GetObject(key); } set { _SetObject(value, key); } } public override IntPtr ClassHandle => class_ptr; public static JSValue[] CurrentArguments { [Export("currentArguments")] get { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentArgumentsHandle)); } } public static JSValue CurrentCallee { [Export("currentCallee")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentCalleeHandle)); } } public static JSContext CurrentContext { [Export("currentContext")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentContextHandle)); } } public static JSValue CurrentThis { [Export("currentThis")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selCurrentThisHandle)); } } public virtual JSValue? Exception { [Export("exception", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selExceptionHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selExceptionHandle)); } [Export("setException:", ArgumentSemantic.Retain)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetException_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetException_Handle, value?.Handle ?? IntPtr.Zero); } } } public unsafe virtual JSContextExceptionHandler ExceptionHandler { [Export("exceptionHandler", ArgumentSemantic.Copy)] get { IntPtr block = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selExceptionHandlerHandle) : Messaging.IntPtr_objc_msgSend(Handle, selExceptionHandlerHandle)); return Trampolines.NIDJSContextExceptionHandler.Create(block); } [Export("setExceptionHandler:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDJSContextExceptionHandler.Handler, value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetExceptionHandler_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetExceptionHandler_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } } public virtual JSValue GlobalObject { [Export("globalObject")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selGlobalObjectHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selGlobalObjectHandle)); } } public virtual IntPtr JSGlobalContextRefPtr { [Export("JSGlobalContextRef")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(Handle, selJSGlobalContextRefHandle); } return Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selJSGlobalContextRefHandle); } } public virtual string? Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selNameHandle)); } [Export("setName:")] set { IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual JSVirtualMachine VirtualMachine { [Export("virtualMachine", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selVirtualMachineHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selVirtualMachineHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] protected JSContext(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal JSContext(IntPtr handle) : base(handle) { } [Export("init")] public JSContext() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [Export("initWithVirtualMachine:")] public JSContext(JSVirtualMachine virtualMachine) : base(NSObjectFlag.Empty) { if (virtualMachine == null) { throw new ArgumentNullException("virtualMachine"); } if (IsDirectBinding) InitializeWithHandle(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithVirtualMachine_Handle, virtualMachine.Handle)); else InitializeWithHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithVirtualMachine_Handle, virtualMachine.Handle)); } [Export("evaluateScript:withSourceURL:")] public virtual JSValue EvaluateScript(string script, NSUrl sourceUrl) { if (script == null) { throw new ArgumentNullException("script"); } if (sourceUrl == null) { throw new ArgumentNullException("sourceUrl"); } IntPtr arg = NSString.CreateNative(script); JSValue result = ((!IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selEvaluateScript_WithSourceURL_Handle, arg, sourceUrl.Handle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selEvaluateScript_WithSourceURL_Handle, arg, sourceUrl.Handle))); NSString.ReleaseNative(arg); return result; } [Export("evaluateScript:")] public virtual JSValue EvaluateScript(string script) { if (script == null) { throw new ArgumentNullException("script"); } IntPtr arg = NSString.CreateNative(script); JSValue result = ((!IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selEvaluateScript_Handle, arg)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selEvaluateScript_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("contextWithJSGlobalContextRef:")] public static JSContext FromJSGlobalContextRef(IntPtr nativeJsGlobalContextRef) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selContextWithJSGlobalContextRef_Handle, nativeJsGlobalContextRef)); } [Export("objectForKeyedSubscript:")] internal virtual JSValue _GetObject(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selObjectForKeyedSubscript_Handle, key.Handle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selObjectForKeyedSubscript_Handle, key.Handle)); } [Export("setObject:forKeyedSubscript:")] internal virtual void _SetObject(JSValue obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetObject_ForKeyedSubscript_Handle, obj.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetObject_ForKeyedSubscript_Handle, obj.Handle, key.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSContextExceptionHandler.cs ================================================ namespace JavaScriptCore; public delegate void JSContextExceptionHandler(JSContext context, JSValue exception); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSExport.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace JavaScriptCore; [Protocol] [Register("Xamarin_Mac__JavaScriptCore_JSExport", false)] [Model] public class JSExport : NSObject, IJSExport, INativeObject, IDisposable { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public JSExport() : base(NSObjectFlag.Empty) { IsDirectBinding = false; InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected JSExport(NSObjectFlag t) : base(t) { IsDirectBinding = false; } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal JSExport(IntPtr handle) : base(handle) { IsDirectBinding = false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSExportWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace JavaScriptCore; internal sealed class JSExportWrapper : BaseWrapper, IJSExport { [Preserve(Conditional = true)] public JSExportWrapper(IntPtr handle) : base(handle, false) { } [Preserve(Conditional = true)] public JSExportWrapper(IntPtr handle, bool owns) : base(handle, owns) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSManagedValue.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace JavaScriptCore; [Register("JSManagedValue", true)] public class JSManagedValue : NSObject { private const string selInitWithValue_ = "initWithValue:"; private static readonly IntPtr selInitWithValue_Handle = Selector.GetHandle("initWithValue:"); private const string selManagedValueWithValue_ = "managedValueWithValue:"; private static readonly IntPtr selManagedValueWithValue_Handle = Selector.GetHandle("managedValueWithValue:"); private const string selManagedValueWithValue_AndOwner_ = "managedValueWithValue:andOwner:"; private static readonly IntPtr selManagedValueWithValue_AndOwner_Handle = Selector.GetHandle("managedValueWithValue:andOwner:"); private const string selValue = "value"; private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("JSManagedValue"); public override IntPtr ClassHandle => class_ptr; public virtual JSValue Value { [Export("value")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selValueHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selValueHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public JSManagedValue() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected JSManagedValue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal JSManagedValue(IntPtr handle) : base(handle) { } [Export("initWithValue:")] public JSManagedValue(JSValue value) : base(NSObjectFlag.Empty) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) InitializeWithHandle(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selInitWithValue_Handle, value.Handle)); else InitializeWithHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selInitWithValue_Handle, value.Handle)); } [Export("managedValueWithValue:")] public static JSManagedValue Get(JSValue value) { if (value == null) throw new ArgumentNullException("value"); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selManagedValueWithValue_Handle, value.Handle)); } [Export("managedValueWithValue:andOwner:")] public static JSManagedValue Get(JSValue value, NSObject owner) { if (value == null) throw new ArgumentNullException("value"); if (owner == null) throw new ArgumentNullException("owner"); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selManagedValueWithValue_AndOwner_Handle, value.Handle, owner.Handle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSPromiseCreationExecutor.cs ================================================ namespace JavaScriptCore; public delegate void JSPromiseCreationExecutor(JSValue resolve, JSValue rejected); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSPropertyAttributes.cs ================================================ namespace JavaScriptCore; [Flags] public enum JSPropertyAttributes : uint { None = 0u, ReadOnly = 2u, DontEnum = 4u, DontDelete = 8u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSPropertyDescriptorKeys.cs ================================================ using Foundation; using ObjCRuntime; namespace JavaScriptCore; public static class JSPropertyDescriptorKeys { private static NSString? _Configurable; private static NSString? _Enumerable; private static NSString? _Get; private static NSString? _Set; private static NSString? _Value; private static NSString? _Writable; [Field("JSPropertyDescriptorConfigurableKey", "JavaScriptCore")] public static NSString Configurable { get { if (_Configurable == null) { _Configurable = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorConfigurableKey"); } return _Configurable; } } [Field("JSPropertyDescriptorEnumerableKey", "JavaScriptCore")] public static NSString Enumerable { get { if (_Enumerable == null) { _Enumerable = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorEnumerableKey"); } return _Enumerable; } } [Field("JSPropertyDescriptorGetKey", "JavaScriptCore")] public static NSString Get { get { if (_Get == null) { _Get = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorGetKey"); } return _Get; } } [Field("JSPropertyDescriptorSetKey", "JavaScriptCore")] public static NSString Set { get { if (_Set == null) { _Set = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorSetKey"); } return _Set; } } [Field("JSPropertyDescriptorValueKey", "JavaScriptCore")] public static NSString Value { get { if (_Value == null) { _Value = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorValueKey"); } return _Value; } } [Field("JSPropertyDescriptorWritableKey", "JavaScriptCore")] public static NSString Writable { get { if (_Writable == null) { _Writable = Dlfcn.GetStringConstant(Libraries.JavaScriptCore.Handle, "JSPropertyDescriptorWritableKey"); } return _Writable; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSType.cs ================================================ namespace JavaScriptCore; public enum JSType { Undefined, Null, Boolean, Number, String, Object, Symbol } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSValue.cs ================================================ using CoreGraphics; using Foundation; using ObjCRuntime; using System.ComponentModel; namespace JavaScriptCore; [Register("JSValue", true)] public class JSValue : NSObject { private const string selJSValueRef = "JSValueRef"; private static readonly IntPtr selJSValueRefHandle = Selector.GetHandle("JSValueRef"); private const string selCallWithArguments_ = "callWithArguments:"; private static readonly IntPtr selCallWithArguments_Handle = Selector.GetHandle("callWithArguments:"); private const string selConstructWithArguments_ = "constructWithArguments:"; private static readonly IntPtr selConstructWithArguments_Handle = Selector.GetHandle("constructWithArguments:"); private const string selContext = "context"; private static readonly IntPtr selContextHandle = Selector.GetHandle("context"); private const string selDefineProperty_Descriptor_ = "defineProperty:descriptor:"; private static readonly IntPtr selDefineProperty_Descriptor_Handle = Selector.GetHandle("defineProperty:descriptor:"); private const string selDeleteProperty_ = "deleteProperty:"; private static readonly IntPtr selDeleteProperty_Handle = Selector.GetHandle("deleteProperty:"); private const string selHasProperty_ = "hasProperty:"; private static readonly IntPtr selHasProperty_Handle = Selector.GetHandle("hasProperty:"); private const string selInvokeMethod_WithArguments_ = "invokeMethod:withArguments:"; private static readonly IntPtr selInvokeMethod_WithArguments_Handle = Selector.GetHandle("invokeMethod:withArguments:"); private const string selIsArray = "isArray"; private static readonly IntPtr selIsArrayHandle = Selector.GetHandle("isArray"); private const string selIsBoolean = "isBoolean"; private static readonly IntPtr selIsBooleanHandle = Selector.GetHandle("isBoolean"); private const string selIsDate = "isDate"; private static readonly IntPtr selIsDateHandle = Selector.GetHandle("isDate"); private const string selIsEqualToObject_ = "isEqualToObject:"; private static readonly IntPtr selIsEqualToObject_Handle = Selector.GetHandle("isEqualToObject:"); private const string selIsEqualWithTypeCoercionToObject_ = "isEqualWithTypeCoercionToObject:"; private static readonly IntPtr selIsEqualWithTypeCoercionToObject_Handle = Selector.GetHandle("isEqualWithTypeCoercionToObject:"); private const string selIsInstanceOf_ = "isInstanceOf:"; private static readonly IntPtr selIsInstanceOf_Handle = Selector.GetHandle("isInstanceOf:"); private const string selIsNull = "isNull"; private static readonly IntPtr selIsNullHandle = Selector.GetHandle("isNull"); private const string selIsNumber = "isNumber"; private static readonly IntPtr selIsNumberHandle = Selector.GetHandle("isNumber"); private const string selIsObject = "isObject"; private static readonly IntPtr selIsObjectHandle = Selector.GetHandle("isObject"); private const string selIsString = "isString"; private static readonly IntPtr selIsStringHandle = Selector.GetHandle("isString"); private const string selIsSymbol = "isSymbol"; private static readonly IntPtr selIsSymbolHandle = Selector.GetHandle("isSymbol"); private const string selIsUndefined = "isUndefined"; private static readonly IntPtr selIsUndefinedHandle = Selector.GetHandle("isUndefined"); private const string selObjectAtIndexedSubscript_ = "objectAtIndexedSubscript:"; private static readonly IntPtr selObjectAtIndexedSubscript_Handle = Selector.GetHandle("objectAtIndexedSubscript:"); private const string selObjectForKeyedSubscript_ = "objectForKeyedSubscript:"; private static readonly IntPtr selObjectForKeyedSubscript_Handle = Selector.GetHandle("objectForKeyedSubscript:"); private const string selSetObject_AtIndexedSubscript_ = "setObject:atIndexedSubscript:"; private static readonly IntPtr selSetObject_AtIndexedSubscript_Handle = Selector.GetHandle("setObject:atIndexedSubscript:"); private const string selSetObject_ForKeyedSubscript_ = "setObject:forKeyedSubscript:"; private static readonly IntPtr selSetObject_ForKeyedSubscript_Handle = Selector.GetHandle("setObject:forKeyedSubscript:"); private const string selSetValue_AtIndex_ = "setValue:atIndex:"; private static readonly IntPtr selSetValue_AtIndex_Handle = Selector.GetHandle("setValue:atIndex:"); private const string selSetValue_ForProperty_ = "setValue:forProperty:"; private static readonly IntPtr selSetValue_ForProperty_Handle = Selector.GetHandle("setValue:forProperty:"); private const string selToArray = "toArray"; private static readonly IntPtr selToArrayHandle = Selector.GetHandle("toArray"); private const string selToBool = "toBool"; private static readonly IntPtr selToBoolHandle = Selector.GetHandle("toBool"); private const string selToDate = "toDate"; private static readonly IntPtr selToDateHandle = Selector.GetHandle("toDate"); private const string selToDictionary = "toDictionary"; private static readonly IntPtr selToDictionaryHandle = Selector.GetHandle("toDictionary"); private const string selToDouble = "toDouble"; private static readonly IntPtr selToDoubleHandle = Selector.GetHandle("toDouble"); private const string selToInt32 = "toInt32"; private static readonly IntPtr selToInt32Handle = Selector.GetHandle("toInt32"); private const string selToNumber = "toNumber"; private static readonly IntPtr selToNumberHandle = Selector.GetHandle("toNumber"); private const string selToObject = "toObject"; private static readonly IntPtr selToObjectHandle = Selector.GetHandle("toObject"); private const string selToObjectOfClass_ = "toObjectOfClass:"; private static readonly IntPtr selToObjectOfClass_Handle = Selector.GetHandle("toObjectOfClass:"); private const string selToPoint = "toPoint"; private static readonly IntPtr selToPointHandle = Selector.GetHandle("toPoint"); private const string selToRange = "toRange"; private static readonly IntPtr selToRangeHandle = Selector.GetHandle("toRange"); private const string selToRect = "toRect"; private static readonly IntPtr selToRectHandle = Selector.GetHandle("toRect"); private const string selToSize = "toSize"; private static readonly IntPtr selToSizeHandle = Selector.GetHandle("toSize"); private const string selToString = "toString"; private static readonly IntPtr selToStringHandle = Selector.GetHandle("toString"); private const string selToUInt32 = "toUInt32"; private static readonly IntPtr selToUInt32Handle = Selector.GetHandle("toUInt32"); private const string selValueAtIndex_ = "valueAtIndex:"; private static readonly IntPtr selValueAtIndex_Handle = Selector.GetHandle("valueAtIndex:"); private const string selValueForProperty_ = "valueForProperty:"; private static readonly IntPtr selValueForProperty_Handle = Selector.GetHandle("valueForProperty:"); private const string selValueWithBool_InContext_ = "valueWithBool:inContext:"; private static readonly IntPtr selValueWithBool_InContext_Handle = Selector.GetHandle("valueWithBool:inContext:"); private const string selValueWithDouble_InContext_ = "valueWithDouble:inContext:"; private static readonly IntPtr selValueWithDouble_InContext_Handle = Selector.GetHandle("valueWithDouble:inContext:"); private const string selValueWithInt32_InContext_ = "valueWithInt32:inContext:"; private static readonly IntPtr selValueWithInt32_InContext_Handle = Selector.GetHandle("valueWithInt32:inContext:"); private const string selValueWithJSValueRef_InContext_ = "valueWithJSValueRef:inContext:"; private static readonly IntPtr selValueWithJSValueRef_InContext_Handle = Selector.GetHandle("valueWithJSValueRef:inContext:"); private const string selValueWithNewArrayInContext_ = "valueWithNewArrayInContext:"; private static readonly IntPtr selValueWithNewArrayInContext_Handle = Selector.GetHandle("valueWithNewArrayInContext:"); private const string selValueWithNewErrorFromMessage_InContext_ = "valueWithNewErrorFromMessage:inContext:"; private static readonly IntPtr selValueWithNewErrorFromMessage_InContext_Handle = Selector.GetHandle("valueWithNewErrorFromMessage:inContext:"); private const string selValueWithNewObjectInContext_ = "valueWithNewObjectInContext:"; private static readonly IntPtr selValueWithNewObjectInContext_Handle = Selector.GetHandle("valueWithNewObjectInContext:"); private const string selValueWithNewPromiseInContext_FromExecutor_ = "valueWithNewPromiseInContext:fromExecutor:"; private static readonly IntPtr selValueWithNewPromiseInContext_FromExecutor_Handle = Selector.GetHandle("valueWithNewPromiseInContext:fromExecutor:"); private const string selValueWithNewPromiseRejectedWithReason_InContext_ = "valueWithNewPromiseRejectedWithReason:inContext:"; private static readonly IntPtr selValueWithNewPromiseRejectedWithReason_InContext_Handle = Selector.GetHandle("valueWithNewPromiseRejectedWithReason:inContext:"); private const string selValueWithNewPromiseResolvedWithResult_InContext_ = "valueWithNewPromiseResolvedWithResult:inContext:"; private static readonly IntPtr selValueWithNewPromiseResolvedWithResult_InContext_Handle = Selector.GetHandle("valueWithNewPromiseResolvedWithResult:inContext:"); private const string selValueWithNewRegularExpressionFromPattern_Flags_InContext_ = "valueWithNewRegularExpressionFromPattern:flags:inContext:"; private static readonly IntPtr selValueWithNewRegularExpressionFromPattern_Flags_InContext_Handle = Selector.GetHandle("valueWithNewRegularExpressionFromPattern:flags:inContext:"); private const string selValueWithNewSymbolFromDescription_InContext_ = "valueWithNewSymbolFromDescription:inContext:"; private static readonly IntPtr selValueWithNewSymbolFromDescription_InContext_Handle = Selector.GetHandle("valueWithNewSymbolFromDescription:inContext:"); private const string selValueWithNullInContext_ = "valueWithNullInContext:"; private static readonly IntPtr selValueWithNullInContext_Handle = Selector.GetHandle("valueWithNullInContext:"); private const string selValueWithObject_InContext_ = "valueWithObject:inContext:"; private static readonly IntPtr selValueWithObject_InContext_Handle = Selector.GetHandle("valueWithObject:inContext:"); private const string selValueWithPoint_InContext_ = "valueWithPoint:inContext:"; private static readonly IntPtr selValueWithPoint_InContext_Handle = Selector.GetHandle("valueWithPoint:inContext:"); private const string selValueWithRange_InContext_ = "valueWithRange:inContext:"; private static readonly IntPtr selValueWithRange_InContext_Handle = Selector.GetHandle("valueWithRange:inContext:"); private const string selValueWithRect_InContext_ = "valueWithRect:inContext:"; private static readonly IntPtr selValueWithRect_InContext_Handle = Selector.GetHandle("valueWithRect:inContext:"); private const string selValueWithSize_InContext_ = "valueWithSize:inContext:"; private static readonly IntPtr selValueWithSize_InContext_Handle = Selector.GetHandle("valueWithSize:inContext:"); private const string selValueWithUInt32_InContext_ = "valueWithUInt32:inContext:"; private static readonly IntPtr selValueWithUInt32_InContext_Handle = Selector.GetHandle("valueWithUInt32:inContext:"); private const string selValueWithUndefinedInContext_ = "valueWithUndefinedInContext:"; private static readonly IntPtr selValueWithUndefinedInContext_Handle = Selector.GetHandle("valueWithUndefinedInContext:"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("JSValue"); public JSValue this[nuint index] { get { return _ObjectAtIndexedSubscript(index); } set { _SetObject(value, index); } } public JSValue this[NSObject key] { get { return _ObjectForKeyedSubscript(key); } set { _SetObject(value, key); } } public override IntPtr ClassHandle => class_ptr; public virtual JSContext Context { [Export("context", ArgumentSemantic.Retain)] get { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selContextHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContextHandle)); } } public virtual bool IsArray { [Export("isArray")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsArrayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsArrayHandle); } } public virtual bool IsBoolean { [Export("isBoolean")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBooleanHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBooleanHandle); } } public virtual bool IsDate { [Export("isDate")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsDateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsDateHandle); } } public virtual bool IsNull { [Export("isNull")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsNullHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsNullHandle); } } public virtual bool IsNumber { [Export("isNumber")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsNumberHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsNumberHandle); } } public virtual bool IsObject { [Export("isObject")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsObjectHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsObjectHandle); } } public virtual bool IsString { [Export("isString")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsStringHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsStringHandle); } } public virtual bool IsSymbol { [Export("isSymbol")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsSymbolHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsSymbolHandle); } } public virtual bool IsUndefined { [Export("isUndefined")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsUndefinedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsUndefinedHandle); } } public virtual IntPtr JSValueRefPtr { [Export("JSValueRef")] get { if (base.IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selJSValueRefHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selJSValueRefHandle); } } public override string ToString() { return _ToString(); } public static JSValue From(string value, JSContext context) { using NSString value2 = new NSString(value); return From((NSObject)value2, context); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected JSValue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal JSValue(IntPtr handle) : base(handle) { } [Export("callWithArguments:")] public virtual JSValue Call(params JSValue[] arguments) { if (arguments == null) { throw new ArgumentNullException("arguments"); } NSArray nSArray = NSArray.FromNSObjects(arguments); JSValue result = ((!base.IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCallWithArguments_Handle, nSArray.Handle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCallWithArguments_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("constructWithArguments:")] public virtual JSValue Construct(params JSValue[] arguments) { if (arguments == null) { throw new ArgumentNullException("arguments"); } NSArray nSArray = NSArray.FromNSObjects(arguments); JSValue result = ((!base.IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selConstructWithArguments_Handle, nSArray.Handle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selConstructWithArguments_Handle, nSArray.Handle))); nSArray.Dispose(); return result; } [Export("valueWithNewArrayInContext:")] public static JSValue CreateArray(JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithNewArrayInContext_Handle, context.Handle)); } [Export("valueWithNewErrorFromMessage:inContext:")] public static JSValue CreateError(string message, JSContext context) { if (message == null) { throw new ArgumentNullException("message"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr arg = NSString.CreateNative(message); JSValue nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithNewErrorFromMessage_InContext_Handle, arg, context.Handle)); NSString.ReleaseNative(arg); return nSObject; } [Export("valueWithNewObjectInContext:")] public static JSValue CreateObject(JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithNewObjectInContext_Handle, context.Handle)); } [Export("valueWithNewPromiseInContext:fromExecutor:")] public unsafe static JSValue CreatePromise(JSContext context, JSPromiseCreationExecutor callback) { if (context == null) { throw new ArgumentNullException("context"); } if (callback == null) { throw new ArgumentNullException("callback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDJSPromiseCreationExecutor.Handler, callback); JSValue nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithNewPromiseInContext_FromExecutor_Handle, context.Handle, (IntPtr)ptr)); ptr->CleanupBlock(); return nSObject; } [Export("valueWithNewRegularExpressionFromPattern:flags:inContext:")] public static JSValue CreateRegularExpression(string pattern, string flags, JSContext context) { if (pattern == null) { throw new ArgumentNullException("pattern"); } if (flags == null) { throw new ArgumentNullException("flags"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr arg = NSString.CreateNative(pattern); IntPtr arg2 = NSString.CreateNative(flags); JSValue nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selValueWithNewRegularExpressionFromPattern_Flags_InContext_Handle, arg, arg2, context.Handle)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return nSObject; } [Export("valueWithNewPromiseRejectedWithReason:inContext:")] public static JSValue CreateRejectedPromise(NSObject reason, JSContext context) { if (reason == null) { throw new ArgumentNullException("reason"); } if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithNewPromiseRejectedWithReason_InContext_Handle, reason.Handle, context.Handle)); } [Export("valueWithNewPromiseResolvedWithResult:inContext:")] public static JSValue CreateResolvedPromise(NSObject result, JSContext context) { if (result == null) { throw new ArgumentNullException("result"); } if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithNewPromiseResolvedWithResult_InContext_Handle, result.Handle, context.Handle)); } [Export("valueWithNewSymbolFromDescription:inContext:")] public static JSValue CreateSymbol(string description, JSContext context) { if (description == null) { throw new ArgumentNullException("description"); } if (context == null) { throw new ArgumentNullException("context"); } IntPtr arg = NSString.CreateNative(description); JSValue nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithNewSymbolFromDescription_InContext_Handle, arg, context.Handle)); NSString.ReleaseNative(arg); return nSObject; } [Export("defineProperty:descriptor:")] public virtual void DefineProperty(string property, NSObject descriptor) { if (property == null) { throw new ArgumentNullException("property"); } if (descriptor == null) { throw new ArgumentNullException("descriptor"); } IntPtr arg = NSString.CreateNative(property); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selDefineProperty_Descriptor_Handle, arg, descriptor.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selDefineProperty_Descriptor_Handle, arg, descriptor.Handle); } NSString.ReleaseNative(arg); } [Export("deleteProperty:")] public virtual bool DeleteProperty(string property) { if (property == null) { throw new ArgumentNullException("property"); } IntPtr arg = NSString.CreateNative(property); bool result = ((!base.IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeleteProperty_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selDeleteProperty_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("valueWithObject:inContext:")] public static JSValue From(NSObject value, JSContext context) { if (value == null) { throw new ArgumentNullException("value"); } if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithObject_InContext_Handle, value.Handle, context.Handle)); } [Export("valueWithBool:inContext:")] public static JSValue From(bool value, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_bool_IntPtr(class_ptr, selValueWithBool_InContext_Handle, value, context.Handle)); } [Export("valueWithDouble:inContext:")] public static JSValue From(double value, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_Double_IntPtr(class_ptr, selValueWithDouble_InContext_Handle, value, context.Handle)); } [Export("valueWithInt32:inContext:")] public static JSValue From(int ivalue, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_int_IntPtr(class_ptr, selValueWithInt32_InContext_Handle, ivalue, context.Handle)); } [Export("valueWithUInt32:inContext:")] public static JSValue From(uint value, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_UInt32_IntPtr(class_ptr, selValueWithUInt32_InContext_Handle, value, context.Handle)); } [Export("valueWithPoint:inContext:")] public static JSValue From(CGPoint point, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_CGPoint_IntPtr(class_ptr, selValueWithPoint_InContext_Handle, point, context.Handle)); } [Export("valueWithRange:inContext:")] public static JSValue From(NSRange range, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_NSRange_IntPtr(class_ptr, selValueWithRange_InContext_Handle, range, context.Handle)); } [Export("valueWithRect:inContext:")] public static JSValue From(CGRect rect, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(class_ptr, selValueWithRect_InContext_Handle, rect, context.Handle)); } [Export("valueWithSize:inContext:")] public static JSValue From(CGSize size, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_CGSize_IntPtr(class_ptr, selValueWithSize_InContext_Handle, size, context.Handle)); } [Export("valueWithJSValueRef:inContext:")] public static JSValue FromJSJSValueRef(IntPtr nativeJsValueRefvalue, JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selValueWithJSValueRef_InContext_Handle, nativeJsValueRefvalue, context.Handle)); } [Export("valueForProperty:")] public virtual JSValue GetProperty(string property) { if (property == null) { throw new ArgumentNullException("property"); } IntPtr arg = NSString.CreateNative(property); JSValue result = ((!base.IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selValueForProperty_Handle, arg)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selValueForProperty_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("valueAtIndex:")] public virtual JSValue GetValueAt(nuint index) { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_nuint(base.Handle, selValueAtIndex_Handle, index)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_nuint(base.SuperHandle, selValueAtIndex_Handle, index)); } [Export("hasProperty:")] public virtual bool HasProperty(string property) { if (property == null) { throw new ArgumentNullException("property"); } IntPtr arg = NSString.CreateNative(property); bool result = ((!base.IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasProperty_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasProperty_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("invokeMethod:withArguments:")] public virtual JSValue Invoke(string method, params JSValue[] arguments) { if (method == null) { throw new ArgumentNullException("method"); } if (arguments == null) { throw new ArgumentNullException("arguments"); } IntPtr arg = NSString.CreateNative(method); NSArray nSArray = NSArray.FromNSObjects(arguments); JSValue result = ((!base.IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInvokeMethod_WithArguments_Handle, arg, nSArray.Handle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInvokeMethod_WithArguments_Handle, arg, nSArray.Handle))); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("isEqualToObject:")] public virtual bool IsEqualTo(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToObject_Handle, value.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToObject_Handle, value.Handle); } [Export("isEqualWithTypeCoercionToObject:")] public virtual bool IsEqualWithTypeCoercionTo(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualWithTypeCoercionToObject_Handle, value.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualWithTypeCoercionToObject_Handle, value.Handle); } [Export("isInstanceOf:")] public virtual bool IsInstanceOf(NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsInstanceOf_Handle, value.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsInstanceOf_Handle, value.Handle); } [Export("valueWithNullInContext:")] public static JSValue Null(JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithNullInContext_Handle, context.Handle)); } [Export("setValue:forProperty:")] public virtual void SetProperty(NSObject value, string property) { if (value == null) { throw new ArgumentNullException("value"); } if (property == null) { throw new ArgumentNullException("property"); } IntPtr arg = NSString.CreateNative(property); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetValue_ForProperty_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetValue_ForProperty_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } [Export("setValue:atIndex:")] public virtual void SetValue(JSValue value, nuint index) { if (value == null) { throw new ArgumentNullException("value"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_nuint(base.Handle, selSetValue_AtIndex_Handle, value.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_nuint(base.SuperHandle, selSetValue_AtIndex_Handle, value.Handle, index); } } [Export("toArray")] public virtual JSValue[] ToArray() { if (base.IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToArrayHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToArrayHandle)); } [Export("toBool")] public virtual bool ToBool() { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selToBoolHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selToBoolHandle); } [Export("toDate")] public virtual NSDate ToDate() { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selToDateHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToDateHandle)); } [Export("toDictionary")] public virtual NSDictionary ToDictionary() { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selToDictionaryHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToDictionaryHandle)); } [Export("toDouble")] public virtual double ToDouble() { if (base.IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selToDoubleHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selToDoubleHandle); } [Export("toInt32")] public virtual int ToInt32() { if (base.IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selToInt32Handle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selToInt32Handle); } [Export("toNumber")] public virtual NSNumber ToNumber() { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selToNumberHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToNumberHandle)); } [Export("toObject")] public virtual NSObject ToObject() { if (base.IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selToObjectHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToObjectHandle)); } [Export("toObjectOfClass:")] public virtual NSObject ToObject(Class ofExpectedClass) { if (ofExpectedClass == null) { throw new ArgumentNullException("ofExpectedClass"); } if (base.IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selToObjectOfClass_Handle, ofExpectedClass.Handle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selToObjectOfClass_Handle, ofExpectedClass.Handle)); } [Export("toPoint")] public virtual CGPoint ToPoint() { if (base.IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selToPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selToPointHandle); } [Export("toRange")] public virtual NSRange ToRange() { if (base.IsDirectBinding) { return Messaging.NSRange_objc_msgSend(base.Handle, selToRangeHandle); } return Messaging.NSRange_objc_msgSendSuper(base.SuperHandle, selToRangeHandle); } [Export("toRect")] public virtual CGRect ToRect() { CGRect retval; if (base.IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selToRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selToRectHandle); } return retval; } [Export("toSize")] public virtual CGSize ToSize() { if (base.IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selToSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selToSizeHandle); } [Export("toUInt32")] public virtual uint ToUInt32() { if (base.IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selToUInt32Handle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selToUInt32Handle); } [Export("valueWithUndefinedInContext:")] public static JSValue Undefined(JSContext context) { if (context == null) { throw new ArgumentNullException("context"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selValueWithUndefinedInContext_Handle, context.Handle)); } [Export("objectAtIndexedSubscript:")] internal virtual JSValue _ObjectAtIndexedSubscript(nuint index) { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_nuint(base.Handle, selObjectAtIndexedSubscript_Handle, index)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_nuint(base.SuperHandle, selObjectAtIndexedSubscript_Handle, index)); } [Export("objectForKeyedSubscript:")] internal virtual JSValue _ObjectForKeyedSubscript(NSObject key) { if (key == null) { throw new ArgumentNullException("key"); } if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selObjectForKeyedSubscript_Handle, key.Handle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selObjectForKeyedSubscript_Handle, key.Handle)); } [Export("setObject:forKeyedSubscript:")] internal virtual void _SetObject(JSValue obj, NSObject key) { if (obj == null) { throw new ArgumentNullException("obj"); } if (key == null) { throw new ArgumentNullException("key"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetObject_ForKeyedSubscript_Handle, obj.Handle, key.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetObject_ForKeyedSubscript_Handle, obj.Handle, key.Handle); } } [Export("setObject:atIndexedSubscript:")] internal virtual void _SetObject(JSValue obj, nuint index) { if (obj == null) { throw new ArgumentNullException("obj"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_nuint(base.Handle, selSetObject_AtIndexedSubscript_Handle, obj.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_nuint(base.SuperHandle, selSetObject_AtIndexedSubscript_Handle, obj.Handle, index); } } [Export("toString")] internal virtual string _ToString() { if (base.IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToStringHandle)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/JavaScriptCore/JSVirtualMachine.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace JavaScriptCore; [Register("JSVirtualMachine", true)] public class JSVirtualMachine : NSObject { private const string selAddManagedReference_WithOwner_ = "addManagedReference:withOwner:"; private static readonly IntPtr selAddManagedReference_WithOwner_Handle = Selector.GetHandle("addManagedReference:withOwner:"); private const string selInit = "init"; private static readonly IntPtr selInitHandle = Selector.GetHandle("init"); private const string selRemoveManagedReference_WithOwner_ = "removeManagedReference:withOwner:"; private static readonly IntPtr selRemoveManagedReference_WithOwner_Handle = Selector.GetHandle("removeManagedReference:withOwner:"); private static readonly IntPtr class_ptr = Class.GetHandle("JSVirtualMachine"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected JSVirtualMachine(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal JSVirtualMachine(IntPtr handle) : base(handle) { } [Export("init")] public JSVirtualMachine() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [Export("addManagedReference:withOwner:")] public virtual void AddManagedReference(NSObject obj, NSObject owner) { if (obj == null) { throw new ArgumentNullException("obj"); } if (owner == null) { throw new ArgumentNullException("owner"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddManagedReference_WithOwner_Handle, obj.Handle, owner.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddManagedReference_WithOwner_Handle, obj.Handle, owner.Handle); } } [Export("removeManagedReference:withOwner:")] public virtual void RemoveManagedReference(NSObject obj, NSObject owner) { if (obj == null) { throw new ArgumentNullException("obj"); } if (owner == null) { throw new ArgumentNullException("owner"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveManagedReference_WithOwner_Handle, obj.Handle, owner.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveManagedReference_WithOwner_Handle, obj.Handle, owner.Handle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Libraries.cs ================================================ using ObjCRuntime; internal static class Libraries { public static class AppKit { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/AppKit.framework/AppKit", 0); } public static class Foundation { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/Foundation.framework/Foundation", 0); } public static class ImageKit { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/ImageKit.framework/ImageKit", 0); } public static class QTKit { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/QTKit.framework/QTKit", 0); } public static class PdfKit { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework/PDFKit", 0); } public static class WebKit { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/WebKit.framework/WebKit", 0); } public static class QuartzComposer { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/Quartz.framework/Frameworks/QuartzComposer.framework/QuartzComposer", 0); } public static class AVFoundation { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/AVFoundation.framework/AVFoundation", 0); } public static class CoreAnimation { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", 0); } public static class CoreData { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/CoreData.framework/CoreData", 0); } public static class Quartz { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/QuartzCore.framework/QuartzCore", 0); } public static class CoreImage { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/CoreImage", 0); } public static class ImageIO { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/ImageIO", 0); } public static class CoreLocation { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/CoreLocation.framework/CoreLocation", 0); } public static class QuickLook { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/QuickLook.framework/QuickLook", 0); } public static class JavaScriptCore { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore", 0); } public static class CoreFoundation { public static readonly IntPtr Handle = Dlfcn.dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", 0); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/ArgumentSemantic.cs ================================================ namespace ObjCRuntime; public enum ArgumentSemantic { None = -1, Assign = 0, Copy = 1, Retain = 2, Weak = 3, Strong = 2, UnsafeUnretained = 0 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/BaseWrapper.cs ================================================ namespace ObjCRuntime; public abstract class BaseWrapper : INativeObject, IDisposable { public IntPtr Handle { get; protected set; } public BaseWrapper(IntPtr handle, bool owns) { Handle = handle; if (!owns) { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("retain")); } } ~BaseWrapper() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("release")); Handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/BlockDescriptor.cs ================================================ using System; using System.Runtime.InteropServices; namespace ObjCRuntime; public struct BlockDescriptor { private unsafe delegate void CopyHelperDelegate(BlockLiteral* dest, BlockLiteral* src); private unsafe delegate void DisposeHelperDelegate(BlockLiteral* block); public IntPtr reserved; public IntPtr size; public IntPtr copy_helper; public IntPtr dispose; private unsafe static CopyHelperDelegate copy_helper_delegate = CopyHelper; private unsafe static DisposeHelperDelegate dispose_helper_delegate = DisposeHelper; private static IntPtr copy_helper_ptr = Marshal.GetFunctionPointerForDelegate(copy_helper_delegate); private static IntPtr dispose_helper_ptr = Marshal.GetFunctionPointerForDelegate(dispose_helper_delegate); [MonoPInvokeCallback(typeof(CopyHelperDelegate))] private unsafe static void CopyHelper(BlockLiteral* dest, BlockLiteral* source) { dest->global_handle = (IntPtr)GCHandle.Alloc(GCHandle.FromIntPtr(dest->local_handle).Target); } [MonoPInvokeCallback(typeof(DisposeHelperDelegate))] private unsafe static void DisposeHelper(BlockLiteral* block) { GCHandle.FromIntPtr(block->global_handle).Free(); } internal static BlockDescriptor CreateDescriptor() { BlockDescriptor result = default(BlockDescriptor); result.copy_helper = copy_helper_ptr; result.dispose = dispose_helper_ptr; result.size = (IntPtr)(Marshal.SizeOf(typeof(IntPtr)) * 5 + Marshal.SizeOf(typeof(int)) * 2); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/BlockFlags.cs ================================================ namespace ObjCRuntime; [Flags] public enum BlockFlags { BLOCK_REFCOUNT_MASK = 0xFFFF, BLOCK_NEEDS_FREE = 0x1000000, BLOCK_HAS_COPY_DISPOSE = 0x2000000, BLOCK_HAS_CTOR = 0x4000000, BLOCK_IS_GC = 0x8000000, BLOCK_IS_GLOBAL = 0x10000000, BLOCK_HAS_DESCRIPTOR = 0x20000000, BLOCK_HAS_STRET = 0x20000000, BLOCK_HAS_SIGNATURE = 0x40000000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/BlockLiteral.cs ================================================ using Foundation; using System; using System.ComponentModel; using System.Reflection; using System.Runtime.InteropServices; using Xamarin.Utiles; namespace ObjCRuntime; public struct BlockLiteral { public IntPtr isa; public BlockFlags flags; public int reserved; public IntPtr invoke; public IntPtr block_descriptor; public IntPtr local_handle; public IntPtr global_handle; internal static IntPtr block_class; internal static BlockDescriptor global_descriptor; internal static IntPtr global_descriptor_ptr; static BlockLiteral() { block_class = Class.GetHandle("__NSStackBlock"); global_descriptor = BlockDescriptor.CreateDescriptor(); global_descriptor_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * 2 + Marshal.SizeOf(typeof(IntPtr)) * 2); Marshal.StructureToPtr(global_descriptor, global_descriptor_ptr, fDeleteOld: false); } public object Target { get { object target = GCHandle.FromIntPtr((global_handle != IntPtr.Zero) ? global_handle : local_handle).Target; if (target is Tuple tuple) { return tuple.Item2; } return target; } } public unsafe static T GetTarget(IntPtr block) where T : MulticastDelegate { return (T)((BlockLiteral*)block)->Target; } public void SetupBlock(Delegate trampoline, Delegate userDelegate) { isa = block_class; invoke = Marshal.GetFunctionPointerForDelegate(trampoline); local_handle = (IntPtr)GCHandle.Alloc(userDelegate); global_handle = IntPtr.Zero; flags = BlockFlags.BLOCK_HAS_COPY_DISPOSE | BlockFlags.BLOCK_HAS_DESCRIPTOR; block_descriptor = global_descriptor_ptr; } public T GetDelegateForBlock() where T : class { return (T)(object)Marshal.GetDelegateForFunctionPointer(invoke, typeof(T)); } private static Type GetDelegateProxyType(MethodInfo minfo, uint token_ref, out MethodInfo baseMethod) { //baseMethod = null; //if (token_ref != uint.MaxValue) //{ // return Class.ResolveTypeTokenReference(token_ref); //} baseMethod = minfo.GetBaseDefinition(); object[] customAttributes = baseMethod.ReturnTypeCustomAttributes.GetCustomAttributes(typeof(DelegateProxyAttribute), inherit: false); if (customAttributes.Length != 0) { return ((DelegateProxyAttribute)customAttributes[0]).DelegateType; } string text = null; Type[] interfaces = minfo.DeclaringType.GetInterfaces(); foreach (Type type in interfaces) { if (!type.IsDefined(typeof(ProtocolAttribute), inherit: false)) { continue; } InterfaceMapping interfaceMap = minfo.DeclaringType.GetInterfaceMap(type); for (int j = 0; j < interfaceMap.TargetMethods.Length; j++) { if (interfaceMap.TargetMethods[j] == minfo) { customAttributes = interfaceMap.InterfaceMethods[j].ReturnTypeCustomAttributes.GetCustomAttributes(typeof(DelegateProxyAttribute), inherit: false); if (customAttributes.Length != 0) { return ((DelegateProxyAttribute)customAttributes[0]).DelegateType; } } } if (text == null) { text = RuntimeEx.GetExportAttribute(minfo)?.Selector ?? string.Empty; } if (!string.IsNullOrEmpty(text)) { ProtocolMemberAttribute protocolMemberAttribute = RuntimeEx.GetProtocolMemberAttribute(type, text, minfo); if (protocolMemberAttribute?.ReturnTypeDelegateProxy != null) { return protocolMemberAttribute.ReturnTypeDelegateProxy; } } } throw ErrorHelper.CreateError(8011, $"Unable to locate the delegate to block conversion attribute ([DelegateProxy]) for the return value for the method {baseMethod.DeclaringType.FullName}.{baseMethod.Name}. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); } internal static IntPtr GetBlockForDelegate(MethodInfo minfo, object @delegate, uint token_ref, string signature) { if (@delegate == null) { return IntPtr.Zero; } if (!(@delegate is Delegate)) { throw ErrorHelper.CreateError(8016, $"Unable to convert delegate to block for the return value for the method {minfo.DeclaringType.FullName}.{minfo.Name}, because the input isn't a delegate, it's a {@delegate.GetType().FullName}. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); } MethodInfo baseMethod; Type delegateProxyType = GetDelegateProxyType(minfo, token_ref, out baseMethod); if ((object)baseMethod == null) { baseMethod = minfo; } if (delegateProxyType == null) { throw ErrorHelper.CreateError(8012, $"Invalid DelegateProxyAttribute for the return value for the method {baseMethod.DeclaringType.FullName}.{baseMethod.Name}: DelegateType is null. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); } object value = (delegateProxyType.GetField("Handler", BindingFlags.Static | BindingFlags.NonPublic) ?? throw ErrorHelper.CreateError(8013, $"Invalid DelegateProxyAttribute for the return value for the method {baseMethod.DeclaringType.FullName}.{baseMethod.Name}: DelegateType ({delegateProxyType.FullName}) specifies a type without a 'Handler' field. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}")).GetValue(null); if (value == null) { throw ErrorHelper.CreateError(8014, $"Invalid DelegateProxyAttribute for the return value for the method {baseMethod.DeclaringType.FullName}.{baseMethod.Name}: The DelegateType's ({delegateProxyType.FullName}) 'Handler' field is null. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); } if (!(value is Delegate)) { throw ErrorHelper.CreateError(8015, $"Invalid DelegateProxyAttribute for the return value for the method {baseMethod.DeclaringType.FullName}.{baseMethod.Name}: The DelegateType's ({delegateProxyType.FullName}) 'Handler' field is not a delegate, it's a {value.GetType().FullName}. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); } BlockLiteral block = default(BlockLiteral); if (signature == null) { if (!RuntimeEx.DynamicRegistrationSupported) { throw ErrorHelper.CreateError(8026, "BlockLiteral.GetBlockForDelegate with a null signature is not supported when the dynamic registrar has been linked away (delegate type: " + @delegate.GetType().FullName + ")."); } block.SetupBlock((Delegate)value, (Delegate)@delegate); } else { block.SetupBlock((Delegate)value, (Delegate)@delegate); } IntPtr result = _Block_copy(ref block); block.CleanupBlock(); return result; } public unsafe static bool IsManagedBlock(IntPtr block) { if (block == IntPtr.Zero) throw new ArgumentNullException("block"); return false; } public void CleanupBlock() { GCHandle.FromIntPtr(local_handle).Free(); } [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr _Block_copy(ref BlockLiteral block); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr _Block_copy(IntPtr block); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void _Block_release(IntPtr block); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Class.cs ================================================ using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using Builder; using Foundation; using Xamarin.Utiles; namespace ObjCRuntime; public class Class : INativeObject { [MonoNativeFunctionWrapper] private delegate int getFrameLengthDelegate(IntPtr @this, IntPtr sel); [MonoNativeFunctionWrapper] private delegate IntPtr addPropertyDelegate(IntPtr cls, string name, objc_attribute_prop[] attributes, int count); internal struct objc_attribute_prop { [MarshalAs(UnmanagedType.LPStr)] internal string name; [MarshalAs(UnmanagedType.LPStr)] internal string value; } public Class(string name) { handle = objc_getClass(name); if (handle == IntPtr.Zero) { throw new ArgumentException($"name {name} is an unknown class", "name"); } } public Class(Type type) { handle = Register(type); } public Class(IntPtr handle) { this.handle = handle; } public static bool ThrowOnInitFailure = true; private static Dictionary type_map = new Dictionary(); private static Dictionary custom_types = new Dictionary(); private static List method_wrappers = new List(); private static Dictionary> __mapTypeDelegates = new(); private static object lock_obj = new object(); internal IntPtr handle; private static IntPtr memory; private static int size_left; private static getFrameLengthDelegate getFrameLength = Selector.GetFrameLength; private static IntPtr getFrameLengthPtr = Marshal.GetFunctionPointerForDelegate(getFrameLength); private static addPropertyDelegate addProperty; private static bool addPropertyInitialized; public IntPtr Handle => handle; public IntPtr SuperClass => class_getSuperclass(handle); public string Name => Messaging.StringFromNativeUtf8(class_getName(handle)); internal static Class Construct(IntPtr handle) { return new Class(handle); } internal static string GetName(IntPtr @class) { return Messaging.StringFromNativeUtf8(class_getName(@class)); } public static IntPtr GetHandle(string name) { return objc_getClass(name); } public static IntPtr GetHandle(Type type) { RegisterAttribute registerAttribute = (RegisterAttribute)Attribute.GetCustomAttribute(type, typeof(RegisterAttribute), inherit: false); string name = ((registerAttribute == null) ? type.FullName : (registerAttribute.Name ?? type.FullName)); bool is_wrapper = registerAttribute?.IsWrapper ?? false; IntPtr intPtr = objc_getClass(name); if (intPtr == IntPtr.Zero) intPtr = Register(type, name, is_wrapper); return intPtr; } public static bool IsCustomType(Type type) { lock (lock_obj) { return custom_types.ContainsKey(type); } } internal static Type Lookup(IntPtr klass) { return Lookup(klass, throw_on_error: true); } internal static Type Lookup(IntPtr klass, bool throw_on_error) { lock (lock_obj) { if (type_map.TryGetValue(klass, out var value)) { return value; } IntPtr key = klass; while (true) { IntPtr intPtr = class_getSuperclass(klass); if (type_map.TryGetValue(intPtr, out value)) { type_map[key] = value; return value; } if (intPtr == IntPtr.Zero) { break; } klass = intPtr; } if (!throw_on_error) { return null; } throw new ArgumentException("Could not find a valid superclass for type " + new Class(key).Name + ". Did you forget to register the bindings at " + typeof(Class).FullName + ".Register() or call NSApplication.Init()?"); } } internal static IntPtr Register(Type type) { RegisterAttribute registerAttribute = (RegisterAttribute)Attribute.GetCustomAttribute(type, typeof(RegisterAttribute), inherit: false); string name = ((registerAttribute == null) ? type.FullName : (registerAttribute.Name ?? type.FullName)); bool is_wrapper = registerAttribute?.IsWrapper ?? false; return Register(type, name, is_wrapper); } private static IntPtr Register(Type type, string name, bool is_wrapper) { IntPtr zero = IntPtr.Zero; IntPtr zero2 = IntPtr.Zero; zero2 = objc_getClass(name); lock (lock_obj) { if (zero2 != IntPtr.Zero) { if (!type_map.ContainsKey(zero2)) type_map[zero2] = type; return zero2; } if (objc_getProtocol(name) != IntPtr.Zero) throw new ArgumentException("Attempting to register a class named: " + name + " which is a valid protocol"); if (is_wrapper) return IntPtr.Zero; Type baseType = type.BaseType; string text = null; while (Attribute.IsDefined(baseType, typeof(ModelAttribute), inherit: false)) baseType = baseType.BaseType; RegisterAttribute registerAttribute = (RegisterAttribute)Attribute.GetCustomAttribute(baseType, typeof(RegisterAttribute), inherit: false); text = ((registerAttribute == null) ? baseType.FullName : (registerAttribute.Name ?? baseType.FullName)); zero = objc_getClass(text); if (zero == IntPtr.Zero && baseType.Assembly != NSObject.MonoMacAssembly) { bool is_wrapper2 = registerAttribute?.IsWrapper ?? false; Register(baseType, text, is_wrapper2); zero = objc_getClass(text); } if (zero == IntPtr.Zero) zero = objc_getClass("NSObject"); zero2 = objc_allocateClassPair(zero, name, IntPtr.Zero); PropertyInfo[] properties = type.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (PropertyInfo propertyInfo in properties) { ConnectAttribute connectAttribute = (ConnectAttribute)Attribute.GetCustomAttribute(propertyInfo, typeof(ConnectAttribute)); if (connectAttribute != null) { string name2 = connectAttribute.Name ?? propertyInfo.Name; class_addIvar(zero2, name2, (IntPtr)Marshal.SizeOf(typeof(IntPtr)), (ushort)Math.Log(Marshal.SizeOf(typeof(IntPtr)), 2.0), "@"); } RegisterProperty(propertyInfo, type, zero2); } NSObject.OverrideRetainAndRelease(zero2); //获取对象的原生接口,确认是否具有Export属性 MethodInfo[] methods = type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); for (int i = 0; i < methods.Length; i++) RegisterMethod(methods[i], type, zero2); //遍历接口查看是否具有 protocol的接口 RegisterInterfaces(type, zero2); //构造 ConstructorInfo constructor = type.GetConstructor(Type.EmptyTypes); if (constructor != null) { NativeConstructorBuilder nativeConstructorBuilder = new NativeConstructorBuilder(constructor); class_addMethod(zero2, nativeConstructorBuilder.SelectorHandle, nativeConstructorBuilder.Delegate, nativeConstructorBuilder.Signature); method_wrappers.Add(nativeConstructorBuilder.Delegate); } ConstructorInfo[] constructors = type.GetConstructors(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); foreach (ConstructorInfo constructorInfo in constructors) { if ((ExportAttribute)Attribute.GetCustomAttribute(constructorInfo, typeof(ExportAttribute)) != null) { NativeConstructorBuilder nativeConstructorBuilder2 = new NativeConstructorBuilder(constructorInfo); class_addMethod(zero2, nativeConstructorBuilder2.SelectorHandle, nativeConstructorBuilder2.Delegate, nativeConstructorBuilder2.Signature); method_wrappers.Add(nativeConstructorBuilder2.Delegate); } } objc_registerClassPair(zero2); type_map[zero2] = type; custom_types.Add(type, type); return zero2; } } private static void RegisterProperty(PropertyInfo prop, Type type, IntPtr handle) { ExportAttribute exportAttribute = (ExportAttribute)Attribute.GetCustomAttribute(prop, typeof(ExportAttribute)); if (exportAttribute != null) { if (prop.PropertyType.IsGenericType || prop.PropertyType.IsGenericTypeDefinition) { throw new ArgumentException($"Cannot export the property '{prop.DeclaringType.FullName}.{prop.Name}': it is generic."); } MethodInfo getMethod = prop.GetGetMethod(nonPublic: true); if (getMethod != null) { RegisterMethod(getMethod, exportAttribute.ToGetter(prop), type, handle); } getMethod = prop.GetSetMethod(nonPublic: true); if (getMethod != null) { RegisterMethod(getMethod, exportAttribute.ToSetter(prop), type, handle); } int count = 0; objc_attribute_prop[] array = new objc_attribute_prop[3]; array[count++] = new objc_attribute_prop { name = "T", value = TypeConverter.ToNative(prop.PropertyType) }; switch (exportAttribute.ArgumentSemantic) { case ArgumentSemantic.Copy: array[count++] = new objc_attribute_prop { name = "C", value = "" }; break; case ArgumentSemantic.Retain: array[count++] = new objc_attribute_prop { name = "&", value = "" }; break; } array[count++] = new objc_attribute_prop { name = "V", value = exportAttribute.Selector }; class_addProperty(handle, exportAttribute.Selector, array, count); } } private static void RegisterMethod(MethodInfo minfo, Type type, IntPtr handle) { ExportAttribute exportAttribute = (ExportAttribute)Attribute.GetCustomAttribute(minfo.GetBaseDefinition(), typeof(ExportAttribute)); if (exportAttribute != null && (!minfo.IsVirtual || !(minfo.DeclaringType != type) || !(minfo.DeclaringType.Assembly == NSObject.MonoMacAssembly))) RegisterMethod(minfo, exportAttribute, type, handle); } internal static void RegisterMethod(MethodInfo minfo, ExportAttribute ea, Type type, IntPtr handle) { NativeMethodBuilder nativeMethodBuilder = new NativeMethodBuilder(minfo, type, ea); class_addMethod(minfo.IsStatic ? object_getClass(handle) : handle, nativeMethodBuilder.SelectorHandle, GetFunctionPointer(minfo, nativeMethodBuilder.Delegate), nativeMethodBuilder.Signature); lock (lock_obj) { method_wrappers.Add(nativeMethodBuilder.Delegate); var selectorHandle = new Selector(ea.Selector ?? minfo.Name, alloc: true).Handle; __mapTypeDelegates.TryGetValue(type, out var mapDelegate); if (mapDelegate is null) { mapDelegate = new(); __mapTypeDelegates[type] = mapDelegate; } mapDelegate[selectorHandle] = nativeMethodBuilder.Delegate; } } private static void RegisterInterfaces(Type type, IntPtr handle) { Type[] interfaceTypes = type.GetInterfaces(); foreach (var interfaceType in interfaceTypes) { if (interfaceType == typeof(INativeObject) || interfaceType == typeof(IDisposable)) continue; var attributes = interfaceType.GetCustomAttributes(); foreach (var attribute in attributes) { if (attribute.IsProperty) RegisterInterfaceProperty(type, handle, attribute); else RegisterInterfaceMethod(type, handle, attribute); } } } private static void RegisterInterfaceProperty(Type type, IntPtr handle, ProtocolMemberAttribute attribute) { if (!attribute.IsProperty) return; PropertyInfo? property = type.GetProperty(attribute.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); if (property is null) { if (!attribute.IsRequired) return; ThrowHelper.ThrowArgumentNullException(attribute.Name, "Property is null"); } ConnectAttribute connectAttribute = (ConnectAttribute)Attribute.GetCustomAttribute(property, typeof(ConnectAttribute)); if (connectAttribute != null) { string name2 = connectAttribute.Name ?? property.Name; class_addIvar(handle, name2, (IntPtr)Marshal.SizeOf(typeof(IntPtr)), (ushort)Math.Log(Marshal.SizeOf(typeof(IntPtr)), 2.0), "@"); } if (property.PropertyType.IsGenericType || property.PropertyType.IsGenericTypeDefinition) throw new ArgumentException($"Cannot export the property '{property.DeclaringType.FullName}.{property.Name}': it is generic."); if (!string.IsNullOrWhiteSpace(attribute.GetterSelector)) { MethodInfo getMethod = property.GetGetMethod(nonPublic: true); if (getMethod is not null) { ExportAttribute? exportAttribute = attribute.ToGetter(); if (exportAttribute is not null) RegisterMethod(getMethod, exportAttribute, type, handle); } } if (!string.IsNullOrWhiteSpace(attribute.SetterSelector)) { MethodInfo setMethod = property.GetSetMethod(nonPublic: true); if (setMethod != null) { ExportAttribute? exportAttribute = attribute.ToSetter(); if (exportAttribute is not null) RegisterMethod(setMethod, exportAttribute, type, handle); } } int count = 0; objc_attribute_prop[] array = new objc_attribute_prop[3]; array[count++] = new objc_attribute_prop { name = "T", value = TypeConverter.ToNative(property.PropertyType) }; switch (attribute.ArgumentSemantic) { case ArgumentSemantic.Copy: array[count++] = new objc_attribute_prop { name = "C", value = "" }; break; case ArgumentSemantic.Retain: array[count++] = new objc_attribute_prop { name = "&", value = "" }; break; } array[count++] = new objc_attribute_prop { name = "V", value = attribute.Selector }; class_addProperty(handle, attribute.Selector, array, count); } private static void RegisterInterfaceMethod(Type type, IntPtr handle, ProtocolMemberAttribute attribute) { if (attribute.IsProperty) return; MethodInfo? methodInfo = type.GetMethod(attribute.Name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, null, attribute.ParameterType, null); if (methodInfo is null) { if (!attribute.IsRequired) return; ThrowHelper.ThrowArgumentNullException(attribute.Name, "Method is null"); } lock (lock_obj) { var selectorHandle = new Selector(attribute.Selector ?? methodInfo.Name, alloc: true).Handle; __mapTypeDelegates.TryGetValue(type, out var mapDelegate); if (mapDelegate is not null) { mapDelegate.TryGetValue(selectorHandle, out var delegateHandle); if (delegateHandle is not null) return; } } NativeMethodBuilder nativeMethodBuilder = new NativeMethodBuilder(type, methodInfo, attribute); class_addMethod(methodInfo.IsStatic ? object_getClass(handle) : handle, nativeMethodBuilder.SelectorHandle, GetFunctionPointer(methodInfo, nativeMethodBuilder.Delegate), nativeMethodBuilder.Signature); lock (lock_obj) { method_wrappers.Add(nativeMethodBuilder.Delegate); var selectorHandle = new Selector(attribute.Selector ?? methodInfo.Name, alloc: true).Handle; __mapTypeDelegates.TryGetValue(type, out var mapDelegate); if (mapDelegate is null) { mapDelegate = new(); __mapTypeDelegates[type] = mapDelegate; } mapDelegate[selectorHandle] = nativeMethodBuilder.Delegate; } } private static IntPtr AllocExecMemory(int size) { if (size_left < size) { size_left = 4096; memory = Marshal.AllocHGlobal(size_left); if (memory == IntPtr.Zero) throw new Exception($"Could not allocate memory for specialized x86 floating point stret delegate thunk: {Marshal.GetLastWin32Error()}"); if (mprotect(memory, size_left, 7) != 0) throw new Exception($"Could not make allocated memory for specialized x86 floating point stret delegate thunk code executable: {Marshal.GetLastWin32Error()}"); } IntPtr result = memory; size_left -= size; memory = new IntPtr(memory.ToInt32() + size); return result; } internal unsafe static Type FindType(IntPtr @class, out bool is_custom_type) { is_custom_type = false; var bRet = type_map.TryGetValue(@class, out var type); if (bRet == false) return default; bRet = custom_types.TryGetValue(type, out var customtype ); is_custom_type = bRet; return type; } private static bool TypeRequiresFloatingPointTrampoline(Type t) { if (IntPtr.Size != 4) return false; if (typeof(float) == t || typeof(double) == t) return false; if (!t.IsValueType || t.IsEnum) return false; if (Marshal.SizeOf(t) <= 8) return false; return TypeContainsFloatingPoint(t); } private static bool TypeContainsFloatingPoint(Type t) { if (!t.IsValueType || t.IsEnum || t.IsPrimitive) return false; FieldInfo[] fields = t.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (FieldInfo fieldInfo in fields) { if (fieldInfo.FieldType == typeof(double) || fieldInfo.FieldType == typeof(float)) return true; if (!(fieldInfo.FieldType == t) && TypeContainsFloatingPoint(fieldInfo.FieldType)) return true; } return false; } private static IntPtr GetFunctionPointer(MethodInfo minfo, Delegate @delegate) { IntPtr functionPointerForDelegate = Marshal.GetFunctionPointerForDelegate(@delegate); if (!TypeRequiresFloatingPointTrampoline(minfo.ReturnType)) return functionPointerForDelegate; IntPtr intPtr = AllocExecMemory(83); IntPtr intPtr2 = new IntPtr(functionPointerForDelegate.ToInt32() - intPtr.ToInt32() - 70); IntPtr intPtr3 = new IntPtr(getFrameLengthPtr.ToInt32() - intPtr.ToInt32() - 27); byte[] bytes = BitConverter.GetBytes(intPtr2.ToInt32()); byte[] bytes2 = BitConverter.GetBytes(intPtr3.ToInt32()); byte[] obj = new byte[83] { 85, 137, 229, 86, 87, 83, 131, 236, 60, 139, 69, 16, 137, 68, 36, 4, 139, 69, 12, 137, 4, 36, 232, 0, 0, 0, 0, 137, 69, 240, 131, 192, 15, 193, 232, 4, 193, 224, 4, 41, 196, 139, 77, 240, 141, 117, 8, 137, 231, 131, 249, 0, 116, 11, 131, 233, 4, 139, 4, 14, 137, 4, 15, 235, 240, 232, 0, 0, 0, 0, 139, 93, 244, 139, 125, 248, 139, 117, 252, 201, 194, 4, 0 }; obj[23] = bytes2[0]; obj[24] = bytes2[1]; obj[25] = bytes2[2]; obj[26] = bytes2[3]; obj[66] = bytes[0]; obj[67] = bytes[1]; obj[68] = bytes[2]; obj[69] = bytes[3]; byte[] array = obj; Marshal.Copy(array, 0, intPtr, array.Length); return intPtr; } [DllImport("libc", SetLastError = true)] internal static extern int mprotect(IntPtr addr, int len, int prot); [DllImport("libc", SetLastError = true)] internal static extern IntPtr mmap(IntPtr start, ulong length, int prot, int flags, int fd, long offset); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_allocateClassPair(IntPtr superclass, string name, IntPtr extraBytes); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_getClass(string name); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_getProtocol(string name); [DllImport("/usr/lib/libobjc.dylib")] internal static extern bool class_addProtocol(IntPtr cls, IntPtr protocol); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void objc_registerClassPair(IntPtr cls); [DllImport("/usr/lib/libobjc.dylib")] internal static extern bool class_addIvar(IntPtr cls, string name, IntPtr size, ushort alignment, string types); [DllImport("/usr/lib/libobjc.dylib")] internal static extern bool class_addMethod(IntPtr cls, IntPtr name, Delegate imp, string types); [DllImport("/usr/lib/libobjc.dylib")] internal static extern bool class_addMethod(IntPtr cls, IntPtr name, IntPtr imp, string types); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr class_getName(IntPtr cls); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr class_getSuperclass(IntPtr cls); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr object_getClass(IntPtr obj); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr class_getMethodImplementation(IntPtr cls, IntPtr sel); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr class_getInstanceVariable(IntPtr cls, string name); internal static IntPtr class_addProperty(IntPtr cls, string name, objc_attribute_prop[] attributes, int count) { if (!addPropertyInitialized) { IntPtr intPtr = Dlfcn.dlopen("/usr/lib/libobjc.dylib", 0); try { IntPtr intPtr2 = Dlfcn.dlsym(intPtr, "class_addProperty"); if (intPtr2 != IntPtr.Zero) addProperty = (addPropertyDelegate)Marshal.GetDelegateForFunctionPointer(intPtr2, typeof(addPropertyDelegate)); } finally { Dlfcn.dlclose(intPtr); } addPropertyInitialized = true; } if (addProperty == null) return IntPtr.Zero; return addProperty(cls, name, attributes, count); } internal static IntPtr GetClassForObject(IntPtr obj) { return Messaging.IntPtr_objc_msgSend(obj, Selector.GetHandle("class")); } private static Module ResolveModule(Assembly assembly, uint token) { Module[] modules = assembly.GetModules(); foreach (Module module in modules) { if (module.MetadataToken == token) { return module; } } throw ErrorHelper.CreateError(8020, $"Could not find the module with MetadataToken 0x{token:X} in the assembly {assembly}."); } //internal static Type? ResolveTypeTokenReference(uint token_reference) //{ // MemberInfo memberInfo = ResolveTokenReference(token_reference, 33554432u); // if ((object)memberInfo == null) // { // return null; // } // if (memberInfo is Type result) // { // return result; // } // throw ErrorHelper.CreateError(8022, $"Expected the token reference 0x{token_reference:X} to be a type, but it's a {memberInfo.GetType().Name}. {"Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."}"); //} //private unsafe static MemberInfo? ResolveTokenReference(uint token_reference, uint implicit_token_type) //{ // Runtime.MTRegistrationMap* registrationMap = Runtime.options->RegistrationMap; // if ((token_reference & 1) == 1) // { // return ResolveFullTokenReference(token_reference); // } // uint num = (token_reference >> 1) & 0x7Fu; // uint num2 = (token_reference >> 8) + implicit_token_type; // return ResolveToken(ResolveModule(ResolveAssembly(registrationMap->assemblies[(int)num].name), 1u), num2 | implicit_token_type); //} private static MemberInfo? ResolveToken(Module module, uint token) { uint value = token & 0xFF000000u; return (token & 0xFF000000u) switch { 33554432u => module.ResolveType((int)token), 100663296u => module.ResolveMethod((int)token), _ => throw ErrorHelper.CreateError(8021, $"Unknown implicit token type: 0x{value:X}."), }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/CompileFlagsAttribute.cs ================================================ using System; namespace ObjCRuntime; public class CompileFlagsAttribute : Attribute { public string Flags; public CompileFlagsAttribute(string flags) { Flags = flags; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/DisposableObject.cs ================================================ using Xamarin.Utiles; namespace ObjCRuntime; public abstract class DisposableObject : INativeObject, IDisposable { private IntPtr handle; private readonly bool owns; public IntPtr Handle { get { return handle; } protected set { InitializeHandle(value); } } protected bool Owns => owns; protected DisposableObject() { } protected DisposableObject(IntPtr handle, bool owns) : this(handle, owns, verify: true) { } protected DisposableObject(IntPtr handle, bool owns, bool verify) { InitializeHandle(handle, verify); this.owns = owns; } ~DisposableObject() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { handle = IntPtr.Zero; } private void InitializeHandle(IntPtr handle, bool verify) { if (verify && handle == IntPtr.Zero && Class.ThrowOnInitFailure) { throw new Exception($"Could not initialize an instance of the type '{GetType().FullName}': handle is null.\n{"It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false"}."); } this.handle = handle; } protected virtual void InitializeHandle(IntPtr handle) { InitializeHandle(handle, verify: true); } public IntPtr GetCheckedHandle() { IntPtr IntPtr = handle; if (IntPtr == IntPtr.Zero) { ThrowHelper.ThrowObjectDisposedException(this); } return IntPtr; } public override int GetHashCode() { return handle.GetHashCode(); } public override bool Equals(object? obj) { if (obj is DisposableObject disposableObject) { return handle.Equals(disposableObject.handle); } return false; } public static bool operator ==(DisposableObject? a, DisposableObject? b) { if ((object)a == null) { return (object)b == null; } if ((object)b == null) { return false; } return a.Handle == b.Handle; } public static bool operator !=(DisposableObject? a, DisposableObject? b) { if ((object)a == null) { return (object)b != null; } if ((object)b == null) { return true; } return a.Handle != b.Handle; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Dlfcn.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; namespace ObjCRuntime; public static class Dlfcn { [DllImport("/usr/lib/libSystem.dylib")] public static extern int dlclose(IntPtr handle); [DllImport("/usr/lib/libSystem.dylib")] public static extern IntPtr dlopen(string path, int mode); [DllImport("/usr/lib/libSystem.dylib")] public static extern IntPtr dlsym(IntPtr handle, string symbol); [DllImport("/usr/lib/libSystem.dylib", EntryPoint = "dlerror")] internal static extern IntPtr dlerror_(); public static string dlerror() { return Marshal.PtrToStringAnsi(dlerror_()); } public static NSString GetStringConstant(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return null; } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); if (intPtr2 == IntPtr.Zero) { return null; } return (NSString)Runtime.GetNSObject(intPtr2); } public static IntPtr GetIndirect(IntPtr handle, string symbol) { return dlsym(handle, symbol); } public static NSNumber GetNSNumber(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return null; } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); if (intPtr2 == IntPtr.Zero) { return null; } return (NSNumber)Runtime.GetNSObject(intPtr2); } public static int GetInt32(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return 0; } return Marshal.ReadInt32(intPtr); } public static void SetInt32(IntPtr handle, string symbol, int value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { Marshal.WriteInt32(intPtr, value); } } public static long GetInt64(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return 0L; } return Marshal.ReadInt64(intPtr); } public static void SetInt64(IntPtr handle, string symbol, long value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { Marshal.WriteInt64(intPtr, value); } } public static void SetString(IntPtr handle, string symbol, string value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { Marshal.WriteIntPtr(intPtr, (value == null) ? IntPtr.Zero : NSString.CreateNative(value)); } } public static void SetString(IntPtr handle, string symbol, NSString value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { IntPtr intPtr2 = ((value == null) ? IntPtr.Zero : value.Handle); if (intPtr2 != IntPtr.Zero) { CFObject.CFRetain(intPtr2); } Marshal.WriteIntPtr(intPtr, intPtr2); } } public static void SetArray(IntPtr handle, string symbol, NSArray array) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { IntPtr intPtr2 = array?.Handle ?? IntPtr.Zero; if (intPtr2 != IntPtr.Zero) { CFObject.CFRetain(intPtr2); } Marshal.WriteIntPtr(intPtr, intPtr2); } } public static IntPtr GetIntPtr(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return IntPtr.Zero; } return Marshal.ReadIntPtr(intPtr); } public static void SetIntPtr(IntPtr handle, string symbol, IntPtr value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { Marshal.WriteIntPtr(intPtr, value); } } public unsafe static double GetDouble(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return 0.0; } double* ptr = (double*)(void*)intPtr; return *ptr; } public unsafe static void SetDouble(IntPtr handle, string symbol, double value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { *(double*)(void*)intPtr = value; } } public unsafe static float GetFloat(IntPtr handle, string symbol) { IntPtr intPtr = dlsym(handle, symbol); if (intPtr == IntPtr.Zero) { return 0f; } float* ptr = (float*)(void*)intPtr; return *ptr; } public unsafe static void SetFloat(IntPtr handle, string symbol, float value) { IntPtr intPtr = dlsym(handle, symbol); if (!(intPtr == IntPtr.Zero)) { *(float*)(void*)intPtr = value; } } internal static int SlowGetInt32(string lib, string symbol) { IntPtr intPtr = dlopen(lib, 0); if (intPtr == IntPtr.Zero) { return 0; } try { return GetInt32(intPtr, symbol); } finally { dlclose(intPtr); } } internal static long SlowGetInt64(string lib, string symbol) { IntPtr intPtr = dlopen(lib, 0); if (intPtr == IntPtr.Zero) { return 0L; } try { return GetInt64(intPtr, symbol); } finally { dlclose(intPtr); } } internal static IntPtr SlowGetIntPtr(string lib, string symbol) { IntPtr intPtr = dlopen(lib, 0); if (intPtr == IntPtr.Zero) { return IntPtr.Zero; } try { return GetIntPtr(intPtr, symbol); } finally { dlclose(intPtr); } } internal static double SlowGetDouble(string lib, string symbol) { IntPtr intPtr = dlopen(lib, 0); if (intPtr == IntPtr.Zero) { return 0.0; } try { return GetDouble(intPtr, symbol); } finally { dlclose(intPtr); } } internal static NSString SlowGetStringConstant(string lib, string symbol) { IntPtr intPtr = dlopen(lib, 0); if (intPtr == IntPtr.Zero) { return null; } try { return GetStringConstant(intPtr, symbol); } finally { dlclose(intPtr); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/INativeObject.cs ================================================ using System; namespace ObjCRuntime; public interface INativeObject { IntPtr Handle { get; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/LionAttribute.cs ================================================ using System; namespace ObjCRuntime; public class LionAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Messaging.cs ================================================ using System; using System.Runtime.InteropServices; using System.Text; using AppKit; using CoreAnimation; using CoreGraphics; using CoreLocation; using CoreMedia; using CoreVideo; using Foundation; using QTKit; using Xamarin.System; namespace ObjCRuntime; public static class Messaging { private const string LIBOBJC_DYLIB = "/usr/lib/libobjc.dylib"; [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint uint_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_rbool(IntPtr receiver, IntPtr selector, ref bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_rint(IntPtr receiver, IntPtr selector, ref int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_rfloat(IntPtr receiver, IntPtr selector, ref float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_rdouble(IntPtr receiver, IntPtr selector, ref double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_rintptr(IntPtr receiver, IntPtr selector, ref IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_cgsize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_cgpoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_cgrect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_nsrange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_cgpoint_intptr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr_intptr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr_intptr_float(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, float arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr_intptr_double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_intptr_intptr_nuint(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper(IntPtr[] super, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_cgsize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_cgrect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_intptr_intptr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_intptr_intptr_float(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, float arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_intptr_intptr_double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void void_objc_msgSend_stret_rcgsize(ref CGSize stret, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void void_objc_msgSend_stret_rcgrect(ref CGRect stret, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void void_objc_msgSend_stret_rnsrange(ref NSRange stret, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void void_objc_msgSend_stret_rcgsize_cgpoint_intptr(ref CGSize stret, IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void void_objc_msgSendSuper_stret_rcgrect(ref CGRect stret, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr intptr_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr intptr_objc_msgSend_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr intptr_objc_msgsend_intptr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr intptr_objc_msgSend_float(IntPtr receiver, IntPtr selector, float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr intptr_objc_msgSend_cgrect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr intptr_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr intptr_objc_msgSendSuper_cgrect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr intptr_objc_msgSendSuper_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_intptr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize cgsize_objc_msgSend_cgpoint_intptr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize cgsize_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool Boolean_objc_msgSend_IntPtr_Double_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool Boolean_objc_msgSendSuper_IntPtr_Double_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3); internal static IntPtr NativeUtf8FromString(string managedString) { byte[] array = new byte[Encoding.UTF8.GetByteCount(managedString) + 1]; Encoding.UTF8.GetBytes(managedString, 0, managedString.Length, array, 0); IntPtr intPtr = Marshal.AllocHGlobal(array.Length); Marshal.Copy(array, 0, intPtr, array.Length); return intPtr; } internal static string StringFromNativeUtf8(IntPtr nativeUtf8) { int i; for (i = 0; Marshal.ReadByte(nativeUtf8, i) != 0; i++) { } byte[] array = new byte[i]; Marshal.Copy(nativeUtf8, array, 0, array.Length); return Encoding.UTF8.GetString(array); } [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret(out CGPoint retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret(out CGPoint retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret(out CGRect retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret(out CGRect retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_Double_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_Double_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, CGPoint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, CGPoint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_out_Int64_out_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, out long arg2, out double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_out_Int64_out_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, out long arg2, out double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Int64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Int64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_Int64_IntPtr(IntPtr receiver, IntPtr selector, long arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_Int64_IntPtr(IntPtr receiver, IntPtr selector, long arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_Double_Double_Double_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, double arg3, double arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_Double_Double_Double_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, double arg3, double arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_Double_Double_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_Double_Double_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGPoint_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGPoint_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_Double_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_Double_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5, bool arg6, bool arg7, IntPtr arg8, long arg9, long arg10); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5, bool arg6, bool arg7, IntPtr arg8, long arg9, long arg10); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_UInt64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5, bool arg6, bool arg7, IntPtr arg8, ulong arg9, long arg10, long arg11); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64_bool_bool_IntPtr_UInt64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5, bool arg6, bool arg7, IntPtr arg8, ulong arg9, long arg10, long arg11); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_NSTiffCompression_out_Double(IntPtr receiver, IntPtr selector, out NSTiffCompression arg1, out double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_NSTiffCompression_out_Double(IntPtr receiver, IntPtr selector, out NSTiffCompression arg1, out double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_Double(IntPtr receiver, IntPtr selector, ulong arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_Double(IntPtr receiver, IntPtr selector, ulong arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_Double(IntPtr receiver, IntPtr selector, ulong arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_Double(IntPtr receiver, IntPtr selector, ulong arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret(out CGSize retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret(out CGSize retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_CGRect(IntPtr receiver, IntPtr selector, long arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_CGRect(IntPtr receiver, IntPtr selector, long arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_Int64_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_Int64_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_out_Int64_out_Int64_CGPoint(IntPtr receiver, IntPtr selector, out long arg1, out long arg2, CGPoint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_out_Int64_out_Int64_CGPoint(IntPtr receiver, IntPtr selector, out long arg1, out long arg2, CGPoint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_Int64(IntPtr receiver, IntPtr selector, double arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_Int64(IntPtr receiver, IntPtr selector, double arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_bool(IntPtr receiver, IntPtr selector, ulong arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_bool(IntPtr receiver, IntPtr selector, ulong arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_Int64_bool_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, bool arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_Int64_bool_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, bool arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr_out_Int64_out_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out long arg3, out long arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr_out_Int64_out_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out long arg3, out long arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_Int64_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_float(IntPtr receiver, IntPtr selector, float arg1, float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_float(IntPtr receiver, IntPtr selector, float arg1, float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Single_out_Single(IntPtr receiver, IntPtr selector, out float arg1, out float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Single_out_Single(IntPtr receiver, IntPtr selector, out float arg1, out float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGRect_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGSize_Int64_bool_bool(IntPtr receiver, IntPtr selector, CGSize arg1, long arg2, bool arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGSize_Int64_bool_bool(IntPtr receiver, IntPtr selector, CGSize arg1, long arg2, bool arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float(IntPtr receiver, IntPtr selector, float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float(IntPtr receiver, IntPtr selector, float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_CGRect(out CGSize retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_CGRect(out CGSize retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_CGRect_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_CGRect_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGPoint_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGPoint_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGPoint_IntPtr_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGPoint_IntPtr_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, long arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, long arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGRect_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret_CGPoint(out CGPoint retval, IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret_CGPoint(out CGPoint retval, IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGPoint_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGPoint_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGPoint_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGPoint_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr_out_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr_out_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3, double arg4, double arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3, double arg4, double arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Double_out_Double_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2, out double arg3, out double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Double_out_Double_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2, out double arg3, out double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Double_out_Double_out_Double_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2, out double arg3, out double arg4, out double arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Double_out_Double_out_Double_out_Double_out_Double(IntPtr receiver, IntPtr selector, out double arg1, out double arg2, out double arg3, out double arg4, out double arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_bool_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGSize_int(IntPtr receiver, IntPtr selector, CGSize arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGSize_int(IntPtr receiver, IntPtr selector, CGSize arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_IntPtr_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_IntPtr_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_UInt32(out CGRect retval, IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_UInt32(out CGRect retval, IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_UInt32(out CGSize retval, IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_UInt32(out CGSize retval, IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_Int64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, long arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_Int64_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, long arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_int_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, int arg2, IntPtr arg3, long arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_int_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, int arg2, IntPtr arg3, long arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_out_UInt64_out_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out ulong arg3, out ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_out_UInt64_out_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out ulong arg3, out ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGPoint_UInt64(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGPoint_UInt64(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_Double(IntPtr receiver, IntPtr selector, CGRect arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_Double_CGPoint_Double_UInt64(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, CGPoint arg3, double arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_Double_CGPoint_Double_UInt64(IntPtr receiver, IntPtr selector, CGPoint arg1, double arg2, CGPoint arg3, double arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_CGPoint(IntPtr receiver, IntPtr selector, CGRect arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_CGPoint(IntPtr receiver, IntPtr selector, CGRect arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_out_Double_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, out double arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_out_Double_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, out double arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ushort UInt16_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ushort UInt16_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern short short_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern short short_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_Double(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, long arg7, long arg8, double arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_Double(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, long arg7, long arg8, double arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_IntPtr_IntPtr_bool_UInt16(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8, bool arg9, ushort arg10); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_IntPtr_IntPtr_bool_UInt16(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8, bool arg9, ushort arg10); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, long arg7, long arg8, IntPtr arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, long arg7, long arg8, IntPtr arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_short_Int64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, short arg7, long arg8, long arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_CGPoint_UInt64_Double_Int64_IntPtr_short_Int64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, CGPoint arg2, ulong arg3, double arg4, long arg5, IntPtr arg6, short arg7, long arg8, long arg9); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, double arg2, double arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, double arg2, double arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret_IntPtr(out CGPoint retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret_IntPtr(out CGPoint retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_int_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, int arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_int_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, int arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Int32_int_int(IntPtr receiver, IntPtr selector, out int arg1, int arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Int32_int_int(IntPtr receiver, IntPtr selector, out int arg1, int arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_int_int_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2, int arg3, int arg4, int arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_int_int_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2, int arg3, int arg4, int arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_int_int_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, int arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_int_int_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, int arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_int_IntPtr_int(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_int_IntPtr_int(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_out_CGRect_IntPtr_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out CGRect arg3, IntPtr arg4, IntPtr arg5, CGPoint arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_out_CGRect_IntPtr_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, out CGRect arg3, IntPtr arg4, IntPtr arg5, CGPoint arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_CGRect_UInt64_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, ulong arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_CGRect_UInt64_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, ulong arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_CGRect_UInt64_Double(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_CGRect_UInt64_Double_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4, bool arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_CGRect_UInt64_Double_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4, bool arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_out_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, out CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_out_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, out CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGRect_CGRect_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3, IntPtr arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGRect_CGRect_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3, IntPtr arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGRect_CGRect_UInt64_Double_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4, bool arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGRect_CGRect_UInt64_Double_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, ulong arg3, double arg4, bool arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_Int64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_Int64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Int64_out_Int64(IntPtr receiver, IntPtr selector, out long arg1, out long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Int64_out_Int64(IntPtr receiver, IntPtr selector, out long arg1, out long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_out_Int64_out_Int64_IntPtr(IntPtr receiver, IntPtr selector, out long arg1, out long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_out_Int64_out_Int64_IntPtr(IntPtr receiver, IntPtr selector, out long arg1, out long arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_IntPtr(IntPtr receiver, IntPtr selector, long arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_IntPtr(IntPtr receiver, IntPtr selector, long arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_Int64_Int64(IntPtr receiver, IntPtr selector, bool arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_Int64_Int64(IntPtr receiver, IntPtr selector, bool arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_Int64_IntPtr_Int64_Double_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, IntPtr arg4, long arg5, double arg6, double arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_IntPtr_Int64_Double_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, IntPtr arg4, long arg5, double arg6, double arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_NSRange_Int64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3, long arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_NSRange_Int64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3, long arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_Int64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_Int64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_UInt64(IntPtr receiver, IntPtr selector, long arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_UInt64(IntPtr receiver, IntPtr selector, long arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_UInt64_out_Boolean(IntPtr receiver, IntPtr selector, ulong arg1, out bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_UInt64_out_Boolean(IntPtr receiver, IntPtr selector, ulong arg1, out bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_Int64_Int64(IntPtr receiver, IntPtr selector, long arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_NSRange_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_NSRange_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_NSRange_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_NSRange_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_NSRange_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1, NSRange arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_NSRange_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1, NSRange arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_NSRange(IntPtr receiver, IntPtr selector, CGPoint arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_NSRange(IntPtr receiver, IntPtr selector, CGPoint arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_Int64(IntPtr receiver, IntPtr selector, bool arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_Int64(IntPtr receiver, IntPtr selector, bool arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGSize_NSRange(IntPtr receiver, IntPtr selector, CGSize arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGSize_NSRange(IntPtr receiver, IntPtr selector, CGSize arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_UInt64_out_UInt64(IntPtr receiver, IntPtr selector, out ulong arg1, out ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_UInt64_out_UInt64(IntPtr receiver, IntPtr selector, out ulong arg1, out ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret_Int64(out CGPoint retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret_Int64(out CGPoint retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_Int64(out CGSize retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_Int64(out CGSize retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_NSRange(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_NSRange(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_NSRange_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_NSRange_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_CGRect_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_CGRect_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_CGPoint_IntPtr_out_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2, out double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_CGPoint_IntPtr_out_Double(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2, out double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_UInt64_bool_bool_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, bool arg2, bool arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_UInt64_bool_bool_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, bool arg2, bool arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_bool_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_bool_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_NSRange_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, NSRange arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_NSRange_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, NSRange arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGPoint_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGPoint_CGRect_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_int(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_int(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_IntPtr_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_IntPtr_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret(out NSRange retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret(out NSRange retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Double_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Double_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Double_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Double_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGRect_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGRect_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_UInt64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_UInt64_Int64(IntPtr receiver, IntPtr selector, ulong arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_CGSize_bool_bool_UInt64(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, bool arg2, bool arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_CGSize_bool_bool_UInt64(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, bool arg2, bool arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_CGSize_bool_bool_UInt64(IntPtr receiver, IntPtr selector, CGSize arg1, bool arg2, bool arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_CGSize_bool_bool_UInt64(IntPtr receiver, IntPtr selector, CGSize arg1, bool arg2, bool arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2, IntPtr arg3, ulong arg4, ulong arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2, IntPtr arg3, ulong arg4, ulong arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2, IntPtr arg3, ulong arg4, ulong arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_CGSize_IntPtr_IntPtr_UInt64_UInt64_Int64(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2, IntPtr arg3, ulong arg4, ulong arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_CGRect_IntPtr(IntPtr receiver, IntPtr selector, long arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_CGRect_IntPtr(IntPtr receiver, IntPtr selector, long arg1, CGRect arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_bool(out CGRect retval, IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_bool(out CGRect retval, IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_short(IntPtr receiver, IntPtr selector, IntPtr arg1, short arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_short(IntPtr receiver, IntPtr selector, IntPtr arg1, short arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, bool arg4, long arg5, out long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, bool arg4, long arg5, out long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, bool arg4, long arg5, out long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr_Int64_IntPtr_bool_Int64_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, bool arg4, long arg5, out long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr_Int64(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr_int_IntPtr_bool_Int64_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, bool arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr_int_IntPtr_bool_Int64_IntPtr(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, bool arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr_int_IntPtr_bool_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, bool arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr_int_IntPtr_bool_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, bool arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr_Int64_IntPtr_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, long arg5, IntPtr arg6, out long arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr_Int64_IntPtr_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, long arg5, IntPtr arg6, out long arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, CGPoint arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, CGPoint arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSRange_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSRange_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_Double_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_Double_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGRect_CGRect_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_CGRect_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_Int64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSEdgeInsets_objc_msgSend_stret(out NSEdgeInsets retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSEdgeInsets_objc_msgSendSuper_stret(out NSEdgeInsets retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret_CGPoint_IntPtr(out CGPoint retval, IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret_CGPoint_IntPtr(out CGPoint retval, IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_CGSize_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_CGSize_IntPtr(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_CGSize(IntPtr receiver, IntPtr selector, CGSize arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_CGSize(IntPtr receiver, IntPtr selector, CGRect arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_CGSize(IntPtr receiver, IntPtr selector, CGRect arg1, CGSize arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CGPoint_CGRect(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CGPoint_CGRect(IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_CGRect_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_CGRect_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_CGRect_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGPoint_CGSize_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGSize arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, bool arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGPoint_CGSize_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGSize arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, bool arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper_Int64(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_Int64(IntPtr receiver, IntPtr selector, float arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_Int64(IntPtr receiver, IntPtr selector, float arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_out_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, out double arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_out_Double_Double_Double_Double(IntPtr receiver, IntPtr selector, out double arg1, double arg2, double arg3, double arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_out_NSRange(IntPtr receiver, IntPtr selector, out NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_out_NSRange(IntPtr receiver, IntPtr selector, out NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGPoint_objc_msgSend_stret_CGRect(out CGPoint retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGPoint_objc_msgSendSuper_stret_CGRect(out CGPoint retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGPoint CGPoint_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGPoint CGPoint_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_CGRect(out NSRange retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_CGRect(out NSRange retval, IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_Int64_IntPtr_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_Int64_IntPtr_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, long arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_Int64_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_IntPtr_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_IntPtr_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Int64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_CGPoint_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_CGPoint_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_bool_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, bool arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_bool_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, bool arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_CGRect(IntPtr receiver, IntPtr selector, bool arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_CGRect(IntPtr receiver, IntPtr selector, bool arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_bool(out CGSize retval, IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_bool(out CGSize retval, IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_bool(IntPtr receiver, IntPtr selector, bool arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_UInt64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_UInt64(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CGRect_IntPtr_UInt64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, ulong arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CGRect_IntPtr_UInt64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, ulong arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGRect_CGPoint_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGPoint arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_CGPoint_UInt64(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGPoint arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_UInt64_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_UInt64_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_UInt64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_UInt64_Int64_int(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, long arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_UInt64_Int64_int(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, long arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_UInt64_Int64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_UInt64_Int64(IntPtr receiver, IntPtr selector, double arg1, ulong arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_Int64_int(IntPtr receiver, IntPtr selector, long arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_Int64_int(IntPtr receiver, IntPtr selector, long arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_Int64_int(IntPtr receiver, IntPtr selector, long arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_Int64_int(IntPtr receiver, IntPtr selector, long arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGPoint_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, IntPtr arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGPoint_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, CGPoint arg1, CGRect arg2, IntPtr arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGRect_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGRect_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, IntPtr arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, NSRange arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, NSRange arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4, long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGPoint_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGRect arg3, IntPtr arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGPoint_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGRect arg3, IntPtr arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGRect_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3, IntPtr arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGRect_CGRect_IntPtr_NSRange(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3, IntPtr arg4, NSRange arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGRect_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, NSRange arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGRect_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, IntPtr arg3, NSRange arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_NSRange_Int64(IntPtr receiver, IntPtr selector, ulong arg1, NSRange arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_NSRange_Int64(IntPtr receiver, IntPtr selector, ulong arg1, NSRange arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_Double_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, double arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_Double_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, double arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_NSRange(IntPtr receiver, IntPtr selector, long arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_NSRange(IntPtr receiver, IntPtr selector, long arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_IntPtr_bool(IntPtr receiver, IntPtr selector, CGRect arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_NSRange_UInt64(out NSRange retval, IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_NSRange_UInt64(out NSRange retval, IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_NSRange_UInt64(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_NSRange_UInt64(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSRange_out_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, out long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSRange_out_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, out long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange_UInt64_bool(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange_UInt64_bool(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_NSRange(IntPtr receiver, IntPtr selector, NSRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, IntPtr arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, IntPtr arg5, long arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_CGRect_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_CGRect_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr_NSRange_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr_NSRange_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr_NSRange_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr_NSRange_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_NSRange_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, NSRange arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_NSRange_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, NSRange arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_Int64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_Int64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_NSRange_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_NSRange_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, long arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr_IntPtr_IntPtr_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, long arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_CGRect_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_UInt64_UInt64_bool(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, ulong arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_UInt64_UInt64_bool(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, ulong arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_UInt64_UInt64_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, ulong arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_UInt64_UInt64_bool_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, ulong arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_CGRect(IntPtr receiver, IntPtr selector, CGRect arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_bool_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_bool_bool(IntPtr receiver, IntPtr selector, CGRect arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_int(IntPtr receiver, IntPtr selector, double arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_int(IntPtr receiver, IntPtr selector, double arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_bool_int(IntPtr receiver, IntPtr selector, bool arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_bool_int(IntPtr receiver, IntPtr selector, bool arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_UInt64(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_UInt64(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_CGPoint_Int64(IntPtr receiver, IntPtr selector, CGPoint arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_CGPoint_Int64(IntPtr receiver, IntPtr selector, CGPoint arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_IntPtr_IntPtr_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_IntPtr_IntPtr_CGRect(out CGRect retval, IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGSize_objc_msgSend_stret_IntPtr_CGSize_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2, CGSize arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGSize_objc_msgSendSuper_stret_IntPtr_CGSize_CGSize(out CGSize retval, IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2, CGSize arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CGSize CGSize_objc_msgSend_IntPtr_CGSize_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2, CGSize arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CGSize CGSize_objc_msgSendSuper_IntPtr_CGSize_CGSize(IntPtr receiver, IntPtr selector, IntPtr arg1, CGSize arg2, CGSize arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_out_Boolean_out_Boolean_out_Boolean_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, out bool arg2, out bool arg3, out bool arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_out_Boolean_out_Boolean_out_Boolean_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, out bool arg2, out bool arg3, out bool arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, out long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_out_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, out long arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_UInt64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Int64_UInt64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, ulong arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Int64_UInt64_Int64_bool(IntPtr receiver, IntPtr selector, long arg1, ulong arg2, long arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_bool_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGAffineTransform_objc_msgSend_stret(out CGAffineTransform retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGAffineTransform_objc_msgSendSuper_stret(out CGAffineTransform retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGAffineTransform(IntPtr receiver, IntPtr selector, CGAffineTransform arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGAffineTransform(IntPtr receiver, IntPtr selector, CGAffineTransform arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_UInt32_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3, uint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_UInt32_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3, uint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt32_UInt32(IntPtr receiver, IntPtr selector, uint arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt32_UInt32(IntPtr receiver, IntPtr selector, uint arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_int_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_int_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_CGPoint(IntPtr receiver, IntPtr selector, double arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_CGPoint(IntPtr receiver, IntPtr selector, double arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void QTTime_objc_msgSend_stret(out QTTime retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void QTTime_objc_msgSendSuper_stret(out QTTime retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern QTTime QTTime_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern QTTime QTTime_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_QTTimeRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_QTTimeRange_IntPtr(IntPtr receiver, IntPtr selector, QTTimeRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_QTTimeRange_IntPtr(IntPtr receiver, IntPtr selector, QTTimeRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_QTTime_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, QTTime arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_QTTime_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, QTTime arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_QTTimeRange(IntPtr receiver, IntPtr selector, QTTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_QTTimeRange(IntPtr receiver, IntPtr selector, QTTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_QTTimeRange_QTTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, QTTimeRange arg1, QTTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, QTTimeRange arg1, QTTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_QTTime_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTime arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_QTTime_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTime arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_QTTime(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_QTTimeRange_QTTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_QTTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, QTTimeRange arg2, QTTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void QTTime_objc_msgSend_stret_int(out QTTime retval, IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void QTTime_objc_msgSendSuper_stret_int(out QTTime retval, IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern QTTime QTTime_objc_msgSend_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern QTTime QTTime_objc_msgSendSuper_int(IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_QTTime(IntPtr receiver, IntPtr selector, QTTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, int arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, int arg1, CGPoint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGPoint_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGPoint_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, IntPtr arg3, CGPoint arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_int_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_int_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_int(out CGRect retval, IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_int(out CGRect retval, IntPtr receiver, IntPtr selector, int arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_int(IntPtr receiver, IntPtr selector, CGRect arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_int(IntPtr receiver, IntPtr selector, CGRect arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGPoint_CGPoint(IntPtr receiver, IntPtr selector, CGPoint arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_int_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_int_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_bool_int(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_bool_int(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGPoint_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGPoint_bool(IntPtr receiver, IntPtr selector, CGPoint arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend_IntPtr_float(IntPtr receiver, IntPtr selector, IntPtr arg1, float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper_IntPtr_float(IntPtr receiver, IntPtr selector, IntPtr arg1, float arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern uint UInt32_objc_msgSend_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern uint UInt32_objc_msgSendSuper_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_IntPtr_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_IntPtr_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, uint arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ushort UInt16_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ushort UInt16_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern short short_objc_msgSend_UInt16_IntPtr(IntPtr receiver, IntPtr selector, ushort arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern short short_objc_msgSendSuper_UInt16_IntPtr(IntPtr receiver, IntPtr selector, ushort arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern short short_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern short short_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern short short_objc_msgSend_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern short short_objc_msgSendSuper_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt32_UInt32(IntPtr receiver, IntPtr selector, uint arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt32_UInt32(IntPtr receiver, IntPtr selector, uint arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt32_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, uint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt32_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, uint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_int(IntPtr receiver, IntPtr selector, int arg1, int arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Double(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_int_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt32_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt32_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern ulong UInt64_objc_msgSend_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern ulong UInt64_objc_msgSendSuper_IntPtr_CGPoint(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt32_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt32_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, CGPoint arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_int_IntPtr(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_bool_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_bool_bool_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, bool arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern float float_objc_msgSend_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern float float_objc_msgSendSuper_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_Double(IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTime_objc_msgSend_stret(out CMTime retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTime_objc_msgSendSuper_stret(out CMTime retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTime_out_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, out CMTime arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTime_out_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, out CMTime arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTimeRange_objc_msgSend_stret(out CMTimeRange retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTimeRange_objc_msgSendSuper_stret(out CMTimeRange retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTimeRange(IntPtr receiver, IntPtr selector, CMTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTimeRange(IntPtr receiver, IntPtr selector, CMTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CMTime(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CMTime(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTime_objc_msgSend_stret_CMTime(out CMTime retval, IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTime_objc_msgSendSuper_stret_CMTime(out CMTime retval, IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CMTimeRange_IntPtr_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTimeRange arg1, IntPtr arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CMTimeRange_IntPtr_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTimeRange arg1, IntPtr arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTimeRange_CMTime(IntPtr receiver, IntPtr selector, CMTimeRange arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTimeRange_CMTime(IntPtr receiver, IntPtr selector, CMTimeRange arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_CMTime_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_CMTime_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTimeMapping_objc_msgSend_stret(out CMTimeMapping retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTimeMapping_objc_msgSendSuper_stret(out CMTimeMapping retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_int_CMTimeRange_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, CMTimeRange arg3, CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_int_CMTimeRange_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, CMTimeRange arg3, CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTimeRange(IntPtr receiver, IntPtr selector, CMTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTimeRange(IntPtr receiver, IntPtr selector, CMTimeRange arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CMTime_out_Single_out_Single_out_CMTimeRange(IntPtr receiver, IntPtr selector, CMTime arg1, out float arg2, out float arg3, out CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CMTime_out_Single_out_Single_out_CMTimeRange(IntPtr receiver, IntPtr selector, CMTime arg1, out float arg2, out float arg3, out CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_float_CMTimeRange(IntPtr receiver, IntPtr selector, float arg1, float arg2, CMTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_float_CMTimeRange(IntPtr receiver, IntPtr selector, float arg1, float arg2, CMTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_CMTime(IntPtr receiver, IntPtr selector, float arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_CMTime(IntPtr receiver, IntPtr selector, float arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CMTimeRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CMTimeRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CMTime_out_CGAffineTransform_out_CGAffineTransform_out_CMTimeRange(IntPtr receiver, IntPtr selector, CMTime arg1, out CGAffineTransform arg2, out CGAffineTransform arg3, out CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CMTime_out_CGAffineTransform_out_CGAffineTransform_out_CMTimeRange(IntPtr receiver, IntPtr selector, CMTime arg1, out CGAffineTransform arg2, out CGAffineTransform arg3, out CMTimeRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGAffineTransform_CGAffineTransform_CMTimeRange(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, CGAffineTransform arg2, CMTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGAffineTransform_CGAffineTransform_CMTimeRange(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, CGAffineTransform arg2, CMTimeRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGAffineTransform_CMTime(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGAffineTransform_CMTime(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTime_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTime_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTime_CMTime_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1, CMTime arg2, CMTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTime_CMTime_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1, CMTime arg2, CMTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CMTime_CMTime_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, CMTime arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CMTime_CMTime_CMTime_IntPtr(IntPtr receiver, IntPtr selector, CMTime arg1, CMTime arg2, CMTime arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_CMTime_CMTime(IntPtr receiver, IntPtr selector, float arg1, CMTime arg2, CMTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_CMTime_CMTime(IntPtr receiver, IntPtr selector, float arg1, CMTime arg2, CMTime arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_float_IntPtr(IntPtr receiver, IntPtr selector, float arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_float_IntPtr(IntPtr receiver, IntPtr selector, float arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CMTimeRange(IntPtr receiver, IntPtr selector, IntPtr arg1, CMTimeRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTime_objc_msgSend_stret_Double(out CMTime retval, IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTime_objc_msgSendSuper_stret_Double(out CMTime retval, IntPtr receiver, IntPtr selector, double arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CMTime_objc_msgSend_stret_Int64(out CMTime retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CMTime_objc_msgSendSuper_stret_Int64(out CMTime retval, IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTime_out_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1, out CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTime_out_CMTime(IntPtr receiver, IntPtr selector, CMTime arg1, out CMTime arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_out_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, out NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_out_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, out NSRange arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_out_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_out_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_out_NSRange_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, out NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_out_NSRange_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, out NSRange arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_out_NSRange_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSRange arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_out_NSRange_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSRange arg3, NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_NSRange_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_NSRange_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, NSRange arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_UInt64(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_UInt64(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_Char(IntPtr receiver, IntPtr selector, char arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_Char(IntPtr receiver, IntPtr selector, char arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_byte(IntPtr receiver, IntPtr selector, byte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_byte(IntPtr receiver, IntPtr selector, byte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_UInt32(IntPtr receiver, IntPtr selector, uint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_UInt64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, ulong arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_UInt64_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, ulong arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSRange_objc_msgSend_stret_IntPtr_UInt64_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSRange_objc_msgSendSuper_stret_IntPtr_UInt64_NSRange(out NSRange retval, IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern NSRange NSRange_objc_msgSend_IntPtr_UInt64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern NSRange NSRange_objc_msgSendSuper_IntPtr_UInt64_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_bool(IntPtr receiver, IntPtr selector, int arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_bool(IntPtr receiver, IntPtr selector, int arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange_Int64(IntPtr receiver, IntPtr selector, NSRange arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_NSRange_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_NSRange_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr_out_NSRange_out_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, out NSRange arg3, out NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr_out_NSRange_out_NSRange(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, out NSRange arg3, out NSRange arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSRange_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSRange_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr_out_NSRange_out_NSRange_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, out NSRange arg3, out NSRange arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr_out_NSRange_out_NSRange_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, out NSRange arg3, out NSRange arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, bool arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Double_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, bool arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Double_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, double arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, bool arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_IntPtr_out_Boolean_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, out bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_IntPtr_out_Boolean_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, out bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_Int64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_Int64_Int64_Int64(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, long arg3, long arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CGRect_objc_msgSend_stret_CGSize_UInt64_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, CGSize arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CGRect_objc_msgSendSuper_stret_CGSize_UInt64_IntPtr(out CGRect retval, IntPtr receiver, IntPtr selector, CGSize arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CGRect_UInt64_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CGRect_UInt64_IntPtr(IntPtr receiver, IntPtr selector, CGRect arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern char Char_objc_msgSend_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern char Char_objc_msgSendSuper_UInt64(IntPtr receiver, IntPtr selector, ulong arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_UInt32(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_UInt32_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_UInt32_NSRange(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, NSRange arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_UInt32_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, NSRange arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_UInt32_NSRange_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, NSRange arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSRange_IntPtr(IntPtr receiver, IntPtr selector, NSRange arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, IntPtr arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Double_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Double_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long Int64_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long Int64_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_int(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, int arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, ulong arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CMTimeMapping(IntPtr receiver, IntPtr selector, CMTimeMapping arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CMTimeMapping(IntPtr receiver, IntPtr selector, CMTimeMapping arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern sbyte SByte_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern sbyte SByte_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern byte byte_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern byte byte_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void NSDecimal_objc_msgSend_stret(out NSDecimal retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void NSDecimal_objc_msgSendSuper_stret(out NSDecimal retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_SByte(IntPtr receiver, IntPtr selector, sbyte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_SByte(IntPtr receiver, IntPtr selector, sbyte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_byte(IntPtr receiver, IntPtr selector, byte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_byte(IntPtr receiver, IntPtr selector, byte arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_short(IntPtr receiver, IntPtr selector, short arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_short(IntPtr receiver, IntPtr selector, short arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt16(IntPtr receiver, IntPtr selector, ushort arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt16(IntPtr receiver, IntPtr selector, ushort arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_float(IntPtr receiver, IntPtr selector, float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_float(IntPtr receiver, IntPtr selector, float arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64_short_bool(IntPtr receiver, IntPtr selector, long arg1, short arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64_short_bool(IntPtr receiver, IntPtr selector, long arg1, short arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_NSDecimal(IntPtr receiver, IntPtr selector, NSDecimal arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_NSDecimal(IntPtr receiver, IntPtr selector, NSDecimal arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_short_IntPtr(IntPtr receiver, IntPtr selector, short arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_short_IntPtr(IntPtr receiver, IntPtr selector, short arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt32_UInt64(IntPtr receiver, IntPtr selector, uint arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt32_UInt64(IntPtr receiver, IntPtr selector, uint arg1, ulong arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, ulong arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_UInt64_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, IntPtr arg3, ulong arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_bool_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_bool_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, bool arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_out_Boolean(IntPtr receiver, IntPtr selector, IntPtr arg1, out bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_out_Boolean(IntPtr receiver, IntPtr selector, IntPtr arg1, out bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_UInt64_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_UInt64_IntPtr_bool_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, ulong arg2, IntPtr arg3, bool arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4, IntPtr arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_bool_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_bool_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, bool arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, ulong arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern int int_objc_msgSend_IntPtr_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, ulong arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern int int_objc_msgSendSuper_IntPtr_IntPtr_UInt64_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, ulong arg3, ulong arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt64_out_NSPropertyListFormat_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSPropertyListFormat arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt64_out_NSPropertyListFormat_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ulong arg2, out NSPropertyListFormat arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_IntPtr_int_float_float(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3, float arg4, float arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_IntPtr_int_float_float(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3, float arg4, float arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_IntPtr_int_float(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3, float arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_IntPtr_int_float(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3, float arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_int_IntPtr_int(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_int_IntPtr_int(IntPtr receiver, IntPtr selector, int arg1, IntPtr arg2, int arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CATransform3D_objc_msgSend_stret(out CATransform3D retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CATransform3D_objc_msgSendSuper_stret(out CATransform3D retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_CATransform3D(IntPtr receiver, IntPtr selector, CATransform3D arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_CATransform3D(IntPtr receiver, IntPtr selector, CATransform3D arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern double Double_objc_msgSend_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern double Double_objc_msgSendSuper_Double_IntPtr(IntPtr receiver, IntPtr selector, double arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_float_float_float_float(IntPtr receiver, IntPtr selector, float arg1, float arg2, float arg3, float arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_float_float_float_float(IntPtr receiver, IntPtr selector, float arg1, float arg2, float arg3, float arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_Double_out_CVTimeStamp(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, out CVTimeStamp arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_Double_out_CVTimeStamp(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, out CVTimeStamp arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Double_out_CVTimeStamp(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, out CVTimeStamp arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Double_out_CVTimeStamp(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, double arg3, out CVTimeStamp arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_UInt32_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, uint arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_UInt32_UInt32_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, uint arg3, IntPtr arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Double_Double_Double(IntPtr receiver, IntPtr selector, double arg1, double arg2, double arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGPoint_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGPoint_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGPoint arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_CGRect_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_CGRect_CGRect(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, CGRect arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_CGRect_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_CGRect_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, CGRect arg2, long arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGSize_IntPtr(IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_Int64_CGRect_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, CGRect arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_Int64_CGRect_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3, CGRect arg4, long arg5, IntPtr arg6); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGAffineTransform_bool(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGAffineTransform_bool(IntPtr receiver, IntPtr selector, CGAffineTransform arg1, bool arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_CGSize_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, CGSize arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_CGSize_Int64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, CGSize arg3, long arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt64_CGSize_bool_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, CGSize arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt64_CGSize_bool_IntPtr(IntPtr receiver, IntPtr selector, ulong arg1, CGSize arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_Int64_CGSize_bool_IntPtr(IntPtr receiver, IntPtr selector, long arg1, CGSize arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_Int64_CGSize_bool_IntPtr(IntPtr receiver, IntPtr selector, long arg1, CGSize arg2, bool arg3, IntPtr arg4); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGAffineTransform(IntPtr receiver, IntPtr selector, CGAffineTransform arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGAffineTransform(IntPtr receiver, IntPtr selector, CGAffineTransform arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGRect_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGRect_Int64(IntPtr receiver, IntPtr selector, CGRect arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend_stret")] public static extern void CLLocationCoordinate2D_objc_msgSend_stret(out CLLocationCoordinate2D retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper_stret")] public static extern void CLLocationCoordinate2D_objc_msgSendSuper_stret(out CLLocationCoordinate2D retval, IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern CLLocationCoordinate2D CLLocationCoordinate2D_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern CLLocationCoordinate2D CLLocationCoordinate2D_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, CLLocationCoordinate2D arg1, double arg2, double arg3, double arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, CLLocationCoordinate2D arg1, double arg2, double arg3, double arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_Double_Double_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, CLLocationCoordinate2D arg1, double arg2, double arg3, double arg4, double arg5, double arg6, IntPtr arg7); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_Double_Double_Double_Double_IntPtr(IntPtr receiver, IntPtr selector, CLLocationCoordinate2D arg1, double arg2, double arg3, double arg4, double arg5, double arg6, IntPtr arg7); #region [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern nfloat nfloat_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern nfloat nfloat_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_nfloat(IntPtr receiver, IntPtr selector, nfloat arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_nfloat(IntPtr receiver, IntPtr selector, nfloat arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_long(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_long(IntPtr receiver, IntPtr selector, long arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_Int64_bool(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2, bool arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern long long_objc_msgSend(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern long long_objc_msgSendSuper(IntPtr receiver, IntPtr selector); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ref IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ref IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern bool bool_objc_msgSend_IntPtr_UInt32_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, ref IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern bool bool_objc_msgSendSuper_IntPtr_UInt32_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, uint arg2, ref IntPtr arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UInt64_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, ulong arg4, IntPtr arg5); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ref IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_ref_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1, ref IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern nuint nuint_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern nuint nuint_objc_msgSendSuper_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_nuint(IntPtr receiver, IntPtr selector, nuint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_nuint(IntPtr receiver, IntPtr selector, nuint arg1); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_long(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_long(IntPtr receiver, IntPtr selector, IntPtr arg1, long arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_IntPtr_nuint(IntPtr receiver, IntPtr selector, IntPtr arg1, nuint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_IntPtr_nuint(IntPtr receiver, IntPtr selector, IntPtr arg1, nuint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_UInt32_IntPtr(IntPtr receiver, IntPtr selector, uint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_CGPoint_IntPtr(IntPtr receiver, IntPtr selector, CGPoint arg1, IntPtr arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern void void_objc_msgSend_nfloat_CGPoint(IntPtr receiver, IntPtr selector, nfloat arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern void void_objc_msgSendSuper_nfloat_CGPoint(IntPtr receiver, IntPtr selector, nfloat arg1, CGPoint arg2); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] public static extern IntPtr IntPtr_objc_msgSend_IntPtr_IntPtr_long(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")] public static extern IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_long(IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, long arg3); //[DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] //public static extern IntPtr IntPtr_objc_msgSend_IntPtr(IntPtr receiver, IntPtr selector, IntPtr arg1); #endregion } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/MethodDescription.cs ================================================ using System.Reflection; namespace ObjCRuntime; public struct MethodDescription { public MethodBase method; public ArgumentSemantic semantic; public MethodDescription(MethodBase method, ArgumentSemantic semantic) { this.method = method; this.semantic = semantic; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/MountainLionAttribute.cs ================================================ using System; namespace ObjCRuntime; public class MountainLionAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/NativeHandle.cs ================================================ namespace ObjCRuntime; public readonly struct NativeHandle : IEquatable { private readonly IntPtr handle; public static NativeHandle Zero; public IntPtr Handle => handle; public NativeHandle(IntPtr handle) { this.handle = handle; } public static bool operator ==(NativeHandle left, IntPtr right) { return left.handle == right; } public static bool operator ==(NativeHandle left, NativeHandle right) { return left.handle == right.handle; } public static bool operator ==(IntPtr left, NativeHandle right) { return left == right.Handle; } public static bool operator !=(NativeHandle left, IntPtr right) { return left.handle != right; } public static bool operator !=(IntPtr left, NativeHandle right) { return left != right.Handle; } public static bool operator !=(NativeHandle left, NativeHandle right) { return left.handle != right.Handle; } public static implicit operator IntPtr(NativeHandle value) { return value.Handle; } public static implicit operator NativeHandle(IntPtr value) { return new NativeHandle(value); } public unsafe static explicit operator void*(NativeHandle value) { return (void*)(IntPtr)value; } public unsafe static explicit operator NativeHandle(void* value) { return new NativeHandle((nint)value); } public override bool Equals(object? o) { if (o is NativeHandle nativeHandle) { return nativeHandle.handle == handle; } return false; } public override int GetHashCode() { return handle.GetHashCode(); } public bool Equals(NativeHandle other) { return other.handle == handle; } public override string ToString() { return "0x" + handle.ToString("x"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/NativeObjectExtensions.cs ================================================ using Xamarin.Utiles; namespace ObjCRuntime; public static class NativeObjectExtensions { public static NativeHandle GetHandle(this INativeObject? self) { return self?.Handle ?? NativeHandle.Zero; } public static NativeHandle GetNonNullHandle(this INativeObject self, string argumentName) { if (self == null) { ThrowHelper.ThrowArgumentNullException(argumentName); } if (self.Handle == NativeHandle.Zero) { ThrowHelper.ThrowObjectDisposedException(self); } return self.Handle; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Protocol.cs ================================================ using Foundation; using System.Reflection; using System.Runtime.InteropServices; namespace ObjCRuntime; public class Protocol : INativeObject { private IntPtr handle; public IntPtr Handle => handle; public string Name { get { IntPtr ptr = protocol_getName(handle); return Marshal.PtrToStringAuto(ptr); } } public Protocol(string name) { handle = objc_getProtocol(name); if (handle == IntPtr.Zero) { throw new ArgumentException($"'{name}' is an unknown protocol"); } } public IntPtr GetProtocolForType(Type type) { if (type.IsInterface) { ProtocolAttribute customAttribute = type.GetCustomAttribute(inherit: false); if (customAttribute != null) { IntPtr intPtr = Protocol.objc_getProtocol(customAttribute.Name); if (intPtr != IntPtr.Zero) { return intPtr; } } } throw new ArgumentException($"'{type.FullName}' is an unknown protocol"); } public Protocol(Type type) { handle = GetProtocolForType(type); } public Protocol(IntPtr handle) { this.handle = handle; } [Preserve(Conditional = true)] internal Protocol(IntPtr handle, bool owns) { this.handle = handle; } public static IntPtr GetHandle(string name) { return objc_getProtocol(name); } [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_getProtocol(string name); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_allocateProtocol(string name); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void objc_registerProtocol(IntPtr protocol); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void protocol_addProperty(IntPtr protocol, string name, Class.objc_attribute_prop[] attributes, int count, bool isRequired, bool isInstance); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void protocol_addMethodDescription(IntPtr protocol, IntPtr nameSelector, string signature, bool isRequired, bool isInstance); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void protocol_addProtocol(IntPtr protocol, IntPtr addition); [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr protocol_getName(IntPtr protocol); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Runtime.cs ================================================ using Foundation; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Xamarin.Utiles; using static ObjCRuntime.RuntimeEx; namespace ObjCRuntime; public static class Runtime { static Runtime() { object_map = new Dictionary(); intptr_ctor_cache = new(); lock_obj = new object(); selClass = Selector.GetHandle("class"); string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; if (!string.IsNullOrEmpty(baseDirectory)) baseDirectory = Path.Combine(baseDirectory, ".."); else { baseDirectory = Assembly.GetExecutingAssembly().Location; if (string.IsNullOrEmpty(baseDirectory)) throw new InvalidOperationException("Cannot get base path of current app domain"); baseDirectory = Path.Combine(Path.GetDirectoryName(baseDirectory), ".."); } ResourcesPath = Path.Combine(baseDirectory, "Resources"); FrameworksPath = Path.Combine(baseDirectory, "Frameworks"); } private static List assemblies; private static Dictionary object_map; private static Dictionary intptr_ctor_cache; private static object lock_obj; private static IntPtr selClass; public static string FrameworksPath { get; set; } public static string ResourcesPath { get; set; } public static void RegisterEntryAssembly(Assembly entryAssembly) { RegisterAssembly(entryAssembly); AssemblyName name = entryAssembly.GetName(); Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly assembly2 in assemblies) { AssemblyName[] referencedAssemblies = assembly2.GetReferencedAssemblies(); for (int j = 0; j < referencedAssemblies.Length; j++) { if (AssemblyName.ReferenceMatchesDefinition(referencedAssemblies[j], name)) { RegisterAssembly(assembly2); break; } } } } public static void RegisterAssembly(Assembly a) { object[] customAttributes = a.GetCustomAttributes(typeof(RequiredFrameworkAttribute), inherit: false); for (int i = 0; i < customAttributes.Length; i++) { RequiredFrameworkAttribute requiredFrameworkAttribute = (RequiredFrameworkAttribute)customAttributes[i]; string text = requiredFrameworkAttribute.Name; string path; if (text.Contains(".dylib")) { path = ResourcesPath; } else { path = FrameworksPath; path = Path.Combine(path, text); text = text.Replace(".frameworks", ""); } path = Path.Combine(path, text); if (Dlfcn.dlopen(path, 0) == IntPtr.Zero) throw new Exception($"Unable to load required framework: '{requiredFrameworkAttribute.Name}'", new Exception(Dlfcn.dlerror())); } if (assemblies == null) { assemblies = new List(); Class.Register(typeof(NSObject)); } assemblies.Add(a); Type[] types = a.GetTypes(); foreach (Type type in types) { if (type.IsSubclassOf(typeof(NSObject)) && !Attribute.IsDefined(type, typeof(ModelAttribute), inherit: false)) Class.Register(type); } } internal static List GetAssemblies() { if (assemblies == null) { AssemblyName name = typeof(Runtime).Assembly.GetName(); assemblies = new List(); Assembly[] array = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly assembly in array) { if (assembly.GetName() != name) { assemblies.Add(assembly); } } } return assemblies; } internal static void UnregisterNSObject(IntPtr ptr) { lock (lock_obj) { object_map.Remove(ptr); } } internal static void RegisterNSObject(NSObject obj, IntPtr ptr) { lock (lock_obj) { object_map[ptr] = new WeakReference(obj); obj.Handle = ptr; } } internal static void NativeObjectHasDied(IntPtr ptr) { lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { object_map.Remove(ptr); ((NSObject)value.Target)?.ClearHandle(); } } } public static NSObject TryGetNSObject(IntPtr ptr) { lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { return (NSObject)value.Target; } } return null; } public static NSObject GetNSObject(IntPtr ptr) { if (ptr == IntPtr.Zero) { return null; } lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { NSObject nSObject = (NSObject)value.Target; if (nSObject != null) return nSObject; } } Type type = Class.Lookup(Messaging.intptr_objc_msgSend(ptr, selClass)); if (type != null) { var intPtrConstructor = GetIntPtrConstructor(type); if (intPtrConstructor is null) { MissingCtor(ptr, IntPtr.Zero, type, MissingCtorResolution.ThrowConstructor1NotFound); return null; } object[] array = new object[1]; if (intPtrConstructor.GetParameters()[0].ParameterType == typeof(IntPtr)) array[0] = ptr; else array[0] = new NativeHandle(ptr); return (NSObject)intPtrConstructor.Invoke(array); } return new NSObject(ptr); } public static void ConnectMethod(MethodInfo method, Selector selector) { if (method == null) throw new ArgumentNullException("method"); if (selector == null) throw new ArgumentNullException("selector"); Type declaringType = method.DeclaringType; if (!Class.IsCustomType(declaringType)) throw new ArgumentException("Cannot late bind methods on core types"); ExportAttribute ea = new ExportAttribute(selector.Name); Class @class = new Class(declaringType); Class.RegisterMethod(method, ea, declaringType, @class.Handle); } #region internal static MethodInfo FindClosedMethod(Type closed_type, MethodBase open_method) { if (!open_method.ContainsGenericParameters) return (MethodInfo)open_method; Type type = closed_type; do { if (type.IsGenericType && type.GetGenericTypeDefinition() == open_method.DeclaringType) { closed_type = type; break; } type = type.BaseType; } while (type != null); MethodInfo[] methods = closed_type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); foreach (MethodInfo methodInfo in methods) { if (methodInfo.MetadataToken == open_method.MetadataToken) return methodInfo; } throw ErrorHelper.CreateError(8003, "Failed to find the closed generic method '{0}' on the type '{1}'.", open_method.Name, closed_type.FullName); } public static T TryGetNSObjectTx(IntPtr ptr) where T : NSObject { lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { return value.Target as T; } } return null; } public static T? GetNSObjectTx(IntPtr ptr) where T : NSObject { if (ptr == IntPtr.Zero) return null; lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { NSObject nSObject = (NSObject)value.Target; if (nSObject != null) return nSObject as T; } } Type type = Class.Lookup(Messaging.intptr_objc_msgSend(ptr, selClass)); if (type != null) { var intPtrConstructor = GetIntPtrConstructor(type); if (intPtrConstructor is null) { MissingCtor(ptr, IntPtr.Zero, type, MissingCtorResolution.ThrowConstructor1NotFound); return null; } object[] array = new object[1]; if (intPtrConstructor.GetParameters()[0].ParameterType == typeof(IntPtr)) { array[0] = ptr; } else { array[0] = new NativeHandle(ptr); } return (T)intPtrConstructor.Invoke(array); } return new NSObject(ptr) as T; } public static T GetNativeObject(IntPtr ptr) where T : class, INativeObject { if (ptr == IntPtr.Zero) return default; lock (lock_obj) { if (object_map.TryGetValue(ptr, out var value)) { var nSObject = value.Target; if (nSObject != null) return nSObject as T; } } Type type = Class.Lookup(Messaging.intptr_objc_msgSend(ptr, selClass)); if (type != null) { var intPtrConstructor = GetIntPtrConstructor(type); if (intPtrConstructor is null) { MissingCtor(ptr, IntPtr.Zero, type, MissingCtorResolution.ThrowConstructor1NotFound); return null; } object[] array = new object[1]; if (intPtrConstructor.GetParameters()[0].ParameterType == typeof(IntPtr)) { array[0] = ptr; } else { array[0] = new NativeHandle(ptr); } return (T)intPtrConstructor.Invoke(array); } return new NSObject(ptr) as T; } private static ConstructorInfo? GetIntPtrConstructor(Type type) { lock (intptr_ctor_cache) { if (intptr_ctor_cache.TryGetValue(type, out ConstructorInfo value)) return value; } ConstructorInfo[] constructors = type.GetConstructors(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); ConstructorInfo constructorInfo = null; for (int i = 0; i < constructors.Length; i++) { ParameterInfo[] parameters = constructors[i].GetParameters(); if (parameters.Length != 1) continue; if (parameters[0].ParameterType == typeof(IntPtr)) constructorInfo = constructors[i]; else if (!(parameters[0].ParameterType != typeof(NativeHandle))) { lock (intptr_ctor_cache) intptr_ctor_cache[type] = constructors[i]; return constructors[i]; } } if (constructorInfo != null) { string fullName = typeof(IntPtr).FullName; string fullName2 = typeof(NativeHandle).FullName; LogHelper.NSLog($"The type {type.FullName} does not have a constructor that takes {"an ObjCRuntime.NativeHandle parameter"} but a constructor that takes {"an System.IntPtr parameter"} was found (and will be used instead). It's highly recommended to change the signature of the {fullName} constructor to be {fullName2}."); lock (intptr_ctor_cache) { intptr_ctor_cache[type] = constructorInfo; return constructorInfo; } } return null; } #endregion } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/RuntimeEx.cs ================================================ using Foundation; using Registrar; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Xamarin.Utiles; namespace ObjCRuntime; public static class RuntimeEx { internal enum MissingCtorResolution { ThrowConstructor1NotFound, ThrowConstructor2NotFound, Ignore } static RuntimeEx() { var architecture = RuntimeInformation.ProcessArchitecture; if (architecture == Architecture.Arm64) IsARM64CallingConvention = true; IntPtrEqualityComparer = new(); TypeEqualityComparer = new(); object_map = new(); Registrar = new(); lock_obj = new(); } public static bool IsARM64CallingConvention = false; internal static IntPtrEqualityComparer IntPtrEqualityComparer; internal static TypeEqualityComparer TypeEqualityComparer; private static Dictionary object_map; private static object lock_obj; public static bool DynamicRegistrationSupported => true; static DynamicRegistrar Registrar; internal static IntPtr AllocGCHandle(object? value, GCHandleType type = GCHandleType.Normal) { return GCHandle.ToIntPtr(GCHandle.Alloc(value, type)); } internal static MethodInfo FindClosedMethod(Type closed_type, MethodBase open_method) { if (!open_method.ContainsGenericParameters) { return (MethodInfo)open_method; } Type type = closed_type; do { if (type.IsGenericType && type.GetGenericTypeDefinition() == open_method.DeclaringType) { closed_type = type; break; } type = type.BaseType; } while ((object)type != null); MethodInfo[] methods = closed_type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); foreach (MethodInfo methodInfo in methods) { if (methodInfo.MetadataToken == open_method.MetadataToken) { return methodInfo; } } throw ErrorHelper.CreateError(8003, $"Failed to find the closed generic method '{open_method.Name}' on the type '{closed_type.FullName}'."); } public static void RegisterEntryAssembly(Assembly assembly) { AssemblyName name = assembly.GetName(); Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly assembly2 in assemblies) { AssemblyName[] referencedAssemblies = assembly2.GetReferencedAssemblies(); for (int j = 0; j < referencedAssemblies.Length; j++) { if (AssemblyName.ReferenceMatchesDefinition(referencedAssemblies[j], name)) { RegisterAssembly(assembly2); break; } } } } public static void RegisterAssembly(Assembly assembly) => Registrar.RegisterAssembly(assembly); internal static ExportAttribute? GetExportAttribute(MethodInfo method) { ExportAttribute customAttribute = method.GetCustomAttribute(); if (customAttribute == null) { PropertyInfo propertyInfo = FindPropertyInfo(method); if ((object)propertyInfo != null) { customAttribute = propertyInfo.GetCustomAttribute(); } } return customAttribute; } internal static PropertyInfo? FindPropertyInfo(MethodInfo accessor) { if (!accessor.IsSpecialName) { return null; } PropertyInfo[] properties = accessor.DeclaringType.GetProperties(); foreach (PropertyInfo propertyInfo in properties) { if (propertyInfo.GetGetMethod() == accessor) { return propertyInfo; } if (propertyInfo.GetSetMethod() == accessor) { return propertyInfo; } } return null; } internal static ProtocolMemberAttribute? GetProtocolMemberAttribute(Type type, string selector, MethodInfo method) { IEnumerable customAttributes = type.GetCustomAttributes(); if (customAttributes == null) { return null; } foreach (ProtocolMemberAttribute item in customAttributes) { if (item.IsStatic != method.IsStatic || item.Selector != selector) { continue; } if (!item.IsProperty) { ParameterInfo[] parameters = method.GetParameters(); Type[]? parameterType = item.ParameterType; if (((parameterType != null) ? parameterType.Length : 0) != parameters.Length) { continue; } bool flag = false; for (int i = 0; i < parameters.Length; i++) { Type type2 = parameters[i].ParameterType; bool isByRef = type2.IsByRef; if (isByRef) { type2 = type2.GetElementType(); } if (isByRef != item.ParameterByRef[i]) { flag = true; break; } if (type2 != item.ParameterType[i]) { flag = true; break; } } if (flag) { continue; } } return item; } return null; } internal static void MissingCtor(IntPtr ptr, IntPtr klass, Type type, MissingCtorResolution resolution) { if (resolution == MissingCtorResolution.Ignore) return; if (klass == IntPtr.Zero) klass = Class.GetClassForObject(ptr); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("Failed to marshal the Objective-C object 0x"); stringBuilder.Append(ptr.ToString("x")); stringBuilder.Append(" (type: "); stringBuilder.Append(new Class(klass).Name); stringBuilder.Append("). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type '"); stringBuilder.Append(type.FullName); stringBuilder.Append("' does not have a constructor that takes "); switch (resolution) { case MissingCtorResolution.ThrowConstructor1NotFound: stringBuilder.Append("one NativeHandle argument"); break; case MissingCtorResolution.ThrowConstructor2NotFound: stringBuilder.Append("two (NativeHandle, bool) arguments"); break; } stringBuilder.Append(")."); throw ErrorHelper.CreateError(8027, stringBuilder.ToString()); } //public static NSObject? GetNSObject(IntPtr ptr) //{ // return GetNSObject(ptr, MissingCtorResolution.ThrowConstructor1NotFound); //} //internal static NSObject? GetNSObject(IntPtr ptr, MissingCtorResolution missingCtorResolution, bool evenInFinalizerQueue = false) //{ // if (ptr == IntPtr.Zero) // { // return null; // } // NSObject nSObject = TryGetNSObject(ptr, evenInFinalizerQueue); // if (nSObject != null) // { // return nSObject; // } // return ConstructNSObject(ptr, Class.GetClassForObject(ptr), missingCtorResolution); //} //internal static NSObject? TryGetNSObject(IntPtr ptr, bool evenInFinalizerQueue) //{ // lock (lock_obj) // { // if (object_map.TryGetValue(ptr, out var value)) // { // NSObject nSObject = (NSObject)value.Target; // if (nSObject == null) // { // return null; // } // if (nSObject.InFinalizerQueue) // { // if (!evenInFinalizerQueue) // { // return null; // } // if (nSObject.IsDirectBinding && !nSObject.IsRegisteredToggleRef) // { // return null; // } // } // return nSObject; // } // } // return null; //} } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/Selector.cs ================================================ using System; using System.Runtime.InteropServices; namespace ObjCRuntime; [StructLayout(LayoutKind.Sequential)] public class Selector : IEquatable { [MonoNativeFunctionWrapper] private delegate int getFrameLengthDelegate(IntPtr @this, IntPtr sel); public static readonly IntPtr Init = GetHandle("init"); public static readonly IntPtr InitWithCoder = GetHandle("initWithCoder:"); private static IntPtr MethodSignatureForSelector = GetHandle("methodSignatureForSelector:"); private static IntPtr FrameLength = GetHandle("frameLength"); internal static IntPtr RetainCount = GetHandle("retainCount"); internal const string Alloc = "alloc"; internal const string Release = "release"; internal const string Retain = "retain"; internal const string Autorelease = "autorelease"; internal const string DoesNotRecognizeSelector = "doesNotRecognizeSelector:"; internal const string PerformSelectorOnMainThreadWithObjectWaitUntilDone = "performSelectorOnMainThread:withObject:waitUntilDone:"; internal const string PerformSelectorWithObjectAfterDelay = "performSelector:withObject:afterDelay:"; internal static IntPtr AllocHandle = GetHandle("alloc"); internal static IntPtr ReleaseHandle = GetHandle("release"); internal static IntPtr RetainHandle = GetHandle("retain"); internal static IntPtr AutoreleaseHandle = GetHandle("autorelease"); internal static IntPtr DoesNotRecognizeSelectorHandle = GetHandle("doesNotRecognizeSelector:"); internal static IntPtr PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle = GetHandle("performSelectorOnMainThread:withObject:waitUntilDone:"); internal static IntPtr PerformSelectorWithObjectAfterDelayHandle = GetHandle("performSelector:withObject:afterDelay:"); internal IntPtr handle; public IntPtr Handle => handle; public string Name => Messaging.StringFromNativeUtf8(sel_getName(handle)); public Selector(IntPtr sel) : this(sel, check: true) { } internal Selector(IntPtr sel, bool check) { if (check && !sel_isMapped(sel)) { throw new ArgumentException("sel is not a selector handle."); } handle = sel; } public Selector(string name, bool alloc) { handle = GetHandle(name); } public Selector(string name) : this(name, alloc: false) { } [MonoPInvokeCallback(typeof(getFrameLengthDelegate))] public static int GetFrameLength(IntPtr @this, IntPtr sel) { return Messaging.int_objc_msgSend(Messaging.IntPtr_objc_msgSend_IntPtr(@this, MethodSignatureForSelector, sel), FrameLength); } public static Selector Register(IntPtr handle) { return new Selector(handle); } public static bool operator !=(Selector left, Selector right) { return !(left == right); } public static bool operator ==(Selector left, Selector right) { if ((object)left == null) { return (object)right == null; } if ((object)right == null) { return false; } return left.handle == right.handle; } public override bool Equals(object right) { return Equals(right as Selector); } public bool Equals(Selector right) { if (right == null) { return false; } return handle == right.handle; } public override int GetHashCode() { return (int)handle; } public static Selector FromHandle(IntPtr sel) { if (!sel_isMapped(sel)) { return null; } return new Selector(sel, check: false); } internal static string GetName(IntPtr handle) { return Marshal.PtrToStringAuto(sel_getName(handle)); } [DllImport("/usr/lib/libobjc.dylib")] private static extern IntPtr sel_getName(IntPtr sel); [DllImport("/usr/lib/libobjc.dylib", EntryPoint = "sel_registerName")] public static extern IntPtr GetHandle(string name); [DllImport("/usr/lib/libobjc.dylib")] private static extern bool sel_isMapped(IntPtr sel); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/SinceAttribute.cs ================================================ using System; namespace ObjCRuntime; public class SinceAttribute : Attribute { public byte Major; public byte Minor; public SinceAttribute(byte major, byte minor) { Major = major; Minor = minor; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/ThreadSafeAttribute.cs ================================================ using System; namespace ObjCRuntime; public class ThreadSafeAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/TrampolineBlockBase.cs ================================================ using System.ComponentModel; using System.Runtime.InteropServices; namespace ObjCRuntime; [EditorBrowsable(EditorBrowsableState.Never)] public abstract class TrampolineBlockBase { private readonly IntPtr blockPtr; protected IntPtr BlockPointer => blockPtr; [DllImport("/usr/lib/libobjc.dylib")] private static extern IntPtr _Block_copy(IntPtr ptr); [DllImport("/usr/lib/libobjc.dylib")] internal static extern void _Block_release(IntPtr block); protected unsafe TrampolineBlockBase(BlockLiteral* block) { blockPtr = _Block_copy((IntPtr)block); } ~TrampolineBlockBase() { _Block_release(blockPtr); } protected unsafe static object GetExistingManagedDelegate(IntPtr block) { if (!BlockLiteral.IsManagedBlock(block)) return null; return ((BlockLiteral*)(void*)block)->Target; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ObjCRuntime/UserDelegateTypeAttribute.cs ================================================ using System.ComponentModel; namespace ObjCRuntime; [EditorBrowsable(EditorBrowsableState.Never)] [AttributeUsage(AttributeTargets.Delegate, AllowMultiple = false)] public sealed class UserDelegateTypeAttribute : Attribute { public Type UserDelegateType { get; private set; } public UserDelegateTypeAttribute(Type userDelegateType) { UserDelegateType = userDelegateType; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AL.cs ================================================ using System; using System.Runtime.InteropServices; using System.Security; using OpenGL; namespace OpenAL; public static class AL { internal const string Lib = "/System/Library/Frameworks/OpenAL.framework/OpenAL"; private const CallingConvention Style = CallingConvention.Cdecl; [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alEnable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void Enable(ALCapability capability); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDisable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void Disable(ALCapability capability); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alIsEnabled", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern bool IsEnabled(ALCapability capability); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alGetString", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern IntPtr GetStringPrivate(ALGetString param); public static string Get(ALGetString param) { return Marshal.PtrToStringAnsi(GetStringPrivate(param)); } public static string GetErrorString(ALError param) { return Marshal.PtrToStringAnsi(GetStringPrivate((ALGetString)param)); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetInteger", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern int Get(ALGetInteger param); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetFloat", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern float Get(ALGetFloat param); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetError", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern ALError GetError(); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alIsExtensionPresent", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern bool IsExtensionPresent([In] string extname); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alGetProcAddress", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern IntPtr GetProcAddress([In] string fname); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alGetEnumValue", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern int GetEnumValue([In] string ename); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alListenerf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void Listener(ALListenerf param, float value); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alListener3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void Listener(ALListener3f param, float value1, float value2, float value3); public static void Listener(ALListener3f param, ref Vector3 values) { Listener(param, values.X, values.Y, values.Z); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alListenerfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private unsafe static extern void ListenerPrivate(ALListenerfv param, float* values); public unsafe static void Listener(ALListenerfv param, ref float[] values) { fixed (float* values2 = &values[0]) { ListenerPrivate(param, values2); } } public unsafe static void Listener(ALListenerfv param, ref Vector3 at, ref Vector3 up) { fixed (float* values = &(new float[6] { at.X, at.Y, at.Z, up.X, up.Y, up.Z })[0]) { ListenerPrivate(param, values); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetListenerf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void GetListener(ALListenerf param, out float value); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetListener3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void GetListener(ALListener3f param, out float value1, out float value2, out float value3); public static void GetListener(ALListener3f param, out Vector3 values) { GetListener(param, out values.X, out values.Y, out values.Z); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetListenerfv", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void GetListener(ALListenerfv param, float* values); public unsafe static void GetListener(ALListenerfv param, out Vector3 at, out Vector3 up) { float[] array = new float[6]; fixed (float* values = &array[0]) { GetListener(param, values); at.X = array[0]; at.Y = array[1]; at.Z = array[2]; up.X = array[3]; up.Y = array[4]; up.Z = array[5]; } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGenSources", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private unsafe static extern void GenSourcesPrivate(int n, [Out] uint* sources); [CLSCompliant(false)] public unsafe static void GenSources(int n, out uint sources) { fixed (uint* sources2 = &sources) { GenSourcesPrivate(n, sources2); } } public unsafe static void GenSources(int n, out int sources) { fixed (int* sources2 = &sources) { GenSourcesPrivate(n, (uint*)sources2); } } public static void GenSources(int[] sources) { uint[] array = new uint[sources.Length]; GenSources(array.Length, out array[0]); for (int i = 0; i < array.Length; i++) { sources[i] = (int)array[i]; } } public static int[] GenSources(int n) { uint[] array = new uint[n]; GenSources(array.Length, out array[0]); int[] array2 = new int[n]; for (int i = 0; i < array.Length; i++) { array2[i] = (int)array[i]; } return array2; } public static int GenSource() { GenSources(1, out int sources); return sources; } [CLSCompliant(false)] public static void GenSource(out uint source) { GenSources(1, out source); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDeleteSources", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void DeleteSources(int n, [In] uint* sources); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDeleteSources", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void DeleteSources(int n, ref uint sources); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDeleteSources", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void DeleteSources(int n, ref int sources); [CLSCompliant(false)] public static void DeleteSources(uint[] sources) { if (sources == null) { throw new ArgumentNullException(); } if (sources.Length == 0) { throw new ArgumentOutOfRangeException(); } DeleteBuffers(sources.Length, ref sources[0]); } public static void DeleteSources(int[] sources) { if (sources == null) { throw new ArgumentNullException(); } if (sources.Length == 0) { throw new ArgumentOutOfRangeException(); } DeleteBuffers(sources.Length, ref sources[0]); } [CLSCompliant(false)] public static void DeleteSource(ref uint source) { DeleteSources(1, ref source); } public static void DeleteSource(int source) { DeleteSources(1, ref source); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alIsSource", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern bool IsSource(uint sid); public static bool IsSource(int sid) { return IsSource((uint)sid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourcef", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void Source(uint sid, ALSourcef param, float value); public static void Source(int sid, ALSourcef param, float value) { Source((uint)sid, param, value); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSource3f", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void Source(uint sid, ALSource3f param, float value1, float value2, float value3); public static void Source(int sid, ALSource3f param, float value1, float value2, float value3) { Source((uint)sid, param, value1, value2, value3); } [CLSCompliant(false)] public static void Source(uint sid, ALSource3f param, ref Vector3 values) { Source(sid, param, values.X, values.Y, values.Z); } public static void Source(int sid, ALSource3f param, ref Vector3 values) { Source((uint)sid, param, values.X, values.Y, values.Z); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourcei", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void Source(uint sid, ALSourcei param, int value); public static void Source(int sid, ALSourcei param, int value) { Source((uint)sid, param, value); } [CLSCompliant(false)] public static void Source(uint sid, ALSourceb param, bool value) { Source(sid, (ALSourcei)param, value ? 1 : 0); } public static void Source(int sid, ALSourceb param, bool value) { Source((uint)sid, (ALSourcei)param, value ? 1 : 0); } [CLSCompliant(false)] public static void BindBufferToSource(uint source, uint buffer) { Source(source, ALSourcei.Buffer, (int)buffer); } public static void BindBufferToSource(int source, int buffer) { Source((uint)source, ALSourcei.Buffer, buffer); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSource3i", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void Source(uint sid, ALSource3i param, int value1, int value2, int value3); public static void Source(int sid, ALSource3i param, int value1, int value2, int value3) { Source((uint)sid, param, value1, value2, value3); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetSourcef", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void GetSource(uint sid, ALSourcef param, out float value); public static void GetSource(int sid, ALSourcef param, out float value) { GetSource((uint)sid, param, out value); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetSource3f", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void GetSource(uint sid, ALSource3f param, out float value1, out float value2, out float value3); public static void GetSource(int sid, ALSource3f param, out float value1, out float value2, out float value3) { GetSource((uint)sid, param, out value1, out value2, out value3); } [CLSCompliant(false)] public static void GetSource(uint sid, ALSource3f param, out Vector3 values) { GetSource(sid, param, out values.X, out values.Y, out values.Z); } public static void GetSource(int sid, ALSource3f param, out Vector3 values) { GetSource((uint)sid, param, out values.X, out values.Y, out values.Z); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetSourcei", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void GetSource(uint sid, ALGetSourcei param, out int value); public static void GetSource(int sid, ALGetSourcei param, out int value) { GetSource((uint)sid, param, out value); } [CLSCompliant(false)] public static void GetSource(uint sid, ALSourceb param, out bool value) { GetSource(sid, (ALGetSourcei)param, out var value2); value = value2 != 0; } public static void GetSource(int sid, ALSourceb param, out bool value) { GetSource((uint)sid, (ALGetSourcei)param, out var value2); value = value2 != 0; } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourcePlayv")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourcePlay(int ns, [In] uint* sids); [CLSCompliant(false)] public unsafe static void SourcePlay(int ns, uint[] sids) { fixed (uint* sids2 = sids) { SourcePlay(ns, sids2); } } public static void SourcePlay(int ns, int[] sids) { uint[] array = new uint[ns]; for (int i = 0; i < ns; i++) { array[i] = (uint)sids[i]; } SourcePlay(ns, array); } [CLSCompliant(false)] public unsafe static void SourcePlay(int ns, ref uint sids) { fixed (uint* sids2 = &sids) { SourcePlay(ns, sids2); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceStopv")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourceStop(int ns, [In] uint* sids); [CLSCompliant(false)] public unsafe static void SourceStop(int ns, uint[] sids) { fixed (uint* sids2 = sids) { SourceStop(ns, sids2); } } public static void SourceStop(int ns, int[] sids) { uint[] array = new uint[ns]; for (int i = 0; i < ns; i++) { array[i] = (uint)sids[i]; } SourceStop(ns, array); } [CLSCompliant(false)] public unsafe static void SourceStop(int ns, ref uint sids) { fixed (uint* sids2 = &sids) { SourceStop(ns, sids2); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceRewindv")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourceRewind(int ns, [In] uint* sids); [CLSCompliant(false)] public unsafe static void SourceRewind(int ns, uint[] sids) { fixed (uint* sids2 = sids) { SourceRewind(ns, sids2); } } public static void SourceRewind(int ns, int[] sids) { uint[] array = new uint[ns]; for (int i = 0; i < ns; i++) { array[i] = (uint)sids[i]; } SourceRewind(ns, array); } [CLSCompliant(false)] public unsafe static void SourceRewind(int ns, ref uint sids) { fixed (uint* sids2 = &sids) { SourceRewind(ns, sids2); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourcePausev")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourcePause(int ns, [In] uint* sids); [CLSCompliant(false)] public unsafe static void SourcePause(int ns, uint[] sids) { fixed (uint* sids2 = sids) { SourcePause(ns, sids2); } } public static void SourcePause(int ns, int[] sids) { uint[] array = new uint[ns]; for (int i = 0; i < ns; i++) { array[i] = (uint)sids[i]; } SourcePause(ns, array); } [CLSCompliant(false)] public unsafe static void SourcePause(int ns, ref uint sids) { fixed (uint* sids2 = &sids) { SourcePause(ns, sids2); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourcePlay", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourcePlay(uint sid); public static void SourcePlay(int sid) { SourcePlay((uint)sid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourceStop", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourceStop(uint sid); public static void SourceStop(int sid) { SourceStop((uint)sid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourceRewind", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourceRewind(uint sid); public static void SourceRewind(int sid) { SourceRewind((uint)sid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourcePause", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourcePause(uint sid); public static void SourcePause(int sid) { SourcePause((uint)sid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceQueueBuffers")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourceQueueBuffers(uint sid, int numEntries, [In] uint* bids); [CLSCompliant(false)] public unsafe static void SourceQueueBuffers(uint sid, int numEntries, uint[] bids) { fixed (uint* bids2 = bids) { SourceQueueBuffers(sid, numEntries, bids2); } } public static void SourceQueueBuffers(int sid, int numEntries, int[] bids) { uint[] array = new uint[numEntries]; for (int i = 0; i < numEntries; i++) { array[i] = (uint)bids[i]; } SourceQueueBuffers((uint)sid, numEntries, array); } [CLSCompliant(false)] public unsafe static void SourceQueueBuffers(uint sid, int numEntries, ref uint bids) { fixed (uint* bids2 = &bids) { SourceQueueBuffers(sid, numEntries, bids2); } } public unsafe static void SourceQueueBuffer(int source, int buffer) { SourceQueueBuffers((uint)source, 1, (uint*)(&buffer)); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceUnqueueBuffers")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void SourceUnqueueBuffers(uint sid, int numEntries, [In] uint* bids); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceUnqueueBuffers")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourceUnqueueBuffers(uint sid, int numEntries, [Out] uint[] bids); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceUnqueueBuffers")] [SuppressUnmanagedCodeSecurity] public static extern void SourceUnqueueBuffers(int sid, int numEntries, [Out] int[] bids); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceUnqueueBuffers")] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void SourceUnqueueBuffers(uint sid, int numEntries, ref uint bids); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", EntryPoint = "alSourceUnqueueBuffers")] [SuppressUnmanagedCodeSecurity] public static extern void SourceUnqueueBuffers(int sid, int numEntries, ref int bids); public unsafe static int SourceUnqueueBuffer(int sid) { uint result = default(uint); SourceUnqueueBuffers((uint)sid, 1, &result); return (int)result; } public static int[] SourceUnqueueBuffers(int sid, int numEntries) { if (numEntries <= 0) { throw new ArgumentOutOfRangeException("numEntries", "Must be greater than zero."); } int[] array = new int[numEntries]; SourceUnqueueBuffers(sid, numEntries, array); return array; } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGenBuffers", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void GenBuffers(int n, [Out] uint* buffers); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGenBuffers", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void GenBuffers(int n, [Out] int* buffers); [CLSCompliant(false)] public unsafe static void GenBuffers(int n, out uint buffers) { fixed (uint* buffers2 = &buffers) { GenBuffers(n, buffers2); } } public unsafe static void GenBuffers(int n, out int buffers) { fixed (int* buffers2 = &buffers) { GenBuffers(n, buffers2); } } public static int[] GenBuffers(int n) { int[] array = new int[n]; GenBuffers(array.Length, out array[0]); return array; } public static int GenBuffer() { GenBuffers(1, out int buffers); return buffers; } [CLSCompliant(false)] public static void GenBuffer(out uint buffer) { GenBuffers(1, out buffer); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDeleteBuffers", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void DeleteBuffers(int n, [In] uint* buffers); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDeleteBuffers", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public unsafe static extern void DeleteBuffers(int n, [In] int* buffers); [CLSCompliant(false)] public unsafe static void DeleteBuffers(int n, [In] ref uint buffers) { fixed (uint* buffers2 = &buffers) { DeleteBuffers(n, buffers2); } } public unsafe static void DeleteBuffers(int n, [In] ref int buffers) { fixed (int* buffers2 = &buffers) { DeleteBuffers(n, buffers2); } } [CLSCompliant(false)] public static void DeleteBuffers(uint[] buffers) { if (buffers == null) { throw new ArgumentNullException(); } if (buffers.Length == 0) { throw new ArgumentOutOfRangeException(); } DeleteBuffers(buffers.Length, ref buffers[0]); } public static void DeleteBuffers(int[] buffers) { if (buffers == null) { throw new ArgumentNullException(); } if (buffers.Length == 0) { throw new ArgumentOutOfRangeException(); } DeleteBuffers(buffers.Length, ref buffers[0]); } [CLSCompliant(false)] public static void DeleteBuffer(ref uint buffer) { DeleteBuffers(1, ref buffer); } public static void DeleteBuffer(int buffer) { DeleteBuffers(1, ref buffer); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alIsBuffer", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern bool IsBuffer(uint bid); public static bool IsBuffer(int bid) { return IsBuffer((uint)bid); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alBufferData", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void BufferData(uint bid, ALFormat format, IntPtr buffer, int size, int freq); public static void BufferData(int bid, ALFormat format, IntPtr buffer, int size, int freq) { BufferData((uint)bid, format, buffer, size, freq); } public static void BufferData(int bid, ALFormat format, TBuffer[] buffer, int size, int freq) where TBuffer : struct { if (!BlittableValueType.Check(buffer)) { throw new ArgumentException("buffer"); } GCHandle gCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned); try { BufferData(bid, format, gCHandle.AddrOfPinnedObject(), size, freq); } finally { gCHandle.Free(); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alGetBufferi", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern void GetBuffer(uint bid, ALGetBufferi param, out int value); public static void GetBuffer(int bid, ALGetBufferi param, out int value) { GetBuffer((uint)bid, param, out value); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDopplerFactor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void DopplerFactor(float value); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDopplerVelocity", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void DopplerVelocity(float value); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSpeedOfSound", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void SpeedOfSound(float value); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alDistanceModel", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void DistanceModel(ALDistanceModel distancemodel); [CLSCompliant(false)] public static ALSourceState GetSourceState(uint sid) { GetSource(sid, ALGetSourcei.SourceState, out var value); return (ALSourceState)value; } public static ALSourceState GetSourceState(int sid) { GetSource(sid, ALGetSourcei.SourceState, out var value); return (ALSourceState)value; } [CLSCompliant(false)] public static ALSourceType GetSourceType(uint sid) { GetSource(sid, ALGetSourcei.SourceType, out var value); return (ALSourceType)value; } public static ALSourceType GetSourceType(int sid) { GetSource(sid, ALGetSourcei.SourceType, out var value); return (ALSourceType)value; } public static ALDistanceModel GetDistanceModel() { return (ALDistanceModel)Get(ALGetInteger.DistanceModel); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALBufferState.cs ================================================ namespace OpenAL; public enum ALBufferState { Unused = 8208, Pending, Processed } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALCapability.cs ================================================ namespace OpenAL; public enum ALCapability { Invalid = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALDistanceModel.cs ================================================ namespace OpenAL; public enum ALDistanceModel { None = 0, InverseDistance = 53249, InverseDistanceClamped = 53250, LinearDistance = 53251, LinearDistanceClamped = 53252, ExponentDistance = 53253, ExponentDistanceClamped = 53254 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALError.cs ================================================ namespace OpenAL; public enum ALError { NoError = 0, InvalidName = 40961, IllegalEnum = 40962, InvalidEnum = 40962, InvalidValue = 40963, IllegalCommand = 40964, InvalidOperation = 40964, OutOfMemory = 40965 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALFormat.cs ================================================ namespace OpenAL; public enum ALFormat { Mono8 = 4352, Mono16 = 4353, Stereo8 = 4354, Stereo16 = 4355, MonoALawExt = 65558, StereoALawExt = 65559, MonoMuLawExt = 65556, StereoMuLawExt = 65557, VorbisExt = 65539, Mp3Ext = 65568, MonoIma4Ext = 4864, StereoIma4Ext = 4865, MonoFloat32Ext = 65552, StereoFloat32Ext = 65553, MonoDoubleExt = 65554, StereoDoubleExt = 65555, Multi51Chn16Ext = 4619, Multi51Chn32Ext = 4620, Multi51Chn8Ext = 4618, Multi61Chn16Ext = 4622, Multi61Chn32Ext = 4623, Multi61Chn8Ext = 4621, Multi71Chn16Ext = 4625, Multi71Chn32Ext = 4626, Multi71Chn8Ext = 4624, MultiQuad16Ext = 4613, MultiQuad32Ext = 4614, MultiQuad8Ext = 4612, MultiRear16Ext = 4616, MultiRear32Ext = 4617, MultiRear8Ext = 4615 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALGetBufferi.cs ================================================ namespace OpenAL; public enum ALGetBufferi { Frequency = 8193, Bits, Channels, Size } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALGetFloat.cs ================================================ namespace OpenAL; public enum ALGetFloat { DopplerFactor = 49152, DopplerVelocity = 49153, SpeedOfSound = 49155 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALGetInteger.cs ================================================ namespace OpenAL; public enum ALGetInteger { DistanceModel = 53248 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALGetSourcei.cs ================================================ namespace OpenAL; public enum ALGetSourcei { ByteOffset = 4134, SampleOffset = 4133, Buffer = 4105, SourceState = 4112, BuffersQueued = 4117, BuffersProcessed = 4118, SourceType = 4135 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALGetString.cs ================================================ namespace OpenAL; public enum ALGetString { Vendor = 45057, Version, Renderer, Extensions } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALListener3f.cs ================================================ namespace OpenAL; public enum ALListener3f { Position = 4100, Velocity = 4102 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALListenerf.cs ================================================ namespace OpenAL; public enum ALListenerf { Gain = 4106, EfxMetersPerUnit = 131076 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALListenerfv.cs ================================================ namespace OpenAL; public enum ALListenerfv { Orientation = 4111 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSource3f.cs ================================================ namespace OpenAL; public enum ALSource3f { Position = 4100, Velocity = 4102, Direction = 4101 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSource3i.cs ================================================ namespace OpenAL; public enum ALSource3i { EfxAuxiliarySendFilter = 131078 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSourceState.cs ================================================ namespace OpenAL; public enum ALSourceState { Initial = 4113, Playing, Paused, Stopped } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSourceType.cs ================================================ namespace OpenAL; public enum ALSourceType { Static = 4136, Streaming = 4137, Undetermined = 4144 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSourceb.cs ================================================ namespace OpenAL; public enum ALSourceb { SourceRelative = 514, Looping = 4103, EfxDirectFilterGainHighFrequencyAuto = 131082, EfxAuxiliarySendFilterGainAuto = 131083, EfxAuxiliarySendFilterGainHighFrequencyAuto = 131084 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSourcef.cs ================================================ namespace OpenAL; public enum ALSourcef { ReferenceDistance = 4128, MaxDistance = 4131, RolloffFactor = 4129, Pitch = 4099, Gain = 4106, MinGain = 4109, MaxGain = 4110, ConeInnerAngle = 4097, ConeOuterAngle = 4098, ConeOuterGain = 4130, SecOffset = 4132, EfxAirAbsorptionFactor = 131079, EfxRoomRolloffFactor = 131080, EfxConeOuterGainHighFrequency = 131081 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ALSourcei.cs ================================================ namespace OpenAL; public enum ALSourcei { ByteOffset = 4134, SampleOffset = 4133, Buffer = 4105, SourceType = 4135, EfxDirectFilter = 131077 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/Alc.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Text; namespace OpenAL; public static class Alc { private const string Lib = "/System/Library/Frameworks/OpenAL.framework/OpenAL"; private const CallingConvention Style = CallingConvention.Cdecl; [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCreateContext", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private unsafe static extern IntPtr sys_CreateContext([In] IntPtr device, [In] int* attrlist); [CLSCompliant(false)] public unsafe static ContextHandle CreateContext([In] IntPtr device, [In] int* attrlist) { return new ContextHandle(sys_CreateContext(device, attrlist)); } public unsafe static ContextHandle CreateContext(IntPtr device, int[] attriblist) { fixed (int* attrlist = attriblist) { return CreateContext(device, attrlist); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcMakeContextCurrent", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern bool MakeContextCurrent(IntPtr context); public static bool MakeContextCurrent(ContextHandle context) { return MakeContextCurrent(context.Handle); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcProcessContext", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern void ProcessContext(IntPtr context); public static void ProcessContext(ContextHandle context) { ProcessContext(context.Handle); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcSuspendContext", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern void SuspendContext(IntPtr context); public static void SuspendContext(ContextHandle context) { SuspendContext(context.Handle); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcDestroyContext", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern void DestroyContext(IntPtr context); public static void DestroyContext(ContextHandle context) { DestroyContext(context.Handle); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcGetCurrentContext", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern IntPtr sys_GetCurrentContext(); public static ContextHandle GetCurrentContext() { return new ContextHandle(sys_GetCurrentContext()); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcGetContextsDevice", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern IntPtr GetContextsDevice(IntPtr context); public static IntPtr GetContextsDevice(ContextHandle context) { return GetContextsDevice(context.Handle); } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcOpenDevice", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern IntPtr OpenDevice([In] string devicename); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCloseDevice", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern bool CloseDevice([In] IntPtr device); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcGetError", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern AlcError GetError([In] IntPtr device); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcIsExtensionPresent", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern bool IsExtensionPresent([In] IntPtr device, [In] string extname); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcGetProcAddress", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern IntPtr GetProcAddress([In] IntPtr device, [In] string funcname); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcGetEnumValue", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern int GetEnumValue([In] IntPtr device, [In] string enumname); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcGetString", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private static extern IntPtr GetStringPrivate([In] IntPtr device, AlcGetString param); public static string GetString(IntPtr device, AlcGetString param) { return Marshal.PtrToStringAnsi(GetStringPrivate(device, param)); } public static IList GetString(IntPtr device, AlcGetStringList param) { List list = new List(); IntPtr stringPrivate = GetStringPrivate(IntPtr.Zero, (AlcGetString)param); StringBuilder stringBuilder = new StringBuilder(); int ofs = 0; while (true) { byte b = Marshal.ReadByte(stringPrivate, ofs++); if (b != 0) { stringBuilder.Append((char)b); } if (b == 0) { list.Add(stringBuilder.ToString()); if (Marshal.ReadByte(stringPrivate, ofs) == 0) { break; } stringBuilder.Remove(0, stringBuilder.Length); } } return list; } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcGetIntegerv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] private unsafe static extern void GetInteger(IntPtr device, AlcGetInteger param, int size, int* data); public unsafe static void GetInteger(IntPtr device, AlcGetInteger param, int size, out int data) { fixed (int* data2 = &data) { GetInteger(device, param, size, data2); } } public unsafe static void GetInteger(IntPtr device, AlcGetInteger param, int size, int[] data) { fixed (int* data2 = data) { GetInteger(device, param, size, data2); } } [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcCaptureOpenDevice", ExactSpelling = true)] [CLSCompliant(false)] [SuppressUnmanagedCodeSecurity] public static extern IntPtr CaptureOpenDevice(string devicename, uint frequency, ALFormat format, int buffersize); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "alcCaptureOpenDevice", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern IntPtr CaptureOpenDevice(string devicename, int frequency, ALFormat format, int buffersize); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCaptureCloseDevice", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern bool CaptureCloseDevice([In] IntPtr device); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCaptureStart", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void CaptureStart([In] IntPtr device); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCaptureStop", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void CaptureStop([In] IntPtr device); [DllImport("/System/Library/Frameworks/OpenAL.framework/OpenAL", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alcCaptureSamples", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] public static extern void CaptureSamples(IntPtr device, IntPtr buffer, int samples); public static void CaptureSamples(IntPtr device, ref T buffer, int samples) where T : struct { GCHandle gCHandle = GCHandle.Alloc(buffer, GCHandleType.Pinned); try { CaptureSamples(device, gCHandle.AddrOfPinnedObject(), samples); } finally { gCHandle.Free(); } } public static void CaptureSamples(IntPtr device, T[] buffer, int samples) where T : struct { CaptureSamples(device, ref buffer[0], samples); } public static void CaptureSamples(IntPtr device, T[,] buffer, int samples) where T : struct { CaptureSamples(device, ref buffer[0, 0], samples); } public static void CaptureSamples(IntPtr device, T[,,] buffer, int samples) where T : struct { CaptureSamples(device, ref buffer[0, 0, 0], samples); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AlcContextAttributes.cs ================================================ namespace OpenAL; public enum AlcContextAttributes { Frequency = 4103, Refresh = 4104, Sync = 4105, MonoSources = 4112, StereoSources = 4113, EfxMaxAuxiliarySends = 131075 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AlcError.cs ================================================ namespace OpenAL; public enum AlcError { NoError = 0, InvalidDevice = 40961, InvalidContext = 40962, InvalidEnum = 40963, InvalidValue = 40964, OutOfMemory = 40965 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AlcGetInteger.cs ================================================ namespace OpenAL; public enum AlcGetInteger { MajorVersion = 4096, MinorVersion = 4097, AttributesSize = 4098, AllAttributes = 4099, CaptureSamples = 786, EfxMajorVersion = 131073, EfxMinorVersion = 131074, EfxMaxAuxiliarySends = 131075 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AlcGetString.cs ================================================ namespace OpenAL; public enum AlcGetString { DefaultDeviceSpecifier = 4100, Extensions = 4102, CaptureDefaultDeviceSpecifier = 785, DefaultAllDevicesSpecifier = 4114, CaptureDeviceSpecifier = 784, DeviceSpecifier = 4101, AllDevicesSpecifier = 4115 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/AlcGetStringList.cs ================================================ namespace OpenAL; public enum AlcGetStringList { CaptureDeviceSpecifier = 784, DeviceSpecifier = 4101, AllDevicesSpecifier = 4115 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/BlittableValueType.cs ================================================ using System; using System.Reflection; using System.Runtime.InteropServices; namespace OpenAL; public static class BlittableValueType { private static readonly Type Type; private static readonly int stride; public static int Stride => stride; static BlittableValueType() { Type = typeof(T); if (Type.IsValueType && !Type.IsGenericType) { stride = Marshal.SizeOf(typeof(T)); } } public static bool Check() { return Check(Type); } public static bool Check(Type type) { CheckStructLayoutAttribute(type); return CheckType(type); } private static bool CheckType(Type type) { if (type.IsPrimitive) { return true; } if (!type.IsValueType) { return false; } FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); for (int i = 0; i < fields.Length; i++) { if (!CheckType(fields[i].FieldType)) { return false; } } return Stride != 0; } private static bool CheckStructLayoutAttribute(Type type) { StructLayoutAttribute[] array = (StructLayoutAttribute[])type.GetCustomAttributes(typeof(StructLayoutAttribute), inherit: true); if (array == null || (array != null && array.Length != 0 && array[0].Value != LayoutKind.Explicit && array[0].Pack != 1)) { return false; } return true; } } public static class BlittableValueType { public static bool Check(T type) { return BlittableValueType.Check(); } public static bool Check(T[] type) { return BlittableValueType.Check(); } public static bool Check(T[,] type) { return BlittableValueType.Check(); } public static bool Check(T[,,] type) { return BlittableValueType.Check(); } [CLSCompliant(false)] public static bool Check(T[][] type) { return BlittableValueType.Check(); } public static int StrideOf(T type) { if (!Check(type)) { throw new ArgumentException("type"); } return BlittableValueType.Stride; } public static int StrideOf(T[] type) { if (!Check(type)) { throw new ArgumentException("type"); } return BlittableValueType.Stride; } public static int StrideOf(T[,] type) { if (!Check(type)) { throw new ArgumentException("type"); } return BlittableValueType.Stride; } public static int StrideOf(T[,,] type) { if (!Check(type)) { throw new ArgumentException("type"); } return BlittableValueType.Stride; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenAL/ContextHandle.cs ================================================ using System; namespace OpenAL; public struct ContextHandle : IComparable, IEquatable { private IntPtr handle; public static readonly ContextHandle Zero = new ContextHandle(IntPtr.Zero); public IntPtr Handle => handle; public ContextHandle(IntPtr h) { handle = h; } public override string ToString() { return Handle.ToString(); } public override bool Equals(object obj) { if (obj is ContextHandle) { return Equals((ContextHandle)obj); } return false; } public override int GetHashCode() { return Handle.GetHashCode(); } public static explicit operator IntPtr(ContextHandle c) { if (!(c != Zero)) { return IntPtr.Zero; } return c.handle; } public static explicit operator ContextHandle(IntPtr p) { return new ContextHandle(p); } public static bool operator ==(ContextHandle left, ContextHandle right) { return left.Equals(right); } public static bool operator !=(ContextHandle left, ContextHandle right) { return !left.Equals(right); } public unsafe int CompareTo(ContextHandle other) { return (int)((nint)((byte*)other.handle.ToPointer() - (nuint)handle.ToPointer()) / (nint)4); } public bool Equals(ContextHandle other) { return Handle == other.Handle; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AccumOp.cs ================================================ namespace OpenGL; public enum AccumOp { Accum = 256, Load, Return, Mult, Add } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ActiveAttribType.cs ================================================ namespace OpenGL; public enum ActiveAttribType { Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130, FloatVec2 = 35664, FloatVec3 = 35665, FloatVec4 = 35666, IntVec2 = 35667, IntVec3 = 35668, IntVec4 = 35669, FloatMat2 = 35674, FloatMat3 = 35675, FloatMat4 = 35676, UnsignedIntVec2 = 36294, UnsignedIntVec3 = 36295, UnsignedIntVec4 = 36296, DoubleMat2 = 36678, DoubleMat3 = 36679, DoubleMat4 = 36680, DoubleMat2x3 = 36681, DoubleMat2x4 = 36682, DoubleMat3x2 = 36683, DoubleMat3x4 = 36684, DoubleMat4x2 = 36685, DoubleMat4x3 = 36686, DoubleVec2 = 36860, DoubleVec3 = 36861, DoubleVec4 = 36862 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ActiveSubroutineUniformParameter.cs ================================================ namespace OpenGL; public enum ActiveSubroutineUniformParameter { UniformSize = 35384, UniformNameLength = 35385, NumCompatibleSubroutines = 36426, CompatibleSubroutines = 36427 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ActiveUniformBlockParameter.cs ================================================ namespace OpenGL; public enum ActiveUniformBlockParameter { UniformBlockReferencedByTessControlShader = 34032, UniformBlockReferencedByTessEvaluationShader = 34033, UniformBlockBinding = 35391, UniformBlockDataSize = 35392, UniformBlockNameLength = 35393, UniformBlockActiveUniforms = 35394, UniformBlockActiveUniformIndices = 35395, UniformBlockReferencedByVertexShader = 35396, UniformBlockReferencedByFragmentShader = 35398 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ActiveUniformParameter.cs ================================================ namespace OpenGL; public enum ActiveUniformParameter { UniformType = 35383, UniformSize, UniformNameLength, UniformBlockIndex, UniformOffset, UniformArrayStride, UniformMatrixStride, UniformIsRowMajor } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ActiveUniformType.cs ================================================ namespace OpenGL; public enum ActiveUniformType { Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130, FloatVec2 = 35664, FloatVec3 = 35665, FloatVec4 = 35666, IntVec2 = 35667, IntVec3 = 35668, IntVec4 = 35669, Bool = 35670, BoolVec2 = 35671, BoolVec3 = 35672, BoolVec4 = 35673, FloatMat2 = 35674, FloatMat3 = 35675, FloatMat4 = 35676, Sampler1D = 35677, Sampler2D = 35678, Sampler3D = 35679, SamplerCube = 35680, Sampler1DShadow = 35681, Sampler2DShadow = 35682, Sampler2DRect = 35683, Sampler2DRectShadow = 35684, FloatMat2x3 = 35685, FloatMat2x4 = 35686, FloatMat3x2 = 35687, FloatMat3x4 = 35688, FloatMat4x2 = 35689, FloatMat4x3 = 35690, Sampler1DArray = 36288, Sampler2DArray = 36289, SamplerBuffer = 36290, Sampler1DArrayShadow = 36291, Sampler2DArrayShadow = 36292, SamplerCubeShadow = 36293, UnsignedIntVec2 = 36294, UnsignedIntVec3 = 36295, UnsignedIntVec4 = 36296, IntSampler1D = 36297, IntSampler2D = 36298, IntSampler3D = 36299, IntSamplerCube = 36300, IntSampler2DRect = 36301, IntSampler1DArray = 36302, IntSampler2DArray = 36303, IntSamplerBuffer = 36304, UnsignedIntSampler1D = 36305, UnsignedIntSampler2D = 36306, UnsignedIntSampler3D = 36307, UnsignedIntSamplerCube = 36308, UnsignedIntSampler2DRect = 36309, UnsignedIntSampler1DArray = 36310, UnsignedIntSampler2DArray = 36311, UnsignedIntSamplerBuffer = 36312, DoubleMat2 = 36678, DoubleMat3 = 36679, DoubleMat4 = 36680, DoubleMat2x3 = 36681, DoubleMat2x4 = 36682, DoubleMat3x2 = 36683, DoubleMat3x4 = 36684, DoubleMat4x2 = 36685, DoubleMat4x3 = 36686, DoubleVec2 = 36860, DoubleVec3 = 36861, DoubleVec4 = 36862, SamplerCubeMapArray = 36876, SamplerCubeMapArrayShadow = 36877, IntSamplerCubeMapArray = 36878, UnsignedIntSamplerCubeMapArray = 36879, Sampler2DMultisample = 37128, IntSampler2DMultisample = 37129, UnsignedIntSampler2DMultisample = 37130, Sampler2DMultisampleArray = 37131, IntSampler2DMultisampleArray = 37132, UnsignedIntSampler2DMultisampleArray = 37133 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/All.cs ================================================ namespace OpenGL; public enum All { False = 0, NoError = 0, None = 0, Zero = 0, Points = 0, ClientPixelStoreBit = 1, ContextCoreProfileBit = 1, ContextFlagForwardCompatibleBit = 1, CurrentBit = 1, Gl2XBitAti = 1, RedBitAti = 1, SyncFlushCommandsBit = 1, TextureDeformationBitSgix = 1, VertexAttribArrayBarrierBitExt = 1, VertexShaderBit = 1, ClientVertexArrayBit = 2, CompBitAti = 2, ContextCompatibilityProfileBit = 2, ElementArrayBarrierBitExt = 2, FragmentShaderBit = 2, GeometryDeformationBitSgix = 2, Gl4XBitAti = 2, GreenBitAti = 2, PointBit = 2, BlueBitAti = 4, ContextFlagRobustAccessBitArb = 4, GeometryShaderBit = 4, Gl8XBitAti = 4, LineBit = 4, NegateBitAti = 4, UniformBarrierBitExt = 4, Vertex23BitPgi = 4, BiasBitAti = 8, HalfBitAti = 8, PolygonBit = 8, TessControlShaderBit = 8, TextureFetchBarrierBitExt = 8, Vertex4BitPgi = 8, PolygonStippleBit = 16, QuarterBitAti = 16, ShaderGlobalAccessBarrierBitNv = 16, TessEvaluationShaderBit = 16, EighthBitAti = 32, PixelModeBit = 32, ShaderImageAccessBarrierBitExt = 32, CommandBarrierBitExt = 64, LightingBit = 64, SaturateBitAti = 64, FogBit = 128, PixelBufferBarrierBitExt = 128, DepthBufferBit = 256, TextureUpdateBarrierBitExt = 256, AccumBufferBit = 512, BufferUpdateBarrierBitExt = 512, FramebufferBarrierBitExt = 1024, StencilBufferBit = 1024, TransformFeedbackBarrierBitExt = 2048, ViewportBit = 2048, AtomicCounterBarrierBitExt = 4096, TransformBit = 4096, EnableBit = 8192, ColorBufferBit = 16384, CoverageBufferBitNv = 32768, HintBit = 32768, Lines = 1, MapReadBit = 1, RestartSun = 1, TraceOperationsBitMesa = 1, Color3BitPgi = 65536, EvalBit = 65536, LineLoop = 2, MapWriteBit = 2, ReplaceMiddleSun = 2, TracePrimitivesBitMesa = 2, Color4BitPgi = 131072, ListBit = 131072, LineStrip = 3, ReplaceOldestSun = 3, MapInvalidateRangeBit = 4, TraceArraysBitMesa = 4, Triangles = 4, EdgeflagBitPgi = 262144, TextureBit = 262144, TriangleStrip = 5, TriangleFan = 6, Quads = 7, MapInvalidateBufferBit = 8, QuadStrip = 8, TraceTexturesBitMesa = 8, IndexBitPgi = 524288, ScissorBit = 524288, Polygon = 9, LinesAdjacency = 10, LinesAdjacencyArb = 10, LinesAdjacencyExt = 10, LineStripAdjacency = 11, LineStripAdjacencyArb = 11, LineStripAdjacencyExt = 11, TrianglesAdjacency = 12, TrianglesAdjacencyArb = 12, TrianglesAdjacencyExt = 12, TriangleStripAdjacency = 13, TriangleStripAdjacencyArb = 13, TriangleStripAdjacencyExt = 13, Patches = 14, MapFlushExplicitBit = 16, TracePixelsBitMesa = 16, MatAmbientBitPgi = 1048576, MapUnsynchronizedBit = 32, TraceErrorsBitMesa = 32, MatAmbientAndDiffuseBitPgi = 2097152, MatDiffuseBitPgi = 4194304, MatEmissionBitPgi = 8388608, Accum = 256, MatColorIndexesBitPgi = 16777216, Load = 257, Return = 258, Mult = 259, Add = 260, Never = 512, MatShininessBitPgi = 33554432, Less = 513, Equal = 514, Lequal = 515, Greater = 516, Notequal = 517, Gequal = 518, Always = 519, SrcColor = 768, OneMinusSrcColor = 769, SrcAlpha = 770, OneMinusSrcAlpha = 771, DstAlpha = 772, OneMinusDstAlpha = 773, DstColor = 774, OneMinusDstColor = 775, SrcAlphaSaturate = 776, FrontLeft = 1024, MatSpecularBitPgi = 67108864, FrontRight = 1025, BackLeft = 1026, BackRight = 1027, Front = 1028, Back = 1029, Left = 1030, Right = 1031, FrontAndBack = 1032, Aux0 = 1033, Aux1 = 1034, Aux2 = 1035, Aux3 = 1036, InvalidEnum = 1280, InvalidValue = 1281, InvalidOperation = 1282, StackOverflow = 1283, StackUnderflow = 1284, OutOfMemory = 1285, InvalidFramebufferOperation = 1286, InvalidFramebufferOperationExt = 1286, InvalidFramebufferOperationOes = 1286, Gl2D = 1536, Gl3D = 1537, Gl3DColor = 1538, Gl3DColorTexture = 1539, Gl4DColorTexture = 1540, PassThroughToken = 1792, PointToken = 1793, LineToken = 1794, PolygonToken = 1795, BitmapToken = 1796, DrawPixelToken = 1797, CopyPixelToken = 1798, LineResetToken = 1799, Exp = 2048, NormalBitPgi = 134217728, Exp2 = 2049, Cw = 2304, Ccw = 2305, Coeff = 2560, Order = 2561, Domain = 2562, CurrentColor = 2816, CurrentIndex = 2817, CurrentNormal = 2818, CurrentTextureCoords = 2819, CurrentRasterColor = 2820, CurrentRasterIndex = 2821, CurrentRasterTextureCoords = 2822, CurrentRasterPosition = 2823, CurrentRasterPositionValid = 2824, CurrentRasterDistance = 2825, PointSmooth = 2832, PointSize = 2833, PointSizeRange = 2834, SmoothPointSizeRange = 2834, PointSizeGranularity = 2835, SmoothPointSizeGranularity = 2835, LineSmooth = 2848, LineWidth = 2849, LineWidthRange = 2850, SmoothLineWidthRange = 2850, LineWidthGranularity = 2851, SmoothLineWidthGranularity = 2851, LineStipple = 2852, LineStipplePattern = 2853, LineStippleRepeat = 2854, ListMode = 2864, MaxListNesting = 2865, ListBase = 2866, ListIndex = 2867, PolygonMode = 2880, PolygonSmooth = 2881, PolygonStipple = 2882, EdgeFlag = 2883, CullFace = 2884, CullFaceMode = 2885, FrontFace = 2886, Lighting = 2896, LightModelLocalViewer = 2897, LightModelTwoSide = 2898, LightModelAmbient = 2899, ShadeModel = 2900, ColorMaterialFace = 2901, ColorMaterialParameter = 2902, ColorMaterial = 2903, Fog = 2912, FogIndex = 2913, FogDensity = 2914, FogStart = 2915, FogEnd = 2916, FogMode = 2917, FogColor = 2918, DepthRange = 2928, DepthTest = 2929, DepthWritemask = 2930, DepthClearValue = 2931, DepthFunc = 2932, AccumClearValue = 2944, StencilTest = 2960, StencilClearValue = 2961, StencilFunc = 2962, StencilValueMask = 2963, StencilFail = 2964, StencilPassDepthFail = 2965, StencilPassDepthPass = 2966, StencilRef = 2967, StencilWritemask = 2968, MatrixMode = 2976, Normalize = 2977, Viewport = 2978, Modelview0StackDepthExt = 2979, ModelviewStackDepth = 2979, ProjectionStackDepth = 2980, TextureStackDepth = 2981, Modelview0MatrixExt = 2982, ModelviewMatrix = 2982, ProjectionMatrix = 2983, TextureMatrix = 2984, AttribStackDepth = 2992, ClientAttribStackDepth = 2993, AlphaTest = 3008, AlphaTestFunc = 3009, AlphaTestRef = 3010, Dither = 3024, BlendDst = 3040, BlendSrc = 3041, Blend = 3042, LogicOpMode = 3056, IndexLogicOp = 3057, LogicOp = 3057, ColorLogicOp = 3058, AuxBuffers = 3072, DrawBuffer = 3073, ReadBuffer = 3074, ScissorBox = 3088, ScissorTest = 3089, IndexClearValue = 3104, IndexWritemask = 3105, ColorClearValue = 3106, ColorWritemask = 3107, IndexMode = 3120, RgbaMode = 3121, Doublebuffer = 3122, Stereo = 3123, RenderMode = 3136, PerspectiveCorrectionHint = 3152, PointSmoothHint = 3153, LineSmoothHint = 3154, PolygonSmoothHint = 3155, FogHint = 3156, TextureGenS = 3168, TextureGenT = 3169, TextureGenR = 3170, TextureGenQ = 3171, PixelMapIToI = 3184, PixelMapSToS = 3185, PixelMapIToR = 3186, PixelMapIToG = 3187, PixelMapIToB = 3188, PixelMapIToA = 3189, PixelMapRToR = 3190, PixelMapGToG = 3191, PixelMapBToB = 3192, PixelMapAToA = 3193, PixelMapIToISize = 3248, PixelMapSToSSize = 3249, PixelMapIToRSize = 3250, PixelMapIToGSize = 3251, PixelMapIToBSize = 3252, PixelMapIToASize = 3253, PixelMapRToRSize = 3254, PixelMapGToGSize = 3255, PixelMapBToBSize = 3256, PixelMapAToASize = 3257, UnpackSwapBytes = 3312, UnpackLsbFirst = 3313, UnpackRowLength = 3314, UnpackSkipRows = 3315, UnpackSkipPixels = 3316, UnpackAlignment = 3317, PackSwapBytes = 3328, PackLsbFirst = 3329, PackRowLength = 3330, PackSkipRows = 3331, PackSkipPixels = 3332, PackAlignment = 3333, MapColor = 3344, MapStencil = 3345, IndexShift = 3346, IndexOffset = 3347, RedScale = 3348, RedBias = 3349, ZoomX = 3350, ZoomY = 3351, GreenScale = 3352, GreenBias = 3353, BlueScale = 3354, BlueBias = 3355, AlphaScale = 3356, AlphaBias = 3357, DepthScale = 3358, DepthBias = 3359, MaxEvalOrder = 3376, MaxLights = 3377, MaxClipDistances = 3378, MaxClipPlanes = 3378, MaxTextureSize = 3379, MaxPixelMapTable = 3380, MaxAttribStackDepth = 3381, MaxModelviewStackDepth = 3382, MaxNameStackDepth = 3383, MaxProjectionStackDepth = 3384, MaxTextureStackDepth = 3385, MaxViewportDims = 3386, MaxClientAttribStackDepth = 3387, SubpixelBits = 3408, IndexBits = 3409, RedBits = 3410, GreenBits = 3411, BlueBits = 3412, AlphaBits = 3413, DepthBits = 3414, StencilBits = 3415, AccumRedBits = 3416, AccumGreenBits = 3417, AccumBlueBits = 3418, AccumAlphaBits = 3419, NameStackDepth = 3440, AutoNormal = 3456, Map1Color4 = 3472, Map1Index = 3473, Map1Normal = 3474, Map1TextureCoord1 = 3475, Map1TextureCoord2 = 3476, Map1TextureCoord3 = 3477, Map1TextureCoord4 = 3478, Map1Vertex3 = 3479, Map1Vertex4 = 3480, Map2Color4 = 3504, Map2Index = 3505, Map2Normal = 3506, Map2TextureCoord1 = 3507, Map2TextureCoord2 = 3508, Map2TextureCoord3 = 3509, Map2TextureCoord4 = 3510, Map2Vertex3 = 3511, Map2Vertex4 = 3512, Map1GridDomain = 3536, Map1GridSegments = 3537, Map2GridDomain = 3538, Map2GridSegments = 3539, Texture1D = 3552, Texture2D = 3553, FeedbackBufferPointer = 3568, FeedbackBufferSize = 3569, FeedbackBufferType = 3570, SelectionBufferPointer = 3571, SelectionBufferSize = 3572, TextureWidth = 4096, Texcoord1BitPgi = 268435456, TextureHeight = 4097, TextureComponents = 4099, TextureInternalFormat = 4099, TextureBorderColor = 4100, TextureBorder = 4101, DontCare = 4352, Fastest = 4353, Nicest = 4354, Ambient = 4608, Diffuse = 4609, Specular = 4610, Position = 4611, SpotDirection = 4612, SpotExponent = 4613, SpotCutoff = 4614, ConstantAttenuation = 4615, LinearAttenuation = 4616, QuadraticAttenuation = 4617, Compile = 4864, CompileAndExecute = 4865, Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Gl2Bytes = 5127, Gl3Bytes = 5128, Gl4Bytes = 5129, Double = 5130, DoubleExt = 5130, HalfApple = 5131, HalfFloat = 5131, HalfFloatArb = 5131, HalfFloatNv = 5131, Fixed = 5132, FixedOes = 5132, Int64Nv = 5134, UnsignedInt64Nv = 5135, Clear = 5376, And = 5377, AndReverse = 5378, Copy = 5379, AndInverted = 5380, Noop = 5381, Xor = 5382, Or = 5383, Nor = 5384, Equiv = 5385, Invert = 5386, OrReverse = 5387, CopyInverted = 5388, OrInverted = 5389, Nand = 5390, Set = 5391, Emission = 5632, Shininess = 5633, AmbientAndDiffuse = 5634, ColorIndexes = 5635, Modelview = 5888, Modelview0Arb = 5888, Modelview0Ext = 5888, Projection = 5889, Texture = 5890, Color = 6144, ColorExt = 6144, Depth = 6145, DepthExt = 6145, Stencil = 6146, StencilExt = 6146, ColorIndex = 6400, StencilIndex = 6401, DepthComponent = 6402, Red = 6403, Green = 6404, Blue = 6405, Alpha = 6406, Rgb = 6407, Rgba = 6408, Luminance = 6409, LuminanceAlpha = 6410, RasterPositionUnclippedIbm = 103010, Bitmap = 6656, PreferDoublebufferHintPgi = 107000, ConserveMemoryHintPgi = 107005, ReclaimMemoryHintPgi = 107006, NativeGraphicsHandlePgi = 107010, NativeGraphicsBeginHintPgi = 107011, NativeGraphicsEndHintPgi = 107012, AlwaysFastHintPgi = 107020, AlwaysSoftHintPgi = 107021, AllowDrawObjHintPgi = 107022, AllowDrawWinHintPgi = 107023, AllowDrawFrgHintPgi = 107024, AllowDrawMemHintPgi = 107025, StrictDepthfuncHintPgi = 107030, StrictLightingHintPgi = 107031, StrictScissorHintPgi = 107032, FullStippleHintPgi = 107033, ClipNearHintPgi = 107040, ClipFarHintPgi = 107041, WideLineHintPgi = 107042, BackNormalsHintPgi = 107043, VertexDataHintPgi = 107050, VertexConsistentHintPgi = 107051, MaterialSideHintPgi = 107052, MaxVertexHintPgi = 107053, Point = 6912, Line = 6913, Fill = 6914, Render = 7168, Feedback = 7169, Select = 7170, Flat = 7424, Smooth = 7425, Keep = 7680, Replace = 7681, Incr = 7682, Decr = 7683, Vendor = 7936, Renderer = 7937, Version = 7938, Extensions = 7939, S = 8192, MultisampleBit = 536870912, MultisampleBit3Dfx = 536870912, MultisampleBitArb = 536870912, MultisampleBitExt = 536870912, Texcoord2BitPgi = 536870912, T = 8193, R = 8194, Q = 8195, Modulate = 8448, Decal = 8449, TextureEnvMode = 8704, TextureEnvColor = 8705, TextureEnv = 8960, EyeLinear = 9216, ObjectLinear = 9217, SphereMap = 9218, TextureGenMode = 9472, ObjectPlane = 9473, EyePlane = 9474, Nearest = 9728, Linear = 9729, NearestMipmapNearest = 9984, LinearMipmapNearest = 9985, NearestMipmapLinear = 9986, LinearMipmapLinear = 9987, TextureMagFilter = 10240, TextureMinFilter = 10241, TextureWrapS = 10242, TextureWrapT = 10243, Clamp = 10496, Repeat = 10497, PolygonOffsetUnits = 10752, PolygonOffsetPoint = 10753, PolygonOffsetLine = 10754, R3G3B2 = 10768, V2f = 10784, V3f = 10785, C4ubV2f = 10786, C4ubV3f = 10787, C3fV3f = 10788, N3fV3f = 10789, C4fN3fV3f = 10790, T2fV3f = 10791, T4fV4f = 10792, T2fC4ubV3f = 10793, T2fC3fV3f = 10794, T2fN3fV3f = 10795, T2fC4fN3fV3f = 10796, T4fC4fN3fV4f = 10797, ClipDistance0 = 12288, ClipPlane0 = 12288, ClipDistance1 = 12289, ClipPlane1 = 12289, ClipDistance2 = 12290, ClipPlane2 = 12290, ClipDistance3 = 12291, ClipPlane3 = 12291, ClipDistance4 = 12292, ClipPlane4 = 12292, ClipDistance5 = 12293, ClipPlane5 = 12293, ClipDistance6 = 12294, ClipDistance7 = 12295, Light0 = 16384, Texcoord3BitPgi = 1073741824, Light1 = 16385, Light2 = 16386, Light3 = 16387, Light4 = 16388, Light5 = 16389, Light6 = 16390, Light7 = 16391, AbgrExt = 32768, Texcoord4BitPgi = int.MinValue, ConstantColor = 32769, ConstantColorExt = 32769, OneMinusConstantColor = 32770, OneMinusConstantColorExt = 32770, ConstantAlpha = 32771, ConstantAlphaExt = 32771, OneMinusConstantAlpha = 32772, OneMinusConstantAlphaExt = 32772, BlendColor = 32773, BlendColorExt = 32773, FuncAdd = 32774, FuncAddExt = 32774, FuncAddOes = 32774, Min = 32775, MinExt = 32775, Max = 32776, MaxExt = 32776, BlendEquation = 32777, BlendEquationExt = 32777, BlendEquationOes = 32777, BlendEquationRgb = 32777, BlendEquationRgbExt = 32777, BlendEquationRgbOes = 32777, FuncSubtract = 32778, FuncSubtractExt = 32778, FuncSubtractOes = 32778, FuncReverseSubtract = 32779, FuncReverseSubtractExt = 32779, FuncReverseSubtractOes = 32779, CmykExt = 32780, CmykaExt = 32781, PackCmykHintExt = 32782, UnpackCmykHintExt = 32783, Convolution1D = 32784, Convolution1DExt = 32784, Convolution2D = 32785, Convolution2DExt = 32785, Separable2D = 32786, Separable2DExt = 32786, ConvolutionBorderMode = 32787, ConvolutionBorderModeExt = 32787, ConvolutionFilterScale = 32788, ConvolutionFilterScaleExt = 32788, ConvolutionFilterBias = 32789, ConvolutionFilterBiasExt = 32789, Reduce = 32790, ReduceExt = 32790, ConvolutionFormat = 32791, ConvolutionFormatExt = 32791, ConvolutionWidth = 32792, ConvolutionWidthExt = 32792, ConvolutionHeight = 32793, ConvolutionHeightExt = 32793, MaxConvolutionWidth = 32794, MaxConvolutionWidthExt = 32794, MaxConvolutionHeight = 32795, MaxConvolutionHeightExt = 32795, PostConvolutionRedScale = 32796, PostConvolutionRedScaleExt = 32796, PostConvolutionGreenScale = 32797, PostConvolutionGreenScaleExt = 32797, PostConvolutionBlueScale = 32798, PostConvolutionBlueScaleExt = 32798, PostConvolutionAlphaScale = 32799, PostConvolutionAlphaScaleExt = 32799, PostConvolutionRedBias = 32800, PostConvolutionRedBiasExt = 32800, PostConvolutionGreenBias = 32801, PostConvolutionGreenBiasExt = 32801, PostConvolutionBlueBias = 32802, PostConvolutionBlueBiasExt = 32802, PostConvolutionAlphaBias = 32803, PostConvolutionAlphaBiasExt = 32803, Histogram = 32804, HistogramExt = 32804, ProxyHistogram = 32805, ProxyHistogramExt = 32805, HistogramWidth = 32806, HistogramWidthExt = 32806, HistogramFormat = 32807, HistogramFormatExt = 32807, HistogramRedSize = 32808, HistogramRedSizeExt = 32808, HistogramGreenSize = 32809, HistogramGreenSizeExt = 32809, HistogramBlueSize = 32810, HistogramBlueSizeExt = 32810, HistogramAlphaSize = 32811, HistogramAlphaSizeExt = 32811, HistogramLuminanceSize = 32812, HistogramLuminanceSizeExt = 32812, HistogramSink = 32813, HistogramSinkExt = 32813, Minmax = 32814, MinmaxExt = 32814, MinmaxFormat = 32815, MinmaxFormatExt = 32815, MinmaxSink = 32816, MinmaxSinkExt = 32816, TableTooLarge = 32817, TableTooLargeExt = 32817, UnsignedByte332 = 32818, UnsignedByte332Ext = 32818, UnsignedShort4444 = 32819, UnsignedShort4444Ext = 32819, UnsignedShort5551 = 32820, UnsignedShort5551Ext = 32820, UnsignedInt8888 = 32821, UnsignedInt8888Ext = 32821, UnsignedInt1010102 = 32822, UnsignedInt1010102Ext = 32822, PolygonOffsetExt = 32823, PolygonOffsetFill = 32823, PolygonOffsetFactor = 32824, PolygonOffsetFactorExt = 32824, PolygonOffsetBiasExt = 32825, RescaleNormal = 32826, RescaleNormalExt = 32826, Alpha4 = 32827, Alpha4Ext = 32827, Alpha8 = 32828, Alpha8Ext = 32828, Alpha12 = 32829, Alpha12Ext = 32829, Alpha16 = 32830, Alpha16Ext = 32830, Luminance4 = 32831, Luminance4Ext = 32831, Luminance8 = 32832, Luminance8Ext = 32832, Luminance12 = 32833, Luminance12Ext = 32833, Luminance16 = 32834, Luminance16Ext = 32834, Luminance4Alpha4 = 32835, Luminance4Alpha4Ext = 32835, Luminance6Alpha2 = 32836, Luminance6Alpha2Ext = 32836, Luminance8Alpha8 = 32837, Luminance8Alpha8Ext = 32837, Luminance12Alpha4 = 32838, Luminance12Alpha4Ext = 32838, Luminance12Alpha12 = 32839, Luminance12Alpha12Ext = 32839, Luminance16Alpha16 = 32840, Luminance16Alpha16Ext = 32840, Intensity = 32841, IntensityExt = 32841, Intensity4 = 32842, Intensity4Ext = 32842, Intensity8 = 32843, Intensity8Ext = 32843, Intensity12 = 32844, Intensity12Ext = 32844, Intensity16 = 32845, Intensity16Ext = 32845, Rgb2Ext = 32846, Rgb4 = 32847, Rgb4Ext = 32847, Rgb5 = 32848, Rgb5Ext = 32848, Rgb8 = 32849, Rgb8Ext = 32849, Rgb10 = 32850, Rgb10Ext = 32850, Rgb12 = 32851, Rgb12Ext = 32851, Rgb16 = 32852, Rgb16Ext = 32852, Rgba2 = 32853, Rgba2Ext = 32853, Rgba4 = 32854, Rgba4Ext = 32854, Rgba4Oes = 32854, Rgb5A1 = 32855, Rgb5A1Ext = 32855, Rgb5A1Oes = 32855, Rgba8 = 32856, Rgba8Ext = 32856, Rgb10A2 = 32857, Rgb10A2Ext = 32857, Rgba12 = 32858, Rgba12Ext = 32858, Rgba16 = 32859, Rgba16Ext = 32859, TextureRedSize = 32860, TextureRedSizeExt = 32860, TextureGreenSize = 32861, TextureGreenSizeExt = 32861, TextureBlueSize = 32862, TextureBlueSizeExt = 32862, TextureAlphaSize = 32863, TextureAlphaSizeExt = 32863, TextureLuminanceSize = 32864, TextureLuminanceSizeExt = 32864, TextureIntensitySize = 32865, TextureIntensitySizeExt = 32865, ReplaceExt = 32866, ProxyTexture1D = 32867, ProxyTexture1DExt = 32867, ProxyTexture2D = 32868, ProxyTexture2DExt = 32868, TextureTooLargeExt = 32869, TexturePriority = 32870, TexturePriorityExt = 32870, TextureResident = 32871, TextureResidentExt = 32871, Texture1DBindingExt = 32872, TextureBinding1D = 32872, Texture2DBindingExt = 32873, TextureBinding2D = 32873, Texture3DBindingExt = 32874, Texture3DBindingOes = 32874, TextureBinding3D = 32874, PackSkipImages = 32875, PackSkipImagesExt = 32875, PackImageHeight = 32876, PackImageHeightExt = 32876, UnpackSkipImages = 32877, UnpackSkipImagesExt = 32877, UnpackImageHeight = 32878, UnpackImageHeightExt = 32878, Texture3D = 32879, Texture3DExt = 32879, Texture3DOes = 32879, ProxyTexture3D = 32880, ProxyTexture3DExt = 32880, TextureDepth = 32881, TextureDepthExt = 32881, TextureWrapR = 32882, TextureWrapRExt = 32882, TextureWrapROes = 32882, Max3DTextureSize = 32883, Max3DTextureSizeExt = 32883, Max3DTextureSizeOes = 32883, VertexArray = 32884, VertexArrayExt = 32884, NormalArray = 32885, NormalArrayExt = 32885, ColorArray = 32886, ColorArrayExt = 32886, IndexArray = 32887, IndexArrayExt = 32887, TextureCoordArray = 32888, TextureCoordArrayExt = 32888, EdgeFlagArray = 32889, EdgeFlagArrayExt = 32889, VertexArraySize = 32890, VertexArraySizeExt = 32890, VertexArrayType = 32891, VertexArrayTypeExt = 32891, VertexArrayStride = 32892, VertexArrayStrideExt = 32892, VertexArrayCountExt = 32893, NormalArrayType = 32894, NormalArrayTypeExt = 32894, NormalArrayStride = 32895, NormalArrayStrideExt = 32895, NormalArrayCountExt = 32896, ColorArraySize = 32897, ColorArraySizeExt = 32897, ColorArrayType = 32898, ColorArrayTypeExt = 32898, ColorArrayStride = 32899, ColorArrayStrideExt = 32899, ColorArrayCountExt = 32900, IndexArrayType = 32901, IndexArrayTypeExt = 32901, IndexArrayStride = 32902, IndexArrayStrideExt = 32902, IndexArrayCountExt = 32903, TextureCoordArraySize = 32904, TextureCoordArraySizeExt = 32904, TextureCoordArrayType = 32905, TextureCoordArrayTypeExt = 32905, TextureCoordArrayStride = 32906, TextureCoordArrayStrideExt = 32906, TextureCoordArrayCountExt = 32907, EdgeFlagArrayStride = 32908, EdgeFlagArrayStrideExt = 32908, EdgeFlagArrayCountExt = 32909, VertexArrayPointer = 32910, VertexArrayPointerExt = 32910, NormalArrayPointer = 32911, NormalArrayPointerExt = 32911, ColorArrayPointer = 32912, ColorArrayPointerExt = 32912, IndexArrayPointer = 32913, IndexArrayPointerExt = 32913, TextureCoordArrayPointer = 32914, TextureCoordArrayPointerExt = 32914, EdgeFlagArrayPointer = 32915, EdgeFlagArrayPointerExt = 32915, InterlaceSgix = 32916, DetailTexture2DSgis = 32917, DetailTexture2DBindingSgis = 32918, LinearDetailSgis = 32919, LinearDetailAlphaSgis = 32920, LinearDetailColorSgis = 32921, DetailTextureLevelSgis = 32922, DetailTextureModeSgis = 32923, DetailTextureFuncPointsSgis = 32924, Multisample = 32925, MultisampleArb = 32925, MultisampleExt = 32925, MultisampleSgis = 32925, SampleAlphaToCoverage = 32926, SampleAlphaToCoverageArb = 32926, SampleAlphaToMaskExt = 32926, SampleAlphaToMaskSgis = 32926, SampleAlphaToOne = 32927, SampleAlphaToOneArb = 32927, SampleAlphaToOneExt = 32927, SampleAlphaToOneSgis = 32927, SampleCoverage = 32928, SampleCoverageArb = 32928, SampleMaskExt = 32928, SampleMaskSgis = 32928, Gl1PassExt = 32929, Gl1PassSgis = 32929, Gl2Pass0Ext = 32930, Gl2Pass0Sgis = 32930, Gl2Pass1Ext = 32931, Gl2Pass1Sgis = 32931, Gl4Pass0Ext = 32932, Gl4Pass0Sgis = 32932, Gl4Pass1Ext = 32933, Gl4Pass1Sgis = 32933, Gl4Pass2Ext = 32934, Gl4Pass2Sgis = 32934, Gl4Pass3Ext = 32935, Gl4Pass3Sgis = 32935, SampleBuffers = 32936, SampleBuffersArb = 32936, SampleBuffersExt = 32936, SampleBuffersSgis = 32936, Samples = 32937, SamplesArb = 32937, SamplesExt = 32937, SamplesSgis = 32937, SampleCoverageValue = 32938, SampleCoverageValueArb = 32938, SampleMaskValueExt = 32938, SampleMaskValueSgis = 32938, SampleCoverageInvert = 32939, SampleCoverageInvertArb = 32939, SampleMaskInvertExt = 32939, SampleMaskInvertSgis = 32939, SamplePatternExt = 32940, SamplePatternSgis = 32940, LinearSharpenSgis = 32941, LinearSharpenAlphaSgis = 32942, LinearSharpenColorSgis = 32943, SharpenTextureFuncPointsSgis = 32944, ColorMatrix = 32945, ColorMatrixSgi = 32945, ColorMatrixStackDepth = 32946, ColorMatrixStackDepthSgi = 32946, MaxColorMatrixStackDepth = 32947, MaxColorMatrixStackDepthSgi = 32947, PostColorMatrixRedScale = 32948, PostColorMatrixRedScaleSgi = 32948, PostColorMatrixGreenScale = 32949, PostColorMatrixGreenScaleSgi = 32949, PostColorMatrixBlueScale = 32950, PostColorMatrixBlueScaleSgi = 32950, PostColorMatrixAlphaScale = 32951, PostColorMatrixAlphaScaleSgi = 32951, PostColorMatrixRedBias = 32952, PostColorMatrixRedBiasSgi = 32952, PostColorMatrixGreenBias = 32953, PostColorMatrixGreenBiasSgi = 32953, PostColorMatrixBlueBias = 32954, PostColorMatrixBlueBiasSgi = 32954, PostColorMatrixAlphaBias = 32955, PostColorMatrixAlphaBiasSgi = 32955, TextureColorTableSgi = 32956, ProxyTextureColorTableSgi = 32957, TextureEnvBiasSgix = 32958, ShadowAmbientSgix = 32959, TextureCompareFailValue = 32959, TextureCompareFailValueArb = 32959, BlendDstRgb = 32968, BlendDstRgbExt = 32968, BlendDstRgbOes = 32968, BlendSrcRgb = 32969, BlendSrcRgbExt = 32969, BlendSrcRgbOes = 32969, BlendDstAlpha = 32970, BlendDstAlphaExt = 32970, BlendDstAlphaOes = 32970, BlendSrcAlpha = 32971, BlendSrcAlphaExt = 32971, BlendSrcAlphaOes = 32971, Gl422Ext = 32972, Gl422RevExt = 32973, Gl422AverageExt = 32974, Gl422RevAverageExt = 32975, ColorTable = 32976, ColorTableSgi = 32976, PostConvolutionColorTable = 32977, PostConvolutionColorTableSgi = 32977, PostColorMatrixColorTable = 32978, PostColorMatrixColorTableSgi = 32978, ProxyColorTable = 32979, ProxyColorTableSgi = 32979, ProxyPostConvolutionColorTable = 32980, ProxyPostConvolutionColorTableSgi = 32980, ProxyPostColorMatrixColorTable = 32981, ProxyPostColorMatrixColorTableSgi = 32981, ColorTableScale = 32982, ColorTableScaleSgi = 32982, ColorTableBias = 32983, ColorTableBiasSgi = 32983, ColorTableFormat = 32984, ColorTableFormatSgi = 32984, ColorTableWidth = 32985, ColorTableWidthSgi = 32985, ColorTableRedSize = 32986, ColorTableRedSizeSgi = 32986, ColorTableGreenSize = 32987, ColorTableGreenSizeSgi = 32987, ColorTableBlueSize = 32988, ColorTableBlueSizeSgi = 32988, ColorTableAlphaSize = 32989, ColorTableAlphaSizeSgi = 32989, ColorTableLuminanceSize = 32990, ColorTableLuminanceSizeSgi = 32990, ColorTableIntensitySize = 32991, ColorTableIntensitySizeSgi = 32991, Bgr = 32992, BgrExt = 32992, Bgra = 32993, BgraExt = 32993, ColorIndex1Ext = 32994, ColorIndex2Ext = 32995, ColorIndex4Ext = 32996, ColorIndex8Ext = 32997, ColorIndex12Ext = 32998, ColorIndex16Ext = 32999, MaxElementsVertices = 33000, MaxElementsVerticesExt = 33000, MaxElementsIndices = 33001, MaxElementsIndicesExt = 33001, PhongWin = 33002, PhongHintWin = 33003, FogSpecularTextureWin = 33004, TextureIndexSizeExt = 33005, ClipVolumeClippingHintExt = 33008, DualAlpha4Sgis = 33040, DualAlpha8Sgis = 33041, DualAlpha12Sgis = 33042, DualAlpha16Sgis = 33043, DualLuminance4Sgis = 33044, DualLuminance8Sgis = 33045, DualLuminance12Sgis = 33046, DualLuminance16Sgis = 33047, DualIntensity4Sgis = 33048, DualIntensity8Sgis = 33049, DualIntensity12Sgis = 33050, DualIntensity16Sgis = 33051, DualLuminanceAlpha4Sgis = 33052, DualLuminanceAlpha8Sgis = 33053, QuadAlpha4Sgis = 33054, QuadAlpha8Sgis = 33055, QuadLuminance4Sgis = 33056, QuadLuminance8Sgis = 33057, QuadIntensity4Sgis = 33058, QuadIntensity8Sgis = 33059, DualTextureSelectSgis = 33060, QuadTextureSelectSgis = 33061, PointSizeMin = 33062, PointSizeMinArb = 33062, PointSizeMinExt = 33062, PointSizeMinSgis = 33062, PointSizeMax = 33063, PointSizeMaxArb = 33063, PointSizeMaxExt = 33063, PointSizeMaxSgis = 33063, PointFadeThresholdSize = 33064, PointFadeThresholdSizeArb = 33064, PointFadeThresholdSizeExt = 33064, PointFadeThresholdSizeSgis = 33064, DistanceAttenuationExt = 33065, DistanceAttenuationSgis = 33065, PointDistanceAttenuation = 33065, PointDistanceAttenuationArb = 33065, FogFuncSgis = 33066, FogFuncPointsSgis = 33067, MaxFogFuncPointsSgis = 33068, ClampToBorder = 33069, ClampToBorderArb = 33069, ClampToBorderSgis = 33069, TextureMultiBufferHintSgix = 33070, ClampToEdge = 33071, ClampToEdgeSgis = 33071, PackSkipVolumesSgis = 33072, PackImageDepthSgis = 33073, UnpackSkipVolumesSgis = 33074, UnpackImageDepthSgis = 33075, Texture4DSgis = 33076, ProxyTexture4DSgis = 33077, Texture4DsizeSgis = 33078, TextureWrapQSgis = 33079, Max4DTextureSizeSgis = 33080, PixelTexGenSgix = 33081, TextureMinLod = 33082, TextureMinLodSgis = 33082, TextureMaxLod = 33083, TextureMaxLodSgis = 33083, TextureBaseLevel = 33084, TextureBaseLevelSgis = 33084, TextureMaxLevel = 33085, TextureMaxLevelSgis = 33085, PixelTileBestAlignmentSgix = 33086, PixelTileCacheIncrementSgix = 33087, PixelTileWidthSgix = 33088, PixelTileHeightSgix = 33089, PixelTileGridWidthSgix = 33090, PixelTileGridHeightSgix = 33091, PixelTileGridDepthSgix = 33092, PixelTileCacheSizeSgix = 33093, Filter4Sgis = 33094, TextureFilter4SizeSgis = 33095, SpriteSgix = 33096, SpriteModeSgix = 33097, SpriteAxisSgix = 33098, SpriteTranslationSgix = 33099, SpriteAxialSgix = 33100, SpriteObjectAlignedSgix = 33101, SpriteEyeAlignedSgix = 33102, Texture4DBindingSgis = 33103, IgnoreBorderHp = 33104, ConstantBorder = 33105, ConstantBorderHp = 33105, ReplicateBorder = 33107, ReplicateBorderHp = 33107, ConvolutionBorderColor = 33108, ConvolutionBorderColorHp = 33108, ImageScaleXHp = 33109, ImageScaleYHp = 33110, ImageTranslateXHp = 33111, ImageTranslateYHp = 33112, ImageRotateAngleHp = 33113, ImageRotateOriginXHp = 33114, ImageRotateOriginYHp = 33115, ImageMagFilterHp = 33116, ImageMinFilterHp = 33117, ImageCubicWeightHp = 33118, CubicHp = 33119, AverageHp = 33120, ImageTransform2DHp = 33121, PostImageTransformColorTableHp = 33122, ProxyPostImageTransformColorTableHp = 33123, OcclusionTestHp = 33125, OcclusionTestResultHp = 33126, TextureLightingModeHp = 33127, TexturePostSpecularHp = 33128, TexturePreSpecularHp = 33129, LinearClipmapLinearSgix = 33136, TextureClipmapCenterSgix = 33137, TextureClipmapFrameSgix = 33138, TextureClipmapOffsetSgix = 33139, TextureClipmapVirtualDepthSgix = 33140, TextureClipmapLodOffsetSgix = 33141, TextureClipmapDepthSgix = 33142, MaxClipmapDepthSgix = 33143, MaxClipmapVirtualDepthSgix = 33144, PostTextureFilterBiasSgix = 33145, PostTextureFilterScaleSgix = 33146, PostTextureFilterBiasRangeSgix = 33147, PostTextureFilterScaleRangeSgix = 33148, ReferencePlaneSgix = 33149, ReferencePlaneEquationSgix = 33150, IrInstrument1Sgix = 33151, InstrumentBufferPointerSgix = 33152, InstrumentMeasurementsSgix = 33153, ListPrioritySgix = 33154, CalligraphicFragmentSgix = 33155, PixelTexGenQCeilingSgix = 33156, PixelTexGenQRoundSgix = 33157, PixelTexGenQFloorSgix = 33158, PixelTexGenAlphaReplaceSgix = 33159, PixelTexGenAlphaNoReplaceSgix = 33160, PixelTexGenAlphaLsSgix = 33161, PixelTexGenAlphaMsSgix = 33162, FramezoomSgix = 33163, FramezoomFactorSgix = 33164, MaxFramezoomFactorSgix = 33165, TextureLodBiasSSgix = 33166, TextureLodBiasTSgix = 33167, TextureLodBiasRSgix = 33168, GenerateMipmap = 33169, GenerateMipmapSgis = 33169, GenerateMipmapHint = 33170, GenerateMipmapHintSgis = 33170, GeometryDeformationSgix = 33172, TextureDeformationSgix = 33173, DeformationsMaskSgix = 33174, MaxDeformationOrderSgix = 33175, FogOffsetSgix = 33176, FogOffsetValueSgix = 33177, TextureCompareSgix = 33178, TextureCompareOperatorSgix = 33179, TextureLequalRSgix = 33180, TextureGequalRSgix = 33181, DepthComponent16 = 33189, DepthComponent16Arb = 33189, DepthComponent16Oes = 33189, DepthComponent16Sgix = 33189, DepthComponent24 = 33190, DepthComponent24Arb = 33190, DepthComponent24Oes = 33190, DepthComponent24Sgix = 33190, DepthComponent32 = 33191, DepthComponent32Arb = 33191, DepthComponent32Oes = 33191, DepthComponent32Sgix = 33191, ArrayElementLockFirstExt = 33192, ArrayElementLockCountExt = 33193, CullVertexExt = 33194, CullVertexEyePositionExt = 33195, CullVertexObjectPositionExt = 33196, IuiV2fExt = 33197, IuiV3fExt = 33198, IuiN3fV2fExt = 33199, IuiN3fV3fExt = 33200, T2fIuiV2fExt = 33201, T2fIuiV3fExt = 33202, T2fIuiN3fV2fExt = 33203, T2fIuiN3fV3fExt = 33204, IndexTestExt = 33205, IndexTestFuncExt = 33206, IndexTestRefExt = 33207, IndexMaterialExt = 33208, IndexMaterialParameterExt = 33209, IndexMaterialFaceExt = 33210, Ycrcb422Sgix = 33211, Ycrcb444Sgix = 33212, WrapBorderSun = 33236, UnpackConstantDataSunx = 33237, TextureConstantDataSunx = 33238, TriangleListSun = 33239, ReplacementCodeSun = 33240, GlobalAlphaSun = 33241, GlobalAlphaFactorSun = 33242, TextureColorWritemaskSgis = 33263, EyeDistanceToPointSgis = 33264, ObjectDistanceToPointSgis = 33265, EyeDistanceToLineSgis = 33266, ObjectDistanceToLineSgis = 33267, EyePointSgis = 33268, ObjectPointSgis = 33269, EyeLineSgis = 33270, ObjectLineSgis = 33271, LightModelColorControl = 33272, LightModelColorControlExt = 33272, SingleColor = 33273, SingleColorExt = 33273, SeparateSpecularColor = 33274, SeparateSpecularColorExt = 33274, SharedTexturePaletteExt = 33275, FogScaleSgix = 33276, FogScaleValueSgix = 33277, TextFragmentShaderAti = 33280, FramebufferAttachmentColorEncoding = 33296, FramebufferAttachmentComponentType = 33297, FramebufferAttachmentRedSize = 33298, FramebufferAttachmentGreenSize = 33299, FramebufferAttachmentBlueSize = 33300, FramebufferAttachmentAlphaSize = 33301, FramebufferAttachmentDepthSize = 33302, FramebufferAttachmentStencilSize = 33303, FramebufferDefault = 33304, FramebufferUndefined = 33305, DepthStencilAttachment = 33306, MajorVersion = 33307, MinorVersion = 33308, NumExtensions = 33309, ContextFlags = 33310, Index = 33314, DepthBuffer = 33315, StencilBuffer = 33316, CompressedRed = 33317, CompressedRg = 33318, Rg = 33319, RgInteger = 33320, R8 = 33321, R16 = 33322, Rg8 = 33323, Rg16 = 33324, R16f = 33325, R32f = 33326, Rg16f = 33327, Rg32f = 33328, R8i = 33329, R8ui = 33330, R16i = 33331, R16ui = 33332, R32i = 33333, R32ui = 33334, Rg8i = 33335, Rg8ui = 33336, Rg16i = 33337, Rg16ui = 33338, Rg32i = 33339, Rg32ui = 33340, SyncClEventArb = 33344, SyncClEventCompleteArb = 33345, DebugOutputSynchronousArb = 33346, DebugNextLoggedMessageLengthArb = 33347, DebugCallbackFunctionArb = 33348, DebugCallbackUserParamArb = 33349, DebugSourceApiArb = 33350, DebugSourceWindowSystemArb = 33351, DebugSourceShaderCompilerArb = 33352, DebugSourceThirdPartyArb = 33353, DebugSourceApplicationArb = 33354, DebugSourceOtherArb = 33355, DebugTypeErrorArb = 33356, DebugTypeDeprecatedBehaviorArb = 33357, DebugTypeUndefinedBehaviorArb = 33358, DebugTypePortabilityArb = 33359, DebugTypePerformanceArb = 33360, DebugTypeOtherArb = 33361, LoseContextOnResetArb = 33362, GuiltyContextResetArb = 33363, InnocentContextResetArb = 33364, UnknownContextResetArb = 33365, ResetNotificationStrategyArb = 33366, ProgramBinaryRetrievableHint = 33367, ProgramSeparable = 33368, ActiveProgram = 33369, ProgramPipelineBinding = 33370, MaxViewports = 33371, ViewportSubpixelBits = 33372, ViewportBoundsRange = 33373, LayerProvokingVertex = 33374, ViewportIndexProvokingVertex = 33375, UndefinedVertex = 33376, NoResetNotificationArb = 33377, DepthPassInstrumentSgix = 33552, DepthPassInstrumentCountersSgix = 33553, DepthPassInstrumentMaxSgix = 33554, FragmentsInstrumentSgix = 33555, FragmentsInstrumentCountersSgix = 33556, FragmentsInstrumentMaxSgix = 33557, ConvolutionHintSgix = 33558, YcrcbSgix = 33560, YcrcbaSgix = 33561, UnpackCompressedSizeSgix = 33562, PackMaxCompressedSizeSgix = 33563, PackCompressedSizeSgix = 33564, Slim8uSgix = 33565, Slim10uSgix = 33566, Slim12sSgix = 33567, AlphaMinSgix = 33568, AlphaMaxSgix = 33569, ScalebiasHintSgix = 33570, AsyncMarkerSgix = 33577, PixelTexGenModeSgix = 33579, AsyncHistogramSgix = 33580, MaxAsyncHistogramSgix = 33581, PixelTransform2DExt = 33584, PixelMagFilterExt = 33585, PixelMinFilterExt = 33586, PixelCubicWeightExt = 33587, CubicExt = 33588, AverageExt = 33589, PixelTransform2DStackDepthExt = 33590, MaxPixelTransform2DStackDepthExt = 33591, PixelTransform2DMatrixExt = 33592, FragmentMaterialExt = 33609, FragmentNormalExt = 33610, FragmentColorExt = 33612, AttenuationExt = 33613, ShadowAttenuationExt = 33614, TextureApplicationModeExt = 33615, TextureLightExt = 33616, TextureMaterialFaceExt = 33617, TextureMaterialParameterExt = 33618, PixelTextureSgis = 33619, PixelFragmentRgbSourceSgis = 33620, PixelFragmentAlphaSourceSgis = 33621, PixelGroupColorSgis = 33622, LineQualityHintSgix = 33627, AsyncTexImageSgix = 33628, AsyncDrawPixelsSgix = 33629, AsyncReadPixelsSgix = 33630, MaxAsyncTexImageSgix = 33631, MaxAsyncDrawPixelsSgix = 33632, MaxAsyncReadPixelsSgix = 33633, UnsignedByte233Rev = 33634, UnsignedByte233Reversed = 33634, UnsignedByte233RevExt = 33634, UnsignedShort565 = 33635, UnsignedShort565Ext = 33635, UnsignedShort565Rev = 33636, UnsignedShort565Reversed = 33636, UnsignedShort565RevExt = 33636, UnsignedShort4444Rev = 33637, UnsignedShort4444Reversed = 33637, UnsignedShort4444RevExt = 33637, UnsignedShort1555Rev = 33638, UnsignedShort1555Reversed = 33638, UnsignedShort1555RevExt = 33638, UnsignedInt8888Rev = 33639, UnsignedInt8888Reversed = 33639, UnsignedInt8888RevExt = 33639, UnsignedInt2101010Rev = 33640, UnsignedInt2101010Reversed = 33640, UnsignedInt2101010RevExt = 33640, TextureMaxClampSSgix = 33641, TextureMaxClampTSgix = 33642, TextureMaxClampRSgix = 33643, FogFactorToAlphaSgix = 33647, MirroredRepeat = 33648, MirroredRepeatArb = 33648, MirroredRepeatIbm = 33648, MirroredRepeatOes = 33648, RgbS3tc = 33696, Rgb4S3tc = 33697, RgbaS3tc = 33698, Rgba4S3tc = 33699, VertexPreclipSgix = 33774, VertexPreclipHintSgix = 33775, CompressedRgbS3tcDxt1Ext = 33776, CompressedRgbaS3tcDxt1Ext = 33777, CompressedRgbaS3tcDxt3Ext = 33778, CompressedRgbaS3tcDxt5Ext = 33779, ParallelArraysIntel = 33780, VertexArrayParallelPointersIntel = 33781, NormalArrayParallelPointersIntel = 33782, ColorArrayParallelPointersIntel = 33783, TextureCoordArrayParallelPointersIntel = 33784, FragmentLightingSgix = 33792, FragmentColorMaterialSgix = 33793, FragmentColorMaterialFaceSgix = 33794, FragmentColorMaterialParameterSgix = 33795, MaxFragmentLightsSgix = 33796, MaxActiveLightsSgix = 33797, CurrentRasterNormalSgix = 33798, LightEnvModeSgix = 33799, FragmentLightModelLocalViewerSgix = 33800, FragmentLightModelTwoSideSgix = 33801, FragmentLightModelAmbientSgix = 33802, FragmentLightModelNormalInterpolationSgix = 33803, FragmentLight0Sgix = 33804, FragmentLight1Sgix = 33805, FragmentLight2Sgix = 33806, FragmentLight3Sgix = 33807, FragmentLight4Sgix = 33808, FragmentLight5Sgix = 33809, FragmentLight6Sgix = 33810, FragmentLight7Sgix = 33811, PackResampleSgix = 33836, UnpackResampleSgix = 33837, ResampleReplicateSgix = 33838, ResampleZeroFillSgix = 33839, ResampleDecimateSgix = 33840, TangentArrayExt = 33849, BinormalArrayExt = 33850, CurrentTangentExt = 33851, CurrentBinormalExt = 33852, TangentArrayTypeExt = 33854, TangentArrayStrideExt = 33855, BinormalArrayTypeExt = 33856, BinormalArrayStrideExt = 33857, TangentArrayPointerExt = 33858, BinormalArrayPointerExt = 33859, Map1TangentExt = 33860, Map2TangentExt = 33861, Map1BinormalExt = 33862, Map2BinormalExt = 33863, NearestClipmapNearestSgix = 33869, NearestClipmapLinearSgix = 33870, LinearClipmapNearestSgix = 33871, FogCoordinateSource = 33872, FogCoordinateSourceExt = 33872, FogCoordSrc = 33872, FogCoord = 33873, FogCoordinate = 33873, FogCoordinateExt = 33873, FragmentDepth = 33874, FragmentDepthExt = 33874, CurrentFogCoord = 33875, CurrentFogCoordinate = 33875, CurrentFogCoordinateExt = 33875, FogCoordArrayType = 33876, FogCoordinateArrayType = 33876, FogCoordinateArrayTypeExt = 33876, FogCoordArrayStride = 33877, FogCoordinateArrayStride = 33877, FogCoordinateArrayStrideExt = 33877, FogCoordArrayPointer = 33878, FogCoordinateArrayPointer = 33878, FogCoordinateArrayPointerExt = 33878, FogCoordArray = 33879, FogCoordinateArray = 33879, FogCoordinateArrayExt = 33879, ColorSum = 33880, ColorSumArb = 33880, ColorSumExt = 33880, CurrentSecondaryColor = 33881, CurrentSecondaryColorExt = 33881, SecondaryColorArraySize = 33882, SecondaryColorArraySizeExt = 33882, SecondaryColorArrayType = 33883, SecondaryColorArrayTypeExt = 33883, SecondaryColorArrayStride = 33884, SecondaryColorArrayStrideExt = 33884, SecondaryColorArrayPointer = 33885, SecondaryColorArrayPointerExt = 33885, SecondaryColorArray = 33886, SecondaryColorArrayExt = 33886, CurrentRasterSecondaryColor = 33887, AliasedPointSizeRange = 33901, AliasedLineWidthRange = 33902, ScreenCoordinatesRend = 33936, InvertedScreenWRend = 33937, Texture0 = 33984, Texture0Arb = 33984, Texture1 = 33985, Texture1Arb = 33985, Texture2 = 33986, Texture2Arb = 33986, Texture3 = 33987, Texture3Arb = 33987, Texture4 = 33988, Texture4Arb = 33988, Texture5 = 33989, Texture5Arb = 33989, Texture6 = 33990, Texture6Arb = 33990, Texture7 = 33991, Texture7Arb = 33991, Texture8 = 33992, Texture8Arb = 33992, Texture9 = 33993, Texture9Arb = 33993, Texture10 = 33994, Texture10Arb = 33994, Texture11 = 33995, Texture11Arb = 33995, Texture12 = 33996, Texture12Arb = 33996, Texture13 = 33997, Texture13Arb = 33997, Texture14 = 33998, Texture14Arb = 33998, Texture15 = 33999, Texture15Arb = 33999, Texture16 = 34000, Texture16Arb = 34000, Texture17 = 34001, Texture17Arb = 34001, Texture18 = 34002, Texture18Arb = 34002, Texture19 = 34003, Texture19Arb = 34003, Texture20 = 34004, Texture20Arb = 34004, Texture21 = 34005, Texture21Arb = 34005, Texture22 = 34006, Texture22Arb = 34006, Texture23 = 34007, Texture23Arb = 34007, Texture24 = 34008, Texture24Arb = 34008, Texture25 = 34009, Texture25Arb = 34009, Texture26 = 34010, Texture26Arb = 34010, Texture27 = 34011, Texture27Arb = 34011, Texture28 = 34012, Texture28Arb = 34012, Texture29 = 34013, Texture29Arb = 34013, Texture30 = 34014, Texture30Arb = 34014, Texture31 = 34015, Texture31Arb = 34015, ActiveTexture = 34016, ActiveTextureArb = 34016, ClientActiveTexture = 34017, ClientActiveTextureArb = 34017, MaxTextureUnits = 34018, MaxTextureUnitsArb = 34018, TransposeModelviewMatrix = 34019, TransposeModelviewMatrixArb = 34019, TransposeProjectionMatrix = 34020, TransposeProjectionMatrixArb = 34020, TransposeTextureMatrix = 34021, TransposeTextureMatrixArb = 34021, TransposeColorMatrix = 34022, TransposeColorMatrixArb = 34022, Subtract = 34023, SubtractArb = 34023, MaxRenderbufferSize = 34024, MaxRenderbufferSizeExt = 34024, MaxRenderbufferSizeOes = 34024, CompressedAlpha = 34025, CompressedAlphaArb = 34025, CompressedLuminance = 34026, CompressedLuminanceArb = 34026, CompressedLuminanceAlpha = 34027, CompressedLuminanceAlphaArb = 34027, CompressedIntensity = 34028, CompressedIntensityArb = 34028, CompressedRgb = 34029, CompressedRgbArb = 34029, CompressedRgba = 34030, CompressedRgbaArb = 34030, TextureCompressionHint = 34031, TextureCompressionHintArb = 34031, UniformBlockReferencedByTessControlShader = 34032, UniformBlockReferencedByTessEvaluationShader = 34033, AllCompletedNv = 34034, FenceStatusNv = 34035, FenceConditionNv = 34036, TextureRectangle = 34037, TextureRectangleArb = 34037, TextureRectangleNv = 34037, TextureBindingRectangle = 34038, TextureBindingRectangleArb = 34038, TextureBindingRectangleNv = 34038, ProxyTextureRectangle = 34039, ProxyTextureRectangleArb = 34039, ProxyTextureRectangleNv = 34039, MaxRectangleTextureSize = 34040, MaxRectangleTextureSizeArb = 34040, MaxRectangleTextureSizeNv = 34040, DepthStencil = 34041, DepthStencilExt = 34041, DepthStencilNv = 34041, DepthStencilOes = 34041, UnsignedInt248 = 34042, UnsignedInt248Ext = 34042, UnsignedInt248Nv = 34042, UnsignedInt248Oes = 34042, MaxTextureLodBias = 34045, MaxTextureLodBiasExt = 34045, TextureMaxAnisotropyExt = 34046, MaxTextureMaxAnisotropyExt = 34047, TextureFilterControl = 34048, TextureFilterControlExt = 34048, TextureLodBias = 34049, TextureLodBiasExt = 34049, Modelview1StackDepthExt = 34050, Combine4Nv = 34051, MaxShininessNv = 34052, MaxSpotExponentNv = 34053, Modelview1MatrixExt = 34054, ModelviewMatrix1Ext = 34054, IncrWrap = 34055, IncrWrapExt = 34055, IncrWrapOes = 34055, DecrWrap = 34056, DecrWrapExt = 34056, DecrWrapOes = 34056, VertexWeightingExt = 34057, Modelview1Arb = 34058, Modelview1Ext = 34058, CurrentVertexWeightExt = 34059, VertexWeightArrayExt = 34060, VertexWeightArraySizeExt = 34061, VertexWeightArrayTypeExt = 34062, VertexWeightArrayStrideExt = 34063, VertexWeightArrayPointerExt = 34064, NormalMap = 34065, NormalMapArb = 34065, NormalMapExt = 34065, NormalMapNv = 34065, NormalMapOes = 34065, ReflectionMap = 34066, ReflectionMapArb = 34066, ReflectionMapExt = 34066, ReflectionMapNv = 34066, ReflectionMapOes = 34066, TextureCubeMap = 34067, TextureCubeMapArb = 34067, TextureCubeMapExt = 34067, TextureCubeMapOes = 34067, TextureBindingCubeMap = 34068, TextureBindingCubeMapArb = 34068, TextureBindingCubeMapExt = 34068, TextureBindingCubeMapOes = 34068, TextureCubeMapPositiveX = 34069, TextureCubeMapPositiveXArb = 34069, TextureCubeMapPositiveXExt = 34069, TextureCubeMapPositiveXOes = 34069, TextureCubeMapNegativeX = 34070, TextureCubeMapNegativeXArb = 34070, TextureCubeMapNegativeXExt = 34070, TextureCubeMapNegativeXOes = 34070, TextureCubeMapPositiveY = 34071, TextureCubeMapPositiveYArb = 34071, TextureCubeMapPositiveYExt = 34071, TextureCubeMapPositiveYOes = 34071, TextureCubeMapNegativeY = 34072, TextureCubeMapNegativeYArb = 34072, TextureCubeMapNegativeYExt = 34072, TextureCubeMapNegativeYOes = 34072, TextureCubeMapPositiveZ = 34073, TextureCubeMapPositiveZArb = 34073, TextureCubeMapPositiveZExt = 34073, TextureCubeMapPositiveZOes = 34073, TextureCubeMapNegativeZ = 34074, TextureCubeMapNegativeZArb = 34074, TextureCubeMapNegativeZExt = 34074, TextureCubeMapNegativeZOes = 34074, ProxyTextureCubeMap = 34075, ProxyTextureCubeMapArb = 34075, ProxyTextureCubeMapExt = 34075, MaxCubeMapTextureSize = 34076, MaxCubeMapTextureSizeArb = 34076, MaxCubeMapTextureSizeExt = 34076, MaxCubeMapTextureSizeOes = 34076, VertexArrayRangeApple = 34077, VertexArrayRangeNv = 34077, VertexArrayRangeLengthApple = 34078, VertexArrayRangeLengthNv = 34078, VertexArrayRangeValidNv = 34079, VertexArrayStorageHintApple = 34079, MaxVertexArrayRangeElementNv = 34080, VertexArrayRangePointerApple = 34081, VertexArrayRangePointerNv = 34081, RegisterCombinersNv = 34082, VariableANv = 34083, VariableBNv = 34084, VariableCNv = 34085, VariableDNv = 34086, VariableENv = 34087, VariableFNv = 34088, VariableGNv = 34089, ConstantColor0Nv = 34090, ConstantColor1Nv = 34091, PrimaryColorNv = 34092, SecondaryColorNv = 34093, Spare0Nv = 34094, Spare1Nv = 34095, DiscardNv = 34096, ETimesFNv = 34097, Spare0PlusSecondaryColorNv = 34098, VertexArrayRangeWithoutFlushNv = 34099, MultisampleFilterHintNv = 34100, PerStageConstantsNv = 34101, UnsignedIdentityNv = 34102, UnsignedInvertNv = 34103, ExpandNormalNv = 34104, ExpandNegateNv = 34105, HalfBiasNormalNv = 34106, HalfBiasNegateNv = 34107, SignedIdentityNv = 34108, SignedNegateNv = 34109, UnsignedNegateNv = 34109, ScaleByTwoNv = 34110, ScaleByFourNv = 34111, ScaleByOneHalfNv = 34112, BiasByNegativeOneHalfNv = 34113, CombinerInputNv = 34114, CombinerMappingNv = 34115, CombinerComponentUsageNv = 34116, CombinerAbDotProductNv = 34117, CombinerCdDotProductNv = 34118, CombinerMuxSumNv = 34119, CombinerScaleNv = 34120, CombinerBiasNv = 34121, CombinerAbOutputNv = 34122, CombinerCdOutputNv = 34123, CombinerSumOutputNv = 34124, MaxGeneralCombinersNv = 34125, NumGeneralCombinersNv = 34126, ColorSumClampNv = 34127, Combiner0Nv = 34128, Combiner1Nv = 34129, Combiner2Nv = 34130, Combiner3Nv = 34131, Combiner4Nv = 34132, Combiner5Nv = 34133, Combiner6Nv = 34134, Combiner7Nv = 34135, PrimitiveRestartNv = 34136, PrimitiveRestartIndexNv = 34137, FogDistanceModeNv = 34138, FogGenModeNv = 34138, EyeRadialNv = 34139, EyePlaneAbsoluteNv = 34140, EmbossLightNv = 34141, EmbossConstantNv = 34142, EmbossMapNv = 34143, RedMinClampIngr = 34144, GreenMinClampIngr = 34145, BlueMinClampIngr = 34146, AlphaMinClampIngr = 34147, RedMaxClampIngr = 34148, GreenMaxClampIngr = 34149, BlueMaxClampIngr = 34150, AlphaMaxClampIngr = 34151, InterlaceReadIngr = 34152, Combine = 34160, CombineArb = 34160, CombineExt = 34160, CombineRgb = 34161, CombineRgbArb = 34161, CombineRgbExt = 34161, CombineAlpha = 34162, CombineAlphaArb = 34162, CombineAlphaExt = 34162, RgbScale = 34163, RgbScaleArb = 34163, RgbScaleExt = 34163, AddSigned = 34164, AddSignedArb = 34164, AddSignedExt = 34164, Interpolate = 34165, InterpolateArb = 34165, InterpolateExt = 34165, Constant = 34166, ConstantArb = 34166, ConstantExt = 34166, PrimaryColor = 34167, PrimaryColorArb = 34167, PrimaryColorExt = 34167, Previous = 34168, PreviousArb = 34168, PreviousExt = 34168, Source0Rgb = 34176, Source0RgbArb = 34176, Source0RgbExt = 34176, Src0Rgb = 34176, Source1Rgb = 34177, Source1RgbArb = 34177, Source1RgbExt = 34177, Src1Rgb = 34177, Source2Rgb = 34178, Source2RgbArb = 34178, Source2RgbExt = 34178, Src2Rgb = 34178, Source3RgbNv = 34179, Source0Alpha = 34184, Source0AlphaArb = 34184, Source0AlphaExt = 34184, Src0Alpha = 34184, Source1Alpha = 34185, Source1AlphaArb = 34185, Source1AlphaExt = 34185, Src1Alpha = 34185, Source2Alpha = 34186, Source2AlphaArb = 34186, Source2AlphaExt = 34186, Src2Alpha = 34186, Source3AlphaNv = 34187, Operand0Rgb = 34192, Operand0RgbArb = 34192, Operand0RgbExt = 34192, Operand1Rgb = 34193, Operand1RgbArb = 34193, Operand1RgbExt = 34193, Operand2Rgb = 34194, Operand2RgbArb = 34194, Operand2RgbExt = 34194, Operand3RgbNv = 34195, Operand0Alpha = 34200, Operand0AlphaArb = 34200, Operand0AlphaExt = 34200, Operand1Alpha = 34201, Operand1AlphaArb = 34201, Operand1AlphaExt = 34201, Operand2Alpha = 34202, Operand2AlphaArb = 34202, Operand2AlphaExt = 34202, Operand3AlphaNv = 34203, PackSubsampleRateSgix = 34208, UnpackSubsampleRateSgix = 34209, PixelSubsample4444Sgix = 34210, PixelSubsample2424Sgix = 34211, PixelSubsample4242Sgix = 34212, PerturbExt = 34222, TextureNormalExt = 34223, LightModelSpecularVectorApple = 34224, TransformHintApple = 34225, UnpackClientStorageApple = 34226, BufferObjectApple = 34227, StorageClientApple = 34228, VertexArrayBinding = 34229, VertexArrayBindingApple = 34229, TextureRangeLengthApple = 34231, TextureRangePointerApple = 34232, Ycbcr422Apple = 34233, UnsignedShort88Apple = 34234, UnsignedShort88Mesa = 34234, UnsignedShort88RevApple = 34235, UnsignedShort88RevMesa = 34235, TextureStorageHintApple = 34236, StoragePrivateApple = 34237, StorageCachedApple = 34238, StorageSharedApple = 34239, ReplacementCodeArraySun = 34240, ReplacementCodeArrayTypeSun = 34241, ReplacementCodeArrayStrideSun = 34242, ReplacementCodeArrayPointerSun = 34243, R1uiV3fSun = 34244, R1uiC4ubV3fSun = 34245, R1uiC3fV3fSun = 34246, R1uiN3fV3fSun = 34247, R1uiC4fN3fV3fSun = 34248, R1uiT2fV3fSun = 34249, R1uiT2fN3fV3fSun = 34250, R1uiT2fC4fN3fV3fSun = 34251, SliceAccumSun = 34252, QuadMeshSun = 34324, TriangleMeshSun = 34325, VertexProgram = 34336, VertexProgramArb = 34336, VertexProgramNv = 34336, VertexStateProgramNv = 34337, ArrayEnabled = 34338, VertexAttribArrayEnabled = 34338, VertexAttribArrayEnabledArb = 34338, ArraySize = 34339, AttribArraySizeNv = 34339, VertexAttribArraySize = 34339, VertexAttribArraySizeArb = 34339, ArrayStride = 34340, AttribArrayStrideNv = 34340, VertexAttribArrayStride = 34340, VertexAttribArrayStrideArb = 34340, ArrayType = 34341, AttribArrayTypeNv = 34341, VertexAttribArrayType = 34341, VertexAttribArrayTypeArb = 34341, CurrentAttribNv = 34342, CurrentVertexAttrib = 34342, CurrentVertexAttribArb = 34342, ProgramLength = 34343, ProgramLengthArb = 34343, ProgramLengthNv = 34343, ProgramString = 34344, ProgramStringArb = 34344, ProgramStringNv = 34344, ModelviewProjectionNv = 34345, IdentityNv = 34346, InverseNv = 34347, TransposeNv = 34348, InverseTransposeNv = 34349, MaxProgramMatrixStackDepthArb = 34350, MaxTrackMatrixStackDepthNv = 34350, MaxProgramMatricesArb = 34351, MaxTrackMatricesNv = 34351, Matrix0Nv = 34352, Matrix1Nv = 34353, Matrix2Nv = 34354, Matrix3Nv = 34355, Matrix4Nv = 34356, Matrix5Nv = 34357, Matrix6Nv = 34358, Matrix7Nv = 34359, CurrentMatrixStackDepthArb = 34368, CurrentMatrixStackDepthNv = 34368, CurrentMatrixArb = 34369, CurrentMatrixNv = 34369, ProgramPointSize = 34370, ProgramPointSizeArb = 34370, ProgramPointSizeExt = 34370, VertexProgramPointSize = 34370, VertexProgramPointSizeArb = 34370, VertexProgramPointSizeNv = 34370, VertexProgramTwoSide = 34371, VertexProgramTwoSideArb = 34371, VertexProgramTwoSideNv = 34371, ProgramParameterNv = 34372, ArrayPointer = 34373, AttribArrayPointerNv = 34373, VertexAttribArrayPointer = 34373, VertexAttribArrayPointerArb = 34373, ProgramTargetNv = 34374, ProgramResidentNv = 34375, TrackMatrixNv = 34376, TrackMatrixTransformNv = 34377, VertexProgramBindingNv = 34378, ProgramErrorPositionArb = 34379, ProgramErrorPositionNv = 34379, OffsetTextureRectangleNv = 34380, OffsetTextureRectangleScaleNv = 34381, DotProductTextureRectangleNv = 34382, DepthClamp = 34383, DepthClampNv = 34383, VertexAttribArray0Nv = 34384, VertexAttribArray1Nv = 34385, VertexAttribArray2Nv = 34386, VertexAttribArray3Nv = 34387, VertexAttribArray4Nv = 34388, VertexAttribArray5Nv = 34389, VertexAttribArray6Nv = 34390, VertexAttribArray7Nv = 34391, VertexAttribArray8Nv = 34392, VertexAttribArray9Nv = 34393, VertexAttribArray10Nv = 34394, VertexAttribArray11Nv = 34395, VertexAttribArray12Nv = 34396, VertexAttribArray13Nv = 34397, VertexAttribArray14Nv = 34398, VertexAttribArray15Nv = 34399, Map1VertexAttrib04Nv = 34400, Map1VertexAttrib14Nv = 34401, Map1VertexAttrib24Nv = 34402, Map1VertexAttrib34Nv = 34403, Map1VertexAttrib44Nv = 34404, Map1VertexAttrib54Nv = 34405, Map1VertexAttrib64Nv = 34406, Map1VertexAttrib74Nv = 34407, Map1VertexAttrib84Nv = 34408, Map1VertexAttrib94Nv = 34409, Map1VertexAttrib104Nv = 34410, Map1VertexAttrib114Nv = 34411, Map1VertexAttrib124Nv = 34412, Map1VertexAttrib134Nv = 34413, Map1VertexAttrib144Nv = 34414, Map1VertexAttrib154Nv = 34415, Map2VertexAttrib04Nv = 34416, Map2VertexAttrib14Nv = 34417, Map2VertexAttrib24Nv = 34418, Map2VertexAttrib34Nv = 34419, Map2VertexAttrib44Nv = 34420, Map2VertexAttrib54Nv = 34421, Map2VertexAttrib64Nv = 34422, Map2VertexAttrib74Nv = 34423, ProgramBinding = 34423, ProgramBindingArb = 34423, Map2VertexAttrib84Nv = 34424, Map2VertexAttrib94Nv = 34425, Map2VertexAttrib104Nv = 34426, Map2VertexAttrib114Nv = 34427, Map2VertexAttrib124Nv = 34428, Map2VertexAttrib134Nv = 34429, Map2VertexAttrib144Nv = 34430, Map2VertexAttrib154Nv = 34431, TextureCompressedImageSize = 34464, TextureCompressedImageSizeArb = 34464, TextureCompressed = 34465, TextureCompressedArb = 34465, NumCompressedTextureFormats = 34466, NumCompressedTextureFormatsArb = 34466, CompressedTextureFormats = 34467, CompressedTextureFormatsArb = 34467, MaxVertexUnitsArb = 34468, MaxVertexUnitsOes = 34468, ActiveVertexUnitsArb = 34469, WeightSumUnityArb = 34470, VertexBlendArb = 34471, CurrentWeightArb = 34472, WeightArrayTypeArb = 34473, WeightArrayTypeOes = 34473, WeightArrayStrideArb = 34474, WeightArrayStrideOes = 34474, WeightArraySizeArb = 34475, WeightArraySizeOes = 34475, WeightArrayPointerArb = 34476, WeightArrayPointerOes = 34476, WeightArrayArb = 34477, WeightArrayOes = 34477, Dot3Rgb = 34478, Dot3RgbArb = 34478, Dot3Rgba = 34479, Dot3RgbaArb = 34479, Dot3RgbaImg = 34479, CompressedRgbFxt13Dfx = 34480, CompressedRgbaFxt13Dfx = 34481, Multisample3Dfx = 34482, SampleBuffers3Dfx = 34483, Samples3Dfx = 34484, Eval2DNv = 34496, EvalTriangular2DNv = 34497, MapTessellationNv = 34498, MapAttribUOrderNv = 34499, MapAttribVOrderNv = 34500, EvalFractionalTessellationNv = 34501, EvalVertexAtrrib0Nv = 34502, EvalVertexAttrib0Nv = 34502, EvalVertexAtrrib1Nv = 34503, EvalVertexAttrib1Nv = 34503, EvalVertexAtrrib2Nv = 34504, EvalVertexAttrib2Nv = 34504, EvalVertexAtrrib3Nv = 34505, EvalVertexAttrib3Nv = 34505, EvalVertexAtrrib4Nv = 34506, EvalVertexAttrib4Nv = 34506, EvalVertexAtrrib5Nv = 34507, EvalVertexAttrib5Nv = 34507, EvalVertexAtrrib6Nv = 34508, EvalVertexAttrib6Nv = 34508, EvalVertexAtrrib7Nv = 34509, EvalVertexAttrib7Nv = 34509, EvalVertexAtrrib8Nv = 34510, EvalVertexAttrib8Nv = 34510, EvalVertexAtrrib9Nv = 34511, EvalVertexAttrib9Nv = 34511, EvalVertexAtrrib10Nv = 34512, EvalVertexAttrib10Nv = 34512, EvalVertexAtrrib11Nv = 34513, EvalVertexAttrib11Nv = 34513, EvalVertexAtrrib12Nv = 34514, EvalVertexAttrib12Nv = 34514, EvalVertexAtrrib13Nv = 34515, EvalVertexAttrib13Nv = 34515, EvalVertexAtrrib14Nv = 34516, EvalVertexAttrib14Nv = 34516, EvalVertexAtrrib15Nv = 34517, EvalVertexAttrib15Nv = 34517, MaxMapTessellationNv = 34518, MaxRationalEvalOrderNv = 34519, MaxProgramPatchAttribsNv = 34520, RgbaUnsignedDotProductMappingNv = 34521, UnsignedIntS8S888Nv = 34522, UnsignedInt88S8S8RevNv = 34523, DsdtMagIntensityNv = 34524, ShaderConsistentNv = 34525, TextureShaderNv = 34526, ShaderOperationNv = 34527, CullModesNv = 34528, OffsetTexture2DMatrixNv = 34529, OffsetTextureMatrixNv = 34529, OffsetTexture2DScaleNv = 34530, OffsetTextureScaleNv = 34530, OffsetTexture2DBiasNv = 34531, OffsetTextureBiasNv = 34531, PreviousTextureInputNv = 34532, ConstEyeNv = 34533, PassThroughNv = 34534, CullFragmentNv = 34535, OffsetTexture2DNv = 34536, DependentArTexture2DNv = 34537, DependentGbTexture2DNv = 34538, SurfaceStateNv = 34539, DotProductNv = 34540, DotProductDepthReplaceNv = 34541, DotProductTexture2DNv = 34542, DotProductTexture3DNv = 34543, DotProductTextureCubeMapNv = 34544, DotProductDiffuseCubeMapNv = 34545, DotProductReflectCubeMapNv = 34546, DotProductConstEyeReflectCubeMapNv = 34547, HiloNv = 34548, DsdtNv = 34549, DsdtMagNv = 34550, DsdtMagVibNv = 34551, Hilo16Nv = 34552, SignedHiloNv = 34553, SignedHilo16Nv = 34554, SignedRgbaNv = 34555, SignedRgba8Nv = 34556, SurfaceRegisteredNv = 34557, SignedRgbNv = 34558, SignedRgb8Nv = 34559, SurfaceMappedNv = 34560, SignedLuminanceNv = 34561, SignedLuminance8Nv = 34562, SignedLuminanceAlphaNv = 34563, SignedLuminance8Alpha8Nv = 34564, SignedAlphaNv = 34565, SignedAlpha8Nv = 34566, SignedIntensityNv = 34567, SignedIntensity8Nv = 34568, Dsdt8Nv = 34569, Dsdt8Mag8Nv = 34570, Dsdt8Mag8Intensity8Nv = 34571, SignedRgbUnsignedAlphaNv = 34572, SignedRgb8UnsignedAlpha8Nv = 34573, HiScaleNv = 34574, LoScaleNv = 34575, DsScaleNv = 34576, DtScaleNv = 34577, MagnitudeScaleNv = 34578, VibranceScaleNv = 34579, HiBiasNv = 34580, LoBiasNv = 34581, DsBiasNv = 34582, DtBiasNv = 34583, MagnitudeBiasNv = 34584, VibranceBiasNv = 34585, TextureBorderValuesNv = 34586, TextureHiSizeNv = 34587, TextureLoSizeNv = 34588, TextureDsSizeNv = 34589, TextureDtSizeNv = 34590, TextureMagSizeNv = 34591, Modelview2Arb = 34594, Modelview3Arb = 34595, Modelview4Arb = 34596, Modelview5Arb = 34597, Modelview6Arb = 34598, Modelview7Arb = 34599, Modelview8Arb = 34600, Modelview9Arb = 34601, Modelview10Arb = 34602, Modelview11Arb = 34603, Modelview12Arb = 34604, Modelview13Arb = 34605, Modelview14Arb = 34606, Modelview15Arb = 34607, Modelview16Arb = 34608, Modelview17Arb = 34609, Modelview18Arb = 34610, Modelview19Arb = 34611, Modelview20Arb = 34612, Modelview21Arb = 34613, Modelview22Arb = 34614, Modelview23Arb = 34615, Modelview24Arb = 34616, Modelview25Arb = 34617, Modelview26Arb = 34618, Modelview27Arb = 34619, Modelview28Arb = 34620, Modelview29Arb = 34621, Modelview30Arb = 34622, Modelview31Arb = 34623, Dot3RgbExt = 34624, Z400BinaryAmd = 34624, Dot3RgbaExt = 34625, ProgramBinaryLength = 34625, ProgramBinaryLengthOes = 34625, MirrorClampAti = 34626, MirrorClampExt = 34626, MirrorClampToEdgeAti = 34627, MirrorClampToEdgeExt = 34627, ModulateAddAti = 34628, ModulateSignedAddAti = 34629, ModulateSubtractAti = 34630, DepthStencilMesa = 34640, UnsignedInt248Mesa = 34641, UnsignedInt824RevMesa = 34642, UnsignedShort151Mesa = 34643, UnsignedShort115RevMesa = 34644, TraceMaskMesa = 34645, TraceNameMesa = 34646, YcbcrMesa = 34647, PackInvertMesa = 34648, DebugObjectMesa = 34649, Texture1DStackMesax = 34649, DebugPrintMesa = 34650, Texture2DStackMesax = 34650, DebugAssertMesa = 34651, ProxyTexture1DStackMesax = 34651, ProxyTexture2DStackMesax = 34652, Texture1DStackBindingMesax = 34653, Texture2DStackBindingMesax = 34654, StaticAti = 34656, DynamicAti = 34657, PreserveAti = 34658, DiscardAti = 34659, BufferSize = 34660, BufferSizeArb = 34660, ObjectBufferSizeAti = 34660, BufferUsage = 34661, BufferUsageArb = 34661, ObjectBufferUsageAti = 34661, ArrayObjectBufferAti = 34662, ArrayObjectOffsetAti = 34663, ElementArrayAti = 34664, ElementArrayTypeAti = 34665, ElementArrayPointerAti = 34666, MaxVertexStreamsAti = 34667, VertexStream0Ati = 34668, VertexStream1Ati = 34669, VertexStream2Ati = 34670, VertexStream3Ati = 34671, VertexStream4Ati = 34672, VertexStream5Ati = 34673, VertexStream6Ati = 34674, VertexStream7Ati = 34675, VertexSourceAti = 34676, BumpRotMatrixAti = 34677, BumpRotMatrixSizeAti = 34678, BumpNumTexUnitsAti = 34679, BumpTexUnitsAti = 34680, DudvAti = 34681, Du8Dv8Ati = 34682, BumpEnvmapAti = 34683, BumpTargetAti = 34684, VertexShaderExt = 34688, VertexShaderBindingExt = 34689, OpIndexExt = 34690, OpNegateExt = 34691, OpDot3Ext = 34692, OpDot4Ext = 34693, OpMulExt = 34694, OpAddExt = 34695, OpMaddExt = 34696, OpFracExt = 34697, OpMaxExt = 34698, OpMinExt = 34699, OpSetGeExt = 34700, OpSetLtExt = 34701, OpClampExt = 34702, OpFloorExt = 34703, OpRoundExt = 34704, OpExpBase2Ext = 34705, OpLogBase2Ext = 34706, OpPowerExt = 34707, OpRecipExt = 34708, OpRecipSqrtExt = 34709, OpSubExt = 34710, OpCrossProductExt = 34711, OpMultiplyMatrixExt = 34712, OpMovExt = 34713, OutputVertexExt = 34714, OutputColor0Ext = 34715, OutputColor1Ext = 34716, OutputTextureCoord0Ext = 34717, OutputTextureCoord1Ext = 34718, OutputTextureCoord2Ext = 34719, OutputTextureCoord3Ext = 34720, OutputTextureCoord4Ext = 34721, OutputTextureCoord5Ext = 34722, OutputTextureCoord6Ext = 34723, OutputTextureCoord7Ext = 34724, OutputTextureCoord8Ext = 34725, OutputTextureCoord9Ext = 34726, OutputTextureCoord10Ext = 34727, OutputTextureCoord11Ext = 34728, OutputTextureCoord12Ext = 34729, OutputTextureCoord13Ext = 34730, OutputTextureCoord14Ext = 34731, OutputTextureCoord15Ext = 34732, OutputTextureCoord16Ext = 34733, OutputTextureCoord17Ext = 34734, OutputTextureCoord18Ext = 34735, OutputTextureCoord19Ext = 34736, OutputTextureCoord20Ext = 34737, OutputTextureCoord21Ext = 34738, OutputTextureCoord22Ext = 34739, OutputTextureCoord23Ext = 34740, OutputTextureCoord24Ext = 34741, OutputTextureCoord25Ext = 34742, OutputTextureCoord26Ext = 34743, OutputTextureCoord27Ext = 34744, OutputTextureCoord28Ext = 34745, OutputTextureCoord29Ext = 34746, OutputTextureCoord30Ext = 34747, OutputTextureCoord31Ext = 34748, OutputFogExt = 34749, ScalarExt = 34750, VectorExt = 34751, MatrixExt = 34752, VariantExt = 34753, InvariantExt = 34754, LocalConstantExt = 34755, LocalExt = 34756, MaxVertexShaderInstructionsExt = 34757, MaxVertexShaderVariantsExt = 34758, MaxVertexShaderInvariantsExt = 34759, MaxVertexShaderLocalConstantsExt = 34760, MaxVertexShaderLocalsExt = 34761, MaxOptimizedVertexShaderInstructionsExt = 34762, MaxOptimizedVertexShaderVariantsExt = 34763, MaxOptimizedVertexShaderLocalConstantsExt = 34764, MaxOptimizedVertexShaderInvariantsExt = 34765, MaxOptimizedVertexShaderLocalsExt = 34766, VertexShaderInstructionsExt = 34767, VertexShaderVariantsExt = 34768, VertexShaderInvariantsExt = 34769, VertexShaderLocalConstantsExt = 34770, VertexShaderLocalsExt = 34771, VertexShaderOptimizedExt = 34772, XExt = 34773, YExt = 34774, ZExt = 34775, WExt = 34776, NegativeXExt = 34777, NegativeYExt = 34778, NegativeZExt = 34779, NegativeWExt = 34780, ZeroExt = 34781, OneExt = 34782, NegativeOneExt = 34783, NormalizedRangeExt = 34784, FullRangeExt = 34785, CurrentVertexExt = 34786, MvpMatrixExt = 34787, VariantValueExt = 34788, VariantDatatypeExt = 34789, VariantArrayStrideExt = 34790, VariantArrayTypeExt = 34791, VariantArrayExt = 34792, VariantArrayPointerExt = 34793, InvariantValueExt = 34794, InvariantDatatypeExt = 34795, LocalConstantValueExt = 34796, LocalConstantDatatypeExt = 34797, AtcRgbaInterpolatedAlphaAmd = 34798, PnTrianglesAti = 34800, MaxPnTrianglesTesselationLevelAti = 34801, PnTrianglesPointModeAti = 34802, PnTrianglesNormalModeAti = 34803, PnTrianglesTesselationLevelAti = 34804, PnTrianglesPointModeLinearAti = 34805, PnTrianglesPointModeCubicAti = 34806, PnTrianglesNormalModeLinearAti = 34807, PnTrianglesNormalModeQuadraticAti = 34808, Gl3DcXAmd = 34809, Gl3DcXyAmd = 34810, VboFreeMemoryAti = 34811, TextureFreeMemoryAti = 34812, RenderbufferFreeMemoryAti = 34813, NumProgramBinaryFormats = 34814, NumProgramBinaryFormatsOes = 34814, ProgramBinaryFormats = 34815, ProgramBinaryFormatsOes = 34815, StencilBackFunc = 34816, StencilBackFuncAti = 34816, StencilBackFail = 34817, StencilBackFailAti = 34817, StencilBackPassDepthFail = 34818, StencilBackPassDepthFailAti = 34818, StencilBackPassDepthPass = 34819, StencilBackPassDepthPassAti = 34819, FragmentProgram = 34820, FragmentProgramArb = 34820, ProgramAluInstructionsArb = 34821, ProgramTexInstructionsArb = 34822, ProgramTexIndirectionsArb = 34823, ProgramNativeAluInstructionsArb = 34824, ProgramNativeTexInstructionsArb = 34825, ProgramNativeTexIndirectionsArb = 34826, MaxProgramAluInstructionsArb = 34827, MaxProgramTexInstructionsArb = 34828, MaxProgramTexIndirectionsArb = 34829, MaxProgramNativeAluInstructionsArb = 34830, MaxProgramNativeTexInstructionsArb = 34831, MaxProgramNativeTexIndirectionsArb = 34832, Rgba32f = 34836, Rgba32fArb = 34836, RgbaFloat32Apple = 34836, RgbaFloat32Ati = 34836, Rgb32f = 34837, Rgb32fArb = 34837, RgbFloat32Apple = 34837, RgbFloat32Ati = 34837, Alpha32fArb = 34838, AlphaFloat32Apple = 34838, AlphaFloat32Ati = 34838, Intensity32fArb = 34839, IntensityFloat32Apple = 34839, IntensityFloat32Ati = 34839, Luminance32fArb = 34840, LuminanceFloat32Apple = 34840, LuminanceFloat32Ati = 34840, LuminanceAlpha32fArb = 34841, LuminanceAlphaFloat32Apple = 34841, LuminanceAlphaFloat32Ati = 34841, Rgba16f = 34842, Rgba16fArb = 34842, RgbaFloat16Apple = 34842, RgbaFloat16Ati = 34842, Rgb16f = 34843, Rgb16fArb = 34843, RgbFloat16Apple = 34843, RgbFloat16Ati = 34843, Alpha16fArb = 34844, AlphaFloat16Apple = 34844, AlphaFloat16Ati = 34844, Intensity16fArb = 34845, IntensityFloat16Apple = 34845, IntensityFloat16Ati = 34845, Luminance16fArb = 34846, LuminanceFloat16Apple = 34846, LuminanceFloat16Ati = 34846, LuminanceAlpha16fArb = 34847, LuminanceAlphaFloat16Apple = 34847, LuminanceAlphaFloat16Ati = 34847, RgbaFloatMode = 34848, RgbaFloatModeArb = 34848, TypeRgbaFloatAti = 34848, WriteonlyRenderingQcom = 34851, MaxDrawBuffers = 34852, MaxDrawBuffersArb = 34852, MaxDrawBuffersAti = 34852, DrawBuffer0 = 34853, DrawBuffer0Arb = 34853, DrawBuffer0Ati = 34853, DrawBuffer1 = 34854, DrawBuffer1Arb = 34854, DrawBuffer1Ati = 34854, DrawBuffer2 = 34855, DrawBuffer2Arb = 34855, DrawBuffer2Ati = 34855, DrawBuffer3 = 34856, DrawBuffer3Arb = 34856, DrawBuffer3Ati = 34856, DrawBuffer4 = 34857, DrawBuffer4Arb = 34857, DrawBuffer4Ati = 34857, DrawBuffer5 = 34858, DrawBuffer5Arb = 34858, DrawBuffer5Ati = 34858, DrawBuffer6 = 34859, DrawBuffer6Arb = 34859, DrawBuffer6Ati = 34859, DrawBuffer7 = 34860, DrawBuffer7Arb = 34860, DrawBuffer7Ati = 34860, DrawBuffer8 = 34861, DrawBuffer8Arb = 34861, DrawBuffer8Ati = 34861, DrawBuffer9 = 34862, DrawBuffer9Arb = 34862, DrawBuffer9Ati = 34862, DrawBuffer10 = 34863, DrawBuffer10Arb = 34863, DrawBuffer10Ati = 34863, DrawBuffer11 = 34864, DrawBuffer11Arb = 34864, DrawBuffer11Ati = 34864, DrawBuffer12 = 34865, DrawBuffer12Arb = 34865, DrawBuffer12Ati = 34865, DrawBuffer13 = 34866, DrawBuffer13Arb = 34866, DrawBuffer13Ati = 34866, DrawBuffer14 = 34867, DrawBuffer14Arb = 34867, DrawBuffer14Ati = 34867, DrawBuffer15 = 34868, DrawBuffer15Arb = 34868, DrawBuffer15Ati = 34868, ColorClearUnclampedValueAti = 34869, BlendEquationAlpha = 34877, BlendEquationAlphaExt = 34877, BlendEquationAlphaOes = 34877, MatrixPaletteArb = 34880, MatrixPaletteOes = 34880, MaxMatrixPaletteStackDepthArb = 34881, MaxPaletteMatricesArb = 34882, MaxPaletteMatricesOes = 34882, CurrentPaletteMatrixArb = 34883, CurrentPaletteMatrixOes = 34883, MatrixIndexArrayArb = 34884, MatrixIndexArrayOes = 34884, CurrentMatrixIndexArb = 34885, MatrixIndexArraySizeArb = 34886, MatrixIndexArraySizeOes = 34886, MatrixIndexArrayTypeArb = 34887, MatrixIndexArrayTypeOes = 34887, MatrixIndexArrayStrideArb = 34888, MatrixIndexArrayStrideOes = 34888, MatrixIndexArrayPointerArb = 34889, MatrixIndexArrayPointerOes = 34889, TextureDepthSize = 34890, TextureDepthSizeArb = 34890, DepthTextureMode = 34891, DepthTextureModeArb = 34891, TextureCompareMode = 34892, TextureCompareModeArb = 34892, TextureCompareFunc = 34893, TextureCompareFuncArb = 34893, CompareRefDepthToTextureExt = 34894, CompareRefToTexture = 34894, CompareRToTexture = 34894, CompareRToTextureArb = 34894, TextureCubeMapSeamless = 34895, OffsetProjectiveTexture2DNv = 34896, OffsetProjectiveTexture2DScaleNv = 34897, OffsetProjectiveTextureRectangleNv = 34898, OffsetProjectiveTextureRectangleScaleNv = 34899, OffsetHiloTexture2DNv = 34900, OffsetHiloTextureRectangleNv = 34901, OffsetHiloProjectiveTexture2DNv = 34902, OffsetHiloProjectiveTextureRectangleNv = 34903, DependentHiloTexture2DNv = 34904, DependentRgbTexture3DNv = 34905, DependentRgbTextureCubeMapNv = 34906, DotProductPassThroughNv = 34907, DotProductTexture1DNv = 34908, DotProductAffineDepthReplaceNv = 34909, Hilo8Nv = 34910, SignedHilo8Nv = 34911, ForceBlueToOneNv = 34912, PointSprite = 34913, PointSpriteArb = 34913, PointSpriteNv = 34913, CoordReplace = 34914, CoordReplaceArb = 34914, CoordReplaceNv = 34914, PointSpriteRModeNv = 34915, PixelCounterBitsNv = 34916, QueryCounterBits = 34916, QueryCounterBitsArb = 34916, CurrentOcclusionQueryIdNv = 34917, CurrentQuery = 34917, CurrentQueryArb = 34917, PixelCountNv = 34918, QueryResult = 34918, QueryResultArb = 34918, PixelCountAvailableNv = 34919, QueryResultAvailable = 34919, QueryResultAvailableArb = 34919, MaxFragmentProgramLocalParametersNv = 34920, MaxVertexAttribs = 34921, MaxVertexAttribsArb = 34921, ArrayNormalized = 34922, VertexAttribArrayNormalized = 34922, VertexAttribArrayNormalizedArb = 34922, MaxTessControlInputComponents = 34924, MaxTessEvaluationInputComponents = 34925, DepthStencilToRgbaNv = 34926, DepthStencilToBgraNv = 34927, FragmentProgramNv = 34928, MaxTextureCoords = 34929, MaxTextureCoordsArb = 34929, MaxTextureCoordsNv = 34929, MaxTextureImageUnits = 34930, MaxTextureImageUnitsArb = 34930, MaxTextureImageUnitsNv = 34930, FragmentProgramBindingNv = 34931, ProgramErrorStringArb = 34932, ProgramErrorStringNv = 34932, ProgramFormatAsciiArb = 34933, ProgramFormat = 34934, ProgramFormatArb = 34934, WritePixelDataRangeNv = 34936, ReadPixelDataRangeNv = 34937, WritePixelDataRangeLengthNv = 34938, ReadPixelDataRangeLengthNv = 34939, WritePixelDataRangePointerNv = 34940, ReadPixelDataRangePointerNv = 34941, GeometryShaderInvocations = 34943, FloatRNv = 34944, FloatRgNv = 34945, FloatRgbNv = 34946, FloatRgbaNv = 34947, FloatR16Nv = 34948, FloatR32Nv = 34949, FloatRg16Nv = 34950, FloatRg32Nv = 34951, FloatRgb16Nv = 34952, FloatRgb32Nv = 34953, FloatRgba16Nv = 34954, FloatRgba32Nv = 34955, TextureFloatComponentsNv = 34956, FloatClearColorValueNv = 34957, FloatRgbaModeNv = 34958, TextureUnsignedRemapModeNv = 34959, DepthBoundsTestExt = 34960, DepthBoundsExt = 34961, ArrayBuffer = 34962, ArrayBufferArb = 34962, ElementArrayBuffer = 34963, ElementArrayBufferArb = 34963, ArrayBufferBinding = 34964, ArrayBufferBindingArb = 34964, ElementArrayBufferBinding = 34965, ElementArrayBufferBindingArb = 34965, VertexArrayBufferBinding = 34966, VertexArrayBufferBindingArb = 34966, NormalArrayBufferBinding = 34967, NormalArrayBufferBindingArb = 34967, ColorArrayBufferBinding = 34968, ColorArrayBufferBindingArb = 34968, IndexArrayBufferBinding = 34969, IndexArrayBufferBindingArb = 34969, TextureCoordArrayBufferBinding = 34970, TextureCoordArrayBufferBindingArb = 34970, EdgeFlagArrayBufferBinding = 34971, EdgeFlagArrayBufferBindingArb = 34971, SecondaryColorArrayBufferBinding = 34972, SecondaryColorArrayBufferBindingArb = 34972, FogCoordArrayBufferBinding = 34973, FogCoordinateArrayBufferBinding = 34973, FogCoordinateArrayBufferBindingArb = 34973, WeightArrayBufferBinding = 34974, WeightArrayBufferBindingArb = 34974, WeightArrayBufferBindingOes = 34974, VertexAttribArrayBufferBinding = 34975, VertexAttribArrayBufferBindingArb = 34975, ProgramInstruction = 34976, ProgramInstructionsArb = 34976, MaxProgramInstructions = 34977, MaxProgramInstructionsArb = 34977, ProgramNativeInstructions = 34978, ProgramNativeInstructionsArb = 34978, MaxProgramNativeInstructions = 34979, MaxProgramNativeInstructionsArb = 34979, ProgramTemporaries = 34980, ProgramTemporariesArb = 34980, MaxProgramTemporaries = 34981, MaxProgramTemporariesArb = 34981, ProgramNativeTemporaries = 34982, ProgramNativeTemporariesArb = 34982, MaxProgramNativeTemporaries = 34983, MaxProgramNativeTemporariesArb = 34983, ProgramParameters = 34984, ProgramParametersArb = 34984, MaxProgramParameters = 34985, MaxProgramParametersArb = 34985, ProgramNativeParameters = 34986, ProgramNativeParametersArb = 34986, MaxProgramNativeParameters = 34987, MaxProgramNativeParametersArb = 34987, ProgramAttribs = 34988, ProgramAttribsArb = 34988, MaxProgramAttribs = 34989, MaxProgramAttribsArb = 34989, ProgramNativeAttribs = 34990, ProgramNativeAttribsArb = 34990, MaxProgramNativeAttribs = 34991, MaxProgramNativeAttribsArb = 34991, ProgramAddressRegisters = 34992, ProgramAddressRegistersArb = 34992, MaxProgramAddressRegisters = 34993, MaxProgramAddressRegistersArb = 34993, ProgramNativeAddressRegisters = 34994, ProgramNativeAddressRegistersArb = 34994, MaxProgramNativeAddressRegisters = 34995, MaxProgramNativeAddressRegistersArb = 34995, MaxProgramLocalParameters = 34996, MaxProgramLocalParametersArb = 34996, MaxProgramEnvParameters = 34997, MaxProgramEnvParametersArb = 34997, ProgramUnderNativeLimits = 34998, ProgramUnderNativeLimitsArb = 34998, TransposeCurrentMatrixArb = 34999, ReadOnly = 35000, ReadOnlyArb = 35000, WriteOnly = 35001, WriteOnlyArb = 35001, WriteOnlyOes = 35001, ReadWrite = 35002, ReadWriteArb = 35002, BufferAccess = 35003, BufferAccessArb = 35003, BufferAccessOes = 35003, BufferMapped = 35004, BufferMappedArb = 35004, BufferMappedOes = 35004, BufferMapPointer = 35005, BufferMapPointerArb = 35005, BufferMapPointerOes = 35005, WriteDiscardNv = 35006, TimeElapsed = 35007, TimeElapsedExt = 35007, Matrix0 = 35008, Matrix0Arb = 35008, Matrix1 = 35009, Matrix1Arb = 35009, Matrix2 = 35010, Matrix2Arb = 35010, Matrix3 = 35011, Matrix3Arb = 35011, Matrix4 = 35012, Matrix4Arb = 35012, Matrix5 = 35013, Matrix5Arb = 35013, Matrix6 = 35014, Matrix6Arb = 35014, Matrix7 = 35015, Matrix7Arb = 35015, Matrix8 = 35016, Matrix8Arb = 35016, Matrix9 = 35017, Matrix9Arb = 35017, Matrix10 = 35018, Matrix10Arb = 35018, Matrix11 = 35019, Matrix11Arb = 35019, Matrix12 = 35020, Matrix12Arb = 35020, Matrix13 = 35021, Matrix13Arb = 35021, Matrix14 = 35022, Matrix14Arb = 35022, Matrix15 = 35023, Matrix15Arb = 35023, Matrix16 = 35024, Matrix16Arb = 35024, Matrix17 = 35025, Matrix17Arb = 35025, Matrix18 = 35026, Matrix18Arb = 35026, Matrix19 = 35027, Matrix19Arb = 35027, Matrix20 = 35028, Matrix20Arb = 35028, Matrix21 = 35029, Matrix21Arb = 35029, Matrix22 = 35030, Matrix22Arb = 35030, Matrix23 = 35031, Matrix23Arb = 35031, Matrix24 = 35032, Matrix24Arb = 35032, Matrix25 = 35033, Matrix25Arb = 35033, Matrix26 = 35034, Matrix26Arb = 35034, Matrix27 = 35035, Matrix27Arb = 35035, Matrix28 = 35036, Matrix28Arb = 35036, Matrix29 = 35037, Matrix29Arb = 35037, Matrix30 = 35038, Matrix30Arb = 35038, Matrix31 = 35039, Matrix31Arb = 35039, StreamDraw = 35040, StreamDrawArb = 35040, StreamRead = 35041, StreamReadArb = 35041, StreamCopy = 35042, StreamCopyArb = 35042, StaticDraw = 35044, StaticDrawArb = 35044, StaticRead = 35045, StaticReadArb = 35045, StaticCopy = 35046, StaticCopyArb = 35046, DynamicDraw = 35048, DynamicDrawArb = 35048, DynamicRead = 35049, DynamicReadArb = 35049, DynamicCopy = 35050, DynamicCopyArb = 35050, PixelPackBuffer = 35051, PixelPackBufferArb = 35051, PixelPackBufferExt = 35051, PixelUnpackBuffer = 35052, PixelUnpackBufferArb = 35052, PixelUnpackBufferExt = 35052, PixelPackBufferBinding = 35053, PixelPackBufferBindingArb = 35053, PixelPackBufferBindingExt = 35053, PixelUnpackBufferBinding = 35055, PixelUnpackBufferBindingArb = 35055, PixelUnpackBufferBindingExt = 35055, Depth24Stencil8 = 35056, Depth24Stencil8Ext = 35056, Depth24Stencil8Oes = 35056, TextureStencilSize = 35057, TextureStencilSizeExt = 35057, StencilTagBitsExt = 35058, StencilClearTagValueExt = 35059, MaxProgramExecInstructionsNv = 35060, MaxProgramCallDepthNv = 35061, MaxProgramIfDepthNv = 35062, MaxProgramLoopDepthNv = 35063, MaxProgramLoopCountNv = 35064, Src1Color = 35065, OneMinusSrc1Color = 35066, OneMinusSrc1Alpha = 35067, MaxDualSourceDrawBuffers = 35068, VertexAttribArrayInteger = 35069, VertexAttribArrayIntegerNv = 35069, ArrayDivisor = 35070, VertexAttribArrayDivisor = 35070, VertexAttribArrayDivisorArb = 35070, MaxArrayTextureLayers = 35071, MaxArrayTextureLayersExt = 35071, MinProgramTexelOffset = 35076, MinProgramTexelOffsetNv = 35076, MaxProgramTexelOffset = 35077, MaxProgramTexelOffsetNv = 35077, ProgramAttribComponentsNv = 35078, ProgramResultComponentsNv = 35079, MaxProgramAttribComponentsNv = 35080, MaxProgramResultComponentsNv = 35081, StencilTestTwoSideExt = 35088, ActiveStencilFaceExt = 35089, MirrorClampToBorderExt = 35090, SamplesPassed = 35092, SamplesPassedArb = 35092, GeometryVerticesOut = 35094, GeometryInputType = 35095, GeometryOutputType = 35096, SamplerBinding = 35097, ClampVertexColor = 35098, ClampVertexColorArb = 35098, ClampFragmentColor = 35099, ClampFragmentColorArb = 35099, ClampReadColor = 35100, ClampReadColorArb = 35100, FixedOnly = 35101, FixedOnlyArb = 35101, TessControlProgramNv = 35102, TessEvaluationProgramNv = 35103, FragmentShaderAti = 35104, Reg0Ati = 35105, Reg1Ati = 35106, Reg2Ati = 35107, Reg3Ati = 35108, Reg4Ati = 35109, Reg5Ati = 35110, Reg6Ati = 35111, Reg7Ati = 35112, Reg8Ati = 35113, Reg9Ati = 35114, Reg10Ati = 35115, Reg11Ati = 35116, Reg12Ati = 35117, Reg13Ati = 35118, Reg14Ati = 35119, Reg15Ati = 35120, Reg16Ati = 35121, Reg17Ati = 35122, Reg18Ati = 35123, Reg19Ati = 35124, Reg20Ati = 35125, Reg21Ati = 35126, Reg22Ati = 35127, Reg23Ati = 35128, Reg24Ati = 35129, Reg25Ati = 35130, Reg26Ati = 35131, Reg27Ati = 35132, Reg28Ati = 35133, Reg29Ati = 35134, Reg30Ati = 35135, Reg31Ati = 35136, Con0Ati = 35137, Con1Ati = 35138, Con2Ati = 35139, Con3Ati = 35140, Con4Ati = 35141, Con5Ati = 35142, Con6Ati = 35143, Con7Ati = 35144, Con8Ati = 35145, Con9Ati = 35146, Con10Ati = 35147, Con11Ati = 35148, Con12Ati = 35149, Con13Ati = 35150, Con14Ati = 35151, Con15Ati = 35152, Con16Ati = 35153, Con17Ati = 35154, Con18Ati = 35155, Con19Ati = 35156, Con20Ati = 35157, Con21Ati = 35158, Con22Ati = 35159, Con23Ati = 35160, Con24Ati = 35161, Con25Ati = 35162, Con26Ati = 35163, Con27Ati = 35164, Con28Ati = 35165, Con29Ati = 35166, Con30Ati = 35167, Con31Ati = 35168, MovAti = 35169, AddAti = 35171, MulAti = 35172, SubAti = 35173, Dot3Ati = 35174, Dot4Ati = 35175, MadAti = 35176, LerpAti = 35177, CndAti = 35178, Cnd0Ati = 35179, Dot2AddAti = 35180, SecondaryInterpolatorAti = 35181, NumFragmentRegistersAti = 35182, NumFragmentConstantsAti = 35183, NumPassesAti = 35184, NumInstructionsPerPassAti = 35185, NumInstructionsTotalAti = 35186, NumInputInterpolatorComponentsAti = 35187, NumLoopbackComponentsAti = 35188, ColorAlphaPairingAti = 35189, SwizzleStrAti = 35190, SwizzleStqAti = 35191, SwizzleStrDrAti = 35192, SwizzleStqDqAti = 35193, SwizzleStrqAti = 35194, SwizzleStrqDqAti = 35195, InterlaceOml = 35200, InterlaceReadOml = 35201, FormatSubsample2424Oml = 35202, FormatSubsample244244Oml = 35203, PackResampleOml = 35204, UnpackResampleOml = 35205, ResampleReplicateOml = 35206, ResampleZeroFillOml = 35207, ResampleAverageOml = 35208, ResampleDecimateOml = 35209, PointSizeArrayTypeOes = 35210, PointSizeArrayStrideOes = 35211, PointSizeArrayPointerOes = 35212, ModelviewMatrixFloatAsIntBitsOes = 35213, ProjectionMatrixFloatAsIntBitsOes = 35214, TextureMatrixFloatAsIntBitsOes = 35215, VertexAttribMap1Apple = 35328, VertexAttribMap2Apple = 35329, VertexAttribMap1SizeApple = 35330, VertexAttribMap1CoeffApple = 35331, VertexAttribMap1OrderApple = 35332, VertexAttribMap1DomainApple = 35333, VertexAttribMap2SizeApple = 35334, VertexAttribMap2CoeffApple = 35335, VertexAttribMap2OrderApple = 35336, VertexAttribMap2DomainApple = 35337, DrawPixelsApple = 35338, FenceApple = 35339, ElementArrayApple = 35340, ElementArrayTypeApple = 35341, ElementArrayPointerApple = 35342, ColorFloatApple = 35343, UniformBuffer = 35345, BufferSerializedModifyApple = 35346, BufferFlushingUnmapApple = 35347, AuxDepthStencilApple = 35348, PackRowBytesApple = 35349, UnpackRowBytesApple = 35350, ReleasedApple = 35353, VolatileApple = 35354, RetainedApple = 35355, UndefinedApple = 35356, PurgeableApple = 35357, Rgb422Apple = 35359, UniformBufferBinding = 35368, UniformBufferStart = 35369, UniformBufferSize = 35370, MaxVertexUniformBlocks = 35371, MaxGeometryUniformBlocks = 35372, MaxFragmentUniformBlocks = 35373, MaxCombinedUniformBlocks = 35374, MaxUniformBufferBindings = 35375, MaxUniformBlockSize = 35376, MaxCombinedVertexUniformComponents = 35377, MaxCombinedGeometryUniformComponents = 35378, MaxCombinedFragmentUniformComponents = 35379, UniformBufferOffsetAlignment = 35380, ActiveUniformBlockMaxNameLength = 35381, ActiveUniformBlocks = 35382, UniformType = 35383, UniformSize = 35384, UniformNameLength = 35385, UniformBlockIndex = 35386, UniformOffset = 35387, UniformArrayStride = 35388, UniformMatrixStride = 35389, UniformIsRowMajor = 35390, UniformBlockBinding = 35391, UniformBlockDataSize = 35392, UniformBlockNameLength = 35393, UniformBlockActiveUniforms = 35394, UniformBlockActiveUniformIndices = 35395, UniformBlockReferencedByVertexShader = 35396, UniformBlockReferencedByGeometryShader = 35397, UniformBlockReferencedByFragmentShader = 35398, FragmentShader = 35632, FragmentShaderArb = 35632, VertexShader = 35633, VertexShaderArb = 35633, ProgramObjectArb = 35648, ShaderObjectArb = 35656, MaxFragmentUniformComponents = 35657, MaxFragmentUniformComponentsArb = 35657, MaxVertexUniformComponents = 35658, MaxVertexUniformComponentsArb = 35658, MaxVaryingComponents = 35659, MaxVaryingComponentsExt = 35659, MaxVaryingFloats = 35659, MaxVaryingFloatsArb = 35659, MaxVertexTextureImageUnits = 35660, MaxVertexTextureImageUnitsArb = 35660, MaxCombinedTextureImageUnits = 35661, MaxCombinedTextureImageUnitsArb = 35661, ObjectTypeArb = 35662, ObjectSubtypeArb = 35663, ShaderType = 35663, FloatVec2 = 35664, FloatVec2Arb = 35664, FloatVec3 = 35665, FloatVec3Arb = 35665, FloatVec4 = 35666, FloatVec4Arb = 35666, IntVec2 = 35667, IntVec2Arb = 35667, IntVec3 = 35668, IntVec3Arb = 35668, IntVec4 = 35669, IntVec4Arb = 35669, Bool = 35670, BoolArb = 35670, BoolVec2 = 35671, BoolVec2Arb = 35671, BoolVec3 = 35672, BoolVec3Arb = 35672, BoolVec4 = 35673, BoolVec4Arb = 35673, FloatMat2 = 35674, FloatMat2Arb = 35674, FloatMat3 = 35675, FloatMat3Arb = 35675, FloatMat4 = 35676, FloatMat4Arb = 35676, Sampler1D = 35677, Sampler1DArb = 35677, Sampler2D = 35678, Sampler2DArb = 35678, Sampler3D = 35679, Sampler3DArb = 35679, Sampler3DOes = 35679, SamplerCube = 35680, SamplerCubeArb = 35680, Sampler1DShadow = 35681, Sampler1DShadowArb = 35681, Sampler2DShadow = 35682, Sampler2DShadowArb = 35682, Sampler2DRect = 35683, Sampler2DRectArb = 35683, Sampler2DRectShadow = 35684, Sampler2DRectShadowArb = 35684, FloatMat2x3 = 35685, FloatMat2x4 = 35686, FloatMat3x2 = 35687, FloatMat3x4 = 35688, FloatMat4x2 = 35689, FloatMat4x3 = 35690, DeleteStatus = 35712, ObjectDeleteStatusArb = 35712, CompileStatus = 35713, ObjectCompileStatusArb = 35713, LinkStatus = 35714, ObjectLinkStatusArb = 35714, ObjectValidateStatusArb = 35715, ValidateStatus = 35715, InfoLogLength = 35716, ObjectInfoLogLengthArb = 35716, AttachedShaders = 35717, ObjectAttachedObjectsArb = 35717, ActiveUniforms = 35718, ObjectActiveUniformsArb = 35718, ActiveUniformMaxLength = 35719, ObjectActiveUniformMaxLengthArb = 35719, ObjectShaderSourceLengthArb = 35720, ShaderSourceLength = 35720, ActiveAttributes = 35721, ObjectActiveAttributesArb = 35721, ActiveAttributeMaxLength = 35722, ObjectActiveAttributeMaxLengthArb = 35722, FragmentShaderDerivativeHint = 35723, FragmentShaderDerivativeHintArb = 35723, FragmentShaderDerivativeHintOes = 35723, ShadingLanguageVersion = 35724, ShadingLanguageVersionArb = 35724, ActiveProgramExt = 35725, CurrentProgram = 35725, Palette4Rgb8Oes = 35728, Palette4Rgba8Oes = 35729, Palette4R5G6B5Oes = 35730, Palette4Rgba4Oes = 35731, Palette4Rgb5A1Oes = 35732, Palette8Rgb8Oes = 35733, Palette8Rgba8Oes = 35734, Palette8R5G6B5Oes = 35735, Palette8Rgba4Oes = 35736, Palette8Rgb5A1Oes = 35737, ImplementationColorReadType = 35738, ImplementationColorReadTypeOes = 35738, ImplementationColorReadFormat = 35739, ImplementationColorReadFormatOes = 35739, PointSizeArrayOes = 35740, TextureCropRectOes = 35741, MatrixIndexArrayBufferBindingOes = 35742, PointSizeArrayBufferBindingOes = 35743, FragmentProgramPositionMesa = 35760, FragmentProgramCallbackMesa = 35761, FragmentProgramCallbackFuncMesa = 35762, FragmentProgramCallbackDataMesa = 35763, VertexProgramCallbackMesa = 35764, VertexProgramPositionMesa = 35764, VertexProgramCallbackFuncMesa = 35766, VertexProgramCallbackDataMesa = 35767, CounterTypeAmd = 35776, CounterRangeAmd = 35777, UnsignedInt64Amd = 35778, PercentageAmd = 35779, PerfmonResultAvailableAmd = 35780, PerfmonResultSizeAmd = 35781, PerfmonResultAmd = 35782, TextureWidthQcom = 35794, TextureHeightQcom = 35795, TextureDepthQcom = 35796, TextureInternalFormatQcom = 35797, TextureFormatQcom = 35798, TextureTypeQcom = 35799, TextureImageValidQcom = 35800, TextureNumLevelsQcom = 35801, TextureTargetQcom = 35802, TextureObjectValidQcom = 35803, StateRestore = 35804, CompressedRgbPvrtc4Bppv1Img = 35840, CompressedRgbPvrtc2Bppv1Img = 35841, CompressedRgbaPvrtc4Bppv1Img = 35842, CompressedRgbaPvrtc2Bppv1Img = 35843, ModulateColorImg = 35844, RecipAddSignedAlphaImg = 35845, TextureAlphaModulateImg = 35846, FactorAlphaModulateImg = 35847, FragmentAlphaModulateImg = 35848, AddBlendImg = 35849, SgxBinaryImg = 35850, TextureRedType = 35856, TextureRedTypeArb = 35856, TextureGreenType = 35857, TextureGreenTypeArb = 35857, TextureBlueType = 35858, TextureBlueTypeArb = 35858, TextureAlphaType = 35859, TextureAlphaTypeArb = 35859, TextureLuminanceType = 35860, TextureLuminanceTypeArb = 35860, TextureIntensityType = 35861, TextureIntensityTypeArb = 35861, TextureDepthType = 35862, TextureDepthTypeArb = 35862, UnsignedNormalized = 35863, UnsignedNormalizedArb = 35863, Texture1DArray = 35864, Texture1DArrayExt = 35864, ProxyTexture1DArray = 35865, ProxyTexture1DArrayExt = 35865, Texture2DArray = 35866, Texture2DArrayExt = 35866, ProxyTexture2DArray = 35867, ProxyTexture2DArrayExt = 35867, TextureBinding1DArray = 35868, TextureBinding1DArrayExt = 35868, TextureBinding2DArray = 35869, TextureBinding2DArrayExt = 35869, GeometryProgramNv = 35878, MaxProgramOutputVerticesNv = 35879, MaxProgramTotalOutputComponentsNv = 35880, MaxGeometryTextureImageUnits = 35881, MaxGeometryTextureImageUnitsArb = 35881, MaxGeometryTextureImageUnitsExt = 35881, TextureBuffer = 35882, TextureBufferArb = 35882, TextureBufferExt = 35882, MaxTextureBufferSize = 35883, MaxTextureBufferSizeArb = 35883, MaxTextureBufferSizeExt = 35883, TextureBindingBuffer = 35884, TextureBindingBufferArb = 35884, TextureBindingBufferExt = 35884, TextureBufferDataStoreBinding = 35885, TextureBufferDataStoreBindingArb = 35885, TextureBufferDataStoreBindingExt = 35885, TextureBufferFormat = 35886, TextureBufferFormatArb = 35886, TextureBufferFormatExt = 35886, AnySamplesPassed = 35887, SampleShading = 35894, SampleShadingArb = 35894, MinSampleShadingValue = 35895, MinSampleShadingValueArb = 35895, R11fG11fB10f = 35898, R11fG11fB10fExt = 35898, UnsignedInt10F11F11FRev = 35899, UnsignedInt10F11F11FRevExt = 35899, RgbaSignedComponentsExt = 35900, Rgb9E5 = 35901, Rgb9E5Ext = 35901, UnsignedInt5999Rev = 35902, UnsignedInt5999RevExt = 35902, TextureSharedSize = 35903, TextureSharedSizeExt = 35903, Srgb = 35904, SrgbExt = 35904, Srgb8 = 35905, Srgb8Ext = 35905, SrgbAlpha = 35906, SrgbAlphaExt = 35906, Srgb8Alpha8 = 35907, Srgb8Alpha8Ext = 35907, SluminanceAlpha = 35908, SluminanceAlphaExt = 35908, Sluminance8Alpha8 = 35909, Sluminance8Alpha8Ext = 35909, Sluminance = 35910, SluminanceExt = 35910, Sluminance8 = 35911, Sluminance8Ext = 35911, CompressedSrgb = 35912, CompressedSrgbExt = 35912, CompressedSrgbAlpha = 35913, CompressedSrgbAlphaExt = 35913, CompressedSluminance = 35914, CompressedSluminanceExt = 35914, CompressedSluminanceAlpha = 35915, CompressedSluminanceAlphaExt = 35915, CompressedSrgbS3tcDxt1Ext = 35916, CompressedSrgbAlphaS3tcDxt1Ext = 35917, CompressedSrgbAlphaS3tcDxt3Ext = 35918, CompressedSrgbAlphaS3tcDxt5Ext = 35919, CompressedLuminanceLatc1Ext = 35952, CompressedSignedLuminanceLatc1Ext = 35953, CompressedLuminanceAlphaLatc2Ext = 35954, CompressedSignedLuminanceAlphaLatc2Ext = 35955, TessControlProgramParameterBufferNv = 35956, TessEvaluationProgramParameterBufferNv = 35957, TransformFeedbackVaryingMaxLength = 35958, TransformFeedbackVaryingMaxLengthExt = 35958, BackPrimaryColorNv = 35959, BackSecondaryColorNv = 35960, TextureCoordNv = 35961, ClipDistanceNv = 35962, VertexIdNv = 35963, PrimitiveIdNv = 35964, GenericAttribNv = 35965, TransformFeedbackAttribsNv = 35966, TransformFeedbackBufferMode = 35967, TransformFeedbackBufferModeExt = 35967, TransformFeedbackBufferModeNv = 35967, MaxTransformFeedbackSeparateComponents = 35968, MaxTransformFeedbackSeparateComponentsExt = 35968, MaxTransformFeedbackSeparateComponentsNv = 35968, ActiveVaryingsNv = 35969, ActiveVaryingMaxLengthNv = 35970, TransformFeedbackVaryings = 35971, TransformFeedbackVaryingsExt = 35971, TransformFeedbackVaryingsNv = 35971, TransformFeedbackBufferStart = 35972, TransformFeedbackBufferStartExt = 35972, TransformFeedbackBufferStartNv = 35972, TransformFeedbackBufferSize = 35973, TransformFeedbackBufferSizeExt = 35973, TransformFeedbackBufferSizeNv = 35973, TransformFeedbackRecordNv = 35974, PrimitivesGenerated = 35975, PrimitivesGeneratedExt = 35975, PrimitivesGeneratedNv = 35975, TransformFeedbackPrimitivesWritten = 35976, TransformFeedbackPrimitivesWrittenExt = 35976, TransformFeedbackPrimitivesWrittenNv = 35976, RasterizerDiscard = 35977, RasterizerDiscardExt = 35977, RasterizerDiscardNv = 35977, MaxTransformFeedbackInterleavedAttribsNv = 35978, MaxTransformFeedbackInterleavedComponents = 35978, MaxTransformFeedbackInterleavedComponentsExt = 35978, MaxTransformFeedbackSeparateAttribs = 35979, MaxTransformFeedbackSeparateAttribsExt = 35979, MaxTransformFeedbackSeparateAttribsNv = 35979, InterleavedAttribs = 35980, InterleavedAttribsExt = 35980, InterleavedAttribsNv = 35980, SeparateAttribs = 35981, SeparateAttribsExt = 35981, SeparateAttribsNv = 35981, TransformFeedbackBuffer = 35982, TransformFeedbackBufferExt = 35982, TransformFeedbackBufferNv = 35982, TransformFeedbackBufferBinding = 35983, TransformFeedbackBufferBindingExt = 35983, TransformFeedbackBufferBindingNv = 35983, AtcRgbAmd = 35986, AtcRgbaExplicitAlphaAmd = 35987, PointSpriteCoordOrigin = 36000, LowerLeft = 36001, UpperLeft = 36002, StencilBackRef = 36003, StencilBackValueMask = 36004, StencilBackWritemask = 36005, DrawFramebufferBinding = 36006, DrawFramebufferBindingExt = 36006, FramebufferBinding = 36006, FramebufferBindingAngle = 36006, FramebufferBindingExt = 36006, FramebufferBindingOes = 36006, RenderbufferBinding = 36007, RenderbufferBindingAngle = 36007, RenderbufferBindingExt = 36007, RenderbufferBindingOes = 36007, ReadFramebuffer = 36008, ReadFramebufferAngle = 36008, ReadFramebufferExt = 36008, DrawFramebuffer = 36009, DrawFramebufferAngle = 36009, DrawFramebufferExt = 36009, ReadFramebufferBinding = 36010, ReadFramebufferBindingExt = 36010, RenderbufferCoverageSamplesNv = 36011, RenderbufferSamples = 36011, RenderbufferSamplesAngle = 36011, RenderbufferSamplesExt = 36011, DepthComponent32f = 36012, Depth32fStencil8 = 36013, FramebufferAttachmentObjectType = 36048, FramebufferAttachmentObjectTypeExt = 36048, FramebufferAttachmentObjectTypeOes = 36048, FramebufferAttachmentObjectName = 36049, FramebufferAttachmentObjectNameExt = 36049, FramebufferAttachmentObjectNameOes = 36049, FramebufferAttachmentTextureLevel = 36050, FramebufferAttachmentTextureLevelExt = 36050, FramebufferAttachmentTextureLevelOes = 36050, FramebufferAttachmentTextureCubeMapFace = 36051, FramebufferAttachmentTextureCubeMapFaceExt = 36051, FramebufferAttachmentTextureCubeMapFaceOes = 36051, FramebufferAttachmentTexture3DZoffsetExt = 36052, FramebufferAttachmentTexture3DZoffsetOes = 36052, FramebufferAttachmentTextureLayer = 36052, FramebufferAttachmentTextureLayerExt = 36052, FramebufferComplete = 36053, FramebufferCompleteExt = 36053, FramebufferCompleteOes = 36053, FramebufferIncompleteAttachment = 36054, FramebufferIncompleteAttachmentExt = 36054, FramebufferIncompleteAttachmentOes = 36054, FramebufferIncompleteMissingAttachment = 36055, FramebufferIncompleteMissingAttachmentExt = 36055, FramebufferIncompleteMissingAttachmentOes = 36055, FramebufferIncompleteDimensionsExt = 36057, FramebufferIncompleteDimensionsOes = 36057, FramebufferIncompleteFormatsExt = 36058, FramebufferIncompleteFormatsOes = 36058, FramebufferIncompleteDrawBuffer = 36059, FramebufferIncompleteDrawBufferExt = 36059, FramebufferIncompleteDrawBufferOes = 36059, FramebufferIncompleteReadBuffer = 36060, FramebufferIncompleteReadBufferExt = 36060, FramebufferIncompleteReadBufferOes = 36060, FramebufferUnsupported = 36061, FramebufferUnsupportedExt = 36061, FramebufferUnsupportedOes = 36061, MaxColorAttachments = 36063, MaxColorAttachmentsExt = 36063, ColorAttachment0 = 36064, ColorAttachment0Ext = 36064, ColorAttachment0Oes = 36064, ColorAttachment1 = 36065, ColorAttachment1Ext = 36065, ColorAttachment2 = 36066, ColorAttachment2Ext = 36066, ColorAttachment3 = 36067, ColorAttachment3Ext = 36067, ColorAttachment4 = 36068, ColorAttachment4Ext = 36068, ColorAttachment5 = 36069, ColorAttachment5Ext = 36069, ColorAttachment6 = 36070, ColorAttachment6Ext = 36070, ColorAttachment7 = 36071, ColorAttachment7Ext = 36071, ColorAttachment8 = 36072, ColorAttachment8Ext = 36072, ColorAttachment9 = 36073, ColorAttachment9Ext = 36073, ColorAttachment10 = 36074, ColorAttachment10Ext = 36074, ColorAttachment11 = 36075, ColorAttachment11Ext = 36075, ColorAttachment12 = 36076, ColorAttachment12Ext = 36076, ColorAttachment13 = 36077, ColorAttachment13Ext = 36077, ColorAttachment14 = 36078, ColorAttachment14Ext = 36078, ColorAttachment15 = 36079, ColorAttachment15Ext = 36079, DepthAttachment = 36096, DepthAttachmentExt = 36096, DepthAttachmentOes = 36096, StencilAttachment = 36128, StencilAttachmentExt = 36128, StencilAttachmentOes = 36128, Framebuffer = 36160, FramebufferExt = 36160, FramebufferOes = 36160, Renderbuffer = 36161, RenderbufferExt = 36161, RenderbufferOes = 36161, RenderbufferWidth = 36162, RenderbufferWidthExt = 36162, RenderbufferWidthOes = 36162, RenderbufferHeight = 36163, RenderbufferHeightExt = 36163, RenderbufferHeightOes = 36163, RenderbufferInternalFormat = 36164, RenderbufferInternalFormatExt = 36164, RenderbufferInternalFormatOes = 36164, StencilIndex1 = 36166, StencilIndex1Ext = 36166, StencilIndex1Oes = 36166, StencilIndex4 = 36167, StencilIndex4Ext = 36167, StencilIndex4Oes = 36167, StencilIndex8 = 36168, StencilIndex8Ext = 36168, StencilIndex8Oes = 36168, StencilIndex16 = 36169, StencilIndex16Ext = 36169, RenderbufferRedSize = 36176, RenderbufferRedSizeExt = 36176, RenderbufferRedSizeOes = 36176, RenderbufferGreenSize = 36177, RenderbufferGreenSizeExt = 36177, RenderbufferGreenSizeOes = 36177, RenderbufferBlueSize = 36178, RenderbufferBlueSizeExt = 36178, RenderbufferBlueSizeOes = 36178, RenderbufferAlphaSize = 36179, RenderbufferAlphaSizeExt = 36179, RenderbufferAlphaSizeOes = 36179, RenderbufferDepthSize = 36180, RenderbufferDepthSizeExt = 36180, RenderbufferDepthSizeOes = 36180, RenderbufferStencilSize = 36181, RenderbufferStencilSizeExt = 36181, RenderbufferStencilSizeOes = 36181, FramebufferIncompleteMultisample = 36182, FramebufferIncompleteMultisampleAngle = 36182, FramebufferIncompleteMultisampleExt = 36182, MaxSamples = 36183, MaxSamplesAngle = 36183, MaxSamplesExt = 36183, TextureGenStrOes = 36192, HalfFloatOes = 36193, Rgb565Oes = 36194, Etc1Rgb8Oes = 36196, TextureExternalOes = 36197, SamplerExternalOes = 36198, TextureBindingExternalOes = 36199, RequiredTextureImageUnitsOes = 36200, Rgba32ui = 36208, Rgba32uiExt = 36208, Rgb32ui = 36209, Rgb32uiExt = 36209, Alpha32uiExt = 36210, Intensity32uiExt = 36211, Luminance32uiExt = 36212, LuminanceAlpha32uiExt = 36213, Rgba16ui = 36214, Rgba16uiExt = 36214, Rgb16ui = 36215, Rgb16uiExt = 36215, Alpha16uiExt = 36216, Intensity16uiExt = 36217, Luminance16uiExt = 36218, LuminanceAlpha16uiExt = 36219, Rgba8ui = 36220, Rgba8uiExt = 36220, Rgb8ui = 36221, Rgb8uiExt = 36221, Alpha8uiExt = 36222, Intensity8uiExt = 36223, Luminance8uiExt = 36224, LuminanceAlpha8uiExt = 36225, Rgba32i = 36226, Rgba32iExt = 36226, Rgb32i = 36227, Rgb32iExt = 36227, Alpha32iExt = 36228, Intensity32iExt = 36229, Luminance32iExt = 36230, LuminanceAlpha32iExt = 36231, Rgba16i = 36232, Rgba16iExt = 36232, Rgb16i = 36233, Rgb16iExt = 36233, Alpha16iExt = 36234, Intensity16iExt = 36235, Luminance16iExt = 36236, LuminanceAlpha16iExt = 36237, Rgba8i = 36238, Rgba8iExt = 36238, Rgb8i = 36239, Rgb8iExt = 36239, Alpha8iExt = 36240, Intensity8iExt = 36241, Luminance8iExt = 36242, LuminanceAlpha8iExt = 36243, RedInteger = 36244, RedIntegerExt = 36244, GreenInteger = 36245, GreenIntegerExt = 36245, BlueInteger = 36246, BlueIntegerExt = 36246, AlphaInteger = 36247, AlphaIntegerExt = 36247, RgbInteger = 36248, RgbIntegerExt = 36248, RgbaInteger = 36249, RgbaIntegerExt = 36249, BgrInteger = 36250, BgrIntegerExt = 36250, BgraInteger = 36251, BgraIntegerExt = 36251, LuminanceIntegerExt = 36252, LuminanceAlphaIntegerExt = 36253, RgbaIntegerModeExt = 36254, Int2101010Rev = 36255, MaxProgramParameterBufferBindingsNv = 36256, MaxProgramParameterBufferSizeNv = 36257, VertexProgramParameterBufferNv = 36258, GeometryProgramParameterBufferNv = 36259, FragmentProgramParameterBufferNv = 36260, MaxProgramGenericAttribsNv = 36261, MaxProgramGenericResultsNv = 36262, FramebufferAttachmentLayered = 36263, FramebufferAttachmentLayeredArb = 36263, FramebufferAttachmentLayeredExt = 36263, FramebufferIncompleteLayerTargets = 36264, FramebufferIncompleteLayerTargetsArb = 36264, FramebufferIncompleteLayerTargetsExt = 36264, FramebufferIncompleteLayerCount = 36265, FramebufferIncompleteLayerCountArb = 36265, FramebufferIncompleteLayerCountExt = 36265, LayerNv = 36266, DepthComponent32fNv = 36267, Depth32fStencil8Nv = 36268, Float32UnsignedInt248Rev = 36269, Float32UnsignedInt248RevNv = 36269, ShaderIncludeArb = 36270, DepthBufferFloatModeNv = 36271, FramebufferSrgb = 36281, FramebufferSrgbExt = 36281, FramebufferSrgbCapableExt = 36282, CompressedRedRgtc1 = 36283, CompressedRedRgtc1Ext = 36283, CompressedSignedRedRgtc1 = 36284, CompressedSignedRedRgtc1Ext = 36284, CompressedRedGreenRgtc2Ext = 36285, CompressedRgRgtc2 = 36285, CompressedSignedRedGreenRgtc2Ext = 36286, CompressedSignedRgRgtc2 = 36286, Sampler1DArray = 36288, Sampler1DArrayExt = 36288, Sampler2DArray = 36289, Sampler2DArrayExt = 36289, SamplerBuffer = 36290, SamplerBufferExt = 36290, Sampler1DArrayShadow = 36291, Sampler1DArrayShadowExt = 36291, Sampler2DArrayShadow = 36292, Sampler2DArrayShadowExt = 36292, SamplerCubeShadow = 36293, SamplerCubeShadowExt = 36293, UnsignedIntVec2 = 36294, UnsignedIntVec2Ext = 36294, UnsignedIntVec3 = 36295, UnsignedIntVec3Ext = 36295, UnsignedIntVec4 = 36296, UnsignedIntVec4Ext = 36296, IntSampler1D = 36297, IntSampler1DExt = 36297, IntSampler2D = 36298, IntSampler2DExt = 36298, IntSampler3D = 36299, IntSampler3DExt = 36299, IntSamplerCube = 36300, IntSamplerCubeExt = 36300, IntSampler2DRect = 36301, IntSampler2DRectExt = 36301, IntSampler1DArray = 36302, IntSampler1DArrayExt = 36302, IntSampler2DArray = 36303, IntSampler2DArrayExt = 36303, IntSamplerBuffer = 36304, IntSamplerBufferExt = 36304, UnsignedIntSampler1D = 36305, UnsignedIntSampler1DExt = 36305, UnsignedIntSampler2D = 36306, UnsignedIntSampler2DExt = 36306, UnsignedIntSampler3D = 36307, UnsignedIntSampler3DExt = 36307, UnsignedIntSamplerCube = 36308, UnsignedIntSamplerCubeExt = 36308, UnsignedIntSampler2DRect = 36309, UnsignedIntSampler2DRectExt = 36309, UnsignedIntSampler1DArray = 36310, UnsignedIntSampler1DArrayExt = 36310, UnsignedIntSampler2DArray = 36311, UnsignedIntSampler2DArrayExt = 36311, UnsignedIntSamplerBuffer = 36312, UnsignedIntSamplerBufferExt = 36312, GeometryShader = 36313, GeometryShaderArb = 36313, GeometryShaderExt = 36313, GeometryVerticesOutArb = 36314, GeometryVerticesOutExt = 36314, GeometryInputTypeArb = 36315, GeometryInputTypeExt = 36315, GeometryOutputTypeArb = 36316, GeometryOutputTypeExt = 36316, MaxGeometryVaryingComponents = 36317, MaxGeometryVaryingComponentsArb = 36317, MaxGeometryVaryingComponentsExt = 36317, MaxVertexVaryingComponents = 36318, MaxVertexVaryingComponentsArb = 36318, MaxVertexVaryingComponentsExt = 36318, MaxGeometryUniformComponents = 36319, MaxGeometryUniformComponentsArb = 36319, MaxGeometryUniformComponentsExt = 36319, MaxGeometryOutputVertices = 36320, MaxGeometryOutputVerticesArb = 36320, MaxGeometryOutputVerticesExt = 36320, MaxGeometryTotalOutputComponents = 36321, MaxGeometryTotalOutputComponentsArb = 36321, MaxGeometryTotalOutputComponentsExt = 36321, MaxVertexBindableUniformsExt = 36322, MaxFragmentBindableUniformsExt = 36323, MaxGeometryBindableUniformsExt = 36324, ActiveSubroutines = 36325, ActiveSubroutineUniforms = 36326, MaxSubroutines = 36327, MaxSubroutineUniformLocations = 36328, NamedStringLengthArb = 36329, NamedStringTypeArb = 36330, MaxBindableUniformSizeExt = 36333, UniformBufferExt = 36334, UniformBufferBindingExt = 36335, LowFloat = 36336, MediumFloat = 36337, HighFloat = 36338, LowInt = 36339, MediumInt = 36340, HighInt = 36341, UnsignedInt1010102Oes = 36342, Int1010102Oes = 36343, ShaderBinaryFormats = 36344, NumShaderBinaryFormats = 36345, ShaderCompiler = 36346, MaxVertexUniformVectors = 36347, MaxVaryingVectors = 36348, MaxFragmentUniformVectors = 36349, RenderbufferColorSamplesNv = 36368, MaxMultisampleCoverageModesNv = 36369, MultisampleCoverageModesNv = 36370, QueryWait = 36371, QueryWaitNv = 36371, QueryNoWait = 36372, QueryNoWaitNv = 36372, QueryByRegionWait = 36373, QueryByRegionWaitNv = 36373, QueryByRegionNoWait = 36374, QueryByRegionNoWaitNv = 36374, MaxCombinedTessControlUniformComponents = 36382, MaxCombinedTessEvaluationUniformComponents = 36383, ColorSamplesNv = 36384, TransformFeedback = 36386, TransformFeedbackNv = 36386, TransformFeedbackBufferPaused = 36387, TransformFeedbackBufferPausedNv = 36387, TransformFeedbackBufferActive = 36388, TransformFeedbackBufferActiveNv = 36388, TransformFeedbackBinding = 36389, TransformFeedbackBindingNv = 36389, FrameNv = 36390, FieldsNv = 36391, CurrentTimeNv = 36392, Timestamp = 36392, NumFillStreamsNv = 36393, PresentTimeNv = 36394, PresentDurationNv = 36395, DepthComponent16NonlinearNv = 36396, ProgramMatrixExt = 36397, TransposeProgramMatrixExt = 36398, ProgramMatrixStackDepthExt = 36399, TextureSwizzleR = 36418, TextureSwizzleRExt = 36418, TextureSwizzleG = 36419, TextureSwizzleGExt = 36419, TextureSwizzleB = 36420, TextureSwizzleBExt = 36420, TextureSwizzleA = 36421, TextureSwizzleAExt = 36421, TextureSwizzleRgba = 36422, TextureSwizzleRgbaExt = 36422, ActiveSubroutineUniformLocations = 36423, ActiveSubroutineMaxLength = 36424, ActiveSubroutineUniformMaxLength = 36425, NumCompatibleSubroutines = 36426, CompatibleSubroutines = 36427, QuadsFollowProvokingVertexConvention = 36428, QuadsFollowProvokingVertexConventionExt = 36428, FirstVertexConvention = 36429, FirstVertexConventionExt = 36429, LastVertexConvention = 36430, LastVertexConventionExt = 36430, ProvokingVertex = 36431, ProvokingVertexExt = 36431, SamplePosition = 36432, SamplePositionNv = 36432, SampleMask = 36433, SampleMaskNv = 36433, SampleMaskValue = 36434, SampleMaskValueNv = 36434, TextureBindingRenderbufferNv = 36435, TextureRenderbufferDataStoreBindingNv = 36436, TextureRenderbufferNv = 36437, SamplerRenderbufferNv = 36438, IntSamplerRenderbufferNv = 36439, UnsignedIntSamplerRenderbufferNv = 36440, MaxSampleMaskWords = 36441, MaxSampleMaskWordsNv = 36441, MaxGeometryProgramInvocationsNv = 36442, MaxGeometryShaderInvocations = 36442, MinFragmentInterpolationOffset = 36443, MinFragmentInterpolationOffsetNv = 36443, MaxFragmentInterpolationOffset = 36444, MaxFragmentInterpolationOffsetNv = 36444, FragmentInterpolationOffsetBits = 36445, FragmentProgramInterpolationOffsetBitsNv = 36445, MinProgramTextureGatherOffset = 36446, MinProgramTextureGatherOffsetArb = 36446, MinProgramTextureGatherOffsetNv = 36446, MaxProgramTextureGatherOffset = 36447, MaxProgramTextureGatherOffsetArb = 36447, MaxProgramTextureGatherOffsetNv = 36447, MaxTransformFeedbackBuffers = 36464, MaxVertexStreams = 36465, PatchVertices = 36466, PatchDefaultInnerLevel = 36467, PatchDefaultOuterLevel = 36468, TessControlOutputVertices = 36469, TessGenMode = 36470, TessGenSpacing = 36471, TessGenVertexOrder = 36472, TessGenPointMode = 36473, Isolines = 36474, FractionalOdd = 36475, FractionalEven = 36476, MaxPatchVertices = 36477, MaxTessGenLevel = 36478, MaxTessControlUniformComponents = 36479, MaxTessEvaluationUniformComponents = 36480, MaxTessControlTextureImageUnits = 36481, MaxTessEvaluationTextureImageUnits = 36482, MaxTessControlOutputComponents = 36483, MaxTessPatchComponents = 36484, MaxTessControlTotalOutputComponents = 36485, MaxTessEvaluationOutputComponents = 36486, TessEvaluationShader = 36487, TessControlShader = 36488, MaxTessControlUniformBlocks = 36489, MaxTessEvaluationUniformBlocks = 36490, CompressedRgbaBptcUnormArb = 36492, CompressedSrgbAlphaBptcUnormArb = 36493, CompressedRgbBptcSignedFloatArb = 36494, CompressedRgbBptcUnsignedFloatArb = 36495, CoverageComponentNv = 36560, CoverageComponent4Nv = 36561, CoverageAttachmentNv = 36562, CoverageBuffersNv = 36563, CoverageSamplesNv = 36564, CoverageAllFragmentsNv = 36565, CoverageEdgeFragmentsNv = 36566, CoverageAutomaticNv = 36567, BufferGpuAddressNv = 36637, VertexAttribArrayUnifiedNv = 36638, ElementArrayUnifiedNv = 36639, VertexAttribArrayAddressNv = 36640, VertexArrayAddressNv = 36641, NormalArrayAddressNv = 36642, ColorArrayAddressNv = 36643, IndexArrayAddressNv = 36644, TextureCoordArrayAddressNv = 36645, EdgeFlagArrayAddressNv = 36646, SecondaryColorArrayAddressNv = 36647, FogCoordArrayAddressNv = 36648, ElementArrayAddressNv = 36649, VertexAttribArrayLengthNv = 36650, VertexArrayLengthNv = 36651, NormalArrayLengthNv = 36652, ColorArrayLengthNv = 36653, IndexArrayLengthNv = 36654, TextureCoordArrayLengthNv = 36655, EdgeFlagArrayLengthNv = 36656, SecondaryColorArrayLengthNv = 36657, FogCoordArrayLengthNv = 36658, ElementArrayLengthNv = 36659, GpuAddressNv = 36660, MaxShaderBufferAddressNv = 36661, CopyReadBuffer = 36662, CopyWriteBuffer = 36663, MaxImageUnitsExt = 36664, MaxCombinedImageUnitsAndFragmentOutputsExt = 36665, ImageBindingNameExt = 36666, ImageBindingLevelExt = 36667, ImageBindingLayeredExt = 36668, ImageBindingLayerExt = 36669, ImageBindingAccessExt = 36670, DrawIndirectBuffer = 36671, DrawIndirectUnifiedNv = 36672, DrawIndirectAddressNv = 36673, DrawIndirectLengthNv = 36674, DrawIndirectBufferBinding = 36675, MaxProgramSubroutineParametersNv = 36676, MaxProgramSubroutineNumNv = 36677, DoubleMat2 = 36678, DoubleMat2Ext = 36678, DoubleMat3 = 36679, DoubleMat3Ext = 36679, DoubleMat4 = 36680, DoubleMat4Ext = 36680, DoubleMat2x3 = 36681, DoubleMat2x3Ext = 36681, DoubleMat2x4 = 36682, DoubleMat2x4Ext = 36682, DoubleMat3x2 = 36683, DoubleMat3x2Ext = 36683, DoubleMat3x4 = 36684, DoubleMat3x4Ext = 36684, DoubleMat4x2 = 36685, DoubleMat4x2Ext = 36685, DoubleMat4x3 = 36686, DoubleMat4x3Ext = 36686, MaliShaderBinaryArm = 36704, RedSnorm = 36752, RgSnorm = 36753, RgbSnorm = 36754, RgbaSnorm = 36755, R8Snorm = 36756, Rg8Snorm = 36757, Rgb8Snorm = 36758, Rgba8Snorm = 36759, R16Snorm = 36760, Rg16Snorm = 36761, Rgb16Snorm = 36762, Rgba16Snorm = 36763, SignedNormalized = 36764, PrimitiveRestart = 36765, PrimitiveRestartIndex = 36766, MaxProgramTextureGatherComponents = 36767, PerfmonGlobalModeQcom = 36768, ShaderBinaryViv = 36804, Int8Nv = 36832, Int8Vec2Nv = 36833, Int8Vec3Nv = 36834, Int8Vec4Nv = 36835, Int16Nv = 36836, Int16Vec2Nv = 36837, Int16Vec3Nv = 36838, Int16Vec4Nv = 36839, Int64Vec2Nv = 36841, Int64Vec3Nv = 36842, Int64Vec4Nv = 36843, UnsignedInt8Nv = 36844, UnsignedInt8Vec2Nv = 36845, UnsignedInt8Vec3Nv = 36846, UnsignedInt8Vec4Nv = 36847, UnsignedInt16Nv = 36848, UnsignedInt16Vec2Nv = 36849, UnsignedInt16Vec3Nv = 36850, UnsignedInt16Vec4Nv = 36851, UnsignedInt64Vec2Nv = 36853, UnsignedInt64Vec3Nv = 36854, UnsignedInt64Vec4Nv = 36855, Float16Nv = 36856, Float16Vec2Nv = 36857, Float16Vec3Nv = 36858, Float16Vec4Nv = 36859, DoubleVec2 = 36860, DoubleVec2Ext = 36860, DoubleVec3 = 36861, DoubleVec3Ext = 36861, DoubleVec4 = 36862, DoubleVec4Ext = 36862, SamplerBufferAmd = 36865, IntSamplerBufferAmd = 36866, UnsignedIntSamplerBufferAmd = 36867, TessellationModeAmd = 36868, TessellationFactorAmd = 36869, DiscreteAmd = 36870, ContinuousAmd = 36871, TextureCubeMapArray = 36873, TextureCubeMapArrayArb = 36873, TextureBindingCubeMapArray = 36874, TextureBindingCubeMapArrayArb = 36874, ProxyTextureCubeMapArray = 36875, ProxyTextureCubeMapArrayArb = 36875, SamplerCubeMapArray = 36876, SamplerCubeMapArrayArb = 36876, SamplerCubeMapArrayShadow = 36877, SamplerCubeMapArrayShadowArb = 36877, IntSamplerCubeMapArray = 36878, IntSamplerCubeMapArrayArb = 36878, UnsignedIntSamplerCubeMapArray = 36879, UnsignedIntSamplerCubeMapArrayArb = 36879, AlphaSnorm = 36880, LuminanceSnorm = 36881, LuminanceAlphaSnorm = 36882, IntensitySnorm = 36883, Alpha8Snorm = 36884, Luminance8Snorm = 36885, Luminance8Alpha8Snorm = 36886, Intensity8Snorm = 36887, Alpha16Snorm = 36888, Luminance16Snorm = 36889, Luminance16Alpha16Snorm = 36890, Intensity16Snorm = 36891, DepthClampNearAmd = 36894, DepthClampFarAmd = 36895, VideoBufferNv = 36896, VideoBufferBindingNv = 36897, FieldUpperNv = 36898, FieldLowerNv = 36899, NumVideoCaptureStreamsNv = 36900, NextVideoCaptureBufferStatusNv = 36901, VideoCaptureTo422SupportedNv = 36902, LastVideoCaptureStatusNv = 36903, VideoBufferPitchNv = 36904, VideoColorConversionMatrixNv = 36905, VideoColorConversionMaxNv = 36906, VideoColorConversionMinNv = 36907, VideoColorConversionOffsetNv = 36908, VideoBufferInternalFormatNv = 36909, PartialSuccessNv = 36910, SuccessNv = 36911, FailureNv = 36912, Ycbycr8422Nv = 36913, Ycbaycr8A4224Nv = 36914, Z6y10z6cb10z6y10z6cr10422Nv = 36915, Z6y10z6cb10z6A10z6y10z6cr10z6A104224Nv = 36916, Z4y12z4cb12z4y12z4cr12422Nv = 36917, Z4y12z4cb12z4A12z4y12z4cr12z4A124224Nv = 36918, Z4y12z4cb12z4cr12444Nv = 36919, VideoCaptureFrameWidthNv = 36920, VideoCaptureFrameHeightNv = 36921, VideoCaptureFieldUpperHeightNv = 36922, VideoCaptureFieldLowerHeightNv = 36923, VideoCaptureSurfaceOriginNv = 36924, Image1DExt = 36940, Image2DExt = 36941, Image3DExt = 36942, Image2DRectExt = 36943, ImageCubeExt = 36944, ImageBufferExt = 36945, Image1DArrayExt = 36946, Image2DArrayExt = 36947, ImageCubeMapArrayExt = 36948, Image2DMultisampleExt = 36949, Image2DMultisampleArrayExt = 36950, IntImage1DExt = 36951, IntImage2DExt = 36952, IntImage3DExt = 36953, IntImage2DRectExt = 36954, IntImageCubeExt = 36955, IntImageBufferExt = 36956, IntImage1DArrayExt = 36957, IntImage2DArrayExt = 36958, IntImageCubeMapArrayExt = 36959, IntImage2DMultisampleExt = 36960, IntImage2DMultisampleArrayExt = 36961, UnsignedIntImage1DExt = 36962, UnsignedIntImage2DExt = 36963, UnsignedIntImage3DExt = 36964, UnsignedIntImage2DRectExt = 36965, UnsignedIntImageCubeExt = 36966, UnsignedIntImageBufferExt = 36967, UnsignedIntImage1DArrayExt = 36968, UnsignedIntImage2DArrayExt = 36969, UnsignedIntImageCubeMapArrayExt = 36970, UnsignedIntImage2DMultisampleExt = 36971, UnsignedIntImage2DMultisampleArrayExt = 36972, MaxImageSamplesExt = 36973, ImageBindingFormatExt = 36974, Rgb10A2ui = 36975, Texture2DMultisample = 37120, ProxyTexture2DMultisample = 37121, Texture2DMultisampleArray = 37122, ProxyTexture2DMultisampleArray = 37123, TextureBinding2DMultisample = 37124, TextureBinding2DMultisampleArray = 37125, TextureSamples = 37126, TextureFixedSampleLocations = 37127, Sampler2DMultisample = 37128, IntSampler2DMultisample = 37129, UnsignedIntSampler2DMultisample = 37130, Sampler2DMultisampleArray = 37131, IntSampler2DMultisampleArray = 37132, UnsignedIntSampler2DMultisampleArray = 37133, MaxColorTextureSamples = 37134, MaxDepthTextureSamples = 37135, MaxIntegerSamples = 37136, MaxServerWaitTimeout = 37137, ObjectType = 37138, SyncCondition = 37139, SyncStatus = 37140, SyncFlags = 37141, SyncFence = 37142, SyncGpuCommandsComplete = 37143, Unsignaled = 37144, Signaled = 37145, AlreadySignaled = 37146, TimeoutExpired = 37147, ConditionSatisfied = 37148, WaitFailed = 37149, BufferAccessFlags = 37151, BufferMapLength = 37152, BufferMapOffset = 37153, MaxVertexOutputComponents = 37154, MaxGeometryInputComponents = 37155, MaxGeometryOutputComponents = 37156, MaxFragmentInputComponents = 37157, ContextProfileMask = 37158, SgxProgramBinaryImg = 37168, RenderbufferSamplesImg = 37171, FramebufferIncompleteMultisampleImg = 37172, MaxSamplesImg = 37173, TextureSamplesImg = 37174, MaxDebugMessageLengthArb = 37187, MaxDebugLoggedMessagesAmd = 37188, MaxDebugLoggedMessagesArb = 37188, DebugLoggedMessagesAmd = 37189, DebugLoggedMessagesArb = 37189, DebugSeverityHighAmd = 37190, DebugSeverityHighArb = 37190, DebugSeverityMediumAmd = 37191, DebugSeverityMediumArb = 37191, DebugSeverityLowAmd = 37192, DebugSeverityLowArb = 37192, DebugCategoryApiErrorAmd = 37193, DebugCategoryWindowSystemAmd = 37194, DebugCategoryDeprecationAmd = 37195, DebugCategoryUndefinedBehaviorAmd = 37196, DebugCategoryPerformanceAmd = 37197, DebugCategoryShaderCompilerAmd = 37198, DebugCategoryApplicationAmd = 37199, DebugCategoryOtherAmd = 37200, DataBufferAmd = 37201, PerformanceMonitorAmd = 37202, QueryObjectAmd = 37203, VertexArrayObjectAmd = 37204, SamplerObjectAmd = 37205, TraceAllBitsMesa = 65535, AllAttribBits = -1, AllBarrierBitsExt = -1, AllShaderBits = -1, ClientAllAttribBits = -1, InvalidIndex = -1, TimeoutIgnored = -1, One = 1, True = 1, CullVertexIbm = 103050, VertexArrayListIbm = 103070, NormalArrayListIbm = 103071, ColorArrayListIbm = 103072, IndexArrayListIbm = 103073, TextureCoordArrayListIbm = 103074, EdgeFlagArrayListIbm = 103075, FogCoordinateArrayListIbm = 103076, SecondaryColorArrayListIbm = 103077, VertexArrayListStrideIbm = 103080, NormalArrayListStrideIbm = 103081, ColorArrayListStrideIbm = 103082, IndexArrayListStrideIbm = 103083, TextureCoordArrayListStrideIbm = 103084, EdgeFlagArrayListStrideIbm = 103085, FogCoordinateArrayListStrideIbm = 103086, SecondaryColorArrayListStrideIbm = 103087, NextBufferNv = 2, Two = 2, SkipComponents4Nv = 3, Three = 3, Four = 4, SkipComponents3Nv = 4, SkipComponents2Nv = 5, SkipComponents1Nv = 6 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AlphaFunction.cs ================================================ namespace OpenGL; public enum AlphaFunction { Never = 512, Less, Equal, Lequal, Greater, Notequal, Gequal, Always } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdCompressed3DcTexture.cs ================================================ namespace OpenGL; public enum AmdCompressed3DcTexture { Gl3DcXAmd = 34809, Gl3DcXyAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdCompressedAtcTexture.cs ================================================ namespace OpenGL; public enum AmdCompressedAtcTexture { AtcRgbaInterpolatedAlphaAmd = 34798, AtcRgbAmd = 35986, AtcRgbaExplicitAlphaAmd = 35987 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdConservativeDepth.cs ================================================ namespace OpenGL; public enum AmdConservativeDepth { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdDebugOutput.cs ================================================ namespace OpenGL; public enum AmdDebugOutput { MaxDebugLoggedMessagesAmd = 37188, DebugLoggedMessagesAmd, DebugSeverityHighAmd, DebugSeverityMediumAmd, DebugSeverityLowAmd, DebugCategoryApiErrorAmd, DebugCategoryWindowSystemAmd, DebugCategoryDeprecationAmd, DebugCategoryUndefinedBehaviorAmd, DebugCategoryPerformanceAmd, DebugCategoryShaderCompilerAmd, DebugCategoryApplicationAmd, DebugCategoryOtherAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdDepthClampSeparate.cs ================================================ namespace OpenGL; public enum AmdDepthClampSeparate { DepthClampNearAmd = 36894, DepthClampFarAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdDrawBuffersBlend.cs ================================================ namespace OpenGL; public enum AmdDrawBuffersBlend { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdNameGenDelete.cs ================================================ namespace OpenGL; public enum AmdNameGenDelete { DataBufferAmd = 37201, PerformanceMonitorAmd, QueryObjectAmd, VertexArrayObjectAmd, SamplerObjectAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdPerformanceMonitor.cs ================================================ namespace OpenGL; public enum AmdPerformanceMonitor { CounterTypeAmd = 35776, CounterRangeAmd, UnsignedInt64Amd, PercentageAmd, PerfmonResultAvailableAmd, PerfmonResultSizeAmd, PerfmonResultAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdProgramBinaryZ400.cs ================================================ namespace OpenGL; public enum AmdProgramBinaryZ400 { Z400BinaryAmd = 34624 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdSeamlessCubemapPerTexture.cs ================================================ namespace OpenGL; public enum AmdSeamlessCubemapPerTexture { TextureCubeMapSeamless = 34895 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdShaderStencilExport.cs ================================================ namespace OpenGL; public enum AmdShaderStencilExport { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdTextureTexture4.cs ================================================ namespace OpenGL; public enum AmdTextureTexture4 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdTransformFeedback3LinesTriangles.cs ================================================ namespace OpenGL; public enum AmdTransformFeedback3LinesTriangles { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AmdVertexShaderTesselator.cs ================================================ namespace OpenGL; public enum AmdVertexShaderTesselator { SamplerBufferAmd = 36865, IntSamplerBufferAmd, UnsignedIntSamplerBufferAmd, TessellationModeAmd, TessellationFactorAmd, DiscreteAmd, ContinuousAmd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AngleFramebufferBlit.cs ================================================ namespace OpenGL; public enum AngleFramebufferBlit { FramebufferBindingAngle = 36006, RenderbufferBindingAngle, ReadFramebufferAngle, DrawFramebufferAngle } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AngleFramebufferMultisample.cs ================================================ namespace OpenGL; public enum AngleFramebufferMultisample { RenderbufferSamplesAngle = 36011, FramebufferIncompleteMultisampleAngle = 36182, MaxSamplesAngle = 36183 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleAuxDepthStencil.cs ================================================ namespace OpenGL; public enum AppleAuxDepthStencil { AuxDepthStencilApple = 35348 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleClientStorage.cs ================================================ namespace OpenGL; public enum AppleClientStorage { UnpackClientStorageApple = 34226 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleElementArray.cs ================================================ namespace OpenGL; public enum AppleElementArray { ElementArrayApple = 35340, ElementArrayTypeApple, ElementArrayPointerApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleFence.cs ================================================ namespace OpenGL; public enum AppleFence { DrawPixelsApple = 35338, FenceApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleFloatPixels.cs ================================================ namespace OpenGL; public enum AppleFloatPixels { HalfApple = 5131, RgbaFloat32Apple = 34836, RgbFloat32Apple = 34837, AlphaFloat32Apple = 34838, IntensityFloat32Apple = 34839, LuminanceFloat32Apple = 34840, LuminanceAlphaFloat32Apple = 34841, RgbaFloat16Apple = 34842, RgbFloat16Apple = 34843, AlphaFloat16Apple = 34844, IntensityFloat16Apple = 34845, LuminanceFloat16Apple = 34846, LuminanceAlphaFloat16Apple = 34847, ColorFloatApple = 35343 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleFlushBufferRange.cs ================================================ namespace OpenGL; public enum AppleFlushBufferRange { BufferSerializedModifyApple = 35346, BufferFlushingUnmapApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleObjectPurgeable.cs ================================================ namespace OpenGL; public enum AppleObjectPurgeable { BufferObjectApple = 34227, ReleasedApple = 35353, VolatileApple = 35354, RetainedApple = 35355, UndefinedApple = 35356, PurgeableApple = 35357 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleRgb422.cs ================================================ namespace OpenGL; public enum AppleRgb422 { UnsignedShort88Apple = 34234, UnsignedShort88RevApple = 34235, Rgb422Apple = 35359 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleRowBytes.cs ================================================ namespace OpenGL; public enum AppleRowBytes { PackRowBytesApple = 35349, UnpackRowBytesApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleSpecularVector.cs ================================================ namespace OpenGL; public enum AppleSpecularVector { LightModelSpecularVectorApple = 34224 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleTextureRange.cs ================================================ namespace OpenGL; public enum AppleTextureRange { TextureRangeLengthApple = 34231, TextureRangePointerApple = 34232, TextureStorageHintApple = 34236, StoragePrivateApple = 34237, StorageCachedApple = 34238, StorageSharedApple = 34239 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleTransformHint.cs ================================================ namespace OpenGL; public enum AppleTransformHint { TransformHintApple = 34225 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleVertexArrayObject.cs ================================================ namespace OpenGL; public enum AppleVertexArrayObject { VertexArrayBindingApple = 34229 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleVertexArrayRange.cs ================================================ namespace OpenGL; public enum AppleVertexArrayRange { VertexArrayRangeApple = 34077, VertexArrayRangeLengthApple = 34078, VertexArrayStorageHintApple = 34079, VertexArrayRangePointerApple = 34081, StorageClientApple = 34228, StorageCachedApple = 34238, StorageSharedApple = 34239 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleVertexProgramEvaluators.cs ================================================ namespace OpenGL; public enum AppleVertexProgramEvaluators { VertexAttribMap1Apple = 35328, VertexAttribMap2Apple, VertexAttribMap1SizeApple, VertexAttribMap1CoeffApple, VertexAttribMap1OrderApple, VertexAttribMap1DomainApple, VertexAttribMap2SizeApple, VertexAttribMap2CoeffApple, VertexAttribMap2OrderApple, VertexAttribMap2DomainApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AppleYcbcr422.cs ================================================ namespace OpenGL; public enum AppleYcbcr422 { Ycbcr422Apple = 34233, UnsignedShort88Apple, UnsignedShort88RevApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbBlendFuncExtended.cs ================================================ namespace OpenGL; public enum ArbBlendFuncExtended { Src1Alpha = 34185, Src1Color = 35065, OneMinusSrc1Color = 35066, OneMinusSrc1Alpha = 35067, MaxDualSourceDrawBuffers = 35068 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbClEvent.cs ================================================ namespace OpenGL; public enum ArbClEvent { SyncClEventArb = 33344, SyncClEventCompleteArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbColorBufferFloat.cs ================================================ namespace OpenGL; public enum ArbColorBufferFloat { RgbaFloatModeArb = 34848, ClampVertexColorArb = 35098, ClampFragmentColorArb = 35099, ClampReadColorArb = 35100, FixedOnlyArb = 35101 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbCompatibility.cs ================================================ namespace OpenGL; public enum ArbCompatibility { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbCopyBuffer.cs ================================================ namespace OpenGL; public enum ArbCopyBuffer { CopyReadBuffer = 36662, CopyWriteBuffer } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDebugOutput.cs ================================================ namespace OpenGL; public enum ArbDebugOutput { DebugOutputSynchronousArb = 33346, DebugNextLoggedMessageLengthArb = 33347, DebugCallbackFunctionArb = 33348, DebugCallbackUserParamArb = 33349, DebugSourceApiArb = 33350, DebugSourceWindowSystemArb = 33351, DebugSourceShaderCompilerArb = 33352, DebugSourceThirdPartyArb = 33353, DebugSourceApplicationArb = 33354, DebugSourceOtherArb = 33355, DebugTypeErrorArb = 33356, DebugTypeDeprecatedBehaviorArb = 33357, DebugTypeUndefinedBehaviorArb = 33358, DebugTypePortabilityArb = 33359, DebugTypePerformanceArb = 33360, DebugTypeOtherArb = 33361, MaxDebugMessageLengthArb = 37187, MaxDebugLoggedMessagesArb = 37188, DebugLoggedMessagesArb = 37189, DebugSeverityHighArb = 37190, DebugSeverityMediumArb = 37191, DebugSeverityLowArb = 37192 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDepthBufferFloat.cs ================================================ namespace OpenGL; public enum ArbDepthBufferFloat { DepthComponent32f = 36012, Depth32fStencil8 = 36013, Float32UnsignedInt248Rev = 36269 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDepthClamp.cs ================================================ namespace OpenGL; public enum ArbDepthClamp { DepthClamp = 34383 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDepthTexture.cs ================================================ namespace OpenGL; public enum ArbDepthTexture { DepthComponent16Arb = 33189, DepthComponent24Arb = 33190, DepthComponent32Arb = 33191, TextureDepthSizeArb = 34890, DepthTextureModeArb = 34891 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDrawBuffers.cs ================================================ namespace OpenGL; public enum ArbDrawBuffers { MaxDrawBuffersArb = 34852, DrawBuffer0Arb, DrawBuffer1Arb, DrawBuffer2Arb, DrawBuffer3Arb, DrawBuffer4Arb, DrawBuffer5Arb, DrawBuffer6Arb, DrawBuffer7Arb, DrawBuffer8Arb, DrawBuffer9Arb, DrawBuffer10Arb, DrawBuffer11Arb, DrawBuffer12Arb, DrawBuffer13Arb, DrawBuffer14Arb, DrawBuffer15Arb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDrawBuffersBlend.cs ================================================ namespace OpenGL; public enum ArbDrawBuffersBlend { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDrawElementsBaseVertex.cs ================================================ namespace OpenGL; public enum ArbDrawElementsBaseVertex { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDrawIndirect.cs ================================================ namespace OpenGL; public enum ArbDrawIndirect { DrawIndirectBuffer = 36671, DrawIndirectBufferBinding = 36675 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbDrawInstanced.cs ================================================ namespace OpenGL; public enum ArbDrawInstanced { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbEs2Compatibility.cs ================================================ namespace OpenGL; public enum ArbEs2Compatibility { Fixed = 5132, ImplementationColorReadType = 35738, ImplementationColorReadFormat = 35739, LowFloat = 36336, MediumFloat = 36337, HighFloat = 36338, LowInt = 36339, MediumInt = 36340, HighInt = 36341, ShaderBinaryFormats = 36344, NumShaderBinaryFormats = 36345, ShaderCompiler = 36346, MaxVertexUniformVectors = 36347, MaxVaryingVectors = 36348, MaxFragmentUniformVectors = 36349 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbExplicitAttribLocation.cs ================================================ namespace OpenGL; public enum ArbExplicitAttribLocation { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFragmentCoordConventions.cs ================================================ namespace OpenGL; public enum ArbFragmentCoordConventions { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFragmentProgram.cs ================================================ namespace OpenGL; public enum ArbFragmentProgram { VertexProgramArb = 34336, VertexAttribArrayEnabledArb = 34338, VertexAttribArraySizeArb = 34339, VertexAttribArrayStrideArb = 34340, VertexAttribArrayTypeArb = 34341, CurrentVertexAttribArb = 34342, ProgramLengthArb = 34343, ProgramStringArb = 34344, MaxProgramMatrixStackDepthArb = 34350, MaxProgramMatricesArb = 34351, CurrentMatrixStackDepthArb = 34368, CurrentMatrixArb = 34369, VertexProgramPointSizeArb = 34370, VertexProgramTwoSideArb = 34371, VertexAttribArrayPointerArb = 34373, ProgramErrorPositionArb = 34379, ProgramBindingArb = 34423, FragmentProgramArb = 34820, ProgramAluInstructionsArb = 34821, ProgramTexInstructionsArb = 34822, ProgramTexIndirectionsArb = 34823, ProgramNativeAluInstructionsArb = 34824, ProgramNativeTexInstructionsArb = 34825, ProgramNativeTexIndirectionsArb = 34826, MaxProgramAluInstructionsArb = 34827, MaxProgramTexInstructionsArb = 34828, MaxProgramTexIndirectionsArb = 34829, MaxProgramNativeAluInstructionsArb = 34830, MaxProgramNativeTexInstructionsArb = 34831, MaxProgramNativeTexIndirectionsArb = 34832, MaxTextureCoordsArb = 34929, MaxTextureImageUnitsArb = 34930, ProgramErrorStringArb = 34932, ProgramFormatAsciiArb = 34933, ProgramFormatArb = 34934, ProgramInstructionsArb = 34976, MaxProgramInstructionsArb = 34977, ProgramNativeInstructionsArb = 34978, MaxProgramNativeInstructionsArb = 34979, ProgramTemporariesArb = 34980, MaxProgramTemporariesArb = 34981, ProgramNativeTemporariesArb = 34982, MaxProgramNativeTemporariesArb = 34983, ProgramParametersArb = 34984, MaxProgramParametersArb = 34985, ProgramNativeParametersArb = 34986, MaxProgramNativeParametersArb = 34987, ProgramAttribsArb = 34988, MaxProgramAttribsArb = 34989, ProgramNativeAttribsArb = 34990, MaxProgramNativeAttribsArb = 34991, ProgramAddressRegistersArb = 34992, MaxProgramAddressRegistersArb = 34993, ProgramNativeAddressRegistersArb = 34994, MaxProgramNativeAddressRegistersArb = 34995, MaxProgramLocalParametersArb = 34996, MaxProgramEnvParametersArb = 34997, ProgramUnderNativeLimitsArb = 34998, TransposeCurrentMatrixArb = 34999, Matrix0Arb = 35008, Matrix1Arb = 35009, Matrix2Arb = 35010, Matrix3Arb = 35011, Matrix4Arb = 35012, Matrix5Arb = 35013, Matrix6Arb = 35014, Matrix7Arb = 35015, Matrix8Arb = 35016, Matrix9Arb = 35017, Matrix10Arb = 35018, Matrix11Arb = 35019, Matrix12Arb = 35020, Matrix13Arb = 35021, Matrix14Arb = 35022, Matrix15Arb = 35023, Matrix16Arb = 35024, Matrix17Arb = 35025, Matrix18Arb = 35026, Matrix19Arb = 35027, Matrix20Arb = 35028, Matrix21Arb = 35029, Matrix22Arb = 35030, Matrix23Arb = 35031, Matrix24Arb = 35032, Matrix25Arb = 35033, Matrix26Arb = 35034, Matrix27Arb = 35035, Matrix28Arb = 35036, Matrix29Arb = 35037, Matrix30Arb = 35038, Matrix31Arb = 35039 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFragmentProgramShadow.cs ================================================ namespace OpenGL; public enum ArbFragmentProgramShadow { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFragmentShader.cs ================================================ namespace OpenGL; public enum ArbFragmentShader { FragmentShaderArb = 35632, MaxFragmentUniformComponentsArb = 35657, FragmentShaderDerivativeHintArb = 35723 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFramebufferObject.cs ================================================ namespace OpenGL; public enum ArbFramebufferObject { InvalidFramebufferOperation = 1286, FramebufferAttachmentColorEncoding = 33296, FramebufferAttachmentComponentType = 33297, FramebufferAttachmentRedSize = 33298, FramebufferAttachmentGreenSize = 33299, FramebufferAttachmentBlueSize = 33300, FramebufferAttachmentAlphaSize = 33301, FramebufferAttachmentDepthSize = 33302, FramebufferAttachmentStencilSize = 33303, FramebufferDefault = 33304, FramebufferUndefined = 33305, DepthStencilAttachment = 33306, Index = 33314, MaxRenderbufferSize = 34024, DepthStencil = 34041, UnsignedInt248 = 34042, Depth24Stencil8 = 35056, TextureStencilSize = 35057, TextureRedType = 35856, TextureGreenType = 35857, TextureBlueType = 35858, TextureAlphaType = 35859, TextureLuminanceType = 35860, TextureIntensityType = 35861, TextureDepthType = 35862, UnsignedNormalized = 35863, DrawFramebufferBinding = 36006, FramebufferBinding = 36006, RenderbufferBinding = 36007, ReadFramebuffer = 36008, DrawFramebuffer = 36009, ReadFramebufferBinding = 36010, RenderbufferSamples = 36011, FramebufferAttachmentObjectType = 36048, FramebufferAttachmentObjectName = 36049, FramebufferAttachmentTextureLevel = 36050, FramebufferAttachmentTextureCubeMapFace = 36051, FramebufferAttachmentTextureLayer = 36052, FramebufferComplete = 36053, FramebufferIncompleteAttachment = 36054, FramebufferIncompleteMissingAttachment = 36055, FramebufferIncompleteDrawBuffer = 36059, FramebufferIncompleteReadBuffer = 36060, FramebufferUnsupported = 36061, MaxColorAttachments = 36063, ColorAttachment0 = 36064, ColorAttachment1 = 36065, ColorAttachment2 = 36066, ColorAttachment3 = 36067, ColorAttachment4 = 36068, ColorAttachment5 = 36069, ColorAttachment6 = 36070, ColorAttachment7 = 36071, ColorAttachment8 = 36072, ColorAttachment9 = 36073, ColorAttachment10 = 36074, ColorAttachment11 = 36075, ColorAttachment12 = 36076, ColorAttachment13 = 36077, ColorAttachment14 = 36078, ColorAttachment15 = 36079, DepthAttachment = 36096, StencilAttachment = 36128, Framebuffer = 36160, Renderbuffer = 36161, RenderbufferWidth = 36162, RenderbufferHeight = 36163, RenderbufferInternalFormat = 36164, StencilIndex1 = 36166, StencilIndex4 = 36167, StencilIndex8 = 36168, StencilIndex16 = 36169, RenderbufferRedSize = 36176, RenderbufferGreenSize = 36177, RenderbufferBlueSize = 36178, RenderbufferAlphaSize = 36179, RenderbufferDepthSize = 36180, RenderbufferStencilSize = 36181, FramebufferIncompleteMultisample = 36182, MaxSamples = 36183 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFramebufferObjectDeprecated.cs ================================================ namespace OpenGL; public enum ArbFramebufferObjectDeprecated { Index = 33314, TextureLuminanceType = 35860, TextureIntensityType = 35861 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbFramebufferSrgb.cs ================================================ namespace OpenGL; public enum ArbFramebufferSrgb { FramebufferSrgb = 36281 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbGeometryShader4.cs ================================================ namespace OpenGL; public enum ArbGeometryShader4 { LinesAdjacencyArb = 10, LineStripAdjacencyArb = 11, TrianglesAdjacencyArb = 12, TriangleStripAdjacencyArb = 13, ProgramPointSizeArb = 34370, MaxVaryingComponents = 35659, MaxGeometryTextureImageUnitsArb = 35881, FramebufferAttachmentTextureLayer = 36052, FramebufferAttachmentLayeredArb = 36263, FramebufferIncompleteLayerTargetsArb = 36264, FramebufferIncompleteLayerCountArb = 36265, GeometryShaderArb = 36313, GeometryVerticesOutArb = 36314, GeometryInputTypeArb = 36315, GeometryOutputTypeArb = 36316, MaxGeometryVaryingComponentsArb = 36317, MaxVertexVaryingComponentsArb = 36318, MaxGeometryUniformComponentsArb = 36319, MaxGeometryOutputVerticesArb = 36320, MaxGeometryTotalOutputComponentsArb = 36321 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbGetProgramBinary.cs ================================================ namespace OpenGL; public enum ArbGetProgramBinary { ProgramBinaryRetrievableHint = 33367, ProgramBinaryLength = 34625, NumProgramBinaryFormats = 34814, ProgramBinaryFormats = 34815 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbGpuShader5.cs ================================================ namespace OpenGL; public enum ArbGpuShader5 { GeometryShaderInvocations = 34943, MaxGeometryShaderInvocations = 36442, MinFragmentInterpolationOffset = 36443, MaxFragmentInterpolationOffset = 36444, FragmentInterpolationOffsetBits = 36445, MaxVertexStreams = 36465 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbGpuShaderFp64.cs ================================================ namespace OpenGL; public enum ArbGpuShaderFp64 { Double = 5130, DoubleMat2 = 36678, DoubleMat3 = 36679, DoubleMat4 = 36680, DoubleMat2x3 = 36681, DoubleMat2x4 = 36682, DoubleMat3x2 = 36683, DoubleMat3x4 = 36684, DoubleMat4x2 = 36685, DoubleMat4x3 = 36686, DoubleVec2 = 36860, DoubleVec3 = 36861, DoubleVec4 = 36862 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbHalfFloatPixel.cs ================================================ namespace OpenGL; public enum ArbHalfFloatPixel { HalfFloatArb = 5131 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbHalfFloatVertex.cs ================================================ namespace OpenGL; public enum ArbHalfFloatVertex { HalfFloat = 5131 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbImaging.cs ================================================ namespace OpenGL; public enum ArbImaging { ConstantColor = 32769, OneMinusConstantColor, ConstantAlpha, OneMinusConstantAlpha, BlendColor, FuncAdd, Min, Max, BlendEquation, FuncSubtract, FuncReverseSubtract } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbImagingDeprecated.cs ================================================ namespace OpenGL; public enum ArbImagingDeprecated { Convolution1D = 32784, Convolution2D = 32785, Separable2D = 32786, ConvolutionBorderMode = 32787, ConvolutionFilterScale = 32788, ConvolutionFilterBias = 32789, Reduce = 32790, ConvolutionFormat = 32791, ConvolutionWidth = 32792, ConvolutionHeight = 32793, MaxConvolutionWidth = 32794, MaxConvolutionHeight = 32795, PostConvolutionRedScale = 32796, PostConvolutionGreenScale = 32797, PostConvolutionBlueScale = 32798, PostConvolutionAlphaScale = 32799, PostConvolutionRedBias = 32800, PostConvolutionGreenBias = 32801, PostConvolutionBlueBias = 32802, PostConvolutionAlphaBias = 32803, Histogram = 32804, ProxyHistogram = 32805, HistogramWidth = 32806, HistogramFormat = 32807, HistogramRedSize = 32808, HistogramGreenSize = 32809, HistogramBlueSize = 32810, HistogramAlphaSize = 32811, HistogramLuminanceSize = 32812, HistogramSink = 32813, Minmax = 32814, MinmaxFormat = 32815, MinmaxSink = 32816, TableTooLarge = 32817, ColorMatrix = 32945, ColorMatrixStackDepth = 32946, MaxColorMatrixStackDepth = 32947, PostColorMatrixRedScale = 32948, PostColorMatrixGreenScale = 32949, PostColorMatrixBlueScale = 32950, PostColorMatrixAlphaScale = 32951, PostColorMatrixRedBias = 32952, PostColorMatrixGreenBias = 32953, PostColorMatrixBlueBias = 32954, PostColorMatrixAlphaBias = 32955, ColorTable = 32976, PostConvolutionColorTable = 32977, PostColorMatrixColorTable = 32978, ProxyColorTable = 32979, ProxyPostConvolutionColorTable = 32980, ProxyPostColorMatrixColorTable = 32981, ColorTableScale = 32982, ColorTableBias = 32983, ColorTableFormat = 32984, ColorTableWidth = 32985, ColorTableRedSize = 32986, ColorTableGreenSize = 32987, ColorTableBlueSize = 32988, ColorTableAlphaSize = 32989, ColorTableLuminanceSize = 32990, ColorTableIntensitySize = 32991, ConstantBorder = 33105, ReplicateBorder = 33107, ConvolutionBorderColor = 33108 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbInstancedArrays.cs ================================================ namespace OpenGL; public enum ArbInstancedArrays { VertexAttribArrayDivisorArb = 35070 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbMapBufferRange.cs ================================================ namespace OpenGL; public enum ArbMapBufferRange { MapReadBit = 1, MapWriteBit = 2, MapInvalidateRangeBit = 4, MapInvalidateBufferBit = 8, MapFlushExplicitBit = 0x10, MapUnsynchronizedBit = 0x20 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbMatrixPalette.cs ================================================ namespace OpenGL; public enum ArbMatrixPalette { MatrixPaletteArb = 34880, MaxMatrixPaletteStackDepthArb, MaxPaletteMatricesArb, CurrentPaletteMatrixArb, MatrixIndexArrayArb, CurrentMatrixIndexArb, MatrixIndexArraySizeArb, MatrixIndexArrayTypeArb, MatrixIndexArrayStrideArb, MatrixIndexArrayPointerArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbMultisample.cs ================================================ namespace OpenGL; public enum ArbMultisample { MultisampleBitArb = 536870912, MultisampleArb = 32925, SampleAlphaToCoverageArb = 32926, SampleAlphaToOneArb = 32927, SampleCoverageArb = 32928, SampleBuffersArb = 32936, SamplesArb = 32937, SampleCoverageValueArb = 32938, SampleCoverageInvertArb = 32939 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbMultitexture.cs ================================================ namespace OpenGL; public enum ArbMultitexture { Texture0Arb = 33984, Texture1Arb, Texture2Arb, Texture3Arb, Texture4Arb, Texture5Arb, Texture6Arb, Texture7Arb, Texture8Arb, Texture9Arb, Texture10Arb, Texture11Arb, Texture12Arb, Texture13Arb, Texture14Arb, Texture15Arb, Texture16Arb, Texture17Arb, Texture18Arb, Texture19Arb, Texture20Arb, Texture21Arb, Texture22Arb, Texture23Arb, Texture24Arb, Texture25Arb, Texture26Arb, Texture27Arb, Texture28Arb, Texture29Arb, Texture30Arb, Texture31Arb, ActiveTextureArb, ClientActiveTextureArb, MaxTextureUnitsArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbOcclusionQuery.cs ================================================ namespace OpenGL; public enum ArbOcclusionQuery { QueryCounterBitsArb = 34916, CurrentQueryArb = 34917, QueryResultArb = 34918, QueryResultAvailableArb = 34919, SamplesPassedArb = 35092 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbOcclusionQuery2.cs ================================================ namespace OpenGL; public enum ArbOcclusionQuery2 { AnySamplesPassed = 35887 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbPixelBufferObject.cs ================================================ namespace OpenGL; public enum ArbPixelBufferObject { PixelPackBufferArb = 35051, PixelUnpackBufferArb = 35052, PixelPackBufferBindingArb = 35053, PixelUnpackBufferBindingArb = 35055 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbPointParameters.cs ================================================ namespace OpenGL; public enum ArbPointParameters { PointSizeMinArb = 33062, PointSizeMaxArb, PointFadeThresholdSizeArb, PointDistanceAttenuationArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbPointSprite.cs ================================================ namespace OpenGL; public enum ArbPointSprite { PointSpriteArb = 34913, CoordReplaceArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbProvokingVertex.cs ================================================ namespace OpenGL; public enum ArbProvokingVertex { QuadsFollowProvokingVertexConvention = 36428, FirstVertexConvention, LastVertexConvention, ProvokingVertex } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbRobustness.cs ================================================ namespace OpenGL; public enum ArbRobustness { NoError = 0, ContextFlagRobustAccessBitArb = 4, LoseContextOnResetArb = 33362, GuiltyContextResetArb = 33363, InnocentContextResetArb = 33364, UnknownContextResetArb = 33365, ResetNotificationStrategyArb = 33366, NoResetNotificationArb = 33377 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbSampleShading.cs ================================================ namespace OpenGL; public enum ArbSampleShading { SampleShadingArb = 35894, MinSampleShadingValueArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbSamplerObjects.cs ================================================ namespace OpenGL; public enum ArbSamplerObjects { SamplerBinding = 35097 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbSeamlessCubeMap.cs ================================================ namespace OpenGL; public enum ArbSeamlessCubeMap { TextureCubeMapSeamless = 34895 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbSeparateShaderObjects.cs ================================================ namespace OpenGL; public enum ArbSeparateShaderObjects { VertexShaderBit = 1, FragmentShaderBit = 2, GeometryShaderBit = 4, TessControlShaderBit = 8, TessEvaluationShaderBit = 16, ProgramSeparable = 33368, ActiveProgram = 33369, ProgramPipelineBinding = 33370, AllShaderBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderBitEncoding.cs ================================================ namespace OpenGL; public enum ArbShaderBitEncoding { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderObjects.cs ================================================ namespace OpenGL; public enum ArbShaderObjects { ProgramObjectArb = 35648, ShaderObjectArb = 35656, ObjectTypeArb = 35662, ObjectSubtypeArb = 35663, FloatVec2Arb = 35664, FloatVec3Arb = 35665, FloatVec4Arb = 35666, IntVec2Arb = 35667, IntVec3Arb = 35668, IntVec4Arb = 35669, BoolArb = 35670, BoolVec2Arb = 35671, BoolVec3Arb = 35672, BoolVec4Arb = 35673, FloatMat2Arb = 35674, FloatMat3Arb = 35675, FloatMat4Arb = 35676, Sampler1DArb = 35677, Sampler2DArb = 35678, Sampler3DArb = 35679, SamplerCubeArb = 35680, Sampler1DShadowArb = 35681, Sampler2DShadowArb = 35682, Sampler2DRectArb = 35683, Sampler2DRectShadowArb = 35684, ObjectDeleteStatusArb = 35712, ObjectCompileStatusArb = 35713, ObjectLinkStatusArb = 35714, ObjectValidateStatusArb = 35715, ObjectInfoLogLengthArb = 35716, ObjectAttachedObjectsArb = 35717, ObjectActiveUniformsArb = 35718, ObjectActiveUniformMaxLengthArb = 35719, ObjectShaderSourceLengthArb = 35720 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderPrecision.cs ================================================ namespace OpenGL; public enum ArbShaderPrecision { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderStencilExport.cs ================================================ namespace OpenGL; public enum ArbShaderStencilExport { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderSubroutine.cs ================================================ namespace OpenGL; public enum ArbShaderSubroutine { UniformSize = 35384, UniformNameLength = 35385, ActiveSubroutines = 36325, ActiveSubroutineUniforms = 36326, MaxSubroutines = 36327, MaxSubroutineUniformLocations = 36328, ActiveSubroutineUniformLocations = 36423, ActiveSubroutineMaxLength = 36424, ActiveSubroutineUniformMaxLength = 36425, NumCompatibleSubroutines = 36426, CompatibleSubroutines = 36427 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShaderTextureLod.cs ================================================ namespace OpenGL; public enum ArbShaderTextureLod { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShadingLanguage100.cs ================================================ namespace OpenGL; public enum ArbShadingLanguage100 { ShadingLanguageVersionArb = 35724 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShadingLanguageInclude.cs ================================================ namespace OpenGL; public enum ArbShadingLanguageInclude { ShaderIncludeArb = 36270, NamedStringLengthArb = 36329, NamedStringTypeArb = 36330 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShadow.cs ================================================ namespace OpenGL; public enum ArbShadow { TextureCompareModeArb = 34892, TextureCompareFuncArb, CompareRToTextureArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbShadowAmbient.cs ================================================ namespace OpenGL; public enum ArbShadowAmbient { TextureCompareFailValueArb = 32959 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbSync.cs ================================================ namespace OpenGL; public enum ArbSync { SyncFlushCommandsBit = 1, MaxServerWaitTimeout = 37137, ObjectType = 37138, SyncCondition = 37139, SyncStatus = 37140, SyncFlags = 37141, SyncFence = 37142, SyncGpuCommandsComplete = 37143, Unsignaled = 37144, Signaled = 37145, AlreadySignaled = 37146, TimeoutExpired = 37147, ConditionSatisfied = 37148, WaitFailed = 37149, TimeoutIgnored = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTessellationShader.cs ================================================ namespace OpenGL; public enum ArbTessellationShader { Triangles = 4, Quads = 7, Patches = 14, Equal = 514, Cw = 2304, Ccw = 2305, UniformBlockReferencedByTessControlShader = 34032, UniformBlockReferencedByTessEvaluationShader = 34033, MaxTessControlInputComponents = 34924, MaxTessEvaluationInputComponents = 34925, MaxCombinedTessControlUniformComponents = 36382, MaxCombinedTessEvaluationUniformComponents = 36383, PatchVertices = 36466, PatchDefaultInnerLevel = 36467, PatchDefaultOuterLevel = 36468, TessControlOutputVertices = 36469, TessGenMode = 36470, TessGenSpacing = 36471, TessGenVertexOrder = 36472, TessGenPointMode = 36473, Isolines = 36474, FractionalOdd = 36475, FractionalEven = 36476, MaxPatchVertices = 36477, MaxTessGenLevel = 36478, MaxTessControlUniformComponents = 36479, MaxTessEvaluationUniformComponents = 36480, MaxTessControlTextureImageUnits = 36481, MaxTessEvaluationTextureImageUnits = 36482, MaxTessControlOutputComponents = 36483, MaxTessPatchComponents = 36484, MaxTessControlTotalOutputComponents = 36485, MaxTessEvaluationOutputComponents = 36486, TessEvaluationShader = 36487, TessControlShader = 36488, MaxTessControlUniformBlocks = 36489, MaxTessEvaluationUniformBlocks = 36490 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureBorderClamp.cs ================================================ namespace OpenGL; public enum ArbTextureBorderClamp { ClampToBorderArb = 33069 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureBufferObject.cs ================================================ namespace OpenGL; public enum ArbTextureBufferObject { TextureBufferArb = 35882, MaxTextureBufferSizeArb, TextureBindingBufferArb, TextureBufferDataStoreBindingArb, TextureBufferFormatArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureBufferObjectRgb32.cs ================================================ namespace OpenGL; public enum ArbTextureBufferObjectRgb32 { Rgb32f = 34837, Rgb32ui = 36209, Rgb32i = 36227 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureCompression.cs ================================================ namespace OpenGL; public enum ArbTextureCompression { CompressedAlphaArb = 34025, CompressedLuminanceArb = 34026, CompressedLuminanceAlphaArb = 34027, CompressedIntensityArb = 34028, CompressedRgbArb = 34029, CompressedRgbaArb = 34030, TextureCompressionHintArb = 34031, TextureCompressedImageSizeArb = 34464, TextureCompressedArb = 34465, NumCompressedTextureFormatsArb = 34466, CompressedTextureFormatsArb = 34467 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureCompressionBptc.cs ================================================ namespace OpenGL; public enum ArbTextureCompressionBptc { CompressedRgbaBptcUnormArb = 36492, CompressedSrgbAlphaBptcUnormArb, CompressedRgbBptcSignedFloatArb, CompressedRgbBptcUnsignedFloatArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureCompressionRgtc.cs ================================================ namespace OpenGL; public enum ArbTextureCompressionRgtc { CompressedRedRgtc1 = 36283, CompressedSignedRedRgtc1, CompressedRgRgtc2, CompressedSignedRgRgtc2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureCubeMap.cs ================================================ namespace OpenGL; public enum ArbTextureCubeMap { NormalMapArb = 34065, ReflectionMapArb, TextureCubeMapArb, TextureBindingCubeMapArb, TextureCubeMapPositiveXArb, TextureCubeMapNegativeXArb, TextureCubeMapPositiveYArb, TextureCubeMapNegativeYArb, TextureCubeMapPositiveZArb, TextureCubeMapNegativeZArb, ProxyTextureCubeMapArb, MaxCubeMapTextureSizeArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureCubeMapArray.cs ================================================ namespace OpenGL; public enum ArbTextureCubeMapArray { TextureCubeMapArray = 36873, TextureCubeMapArrayArb = 36873, TextureBindingCubeMapArray = 36874, TextureBindingCubeMapArrayArb = 36874, ProxyTextureCubeMapArray = 36875, ProxyTextureCubeMapArrayArb = 36875, SamplerCubeMapArray = 36876, SamplerCubeMapArrayArb = 36876, SamplerCubeMapArrayShadow = 36877, SamplerCubeMapArrayShadowArb = 36877, IntSamplerCubeMapArray = 36878, IntSamplerCubeMapArrayArb = 36878, UnsignedIntSamplerCubeMapArray = 36879, UnsignedIntSamplerCubeMapArrayArb = 36879 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureEnvAdd.cs ================================================ namespace OpenGL; public enum ArbTextureEnvAdd { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureEnvCombine.cs ================================================ namespace OpenGL; public enum ArbTextureEnvCombine { SubtractArb = 34023, CombineArb = 34160, CombineRgbArb = 34161, CombineAlphaArb = 34162, RgbScaleArb = 34163, AddSignedArb = 34164, InterpolateArb = 34165, ConstantArb = 34166, PrimaryColorArb = 34167, PreviousArb = 34168, Source0RgbArb = 34176, Source1RgbArb = 34177, Source2RgbArb = 34178, Source0AlphaArb = 34184, Source1AlphaArb = 34185, Source2AlphaArb = 34186, Operand0RgbArb = 34192, Operand1RgbArb = 34193, Operand2RgbArb = 34194, Operand0AlphaArb = 34200, Operand1AlphaArb = 34201, Operand2AlphaArb = 34202 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureEnvCrossbar.cs ================================================ namespace OpenGL; public enum ArbTextureEnvCrossbar { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureEnvDot3.cs ================================================ namespace OpenGL; public enum ArbTextureEnvDot3 { Dot3RgbArb = 34478, Dot3RgbaArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureFloat.cs ================================================ namespace OpenGL; public enum ArbTextureFloat { Rgba32fArb = 34836, Rgb32fArb = 34837, Alpha32fArb = 34838, Intensity32fArb = 34839, Luminance32fArb = 34840, LuminanceAlpha32fArb = 34841, Rgba16fArb = 34842, Rgb16fArb = 34843, Alpha16fArb = 34844, Intensity16fArb = 34845, Luminance16fArb = 34846, LuminanceAlpha16fArb = 34847, TextureRedTypeArb = 35856, TextureGreenTypeArb = 35857, TextureBlueTypeArb = 35858, TextureAlphaTypeArb = 35859, TextureLuminanceTypeArb = 35860, TextureIntensityTypeArb = 35861, TextureDepthTypeArb = 35862, UnsignedNormalizedArb = 35863 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureGather.cs ================================================ namespace OpenGL; public enum ArbTextureGather { MinProgramTextureGatherOffset = 36446, MinProgramTextureGatherOffsetArb = 36446, MaxProgramTextureGatherOffset = 36447, MaxProgramTextureGatherOffsetArb = 36447, MaxProgramTextureGatherComponents = 36767 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureMirroredRepeat.cs ================================================ namespace OpenGL; public enum ArbTextureMirroredRepeat { MirroredRepeatArb = 33648 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureMultisample.cs ================================================ namespace OpenGL; public enum ArbTextureMultisample { SamplePosition = 36432, SampleMask = 36433, SampleMaskValue = 36434, MaxSampleMaskWords = 36441, Texture2DMultisample = 37120, ProxyTexture2DMultisample = 37121, Texture2DMultisampleArray = 37122, ProxyTexture2DMultisampleArray = 37123, TextureBinding2DMultisample = 37124, TextureBinding2DMultisampleArray = 37125, TextureSamples = 37126, TextureFixedSampleLocations = 37127, Sampler2DMultisample = 37128, IntSampler2DMultisample = 37129, UnsignedIntSampler2DMultisample = 37130, Sampler2DMultisampleArray = 37131, IntSampler2DMultisampleArray = 37132, UnsignedIntSampler2DMultisampleArray = 37133, MaxColorTextureSamples = 37134, MaxDepthTextureSamples = 37135, MaxIntegerSamples = 37136 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureNonPowerOfTwo.cs ================================================ namespace OpenGL; public enum ArbTextureNonPowerOfTwo { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureQueryLod.cs ================================================ namespace OpenGL; public enum ArbTextureQueryLod { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureRectangle.cs ================================================ namespace OpenGL; public enum ArbTextureRectangle { TextureRectangleArb = 34037, TextureBindingRectangleArb, ProxyTextureRectangleArb, MaxRectangleTextureSizeArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureRg.cs ================================================ namespace OpenGL; public enum ArbTextureRg { Rg = 33319, RgInteger, R8, R16, Rg8, Rg16, R16f, R32f, Rg16f, Rg32f, R8i, R8ui, R16i, R16ui, R32i, R32ui, Rg8i, Rg8ui, Rg16i, Rg16ui, Rg32i, Rg32ui } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureRgb10A2ui.cs ================================================ namespace OpenGL; public enum ArbTextureRgb10A2ui { Rgb10A2ui = 36975 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTextureSwizzle.cs ================================================ namespace OpenGL; public enum ArbTextureSwizzle { TextureSwizzleR = 36418, TextureSwizzleG, TextureSwizzleB, TextureSwizzleA, TextureSwizzleRgba } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTimerQuery.cs ================================================ namespace OpenGL; public enum ArbTimerQuery { TimeElapsed = 35007, Timestamp = 36392 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTransformFeedback2.cs ================================================ namespace OpenGL; public enum ArbTransformFeedback2 { TransformFeedback = 36386, TransformFeedbackBufferPaused, TransformFeedbackBufferActive, TransformFeedbackBinding } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTransformFeedback3.cs ================================================ namespace OpenGL; public enum ArbTransformFeedback3 { MaxTransformFeedbackBuffers = 36464, MaxVertexStreams } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbTransposeMatrix.cs ================================================ namespace OpenGL; public enum ArbTransposeMatrix { TransposeModelviewMatrixArb = 34019, TransposeProjectionMatrixArb, TransposeTextureMatrixArb, TransposeColorMatrixArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbUniformBufferObject.cs ================================================ namespace OpenGL; public enum ArbUniformBufferObject { UniformBuffer = 35345, UniformBufferBinding = 35368, UniformBufferStart = 35369, UniformBufferSize = 35370, MaxVertexUniformBlocks = 35371, MaxGeometryUniformBlocks = 35372, MaxFragmentUniformBlocks = 35373, MaxCombinedUniformBlocks = 35374, MaxUniformBufferBindings = 35375, MaxUniformBlockSize = 35376, MaxCombinedVertexUniformComponents = 35377, MaxCombinedGeometryUniformComponents = 35378, MaxCombinedFragmentUniformComponents = 35379, UniformBufferOffsetAlignment = 35380, ActiveUniformBlockMaxNameLength = 35381, ActiveUniformBlocks = 35382, UniformType = 35383, UniformSize = 35384, UniformNameLength = 35385, UniformBlockIndex = 35386, UniformOffset = 35387, UniformArrayStride = 35388, UniformMatrixStride = 35389, UniformIsRowMajor = 35390, UniformBlockBinding = 35391, UniformBlockDataSize = 35392, UniformBlockNameLength = 35393, UniformBlockActiveUniforms = 35394, UniformBlockActiveUniformIndices = 35395, UniformBlockReferencedByVertexShader = 35396, UniformBlockReferencedByGeometryShader = 35397, UniformBlockReferencedByFragmentShader = 35398, InvalidIndex = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexArrayBgra.cs ================================================ namespace OpenGL; public enum ArbVertexArrayBgra { Bgra = 32993 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexArrayObject.cs ================================================ namespace OpenGL; public enum ArbVertexArrayObject { VertexArrayBinding = 34229 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexAttrib64bit.cs ================================================ namespace OpenGL; public enum ArbVertexAttrib64bit { Rgb32i = 36227, DoubleMat2 = 36678, DoubleMat3 = 36679, DoubleMat4 = 36680, DoubleMat2x3 = 36681, DoubleMat2x4 = 36682, DoubleMat3x2 = 36683, DoubleMat3x4 = 36684, DoubleMat4x2 = 36685, DoubleMat4x3 = 36686, DoubleVec2 = 36860, DoubleVec3 = 36861, DoubleVec4 = 36862 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexBlend.cs ================================================ namespace OpenGL; public enum ArbVertexBlend { Modelview0Arb = 5888, Modelview1Arb = 34058, MaxVertexUnitsArb = 34468, ActiveVertexUnitsArb = 34469, WeightSumUnityArb = 34470, VertexBlendArb = 34471, CurrentWeightArb = 34472, WeightArrayTypeArb = 34473, WeightArrayStrideArb = 34474, WeightArraySizeArb = 34475, WeightArrayPointerArb = 34476, WeightArrayArb = 34477, Modelview2Arb = 34594, Modelview3Arb = 34595, Modelview4Arb = 34596, Modelview5Arb = 34597, Modelview6Arb = 34598, Modelview7Arb = 34599, Modelview8Arb = 34600, Modelview9Arb = 34601, Modelview10Arb = 34602, Modelview11Arb = 34603, Modelview12Arb = 34604, Modelview13Arb = 34605, Modelview14Arb = 34606, Modelview15Arb = 34607, Modelview16Arb = 34608, Modelview17Arb = 34609, Modelview18Arb = 34610, Modelview19Arb = 34611, Modelview20Arb = 34612, Modelview21Arb = 34613, Modelview22Arb = 34614, Modelview23Arb = 34615, Modelview24Arb = 34616, Modelview25Arb = 34617, Modelview26Arb = 34618, Modelview27Arb = 34619, Modelview28Arb = 34620, Modelview29Arb = 34621, Modelview30Arb = 34622, Modelview31Arb = 34623 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexBufferObject.cs ================================================ namespace OpenGL; public enum ArbVertexBufferObject { BufferSizeArb = 34660, BufferUsageArb = 34661, ArrayBufferArb = 34962, ElementArrayBufferArb = 34963, ArrayBufferBindingArb = 34964, ElementArrayBufferBindingArb = 34965, VertexArrayBufferBindingArb = 34966, NormalArrayBufferBindingArb = 34967, ColorArrayBufferBindingArb = 34968, IndexArrayBufferBindingArb = 34969, TextureCoordArrayBufferBindingArb = 34970, EdgeFlagArrayBufferBindingArb = 34971, SecondaryColorArrayBufferBindingArb = 34972, FogCoordinateArrayBufferBindingArb = 34973, WeightArrayBufferBindingArb = 34974, VertexAttribArrayBufferBindingArb = 34975, ReadOnlyArb = 35000, WriteOnlyArb = 35001, ReadWriteArb = 35002, BufferAccessArb = 35003, BufferMappedArb = 35004, BufferMapPointerArb = 35005, StreamDrawArb = 35040, StreamReadArb = 35041, StreamCopyArb = 35042, StaticDrawArb = 35044, StaticReadArb = 35045, StaticCopyArb = 35046, DynamicDrawArb = 35048, DynamicReadArb = 35049, DynamicCopyArb = 35050 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexProgram.cs ================================================ namespace OpenGL; public enum ArbVertexProgram { ColorSumArb = 33880, VertexProgramArb = 34336, VertexAttribArrayEnabledArb = 34338, VertexAttribArraySizeArb = 34339, VertexAttribArrayStrideArb = 34340, VertexAttribArrayTypeArb = 34341, CurrentVertexAttribArb = 34342, ProgramLengthArb = 34343, ProgramStringArb = 34344, MaxProgramMatrixStackDepthArb = 34350, MaxProgramMatricesArb = 34351, CurrentMatrixStackDepthArb = 34368, CurrentMatrixArb = 34369, VertexProgramPointSizeArb = 34370, VertexProgramTwoSideArb = 34371, VertexAttribArrayPointerArb = 34373, ProgramErrorPositionArb = 34379, ProgramBindingArb = 34423, MaxVertexAttribsArb = 34921, VertexAttribArrayNormalizedArb = 34922, ProgramErrorStringArb = 34932, ProgramFormatAsciiArb = 34933, ProgramFormatArb = 34934, ProgramInstructionsArb = 34976, MaxProgramInstructionsArb = 34977, ProgramNativeInstructionsArb = 34978, MaxProgramNativeInstructionsArb = 34979, ProgramTemporariesArb = 34980, MaxProgramTemporariesArb = 34981, ProgramNativeTemporariesArb = 34982, MaxProgramNativeTemporariesArb = 34983, ProgramParametersArb = 34984, MaxProgramParametersArb = 34985, ProgramNativeParametersArb = 34986, MaxProgramNativeParametersArb = 34987, ProgramAttribsArb = 34988, MaxProgramAttribsArb = 34989, ProgramNativeAttribsArb = 34990, MaxProgramNativeAttribsArb = 34991, ProgramAddressRegistersArb = 34992, MaxProgramAddressRegistersArb = 34993, ProgramNativeAddressRegistersArb = 34994, MaxProgramNativeAddressRegistersArb = 34995, MaxProgramLocalParametersArb = 34996, MaxProgramEnvParametersArb = 34997, ProgramUnderNativeLimitsArb = 34998, TransposeCurrentMatrixArb = 34999, Matrix0Arb = 35008, Matrix1Arb = 35009, Matrix2Arb = 35010, Matrix3Arb = 35011, Matrix4Arb = 35012, Matrix5Arb = 35013, Matrix6Arb = 35014, Matrix7Arb = 35015, Matrix8Arb = 35016, Matrix9Arb = 35017, Matrix10Arb = 35018, Matrix11Arb = 35019, Matrix12Arb = 35020, Matrix13Arb = 35021, Matrix14Arb = 35022, Matrix15Arb = 35023, Matrix16Arb = 35024, Matrix17Arb = 35025, Matrix18Arb = 35026, Matrix19Arb = 35027, Matrix20Arb = 35028, Matrix21Arb = 35029, Matrix22Arb = 35030, Matrix23Arb = 35031, Matrix24Arb = 35032, Matrix25Arb = 35033, Matrix26Arb = 35034, Matrix27Arb = 35035, Matrix28Arb = 35036, Matrix29Arb = 35037, Matrix30Arb = 35038, Matrix31Arb = 35039 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexShader.cs ================================================ namespace OpenGL; public enum ArbVertexShader { VertexShaderArb = 35633, MaxVertexUniformComponentsArb = 35658, MaxVaryingFloatsArb = 35659, MaxVertexTextureImageUnitsArb = 35660, MaxCombinedTextureImageUnitsArb = 35661, ObjectActiveAttributesArb = 35721, ObjectActiveAttributeMaxLengthArb = 35722 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbVertexType2101010Rev.cs ================================================ namespace OpenGL; public enum ArbVertexType2101010Rev { UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbViewportArray.cs ================================================ namespace OpenGL; public enum ArbViewportArray { DepthRange = 2928, Viewport = 2978, ScissorBox = 3088, ScissorTest = 3089, MaxViewports = 33371, ViewportSubpixelBits = 33372, ViewportBoundsRange = 33373, LayerProvokingVertex = 33374, ViewportIndexProvokingVertex = 33375, UndefinedVertex = 33376, FirstVertexConvention = 36429, LastVertexConvention = 36430, ProvokingVertex = 36431 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArbWindowPos.cs ================================================ namespace OpenGL; public enum ArbWindowPos { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArmMaliShaderBinary.cs ================================================ namespace OpenGL; public enum ArmMaliShaderBinary { MaliShaderBinaryArm = 36704 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ArrayCap.cs ================================================ namespace OpenGL; public enum ArrayCap { VertexArray = 32884, NormalArray = 32885, ColorArray = 32886, IndexArray = 32887, TextureCoordArray = 32888, EdgeFlagArray = 32889, FogCoordArray = 33879, SecondaryColorArray = 33886 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AssemblyProgramFormatArb.cs ================================================ namespace OpenGL; public enum AssemblyProgramFormatArb { ProgramFormatAsciiArb = 34933 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AssemblyProgramParameterArb.cs ================================================ namespace OpenGL; public enum AssemblyProgramParameterArb { ProgramBinaryRetrievableHint = 33367, ProgramSeparable = 33368, ProgramLength = 34343, ProgramBinding = 34423, ProgramAluInstructionsArb = 34821, ProgramTexInstructionsArb = 34822, ProgramTexIndirectionsArb = 34823, ProgramNativeAluInstructionsArb = 34824, ProgramNativeTexInstructionsArb = 34825, ProgramNativeTexIndirectionsArb = 34826, MaxProgramAluInstructionsArb = 34827, MaxProgramTexInstructionsArb = 34828, MaxProgramTexIndirectionsArb = 34829, MaxProgramNativeAluInstructionsArb = 34830, MaxProgramNativeTexInstructionsArb = 34831, MaxProgramNativeTexIndirectionsArb = 34832, ProgramFormat = 34934, ProgramInstruction = 34976, MaxProgramInstructions = 34977, ProgramNativeInstructions = 34978, MaxProgramNativeInstructions = 34979, ProgramTemporaries = 34980, MaxProgramTemporaries = 34981, ProgramNativeTemporaries = 34982, MaxProgramNativeTemporaries = 34983, ProgramParameters = 34984, MaxProgramParameters = 34985, ProgramNativeParameters = 34986, MaxProgramNativeParameters = 34987, ProgramAttribs = 34988, MaxProgramAttribs = 34989, ProgramNativeAttribs = 34990, MaxProgramNativeAttribs = 34991, ProgramAddressRegisters = 34992, MaxProgramAddressRegisters = 34993, ProgramNativeAddressRegisters = 34994, MaxProgramNativeAddressRegisters = 34995, MaxProgramLocalParameters = 34996, MaxProgramEnvParameters = 34997, ProgramUnderNativeLimits = 34998, GeometryVerticesOut = 35094, GeometryInputType = 35095, GeometryOutputType = 35096 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AssemblyProgramStringParameterArb.cs ================================================ namespace OpenGL; public enum AssemblyProgramStringParameterArb { ProgramString = 34344 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AssemblyProgramTargetArb.cs ================================================ namespace OpenGL; public enum AssemblyProgramTargetArb { VertexProgram = 34336, FragmentProgram = 34820, GeometryProgramNv = 35878 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiDrawBuffers.cs ================================================ namespace OpenGL; public enum AtiDrawBuffers { MaxDrawBuffersAti = 34852, DrawBuffer0Ati, DrawBuffer1Ati, DrawBuffer2Ati, DrawBuffer3Ati, DrawBuffer4Ati, DrawBuffer5Ati, DrawBuffer6Ati, DrawBuffer7Ati, DrawBuffer8Ati, DrawBuffer9Ati, DrawBuffer10Ati, DrawBuffer11Ati, DrawBuffer12Ati, DrawBuffer13Ati, DrawBuffer14Ati, DrawBuffer15Ati } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiElementArray.cs ================================================ namespace OpenGL; public enum AtiElementArray { ElementArrayAti = 34664, ElementArrayTypeAti, ElementArrayPointerAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiEnvmapBumpmap.cs ================================================ namespace OpenGL; public enum AtiEnvmapBumpmap { BumpRotMatrixAti = 34677, BumpRotMatrixSizeAti, BumpNumTexUnitsAti, BumpTexUnitsAti, DudvAti, Du8Dv8Ati, BumpEnvmapAti, BumpTargetAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiFragmentShader.cs ================================================ namespace OpenGL; public enum AtiFragmentShader { Gl2XBitAti = 1, RedBitAti = 1, CompBitAti = 2, Gl4XBitAti = 2, GreenBitAti = 2, BlueBitAti = 4, Gl8XBitAti = 4, NegateBitAti = 4, BiasBitAti = 8, HalfBitAti = 8, QuarterBitAti = 16, EighthBitAti = 32, SaturateBitAti = 64, FragmentShaderAti = 35104, Reg0Ati = 35105, Reg1Ati = 35106, Reg2Ati = 35107, Reg3Ati = 35108, Reg4Ati = 35109, Reg5Ati = 35110, Reg6Ati = 35111, Reg7Ati = 35112, Reg8Ati = 35113, Reg9Ati = 35114, Reg10Ati = 35115, Reg11Ati = 35116, Reg12Ati = 35117, Reg13Ati = 35118, Reg14Ati = 35119, Reg15Ati = 35120, Reg16Ati = 35121, Reg17Ati = 35122, Reg18Ati = 35123, Reg19Ati = 35124, Reg20Ati = 35125, Reg21Ati = 35126, Reg22Ati = 35127, Reg23Ati = 35128, Reg24Ati = 35129, Reg25Ati = 35130, Reg26Ati = 35131, Reg27Ati = 35132, Reg28Ati = 35133, Reg29Ati = 35134, Reg30Ati = 35135, Reg31Ati = 35136, Con0Ati = 35137, Con1Ati = 35138, Con2Ati = 35139, Con3Ati = 35140, Con4Ati = 35141, Con5Ati = 35142, Con6Ati = 35143, Con7Ati = 35144, Con8Ati = 35145, Con9Ati = 35146, Con10Ati = 35147, Con11Ati = 35148, Con12Ati = 35149, Con13Ati = 35150, Con14Ati = 35151, Con15Ati = 35152, Con16Ati = 35153, Con17Ati = 35154, Con18Ati = 35155, Con19Ati = 35156, Con20Ati = 35157, Con21Ati = 35158, Con22Ati = 35159, Con23Ati = 35160, Con24Ati = 35161, Con25Ati = 35162, Con26Ati = 35163, Con27Ati = 35164, Con28Ati = 35165, Con29Ati = 35166, Con30Ati = 35167, Con31Ati = 35168, MovAti = 35169, AddAti = 35171, MulAti = 35172, SubAti = 35173, Dot3Ati = 35174, Dot4Ati = 35175, MadAti = 35176, LerpAti = 35177, CndAti = 35178, Cnd0Ati = 35179, Dot2AddAti = 35180, SecondaryInterpolatorAti = 35181, NumFragmentRegistersAti = 35182, NumFragmentConstantsAti = 35183, NumPassesAti = 35184, NumInstructionsPerPassAti = 35185, NumInstructionsTotalAti = 35186, NumInputInterpolatorComponentsAti = 35187, NumLoopbackComponentsAti = 35188, ColorAlphaPairingAti = 35189, SwizzleStrAti = 35190, SwizzleStqAti = 35191, SwizzleStrDrAti = 35192, SwizzleStqDqAti = 35193, SwizzleStrqAti = 35194, SwizzleStrqDqAti = 35195 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiMapObjectBuffer.cs ================================================ namespace OpenGL; public enum AtiMapObjectBuffer { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiMeminfo.cs ================================================ namespace OpenGL; public enum AtiMeminfo { VboFreeMemoryAti = 34811, TextureFreeMemoryAti, RenderbufferFreeMemoryAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiPixelFormatFloat.cs ================================================ namespace OpenGL; public enum AtiPixelFormatFloat { TypeRgbaFloatAti = 34848, ColorClearUnclampedValueAti = 34869 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiPnTriangles.cs ================================================ namespace OpenGL; public enum AtiPnTriangles { PnTrianglesAti = 34800, MaxPnTrianglesTesselationLevelAti, PnTrianglesPointModeAti, PnTrianglesNormalModeAti, PnTrianglesTesselationLevelAti, PnTrianglesPointModeLinearAti, PnTrianglesPointModeCubicAti, PnTrianglesNormalModeLinearAti, PnTrianglesNormalModeQuadraticAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiSeparateStencil.cs ================================================ namespace OpenGL; public enum AtiSeparateStencil { StencilBackFuncAti = 34816, StencilBackFailAti, StencilBackPassDepthFailAti, StencilBackPassDepthPassAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiTextFragmentShader.cs ================================================ namespace OpenGL; public enum AtiTextFragmentShader { TextFragmentShaderAti = 33280 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiTextureEnvCombine3.cs ================================================ namespace OpenGL; public enum AtiTextureEnvCombine3 { ModulateAddAti = 34628, ModulateSignedAddAti, ModulateSubtractAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiTextureFloat.cs ================================================ namespace OpenGL; public enum AtiTextureFloat { RgbaFloat32Ati = 34836, RgbFloat32Ati, AlphaFloat32Ati, IntensityFloat32Ati, LuminanceFloat32Ati, LuminanceAlphaFloat32Ati, RgbaFloat16Ati, RgbFloat16Ati, AlphaFloat16Ati, IntensityFloat16Ati, LuminanceFloat16Ati, LuminanceAlphaFloat16Ati } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiTextureMirrorOnce.cs ================================================ namespace OpenGL; public enum AtiTextureMirrorOnce { MirrorClampAti = 34626, MirrorClampToEdgeAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiVertexArrayObject.cs ================================================ namespace OpenGL; public enum AtiVertexArrayObject { StaticAti = 34656, DynamicAti, PreserveAti, DiscardAti, ObjectBufferSizeAti, ObjectBufferUsageAti, ArrayObjectBufferAti, ArrayObjectOffsetAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiVertexAttribArrayObject.cs ================================================ namespace OpenGL; public enum AtiVertexAttribArrayObject { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AtiVertexStreams.cs ================================================ namespace OpenGL; public enum AtiVertexStreams { MaxVertexStreamsAti = 34667, VertexStream0Ati, VertexStream1Ati, VertexStream2Ati, VertexStream3Ati, VertexStream4Ati, VertexStream5Ati, VertexStream6Ati, VertexStream7Ati, VertexSourceAti } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/AttribMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum AttribMask { CurrentBit = 1, PointBit = 2, LineBit = 4, PolygonBit = 8, PolygonStippleBit = 0x10, PixelModeBit = 0x20, LightingBit = 0x40, FogBit = 0x80, DepthBufferBit = 0x100, AccumBufferBit = 0x200, StencilBufferBit = 0x400, ViewportBit = 0x800, TransformBit = 0x1000, EnableBit = 0x2000, ColorBufferBit = 0x4000, HintBit = 0x8000, EvalBit = 0x10000, ListBit = 0x20000, TextureBit = 0x40000, ScissorBit = 0x80000, MultisampleBit = 0x20000000, AllAttribBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BeginFeedbackMode.cs ================================================ namespace OpenGL; public enum BeginFeedbackMode { Points = 0, Lines = 1, Triangles = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BeginMode.cs ================================================ namespace OpenGL; public enum BeginMode { Points = 0, Lines = 1, LineLoop = 2, LineStrip = 3, Triangles = 4, TriangleStrip = 5, TriangleFan = 6, Quads = 7, QuadStrip = 8, Polygon = 9, Patches = 14, LinesAdjacency = 10, LineStripAdjacency = 11, TrianglesAdjacency = 12, TriangleStripAdjacency = 13 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BinaryFormat.cs ================================================ namespace OpenGL; public enum BinaryFormat { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BlendEquationMode.cs ================================================ namespace OpenGL; public enum BlendEquationMode { FuncAdd = 32774, Min = 32775, Max = 32776, FuncSubtract = 32778, FuncReverseSubtract = 32779 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BlendEquationModeExt.cs ================================================ namespace OpenGL; public enum BlendEquationModeExt { LogicOp = 3057, FuncAddExt = 32774, MinExt = 32775, MaxExt = 32776, FuncSubtractExt = 32778, FuncReverseSubtractExt = 32779, AlphaMinSgix = 33568, AlphaMaxSgix = 33569 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BlendingFactorDest.cs ================================================ namespace OpenGL; public enum BlendingFactorDest { Zero = 0, SrcColor = 768, OneMinusSrcColor = 769, SrcAlpha = 770, OneMinusSrcAlpha = 771, DstAlpha = 772, OneMinusDstAlpha = 773, ConstantColor = 32769, ConstantColorExt = 32769, OneMinusConstantColor = 32770, OneMinusConstantColorExt = 32770, ConstantAlpha = 32771, ConstantAlphaExt = 32771, OneMinusConstantAlpha = 32772, OneMinusConstantAlphaExt = 32772, Src1Alpha = 34185, Src1Color = 35065, OneMinusSrc1Color = 35066, OneMinusSrc1Alpha = 35067, One = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BlendingFactorSrc.cs ================================================ namespace OpenGL; public enum BlendingFactorSrc { Zero = 0, SrcAlpha = 770, OneMinusSrcAlpha = 771, DstAlpha = 772, OneMinusDstAlpha = 773, DstColor = 774, OneMinusDstColor = 775, SrcAlphaSaturate = 776, ConstantColor = 32769, ConstantColorExt = 32769, OneMinusConstantColor = 32770, OneMinusConstantColorExt = 32770, ConstantAlpha = 32771, ConstantAlphaExt = 32771, OneMinusConstantAlpha = 32772, OneMinusConstantAlphaExt = 32772, Src1Alpha = 34185, Src1Color = 35065, OneMinusSrc1Color = 35066, OneMinusSrc1Alpha = 35067, One = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BlitFramebufferFilter.cs ================================================ namespace OpenGL; public enum BlitFramebufferFilter { Nearest = 9728, Linear } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Boolean.cs ================================================ namespace OpenGL; public enum Boolean { False, True } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferAccess.cs ================================================ namespace OpenGL; public enum BufferAccess { ReadOnly = 35000, WriteOnly, ReadWrite } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferAccessArb.cs ================================================ namespace OpenGL; public enum BufferAccessArb { ReadOnly = 35000, WriteOnly, ReadWrite } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferAccessMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum BufferAccessMask { MapReadBit = 1, MapWriteBit = 2, MapInvalidateRangeBit = 4, MapInvalidateBufferBit = 8, MapFlushExplicitBit = 0x10, MapUnsynchronizedBit = 0x20 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferParameterApple.cs ================================================ namespace OpenGL; public enum BufferParameterApple { BufferSerializedModifyApple = 35346, BufferFlushingUnmapApple } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferParameterName.cs ================================================ namespace OpenGL; public enum BufferParameterName { BufferSize = 34660, BufferUsage = 34661, BufferAccess = 35003, BufferMapped = 35004 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferParameterNameArb.cs ================================================ namespace OpenGL; public enum BufferParameterNameArb { BufferSize = 34660, BufferUsage = 34661, BufferAccess = 35003, BufferMapped = 35004 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferPointer.cs ================================================ namespace OpenGL; public enum BufferPointer { BufferMapPointer = 35005 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferPointerNameArb.cs ================================================ namespace OpenGL; public enum BufferPointerNameArb { BufferMapPointer = 35005 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferTarget.cs ================================================ namespace OpenGL; public enum BufferTarget { ArrayBuffer = 34962, ElementArrayBuffer = 34963, PixelPackBuffer = 35051, PixelUnpackBuffer = 35052, UniformBuffer = 35345, TextureBuffer = 35882, TransformFeedbackBuffer = 35982, CopyReadBuffer = 36662, CopyWriteBuffer = 36663, DrawIndirectBuffer = 36671 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferTargetArb.cs ================================================ namespace OpenGL; public enum BufferTargetArb { ArrayBuffer = 34962, ElementArrayBuffer } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferUsageArb.cs ================================================ namespace OpenGL; public enum BufferUsageArb { StreamDraw = 35040, StreamRead = 35041, StreamCopy = 35042, StaticDraw = 35044, StaticRead = 35045, StaticCopy = 35046, DynamicDraw = 35048, DynamicRead = 35049, DynamicCopy = 35050 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/BufferUsageHint.cs ================================================ namespace OpenGL; public enum BufferUsageHint { StreamDraw = 35040, StreamRead = 35041, StreamCopy = 35042, StaticDraw = 35044, StaticRead = 35045, StaticCopy = 35046, DynamicDraw = 35048, DynamicRead = 35049, DynamicCopy = 35050 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/CGLContext.cs ================================================ using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace OpenGL; public class CGLContext : INativeObject, IDisposable { internal IntPtr handle; public IntPtr Handle => handle; public static CGLContext CurrentContext { get { IntPtr intPtr = CGLGetCurrentContext(); if (intPtr != IntPtr.Zero) { return new CGLContext(intPtr); } return null; } set { if (CGLSetCurrentContext(value.Handle) != 0) { throw new Exception("Error setting the Current Context"); } } } public CGLContext(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to context creation"); } CGLRetainContext(handle); this.handle = handle; } internal CGLContext() { } [Preserve(Conditional = true)] internal CGLContext(IntPtr handle, bool owns) { if (!owns) { CGLRetainContext(handle); } this.handle = handle; } ~CGLContext() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern void CGLRetainContext(IntPtr handle); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern void CGLReleaseContext(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGLReleaseContext(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern CGLErrorCode CGLLockContext(IntPtr ctx); public CGLErrorCode Lock() { return CGLLockContext(handle); } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern CGLErrorCode CGLUnlockContext(IntPtr ctx); public CGLErrorCode Unlock() { return CGLUnlockContext(handle); } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern CGLErrorCode CGLSetCurrentContext(IntPtr ctx); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern IntPtr CGLGetCurrentContext(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/CGLErrorCode.cs ================================================ namespace OpenGL; public enum CGLErrorCode { NoError = 0, BadAttribute = 10000, BadProperty = 10001, BadPixelFormat = 10002, BadRendererInfo = 10003, BadContext = 10004, BadDrawable = 10005, BadDisplay = 10006, BadState = 10007, BadValue = 10008, BadMatch = 10009, BadEnumeration = 10010, BadOffScreen = 10011, BadFullScreen = 10012, BadWindow = 10013, BadAddress = 10014, BadCodeModule = 10015, BadAlloc = 10016, BadConnection = 10017 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/CGLPixelFormat.cs ================================================ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace OpenGL; public class CGLPixelFormat : INativeObject, IDisposable { internal IntPtr handle; private static int ignored; public IntPtr Handle => handle; public CGLPixelFormat(IntPtr handle) { if (handle == IntPtr.Zero) { throw new Exception("Invalid parameters to context creation"); } CGLRetainPixelFormat(handle); this.handle = handle; } internal CGLPixelFormat() { } [Preserve(Conditional = true)] internal CGLPixelFormat(IntPtr handle, bool owns) { if (!owns) { CGLRetainPixelFormat(handle); } this.handle = handle; } ~CGLPixelFormat() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern void CGLRetainPixelFormat(IntPtr handle); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern void CGLReleasePixelFormat(IntPtr handle); protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CGLReleasePixelFormat(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL")] private static extern CGLErrorCode CGLChoosePixelFormat(CGLPixelFormatAttribute[] attributes, IntPtr pix, IntPtr npix); public CGLPixelFormat(CGLPixelFormatAttribute[] attributes, out int npix) { if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); IntPtr intPtr2 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr))); CGLPixelFormatAttribute[] array = new CGLPixelFormatAttribute[attributes.Length + 1]; Array.Copy(attributes, array, attributes.Length); CGLErrorCode cGLErrorCode = CGLChoosePixelFormat(array, intPtr, intPtr2); if (cGLErrorCode != 0) { Marshal.FreeHGlobal(intPtr); Marshal.FreeHGlobal(intPtr2); throw new Exception("CGLChoosePixelFormat returned: " + cGLErrorCode); } handle = Marshal.ReadIntPtr(intPtr); npix = Marshal.ReadInt32(intPtr2); Marshal.FreeHGlobal(intPtr); Marshal.FreeHGlobal(intPtr2); } public CGLPixelFormat(params object[] attributes) : this(ConvertToAttributes(attributes), out ignored) { } public CGLPixelFormat(out int npix, params object[] attributes) : this(ConvertToAttributes(attributes), out npix) { } private static CGLPixelFormatAttribute[] ConvertToAttributes(object[] args) { List list = new List(); for (int i = 0; i < args.Length; i++) { CGLPixelFormatAttribute cGLPixelFormatAttribute = (CGLPixelFormatAttribute)args[i]; switch (cGLPixelFormatAttribute) { case CGLPixelFormatAttribute.AllRenderers: case CGLPixelFormatAttribute.DoubleBuffer: case CGLPixelFormatAttribute.Stereo: case CGLPixelFormatAttribute.MinimumPolicy: case CGLPixelFormatAttribute.MaximumPolicy: case CGLPixelFormatAttribute.OffScreen: case CGLPixelFormatAttribute.FullScreen: case CGLPixelFormatAttribute.AuxDepthStencil: case CGLPixelFormatAttribute.ColorFloat: case CGLPixelFormatAttribute.Multisample: case CGLPixelFormatAttribute.Supersample: case CGLPixelFormatAttribute.SampleAlpha: case CGLPixelFormatAttribute.SingleRenderer: case CGLPixelFormatAttribute.NoRecovery: case CGLPixelFormatAttribute.Accelerated: case CGLPixelFormatAttribute.ClosestPolicy: case CGLPixelFormatAttribute.Robust: case CGLPixelFormatAttribute.BackingStore: case CGLPixelFormatAttribute.MPSafe: case CGLPixelFormatAttribute.Window: case CGLPixelFormatAttribute.MultiScreen: case CGLPixelFormatAttribute.Compliant: case CGLPixelFormatAttribute.PixelBuffer: case CGLPixelFormatAttribute.RemotePixelBuffer: case CGLPixelFormatAttribute.AllowOfflineRenderers: case CGLPixelFormatAttribute.AcceleratedCompute: list.Add(cGLPixelFormatAttribute); break; case CGLPixelFormatAttribute.AuxBuffers: case CGLPixelFormatAttribute.ColorSize: case CGLPixelFormatAttribute.AlphaSize: case CGLPixelFormatAttribute.DepthSize: case CGLPixelFormatAttribute.StencilSize: case CGLPixelFormatAttribute.AccumSize: case CGLPixelFormatAttribute.SampleBuffers: case CGLPixelFormatAttribute.Samples: case CGLPixelFormatAttribute.RendererID: case CGLPixelFormatAttribute.ScreenMask: case CGLPixelFormatAttribute.VirtualScreenCount: list.Add(cGLPixelFormatAttribute); i++; if (i >= args.Length) { throw new ArgumentException(string.Concat("Attribute ", cGLPixelFormatAttribute, " needs a value")); } list.Add((CGLPixelFormatAttribute)args[i]); break; } } return list.ToArray(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/CGLPixelFormatAttribute.cs ================================================ namespace OpenGL; public enum CGLPixelFormatAttribute { AllRenderers = 1, DoubleBuffer = 5, Stereo = 6, AuxBuffers = 7, ColorSize = 8, AlphaSize = 11, DepthSize = 12, StencilSize = 13, AccumSize = 14, MinimumPolicy = 51, MaximumPolicy = 52, OffScreen = 53, FullScreen = 54, SampleBuffers = 55, Samples = 56, AuxDepthStencil = 57, ColorFloat = 58, Multisample = 59, Supersample = 60, SampleAlpha = 61, RendererID = 70, SingleRenderer = 71, NoRecovery = 72, Accelerated = 73, ClosestPolicy = 74, Robust = 75, BackingStore = 76, MPSafe = 78, Window = 80, MultiScreen = 81, Compliant = 83, ScreenMask = 84, PixelBuffer = 90, RemotePixelBuffer = 91, AllowOfflineRenderers = 96, AcceleratedCompute = 97, VirtualScreenCount = 128 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClampColorMode.cs ================================================ namespace OpenGL; public enum ClampColorMode { False = 0, FixedOnly = 35101, True = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClampColorTarget.cs ================================================ namespace OpenGL; public enum ClampColorTarget { ClampVertexColor = 35098, ClampFragmentColor, ClampReadColor } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClearBuffer.cs ================================================ namespace OpenGL; public enum ClearBuffer { Color = 6144, Depth = 6145, Stencil = 6146, DepthStencil = 34041 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClearBufferMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum ClearBufferMask { DepthBufferBit = 0x100, AccumBufferBit = 0x200, StencilBufferBit = 0x400, ColorBufferBit = 0x4000, CoverageBufferBitNv = 0x8000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClientAttribMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum ClientAttribMask { ClientPixelStoreBit = 1, ClientVertexArrayBit = 2, ClientAllAttribBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ClipPlaneName.cs ================================================ namespace OpenGL; public enum ClipPlaneName { ClipPlane0 = 12288, ClipPlane1, ClipPlane2, ClipPlane3, ClipPlane4, ClipPlane5 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Color4.cs ================================================ using System; using System.Drawing; namespace OpenGL; [Serializable] public struct Color4 : IEquatable { public float R; public float G; public float B; public float A; public static Color4 Transparent => new Color4(byte.MaxValue, byte.MaxValue, byte.MaxValue, 0); public static Color4 AliceBlue => new Color4(240, 248, byte.MaxValue, byte.MaxValue); public static Color4 AntiqueWhite => new Color4(250, 235, 215, byte.MaxValue); public static Color4 Aqua => new Color4(0, byte.MaxValue, byte.MaxValue, byte.MaxValue); public static Color4 Aquamarine => new Color4(127, byte.MaxValue, 212, byte.MaxValue); public static Color4 Azure => new Color4(240, byte.MaxValue, byte.MaxValue, byte.MaxValue); public static Color4 Beige => new Color4(245, 245, 220, byte.MaxValue); public static Color4 Bisque => new Color4(byte.MaxValue, 228, 196, byte.MaxValue); public static Color4 Black => new Color4(0, 0, 0, byte.MaxValue); public static Color4 BlanchedAlmond => new Color4(byte.MaxValue, 235, 205, byte.MaxValue); public static Color4 Blue => new Color4(0, 0, byte.MaxValue, byte.MaxValue); public static Color4 BlueViolet => new Color4(138, 43, 226, byte.MaxValue); public static Color4 Brown => new Color4(165, 42, 42, byte.MaxValue); public static Color4 BurlyWood => new Color4(222, 184, 135, byte.MaxValue); public static Color4 CadetBlue => new Color4(95, 158, 160, byte.MaxValue); public static Color4 Chartreuse => new Color4(127, byte.MaxValue, 0, byte.MaxValue); public static Color4 Chocolate => new Color4(210, 105, 30, byte.MaxValue); public static Color4 Coral => new Color4(byte.MaxValue, 127, 80, byte.MaxValue); public static Color4 CornflowerBlue => new Color4(100, 149, 237, byte.MaxValue); public static Color4 Cornsilk => new Color4(byte.MaxValue, 248, 220, byte.MaxValue); public static Color4 Crimson => new Color4(220, 20, 60, byte.MaxValue); public static Color4 Cyan => new Color4(0, byte.MaxValue, byte.MaxValue, byte.MaxValue); public static Color4 DarkBlue => new Color4(0, 0, 139, byte.MaxValue); public static Color4 DarkCyan => new Color4(0, 139, 139, byte.MaxValue); public static Color4 DarkGoldenrod => new Color4(184, 134, 11, byte.MaxValue); public static Color4 DarkGray => new Color4(169, 169, 169, byte.MaxValue); public static Color4 DarkGreen => new Color4(0, 100, 0, byte.MaxValue); public static Color4 DarkKhaki => new Color4(189, 183, 107, byte.MaxValue); public static Color4 DarkMagenta => new Color4(139, 0, 139, byte.MaxValue); public static Color4 DarkOliveGreen => new Color4(85, 107, 47, byte.MaxValue); public static Color4 DarkOrange => new Color4(byte.MaxValue, 140, 0, byte.MaxValue); public static Color4 DarkOrchid => new Color4(153, 50, 204, byte.MaxValue); public static Color4 DarkRed => new Color4(139, 0, 0, byte.MaxValue); public static Color4 DarkSalmon => new Color4(233, 150, 122, byte.MaxValue); public static Color4 DarkSeaGreen => new Color4(143, 188, 139, byte.MaxValue); public static Color4 DarkSlateBlue => new Color4(72, 61, 139, byte.MaxValue); public static Color4 DarkSlateGray => new Color4(47, 79, 79, byte.MaxValue); public static Color4 DarkTurquoise => new Color4(0, 206, 209, byte.MaxValue); public static Color4 DarkViolet => new Color4(148, 0, 211, byte.MaxValue); public static Color4 DeepPink => new Color4(byte.MaxValue, 20, 147, byte.MaxValue); public static Color4 DeepSkyBlue => new Color4(0, 191, byte.MaxValue, byte.MaxValue); public static Color4 DimGray => new Color4(105, 105, 105, byte.MaxValue); public static Color4 DodgerBlue => new Color4(30, 144, byte.MaxValue, byte.MaxValue); public static Color4 Firebrick => new Color4(178, 34, 34, byte.MaxValue); public static Color4 FloralWhite => new Color4(byte.MaxValue, 250, 240, byte.MaxValue); public static Color4 ForestGreen => new Color4(34, 139, 34, byte.MaxValue); public static Color4 Fuchsia => new Color4(byte.MaxValue, 0, byte.MaxValue, byte.MaxValue); public static Color4 Gainsboro => new Color4(220, 220, 220, byte.MaxValue); public static Color4 GhostWhite => new Color4(248, 248, byte.MaxValue, byte.MaxValue); public static Color4 Gold => new Color4(byte.MaxValue, 215, 0, byte.MaxValue); public static Color4 Goldenrod => new Color4(218, 165, 32, byte.MaxValue); public static Color4 Gray => new Color4(128, 128, 128, byte.MaxValue); public static Color4 Green => new Color4(0, 128, 0, byte.MaxValue); public static Color4 GreenYellow => new Color4(173, byte.MaxValue, 47, byte.MaxValue); public static Color4 Honeydew => new Color4(240, byte.MaxValue, 240, byte.MaxValue); public static Color4 HotPink => new Color4(byte.MaxValue, 105, 180, byte.MaxValue); public static Color4 IndianRed => new Color4(205, 92, 92, byte.MaxValue); public static Color4 Indigo => new Color4(75, 0, 130, byte.MaxValue); public static Color4 Ivory => new Color4(byte.MaxValue, byte.MaxValue, 240, byte.MaxValue); public static Color4 Khaki => new Color4(240, 230, 140, byte.MaxValue); public static Color4 Lavender => new Color4(230, 230, 250, byte.MaxValue); public static Color4 LavenderBlush => new Color4(byte.MaxValue, 240, 245, byte.MaxValue); public static Color4 LawnGreen => new Color4(124, 252, 0, byte.MaxValue); public static Color4 LemonChiffon => new Color4(byte.MaxValue, 250, 205, byte.MaxValue); public static Color4 LightBlue => new Color4(173, 216, 230, byte.MaxValue); public static Color4 LightCoral => new Color4(240, 128, 128, byte.MaxValue); public static Color4 LightCyan => new Color4(224, byte.MaxValue, byte.MaxValue, byte.MaxValue); public static Color4 LightGoldenrodYellow => new Color4(250, 250, 210, byte.MaxValue); public static Color4 LightGreen => new Color4(144, 238, 144, byte.MaxValue); public static Color4 LightGray => new Color4(211, 211, 211, byte.MaxValue); public static Color4 LightPink => new Color4(byte.MaxValue, 182, 193, byte.MaxValue); public static Color4 LightSalmon => new Color4(byte.MaxValue, 160, 122, byte.MaxValue); public static Color4 LightSeaGreen => new Color4(32, 178, 170, byte.MaxValue); public static Color4 LightSkyBlue => new Color4(135, 206, 250, byte.MaxValue); public static Color4 LightSlateGray => new Color4(119, 136, 153, byte.MaxValue); public static Color4 LightSteelBlue => new Color4(176, 196, 222, byte.MaxValue); public static Color4 LightYellow => new Color4(byte.MaxValue, byte.MaxValue, 224, byte.MaxValue); public static Color4 Lime => new Color4(0, byte.MaxValue, 0, byte.MaxValue); public static Color4 LimeGreen => new Color4(50, 205, 50, byte.MaxValue); public static Color4 Linen => new Color4(250, 240, 230, byte.MaxValue); public static Color4 Magenta => new Color4(byte.MaxValue, 0, byte.MaxValue, byte.MaxValue); public static Color4 Maroon => new Color4(128, 0, 0, byte.MaxValue); public static Color4 MediumAquamarine => new Color4(102, 205, 170, byte.MaxValue); public static Color4 MediumBlue => new Color4(0, 0, 205, byte.MaxValue); public static Color4 MediumOrchid => new Color4(186, 85, 211, byte.MaxValue); public static Color4 MediumPurple => new Color4(147, 112, 219, byte.MaxValue); public static Color4 MediumSeaGreen => new Color4(60, 179, 113, byte.MaxValue); public static Color4 MediumSlateBlue => new Color4(123, 104, 238, byte.MaxValue); public static Color4 MediumSpringGreen => new Color4(0, 250, 154, byte.MaxValue); public static Color4 MediumTurquoise => new Color4(72, 209, 204, byte.MaxValue); public static Color4 MediumVioletRed => new Color4(199, 21, 133, byte.MaxValue); public static Color4 MidnightBlue => new Color4(25, 25, 112, byte.MaxValue); public static Color4 MintCream => new Color4(245, byte.MaxValue, 250, byte.MaxValue); public static Color4 MistyRose => new Color4(byte.MaxValue, 228, 225, byte.MaxValue); public static Color4 Moccasin => new Color4(byte.MaxValue, 228, 181, byte.MaxValue); public static Color4 NavajoWhite => new Color4(byte.MaxValue, 222, 173, byte.MaxValue); public static Color4 Navy => new Color4(0, 0, 128, byte.MaxValue); public static Color4 OldLace => new Color4(253, 245, 230, byte.MaxValue); public static Color4 Olive => new Color4(128, 128, 0, byte.MaxValue); public static Color4 OliveDrab => new Color4(107, 142, 35, byte.MaxValue); public static Color4 Orange => new Color4(byte.MaxValue, 165, 0, byte.MaxValue); public static Color4 OrangeRed => new Color4(byte.MaxValue, 69, 0, byte.MaxValue); public static Color4 Orchid => new Color4(218, 112, 214, byte.MaxValue); public static Color4 PaleGoldenrod => new Color4(238, 232, 170, byte.MaxValue); public static Color4 PaleGreen => new Color4(152, 251, 152, byte.MaxValue); public static Color4 PaleTurquoise => new Color4(175, 238, 238, byte.MaxValue); public static Color4 PaleVioletRed => new Color4(219, 112, 147, byte.MaxValue); public static Color4 PapayaWhip => new Color4(byte.MaxValue, 239, 213, byte.MaxValue); public static Color4 PeachPuff => new Color4(byte.MaxValue, 218, 185, byte.MaxValue); public static Color4 Peru => new Color4(205, 133, 63, byte.MaxValue); public static Color4 Pink => new Color4(byte.MaxValue, 192, 203, byte.MaxValue); public static Color4 Plum => new Color4(221, 160, 221, byte.MaxValue); public static Color4 PowderBlue => new Color4(176, 224, 230, byte.MaxValue); public static Color4 Purple => new Color4(128, 0, 128, byte.MaxValue); public static Color4 Red => new Color4(byte.MaxValue, 0, 0, byte.MaxValue); public static Color4 RosyBrown => new Color4(188, 143, 143, byte.MaxValue); public static Color4 RoyalBlue => new Color4(65, 105, 225, byte.MaxValue); public static Color4 SaddleBrown => new Color4(139, 69, 19, byte.MaxValue); public static Color4 Salmon => new Color4(250, 128, 114, byte.MaxValue); public static Color4 SandyBrown => new Color4(244, 164, 96, byte.MaxValue); public static Color4 SeaGreen => new Color4(46, 139, 87, byte.MaxValue); public static Color4 SeaShell => new Color4(byte.MaxValue, 245, 238, byte.MaxValue); public static Color4 Sienna => new Color4(160, 82, 45, byte.MaxValue); public static Color4 Silver => new Color4(192, 192, 192, byte.MaxValue); public static Color4 SkyBlue => new Color4(135, 206, 235, byte.MaxValue); public static Color4 SlateBlue => new Color4(106, 90, 205, byte.MaxValue); public static Color4 SlateGray => new Color4(112, 128, 144, byte.MaxValue); public static Color4 Snow => new Color4(byte.MaxValue, 250, 250, byte.MaxValue); public static Color4 SpringGreen => new Color4(0, byte.MaxValue, 127, byte.MaxValue); public static Color4 SteelBlue => new Color4(70, 130, 180, byte.MaxValue); public static Color4 Tan => new Color4(210, 180, 140, byte.MaxValue); public static Color4 Teal => new Color4(0, 128, 128, byte.MaxValue); public static Color4 Thistle => new Color4(216, 191, 216, byte.MaxValue); public static Color4 Tomato => new Color4(byte.MaxValue, 99, 71, byte.MaxValue); public static Color4 Turquoise => new Color4(64, 224, 208, byte.MaxValue); public static Color4 Violet => new Color4(238, 130, 238, byte.MaxValue); public static Color4 Wheat => new Color4(245, 222, 179, byte.MaxValue); public static Color4 White => new Color4(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); public static Color4 WhiteSmoke => new Color4(245, 245, 245, byte.MaxValue); public static Color4 Yellow => new Color4(byte.MaxValue, byte.MaxValue, 0, byte.MaxValue); public static Color4 YellowGreen => new Color4(154, 205, 50, byte.MaxValue); public Color4(float r, float g, float b, float a) { R = r; G = g; B = b; A = a; } public Color4(byte r, byte g, byte b, byte a) { R = (float)(int)r / 255f; G = (float)(int)g / 255f; B = (float)(int)b / 255f; A = (float)(int)a / 255f; } [Obsolete("Use new Color4(r, g, b, a) instead.")] public Color4(Color color) : this(color.R, color.G, color.B, color.A) { } public int ToArgb() { return (int)(((uint)(A * 255f) << 24) | ((uint)(R * 255f) << 16) | ((uint)(G * 255f) << 8) | (uint)(B * 255f)); } public static bool operator ==(Color4 left, Color4 right) { return left.Equals(right); } public static bool operator !=(Color4 left, Color4 right) { return !left.Equals(right); } public static implicit operator Color4(Color color) { return new Color4(color.R, color.G, color.B, color.A); } public static explicit operator Color(Color4 color) { return Color.FromArgb((int)(color.A * 255f), (int)(color.R * 255f), (int)(color.G * 255f), (int)(color.B * 255f)); } public override bool Equals(object obj) { if (!(obj is Color4)) { return false; } return Equals((Color4)obj); } public override int GetHashCode() { return ToArgb(); } public override string ToString() { return $"{{(R, G, B, A) = ({R.ToString()}, {G.ToString()}, {B.ToString()}, {A.ToString()})}}"; } public bool Equals(Color4 other) { if (R == other.R && G == other.G && B == other.B) { return A == other.A; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorMaterialFace.cs ================================================ namespace OpenGL; public enum ColorMaterialFace { Front = 1028, Back = 1029, FrontAndBack = 1032 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorMaterialParameter.cs ================================================ namespace OpenGL; public enum ColorMaterialParameter { Ambient = 4608, Diffuse = 4609, Specular = 4610, Emission = 5632, AmbientAndDiffuse = 5634 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorPointerType.cs ================================================ namespace OpenGL; public enum ColorPointerType { Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130, HalfFloat = 5131, UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorTableParameterPName.cs ================================================ namespace OpenGL; public enum ColorTableParameterPName { ColorTableScale = 32982, ColorTableBias } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorTableParameterPNameSgi.cs ================================================ namespace OpenGL; public enum ColorTableParameterPNameSgi { ColorTableScaleSgi = 32982, ColorTableBiasSgi } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorTableTarget.cs ================================================ namespace OpenGL; public enum ColorTableTarget { ColorTable = 32976, PostConvolutionColorTable, PostColorMatrixColorTable, ProxyColorTable, ProxyPostConvolutionColorTable, ProxyPostColorMatrixColorTable } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ColorTableTargetSgi.cs ================================================ namespace OpenGL; public enum ColorTableTargetSgi { TextureColorTableSgi = 32956, ProxyTextureColorTableSgi = 32957, ColorTableSgi = 32976, PostConvolutionColorTableSgi = 32977, PostColorMatrixColorTableSgi = 32978, ProxyColorTableSgi = 32979, ProxyPostConvolutionColorTableSgi = 32980, ProxyPostColorMatrixColorTableSgi = 32981 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConditionalRenderType.cs ================================================ namespace OpenGL; public enum ConditionalRenderType { QueryWait = 36371, QueryNoWait, QueryByRegionWait, QueryByRegionNoWait } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionBorderModeExt.cs ================================================ namespace OpenGL; public enum ConvolutionBorderModeExt { ReduceExt = 32790 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionParameter.cs ================================================ namespace OpenGL; public enum ConvolutionParameter { ConvolutionBorderMode = 32787, ConvolutionFilterScale, ConvolutionFilterBias } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionParameterExt.cs ================================================ namespace OpenGL; public enum ConvolutionParameterExt { ConvolutionBorderModeExt = 32787, ConvolutionFilterScaleExt, ConvolutionFilterBiasExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionParameterValue.cs ================================================ namespace OpenGL; public enum ConvolutionParameterValue { Reduce = 32790, ConstantBorder = 33105, ReplicateBorder = 33107 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionTarget.cs ================================================ namespace OpenGL; public enum ConvolutionTarget { Convolution1D = 32784, Convolution2D, Separable2D } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ConvolutionTargetExt.cs ================================================ namespace OpenGL; public enum ConvolutionTargetExt { Convolution1DExt = 32784, Convolution2DExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/CullFaceMode.cs ================================================ namespace OpenGL; public enum CullFaceMode { Front = 1028, Back = 1029, FrontAndBack = 1032 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/DataType.cs ================================================ namespace OpenGL; public enum DataType { Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Gl2Bytes = 5127, Gl3Bytes = 5128, Gl4Bytes = 5129, Double = 5130, DoubleExt = 5130 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/DepthFunction.cs ================================================ namespace OpenGL; public enum DepthFunction { Never = 512, Less, Equal, Lequal, Greater, Notequal, Gequal, Always } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/DrawBufferMode.cs ================================================ namespace OpenGL; public enum DrawBufferMode { None = 0, FrontLeft = 1024, FrontRight = 1025, BackLeft = 1026, BackRight = 1027, Front = 1028, Back = 1029, Left = 1030, Right = 1031, FrontAndBack = 1032, Aux0 = 1033, Aux1 = 1034, Aux2 = 1035, Aux3 = 1036, ColorAttachment0 = 36064, ColorAttachment1 = 36065, ColorAttachment2 = 36066, ColorAttachment3 = 36067, ColorAttachment4 = 36068, ColorAttachment5 = 36069, ColorAttachment6 = 36070, ColorAttachment7 = 36071, ColorAttachment8 = 36072, ColorAttachment9 = 36073, ColorAttachment10 = 36074, ColorAttachment11 = 36075, ColorAttachment12 = 36076, ColorAttachment13 = 36077, ColorAttachment14 = 36078, ColorAttachment15 = 36079 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/DrawBuffersEnum.cs ================================================ namespace OpenGL; public enum DrawBuffersEnum { None = 0, FrontLeft = 1024, FrontRight = 1025, BackLeft = 1026, BackRight = 1027, Aux0 = 1033, Aux1 = 1034, Aux2 = 1035, Aux3 = 1036, ColorAttachment0 = 36064, ColorAttachment1 = 36065, ColorAttachment2 = 36066, ColorAttachment3 = 36067, ColorAttachment4 = 36068, ColorAttachment5 = 36069, ColorAttachment6 = 36070, ColorAttachment7 = 36071, ColorAttachment8 = 36072, ColorAttachment9 = 36073, ColorAttachment10 = 36074, ColorAttachment11 = 36075, ColorAttachment12 = 36076, ColorAttachment13 = 36077, ColorAttachment14 = 36078, ColorAttachment15 = 36079 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/DrawElementsType.cs ================================================ namespace OpenGL; public enum DrawElementsType { UnsignedByte = 5121, UnsignedShort = 5123, UnsignedInt = 5125 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/EnableCap.cs ================================================ namespace OpenGL; public enum EnableCap { PointSmooth = 2832, LineSmooth = 2848, LineStipple = 2852, PolygonSmooth = 2881, PolygonStipple = 2882, CullFace = 2884, Lighting = 2896, ColorMaterial = 2903, Fog = 2912, DepthTest = 2929, StencilTest = 2960, Normalize = 2977, AlphaTest = 3008, Dither = 3024, Blend = 3042, IndexLogicOp = 3057, ColorLogicOp = 3058, ScissorTest = 3089, TextureGenS = 3168, TextureGenT = 3169, TextureGenR = 3170, TextureGenQ = 3171, AutoNormal = 3456, Map1Color4 = 3472, Map1Index = 3473, Map1Normal = 3474, Map1TextureCoord1 = 3475, Map1TextureCoord2 = 3476, Map1TextureCoord3 = 3477, Map1TextureCoord4 = 3478, Map1Vertex3 = 3479, Map1Vertex4 = 3480, Map2Color4 = 3504, Map2Index = 3505, Map2Normal = 3506, Map2TextureCoord1 = 3507, Map2TextureCoord2 = 3508, Map2TextureCoord3 = 3509, Map2TextureCoord4 = 3510, Map2Vertex3 = 3511, Map2Vertex4 = 3512, Texture1D = 3552, Texture2D = 3553, PolygonOffsetPoint = 10753, PolygonOffsetLine = 10754, ClipPlane0 = 12288, ClipPlane1 = 12289, ClipPlane2 = 12290, ClipPlane3 = 12291, ClipPlane4 = 12292, ClipPlane5 = 12293, Light0 = 16384, Light1 = 16385, Light2 = 16386, Light3 = 16387, Light4 = 16388, Light5 = 16389, Light6 = 16390, Light7 = 16391, Convolution1D = 32784, Convolution1DExt = 32784, Convolution2D = 32785, Convolution2DExt = 32785, Separable2D = 32786, Separable2DExt = 32786, Histogram = 32804, HistogramExt = 32804, MinmaxExt = 32814, PolygonOffsetFill = 32823, RescaleNormal = 32826, RescaleNormalExt = 32826, Texture3DExt = 32879, VertexArray = 32884, NormalArray = 32885, ColorArray = 32886, IndexArray = 32887, TextureCoordArray = 32888, EdgeFlagArray = 32889, InterlaceSgix = 32916, Multisample = 32925, MultisampleSgis = 32925, SampleAlphaToCoverage = 32926, SampleAlphaToMaskSgis = 32926, SampleAlphaToOne = 32927, SampleAlphaToOneSgis = 32927, SampleCoverage = 32928, SampleMaskSgis = 32928, TextureColorTableSgi = 32956, ColorTable = 32976, ColorTableSgi = 32976, PostConvolutionColorTable = 32977, PostConvolutionColorTableSgi = 32977, PostColorMatrixColorTable = 32978, PostColorMatrixColorTableSgi = 32978, Texture4DSgis = 33076, PixelTexGenSgix = 33081, SpriteSgix = 33096, ReferencePlaneSgix = 33149, IrInstrument1Sgix = 33151, CalligraphicFragmentSgix = 33155, FramezoomSgix = 33163, FogOffsetSgix = 33176, SharedTexturePaletteExt = 33275, AsyncHistogramSgix = 33580, PixelTextureSgis = 33619, AsyncTexImageSgix = 33628, AsyncDrawPixelsSgix = 33629, AsyncReadPixelsSgix = 33630, FragmentLightingSgix = 33792, FragmentColorMaterialSgix = 33793, FragmentLight0Sgix = 33804, FragmentLight1Sgix = 33805, FragmentLight2Sgix = 33806, FragmentLight3Sgix = 33807, FragmentLight4Sgix = 33808, FragmentLight5Sgix = 33809, FragmentLight6Sgix = 33810, FragmentLight7Sgix = 33811, FogCoordArray = 33879, ColorSum = 33880, SecondaryColorArray = 33886, TextureRectangle = 34037, TextureCubeMap = 34067, ProgramPointSize = 34370, VertexProgramPointSize = 34370, VertexProgramTwoSide = 34371, DepthClamp = 34383, TextureCubeMapSeamless = 34895, PointSprite = 34913, SampleShading = 35894, RasterizerDiscard = 35977, FramebufferSrgb = 36281, SampleMask = 36433, PrimitiveRestart = 36765 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ErrorCode.cs ================================================ namespace OpenGL; public enum ErrorCode { NoError = 0, InvalidEnum = 1280, InvalidValue = 1281, InvalidOperation = 1282, StackOverflow = 1283, StackUnderflow = 1284, OutOfMemory = 1285, InvalidFramebufferOperation = 1286, InvalidFramebufferOperationExt = 1286, TableTooLargeExt = 32817, TextureTooLargeExt = 32869 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Ext422Pixels.cs ================================================ namespace OpenGL; public enum Ext422Pixels { Gl422Ext = 32972, Gl422RevExt, Gl422AverageExt, Gl422RevAverageExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtAbgr.cs ================================================ namespace OpenGL; public enum ExtAbgr { AbgrExt = 0x8000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBgra.cs ================================================ namespace OpenGL; public enum ExtBgra { BgrExt = 32992, BgraExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBindableUniform.cs ================================================ namespace OpenGL; public enum ExtBindableUniform { MaxVertexBindableUniformsExt = 36322, MaxFragmentBindableUniformsExt = 36323, MaxGeometryBindableUniformsExt = 36324, MaxBindableUniformSizeExt = 36333, UniformBufferExt = 36334, UniformBufferBindingExt = 36335 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendColor.cs ================================================ namespace OpenGL; public enum ExtBlendColor { ConstantColorExt = 32769, OneMinusConstantColorExt, ConstantAlphaExt, OneMinusConstantAlphaExt, BlendColorExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendEquationSeparate.cs ================================================ namespace OpenGL; public enum ExtBlendEquationSeparate { BlendEquationRgbExt = 32777, BlendEquationAlphaExt = 34877 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendFuncSeparate.cs ================================================ namespace OpenGL; public enum ExtBlendFuncSeparate { BlendDstRgbExt = 32968, BlendSrcRgbExt, BlendDstAlphaExt, BlendSrcAlphaExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendLogicOp.cs ================================================ namespace OpenGL; public enum ExtBlendLogicOp { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendMinmax.cs ================================================ namespace OpenGL; public enum ExtBlendMinmax { FuncAdd = 32774, FuncAddExt = 32774, Min = 32775, MinExt = 32775, Max = 32776, MaxExt = 32776, BlendEquation = 32777, BlendEquationExt = 32777 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtBlendSubtract.cs ================================================ namespace OpenGL; public enum ExtBlendSubtract { FuncSubtract = 32778, FuncSubtractExt = 32778, FuncReverseSubtract = 32779, FuncReverseSubtractExt = 32779 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtClipVolumeHint.cs ================================================ namespace OpenGL; public enum ExtClipVolumeHint { ClipVolumeClippingHintExt = 33008 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtCmyka.cs ================================================ namespace OpenGL; public enum ExtCmyka { CmykExt = 32780, CmykaExt, PackCmykHintExt, UnpackCmykHintExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtColorSubtable.cs ================================================ namespace OpenGL; public enum ExtColorSubtable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtCompiledVertexArray.cs ================================================ namespace OpenGL; public enum ExtCompiledVertexArray { ArrayElementLockFirstExt = 33192, ArrayElementLockCountExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtConvolution.cs ================================================ namespace OpenGL; public enum ExtConvolution { Convolution1DExt = 32784, Convolution2DExt, Separable2DExt, ConvolutionBorderModeExt, ConvolutionFilterScaleExt, ConvolutionFilterBiasExt, ReduceExt, ConvolutionFormatExt, ConvolutionWidthExt, ConvolutionHeightExt, MaxConvolutionWidthExt, MaxConvolutionHeightExt, PostConvolutionRedScaleExt, PostConvolutionGreenScaleExt, PostConvolutionBlueScaleExt, PostConvolutionAlphaScaleExt, PostConvolutionRedBiasExt, PostConvolutionGreenBiasExt, PostConvolutionBlueBiasExt, PostConvolutionAlphaBiasExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtCoordinateFrame.cs ================================================ namespace OpenGL; public enum ExtCoordinateFrame { TangentArrayExt = 33849, BinormalArrayExt = 33850, CurrentTangentExt = 33851, CurrentBinormalExt = 33852, TangentArrayTypeExt = 33854, TangentArrayStrideExt = 33855, BinormalArrayTypeExt = 33856, BinormalArrayStrideExt = 33857, TangentArrayPointerExt = 33858, BinormalArrayPointerExt = 33859, Map1TangentExt = 33860, Map2TangentExt = 33861, Map1BinormalExt = 33862, Map2BinormalExt = 33863 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtCopyTexture.cs ================================================ namespace OpenGL; public enum ExtCopyTexture { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtCullVertex.cs ================================================ namespace OpenGL; public enum ExtCullVertex { CullVertexExt = 33194, CullVertexEyePositionExt, CullVertexObjectPositionExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDepthBoundsTest.cs ================================================ namespace OpenGL; public enum ExtDepthBoundsTest { DepthBoundsTestExt = 34960, DepthBoundsExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDirectStateAccess.cs ================================================ namespace OpenGL; public enum ExtDirectStateAccess { ProgramMatrixExt = 36397, TransposeProgramMatrixExt, ProgramMatrixStackDepthExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDiscardFramebuffer.cs ================================================ namespace OpenGL; public enum ExtDiscardFramebuffer { ColorExt = 6144, DepthExt, StencilExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDrawBuffers2.cs ================================================ namespace OpenGL; public enum ExtDrawBuffers2 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDrawInstanced.cs ================================================ namespace OpenGL; public enum ExtDrawInstanced { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtDrawRangeElements.cs ================================================ namespace OpenGL; public enum ExtDrawRangeElements { MaxElementsVerticesExt = 33000, MaxElementsIndicesExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtFogCoord.cs ================================================ namespace OpenGL; public enum ExtFogCoord { FogCoordinateSourceExt = 33872, FogCoordinateExt, FragmentDepthExt, CurrentFogCoordinateExt, FogCoordinateArrayTypeExt, FogCoordinateArrayStrideExt, FogCoordinateArrayPointerExt, FogCoordinateArrayExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtFramebufferBlit.cs ================================================ namespace OpenGL; public enum ExtFramebufferBlit { DrawFramebufferBindingExt = 36006, ReadFramebufferExt = 36008, DrawFramebufferExt = 36009, ReadFramebufferBindingExt = 36010 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtFramebufferMultisample.cs ================================================ namespace OpenGL; public enum ExtFramebufferMultisample { RenderbufferSamplesExt = 36011, FramebufferIncompleteMultisampleExt = 36182, MaxSamplesExt = 36183 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtFramebufferObject.cs ================================================ namespace OpenGL; public enum ExtFramebufferObject { InvalidFramebufferOperationExt = 1286, MaxRenderbufferSizeExt = 34024, FramebufferBindingExt = 36006, RenderbufferBindingExt = 36007, FramebufferAttachmentObjectType = 36048, FramebufferAttachmentObjectTypeExt = 36048, FramebufferAttachmentObjectName = 36049, FramebufferAttachmentObjectNameExt = 36049, FramebufferAttachmentTextureLevel = 36050, FramebufferAttachmentTextureLevelExt = 36050, FramebufferAttachmentTextureCubeMapFace = 36051, FramebufferAttachmentTextureCubeMapFaceExt = 36051, FramebufferAttachmentTexture3DZoffsetExt = 36052, FramebufferAttachmentTextureLayer = 36052, FramebufferComplete = 36053, FramebufferCompleteExt = 36053, FramebufferIncompleteAttachment = 36054, FramebufferIncompleteAttachmentExt = 36054, FramebufferIncompleteMissingAttachment = 36055, FramebufferIncompleteMissingAttachmentExt = 36055, FramebufferIncompleteDimensionsExt = 36057, FramebufferIncompleteFormatsExt = 36058, FramebufferIncompleteDrawBuffer = 36059, FramebufferIncompleteDrawBufferExt = 36059, FramebufferIncompleteReadBuffer = 36060, FramebufferIncompleteReadBufferExt = 36060, FramebufferUnsupported = 36061, FramebufferUnsupportedExt = 36061, MaxColorAttachments = 36063, MaxColorAttachmentsExt = 36063, ColorAttachment0 = 36064, ColorAttachment0Ext = 36064, ColorAttachment1 = 36065, ColorAttachment1Ext = 36065, ColorAttachment2 = 36066, ColorAttachment2Ext = 36066, ColorAttachment3 = 36067, ColorAttachment3Ext = 36067, ColorAttachment4 = 36068, ColorAttachment4Ext = 36068, ColorAttachment5 = 36069, ColorAttachment5Ext = 36069, ColorAttachment6 = 36070, ColorAttachment6Ext = 36070, ColorAttachment7 = 36071, ColorAttachment7Ext = 36071, ColorAttachment8 = 36072, ColorAttachment8Ext = 36072, ColorAttachment9 = 36073, ColorAttachment9Ext = 36073, ColorAttachment10 = 36074, ColorAttachment10Ext = 36074, ColorAttachment11 = 36075, ColorAttachment11Ext = 36075, ColorAttachment12 = 36076, ColorAttachment12Ext = 36076, ColorAttachment13 = 36077, ColorAttachment13Ext = 36077, ColorAttachment14 = 36078, ColorAttachment14Ext = 36078, ColorAttachment15 = 36079, ColorAttachment15Ext = 36079, DepthAttachment = 36096, DepthAttachmentExt = 36096, StencilAttachment = 36128, StencilAttachmentExt = 36128, Framebuffer = 36160, FramebufferExt = 36160, Renderbuffer = 36161, RenderbufferExt = 36161, RenderbufferWidth = 36162, RenderbufferWidthExt = 36162, RenderbufferHeight = 36163, RenderbufferHeightExt = 36163, RenderbufferInternalFormat = 36164, RenderbufferInternalFormatExt = 36164, StencilIndex1 = 36166, StencilIndex1Ext = 36166, StencilIndex4 = 36167, StencilIndex4Ext = 36167, StencilIndex8 = 36168, StencilIndex8Ext = 36168, StencilIndex16 = 36169, StencilIndex16Ext = 36169, RenderbufferRedSize = 36176, RenderbufferRedSizeExt = 36176, RenderbufferGreenSize = 36177, RenderbufferGreenSizeExt = 36177, RenderbufferBlueSize = 36178, RenderbufferBlueSizeExt = 36178, RenderbufferAlphaSize = 36179, RenderbufferAlphaSizeExt = 36179, RenderbufferDepthSize = 36180, RenderbufferDepthSizeExt = 36180, RenderbufferStencilSize = 36181, RenderbufferStencilSizeExt = 36181 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtFramebufferSrgb.cs ================================================ namespace OpenGL; public enum ExtFramebufferSrgb { FramebufferSrgbExt = 36281, FramebufferSrgbCapableExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtGeometryShader4.cs ================================================ namespace OpenGL; public enum ExtGeometryShader4 { LinesAdjacencyExt = 10, LineStripAdjacencyExt = 11, TrianglesAdjacencyExt = 12, TriangleStripAdjacencyExt = 13, ProgramPointSizeExt = 34370, MaxVaryingComponentsExt = 35659, MaxGeometryTextureImageUnitsExt = 35881, FramebufferAttachmentTextureLayerExt = 36052, FramebufferAttachmentLayeredExt = 36263, FramebufferIncompleteLayerTargetsExt = 36264, FramebufferIncompleteLayerCountExt = 36265, GeometryShaderExt = 36313, GeometryVerticesOutExt = 36314, GeometryInputTypeExt = 36315, GeometryOutputTypeExt = 36316, MaxGeometryVaryingComponentsExt = 36317, MaxVertexVaryingComponentsExt = 36318, MaxGeometryUniformComponentsExt = 36319, MaxGeometryOutputVerticesExt = 36320, MaxGeometryTotalOutputComponentsExt = 36321 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtGpuProgramParameters.cs ================================================ namespace OpenGL; public enum ExtGpuProgramParameters { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtGpuShader4.cs ================================================ namespace OpenGL; public enum ExtGpuShader4 { Sampler1DArrayExt = 36288, Sampler2DArrayExt, SamplerBufferExt, Sampler1DArrayShadowExt, Sampler2DArrayShadowExt, SamplerCubeShadowExt, UnsignedIntVec2Ext, UnsignedIntVec3Ext, UnsignedIntVec4Ext, IntSampler1DExt, IntSampler2DExt, IntSampler3DExt, IntSamplerCubeExt, IntSampler2DRectExt, IntSampler1DArrayExt, IntSampler2DArrayExt, IntSamplerBufferExt, UnsignedIntSampler1DExt, UnsignedIntSampler2DExt, UnsignedIntSampler3DExt, UnsignedIntSamplerCubeExt, UnsignedIntSampler2DRectExt, UnsignedIntSampler1DArrayExt, UnsignedIntSampler2DArrayExt, UnsignedIntSamplerBufferExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtHistogram.cs ================================================ namespace OpenGL; public enum ExtHistogram { HistogramExt = 32804, ProxyHistogramExt = 32805, HistogramWidthExt = 32806, HistogramFormatExt = 32807, HistogramRedSizeExt = 32808, HistogramGreenSizeExt = 32809, HistogramBlueSizeExt = 32810, HistogramAlphaSizeExt = 32811, HistogramLuminanceSize = 32812, HistogramLuminanceSizeExt = 32812, HistogramSinkExt = 32813, MinmaxExt = 32814, MinmaxFormatExt = 32815, MinmaxSinkExt = 32816, TableTooLargeExt = 32817 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtIndexArrayFormats.cs ================================================ namespace OpenGL; public enum ExtIndexArrayFormats { IuiV2fExt = 33197, IuiV3fExt, IuiN3fV2fExt, IuiN3fV3fExt, T2fIuiV2fExt, T2fIuiV3fExt, T2fIuiN3fV2fExt, T2fIuiN3fV3fExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtIndexFunc.cs ================================================ namespace OpenGL; public enum ExtIndexFunc { IndexTestExt = 33205, IndexTestFuncExt, IndexTestRefExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtIndexMaterial.cs ================================================ namespace OpenGL; public enum ExtIndexMaterial { IndexMaterialExt = 33208, IndexMaterialParameterExt, IndexMaterialFaceExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtIndexTexture.cs ================================================ namespace OpenGL; public enum ExtIndexTexture { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtLightTexture.cs ================================================ namespace OpenGL; public enum ExtLightTexture { FragmentMaterialExt = 33609, FragmentNormalExt = 33610, FragmentColorExt = 33612, AttenuationExt = 33613, ShadowAttenuationExt = 33614, TextureApplicationModeExt = 33615, TextureLightExt = 33616, TextureMaterialFaceExt = 33617, TextureMaterialParameterExt = 33618, FragmentDepthExt = 33874 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtMiscAttribute.cs ================================================ namespace OpenGL; public enum ExtMiscAttribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtMultiDrawArrays.cs ================================================ namespace OpenGL; public enum ExtMultiDrawArrays { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtMultisample.cs ================================================ namespace OpenGL; public enum ExtMultisample { MultisampleBitExt = 536870912, MultisampleExt = 32925, SampleAlphaToMaskExt = 32926, SampleAlphaToOneExt = 32927, SampleMaskExt = 32928, Gl1PassExt = 32929, Gl2Pass0Ext = 32930, Gl2Pass1Ext = 32931, Gl4Pass0Ext = 32932, Gl4Pass1Ext = 32933, Gl4Pass2Ext = 32934, Gl4Pass3Ext = 32935, SampleBuffersExt = 32936, SamplesExt = 32937, SampleMaskValueExt = 32938, SampleMaskInvertExt = 32939, SamplePatternExt = 32940 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPackedDepthStencil.cs ================================================ namespace OpenGL; public enum ExtPackedDepthStencil { DepthStencilExt = 34041, UnsignedInt248Ext = 34042, Depth24Stencil8Ext = 35056, TextureStencilSizeExt = 35057 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPackedFloat.cs ================================================ namespace OpenGL; public enum ExtPackedFloat { R11fG11fB10fExt = 35898, UnsignedInt10F11F11FRevExt, RgbaSignedComponentsExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPackedPixels.cs ================================================ namespace OpenGL; public enum ExtPackedPixels { UnsignedByte332Ext = 32818, UnsignedShort4444Ext = 32819, UnsignedShort5551Ext = 32820, UnsignedInt8888Ext = 32821, UnsignedInt1010102Ext = 32822, UnsignedByte233RevExt = 33634, UnsignedShort565Ext = 33635, UnsignedShort565RevExt = 33636, UnsignedShort4444RevExt = 33637, UnsignedShort1555RevExt = 33638, UnsignedInt8888RevExt = 33639, UnsignedInt2101010RevExt = 33640 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPalettedTexture.cs ================================================ namespace OpenGL; public enum ExtPalettedTexture { ColorIndex1Ext = 32994, ColorIndex2Ext = 32995, ColorIndex4Ext = 32996, ColorIndex8Ext = 32997, ColorIndex12Ext = 32998, ColorIndex16Ext = 32999, TextureIndexSizeExt = 33005 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPixelBufferObject.cs ================================================ namespace OpenGL; public enum ExtPixelBufferObject { PixelPackBufferExt = 35051, PixelUnpackBufferExt = 35052, PixelPackBufferBindingExt = 35053, PixelUnpackBufferBindingExt = 35055 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPixelTransform.cs ================================================ namespace OpenGL; public enum ExtPixelTransform { PixelTransform2DExt = 33584, PixelMagFilterExt, PixelMinFilterExt, PixelCubicWeightExt, CubicExt, AverageExt, PixelTransform2DStackDepthExt, MaxPixelTransform2DStackDepthExt, PixelTransform2DMatrixExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPixelTransformColorTable.cs ================================================ namespace OpenGL; public enum ExtPixelTransformColorTable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPointParameters.cs ================================================ namespace OpenGL; public enum ExtPointParameters { PointSizeMinExt = 33062, PointSizeMaxExt, PointFadeThresholdSizeExt, DistanceAttenuationExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtPolygonOffset.cs ================================================ namespace OpenGL; public enum ExtPolygonOffset { PolygonOffsetExt = 32823, PolygonOffsetFactorExt, PolygonOffsetBiasExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtProvokingVertex.cs ================================================ namespace OpenGL; public enum ExtProvokingVertex { QuadsFollowProvokingVertexConventionExt = 36428, FirstVertexConventionExt, LastVertexConventionExt, ProvokingVertexExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtRescaleNormal.cs ================================================ namespace OpenGL; public enum ExtRescaleNormal { RescaleNormalExt = 32826 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtSecondaryColor.cs ================================================ namespace OpenGL; public enum ExtSecondaryColor { ColorSumExt = 33880, CurrentSecondaryColorExt, SecondaryColorArraySizeExt, SecondaryColorArrayTypeExt, SecondaryColorArrayStrideExt, SecondaryColorArrayPointerExt, SecondaryColorArrayExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtSeparateShaderObjects.cs ================================================ namespace OpenGL; public enum ExtSeparateShaderObjects { ActiveProgramExt = 35725 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtSeparateSpecularColor.cs ================================================ namespace OpenGL; public enum ExtSeparateSpecularColor { LightModelColorControlExt = 33272, SingleColorExt, SeparateSpecularColorExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtShaderImageLoadStore.cs ================================================ namespace OpenGL; public enum ExtShaderImageLoadStore { VertexAttribArrayBarrierBitExt = 1, ElementArrayBarrierBitExt = 2, UniformBarrierBitExt = 4, TextureFetchBarrierBitExt = 8, ShaderImageAccessBarrierBitExt = 32, CommandBarrierBitExt = 64, PixelBufferBarrierBitExt = 128, TextureUpdateBarrierBitExt = 256, BufferUpdateBarrierBitExt = 512, FramebufferBarrierBitExt = 1024, TransformFeedbackBarrierBitExt = 2048, AtomicCounterBarrierBitExt = 4096, MaxImageUnitsExt = 36664, MaxCombinedImageUnitsAndFragmentOutputsExt = 36665, ImageBindingNameExt = 36666, ImageBindingLevelExt = 36667, ImageBindingLayeredExt = 36668, ImageBindingLayerExt = 36669, ImageBindingAccessExt = 36670, Image1DExt = 36940, Image2DExt = 36941, Image3DExt = 36942, Image2DRectExt = 36943, ImageCubeExt = 36944, ImageBufferExt = 36945, Image1DArrayExt = 36946, Image2DArrayExt = 36947, ImageCubeMapArrayExt = 36948, Image2DMultisampleExt = 36949, Image2DMultisampleArrayExt = 36950, IntImage1DExt = 36951, IntImage2DExt = 36952, IntImage3DExt = 36953, IntImage2DRectExt = 36954, IntImageCubeExt = 36955, IntImageBufferExt = 36956, IntImage1DArrayExt = 36957, IntImage2DArrayExt = 36958, IntImageCubeMapArrayExt = 36959, IntImage2DMultisampleExt = 36960, IntImage2DMultisampleArrayExt = 36961, UnsignedIntImage1DExt = 36962, UnsignedIntImage2DExt = 36963, UnsignedIntImage3DExt = 36964, UnsignedIntImage2DRectExt = 36965, UnsignedIntImageCubeExt = 36966, UnsignedIntImageBufferExt = 36967, UnsignedIntImage1DArrayExt = 36968, UnsignedIntImage2DArrayExt = 36969, UnsignedIntImageCubeMapArrayExt = 36970, UnsignedIntImage2DMultisampleExt = 36971, UnsignedIntImage2DMultisampleArrayExt = 36972, MaxImageSamplesExt = 36973, ImageBindingFormatExt = 36974, AllBarrierBitsExt = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtShadowFuncs.cs ================================================ namespace OpenGL; public enum ExtShadowFuncs { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtSharedTexturePalette.cs ================================================ namespace OpenGL; public enum ExtSharedTexturePalette { SharedTexturePaletteExt = 33275 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtStencilClearTag.cs ================================================ namespace OpenGL; public enum ExtStencilClearTag { StencilTagBitsExt = 35058, StencilClearTagValueExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtStencilTwoSide.cs ================================================ namespace OpenGL; public enum ExtStencilTwoSide { StencilTestTwoSideExt = 35088, ActiveStencilFaceExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtStencilWrap.cs ================================================ namespace OpenGL; public enum ExtStencilWrap { IncrWrapExt = 34055, DecrWrapExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtSubtexture.cs ================================================ namespace OpenGL; public enum ExtSubtexture { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTexture.cs ================================================ namespace OpenGL; public enum ExtTexture { Alpha4Ext = 32827, Alpha8Ext, Alpha12Ext, Alpha16Ext, Luminance4Ext, Luminance8Ext, Luminance12Ext, Luminance16Ext, Luminance4Alpha4Ext, Luminance6Alpha2Ext, Luminance8Alpha8Ext, Luminance12Alpha4Ext, Luminance12Alpha12Ext, Luminance16Alpha16Ext, IntensityExt, Intensity4Ext, Intensity8Ext, Intensity12Ext, Intensity16Ext, Rgb2Ext, Rgb4Ext, Rgb5Ext, Rgb8Ext, Rgb10Ext, Rgb12Ext, Rgb16Ext, Rgba2Ext, Rgba4Ext, Rgb5A1Ext, Rgba8Ext, Rgb10A2Ext, Rgba12Ext, Rgba16Ext, TextureRedSizeExt, TextureGreenSizeExt, TextureBlueSizeExt, TextureAlphaSizeExt, TextureLuminanceSizeExt, TextureIntensitySizeExt, ReplaceExt, ProxyTexture1DExt, ProxyTexture2DExt, TextureTooLargeExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTexture3D.cs ================================================ namespace OpenGL; public enum ExtTexture3D { PackSkipImagesExt = 32875, PackImageHeightExt, UnpackSkipImagesExt, UnpackImageHeightExt, Texture3DExt, ProxyTexture3DExt, TextureDepthExt, TextureWrapRExt, Max3DTextureSizeExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureArray.cs ================================================ namespace OpenGL; public enum ExtTextureArray { CompareRefDepthToTextureExt = 34894, MaxArrayTextureLayersExt = 35071, Texture1DArrayExt = 35864, ProxyTexture1DArrayExt = 35865, Texture2DArrayExt = 35866, ProxyTexture2DArrayExt = 35867, TextureBinding1DArrayExt = 35868, TextureBinding2DArrayExt = 35869, FramebufferAttachmentTextureLayerExt = 36052 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureBufferObject.cs ================================================ namespace OpenGL; public enum ExtTextureBufferObject { TextureBufferExt = 35882, MaxTextureBufferSizeExt, TextureBindingBufferExt, TextureBufferDataStoreBindingExt, TextureBufferFormatExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureCompressionLatc.cs ================================================ namespace OpenGL; public enum ExtTextureCompressionLatc { CompressedLuminanceLatc1Ext = 35952, CompressedSignedLuminanceLatc1Ext, CompressedLuminanceAlphaLatc2Ext, CompressedSignedLuminanceAlphaLatc2Ext } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureCompressionRgtc.cs ================================================ namespace OpenGL; public enum ExtTextureCompressionRgtc { CompressedRedRgtc1Ext = 36283, CompressedSignedRedRgtc1Ext, CompressedRedGreenRgtc2Ext, CompressedSignedRedGreenRgtc2Ext } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureCompressionS3tc.cs ================================================ namespace OpenGL; public enum ExtTextureCompressionS3tc { CompressedRgbS3tcDxt1Ext = 33776, CompressedRgbaS3tcDxt1Ext, CompressedRgbaS3tcDxt3Ext, CompressedRgbaS3tcDxt5Ext } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureCubeMap.cs ================================================ namespace OpenGL; public enum ExtTextureCubeMap { NormalMapExt = 34065, ReflectionMapExt, TextureCubeMapExt, TextureBindingCubeMapExt, TextureCubeMapPositiveXExt, TextureCubeMapNegativeXExt, TextureCubeMapPositiveYExt, TextureCubeMapNegativeYExt, TextureCubeMapPositiveZExt, TextureCubeMapNegativeZExt, ProxyTextureCubeMapExt, MaxCubeMapTextureSizeExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureEnvAdd.cs ================================================ namespace OpenGL; public enum ExtTextureEnvAdd { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureEnvCombine.cs ================================================ namespace OpenGL; public enum ExtTextureEnvCombine { CombineExt = 34160, CombineRgbExt = 34161, CombineAlphaExt = 34162, RgbScaleExt = 34163, AddSignedExt = 34164, InterpolateExt = 34165, ConstantExt = 34166, PrimaryColorExt = 34167, PreviousExt = 34168, Source0RgbExt = 34176, Source1RgbExt = 34177, Source2RgbExt = 34178, Source0AlphaExt = 34184, Source1AlphaExt = 34185, Source2AlphaExt = 34186, Operand0RgbExt = 34192, Operand1RgbExt = 34193, Operand2RgbExt = 34194, Operand0AlphaExt = 34200, Operand1AlphaExt = 34201, Operand2AlphaExt = 34202 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureEnvDot3.cs ================================================ namespace OpenGL; public enum ExtTextureEnvDot3 { Dot3RgbExt = 34624, Dot3RgbaExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureFilterAnisotropic.cs ================================================ namespace OpenGL; public enum ExtTextureFilterAnisotropic { TextureMaxAnisotropyExt = 34046, MaxTextureMaxAnisotropyExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureInteger.cs ================================================ namespace OpenGL; public enum ExtTextureInteger { Rgba32ui = 36208, Rgba32uiExt = 36208, Rgb32ui = 36209, Rgb32uiExt = 36209, Alpha32uiExt = 36210, Intensity32uiExt = 36211, Luminance32uiExt = 36212, LuminanceAlpha32uiExt = 36213, Rgba16ui = 36214, Rgba16uiExt = 36214, Rgb16ui = 36215, Rgb16uiExt = 36215, Alpha16uiExt = 36216, Intensity16uiExt = 36217, Luminance16uiExt = 36218, LuminanceAlpha16uiExt = 36219, Rgba8ui = 36220, Rgba8uiExt = 36220, Rgb8ui = 36221, Rgb8uiExt = 36221, Alpha8uiExt = 36222, Intensity8uiExt = 36223, Luminance8uiExt = 36224, LuminanceAlpha8uiExt = 36225, Rgba32i = 36226, Rgba32iExt = 36226, Rgb32i = 36227, Rgb32iExt = 36227, Alpha32iExt = 36228, Intensity32iExt = 36229, Luminance32iExt = 36230, LuminanceAlpha32iExt = 36231, Rgba16i = 36232, Rgba16iExt = 36232, Rgb16i = 36233, Rgb16iExt = 36233, Alpha16iExt = 36234, Intensity16iExt = 36235, Luminance16iExt = 36236, LuminanceAlpha16iExt = 36237, Rgba8i = 36238, Rgba8iExt = 36238, Rgb8i = 36239, Rgb8iExt = 36239, Alpha8iExt = 36240, Intensity8iExt = 36241, Luminance8iExt = 36242, LuminanceAlpha8iExt = 36243, RedInteger = 36244, RedIntegerExt = 36244, GreenInteger = 36245, GreenIntegerExt = 36245, BlueInteger = 36246, BlueIntegerExt = 36246, AlphaInteger = 36247, AlphaIntegerExt = 36247, RgbInteger = 36248, RgbIntegerExt = 36248, RgbaInteger = 36249, RgbaIntegerExt = 36249, BgrInteger = 36250, BgrIntegerExt = 36250, BgraInteger = 36251, BgraIntegerExt = 36251, LuminanceIntegerExt = 36252, LuminanceAlphaIntegerExt = 36253, RgbaIntegerModeExt = 36254 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureLodBias.cs ================================================ namespace OpenGL; public enum ExtTextureLodBias { MaxTextureLodBiasExt = 34045, TextureFilterControlExt = 34048, TextureLodBiasExt = 34049 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureMirrorClamp.cs ================================================ namespace OpenGL; public enum ExtTextureMirrorClamp { MirrorClampExt = 34626, MirrorClampToEdgeExt = 34627, MirrorClampToBorderExt = 35090 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureObject.cs ================================================ namespace OpenGL; public enum ExtTextureObject { TexturePriorityExt = 32870, TextureResidentExt, Texture1DBindingExt, Texture2DBindingExt, Texture3DBindingExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTexturePerturbNormal.cs ================================================ namespace OpenGL; public enum ExtTexturePerturbNormal { PerturbExt = 34222, TextureNormalExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureSharedExponent.cs ================================================ namespace OpenGL; public enum ExtTextureSharedExponent { Rgb9E5Ext = 35901, UnsignedInt5999RevExt, TextureSharedSizeExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureSnorm.cs ================================================ namespace OpenGL; public enum ExtTextureSnorm { RedSnorm = 36752, RgSnorm = 36753, RgbSnorm = 36754, RgbaSnorm = 36755, R8Snorm = 36756, Rg8Snorm = 36757, Rgb8Snorm = 36758, Rgba8Snorm = 36759, R16Snorm = 36760, Rg16Snorm = 36761, Rgb16Snorm = 36762, Rgba16Snorm = 36763, SignedNormalized = 36764, AlphaSnorm = 36880, LuminanceSnorm = 36881, LuminanceAlphaSnorm = 36882, IntensitySnorm = 36883, Alpha8Snorm = 36884, Luminance8Snorm = 36885, Luminance8Alpha8Snorm = 36886, Intensity8Snorm = 36887, Alpha16Snorm = 36888, Luminance16Snorm = 36889, Luminance16Alpha16Snorm = 36890, Intensity16Snorm = 36891 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureSrgb.cs ================================================ namespace OpenGL; public enum ExtTextureSrgb { SrgbExt = 35904, Srgb8Ext, SrgbAlphaExt, Srgb8Alpha8Ext, SluminanceAlphaExt, Sluminance8Alpha8Ext, SluminanceExt, Sluminance8Ext, CompressedSrgbExt, CompressedSrgbAlphaExt, CompressedSluminanceExt, CompressedSluminanceAlphaExt, CompressedSrgbS3tcDxt1Ext, CompressedSrgbAlphaS3tcDxt1Ext, CompressedSrgbAlphaS3tcDxt3Ext, CompressedSrgbAlphaS3tcDxt5Ext } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureSwizzle.cs ================================================ namespace OpenGL; public enum ExtTextureSwizzle { TextureSwizzleRExt = 36418, TextureSwizzleGExt, TextureSwizzleBExt, TextureSwizzleAExt, TextureSwizzleRgbaExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTextureType2101010Rev.cs ================================================ namespace OpenGL; public enum ExtTextureType2101010Rev { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTimerQuery.cs ================================================ namespace OpenGL; public enum ExtTimerQuery { TimeElapsedExt = 35007 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtTransformFeedback.cs ================================================ namespace OpenGL; public enum ExtTransformFeedback { TransformFeedbackVaryingMaxLengthExt = 35958, TransformFeedbackBufferModeExt = 35967, MaxTransformFeedbackSeparateComponentsExt = 35968, TransformFeedbackVaryingsExt = 35971, TransformFeedbackBufferStartExt = 35972, TransformFeedbackBufferSizeExt = 35973, PrimitivesGeneratedExt = 35975, TransformFeedbackPrimitivesWrittenExt = 35976, RasterizerDiscardExt = 35977, MaxTransformFeedbackInterleavedComponentsExt = 35978, MaxTransformFeedbackSeparateAttribsExt = 35979, InterleavedAttribsExt = 35980, SeparateAttribsExt = 35981, TransformFeedbackBufferExt = 35982, TransformFeedbackBufferBindingExt = 35983 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtVertexArray.cs ================================================ namespace OpenGL; public enum ExtVertexArray { VertexArrayExt = 32884, NormalArrayExt, ColorArrayExt, IndexArrayExt, TextureCoordArrayExt, EdgeFlagArrayExt, VertexArraySizeExt, VertexArrayTypeExt, VertexArrayStrideExt, VertexArrayCountExt, NormalArrayTypeExt, NormalArrayStrideExt, NormalArrayCountExt, ColorArraySizeExt, ColorArrayTypeExt, ColorArrayStrideExt, ColorArrayCountExt, IndexArrayTypeExt, IndexArrayStrideExt, IndexArrayCountExt, TextureCoordArraySizeExt, TextureCoordArrayTypeExt, TextureCoordArrayStrideExt, TextureCoordArrayCountExt, EdgeFlagArrayStrideExt, EdgeFlagArrayCountExt, VertexArrayPointerExt, NormalArrayPointerExt, ColorArrayPointerExt, IndexArrayPointerExt, TextureCoordArrayPointerExt, EdgeFlagArrayPointerExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtVertexArrayBgra.cs ================================================ namespace OpenGL; public enum ExtVertexArrayBgra { Bgra = 32993 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtVertexAttrib64bit.cs ================================================ namespace OpenGL; public enum ExtVertexAttrib64bit { Double = 5130, DoubleMat2Ext = 36678, DoubleMat3Ext = 36679, DoubleMat4Ext = 36680, DoubleMat2x3Ext = 36681, DoubleMat2x4Ext = 36682, DoubleMat3x2Ext = 36683, DoubleMat3x4Ext = 36684, DoubleMat4x2Ext = 36685, DoubleMat4x3Ext = 36686, DoubleVec2Ext = 36860, DoubleVec3Ext = 36861, DoubleVec4Ext = 36862 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtVertexShader.cs ================================================ namespace OpenGL; public enum ExtVertexShader { VertexShaderExt = 34688, VertexShaderBindingExt, OpIndexExt, OpNegateExt, OpDot3Ext, OpDot4Ext, OpMulExt, OpAddExt, OpMaddExt, OpFracExt, OpMaxExt, OpMinExt, OpSetGeExt, OpSetLtExt, OpClampExt, OpFloorExt, OpRoundExt, OpExpBase2Ext, OpLogBase2Ext, OpPowerExt, OpRecipExt, OpRecipSqrtExt, OpSubExt, OpCrossProductExt, OpMultiplyMatrixExt, OpMovExt, OutputVertexExt, OutputColor0Ext, OutputColor1Ext, OutputTextureCoord0Ext, OutputTextureCoord1Ext, OutputTextureCoord2Ext, OutputTextureCoord3Ext, OutputTextureCoord4Ext, OutputTextureCoord5Ext, OutputTextureCoord6Ext, OutputTextureCoord7Ext, OutputTextureCoord8Ext, OutputTextureCoord9Ext, OutputTextureCoord10Ext, OutputTextureCoord11Ext, OutputTextureCoord12Ext, OutputTextureCoord13Ext, OutputTextureCoord14Ext, OutputTextureCoord15Ext, OutputTextureCoord16Ext, OutputTextureCoord17Ext, OutputTextureCoord18Ext, OutputTextureCoord19Ext, OutputTextureCoord20Ext, OutputTextureCoord21Ext, OutputTextureCoord22Ext, OutputTextureCoord23Ext, OutputTextureCoord24Ext, OutputTextureCoord25Ext, OutputTextureCoord26Ext, OutputTextureCoord27Ext, OutputTextureCoord28Ext, OutputTextureCoord29Ext, OutputTextureCoord30Ext, OutputTextureCoord31Ext, OutputFogExt, ScalarExt, VectorExt, MatrixExt, VariantExt, InvariantExt, LocalConstantExt, LocalExt, MaxVertexShaderInstructionsExt, MaxVertexShaderVariantsExt, MaxVertexShaderInvariantsExt, MaxVertexShaderLocalConstantsExt, MaxVertexShaderLocalsExt, MaxOptimizedVertexShaderInstructionsExt, MaxOptimizedVertexShaderVariantsExt, MaxOptimizedVertexShaderLocalConstantsExt, MaxOptimizedVertexShaderInvariantsExt, MaxOptimizedVertexShaderLocalsExt, VertexShaderInstructionsExt, VertexShaderVariantsExt, VertexShaderInvariantsExt, VertexShaderLocalConstantsExt, VertexShaderLocalsExt, VertexShaderOptimizedExt, XExt, YExt, ZExt, WExt, NegativeXExt, NegativeYExt, NegativeZExt, NegativeWExt, ZeroExt, OneExt, NegativeOneExt, NormalizedRangeExt, FullRangeExt, CurrentVertexExt, MvpMatrixExt, VariantValueExt, VariantDatatypeExt, VariantArrayStrideExt, VariantArrayTypeExt, VariantArrayExt, VariantArrayPointerExt, InvariantValueExt, InvariantDatatypeExt, LocalConstantValueExt, LocalConstantDatatypeExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ExtVertexWeighting.cs ================================================ namespace OpenGL; public enum ExtVertexWeighting { Modelview0StackDepthExt = 2979, Modelview0MatrixExt = 2982, Modelview0Ext = 5888, Modelview1StackDepthExt = 34050, Modelview1MatrixExt = 34054, ModelviewMatrix1Ext = 34054, VertexWeightingExt = 34057, Modelview1Ext = 34058, CurrentVertexWeightExt = 34059, VertexWeightArrayExt = 34060, VertexWeightArraySizeExt = 34061, VertexWeightArrayTypeExt = 34062, VertexWeightArrayStrideExt = 34063, VertexWeightArrayPointerExt = 34064 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FeedBackToken.cs ================================================ namespace OpenGL; public enum FeedBackToken { PassThroughToken = 1792, PointToken, LineToken, PolygonToken, BitmapToken, DrawPixelToken, CopyPixelToken, LineResetToken } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FeedbackType.cs ================================================ namespace OpenGL; public enum FeedbackType { Gl2D = 1536, Gl3D, Gl3DColor, Gl3DColorTexture, Gl4DColorTexture } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FfdMaskSgix.cs ================================================ using System; namespace OpenGL; [Flags] public enum FfdMaskSgix { TextureDeformationBitSgix = 1, GeometryDeformationBitSgix = 2 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FfdTargetSgix.cs ================================================ namespace OpenGL; public enum FfdTargetSgix { GeometryDeformationSgix = 33172, TextureDeformationSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FogMode.cs ================================================ namespace OpenGL; public enum FogMode { Exp = 2048, Exp2 = 2049, Linear = 9729, FogFuncSgis = 33066, FogCoord = 33873, FragmentDepth = 33874 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FogParameter.cs ================================================ namespace OpenGL; public enum FogParameter { FogIndex = 2913, FogDensity = 2914, FogStart = 2915, FogEnd = 2916, FogMode = 2917, FogColor = 2918, FogOffsetValueSgix = 33177, FogCoordSrc = 33872 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FogPointerType.cs ================================================ namespace OpenGL; public enum FogPointerType { Float = 5126, Double = 5130, HalfFloat = 5131 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FragmentLightModelParameterSgix.cs ================================================ namespace OpenGL; public enum FragmentLightModelParameterSgix { FragmentLightModelLocalViewerSgix = 33800, FragmentLightModelTwoSideSgix, FragmentLightModelAmbientSgix, FragmentLightModelNormalInterpolationSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FrameEventArgs.cs ================================================ using System; namespace OpenGL; public class FrameEventArgs : EventArgs { private double elapsed; public double Time { get { return elapsed; } internal set { if (value < 0.0) { throw new ArgumentOutOfRangeException(); } elapsed = value; } } public FrameEventArgs() { } public FrameEventArgs(double elapsed) { Time = elapsed; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferAttachment.cs ================================================ namespace OpenGL; public enum FramebufferAttachment { DepthStencilAttachment = 33306, ColorAttachment0 = 36064, ColorAttachment0Ext = 36064, ColorAttachment1 = 36065, ColorAttachment1Ext = 36065, ColorAttachment2 = 36066, ColorAttachment2Ext = 36066, ColorAttachment3 = 36067, ColorAttachment3Ext = 36067, ColorAttachment4 = 36068, ColorAttachment4Ext = 36068, ColorAttachment5 = 36069, ColorAttachment5Ext = 36069, ColorAttachment6 = 36070, ColorAttachment6Ext = 36070, ColorAttachment7 = 36071, ColorAttachment7Ext = 36071, ColorAttachment8 = 36072, ColorAttachment8Ext = 36072, ColorAttachment9 = 36073, ColorAttachment9Ext = 36073, ColorAttachment10 = 36074, ColorAttachment10Ext = 36074, ColorAttachment11 = 36075, ColorAttachment11Ext = 36075, ColorAttachment12 = 36076, ColorAttachment12Ext = 36076, ColorAttachment13 = 36077, ColorAttachment13Ext = 36077, ColorAttachment14 = 36078, ColorAttachment14Ext = 36078, ColorAttachment15 = 36079, ColorAttachment15Ext = 36079, DepthAttachment = 36096, DepthAttachmentExt = 36096, StencilAttachment = 36128, StencilAttachmentExt = 36128 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferAttachmentComponentType.cs ================================================ namespace OpenGL; public enum FramebufferAttachmentComponentType { Int = 5124, Float = 5126, Index = 33314, UnsignedNormalized = 35863 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferAttachmentObjectType.cs ================================================ namespace OpenGL; public enum FramebufferAttachmentObjectType { None = 0, Texture = 5890, FramebufferDefault = 33304, Renderbuffer = 36161 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferErrorCode.cs ================================================ namespace OpenGL; public enum FramebufferErrorCode { FramebufferUndefined = 33305, FramebufferComplete = 36053, FramebufferCompleteExt = 36053, FramebufferIncompleteAttachment = 36054, FramebufferIncompleteAttachmentExt = 36054, FramebufferIncompleteMissingAttachment = 36055, FramebufferIncompleteMissingAttachmentExt = 36055, FramebufferIncompleteDimensionsExt = 36057, FramebufferIncompleteFormatsExt = 36058, FramebufferIncompleteDrawBuffer = 36059, FramebufferIncompleteDrawBufferExt = 36059, FramebufferIncompleteReadBuffer = 36060, FramebufferIncompleteReadBufferExt = 36060, FramebufferUnsupported = 36061, FramebufferUnsupportedExt = 36061, FramebufferIncompleteMultisample = 36182, FramebufferIncompleteLayerTargets = 36264, FramebufferIncompleteLayerCount = 36265 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferParameterName.cs ================================================ namespace OpenGL; public enum FramebufferParameterName { FramebufferAttachmentColorEncoding = 33296, FramebufferAttachmentComponentType = 33297, FramebufferAttachmentRedSize = 33298, FramebufferAttachmentGreenSize = 33299, FramebufferAttachmentBlueSize = 33300, FramebufferAttachmentAlphaSize = 33301, FramebufferAttachmentDepthSize = 33302, FramebufferAttachmentStencilSize = 33303, FramebufferAttachmentObjectType = 36048, FramebufferAttachmentObjectTypeExt = 36048, FramebufferAttachmentObjectName = 36049, FramebufferAttachmentObjectNameExt = 36049, FramebufferAttachmentTextureLevel = 36050, FramebufferAttachmentTextureLevelExt = 36050, FramebufferAttachmentTextureCubeMapFace = 36051, FramebufferAttachmentTextureCubeMapFaceExt = 36051, FramebufferAttachmentTexture3DZoffsetExt = 36052, FramebufferAttachmentTextureLayer = 36052, FramebufferAttachmentLayered = 36263 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FramebufferTarget.cs ================================================ namespace OpenGL; public enum FramebufferTarget { ReadFramebuffer = 36008, DrawFramebuffer = 36009, Framebuffer = 36160, FramebufferExt = 36160 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/FrontFaceDirection.cs ================================================ namespace OpenGL; public enum FrontFaceDirection { Cw = 2304, Ccw } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GL.cs ================================================ using System; using System.Drawing; using System.Runtime.InteropServices; using System.Security; using System.Text; using AppKit; namespace OpenGL; public sealed class GL { internal static class Core { [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAccum", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Accum(AccumOp op, float value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveProgramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveProgramEXT(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveShaderProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveShaderProgram(uint pipeline, uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveStencilFaceEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveStencilFaceEXT(ExtStencilTwoSide face); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveTexture", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveTexture(TextureUnit texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveTextureARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveTextureARB(TextureUnit texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glActiveVaryingNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ActiveVaryingNV(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAlphaFragmentOp1ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AlphaFragmentOp1ATI(AtiFragmentShader op, uint dst, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAlphaFragmentOp2ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AlphaFragmentOp2ATI(AtiFragmentShader op, uint dst, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod, uint arg2, uint arg2Rep, uint arg2Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAlphaFragmentOp3ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AlphaFragmentOp3ATI(AtiFragmentShader op, uint dst, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod, uint arg2, uint arg2Rep, uint arg2Mod, uint arg3, uint arg3Rep, uint arg3Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAlphaFunc", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AlphaFunc(AlphaFunction func, float @ref); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glApplyTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ApplyTextureEXT(ExtLightTexture mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAreProgramsResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern bool AreProgramsResidentNV(int n, uint* programs, [Out] bool* residences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAreTexturesResident", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern bool AreTexturesResident(int n, uint* textures, [Out] bool* residences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAreTexturesResidentEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern bool AreTexturesResidentEXT(int n, uint* textures, [Out] bool* residences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glArrayElement", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ArrayElement(int i); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glArrayElementEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ArrayElementEXT(int i); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glArrayObjectATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ArrayObjectATI(EnableCap array, int size, AtiVertexArrayObject type, int stride, uint buffer, uint offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAsyncMarkerSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AsyncMarkerSGIX(uint marker); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAttachObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AttachObjectARB(uint containerObj, uint obj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glAttachShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void AttachShader(uint program, uint shader); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBegin", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Begin(BeginMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginConditionalRender", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginConditionalRender(uint id, ConditionalRenderType mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginConditionalRenderNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginConditionalRenderNV(uint id, NvConditionalRender mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginFragmentShaderATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginFragmentShaderATI(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginOcclusionQueryNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginOcclusionQueryNV(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginPerfMonitorAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginPerfMonitorAMD(uint monitor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginQuery", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginQuery(QueryTarget target, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginQueryARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginQueryARB(ArbOcclusionQuery target, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginQueryIndexed", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginQueryIndexed(QueryTarget target, uint index, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginTransformFeedback(BeginFeedbackMode primitiveMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginTransformFeedbackEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginTransformFeedbackEXT(ExtTransformFeedback primitiveMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginTransformFeedbackNV(NvTransformFeedback primitiveMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginVertexShaderEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginVertexShaderEXT(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBeginVideoCaptureNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BeginVideoCaptureNV(uint video_capture_slot); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindAttribLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindAttribLocation(uint program, uint index, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindAttribLocationARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindAttribLocationARB(uint programObj, uint index, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBuffer(BufferTarget target, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferARB(BufferTargetArb target, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferBase", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferBase(BufferTarget target, uint index, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferBaseEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferBaseEXT(ExtTransformFeedback target, uint index, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferBaseNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferBaseNV(NvTransformFeedback target, uint index, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferOffsetEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferOffsetEXT(ExtTransformFeedback target, uint index, uint buffer, IntPtr offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferOffsetNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferOffsetNV(NvTransformFeedback target, uint index, uint buffer, IntPtr offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferRange", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferRange(BufferTarget target, uint index, uint buffer, IntPtr offset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferRangeEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferRangeEXT(ExtTransformFeedback target, uint index, uint buffer, IntPtr offset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindBufferRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindBufferRangeNV(NvTransformFeedback target, uint index, uint buffer, IntPtr offset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFragDataLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFragDataLocation(uint program, uint color, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFragDataLocationEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFragDataLocationEXT(uint program, uint color, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFragDataLocationIndexed", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFragDataLocationIndexed(uint program, uint colorNumber, uint index, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFragmentShaderATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFragmentShaderATI(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFramebuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFramebuffer(FramebufferTarget target, uint framebuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindFramebufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindFramebufferEXT(FramebufferTarget target, uint framebuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindImageTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindImageTextureEXT(uint index, uint texture, int level, bool layered, int layer, ExtShaderImageLoadStore access, int format); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindLightParameterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int BindLightParameterEXT(LightName light, LightParameter value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindMaterialParameterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int BindMaterialParameterEXT(MaterialFace face, MaterialParameter value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindMultiTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindMultiTextureEXT(TextureUnit texunit, TextureTarget target, uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindParameterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int BindParameterEXT(ExtVertexShader value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindProgramARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindProgramARB(AssemblyProgramTargetArb target, uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindProgramNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindProgramNV(AssemblyProgramTargetArb target, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindProgramPipeline", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindProgramPipeline(uint pipeline); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindRenderbuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindRenderbuffer(RenderbufferTarget target, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindRenderbufferEXT(RenderbufferTarget target, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindSampler", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindSampler(uint unit, uint sampler); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTexGenParameterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int BindTexGenParameterEXT(TextureUnit unit, TextureCoordName coord, TextureGenParameter value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTexture", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindTexture(TextureTarget target, uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindTextureEXT(TextureTarget target, uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTextureUnitParameterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int BindTextureUnitParameterEXT(TextureUnit unit, ExtVertexShader value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindTransformFeedback(TransformFeedbackTarget target, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindTransformFeedbackNV(NvTransformFeedback2 target, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindVertexArray", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindVertexArray(uint array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindVertexArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindVertexArrayAPPLE(uint array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindVertexShaderEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindVertexShaderEXT(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindVideoCaptureStreamBufferNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindVideoCaptureStreamBufferNV(uint video_capture_slot, uint stream, NvVideoCapture frame_region, IntPtr offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBindVideoCaptureStreamTextureNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BindVideoCaptureStreamTextureNV(uint video_capture_slot, uint stream, NvVideoCapture frame_region, NvVideoCapture target, uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3bEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Binormal3bEXT(sbyte bx, sbyte by, sbyte bz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3bvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Binormal3bvEXT(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Binormal3dEXT(double bx, double by, double bz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Binormal3dvEXT(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Binormal3fEXT(float bx, float by, float bz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Binormal3fvEXT(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Binormal3iEXT(int bx, int by, int bz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Binormal3ivEXT(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3sEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Binormal3sEXT(short bx, short by, short bz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormal3svEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Binormal3svEXT(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBinormalPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BinormalPointerEXT(NormalPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBitmap", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Bitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte* bitmap); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendColor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendColor(float red, float green, float blue, float alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendColorEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendColorEXT(float red, float green, float blue, float alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquation(BlendEquationMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationEXT(ExtBlendMinmax mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationi(uint buf, Version40 mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationiARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationiARB(uint buf, ArbDrawBuffersBlend mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationIndexedAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationIndexedAMD(uint buf, AmdDrawBuffersBlend mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationSeparate(BlendEquationMode modeRGB, BlendEquationMode modeAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationSeparateEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationSeparateEXT(ExtBlendEquationSeparate modeRGB, ExtBlendEquationSeparate modeAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationSeparatei", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationSeparatei(uint buf, BlendEquationMode modeRGB, BlendEquationMode modeAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationSeparateiARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationSeparateiARB(uint buf, ArbDrawBuffersBlend modeRGB, ArbDrawBuffersBlend modeAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendEquationSeparateIndexedAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendEquationSeparateIndexedAMD(uint buf, AmdDrawBuffersBlend modeRGB, AmdDrawBuffersBlend modeAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFunc", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFunc(BlendingFactorSrc sfactor, BlendingFactorDest dfactor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFunci", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFunci(uint buf, Version40 src, Version40 dst); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFunciARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFunciARB(uint buf, ArbDrawBuffersBlend src, ArbDrawBuffersBlend dst); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncIndexedAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncIndexedAMD(uint buf, AmdDrawBuffersBlend src, AmdDrawBuffersBlend dst); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparate(BlendingFactorSrc sfactorRGB, BlendingFactorDest dfactorRGB, BlendingFactorSrc sfactorAlpha, BlendingFactorDest dfactorAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparateEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparateEXT(ExtBlendFuncSeparate sfactorRGB, ExtBlendFuncSeparate dfactorRGB, ExtBlendFuncSeparate sfactorAlpha, ExtBlendFuncSeparate dfactorAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparatei", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparatei(uint buf, Version40 srcRGB, Version40 dstRGB, Version40 srcAlpha, Version40 dstAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparateiARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparateiARB(uint buf, ArbDrawBuffersBlend srcRGB, ArbDrawBuffersBlend dstRGB, ArbDrawBuffersBlend srcAlpha, ArbDrawBuffersBlend dstAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparateIndexedAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparateIndexedAMD(uint buf, AmdDrawBuffersBlend srcRGB, AmdDrawBuffersBlend dstRGB, AmdDrawBuffersBlend srcAlpha, AmdDrawBuffersBlend dstAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlendFuncSeparateINGR", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlendFuncSeparateINGR(All sfactorRGB, All dfactorRGB, All sfactorAlpha, All dfactorAlpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlitFramebuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, ClearBufferMask mask, BlitFramebufferFilter filter); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBlitFramebufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, ClearBufferMask mask, ExtFramebufferBlit filter); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferAddressRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferAddressRangeNV(NvVertexBufferUnifiedMemory pname, uint index, ulong address, IntPtr length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferData", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferData(BufferTarget target, IntPtr size, IntPtr data, BufferUsageHint usage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferDataARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferDataARB(BufferTargetArb target, IntPtr size, IntPtr data, BufferUsageArb usage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferParameteriAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferParameteriAPPLE(BufferTarget target, BufferParameterApple pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferSubData", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glBufferSubDataARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void BufferSubDataARB(BufferTargetArb target, IntPtr offset, IntPtr size, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCallList", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CallList(uint list); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCallLists", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CallLists(int n, ListNameType type, IntPtr lists); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern FramebufferErrorCode CheckFramebufferStatus(FramebufferTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCheckFramebufferStatusEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern FramebufferErrorCode CheckFramebufferStatusEXT(FramebufferTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCheckNamedFramebufferStatusEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern ExtDirectStateAccess CheckNamedFramebufferStatusEXT(uint framebuffer, FramebufferTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClampColor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClampColor(ClampColorTarget target, ClampColorMode clamp); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClampColorARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClampColorARB(ArbColorBufferFloat target, ArbColorBufferFloat clamp); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClear", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Clear(ClearBufferMask mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearAccum", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearAccum(float red, float green, float blue, float alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearBufferfi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearBufferfi(ClearBuffer buffer, int drawbuffer, float depth, int stencil); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearBufferfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ClearBufferfv(ClearBuffer buffer, int drawbuffer, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearBufferiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ClearBufferiv(ClearBuffer buffer, int drawbuffer, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearBufferuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ClearBufferuiv(ClearBuffer buffer, int drawbuffer, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearColor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearColor(float red, float green, float blue, float alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearColorIiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearColorIiEXT(int red, int green, int blue, int alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearColorIuiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearColorIuiEXT(uint red, uint green, uint blue, uint alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearDepth", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearDepth(double depth); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearDepthdNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearDepthdNV(double depth); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearDepthf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearDepthf(float d); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearIndex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearIndex(float c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClearStencil", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClearStencil(int s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClientActiveTexture", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClientActiveTexture(TextureUnit texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClientActiveTextureARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClientActiveTextureARB(TextureUnit texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClientActiveVertexStreamATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClientActiveVertexStreamATI(AtiVertexStreams stream); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClientAttribDefaultEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ClientAttribDefaultEXT(ClientAttribMask mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClientWaitSync", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern ArbSync ClientWaitSync(IntPtr sync, uint flags, ulong timeout); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glClipPlane", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ClipPlane(ClipPlaneName plane, double* equation); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3b", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3b(sbyte red, sbyte green, sbyte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3bv(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3d(double red, double green, double blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3f(float red, float green, float blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3fVertex3fSUN(float r, float g, float b, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3fVertex3fvSUN(float* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3i", ExactSpelling = true)] internal static extern void Color3i(int red, int green, int blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3s(short red, short green, short blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3ub", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3ub(byte red, byte green, byte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3ubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3ubv(byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3ui(uint red, uint green, uint blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3uiv(uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3us", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color3us(ushort red, ushort green, ushort blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor3usv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color3usv(ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4b", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4b(sbyte red, sbyte green, sbyte blue, sbyte alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4bv(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4d(double red, double green, double blue, double alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4f(float red, float green, float blue, float alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4fNormal3fVertex3fSUN(float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4fNormal3fVertex3fvSUN(float* c, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4i(int red, int green, int blue, int alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4s(short red, short green, short blue, short alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ub", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4ub(byte red, byte green, byte blue, byte alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4ubv(byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ubVertex2fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4ubVertex2fSUN(byte r, byte g, byte b, byte a, float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ubVertex2fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4ubVertex2fvSUN(byte* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ubVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4ubVertex3fSUN(byte r, byte g, byte b, byte a, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ubVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4ubVertex3fvSUN(byte* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4ui(uint red, uint green, uint blue, uint alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4uiv(uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4us", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Color4us(ushort red, ushort green, ushort blue, ushort alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColor4usv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Color4usv(ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorFormatNV(int size, NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorFragmentOp1ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorFragmentOp1ATI(AtiFragmentShader op, uint dst, uint dstMask, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorFragmentOp2ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorFragmentOp2ATI(AtiFragmentShader op, uint dst, uint dstMask, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod, uint arg2, uint arg2Rep, uint arg2Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorFragmentOp3ATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorFragmentOp3ATI(AtiFragmentShader op, uint dst, uint dstMask, uint dstMod, uint arg1, uint arg1Rep, uint arg1Mod, uint arg2, uint arg2Rep, uint arg2Mod, uint arg3, uint arg3Rep, uint arg3Mod); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorMask", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorMask(bool red, bool green, bool blue, bool alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorMaski", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorMaski(uint index, bool r, bool g, bool b, bool a); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorMaskIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorMaskIndexedEXT(uint index, bool r, bool g, bool b, bool a); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorMaterial", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorMaterial(MaterialFace face, ColorMaterialParameter mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorP3ui(PackedPointerType type, uint color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorP3uiv(PackedPointerType type, uint* color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorP4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorP4ui(PackedPointerType type, uint color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorP4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorP4uiv(PackedPointerType type, uint* color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorPointerEXT(int size, ColorPointerType type, int stride, int count, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorPointerListIBM(int size, ColorPointerType type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorPointervINTEL", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorPointervINTEL(int size, VertexPointerType type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorSubTable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorSubTableEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorSubTableEXT(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorTableEXT(ColorTableTarget target, PixelInternalFormat internalFormat, int width, PixelFormat format, PixelType type, IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorTableParameterfv(ColorTableTarget target, ColorTableParameterPName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableParameterfvSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorTableParameterfvSGI(SgiColorTable target, SgiColorTable pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorTableParameteriv(ColorTableTarget target, ColorTableParameterPName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableParameterivSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ColorTableParameterivSGI(SgiColorTable target, SgiColorTable pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glColorTableSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ColorTableSGI(SgiColorTable target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerInputNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CombinerInputNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners variable, NvRegisterCombiners input, NvRegisterCombiners mapping, NvRegisterCombiners componentUsage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerOutputNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CombinerOutputNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners abOutput, NvRegisterCombiners cdOutput, NvRegisterCombiners sumOutput, NvRegisterCombiners scale, NvRegisterCombiners bias, bool abDotProduct, bool cdDotProduct, bool muxSum); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerParameterfNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CombinerParameterfNV(NvRegisterCombiners pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CombinerParameterfvNV(NvRegisterCombiners pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerParameteriNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CombinerParameteriNV(NvRegisterCombiners pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CombinerParameterivNV(NvRegisterCombiners pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCombinerStageParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CombinerStageParameterfvNV(NvRegisterCombiners2 stage, NvRegisterCombiners2 pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompileShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompileShader(uint shader); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompileShaderARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompileShaderARB(uint shaderObj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompileShaderIncludeARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CompileShaderIncludeARB(uint shader, int count, string[] path, int* length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexImage1DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexImage2DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexImage3DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int depth, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexSubImage1DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexSubImage2DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedMultiTexSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedMultiTexSubImage3DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage1DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage1DARB(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage2DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage2DARB(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexImage3DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexImage3DARB(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage1DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage1DARB(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage2DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage2DARB(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTexSubImage3DARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTexSubImage3DARB(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureImage1DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureImage2DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureImage3DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int depth, int border, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureSubImage1DEXT(uint texture, TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureSubImage2DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCompressedTextureSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CompressedTextureSubImage3DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, IntPtr bits); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionFilter1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionFilter1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionFilter1DEXT(ExtConvolution target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionFilter2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionFilter2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionFilter2DEXT(ExtConvolution target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameterf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionParameterf(ConvolutionTarget target, ConvolutionParameter pname, float @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameterfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionParameterfEXT(ExtConvolution target, ExtConvolution pname, float @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ConvolutionParameterfv(ConvolutionTarget target, ConvolutionParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ConvolutionParameterfvEXT(ExtConvolution target, ExtConvolution pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionParameteri(ConvolutionTarget target, ConvolutionParameter pname, int @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameteriEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ConvolutionParameteriEXT(ExtConvolution target, ExtConvolution pname, int @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ConvolutionParameteriv(ConvolutionTarget target, ConvolutionParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glConvolutionParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ConvolutionParameterivEXT(ExtConvolution target, ExtConvolution pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyBufferSubData", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyBufferSubData(BufferTarget readTarget, BufferTarget writeTarget, IntPtr readOffset, IntPtr writeOffset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyColorSubTable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyColorSubTable(ColorTableTarget target, int start, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyColorSubTableEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyColorSubTableEXT(ColorTableTarget target, int start, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyColorTable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyColorTableSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyColorTableSGI(SgiColorTable target, PixelInternalFormat internalformat, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyConvolutionFilter1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyConvolutionFilter1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyConvolutionFilter1DEXT(ExtConvolution target, PixelInternalFormat internalformat, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyConvolutionFilter2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyConvolutionFilter2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyConvolutionFilter2DEXT(ExtConvolution target, PixelInternalFormat internalformat, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyImageSubDataNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyImageSubDataNV(uint srcName, NvCopyImage srcTarget, int srcLevel, int srcX, int srcY, int srcZ, uint dstName, NvCopyImage dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int width, int height, int depth); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyMultiTexImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyMultiTexImage1DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int x, int y, int width, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyMultiTexImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyMultiTexImage2DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int x, int y, int width, int height, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyMultiTexSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyMultiTexSubImage1DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyMultiTexSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyMultiTexSubImage2DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyMultiTexSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyMultiTexSubImage3DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyPixels", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyPixels(int x, int y, int width, int height, PixelCopyType type); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexImage1DEXT(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int height, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexImage2DEXT(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int height, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage1D(TextureTarget target, int level, int xoffset, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage1DEXT(TextureTarget target, int level, int xoffset, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage2DEXT(TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTexSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTexSubImage3DEXT(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTextureImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTextureImage1DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int x, int y, int width, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTextureImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTextureImage2DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int x, int y, int width, int height, int border); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTextureSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTextureSubImage1DEXT(uint texture, TextureTarget target, int level, int xoffset, int x, int y, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTextureSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTextureSubImage2DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCopyTextureSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CopyTextureSubImage3DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateProgram(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateProgramObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateProgramObjectARB(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateShader(ShaderType type); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateShaderObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateShaderObjectARB(ArbShaderObjects shaderType); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateShaderProgramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateShaderProgramEXT(ExtSeparateShaderObjects type, string @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateShaderProgramv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int CreateShaderProgramv(ShaderType type, int count, string[] strings); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCreateSyncFromCLeventARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr CreateSyncFromCLeventARB(IntPtr context, IntPtr @event, uint flags); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCullFace", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CullFace(CullFaceMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCullParameterdvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CullParameterdvEXT(ExtCullVertex pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCullParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void CullParameterfvEXT(ExtCullVertex pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glCurrentPaletteMatrixARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void CurrentPaletteMatrixARB(int index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDebugMessageControlARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DebugMessageControlARB(ArbDebugOutput source, ArbDebugOutput type, ArbDebugOutput severity, int count, uint* ids, bool enabled); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDebugMessageEnableAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DebugMessageEnableAMD(AmdDebugOutput category, AmdDebugOutput severity, int count, uint* ids, bool enabled); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDebugMessageInsertAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DebugMessageInsertAMD(AmdDebugOutput category, AmdDebugOutput severity, uint id, int length, string buf); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDebugMessageInsertARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DebugMessageInsertARB(ArbDebugOutput source, ArbDebugOutput type, uint id, ArbDebugOutput severity, int length, string buf); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeformationMap3dSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeformationMap3dSGIX(SgixPolynomialFfd target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double w1, double w2, int wstride, int worder, double* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeformationMap3fSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeformationMap3fSGIX(SgixPolynomialFfd target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float w1, float w2, int wstride, int worder, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeformSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeformSGIX(uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteAsyncMarkersSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteAsyncMarkersSGIX(uint marker, int range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteBuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteBuffers(int n, uint* buffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteBuffersARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteBuffersARB(int n, uint* buffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteFencesAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteFencesAPPLE(int n, uint* fences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteFencesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteFencesNV(int n, uint* fences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteFragmentShaderATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteFragmentShaderATI(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteFramebuffers(int n, uint* framebuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteFramebuffersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteFramebuffersEXT(int n, uint* framebuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteLists", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteLists(uint list, int range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteNamedStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteNamedStringARB(int namelen, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteNamesAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteNamesAMD(AmdNameGenDelete identifier, uint num, uint* names); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteObjectARB(uint obj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteOcclusionQueriesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteOcclusionQueriesNV(int n, uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeletePerfMonitorsAMD(int n, [Out] uint* monitors); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteProgram(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteProgramPipelines", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteProgramPipelines(int n, uint* pipelines); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteProgramsARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteProgramsARB(int n, uint* programs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteProgramsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteProgramsNV(int n, uint* programs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteQueries", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteQueries(int n, uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteQueriesARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteQueriesARB(int n, uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteRenderbuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteRenderbuffers(int n, uint* renderbuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteRenderbuffersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteRenderbuffersEXT(int n, uint* renderbuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteSamplers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteSamplers(int count, uint* samplers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteShader(uint shader); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteSync", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteSync(IntPtr sync); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteTextures", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteTextures(int n, uint* textures); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteTexturesEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteTexturesEXT(int n, uint* textures); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteTransformFeedbacks", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteTransformFeedbacks(int n, uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteTransformFeedbacksNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteTransformFeedbacksNV(int n, uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteVertexArrays", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteVertexArrays(int n, uint* arrays); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteVertexArraysAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DeleteVertexArraysAPPLE(int n, uint* arrays); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDeleteVertexShaderEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DeleteVertexShaderEXT(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthBoundsdNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthBoundsdNV(double zmin, double zmax); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthBoundsEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthBoundsEXT(double zmin, double zmax); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthFunc", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthFunc(DepthFunction func); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthMask", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthMask(bool flag); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthRange", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthRange(double near, double far); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthRangeArrayv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DepthRangeArrayv(uint first, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthRangedNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthRangedNV(double zNear, double zFar); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthRangef", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthRangef(float n, float f); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDepthRangeIndexed", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DepthRangeIndexed(uint index, double n, double f); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDetachObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DetachObjectARB(uint containerObj, uint attachedObj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDetachShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DetachShader(uint program, uint shader); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDetailTexFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DetailTexFuncSGIS(TextureTarget target, int n, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Disable(EnableCap cap); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableClientState", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableClientState(ArrayCap array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableClientStateIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableClientStateIndexedEXT(EnableCap array, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisablei", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Disablei(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableIndexedEXT(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableVariantClientStateEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableVariantClientStateEXT(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableVertexAttribAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableVertexAttribAPPLE(uint index, AppleVertexProgramEvaluators pname); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableVertexAttribArray", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableVertexAttribArray(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDisableVertexAttribArrayARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DisableVertexAttribArrayARB(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArrays", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArrays(BeginMode mode, int first, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArraysEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArraysEXT(BeginMode mode, int first, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArraysIndirect", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArraysIndirect(ArbDrawIndirect mode, IntPtr indirect); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArraysInstanced", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArraysInstanced(BeginMode mode, int first, int count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArraysInstancedARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArraysInstancedARB(BeginMode mode, int first, int count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawArraysInstancedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawArraysInstancedEXT(BeginMode mode, int start, int count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawBuffer(DrawBufferMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawBuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DrawBuffers(int n, DrawBuffersEnum* bufs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawBuffersARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DrawBuffersARB(int n, ArbDrawBuffers* bufs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawBuffersATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void DrawBuffersATI(int n, AtiDrawBuffers* bufs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementArrayAPPLE(BeginMode mode, int first, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementArrayATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementArrayATI(BeginMode mode, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElements", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElements(BeginMode mode, int count, DrawElementsType type, IntPtr indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsBaseVertex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsBaseVertex(BeginMode mode, int count, DrawElementsType type, IntPtr indices, int basevertex); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsIndirect", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsIndirect(ArbDrawIndirect mode, ArbDrawIndirect type, IntPtr indirect); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsInstanced", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsInstanced(BeginMode mode, int count, DrawElementsType type, IntPtr indices, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsInstancedARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsInstancedARB(BeginMode mode, int count, DrawElementsType type, IntPtr indices, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsInstancedBaseVertex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsInstancedBaseVertex(BeginMode mode, int count, DrawElementsType type, IntPtr indices, int primcount, int basevertex); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawElementsInstancedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawElementsInstancedEXT(BeginMode mode, int count, DrawElementsType type, IntPtr indices, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawMeshArraysSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawMeshArraysSUN(BeginMode mode, int first, int count, int width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawPixels", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawPixels(int width, int height, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawRangeElementArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawRangeElementArrayAPPLE(BeginMode mode, uint start, uint end, int first, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawRangeElementArrayATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawRangeElementArrayATI(BeginMode mode, uint start, uint end, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawRangeElements", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, IntPtr indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawRangeElementsBaseVertex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawRangeElementsBaseVertex(BeginMode mode, uint start, uint end, int count, DrawElementsType type, IntPtr indices, int basevertex); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawRangeElementsEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawRangeElementsEXT(BeginMode mode, uint start, uint end, int count, DrawElementsType type, IntPtr indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawTransformFeedback(BeginMode mode, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawTransformFeedbackNV(NvTransformFeedback2 mode, uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glDrawTransformFeedbackStream", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void DrawTransformFeedbackStream(BeginMode mode, uint id, uint stream); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlag", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EdgeFlag(bool flag); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlagFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EdgeFlagFormatNV(int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlagPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EdgeFlagPointer(int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlagPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EdgeFlagPointerEXT(int stride, int count, bool* pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlagPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EdgeFlagPointerListIBM(int stride, bool* pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEdgeFlagv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EdgeFlagv(bool* flag); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glElementPointerAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ElementPointerAPPLE(AppleElementArray type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glElementPointerATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ElementPointerATI(AtiElementArray type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Enable(EnableCap cap); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableClientState", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableClientState(ArrayCap array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableClientStateIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableClientStateIndexedEXT(EnableCap array, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnablei", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Enablei(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableIndexedEXT(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableVariantClientStateEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableVariantClientStateEXT(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableVertexAttribAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableVertexAttribAPPLE(uint index, AppleVertexProgramEvaluators pname); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableVertexAttribArray", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableVertexAttribArray(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnableVertexAttribArrayARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EnableVertexAttribArrayARB(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEnd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void End(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndConditionalRender", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndConditionalRender(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndConditionalRenderNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndConditionalRenderNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndFragmentShaderATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndFragmentShaderATI(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndList", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndList(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndOcclusionQueryNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndOcclusionQueryNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndPerfMonitorAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndPerfMonitorAMD(uint monitor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndQuery", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndQuery(QueryTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndQueryARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndQueryARB(ArbOcclusionQuery target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndQueryIndexed", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndQueryIndexed(QueryTarget target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndTransformFeedback(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndTransformFeedbackEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndTransformFeedbackEXT(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndTransformFeedbackNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndVertexShaderEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndVertexShaderEXT(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEndVideoCaptureNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EndVideoCaptureNV(uint video_capture_slot); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalCoord1d(double u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EvalCoord1dv(double* u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalCoord1f(float u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EvalCoord1fv(float* u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalCoord2d(double u, double v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EvalCoord2dv(double* u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalCoord2f(float u, float v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalCoord2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void EvalCoord2fv(float* u); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalMapsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalMapsNV(NvEvaluators target, NvEvaluators mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalMesh1", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalMesh1(MeshMode1 mode, int i1, int i2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalMesh2", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalMesh2(MeshMode2 mode, int i1, int i2, int j1, int j2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalPoint1", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalPoint1(int i); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glEvalPoint2", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void EvalPoint2(int i, int j); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glExecuteProgramNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ExecuteProgramNV(AssemblyProgramTargetArb target, uint id, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glExtractComponentEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ExtractComponentEXT(uint res, uint src, uint num); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFeedbackBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FeedbackBuffer(int size, FeedbackType type, [Out] float* buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFenceSync", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr FenceSync(ArbSync condition, uint flags); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinalCombinerInputNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FinalCombinerInputNV(NvRegisterCombiners variable, NvRegisterCombiners input, NvRegisterCombiners mapping, NvRegisterCombiners componentUsage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinish", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Finish(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinishAsyncSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern int FinishAsyncSGIX([Out] uint* markerp); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinishFenceAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FinishFenceAPPLE(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinishFenceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FinishFenceNV(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinishObjectAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FinishObjectAPPLE(AppleFence @object, int name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFinishTextureSUNX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FinishTextureSUNX(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlush", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Flush(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushMappedBufferRange", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushMappedBufferRange(BufferTarget target, IntPtr offset, IntPtr length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushMappedBufferRangeAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushMappedBufferRangeAPPLE(BufferTarget target, IntPtr offset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushMappedNamedBufferRangeEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushMappedNamedBufferRangeEXT(uint buffer, IntPtr offset, IntPtr length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushPixelDataRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushPixelDataRangeNV(NvPixelDataRange target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushRasterSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushRasterSGIX(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushVertexArrayRangeAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushVertexArrayRangeAPPLE(int length, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFlushVertexArrayRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FlushVertexArrayRangeNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordd(double coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoorddEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoorddEXT(double coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoorddv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FogCoorddv(double* coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoorddvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FogCoorddvEXT(double* coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordf(float coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordfEXT(float coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordFormatNV(NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FogCoordfv(float* coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FogCoordfvEXT(float* coord); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordPointer(FogPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordPointerEXT(ExtFogCoord type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogCoordPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FogCoordPointerListIBM(IbmVertexArrayLists type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Fogf(FogParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FogFuncSGIS(int n, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Fogfv(FogParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Fogi(FogParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFogiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Fogiv(FogParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentColorMaterialSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentColorMaterialSGIX(MaterialFace face, MaterialParameter mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightfSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentLightfSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentLightfvSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightiSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentLightiSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentLightivSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightModelfSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentLightModelfSGIX(SgixFragmentLighting pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightModelfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentLightModelfvSGIX(SgixFragmentLighting pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightModeliSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentLightModeliSGIX(SgixFragmentLighting pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentLightModelivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentLightModelivSGIX(SgixFragmentLighting pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentMaterialfSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentMaterialfSGIX(MaterialFace face, MaterialParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentMaterialfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentMaterialfvSGIX(MaterialFace face, MaterialParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentMaterialiSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FragmentMaterialiSGIX(MaterialFace face, MaterialParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFragmentMaterialivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FragmentMaterialivSGIX(MaterialFace face, MaterialParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferDrawBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferDrawBufferEXT(uint framebuffer, DrawBufferMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferDrawBuffersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void FramebufferDrawBuffersEXT(uint framebuffer, int n, DrawBufferMode* bufs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferReadBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferReadBufferEXT(uint framebuffer, ReadBufferMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferRenderbuffer(FramebufferTarget target, FramebufferAttachment attachment, RenderbufferTarget renderbuffertarget, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferRenderbufferEXT(FramebufferTarget target, FramebufferAttachment attachment, RenderbufferTarget renderbuffertarget, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture1D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture1DEXT(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture2D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture2DEXT(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture3D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level, int zoffset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTexture3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTexture3DEXT(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level, int zoffset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureARB(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureEXT(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureFaceARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureFaceARB(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, TextureTarget face); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureFaceEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureFaceEXT(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, TextureTarget face); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureLayer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureLayer(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, int layer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureLayerARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureLayerARB(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, int layer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFramebufferTextureLayerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FramebufferTextureLayerEXT(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, int layer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFrameTerminatorGREMEDY", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FrameTerminatorGREMEDY(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFrameZoomSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FrameZoomSGIX(int factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFreeObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FreeObjectBufferATI(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFrontFace", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void FrontFace(FrontFaceDirection mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glFrustum", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Frustum(double left, double right, double bottom, double top, double zNear, double zFar); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenAsyncMarkersSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GenAsyncMarkersSGIX(int range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenBuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenBuffers(int n, [Out] uint* buffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenBuffersARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenBuffersARB(int n, [Out] uint* buffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenerateMipmap", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GenerateMipmap(GenerateMipmapTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenerateMipmapEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GenerateMipmapEXT(GenerateMipmapTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenerateMultiTexMipmapEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GenerateMultiTexMipmapEXT(TextureUnit texunit, TextureTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenerateTextureMipmapEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GenerateTextureMipmapEXT(uint texture, TextureTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenFencesAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenFencesAPPLE(int n, [Out] uint* fences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenFencesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenFencesNV(int n, [Out] uint* fences); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenFragmentShadersATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GenFragmentShadersATI(uint range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenFramebuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenFramebuffers(int n, [Out] uint* framebuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenFramebuffersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenFramebuffersEXT(int n, [Out] uint* framebuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenLists", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GenLists(int range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenNamesAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenNamesAMD(AmdNameGenDelete identifier, uint num, [Out] uint* names); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenOcclusionQueriesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenOcclusionQueriesNV(int n, [Out] uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenPerfMonitorsAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenPerfMonitorsAMD(int n, [Out] uint* monitors); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenProgramPipelines", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenProgramPipelines(int n, [Out] uint* pipelines); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenProgramsARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenProgramsARB(int n, [Out] uint* programs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenProgramsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenProgramsNV(int n, [Out] uint* programs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenQueries", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenQueries(int n, [Out] uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenQueriesARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenQueriesARB(int n, [Out] uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenRenderbuffers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenRenderbuffers(int n, [Out] uint* renderbuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenRenderbuffersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenRenderbuffersEXT(int n, [Out] uint* renderbuffers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenSamplers", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenSamplers(int count, [Out] uint* samplers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenSymbolsEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GenSymbolsEXT(ExtVertexShader datatype, ExtVertexShader storagetype, ExtVertexShader range, uint components); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenTextures", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenTextures(int n, [Out] uint* textures); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenTexturesEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenTexturesEXT(int n, [Out] uint* textures); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenTransformFeedbacks", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenTransformFeedbacks(int n, [Out] uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenTransformFeedbacksNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenTransformFeedbacksNV(int n, [Out] uint* ids); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenVertexArrays", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenVertexArrays(int n, [Out] uint* arrays); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenVertexArraysAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GenVertexArraysAPPLE(int n, [Out] uint* arrays); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGenVertexShadersEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GenVertexShadersEXT(uint range); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveAttrib(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveAttribType* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveAttribARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveAttribARB(uint programObj, uint index, int maxLength, [Out] int* length, [Out] int* size, [Out] ArbVertexShader* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveSubroutineName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveSubroutineName(uint program, ShaderType shadertype, uint index, int bufsize, [Out] int* length, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveSubroutineUniformiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveSubroutineUniformiv(uint program, ShaderType shadertype, uint index, ActiveSubroutineUniformParameter pname, [Out] int* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveSubroutineUniformName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveSubroutineUniformName(uint program, ShaderType shadertype, uint index, int bufsize, [Out] int* length, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniform", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniform(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveUniformType* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniformARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniformARB(uint programObj, uint index, int maxLength, [Out] int* length, [Out] int* size, [Out] ArbShaderObjects* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniformBlockiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniformBlockiv(uint program, uint uniformBlockIndex, ActiveUniformBlockParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniformBlockName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniformBlockName(uint program, uint uniformBlockIndex, int bufSize, [Out] int* length, [Out] StringBuilder uniformBlockName); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniformName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniformName(uint program, uint uniformIndex, int bufSize, [Out] int* length, [Out] StringBuilder uniformName); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveUniformsiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveUniformsiv(uint program, int uniformCount, uint* uniformIndices, ActiveUniformParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetActiveVaryingNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetActiveVaryingNV(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] NvTransformFeedback* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetArrayObjectfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetArrayObjectfvATI(EnableCap array, AtiVertexArrayObject pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetArrayObjectivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetArrayObjectivATI(EnableCap array, AtiVertexArrayObject pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetAttachedObjectsARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetAttachedObjectsARB(uint containerObj, int maxCount, [Out] int* count, [Out] uint* obj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetAttachedShaders(uint program, int maxCount, [Out] int* count, [Out] uint* obj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetAttribLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetAttribLocation(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetAttribLocationARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetAttribLocationARB(uint programObj, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBooleani_v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBooleani_v(GetIndexedPName target, uint index, [Out] bool* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBooleanIndexedvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBooleanIndexedvEXT(ExtDrawBuffers2 target, uint index, [Out] bool* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBooleanv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBooleanv(GetPName pname, [Out] bool* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferParameteri64v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBufferParameteri64v(Version32 target, Version32 pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBufferParameteriv(BufferTarget target, BufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferParameterivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBufferParameterivARB(ArbVertexBufferObject target, BufferParameterNameArb pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferParameterui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetBufferParameterui64vNV(NvShaderBufferLoad target, NvShaderBufferLoad pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferPointerv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetBufferPointerv(BufferTarget target, BufferPointer pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferPointervARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetBufferPointervARB(ArbVertexBufferObject target, BufferPointerNameArb pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferSubData", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetBufferSubDataARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetBufferSubDataARB(BufferTargetArb target, IntPtr offset, IntPtr size, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetClipPlane", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetClipPlane(ClipPlaneName plane, [Out] double* equation); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTable", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [Out] IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetColorTableEXT(ColorTableTarget target, PixelFormat format, PixelType type, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameterfv(ColorTableTarget target, GetColorTableParameterPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameterfvEXT(ColorTableTarget target, GetColorTableParameterPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameterfvSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameterfvSGI(SgiColorTable target, SgiColorTable pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameteriv(ColorTableTarget target, GetColorTableParameterPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameterivEXT(ColorTableTarget target, GetColorTableParameterPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableParameterivSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetColorTableParameterivSGI(SgiColorTable target, SgiColorTable pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetColorTableSGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetColorTableSGI(SgiColorTable target, PixelFormat format, PixelType type, [Out] IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCombinerInputParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetCombinerInputParameterfvNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners variable, NvRegisterCombiners pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCombinerInputParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetCombinerInputParameterivNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners variable, NvRegisterCombiners pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCombinerOutputParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetCombinerOutputParameterfvNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCombinerOutputParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetCombinerOutputParameterivNV(NvRegisterCombiners stage, NvRegisterCombiners portion, NvRegisterCombiners pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCombinerStageParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetCombinerStageParameterfvNV(NvRegisterCombiners2 stage, NvRegisterCombiners2 pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCompressedMultiTexImageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetCompressedMultiTexImageEXT(TextureUnit texunit, TextureTarget target, int lod, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCompressedTexImage", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetCompressedTexImage(TextureTarget target, int level, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCompressedTexImageARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetCompressedTexImageARB(TextureTarget target, int level, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetCompressedTextureImageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetCompressedTextureImageEXT(uint texture, TextureTarget target, int lod, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionFilter", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [Out] IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionFilterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetConvolutionFilterEXT(ExtConvolution target, PixelFormat format, PixelType type, [Out] IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetConvolutionParameterfv(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetConvolutionParameterfvEXT(ExtConvolution target, ExtConvolution pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetConvolutionParameteriv(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetConvolutionParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetConvolutionParameterivEXT(ExtConvolution target, ExtConvolution pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDebugMessageLogAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern int GetDebugMessageLogAMD(uint count, int bufsize, [Out] AmdDebugOutput* categories, [Out] uint* severities, [Out] uint* ids, [Out] int* lengths, [Out] StringBuilder message); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDebugMessageLogARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern int GetDebugMessageLogARB(uint count, int bufsize, [Out] ArbDebugOutput* sources, [Out] ArbDebugOutput* types, [Out] uint* ids, [Out] ArbDebugOutput* severities, [Out] int* lengths, [Out] StringBuilder messageLog); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDetailTexFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetDetailTexFuncSGIS(TextureTarget target, [Out] float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDoublei_v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetDoublei_v(GetIndexedPName target, uint index, [Out] double* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDoubleIndexedvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetDoubleIndexedvEXT(ExtDirectStateAccess target, uint index, [Out] double* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetDoublev", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetDoublev(GetPName pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetError", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern ErrorCode GetError(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFenceivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFenceivNV(uint fence, NvFence pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFinalCombinerInputParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFinalCombinerInputParameterfvNV(NvRegisterCombiners variable, NvRegisterCombiners pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFinalCombinerInputParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFinalCombinerInputParameterivNV(NvRegisterCombiners variable, NvRegisterCombiners pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFloati_v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFloati_v(GetIndexedPName target, uint index, [Out] float* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFloatIndexedvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFloatIndexedvEXT(ExtDirectStateAccess target, uint index, [Out] float* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFloatv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFloatv(GetPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFogFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFogFuncSGIS([Out] float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragDataIndex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetFragDataIndex(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragDataLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetFragDataLocation(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragDataLocationEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetFragDataLocationEXT(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragmentLightfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFragmentLightfvSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragmentLightivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFragmentLightivSGIX(SgixFragmentLighting light, SgixFragmentLighting pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragmentMaterialfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFragmentMaterialfvSGIX(MaterialFace face, MaterialParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFragmentMaterialivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFragmentMaterialivSGIX(MaterialFace face, MaterialParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFramebufferAttachmentParameteriv(FramebufferTarget target, FramebufferAttachment attachment, FramebufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFramebufferAttachmentParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFramebufferAttachmentParameterivEXT(FramebufferTarget target, FramebufferAttachment attachment, FramebufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetFramebufferParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetFramebufferParameterivEXT(uint framebuffer, ExtDirectStateAccess pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetGraphicsResetStatusARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern ArbRobustness GetGraphicsResetStatusARB(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHandleARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetHandleARB(ArbShaderObjects pname); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetHistogramEXT(ExtHistogram target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogramParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetHistogramParameterfv(HistogramTarget target, GetHistogramParameterPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogramParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetHistogramParameterfvEXT(ExtHistogram target, ExtHistogram pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogramParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetHistogramParameteriv(HistogramTarget target, GetHistogramParameterPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetHistogramParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetHistogramParameterivEXT(ExtHistogram target, ExtHistogram pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetImageTransformParameterfvHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetImageTransformParameterfvHP(HpImageTransform target, HpImageTransform pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetImageTransformParameterivHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetImageTransformParameterivHP(HpImageTransform target, HpImageTransform pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInfoLogARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInfoLogARB(uint obj, int maxLength, [Out] int* length, [Out] StringBuilder infoLog); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInstrumentsSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetInstrumentsSGIX(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInteger64i_v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInteger64i_v(Version32 target, uint index, [Out] long* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInteger64v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInteger64v(ArbSync pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetIntegeri_v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetIntegeri_v(GetIndexedPName target, uint index, [Out] int* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetIntegerIndexedvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetIntegerIndexedvEXT(GetIndexedPName target, uint index, [Out] int* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetIntegerui64i_vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetIntegerui64i_vNV(NvVertexBufferUnifiedMemory value, uint index, [Out] ulong* result); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetIntegerui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetIntegerui64vNV(NvShaderBufferLoad value, [Out] ulong* result); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetIntegerv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetIntegerv(GetPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInvariantBooleanvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInvariantBooleanvEXT(uint id, ExtVertexShader value, [Out] bool* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInvariantFloatvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInvariantFloatvEXT(uint id, ExtVertexShader value, [Out] float* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetInvariantIntegervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetInvariantIntegervEXT(uint id, ExtVertexShader value, [Out] int* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetLightfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetLightfv(LightName light, LightParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetLightiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetLightiv(LightName light, LightParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetListParameterfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetListParameterfvSGIX(uint list, ListParameterName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetListParameterivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetListParameterivSGIX(uint list, ListParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetLocalConstantBooleanvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetLocalConstantBooleanvEXT(uint id, ExtVertexShader value, [Out] bool* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetLocalConstantFloatvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetLocalConstantFloatvEXT(uint id, ExtVertexShader value, [Out] float* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetLocalConstantIntegervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetLocalConstantIntegervEXT(uint id, ExtVertexShader value, [Out] int* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapAttribParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapAttribParameterfvNV(NvEvaluators target, uint index, NvEvaluators pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapAttribParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapAttribParameterivNV(NvEvaluators target, uint index, NvEvaluators pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapControlPointsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetMapControlPointsNV(NvEvaluators target, uint index, NvEvaluators type, int ustride, int vstride, bool packed, [Out] IntPtr points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapdv(MapTarget target, GetMapQuery query, [Out] double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapfv(MapTarget target, GetMapQuery query, [Out] float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapiv(MapTarget target, GetMapQuery query, [Out] int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapParameterfvNV(NvEvaluators target, NvEvaluators pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMapParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMapParameterivNV(NvEvaluators target, NvEvaluators pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMaterialfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMaterialfv(MaterialFace face, MaterialParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMaterialiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMaterialiv(MaterialFace face, MaterialParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmax", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmaxEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetMinmaxEXT(ExtHistogram target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmaxParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMinmaxParameterfv(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmaxParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMinmaxParameterfvEXT(ExtHistogram target, ExtHistogram pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmaxParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMinmaxParameteriv(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMinmaxParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMinmaxParameterivEXT(ExtHistogram target, ExtHistogram pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultisamplefv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultisamplefv(GetMultisamplePName pname, uint index, [Out] float* val); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultisamplefvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultisamplefvNV(NvExplicitMultisample pname, uint index, [Out] float* val); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexEnvfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexEnvfvEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexEnvivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexEnvivEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexGendvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexGendvEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexGenfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexGenfvEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexGenivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexGenivEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexImageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetMultiTexImageEXT(TextureUnit texunit, TextureTarget target, int level, PixelFormat format, PixelType type, [Out] IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexLevelParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexLevelParameterfvEXT(TextureUnit texunit, TextureTarget target, int level, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexLevelParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexLevelParameterivEXT(TextureUnit texunit, TextureTarget target, int level, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexParameterfvEXT(TextureUnit texunit, TextureTarget target, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexParameterIivEXT(TextureUnit texunit, TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexParameterIuivEXT(TextureUnit texunit, TextureTarget target, GetTextureParameter pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetMultiTexParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetMultiTexParameterivEXT(TextureUnit texunit, TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedBufferParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedBufferParameterivEXT(uint buffer, ExtDirectStateAccess pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedBufferParameterui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedBufferParameterui64vNV(uint buffer, NvShaderBufferLoad pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedBufferPointervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetNamedBufferPointervEXT(uint buffer, ExtDirectStateAccess pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedBufferSubDataEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetNamedBufferSubDataEXT(uint buffer, IntPtr offset, IntPtr size, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedFramebufferAttachmentParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedFramebufferAttachmentParameterivEXT(uint framebuffer, FramebufferAttachment attachment, ExtDirectStateAccess pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedProgramivEXT(uint program, ExtDirectStateAccess target, ExtDirectStateAccess pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramLocalParameterdvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedProgramLocalParameterdvEXT(uint program, ExtDirectStateAccess target, uint index, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramLocalParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedProgramLocalParameterfvEXT(uint program, ExtDirectStateAccess target, uint index, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramLocalParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedProgramLocalParameterIivEXT(uint program, ExtDirectStateAccess target, uint index, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramLocalParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedProgramLocalParameterIuivEXT(uint program, ExtDirectStateAccess target, uint index, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedProgramStringEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetNamedProgramStringEXT(uint program, ExtDirectStateAccess target, ExtDirectStateAccess pname, [Out] IntPtr @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedRenderbufferParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedRenderbufferParameterivEXT(uint renderbuffer, RenderbufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedStringARB(int namelen, string name, int bufSize, [Out] int* stringlen, [Out] StringBuilder @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetNamedStringivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetNamedStringivARB(int namelen, string name, ArbShadingLanguageInclude pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnColorTableARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnColorTableARB(ArbRobustness target, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr table); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnCompressedTexImageARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnCompressedTexImageARB(ArbRobustness target, int lod, int bufSize, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnConvolutionFilterARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnConvolutionFilterARB(ArbRobustness target, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr image); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnHistogramARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnHistogramARB(ArbRobustness target, bool reset, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnMapdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnMapdvARB(ArbRobustness target, ArbRobustness query, int bufSize, [Out] double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnMapfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnMapfvARB(ArbRobustness target, ArbRobustness query, int bufSize, [Out] float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnMapivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnMapivARB(ArbRobustness target, ArbRobustness query, int bufSize, [Out] int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnMinmaxARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnMinmaxARB(ArbRobustness target, bool reset, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnPixelMapfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnPixelMapfvARB(ArbRobustness map, int bufSize, [Out] float* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnPixelMapuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnPixelMapuivARB(ArbRobustness map, int bufSize, [Out] uint* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnPixelMapusvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnPixelMapusvARB(ArbRobustness map, int bufSize, [Out] ushort* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnPolygonStippleARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnPolygonStippleARB(int bufSize, [Out] byte* pattern); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnSeparableFilterARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnSeparableFilterARB(ArbRobustness target, ArbRobustness format, ArbRobustness type, int rowBufSize, [Out] IntPtr row, int columnBufSize, [Out] IntPtr column, [Out] IntPtr span); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnTexImageARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetnTexImageARB(ArbRobustness target, int level, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr img); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnUniformdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnUniformdvARB(uint program, int location, int bufSize, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnUniformfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnUniformfvARB(uint program, int location, int bufSize, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnUniformivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnUniformivARB(uint program, int location, int bufSize, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetnUniformuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetnUniformuivARB(uint program, int location, int bufSize, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetObjectBufferfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetObjectBufferfvATI(uint buffer, AtiVertexArrayObject pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetObjectBufferivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetObjectBufferivATI(uint buffer, AtiVertexArrayObject pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetObjectParameterfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetObjectParameterfvARB(uint obj, ArbShaderObjects pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetObjectParameterivAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetObjectParameterivAPPLE(AppleObjectPurgeable objectType, uint name, AppleObjectPurgeable pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetObjectParameterivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetObjectParameterivARB(uint obj, ArbShaderObjects pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetOcclusionQueryivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetOcclusionQueryivNV(uint id, NvOcclusionQuery pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetOcclusionQueryuivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetOcclusionQueryuivNV(uint id, NvOcclusionQuery pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPerfMonitorCounterDataAMD(uint monitor, AmdPerformanceMonitor pname, int dataSize, [Out] uint* data, [Out] int* bytesWritten); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorCounterInfoAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetPerfMonitorCounterInfoAMD(uint group, uint counter, AmdPerformanceMonitor pname, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorCountersAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPerfMonitorCountersAMD(uint group, [Out] int* numCounters, [Out] int* maxActiveCounters, int counterSize, [Out] uint* counters); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPerfMonitorCounterStringAMD(uint group, uint counter, int bufSize, [Out] int* length, [Out] StringBuilder counterString); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPerfMonitorGroupsAMD([Out] int* numGroups, int groupsSize, [Out] uint* groups); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPerfMonitorGroupStringAMD(uint group, int bufSize, [Out] int* length, [Out] StringBuilder groupString); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPixelMapfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPixelMapfv(PixelMap map, [Out] float* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPixelMapuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPixelMapuiv(PixelMap map, [Out] uint* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPixelMapusv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPixelMapusv(PixelMap map, [Out] ushort* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPixelTexGenParameterfvSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPixelTexGenParameterfvSGIS(SgisPixelTexture pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPixelTexGenParameterivSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPixelTexGenParameterivSGIS(SgisPixelTexture pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPointerIndexedvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetPointerIndexedvEXT(ExtDirectStateAccess target, uint index, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPointerv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetPointerv(GetPointervPName pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPointervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetPointervEXT(GetPointervPName pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetPolygonStipple", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetPolygonStipple([Out] byte* mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramBinary", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramBinary(uint program, int bufSize, [Out] int* length, [Out] BinaryFormat* binaryFormat, [Out] IntPtr binary); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramEnvParameterdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramEnvParameterdvARB(ArbVertexProgram target, uint index, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramEnvParameterfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramEnvParameterfvARB(ArbVertexProgram target, uint index, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramEnvParameterIivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramEnvParameterIivNV(NvGpuProgram4 target, uint index, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramEnvParameterIuivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramEnvParameterIuivNV(NvGpuProgram4 target, uint index, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramInfoLog(uint program, int bufSize, [Out] int* length, [Out] StringBuilder infoLog); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramiv(uint program, ProgramParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramivARB(AssemblyProgramTargetArb target, AssemblyProgramParameterArb pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramivNV(uint id, NvVertexProgram pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramLocalParameterdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramLocalParameterdvARB(ArbVertexProgram target, uint index, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramLocalParameterfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramLocalParameterfvARB(ArbVertexProgram target, uint index, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramLocalParameterIivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramLocalParameterIivNV(NvGpuProgram4 target, uint index, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramLocalParameterIuivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramLocalParameterIuivNV(NvGpuProgram4 target, uint index, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramNamedParameterdvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramNamedParameterdvNV(uint id, int len, byte* name, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramNamedParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramNamedParameterfvNV(uint id, int len, byte* name, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramParameterdvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramParameterdvNV(AssemblyProgramTargetArb target, uint index, AssemblyProgramParameterArb pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramParameterfvNV(AssemblyProgramTargetArb target, uint index, AssemblyProgramParameterArb pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramPipelineInfoLog", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramPipelineInfoLog(uint pipeline, int bufSize, [Out] int* length, [Out] StringBuilder infoLog); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramPipelineiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramPipelineiv(uint pipeline, ProgramPipelineParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramStageiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramStageiv(uint program, ShaderType shadertype, ProgramStageParameter pname, [Out] int* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetProgramStringARB(AssemblyProgramTargetArb target, AssemblyProgramParameterArb pname, [Out] IntPtr @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramStringNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramStringNV(uint id, NvVertexProgram pname, [Out] byte* program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetProgramSubroutineParameteruivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetProgramSubroutineParameteruivNV(NvGpuProgram5 target, uint index, [Out] uint* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryIndexediv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryIndexediv(QueryTarget target, uint index, GetQueryParam pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryiv(QueryTarget target, GetQueryParam pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryivARB(ArbOcclusionQuery target, ArbOcclusionQuery pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjecti64v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjecti64v(uint id, ArbTimerQuery pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjecti64vEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjecti64vEXT(uint id, ExtTimerQuery pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectiv(uint id, GetQueryObjectParam pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectivARB(uint id, ArbOcclusionQuery pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectui64v", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectui64v(uint id, ArbTimerQuery pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectui64vEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectui64vEXT(uint id, ExtTimerQuery pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectuiv(uint id, GetQueryObjectParam pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetQueryObjectuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetQueryObjectuivARB(uint id, ArbOcclusionQuery pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetRenderbufferParameteriv(RenderbufferTarget target, RenderbufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetRenderbufferParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetRenderbufferParameterivEXT(RenderbufferTarget target, RenderbufferParameterName pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSamplerParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSamplerParameterfv(uint sampler, SamplerParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSamplerParameterIiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSamplerParameterIiv(uint sampler, ArbSamplerObjects pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSamplerParameterIuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSamplerParameterIuiv(uint sampler, ArbSamplerObjects pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSamplerParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSamplerParameteriv(uint sampler, SamplerParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSeparableFilter", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [Out] IntPtr span); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSeparableFilterEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetSeparableFilterEXT(ExtConvolution target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [Out] IntPtr span); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetShaderInfoLog(uint shader, int bufSize, [Out] int* length, [Out] StringBuilder infoLog); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetShaderiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetShaderiv(uint shader, ShaderParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetShaderPrecisionFormat(ShaderType shadertype, ShaderPrecisionType precisiontype, [Out] int* range, [Out] int* precision); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetShaderSource", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetShaderSource(uint shader, int bufSize, [Out] int* length, [Out] StringBuilder source); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetShaderSourceARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetShaderSourceARB(uint obj, int maxLength, [Out] int* length, [Out] StringBuilder source); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSharpenTexFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSharpenTexFuncSGIS(TextureTarget target, [Out] float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetString", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr GetString(StringName name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetStringi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr GetStringi(StringName name, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSubroutineIndex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetSubroutineIndex(uint program, ShaderType shadertype, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSubroutineUniformLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetSubroutineUniformLocation(uint program, ShaderType shadertype, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetSynciv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetSynciv(IntPtr sync, ArbSync pname, int bufSize, [Out] int* length, [Out] int* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexBumpParameterfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexBumpParameterfvATI(AtiEnvmapBumpmap pname, [Out] float* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexBumpParameterivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexBumpParameterivATI(AtiEnvmapBumpmap pname, [Out] int* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexEnvfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexEnvfv(TextureEnvTarget target, TextureEnvParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexEnviv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexEnviv(TextureEnvTarget target, TextureEnvParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexFilterFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexFilterFuncSGIS(TextureTarget target, SgisTextureFilter4 filter, [Out] float* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexGendv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexGendv(TextureCoordName coord, TextureGenParameter pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexGenfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexGenfv(TextureCoordName coord, TextureGenParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexGeniv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexGeniv(TextureCoordName coord, TextureGenParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexImage", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [Out] IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexLevelParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexLevelParameterfv(TextureTarget target, int level, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexLevelParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexLevelParameteriv(TextureTarget target, int level, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameterfv(TextureTarget target, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterIiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameterIiv(TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameterIivEXT(TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterIuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameterIuiv(TextureTarget target, GetTextureParameter pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameterIuivEXT(TextureTarget target, GetTextureParameter pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTexParameteriv(TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTexParameterPointervAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetTexParameterPointervAPPLE(AppleTextureRange target, AppleTextureRange pname, [Out] IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureImageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetTextureImageEXT(uint texture, TextureTarget target, int level, PixelFormat format, PixelType type, [Out] IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureLevelParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureLevelParameterfvEXT(uint texture, TextureTarget target, int level, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureLevelParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureLevelParameterivEXT(uint texture, TextureTarget target, int level, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureParameterfvEXT(uint texture, TextureTarget target, GetTextureParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureParameterIivEXT(uint texture, TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureParameterIuivEXT(uint texture, TextureTarget target, GetTextureParameter pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTextureParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTextureParameterivEXT(uint texture, TextureTarget target, GetTextureParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTrackMatrixivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTrackMatrixivNV(AssemblyProgramTargetArb target, uint address, AssemblyProgramParameterArb pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTransformFeedbackVarying(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveAttribType* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTransformFeedbackVaryingEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTransformFeedbackVaryingEXT(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ExtTransformFeedback* type, [Out] StringBuilder name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetTransformFeedbackVaryingNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetTransformFeedbackVaryingNV(uint program, uint index, [Out] int* location); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformBlockIndex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetUniformBlockIndex(uint program, string uniformBlockName); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformBufferSizeEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetUniformBufferSizeEXT(uint program, int location); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformdv(uint program, int location, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformfv(uint program, int location, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformfvARB(uint programObj, int location, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformi64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformi64vNV(uint program, int location, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformIndices", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformIndices(uint program, int uniformCount, string[] uniformNames, [Out] uint* uniformIndices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformiv(uint program, int location, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformivARB(uint programObj, int location, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformLocation", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetUniformLocation(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformLocationARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetUniformLocationARB(uint programObj, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformOffsetEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr GetUniformOffsetEXT(uint program, int location); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformSubroutineuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformSubroutineuiv(ShaderType shadertype, int location, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformui64vNV(uint program, int location, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformuiv(uint program, int location, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetUniformuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetUniformuivEXT(uint program, int location, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantArrayObjectfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVariantArrayObjectfvATI(uint id, AtiVertexArrayObject pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantArrayObjectivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVariantArrayObjectivATI(uint id, AtiVertexArrayObject pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantBooleanvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVariantBooleanvEXT(uint id, ExtVertexShader value, [Out] bool* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantFloatvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVariantFloatvEXT(uint id, ExtVertexShader value, [Out] float* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantIntegervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVariantIntegervEXT(uint id, ExtVertexShader value, [Out] int* data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVariantPointervEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetVariantPointervEXT(uint id, ExtVertexShader value, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVaryingLocationNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int GetVaryingLocationNV(uint program, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribArrayObjectfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribArrayObjectfvATI(uint index, AtiVertexAttribArrayObject pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribArrayObjectivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribArrayObjectivATI(uint index, AtiVertexAttribArrayObject pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribdv(uint index, VertexAttribParameter pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribdvARB(uint index, VertexAttribParameterArb pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribdvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribdvNV(uint index, NvVertexProgram pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribfv(uint index, VertexAttribParameter pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribfvARB(uint index, VertexAttribParameterArb pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribfvNV(uint index, NvVertexProgram pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribIiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribIiv(uint index, VertexAttribParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribIivEXT(uint index, NvVertexProgram4 pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribIuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribIuiv(uint index, VertexAttribParameter pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribIuivEXT(uint index, NvVertexProgram4 pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribiv(uint index, VertexAttribParameter pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribivARB(uint index, VertexAttribParameterArb pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribivNV(uint index, NvVertexProgram pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribLdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribLdv(uint index, VertexAttribParameter pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribLdvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribLdvEXT(uint index, ExtVertexAttrib64bit pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribLi64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribLi64vNV(uint index, NvVertexAttribInteger64bit pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribLui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVertexAttribLui64vNV(uint index, NvVertexAttribInteger64bit pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetVertexAttribPointerv(uint index, VertexAttribPointerParameter pname, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribPointervARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetVertexAttribPointervARB(uint index, VertexAttribPointerParameterArb pname, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVertexAttribPointervNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GetVertexAttribPointervNV(uint index, NvVertexProgram pname, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoCaptureivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoCaptureivNV(uint video_capture_slot, NvVideoCapture pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoCaptureStreamdvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoCaptureStreamdvNV(uint video_capture_slot, uint stream, NvVideoCapture pname, [Out] double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoCaptureStreamfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoCaptureStreamfvNV(uint video_capture_slot, uint stream, NvVideoCapture pname, [Out] float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoCaptureStreamivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoCaptureStreamivNV(uint video_capture_slot, uint stream, NvVideoCapture pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoi64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoi64vNV(uint video_slot, NvPresentVideo pname, [Out] long* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoivNV(uint video_slot, NvPresentVideo pname, [Out] int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideoui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideoui64vNV(uint video_slot, NvPresentVideo pname, [Out] ulong* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGetVideouivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void GetVideouivNV(uint video_slot, NvPresentVideo pname, [Out] uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactorbSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactorbSUN(sbyte factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactordSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactordSUN(double factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactorfSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactorfSUN(float factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactoriSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactoriSUN(int factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactorsSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactorsSUN(short factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactorubSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactorubSUN(byte factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactoruiSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactoruiSUN(uint factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glGlobalAlphaFactorusSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void GlobalAlphaFactorusSUN(ushort factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glHint", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Hint(HintTarget target, HintMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glHintPGI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void HintPGI(PgiMiscHints target, int mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glHistogram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Histogram(HistogramTarget target, int width, PixelInternalFormat internalformat, bool sink); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glHistogramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void HistogramEXT(ExtHistogram target, int width, PixelInternalFormat internalformat, bool sink); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIglooInterfaceSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IglooInterfaceSGIX(All pname, IntPtr @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glImageTransformParameterfHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ImageTransformParameterfHP(HpImageTransform target, HpImageTransform pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glImageTransformParameterfvHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ImageTransformParameterfvHP(HpImageTransform target, HpImageTransform pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glImageTransformParameteriHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ImageTransformParameteriHP(HpImageTransform target, HpImageTransform pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glImageTransformParameterivHP", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ImageTransformParameterivHP(HpImageTransform target, HpImageTransform pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Indexd(double c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Indexdv(double* c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Indexf(float c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexFormatNV(NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexFuncEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexFuncEXT(ExtIndexFunc func, float @ref); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Indexfv(float* c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Indexi(int c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Indexiv(int* c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexMask", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexMask(uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexMaterialEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexMaterialEXT(MaterialFace face, ExtIndexMaterial mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexPointer(IndexPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexPointerEXT(IndexPointerType type, int stride, int count, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void IndexPointerListIBM(IndexPointerType type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexs", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Indexs(short c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexsv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Indexsv(short* c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexub", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Indexub(byte c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIndexubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Indexubv(byte* c); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glInitNames", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void InitNames(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glInsertComponentEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void InsertComponentEXT(uint res, uint src, uint num); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glInstrumentsBufferSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void InstrumentsBufferSGIX(int size, [Out] int* buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glInterleavedArrays", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void InterleavedArrays(InterleavedArrayFormat format, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsAsyncMarkerSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsAsyncMarkerSGIX(uint marker); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsBuffer(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsBufferARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsBufferARB(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsBufferResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsBufferResidentNV(NvShaderBufferLoad target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsEnabled", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsEnabled(EnableCap cap); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsEnabledi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsEnabledi(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsEnabledIndexedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsEnabledIndexedEXT(IndexedEnableCap target, uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsFenceAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsFenceAPPLE(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsFenceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsFenceNV(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsFramebuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsFramebuffer(uint framebuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsFramebufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsFramebufferEXT(uint framebuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsList", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsList(uint list); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsNameAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsNameAMD(AmdNameGenDelete identifier, uint name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsNamedBufferResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsNamedBufferResidentNV(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsNamedStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsNamedStringARB(int namelen, string name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsObjectBufferATI(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsOcclusionQueryNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsOcclusionQueryNV(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsProgram(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsProgramARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsProgramARB(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsProgramNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsProgramNV(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsProgramPipeline", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsProgramPipeline(uint pipeline); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsQuery", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsQuery(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsQueryARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsQueryARB(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsRenderbuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsRenderbuffer(uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsRenderbufferEXT(uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsSampler", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsSampler(uint sampler); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsShader", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsShader(uint shader); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsSync", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsSync(IntPtr sync); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsTexture", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsTexture(uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsTextureEXT(uint texture); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsTransformFeedback(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsTransformFeedbackNV(uint id); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsVariantEnabledEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsVariantEnabledEXT(uint id, ExtVertexShader cap); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsVertexArray", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsVertexArray(uint array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsVertexArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsVertexArrayAPPLE(uint array); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glIsVertexAttribEnabledAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool IsVertexAttribEnabledAPPLE(uint index, AppleVertexProgramEvaluators pname); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightEnviSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LightEnviSGIX(SgixFragmentLighting pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Lightf(LightName light, LightParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Lightfv(LightName light, LightParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLighti", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Lighti(LightName light, LightParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Lightiv(LightName light, LightParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightModelf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LightModelf(LightModelParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightModelfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LightModelfv(LightModelParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightModeli", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LightModeli(LightModelParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLightModeliv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LightModeliv(LightModelParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLineStipple", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LineStipple(int factor, ushort pattern); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLineWidth", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LineWidth(float width); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLinkProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LinkProgram(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLinkProgramARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LinkProgramARB(uint programObj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glListBase", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ListBase(uint @base); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glListParameterfSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ListParameterfSGIX(uint list, ListParameterName pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glListParameterfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ListParameterfvSGIX(uint list, ListParameterName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glListParameteriSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ListParameteriSGIX(uint list, ListParameterName pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glListParameterivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ListParameterivSGIX(uint list, ListParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadIdentity", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LoadIdentity(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadIdentityDeformationMapSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LoadIdentityDeformationMapSGIX(uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadMatrixd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadMatrixd(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadMatrixf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadMatrixf(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LoadName(uint name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadProgramNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadProgramNV(AssemblyProgramTargetArb target, uint id, int len, byte* program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadTransposeMatrixd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadTransposeMatrixd(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadTransposeMatrixdARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadTransposeMatrixdARB(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadTransposeMatrixf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadTransposeMatrixf(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLoadTransposeMatrixfARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void LoadTransposeMatrixfARB(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLockArraysEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LockArraysEXT(int first, int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glLogicOp", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void LogicOp(LogicOp opcode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMakeBufferNonResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MakeBufferNonResidentNV(NvShaderBufferLoad target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMakeBufferResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MakeBufferResidentNV(NvShaderBufferLoad target, NvShaderBufferLoad access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMakeNamedBufferNonResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MakeNamedBufferNonResidentNV(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMakeNamedBufferResidentNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MakeNamedBufferResidentNV(uint buffer, NvShaderBufferLoad access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMap1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Map1d(MapTarget target, double u1, double u2, int stride, int order, double* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMap1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Map1f(MapTarget target, float u1, float u2, int stride, int order, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMap2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Map2d(MapTarget target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMap2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Map2f(MapTarget target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapBuffer(BufferTarget target, BufferAccess access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapBufferARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapBufferARB(BufferTargetArb target, ArbVertexBufferObject access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapBufferRange", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapBufferRange(BufferTarget target, IntPtr offset, IntPtr length, BufferAccessMask access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapControlPointsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MapControlPointsNV(NvEvaluators target, uint index, NvEvaluators type, int ustride, int vstride, int uorder, int vorder, bool packed, IntPtr points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapGrid1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MapGrid1d(int un, double u1, double u2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapGrid1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MapGrid1f(int un, float u1, float u2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapGrid2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MapGrid2d(int un, double u1, double u2, int vn, double v1, double v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapGrid2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MapGrid2f(int un, float u1, float u2, int vn, float v1, float v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapNamedBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapNamedBufferEXT(uint buffer, ExtDirectStateAccess access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapNamedBufferRangeEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapNamedBufferRangeEXT(uint buffer, IntPtr offset, IntPtr length, BufferAccessMask access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern IntPtr MapObjectBufferATI(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapParameterfvNV(NvEvaluators target, NvEvaluators pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapParameterivNV(NvEvaluators target, NvEvaluators pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapVertexAttrib1dAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapVertexAttrib1dAPPLE(uint index, uint size, double u1, double u2, int stride, int order, double* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapVertexAttrib1fAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapVertexAttrib1fAPPLE(uint index, uint size, float u1, float u2, int stride, int order, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapVertexAttrib2dAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapVertexAttrib2dAPPLE(uint index, uint size, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMapVertexAttrib2fAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MapVertexAttrib2fAPPLE(uint index, uint size, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMaterialf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Materialf(MaterialFace face, MaterialParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMaterialfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Materialfv(MaterialFace face, MaterialParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMateriali", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Materiali(MaterialFace face, MaterialParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMaterialiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Materialiv(MaterialFace face, MaterialParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixFrustumEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixFrustumEXT(MatrixMode mode, double left, double right, double bottom, double top, double zNear, double zFar); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixIndexPointerARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixIndexPointerARB(int size, ArbMatrixPalette type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixIndexubvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixIndexubvARB(int size, byte* indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixIndexuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixIndexuivARB(int size, uint* indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixIndexusvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixIndexusvARB(int size, ushort* indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixLoaddEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixLoaddEXT(MatrixMode mode, double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixLoadfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixLoadfEXT(MatrixMode mode, float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixLoadIdentityEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixLoadIdentityEXT(MatrixMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixLoadTransposedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixLoadTransposedEXT(MatrixMode mode, double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixLoadTransposefEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixLoadTransposefEXT(MatrixMode mode, float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixMode", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixMode(MatrixMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixMultdEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixMultdEXT(MatrixMode mode, double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixMultfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixMultfEXT(MatrixMode mode, float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixMultTransposedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixMultTransposedEXT(MatrixMode mode, double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixMultTransposefEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MatrixMultTransposefEXT(MatrixMode mode, float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixOrthoEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixOrthoEXT(MatrixMode mode, double left, double right, double bottom, double top, double zNear, double zFar); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixPopEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixPopEXT(MatrixMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixPushEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixPushEXT(MatrixMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixRotatedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixRotatedEXT(MatrixMode mode, double angle, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixRotatefEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixRotatefEXT(MatrixMode mode, float angle, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixScaledEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixScaledEXT(MatrixMode mode, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixScalefEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixScalefEXT(MatrixMode mode, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixTranslatedEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixTranslatedEXT(MatrixMode mode, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMatrixTranslatefEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MatrixTranslatefEXT(MatrixMode mode, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMemoryBarrierEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MemoryBarrierEXT(uint barriers); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMinmax", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Minmax(MinmaxTarget target, PixelInternalFormat internalformat, bool sink); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMinmaxEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MinmaxEXT(ExtHistogram target, PixelInternalFormat internalformat, bool sink); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMinSampleShading", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MinSampleShading(float value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMinSampleShadingARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MinSampleShadingARB(float value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawArrays", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawArrays(BeginMode mode, int* first, int* count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawArraysEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawArraysEXT(BeginMode mode, int* first, int* count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawElementArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawElementArrayAPPLE(BeginMode mode, int* first, int* count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawElements", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, IntPtr indices, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawElementsBaseVertex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawElementsBaseVertex(BeginMode mode, int* count, DrawElementsType type, IntPtr indices, int primcount, int* basevertex); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawElementsEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawElementsEXT(BeginMode mode, int* count, DrawElementsType type, IntPtr indices, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiDrawRangeElementArrayAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiDrawRangeElementArrayAPPLE(BeginMode mode, uint start, uint end, int* first, int* count, int primcount); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiModeDrawArraysIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiModeDrawArraysIBM(BeginMode* mode, int* first, int* count, int primcount, int modestride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiModeDrawElementsIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiModeDrawElementsIBM(BeginMode* mode, int* count, DrawElementsType type, IntPtr indices, int primcount, int modestride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexBufferEXT(TextureUnit texunit, TextureTarget target, ExtDirectStateAccess internalformat, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1d(TextureUnit target, double s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1dARB(TextureUnit target, double s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1dv(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1dvARB(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1f(TextureUnit target, float s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1fARB(TextureUnit target, float s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1fv(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1fvARB(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1i(TextureUnit target, int s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1iARB(TextureUnit target, int s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1iv(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1ivARB(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1s(TextureUnit target, short s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord1sARB(TextureUnit target, short s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1sv(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord1svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord1svARB(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2d(TextureUnit target, double s, double t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2dARB(TextureUnit target, double s, double t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2dv(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2dvARB(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2f(TextureUnit target, float s, float t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2fARB(TextureUnit target, float s, float t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2fv(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2fvARB(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2i(TextureUnit target, int s, int t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2iARB(TextureUnit target, int s, int t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2iv(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2ivARB(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2s(TextureUnit target, short s, short t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord2sARB(TextureUnit target, short s, short t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2sv(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord2svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord2svARB(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3d(TextureUnit target, double s, double t, double r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3dARB(TextureUnit target, double s, double t, double r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3dv(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3dvARB(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3f(TextureUnit target, float s, float t, float r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3fARB(TextureUnit target, float s, float t, float r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3fv(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3fvARB(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3i(TextureUnit target, int s, int t, int r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3iARB(TextureUnit target, int s, int t, int r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3iv(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3ivARB(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3s(TextureUnit target, short s, short t, short r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord3sARB(TextureUnit target, short s, short t, short r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3sv(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord3svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord3svARB(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4d(TextureUnit target, double s, double t, double r, double q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4dARB(TextureUnit target, double s, double t, double r, double q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4dv(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4dvARB(TextureUnit target, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4f(TextureUnit target, float s, float t, float r, float q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4fARB(TextureUnit target, float s, float t, float r, float q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4fv(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4fvARB(TextureUnit target, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4i(TextureUnit target, int s, int t, int r, int q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4iARB(TextureUnit target, int s, int t, int r, int q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4iv(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4ivARB(TextureUnit target, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4s(TextureUnit target, short s, short t, short r, short q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoord4sARB(TextureUnit target, short s, short t, short r, short q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4sv(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoord4svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoord4svARB(TextureUnit target, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoordP1ui(TextureUnit texture, PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoordP1uiv(TextureUnit texture, PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoordP2ui(TextureUnit texture, PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoordP2uiv(TextureUnit texture, PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoordP3ui(TextureUnit texture, PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoordP3uiv(TextureUnit texture, PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoordP4ui(TextureUnit texture, PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordP4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexCoordP4uiv(TextureUnit texture, PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexCoordPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexCoordPointerEXT(TextureUnit texunit, int size, TexCoordPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexEnvfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexEnvfEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexEnvfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexEnvfvEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexEnviEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexEnviEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexEnvivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexEnvivEXT(TextureUnit texunit, TextureEnvTarget target, TextureEnvParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGendEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexGendEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, double param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGendvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexGendvEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGenfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexGenfEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGenfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexGenfvEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGeniEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexGeniEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexGenivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexGenivEXT(TextureUnit texunit, TextureCoordName coord, TextureGenParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexImage1DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexImage2DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexImage3DEXT(TextureUnit texunit, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameterfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexParameterfEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexParameterfvEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameteriEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexParameteriEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexParameterIivEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexParameterIuivEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultiTexParameterivEXT(TextureUnit texunit, TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexRenderbufferEXT(TextureUnit texunit, TextureTarget target, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexSubImage1DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexSubImage2DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultiTexSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void MultiTexSubImage3DEXT(TextureUnit texunit, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultMatrixd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultMatrixd(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultMatrixf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultMatrixf(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultTransposeMatrixd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultTransposeMatrixd(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultTransposeMatrixdARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultTransposeMatrixdARB(double* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultTransposeMatrixf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultTransposeMatrixf(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glMultTransposeMatrixfARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void MultTransposeMatrixfARB(float* m); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedBufferDataEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedBufferDataEXT(uint buffer, IntPtr size, IntPtr data, ExtDirectStateAccess usage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedBufferSubDataEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedBufferSubDataEXT(uint buffer, IntPtr offset, IntPtr size, IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedCopyBufferSubDataEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedCopyBufferSubDataEXT(uint readBuffer, uint writeBuffer, IntPtr readOffset, IntPtr writeOffset, IntPtr size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferRenderbufferEXT(uint framebuffer, FramebufferAttachment attachment, RenderbufferTarget renderbuffertarget, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTexture1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTexture1DEXT(uint framebuffer, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTexture2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTexture2DEXT(uint framebuffer, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTexture3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTexture3DEXT(uint framebuffer, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level, int zoffset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTextureEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTextureEXT(uint framebuffer, FramebufferAttachment attachment, uint texture, int level); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTextureFaceEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTextureFaceEXT(uint framebuffer, FramebufferAttachment attachment, uint texture, int level, TextureTarget face); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedFramebufferTextureLayerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedFramebufferTextureLayerEXT(uint framebuffer, FramebufferAttachment attachment, uint texture, int level, int layer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameter4dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedProgramLocalParameter4dEXT(uint program, ExtDirectStateAccess target, uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameter4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParameter4dvEXT(uint program, ExtDirectStateAccess target, uint index, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameter4fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedProgramLocalParameter4fEXT(uint program, ExtDirectStateAccess target, uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameter4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParameter4fvEXT(uint program, ExtDirectStateAccess target, uint index, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameterI4iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedProgramLocalParameterI4iEXT(uint program, ExtDirectStateAccess target, uint index, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameterI4ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParameterI4ivEXT(uint program, ExtDirectStateAccess target, uint index, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameterI4uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedProgramLocalParameterI4uiEXT(uint program, ExtDirectStateAccess target, uint index, uint x, uint y, uint z, uint w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameterI4uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParameterI4uivEXT(uint program, ExtDirectStateAccess target, uint index, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParameters4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParameters4fvEXT(uint program, ExtDirectStateAccess target, uint index, int count, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParametersI4ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParametersI4ivEXT(uint program, ExtDirectStateAccess target, uint index, int count, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramLocalParametersI4uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NamedProgramLocalParametersI4uivEXT(uint program, ExtDirectStateAccess target, uint index, int count, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedProgramStringEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedProgramStringEXT(uint program, ExtDirectStateAccess target, ExtDirectStateAccess format, int len, IntPtr @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedRenderbufferStorageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedRenderbufferStorageEXT(uint renderbuffer, PixelInternalFormat internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedRenderbufferStorageMultisampleCoverageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedRenderbufferStorageMultisampleCoverageEXT(uint renderbuffer, int coverageSamples, int colorSamples, PixelInternalFormat internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedRenderbufferStorageMultisampleEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedRenderbufferStorageMultisampleEXT(uint renderbuffer, int samples, PixelInternalFormat internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNamedStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NamedStringARB(ArbShadingLanguageInclude type, int namelen, string name, int stringlen, string @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNewList", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NewList(uint list, ListMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNewObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int NewObjectBufferATI(int size, IntPtr pointer, AtiVertexArrayObject usage); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3b", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3b(sbyte nx, sbyte ny, sbyte nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3bv(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3d(double nx, double ny, double nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3f(float nx, float ny, float nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3fVertex3fSUN(float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3fVertex3fvSUN(float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3i(int nx, int ny, int nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Normal3s(short nx, short ny, short nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormal3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Normal3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalFormatNV(NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalP3ui(PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalP3uiv(PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalPointer(NormalPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalPointerEXT(NormalPointerType type, int stride, int count, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalPointerListIBM(NormalPointerType type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalPointervINTEL", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalPointervINTEL(NormalPointerType type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3bATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalStream3bATI(AtiVertexStreams stream, sbyte nx, sbyte ny, sbyte nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3bvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalStream3bvATI(AtiVertexStreams stream, sbyte* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3dATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalStream3dATI(AtiVertexStreams stream, double nx, double ny, double nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3dvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalStream3dvATI(AtiVertexStreams stream, double* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3fATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalStream3fATI(AtiVertexStreams stream, float nx, float ny, float nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3fvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalStream3fvATI(AtiVertexStreams stream, float* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3iATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalStream3iATI(AtiVertexStreams stream, int nx, int ny, int nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3ivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalStream3ivATI(AtiVertexStreams stream, int* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3sATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void NormalStream3sATI(AtiVertexStreams stream, short nx, short ny, short nz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glNormalStream3svATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void NormalStream3svATI(AtiVertexStreams stream, short* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glObjectPurgeableAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern AppleObjectPurgeable ObjectPurgeableAPPLE(AppleObjectPurgeable objectType, uint name, AppleObjectPurgeable option); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glObjectUnpurgeableAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern AppleObjectPurgeable ObjectUnpurgeableAPPLE(AppleObjectPurgeable objectType, uint name, AppleObjectPurgeable option); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glOrtho", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Ortho(double left, double right, double bottom, double top, double zNear, double zFar); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPassTexCoordATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PassTexCoordATI(uint dst, uint coord, AtiFragmentShader swizzle); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPassThrough", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PassThrough(float token); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPatchParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PatchParameterfv(PatchParameterFloat pname, float* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPatchParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PatchParameteri(PatchParameterInt pname, int value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPauseTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PauseTransformFeedback(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPauseTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PauseTransformFeedbackNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelDataRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelDataRangeNV(NvPixelDataRange target, int length, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelMapfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelMapfv(PixelMap map, int mapsize, float* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelMapuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelMapuiv(PixelMap map, int mapsize, uint* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelMapusv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelMapusv(PixelMap map, int mapsize, ushort* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelStoref", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelStoref(PixelStoreParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelStorei", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelStorei(PixelStoreParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTexGenParameterfSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTexGenParameterfSGIS(SgisPixelTexture pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTexGenParameterfvSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelTexGenParameterfvSGIS(SgisPixelTexture pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTexGenParameteriSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTexGenParameteriSGIS(SgisPixelTexture pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTexGenParameterivSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelTexGenParameterivSGIS(SgisPixelTexture pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTexGenSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTexGenSGIX(SgixPixelTexture mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransferf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTransferf(PixelTransferParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransferi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTransferi(PixelTransferParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransformParameterfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTransformParameterfEXT(ExtPixelTransform target, ExtPixelTransform pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransformParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelTransformParameterfvEXT(ExtPixelTransform target, ExtPixelTransform pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransformParameteriEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelTransformParameteriEXT(ExtPixelTransform target, ExtPixelTransform pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelTransformParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PixelTransformParameterivEXT(ExtPixelTransform target, ExtPixelTransform pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPixelZoom", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PixelZoom(float xfactor, float yfactor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPNTrianglesfATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PNTrianglesfATI(AtiPnTriangles pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPNTrianglesiATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PNTrianglesiATI(AtiPnTriangles pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameterf(PointParameterName pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameterfARB(ArbPointParameters pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameterfEXT(ExtPointParameters pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameterfSGIS(SgisPointParameters pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameterfv(PointParameterName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameterfvARB(ArbPointParameters pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameterfvEXT(ExtPointParameters pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterfvSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameterfvSGIS(SgisPointParameters pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameteri(PointParameterName pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameteriNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointParameteriNV(NvPointSprite pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameteriv(PointParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PointParameterivNV(NvPointSprite pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPointSize", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PointSize(float size); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPollAsyncSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern int PollAsyncSGIX([Out] uint* markerp); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPollInstrumentsSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern int PollInstrumentsSGIX([Out] int* marker_p); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPolygonMode", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PolygonMode(MaterialFace face, PolygonMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPolygonOffset", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PolygonOffset(float factor, float units); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPolygonOffsetEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PolygonOffsetEXT(float factor, float bias); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPolygonStipple", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PolygonStipple(byte* mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPopAttrib", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PopAttrib(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPopClientAttrib", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PopClientAttrib(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPopMatrix", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PopMatrix(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPopName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PopName(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPresentFrameDualFillNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PresentFrameDualFillNV(uint video_slot, ulong minPresentTime, uint beginPresentTimeId, uint presentDurationId, NvPresentVideo type, NvPresentVideo target0, uint fill0, NvPresentVideo target1, uint fill1, NvPresentVideo target2, uint fill2, NvPresentVideo target3, uint fill3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPresentFrameKeyedNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PresentFrameKeyedNV(uint video_slot, ulong minPresentTime, uint beginPresentTimeId, uint presentDurationId, NvPresentVideo type, NvPresentVideo target0, uint fill0, uint key0, NvPresentVideo target1, uint fill1, uint key1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPrimitiveRestartIndex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PrimitiveRestartIndex(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPrimitiveRestartIndexNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PrimitiveRestartIndexNV(uint index); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPrimitiveRestartNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PrimitiveRestartNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPrioritizeTextures", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PrioritizeTextures(int n, uint* textures, float* priorities); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPrioritizeTexturesEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void PrioritizeTexturesEXT(int n, uint* textures, float* priorities); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramBinary", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramBinary(uint program, BinaryFormat binaryFormat, IntPtr binary, int length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramBufferParametersfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramBufferParametersfvNV(NvParameterBufferObject target, uint buffer, uint index, int count, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramBufferParametersIivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramBufferParametersIivNV(NvParameterBufferObject target, uint buffer, uint index, int count, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramBufferParametersIuivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramBufferParametersIuivNV(NvParameterBufferObject target, uint buffer, uint index, int count, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameter4dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramEnvParameter4dARB(AssemblyProgramTargetArb target, uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameter4dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParameter4dvARB(AssemblyProgramTargetArb target, uint index, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameter4fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramEnvParameter4fARB(AssemblyProgramTargetArb target, uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameter4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParameter4fvARB(AssemblyProgramTargetArb target, uint index, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameterI4iNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramEnvParameterI4iNV(NvGpuProgram4 target, uint index, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameterI4ivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParameterI4ivNV(NvGpuProgram4 target, uint index, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameterI4uiNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramEnvParameterI4uiNV(NvGpuProgram4 target, uint index, uint x, uint y, uint z, uint w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameterI4uivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParameterI4uivNV(NvGpuProgram4 target, uint index, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParameters4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParameters4fvEXT(ExtGpuProgramParameters target, uint index, int count, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParametersI4ivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParametersI4ivNV(NvGpuProgram4 target, uint index, int count, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramEnvParametersI4uivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramEnvParametersI4uivNV(NvGpuProgram4 target, uint index, int count, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameter4dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramLocalParameter4dARB(AssemblyProgramTargetArb target, uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameter4dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParameter4dvARB(AssemblyProgramTargetArb target, uint index, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameter4fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramLocalParameter4fARB(AssemblyProgramTargetArb target, uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameter4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParameter4fvARB(AssemblyProgramTargetArb target, uint index, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameterI4iNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramLocalParameterI4iNV(NvGpuProgram4 target, uint index, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameterI4ivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParameterI4ivNV(NvGpuProgram4 target, uint index, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameterI4uiNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramLocalParameterI4uiNV(NvGpuProgram4 target, uint index, uint x, uint y, uint z, uint w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameterI4uivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParameterI4uivNV(NvGpuProgram4 target, uint index, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParameters4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParameters4fvEXT(ExtGpuProgramParameters target, uint index, int count, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParametersI4ivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParametersI4ivNV(NvGpuProgram4 target, uint index, int count, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramLocalParametersI4uivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramLocalParametersI4uivNV(NvGpuProgram4 target, uint index, int count, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramNamedParameter4dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramNamedParameter4dNV(uint id, int len, byte* name, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramNamedParameter4dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramNamedParameter4dvNV(uint id, int len, byte* name, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramNamedParameter4fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramNamedParameter4fNV(uint id, int len, byte* name, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramNamedParameter4fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramNamedParameter4fvNV(uint id, int len, byte* name, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameter4dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramParameter4dNV(AssemblyProgramTargetArb target, uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameter4dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramParameter4dvNV(AssemblyProgramTargetArb target, uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameter4fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramParameter4fNV(AssemblyProgramTargetArb target, uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameter4fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramParameter4fvNV(AssemblyProgramTargetArb target, uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramParameteri(uint program, AssemblyProgramParameterArb pname, int value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameteriARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramParameteriARB(uint program, AssemblyProgramParameterArb pname, int value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameteriEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramParameteriEXT(uint program, AssemblyProgramParameterArb pname, int value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameters4dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramParameters4dvNV(AssemblyProgramTargetArb target, uint index, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramParameters4fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramParameters4fvNV(AssemblyProgramTargetArb target, uint index, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramStringARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramStringARB(AssemblyProgramTargetArb target, ArbVertexProgram format, int len, IntPtr @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramSubroutineParametersuivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramSubroutineParametersuivNV(NvGpuProgram5 target, int count, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1d(uint program, int location, double v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1dEXT(uint program, int location, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1dv(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1dvEXT(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1f(uint program, int location, float v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1fEXT(uint program, int location, float v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1fv(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1fvEXT(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1i(uint program, int location, int v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1i64NV(uint program, int location, long x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1i64vNV(uint program, int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1iEXT(uint program, int location, int v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1iv(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1ivEXT(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1ui(uint program, int location, uint v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1ui64NV(uint program, int location, ulong x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1ui64vNV(uint program, int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform1uiEXT(uint program, int location, uint v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1uiv(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform1uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform1uivEXT(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2d(uint program, int location, double v0, double v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2dEXT(uint program, int location, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2dv(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2dvEXT(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2f(uint program, int location, float v0, float v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2fEXT(uint program, int location, float v0, float v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2fv(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2fvEXT(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2i(uint program, int location, int v0, int v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2i64NV(uint program, int location, long x, long y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2i64vNV(uint program, int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2iEXT(uint program, int location, int v0, int v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2iv(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2ivEXT(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2ui(uint program, int location, uint v0, uint v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2ui64NV(uint program, int location, ulong x, ulong y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2ui64vNV(uint program, int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform2uiEXT(uint program, int location, uint v0, uint v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2uiv(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform2uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform2uivEXT(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3d(uint program, int location, double v0, double v1, double v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3dEXT(uint program, int location, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3dv(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3dvEXT(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3f(uint program, int location, float v0, float v1, float v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3fEXT(uint program, int location, float v0, float v1, float v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3fv(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3fvEXT(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3i(uint program, int location, int v0, int v1, int v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3i64NV(uint program, int location, long x, long y, long z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3i64vNV(uint program, int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3iEXT(uint program, int location, int v0, int v1, int v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3iv(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3ivEXT(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3ui(uint program, int location, uint v0, uint v1, uint v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3ui64NV(uint program, int location, ulong x, ulong y, ulong z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3ui64vNV(uint program, int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform3uiEXT(uint program, int location, uint v0, uint v1, uint v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3uiv(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform3uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform3uivEXT(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4d(uint program, int location, double v0, double v1, double v2, double v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4dEXT(uint program, int location, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4dv(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4dvEXT(uint program, int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4f(uint program, int location, float v0, float v1, float v2, float v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4fEXT(uint program, int location, float v0, float v1, float v2, float v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4fv(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4fvEXT(uint program, int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4i(uint program, int location, int v0, int v1, int v2, int v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4i64NV(uint program, int location, long x, long y, long z, long w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4i64vNV(uint program, int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4iEXT(uint program, int location, int v0, int v1, int v2, int v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4iv(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4ivEXT(uint program, int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4ui(uint program, int location, uint v0, uint v1, uint v2, uint v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4ui64NV(uint program, int location, ulong x, ulong y, ulong z, ulong w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4ui64vNV(uint program, int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniform4uiEXT(uint program, int location, uint v0, uint v1, uint v2, uint v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4uiv(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniform4uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniform4uivEXT(uint program, int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x3dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x3dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x3fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x3fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x4dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x4dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x4fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix2x4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix2x4fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x2dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x2dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x2dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x2fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x2fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x2fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x4dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x4dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x4fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix3x4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix3x4fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x2dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x2dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x2dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x2fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x2fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x2fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x3dv(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x3dvEXT(uint program, int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x3fv(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformMatrix4x3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformMatrix4x3fvEXT(uint program, int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramUniformui64NV(uint program, int location, ulong value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramUniformui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ProgramUniformui64vNV(uint program, int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProgramVertexLimitNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProgramVertexLimitNV(NvGeometryProgram4 target, int limit); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProvokingVertex", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProvokingVertex(ProvokingVertexMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glProvokingVertexEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ProvokingVertexEXT(ExtProvokingVertex mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPushAttrib", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PushAttrib(AttribMask mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPushClientAttrib", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PushClientAttrib(ClientAttribMask mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPushClientAttribDefaultEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PushClientAttribDefaultEXT(ClientAttribMask mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPushMatrix", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PushMatrix(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glPushName", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void PushName(uint name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glQueryCounter", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void QueryCounter(uint id, QueryCounterTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos2d(double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos2dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos2f(float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos2fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos2i(int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos2iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos2s(short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos2sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos3d(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos3f(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos3i(int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos3s(short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos4d(double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos4dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos4f(float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos4fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos4i(int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos4iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RasterPos4s(short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRasterPos4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RasterPos4sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReadBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReadBuffer(ReadBufferMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReadInstrumentsSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReadInstrumentsSGIX(int marker); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReadnPixelsARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReadnPixelsARB(int x, int y, int width, int height, ArbRobustness format, ArbRobustness type, int bufSize, [Out] IntPtr data); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReadPixels", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [Out] IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectd", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Rectd(double x1, double y1, double x2, double y2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectdv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Rectdv(double* v1, double* v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Rectf(float x1, float y1, float x2, float y2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Rectfv(float* v1, float* v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRecti", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Recti(int x1, int y1, int x2, int y2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Rectiv(int* v1, int* v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRects", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Rects(short x1, short y1, short x2, short y2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRectsv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Rectsv(short* v1, short* v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReferencePlaneSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReferencePlaneSGIX(double* equation); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReleaseShaderCompiler", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReleaseShaderCompiler(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderbufferStorage", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RenderbufferStorage(RenderbufferTarget target, RenderbufferStorage internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderbufferStorageEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RenderbufferStorageEXT(RenderbufferTarget target, RenderbufferStorage internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderbufferStorageMultisample", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RenderbufferStorageMultisample(RenderbufferTarget target, int samples, RenderbufferStorage internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderbufferStorageMultisampleCoverageNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RenderbufferStorageMultisampleCoverageNV(RenderbufferTarget target, int coverageSamples, int colorSamples, PixelInternalFormat internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderbufferStorageMultisampleEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void RenderbufferStorageMultisampleEXT(ExtFramebufferMultisample target, int samples, ExtFramebufferMultisample internalformat, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRenderMode", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern int RenderMode(RenderingMode mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodePointerSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodePointerSUN(SunTriangleList type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeubSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeubSUN(byte code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeubvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeubvSUN(byte* code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiColor3fVertex3fSUN(uint rc, float r, float g, float b, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiColor3fVertex3fvSUN(uint* rc, float* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor4fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiColor4fNormal3fVertex3fSUN(uint rc, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor4fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiColor4fNormal3fVertex3fvSUN(uint* rc, float* c, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor4ubVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiColor4ubVertex3fSUN(uint rc, byte r, byte g, byte b, byte a, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiColor4ubVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiColor4ubVertex3fvSUN(uint* rc, byte* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiNormal3fVertex3fSUN(uint rc, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiNormal3fVertex3fvSUN(uint* rc, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiSUN(uint code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(uint rc, float s, float t, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(uint* rc, float* tc, float* c, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(uint rc, float s, float t, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(uint* rc, float* tc, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiTexCoord2fVertex3fSUN(uint rc, float s, float t, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiTexCoord2fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiTexCoord2fVertex3fvSUN(uint* rc, float* tc, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeuiVertex3fSUN(uint rc, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuiVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuiVertex3fvSUN(uint* rc, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeuivSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeuivSUN(uint* code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeusSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ReplacementCodeusSUN(ushort code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glReplacementCodeusvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ReplacementCodeusvSUN(ushort* code); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRequestResidentProgramsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void RequestResidentProgramsNV(int n, uint* programs); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResetHistogram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResetHistogram(HistogramTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResetHistogramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResetHistogramEXT(ExtHistogram target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResetMinmax", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResetMinmax(MinmaxTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResetMinmaxEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResetMinmaxEXT(ExtHistogram target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glResizeBuffersMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void ResizeBuffersMESA(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResumeTransformFeedback", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResumeTransformFeedback(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glResumeTransformFeedbackNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ResumeTransformFeedbackNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRotated", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Rotated(double angle, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glRotatef", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Rotatef(float angle, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleCoverage", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleCoverage(float value, bool invert); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleCoverageARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleCoverageARB(float value, bool invert); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleMapATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleMapATI(uint dst, uint interp, AtiFragmentShader swizzle); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleMaskEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleMaskEXT(float value, bool invert); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleMaski", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleMaski(uint index, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleMaskIndexedNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleMaskIndexedNV(uint index, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSampleMaskSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SampleMaskSGIS(float value, bool invert); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplePatternEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SamplePatternEXT(ExtMultisample pattern); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplePatternSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SamplePatternSGIS(SgisMultisample pattern); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameterf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SamplerParameterf(uint sampler, SamplerParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SamplerParameterfv(uint sampler, SamplerParameter pname, float* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SamplerParameteri(uint sampler, SamplerParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameterIiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SamplerParameterIiv(uint sampler, ArbSamplerObjects pname, int* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameterIuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SamplerParameterIuiv(uint sampler, ArbSamplerObjects pname, uint* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSamplerParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SamplerParameteriv(uint sampler, SamplerParameter pname, int* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScaled", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Scaled(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScalef", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Scalef(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScissor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Scissor(int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScissorArrayv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ScissorArrayv(uint first, int count, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScissorIndexed", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ScissorIndexed(uint index, int left, int bottom, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glScissorIndexedv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ScissorIndexedv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3b", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3b(sbyte red, sbyte green, sbyte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3bEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3bEXT(sbyte red, sbyte green, sbyte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3bv(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3bvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3bvEXT(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3d(double red, double green, double blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3dEXT(double red, double green, double blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3dvEXT(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3f(float red, float green, float blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3fEXT(float red, float green, float blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3fvEXT(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3i(int red, int green, int blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3iEXT(int red, int green, int blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3ivEXT(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3s(short red, short green, short blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3sEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3sEXT(short red, short green, short blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3svEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3svEXT(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ub", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3ub(byte red, byte green, byte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ubEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3ubEXT(byte red, byte green, byte blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3ubv(byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ubvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3ubvEXT(byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3ui(uint red, uint green, uint blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3uiEXT(uint red, uint green, uint blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3uiv(uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3uivEXT(uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3us", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3us(ushort red, ushort green, ushort blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3usEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColor3usEXT(ushort red, ushort green, ushort blue); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3usv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3usv(ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColor3usvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColor3usvEXT(ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColorFormatNV(int size, NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColorP3ui(PackedPointerType type, uint color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SecondaryColorP3uiv(PackedPointerType type, uint* color); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColorPointerEXT(int size, ColorPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSecondaryColorPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SecondaryColorPointerListIBM(int size, IbmVertexArrayLists type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSelectBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SelectBuffer(int size, [Out] uint* buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSelectPerfMonitorCountersAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SelectPerfMonitorCountersAMD(uint monitor, bool enable, uint group, int numCounters, [Out] uint* counterList); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSeparableFilter2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, IntPtr column); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSeparableFilter2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SeparableFilter2DEXT(ExtConvolution target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, IntPtr column); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSetFenceAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SetFenceAPPLE(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSetFenceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SetFenceNV(uint fence, NvFence condition); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSetFragmentShaderConstantATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SetFragmentShaderConstantATI(uint dst, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSetInvariantEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SetInvariantEXT(uint id, ExtVertexShader type, IntPtr addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSetLocalConstantEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SetLocalConstantEXT(uint id, ExtVertexShader type, IntPtr addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShadeModel", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ShadeModel(ShadingModel mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderBinary", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ShaderBinary(int count, uint* shaders, BinaryFormat binaryformat, IntPtr binary, int length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderOp1EXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ShaderOp1EXT(ExtVertexShader op, uint res, uint arg1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderOp2EXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ShaderOp2EXT(ExtVertexShader op, uint res, uint arg1, uint arg2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderOp3EXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ShaderOp3EXT(ExtVertexShader op, uint res, uint arg1, uint arg2, uint arg3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderSource", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ShaderSource(uint shader, int count, string[] @string, int* length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glShaderSourceARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ShaderSourceARB(uint shaderObj, int count, string[] @string, int* length); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSharpenTexFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SharpenTexFuncSGIS(TextureTarget target, int n, float* points); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSpriteParameterfSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SpriteParameterfSGIX(SgixSprite pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSpriteParameterfvSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SpriteParameterfvSGIX(SgixSprite pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSpriteParameteriSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SpriteParameteriSGIX(SgixSprite pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSpriteParameterivSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void SpriteParameterivSGIX(SgixSprite pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStartInstrumentsSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StartInstrumentsSGIX(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilClearTagEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilClearTagEXT(int stencilTagBits, uint stencilClearTag); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilFunc", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilFunc(StencilFunction func, int @ref, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilFuncSeparate(Version20 face, StencilFunction func, int @ref, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilFuncSeparateATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilFuncSeparateATI(StencilFunction frontfunc, StencilFunction backfunc, int @ref, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilMask", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilMask(uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilMaskSeparate(StencilFace face, uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilOp", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilOp(StencilOp fail, StencilOp zfail, StencilOp zpass); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilOpSeparate(StencilFace face, StencilOp sfail, StencilOp dpfail, StencilOp dppass); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStencilOpSeparateATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StencilOpSeparateATI(AtiSeparateStencil face, StencilOp sfail, StencilOp dpfail, StencilOp dppass); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStopInstrumentsSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StopInstrumentsSGIX(int marker); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glStringMarkerGREMEDY", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void StringMarkerGREMEDY(int len, IntPtr @string); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glSwizzleEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void SwizzleEXT(uint res, uint @in, ExtVertexShader outX, ExtVertexShader outY, ExtVertexShader outZ, ExtVertexShader outW); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTagSampleBufferSGIX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TagSampleBufferSGIX(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3bEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Tangent3bEXT(sbyte tx, sbyte ty, sbyte tz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3bvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Tangent3bvEXT(sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Tangent3dEXT(double tx, double ty, double tz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Tangent3dvEXT(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3fEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Tangent3fEXT(float tx, float ty, float tz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3fvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Tangent3fvEXT(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Tangent3iEXT(int tx, int ty, int tz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Tangent3ivEXT(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3sEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Tangent3sEXT(short tx, short ty, short tz); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangent3svEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Tangent3svEXT(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTangentPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TangentPointerEXT(NormalPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTbufferMask3DFX", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TbufferMask3DFX(uint mask); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTessellationFactorAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TessellationFactorAMD(float factor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTessellationModeAMD", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TessellationModeAMD(AmdVertexShaderTesselator mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTestFenceAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool TestFenceAPPLE(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTestFenceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool TestFenceNV(uint fence); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTestObjectAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool TestObjectAPPLE(AppleFence @object, uint name); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexBuffer(TextureBufferTarget target, SizedInternalFormat internalformat, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexBufferARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexBufferARB(TextureTarget target, ArbTextureBufferObject internalformat, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexBufferEXT(TextureTarget target, ExtTextureBufferObject internalformat, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexBumpParameterfvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexBumpParameterfvATI(AtiEnvmapBumpmap pname, float* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexBumpParameterivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexBumpParameterivATI(AtiEnvmapBumpmap pname, int* param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord1d(double s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord1dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord1f(float s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord1fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord1i(int s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord1iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord1s(short s); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord1sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord1sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2d(double s, double t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2f(float s, float t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2fColor3fVertex3fSUN(float s, float t, float r, float g, float b, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fColor3fVertex3fvSUN(float* tc, float* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor4fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2fColor4fNormal3fVertex3fSUN(float s, float t, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor4fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fColor4fNormal3fVertex3fvSUN(float* tc, float* c, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor4ubVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2fColor4ubVertex3fSUN(float s, float t, byte r, byte g, byte b, byte a, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fColor4ubVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fColor4ubVertex3fvSUN(float* tc, byte* c, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fNormal3fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2fNormal3fVertex3fSUN(float s, float t, float nx, float ny, float nz, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fNormal3fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fNormal3fVertex3fvSUN(float* tc, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fVertex3fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2fVertex3fSUN(float s, float t, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2fVertex3fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2fVertex3fvSUN(float* tc, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2i(int s, int t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord2s(short s, short t); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord2sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord3d(double s, double t, double r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord3f(float s, float t, float r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord3i(int s, int t, int r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord3s(short s, short t, short r); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4d(double s, double t, double r, double q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4f(float s, float t, float r, float q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4fColor4fNormal3fVertex4fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4fColor4fNormal3fVertex4fSUN(float s, float t, float p, float q, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4fColor4fNormal3fVertex4fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4fColor4fNormal3fVertex4fvSUN(float* tc, float* c, float* n, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4fVertex4fSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4fVertex4fSUN(float s, float t, float p, float q, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4fVertex4fvSUN", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4fVertex4fvSUN(float* tc, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4i(int s, int t, int r, int q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoord4s(short s, short t, short r, short q); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoord4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoord4sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordFormatNV(int size, NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordP1ui(PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoordP1uiv(PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordP2ui(PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoordP2uiv(PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordP3ui(PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoordP3uiv(PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordP4ui(PackedPointerType type, uint coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordP4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexCoordP4uiv(PackedPointerType type, uint* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordPointer(int size, TexCoordPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordPointerEXT(int size, TexCoordPointerType type, int stride, int count, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordPointerListIBM(int size, TexCoordPointerType type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexCoordPointervINTEL", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexCoordPointervINTEL(int size, VertexPointerType type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexEnvf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexEnvf(TextureEnvTarget target, TextureEnvParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexEnvfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexEnvfv(TextureEnvTarget target, TextureEnvParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexEnvi", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexEnvi(TextureEnvTarget target, TextureEnvParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexEnviv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexEnviv(TextureEnvTarget target, TextureEnvParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexFilterFuncSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexFilterFuncSGIS(TextureTarget target, SgisTextureFilter4 filter, int n, float* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGend", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexGend(TextureCoordName coord, TextureGenParameter pname, double param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGendv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexGendv(TextureCoordName coord, TextureGenParameter pname, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGenf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexGenf(TextureCoordName coord, TextureGenParameter pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGenfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexGenfv(TextureCoordName coord, TextureGenParameter pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGeni", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexGeni(TextureCoordName coord, TextureGenParameter pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexGeniv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexGeniv(TextureCoordName coord, TextureGenParameter pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage2DMultisample", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage2DMultisample(TextureTargetMultisample target, int samples, PixelInternalFormat internalformat, int width, int height, bool fixedsamplelocations); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage3DEXT(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage3DMultisample", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage3DMultisample(TextureTargetMultisample target, int samples, PixelInternalFormat internalformat, int width, int height, int depth, bool fixedsamplelocations); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexImage4DSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexImage4DSGIS(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int size4d, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexParameterf(TextureTarget target, TextureParameterName pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameterfv(TextureTarget target, TextureParameterName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameteri", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexParameteri(TextureTarget target, TextureParameterName pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterIiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameterIiv(TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameterIivEXT(TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterIuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameterIuiv(TextureTarget target, TextureParameterName pname, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameterIuivEXT(TextureTarget target, TextureParameterName pname, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexParameteriv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TexParameteriv(TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexRenderbufferNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexRenderbufferNV(TextureTarget target, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage1D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage1DEXT(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage2D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage2DEXT(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage3D", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage3DEXT(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTexSubImage4DSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TexSubImage4DSGIS(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int woffset, int width, int height, int depth, int size4d, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureBarrierNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureBarrierNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureBufferEXT(uint texture, TextureTarget target, ExtDirectStateAccess internalformat, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureColorMaskSGIS", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureColorMaskSGIS(bool red, bool green, bool blue, bool alpha); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureImage1DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureImage2DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureImage3DEXT(uint texture, TextureTarget target, int level, ExtDirectStateAccess internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureLightEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureLightEXT(ExtLightTexture pname); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureMaterialEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureMaterialEXT(MaterialFace face, MaterialParameter mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureNormalEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureNormalEXT(ExtTexturePerturbNormal mode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameterfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureParameterfEXT(uint texture, TextureTarget target, TextureParameterName pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameterfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TextureParameterfvEXT(uint texture, TextureTarget target, TextureParameterName pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameteriEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureParameteriEXT(uint texture, TextureTarget target, TextureParameterName pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameterIivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TextureParameterIivEXT(uint texture, TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameterIuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TextureParameterIuivEXT(uint texture, TextureTarget target, TextureParameterName pname, uint* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureParameterivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TextureParameterivEXT(uint texture, TextureTarget target, TextureParameterName pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureRangeAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureRangeAPPLE(AppleTextureRange target, int length, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureRenderbufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureRenderbufferEXT(uint texture, TextureTarget target, uint renderbuffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureSubImage1DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureSubImage1DEXT(uint texture, TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureSubImage2DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureSubImage2DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTextureSubImage3DEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TextureSubImage3DEXT(uint texture, TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, IntPtr pixels); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTrackMatrixNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TrackMatrixNV(AssemblyProgramTargetArb target, uint address, NvVertexProgram matrix, NvVertexProgram transform); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTransformFeedbackAttribsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TransformFeedbackAttribsNV(uint count, int* attribs, NvTransformFeedback bufferMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTransformFeedbackStreamAttribsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TransformFeedbackStreamAttribsNV(int count, int* attribs, int nbuffers, int* bufstreams, NvTransformFeedback bufferMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTransformFeedbackVaryings", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TransformFeedbackVaryings(uint program, int count, string[] varyings, TransformFeedbackMode bufferMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTransformFeedbackVaryingsEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void TransformFeedbackVaryingsEXT(uint program, int count, string[] varyings, ExtTransformFeedback bufferMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTransformFeedbackVaryingsNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void TransformFeedbackVaryingsNV(uint program, int count, int* locations, NvTransformFeedback bufferMode); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTranslated", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Translated(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glTranslatef", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Translatef(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1d(int location, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1dv(int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1f(int location, float v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1fARB(int location, float v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1fv(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1fvARB(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1i(int location, int v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1i64NV(int location, long x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1i64vNV(int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1iARB(int location, int v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1iv(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1ivARB(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1ui(int location, uint v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1ui64NV(int location, ulong x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1ui64vNV(int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform1uiEXT(int location, uint v0); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1uiv(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform1uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform1uivEXT(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2d(int location, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2dv(int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2f(int location, float v0, float v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2fARB(int location, float v0, float v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2fv(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2fvARB(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2i(int location, int v0, int v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2i64NV(int location, long x, long y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2i64vNV(int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2iARB(int location, int v0, int v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2iv(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2ivARB(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2ui(int location, uint v0, uint v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2ui64NV(int location, ulong x, ulong y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2ui64vNV(int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform2uiEXT(int location, uint v0, uint v1); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2uiv(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform2uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform2uivEXT(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3d(int location, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3dv(int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3f(int location, float v0, float v1, float v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3fARB(int location, float v0, float v1, float v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3fv(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3fvARB(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3i(int location, int v0, int v1, int v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3i64NV(int location, long x, long y, long z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3i64vNV(int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3iARB(int location, int v0, int v1, int v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3iv(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3ivARB(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3ui(int location, uint v0, uint v1, uint v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3ui64NV(int location, ulong x, ulong y, ulong z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3ui64vNV(int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform3uiEXT(int location, uint v0, uint v1, uint v2); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3uiv(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform3uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform3uivEXT(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4d(int location, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4dv(int location, int count, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4f(int location, float v0, float v1, float v2, float v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4fARB(int location, float v0, float v1, float v2, float v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4fv(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4fvARB(int location, int count, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4i(int location, int v0, int v1, int v2, int v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4i64NV(int location, long x, long y, long z, long w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4i64vNV(int location, int count, long* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4iARB(int location, int v0, int v1, int v2, int v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4iv(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4ivARB(int location, int count, int* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4ui(int location, uint v0, uint v1, uint v2, uint v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4ui64NV(int location, ulong x, ulong y, ulong z, ulong w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4ui64vNV(int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniform4uiEXT(int location, uint v0, uint v1, uint v2, uint v3); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4uiv(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniform4uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniform4uivEXT(int location, int count, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformBlockBinding", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UniformBlockBinding(uint program, uint uniformBlockIndex, uint uniformBlockBinding); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UniformBufferEXT(uint program, int location, uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2fvARB(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2x3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2x3dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2x3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2x3fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2x4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2x4dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix2x4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix2x4fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3fvARB(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3x2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3x2dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3x2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3x2fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3x4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3x4dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix3x4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix3x4fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4fvARB(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4x2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4x2dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4x2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4x2fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4x3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4x3dv(int location, int count, bool transpose, double* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformMatrix4x3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformMatrix4x3fv(int location, int count, bool transpose, float* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformSubroutinesuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void UniformSubroutinesuiv(ShaderType shadertype, int count, uint* indices); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Uniformui64NV(int location, ulong value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUniformui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Uniformui64vNV(int location, int count, ulong* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUnlockArraysEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UnlockArraysEXT(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUnmapBuffer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool UnmapBuffer(BufferTarget target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUnmapBufferARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool UnmapBufferARB(BufferTargetArb target); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUnmapNamedBufferEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern bool UnmapNamedBufferEXT(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUnmapObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UnmapObjectBufferATI(uint buffer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUpdateObjectBufferATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UpdateObjectBufferATI(uint buffer, uint offset, int size, IntPtr pointer, AtiVertexArrayObject preserve); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUseProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UseProgram(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUseProgramObjectARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UseProgramObjectARB(uint programObj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUseProgramStages", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UseProgramStages(uint pipeline, ProgramStageMask stages, uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glUseShaderProgramEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void UseShaderProgramEXT(ExtSeparateShaderObjects type, uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glValidateProgram", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ValidateProgram(uint program); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glValidateProgramARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ValidateProgramARB(uint programObj); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glValidateProgramPipeline", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ValidateProgramPipeline(uint pipeline); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantArrayObjectATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VariantArrayObjectATI(uint id, AtiVertexArrayObject type, int stride, uint buffer, uint offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantbvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantbvEXT(uint id, sbyte* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantdvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantdvEXT(uint id, double* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantfvEXT(uint id, float* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantivEXT(uint id, int* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VariantPointerEXT(uint id, ExtVertexShader type, uint stride, IntPtr addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantsvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantsvEXT(uint id, short* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantubvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantubvEXT(uint id, byte* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantuivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantuivEXT(uint id, uint* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVariantusvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VariantusvEXT(uint id, ushort* addr); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUFiniNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VDPAUFiniNV(); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUGetSurfaceivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VDPAUGetSurfaceivNV(IntPtr surface, NvVdpauInterop pname, int bufSize, [Out] int* length, [Out] int* values); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUInitNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VDPAUInitNV(IntPtr vdpDevice, IntPtr getProcAddress); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUIsSurfaceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VDPAUIsSurfaceNV(IntPtr surface); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUMapSurfacesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VDPAUMapSurfacesNV(int numSurfaces, IntPtr* surfaces); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAURegisterOutputSurfaceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern IntPtr VDPAURegisterOutputSurfaceNV([Out] IntPtr vdpSurface, NvVdpauInterop target, int numTextureNames, uint* textureNames); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAURegisterVideoSurfaceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern IntPtr VDPAURegisterVideoSurfaceNV([Out] IntPtr vdpSurface, NvVdpauInterop target, int numTextureNames, uint* textureNames); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUSurfaceAccessNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VDPAUSurfaceAccessNV(IntPtr surface, NvVdpauInterop access); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUUnmapSurfacesNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VDPAUUnmapSurfacesNV(int numSurface, IntPtr* surfaces); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVDPAUUnregisterSurfaceNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VDPAUUnregisterSurfaceNV(IntPtr surface); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex2d(double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex2dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex2f(float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex2fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex2i(int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex2iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex2s(short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex2sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex3d(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex3f(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex3i(int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex3s(short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex4d(double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex4dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex4f(float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex4fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex4i(int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex4iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Vertex4s(short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertex4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void Vertex4sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexArrayParameteriAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexArrayParameteriAPPLE(AppleVertexArrayRange pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexArrayRangeAPPLE", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexArrayRangeAPPLE(int length, [Out] IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexArrayRangeNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexArrayRangeNV(int length, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexArrayVertexAttribLOffsetEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexArrayVertexAttribLOffsetEXT(uint vaobj, uint buffer, uint index, int size, ExtVertexAttrib64bit type, int stride, IntPtr offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1d(uint index, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1dARB(uint index, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1dNV(uint index, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1dvARB(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1dvNV(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1f(uint index, float x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1fARB(uint index, float x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1fNV(uint index, float x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1fv(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1fvARB(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1fvNV(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1s(uint index, short x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1sARB(uint index, short x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1sNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib1sNV(uint index, short x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1sv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1svARB(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib1svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib1svNV(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2d(uint index, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2dARB(uint index, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2dNV(uint index, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2dvARB(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2dvNV(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2f(uint index, float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2fARB(uint index, float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2fNV(uint index, float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2fv(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2fvARB(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2fvNV(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2s(uint index, short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2sARB(uint index, short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2sNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib2sNV(uint index, short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2sv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2svARB(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib2svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib2svNV(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3d(uint index, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3dARB(uint index, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3dNV(uint index, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3dvARB(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3dvNV(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3f(uint index, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3fARB(uint index, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3fNV(uint index, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3fv(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3fvARB(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3fvNV(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3s(uint index, short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3sARB(uint index, short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3sNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib3sNV(uint index, short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3sv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3svARB(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib3svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib3svNV(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4bv(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4bvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4bvARB(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4d(uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4dARB(uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4dNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4dNV(uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4dvARB(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4dvNV(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4f(uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4fARB(uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4fNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4fNV(uint index, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4fv(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4fvARB(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4fvNV(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4iv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4ivARB(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nbv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Nbv(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NbvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NbvARB(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Niv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Niv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NivARB(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nsv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Nsv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NsvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NsvARB(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nub", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4Nub(uint index, byte x, byte y, byte z, byte w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NubARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4NubARB(uint index, byte x, byte y, byte z, byte w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Nubv(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NubvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NubvARB(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nuiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Nuiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NuivARB(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4Nusv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4Nusv(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4NusvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4NusvARB(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4s(uint index, short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4sARB(uint index, short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4sNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4sNV(uint index, short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4sv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4svARB(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4svNV(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4ubNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttrib4ubNV(uint index, byte x, byte y, byte z, byte w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4ubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4ubv(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4ubvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4ubvARB(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4ubvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4ubvNV(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4uiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4uivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4uivARB(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4usv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4usv(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttrib4usvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttrib4usvARB(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribArrayObjectATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribArrayObjectATI(uint index, int size, AtiVertexAttribArrayObject type, bool normalized, int stride, uint buffer, uint offset); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribDivisor", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribDivisor(uint index, uint divisor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribDivisorARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribDivisorARB(uint index, uint divisor); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribFormatNV(uint index, int size, NvVertexBufferUnifiedMemory type, bool normalized, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI1i(uint index, int x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI1iEXT(uint index, int x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI1iv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI1ivEXT(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI1ui(uint index, uint x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI1uiEXT(uint index, uint x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI1uiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI1uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI1uivEXT(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI2i(uint index, int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI2iEXT(uint index, int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI2iv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI2ivEXT(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI2ui(uint index, uint x, uint y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI2uiEXT(uint index, uint x, uint y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI2uiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI2uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI2uivEXT(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI3i(uint index, int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI3iEXT(uint index, int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI3iv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI3ivEXT(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI3ui(uint index, uint x, uint y, uint z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI3uiEXT(uint index, uint x, uint y, uint z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI3uiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI3uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI3uivEXT(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4bv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4bv(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4bvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4bvEXT(uint index, sbyte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI4i(uint index, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4iEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI4iEXT(uint index, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4iv(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4ivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4ivEXT(uint index, int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4sv(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4svEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4svEXT(uint index, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4ubv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4ubv(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4ubvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4ubvEXT(uint index, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI4ui(uint index, uint x, uint y, uint z, uint w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4uiEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribI4uiEXT(uint index, uint x, uint y, uint z, uint w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4uiv(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4uivEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4uivEXT(uint index, uint* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4usv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4usv(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribI4usvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribI4usvEXT(uint index, ushort* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribIFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribIFormatNV(uint index, int size, NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribIPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribIPointer(uint index, int size, VertexAttribIPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribIPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribIPointerEXT(uint index, int size, NvVertexProgram4 type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL1d(uint index, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL1dEXT(uint index, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL1dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL1dvEXT(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL1i64NV(uint index, long x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL1i64vNV(uint index, long* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL1ui64NV(uint index, ulong x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL1ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL1ui64vNV(uint index, ulong* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL2d(uint index, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL2dEXT(uint index, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL2dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL2dvEXT(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL2i64NV(uint index, long x, long y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL2i64vNV(uint index, long* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL2ui64NV(uint index, ulong x, ulong y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL2ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL2ui64vNV(uint index, ulong* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL3d(uint index, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL3dEXT(uint index, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL3dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL3dvEXT(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL3i64NV(uint index, long x, long y, long z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL3i64vNV(uint index, long* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL3ui64NV(uint index, ulong x, ulong y, ulong z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL3ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL3ui64vNV(uint index, ulong* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL4d(uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4dEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL4dEXT(uint index, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL4dv(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4dvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL4dvEXT(uint index, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4i64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL4i64NV(uint index, long x, long y, long z, long w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4i64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL4i64vNV(uint index, long* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4ui64NV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribL4ui64NV(uint index, ulong x, ulong y, ulong z, ulong w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribL4ui64vNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribL4ui64vNV(uint index, ulong* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribLFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribLFormatNV(uint index, int size, NvVertexAttribInteger64bit type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribLPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribLPointer(uint index, int size, VertexAttribDPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribLPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribLPointerEXT(uint index, int size, ExtVertexAttrib64bit type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP1ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribP1ui(uint index, PackedPointerType type, bool normalized, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP1uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribP1uiv(uint index, PackedPointerType type, bool normalized, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribP2ui(uint index, PackedPointerType type, bool normalized, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribP2uiv(uint index, PackedPointerType type, bool normalized, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribP3ui(uint index, PackedPointerType type, bool normalized, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribP3uiv(uint index, PackedPointerType type, bool normalized, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribP4ui(uint index, PackedPointerType type, bool normalized, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribP4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribP4uiv(uint index, PackedPointerType type, bool normalized, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribPointerARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribPointerARB(uint index, int size, VertexAttribPointerTypeArb type, bool normalized, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribPointerNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexAttribPointerNV(uint index, int fsize, VertexAttribParameterArb type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs1dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs1dvNV(uint index, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs1fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs1fvNV(uint index, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs1svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs1svNV(uint index, int count, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs2dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs2dvNV(uint index, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs2fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs2fvNV(uint index, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs2svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs2svNV(uint index, int count, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs3dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs3dvNV(uint index, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs3fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs3fvNV(uint index, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs3svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs3svNV(uint index, int count, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs4dvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs4dvNV(uint index, int count, double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs4fvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs4fvNV(uint index, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs4svNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs4svNV(uint index, int count, short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexAttribs4ubvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexAttribs4ubvNV(uint index, int count, byte* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexBlendARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexBlendARB(int count); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexBlendEnvfATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexBlendEnvfATI(AtiVertexStreams pname, float param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexBlendEnviATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexBlendEnviATI(AtiVertexStreams pname, int param); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexFormatNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexFormatNV(int size, NvVertexBufferUnifiedMemory type, int stride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP2ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexP2ui(PackedPointerType type, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP2uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexP2uiv(PackedPointerType type, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP3ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexP3ui(PackedPointerType type, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP3uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexP3uiv(PackedPointerType type, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP4ui", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexP4ui(PackedPointerType type, uint value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexP4uiv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexP4uiv(PackedPointerType type, uint* value); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexPointer", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexPointerEXT(int size, VertexPointerType type, int stride, int count, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexPointerListIBM", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexPointerListIBM(int size, VertexPointerType type, int stride, IntPtr pointer, int ptrstride); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexPointervINTEL", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexPointervINTEL(int size, VertexPointerType type, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1dATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream1dATI(AtiVertexStreams stream, double x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1dvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream1dvATI(AtiVertexStreams stream, double* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1fATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream1fATI(AtiVertexStreams stream, float x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1fvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream1fvATI(AtiVertexStreams stream, float* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1iATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream1iATI(AtiVertexStreams stream, int x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1ivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream1ivATI(AtiVertexStreams stream, int* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1sATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream1sATI(AtiVertexStreams stream, short x); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream1svATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream1svATI(AtiVertexStreams stream, short* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2dATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream2dATI(AtiVertexStreams stream, double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2dvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream2dvATI(AtiVertexStreams stream, double* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2fATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream2fATI(AtiVertexStreams stream, float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2fvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream2fvATI(AtiVertexStreams stream, float* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2iATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream2iATI(AtiVertexStreams stream, int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2ivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream2ivATI(AtiVertexStreams stream, int* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2sATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream2sATI(AtiVertexStreams stream, short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream2svATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream2svATI(AtiVertexStreams stream, short* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3dATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream3dATI(AtiVertexStreams stream, double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3dvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream3dvATI(AtiVertexStreams stream, double* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3fATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream3fATI(AtiVertexStreams stream, float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3fvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream3fvATI(AtiVertexStreams stream, float* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3iATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream3iATI(AtiVertexStreams stream, int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3ivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream3ivATI(AtiVertexStreams stream, int* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3sATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream3sATI(AtiVertexStreams stream, short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream3svATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream3svATI(AtiVertexStreams stream, short* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4dATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream4dATI(AtiVertexStreams stream, double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4dvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream4dvATI(AtiVertexStreams stream, double* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4fATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream4fATI(AtiVertexStreams stream, float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4fvATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream4fvATI(AtiVertexStreams stream, float* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4iATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream4iATI(AtiVertexStreams stream, int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4ivATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream4ivATI(AtiVertexStreams stream, int* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4sATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexStream4sATI(AtiVertexStreams stream, short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexStream4svATI", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexStream4svATI(AtiVertexStreams stream, short* coords); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexWeightfEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexWeightfEXT(float weight); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexWeightfvEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VertexWeightfvEXT(float* weight); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVertexWeightPointerEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void VertexWeightPointerEXT(int size, ExtVertexWeighting type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVideoCaptureNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern NvVideoCapture VideoCaptureNV(uint video_capture_slot, [Out] uint* sequence_num, [Out] ulong* capture_time); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVideoCaptureStreamParameterdvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VideoCaptureStreamParameterdvNV(uint video_capture_slot, uint stream, NvVideoCapture pname, double* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVideoCaptureStreamParameterfvNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VideoCaptureStreamParameterfvNV(uint video_capture_slot, uint stream, NvVideoCapture pname, float* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glVideoCaptureStreamParameterivNV", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void VideoCaptureStreamParameterivNV(uint video_capture_slot, uint stream, NvVideoCapture pname, int* @params); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glViewport", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void Viewport(int x, int y, int width, int height); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glViewportArrayv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ViewportArrayv(uint first, int count, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glViewportIndexedf", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void ViewportIndexedf(uint index, float x, float y, float w, float h); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glViewportIndexedfv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void ViewportIndexedfv(uint index, float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWaitSync", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WaitSync(IntPtr sync, uint flags, ulong timeout); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightbvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightbvARB(int size, sbyte* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightdvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightdvARB(int size, double* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightfvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightfvARB(int size, float* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightivARB(int size, int* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightPointerARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WeightPointerARB(int size, ArbVertexBlend type, int stride, IntPtr pointer); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightsvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightsvARB(int size, short* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightubvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightubvARB(int size, byte* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightuivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightuivARB(int size, uint* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWeightusvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WeightusvARB(int size, ushort* weights); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2d(double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2dARB(double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2dMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2dMESA(double x, double y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2dvARB(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2dvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2dvMESA(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2f(float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2fARB(float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2fMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2fMESA(float x, float y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2fvARB(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2fvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2fvMESA(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2i(int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2iARB(int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2iMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2iMESA(int x, int y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2ivARB(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2ivMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2ivMESA(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2s(short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2sARB(short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2sMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos2sMESA(short x, short y); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos2svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2svARB(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos2svMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos2svMESA(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3d", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3d(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3dARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3dARB(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3dMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3dMESA(double x, double y, double z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3dv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3dv(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3dvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3dvARB(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3dvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3dvMESA(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3f", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3f(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3fARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3fARB(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3fMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3fMESA(float x, float y, float z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3fv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3fv(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3fvARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3fvARB(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3fvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3fvMESA(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3i", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3i(int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3iARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3iARB(int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3iMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3iMESA(int x, int y, int z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3iv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3iv(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3ivARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3ivARB(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3ivMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3ivMESA(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3s", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3s(short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3sARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3sARB(short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3sMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos3sMESA(short x, short y, short z); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3sv", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3sv(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWindowPos3svARB", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3svARB(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos3svMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos3svMESA(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4dMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos4dMESA(double x, double y, double z, double w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4dvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos4dvMESA(double* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4fMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos4fMESA(float x, float y, float z, float w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4fvMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos4fvMESA(float* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4iMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos4iMESA(int x, int y, int z, int w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4ivMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos4ivMESA(int* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4sMESA")] [SuppressUnmanagedCodeSecurity] internal static extern void WindowPos4sMESA(short x, short y, short z, short w); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", CharSet = CharSet.Auto, EntryPoint = "glWindowPos4svMESA")] [SuppressUnmanagedCodeSecurity] internal unsafe static extern void WindowPos4svMESA(short* v); [DllImport("/System/Library/Frameworks/OpenGL.framework/OpenGL", EntryPoint = "glWriteMaskEXT", ExactSpelling = true)] [SuppressUnmanagedCodeSecurity] internal static extern void WriteMaskEXT(uint res, uint @in, ExtVertexShader outX, ExtVertexShader outY, ExtVertexShader outZ, ExtVertexShader outW); } internal const string Library = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; private static readonly object sync_root; protected object SyncRoot => sync_root; public static void Accum(AccumOp op, float value) { Core.Accum(op, value); } public static void ActiveTexture(TextureUnit texture) { Core.ActiveTexture(texture); } public static void AlphaFunc(AlphaFunction func, float @ref) { Core.AlphaFunc(func, @ref); } public unsafe static bool AreTexturesResident(int n, int[] textures, [Out] bool[] residences) { fixed (int* textures2 = textures) { fixed (bool* residences2 = residences) { return Core.AreTexturesResident(n, (uint*)textures2, residences2); } } } public static void ArrayElement(int i) { Core.ArrayElement(i); } public static void AttachShader(int program, int shader) { Core.AttachShader((uint)program, (uint)shader); } [CLSCompliant(false)] public static void AttachShader(uint program, uint shader) { Core.AttachShader(program, shader); } public static void Begin(BeginMode mode) { Core.Begin(mode); } public static void BeginQuery(QueryTarget target, int id) { Core.BeginQuery(target, (uint)id); } [CLSCompliant(false)] public static void BeginQuery(QueryTarget target, uint id) { Core.BeginQuery(target, id); } public static void BindAttribLocation(int program, int index, string name) { Core.BindAttribLocation((uint)program, (uint)index, name); } [CLSCompliant(false)] public static void BindAttribLocation(uint program, uint index, string name) { Core.BindAttribLocation(program, index, name); } public static void BindBuffer(BufferTarget target, int buffer) { Core.BindBuffer(target, (uint)buffer); } [CLSCompliant(false)] public static void BindBuffer(BufferTarget target, uint buffer) { Core.BindBuffer(target, buffer); } public static void BindTexture(TextureTarget target, int texture) { Core.BindTexture(target, (uint)texture); } [CLSCompliant(false)] public static void BindTexture(TextureTarget target, uint texture) { Core.BindTexture(target, texture); } public unsafe static void Bitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap) { fixed (byte* bitmap2 = bitmap) { Core.Bitmap(width, height, xorig, yorig, xmove, ymove, bitmap2); } } public unsafe static void Bitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ref byte bitmap) { fixed (byte* bitmap2 = &bitmap) { Core.Bitmap(width, height, xorig, yorig, xmove, ymove, bitmap2); } } [CLSCompliant(false)] public unsafe static void Bitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte* bitmap) { Core.Bitmap(width, height, xorig, yorig, xmove, ymove, bitmap); } public static void BlendColor(float red, float green, float blue, float alpha) { Core.BlendColor(red, green, blue, alpha); } public static void BlendEquation(BlendEquationMode mode) { Core.BlendEquation(mode); } public static void BlendEquationSeparate(BlendEquationMode modeRGB, BlendEquationMode modeAlpha) { Core.BlendEquationSeparate(modeRGB, modeAlpha); } public static void BlendFunc(BlendingFactorSrc sfactor, BlendingFactorDest dfactor) { Core.BlendFunc(sfactor, dfactor); } public static void BlendFuncSeparate(BlendingFactorSrc sfactorRGB, BlendingFactorDest dfactorRGB, BlendingFactorSrc sfactorAlpha, BlendingFactorDest dfactorAlpha) { Core.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); } public static void BufferData(BufferTarget target, IntPtr size, IntPtr data, BufferUsageHint usage) { Core.BufferData(target, size, data, usage); } public static void BufferData(BufferTarget target, IntPtr size, [In][Out] T2[] data, BufferUsageHint usage) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferData(target, size, gCHandle.AddrOfPinnedObject(), usage); } finally { gCHandle.Free(); } } public static void BufferData(BufferTarget target, IntPtr size, [In][Out] T2[,] data, BufferUsageHint usage) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferData(target, size, gCHandle.AddrOfPinnedObject(), usage); } finally { gCHandle.Free(); } } public static void BufferData(BufferTarget target, IntPtr size, [In][Out] T2[,,] data, BufferUsageHint usage) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferData(target, size, gCHandle.AddrOfPinnedObject(), usage); } finally { gCHandle.Free(); } } public static void BufferData(BufferTarget target, IntPtr size, [In][Out] ref T2 data, BufferUsageHint usage) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferData(target, size, gCHandle.AddrOfPinnedObject(), usage); data = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, IntPtr data) { Core.BufferSubData(target, offset, size, data); } public static void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[,] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[,,] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void BufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] ref T3 data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.BufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); data = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CallList(int list) { Core.CallList((uint)list); } public static void CallList(uint list) { Core.CallList(list); } public static void CallLists(int n, ListNameType type, IntPtr lists) { Core.CallLists(n, type, lists); } public static void CallLists(int n, ListNameType type, [In][Out] T2[] lists) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(lists, GCHandleType.Pinned); try { Core.CallLists(n, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CallLists(int n, ListNameType type, [In][Out] T2[,] lists) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(lists, GCHandleType.Pinned); try { Core.CallLists(n, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CallLists(int n, ListNameType type, [In][Out] T2[,,] lists) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(lists, GCHandleType.Pinned); try { Core.CallLists(n, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CallLists(int n, ListNameType type, [In][Out] ref T2 lists) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(lists, GCHandleType.Pinned); try { Core.CallLists(n, type, gCHandle.AddrOfPinnedObject()); lists = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Clear(ClearBufferMask mask) { Core.Clear(mask); } public static void ClearAccum(float red, float green, float blue, float alpha) { Core.ClearAccum(red, green, blue, alpha); } public static void ClearColor(float red, float green, float blue, float alpha) { Core.ClearColor(red, green, blue, alpha); } public static void ClearDepth(double depth) { Core.ClearDepth(depth); } public static void ClearIndex(float c) { Core.ClearIndex(c); } public static void ClearStencil(int s) { Core.ClearStencil(s); } public static void ClientActiveTexture(TextureUnit texture) { Core.ClientActiveTexture(texture); } public unsafe static void ClipPlane(ClipPlaneName plane, double[] equation) { fixed (double* equation2 = equation) { Core.ClipPlane(plane, equation2); } } public unsafe static void ClipPlane(ClipPlaneName plane, ref double equation) { fixed (double* equation2 = &equation) { Core.ClipPlane(plane, equation2); } } [CLSCompliant(false)] public unsafe static void ClipPlane(ClipPlaneName plane, double* equation) { Core.ClipPlane(plane, equation); } [CLSCompliant(false)] public static void Color3(sbyte red, sbyte green, sbyte blue) { Core.Color3b(red, green, blue); } [CLSCompliant(false)] public unsafe static void Color3(sbyte[] v) { fixed (sbyte* v2 = v) { Core.Color3bv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(ref sbyte v) { fixed (sbyte* v2 = &v) { Core.Color3bv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(sbyte* v) { Core.Color3bv(v); } public static void Color3(double red, double green, double blue) { Core.Color3d(red, green, blue); } public unsafe static void Color3(double[] v) { fixed (double* v2 = v) { Core.Color3dv(v2); } } public unsafe static void Color3(ref double v) { fixed (double* v2 = &v) { Core.Color3dv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(double* v) { Core.Color3dv(v); } public static void Color3(float red, float green, float blue) { Core.Color3f(red, green, blue); } public unsafe static void Color3(float[] v) { fixed (float* v2 = v) { Core.Color3fv(v2); } } public unsafe static void Color3(ref float v) { fixed (float* v2 = &v) { Core.Color3fv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(float* v) { Core.Color3fv(v); } public static void Color3(int red, int green, int blue) { Core.Color3i(red, green, blue); } public unsafe static void Color3(int[] v) { fixed (int* v2 = v) { Core.Color3iv(v2); } } public unsafe static void Color3(ref int v) { fixed (int* v2 = &v) { Core.Color3iv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(int* v) { Core.Color3iv(v); } public static void Color3(short red, short green, short blue) { Core.Color3s(red, green, blue); } public unsafe static void Color3(short[] v) { fixed (short* v2 = v) { Core.Color3sv(v2); } } public unsafe static void Color3(ref short v) { fixed (short* v2 = &v) { Core.Color3sv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(short* v) { Core.Color3sv(v); } public static void Color3(byte red, byte green, byte blue) { Core.Color3ub(red, green, blue); } public unsafe static void Color3(byte[] v) { fixed (byte* v2 = v) { Core.Color3ubv(v2); } } public unsafe static void Color3(ref byte v) { fixed (byte* v2 = &v) { Core.Color3ubv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(byte* v) { Core.Color3ubv(v); } [CLSCompliant(false)] public static void Color3(uint red, uint green, uint blue) { Core.Color3ui(red, green, blue); } [CLSCompliant(false)] public unsafe static void Color3(uint[] v) { fixed (uint* v2 = v) { Core.Color3uiv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(ref uint v) { fixed (uint* v2 = &v) { Core.Color3uiv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(uint* v) { Core.Color3uiv(v); } [CLSCompliant(false)] public static void Color3(ushort red, ushort green, ushort blue) { Core.Color3us(red, green, blue); } [CLSCompliant(false)] public unsafe static void Color3(ushort[] v) { fixed (ushort* v2 = v) { Core.Color3usv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(ref ushort v) { fixed (ushort* v2 = &v) { Core.Color3usv(v2); } } [CLSCompliant(false)] public unsafe static void Color3(ushort* v) { Core.Color3usv(v); } [CLSCompliant(false)] public static void Color4(sbyte red, sbyte green, sbyte blue, sbyte alpha) { Core.Color4b(red, green, blue, alpha); } [CLSCompliant(false)] public unsafe static void Color4(sbyte[] v) { fixed (sbyte* v2 = v) { Core.Color4bv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(ref sbyte v) { fixed (sbyte* v2 = &v) { Core.Color4bv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(sbyte* v) { Core.Color4bv(v); } public static void Color4(double red, double green, double blue, double alpha) { Core.Color4d(red, green, blue, alpha); } public unsafe static void Color4(double[] v) { fixed (double* v2 = v) { Core.Color4dv(v2); } } public unsafe static void Color4(ref double v) { fixed (double* v2 = &v) { Core.Color4dv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(double* v) { Core.Color4dv(v); } public static void Color4(float red, float green, float blue, float alpha) { Core.Color4f(red, green, blue, alpha); } public unsafe static void Color4(float[] v) { fixed (float* v2 = v) { Core.Color4fv(v2); } } public unsafe static void Color4(ref float v) { fixed (float* v2 = &v) { Core.Color4fv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(float* v) { Core.Color4fv(v); } public static void Color4(int red, int green, int blue, int alpha) { Core.Color4i(red, green, blue, alpha); } public unsafe static void Color4(int[] v) { fixed (int* v2 = v) { Core.Color4iv(v2); } } public unsafe static void Color4(ref int v) { fixed (int* v2 = &v) { Core.Color4iv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(int* v) { Core.Color4iv(v); } public static void Color4(short red, short green, short blue, short alpha) { Core.Color4s(red, green, blue, alpha); } public unsafe static void Color4(short[] v) { fixed (short* v2 = v) { Core.Color4sv(v2); } } public unsafe static void Color4(ref short v) { fixed (short* v2 = &v) { Core.Color4sv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(short* v) { Core.Color4sv(v); } public static void Color4(byte red, byte green, byte blue, byte alpha) { Core.Color4ub(red, green, blue, alpha); } public unsafe static void Color4(byte[] v) { fixed (byte* v2 = v) { Core.Color4ubv(v2); } } public unsafe static void Color4(ref byte v) { fixed (byte* v2 = &v) { Core.Color4ubv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(byte* v) { Core.Color4ubv(v); } [CLSCompliant(false)] public static void Color4(uint red, uint green, uint blue, uint alpha) { Core.Color4ui(red, green, blue, alpha); } [CLSCompliant(false)] public unsafe static void Color4(uint[] v) { fixed (uint* v2 = v) { Core.Color4uiv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(ref uint v) { fixed (uint* v2 = &v) { Core.Color4uiv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(uint* v) { Core.Color4uiv(v); } [CLSCompliant(false)] public static void Color4(ushort red, ushort green, ushort blue, ushort alpha) { Core.Color4us(red, green, blue, alpha); } [CLSCompliant(false)] public unsafe static void Color4(ushort[] v) { fixed (ushort* v2 = v) { Core.Color4usv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(ref ushort v) { fixed (ushort* v2 = &v) { Core.Color4usv(v2); } } [CLSCompliant(false)] public unsafe static void Color4(ushort* v) { Core.Color4usv(v); } public static void ColorMask(bool red, bool green, bool blue, bool alpha) { Core.ColorMask(red, green, blue, alpha); } public static void ColorMaterial(MaterialFace face, ColorMaterialParameter mode) { Core.ColorMaterial(face, mode); } public static void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { Core.ColorPointer(size, type, stride, pointer); } public static void ColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.ColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.ColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[,,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.ColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorPointer(int size, ColorPointerType type, int stride, [In][Out] ref T3 pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.ColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, IntPtr data) { Core.ColorSubTable(target, start, count, format, type, data); } public static void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, [In][Out] T5[] data) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.ColorSubTable(target, start, count, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, [In][Out] T5[,] data) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.ColorSubTable(target, start, count, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, [In][Out] T5[,,] data) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.ColorSubTable(target, start, count, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorSubTable(ColorTableTarget target, int start, int count, PixelFormat format, PixelType type, [In][Out] ref T5 data) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.ColorSubTable(target, start, count, format, type, gCHandle.AddrOfPinnedObject()); data = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public static void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr table) { Core.ColorTable(target, internalformat, width, format, type, table); } public static void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[] table) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.ColorTable(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[,] table) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.ColorTable(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[,,] table) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.ColorTable(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] ref T5 table) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.ColorTable(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); table = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, float[] @params) { fixed (float* params2 = @params) { Core.ColorTableParameterfv(target, pname, params2); } } public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, ref float @params) { fixed (float* params2 = &@params) { Core.ColorTableParameterfv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, float* @params) { Core.ColorTableParameterfv(target, pname, @params); } public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, int[] @params) { fixed (int* params2 = @params) { Core.ColorTableParameteriv(target, pname, params2); } } public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, ref int @params) { fixed (int* params2 = &@params) { Core.ColorTableParameteriv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void ColorTableParameter(ColorTableTarget target, ColorTableParameterPName pname, int* @params) { Core.ColorTableParameteriv(target, pname, @params); } public static void CompileShader(int shader) { Core.CompileShader((uint)shader); } [CLSCompliant(false)] public static void CompileShader(uint shader) { Core.CompileShader(shader); } public static void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, IntPtr data) { Core.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data); } public static void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, [In][Out] T6[] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, [In][Out] T6[,] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, [In][Out] T6[,,] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, int imageSize, [In][Out] ref T6 data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, gCHandle.AddrOfPinnedObject()); data = (T6)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, IntPtr data) { Core.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); } public static void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, [In][Out] T7[] data) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, [In][Out] T7[,] data) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, [In][Out] T7[,,] data) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, int imageSize, [In][Out] ref T7 data) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, gCHandle.AddrOfPinnedObject()); data = (T7)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, IntPtr data) { Core.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data); } public static void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, [In][Out] T8[] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, [In][Out] T8[,] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, [In][Out] T8[,,] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, int imageSize, [In][Out] ref T8 data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, gCHandle.AddrOfPinnedObject()); data = (T8)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, IntPtr data) { Core.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data); } public static void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, [In][Out] T6[] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, [In][Out] T6[,] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, [In][Out] T6[,,] data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, int imageSize, [In][Out] ref T6 data) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, gCHandle.AddrOfPinnedObject()); data = (T6)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, IntPtr data) { Core.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); } public static void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, [In][Out] T8[] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, [In][Out] T8[,] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, [In][Out] T8[,,] data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, int imageSize, [In][Out] ref T8 data) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, gCHandle.AddrOfPinnedObject()); data = (T8)gCHandle.Target; } finally { gCHandle.Free(); } } public static void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, IntPtr data) { Core.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); } public static void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, [In][Out] T10[] data) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, [In][Out] T10[,] data) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, [In][Out] T10[,,] data) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void CompressedTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, int imageSize, [In][Out] ref T10 data) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, gCHandle.AddrOfPinnedObject()); data = (T10)gCHandle.Target; } finally { gCHandle.Free(); } } public static void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, IntPtr image) { Core.ConvolutionFilter1D(target, internalformat, width, format, type, image); } public static void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[] image) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter1D(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[,] image) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter1D(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] T5[,,] image) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter1D(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, PixelFormat format, PixelType type, [In][Out] ref T5 image) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter1D(target, internalformat, width, format, type, gCHandle.AddrOfPinnedObject()); image = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public static void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr image) { Core.ConvolutionFilter2D(target, internalformat, width, height, format, type, image); } public static void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[] image) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,] image) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,,] image) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] ref T6 image) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.ConvolutionFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject()); image = (T6)gCHandle.Target; } finally { gCHandle.Free(); } } public static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, float @params) { Core.ConvolutionParameterf(target, pname, @params); } public unsafe static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.ConvolutionParameterfv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, float* @params) { Core.ConvolutionParameterfv(target, pname, @params); } public static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, int @params) { Core.ConvolutionParameteri(target, pname, @params); } public unsafe static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.ConvolutionParameteriv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void ConvolutionParameter(ConvolutionTarget target, ConvolutionParameter pname, int* @params) { Core.ConvolutionParameteriv(target, pname, @params); } public static void CopyBufferSubData(BufferTarget readTarget, BufferTarget writeTarget, IntPtr readOffset, IntPtr writeOffset, IntPtr size) { Core.CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); } public static void CopyColorSubTable(ColorTableTarget target, int start, int x, int y, int width) { Core.CopyColorSubTable(target, start, x, y, width); } public static void CopyColorTable(ColorTableTarget target, PixelInternalFormat internalformat, int x, int y, int width) { Core.CopyColorTable(target, internalformat, x, y, width); } public static void CopyConvolutionFilter1D(ConvolutionTarget target, PixelInternalFormat internalformat, int x, int y, int width) { Core.CopyConvolutionFilter1D(target, internalformat, x, y, width); } public static void CopyConvolutionFilter2D(ConvolutionTarget target, PixelInternalFormat internalformat, int x, int y, int width, int height) { Core.CopyConvolutionFilter2D(target, internalformat, x, y, width, height); } public static void CopyPixels(int x, int y, int width, int height, PixelCopyType type) { Core.CopyPixels(x, y, width, height, type); } public static void CopyTexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int border) { Core.CopyTexImage1D(target, level, internalformat, x, y, width, border); } public static void CopyTexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int x, int y, int width, int height, int border) { Core.CopyTexImage2D(target, level, internalformat, x, y, width, height, border); } public static void CopyTexSubImage1D(TextureTarget target, int level, int xoffset, int x, int y, int width) { Core.CopyTexSubImage1D(target, level, xoffset, x, y, width); } public static void CopyTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { Core.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); } public static void CopyTexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { Core.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); } public static int CreateProgram() { return Core.CreateProgram(); } public static int CreateShader(ShaderType type) { return Core.CreateShader(type); } public static void CullFace(CullFaceMode mode) { Core.CullFace(mode); } public unsafe static void DeleteBuffers(int n, int[] buffers) { fixed (int* buffers2 = buffers) { Core.DeleteBuffers(n, (uint*)buffers2); } } public unsafe static void DeleteBuffers(int n, ref int buffers) { fixed (int* buffers2 = &buffers) { Core.DeleteBuffers(n, (uint*)buffers2); } } [CLSCompliant(false)] public unsafe static void DeleteBuffers(int n, int* buffers) { Core.DeleteBuffers(n, (uint*)buffers); } [CLSCompliant(false)] public unsafe static void DeleteBuffers(int n, uint[] buffers) { fixed (uint* buffers2 = buffers) { Core.DeleteBuffers(n, buffers2); } } [CLSCompliant(false)] public unsafe static void DeleteBuffers(int n, ref uint buffers) { fixed (uint* buffers2 = &buffers) { Core.DeleteBuffers(n, buffers2); } } [CLSCompliant(false)] public unsafe static void DeleteBuffers(int n, uint* buffers) { Core.DeleteBuffers(n, buffers); } public static void DeleteLists(int list, int range) { Core.DeleteLists((uint)list, range); } [CLSCompliant(false)] public static void DeleteLists(uint list, int range) { Core.DeleteLists(list, range); } public unsafe static void DeleteQueries(int n, int[] ids) { fixed (int* ids2 = ids) { Core.DeleteQueries(n, (uint*)ids2); } } public unsafe static void DeleteQueries(int n, ref int ids) { fixed (int* ids2 = &ids) { Core.DeleteQueries(n, (uint*)ids2); } } [CLSCompliant(false)] public unsafe static void DeleteQueries(int n, int* ids) { Core.DeleteQueries(n, (uint*)ids); } [CLSCompliant(false)] public unsafe static void DeleteQueries(int n, uint[] ids) { fixed (uint* ids2 = ids) { Core.DeleteQueries(n, ids2); } } [CLSCompliant(false)] public unsafe static void DeleteQueries(int n, ref uint ids) { fixed (uint* ids2 = &ids) { Core.DeleteQueries(n, ids2); } } [CLSCompliant(false)] public unsafe static void DeleteQueries(int n, uint* ids) { Core.DeleteQueries(n, ids); } public static void DeleteShader(int shader) { Core.DeleteShader((uint)shader); } [CLSCompliant(false)] public static void DeleteShader(uint shader) { Core.DeleteShader(shader); } public unsafe static void DeleteTextures(int n, int[] textures) { fixed (int* textures2 = textures) { Core.DeleteTextures(n, (uint*)textures2); } } public unsafe static void DeleteTextures(int n, ref int textures) { fixed (int* textures2 = &textures) { Core.DeleteTextures(n, (uint*)textures2); } } [CLSCompliant(false)] public unsafe static void DeleteTextures(int n, int* textures) { Core.DeleteTextures(n, (uint*)textures); } [CLSCompliant(false)] public unsafe static void DeleteTextures(int n, uint[] textures) { fixed (uint* textures2 = textures) { Core.DeleteTextures(n, textures2); } } [CLSCompliant(false)] public unsafe static void DeleteTextures(int n, ref uint textures) { fixed (uint* textures2 = &textures) { Core.DeleteTextures(n, textures2); } } [CLSCompliant(false)] public unsafe static void DeleteTextures(int n, uint* textures) { Core.DeleteTextures(n, textures); } public static void DepthFunc(DepthFunction func) { Core.DepthFunc(func); } public static void DepthMask(bool flag) { Core.DepthMask(flag); } public static void DepthRange(double near, double far) { Core.DepthRange(near, far); } public static void DetachShader(int program, int shader) { Core.DetachShader((uint)program, (uint)shader); } [CLSCompliant(false)] public static void DetachShader(uint program, uint shader) { Core.DetachShader(program, shader); } public static void Disable(EnableCap cap) { Core.Disable(cap); } public static void DisableClientState(ArrayCap array) { Core.DisableClientState(array); } public static void Disable(IndexedEnableCap target, int index) { Core.Disablei(target, (uint)index); } [CLSCompliant(false)] public static void Disable(IndexedEnableCap target, uint index) { Core.Disablei(target, index); } public static void DisableVertexAttribArray(int index) { Core.DisableVertexAttribArray((uint)index); } [CLSCompliant(false)] public static void DisableVertexAttribArray(uint index) { Core.DisableVertexAttribArray(index); } public static void DrawArrays(BeginMode mode, int first, int count) { Core.DrawArrays(mode, first, count); } public static void DrawBuffer(DrawBufferMode mode) { Core.DrawBuffer(mode); } public unsafe static void DrawBuffers(int n, DrawBuffersEnum[] bufs) { fixed (DrawBuffersEnum* bufs2 = bufs) { Core.DrawBuffers(n, bufs2); } } public unsafe static void DrawBuffers(int n, ref DrawBuffersEnum bufs) { fixed (DrawBuffersEnum* bufs2 = &bufs) { Core.DrawBuffers(n, bufs2); } } [CLSCompliant(false)] public unsafe static void DrawBuffers(int n, DrawBuffersEnum* bufs) { Core.DrawBuffers(n, bufs); } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, IntPtr indices) { Core.DrawElements(mode, count, type, indices); } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, [In][Out] T3[] indices) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawElements(mode, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, [In][Out] T3[,] indices) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawElements(mode, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, [In][Out] T3[,,] indices) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawElements(mode, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, [In][Out] ref T3 indices) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawElements(mode, count, type, gCHandle.AddrOfPinnedObject()); indices = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void DrawPixels(int width, int height, PixelFormat format, PixelType type, IntPtr pixels) { Core.DrawPixels(width, height, format, type, pixels); } public static void DrawPixels(int width, int height, PixelFormat format, PixelType type, [In][Out] T4[] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.DrawPixels(width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawPixels(int width, int height, PixelFormat format, PixelType type, [In][Out] T4[,] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.DrawPixels(width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawPixels(int width, int height, PixelFormat format, PixelType type, [In][Out] T4[,,] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.DrawPixels(width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawPixels(int width, int height, PixelFormat format, PixelType type, [In][Out] ref T4 pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.DrawPixels(width, height, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T4)gCHandle.Target; } finally { gCHandle.Free(); } } public static void DrawRangeElements(BeginMode mode, int start, int end, int count, DrawElementsType type, IntPtr indices) { Core.DrawRangeElements(mode, (uint)start, (uint)end, count, type, indices); } public static void DrawRangeElements(BeginMode mode, int start, int end, int count, DrawElementsType type, [In][Out] T5[] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, (uint)start, (uint)end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawRangeElements(BeginMode mode, int start, int end, int count, DrawElementsType type, [In][Out] T5[,] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, (uint)start, (uint)end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawRangeElements(BeginMode mode, int start, int end, int count, DrawElementsType type, [In][Out] T5[,,] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, (uint)start, (uint)end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void DrawRangeElements(BeginMode mode, int start, int end, int count, DrawElementsType type, [In][Out] ref T5 indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, (uint)start, (uint)end, count, type, gCHandle.AddrOfPinnedObject()); indices = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, IntPtr indices) { Core.DrawRangeElements(mode, start, end, count, type, indices); } [CLSCompliant(false)] public static void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, [In][Out] T5[] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, start, end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, [In][Out] T5[,] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, start, end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, [In][Out] T5[,,] indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, start, end, count, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void DrawRangeElements(BeginMode mode, uint start, uint end, int count, DrawElementsType type, [In][Out] ref T5 indices) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.DrawRangeElements(mode, start, end, count, type, gCHandle.AddrOfPinnedObject()); indices = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public static void EdgeFlag(bool flag) { Core.EdgeFlag(flag); } public static void EdgeFlagPointer(int stride, IntPtr pointer) { Core.EdgeFlagPointer(stride, pointer); } public static void EdgeFlagPointer(int stride, [In][Out] T1[] pointer) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.EdgeFlagPointer(stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void EdgeFlagPointer(int stride, [In][Out] T1[,] pointer) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.EdgeFlagPointer(stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void EdgeFlagPointer(int stride, [In][Out] T1[,,] pointer) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.EdgeFlagPointer(stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void EdgeFlagPointer(int stride, [In][Out] ref T1 pointer) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.EdgeFlagPointer(stride, gCHandle.AddrOfPinnedObject()); pointer = (T1)gCHandle.Target; } finally { gCHandle.Free(); } } [CLSCompliant(false)] public unsafe static void EdgeFlag(bool* flag) { Core.EdgeFlagv(flag); } public static void Enable(EnableCap cap) { Core.Enable(cap); } public static void EnableClientState(ArrayCap array) { Core.EnableClientState(array); } public static void Enable(IndexedEnableCap target, int index) { Core.Enablei(target, (uint)index); } [CLSCompliant(false)] public static void Enable(IndexedEnableCap target, uint index) { Core.Enablei(target, index); } public static void EnableVertexAttribArray(int index) { Core.EnableVertexAttribArray((uint)index); } [CLSCompliant(false)] public static void EnableVertexAttribArray(uint index) { Core.EnableVertexAttribArray(index); } public static void End() { Core.End(); } public static void EndList() { Core.EndList(); } public static void EndQuery(QueryTarget target) { Core.EndQuery(target); } public static void EvalCoord1(double u) { Core.EvalCoord1d(u); } [CLSCompliant(false)] public unsafe static void EvalCoord1(double* u) { Core.EvalCoord1dv(u); } public static void EvalCoord1(float u) { Core.EvalCoord1f(u); } [CLSCompliant(false)] public unsafe static void EvalCoord1(float* u) { Core.EvalCoord1fv(u); } public static void EvalCoord2(double u, double v) { Core.EvalCoord2d(u, v); } public unsafe static void EvalCoord2(double[] u) { fixed (double* u2 = u) { Core.EvalCoord2dv(u2); } } public unsafe static void EvalCoord2(ref double u) { fixed (double* u2 = &u) { Core.EvalCoord2dv(u2); } } [CLSCompliant(false)] public unsafe static void EvalCoord2(double* u) { Core.EvalCoord2dv(u); } public static void EvalCoord2(float u, float v) { Core.EvalCoord2f(u, v); } public unsafe static void EvalCoord2(float[] u) { fixed (float* u2 = u) { Core.EvalCoord2fv(u2); } } public unsafe static void EvalCoord2(ref float u) { fixed (float* u2 = &u) { Core.EvalCoord2fv(u2); } } [CLSCompliant(false)] public unsafe static void EvalCoord2(float* u) { Core.EvalCoord2fv(u); } public static void EvalMesh1(MeshMode1 mode, int i1, int i2) { Core.EvalMesh1(mode, i1, i2); } public static void EvalMesh2(MeshMode2 mode, int i1, int i2, int j1, int j2) { Core.EvalMesh2(mode, i1, i2, j1, j2); } public static void EvalPoint1(int i) { Core.EvalPoint1(i); } public static void EvalPoint2(int i, int j) { Core.EvalPoint2(i, j); } public unsafe static void FeedbackBuffer(int size, FeedbackType type, [Out] float[] buffer) { fixed (float* buffer2 = buffer) { Core.FeedbackBuffer(size, type, buffer2); } } public unsafe static void FeedbackBuffer(int size, FeedbackType type, out float buffer) { fixed (float* ptr = &buffer) { Core.FeedbackBuffer(size, type, ptr); buffer = *ptr; } } [CLSCompliant(false)] public unsafe static void FeedbackBuffer(int size, FeedbackType type, [Out] float* buffer) { Core.FeedbackBuffer(size, type, buffer); } public static void Finish() { Core.Finish(); } public static void Flush() { Core.Flush(); } public static void FogCoord(double coord) { Core.FogCoordd(coord); } [CLSCompliant(false)] public unsafe static void FogCoord(double* coord) { Core.FogCoorddv(coord); } public static void FogCoord(float coord) { Core.FogCoordf(coord); } [CLSCompliant(false)] public unsafe static void FogCoord(float* coord) { Core.FogCoordfv(coord); } public static void FogCoordPointer(FogPointerType type, int stride, IntPtr pointer) { Core.FogCoordPointer(type, stride, pointer); } public static void FogCoordPointer(FogPointerType type, int stride, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.FogCoordPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void FogCoordPointer(FogPointerType type, int stride, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.FogCoordPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void FogCoordPointer(FogPointerType type, int stride, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.FogCoordPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void FogCoordPointer(FogPointerType type, int stride, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.FogCoordPointer(type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Fog(FogParameter pname, float param) { Core.Fogf(pname, param); } public unsafe static void Fog(FogParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.Fogfv(pname, params2); } } [CLSCompliant(false)] public unsafe static void Fog(FogParameter pname, float* @params) { Core.Fogfv(pname, @params); } public static void Fog(FogParameter pname, int param) { Core.Fogi(pname, param); } public unsafe static void Fog(FogParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.Fogiv(pname, params2); } } [CLSCompliant(false)] public unsafe static void Fog(FogParameter pname, int* @params) { Core.Fogiv(pname, @params); } public static void FrontFace(FrontFaceDirection mode) { Core.FrontFace(mode); } public static void Frustum(double left, double right, double bottom, double top, double zNear, double zFar) { Core.Frustum(left, right, bottom, top, zNear, zFar); } public unsafe static void GenBuffers(int n, [Out] int[] buffers) { fixed (int* buffers2 = buffers) { Core.GenBuffers(n, (uint*)buffers2); } } public unsafe static void GenBuffers(int n, out int buffers) { fixed (int* ptr = &buffers) { Core.GenBuffers(n, (uint*)ptr); buffers = *ptr; } } [CLSCompliant(false)] public unsafe static void GenBuffers(int n, [Out] int* buffers) { Core.GenBuffers(n, (uint*)buffers); } [CLSCompliant(false)] public unsafe static void GenBuffers(int n, [Out] uint[] buffers) { fixed (uint* buffers2 = buffers) { Core.GenBuffers(n, buffers2); } } [CLSCompliant(false)] public unsafe static void GenBuffers(int n, out uint buffers) { fixed (uint* ptr = &buffers) { Core.GenBuffers(n, ptr); buffers = *ptr; } } [CLSCompliant(false)] public unsafe static void GenBuffers(int n, [Out] uint* buffers) { Core.GenBuffers(n, buffers); } public static int GenLists(int range) { return Core.GenLists(range); } public unsafe static void GenQueries(int n, [Out] int[] ids) { fixed (int* ids2 = ids) { Core.GenQueries(n, (uint*)ids2); } } public unsafe static void GenQueries(int n, out int ids) { fixed (int* ptr = &ids) { Core.GenQueries(n, (uint*)ptr); ids = *ptr; } } [CLSCompliant(false)] public unsafe static void GenQueries(int n, [Out] int* ids) { Core.GenQueries(n, (uint*)ids); } [CLSCompliant(false)] public unsafe static void GenQueries(int n, [Out] uint[] ids) { fixed (uint* ids2 = ids) { Core.GenQueries(n, ids2); } } [CLSCompliant(false)] public unsafe static void GenQueries(int n, out uint ids) { fixed (uint* ptr = &ids) { Core.GenQueries(n, ptr); ids = *ptr; } } [CLSCompliant(false)] public unsafe static void GenQueries(int n, [Out] uint* ids) { Core.GenQueries(n, ids); } public unsafe static void GenTextures(int n, [Out] int[] textures) { fixed (int* textures2 = textures) { Core.GenTextures(n, (uint*)textures2); } } public unsafe static void GenTextures(int n, out int textures) { fixed (int* ptr = &textures) { Core.GenTextures(n, (uint*)ptr); textures = *ptr; } } [CLSCompliant(false)] public unsafe static void GenTextures(int n, [Out] int* textures) { Core.GenTextures(n, (uint*)textures); } [CLSCompliant(false)] public unsafe static void GenTextures(int n, [Out] uint[] textures) { fixed (uint* textures2 = textures) { Core.GenTextures(n, textures2); } } [CLSCompliant(false)] public unsafe static void GenTextures(int n, out uint textures) { fixed (uint* ptr = &textures) { Core.GenTextures(n, ptr); textures = *ptr; } } [CLSCompliant(false)] public unsafe static void GenTextures(int n, [Out] uint* textures) { Core.GenTextures(n, textures); } public unsafe static void GetActiveAttrib(int program, int index, int bufSize, out int length, out int size, out ActiveAttribType type, [Out] StringBuilder name) { fixed (int* ptr = &length) { fixed (int* ptr2 = &size) { fixed (ActiveAttribType* ptr3 = &type) { Core.GetActiveAttrib((uint)program, (uint)index, bufSize, ptr, ptr2, ptr3, name); length = *ptr; size = *ptr2; type = *ptr3; } } } } [CLSCompliant(false)] public unsafe static void GetActiveAttrib(int program, int index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveAttribType* type, [Out] StringBuilder name) { Core.GetActiveAttrib((uint)program, (uint)index, bufSize, length, size, type, name); } [CLSCompliant(false)] public unsafe static void GetActiveAttrib(uint program, uint index, int bufSize, out int length, out int size, out ActiveAttribType type, [Out] StringBuilder name) { fixed (int* ptr = &length) { fixed (int* ptr2 = &size) { fixed (ActiveAttribType* ptr3 = &type) { Core.GetActiveAttrib(program, index, bufSize, ptr, ptr2, ptr3, name); length = *ptr; size = *ptr2; type = *ptr3; } } } } [CLSCompliant(false)] public unsafe static void GetActiveAttrib(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveAttribType* type, [Out] StringBuilder name) { Core.GetActiveAttrib(program, index, bufSize, length, size, type, name); } public unsafe static void GetActiveUniform(int program, int index, int bufSize, out int length, out int size, out ActiveUniformType type, [Out] StringBuilder name) { fixed (int* ptr = &length) { fixed (int* ptr2 = &size) { fixed (ActiveUniformType* ptr3 = &type) { Core.GetActiveUniform((uint)program, (uint)index, bufSize, ptr, ptr2, ptr3, name); length = *ptr; size = *ptr2; type = *ptr3; } } } } [CLSCompliant(false)] public unsafe static void GetActiveUniform(int program, int index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveUniformType* type, [Out] StringBuilder name) { Core.GetActiveUniform((uint)program, (uint)index, bufSize, length, size, type, name); } [CLSCompliant(false)] public unsafe static void GetActiveUniform(uint program, uint index, int bufSize, out int length, out int size, out ActiveUniformType type, [Out] StringBuilder name) { fixed (int* ptr = &length) { fixed (int* ptr2 = &size) { fixed (ActiveUniformType* ptr3 = &type) { Core.GetActiveUniform(program, index, bufSize, ptr, ptr2, ptr3, name); length = *ptr; size = *ptr2; type = *ptr3; } } } } [CLSCompliant(false)] public unsafe static void GetActiveUniform(uint program, uint index, int bufSize, [Out] int* length, [Out] int* size, [Out] ActiveUniformType* type, [Out] StringBuilder name) { Core.GetActiveUniform(program, index, bufSize, length, size, type, name); } public unsafe static void GetAttachedShaders(int program, int maxCount, out int count, out int obj) { fixed (int* ptr = &count) { fixed (int* ptr2 = &obj) { Core.GetAttachedShaders((uint)program, maxCount, ptr, (uint*)ptr2); count = *ptr; obj = *ptr2; } } } [CLSCompliant(false)] public unsafe static void GetAttachedShaders(int program, int maxCount, [Out] int* count, [Out] int[] obj) { fixed (int* obj2 = obj) { Core.GetAttachedShaders((uint)program, maxCount, count, (uint*)obj2); } } [CLSCompliant(false)] public unsafe static void GetAttachedShaders(int program, int maxCount, [Out] int* count, [Out] int* obj) { Core.GetAttachedShaders((uint)program, maxCount, count, (uint*)obj); } [CLSCompliant(false)] public unsafe static void GetAttachedShaders(uint program, int maxCount, out int count, out uint obj) { fixed (int* ptr = &count) { fixed (uint* ptr2 = &obj) { Core.GetAttachedShaders(program, maxCount, ptr, ptr2); count = *ptr; obj = *ptr2; } } } [CLSCompliant(false)] public unsafe static void GetAttachedShaders(uint program, int maxCount, [Out] int* count, [Out] uint[] obj) { fixed (uint* obj2 = obj) { Core.GetAttachedShaders(program, maxCount, count, obj2); } } [CLSCompliant(false)] public unsafe static void GetAttachedShaders(uint program, int maxCount, [Out] int* count, [Out] uint* obj) { Core.GetAttachedShaders(program, maxCount, count, obj); } public static int GetAttribLocation(int program, string name) { return Core.GetAttribLocation((uint)program, name); } [CLSCompliant(false)] public static int GetAttribLocation(uint program, string name) { return Core.GetAttribLocation(program, name); } public unsafe static void GetBoolean(GetIndexedPName target, int index, [Out] bool[] data) { fixed (bool* data2 = data) { Core.GetBooleani_v(target, (uint)index, data2); } } public unsafe static void GetBoolean(GetIndexedPName target, int index, out bool data) { fixed (bool* ptr = &data) { Core.GetBooleani_v(target, (uint)index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetBoolean(GetIndexedPName target, int index, [Out] bool* data) { Core.GetBooleani_v(target, (uint)index, data); } [CLSCompliant(false)] public unsafe static void GetBoolean(GetIndexedPName target, uint index, [Out] bool[] data) { fixed (bool* data2 = data) { Core.GetBooleani_v(target, index, data2); } } [CLSCompliant(false)] public unsafe static void GetBoolean(GetIndexedPName target, uint index, out bool data) { fixed (bool* ptr = &data) { Core.GetBooleani_v(target, index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetBoolean(GetIndexedPName target, uint index, [Out] bool* data) { Core.GetBooleani_v(target, index, data); } public unsafe static void GetBoolean(GetPName pname, [Out] bool[] @params) { fixed (bool* params2 = @params) { Core.GetBooleanv(pname, params2); } } public unsafe static void GetBoolean(GetPName pname, out bool @params) { fixed (bool* ptr = &@params) { Core.GetBooleanv(pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetBoolean(GetPName pname, [Out] bool* @params) { Core.GetBooleanv(pname, @params); } public unsafe static void GetBufferParameter(BufferTarget target, BufferParameterName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetBufferParameteriv(target, pname, params2); } } public unsafe static void GetBufferParameter(BufferTarget target, BufferParameterName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetBufferParameteriv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetBufferParameter(BufferTarget target, BufferParameterName pname, [Out] int* @params) { Core.GetBufferParameteriv(target, pname, @params); } public static void GetBufferPointer(BufferTarget target, BufferPointer pname, [Out] IntPtr @params) { Core.GetBufferPointerv(target, pname, @params); } public static void GetBufferPointer(BufferTarget target, BufferPointer pname, [In][Out] T2[] @params) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetBufferPointerv(target, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferPointer(BufferTarget target, BufferPointer pname, [In][Out] T2[,] @params) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetBufferPointerv(target, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferPointer(BufferTarget target, BufferPointer pname, [In][Out] T2[,,] @params) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetBufferPointerv(target, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferPointer(BufferTarget target, BufferPointer pname, [In][Out] ref T2 @params) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetBufferPointerv(target, pname, gCHandle.AddrOfPinnedObject()); @params = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [Out] IntPtr data) { Core.GetBufferSubData(target, offset, size, data); } public static void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.GetBufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[,] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.GetBufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] T3[,,] data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.GetBufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetBufferSubData(BufferTarget target, IntPtr offset, IntPtr size, [In][Out] ref T3 data) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(data, GCHandleType.Pinned); try { Core.GetBufferSubData(target, offset, size, gCHandle.AddrOfPinnedObject()); data = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetClipPlane(ClipPlaneName plane, [Out] double[] equation) { fixed (double* equation2 = equation) { Core.GetClipPlane(plane, equation2); } } public unsafe static void GetClipPlane(ClipPlaneName plane, out double equation) { fixed (double* ptr = &equation) { Core.GetClipPlane(plane, ptr); equation = *ptr; } } [CLSCompliant(false)] public unsafe static void GetClipPlane(ClipPlaneName plane, [Out] double* equation) { Core.GetClipPlane(plane, equation); } public static void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [Out] IntPtr table) { Core.GetColorTable(target, format, type, table); } public static void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [In][Out] T3[] table) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.GetColorTable(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [In][Out] T3[,] table) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.GetColorTable(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [In][Out] T3[,,] table) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.GetColorTable(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetColorTable(ColorTableTarget target, PixelFormat format, PixelType type, [In][Out] ref T3 table) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(table, GCHandleType.Pinned); try { Core.GetColorTable(target, format, type, gCHandle.AddrOfPinnedObject()); table = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetColorTableParameterfv(target, pname, params2); } } public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, out float @params) { fixed (float* ptr = &@params) { Core.GetColorTableParameterfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, [Out] float* @params) { Core.GetColorTableParameterfv(target, pname, @params); } public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetColorTableParameteriv(target, pname, params2); } } public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetColorTableParameteriv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetColorTableParameter(ColorTableTarget target, GetColorTableParameterPName pname, [Out] int* @params) { Core.GetColorTableParameteriv(target, pname, @params); } public static void GetCompressedTexImage(TextureTarget target, int level, [Out] IntPtr img) { Core.GetCompressedTexImage(target, level, img); } public static void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [Out] IntPtr image) { Core.GetConvolutionFilter(target, format, type, image); } public static void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [In][Out] T3[] image) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.GetConvolutionFilter(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [In][Out] T3[,] image) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.GetConvolutionFilter(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [In][Out] T3[,,] image) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.GetConvolutionFilter(target, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetConvolutionFilter(ConvolutionTarget target, PixelFormat format, PixelType type, [In][Out] ref T3 image) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(image, GCHandleType.Pinned); try { Core.GetConvolutionFilter(target, format, type, gCHandle.AddrOfPinnedObject()); image = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetConvolutionParameterfv(target, pname, params2); } } public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, out float @params) { fixed (float* ptr = &@params) { Core.GetConvolutionParameterfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] float* @params) { Core.GetConvolutionParameterfv(target, pname, @params); } public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetConvolutionParameteriv(target, pname, params2); } } public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetConvolutionParameteriv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetConvolutionParameter(ConvolutionTarget target, GetConvolutionParameterPName pname, [Out] int* @params) { Core.GetConvolutionParameteriv(target, pname, @params); } public unsafe static void GetDouble(GetIndexedPName target, int index, [Out] double[] data) { fixed (double* data2 = data) { Core.GetDoublei_v(target, (uint)index, data2); } } public unsafe static void GetDouble(GetIndexedPName target, int index, out double data) { fixed (double* ptr = &data) { Core.GetDoublei_v(target, (uint)index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetDouble(GetIndexedPName target, int index, [Out] double* data) { Core.GetDoublei_v(target, (uint)index, data); } [CLSCompliant(false)] public unsafe static void GetDouble(GetIndexedPName target, uint index, [Out] double[] data) { fixed (double* data2 = data) { Core.GetDoublei_v(target, index, data2); } } [CLSCompliant(false)] public unsafe static void GetDouble(GetIndexedPName target, uint index, out double data) { fixed (double* ptr = &data) { Core.GetDoublei_v(target, index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetDouble(GetIndexedPName target, uint index, [Out] double* data) { Core.GetDoublei_v(target, index, data); } public unsafe static void GetDouble(GetPName pname, [Out] double[] @params) { fixed (double* params2 = @params) { Core.GetDoublev(pname, params2); } } public unsafe static void GetDouble(GetPName pname, out double @params) { fixed (double* ptr = &@params) { Core.GetDoublev(pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetDouble(GetPName pname, [Out] double* @params) { Core.GetDoublev(pname, @params); } public static ErrorCode GetError() { return Core.GetError(); } public unsafe static void GetFloat(GetIndexedPName target, int index, [Out] float[] data) { fixed (float* data2 = data) { Core.GetFloati_v(target, (uint)index, data2); } } public unsafe static void GetFloat(GetIndexedPName target, int index, out float data) { fixed (float* ptr = &data) { Core.GetFloati_v(target, (uint)index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetFloat(GetIndexedPName target, int index, [Out] float* data) { Core.GetFloati_v(target, (uint)index, data); } [CLSCompliant(false)] public unsafe static void GetFloat(GetIndexedPName target, uint index, [Out] float[] data) { fixed (float* data2 = data) { Core.GetFloati_v(target, index, data2); } } [CLSCompliant(false)] public unsafe static void GetFloat(GetIndexedPName target, uint index, out float data) { fixed (float* ptr = &data) { Core.GetFloati_v(target, index, ptr); data = *ptr; } } [CLSCompliant(false)] public unsafe static void GetFloat(GetIndexedPName target, uint index, [Out] float* data) { Core.GetFloati_v(target, index, data); } public unsafe static void GetFloat(GetPName pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetFloatv(pname, params2); } } public unsafe static void GetFloat(GetPName pname, out float @params) { fixed (float* ptr = &@params) { Core.GetFloatv(pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetFloat(GetPName pname, [Out] float* @params) { Core.GetFloatv(pname, @params); } public static void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values) { Core.GetHistogram(target, reset, format, type, values); } public static void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetHistogram(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[,] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetHistogram(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[,,] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetHistogram(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetHistogram(HistogramTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] ref T4 values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetHistogram(target, reset, format, type, gCHandle.AddrOfPinnedObject()); values = (T4)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetHistogramParameterfv(target, pname, params2); } } public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, out float @params) { fixed (float* ptr = &@params) { Core.GetHistogramParameterfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, [Out] float* @params) { Core.GetHistogramParameterfv(target, pname, @params); } public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetHistogramParameteriv(target, pname, params2); } } public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetHistogramParameteriv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetHistogramParameter(HistogramTarget target, GetHistogramParameterPName pname, [Out] int* @params) { Core.GetHistogramParameteriv(target, pname, @params); } public unsafe static void GetInteger(GetPName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetIntegerv(pname, params2); } } public unsafe static void GetInteger(GetPName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetIntegerv(pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetInteger(GetPName pname, [Out] int* @params) { Core.GetIntegerv(pname, @params); } public unsafe static void GetLight(LightName light, LightParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetLightfv(light, pname, params2); } } public unsafe static void GetLight(LightName light, LightParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetLightfv(light, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetLight(LightName light, LightParameter pname, [Out] float* @params) { Core.GetLightfv(light, pname, @params); } public unsafe static void GetLight(LightName light, LightParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetLightiv(light, pname, params2); } } public unsafe static void GetLight(LightName light, LightParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetLightiv(light, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetLight(LightName light, LightParameter pname, [Out] int* @params) { Core.GetLightiv(light, pname, @params); } public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] double[] v) { fixed (double* v2 = v) { Core.GetMapdv(target, query, v2); } } public unsafe static void GetMap(MapTarget target, GetMapQuery query, out double v) { fixed (double* ptr = &v) { Core.GetMapdv(target, query, ptr); v = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] double* v) { Core.GetMapdv(target, query, v); } public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] float[] v) { fixed (float* v2 = v) { Core.GetMapfv(target, query, v2); } } public unsafe static void GetMap(MapTarget target, GetMapQuery query, out float v) { fixed (float* ptr = &v) { Core.GetMapfv(target, query, ptr); v = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] float* v) { Core.GetMapfv(target, query, v); } public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] int[] v) { fixed (int* v2 = v) { Core.GetMapiv(target, query, v2); } } public unsafe static void GetMap(MapTarget target, GetMapQuery query, out int v) { fixed (int* ptr = &v) { Core.GetMapiv(target, query, ptr); v = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMap(MapTarget target, GetMapQuery query, [Out] int* v) { Core.GetMapiv(target, query, v); } public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetMaterialfv(face, pname, params2); } } public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetMaterialfv(face, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, [Out] float* @params) { Core.GetMaterialfv(face, pname, @params); } public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetMaterialiv(face, pname, params2); } } public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetMaterialiv(face, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMaterial(MaterialFace face, MaterialParameter pname, [Out] int* @params) { Core.GetMaterialiv(face, pname, @params); } public static void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [Out] IntPtr values) { Core.GetMinmax(target, reset, format, type, values); } public static void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetMinmax(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[,] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetMinmax(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] T4[,,] values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetMinmax(target, reset, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetMinmax(MinmaxTarget target, bool reset, PixelFormat format, PixelType type, [In][Out] ref T4 values) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(values, GCHandleType.Pinned); try { Core.GetMinmax(target, reset, format, type, gCHandle.AddrOfPinnedObject()); values = (T4)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetMinmaxParameterfv(target, pname, params2); } } public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, out float @params) { fixed (float* ptr = &@params) { Core.GetMinmaxParameterfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] float* @params) { Core.GetMinmaxParameterfv(target, pname, @params); } public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetMinmaxParameteriv(target, pname, params2); } } public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, out int @params) { fixed (int* ptr = &@params) { Core.GetMinmaxParameteriv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetMinmaxParameter(MinmaxTarget target, GetMinmaxParameterPName pname, [Out] int* @params) { Core.GetMinmaxParameteriv(target, pname, @params); } public unsafe static void GetPixelMap(PixelMap map, [Out] float[] values) { fixed (float* values2 = values) { Core.GetPixelMapfv(map, values2); } } public unsafe static void GetPixelMap(PixelMap map, out float values) { fixed (float* ptr = &values) { Core.GetPixelMapfv(map, ptr); values = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] float* values) { Core.GetPixelMapfv(map, values); } public unsafe static void GetPixelMap(PixelMap map, [Out] int[] values) { fixed (int* values2 = values) { Core.GetPixelMapuiv(map, (uint*)values2); } } public unsafe static void GetPixelMap(PixelMap map, out int values) { fixed (int* ptr = &values) { Core.GetPixelMapuiv(map, (uint*)ptr); values = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] int* values) { Core.GetPixelMapuiv(map, (uint*)values); } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] uint[] values) { fixed (uint* values2 = values) { Core.GetPixelMapuiv(map, values2); } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, out uint values) { fixed (uint* ptr = &values) { Core.GetPixelMapuiv(map, ptr); values = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] uint* values) { Core.GetPixelMapuiv(map, values); } public unsafe static void GetPixelMap(PixelMap map, [Out] short[] values) { fixed (short* values2 = values) { Core.GetPixelMapusv(map, (ushort*)values2); } } public unsafe static void GetPixelMap(PixelMap map, out short values) { fixed (short* ptr = &values) { Core.GetPixelMapusv(map, (ushort*)ptr); values = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] short* values) { Core.GetPixelMapusv(map, (ushort*)values); } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] ushort[] values) { fixed (ushort* values2 = values) { Core.GetPixelMapusv(map, values2); } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, out ushort values) { fixed (ushort* ptr = &values) { Core.GetPixelMapusv(map, ptr); values = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPixelMap(PixelMap map, [Out] ushort* values) { Core.GetPixelMapusv(map, values); } public static void GetPointer(GetPointervPName pname, [Out] IntPtr @params) { Core.GetPointerv(pname, @params); } public static void GetPointer(GetPointervPName pname, [In][Out] T1[] @params) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetPointerv(pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetPointer(GetPointervPName pname, [In][Out] T1[,] @params) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetPointerv(pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetPointer(GetPointervPName pname, [In][Out] T1[,,] @params) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetPointerv(pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetPointer(GetPointervPName pname, [In][Out] ref T1 @params) where T1 : struct { GCHandle gCHandle = GCHandle.Alloc(@params, GCHandleType.Pinned); try { Core.GetPointerv(pname, gCHandle.AddrOfPinnedObject()); @params = (T1)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetPolygonStipple([Out] byte[] mask) { fixed (byte* mask2 = mask) { Core.GetPolygonStipple(mask2); } } public unsafe static void GetPolygonStipple(out byte mask) { fixed (byte* ptr = &mask) { Core.GetPolygonStipple(ptr); mask = *ptr; } } [CLSCompliant(false)] public unsafe static void GetPolygonStipple([Out] byte* mask) { Core.GetPolygonStipple(mask); } public unsafe static void GetProgramInfoLog(int program, int bufSize, out int length, [Out] StringBuilder infoLog) { fixed (int* ptr = &length) { Core.GetProgramInfoLog((uint)program, bufSize, ptr, infoLog); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetProgramInfoLog(int program, int bufSize, [Out] int* length, [Out] StringBuilder infoLog) { Core.GetProgramInfoLog((uint)program, bufSize, length, infoLog); } [CLSCompliant(false)] public unsafe static void GetProgramInfoLog(uint program, int bufSize, out int length, [Out] StringBuilder infoLog) { fixed (int* ptr = &length) { Core.GetProgramInfoLog(program, bufSize, ptr, infoLog); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetProgramInfoLog(uint program, int bufSize, [Out] int* length, [Out] StringBuilder infoLog) { Core.GetProgramInfoLog(program, bufSize, length, infoLog); } public unsafe static void GetProgram(int program, ProgramParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetProgramiv((uint)program, pname, params2); } } public unsafe static void GetProgram(int program, ProgramParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetProgramiv((uint)program, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetProgram(int program, ProgramParameter pname, [Out] int* @params) { Core.GetProgramiv((uint)program, pname, @params); } [CLSCompliant(false)] public unsafe static void GetProgram(uint program, ProgramParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetProgramiv(program, pname, params2); } } [CLSCompliant(false)] public unsafe static void GetProgram(uint program, ProgramParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetProgramiv(program, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetProgram(uint program, ProgramParameter pname, [Out] int* @params) { Core.GetProgramiv(program, pname, @params); } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [Out] IntPtr span) { Core.GetSeparableFilter(target, format, type, row, column, span); } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In][Out] T5[] span) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, column, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In][Out] T5[,] span) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, column, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In][Out] T5[,,] span) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, column, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In][Out] ref T5 span) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, column, gCHandle.AddrOfPinnedObject()); span = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [In][Out] T4[] column, [In][Out] T5[,,] span) where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [In][Out] T4[,] column, [In][Out] T5[,,] span) where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [In][Out] T4[,,] column, [In][Out] T5[,,] span) where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [Out] IntPtr row, [In][Out] ref T4 column, [In][Out] T5[,,] span) where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, row, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); column = (T4)gCHandle.Target; } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [In][Out] T3[] row, [In][Out] T4[,,] column, [In][Out] T5[,,] span) where T3 : struct where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle3 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject(), gCHandle3.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); gCHandle3.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [In][Out] T3[,] row, [In][Out] T4[,,] column, [In][Out] T5[,,] span) where T3 : struct where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle3 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject(), gCHandle3.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); gCHandle3.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [In][Out] T3[,,] row, [In][Out] T4[,,] column, [In][Out] T5[,,] span) where T3 : struct where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle3 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject(), gCHandle3.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); gCHandle3.Free(); } } public static void GetSeparableFilter(SeparableTarget target, PixelFormat format, PixelType type, [In][Out] ref T3 row, [In][Out] T4[,,] column, [In][Out] T5[,,] span) where T3 : struct where T4 : struct where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); GCHandle gCHandle3 = GCHandle.Alloc(span, GCHandleType.Pinned); try { Core.GetSeparableFilter(target, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject(), gCHandle3.AddrOfPinnedObject()); row = (T3)gCHandle.Target; } finally { gCHandle.Free(); gCHandle2.Free(); gCHandle3.Free(); } } public unsafe static void GetShaderInfoLog(int shader, int bufSize, out int length, [Out] StringBuilder infoLog) { fixed (int* ptr = &length) { Core.GetShaderInfoLog((uint)shader, bufSize, ptr, infoLog); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShaderInfoLog(int shader, int bufSize, [Out] int* length, [Out] StringBuilder infoLog) { Core.GetShaderInfoLog((uint)shader, bufSize, length, infoLog); } [CLSCompliant(false)] public unsafe static void GetShaderInfoLog(uint shader, int bufSize, out int length, [Out] StringBuilder infoLog) { fixed (int* ptr = &length) { Core.GetShaderInfoLog(shader, bufSize, ptr, infoLog); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShaderInfoLog(uint shader, int bufSize, [Out] int* length, [Out] StringBuilder infoLog) { Core.GetShaderInfoLog(shader, bufSize, length, infoLog); } public unsafe static void GetShader(int shader, ShaderParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetShaderiv((uint)shader, pname, params2); } } public unsafe static void GetShader(int shader, ShaderParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetShaderiv((uint)shader, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShader(int shader, ShaderParameter pname, [Out] int* @params) { Core.GetShaderiv((uint)shader, pname, @params); } [CLSCompliant(false)] public unsafe static void GetShader(uint shader, ShaderParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetShaderiv(shader, pname, params2); } } [CLSCompliant(false)] public unsafe static void GetShader(uint shader, ShaderParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetShaderiv(shader, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShader(uint shader, ShaderParameter pname, [Out] int* @params) { Core.GetShaderiv(shader, pname, @params); } public unsafe static void GetShaderSource(int shader, int bufSize, out int length, [Out] StringBuilder source) { fixed (int* ptr = &length) { Core.GetShaderSource((uint)shader, bufSize, ptr, source); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShaderSource(int shader, int bufSize, [Out] int* length, [Out] StringBuilder source) { Core.GetShaderSource((uint)shader, bufSize, length, source); } [CLSCompliant(false)] public unsafe static void GetShaderSource(uint shader, int bufSize, out int length, [Out] StringBuilder source) { fixed (int* ptr = &length) { Core.GetShaderSource(shader, bufSize, ptr, source); length = *ptr; } } [CLSCompliant(false)] public unsafe static void GetShaderSource(uint shader, int bufSize, [Out] int* length, [Out] StringBuilder source) { Core.GetShaderSource(shader, bufSize, length, source); } public unsafe static string GetString(StringName name) { return new string((sbyte*)(void*)Core.GetString(name)); } public unsafe static string GetString(StringName name, int index) { return new string((sbyte*)(void*)Core.GetStringi(name, (uint)index)); } [CLSCompliant(false)] public unsafe static string GetString(StringName name, uint index) { return new string((sbyte*)(void*)Core.GetStringi(name, index)); } public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetTexEnvfv(target, pname, params2); } } public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetTexEnvfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, [Out] float* @params) { Core.GetTexEnvfv(target, pname, @params); } public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetTexEnviv(target, pname, params2); } } public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetTexEnviv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexEnv(TextureEnvTarget target, TextureEnvParameter pname, [Out] int* @params) { Core.GetTexEnviv(target, pname, @params); } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] double[] @params) { fixed (double* params2 = @params) { Core.GetTexGendv(coord, pname, params2); } } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, out double @params) { fixed (double* ptr = &@params) { Core.GetTexGendv(coord, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] double* @params) { Core.GetTexGendv(coord, pname, @params); } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetTexGenfv(coord, pname, params2); } } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetTexGenfv(coord, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] float* @params) { Core.GetTexGenfv(coord, pname, @params); } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetTexGeniv(coord, pname, params2); } } public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetTexGeniv(coord, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexGen(TextureCoordName coord, TextureGenParameter pname, [Out] int* @params) { Core.GetTexGeniv(coord, pname, @params); } public static void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [Out] IntPtr pixels) { Core.GetTexImage(target, level, format, type, pixels); } public static void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [In][Out] T4[] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.GetTexImage(target, level, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [In][Out] T4[,] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.GetTexImage(target, level, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [In][Out] T4[,,] pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.GetTexImage(target, level, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetTexImage(TextureTarget target, int level, PixelFormat format, PixelType type, [In][Out] ref T4 pixels) where T4 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.GetTexImage(target, level, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T4)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetTexLevelParameterfv(target, level, pname, params2); } } public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetTexLevelParameterfv(target, level, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, [Out] float* @params) { Core.GetTexLevelParameterfv(target, level, pname, @params); } public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetTexLevelParameteriv(target, level, pname, params2); } } public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetTexLevelParameteriv(target, level, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexLevelParameter(TextureTarget target, int level, GetTextureParameter pname, [Out] int* @params) { Core.GetTexLevelParameteriv(target, level, pname, @params); } public unsafe static void GetTexParameter(TextureTarget target, GetTextureParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetTexParameterfv(target, pname, params2); } } public unsafe static void GetTexParameter(TextureTarget target, GetTextureParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetTexParameterfv(target, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetTexParameter(TextureTarget target, GetTextureParameter pname, [Out] float* @params) { Core.GetTexParameterfv(target, pname, @params); } public unsafe static void GetUniform(int program, int location, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetUniformfv((uint)program, location, params2); } } public unsafe static void GetUniform(int program, int location, out float @params) { fixed (float* ptr = &@params) { Core.GetUniformfv((uint)program, location, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetUniform(int program, int location, [Out] float* @params) { Core.GetUniformfv((uint)program, location, @params); } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetUniformfv(program, location, params2); } } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, out float @params) { fixed (float* ptr = &@params) { Core.GetUniformfv(program, location, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, [Out] float* @params) { Core.GetUniformfv(program, location, @params); } public unsafe static void GetUniform(int program, int location, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetUniformiv((uint)program, location, params2); } } public unsafe static void GetUniform(int program, int location, out int @params) { fixed (int* ptr = &@params) { Core.GetUniformiv((uint)program, location, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetUniform(int program, int location, [Out] int* @params) { Core.GetUniformiv((uint)program, location, @params); } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetUniformiv(program, location, params2); } } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, out int @params) { fixed (int* ptr = &@params) { Core.GetUniformiv(program, location, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetUniform(uint program, int location, [Out] int* @params) { Core.GetUniformiv(program, location, @params); } public static int GetUniformLocation(int program, string name) { return Core.GetUniformLocation((uint)program, name); } [CLSCompliant(false)] public static int GetUniformLocation(uint program, string name) { return Core.GetUniformLocation(program, name); } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] double[] @params) { fixed (double* params2 = @params) { Core.GetVertexAttribdv((uint)index, pname, params2); } } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, out double @params) { fixed (double* ptr = &@params) { Core.GetVertexAttribdv((uint)index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] double* @params) { Core.GetVertexAttribdv((uint)index, pname, @params); } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] double[] @params) { fixed (double* params2 = @params) { Core.GetVertexAttribdv(index, pname, params2); } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, out double @params) { fixed (double* ptr = &@params) { Core.GetVertexAttribdv(index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] double* @params) { Core.GetVertexAttribdv(index, pname, @params); } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetVertexAttribfv((uint)index, pname, params2); } } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetVertexAttribfv((uint)index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] float* @params) { Core.GetVertexAttribfv((uint)index, pname, @params); } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] float[] @params) { fixed (float* params2 = @params) { Core.GetVertexAttribfv(index, pname, params2); } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, out float @params) { fixed (float* ptr = &@params) { Core.GetVertexAttribfv(index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] float* @params) { Core.GetVertexAttribfv(index, pname, @params); } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetVertexAttribiv((uint)index, pname, params2); } } public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetVertexAttribiv((uint)index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(int index, VertexAttribParameter pname, [Out] int* @params) { Core.GetVertexAttribiv((uint)index, pname, @params); } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] int[] @params) { fixed (int* params2 = @params) { Core.GetVertexAttribiv(index, pname, params2); } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, out int @params) { fixed (int* ptr = &@params) { Core.GetVertexAttribiv(index, pname, ptr); @params = *ptr; } } [CLSCompliant(false)] public unsafe static void GetVertexAttrib(uint index, VertexAttribParameter pname, [Out] int* @params) { Core.GetVertexAttribiv(index, pname, @params); } public static void GetVertexAttribPointer(int index, VertexAttribPointerParameter pname, [Out] IntPtr pointer) { Core.GetVertexAttribPointerv((uint)index, pname, pointer); } public static void GetVertexAttribPointer(int index, VertexAttribPointerParameter pname, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv((uint)index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetVertexAttribPointer(int index, VertexAttribPointerParameter pname, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv((uint)index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetVertexAttribPointer(int index, VertexAttribPointerParameter pname, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv((uint)index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void GetVertexAttribPointer(int index, VertexAttribPointerParameter pname, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv((uint)index, pname, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void GetVertexAttribPointer(uint index, VertexAttribPointerParameter pname, [Out] IntPtr pointer) { Core.GetVertexAttribPointerv(index, pname, pointer); } [CLSCompliant(false)] public static void GetVertexAttribPointer(uint index, VertexAttribPointerParameter pname, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv(index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void GetVertexAttribPointer(uint index, VertexAttribPointerParameter pname, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv(index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void GetVertexAttribPointer(uint index, VertexAttribPointerParameter pname, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv(index, pname, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void GetVertexAttribPointer(uint index, VertexAttribPointerParameter pname, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.GetVertexAttribPointerv(index, pname, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Hint(HintTarget target, HintMode mode) { Core.Hint(target, mode); } public static void Histogram(HistogramTarget target, int width, PixelInternalFormat internalformat, bool sink) { Core.Histogram(target, width, internalformat, sink); } public static void Index(double c) { Core.Indexd(c); } [CLSCompliant(false)] public unsafe static void Index(double* c) { Core.Indexdv(c); } public static void Index(float c) { Core.Indexf(c); } [CLSCompliant(false)] public unsafe static void Index(float* c) { Core.Indexfv(c); } public static void Index(int c) { Core.Indexi(c); } [CLSCompliant(false)] public unsafe static void Index(int* c) { Core.Indexiv(c); } public static void IndexMask(int mask) { Core.IndexMask((uint)mask); } [CLSCompliant(false)] public static void IndexMask(uint mask) { Core.IndexMask(mask); } public static void IndexPointer(IndexPointerType type, int stride, IntPtr pointer) { Core.IndexPointer(type, stride, pointer); } public static void IndexPointer(IndexPointerType type, int stride, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.IndexPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void IndexPointer(IndexPointerType type, int stride, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.IndexPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void IndexPointer(IndexPointerType type, int stride, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.IndexPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void IndexPointer(IndexPointerType type, int stride, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.IndexPointer(type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Index(short c) { Core.Indexs(c); } [CLSCompliant(false)] public unsafe static void Index(short* c) { Core.Indexsv(c); } public static void Index(byte c) { Core.Indexub(c); } [CLSCompliant(false)] public unsafe static void Index(byte* c) { Core.Indexubv(c); } public static void InitNames() { Core.InitNames(); } public static void InterleavedArrays(InterleavedArrayFormat format, int stride, IntPtr pointer) { Core.InterleavedArrays(format, stride, pointer); } public static void InterleavedArrays(InterleavedArrayFormat format, int stride, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.InterleavedArrays(format, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void InterleavedArrays(InterleavedArrayFormat format, int stride, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.InterleavedArrays(format, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void InterleavedArrays(InterleavedArrayFormat format, int stride, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.InterleavedArrays(format, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void InterleavedArrays(InterleavedArrayFormat format, int stride, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.InterleavedArrays(format, stride, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static bool IsBuffer(int buffer) { return Core.IsBuffer((uint)buffer); } [CLSCompliant(false)] public static bool IsBuffer(uint buffer) { return Core.IsBuffer(buffer); } public static bool IsEnabled(EnableCap cap) { return Core.IsEnabled(cap); } public static bool IsList(int list) { return Core.IsList((uint)list); } [CLSCompliant(false)] public static bool IsList(uint list) { return Core.IsList(list); } public static bool IsQuery(int id) { return Core.IsQuery((uint)id); } [CLSCompliant(false)] public static bool IsQuery(uint id) { return Core.IsQuery(id); } public static bool IsShader(int shader) { return Core.IsShader((uint)shader); } [CLSCompliant(false)] public static bool IsShader(uint shader) { return Core.IsShader(shader); } public static bool IsTexture(int texture) { return Core.IsTexture((uint)texture); } [CLSCompliant(false)] public static bool IsTexture(uint texture) { return Core.IsTexture(texture); } public static void Light(LightName light, LightParameter pname, float param) { Core.Lightf(light, pname, param); } public unsafe static void Light(LightName light, LightParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.Lightfv(light, pname, params2); } } [CLSCompliant(false)] public unsafe static void Light(LightName light, LightParameter pname, float* @params) { Core.Lightfv(light, pname, @params); } public static void Light(LightName light, LightParameter pname, int param) { Core.Lighti(light, pname, param); } public unsafe static void Light(LightName light, LightParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.Lightiv(light, pname, params2); } } [CLSCompliant(false)] public unsafe static void Light(LightName light, LightParameter pname, int* @params) { Core.Lightiv(light, pname, @params); } public static void LightModel(LightModelParameter pname, float param) { Core.LightModelf(pname, param); } public unsafe static void LightModel(LightModelParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.LightModelfv(pname, params2); } } [CLSCompliant(false)] public unsafe static void LightModel(LightModelParameter pname, float* @params) { Core.LightModelfv(pname, @params); } public static void LightModel(LightModelParameter pname, int param) { Core.LightModeli(pname, param); } public unsafe static void LightModel(LightModelParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.LightModeliv(pname, params2); } } [CLSCompliant(false)] public unsafe static void LightModel(LightModelParameter pname, int* @params) { Core.LightModeliv(pname, @params); } public static void LineStipple(int factor, short pattern) { Core.LineStipple(factor, (ushort)pattern); } [CLSCompliant(false)] public static void LineStipple(int factor, ushort pattern) { Core.LineStipple(factor, pattern); } public static void LineWidth(float width) { Core.LineWidth(width); } public static void LinkProgram(int program) { Core.LinkProgram((uint)program); } [CLSCompliant(false)] public static void LinkProgram(uint program) { Core.LinkProgram(program); } public static void ListBase(int @base) { Core.ListBase((uint)@base); } [CLSCompliant(false)] public static void ListBase(uint @base) { Core.ListBase(@base); } public static void LoadIdentity() { Core.LoadIdentity(); } public unsafe static void LoadMatrix(double[] m) { fixed (double* m2 = m) { Core.LoadMatrixd(m2); } } public unsafe static void LoadMatrix(ref double m) { fixed (double* m2 = &m) { Core.LoadMatrixd(m2); } } [CLSCompliant(false)] public unsafe static void LoadMatrix(double* m) { Core.LoadMatrixd(m); } public unsafe static void LoadMatrix(float[] m) { fixed (float* m2 = m) { Core.LoadMatrixf(m2); } } public unsafe static void LoadMatrix(ref float m) { fixed (float* m2 = &m) { Core.LoadMatrixf(m2); } } [CLSCompliant(false)] public unsafe static void LoadMatrix(float* m) { Core.LoadMatrixf(m); } public static void LoadName(int name) { Core.LoadName((uint)name); } [CLSCompliant(false)] public static void LoadName(uint name) { Core.LoadName(name); } public unsafe static void LoadTransposeMatrix(double[] m) { fixed (double* m2 = m) { Core.LoadTransposeMatrixd(m2); } } public unsafe static void LoadTransposeMatrix(ref double m) { fixed (double* m2 = &m) { Core.LoadTransposeMatrixd(m2); } } [CLSCompliant(false)] public unsafe static void LoadTransposeMatrix(double* m) { Core.LoadTransposeMatrixd(m); } public unsafe static void LoadTransposeMatrix(float[] m) { fixed (float* m2 = m) { Core.LoadTransposeMatrixf(m2); } } public unsafe static void LoadTransposeMatrix(ref float m) { fixed (float* m2 = &m) { Core.LoadTransposeMatrixf(m2); } } [CLSCompliant(false)] public unsafe static void LoadTransposeMatrix(float* m) { Core.LoadTransposeMatrixf(m); } public static void LogicOp(LogicOp opcode) { Core.LogicOp(opcode); } public unsafe static void Map1(MapTarget target, double u1, double u2, int stride, int order, double[] points) { fixed (double* points2 = points) { Core.Map1d(target, u1, u2, stride, order, points2); } } public unsafe static void Map1(MapTarget target, double u1, double u2, int stride, int order, ref double points) { fixed (double* points2 = &points) { Core.Map1d(target, u1, u2, stride, order, points2); } } [CLSCompliant(false)] public unsafe static void Map1(MapTarget target, double u1, double u2, int stride, int order, double* points) { Core.Map1d(target, u1, u2, stride, order, points); } public unsafe static void Map1(MapTarget target, float u1, float u2, int stride, int order, float[] points) { fixed (float* points2 = points) { Core.Map1f(target, u1, u2, stride, order, points2); } } public unsafe static void Map1(MapTarget target, float u1, float u2, int stride, int order, ref float points) { fixed (float* points2 = &points) { Core.Map1f(target, u1, u2, stride, order, points2); } } [CLSCompliant(false)] public unsafe static void Map1(MapTarget target, float u1, float u2, int stride, int order, float* points) { Core.Map1f(target, u1, u2, stride, order, points); } public unsafe static void Map2(MapTarget target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double[] points) { fixed (double* points2 = points) { Core.Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points2); } } public unsafe static void Map2(MapTarget target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, ref double points) { fixed (double* points2 = &points) { Core.Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points2); } } [CLSCompliant(false)] public unsafe static void Map2(MapTarget target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double* points) { Core.Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); } public unsafe static void Map2(MapTarget target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[] points) { fixed (float* points2 = points) { Core.Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points2); } } public unsafe static void Map2(MapTarget target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, ref float points) { fixed (float* points2 = &points) { Core.Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points2); } } [CLSCompliant(false)] public unsafe static void Map2(MapTarget target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float* points) { Core.Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); } [CLSCompliant(false)] public static IntPtr MapBuffer(BufferTarget target, BufferAccess access) { return Core.MapBuffer(target, access); } public static void MapGrid1(int un, double u1, double u2) { Core.MapGrid1d(un, u1, u2); } public static void MapGrid1(int un, float u1, float u2) { Core.MapGrid1f(un, u1, u2); } public static void MapGrid2(int un, double u1, double u2, int vn, double v1, double v2) { Core.MapGrid2d(un, u1, u2, vn, v1, v2); } public static void MapGrid2(int un, float u1, float u2, int vn, float v1, float v2) { Core.MapGrid2f(un, u1, u2, vn, v1, v2); } public static void Material(MaterialFace face, MaterialParameter pname, float param) { Core.Materialf(face, pname, param); } public unsafe static void Material(MaterialFace face, MaterialParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.Materialfv(face, pname, params2); } } [CLSCompliant(false)] public unsafe static void Material(MaterialFace face, MaterialParameter pname, float* @params) { Core.Materialfv(face, pname, @params); } public static void Material(MaterialFace face, MaterialParameter pname, int param) { Core.Materiali(face, pname, param); } public unsafe static void Material(MaterialFace face, MaterialParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.Materialiv(face, pname, params2); } } [CLSCompliant(false)] public unsafe static void Material(MaterialFace face, MaterialParameter pname, int* @params) { Core.Materialiv(face, pname, @params); } public static void MatrixMode(MatrixMode mode) { Core.MatrixMode(mode); } public static void Minmax(MinmaxTarget target, PixelInternalFormat internalformat, bool sink) { Core.Minmax(target, internalformat, sink); } public unsafe static void MultiDrawArrays(BeginMode mode, int[] first, int[] count, int primcount) { fixed (int* first2 = first) { fixed (int* count2 = count) { Core.MultiDrawArrays(mode, first2, count2, primcount); } } } public unsafe static void MultiDrawArrays(BeginMode mode, ref int first, ref int count, int primcount) { fixed (int* first2 = &first) { fixed (int* count2 = &count) { Core.MultiDrawArrays(mode, first2, count2, primcount); } } } [CLSCompliant(false)] public unsafe static void MultiDrawArrays(BeginMode mode, int* first, int* count, int primcount) { Core.MultiDrawArrays(mode, first, count, primcount); } public unsafe static void MultiDrawElements(BeginMode mode, int[] count, DrawElementsType type, IntPtr indices, int primcount) { fixed (int* count2 = count) { Core.MultiDrawElements(mode, count2, type, indices, primcount); } } public unsafe static void MultiDrawElements(BeginMode mode, int[] count, DrawElementsType type, [In][Out] T3[] indices, int primcount) where T3 : struct { fixed (int* count2 = count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, int[] count, DrawElementsType type, [In][Out] T3[,] indices, int primcount) where T3 : struct { fixed (int* count2 = count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, int[] count, DrawElementsType type, [In][Out] T3[,,] indices, int primcount) where T3 : struct { fixed (int* count2 = count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, int[] count, DrawElementsType type, [In][Out] ref T3 indices, int primcount) where T3 : struct { fixed (int* count2 = count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); indices = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, ref int count, DrawElementsType type, IntPtr indices, int primcount) { fixed (int* count2 = &count) { Core.MultiDrawElements(mode, count2, type, indices, primcount); } } public unsafe static void MultiDrawElements(BeginMode mode, ref int count, DrawElementsType type, [In][Out] T3[] indices, int primcount) where T3 : struct { fixed (int* count2 = &count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, ref int count, DrawElementsType type, [In][Out] T3[,] indices, int primcount) where T3 : struct { fixed (int* count2 = &count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, ref int count, DrawElementsType type, [In][Out] T3[,,] indices, int primcount) where T3 : struct { fixed (int* count2 = &count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } } public unsafe static void MultiDrawElements(BeginMode mode, ref int count, DrawElementsType type, [In][Out] ref T3 indices, int primcount) where T3 : struct { fixed (int* count2 = &count) { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count2, type, gCHandle.AddrOfPinnedObject(), primcount); indices = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } } [CLSCompliant(false)] public unsafe static void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, IntPtr indices, int primcount) { Core.MultiDrawElements(mode, count, type, indices, primcount); } [CLSCompliant(false)] public unsafe static void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, [In][Out] T3[] indices, int primcount) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public unsafe static void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, [In][Out] T3[,] indices, int primcount) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public unsafe static void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, [In][Out] T3[,,] indices, int primcount) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count, type, gCHandle.AddrOfPinnedObject(), primcount); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public unsafe static void MultiDrawElements(BeginMode mode, int* count, DrawElementsType type, [In][Out] ref T3 indices, int primcount) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(indices, GCHandleType.Pinned); try { Core.MultiDrawElements(mode, count, type, gCHandle.AddrOfPinnedObject(), primcount); indices = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void MultiTexCoord1(TextureUnit target, double s) { Core.MultiTexCoord1d(target, s); } [CLSCompliant(false)] public unsafe static void MultiTexCoord1(TextureUnit target, double* v) { Core.MultiTexCoord1dv(target, v); } public static void MultiTexCoord1(TextureUnit target, float s) { Core.MultiTexCoord1f(target, s); } [CLSCompliant(false)] public unsafe static void MultiTexCoord1(TextureUnit target, float* v) { Core.MultiTexCoord1fv(target, v); } public static void MultiTexCoord1(TextureUnit target, int s) { Core.MultiTexCoord1i(target, s); } [CLSCompliant(false)] public unsafe static void MultiTexCoord1(TextureUnit target, int* v) { Core.MultiTexCoord1iv(target, v); } public static void MultiTexCoord1(TextureUnit target, short s) { Core.MultiTexCoord1s(target, s); } [CLSCompliant(false)] public unsafe static void MultiTexCoord1(TextureUnit target, short* v) { Core.MultiTexCoord1sv(target, v); } public static void MultiTexCoord2(TextureUnit target, double s, double t) { Core.MultiTexCoord2d(target, s, t); } public unsafe static void MultiTexCoord2(TextureUnit target, double[] v) { fixed (double* v2 = v) { Core.MultiTexCoord2dv(target, v2); } } public unsafe static void MultiTexCoord2(TextureUnit target, ref double v) { fixed (double* v2 = &v) { Core.MultiTexCoord2dv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord2(TextureUnit target, double* v) { Core.MultiTexCoord2dv(target, v); } public static void MultiTexCoord2(TextureUnit target, float s, float t) { Core.MultiTexCoord2f(target, s, t); } public unsafe static void MultiTexCoord2(TextureUnit target, float[] v) { fixed (float* v2 = v) { Core.MultiTexCoord2fv(target, v2); } } public unsafe static void MultiTexCoord2(TextureUnit target, ref float v) { fixed (float* v2 = &v) { Core.MultiTexCoord2fv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord2(TextureUnit target, float* v) { Core.MultiTexCoord2fv(target, v); } public static void MultiTexCoord2(TextureUnit target, int s, int t) { Core.MultiTexCoord2i(target, s, t); } public unsafe static void MultiTexCoord2(TextureUnit target, int[] v) { fixed (int* v2 = v) { Core.MultiTexCoord2iv(target, v2); } } public unsafe static void MultiTexCoord2(TextureUnit target, ref int v) { fixed (int* v2 = &v) { Core.MultiTexCoord2iv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord2(TextureUnit target, int* v) { Core.MultiTexCoord2iv(target, v); } public static void MultiTexCoord2(TextureUnit target, short s, short t) { Core.MultiTexCoord2s(target, s, t); } public unsafe static void MultiTexCoord2(TextureUnit target, short[] v) { fixed (short* v2 = v) { Core.MultiTexCoord2sv(target, v2); } } public unsafe static void MultiTexCoord2(TextureUnit target, ref short v) { fixed (short* v2 = &v) { Core.MultiTexCoord2sv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord2(TextureUnit target, short* v) { Core.MultiTexCoord2sv(target, v); } public static void MultiTexCoord3(TextureUnit target, double s, double t, double r) { Core.MultiTexCoord3d(target, s, t, r); } public unsafe static void MultiTexCoord3(TextureUnit target, double[] v) { fixed (double* v2 = v) { Core.MultiTexCoord3dv(target, v2); } } public unsafe static void MultiTexCoord3(TextureUnit target, ref double v) { fixed (double* v2 = &v) { Core.MultiTexCoord3dv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord3(TextureUnit target, double* v) { Core.MultiTexCoord3dv(target, v); } public static void MultiTexCoord3(TextureUnit target, float s, float t, float r) { Core.MultiTexCoord3f(target, s, t, r); } public unsafe static void MultiTexCoord3(TextureUnit target, float[] v) { fixed (float* v2 = v) { Core.MultiTexCoord3fv(target, v2); } } public unsafe static void MultiTexCoord3(TextureUnit target, ref float v) { fixed (float* v2 = &v) { Core.MultiTexCoord3fv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord3(TextureUnit target, float* v) { Core.MultiTexCoord3fv(target, v); } public static void MultiTexCoord3(TextureUnit target, int s, int t, int r) { Core.MultiTexCoord3i(target, s, t, r); } public unsafe static void MultiTexCoord3(TextureUnit target, int[] v) { fixed (int* v2 = v) { Core.MultiTexCoord3iv(target, v2); } } public unsafe static void MultiTexCoord3(TextureUnit target, ref int v) { fixed (int* v2 = &v) { Core.MultiTexCoord3iv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord3(TextureUnit target, int* v) { Core.MultiTexCoord3iv(target, v); } public static void MultiTexCoord3(TextureUnit target, short s, short t, short r) { Core.MultiTexCoord3s(target, s, t, r); } public unsafe static void MultiTexCoord3(TextureUnit target, short[] v) { fixed (short* v2 = v) { Core.MultiTexCoord3sv(target, v2); } } public unsafe static void MultiTexCoord3(TextureUnit target, ref short v) { fixed (short* v2 = &v) { Core.MultiTexCoord3sv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord3(TextureUnit target, short* v) { Core.MultiTexCoord3sv(target, v); } public static void MultiTexCoord4(TextureUnit target, double s, double t, double r, double q) { Core.MultiTexCoord4d(target, s, t, r, q); } public unsafe static void MultiTexCoord4(TextureUnit target, double[] v) { fixed (double* v2 = v) { Core.MultiTexCoord4dv(target, v2); } } public unsafe static void MultiTexCoord4(TextureUnit target, ref double v) { fixed (double* v2 = &v) { Core.MultiTexCoord4dv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord4(TextureUnit target, double* v) { Core.MultiTexCoord4dv(target, v); } public static void MultiTexCoord4(TextureUnit target, float s, float t, float r, float q) { Core.MultiTexCoord4f(target, s, t, r, q); } public unsafe static void MultiTexCoord4(TextureUnit target, float[] v) { fixed (float* v2 = v) { Core.MultiTexCoord4fv(target, v2); } } public unsafe static void MultiTexCoord4(TextureUnit target, ref float v) { fixed (float* v2 = &v) { Core.MultiTexCoord4fv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord4(TextureUnit target, float* v) { Core.MultiTexCoord4fv(target, v); } public static void MultiTexCoord4(TextureUnit target, int s, int t, int r, int q) { Core.MultiTexCoord4i(target, s, t, r, q); } public unsafe static void MultiTexCoord4(TextureUnit target, int[] v) { fixed (int* v2 = v) { Core.MultiTexCoord4iv(target, v2); } } public unsafe static void MultiTexCoord4(TextureUnit target, ref int v) { fixed (int* v2 = &v) { Core.MultiTexCoord4iv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord4(TextureUnit target, int* v) { Core.MultiTexCoord4iv(target, v); } public static void MultiTexCoord4(TextureUnit target, short s, short t, short r, short q) { Core.MultiTexCoord4s(target, s, t, r, q); } public unsafe static void MultiTexCoord4(TextureUnit target, short[] v) { fixed (short* v2 = v) { Core.MultiTexCoord4sv(target, v2); } } public unsafe static void MultiTexCoord4(TextureUnit target, ref short v) { fixed (short* v2 = &v) { Core.MultiTexCoord4sv(target, v2); } } [CLSCompliant(false)] public unsafe static void MultiTexCoord4(TextureUnit target, short* v) { Core.MultiTexCoord4sv(target, v); } public unsafe static void MultMatrix(double[] m) { fixed (double* m2 = m) { Core.MultMatrixd(m2); } } public unsafe static void MultMatrix(ref double m) { fixed (double* m2 = &m) { Core.MultMatrixd(m2); } } [CLSCompliant(false)] public unsafe static void MultMatrix(double* m) { Core.MultMatrixd(m); } public unsafe static void MultMatrix(float[] m) { fixed (float* m2 = m) { Core.MultMatrixf(m2); } } public unsafe static void MultMatrix(ref float m) { fixed (float* m2 = &m) { Core.MultMatrixf(m2); } } [CLSCompliant(false)] public unsafe static void MultMatrix(float* m) { Core.MultMatrixf(m); } public unsafe static void MultTransposeMatrix(double[] m) { fixed (double* m2 = m) { Core.MultTransposeMatrixd(m2); } } public unsafe static void MultTransposeMatrix(ref double m) { fixed (double* m2 = &m) { Core.MultTransposeMatrixd(m2); } } [CLSCompliant(false)] public unsafe static void MultTransposeMatrix(double* m) { Core.MultTransposeMatrixd(m); } public unsafe static void MultTransposeMatrix(float[] m) { fixed (float* m2 = m) { Core.MultTransposeMatrixf(m2); } } public unsafe static void MultTransposeMatrix(ref float m) { fixed (float* m2 = &m) { Core.MultTransposeMatrixf(m2); } } [CLSCompliant(false)] public unsafe static void MultTransposeMatrix(float* m) { Core.MultTransposeMatrixf(m); } public static void NewList(int list, ListMode mode) { Core.NewList((uint)list, mode); } [CLSCompliant(false)] public static void NewList(uint list, ListMode mode) { Core.NewList(list, mode); } public static void Normal3(byte nx, byte ny, byte nz) { Core.Normal3b((sbyte)nx, (sbyte)ny, (sbyte)nz); } [CLSCompliant(false)] public static void Normal3(sbyte nx, sbyte ny, sbyte nz) { Core.Normal3b(nx, ny, nz); } public unsafe static void Normal3(byte[] v) { fixed (byte* v2 = v) { Core.Normal3bv((sbyte*)v2); } } public unsafe static void Normal3(ref byte v) { fixed (byte* v2 = &v) { Core.Normal3bv((sbyte*)v2); } } [CLSCompliant(false)] public unsafe static void Normal3(byte* v) { Core.Normal3bv((sbyte*)v); } [CLSCompliant(false)] public unsafe static void Normal3(sbyte[] v) { fixed (sbyte* v2 = v) { Core.Normal3bv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(ref sbyte v) { fixed (sbyte* v2 = &v) { Core.Normal3bv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(sbyte* v) { Core.Normal3bv(v); } public static void Normal3(double nx, double ny, double nz) { Core.Normal3d(nx, ny, nz); } public unsafe static void Normal3(double[] v) { fixed (double* v2 = v) { Core.Normal3dv(v2); } } public unsafe static void Normal3(ref double v) { fixed (double* v2 = &v) { Core.Normal3dv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(double* v) { Core.Normal3dv(v); } public static void Normal3(float nx, float ny, float nz) { Core.Normal3f(nx, ny, nz); } public unsafe static void Normal3(float[] v) { fixed (float* v2 = v) { Core.Normal3fv(v2); } } public unsafe static void Normal3(ref float v) { fixed (float* v2 = &v) { Core.Normal3fv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(float* v) { Core.Normal3fv(v); } public static void Normal3(int nx, int ny, int nz) { Core.Normal3i(nx, ny, nz); } public unsafe static void Normal3(int[] v) { fixed (int* v2 = v) { Core.Normal3iv(v2); } } public unsafe static void Normal3(ref int v) { fixed (int* v2 = &v) { Core.Normal3iv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(int* v) { Core.Normal3iv(v); } public static void Normal3(short nx, short ny, short nz) { Core.Normal3s(nx, ny, nz); } public unsafe static void Normal3(short[] v) { fixed (short* v2 = v) { Core.Normal3sv(v2); } } public unsafe static void Normal3(ref short v) { fixed (short* v2 = &v) { Core.Normal3sv(v2); } } [CLSCompliant(false)] public unsafe static void Normal3(short* v) { Core.Normal3sv(v); } public static void NormalPointer(NormalPointerType type, int stride, IntPtr pointer) { Core.NormalPointer(type, stride, pointer); } public static void NormalPointer(NormalPointerType type, int stride, [In][Out] T2[] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.NormalPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void NormalPointer(NormalPointerType type, int stride, [In][Out] T2[,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.NormalPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void NormalPointer(NormalPointerType type, int stride, [In][Out] T2[,,] pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.NormalPointer(type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void NormalPointer(NormalPointerType type, int stride, [In][Out] ref T2 pointer) where T2 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.NormalPointer(type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T2)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Ortho(double left, double right, double bottom, double top, double zNear, double zFar) { Core.Ortho(left, right, bottom, top, zNear, zFar); } public static void PassThrough(float token) { Core.PassThrough(token); } public unsafe static void PixelMap(PixelMap map, int mapsize, float[] values) { fixed (float* values2 = values) { Core.PixelMapfv(map, mapsize, values2); } } public unsafe static void PixelMap(PixelMap map, int mapsize, ref float values) { fixed (float* values2 = &values) { Core.PixelMapfv(map, mapsize, values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, float* values) { Core.PixelMapfv(map, mapsize, values); } public unsafe static void PixelMap(PixelMap map, int mapsize, int[] values) { fixed (int* values2 = values) { Core.PixelMapuiv(map, mapsize, (uint*)values2); } } public unsafe static void PixelMap(PixelMap map, int mapsize, ref int values) { fixed (int* values2 = &values) { Core.PixelMapuiv(map, mapsize, (uint*)values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, int* values) { Core.PixelMapuiv(map, mapsize, (uint*)values); } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, uint[] values) { fixed (uint* values2 = values) { Core.PixelMapuiv(map, mapsize, values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, ref uint values) { fixed (uint* values2 = &values) { Core.PixelMapuiv(map, mapsize, values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, uint* values) { Core.PixelMapuiv(map, mapsize, values); } public unsafe static void PixelMap(PixelMap map, int mapsize, short[] values) { fixed (short* values2 = values) { Core.PixelMapusv(map, mapsize, (ushort*)values2); } } public unsafe static void PixelMap(PixelMap map, int mapsize, ref short values) { fixed (short* values2 = &values) { Core.PixelMapusv(map, mapsize, (ushort*)values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, short* values) { Core.PixelMapusv(map, mapsize, (ushort*)values); } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, ushort[] values) { fixed (ushort* values2 = values) { Core.PixelMapusv(map, mapsize, values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, ref ushort values) { fixed (ushort* values2 = &values) { Core.PixelMapusv(map, mapsize, values2); } } [CLSCompliant(false)] public unsafe static void PixelMap(PixelMap map, int mapsize, ushort* values) { Core.PixelMapusv(map, mapsize, values); } public static void PixelStore(PixelStoreParameter pname, float param) { Core.PixelStoref(pname, param); } public static void PixelStore(PixelStoreParameter pname, int param) { Core.PixelStorei(pname, param); } public static void PixelTransfer(PixelTransferParameter pname, float param) { Core.PixelTransferf(pname, param); } public static void PixelTransfer(PixelTransferParameter pname, int param) { Core.PixelTransferi(pname, param); } public static void PixelZoom(float xfactor, float yfactor) { Core.PixelZoom(xfactor, yfactor); } public static void PointParameter(PointParameterName pname, float param) { Core.PointParameterf(pname, param); } public unsafe static void PointParameter(PointParameterName pname, float[] @params) { fixed (float* params2 = @params) { Core.PointParameterfv(pname, params2); } } [CLSCompliant(false)] public unsafe static void PointParameter(PointParameterName pname, float* @params) { Core.PointParameterfv(pname, @params); } public static void PointParameter(PointParameterName pname, int param) { Core.PointParameteri(pname, param); } public unsafe static void PointParameter(PointParameterName pname, int[] @params) { fixed (int* params2 = @params) { Core.PointParameteriv(pname, params2); } } [CLSCompliant(false)] public unsafe static void PointParameter(PointParameterName pname, int* @params) { Core.PointParameteriv(pname, @params); } public static void PointSize(float size) { Core.PointSize(size); } public static void PolygonMode(MaterialFace face, PolygonMode mode) { Core.PolygonMode(face, mode); } public static void PolygonOffset(float factor, float units) { Core.PolygonOffset(factor, units); } public unsafe static void PolygonStipple(byte[] mask) { fixed (byte* mask2 = mask) { Core.PolygonStipple(mask2); } } public unsafe static void PolygonStipple(ref byte mask) { fixed (byte* mask2 = &mask) { Core.PolygonStipple(mask2); } } [CLSCompliant(false)] public unsafe static void PolygonStipple(byte* mask) { Core.PolygonStipple(mask); } public static void PopAttrib() { Core.PopAttrib(); } public static void PopClientAttrib() { Core.PopClientAttrib(); } public static void PopMatrix() { Core.PopMatrix(); } public static void PopName() { Core.PopName(); } public unsafe static void PrioritizeTextures(int n, int[] textures, float[] priorities) { fixed (int* textures2 = textures) { fixed (float* priorities2 = priorities) { Core.PrioritizeTextures(n, (uint*)textures2, priorities2); } } } public unsafe static void PrioritizeTextures(int n, ref int textures, ref float priorities) { fixed (int* textures2 = &textures) { fixed (float* priorities2 = &priorities) { Core.PrioritizeTextures(n, (uint*)textures2, priorities2); } } } [CLSCompliant(false)] public unsafe static void PrioritizeTextures(int n, int* textures, float* priorities) { Core.PrioritizeTextures(n, (uint*)textures, priorities); } [CLSCompliant(false)] public unsafe static void PrioritizeTextures(int n, uint[] textures, float[] priorities) { fixed (uint* textures2 = textures) { fixed (float* priorities2 = priorities) { Core.PrioritizeTextures(n, textures2, priorities2); } } } [CLSCompliant(false)] public unsafe static void PrioritizeTextures(int n, ref uint textures, ref float priorities) { fixed (uint* textures2 = &textures) { fixed (float* priorities2 = &priorities) { Core.PrioritizeTextures(n, textures2, priorities2); } } } [CLSCompliant(false)] public unsafe static void PrioritizeTextures(int n, uint* textures, float* priorities) { Core.PrioritizeTextures(n, textures, priorities); } public unsafe static void ProgramUniformMatrix2x3(int program, int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.ProgramUniformMatrix2x3fv((uint)program, location, count, transpose, value2); } } public unsafe static void ProgramUniformMatrix2x3(int program, int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.ProgramUniformMatrix2x3fv((uint)program, location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void ProgramUniformMatrix2x3(int program, int location, int count, bool transpose, float* value) { Core.ProgramUniformMatrix2x3fv((uint)program, location, count, transpose, value); } [CLSCompliant(false)] public unsafe static void ProgramUniformMatrix2x3(uint program, int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.ProgramUniformMatrix2x3fv(program, location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void ProgramUniformMatrix2x3(uint program, int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.ProgramUniformMatrix2x3fv(program, location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void ProgramUniformMatrix2x3(uint program, int location, int count, bool transpose, float* value) { Core.ProgramUniformMatrix2x3fv(program, location, count, transpose, value); } public static void PushAttrib(AttribMask mask) { Core.PushAttrib(mask); } public static void PushClientAttrib(ClientAttribMask mask) { Core.PushClientAttrib(mask); } public static void PushMatrix() { Core.PushMatrix(); } public static void PushName(int name) { Core.PushName((uint)name); } [CLSCompliant(false)] public static void PushName(uint name) { Core.PushName(name); } public static void RasterPos2(double x, double y) { Core.RasterPos2d(x, y); } public unsafe static void RasterPos2(double[] v) { fixed (double* v2 = v) { Core.RasterPos2dv(v2); } } public unsafe static void RasterPos2(ref double v) { fixed (double* v2 = &v) { Core.RasterPos2dv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos2(double* v) { Core.RasterPos2dv(v); } public static void RasterPos2(float x, float y) { Core.RasterPos2f(x, y); } public unsafe static void RasterPos2(float[] v) { fixed (float* v2 = v) { Core.RasterPos2fv(v2); } } public unsafe static void RasterPos2(ref float v) { fixed (float* v2 = &v) { Core.RasterPos2fv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos2(float* v) { Core.RasterPos2fv(v); } public static void RasterPos2(int x, int y) { Core.RasterPos2i(x, y); } public unsafe static void RasterPos2(int[] v) { fixed (int* v2 = v) { Core.RasterPos2iv(v2); } } public unsafe static void RasterPos2(ref int v) { fixed (int* v2 = &v) { Core.RasterPos2iv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos2(int* v) { Core.RasterPos2iv(v); } public static void RasterPos2(short x, short y) { Core.RasterPos2s(x, y); } public unsafe static void RasterPos2(short[] v) { fixed (short* v2 = v) { Core.RasterPos2sv(v2); } } public unsafe static void RasterPos2(ref short v) { fixed (short* v2 = &v) { Core.RasterPos2sv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos2(short* v) { Core.RasterPos2sv(v); } public static void RasterPos3(double x, double y, double z) { Core.RasterPos3d(x, y, z); } public unsafe static void RasterPos3(double[] v) { fixed (double* v2 = v) { Core.RasterPos3dv(v2); } } public unsafe static void RasterPos3(ref double v) { fixed (double* v2 = &v) { Core.RasterPos3dv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos3(double* v) { Core.RasterPos3dv(v); } public static void RasterPos3(float x, float y, float z) { Core.RasterPos3f(x, y, z); } public unsafe static void RasterPos3(float[] v) { fixed (float* v2 = v) { Core.RasterPos3fv(v2); } } public unsafe static void RasterPos3(ref float v) { fixed (float* v2 = &v) { Core.RasterPos3fv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos3(float* v) { Core.RasterPos3fv(v); } public static void RasterPos3(int x, int y, int z) { Core.RasterPos3i(x, y, z); } public unsafe static void RasterPos3(int[] v) { fixed (int* v2 = v) { Core.RasterPos3iv(v2); } } public unsafe static void RasterPos3(ref int v) { fixed (int* v2 = &v) { Core.RasterPos3iv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos3(int* v) { Core.RasterPos3iv(v); } public static void RasterPos3(short x, short y, short z) { Core.RasterPos3s(x, y, z); } public unsafe static void RasterPos3(short[] v) { fixed (short* v2 = v) { Core.RasterPos3sv(v2); } } public unsafe static void RasterPos3(ref short v) { fixed (short* v2 = &v) { Core.RasterPos3sv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos3(short* v) { Core.RasterPos3sv(v); } public static void RasterPos4(double x, double y, double z, double w) { Core.RasterPos4d(x, y, z, w); } public unsafe static void RasterPos4(double[] v) { fixed (double* v2 = v) { Core.RasterPos4dv(v2); } } public unsafe static void RasterPos4(ref double v) { fixed (double* v2 = &v) { Core.RasterPos4dv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos4(double* v) { Core.RasterPos4dv(v); } public static void RasterPos4(float x, float y, float z, float w) { Core.RasterPos4f(x, y, z, w); } public unsafe static void RasterPos4(float[] v) { fixed (float* v2 = v) { Core.RasterPos4fv(v2); } } public unsafe static void RasterPos4(ref float v) { fixed (float* v2 = &v) { Core.RasterPos4fv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos4(float* v) { Core.RasterPos4fv(v); } public static void RasterPos4(int x, int y, int z, int w) { Core.RasterPos4i(x, y, z, w); } public unsafe static void RasterPos4(int[] v) { fixed (int* v2 = v) { Core.RasterPos4iv(v2); } } public unsafe static void RasterPos4(ref int v) { fixed (int* v2 = &v) { Core.RasterPos4iv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos4(int* v) { Core.RasterPos4iv(v); } public static void RasterPos4(short x, short y, short z, short w) { Core.RasterPos4s(x, y, z, w); } public unsafe static void RasterPos4(short[] v) { fixed (short* v2 = v) { Core.RasterPos4sv(v2); } } public unsafe static void RasterPos4(ref short v) { fixed (short* v2 = &v) { Core.RasterPos4sv(v2); } } [CLSCompliant(false)] public unsafe static void RasterPos4(short* v) { Core.RasterPos4sv(v); } public static void ReadBuffer(ReadBufferMode mode) { Core.ReadBuffer(mode); } public static void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [Out] IntPtr pixels) { Core.ReadPixels(x, y, width, height, format, type, pixels); } public static void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.ReadPixels(x, y, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.ReadPixels(x, y, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,,] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.ReadPixels(x, y, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void ReadPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, [In][Out] ref T6 pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.ReadPixels(x, y, width, height, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T6)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Rect(double x1, double y1, double x2, double y2) { Core.Rectd(x1, y1, x2, y2); } public unsafe static void Rect(double[] v1, double[] v2) { fixed (double* v3 = v1) { fixed (double* v4 = v2) { Core.Rectdv(v3, v4); } } } public unsafe static void Rect(ref double v1, ref double v2) { fixed (double* v3 = &v1) { fixed (double* v4 = &v2) { Core.Rectdv(v3, v4); } } } [CLSCompliant(false)] public unsafe static void Rect(double* v1, double* v2) { Core.Rectdv(v1, v2); } public static void Rect(float x1, float y1, float x2, float y2) { Core.Rectf(x1, y1, x2, y2); } public unsafe static void Rect(float[] v1, float[] v2) { fixed (float* v3 = v1) { fixed (float* v4 = v2) { Core.Rectfv(v3, v4); } } } public unsafe static void Rect(ref float v1, ref float v2) { fixed (float* v3 = &v1) { fixed (float* v4 = &v2) { Core.Rectfv(v3, v4); } } } [CLSCompliant(false)] public unsafe static void Rect(float* v1, float* v2) { Core.Rectfv(v1, v2); } public static void Rect(int x1, int y1, int x2, int y2) { Core.Recti(x1, y1, x2, y2); } public unsafe static void Rect(int[] v1, int[] v2) { fixed (int* v3 = v1) { fixed (int* v4 = v2) { Core.Rectiv(v3, v4); } } } public unsafe static void Rect(ref int v1, ref int v2) { fixed (int* v3 = &v1) { fixed (int* v4 = &v2) { Core.Rectiv(v3, v4); } } } [CLSCompliant(false)] public unsafe static void Rect(int* v1, int* v2) { Core.Rectiv(v1, v2); } public static void Rects(short x1, short y1, short x2, short y2) { Core.Rects(x1, y1, x2, y2); } public unsafe static void Rect(short[] v1, short[] v2) { fixed (short* v3 = v1) { fixed (short* v4 = v2) { Core.Rectsv(v3, v4); } } } public unsafe static void Rect(ref short v1, ref short v2) { fixed (short* v3 = &v1) { fixed (short* v4 = &v2) { Core.Rectsv(v3, v4); } } } [CLSCompliant(false)] public unsafe static void Rect(short* v1, short* v2) { Core.Rectsv(v1, v2); } public static int RenderMode(RenderingMode mode) { return Core.RenderMode(mode); } public static void ResetHistogram(HistogramTarget target) { Core.ResetHistogram(target); } public static void ResetMinmax(MinmaxTarget target) { Core.ResetMinmax(target); } public static void Rotate(double angle, double x, double y, double z) { Core.Rotated(angle, x, y, z); } public static void Rotate(float angle, float x, float y, float z) { Core.Rotatef(angle, x, y, z); } public static void Scale(double x, double y, double z) { Core.Scaled(x, y, z); } public static void Scale(float x, float y, float z) { Core.Scalef(x, y, z); } public static void Scissor(int x, int y, int width, int height) { Core.Scissor(x, y, width, height); } [CLSCompliant(false)] public static void SecondaryColor3(sbyte red, sbyte green, sbyte blue) { Core.SecondaryColor3b(red, green, blue); } [CLSCompliant(false)] public unsafe static void SecondaryColor3(sbyte[] v) { fixed (sbyte* v2 = v) { Core.SecondaryColor3bv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(ref sbyte v) { fixed (sbyte* v2 = &v) { Core.SecondaryColor3bv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(sbyte* v) { Core.SecondaryColor3bv(v); } public static void SecondaryColor3(double red, double green, double blue) { Core.SecondaryColor3d(red, green, blue); } public unsafe static void SecondaryColor3(double[] v) { fixed (double* v2 = v) { Core.SecondaryColor3dv(v2); } } public unsafe static void SecondaryColor3(ref double v) { fixed (double* v2 = &v) { Core.SecondaryColor3dv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(double* v) { Core.SecondaryColor3dv(v); } public static void SecondaryColor3(float red, float green, float blue) { Core.SecondaryColor3f(red, green, blue); } public unsafe static void SecondaryColor3(float[] v) { fixed (float* v2 = v) { Core.SecondaryColor3fv(v2); } } public unsafe static void SecondaryColor3(ref float v) { fixed (float* v2 = &v) { Core.SecondaryColor3fv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(float* v) { Core.SecondaryColor3fv(v); } public static void SecondaryColor3(int red, int green, int blue) { Core.SecondaryColor3i(red, green, blue); } public unsafe static void SecondaryColor3(int[] v) { fixed (int* v2 = v) { Core.SecondaryColor3iv(v2); } } public unsafe static void SecondaryColor3(ref int v) { fixed (int* v2 = &v) { Core.SecondaryColor3iv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(int* v) { Core.SecondaryColor3iv(v); } public static void SecondaryColor3(short red, short green, short blue) { Core.SecondaryColor3s(red, green, blue); } public unsafe static void SecondaryColor3(short[] v) { fixed (short* v2 = v) { Core.SecondaryColor3sv(v2); } } public unsafe static void SecondaryColor3(ref short v) { fixed (short* v2 = &v) { Core.SecondaryColor3sv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(short* v) { Core.SecondaryColor3sv(v); } public static void SecondaryColor3(byte red, byte green, byte blue) { Core.SecondaryColor3ub(red, green, blue); } public unsafe static void SecondaryColor3(byte[] v) { fixed (byte* v2 = v) { Core.SecondaryColor3ubv(v2); } } public unsafe static void SecondaryColor3(ref byte v) { fixed (byte* v2 = &v) { Core.SecondaryColor3ubv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(byte* v) { Core.SecondaryColor3ubv(v); } [CLSCompliant(false)] public static void SecondaryColor3(uint red, uint green, uint blue) { Core.SecondaryColor3ui(red, green, blue); } [CLSCompliant(false)] public unsafe static void SecondaryColor3(uint[] v) { fixed (uint* v2 = v) { Core.SecondaryColor3uiv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(ref uint v) { fixed (uint* v2 = &v) { Core.SecondaryColor3uiv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(uint* v) { Core.SecondaryColor3uiv(v); } [CLSCompliant(false)] public static void SecondaryColor3(ushort red, ushort green, ushort blue) { Core.SecondaryColor3us(red, green, blue); } [CLSCompliant(false)] public unsafe static void SecondaryColor3(ushort[] v) { fixed (ushort* v2 = v) { Core.SecondaryColor3usv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(ref ushort v) { fixed (ushort* v2 = &v) { Core.SecondaryColor3usv(v2); } } [CLSCompliant(false)] public unsafe static void SecondaryColor3(ushort* v) { Core.SecondaryColor3usv(v); } public static void SecondaryColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { Core.SecondaryColorPointer(size, type, stride, pointer); } public static void SecondaryColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.SecondaryColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SecondaryColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.SecondaryColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SecondaryColorPointer(int size, ColorPointerType type, int stride, [In][Out] T3[,,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.SecondaryColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SecondaryColorPointer(int size, ColorPointerType type, int stride, [In][Out] ref T3 pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.SecondaryColorPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public unsafe static void SelectBuffer(int size, [Out] int[] buffer) { fixed (int* buffer2 = buffer) { Core.SelectBuffer(size, (uint*)buffer2); } } public unsafe static void SelectBuffer(int size, out int buffer) { fixed (int* ptr = &buffer) { Core.SelectBuffer(size, (uint*)ptr); buffer = *ptr; } } [CLSCompliant(false)] public unsafe static void SelectBuffer(int size, [Out] int* buffer) { Core.SelectBuffer(size, (uint*)buffer); } [CLSCompliant(false)] public unsafe static void SelectBuffer(int size, [Out] uint[] buffer) { fixed (uint* buffer2 = buffer) { Core.SelectBuffer(size, buffer2); } } [CLSCompliant(false)] public unsafe static void SelectBuffer(int size, out uint buffer) { fixed (uint* ptr = &buffer) { Core.SelectBuffer(size, ptr); buffer = *ptr; } } [CLSCompliant(false)] public unsafe static void SelectBuffer(int size, [Out] uint* buffer) { Core.SelectBuffer(size, buffer); } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, IntPtr column) { Core.SeparableFilter2D(target, internalformat, width, height, format, type, row, column); } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, [In][Out] T7[] column) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, row, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, [In][Out] T7[,] column) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, row, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, [In][Out] T7[,,] column) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, row, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, [In][Out] ref T7 column) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, row, gCHandle.AddrOfPinnedObject()); column = (T7)gCHandle.Target; } finally { gCHandle.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[] row, [In][Out] T7[,,] column) where T6 : struct where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,] row, [In][Out] T7[,,] column) where T6 : struct where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] T6[,,] row, [In][Out] T7[,,] column) where T6 : struct where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void SeparableFilter2D(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, [In][Out] ref T6 row, [In][Out] T7[,,] column) where T6 : struct where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(row, GCHandleType.Pinned); GCHandle gCHandle2 = GCHandle.Alloc(column, GCHandleType.Pinned); try { Core.SeparableFilter2D(target, internalformat, width, height, format, type, gCHandle.AddrOfPinnedObject(), gCHandle2.AddrOfPinnedObject()); row = (T6)gCHandle.Target; } finally { gCHandle.Free(); gCHandle2.Free(); } } public static void ShadeModel(ShadingModel mode) { Core.ShadeModel(mode); } public unsafe static void ShaderSource(int shader, int count, string[] @string, ref int length) { fixed (int* length2 = &length) { Core.ShaderSource((uint)shader, count, @string, length2); } } [CLSCompliant(false)] public unsafe static void ShaderSource(int shader, int count, string[] @string, int* length) { Core.ShaderSource((uint)shader, count, @string, length); } [CLSCompliant(false)] public unsafe static void ShaderSource(uint shader, int count, string[] @string, ref int length) { fixed (int* length2 = &length) { Core.ShaderSource(shader, count, @string, length2); } } [CLSCompliant(false)] public unsafe static void ShaderSource(uint shader, int count, string[] @string, int* length) { Core.ShaderSource(shader, count, @string, length); } public static void StencilFunc(StencilFunction func, int @ref, int mask) { Core.StencilFunc(func, @ref, (uint)mask); } [CLSCompliant(false)] public static void StencilFunc(StencilFunction func, int @ref, uint mask) { Core.StencilFunc(func, @ref, mask); } public static void StencilFuncSeparate(Version20 face, StencilFunction func, int @ref, int mask) { Core.StencilFuncSeparate(face, func, @ref, (uint)mask); } [CLSCompliant(false)] public static void StencilFuncSeparate(Version20 face, StencilFunction func, int @ref, uint mask) { Core.StencilFuncSeparate(face, func, @ref, mask); } public static void StencilMask(int mask) { Core.StencilMask((uint)mask); } [CLSCompliant(false)] public static void StencilMask(uint mask) { Core.StencilMask(mask); } public static void StencilMaskSeparate(StencilFace face, int mask) { Core.StencilMaskSeparate(face, (uint)mask); } [CLSCompliant(false)] public static void StencilMaskSeparate(StencilFace face, uint mask) { Core.StencilMaskSeparate(face, mask); } public static void StencilOp(StencilOp fail, StencilOp zfail, StencilOp zpass) { Core.StencilOp(fail, zfail, zpass); } public static void StencilOpSeparate(StencilFace face, StencilOp sfail, StencilOp dpfail, StencilOp dppass) { Core.StencilOpSeparate(face, sfail, dpfail, dppass); } public static void TexCoord1(double s) { Core.TexCoord1d(s); } [CLSCompliant(false)] public unsafe static void TexCoord1(double* v) { Core.TexCoord1dv(v); } public static void TexCoord1(float s) { Core.TexCoord1f(s); } [CLSCompliant(false)] public unsafe static void TexCoord1(float* v) { Core.TexCoord1fv(v); } public static void TexCoord1(int s) { Core.TexCoord1i(s); } [CLSCompliant(false)] public unsafe static void TexCoord1(int* v) { Core.TexCoord1iv(v); } public static void TexCoord1(short s) { Core.TexCoord1s(s); } [CLSCompliant(false)] public unsafe static void TexCoord1(short* v) { Core.TexCoord1sv(v); } public static void TexCoord2(double s, double t) { Core.TexCoord2d(s, t); } public unsafe static void TexCoord2(double[] v) { fixed (double* v2 = v) { Core.TexCoord2dv(v2); } } public unsafe static void TexCoord2(ref double v) { fixed (double* v2 = &v) { Core.TexCoord2dv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord2(double* v) { Core.TexCoord2dv(v); } public static void TexCoord2(float s, float t) { Core.TexCoord2f(s, t); } public unsafe static void TexCoord2(float[] v) { fixed (float* v2 = v) { Core.TexCoord2fv(v2); } } public unsafe static void TexCoord2(ref float v) { fixed (float* v2 = &v) { Core.TexCoord2fv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord2(float* v) { Core.TexCoord2fv(v); } public static void TexCoord2(int s, int t) { Core.TexCoord2i(s, t); } public unsafe static void TexCoord2(int[] v) { fixed (int* v2 = v) { Core.TexCoord2iv(v2); } } public unsafe static void TexCoord2(ref int v) { fixed (int* v2 = &v) { Core.TexCoord2iv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord2(int* v) { Core.TexCoord2iv(v); } public static void TexCoord2(short s, short t) { Core.TexCoord2s(s, t); } public unsafe static void TexCoord2(short[] v) { fixed (short* v2 = v) { Core.TexCoord2sv(v2); } } public unsafe static void TexCoord2(ref short v) { fixed (short* v2 = &v) { Core.TexCoord2sv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord2(short* v) { Core.TexCoord2sv(v); } public static void TexCoord3(double s, double t, double r) { Core.TexCoord3d(s, t, r); } public unsafe static void TexCoord3(double[] v) { fixed (double* v2 = v) { Core.TexCoord3dv(v2); } } public unsafe static void TexCoord3(ref double v) { fixed (double* v2 = &v) { Core.TexCoord3dv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord3(double* v) { Core.TexCoord3dv(v); } public static void TexCoord3(float s, float t, float r) { Core.TexCoord3f(s, t, r); } public unsafe static void TexCoord3(float[] v) { fixed (float* v2 = v) { Core.TexCoord3fv(v2); } } public unsafe static void TexCoord3(ref float v) { fixed (float* v2 = &v) { Core.TexCoord3fv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord3(float* v) { Core.TexCoord3fv(v); } public static void TexCoord3(int s, int t, int r) { Core.TexCoord3i(s, t, r); } public unsafe static void TexCoord3(int[] v) { fixed (int* v2 = v) { Core.TexCoord3iv(v2); } } public unsafe static void TexCoord3(ref int v) { fixed (int* v2 = &v) { Core.TexCoord3iv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord3(int* v) { Core.TexCoord3iv(v); } public static void TexCoord3(short s, short t, short r) { Core.TexCoord3s(s, t, r); } public unsafe static void TexCoord3(short[] v) { fixed (short* v2 = v) { Core.TexCoord3sv(v2); } } public unsafe static void TexCoord3(ref short v) { fixed (short* v2 = &v) { Core.TexCoord3sv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord3(short* v) { Core.TexCoord3sv(v); } public static void TexCoord4(double s, double t, double r, double q) { Core.TexCoord4d(s, t, r, q); } public unsafe static void TexCoord4(double[] v) { fixed (double* v2 = v) { Core.TexCoord4dv(v2); } } public unsafe static void TexCoord4(ref double v) { fixed (double* v2 = &v) { Core.TexCoord4dv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord4(double* v) { Core.TexCoord4dv(v); } public static void TexCoord4(float s, float t, float r, float q) { Core.TexCoord4f(s, t, r, q); } public unsafe static void TexCoord4(float[] v) { fixed (float* v2 = v) { Core.TexCoord4fv(v2); } } public unsafe static void TexCoord4(ref float v) { fixed (float* v2 = &v) { Core.TexCoord4fv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord4(float* v) { Core.TexCoord4fv(v); } public static void TexCoord4(int s, int t, int r, int q) { Core.TexCoord4i(s, t, r, q); } public unsafe static void TexCoord4(int[] v) { fixed (int* v2 = v) { Core.TexCoord4iv(v2); } } public unsafe static void TexCoord4(ref int v) { fixed (int* v2 = &v) { Core.TexCoord4iv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord4(int* v) { Core.TexCoord4iv(v); } public static void TexCoord4(short s, short t, short r, short q) { Core.TexCoord4s(s, t, r, q); } public unsafe static void TexCoord4(short[] v) { fixed (short* v2 = v) { Core.TexCoord4sv(v2); } } public unsafe static void TexCoord4(ref short v) { fixed (short* v2 = &v) { Core.TexCoord4sv(v2); } } [CLSCompliant(false)] public unsafe static void TexCoord4(short* v) { Core.TexCoord4sv(v); } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, IntPtr pointer) { Core.TexCoordPointer(size, type, stride, pointer); } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, [In][Out] T3[] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.TexCoordPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, [In][Out] T3[,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.TexCoordPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, [In][Out] T3[,,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.TexCoordPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, [In][Out] ref T3 pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.TexCoordPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, float param) { Core.TexEnvf(target, pname, param); } public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.TexEnvfv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, float* @params) { Core.TexEnvfv(target, pname, @params); } public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, int param) { Core.TexEnvi(target, pname, param); } public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.TexEnviv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, int* @params) { Core.TexEnviv(target, pname, @params); } public static void TexGend(TextureCoordName coord, TextureGenParameter pname, double param) { Core.TexGend(coord, pname, param); } public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, double[] @params) { fixed (double* params2 = @params) { Core.TexGendv(coord, pname, params2); } } public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, ref double @params) { fixed (double* params2 = &@params) { Core.TexGendv(coord, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, double* @params) { Core.TexGendv(coord, pname, @params); } public static void TexGen(TextureCoordName coord, TextureGenParameter pname, float param) { Core.TexGenf(coord, pname, param); } public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, float[] @params) { fixed (float* params2 = @params) { Core.TexGenfv(coord, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, float* @params) { Core.TexGenfv(coord, pname, @params); } public static void TexGen(TextureCoordName coord, TextureGenParameter pname, int param) { Core.TexGeni(coord, pname, param); } public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, int[] @params) { fixed (int* params2 = @params) { Core.TexGeniv(coord, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexGen(TextureCoordName coord, TextureGenParameter pname, int* @params) { Core.TexGeniv(coord, pname, @params); } public static void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexImage1D(target, level, internalformat, width, border, format, type, pixels); } public static void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, [In][Out] T7[] pixels) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage1D(target, level, internalformat, width, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, [In][Out] T7[,] pixels) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage1D(target, level, internalformat, width, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, [In][Out] T7[,,] pixels) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage1D(target, level, internalformat, width, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage1D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int border, PixelFormat format, PixelType type, [In][Out] ref T7 pixels) where T7 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage1D(target, level, internalformat, width, border, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T7)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels); } public static void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, [In][Out] T8[] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage2D(target, level, internalformat, width, height, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, [In][Out] T8[,] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage2D(target, level, internalformat, width, height, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, [In][Out] T8[,,] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage2D(target, level, internalformat, width, height, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage2D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int border, PixelFormat format, PixelType type, [In][Out] ref T8 pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage2D(target, level, internalformat, width, height, border, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T8)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels); } public static void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, [In][Out] T9[] pixels) where T9 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, [In][Out] T9[,] pixels) where T9 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, [In][Out] T9[,,] pixels) where T9 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexImage3D(TextureTarget target, int level, PixelInternalFormat internalformat, int width, int height, int depth, int border, PixelFormat format, PixelType type, [In][Out] ref T9 pixels) where T9 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T9)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexParameter(TextureTarget target, TextureParameterName pname, float param) { Core.TexParameterf(target, pname, param); } public unsafe static void TexParameter(TextureTarget target, TextureParameterName pname, float[] @params) { fixed (float* params2 = @params) { Core.TexParameterfv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexParameter(TextureTarget target, TextureParameterName pname, float* @params) { Core.TexParameterfv(target, pname, @params); } public static void TexParameter(TextureTarget target, TextureParameterName pname, int param) { Core.TexParameteri(target, pname, param); } public unsafe static void TexParameter(TextureTarget target, TextureParameterName pname, int[] @params) { fixed (int* params2 = @params) { Core.TexParameteriv(target, pname, params2); } } [CLSCompliant(false)] public unsafe static void TexParameter(TextureTarget target, TextureParameterName pname, int* @params) { Core.TexParameteriv(target, pname, @params); } public static void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexSubImage1D(target, level, xoffset, width, format, type, pixels); } public static void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, [In][Out] T6[] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage1D(target, level, xoffset, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, [In][Out] T6[,] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage1D(target, level, xoffset, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, [In][Out] T6[,,] pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage1D(target, level, xoffset, width, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage1D(TextureTarget target, int level, int xoffset, int width, PixelFormat format, PixelType type, [In][Out] ref T6 pixels) where T6 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage1D(target, level, xoffset, width, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T6)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); } public static void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, [In][Out] T8[] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, [In][Out] T8[,] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, [In][Out] T8[,,] pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int width, int height, PixelFormat format, PixelType type, [In][Out] ref T8 pixels) where T8 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T8)gCHandle.Target; } finally { gCHandle.Free(); } } public static void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, IntPtr pixels) { Core.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); } public static void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, [In][Out] T10[] pixels) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, [In][Out] T10[,] pixels) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, [In][Out] T10[,,] pixels) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void TexSubImage3D(TextureTarget target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, PixelFormat format, PixelType type, [In][Out] ref T10 pixels) where T10 : struct { GCHandle gCHandle = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { Core.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, gCHandle.AddrOfPinnedObject()); pixels = (T10)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Translate(double x, double y, double z) { Core.Translated(x, y, z); } public static void Translate(float x, float y, float z) { Core.Translatef(x, y, z); } public static void Uniform1(int location, float v0) { Core.Uniform1f(location, v0); } public unsafe static void Uniform1(int location, int count, float[] value) { fixed (float* value2 = value) { Core.Uniform1fv(location, count, value2); } } public unsafe static void Uniform1(int location, int count, ref float value) { fixed (float* value2 = &value) { Core.Uniform1fv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform1(int location, int count, float* value) { Core.Uniform1fv(location, count, value); } public static void Uniform1(int location, int v0) { Core.Uniform1i(location, v0); } public unsafe static void Uniform1(int location, int count, int[] value) { fixed (int* value2 = value) { Core.Uniform1iv(location, count, value2); } } public unsafe static void Uniform1(int location, int count, ref int value) { fixed (int* value2 = &value) { Core.Uniform1iv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform1(int location, int count, int* value) { Core.Uniform1iv(location, count, value); } public static void Uniform2(int location, float v0, float v1) { Core.Uniform2f(location, v0, v1); } public unsafe static void Uniform2(int location, int count, float[] value) { fixed (float* value2 = value) { Core.Uniform2fv(location, count, value2); } } public unsafe static void Uniform2(int location, int count, ref float value) { fixed (float* value2 = &value) { Core.Uniform2fv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform2(int location, int count, float* value) { Core.Uniform2fv(location, count, value); } public static void Uniform2(int location, int v0, int v1) { Core.Uniform2i(location, v0, v1); } public unsafe static void Uniform2(int location, int count, int[] value) { fixed (int* value2 = value) { Core.Uniform2iv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform2(int location, int count, int* value) { Core.Uniform2iv(location, count, value); } public static void Uniform3(int location, float v0, float v1, float v2) { Core.Uniform3f(location, v0, v1, v2); } public unsafe static void Uniform3(int location, int count, float[] value) { fixed (float* value2 = value) { Core.Uniform3fv(location, count, value2); } } public unsafe static void Uniform3(int location, int count, ref float value) { fixed (float* value2 = &value) { Core.Uniform3fv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform3(int location, int count, float* value) { Core.Uniform3fv(location, count, value); } public static void Uniform3(int location, int v0, int v1, int v2) { Core.Uniform3i(location, v0, v1, v2); } public unsafe static void Uniform3(int location, int count, int[] value) { fixed (int* value2 = value) { Core.Uniform3iv(location, count, value2); } } public unsafe static void Uniform3(int location, int count, ref int value) { fixed (int* value2 = &value) { Core.Uniform3iv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform3(int location, int count, int* value) { Core.Uniform3iv(location, count, value); } public static void Uniform4(int location, float v0, float v1, float v2, float v3) { Core.Uniform4f(location, v0, v1, v2, v3); } public unsafe static void Uniform4(int location, int count, float[] value) { fixed (float* value2 = value) { Core.Uniform4fv(location, count, value2); } } public unsafe static void Uniform4(int location, int count, ref float value) { fixed (float* value2 = &value) { Core.Uniform4fv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform4(int location, int count, float* value) { Core.Uniform4fv(location, count, value); } public static void Uniform4(int location, int v0, int v1, int v2, int v3) { Core.Uniform4i(location, v0, v1, v2, v3); } public unsafe static void Uniform4(int location, int count, int[] value) { fixed (int* value2 = value) { Core.Uniform4iv(location, count, value2); } } public unsafe static void Uniform4(int location, int count, ref int value) { fixed (int* value2 = &value) { Core.Uniform4iv(location, count, value2); } } [CLSCompliant(false)] public unsafe static void Uniform4(int location, int count, int* value) { Core.Uniform4iv(location, count, value); } public unsafe static void UniformMatrix2(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix2fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix2(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix2fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix2(int location, int count, bool transpose, float* value) { Core.UniformMatrix2fv(location, count, transpose, value); } public unsafe static void UniformMatrix2x4(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix2x4fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix2x4(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix2x4fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix2x4(int location, int count, bool transpose, float* value) { Core.UniformMatrix2x4fv(location, count, transpose, value); } public unsafe static void UniformMatrix3(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix3fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix3(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix3fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix3(int location, int count, bool transpose, float* value) { Core.UniformMatrix3fv(location, count, transpose, value); } public unsafe static void UniformMatrix3x2(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix3x2fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix3x2(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix3x2fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix3x2(int location, int count, bool transpose, float* value) { Core.UniformMatrix3x2fv(location, count, transpose, value); } public unsafe static void UniformMatrix3x4(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix3x4fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix3x4(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix3x4fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix4(int location, int count, bool transpose, double* value) { Core.UniformMatrix4dv(location, count, transpose, value); } public unsafe static void UniformMatrix4(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix4fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix4(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix4fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix4(int location, int count, bool transpose, float* value) { Core.UniformMatrix4fv(location, count, transpose, value); } public unsafe static void UniformMatrix4x2(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix4x2fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix4x2(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix4x2fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix4x2(int location, int count, bool transpose, float* value) { Core.UniformMatrix4x2fv(location, count, transpose, value); } public unsafe static void UniformMatrix4x3(int location, int count, bool transpose, float[] value) { fixed (float* value2 = value) { Core.UniformMatrix4x3fv(location, count, transpose, value2); } } public unsafe static void UniformMatrix4x3(int location, int count, bool transpose, ref float value) { fixed (float* value2 = &value) { Core.UniformMatrix4x3fv(location, count, transpose, value2); } } [CLSCompliant(false)] public unsafe static void UniformMatrix4x3(int location, int count, bool transpose, float* value) { Core.UniformMatrix4x3fv(location, count, transpose, value); } public static bool UnmapBuffer(BufferTarget target) { return Core.UnmapBuffer(target); } public static void UseProgram(int program) { Core.UseProgram((uint)program); } [CLSCompliant(false)] public static void UseProgram(uint program) { Core.UseProgram(program); } public static void ValidateProgram(int program) { Core.ValidateProgram((uint)program); } [CLSCompliant(false)] public static void ValidateProgram(uint program) { Core.ValidateProgram(program); } public static void Vertex2(double x, double y) { Core.Vertex2d(x, y); } public unsafe static void Vertex2(double[] v) { fixed (double* v2 = v) { Core.Vertex2dv(v2); } } public unsafe static void Vertex2(ref double v) { fixed (double* v2 = &v) { Core.Vertex2dv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex2(double* v) { Core.Vertex2dv(v); } public static void Vertex2(float x, float y) { Core.Vertex2f(x, y); } public unsafe static void Vertex2(float[] v) { fixed (float* v2 = v) { Core.Vertex2fv(v2); } } public unsafe static void Vertex2(ref float v) { fixed (float* v2 = &v) { Core.Vertex2fv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex2(float* v) { Core.Vertex2fv(v); } public static void Vertex2(int x, int y) { Core.Vertex2i(x, y); } public unsafe static void Vertex2(int[] v) { fixed (int* v2 = v) { Core.Vertex2iv(v2); } } public unsafe static void Vertex2(ref int v) { fixed (int* v2 = &v) { Core.Vertex2iv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex2(int* v) { Core.Vertex2iv(v); } public static void Vertex2(short x, short y) { Core.Vertex2s(x, y); } public unsafe static void Vertex2(short[] v) { fixed (short* v2 = v) { Core.Vertex2sv(v2); } } public unsafe static void Vertex2(ref short v) { fixed (short* v2 = &v) { Core.Vertex2sv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex2(short* v) { Core.Vertex2sv(v); } public static void Vertex3(double x, double y, double z) { Core.Vertex3d(x, y, z); } public unsafe static void Vertex3(double[] v) { fixed (double* v2 = v) { Core.Vertex3dv(v2); } } public unsafe static void Vertex3(ref double v) { fixed (double* v2 = &v) { Core.Vertex3dv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex3(double* v) { Core.Vertex3dv(v); } public static void Vertex3(float x, float y, float z) { Core.Vertex3f(x, y, z); } public unsafe static void Vertex3(float[] v) { fixed (float* v2 = v) { Core.Vertex3fv(v2); } } public unsafe static void Vertex3(ref float v) { fixed (float* v2 = &v) { Core.Vertex3fv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex3(float* v) { Core.Vertex3fv(v); } public static void Vertex3(int x, int y, int z) { Core.Vertex3i(x, y, z); } public unsafe static void Vertex3(int[] v) { fixed (int* v2 = v) { Core.Vertex3iv(v2); } } public unsafe static void Vertex3(ref int v) { fixed (int* v2 = &v) { Core.Vertex3iv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex3(int* v) { Core.Vertex3iv(v); } public static void Vertex3(short x, short y, short z) { Core.Vertex3s(x, y, z); } public unsafe static void Vertex3(short[] v) { fixed (short* v2 = v) { Core.Vertex3sv(v2); } } public unsafe static void Vertex3(ref short v) { fixed (short* v2 = &v) { Core.Vertex3sv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex3(short* v) { Core.Vertex3sv(v); } public static void Vertex4(double x, double y, double z, double w) { Core.Vertex4d(x, y, z, w); } public unsafe static void Vertex4(double[] v) { fixed (double* v2 = v) { Core.Vertex4dv(v2); } } public unsafe static void Vertex4(ref double v) { fixed (double* v2 = &v) { Core.Vertex4dv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex4(double* v) { Core.Vertex4dv(v); } public static void Vertex4(float x, float y, float z, float w) { Core.Vertex4f(x, y, z, w); } public unsafe static void Vertex4(float[] v) { fixed (float* v2 = v) { Core.Vertex4fv(v2); } } public unsafe static void Vertex4(ref float v) { fixed (float* v2 = &v) { Core.Vertex4fv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex4(float* v) { Core.Vertex4fv(v); } public static void Vertex4(int x, int y, int z, int w) { Core.Vertex4i(x, y, z, w); } public unsafe static void Vertex4(int[] v) { fixed (int* v2 = v) { Core.Vertex4iv(v2); } } public unsafe static void Vertex4(ref int v) { fixed (int* v2 = &v) { Core.Vertex4iv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex4(int* v) { Core.Vertex4iv(v); } public static void Vertex4(short x, short y, short z, short w) { Core.Vertex4s(x, y, z, w); } public unsafe static void Vertex4(short[] v) { fixed (short* v2 = v) { Core.Vertex4sv(v2); } } public unsafe static void Vertex4(ref short v) { fixed (short* v2 = &v) { Core.Vertex4sv(v2); } } [CLSCompliant(false)] public unsafe static void Vertex4(short* v) { Core.Vertex4sv(v); } public static void VertexAttrib1(int index, double x) { Core.VertexAttrib1d((uint)index, x); } [CLSCompliant(false)] public static void VertexAttrib1(uint index, double x) { Core.VertexAttrib1d(index, x); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(int index, double* v) { Core.VertexAttrib1dv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(uint index, double* v) { Core.VertexAttrib1dv(index, v); } public static void VertexAttrib1(int index, float x) { Core.VertexAttrib1f((uint)index, x); } [CLSCompliant(false)] public static void VertexAttrib1(uint index, float x) { Core.VertexAttrib1f(index, x); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(int index, float* v) { Core.VertexAttrib1fv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(uint index, float* v) { Core.VertexAttrib1fv(index, v); } public static void VertexAttrib1(int index, short x) { Core.VertexAttrib1s((uint)index, x); } [CLSCompliant(false)] public static void VertexAttrib1(uint index, short x) { Core.VertexAttrib1s(index, x); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(int index, short* v) { Core.VertexAttrib1sv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib1(uint index, short* v) { Core.VertexAttrib1sv(index, v); } public static void VertexAttrib2(int index, double x, double y) { Core.VertexAttrib2d((uint)index, x, y); } [CLSCompliant(false)] public static void VertexAttrib2(uint index, double x, double y) { Core.VertexAttrib2d(index, x, y); } public unsafe static void VertexAttrib2(int index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib2dv((uint)index, v2); } } public unsafe static void VertexAttrib2(int index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib2dv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(int index, double* v) { Core.VertexAttrib2dv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib2dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib2dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, double* v) { Core.VertexAttrib2dv(index, v); } public static void VertexAttrib2(int index, float x, float y) { Core.VertexAttrib2f((uint)index, x, y); } [CLSCompliant(false)] public static void VertexAttrib2(uint index, float x, float y) { Core.VertexAttrib2f(index, x, y); } public unsafe static void VertexAttrib2(int index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib2fv((uint)index, v2); } } public unsafe static void VertexAttrib2(int index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib2fv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(int index, float* v) { Core.VertexAttrib2fv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib2fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib2fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, float* v) { Core.VertexAttrib2fv(index, v); } public static void VertexAttrib2(int index, short x, short y) { Core.VertexAttrib2s((uint)index, x, y); } [CLSCompliant(false)] public static void VertexAttrib2(uint index, short x, short y) { Core.VertexAttrib2s(index, x, y); } public unsafe static void VertexAttrib2(int index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib2sv((uint)index, v2); } } public unsafe static void VertexAttrib2(int index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib2sv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(int index, short* v) { Core.VertexAttrib2sv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib2sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib2sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib2(uint index, short* v) { Core.VertexAttrib2sv(index, v); } public static void VertexAttrib3(int index, double x, double y, double z) { Core.VertexAttrib3d((uint)index, x, y, z); } [CLSCompliant(false)] public static void VertexAttrib3(uint index, double x, double y, double z) { Core.VertexAttrib3d(index, x, y, z); } public unsafe static void VertexAttrib3(int index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib3dv((uint)index, v2); } } public unsafe static void VertexAttrib3(int index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib3dv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(int index, double* v) { Core.VertexAttrib3dv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib3dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib3dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, double* v) { Core.VertexAttrib3dv(index, v); } public static void VertexAttrib3(int index, float x, float y, float z) { Core.VertexAttrib3f((uint)index, x, y, z); } [CLSCompliant(false)] public static void VertexAttrib3(uint index, float x, float y, float z) { Core.VertexAttrib3f(index, x, y, z); } public unsafe static void VertexAttrib3(int index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib3fv((uint)index, v2); } } public unsafe static void VertexAttrib3(int index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib3fv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(int index, float* v) { Core.VertexAttrib3fv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib3fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib3fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, float* v) { Core.VertexAttrib3fv(index, v); } public static void VertexAttrib3(int index, short x, short y, short z) { Core.VertexAttrib3s((uint)index, x, y, z); } [CLSCompliant(false)] public static void VertexAttrib3(uint index, short x, short y, short z) { Core.VertexAttrib3s(index, x, y, z); } public unsafe static void VertexAttrib3(int index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib3sv((uint)index, v2); } } public unsafe static void VertexAttrib3(int index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib3sv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(int index, short* v) { Core.VertexAttrib3sv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib3sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib3sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib3(uint index, short* v) { Core.VertexAttrib3sv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, sbyte[] v) { fixed (sbyte* v2 = v) { Core.VertexAttrib4bv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref sbyte v) { fixed (sbyte* v2 = &v) { Core.VertexAttrib4bv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, sbyte* v) { Core.VertexAttrib4bv(index, v); } public static void VertexAttrib4(int index, double x, double y, double z, double w) { Core.VertexAttrib4d((uint)index, x, y, z, w); } [CLSCompliant(false)] public static void VertexAttrib4(uint index, double x, double y, double z, double w) { Core.VertexAttrib4d(index, x, y, z, w); } public unsafe static void VertexAttrib4(int index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib4dv((uint)index, v2); } } public unsafe static void VertexAttrib4(int index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib4dv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(int index, double* v) { Core.VertexAttrib4dv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, double[] v) { fixed (double* v2 = v) { Core.VertexAttrib4dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref double v) { fixed (double* v2 = &v) { Core.VertexAttrib4dv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, double* v) { Core.VertexAttrib4dv(index, v); } public static void VertexAttrib4(int index, float x, float y, float z, float w) { Core.VertexAttrib4f((uint)index, x, y, z, w); } [CLSCompliant(false)] public static void VertexAttrib4(uint index, float x, float y, float z, float w) { Core.VertexAttrib4f(index, x, y, z, w); } public unsafe static void VertexAttrib4(int index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib4fv((uint)index, v2); } } public unsafe static void VertexAttrib4(int index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib4fv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(int index, float* v) { Core.VertexAttrib4fv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, float[] v) { fixed (float* v2 = v) { Core.VertexAttrib4fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref float v) { fixed (float* v2 = &v) { Core.VertexAttrib4fv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, float* v) { Core.VertexAttrib4fv(index, v); } public unsafe static void VertexAttrib4(int index, int[] v) { fixed (int* v2 = v) { Core.VertexAttrib4iv((uint)index, v2); } } public unsafe static void VertexAttrib4(int index, ref int v) { fixed (int* v2 = &v) { Core.VertexAttrib4iv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(int index, int* v) { Core.VertexAttrib4iv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, int[] v) { fixed (int* v2 = v) { Core.VertexAttrib4iv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref int v) { fixed (int* v2 = &v) { Core.VertexAttrib4iv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, int* v) { Core.VertexAttrib4iv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, sbyte[] v) { fixed (sbyte* v2 = v) { Core.VertexAttrib4Nbv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref sbyte v) { fixed (sbyte* v2 = &v) { Core.VertexAttrib4Nbv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, sbyte* v) { Core.VertexAttrib4Nbv(index, v); } public unsafe static void VertexAttrib4N(int index, int[] v) { fixed (int* v2 = v) { Core.VertexAttrib4Niv((uint)index, v2); } } public unsafe static void VertexAttrib4N(int index, ref int v) { fixed (int* v2 = &v) { Core.VertexAttrib4Niv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(int index, int* v) { Core.VertexAttrib4Niv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, int[] v) { fixed (int* v2 = v) { Core.VertexAttrib4Niv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref int v) { fixed (int* v2 = &v) { Core.VertexAttrib4Niv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, int* v) { Core.VertexAttrib4Niv(index, v); } public unsafe static void VertexAttrib4N(int index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib4Nsv((uint)index, v2); } } public unsafe static void VertexAttrib4N(int index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib4Nsv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(int index, short* v) { Core.VertexAttrib4Nsv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib4Nsv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib4Nsv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, short* v) { Core.VertexAttrib4Nsv(index, v); } public static void VertexAttrib4N(int index, byte x, byte y, byte z, byte w) { Core.VertexAttrib4Nub((uint)index, x, y, z, w); } [CLSCompliant(false)] public static void VertexAttrib4N(uint index, byte x, byte y, byte z, byte w) { Core.VertexAttrib4Nub(index, x, y, z, w); } public unsafe static void VertexAttrib4N(int index, byte[] v) { fixed (byte* v2 = v) { Core.VertexAttrib4Nubv((uint)index, v2); } } public unsafe static void VertexAttrib4N(int index, ref byte v) { fixed (byte* v2 = &v) { Core.VertexAttrib4Nubv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(int index, byte* v) { Core.VertexAttrib4Nubv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, byte[] v) { fixed (byte* v2 = v) { Core.VertexAttrib4Nubv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref byte v) { fixed (byte* v2 = &v) { Core.VertexAttrib4Nubv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, byte* v) { Core.VertexAttrib4Nubv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, uint[] v) { fixed (uint* v2 = v) { Core.VertexAttrib4Nuiv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref uint v) { fixed (uint* v2 = &v) { Core.VertexAttrib4Nuiv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, uint* v) { Core.VertexAttrib4Nuiv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ushort[] v) { fixed (ushort* v2 = v) { Core.VertexAttrib4Nusv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ref ushort v) { fixed (ushort* v2 = &v) { Core.VertexAttrib4Nusv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4N(uint index, ushort* v) { Core.VertexAttrib4Nusv(index, v); } public static void VertexAttrib4(int index, short x, short y, short z, short w) { Core.VertexAttrib4s((uint)index, x, y, z, w); } [CLSCompliant(false)] public static void VertexAttrib4(uint index, short x, short y, short z, short w) { Core.VertexAttrib4s(index, x, y, z, w); } public unsafe static void VertexAttrib4(int index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib4sv((uint)index, v2); } } public unsafe static void VertexAttrib4(int index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib4sv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(int index, short* v) { Core.VertexAttrib4sv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, short[] v) { fixed (short* v2 = v) { Core.VertexAttrib4sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref short v) { fixed (short* v2 = &v) { Core.VertexAttrib4sv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, short* v) { Core.VertexAttrib4sv(index, v); } public unsafe static void VertexAttrib4(int index, byte[] v) { fixed (byte* v2 = v) { Core.VertexAttrib4ubv((uint)index, v2); } } public unsafe static void VertexAttrib4(int index, ref byte v) { fixed (byte* v2 = &v) { Core.VertexAttrib4ubv((uint)index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(int index, byte* v) { Core.VertexAttrib4ubv((uint)index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, byte[] v) { fixed (byte* v2 = v) { Core.VertexAttrib4ubv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref byte v) { fixed (byte* v2 = &v) { Core.VertexAttrib4ubv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, byte* v) { Core.VertexAttrib4ubv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, uint[] v) { fixed (uint* v2 = v) { Core.VertexAttrib4uiv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref uint v) { fixed (uint* v2 = &v) { Core.VertexAttrib4uiv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, uint* v) { Core.VertexAttrib4uiv(index, v); } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ushort[] v) { fixed (ushort* v2 = v) { Core.VertexAttrib4usv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ref ushort v) { fixed (ushort* v2 = &v) { Core.VertexAttrib4usv(index, v2); } } [CLSCompliant(false)] public unsafe static void VertexAttrib4(uint index, ushort* v) { Core.VertexAttrib4usv(index, v); } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, IntPtr pointer) { Core.VertexAttribPointer((uint)index, size, type, normalized, stride, pointer); } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer((uint)index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[,] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer((uint)index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[,,] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer((uint)index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] ref T5 pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer((uint)index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); pointer = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, IntPtr pointer) { Core.VertexAttribPointer(index, size, type, normalized, stride, pointer); } [CLSCompliant(false)] public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer(index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[,] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer(index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] T5[,,] pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer(index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } [CLSCompliant(false)] public static void VertexAttribPointer(uint index, int size, VertexAttribPointerType type, bool normalized, int stride, [In][Out] ref T5 pointer) where T5 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexAttribPointer(index, size, type, normalized, stride, gCHandle.AddrOfPinnedObject()); pointer = (T5)gCHandle.Target; } finally { gCHandle.Free(); } } public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer) { Core.VertexPointer(size, type, stride, pointer); } public static void VertexPointer(int size, VertexPointerType type, int stride, [In][Out] T3[] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexPointer(int size, VertexPointerType type, int stride, [In][Out] T3[,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexPointer(int size, VertexPointerType type, int stride, [In][Out] T3[,,] pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); } finally { gCHandle.Free(); } } public static void VertexPointer(int size, VertexPointerType type, int stride, [In][Out] ref T3 pointer) where T3 : struct { GCHandle gCHandle = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { Core.VertexPointer(size, type, stride, gCHandle.AddrOfPinnedObject()); pointer = (T3)gCHandle.Target; } finally { gCHandle.Free(); } } public static void Viewport(int x, int y, int width, int height) { Core.Viewport(x, y, width, height); } public static void WindowPos2(double x, double y) { Core.WindowPos2d(x, y); } public unsafe static void WindowPos2(double[] v) { fixed (double* v2 = v) { Core.WindowPos2dv(v2); } } public unsafe static void WindowPos2(ref double v) { fixed (double* v2 = &v) { Core.WindowPos2dv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos2(double* v) { Core.WindowPos2dv(v); } public static void WindowPos2(float x, float y) { Core.WindowPos2f(x, y); } public unsafe static void WindowPos2(float[] v) { fixed (float* v2 = v) { Core.WindowPos2fv(v2); } } public unsafe static void WindowPos2(ref float v) { fixed (float* v2 = &v) { Core.WindowPos2fv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos2(float* v) { Core.WindowPos2fv(v); } public static void WindowPos2(int x, int y) { Core.WindowPos2i(x, y); } public unsafe static void WindowPos2(int[] v) { fixed (int* v2 = v) { Core.WindowPos2iv(v2); } } public unsafe static void WindowPos2(ref int v) { fixed (int* v2 = &v) { Core.WindowPos2iv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos2(int* v) { Core.WindowPos2iv(v); } public static void WindowPos2(short x, short y) { Core.WindowPos2s(x, y); } public unsafe static void WindowPos2(short[] v) { fixed (short* v2 = v) { Core.WindowPos2sv(v2); } } public unsafe static void WindowPos2(ref short v) { fixed (short* v2 = &v) { Core.WindowPos2sv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos2(short* v) { Core.WindowPos2sv(v); } public static void WindowPos3(double x, double y, double z) { Core.WindowPos3d(x, y, z); } public unsafe static void WindowPos3(double[] v) { fixed (double* v2 = v) { Core.WindowPos3dv(v2); } } public unsafe static void WindowPos3(ref double v) { fixed (double* v2 = &v) { Core.WindowPos3dv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos3(double* v) { Core.WindowPos3dv(v); } public static void WindowPos3(float x, float y, float z) { Core.WindowPos3f(x, y, z); } public unsafe static void WindowPos3(float[] v) { fixed (float* v2 = v) { Core.WindowPos3fv(v2); } } public unsafe static void WindowPos3(ref float v) { fixed (float* v2 = &v) { Core.WindowPos3fv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos3(float* v) { Core.WindowPos3fv(v); } public static void WindowPos3(int x, int y, int z) { Core.WindowPos3i(x, y, z); } public unsafe static void WindowPos3(int[] v) { fixed (int* v2 = v) { Core.WindowPos3iv(v2); } } public unsafe static void WindowPos3(ref int v) { fixed (int* v2 = &v) { Core.WindowPos3iv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos3(int* v) { Core.WindowPos3iv(v); } public static void WindowPos3(short x, short y, short z) { Core.WindowPos3s(x, y, z); } public unsafe static void WindowPos3(short[] v) { fixed (short* v2 = v) { Core.WindowPos3sv(v2); } } public unsafe static void WindowPos3(ref short v) { fixed (short* v2 = &v) { Core.WindowPos3sv(v2); } } [CLSCompliant(false)] public unsafe static void WindowPos3(short* v) { Core.WindowPos3sv(v); } public static void BindFramebuffer(FramebufferTarget target, int framebuffer) { Core.BindFramebufferEXT(target, (uint)framebuffer); } public static void BindFramebuffer(FramebufferTarget target, uint framebuffer) { Core.BindFramebufferEXT(target, framebuffer); } public static void BindRenderbuffer(RenderbufferTarget target, int renderbuffer) { Core.BindRenderbufferEXT(target, (uint)renderbuffer); } public static void BindRenderbuffer(RenderbufferTarget target, uint renderbuffer) { Core.BindRenderbufferEXT(target, renderbuffer); } public static FramebufferErrorCode CheckFramebufferStatus(FramebufferTarget target) { return Core.CheckFramebufferStatusEXT(target); } public unsafe static void DeleteFramebuffers(int n, int[] framebuffers) { fixed (int* framebuffers2 = framebuffers) { Core.DeleteFramebuffersEXT(n, (uint*)framebuffers2); } } public unsafe static void DeleteFramebuffers(int n, ref int framebuffers) { fixed (int* framebuffers2 = &framebuffers) { Core.DeleteFramebuffersEXT(n, (uint*)framebuffers2); } } public unsafe static void DeleteFramebuffers(int n, int* framebuffers) { Core.DeleteFramebuffersEXT(n, (uint*)framebuffers); } public unsafe static void DeleteFramebuffers(int n, uint[] framebuffers) { fixed (uint* framebuffers2 = framebuffers) { Core.DeleteFramebuffersEXT(n, framebuffers2); } } public unsafe static void DeleteFramebuffers(int n, ref uint framebuffers) { fixed (uint* framebuffers2 = &framebuffers) { Core.DeleteFramebuffersEXT(n, framebuffers2); } } public unsafe static void DeleteFramebuffers(int n, uint* framebuffers) { Core.DeleteFramebuffersEXT(n, framebuffers); } public unsafe static void DeleteRenderbuffers(int n, int[] renderbuffers) { fixed (int* renderbuffers2 = renderbuffers) { Core.DeleteRenderbuffersEXT(n, (uint*)renderbuffers2); } } public unsafe static void DeleteRenderbuffers(int n, ref int renderbuffers) { fixed (int* renderbuffers2 = &renderbuffers) { Core.DeleteRenderbuffersEXT(n, (uint*)renderbuffers2); } } [CLSCompliant(false)] public unsafe static void DeleteRenderbuffers(int n, int* renderbuffers) { Core.DeleteRenderbuffersEXT(n, (uint*)renderbuffers); } [CLSCompliant(false)] public unsafe static void DeleteRenderbuffers(int n, uint[] renderbuffers) { fixed (uint* renderbuffers2 = renderbuffers) { Core.DeleteRenderbuffersEXT(n, renderbuffers2); } } [CLSCompliant(false)] public unsafe static void DeleteRenderbuffers(int n, ref uint renderbuffers) { fixed (uint* renderbuffers2 = &renderbuffers) { Core.DeleteRenderbuffersEXT(n, renderbuffers2); } } [CLSCompliant(false)] public unsafe static void DeleteRenderbuffers(int n, uint* renderbuffers) { Core.DeleteRenderbuffersEXT(n, renderbuffers); } public static void FramebufferRenderbuffer(FramebufferTarget target, FramebufferAttachment attachment, RenderbufferTarget renderbuffertarget, int renderbuffer) { Core.FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, (uint)renderbuffer); } public static void FramebufferRenderbuffer(FramebufferTarget target, FramebufferAttachment attachment, RenderbufferTarget renderbuffertarget, uint renderbuffer) { Core.FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer); } public static void FramebufferTexture1D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, int texture, int level) { Core.FramebufferTexture1DEXT(target, attachment, textarget, (uint)texture, level); } public static void FramebufferTexture1D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level) { Core.FramebufferTexture1DEXT(target, attachment, textarget, texture, level); } public static void FramebufferTexture2D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, int texture, int level) { Core.FramebufferTexture2DEXT(target, attachment, textarget, (uint)texture, level); } [CLSCompliant(false)] public static void FramebufferTexture2D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level) { Core.FramebufferTexture2DEXT(target, attachment, textarget, texture, level); } public static void FramebufferTexture3D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, int texture, int level, int zoffset) { Core.FramebufferTexture3DEXT(target, attachment, textarget, (uint)texture, level, zoffset); } [CLSCompliant(false)] public static void FramebufferTexture3D(FramebufferTarget target, FramebufferAttachment attachment, TextureTarget textarget, uint texture, int level, int zoffset) { Core.FramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset); } public static void FramebufferTexture(FramebufferTarget target, FramebufferAttachment attachment, int texture, int level) { Core.FramebufferTextureEXT(target, attachment, (uint)texture, level); } public static void FramebufferTexture(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level) { Core.FramebufferTextureEXT(target, attachment, texture, level); } public static void FramebufferTextureFace(FramebufferTarget target, FramebufferAttachment attachment, int texture, int level, TextureTarget face) { Core.FramebufferTextureFaceEXT(target, attachment, (uint)texture, level, face); } [CLSCompliant(false)] public static void FramebufferTextureFace(FramebufferTarget target, FramebufferAttachment attachment, uint texture, int level, TextureTarget face) { Core.FramebufferTextureFaceEXT(target, attachment, texture, level, face); } public unsafe static void GenFramebuffers(int n, [Out] int[] framebuffers) { fixed (int* framebuffers2 = framebuffers) { Core.GenFramebuffersEXT(n, (uint*)framebuffers2); } } public unsafe static void GenFramebuffers(int n, out int framebuffers) { fixed (int* ptr = &framebuffers) { Core.GenFramebuffersEXT(n, (uint*)ptr); framebuffers = *ptr; } } public unsafe static void GenFramebuffers(int n, [Out] int* framebuffers) { Core.GenFramebuffersEXT(n, (uint*)framebuffers); } public unsafe static void GenFramebuffers(int n, [Out] uint[] framebuffers) { fixed (uint* framebuffers2 = framebuffers) { Core.GenFramebuffersEXT(n, framebuffers2); } } public unsafe static void GenFramebuffers(int n, out uint framebuffers) { fixed (uint* ptr = &framebuffers) { Core.GenFramebuffersEXT(n, ptr); framebuffers = *ptr; } } public unsafe static void GenFramebuffers(int n, [Out] uint* framebuffers) { Core.GenFramebuffersEXT(n, framebuffers); } public unsafe static void GenRenderbuffers(int n, [Out] int[] renderbuffers) { fixed (int* renderbuffers2 = renderbuffers) { Core.GenRenderbuffersEXT(n, (uint*)renderbuffers2); } } public unsafe static void GenRenderbuffers(int n, out int renderbuffers) { fixed (int* ptr = &renderbuffers) { Core.GenRenderbuffersEXT(n, (uint*)ptr); renderbuffers = *ptr; } } public unsafe static void GenRenderbuffers(int n, [Out] int* renderbuffers) { Core.GenRenderbuffersEXT(n, (uint*)renderbuffers); } public unsafe static void GenRenderbuffers(int n, [Out] uint[] renderbuffers) { fixed (uint* renderbuffers2 = renderbuffers) { Core.GenRenderbuffersEXT(n, renderbuffers2); } } public unsafe static void GenRenderbuffers(int n, out uint renderbuffers) { fixed (uint* ptr = &renderbuffers) { Core.GenRenderbuffersEXT(n, ptr); renderbuffers = *ptr; } } public unsafe static void GenRenderbuffers(int n, [Out] uint* renderbuffers) { Core.GenRenderbuffersEXT(n, renderbuffers); } public static bool IsFramebuffer(int framebuffer) { return Core.IsFramebufferEXT((uint)framebuffer); } public static bool IsFramebuffer(uint framebuffer) { return Core.IsFramebufferEXT(framebuffer); } public static bool IsRenderbuffer(int renderbuffer) { return Core.IsRenderbufferEXT((uint)renderbuffer); } public static bool IsRenderbuffer(uint renderbuffer) { return Core.IsRenderbufferEXT(renderbuffer); } public static void ProgramParameter(int program, AssemblyProgramParameterArb pname, int value) { Core.ProgramParameteriEXT((uint)program, pname, value); } [CLSCompliant(false)] public static void ProgramParameter(uint program, AssemblyProgramParameterArb pname, int value) { Core.ProgramParameteriEXT(program, pname, value); } public static void RenderbufferStorage(RenderbufferTarget target, RenderbufferStorage internalformat, int width, int height) { Core.RenderbufferStorageEXT(target, internalformat, width, height); } public unsafe static void DeleteProgram(int n, int[] programs) { fixed (int* programs2 = programs) { Core.DeleteProgramsNV(n, (uint*)programs2); } } public unsafe static void DeleteProgram(int n, ref int programs) { fixed (int* programs2 = &programs) { Core.DeleteProgramsNV(n, (uint*)programs2); } } public static bool IsProgram(int id) { return Core.IsProgramNV((uint)id); } [CLSCompliant(false)] public static bool IsProgram(uint id) { return Core.IsProgramNV(id); } static GL() { sync_root = new object(); } public static void Color3(Color color) { Color3(color.R, color.G, color.B); } public static void Color4(Color color) { Color4(color.R, color.G, color.B, color.A); } public static void Color3(NSColor color) { Color3(color.RedComponent, color.GreenComponent, color.BlueComponent); } public static void Color4(NSColor color) { Color4(color.RedComponent, color.GreenComponent, color.BlueComponent, color.AlphaComponent); } public static void Color3(Vector3 color) { Color3(color.X, color.Y, color.Z); } public static void Color4(Vector4 color) { Color4(color.X, color.Y, color.Z, color.W); } public static void Color4(Color4 color) { Color4(color.R, color.G, color.B, color.A); } public static void ClearColor(Color color) { ClearColor((float)(int)color.R / 255f, (float)(int)color.G / 255f, (float)(int)color.B / 255f, (float)(int)color.A / 255f); } public static void ClearColor(NSColor color) { ClearColor((float)color.RedComponent, (float)color.GreenComponent, (float)color.BlueComponent, (float)color.AlphaComponent); } public static void ClearColor(Color4 color) { ClearColor(color.R, color.G, color.B, color.A); } public static void BlendColor(Color color) { BlendColor((float)(int)color.R / 255f, (float)(int)color.G / 255f, (float)(int)color.B / 255f, (float)(int)color.A / 255f); } public static void BlendColor(NSColor color) { BlendColor((float)color.RedComponent, (float)color.GreenComponent, (float)color.BlueComponent, (float)color.AlphaComponent); } public static void BlendColor(Color4 color) { BlendColor(color.R, color.G, color.B, color.A); } public unsafe static void Material(MaterialFace face, MaterialParameter pname, Vector4 @params) { Material(face, pname, &@params.X); } public unsafe static void Material(MaterialFace face, MaterialParameter pname, Color4 @params) { Material(face, pname, (float*)(&@params)); } public unsafe static void Light(LightName name, LightParameter pname, Vector4 @params) { Light(name, pname, &@params.X); } public unsafe static void Light(LightName name, LightParameter pname, Color4 @params) { Light(name, pname, (float*)(&@params)); } public static void Normal3(Vector3 normal) { Normal3(normal.X, normal.Y, normal.Z); } public static void RasterPos2(Vector2 pos) { RasterPos2(pos.X, pos.Y); } public static void RasterPos3(Vector3 pos) { RasterPos3(pos.X, pos.Y, pos.Z); } public static void RasterPos4(Vector4 pos) { RasterPos4(pos.X, pos.Y, pos.Z, pos.W); } public static void Vertex2(Vector2 v) { Vertex2(v.X, v.Y); } public static void Vertex3(Vector3 v) { Vertex3(v.X, v.Y, v.Z); } public static void Vertex4(Vector4 v) { Vertex4(v.X, v.Y, v.Z, v.W); } public static void TexCoord2(Vector2 v) { TexCoord2(v.X, v.Y); } public static void TexCoord3(Vector3 v) { TexCoord3(v.X, v.Y, v.Z); } public static void TexCoord4(Vector4 v) { TexCoord4(v.X, v.Y, v.Z, v.W); } public static void Rotate(float angle, Vector3 axis) { Rotate(angle, axis.X, axis.Y, axis.Z); } public static void Scale(Vector3 scale) { Scale(scale.X, scale.Y, scale.Z); } public static void Translate(Vector3 trans) { Translate(trans.X, trans.Y, trans.Z); } public unsafe static void MultMatrix(ref Matrix4 mat) { fixed (float* m = &mat.Row0.X) { MultMatrix(m); } } public unsafe static void LoadMatrix(ref Matrix4 mat) { fixed (float* m = &mat.Row0.X) { LoadMatrix(m); } } public unsafe static void LoadTransposeMatrix(ref Matrix4 mat) { fixed (float* m = &mat.Row0.X) { LoadTransposeMatrix(m); } } public unsafe static void MultTransposeMatrix(ref Matrix4 mat) { fixed (float* m = &mat.Row0.X) { MultTransposeMatrix(m); } } public unsafe static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix) { fixed (float* value = &matrix.Row0.X) { UniformMatrix4(location, 1, transpose, value); } } public static void Normal3(Vector3d normal) { Normal3(normal.X, normal.Y, normal.Z); } public static void RasterPos2(Vector2d pos) { RasterPos2(pos.X, pos.Y); } public static void RasterPos3(Vector3d pos) { RasterPos3(pos.X, pos.Y, pos.Z); } public static void RasterPos4(Vector4d pos) { RasterPos4(pos.X, pos.Y, pos.Z, pos.W); } public static void Vertex2(Vector2d v) { Vertex2(v.X, v.Y); } public static void Vertex3(Vector3d v) { Vertex3(v.X, v.Y, v.Z); } public static void Vertex4(Vector4d v) { Vertex4(v.X, v.Y, v.Z, v.W); } public static void TexCoord2(Vector2d v) { TexCoord2(v.X, v.Y); } public static void TexCoord3(Vector3d v) { TexCoord3(v.X, v.Y, v.Z); } public static void TexCoord4(Vector4d v) { TexCoord4(v.X, v.Y, v.Z, v.W); } public static void Rotate(double angle, Vector3d axis) { Rotate(angle, axis.X, axis.Y, axis.Z); } public static void Scale(Vector3d scale) { Scale(scale.X, scale.Y, scale.Z); } public static void Translate(Vector3d trans) { Translate(trans.X, trans.Y, trans.Z); } public unsafe static void MultMatrix(ref Matrix4d mat) { fixed (double* m = &mat.Row0.X) { MultMatrix(m); } } public unsafe static void LoadMatrix(ref Matrix4d mat) { fixed (double* m = &mat.Row0.X) { LoadMatrix(m); } } public unsafe static void LoadTransposeMatrix(ref Matrix4d mat) { fixed (double* m = &mat.Row0.X) { LoadTransposeMatrix(m); } } public unsafe static void MultTransposeMatrix(ref Matrix4d mat) { fixed (double* m = &mat.Row0.X) { MultTransposeMatrix(m); } } [CLSCompliant(false)] public static void Uniform2(int location, ref Vector2 vector) { Uniform2(location, vector.X, vector.Y); } [CLSCompliant(false)] public static void Uniform3(int location, ref Vector3 vector) { Uniform3(location, vector.X, vector.Y, vector.Z); } [CLSCompliant(false)] public static void Uniform4(int location, ref Vector4 vector) { Uniform4(location, vector.X, vector.Y, vector.Z, vector.W); } public static void Uniform2(int location, Vector2 vector) { Uniform2(location, vector.X, vector.Y); } public static void Uniform3(int location, Vector3 vector) { Uniform3(location, vector.X, vector.Y, vector.Z); } public static void Uniform4(int location, Vector4 vector) { Uniform4(location, vector.X, vector.Y, vector.Z, vector.W); } public static void Uniform4(int location, Color4 color) { Uniform4(location, color.R, color.G, color.B, color.A); } public static void Uniform4(int location, Quaternion quaternion) { Uniform4(location, quaternion.X, quaternion.Y, quaternion.Z, quaternion.W); } public static string GetActiveAttrib(int program, int index, out int size, out ActiveAttribType type) { GetProgram(program, OpenGL.ProgramParameter.ActiveAttributeMaxLength, out var @params); StringBuilder stringBuilder = new StringBuilder((@params == 0) ? 1 : (@params * 2)); GetActiveAttrib(program, index, stringBuilder.Capacity, out @params, out size, out type, stringBuilder); return stringBuilder.ToString(); } public static string GetActiveUniform(int program, int uniformIndex, out int size, out ActiveUniformType type) { GetProgram(program, OpenGL.ProgramParameter.ActiveUniformMaxLength, out var @params); StringBuilder stringBuilder = new StringBuilder((@params == 0) ? 1 : @params); GetActiveUniform(program, uniformIndex, stringBuilder.Capacity, out @params, out size, out type, stringBuilder); return stringBuilder.ToString(); } public unsafe static void ShaderSource(int shader, string @string) { int length = @string.Length; ShaderSource((uint)shader, 1, new string[1] { @string }, &length); } public static string GetShaderInfoLog(int shader) { GetShaderInfoLog(shader, out var info); return info; } public unsafe static void GetShaderInfoLog(int shader, out string info) { GetShader(shader, ShaderParameter.InfoLogLength, out var @params); if (@params == 0) { info = string.Empty; return; } StringBuilder stringBuilder = new StringBuilder(@params * 2); GetShaderInfoLog((uint)shader, stringBuilder.Capacity, &@params, stringBuilder); info = stringBuilder.ToString(); } public static string GetProgramInfoLog(int program) { GetProgramInfoLog(program, out var info); return info; } public unsafe static void GetProgramInfoLog(int program, out string info) { GetProgram(program, OpenGL.ProgramParameter.InfoLogLength, out var @params); if (@params == 0) { info = string.Empty; return; } StringBuilder stringBuilder = new StringBuilder(@params * 2); GetProgramInfoLog((uint)program, stringBuilder.Capacity, &@params, stringBuilder); info = stringBuilder.ToString(); } public static void PointParameter(PointSpriteCoordOriginParameter param) { PointParameter(PointParameterName.PointSpriteCoordOrigin, (int)param); } [CLSCompliant(false)] public static void VertexAttrib2(int index, ref Vector2 v) { VertexAttrib2(index, v.X, v.Y); } [CLSCompliant(false)] public static void VertexAttrib3(int index, ref Vector3 v) { VertexAttrib3(index, v.X, v.Y, v.Z); } [CLSCompliant(false)] public static void VertexAttrib4(int index, ref Vector4 v) { VertexAttrib4(index, v.X, v.Y, v.Z, v.W); } public static void VertexAttrib2(int index, Vector2 v) { VertexAttrib2(index, v.X, v.Y); } public static void VertexAttrib3(int index, Vector3 v) { VertexAttrib3(index, v.X, v.Y, v.Z); } public static void VertexAttrib4(int index, Vector4 v) { VertexAttrib4(index, v.X, v.Y, v.Z, v.W); } public static void MultiTexCoord2(TextureUnit target, ref Vector2 v) { MultiTexCoord2(target, v.X, v.Y); } public static void MultiTexCoord3(TextureUnit target, ref Vector3 v) { MultiTexCoord3(target, v.X, v.Y, v.Z); } public static void MultiTexCoord4(TextureUnit target, ref Vector4 v) { MultiTexCoord4(target, v.X, v.Y, v.Z, v.W); } [CLSCompliant(false)] public static void VertexAttrib2(int index, ref Vector2d v) { VertexAttrib2(index, v.X, v.Y); } [CLSCompliant(false)] public static void VertexAttrib3(int index, ref Vector3d v) { VertexAttrib3(index, v.X, v.Y, v.Z); } [CLSCompliant(false)] public static void VertexAttrib4(int index, ref Vector4d v) { VertexAttrib4(index, v.X, v.Y, v.Z, v.W); } public static void VertexAttrib2(int index, Vector2d v) { VertexAttrib2(index, v.X, v.Y); } public static void VertexAttrib3(int index, Vector3d v) { VertexAttrib3(index, v.X, v.Y, v.Z); } public static void VertexAttrib4(int index, Vector4d v) { VertexAttrib4(index, v.X, v.Y, v.Z, v.W); } public static void MultiTexCoord2(TextureUnit target, ref Vector2d v) { MultiTexCoord2(target, v.X, v.Y); } public static void MultiTexCoord3(TextureUnit target, ref Vector3d v) { MultiTexCoord3(target, v.X, v.Y, v.Z); } public static void MultiTexCoord4(TextureUnit target, ref Vector4d v) { MultiTexCoord4(target, v.X, v.Y, v.Z, v.W); } public static void Rect(RectangleF rect) { Rect(rect.Left, rect.Top, rect.Right, rect.Bottom); } public static void Rect(Rectangle rect) { Rect(rect.Left, rect.Top, rect.Right, rect.Bottom); } [CLSCompliant(false)] public static void Rect(ref RectangleF rect) { Rect(rect.Left, rect.Top, rect.Right, rect.Bottom); } [CLSCompliant(false)] public static void Rect(ref Rectangle rect) { Rect(rect.Left, rect.Top, rect.Right, rect.Bottom); } public static int GenTexture() { GenTextures(1, out int textures); return textures; } public static void DeleteTexture(int id) { DeleteTextures(1, ref id); } [CLSCompliant(false)] public static void DeleteTexture(uint id) { DeleteTextures(1, ref id); } public static void VertexPointer(int size, VertexPointerType type, int stride, int offset) { VertexPointer(size, type, stride, (IntPtr)offset); } public static void NormalPointer(NormalPointerType type, int stride, int offset) { NormalPointer(type, stride, (IntPtr)offset); } public static void IndexPointer(IndexPointerType type, int stride, int offset) { IndexPointer(type, stride, (IntPtr)offset); } public static void ColorPointer(int size, ColorPointerType type, int stride, int offset) { ColorPointer(size, type, stride, (IntPtr)offset); } public static void FogCoordPointer(FogPointerType type, int stride, int offset) { FogCoordPointer(type, stride, (IntPtr)offset); } public static void EdgeFlagPointer(int stride, int offset) { EdgeFlagPointer(stride, (IntPtr)offset); } public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, int offset) { TexCoordPointer(size, type, stride, (IntPtr)offset); } public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset) { VertexAttribPointer(index, size, type, normalized, stride, (IntPtr)offset); } public static void DrawElements(BeginMode mode, int count, DrawElementsType type, int offset) { DrawElements(mode, count, type, new IntPtr(offset)); } public unsafe static void GetFloat(GetPName pname, out Vector2 vector) { fixed (Vector2* @params = &vector) { GetFloat(pname, (float*)@params); } } public unsafe static void GetFloat(GetPName pname, out Vector3 vector) { fixed (Vector3* @params = &vector) { GetFloat(pname, (float*)@params); } } public unsafe static void GetFloat(GetPName pname, out Vector4 vector) { fixed (Vector4* @params = &vector) { GetFloat(pname, (float*)@params); } } public unsafe static void GetFloat(GetPName pname, out Matrix4 matrix) { fixed (Matrix4* @params = &matrix) { GetFloat(pname, (float*)@params); } } public unsafe static void GetDouble(GetPName pname, out Vector2d vector) { fixed (Vector2d* @params = &vector) { GetDouble(pname, (double*)@params); } } public unsafe static void GetDouble(GetPName pname, out Vector3d vector) { fixed (Vector3d* @params = &vector) { GetDouble(pname, (double*)@params); } } public unsafe static void GetDouble(GetPName pname, out Vector4d vector) { fixed (Vector4d* @params = &vector) { GetDouble(pname, (double*)@params); } } public unsafe static void GetDouble(GetPName pname, out Matrix4d matrix) { fixed (Matrix4d* @params = &matrix) { GetDouble(pname, (double*)@params); } } public static void Viewport(Size size) { Viewport(0, 0, size.Width, size.Height); } public static void Viewport(Point location, Size size) { Viewport(location.X, location.Y, size.Width, size.Height); } public static void Viewport(Rectangle rectangle) { Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color color) { Color4 color2 = new Color4(color.R, color.G, color.B, color.A); TexEnv(target, pname, &color2.R); } public unsafe static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color4 color) { TexEnv(target, pname, &color.R); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GenerateMipmapTarget.cs ================================================ namespace OpenGL; public enum GenerateMipmapTarget { Texture1D = 3552, Texture2D = 3553, Texture3D = 32879, TextureCubeMap = 34067, Texture1DArray = 35864, Texture2DArray = 35866, Texture2DMultisample = 37120, Texture2DMultisampleArray = 37122 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetColorTableParameterPName.cs ================================================ namespace OpenGL; public enum GetColorTableParameterPName { ColorTableScale = 32982, ColorTableBias, ColorTableFormat, ColorTableWidth, ColorTableRedSize, ColorTableGreenSize, ColorTableBlueSize, ColorTableAlphaSize, ColorTableLuminanceSize, ColorTableIntensitySize } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetColorTableParameterPNameSgi.cs ================================================ namespace OpenGL; public enum GetColorTableParameterPNameSgi { ColorTableScaleSgi = 32982, ColorTableBiasSgi, ColorTableFormatSgi, ColorTableWidthSgi, ColorTableRedSizeSgi, ColorTableGreenSizeSgi, ColorTableBlueSizeSgi, ColorTableAlphaSizeSgi, ColorTableLuminanceSizeSgi, ColorTableIntensitySizeSgi } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetConvolutionParameter.cs ================================================ namespace OpenGL; public enum GetConvolutionParameter { ConvolutionBorderModeExt = 32787, ConvolutionFilterScaleExt = 32788, ConvolutionFilterBiasExt = 32789, ConvolutionFormatExt = 32791, ConvolutionWidthExt = 32792, ConvolutionHeightExt = 32793, MaxConvolutionWidthExt = 32794, MaxConvolutionHeightExt = 32795 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetConvolutionParameterPName.cs ================================================ namespace OpenGL; public enum GetConvolutionParameterPName { ConvolutionBorderMode = 32787, ConvolutionFilterScale = 32788, ConvolutionFilterBias = 32789, ConvolutionFormat = 32791, ConvolutionWidth = 32792, ConvolutionHeight = 32793, MaxConvolutionWidth = 32794, MaxConvolutionHeight = 32795, ConvolutionBorderColor = 33108 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetHistogramParameterPName.cs ================================================ namespace OpenGL; public enum GetHistogramParameterPName { HistogramWidth = 32806, HistogramFormat, HistogramRedSize, HistogramGreenSize, HistogramBlueSize, HistogramAlphaSize, HistogramLuminanceSize, HistogramSink } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetHistogramParameterPNameExt.cs ================================================ namespace OpenGL; public enum GetHistogramParameterPNameExt { HistogramWidthExt = 32806, HistogramFormatExt, HistogramRedSizeExt, HistogramGreenSizeExt, HistogramBlueSizeExt, HistogramAlphaSizeExt, HistogramLuminanceSizeExt, HistogramSinkExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetIndexedPName.cs ================================================ namespace OpenGL; public enum GetIndexedPName { DepthRange = 2928, Viewport = 2978, ScissorBox = 3088, UniformBufferBinding = 35368, UniformBufferStart = 35369, UniformBufferSize = 35370, TransformFeedbackBufferStart = 35972, TransformFeedbackBufferSize = 35973, TransformFeedbackBufferBinding = 35983, SampleMaskValue = 36434 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetMapQuery.cs ================================================ namespace OpenGL; public enum GetMapQuery { Coeff = 2560, Order, Domain } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetMinmaxParameterPName.cs ================================================ namespace OpenGL; public enum GetMinmaxParameterPName { MinmaxFormat = 32815, MinmaxSink } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetMinmaxParameterPNameExt.cs ================================================ namespace OpenGL; public enum GetMinmaxParameterPNameExt { MinmaxFormatExt = 32815, MinmaxSinkExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetMultisamplePName.cs ================================================ namespace OpenGL; public enum GetMultisamplePName { SamplePosition = 36432 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetPName.cs ================================================ namespace OpenGL; public enum GetPName { CurrentColor = 2816, CurrentIndex = 2817, CurrentNormal = 2818, CurrentTextureCoords = 2819, CurrentRasterColor = 2820, CurrentRasterIndex = 2821, CurrentRasterTextureCoords = 2822, CurrentRasterPosition = 2823, CurrentRasterPositionValid = 2824, CurrentRasterDistance = 2825, PointSmooth = 2832, PointSize = 2833, PointSizeRange = 2834, SmoothPointSizeRange = 2834, PointSizeGranularity = 2835, SmoothPointSizeGranularity = 2835, LineSmooth = 2848, LineWidth = 2849, LineWidthRange = 2850, SmoothLineWidthRange = 2850, LineWidthGranularity = 2851, SmoothLineWidthGranularity = 2851, LineStipple = 2852, LineStipplePattern = 2853, LineStippleRepeat = 2854, ListMode = 2864, MaxListNesting = 2865, ListBase = 2866, ListIndex = 2867, PolygonMode = 2880, PolygonSmooth = 2881, PolygonStipple = 2882, EdgeFlag = 2883, CullFace = 2884, CullFaceMode = 2885, FrontFace = 2886, Lighting = 2896, LightModelLocalViewer = 2897, LightModelTwoSide = 2898, LightModelAmbient = 2899, ShadeModel = 2900, ColorMaterialFace = 2901, ColorMaterialParameter = 2902, ColorMaterial = 2903, Fog = 2912, FogIndex = 2913, FogDensity = 2914, FogStart = 2915, FogEnd = 2916, FogMode = 2917, FogColor = 2918, DepthRange = 2928, DepthTest = 2929, DepthWritemask = 2930, DepthClearValue = 2931, DepthFunc = 2932, AccumClearValue = 2944, StencilTest = 2960, StencilClearValue = 2961, StencilFunc = 2962, StencilValueMask = 2963, StencilFail = 2964, StencilPassDepthFail = 2965, StencilPassDepthPass = 2966, StencilRef = 2967, StencilWritemask = 2968, MatrixMode = 2976, Normalize = 2977, Viewport = 2978, ModelviewStackDepth = 2979, ProjectionStackDepth = 2980, TextureStackDepth = 2981, ModelviewMatrix = 2982, ProjectionMatrix = 2983, TextureMatrix = 2984, AttribStackDepth = 2992, ClientAttribStackDepth = 2993, AlphaTest = 3008, AlphaTestFunc = 3009, AlphaTestRef = 3010, Dither = 3024, BlendDst = 3040, BlendSrc = 3041, Blend = 3042, LogicOpMode = 3056, IndexLogicOp = 3057, LogicOp = 3057, ColorLogicOp = 3058, AuxBuffers = 3072, DrawBuffer = 3073, ReadBuffer = 3074, ScissorBox = 3088, ScissorTest = 3089, IndexClearValue = 3104, IndexWritemask = 3105, ColorClearValue = 3106, ColorWritemask = 3107, IndexMode = 3120, RgbaMode = 3121, Doublebuffer = 3122, Stereo = 3123, RenderMode = 3136, PerspectiveCorrectionHint = 3152, PointSmoothHint = 3153, LineSmoothHint = 3154, PolygonSmoothHint = 3155, FogHint = 3156, TextureGenS = 3168, TextureGenT = 3169, TextureGenR = 3170, TextureGenQ = 3171, PixelMapIToISize = 3248, PixelMapSToSSize = 3249, PixelMapIToRSize = 3250, PixelMapIToGSize = 3251, PixelMapIToBSize = 3252, PixelMapIToASize = 3253, PixelMapRToRSize = 3254, PixelMapGToGSize = 3255, PixelMapBToBSize = 3256, PixelMapAToASize = 3257, UnpackSwapBytes = 3312, UnpackLsbFirst = 3313, UnpackRowLength = 3314, UnpackSkipRows = 3315, UnpackSkipPixels = 3316, UnpackAlignment = 3317, PackSwapBytes = 3328, PackLsbFirst = 3329, PackRowLength = 3330, PackSkipRows = 3331, PackSkipPixels = 3332, PackAlignment = 3333, MapColor = 3344, MapStencil = 3345, IndexShift = 3346, IndexOffset = 3347, RedScale = 3348, RedBias = 3349, ZoomX = 3350, ZoomY = 3351, GreenScale = 3352, GreenBias = 3353, BlueScale = 3354, BlueBias = 3355, AlphaScale = 3356, AlphaBias = 3357, DepthScale = 3358, DepthBias = 3359, MaxEvalOrder = 3376, MaxLights = 3377, MaxClipDistances = 3378, MaxClipPlanes = 3378, MaxTextureSize = 3379, MaxPixelMapTable = 3380, MaxAttribStackDepth = 3381, MaxModelviewStackDepth = 3382, MaxNameStackDepth = 3383, MaxProjectionStackDepth = 3384, MaxTextureStackDepth = 3385, MaxViewportDims = 3386, MaxClientAttribStackDepth = 3387, SubpixelBits = 3408, IndexBits = 3409, RedBits = 3410, GreenBits = 3411, BlueBits = 3412, AlphaBits = 3413, DepthBits = 3414, StencilBits = 3415, AccumRedBits = 3416, AccumGreenBits = 3417, AccumBlueBits = 3418, AccumAlphaBits = 3419, NameStackDepth = 3440, AutoNormal = 3456, Map1Color4 = 3472, Map1Index = 3473, Map1Normal = 3474, Map1TextureCoord1 = 3475, Map1TextureCoord2 = 3476, Map1TextureCoord3 = 3477, Map1TextureCoord4 = 3478, Map1Vertex3 = 3479, Map1Vertex4 = 3480, Map2Color4 = 3504, Map2Index = 3505, Map2Normal = 3506, Map2TextureCoord1 = 3507, Map2TextureCoord2 = 3508, Map2TextureCoord3 = 3509, Map2TextureCoord4 = 3510, Map2Vertex3 = 3511, Map2Vertex4 = 3512, Map1GridDomain = 3536, Map1GridSegments = 3537, Map2GridDomain = 3538, Map2GridSegments = 3539, Texture1D = 3552, Texture2D = 3553, FeedbackBufferSize = 3569, FeedbackBufferType = 3570, SelectionBufferSize = 3572, PolygonOffsetUnits = 10752, PolygonOffsetPoint = 10753, PolygonOffsetLine = 10754, ClipPlane0 = 12288, ClipPlane1 = 12289, ClipPlane2 = 12290, ClipPlane3 = 12291, ClipPlane4 = 12292, ClipPlane5 = 12293, Light0 = 16384, Light1 = 16385, Light2 = 16386, Light3 = 16387, Light4 = 16388, Light5 = 16389, Light6 = 16390, Light7 = 16391, BlendColorExt = 32773, BlendEquationExt = 32777, BlendEquationRgb = 32777, PackCmykHintExt = 32782, UnpackCmykHintExt = 32783, Convolution1DExt = 32784, Convolution2DExt = 32785, Separable2DExt = 32786, PostConvolutionRedScaleExt = 32796, PostConvolutionGreenScaleExt = 32797, PostConvolutionBlueScaleExt = 32798, PostConvolutionAlphaScaleExt = 32799, PostConvolutionRedBiasExt = 32800, PostConvolutionGreenBiasExt = 32801, PostConvolutionBlueBiasExt = 32802, PostConvolutionAlphaBiasExt = 32803, HistogramExt = 32804, MinmaxExt = 32814, PolygonOffsetFill = 32823, PolygonOffsetFactor = 32824, PolygonOffsetBiasExt = 32825, RescaleNormalExt = 32826, TextureBinding1D = 32872, TextureBinding2D = 32873, Texture3DBindingExt = 32874, TextureBinding3D = 32874, PackSkipImagesExt = 32875, PackImageHeightExt = 32876, UnpackSkipImagesExt = 32877, UnpackImageHeightExt = 32878, Texture3DExt = 32879, Max3DTextureSize = 32883, Max3DTextureSizeExt = 32883, VertexArray = 32884, NormalArray = 32885, ColorArray = 32886, IndexArray = 32887, TextureCoordArray = 32888, EdgeFlagArray = 32889, VertexArraySize = 32890, VertexArrayType = 32891, VertexArrayStride = 32892, VertexArrayCountExt = 32893, NormalArrayType = 32894, NormalArrayStride = 32895, NormalArrayCountExt = 32896, ColorArraySize = 32897, ColorArrayType = 32898, ColorArrayStride = 32899, ColorArrayCountExt = 32900, IndexArrayType = 32901, IndexArrayStride = 32902, IndexArrayCountExt = 32903, TextureCoordArraySize = 32904, TextureCoordArrayType = 32905, TextureCoordArrayStride = 32906, TextureCoordArrayCountExt = 32907, EdgeFlagArrayStride = 32908, EdgeFlagArrayCountExt = 32909, InterlaceSgix = 32916, DetailTexture2DBindingSgis = 32918, Multisample = 32925, MultisampleSgis = 32925, SampleAlphaToCoverage = 32926, SampleAlphaToMaskSgis = 32926, SampleAlphaToOne = 32927, SampleAlphaToOneSgis = 32927, SampleCoverage = 32928, SampleMaskSgis = 32928, SampleBuffers = 32936, SampleBuffersSgis = 32936, Samples = 32937, SamplesSgis = 32937, SampleCoverageValue = 32938, SampleMaskValueSgis = 32938, SampleCoverageInvert = 32939, SampleMaskInvertSgis = 32939, SamplePatternSgis = 32940, ColorMatrixSgi = 32945, ColorMatrixStackDepthSgi = 32946, MaxColorMatrixStackDepthSgi = 32947, PostColorMatrixRedScaleSgi = 32948, PostColorMatrixGreenScaleSgi = 32949, PostColorMatrixBlueScaleSgi = 32950, PostColorMatrixAlphaScaleSgi = 32951, PostColorMatrixRedBiasSgi = 32952, PostColorMatrixGreenBiasSgi = 32953, PostColorMatrixBlueBiasSgi = 32954, PostColorMatrixAlphaBiasSgi = 32955, TextureColorTableSgi = 32956, BlendDstRgb = 32968, BlendSrcRgb = 32969, BlendDstAlpha = 32970, BlendSrcAlpha = 32971, ColorTableSgi = 32976, PostConvolutionColorTableSgi = 32977, PostColorMatrixColorTableSgi = 32978, MaxElementsVertices = 33000, MaxElementsIndices = 33001, PointSizeMin = 33062, PointSizeMinSgis = 33062, PointSizeMax = 33063, PointSizeMaxSgis = 33063, PointFadeThresholdSize = 33064, PointFadeThresholdSizeSgis = 33064, DistanceAttenuationSgis = 33065, PointDistanceAttenuation = 33065, FogFuncPointsSgis = 33067, MaxFogFuncPointsSgis = 33068, PackSkipVolumesSgis = 33072, PackImageDepthSgis = 33073, UnpackSkipVolumesSgis = 33074, UnpackImageDepthSgis = 33075, Texture4DSgis = 33076, Max4DTextureSizeSgis = 33080, PixelTexGenSgix = 33081, PixelTileBestAlignmentSgix = 33086, PixelTileCacheIncrementSgix = 33087, PixelTileWidthSgix = 33088, PixelTileHeightSgix = 33089, PixelTileGridWidthSgix = 33090, PixelTileGridHeightSgix = 33091, PixelTileGridDepthSgix = 33092, PixelTileCacheSizeSgix = 33093, SpriteSgix = 33096, SpriteModeSgix = 33097, SpriteAxisSgix = 33098, SpriteTranslationSgix = 33099, Texture4DBindingSgis = 33103, MaxClipmapDepthSgix = 33143, MaxClipmapVirtualDepthSgix = 33144, PostTextureFilterBiasRangeSgix = 33147, PostTextureFilterScaleRangeSgix = 33148, ReferencePlaneSgix = 33149, ReferencePlaneEquationSgix = 33150, IrInstrument1Sgix = 33151, InstrumentMeasurementsSgix = 33153, CalligraphicFragmentSgix = 33155, FramezoomSgix = 33163, FramezoomFactorSgix = 33164, MaxFramezoomFactorSgix = 33165, GenerateMipmapHint = 33170, GenerateMipmapHintSgis = 33170, DeformationsMaskSgix = 33174, FogOffsetSgix = 33176, FogOffsetValueSgix = 33177, LightModelColorControl = 33272, SharedTexturePaletteExt = 33275, MajorVersion = 33307, MinorVersion = 33308, NumExtensions = 33309, ContextFlags = 33310, ProgramPipelineBinding = 33370, MaxViewports = 33371, ViewportSubpixelBits = 33372, ViewportBoundsRange = 33373, LayerProvokingVertex = 33374, ViewportIndexProvokingVertex = 33375, ConvolutionHintSgix = 33558, AsyncMarkerSgix = 33577, PixelTexGenModeSgix = 33579, AsyncHistogramSgix = 33580, MaxAsyncHistogramSgix = 33581, PixelTextureSgis = 33619, AsyncTexImageSgix = 33628, AsyncDrawPixelsSgix = 33629, AsyncReadPixelsSgix = 33630, MaxAsyncTexImageSgix = 33631, MaxAsyncDrawPixelsSgix = 33632, MaxAsyncReadPixelsSgix = 33633, VertexPreclipSgix = 33774, VertexPreclipHintSgix = 33775, FragmentLightingSgix = 33792, FragmentColorMaterialSgix = 33793, FragmentColorMaterialFaceSgix = 33794, FragmentColorMaterialParameterSgix = 33795, MaxFragmentLightsSgix = 33796, MaxActiveLightsSgix = 33797, LightEnvModeSgix = 33799, FragmentLightModelLocalViewerSgix = 33800, FragmentLightModelTwoSideSgix = 33801, FragmentLightModelAmbientSgix = 33802, FragmentLightModelNormalInterpolationSgix = 33803, FragmentLight0Sgix = 33804, PackResampleSgix = 33836, UnpackResampleSgix = 33837, CurrentFogCoord = 33875, FogCoordArrayType = 33876, FogCoordArrayStride = 33877, ColorSum = 33880, CurrentSecondaryColor = 33881, SecondaryColorArraySize = 33882, SecondaryColorArrayType = 33883, SecondaryColorArrayStride = 33884, CurrentRasterSecondaryColor = 33887, AliasedPointSizeRange = 33901, AliasedLineWidthRange = 33902, ActiveTexture = 34016, ClientActiveTexture = 34017, MaxTextureUnits = 34018, TransposeModelviewMatrix = 34019, TransposeProjectionMatrix = 34020, TransposeTextureMatrix = 34021, TransposeColorMatrix = 34022, MaxRenderbufferSize = 34024, MaxRenderbufferSizeExt = 34024, TextureCompressionHint = 34031, TextureBindingRectangle = 34038, MaxRectangleTextureSize = 34040, MaxTextureLodBias = 34045, TextureCubeMap = 34067, TextureBindingCubeMap = 34068, MaxCubeMapTextureSize = 34076, PackSubsampleRateSgix = 34208, UnpackSubsampleRateSgix = 34209, VertexArrayBinding = 34229, ProgramPointSize = 34370, DepthClamp = 34383, NumCompressedTextureFormats = 34466, CompressedTextureFormats = 34467, NumProgramBinaryFormats = 34814, ProgramBinaryFormats = 34815, StencilBackFunc = 34816, StencilBackFail = 34817, StencilBackPassDepthFail = 34818, StencilBackPassDepthPass = 34819, RgbaFloatMode = 34848, MaxDrawBuffers = 34852, DrawBuffer0 = 34853, DrawBuffer1 = 34854, DrawBuffer2 = 34855, DrawBuffer3 = 34856, DrawBuffer4 = 34857, DrawBuffer5 = 34858, DrawBuffer6 = 34859, DrawBuffer7 = 34860, DrawBuffer8 = 34861, DrawBuffer9 = 34862, DrawBuffer10 = 34863, DrawBuffer11 = 34864, DrawBuffer12 = 34865, DrawBuffer13 = 34866, DrawBuffer14 = 34867, DrawBuffer15 = 34868, BlendEquationAlpha = 34877, TextureCubeMapSeamless = 34895, PointSprite = 34913, MaxVertexAttribs = 34921, MaxTessControlInputComponents = 34924, MaxTessEvaluationInputComponents = 34925, MaxTextureCoords = 34929, MaxTextureImageUnits = 34930, ArrayBufferBinding = 34964, ElementArrayBufferBinding = 34965, VertexArrayBufferBinding = 34966, NormalArrayBufferBinding = 34967, ColorArrayBufferBinding = 34968, IndexArrayBufferBinding = 34969, TextureCoordArrayBufferBinding = 34970, EdgeFlagArrayBufferBinding = 34971, SecondaryColorArrayBufferBinding = 34972, FogCoordArrayBufferBinding = 34973, WeightArrayBufferBinding = 34974, VertexAttribArrayBufferBinding = 34975, PixelPackBufferBinding = 35053, PixelUnpackBufferBinding = 35055, MaxDualSourceDrawBuffers = 35068, MaxArrayTextureLayers = 35071, MinProgramTexelOffset = 35076, MaxProgramTexelOffset = 35077, SamplerBinding = 35097, ClampVertexColor = 35098, ClampFragmentColor = 35099, ClampReadColor = 35100, MaxVertexUniformBlocks = 35371, MaxGeometryUniformBlocks = 35372, MaxFragmentUniformBlocks = 35373, MaxCombinedUniformBlocks = 35374, MaxUniformBufferBindings = 35375, MaxUniformBlockSize = 35376, MaxCombinedVertexUniformComponents = 35377, MaxCombinedGeometryUniformComponents = 35378, MaxCombinedFragmentUniformComponents = 35379, UniformBufferOffsetAlignment = 35380, MaxFragmentUniformComponents = 35657, MaxVertexUniformComponents = 35658, MaxVaryingComponents = 35659, MaxVaryingFloats = 35659, MaxVertexTextureImageUnits = 35660, MaxCombinedTextureImageUnits = 35661, FragmentShaderDerivativeHint = 35723, CurrentProgram = 35725, ImplementationColorReadType = 35738, ImplementationColorReadFormat = 35739, TextureBinding1DArray = 35868, TextureBinding2DArray = 35869, MaxGeometryTextureImageUnits = 35881, SampleShading = 35894, MinSampleShadingValue = 35895, MaxTransformFeedbackSeparateComponents = 35968, MaxTransformFeedbackInterleavedComponents = 35978, MaxTransformFeedbackSeparateAttribs = 35979, StencilBackRef = 36003, StencilBackValueMask = 36004, StencilBackWritemask = 36005, DrawFramebufferBinding = 36006, FramebufferBinding = 36006, FramebufferBindingExt = 36006, RenderbufferBinding = 36007, RenderbufferBindingExt = 36007, ReadFramebufferBinding = 36010, MaxColorAttachments = 36063, MaxColorAttachmentsExt = 36063, MaxSamples = 36183, FramebufferSrgb = 36281, MaxGeometryVaryingComponents = 36317, MaxVertexVaryingComponents = 36318, MaxGeometryUniformComponents = 36319, MaxGeometryOutputVertices = 36320, MaxGeometryTotalOutputComponents = 36321, MaxSubroutines = 36327, MaxSubroutineUniformLocations = 36328, ShaderBinaryFormats = 36344, NumShaderBinaryFormats = 36345, ShaderCompiler = 36346, MaxVertexUniformVectors = 36347, MaxVaryingVectors = 36348, MaxFragmentUniformVectors = 36349, MaxCombinedTessControlUniformComponents = 36382, MaxCombinedTessEvaluationUniformComponents = 36383, TransformFeedbackBufferPaused = 36387, TransformFeedbackBufferActive = 36388, TransformFeedbackBinding = 36389, Timestamp = 36392, QuadsFollowProvokingVertexConvention = 36428, ProvokingVertex = 36431, SampleMask = 36433, MaxSampleMaskWords = 36441, MaxGeometryShaderInvocations = 36442, MinFragmentInterpolationOffset = 36443, MaxFragmentInterpolationOffset = 36444, FragmentInterpolationOffsetBits = 36445, MinProgramTextureGatherOffset = 36446, MaxProgramTextureGatherOffset = 36447, MaxTransformFeedbackBuffers = 36464, MaxVertexStreams = 36465, PatchVertices = 36466, PatchDefaultInnerLevel = 36467, PatchDefaultOuterLevel = 36468, MaxTessGenLevel = 36478, MaxTessControlUniformComponents = 36479, MaxTessEvaluationUniformComponents = 36480, MaxTessControlTextureImageUnits = 36481, MaxTessEvaluationTextureImageUnits = 36482, MaxTessControlOutputComponents = 36483, MaxTessPatchComponents = 36484, MaxTessControlTotalOutputComponents = 36485, MaxTessEvaluationOutputComponents = 36486, MaxTessControlUniformBlocks = 36489, MaxTessEvaluationUniformBlocks = 36490, DrawIndirectBufferBinding = 36675, MaxProgramTextureGatherComponents = 36767, TextureBinding2DMultisample = 37124, TextureBinding2DMultisampleArray = 37125, MaxColorTextureSamples = 37134, MaxDepthTextureSamples = 37135, MaxIntegerSamples = 37136, MaxVertexOutputComponents = 37154, MaxGeometryInputComponents = 37155, MaxGeometryOutputComponents = 37156, MaxFragmentInputComponents = 37157 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetPixelMap.cs ================================================ namespace OpenGL; public enum GetPixelMap { PixelMapIToI = 3184, PixelMapSToS, PixelMapIToR, PixelMapIToG, PixelMapIToB, PixelMapIToA, PixelMapRToR, PixelMapGToG, PixelMapBToB, PixelMapAToA } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetPointervPName.cs ================================================ namespace OpenGL; public enum GetPointervPName { FeedbackBufferPointer = 3568, SelectionBufferPointer = 3571, VertexArrayPointer = 32910, NormalArrayPointer = 32911, ColorArrayPointer = 32912, IndexArrayPointer = 32913, TextureCoordArrayPointer = 32914, EdgeFlagArrayPointer = 32915, InstrumentBufferPointerSgix = 33152, FogCoordArrayPointer = 33878, SecondaryColorArrayPointer = 33885 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetQueryObjectParam.cs ================================================ namespace OpenGL; public enum GetQueryObjectParam { QueryResult = 34918, QueryResultAvailable } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetQueryParam.cs ================================================ namespace OpenGL; public enum GetQueryParam { QueryCounterBits = 34916, CurrentQuery } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GetTextureParameter.cs ================================================ namespace OpenGL; public enum GetTextureParameter { TextureWidth = 4096, TextureHeight = 4097, TextureComponents = 4099, TextureInternalFormat = 4099, TextureBorderColor = 4100, TextureBorder = 4101, TextureMagFilter = 10240, TextureMinFilter = 10241, TextureWrapS = 10242, TextureWrapT = 10243, TextureRedSize = 32860, TextureGreenSize = 32861, TextureBlueSize = 32862, TextureAlphaSize = 32863, TextureLuminanceSize = 32864, TextureIntensitySize = 32865, TexturePriority = 32870, TextureResident = 32871, TextureDepth = 32881, TextureDepthExt = 32881, TextureWrapR = 32882, TextureWrapRExt = 32882, DetailTextureLevelSgis = 32922, DetailTextureModeSgis = 32923, DetailTextureFuncPointsSgis = 32924, SharpenTextureFuncPointsSgis = 32944, ShadowAmbientSgix = 32959, DualTextureSelectSgis = 33060, QuadTextureSelectSgis = 33061, Texture4DsizeSgis = 33078, TextureWrapQSgis = 33079, TextureMinLod = 33082, TextureMinLodSgis = 33082, TextureMaxLod = 33083, TextureMaxLodSgis = 33083, TextureBaseLevel = 33084, TextureBaseLevelSgis = 33084, TextureMaxLevel = 33085, TextureMaxLevelSgis = 33085, TextureFilter4SizeSgis = 33095, TextureClipmapCenterSgix = 33137, TextureClipmapFrameSgix = 33138, TextureClipmapOffsetSgix = 33139, TextureClipmapVirtualDepthSgix = 33140, TextureClipmapLodOffsetSgix = 33141, TextureClipmapDepthSgix = 33142, PostTextureFilterBiasSgix = 33145, PostTextureFilterScaleSgix = 33146, TextureLodBiasSSgix = 33166, TextureLodBiasTSgix = 33167, TextureLodBiasRSgix = 33168, GenerateMipmap = 33169, GenerateMipmapSgis = 33169, TextureCompareSgix = 33178, TextureCompareOperatorSgix = 33179, TextureLequalRSgix = 33180, TextureGequalRSgix = 33181, TextureMaxClampSSgix = 33641, TextureMaxClampTSgix = 33642, TextureMaxClampRSgix = 33643, TextureCompressedImageSize = 34464, TextureCompressed = 34465, TextureDepthSize = 34890, DepthTextureMode = 34891, TextureCompareMode = 34892, TextureCompareFunc = 34893, TextureStencilSize = 35057, TextureRedType = 35856, TextureGreenType = 35857, TextureBlueType = 35858, TextureAlphaType = 35859, TextureLuminanceType = 35860, TextureIntensityType = 35861, TextureDepthType = 35862, TextureSharedSize = 35903, TextureSwizzleR = 36418, TextureSwizzleG = 36419, TextureSwizzleB = 36420, TextureSwizzleA = 36421, TextureSwizzleRgba = 36422, TextureSamples = 37126, TextureFixedSampleLocations = 37127 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Gl3DfxMultisample.cs ================================================ namespace OpenGL; public enum Gl3DfxMultisample { MultisampleBit3Dfx = 536870912, Multisample3Dfx = 34482, SampleBuffers3Dfx = 34483, Samples3Dfx = 34484 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Gl3DfxTbuffer.cs ================================================ namespace OpenGL; public enum Gl3DfxTbuffer { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Gl3DfxTextureCompressionFxt1.cs ================================================ namespace OpenGL; public enum Gl3DfxTextureCompressionFxt1 { CompressedRgbFxt13Dfx = 34480, CompressedRgbaFxt13Dfx } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GremedyFrameTerminator.cs ================================================ namespace OpenGL; public enum GremedyFrameTerminator { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/GremedyStringMarker.cs ================================================ namespace OpenGL; public enum GremedyStringMarker { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Half.cs ================================================ using System; using System.Globalization; using System.IO; using System.Runtime.Serialization; namespace OpenGL; [Serializable] public struct Half : ISerializable, IComparable, IFormattable, IEquatable { private ushort bits; public static readonly int SizeInBytes = 2; public static readonly float MinValue = 5.9604645E-08f; public static readonly float MinNormalizedValue = 6.1035156E-05f; public static readonly float MaxValue = 65504f; public static readonly float Epsilon = 0.00097656f; private const int maxUlps = 1; public bool IsZero { get { if (bits != 0) { return bits == 32768; } return true; } } public bool IsNaN { get { if ((bits & 0x7C00) == 31744) { return (bits & 0x3FF) != 0; } return false; } } public bool IsPositiveInfinity => bits == 31744; public bool IsNegativeInfinity => bits == 64512; public unsafe Half(float f) { this = default(Half); bits = SingleToHalf(*(int*)(&f)); } public Half(float f, bool throwOnError) : this(f) { if (throwOnError) { if (f > MaxValue) { throw new ArithmeticException("Half: Positive maximum value exceeded."); } if (f < 0f - MaxValue) { throw new ArithmeticException("Half: Negative minimum value exceeded."); } if (float.IsNaN(f)) { throw new ArithmeticException("Half: Input is not a number (NaN)."); } if (float.IsPositiveInfinity(f)) { throw new ArithmeticException("Half: Input is positive infinity."); } if (float.IsNegativeInfinity(f)) { throw new ArithmeticException("Half: Input is negative infinity."); } } } public Half(double d) : this((float)d) { } public Half(double d, bool throwOnError) : this((float)d, throwOnError) { } private ushort SingleToHalf(int si32) { int num = (si32 >> 16) & 0x8000; int num2 = ((si32 >> 23) & 0xFF) - 112; int num3 = si32 & 0x7FFFFF; if (num2 <= 0) { if (num2 < -10) { return (ushort)num; } num3 |= 0x800000; int num4 = 14 - num2; int num5 = (1 << num4 - 1) - 1; int num6 = (num3 >> num4) & 1; num3 = num3 + num5 + num6 >> num4; return (ushort)(num | num3); } if (num2 == 143) { if (num3 == 0) { return (ushort)((uint)num | 0x7C00u); } num3 >>= 13; return (ushort)((uint)num | 0x7C00u | (uint)num3 | ((num3 == 0) ? 1u : 0u)); } num3 = num3 + 4095 + ((num3 >> 13) & 1); if ((num3 & 0x800000) == 1) { num3 = 0; num2++; } if (num2 > 30) { throw new ArithmeticException("Half: Hardware floating-point overflow."); } return (ushort)(num | (num2 << 10) | (num3 >> 13)); } public unsafe float ToSingle() { int num = HalfToFloat(bits); return *(float*)(&num); } private int HalfToFloat(ushort ui16) { int num = (ui16 >> 15) & 1; int num2 = (ui16 >> 10) & 0x1F; int num3 = ui16 & 0x3FF; switch (num2) { case 0: if (num3 == 0) { return num << 31; } while ((num3 & 0x400) == 0) { num3 <<= 1; num2--; } num2++; num3 &= -1025; break; case 31: if (num3 == 0) { return (num << 31) | 0x7F800000; } return (num << 31) | 0x7F800000 | (num3 << 13); } num2 += 112; num3 <<= 13; return (num << 31) | (num2 << 23) | num3; } public static explicit operator Half(float f) { return new Half(f); } public static explicit operator Half(double d) { return new Half(d); } public static implicit operator float(Half h) { return h.ToSingle(); } public static implicit operator double(Half h) { return h.ToSingle(); } public Half(SerializationInfo info, StreamingContext context) { bits = (ushort)info.GetValue("bits", typeof(ushort)); } public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("bits", bits); } public void FromBinaryStream(BinaryReader bin) { bits = bin.ReadUInt16(); } public void ToBinaryStream(BinaryWriter bin) { bin.Write(bits); } public bool Equals(Half other) { short num = (short)other.bits; short num2 = (short)bits; if (num < 0) { num = (short)(32768 - num); } if (num2 < 0) { num2 = (short)(32768 - num2); } if (Math.Abs((short)(num - num2)) <= 1) { return true; } return false; } public int CompareTo(Half other) { return ((float)this).CompareTo(other); } public override string ToString() { return ToSingle().ToString(); } public string ToString(string format, IFormatProvider formatProvider) { return ToSingle().ToString(format, formatProvider); } public static Half Parse(string s) { return (Half)float.Parse(s); } public static Half Parse(string s, NumberStyles style, IFormatProvider provider) { return (Half)float.Parse(s, style, provider); } public static bool TryParse(string s, out Half result) { float result2; bool result3 = float.TryParse(s, out result2); result = (Half)result2; return result3; } public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out Half result) { float result2; bool result3 = float.TryParse(s, style, provider, out result2); result = (Half)result2; return result3; } public static byte[] GetBytes(Half h) { return BitConverter.GetBytes(h.bits); } public static Half FromBytes(byte[] value, int startIndex) { Half result = default(Half); result.bits = BitConverter.ToUInt16(value, startIndex); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HintMode.cs ================================================ namespace OpenGL; public enum HintMode { DontCare = 4352, Fastest, Nicest } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HintTarget.cs ================================================ namespace OpenGL; public enum HintTarget { PerspectiveCorrectionHint = 3152, PointSmoothHint = 3153, LineSmoothHint = 3154, PolygonSmoothHint = 3155, FogHint = 3156, PackCmykHintExt = 32782, UnpackCmykHintExt = 32783, TextureMultiBufferHintSgix = 33070, GenerateMipmapHint = 33170, GenerateMipmapHintSgis = 33170, ConvolutionHintSgix = 33558, VertexPreclipHintSgix = 33775, TextureCompressionHint = 34031, FragmentShaderDerivativeHint = 35723 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HistogramTarget.cs ================================================ namespace OpenGL; public enum HistogramTarget { Histogram = 32804, ProxyHistogram } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HistogramTargetExt.cs ================================================ namespace OpenGL; public enum HistogramTargetExt { HistogramExt = 32804, ProxyHistogramExt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HpConvolutionBorderModes.cs ================================================ namespace OpenGL; public enum HpConvolutionBorderModes { IgnoreBorderHp = 33104, ConstantBorderHp = 33105, ReplicateBorderHp = 33107, ConvolutionBorderColorHp = 33108 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HpImageTransform.cs ================================================ namespace OpenGL; public enum HpImageTransform { ImageScaleXHp = 33109, ImageScaleYHp, ImageTranslateXHp, ImageTranslateYHp, ImageRotateAngleHp, ImageRotateOriginXHp, ImageRotateOriginYHp, ImageMagFilterHp, ImageMinFilterHp, ImageCubicWeightHp, CubicHp, AverageHp, ImageTransform2DHp, PostImageTransformColorTableHp, ProxyPostImageTransformColorTableHp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HpOcclusionTest.cs ================================================ namespace OpenGL; public enum HpOcclusionTest { OcclusionTestHp = 33125, OcclusionTestResultHp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/HpTextureLighting.cs ================================================ namespace OpenGL; public enum HpTextureLighting { TextureLightingModeHp = 33127, TexturePostSpecularHp, TexturePreSpecularHp } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IGameWindow.cs ================================================ using System; namespace OpenGL; public interface IGameWindow : INativeWindow, IDisposable { event EventHandler Load; event EventHandler Unload; event EventHandler UpdateFrame; event EventHandler RenderFrame; void Run(); void Run(double updateRate); void MakeCurrent(); void SwapBuffers(); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/INativeWindow.cs ================================================ using System; using System.ComponentModel; using System.Drawing; namespace OpenGL; public interface INativeWindow : IDisposable { string Title { get; set; } bool Focused { get; } bool Visible { get; set; } bool Exists { get; } WindowState WindowState { get; set; } WindowBorder WindowBorder { get; set; } Rectangle Bounds { get; set; } Point Location { get; set; } Size Size { get; set; } int X { get; set; } int Y { get; set; } int Width { get; set; } int Height { get; set; } Rectangle ClientRectangle { get; set; } Size ClientSize { get; set; } event EventHandler Move; event EventHandler Resize; event EventHandler Closing; event EventHandler Closed; event EventHandler Disposed; event EventHandler IconChanged; event EventHandler TitleChanged; event EventHandler VisibleChanged; event EventHandler FocusedChanged; event EventHandler WindowBorderChanged; event EventHandler WindowStateChanged; void Close(); void ProcessEvents(); Point PointToClient(Point point); Point PointToScreen(Point point); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IbmCullVertex.cs ================================================ namespace OpenGL; public enum IbmCullVertex { CullVertexIbm = 103050 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IbmMultimodeDrawArrays.cs ================================================ namespace OpenGL; public enum IbmMultimodeDrawArrays { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IbmRasterposClip.cs ================================================ namespace OpenGL; public enum IbmRasterposClip { RasterPositionUnclippedIbm = 103010 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IbmTextureMirroredRepeat.cs ================================================ namespace OpenGL; public enum IbmTextureMirroredRepeat { MirroredRepeatIbm = 33648 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IbmVertexArrayLists.cs ================================================ namespace OpenGL; public enum IbmVertexArrayLists { VertexArrayListIbm = 103070, NormalArrayListIbm = 103071, ColorArrayListIbm = 103072, IndexArrayListIbm = 103073, TextureCoordArrayListIbm = 103074, EdgeFlagArrayListIbm = 103075, FogCoordinateArrayListIbm = 103076, SecondaryColorArrayListIbm = 103077, VertexArrayListStrideIbm = 103080, NormalArrayListStrideIbm = 103081, ColorArrayListStrideIbm = 103082, IndexArrayListStrideIbm = 103083, TextureCoordArrayListStrideIbm = 103084, EdgeFlagArrayListStrideIbm = 103085, FogCoordinateArrayListStrideIbm = 103086, SecondaryColorArrayListStrideIbm = 103087 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ImgMultisampledRenderToTexture.cs ================================================ namespace OpenGL; public enum ImgMultisampledRenderToTexture { RenderbufferSamplesImg = 37171, FramebufferIncompleteMultisampleImg, MaxSamplesImg, TextureSamplesImg } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ImgProgramBinary.cs ================================================ namespace OpenGL; public enum ImgProgramBinary { SgxProgramBinaryImg = 37168 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ImgShaderBinary.cs ================================================ namespace OpenGL; public enum ImgShaderBinary { SgxBinaryImg = 35850 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ImgTextureCompressionPvrtc.cs ================================================ namespace OpenGL; public enum ImgTextureCompressionPvrtc { CompressedRgbPvrtc4Bppv1Img = 35840, CompressedRgbPvrtc2Bppv1Img, CompressedRgbaPvrtc4Bppv1Img, CompressedRgbaPvrtc2Bppv1Img } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ImgTextureEnvEnhancedFixedFunction.cs ================================================ namespace OpenGL; public enum ImgTextureEnvEnhancedFixedFunction { Dot3RgbaImg = 34479, ModulateColorImg = 35844, RecipAddSignedAlphaImg = 35845, TextureAlphaModulateImg = 35846, FactorAlphaModulateImg = 35847, FragmentAlphaModulateImg = 35848, AddBlendImg = 35849 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IndexPointerType.cs ================================================ namespace OpenGL; public enum IndexPointerType { Short = 5122, Int = 5124, Float = 5126, Double = 5130 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IndexedEnableCap.cs ================================================ namespace OpenGL; public enum IndexedEnableCap { Blend = 3042, ScissorTest = 3089 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IngrColorClamp.cs ================================================ namespace OpenGL; public enum IngrColorClamp { RedMinClampIngr = 34144, GreenMinClampIngr, BlueMinClampIngr, AlphaMinClampIngr, RedMaxClampIngr, GreenMaxClampIngr, BlueMaxClampIngr, AlphaMaxClampIngr } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IngrInterlaceRead.cs ================================================ namespace OpenGL; public enum IngrInterlaceRead { InterlaceReadIngr = 34152 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IngrPaletteBuffer.cs ================================================ namespace OpenGL; public enum IngrPaletteBuffer { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IntelParallelArrays.cs ================================================ namespace OpenGL; public enum IntelParallelArrays { ParallelArraysIntel = 33780, VertexArrayParallelPointersIntel, NormalArrayParallelPointersIntel, ColorArrayParallelPointersIntel, TextureCoordArrayParallelPointersIntel } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/IntelTextureScissor.cs ================================================ namespace OpenGL; public enum IntelTextureScissor { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/InterleavedArrayFormat.cs ================================================ namespace OpenGL; public enum InterleavedArrayFormat { V2f = 10784, V3f, C4ubV2f, C4ubV3f, C3fV3f, N3fV3f, C4fN3fV3f, T2fV3f, T4fV4f, T2fC4ubV3f, T2fC3fV3f, T2fN3fV3f, T2fC4fN3fV3f, T4fC4fN3fV4f } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightEnvModeSgix.cs ================================================ namespace OpenGL; public enum LightEnvModeSgix { Add = 260, Replace = 7681, Modulate = 8448 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightEnvParameterSgix.cs ================================================ namespace OpenGL; public enum LightEnvParameterSgix { LightEnvModeSgix = 33799 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightModelColorControl.cs ================================================ namespace OpenGL; public enum LightModelColorControl { SingleColor = 33273, SeparateSpecularColor } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightModelParameter.cs ================================================ namespace OpenGL; public enum LightModelParameter { LightModelLocalViewer = 2897, LightModelTwoSide = 2898, LightModelAmbient = 2899, LightModelColorControl = 33272 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightName.cs ================================================ namespace OpenGL; public enum LightName { Light0 = 16384, Light1 = 16385, Light2 = 16386, Light3 = 16387, Light4 = 16388, Light5 = 16389, Light6 = 16390, Light7 = 16391, FragmentLight0Sgix = 33804, FragmentLight1Sgix = 33805, FragmentLight2Sgix = 33806, FragmentLight3Sgix = 33807, FragmentLight4Sgix = 33808, FragmentLight5Sgix = 33809, FragmentLight6Sgix = 33810, FragmentLight7Sgix = 33811 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LightParameter.cs ================================================ namespace OpenGL; public enum LightParameter { Ambient = 4608, Diffuse, Specular, Position, SpotDirection, SpotExponent, SpotCutoff, ConstantAttenuation, LinearAttenuation, QuadraticAttenuation } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ListMode.cs ================================================ namespace OpenGL; public enum ListMode { Compile = 4864, CompileAndExecute } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ListNameType.cs ================================================ namespace OpenGL; public enum ListNameType { Byte = 5120, UnsignedByte, Short, UnsignedShort, Int, UnsignedInt, Float, Gl2Bytes, Gl3Bytes, Gl4Bytes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ListParameterName.cs ================================================ namespace OpenGL; public enum ListParameterName { ListPrioritySgix = 33154 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/LogicOp.cs ================================================ namespace OpenGL; public enum LogicOp { Clear = 5376, And, AndReverse, Copy, AndInverted, Noop, Xor, Or, Nor, Equiv, Invert, OrReverse, CopyInverted, OrInverted, Nand, Set } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MapTarget.cs ================================================ namespace OpenGL; public enum MapTarget { Map1Color4 = 3472, Map1Index = 3473, Map1Normal = 3474, Map1TextureCoord1 = 3475, Map1TextureCoord2 = 3476, Map1TextureCoord3 = 3477, Map1TextureCoord4 = 3478, Map1Vertex3 = 3479, Map1Vertex4 = 3480, Map2Color4 = 3504, Map2Index = 3505, Map2Normal = 3506, Map2TextureCoord1 = 3507, Map2TextureCoord2 = 3508, Map2TextureCoord3 = 3509, Map2TextureCoord4 = 3510, Map2Vertex3 = 3511, Map2Vertex4 = 3512, GeometryDeformationSgix = 33172, TextureDeformationSgix = 33173 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MaterialFace.cs ================================================ namespace OpenGL; public enum MaterialFace { Front = 1028, Back = 1029, FrontAndBack = 1032 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MaterialParameter.cs ================================================ namespace OpenGL; public enum MaterialParameter { Ambient = 4608, Diffuse = 4609, Specular = 4610, Emission = 5632, Shininess = 5633, AmbientAndDiffuse = 5634, ColorIndexes = 5635 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MathHelper.cs ================================================ using System; namespace OpenGL; public static class MathHelper { public const float Pi = (float)Math.PI; public const float PiOver2 = (float)Math.PI / 2f; public const float PiOver3 = (float)Math.PI / 3f; public const float PiOver4 = (float)Math.PI / 4f; public const float PiOver6 = (float)Math.PI / 6f; public const float TwoPi = (float)Math.PI * 2f; public const float ThreePiOver2 = 4.712389f; public const float E = (float)Math.E; public const float Log10E = 0.4342945f; public const float Log2E = 1.442695f; public static long NextPowerOfTwo(long n) { if (n < 0) { throw new ArgumentOutOfRangeException("n", "Must be positive."); } return (long)Math.Pow(2.0, Math.Ceiling(Math.Log(n, 2.0))); } public static int NextPowerOfTwo(int n) { if (n < 0) { throw new ArgumentOutOfRangeException("n", "Must be positive."); } return (int)Math.Pow(2.0, Math.Ceiling(Math.Log(n, 2.0))); } public static float NextPowerOfTwo(float n) { if (n < 0f) { throw new ArgumentOutOfRangeException("n", "Must be positive."); } return (float)Math.Pow(2.0, Math.Ceiling(Math.Log(n, 2.0))); } public static double NextPowerOfTwo(double n) { if (n < 0.0) { throw new ArgumentOutOfRangeException("n", "Must be positive."); } return Math.Pow(2.0, Math.Ceiling(Math.Log(n, 2.0))); } public static long Factorial(int n) { long num = 1L; while (n > 1) { num *= n; n--; } return num; } public static long BinomialCoefficient(int n, int k) { return Factorial(n) / (Factorial(k) * Factorial(n - k)); } public unsafe static float InverseSqrtFast(float x) { float num = 0.5f * x; int num2 = *(int*)(&x); num2 = 1597463174 - (num2 >> 1); x = *(float*)(&num2); x *= 1.5f - num * x * x; return x; } public static double InverseSqrtFast(double x) { return InverseSqrtFast((float)x); } public static float DegreesToRadians(float degrees) { return degrees * ((float)Math.PI / 180f); } public static float RadiansToDegrees(float radians) { return radians * (180f / (float)Math.PI); } public static double DegreesToRadians(double degrees) { return degrees * (Math.PI / 180.0); } public static double RadiansToDegrees(double radians) { return radians * (180.0 / Math.PI); } public static void Swap(ref double a, ref double b) { double num = a; a = b; b = num; } public static void Swap(ref float a, ref float b) { float num = a; a = b; b = num; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Matrix4.cs ================================================ using System; namespace OpenGL; public struct Matrix4 : IEquatable { public Vector4 Row0; public Vector4 Row1; public Vector4 Row2; public Vector4 Row3; public static Matrix4 Identity = new Matrix4(Vector4.UnitX, Vector4.UnitY, Vector4.UnitZ, Vector4.UnitW); public float Determinant => Row0.X * Row1.Y * Row2.Z * Row3.W - Row0.X * Row1.Y * Row2.W * Row3.Z + Row0.X * Row1.Z * Row2.W * Row3.Y - Row0.X * Row1.Z * Row2.Y * Row3.W + Row0.X * Row1.W * Row2.Y * Row3.Z - Row0.X * Row1.W * Row2.Z * Row3.Y - Row0.Y * Row1.Z * Row2.W * Row3.X + Row0.Y * Row1.Z * Row2.X * Row3.W - Row0.Y * Row1.W * Row2.X * Row3.Z + Row0.Y * Row1.W * Row2.Z * Row3.X - Row0.Y * Row1.X * Row2.Z * Row3.W + Row0.Y * Row1.X * Row2.W * Row3.Z + Row0.Z * Row1.W * Row2.X * Row3.Y - Row0.Z * Row1.W * Row2.Y * Row3.X + Row0.Z * Row1.X * Row2.Y * Row3.W - Row0.Z * Row1.X * Row2.W * Row3.Y + Row0.Z * Row1.Y * Row2.W * Row3.X - Row0.Z * Row1.Y * Row2.X * Row3.W - Row0.W * Row1.X * Row2.Y * Row3.Z + Row0.W * Row1.X * Row2.Z * Row3.Y - Row0.W * Row1.Y * Row2.Z * Row3.X + Row0.W * Row1.Y * Row2.X * Row3.Z - Row0.W * Row1.Z * Row2.X * Row3.Y + Row0.W * Row1.Z * Row2.Y * Row3.X; public Vector4 Column0 => new Vector4(Row0.X, Row1.X, Row2.X, Row3.X); public Vector4 Column1 => new Vector4(Row0.Y, Row1.Y, Row2.Y, Row3.Y); public Vector4 Column2 => new Vector4(Row0.Z, Row1.Z, Row2.Z, Row3.Z); public Vector4 Column3 => new Vector4(Row0.W, Row1.W, Row2.W, Row3.W); public float M11 { get { return Row0.X; } set { Row0.X = value; } } public float M12 { get { return Row0.Y; } set { Row0.Y = value; } } public float M13 { get { return Row0.Z; } set { Row0.Z = value; } } public float M14 { get { return Row0.W; } set { Row0.W = value; } } public float M21 { get { return Row1.X; } set { Row1.X = value; } } public float M22 { get { return Row1.Y; } set { Row1.Y = value; } } public float M23 { get { return Row1.Z; } set { Row1.Z = value; } } public float M24 { get { return Row1.W; } set { Row1.W = value; } } public float M31 { get { return Row2.X; } set { Row2.X = value; } } public float M32 { get { return Row2.Y; } set { Row2.Y = value; } } public float M33 { get { return Row2.Z; } set { Row2.Z = value; } } public float M34 { get { return Row2.W; } set { Row2.W = value; } } public float M41 { get { return Row3.X; } set { Row3.X = value; } } public float M42 { get { return Row3.Y; } set { Row3.Y = value; } } public float M43 { get { return Row3.Z; } set { Row3.Z = value; } } public float M44 { get { return Row3.W; } set { Row3.W = value; } } public Matrix4(Vector4 row0, Vector4 row1, Vector4 row2, Vector4 row3) { Row0 = row0; Row1 = row1; Row2 = row2; Row3 = row3; } public Matrix4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) { Row0 = new Vector4(m00, m01, m02, m03); Row1 = new Vector4(m10, m11, m12, m13); Row2 = new Vector4(m20, m21, m22, m23); Row3 = new Vector4(m30, m31, m32, m33); } public void Invert() { this = Invert(this); } public void Transpose() { this = Transpose(this); } public static void CreateFromAxisAngle(Vector3 axis, float angle, out Matrix4 result) { float num = (float)Math.Cos(0f - angle); float num2 = (float)Math.Sin(0f - angle); float num3 = 1f - num; axis.Normalize(); result = new Matrix4(num3 * axis.X * axis.X + num, num3 * axis.X * axis.Y - num2 * axis.Z, num3 * axis.X * axis.Z + num2 * axis.Y, 0f, num3 * axis.X * axis.Y + num2 * axis.Z, num3 * axis.Y * axis.Y + num, num3 * axis.Y * axis.Z - num2 * axis.X, 0f, num3 * axis.X * axis.Z - num2 * axis.Y, num3 * axis.Y * axis.Z + num2 * axis.X, num3 * axis.Z * axis.Z + num, 0f, 0f, 0f, 0f, 1f); } public static Matrix4 CreateFromAxisAngle(Vector3 axis, float angle) { CreateFromAxisAngle(axis, angle, out var result); return result; } public static void CreateRotationX(float angle, out Matrix4 result) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); result.Row0 = Vector4.UnitX; result.Row1 = new Vector4(0f, num, num2, 0f); result.Row2 = new Vector4(0f, 0f - num2, num, 0f); result.Row3 = Vector4.UnitW; } public static Matrix4 CreateRotationX(float angle) { CreateRotationX(angle, out var result); return result; } public static void CreateRotationY(float angle, out Matrix4 result) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); result.Row0 = new Vector4(num, 0f, 0f - num2, 0f); result.Row1 = Vector4.UnitY; result.Row2 = new Vector4(num2, 0f, num, 0f); result.Row3 = Vector4.UnitW; } public static Matrix4 CreateRotationY(float angle) { CreateRotationY(angle, out var result); return result; } public static void CreateRotationZ(float angle, out Matrix4 result) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); result.Row0 = new Vector4(num, num2, 0f, 0f); result.Row1 = new Vector4(0f - num2, num, 0f, 0f); result.Row2 = Vector4.UnitZ; result.Row3 = Vector4.UnitW; } public static Matrix4 CreateRotationZ(float angle) { CreateRotationZ(angle, out var result); return result; } public static void CreateTranslation(float x, float y, float z, out Matrix4 result) { result = Identity; result.Row3 = new Vector4(x, y, z, 1f); } public static void CreateTranslation(ref Vector3 vector, out Matrix4 result) { result = Identity; result.Row3 = new Vector4(vector.X, vector.Y, vector.Z, 1f); } public static Matrix4 CreateTranslation(float x, float y, float z) { CreateTranslation(x, y, z, out var result); return result; } public static Matrix4 CreateTranslation(Vector3 vector) { CreateTranslation(vector.X, vector.Y, vector.Z, out var result); return result; } public static void CreateOrthographic(float width, float height, float zNear, float zFar, out Matrix4 result) { CreateOrthographicOffCenter((0f - width) / 2f, width / 2f, (0f - height) / 2f, height / 2f, zNear, zFar, out result); } public static Matrix4 CreateOrthographic(float width, float height, float zNear, float zFar) { CreateOrthographicOffCenter((0f - width) / 2f, width / 2f, (0f - height) / 2f, height / 2f, zNear, zFar, out var result); return result; } public static void CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNear, float zFar, out Matrix4 result) { result = default(Matrix4); float num = 1f / (right - left); float num2 = 1f / (top - bottom); float num3 = 1f / (zFar - zNear); result.M11 = 2f * num; result.M22 = 2f * num2; result.M33 = -2f * num3; result.M41 = (0f - (right + left)) * num; result.M42 = (0f - (top + bottom)) * num2; result.M43 = (0f - (zFar + zNear)) * num3; result.M44 = 1f; } public static Matrix4 CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNear, float zFar) { CreateOrthographicOffCenter(left, right, bottom, top, zNear, zFar, out var result); return result; } public static void CreatePerspectiveFieldOfView(float fovy, float aspect, float zNear, float zFar, out Matrix4 result) { if (fovy <= 0f || (double)fovy > Math.PI) { throw new ArgumentOutOfRangeException("fovy"); } if (aspect <= 0f) { throw new ArgumentOutOfRangeException("aspect"); } if (zNear <= 0f) { throw new ArgumentOutOfRangeException("zNear"); } if (zFar <= 0f) { throw new ArgumentOutOfRangeException("zFar"); } float num = zNear * (float)Math.Tan(0.5f * fovy); float num2 = 0f - num; float left = num2 * aspect; float right = num * aspect; CreatePerspectiveOffCenter(left, right, num2, num, zNear, zFar, out result); } public static Matrix4 CreatePerspectiveFieldOfView(float fovy, float aspect, float zNear, float zFar) { CreatePerspectiveFieldOfView(fovy, aspect, zNear, zFar, out var result); return result; } public static void CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float zNear, float zFar, out Matrix4 result) { if (zNear <= 0f) { throw new ArgumentOutOfRangeException("zNear"); } if (zFar <= 0f) { throw new ArgumentOutOfRangeException("zFar"); } if (zNear >= zFar) { throw new ArgumentOutOfRangeException("zNear"); } float m = 2f * zNear / (right - left); float m2 = 2f * zNear / (top - bottom); float m3 = (right + left) / (right - left); float m4 = (top + bottom) / (top - bottom); float m5 = (0f - (zFar + zNear)) / (zFar - zNear); float m6 = (0f - 2f * zFar * zNear) / (zFar - zNear); result = new Matrix4(m, 0f, 0f, 0f, 0f, m2, 0f, 0f, m3, m4, m5, -1f, 0f, 0f, m6, 0f); } public static Matrix4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float zNear, float zFar) { CreatePerspectiveOffCenter(left, right, bottom, top, zNear, zFar, out var result); return result; } [Obsolete("Use CreateTranslation instead.")] public static Matrix4 Translation(Vector3 trans) { return Translation(trans.X, trans.Y, trans.Z); } [Obsolete("Use CreateTranslation instead.")] public static Matrix4 Translation(float x, float y, float z) { Matrix4 identity = Identity; identity.Row3 = new Vector4(x, y, z, 1f); return identity; } public static Matrix4 Scale(float scale) { return Scale(scale, scale, scale); } public static Matrix4 Scale(Vector3 scale) { return Scale(scale.X, scale.Y, scale.Z); } public static Matrix4 Scale(float x, float y, float z) { Matrix4 result = default(Matrix4); result.Row0 = Vector4.UnitX * x; result.Row1 = Vector4.UnitY * y; result.Row2 = Vector4.UnitZ * z; result.Row3 = Vector4.UnitW; return result; } [Obsolete("Use CreateRotationX instead.")] public static Matrix4 RotateX(float angle) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); Matrix4 result = default(Matrix4); result.Row0 = Vector4.UnitX; result.Row1 = new Vector4(0f, num, num2, 0f); result.Row2 = new Vector4(0f, 0f - num2, num, 0f); result.Row3 = Vector4.UnitW; return result; } [Obsolete("Use CreateRotationY instead.")] public static Matrix4 RotateY(float angle) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); Matrix4 result = default(Matrix4); result.Row0 = new Vector4(num, 0f, 0f - num2, 0f); result.Row1 = Vector4.UnitY; result.Row2 = new Vector4(num2, 0f, num, 0f); result.Row3 = Vector4.UnitW; return result; } [Obsolete("Use CreateRotationZ instead.")] public static Matrix4 RotateZ(float angle) { float num = (float)Math.Cos(angle); float num2 = (float)Math.Sin(angle); Matrix4 result = default(Matrix4); result.Row0 = new Vector4(num, num2, 0f, 0f); result.Row1 = new Vector4(0f - num2, num, 0f, 0f); result.Row2 = Vector4.UnitZ; result.Row3 = Vector4.UnitW; return result; } [Obsolete("Use CreateFromAxisAngle instead.")] public static Matrix4 Rotate(Vector3 axis, float angle) { float num = (float)Math.Cos(0f - angle); float num2 = (float)Math.Sin(0f - angle); float num3 = 1f - num; axis.Normalize(); Matrix4 result = default(Matrix4); result.Row0 = new Vector4(num3 * axis.X * axis.X + num, num3 * axis.X * axis.Y - num2 * axis.Z, num3 * axis.X * axis.Z + num2 * axis.Y, 0f); result.Row1 = new Vector4(num3 * axis.X * axis.Y + num2 * axis.Z, num3 * axis.Y * axis.Y + num, num3 * axis.Y * axis.Z - num2 * axis.X, 0f); result.Row2 = new Vector4(num3 * axis.X * axis.Z - num2 * axis.Y, num3 * axis.Y * axis.Z + num2 * axis.X, num3 * axis.Z * axis.Z + num, 0f); result.Row3 = Vector4.UnitW; return result; } public static Matrix4 Rotate(Quaternion q) { q.ToAxisAngle(out var axis, out var angle); return CreateFromAxisAngle(axis, angle); } public static Matrix4 LookAt(Vector3 eye, Vector3 target, Vector3 up) { Vector3 vector = Vector3.Normalize(eye - target); Vector3 right = Vector3.Normalize(Vector3.Cross(up, vector)); Vector3 vector2 = Vector3.Normalize(Vector3.Cross(vector, right)); Matrix4 matrix = new Matrix4(new Vector4(right.X, vector2.X, vector.X, 0f), new Vector4(right.Y, vector2.Y, vector.Y, 0f), new Vector4(right.Z, vector2.Z, vector.Z, 0f), Vector4.UnitW); return CreateTranslation(-eye) * matrix; } public static Matrix4 LookAt(float eyeX, float eyeY, float eyeZ, float targetX, float targetY, float targetZ, float upX, float upY, float upZ) { return LookAt(new Vector3(eyeX, eyeY, eyeZ), new Vector3(targetX, targetY, targetZ), new Vector3(upX, upY, upZ)); } [Obsolete("Use CreatePerspectiveOffCenter instead.")] public static Matrix4 Frustum(float left, float right, float bottom, float top, float near, float far) { float num = 1f / (right - left); float num2 = 1f / (top - bottom); float num3 = 1f / (far - near); return new Matrix4(new Vector4(2f * near * num, 0f, 0f, 0f), new Vector4(0f, 2f * near * num2, 0f, 0f), new Vector4((right + left) * num, (top + bottom) * num2, (0f - (far + near)) * num3, -1f), new Vector4(0f, 0f, -2f * far * near * num3, 0f)); } [Obsolete("Use CreatePerspectiveFieldOfView instead.")] public static Matrix4 Perspective(float fovy, float aspect, float near, float far) { float num = near * (float)Math.Tan(0.5f * fovy); float num2 = 0f - num; float left = num2 * aspect; float right = num * aspect; return Frustum(left, right, num2, num, near, far); } public static Matrix4 Mult(Matrix4 left, Matrix4 right) { Mult(ref left, ref right, out var result); return result; } public static void Mult(ref Matrix4 left, ref Matrix4 right, out Matrix4 result) { result = new Matrix4(left.M11 * right.M11 + left.M12 * right.M21 + left.M13 * right.M31 + left.M14 * right.M41, left.M11 * right.M12 + left.M12 * right.M22 + left.M13 * right.M32 + left.M14 * right.M42, left.M11 * right.M13 + left.M12 * right.M23 + left.M13 * right.M33 + left.M14 * right.M43, left.M11 * right.M14 + left.M12 * right.M24 + left.M13 * right.M34 + left.M14 * right.M44, left.M21 * right.M11 + left.M22 * right.M21 + left.M23 * right.M31 + left.M24 * right.M41, left.M21 * right.M12 + left.M22 * right.M22 + left.M23 * right.M32 + left.M24 * right.M42, left.M21 * right.M13 + left.M22 * right.M23 + left.M23 * right.M33 + left.M24 * right.M43, left.M21 * right.M14 + left.M22 * right.M24 + left.M23 * right.M34 + left.M24 * right.M44, left.M31 * right.M11 + left.M32 * right.M21 + left.M33 * right.M31 + left.M34 * right.M41, left.M31 * right.M12 + left.M32 * right.M22 + left.M33 * right.M32 + left.M34 * right.M42, left.M31 * right.M13 + left.M32 * right.M23 + left.M33 * right.M33 + left.M34 * right.M43, left.M31 * right.M14 + left.M32 * right.M24 + left.M33 * right.M34 + left.M34 * right.M44, left.M41 * right.M11 + left.M42 * right.M21 + left.M43 * right.M31 + left.M44 * right.M41, left.M41 * right.M12 + left.M42 * right.M22 + left.M43 * right.M32 + left.M44 * right.M42, left.M41 * right.M13 + left.M42 * right.M23 + left.M43 * right.M33 + left.M44 * right.M43, left.M41 * right.M14 + left.M42 * right.M24 + left.M43 * right.M34 + left.M44 * right.M44); } public static Matrix4 Invert(Matrix4 mat) { int[] array = new int[4]; int[] array2 = new int[4]; int[] array3 = new int[4] { -1, -1, -1, -1 }; float[,] array4 = new float[4, 4] { { mat.Row0.X, mat.Row0.Y, mat.Row0.Z, mat.Row0.W }, { mat.Row1.X, mat.Row1.Y, mat.Row1.Z, mat.Row1.W }, { mat.Row2.X, mat.Row2.Y, mat.Row2.Z, mat.Row2.W }, { mat.Row3.X, mat.Row3.Y, mat.Row3.Z, mat.Row3.W } }; int num = 0; int num2 = 0; for (int i = 0; i < 4; i++) { float num3 = 0f; for (int j = 0; j < 4; j++) { if (array3[j] == 0) { continue; } for (int k = 0; k < 4; k++) { if (array3[k] == -1) { float num4 = Math.Abs(array4[j, k]); if (num4 > num3) { num3 = num4; num2 = j; num = k; } } else if (array3[k] > 0) { return mat; } } } array3[num]++; if (num2 != num) { for (int l = 0; l < 4; l++) { float num5 = array4[num2, l]; array4[num2, l] = array4[num, l]; array4[num, l] = num5; } } array2[i] = num2; array[i] = num; float num6 = array4[num, num]; if (num6 == 0f) { throw new InvalidOperationException("Matrix is singular and cannot be inverted."); } float num7 = 1f / num6; array4[num, num] = 1f; for (int m = 0; m < 4; m++) { array4[num, m] *= num7; } for (int n = 0; n < 4; n++) { if (num != n) { float num8 = array4[n, num]; array4[n, num] = 0f; for (int num9 = 0; num9 < 4; num9++) { array4[n, num9] -= array4[num, num9] * num8; } } } } for (int num10 = 3; num10 >= 0; num10--) { int num11 = array2[num10]; int num12 = array[num10]; for (int num13 = 0; num13 < 4; num13++) { float num14 = array4[num13, num11]; array4[num13, num11] = array4[num13, num12]; array4[num13, num12] = num14; } } mat.Row0 = new Vector4(array4[0, 0], array4[0, 1], array4[0, 2], array4[0, 3]); mat.Row1 = new Vector4(array4[1, 0], array4[1, 1], array4[1, 2], array4[1, 3]); mat.Row2 = new Vector4(array4[2, 0], array4[2, 1], array4[2, 2], array4[2, 3]); mat.Row3 = new Vector4(array4[3, 0], array4[3, 1], array4[3, 2], array4[3, 3]); return mat; } public static Matrix4 Transpose(Matrix4 mat) { return new Matrix4(mat.Column0, mat.Column1, mat.Column2, mat.Column3); } public static void Transpose(ref Matrix4 mat, out Matrix4 result) { result.Row0 = mat.Column0; result.Row1 = mat.Column1; result.Row2 = mat.Column2; result.Row3 = mat.Column3; } public static Matrix4 operator *(Matrix4 left, Matrix4 right) { return Mult(left, right); } public static bool operator ==(Matrix4 left, Matrix4 right) { return left.Equals(right); } public static bool operator !=(Matrix4 left, Matrix4 right) { return !left.Equals(right); } public override string ToString() { return $"{Row0}\n{Row1}\n{Row2}\n{Row3}"; } public override int GetHashCode() { return Row0.GetHashCode() ^ Row1.GetHashCode() ^ Row2.GetHashCode() ^ Row3.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Matrix4)) { return false; } return Equals((Matrix4)obj); } public bool Equals(Matrix4 other) { if (Row0 == other.Row0 && Row1 == other.Row1 && Row2 == other.Row2) { return Row3 == other.Row3; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Matrix4d.cs ================================================ using System; namespace OpenGL; [Serializable] public struct Matrix4d : IEquatable { public Vector4d Row0; public Vector4d Row1; public Vector4d Row2; public Vector4d Row3; public static Matrix4d Identity = new Matrix4d(Vector4d.UnitX, Vector4d.UnitY, Vector4d.UnitZ, Vector4d.UnitW); public double Determinant => Row0.X * Row1.Y * Row2.Z * Row3.W - Row0.X * Row1.Y * Row2.W * Row3.Z + Row0.X * Row1.Z * Row2.W * Row3.Y - Row0.X * Row1.Z * Row2.Y * Row3.W + Row0.X * Row1.W * Row2.Y * Row3.Z - Row0.X * Row1.W * Row2.Z * Row3.Y - Row0.Y * Row1.Z * Row2.W * Row3.X + Row0.Y * Row1.Z * Row2.X * Row3.W - Row0.Y * Row1.W * Row2.X * Row3.Z + Row0.Y * Row1.W * Row2.Z * Row3.X - Row0.Y * Row1.X * Row2.Z * Row3.W + Row0.Y * Row1.X * Row2.W * Row3.Z + Row0.Z * Row1.W * Row2.X * Row3.Y - Row0.Z * Row1.W * Row2.Y * Row3.X + Row0.Z * Row1.X * Row2.Y * Row3.W - Row0.Z * Row1.X * Row2.W * Row3.Y + Row0.Z * Row1.Y * Row2.W * Row3.X - Row0.Z * Row1.Y * Row2.X * Row3.W - Row0.W * Row1.X * Row2.Y * Row3.Z + Row0.W * Row1.X * Row2.Z * Row3.Y - Row0.W * Row1.Y * Row2.Z * Row3.X + Row0.W * Row1.Y * Row2.X * Row3.Z - Row0.W * Row1.Z * Row2.X * Row3.Y + Row0.W * Row1.Z * Row2.Y * Row3.X; public Vector4d Column0 => new Vector4d(Row0.X, Row1.X, Row2.X, Row3.X); public Vector4d Column1 => new Vector4d(Row0.Y, Row1.Y, Row2.Y, Row3.Y); public Vector4d Column2 => new Vector4d(Row0.Z, Row1.Z, Row2.Z, Row3.Z); public Vector4d Column3 => new Vector4d(Row0.W, Row1.W, Row2.W, Row3.W); public double M11 { get { return Row0.X; } set { Row0.X = value; } } public double M12 { get { return Row0.Y; } set { Row0.Y = value; } } public double M13 { get { return Row0.Z; } set { Row0.Z = value; } } public double M14 { get { return Row0.W; } set { Row0.W = value; } } public double M21 { get { return Row1.X; } set { Row1.X = value; } } public double M22 { get { return Row1.Y; } set { Row1.Y = value; } } public double M23 { get { return Row1.Z; } set { Row1.Z = value; } } public double M24 { get { return Row1.W; } set { Row1.W = value; } } public double M31 { get { return Row2.X; } set { Row2.X = value; } } public double M32 { get { return Row2.Y; } set { Row2.Y = value; } } public double M33 { get { return Row2.Z; } set { Row2.Z = value; } } public double M34 { get { return Row2.W; } set { Row2.W = value; } } public double M41 { get { return Row3.X; } set { Row3.X = value; } } public double M42 { get { return Row3.Y; } set { Row3.Y = value; } } public double M43 { get { return Row3.Z; } set { Row3.Z = value; } } public double M44 { get { return Row3.W; } set { Row3.W = value; } } public Matrix4d(Vector4d row0, Vector4d row1, Vector4d row2, Vector4d row3) { Row0 = row0; Row1 = row1; Row2 = row2; Row3 = row3; } public Matrix4d(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) { Row0 = new Vector4d(m00, m01, m02, m03); Row1 = new Vector4d(m10, m11, m12, m13); Row2 = new Vector4d(m20, m21, m22, m23); Row3 = new Vector4d(m30, m31, m32, m33); } public void Invert() { this = Invert(this); } public void Transpose() { this = Transpose(this); } public static void CreateFromAxisAngle(Vector3d axis, double angle, out Matrix4d result) { double num = Math.Cos(0.0 - angle); double num2 = Math.Sin(0.0 - angle); double num3 = 1.0 - num; axis.Normalize(); result = new Matrix4d(num3 * axis.X * axis.X + num, num3 * axis.X * axis.Y - num2 * axis.Z, num3 * axis.X * axis.Z + num2 * axis.Y, 0.0, num3 * axis.X * axis.Y + num2 * axis.Z, num3 * axis.Y * axis.Y + num, num3 * axis.Y * axis.Z - num2 * axis.X, 0.0, num3 * axis.X * axis.Z - num2 * axis.Y, num3 * axis.Y * axis.Z + num2 * axis.X, num3 * axis.Z * axis.Z + num, 0.0, 0.0, 0.0, 0.0, 1.0); } public static Matrix4d CreateFromAxisAngle(Vector3d axis, double angle) { CreateFromAxisAngle(axis, angle, out var result); return result; } public static void CreateRotationX(double angle, out Matrix4d result) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); result.Row0 = Vector4d.UnitX; result.Row1 = new Vector4d(0.0, num, num2, 0.0); result.Row2 = new Vector4d(0.0, 0.0 - num2, num, 0.0); result.Row3 = Vector4d.UnitW; } public static Matrix4d CreateRotationX(double angle) { CreateRotationX(angle, out var result); return result; } public static void CreateRotationY(double angle, out Matrix4d result) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); result.Row0 = new Vector4d(num, 0.0, 0.0 - num2, 0.0); result.Row1 = Vector4d.UnitY; result.Row2 = new Vector4d(num2, 0.0, num, 0.0); result.Row3 = Vector4d.UnitW; } public static Matrix4d CreateRotationY(double angle) { CreateRotationY(angle, out var result); return result; } public static void CreateRotationZ(double angle, out Matrix4d result) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); result.Row0 = new Vector4d(num, num2, 0.0, 0.0); result.Row1 = new Vector4d(0.0 - num2, num, 0.0, 0.0); result.Row2 = Vector4d.UnitZ; result.Row3 = Vector4d.UnitW; } public static Matrix4d CreateRotationZ(double angle) { CreateRotationZ(angle, out var result); return result; } public static void CreateTranslation(double x, double y, double z, out Matrix4d result) { result = Identity; result.Row3 = new Vector4d(x, y, z, 1.0); } public static void CreateTranslation(ref Vector3d vector, out Matrix4d result) { result = Identity; result.Row3 = new Vector4d(vector.X, vector.Y, vector.Z, 1.0); } public static Matrix4d CreateTranslation(double x, double y, double z) { CreateTranslation(x, y, z, out var result); return result; } public static Matrix4d CreateTranslation(Vector3d vector) { CreateTranslation(vector.X, vector.Y, vector.Z, out var result); return result; } public static void CreateOrthographic(double width, double height, double zNear, double zFar, out Matrix4d result) { CreateOrthographicOffCenter((0.0 - width) / 2.0, width / 2.0, (0.0 - height) / 2.0, height / 2.0, zNear, zFar, out result); } public static Matrix4d CreateOrthographic(double width, double height, double zNear, double zFar) { CreateOrthographicOffCenter((0.0 - width) / 2.0, width / 2.0, (0.0 - height) / 2.0, height / 2.0, zNear, zFar, out var result); return result; } public static void CreateOrthographicOffCenter(double left, double right, double bottom, double top, double zNear, double zFar, out Matrix4d result) { result = default(Matrix4d); double num = 1.0 / (right - left); double num2 = 1.0 / (top - bottom); double num3 = 1.0 / (zFar - zNear); result.M11 = 2.0 * num; result.M22 = 2.0 * num2; result.M33 = -2.0 * num3; result.M41 = (0.0 - (right + left)) * num; result.M42 = (0.0 - (top + bottom)) * num2; result.M43 = (0.0 - (zFar + zNear)) * num3; result.M44 = 1.0; } public static Matrix4d CreateOrthographicOffCenter(double left, double right, double bottom, double top, double zNear, double zFar) { CreateOrthographicOffCenter(left, right, bottom, top, zNear, zFar, out var result); return result; } public static void CreatePerspectiveFieldOfView(double fovy, double aspect, double zNear, double zFar, out Matrix4d result) { if (fovy <= 0.0 || fovy > Math.PI) { throw new ArgumentOutOfRangeException("fovy"); } if (aspect <= 0.0) { throw new ArgumentOutOfRangeException("aspect"); } if (zNear <= 0.0) { throw new ArgumentOutOfRangeException("zNear"); } if (zFar <= 0.0) { throw new ArgumentOutOfRangeException("zFar"); } double num = zNear * Math.Tan(0.5 * fovy); double num2 = 0.0 - num; double left = num2 * aspect; double right = num * aspect; CreatePerspectiveOffCenter(left, right, num2, num, zNear, zFar, out result); } public static Matrix4d CreatePerspectiveFieldOfView(double fovy, double aspect, double zNear, double zFar) { CreatePerspectiveFieldOfView(fovy, aspect, zNear, zFar, out var result); return result; } public static void CreatePerspectiveOffCenter(double left, double right, double bottom, double top, double zNear, double zFar, out Matrix4d result) { if (zNear <= 0.0) { throw new ArgumentOutOfRangeException("zNear"); } if (zFar <= 0.0) { throw new ArgumentOutOfRangeException("zFar"); } if (zNear >= zFar) { throw new ArgumentOutOfRangeException("zNear"); } double m = 2.0 * zNear / (right - left); double m2 = 2.0 * zNear / (top - bottom); double m3 = (right + left) / (right - left); double m4 = (top + bottom) / (top - bottom); double m5 = (0.0 - (zFar + zNear)) / (zFar - zNear); double m6 = (0.0 - 2.0 * zFar * zNear) / (zFar - zNear); result = new Matrix4d(m, 0.0, 0.0, 0.0, 0.0, m2, 0.0, 0.0, m3, m4, m5, -1.0, 0.0, 0.0, m6, 0.0); } public static Matrix4d CreatePerspectiveOffCenter(double left, double right, double bottom, double top, double zNear, double zFar) { CreatePerspectiveOffCenter(left, right, bottom, top, zNear, zFar, out var result); return result; } [Obsolete("Use CreateTranslation instead.")] public static Matrix4d Translation(Vector3d trans) { return Translation(trans.X, trans.Y, trans.Z); } [Obsolete("Use CreateTranslation instead.")] public static Matrix4d Translation(double x, double y, double z) { Matrix4d identity = Identity; identity.Row3 = new Vector4d(x, y, z, 1.0); return identity; } public static Matrix4d Scale(double scale) { return Scale(scale, scale, scale); } public static Matrix4d Scale(Vector3d scale) { return Scale(scale.X, scale.Y, scale.Z); } public static Matrix4d Scale(double x, double y, double z) { Matrix4d result = default(Matrix4d); result.Row0 = Vector4d.UnitX * x; result.Row1 = Vector4d.UnitY * y; result.Row2 = Vector4d.UnitZ * z; result.Row3 = Vector4d.UnitW; return result; } public static Matrix4d RotateX(double angle) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); Matrix4d result = default(Matrix4d); result.Row0 = Vector4d.UnitX; result.Row1 = new Vector4d(0.0, num, num2, 0.0); result.Row2 = new Vector4d(0.0, 0.0 - num2, num, 0.0); result.Row3 = Vector4d.UnitW; return result; } public static Matrix4d RotateY(double angle) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); Matrix4d result = default(Matrix4d); result.Row0 = new Vector4d(num, 0.0, 0.0 - num2, 0.0); result.Row1 = Vector4d.UnitY; result.Row2 = new Vector4d(num2, 0.0, num, 0.0); result.Row3 = Vector4d.UnitW; return result; } public static Matrix4d RotateZ(double angle) { double num = Math.Cos(angle); double num2 = Math.Sin(angle); Matrix4d result = default(Matrix4d); result.Row0 = new Vector4d(num, num2, 0.0, 0.0); result.Row1 = new Vector4d(0.0 - num2, num, 0.0, 0.0); result.Row2 = Vector4d.UnitZ; result.Row3 = Vector4d.UnitW; return result; } public static Matrix4d Rotate(Vector3d axis, double angle) { double num = Math.Cos(0.0 - angle); double num2 = Math.Sin(0.0 - angle); double num3 = 1.0 - num; axis.Normalize(); Matrix4d result = default(Matrix4d); result.Row0 = new Vector4d(num3 * axis.X * axis.X + num, num3 * axis.X * axis.Y - num2 * axis.Z, num3 * axis.X * axis.Z + num2 * axis.Y, 0.0); result.Row1 = new Vector4d(num3 * axis.X * axis.Y + num2 * axis.Z, num3 * axis.Y * axis.Y + num, num3 * axis.Y * axis.Z - num2 * axis.X, 0.0); result.Row2 = new Vector4d(num3 * axis.X * axis.Z - num2 * axis.Y, num3 * axis.Y * axis.Z + num2 * axis.X, num3 * axis.Z * axis.Z + num, 0.0); result.Row3 = Vector4d.UnitW; return result; } public static Matrix4d Rotate(Quaterniond q) { q.ToAxisAngle(out var axis, out var angle); return Rotate(axis, angle); } public static Matrix4d LookAt(Vector3d eye, Vector3d target, Vector3d up) { Vector3d vector3d = Vector3d.Normalize(eye - target); Vector3d right = Vector3d.Normalize(Vector3d.Cross(up, vector3d)); Vector3d vector3d2 = Vector3d.Normalize(Vector3d.Cross(vector3d, right)); Matrix4d matrix4d = new Matrix4d(new Vector4d(right.X, vector3d2.X, vector3d.X, 0.0), new Vector4d(right.Y, vector3d2.Y, vector3d.Y, 0.0), new Vector4d(right.Z, vector3d2.Z, vector3d.Z, 0.0), Vector4d.UnitW); return CreateTranslation(-eye) * matrix4d; } public static Matrix4d LookAt(double eyeX, double eyeY, double eyeZ, double targetX, double targetY, double targetZ, double upX, double upY, double upZ) { return LookAt(new Vector3d(eyeX, eyeY, eyeZ), new Vector3d(targetX, targetY, targetZ), new Vector3d(upX, upY, upZ)); } public static Matrix4d Frustum(double left, double right, double bottom, double top, double near, double far) { double num = 1.0 / (right - left); double num2 = 1.0 / (top - bottom); double num3 = 1.0 / (far - near); return new Matrix4d(new Vector4d(2.0 * near * num, 0.0, 0.0, 0.0), new Vector4d(0.0, 2.0 * near * num2, 0.0, 0.0), new Vector4d((right + left) * num, (top + bottom) * num2, (0.0 - (far + near)) * num3, -1.0), new Vector4d(0.0, 0.0, -2.0 * far * near * num3, 0.0)); } public static Matrix4d Perspective(double fovy, double aspect, double near, double far) { double num = near * Math.Tan(0.5 * fovy); double num2 = 0.0 - num; double left = num2 * aspect; double right = num * aspect; return Frustum(left, right, num2, num, near, far); } public static Matrix4d Mult(Matrix4d left, Matrix4d right) { Mult(ref left, ref right, out var result); return result; } public static void Mult(ref Matrix4d left, ref Matrix4d right, out Matrix4d result) { result = default(Matrix4d); result.M11 = left.M11 * right.M11 + left.M12 * right.M21 + left.M13 * right.M31 + left.M14 * right.M41; result.M12 = left.M11 * right.M12 + left.M12 * right.M22 + left.M13 * right.M32 + left.M14 * right.M42; result.M13 = left.M11 * right.M13 + left.M12 * right.M23 + left.M13 * right.M33 + left.M14 * right.M43; result.M14 = left.M11 * right.M14 + left.M12 * right.M24 + left.M13 * right.M34 + left.M14 * right.M44; result.M21 = left.M21 * right.M11 + left.M22 * right.M21 + left.M23 * right.M31 + left.M24 * right.M41; result.M22 = left.M21 * right.M12 + left.M22 * right.M22 + left.M23 * right.M32 + left.M24 * right.M42; result.M23 = left.M21 * right.M13 + left.M22 * right.M23 + left.M23 * right.M33 + left.M24 * right.M43; result.M24 = left.M21 * right.M14 + left.M22 * right.M24 + left.M23 * right.M34 + left.M24 * right.M44; result.M31 = left.M31 * right.M11 + left.M32 * right.M21 + left.M33 * right.M31 + left.M34 * right.M41; result.M32 = left.M31 * right.M12 + left.M32 * right.M22 + left.M33 * right.M32 + left.M34 * right.M42; result.M33 = left.M31 * right.M13 + left.M32 * right.M23 + left.M33 * right.M33 + left.M34 * right.M43; result.M34 = left.M31 * right.M14 + left.M32 * right.M24 + left.M33 * right.M34 + left.M34 * right.M44; result.M41 = left.M41 * right.M11 + left.M42 * right.M21 + left.M43 * right.M31 + left.M44 * right.M41; result.M42 = left.M41 * right.M12 + left.M42 * right.M22 + left.M43 * right.M32 + left.M44 * right.M42; result.M43 = left.M41 * right.M13 + left.M42 * right.M23 + left.M43 * right.M33 + left.M44 * right.M43; result.M44 = left.M41 * right.M14 + left.M42 * right.M24 + left.M43 * right.M34 + left.M44 * right.M44; } public static Matrix4d Invert(Matrix4d mat) { int[] array = new int[4]; int[] array2 = new int[4]; int[] array3 = new int[4] { -1, -1, -1, -1 }; double[,] array4 = new double[4, 4] { { mat.Row0.X, mat.Row0.Y, mat.Row0.Z, mat.Row0.W }, { mat.Row1.X, mat.Row1.Y, mat.Row1.Z, mat.Row1.W }, { mat.Row2.X, mat.Row2.Y, mat.Row2.Z, mat.Row2.W }, { mat.Row3.X, mat.Row3.Y, mat.Row3.Z, mat.Row3.W } }; int num = 0; int num2 = 0; for (int i = 0; i < 4; i++) { double num3 = 0.0; for (int j = 0; j < 4; j++) { if (array3[j] == 0) { continue; } for (int k = 0; k < 4; k++) { if (array3[k] == -1) { double num4 = Math.Abs(array4[j, k]); if (num4 > num3) { num3 = num4; num2 = j; num = k; } } else if (array3[k] > 0) { return mat; } } } array3[num]++; if (num2 != num) { for (int l = 0; l < 4; l++) { double num5 = array4[num2, l]; array4[num2, l] = array4[num, l]; array4[num, l] = num5; } } array2[i] = num2; array[i] = num; double num6 = array4[num, num]; if (num6 == 0.0) { throw new InvalidOperationException("Matrix is singular and cannot be inverted."); } double num7 = 1.0 / num6; array4[num, num] = 1.0; for (int m = 0; m < 4; m++) { array4[num, m] *= num7; } for (int n = 0; n < 4; n++) { if (num != n) { double num8 = array4[n, num]; array4[n, num] = 0.0; for (int num9 = 0; num9 < 4; num9++) { array4[n, num9] -= array4[num, num9] * num8; } } } } for (int num10 = 3; num10 >= 0; num10--) { int num11 = array2[num10]; int num12 = array[num10]; for (int num13 = 0; num13 < 4; num13++) { double num14 = array4[num13, num11]; array4[num13, num11] = array4[num13, num12]; array4[num13, num12] = num14; } } mat.Row0 = new Vector4d(array4[0, 0], array4[0, 1], array4[0, 2], array4[0, 3]); mat.Row1 = new Vector4d(array4[1, 0], array4[1, 1], array4[1, 2], array4[1, 3]); mat.Row2 = new Vector4d(array4[2, 0], array4[2, 1], array4[2, 2], array4[2, 3]); mat.Row3 = new Vector4d(array4[3, 0], array4[3, 1], array4[3, 2], array4[3, 3]); return mat; } public static Matrix4d Transpose(Matrix4d mat) { return new Matrix4d(mat.Column0, mat.Column1, mat.Column2, mat.Column3); } public static void Transpose(ref Matrix4d mat, out Matrix4d result) { result.Row0 = mat.Column0; result.Row1 = mat.Column1; result.Row2 = mat.Column2; result.Row3 = mat.Column3; } public static Matrix4d operator *(Matrix4d left, Matrix4d right) { return Mult(left, right); } public static bool operator ==(Matrix4d left, Matrix4d right) { return left.Equals(right); } public static bool operator !=(Matrix4d left, Matrix4d right) { return !left.Equals(right); } public override string ToString() { return $"{Row0}\n{Row1}\n{Row2}\n{Row3}"; } public override int GetHashCode() { return Row0.GetHashCode() ^ Row1.GetHashCode() ^ Row2.GetHashCode() ^ Row3.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Matrix4d)) { return false; } return Equals((Matrix4d)obj); } public bool Equals(Matrix4d other) { if (Row0 == other.Row0 && Row1 == other.Row1 && Row2 == other.Row2) { return Row3 == other.Row3; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MatrixMode.cs ================================================ namespace OpenGL; public enum MatrixMode { Modelview = 5888, Projection = 5889, Texture = 5890, Color = 6144 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MatrixModeArb.cs ================================================ namespace OpenGL; public enum MatrixModeArb { Modelview = 5888, Projection = 5889, Texture = 5890, Color = 6144, Matrix0 = 35008, Matrix1 = 35009, Matrix2 = 35010, Matrix3 = 35011, Matrix4 = 35012, Matrix5 = 35013, Matrix6 = 35014, Matrix7 = 35015, Matrix8 = 35016, Matrix9 = 35017, Matrix10 = 35018, Matrix11 = 35019, Matrix12 = 35020, Matrix13 = 35021, Matrix14 = 35022, Matrix15 = 35023, Matrix16 = 35024, Matrix17 = 35025, Matrix18 = 35026, Matrix19 = 35027, Matrix20 = 35028, Matrix21 = 35029, Matrix22 = 35030, Matrix23 = 35031, Matrix24 = 35032, Matrix25 = 35033, Matrix26 = 35034, Matrix27 = 35035, Matrix28 = 35036, Matrix29 = 35037, Matrix30 = 35038, Matrix31 = 35039 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaPackInvert.cs ================================================ namespace OpenGL; public enum MesaPackInvert { PackInvertMesa = 34648 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaPackedDepthStencil.cs ================================================ namespace OpenGL; public enum MesaPackedDepthStencil { DepthStencilMesa = 34640, UnsignedInt248Mesa, UnsignedInt824RevMesa, UnsignedShort151Mesa, UnsignedShort115RevMesa } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaProgramDebug.cs ================================================ namespace OpenGL; public enum MesaProgramDebug { FragmentProgramPositionMesa = 35760, FragmentProgramCallbackMesa = 35761, FragmentProgramCallbackFuncMesa = 35762, FragmentProgramCallbackDataMesa = 35763, VertexProgramCallbackMesa = 35764, VertexProgramPositionMesa = 35764, VertexProgramCallbackFuncMesa = 35766, VertexProgramCallbackDataMesa = 35767 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaResizeBuffers.cs ================================================ namespace OpenGL; public enum MesaResizeBuffers { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaShaderDebug.cs ================================================ namespace OpenGL; public enum MesaShaderDebug { DebugObjectMesa = 34649, DebugPrintMesa, DebugAssertMesa } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaTrace.cs ================================================ namespace OpenGL; public enum MesaTrace { TraceOperationsBitMesa = 1, TracePrimitivesBitMesa = 2, TraceArraysBitMesa = 4, TraceTexturesBitMesa = 8, TracePixelsBitMesa = 16, TraceErrorsBitMesa = 32, TraceMaskMesa = 34645, TraceNameMesa = 34646, TraceAllBitsMesa = 65535 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaWindowPos.cs ================================================ namespace OpenGL; public enum MesaWindowPos { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaYcbcrTexture.cs ================================================ namespace OpenGL; public enum MesaYcbcrTexture { UnsignedShort88Mesa = 34234, UnsignedShort88RevMesa = 34235, YcbcrMesa = 34647 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MesaxTextureStack.cs ================================================ namespace OpenGL; public enum MesaxTextureStack { Texture1DStackMesax = 34649, Texture2DStackMesax, ProxyTexture1DStackMesax, ProxyTexture2DStackMesax, Texture1DStackBindingMesax, Texture2DStackBindingMesax } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MeshMode1.cs ================================================ namespace OpenGL; public enum MeshMode1 { Point = 6912, Line } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MeshMode2.cs ================================================ namespace OpenGL; public enum MeshMode2 { Point = 6912, Line, Fill } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MinmaxTarget.cs ================================================ namespace OpenGL; public enum MinmaxTarget { Minmax = 32814 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MinmaxTargetExt.cs ================================================ namespace OpenGL; public enum MinmaxTargetExt { MinmaxExt = 32814 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/MonoMacGameView.cs ================================================ using System; using System.ComponentModel; using System.Drawing; using AppKit; using CoreGraphics; using CoreVideo; using Foundation; namespace OpenGL; public class MonoMacGameView : NSView, IGameWindow, INativeWindow, IDisposable { private bool disposed; private NSOpenGLContext openGLContext; private NSOpenGLPixelFormat pixelFormat; private CVDisplayLink displayLink; private NSObject notificationProxy; private NSTimer animationTimer; private bool animating; private bool displayLinkSupported; private WindowState windowState; private DateTime prevUpdateTime; private DateTime prevRenderTime; private FrameEventArgs updateEventArgs = new FrameEventArgs(); private FrameEventArgs renderEventArgs = new FrameEventArgs(); private Size size; public NSOpenGLContext OpenGLContext => openGLContext; public NSOpenGLPixelFormat PixelFormat => pixelFormat; public virtual string Title { get { AssertValid(); if (Window != null) { return Window.Title; } throw new NotSupportedException(); } set { AssertValid(); if (Window != null) { Window.Title = value; return; } throw new NotSupportedException(); } } bool INativeWindow.Focused { get { throw new NotImplementedException(); } } public virtual bool Visible { get { AssertValid(); return !base.Hidden; } set { AssertValid(); if (base.Hidden != !value) { base.Hidden = !value; OnVisibleChanged(EventArgs.Empty); } } } bool INativeWindow.Exists { get { throw new NotImplementedException(); } } public virtual WindowState WindowState { get { AssertValid(); return windowState; } set { AssertValid(); if (windowState != value) { windowState = value; OnWindowStateChanged(EventArgs.Empty); } } } public virtual WindowBorder WindowBorder { get { AssertValid(); return WindowBorder.Hidden; } set { } } Rectangle INativeWindow.Bounds { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } Point INativeWindow.Location { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } public Size Size { get { AssertValid(); return size; } set { AssertValid(); if (size != value) { size = value; openGLContext.CGLContext.Lock(); OnResize(EventArgs.Empty); openGLContext.Update(); openGLContext.CGLContext.Unlock(); } } } int INativeWindow.X { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } int INativeWindow.Y { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } int INativeWindow.Width { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } int INativeWindow.Height { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } Rectangle INativeWindow.ClientRectangle { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } Size INativeWindow.ClientSize { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } private bool SwapInterval { get; set; } private bool DisplaylinkSupported { get { return displayLinkSupported; } set { displayLinkSupported = value; } } event EventHandler INativeWindow.Move { add { throw new NotSupportedException(); } remove { throw new NotSupportedException(); } } public event EventHandler Resize; event EventHandler INativeWindow.Closing { add { throw new NotSupportedException(); } remove { throw new NotSupportedException(); } } public event EventHandler Closed; public event EventHandler Disposed; public event EventHandler TitleChanged; public event EventHandler VisibleChanged; event EventHandler INativeWindow.FocusedChanged { add { throw new NotSupportedException(); } remove { throw new NotSupportedException(); } } event EventHandler INativeWindow.WindowBorderChanged { add { throw new NotSupportedException(); } remove { throw new NotSupportedException(); } } public event EventHandler WindowStateChanged; event EventHandler INativeWindow.IconChanged { add { throw new NotSupportedException(); } remove { throw new NotSupportedException(); } } public event EventHandler Load; public event EventHandler Unload; public event EventHandler UpdateFrame; public event EventHandler RenderFrame; [Export("initWithFrame:")] public MonoMacGameView(CGRect frame) : this(frame, null) { } public MonoMacGameView(CGRect frame, NSOpenGLContext context) : base(frame) { object[] attribs = new object[7] { NSOpenGLPixelFormatAttribute.Accelerated, NSOpenGLPixelFormatAttribute.NoRecovery, NSOpenGLPixelFormatAttribute.DoubleBuffer, NSOpenGLPixelFormatAttribute.ColorSize, 24, NSOpenGLPixelFormatAttribute.DepthSize, 16 }; pixelFormat = new NSOpenGLPixelFormat(attribs); if (pixelFormat == null) { Console.WriteLine("No OpenGL pixel format"); } openGLContext = new NSOpenGLContext(pixelFormat, context); openGLContext.MakeCurrentContext(); SwapInterval = true; DisplaylinkSupported = true; notificationProxy = NSNotificationCenter.DefaultCenter.AddObserver(NSView.GlobalFrameChangedNotification, HandleReshape); } [Preserve(Conditional = true)] public override void DrawRect(CGRect dirtyRect) { if (!animating) { return; } if (displayLinkSupported) { if (displayLink.IsRunning) { RenderScene(); } } else { RenderScene(); } } [Preserve(Conditional = true)] public override void LockFocus() { base.LockFocus(); if (openGLContext.View != this) { openGLContext.View = this; } } private NSViewController GetViewController() { for (NSResponder nSResponder = this; nSResponder != null; nSResponder = nSResponder.NextResponder) { if (nSResponder is NSViewController result) { return result; } } return null; } protected void UpdateView() { Size = new Size((int)Bounds.Width, (int)Bounds.Height); } private void HandleReshape(NSNotification note) { UpdateView(); } private void StartAnimation(double updatesPerSecond) { if (!animating) { if (displayLinkSupported) { if (displayLink != null && !displayLink.IsRunning) { displayLink.Start(); } } else { TimeSpan when = new TimeSpan((long)(10000000.0 / updatesPerSecond + 0.5)); if (SwapInterval) { animationTimer = NSTimer.CreateRepeatingScheduledTimer(when, delegate { NeedsDisplay = true; }); } else { animationTimer = NSTimer.CreateRepeatingScheduledTimer(when, delegate { RenderScene(); }); } NSRunLoop.Current.AddTimer(animationTimer, NSRunLoopMode.Default); NSRunLoop.Current.AddTimer(animationTimer, NSRunLoopMode.EventTracking); } } animating = true; } public void Stop() { if (animating) { if (displayLinkSupported) { if (displayLink != null && displayLink.IsRunning) { displayLink.Stop(); } } else { animationTimer.Invalidate(); animationTimer = null; } } animating = false; } private void DeAllocate() { Stop(); displayLink = null; NSNotificationCenter.DefaultCenter.RemoveObserver(notificationProxy); } private void AssertValid() { if (disposed) { throw new ObjectDisposedException(""); } } private void AssertContext() { if (OpenGLContext == null) { throw new InvalidOperationException("Operation requires an OpenGLContext, which hasn't been created yet."); } } protected virtual void OnTitleChanged(EventArgs e) { this.TitleChanged?.Invoke(this, EventArgs.Empty); } protected virtual void OnVisibleChanged(EventArgs e) { this.VisibleChanged?.Invoke(this, EventArgs.Empty); } protected virtual void OnWindowStateChanged(EventArgs e) { this.WindowStateChanged?.Invoke(this, EventArgs.Empty); } protected virtual void OnResize(EventArgs e) { this.Resize?.Invoke(this, e); } public virtual void Close() { AssertValid(); OnClosed(EventArgs.Empty); } protected virtual void OnClosed(EventArgs e) { this.Closed?.Invoke(this, e); } protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { DeAllocate(); } base.Dispose(disposing); disposed = true; if (disposing) { OnDisposed(EventArgs.Empty); } } } protected virtual void OnDisposed(EventArgs e) { this.Disposed?.Invoke(this, e); } void INativeWindow.ProcessEvents() { throw new NotSupportedException(); } Point INativeWindow.PointToClient(Point point) { return point; } Point INativeWindow.PointToScreen(Point point) { return point; } public virtual void MakeCurrent() { AssertValid(); AssertContext(); OpenGLContext.MakeCurrentContext(); } public virtual void SwapBuffers() { AssertValid(); AssertContext(); OpenGLContext.FlushBuffer(); } public void Run() { AssertValid(); OnLoad(EventArgs.Empty); openGLContext.SwapInterval = SwapInterval; if (displayLinkSupported) { SetupDisplayLink(); } StartAnimation(0.0); } public void Run(double updatesPerSecond) { AssertValid(); if (updatesPerSecond == 0.0) { Run(); return; } OnLoad(EventArgs.Empty); SwapInterval = false; DisplaylinkSupported = false; openGLContext.SwapInterval = SwapInterval; if (displayLinkSupported) { SetupDisplayLink(); } StartAnimation(updatesPerSecond); } private void RenderScene() { openGLContext.CGLContext.Lock(); openGLContext.MakeCurrentContext(); DateTime now = DateTime.Now; if (prevUpdateTime.Ticks == 0L) { prevUpdateTime = now; } double num = (now - prevUpdateTime).TotalSeconds; if (num <= 0.0) { num = double.Epsilon; } updateEventArgs.Time = num; OnUpdateFrame(updateEventArgs); prevUpdateTime = now; DateTime now2 = DateTime.Now; if (prevRenderTime.Ticks == 0L) { prevRenderTime = now2; } num = (now2 - prevRenderTime).TotalSeconds; if (num <= 0.0) { num = double.Epsilon; } renderEventArgs.Time = num; OnRenderFrame(renderEventArgs); prevRenderTime = now2; openGLContext.FlushBuffer(); openGLContext.CGLContext.Unlock(); } private void SetupDisplayLink() { if (displayLink == null) { displayLink = new CVDisplayLink(); displayLink.SetOutputCallback(MyDisplayLinkOutputCallback); CGLContext cGLContext = openGLContext.CGLContext; CGLPixelFormat cGLPixelFormat = PixelFormat.CGLPixelFormat; displayLink.SetCurrentDisplay(cGLContext, cGLPixelFormat); } } private CVReturn MyDisplayLinkOutputCallback(CVDisplayLink displayLink, ref CVTimeStamp inNow, ref CVTimeStamp inOutputTime, CVOptionFlags flagsIn, ref CVOptionFlags flagsOut) { CVReturn cVReturn = CVReturn.First; using (new NSAutoreleasePool()) { BeginInvokeOnMainThread(RenderScene); return CVReturn.Success; } } protected virtual void OnLoad(EventArgs e) { this.Load?.Invoke(this, e); } protected virtual void OnUnload(EventArgs e) { EventHandler unload = this.Unload; Stop(); unload?.Invoke(this, e); } protected virtual void OnUpdateFrame(FrameEventArgs e) { this.UpdateFrame?.Invoke(this, e); } protected virtual void OnRenderFrame(FrameEventArgs e) { this.RenderFrame?.Invoke(this, e); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NormalPointerType.cs ================================================ namespace OpenGL; public enum NormalPointerType { Byte = 5120, Short = 5122, Int = 5124, Float = 5126, Double = 5130, HalfFloat = 5131, UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvBlendSquare.cs ================================================ namespace OpenGL; public enum NvBlendSquare { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvConditionalRender.cs ================================================ namespace OpenGL; public enum NvConditionalRender { QueryWaitNv = 36371, QueryNoWaitNv, QueryByRegionWaitNv, QueryByRegionNoWaitNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvCopyDepthToColor.cs ================================================ namespace OpenGL; public enum NvCopyDepthToColor { DepthStencilToRgbaNv = 34926, DepthStencilToBgraNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvCopyImage.cs ================================================ namespace OpenGL; public enum NvCopyImage { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvCoverageSample.cs ================================================ namespace OpenGL; public enum NvCoverageSample { CoverageBufferBitNv = 32768, CoverageComponentNv = 36560, CoverageComponent4Nv = 36561, CoverageAttachmentNv = 36562, CoverageBuffersNv = 36563, CoverageSamplesNv = 36564, CoverageAllFragmentsNv = 36565, CoverageEdgeFragmentsNv = 36566, CoverageAutomaticNv = 36567 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvDepthBufferFloat.cs ================================================ namespace OpenGL; public enum NvDepthBufferFloat { DepthComponent32fNv = 36267, Depth32fStencil8Nv = 36268, Float32UnsignedInt248RevNv = 36269, DepthBufferFloatModeNv = 36271 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvDepthClamp.cs ================================================ namespace OpenGL; public enum NvDepthClamp { DepthClampNv = 34383 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvDepthNonlinear.cs ================================================ namespace OpenGL; public enum NvDepthNonlinear { DepthComponent16NonlinearNv = 36396 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvEvaluators.cs ================================================ namespace OpenGL; public enum NvEvaluators { Eval2DNv = 34496, EvalTriangular2DNv = 34497, MapTessellationNv = 34498, MapAttribUOrderNv = 34499, MapAttribVOrderNv = 34500, EvalFractionalTessellationNv = 34501, EvalVertexAtrrib0Nv = 34502, EvalVertexAttrib0Nv = 34502, EvalVertexAtrrib1Nv = 34503, EvalVertexAttrib1Nv = 34503, EvalVertexAtrrib2Nv = 34504, EvalVertexAttrib2Nv = 34504, EvalVertexAtrrib3Nv = 34505, EvalVertexAttrib3Nv = 34505, EvalVertexAtrrib4Nv = 34506, EvalVertexAttrib4Nv = 34506, EvalVertexAtrrib5Nv = 34507, EvalVertexAttrib5Nv = 34507, EvalVertexAtrrib6Nv = 34508, EvalVertexAttrib6Nv = 34508, EvalVertexAtrrib7Nv = 34509, EvalVertexAttrib7Nv = 34509, EvalVertexAtrrib8Nv = 34510, EvalVertexAttrib8Nv = 34510, EvalVertexAtrrib9Nv = 34511, EvalVertexAttrib9Nv = 34511, EvalVertexAtrrib10Nv = 34512, EvalVertexAttrib10Nv = 34512, EvalVertexAtrrib11Nv = 34513, EvalVertexAttrib11Nv = 34513, EvalVertexAtrrib12Nv = 34514, EvalVertexAttrib12Nv = 34514, EvalVertexAtrrib13Nv = 34515, EvalVertexAttrib13Nv = 34515, EvalVertexAtrrib14Nv = 34516, EvalVertexAttrib14Nv = 34516, EvalVertexAtrrib15Nv = 34517, EvalVertexAttrib15Nv = 34517, MaxMapTessellationNv = 34518, MaxRationalEvalOrderNv = 34519 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvExplicitMultisample.cs ================================================ namespace OpenGL; public enum NvExplicitMultisample { SamplePositionNv = 36432, SampleMaskNv, SampleMaskValueNv, TextureBindingRenderbufferNv, TextureRenderbufferDataStoreBindingNv, TextureRenderbufferNv, SamplerRenderbufferNv, IntSamplerRenderbufferNv, UnsignedIntSamplerRenderbufferNv, MaxSampleMaskWordsNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFence.cs ================================================ namespace OpenGL; public enum NvFence { AllCompletedNv = 34034, FenceStatusNv, FenceConditionNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFloatBuffer.cs ================================================ namespace OpenGL; public enum NvFloatBuffer { FloatRNv = 34944, FloatRgNv, FloatRgbNv, FloatRgbaNv, FloatR16Nv, FloatR32Nv, FloatRg16Nv, FloatRg32Nv, FloatRgb16Nv, FloatRgb32Nv, FloatRgba16Nv, FloatRgba32Nv, TextureFloatComponentsNv, FloatClearColorValueNv, FloatRgbaModeNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFogDistance.cs ================================================ namespace OpenGL; public enum NvFogDistance { EyePlane = 9474, FogDistanceModeNv = 34138, FogGenModeNv = 34138, EyeRadialNv = 34139, EyePlaneAbsoluteNv = 34140 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFragmentProgram.cs ================================================ namespace OpenGL; public enum NvFragmentProgram { MaxFragmentProgramLocalParametersNv = 34920, FragmentProgramNv = 34928, MaxTextureCoordsNv = 34929, MaxTextureImageUnitsNv = 34930, FragmentProgramBindingNv = 34931, ProgramErrorStringNv = 34932 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFragmentProgram2.cs ================================================ namespace OpenGL; public enum NvFragmentProgram2 { MaxProgramExecInstructionsNv = 35060, MaxProgramCallDepthNv, MaxProgramIfDepthNv, MaxProgramLoopDepthNv, MaxProgramLoopCountNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFragmentProgram4.cs ================================================ namespace OpenGL; public enum NvFragmentProgram4 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFragmentProgramOption.cs ================================================ namespace OpenGL; public enum NvFragmentProgramOption { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvFramebufferMultisampleCoverage.cs ================================================ namespace OpenGL; public enum NvFramebufferMultisampleCoverage { RenderbufferCoverageSamplesNv = 36011, RenderbufferColorSamplesNv = 36368, MaxMultisampleCoverageModesNv = 36369, MultisampleCoverageModesNv = 36370 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvGeometryProgram4.cs ================================================ namespace OpenGL; public enum NvGeometryProgram4 { LinesAdjacencyExt = 10, LineStripAdjacencyExt = 11, TrianglesAdjacencyExt = 12, TriangleStripAdjacencyExt = 13, ProgramPointSizeExt = 34370, GeometryProgramNv = 35878, MaxProgramOutputVerticesNv = 35879, MaxProgramTotalOutputComponentsNv = 35880, MaxGeometryTextureImageUnitsExt = 35881, FramebufferAttachmentTextureLayerExt = 36052, FramebufferAttachmentLayeredExt = 36263, FramebufferIncompleteLayerTargetsExt = 36264, FramebufferIncompleteLayerCountExt = 36265, GeometryVerticesOutExt = 36314, GeometryInputTypeExt = 36315, GeometryOutputTypeExt = 36316 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvGeometryShader4.cs ================================================ namespace OpenGL; public enum NvGeometryShader4 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvGpuProgram4.cs ================================================ namespace OpenGL; public enum NvGpuProgram4 { MinProgramTexelOffsetNv = 35076, MaxProgramTexelOffsetNv = 35077, ProgramAttribComponentsNv = 35078, ProgramResultComponentsNv = 35079, MaxProgramAttribComponentsNv = 35080, MaxProgramResultComponentsNv = 35081, MaxProgramGenericAttribsNv = 36261, MaxProgramGenericResultsNv = 36262 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvGpuProgram5.cs ================================================ namespace OpenGL; public enum NvGpuProgram5 { MaxGeometryProgramInvocationsNv = 36442, MinFragmentInterpolationOffsetNv = 36443, MaxFragmentInterpolationOffsetNv = 36444, FragmentProgramInterpolationOffsetBitsNv = 36445, MinProgramTextureGatherOffsetNv = 36446, MaxProgramTextureGatherOffsetNv = 36447, MaxProgramSubroutineParametersNv = 36676, MaxProgramSubroutineNumNv = 36677 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvGpuShader5.cs ================================================ namespace OpenGL; public enum NvGpuShader5 { Patches = 14, Int64Nv = 5134, UnsignedInt64Nv = 5135, Int8Nv = 36832, Int8Vec2Nv = 36833, Int8Vec3Nv = 36834, Int8Vec4Nv = 36835, Int16Nv = 36836, Int16Vec2Nv = 36837, Int16Vec3Nv = 36838, Int16Vec4Nv = 36839, Int64Vec2Nv = 36841, Int64Vec3Nv = 36842, Int64Vec4Nv = 36843, UnsignedInt8Nv = 36844, UnsignedInt8Vec2Nv = 36845, UnsignedInt8Vec3Nv = 36846, UnsignedInt8Vec4Nv = 36847, UnsignedInt16Nv = 36848, UnsignedInt16Vec2Nv = 36849, UnsignedInt16Vec3Nv = 36850, UnsignedInt16Vec4Nv = 36851, UnsignedInt64Vec2Nv = 36853, UnsignedInt64Vec3Nv = 36854, UnsignedInt64Vec4Nv = 36855, Float16Nv = 36856, Float16Vec2Nv = 36857, Float16Vec3Nv = 36858, Float16Vec4Nv = 36859 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvHalfFloat.cs ================================================ namespace OpenGL; public enum NvHalfFloat { HalfFloatNv = 5131 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvLightMaxExponent.cs ================================================ namespace OpenGL; public enum NvLightMaxExponent { MaxShininessNv = 34052, MaxSpotExponentNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvMultisampleCoverage.cs ================================================ namespace OpenGL; public enum NvMultisampleCoverage { CoverageSamplesNv = 32937, ColorSamplesNv = 36384 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvMultisampleFilterHint.cs ================================================ namespace OpenGL; public enum NvMultisampleFilterHint { MultisampleFilterHintNv = 34100 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvOcclusionQuery.cs ================================================ namespace OpenGL; public enum NvOcclusionQuery { PixelCounterBitsNv = 34916, CurrentOcclusionQueryIdNv, PixelCountNv, PixelCountAvailableNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvPackedDepthStencil.cs ================================================ namespace OpenGL; public enum NvPackedDepthStencil { DepthStencilNv = 34041, UnsignedInt248Nv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvParameterBufferObject.cs ================================================ namespace OpenGL; public enum NvParameterBufferObject { MaxProgramParameterBufferBindingsNv = 36256, MaxProgramParameterBufferSizeNv, VertexProgramParameterBufferNv, GeometryProgramParameterBufferNv, FragmentProgramParameterBufferNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvParameterBufferObject2.cs ================================================ namespace OpenGL; public enum NvParameterBufferObject2 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvPixelDataRange.cs ================================================ namespace OpenGL; public enum NvPixelDataRange { WritePixelDataRangeNv = 34936, ReadPixelDataRangeNv, WritePixelDataRangeLengthNv, ReadPixelDataRangeLengthNv, WritePixelDataRangePointerNv, ReadPixelDataRangePointerNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvPointSprite.cs ================================================ namespace OpenGL; public enum NvPointSprite { PointSpriteNv = 34913, CoordReplaceNv, PointSpriteRModeNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvPresentVideo.cs ================================================ namespace OpenGL; public enum NvPresentVideo { FrameNv = 36390, FieldsNv, CurrentTimeNv, NumFillStreamsNv, PresentTimeNv, PresentDurationNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvPrimitiveRestart.cs ================================================ namespace OpenGL; public enum NvPrimitiveRestart { PrimitiveRestartNv = 34136, PrimitiveRestartIndexNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvRegisterCombiners.cs ================================================ namespace OpenGL; public enum NvRegisterCombiners { None = 0, Zero = 0, Fog = 2912, Texture0Arb = 33984, Texture1Arb = 33985, RegisterCombinersNv = 34082, VariableANv = 34083, VariableBNv = 34084, VariableCNv = 34085, VariableDNv = 34086, VariableENv = 34087, VariableFNv = 34088, VariableGNv = 34089, ConstantColor0Nv = 34090, ConstantColor1Nv = 34091, PrimaryColorNv = 34092, SecondaryColorNv = 34093, Spare0Nv = 34094, Spare1Nv = 34095, DiscardNv = 34096, ETimesFNv = 34097, Spare0PlusSecondaryColorNv = 34098, VertexArrayRangeWithoutFlushNv = 34099, MultisampleFilterHintNv = 34100, UnsignedIdentityNv = 34102, UnsignedInvertNv = 34103, ExpandNormalNv = 34104, ExpandNegateNv = 34105, HalfBiasNormalNv = 34106, HalfBiasNegateNv = 34107, SignedIdentityNv = 34108, SignedNegateNv = 34109, UnsignedNegateNv = 34109, ScaleByTwoNv = 34110, ScaleByFourNv = 34111, ScaleByOneHalfNv = 34112, BiasByNegativeOneHalfNv = 34113, CombinerInputNv = 34114, CombinerMappingNv = 34115, CombinerComponentUsageNv = 34116, CombinerAbDotProductNv = 34117, CombinerCdDotProductNv = 34118, CombinerMuxSumNv = 34119, CombinerScaleNv = 34120, CombinerBiasNv = 34121, CombinerAbOutputNv = 34122, CombinerCdOutputNv = 34123, CombinerSumOutputNv = 34124, MaxGeneralCombinersNv = 34125, NumGeneralCombinersNv = 34126, ColorSumClampNv = 34127, Combiner0Nv = 34128, Combiner1Nv = 34129, Combiner2Nv = 34130, Combiner3Nv = 34131, Combiner4Nv = 34132, Combiner5Nv = 34133, Combiner6Nv = 34134, Combiner7Nv = 34135 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvRegisterCombiners2.cs ================================================ namespace OpenGL; public enum NvRegisterCombiners2 { PerStageConstantsNv = 34101 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvShaderBufferLoad.cs ================================================ namespace OpenGL; public enum NvShaderBufferLoad { BufferGpuAddressNv = 36637, GpuAddressNv = 36660, MaxShaderBufferAddressNv = 36661 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvShaderBufferStore.cs ================================================ namespace OpenGL; public enum NvShaderBufferStore { ShaderGlobalAccessBarrierBitNv = 16, WriteOnly = 35001, ReadWrite = 35002 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTessellationProgram5.cs ================================================ namespace OpenGL; public enum NvTessellationProgram5 { MaxProgramPatchAttribsNv = 34520, TessControlProgramNv = 35102, TessEvaluationProgramNv = 35103, TessControlProgramParameterBufferNv = 35956, TessEvaluationProgramParameterBufferNv = 35957 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTexgenEmboss.cs ================================================ namespace OpenGL; public enum NvTexgenEmboss { EmbossLightNv = 34141, EmbossConstantNv, EmbossMapNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTexgenReflection.cs ================================================ namespace OpenGL; public enum NvTexgenReflection { NormalMap = 34065, NormalMapNv = 34065, ReflectionMap = 34066, ReflectionMapNv = 34066 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureBarrier.cs ================================================ namespace OpenGL; public enum NvTextureBarrier { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureCompressionVtc.cs ================================================ namespace OpenGL; public enum NvTextureCompressionVtc { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureEnvCombine4.cs ================================================ namespace OpenGL; public enum NvTextureEnvCombine4 { Combine4Nv = 34051, Source3RgbNv = 34179, Source3AlphaNv = 34187, Operand3RgbNv = 34195, Operand3AlphaNv = 34203 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureExpandNormal.cs ================================================ namespace OpenGL; public enum NvTextureExpandNormal { TextureUnsignedRemapModeNv = 34959 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureRectangle.cs ================================================ namespace OpenGL; public enum NvTextureRectangle { TextureRectangleNv = 34037, TextureBindingRectangleNv, ProxyTextureRectangleNv, MaxRectangleTextureSizeNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureShader.cs ================================================ namespace OpenGL; public enum NvTextureShader { OffsetTextureRectangleNv = 34380, OffsetTextureRectangleScaleNv = 34381, DotProductTextureRectangleNv = 34382, RgbaUnsignedDotProductMappingNv = 34521, UnsignedIntS8S888Nv = 34522, UnsignedInt88S8S8RevNv = 34523, DsdtMagIntensityNv = 34524, ShaderConsistentNv = 34525, TextureShaderNv = 34526, ShaderOperationNv = 34527, CullModesNv = 34528, OffsetTexture2DMatrixNv = 34529, OffsetTextureMatrixNv = 34529, OffsetTexture2DScaleNv = 34530, OffsetTextureScaleNv = 34530, OffsetTexture2DBiasNv = 34531, OffsetTextureBiasNv = 34531, PreviousTextureInputNv = 34532, ConstEyeNv = 34533, PassThroughNv = 34534, CullFragmentNv = 34535, OffsetTexture2DNv = 34536, DependentArTexture2DNv = 34537, DependentGbTexture2DNv = 34538, DotProductNv = 34540, DotProductDepthReplaceNv = 34541, DotProductTexture2DNv = 34542, DotProductTextureCubeMapNv = 34544, DotProductDiffuseCubeMapNv = 34545, DotProductReflectCubeMapNv = 34546, DotProductConstEyeReflectCubeMapNv = 34547, HiloNv = 34548, DsdtNv = 34549, DsdtMagNv = 34550, DsdtMagVibNv = 34551, Hilo16Nv = 34552, SignedHiloNv = 34553, SignedHilo16Nv = 34554, SignedRgbaNv = 34555, SignedRgba8Nv = 34556, SignedRgbNv = 34558, SignedRgb8Nv = 34559, SignedLuminanceNv = 34561, SignedLuminance8Nv = 34562, SignedLuminanceAlphaNv = 34563, SignedLuminance8Alpha8Nv = 34564, SignedAlphaNv = 34565, SignedAlpha8Nv = 34566, SignedIntensityNv = 34567, SignedIntensity8Nv = 34568, Dsdt8Nv = 34569, Dsdt8Mag8Nv = 34570, Dsdt8Mag8Intensity8Nv = 34571, SignedRgbUnsignedAlphaNv = 34572, SignedRgb8UnsignedAlpha8Nv = 34573, HiScaleNv = 34574, LoScaleNv = 34575, DsScaleNv = 34576, DtScaleNv = 34577, MagnitudeScaleNv = 34578, VibranceScaleNv = 34579, HiBiasNv = 34580, LoBiasNv = 34581, DsBiasNv = 34582, DtBiasNv = 34583, MagnitudeBiasNv = 34584, VibranceBiasNv = 34585, TextureBorderValuesNv = 34586, TextureHiSizeNv = 34587, TextureLoSizeNv = 34588, TextureDsSizeNv = 34589, TextureDtSizeNv = 34590, TextureMagSizeNv = 34591 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureShader2.cs ================================================ namespace OpenGL; public enum NvTextureShader2 { DotProductTexture3DNv = 34543 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTextureShader3.cs ================================================ namespace OpenGL; public enum NvTextureShader3 { OffsetProjectiveTexture2DNv = 34896, OffsetProjectiveTexture2DScaleNv, OffsetProjectiveTextureRectangleNv, OffsetProjectiveTextureRectangleScaleNv, OffsetHiloTexture2DNv, OffsetHiloTextureRectangleNv, OffsetHiloProjectiveTexture2DNv, OffsetHiloProjectiveTextureRectangleNv, DependentHiloTexture2DNv, DependentRgbTexture3DNv, DependentRgbTextureCubeMapNv, DotProductPassThroughNv, DotProductTexture1DNv, DotProductAffineDepthReplaceNv, Hilo8Nv, SignedHilo8Nv, ForceBlueToOneNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTransformFeedback.cs ================================================ namespace OpenGL; public enum NvTransformFeedback { TransformFeedbackVaryingMaxLength = 35958, TransformFeedbackVaryingMaxLengthExt = 35958, BackPrimaryColorNv = 35959, BackSecondaryColorNv = 35960, TextureCoordNv = 35961, ClipDistanceNv = 35962, VertexIdNv = 35963, PrimitiveIdNv = 35964, GenericAttribNv = 35965, TransformFeedbackAttribsNv = 35966, TransformFeedbackBufferMode = 35967, TransformFeedbackBufferModeExt = 35967, TransformFeedbackBufferModeNv = 35967, MaxTransformFeedbackSeparateComponents = 35968, MaxTransformFeedbackSeparateComponentsExt = 35968, MaxTransformFeedbackSeparateComponentsNv = 35968, ActiveVaryingsNv = 35969, ActiveVaryingMaxLengthNv = 35970, TransformFeedbackVaryings = 35971, TransformFeedbackVaryingsExt = 35971, TransformFeedbackVaryingsNv = 35971, TransformFeedbackBufferStart = 35972, TransformFeedbackBufferStartExt = 35972, TransformFeedbackBufferStartNv = 35972, TransformFeedbackBufferSize = 35973, TransformFeedbackBufferSizeExt = 35973, TransformFeedbackBufferSizeNv = 35973, TransformFeedbackRecordNv = 35974, PrimitivesGenerated = 35975, PrimitivesGeneratedExt = 35975, PrimitivesGeneratedNv = 35975, TransformFeedbackPrimitivesWritten = 35976, TransformFeedbackPrimitivesWrittenExt = 35976, TransformFeedbackPrimitivesWrittenNv = 35976, RasterizerDiscard = 35977, RasterizerDiscardExt = 35977, RasterizerDiscardNv = 35977, MaxTransformFeedbackInterleavedAttribsNv = 35978, MaxTransformFeedbackInterleavedComponents = 35978, MaxTransformFeedbackInterleavedComponentsExt = 35978, MaxTransformFeedbackSeparateAttribs = 35979, MaxTransformFeedbackSeparateAttribsExt = 35979, MaxTransformFeedbackSeparateAttribsNv = 35979, InterleavedAttribs = 35980, InterleavedAttribsExt = 35980, InterleavedAttribsNv = 35980, SeparateAttribs = 35981, SeparateAttribsExt = 35981, SeparateAttribsNv = 35981, TransformFeedbackBuffer = 35982, TransformFeedbackBufferExt = 35982, TransformFeedbackBufferNv = 35982, TransformFeedbackBufferBinding = 35983, TransformFeedbackBufferBindingExt = 35983, TransformFeedbackBufferBindingNv = 35983, LayerNv = 36266, NextBufferNv = 2, SkipComponents4Nv = 3, SkipComponents3Nv = 4, SkipComponents2Nv = 5, SkipComponents1Nv = 6 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvTransformFeedback2.cs ================================================ namespace OpenGL; public enum NvTransformFeedback2 { TransformFeedbackNv = 36386, TransformFeedbackBufferPausedNv, TransformFeedbackBufferActiveNv, TransformFeedbackBindingNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVdpauInterop.cs ================================================ namespace OpenGL; public enum NvVdpauInterop { SurfaceStateNv = 34539, SurfaceRegisteredNv = 34557, SurfaceMappedNv = 34560, WriteDiscardNv = 35006 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexArrayRange.cs ================================================ namespace OpenGL; public enum NvVertexArrayRange { VertexArrayRangeNv = 34077, VertexArrayRangeLengthNv, VertexArrayRangeValidNv, MaxVertexArrayRangeElementNv, VertexArrayRangePointerNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexArrayRange2.cs ================================================ namespace OpenGL; public enum NvVertexArrayRange2 { VertexArrayRangeWithoutFlushNv = 34099 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexAttribInteger64bit.cs ================================================ namespace OpenGL; public enum NvVertexAttribInteger64bit { Int64Nv = 5134, UnsignedInt64Nv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexBufferUnifiedMemory.cs ================================================ namespace OpenGL; public enum NvVertexBufferUnifiedMemory { VertexAttribArrayUnifiedNv = 36638, ElementArrayUnifiedNv = 36639, VertexAttribArrayAddressNv = 36640, VertexArrayAddressNv = 36641, NormalArrayAddressNv = 36642, ColorArrayAddressNv = 36643, IndexArrayAddressNv = 36644, TextureCoordArrayAddressNv = 36645, EdgeFlagArrayAddressNv = 36646, SecondaryColorArrayAddressNv = 36647, FogCoordArrayAddressNv = 36648, ElementArrayAddressNv = 36649, VertexAttribArrayLengthNv = 36650, VertexArrayLengthNv = 36651, NormalArrayLengthNv = 36652, ColorArrayLengthNv = 36653, IndexArrayLengthNv = 36654, TextureCoordArrayLengthNv = 36655, EdgeFlagArrayLengthNv = 36656, SecondaryColorArrayLengthNv = 36657, FogCoordArrayLengthNv = 36658, ElementArrayLengthNv = 36659, DrawIndirectUnifiedNv = 36672, DrawIndirectAddressNv = 36673, DrawIndirectLengthNv = 36674 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram.cs ================================================ namespace OpenGL; public enum NvVertexProgram { VertexProgramNv = 34336, VertexStateProgramNv = 34337, AttribArraySizeNv = 34339, AttribArrayStrideNv = 34340, AttribArrayTypeNv = 34341, CurrentAttribNv = 34342, ProgramLengthNv = 34343, ProgramStringNv = 34344, ModelviewProjectionNv = 34345, IdentityNv = 34346, InverseNv = 34347, TransposeNv = 34348, InverseTransposeNv = 34349, MaxTrackMatrixStackDepthNv = 34350, MaxTrackMatricesNv = 34351, Matrix0Nv = 34352, Matrix1Nv = 34353, Matrix2Nv = 34354, Matrix3Nv = 34355, Matrix4Nv = 34356, Matrix5Nv = 34357, Matrix6Nv = 34358, Matrix7Nv = 34359, CurrentMatrixStackDepthNv = 34368, CurrentMatrixNv = 34369, VertexProgramPointSizeNv = 34370, VertexProgramTwoSideNv = 34371, ProgramParameterNv = 34372, AttribArrayPointerNv = 34373, ProgramTargetNv = 34374, ProgramResidentNv = 34375, TrackMatrixNv = 34376, TrackMatrixTransformNv = 34377, VertexProgramBindingNv = 34378, ProgramErrorPositionNv = 34379, VertexAttribArray0Nv = 34384, VertexAttribArray1Nv = 34385, VertexAttribArray2Nv = 34386, VertexAttribArray3Nv = 34387, VertexAttribArray4Nv = 34388, VertexAttribArray5Nv = 34389, VertexAttribArray6Nv = 34390, VertexAttribArray7Nv = 34391, VertexAttribArray8Nv = 34392, VertexAttribArray9Nv = 34393, VertexAttribArray10Nv = 34394, VertexAttribArray11Nv = 34395, VertexAttribArray12Nv = 34396, VertexAttribArray13Nv = 34397, VertexAttribArray14Nv = 34398, VertexAttribArray15Nv = 34399, Map1VertexAttrib04Nv = 34400, Map1VertexAttrib14Nv = 34401, Map1VertexAttrib24Nv = 34402, Map1VertexAttrib34Nv = 34403, Map1VertexAttrib44Nv = 34404, Map1VertexAttrib54Nv = 34405, Map1VertexAttrib64Nv = 34406, Map1VertexAttrib74Nv = 34407, Map1VertexAttrib84Nv = 34408, Map1VertexAttrib94Nv = 34409, Map1VertexAttrib104Nv = 34410, Map1VertexAttrib114Nv = 34411, Map1VertexAttrib124Nv = 34412, Map1VertexAttrib134Nv = 34413, Map1VertexAttrib144Nv = 34414, Map1VertexAttrib154Nv = 34415, Map2VertexAttrib04Nv = 34416, Map2VertexAttrib14Nv = 34417, Map2VertexAttrib24Nv = 34418, Map2VertexAttrib34Nv = 34419, Map2VertexAttrib44Nv = 34420, Map2VertexAttrib54Nv = 34421, Map2VertexAttrib64Nv = 34422, Map2VertexAttrib74Nv = 34423, Map2VertexAttrib84Nv = 34424, Map2VertexAttrib94Nv = 34425, Map2VertexAttrib104Nv = 34426, Map2VertexAttrib114Nv = 34427, Map2VertexAttrib124Nv = 34428, Map2VertexAttrib134Nv = 34429, Map2VertexAttrib144Nv = 34430, Map2VertexAttrib154Nv = 34431 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram11.cs ================================================ namespace OpenGL; public enum NvVertexProgram11 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram2.cs ================================================ namespace OpenGL; public enum NvVertexProgram2 { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram2Option.cs ================================================ namespace OpenGL; public enum NvVertexProgram2Option { MaxProgramExecInstructionsNv = 35060, MaxProgramCallDepthNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram3.cs ================================================ namespace OpenGL; public enum NvVertexProgram3 { FragmentShader = 35632, FragmentShaderArb = 35632, VertexShader = 35633, VertexShaderArb = 35633, ProgramObjectArb = 35648, ShaderObjectArb = 35656, MaxFragmentUniformComponents = 35657, MaxFragmentUniformComponentsArb = 35657, MaxVertexUniformComponents = 35658, MaxVertexUniformComponentsArb = 35658, MaxVaryingFloats = 35659, MaxVaryingFloatsArb = 35659, MaxVertexTextureImageUnits = 35660, MaxVertexTextureImageUnitsArb = 35660, MaxCombinedTextureImageUnits = 35661, MaxCombinedTextureImageUnitsArb = 35661, ObjectTypeArb = 35662, ObjectSubtypeArb = 35663, ShaderType = 35663, FloatVec2 = 35664, FloatVec2Arb = 35664, FloatVec3 = 35665, FloatVec3Arb = 35665, FloatVec4 = 35666, FloatVec4Arb = 35666, IntVec2 = 35667, IntVec2Arb = 35667, IntVec3 = 35668, IntVec3Arb = 35668, IntVec4 = 35669, IntVec4Arb = 35669, Bool = 35670, BoolArb = 35670, BoolVec2 = 35671, BoolVec2Arb = 35671, BoolVec3 = 35672, BoolVec3Arb = 35672, BoolVec4 = 35673, BoolVec4Arb = 35673, FloatMat2 = 35674, FloatMat2Arb = 35674, FloatMat3 = 35675, FloatMat3Arb = 35675, FloatMat4 = 35676, FloatMat4Arb = 35676, Sampler1D = 35677, Sampler1DArb = 35677, Sampler2D = 35678, Sampler2DArb = 35678, Sampler3D = 35679, Sampler3DArb = 35679, SamplerCube = 35680, SamplerCubeArb = 35680, Sampler1DShadow = 35681, Sampler1DShadowArb = 35681, Sampler2DShadow = 35682, Sampler2DShadowArb = 35682, Sampler2DRectArb = 35683, Sampler2DRectShadowArb = 35684, FloatMat2x3 = 35685, FloatMat2x4 = 35686, FloatMat3x2 = 35687, FloatMat3x4 = 35688, FloatMat4x2 = 35689, FloatMat4x3 = 35690, DeleteStatus = 35712, ObjectDeleteStatusArb = 35712, CompileStatus = 35713, ObjectCompileStatusArb = 35713, LinkStatus = 35714, ObjectLinkStatusArb = 35714, ObjectValidateStatusArb = 35715, ValidateStatus = 35715, InfoLogLength = 35716, ObjectInfoLogLengthArb = 35716, AttachedShaders = 35717, ObjectAttachedObjectsArb = 35717, ActiveUniforms = 35718, ObjectActiveUniformsArb = 35718, ActiveUniformMaxLength = 35719, ObjectActiveUniformMaxLengthArb = 35719, ObjectShaderSourceLengthArb = 35720, ShaderSourceLength = 35720, ActiveAttributes = 35721, ObjectActiveAttributesArb = 35721, ActiveAttributeMaxLength = 35722, ObjectActiveAttributeMaxLengthArb = 35722, FragmentShaderDerivativeHint = 35723, FragmentShaderDerivativeHintArb = 35723, ShadingLanguageVersion = 35724, ShadingLanguageVersionArb = 35724 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVertexProgram4.cs ================================================ namespace OpenGL; public enum NvVertexProgram4 { VertexAttribArrayIntegerNv = 35069 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/NvVideoCapture.cs ================================================ namespace OpenGL; public enum NvVideoCapture { VideoBufferNv = 36896, VideoBufferBindingNv, FieldUpperNv, FieldLowerNv, NumVideoCaptureStreamsNv, NextVideoCaptureBufferStatusNv, VideoCaptureTo422SupportedNv, LastVideoCaptureStatusNv, VideoBufferPitchNv, VideoColorConversionMatrixNv, VideoColorConversionMaxNv, VideoColorConversionMinNv, VideoColorConversionOffsetNv, VideoBufferInternalFormatNv, PartialSuccessNv, SuccessNv, FailureNv, Ycbycr8422Nv, Ycbaycr8A4224Nv, Z6y10z6cb10z6y10z6cr10422Nv, Z6y10z6cb10z6A10z6y10z6cr10z6A104224Nv, Z4y12z4cb12z4y12z4cr12422Nv, Z4y12z4cb12z4A12z4y12z4cr12z4A124224Nv, Z4y12z4cb12z4cr12444Nv, VideoCaptureFrameWidthNv, VideoCaptureFrameHeightNv, VideoCaptureFieldUpperHeightNv, VideoCaptureFieldLowerHeightNv, VideoCaptureSurfaceOriginNv } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesBlendEquationSeparate.cs ================================================ namespace OpenGL; public enum OesBlendEquationSeparate { BlendEquationRgbOes = 32777, BlendEquationAlphaOes = 34877 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesBlendFuncSeparate.cs ================================================ namespace OpenGL; public enum OesBlendFuncSeparate { BlendDstRgbOes = 32968, BlendSrcRgbOes, BlendDstAlphaOes, BlendSrcAlphaOes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesBlendSubtract.cs ================================================ namespace OpenGL; public enum OesBlendSubtract { FuncAddOes = 32774, BlendEquationOes = 32777, FuncSubtractOes = 32778, FuncReverseSubtractOes = 32779 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesCompressedEtc1Rgb8Texture.cs ================================================ namespace OpenGL; public enum OesCompressedEtc1Rgb8Texture { Etc1Rgb8Oes = 36196 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesCompressedPalettedTexture.cs ================================================ namespace OpenGL; public enum OesCompressedPalettedTexture { Palette4Rgb8Oes = 35728, Palette4Rgba8Oes, Palette4R5G6B5Oes, Palette4Rgba4Oes, Palette4Rgb5A1Oes, Palette8Rgb8Oes, Palette8Rgba8Oes, Palette8R5G6B5Oes, Palette8Rgba4Oes, Palette8Rgb5A1Oes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesDepth24.cs ================================================ namespace OpenGL; public enum OesDepth24 { DepthComponent24Oes = 33190 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesDepth32.cs ================================================ namespace OpenGL; public enum OesDepth32 { DepthComponent32Oes = 33191 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesDepthTexture.cs ================================================ namespace OpenGL; public enum OesDepthTexture { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesDrawTexture.cs ================================================ namespace OpenGL; public enum OesDrawTexture { TextureCropRectOes = 35741 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesEglImageExternal.cs ================================================ namespace OpenGL; public enum OesEglImageExternal { TextureExternalOes = 36197, SamplerExternalOes, TextureBindingExternalOes, RequiredTextureImageUnitsOes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesElementIndexUint.cs ================================================ namespace OpenGL; public enum OesElementIndexUint { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesFixedPoint.cs ================================================ namespace OpenGL; public enum OesFixedPoint { FixedOes = 5132 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesFramebufferObject.cs ================================================ namespace OpenGL; public enum OesFramebufferObject { InvalidFramebufferOperationOes = 1286, Rgba4Oes = 32854, Rgb5A1Oes = 32855, DepthComponent16Oes = 33189, MaxRenderbufferSizeOes = 34024, FramebufferBindingOes = 36006, RenderbufferBindingOes = 36007, FramebufferAttachmentObjectTypeOes = 36048, FramebufferAttachmentObjectNameOes = 36049, FramebufferAttachmentTextureLevelOes = 36050, FramebufferAttachmentTextureCubeMapFaceOes = 36051, FramebufferAttachmentTexture3DZoffsetOes = 36052, FramebufferCompleteOes = 36053, FramebufferIncompleteAttachmentOes = 36054, FramebufferIncompleteMissingAttachmentOes = 36055, FramebufferIncompleteDimensionsOes = 36057, FramebufferIncompleteFormatsOes = 36058, FramebufferIncompleteDrawBufferOes = 36059, FramebufferIncompleteReadBufferOes = 36060, FramebufferUnsupportedOes = 36061, ColorAttachment0Oes = 36064, DepthAttachmentOes = 36096, StencilAttachmentOes = 36128, FramebufferOes = 36160, RenderbufferOes = 36161, RenderbufferWidthOes = 36162, RenderbufferHeightOes = 36163, RenderbufferInternalFormatOes = 36164, StencilIndex1Oes = 36166, StencilIndex4Oes = 36167, StencilIndex8Oes = 36168, RenderbufferRedSizeOes = 36176, RenderbufferGreenSizeOes = 36177, RenderbufferBlueSizeOes = 36178, RenderbufferAlphaSizeOes = 36179, RenderbufferDepthSizeOes = 36180, RenderbufferStencilSizeOes = 36181, Rgb565Oes = 36194 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesGetProgramBinary.cs ================================================ namespace OpenGL; public enum OesGetProgramBinary { ProgramBinaryLengthOes = 34625, NumProgramBinaryFormatsOes = 34814, ProgramBinaryFormatsOes = 34815 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesMapbuffer.cs ================================================ namespace OpenGL; public enum OesMapbuffer { WriteOnlyOes = 35001, BufferAccessOes = 35003, BufferMappedOes = 35004, BufferMapPointerOes = 35005 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesMatrixGet.cs ================================================ namespace OpenGL; public enum OesMatrixGet { ModelviewMatrixFloatAsIntBitsOes = 35213, ProjectionMatrixFloatAsIntBitsOes, TextureMatrixFloatAsIntBitsOes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesMatrixPalette.cs ================================================ namespace OpenGL; public enum OesMatrixPalette { MaxVertexUnitsOes = 34468, WeightArrayTypeOes = 34473, WeightArrayStrideOes = 34474, WeightArraySizeOes = 34475, WeightArrayPointerOes = 34476, WeightArrayOes = 34477, MatrixPaletteOes = 34880, MaxPaletteMatricesOes = 34882, CurrentPaletteMatrixOes = 34883, MatrixIndexArrayOes = 34884, MatrixIndexArraySizeOes = 34886, MatrixIndexArrayTypeOes = 34887, MatrixIndexArrayStrideOes = 34888, MatrixIndexArrayPointerOes = 34889, WeightArrayBufferBindingOes = 34974, MatrixIndexArrayBufferBindingOes = 35742 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesPackedDepthStencil.cs ================================================ namespace OpenGL; public enum OesPackedDepthStencil { DepthStencilOes = 34041, UnsignedInt248Oes = 34042, Depth24Stencil8Oes = 35056 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesPointSizeArray.cs ================================================ namespace OpenGL; public enum OesPointSizeArray { PointSizeArrayTypeOes = 35210, PointSizeArrayStrideOes = 35211, PointSizeArrayPointerOes = 35212, PointSizeArrayOes = 35740, PointSizeArrayBufferBindingOes = 35743 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesPointSprite.cs ================================================ namespace OpenGL; public enum OesPointSprite { PointSpriteArb = 34913, CoordReplaceArb } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesReadFormat.cs ================================================ namespace OpenGL; public enum OesReadFormat { ImplementationColorReadTypeOes = 35738, ImplementationColorReadFormatOes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesRgb8Rgba8.cs ================================================ namespace OpenGL; public enum OesRgb8Rgba8 { Rgb8 = 32849, Rgba8 = 32856 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesStandardDerivatives.cs ================================================ namespace OpenGL; public enum OesStandardDerivatives { FragmentShaderDerivativeHintOes = 35723 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesStencil1.cs ================================================ namespace OpenGL; public enum OesStencil1 { StencilIndex1Oes = 36166 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesStencil4.cs ================================================ namespace OpenGL; public enum OesStencil4 { StencilIndex4Oes = 36167 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesStencil8.cs ================================================ namespace OpenGL; public enum OesStencil8 { StencilIndex8Oes = 36168 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesStencilWrap.cs ================================================ namespace OpenGL; public enum OesStencilWrap { IncrWrapOes = 34055, DecrWrapOes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesTexture3D.cs ================================================ namespace OpenGL; public enum OesTexture3D { Texture3DBindingOes = 32874, Texture3DOes = 32879, TextureWrapROes = 32882, Max3DTextureSizeOes = 32883, Sampler3DOes = 35679, FramebufferAttachmentTexture3DZoffsetOes = 36052 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesTextureCubeMap.cs ================================================ namespace OpenGL; public enum OesTextureCubeMap { TextureGenMode = 9472, NormalMapOes = 34065, ReflectionMapOes = 34066, TextureCubeMapOes = 34067, TextureBindingCubeMapOes = 34068, TextureCubeMapPositiveXOes = 34069, TextureCubeMapNegativeXOes = 34070, TextureCubeMapPositiveYOes = 34071, TextureCubeMapNegativeYOes = 34072, TextureCubeMapPositiveZOes = 34073, TextureCubeMapNegativeZOes = 34074, MaxCubeMapTextureSizeOes = 34076, TextureGenStrOes = 36192 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesTextureEnvCrossbar.cs ================================================ namespace OpenGL; public enum OesTextureEnvCrossbar { Texture0 = 33984, Texture1, Texture2, Texture3, Texture4, Texture5, Texture6, Texture7, Texture8, Texture9, Texture10, Texture11, Texture12, Texture13, Texture14, Texture15, Texture16, Texture17, Texture18, Texture19, Texture20, Texture21, Texture22, Texture23, Texture24, Texture25, Texture26, Texture27, Texture28, Texture29, Texture30, Texture31 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesTextureFloat.cs ================================================ namespace OpenGL; public enum OesTextureFloat { HalfFloatOes = 36193 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesTextureMirroredRepeat.cs ================================================ namespace OpenGL; public enum OesTextureMirroredRepeat { MirroredRepeatOes = 33648 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesVertexHalfFloat.cs ================================================ namespace OpenGL; public enum OesVertexHalfFloat { HalfFloatOes = 36193 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OesVertexType1010102.cs ================================================ namespace OpenGL; public enum OesVertexType1010102 { UnsignedInt1010102Oes = 36342, Int1010102Oes } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OmlInterlace.cs ================================================ namespace OpenGL; public enum OmlInterlace { InterlaceOml = 35200, InterlaceReadOml } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OmlResample.cs ================================================ namespace OpenGL; public enum OmlResample { PackResampleOml = 35204, UnpackResampleOml, ResampleReplicateOml, ResampleZeroFillOml, ResampleAverageOml, ResampleDecimateOml } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/OmlSubsample.cs ================================================ namespace OpenGL; public enum OmlSubsample { FormatSubsample2424Oml = 35202, FormatSubsample244244Oml } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PackedPointerType.cs ================================================ namespace OpenGL; public enum PackedPointerType { UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PatchParameterFloat.cs ================================================ namespace OpenGL; public enum PatchParameterFloat { PatchDefaultInnerLevel = 36467, PatchDefaultOuterLevel } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PatchParameterInt.cs ================================================ namespace OpenGL; public enum PatchParameterInt { PatchVertices = 36466 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PgiMiscHints.cs ================================================ namespace OpenGL; public enum PgiMiscHints { PreferDoublebufferHintPgi = 107000, ConserveMemoryHintPgi = 107005, ReclaimMemoryHintPgi = 107006, NativeGraphicsHandlePgi = 107010, NativeGraphicsBeginHintPgi = 107011, NativeGraphicsEndHintPgi = 107012, AlwaysFastHintPgi = 107020, AlwaysSoftHintPgi = 107021, AllowDrawObjHintPgi = 107022, AllowDrawWinHintPgi = 107023, AllowDrawFrgHintPgi = 107024, AllowDrawMemHintPgi = 107025, StrictDepthfuncHintPgi = 107030, StrictLightingHintPgi = 107031, StrictScissorHintPgi = 107032, FullStippleHintPgi = 107033, ClipNearHintPgi = 107040, ClipFarHintPgi = 107041, WideLineHintPgi = 107042, BackNormalsHintPgi = 107043 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PgiVertexHints.cs ================================================ namespace OpenGL; public enum PgiVertexHints { Vertex23BitPgi = 4, Vertex4BitPgi = 8, Color3BitPgi = 65536, Color4BitPgi = 131072, EdgeflagBitPgi = 262144, IndexBitPgi = 524288, MatAmbientBitPgi = 1048576, MatAmbientAndDiffuseBitPgi = 2097152, MatDiffuseBitPgi = 4194304, MatEmissionBitPgi = 8388608, MatColorIndexesBitPgi = 16777216, MatShininessBitPgi = 33554432, MatSpecularBitPgi = 67108864, NormalBitPgi = 134217728, Texcoord1BitPgi = 268435456, VertexDataHintPgi = 107050, VertexConsistentHintPgi = 107051, MaterialSideHintPgi = 107052, MaxVertexHintPgi = 107053, Texcoord2BitPgi = 536870912, Texcoord3BitPgi = 1073741824, Texcoord4BitPgi = int.MinValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelCopyType.cs ================================================ namespace OpenGL; public enum PixelCopyType { Color = 6144, Depth, Stencil } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelFormat.cs ================================================ namespace OpenGL; public enum PixelFormat { ColorIndex = 6400, StencilIndex = 6401, DepthComponent = 6402, Red = 6403, Green = 6404, Blue = 6405, Alpha = 6406, Rgb = 6407, Rgba = 6408, Luminance = 6409, LuminanceAlpha = 6410, AbgrExt = 32768, CmykExt = 32780, CmykaExt = 32781, Bgr = 32992, Bgra = 32993, Ycrcb422Sgix = 33211, Ycrcb444Sgix = 33212, Rg = 33319, RgInteger = 33320, DepthStencil = 34041, RedInteger = 36244, GreenInteger = 36245, BlueInteger = 36246, AlphaInteger = 36247, RgbInteger = 36248, RgbaInteger = 36249, BgrInteger = 36250, BgraInteger = 36251 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelInternalFormat.cs ================================================ namespace OpenGL; public enum PixelInternalFormat { DepthComponent = 6402, Alpha = 6406, Rgb = 6407, Rgba = 6408, Luminance = 6409, LuminanceAlpha = 6410, R3G3B2 = 10768, Alpha4 = 32827, Alpha8 = 32828, Alpha12 = 32829, Alpha16 = 32830, Luminance4 = 32831, Luminance8 = 32832, Luminance12 = 32833, Luminance16 = 32834, Luminance4Alpha4 = 32835, Luminance6Alpha2 = 32836, Luminance8Alpha8 = 32837, Luminance12Alpha4 = 32838, Luminance12Alpha12 = 32839, Luminance16Alpha16 = 32840, Intensity = 32841, Intensity4 = 32842, Intensity8 = 32843, Intensity12 = 32844, Intensity16 = 32845, Rgb2Ext = 32846, Rgb4 = 32847, Rgb5 = 32848, Rgb8 = 32849, Rgb10 = 32850, Rgb12 = 32851, Rgb16 = 32852, Rgba2 = 32853, Rgba4 = 32854, Rgb5A1 = 32855, Rgba8 = 32856, Rgb10A2 = 32857, Rgba12 = 32858, Rgba16 = 32859, DualAlpha4Sgis = 33040, DualAlpha8Sgis = 33041, DualAlpha12Sgis = 33042, DualAlpha16Sgis = 33043, DualLuminance4Sgis = 33044, DualLuminance8Sgis = 33045, DualLuminance12Sgis = 33046, DualLuminance16Sgis = 33047, DualIntensity4Sgis = 33048, DualIntensity8Sgis = 33049, DualIntensity12Sgis = 33050, DualIntensity16Sgis = 33051, DualLuminanceAlpha4Sgis = 33052, DualLuminanceAlpha8Sgis = 33053, QuadAlpha4Sgis = 33054, QuadAlpha8Sgis = 33055, QuadLuminance4Sgis = 33056, QuadLuminance8Sgis = 33057, QuadIntensity4Sgis = 33058, QuadIntensity8Sgis = 33059, DepthComponent16 = 33189, DepthComponent16Sgix = 33189, DepthComponent24 = 33190, DepthComponent24Sgix = 33190, DepthComponent32 = 33191, DepthComponent32Sgix = 33191, CompressedRed = 33317, CompressedRg = 33318, R8 = 33321, R16 = 33322, Rg8 = 33323, Rg16 = 33324, R16f = 33325, R32f = 33326, Rg16f = 33327, Rg32f = 33328, R8i = 33329, R8ui = 33330, R16i = 33331, R16ui = 33332, R32i = 33333, R32ui = 33334, Rg8i = 33335, Rg8ui = 33336, Rg16i = 33337, Rg16ui = 33338, Rg32i = 33339, Rg32ui = 33340, CompressedRgbS3tcDxt1Ext = 33776, CompressedRgbaS3tcDxt1Ext = 33777, CompressedRgbaS3tcDxt3Ext = 33778, CompressedRgbaS3tcDxt5Ext = 33779, CompressedAlpha = 34025, CompressedLuminance = 34026, CompressedLuminanceAlpha = 34027, CompressedIntensity = 34028, CompressedRgb = 34029, CompressedRgba = 34030, DepthStencil = 34041, Rgba32f = 34836, Rgb32f = 34837, Rgba16f = 34842, Rgb16f = 34843, Depth24Stencil8 = 35056, R11fG11fB10f = 35898, Rgb9E5 = 35901, Srgb = 35904, Srgb8 = 35905, SrgbAlpha = 35906, Srgb8Alpha8 = 35907, SluminanceAlpha = 35908, Sluminance8Alpha8 = 35909, Sluminance = 35910, Sluminance8 = 35911, CompressedSrgb = 35912, CompressedSrgbAlpha = 35913, CompressedSluminance = 35914, CompressedSluminanceAlpha = 35915, CompressedSrgbS3tcDxt1Ext = 35916, CompressedSrgbAlphaS3tcDxt1Ext = 35917, CompressedSrgbAlphaS3tcDxt3Ext = 35918, CompressedSrgbAlphaS3tcDxt5Ext = 35919, DepthComponent32f = 36012, Depth32fStencil8 = 36013, Rgba32ui = 36208, Rgb32ui = 36209, Rgba16ui = 36214, Rgb16ui = 36215, Rgba8ui = 36220, Rgb8ui = 36221, Rgba32i = 36226, Rgb32i = 36227, Rgba16i = 36232, Rgb16i = 36233, Rgba8i = 36238, Rgb8i = 36239, Float32UnsignedInt248Rev = 36269, CompressedRedRgtc1 = 36283, CompressedSignedRedRgtc1 = 36284, CompressedRgRgtc2 = 36285, CompressedSignedRgRgtc2 = 36286, Rgb10A2ui = 36975, One = 1, Two = 2, Three = 3, Four = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelMap.cs ================================================ namespace OpenGL; public enum PixelMap { PixelMapIToI = 3184, PixelMapSToS, PixelMapIToR, PixelMapIToG, PixelMapIToB, PixelMapIToA, PixelMapRToR, PixelMapGToG, PixelMapBToB, PixelMapAToA } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelStoreParameter.cs ================================================ namespace OpenGL; public enum PixelStoreParameter { UnpackSwapBytes = 3312, UnpackLsbFirst = 3313, UnpackRowLength = 3314, UnpackSkipRows = 3315, UnpackSkipPixels = 3316, UnpackAlignment = 3317, PackSwapBytes = 3328, PackLsbFirst = 3329, PackRowLength = 3330, PackSkipRows = 3331, PackSkipPixels = 3332, PackAlignment = 3333, PackSkipImages = 32875, PackSkipImagesExt = 32875, PackImageHeight = 32876, PackImageHeightExt = 32876, UnpackSkipImages = 32877, UnpackSkipImagesExt = 32877, UnpackImageHeight = 32878, UnpackImageHeightExt = 32878, PackSkipVolumesSgis = 33072, PackImageDepthSgis = 33073, UnpackSkipVolumesSgis = 33074, UnpackImageDepthSgis = 33075, PixelTileWidthSgix = 33088, PixelTileHeightSgix = 33089, PixelTileGridWidthSgix = 33090, PixelTileGridHeightSgix = 33091, PixelTileGridDepthSgix = 33092, PixelTileCacheSizeSgix = 33093, PackResampleSgix = 33836, UnpackResampleSgix = 33837, PackSubsampleRateSgix = 34208, UnpackSubsampleRateSgix = 34209 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelStoreResampleMode.cs ================================================ namespace OpenGL; public enum PixelStoreResampleMode { ResampleReplicateSgix = 33838, ResampleZeroFillSgix, ResampleDecimateSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelStoreSubsampleRate.cs ================================================ namespace OpenGL; public enum PixelStoreSubsampleRate { PixelSubsample4444Sgix = 34210, PixelSubsample2424Sgix, PixelSubsample4242Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelTexGenMode.cs ================================================ namespace OpenGL; public enum PixelTexGenMode { None = 0, Rgb = 6407, Rgba = 6408, Luminance = 6409, LuminanceAlpha = 6410, PixelTexGenAlphaReplaceSgix = 33159, PixelTexGenAlphaNoReplaceSgix = 33160, PixelTexGenAlphaLsSgix = 33161, PixelTexGenAlphaMsSgix = 33162 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelTexGenParameterNameSgis.cs ================================================ namespace OpenGL; public enum PixelTexGenParameterNameSgis { PixelFragmentRgbSourceSgis = 33620, PixelFragmentAlphaSourceSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelTransferParameter.cs ================================================ namespace OpenGL; public enum PixelTransferParameter { MapColor = 3344, MapStencil = 3345, IndexShift = 3346, IndexOffset = 3347, RedScale = 3348, RedBias = 3349, GreenScale = 3352, GreenBias = 3353, BlueScale = 3354, BlueBias = 3355, AlphaScale = 3356, AlphaBias = 3357, DepthScale = 3358, DepthBias = 3359, PostConvolutionRedScaleExt = 32796, PostConvolutionGreenScaleExt = 32797, PostConvolutionBlueScaleExt = 32798, PostConvolutionAlphaScaleExt = 32799, PostConvolutionRedBiasExt = 32800, PostConvolutionGreenBiasExt = 32801, PostConvolutionBlueBiasExt = 32802, PostConvolutionAlphaBiasExt = 32803, PostColorMatrixRedScaleSgi = 32948, PostColorMatrixGreenScaleSgi = 32949, PostColorMatrixBlueScaleSgi = 32950, PostColorMatrixAlphaScaleSgi = 32951, PostColorMatrixRedBiasSgi = 32952, PostColorMatrixGreenBiasSgi = 32953, PostColorMatrixBlueBiasSgi = 32954, PostColorMatrixAlphaBiasSgi = 32955 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PixelType.cs ================================================ namespace OpenGL; public enum PixelType { Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, HalfFloat = 5131, Bitmap = 6656, UnsignedByte332 = 32818, UnsignedByte332Ext = 32818, UnsignedShort4444 = 32819, UnsignedShort4444Ext = 32819, UnsignedShort5551 = 32820, UnsignedShort5551Ext = 32820, UnsignedInt8888 = 32821, UnsignedInt8888Ext = 32821, UnsignedInt1010102 = 32822, UnsignedInt1010102Ext = 32822, UnsignedByte233Reversed = 33634, UnsignedShort565 = 33635, UnsignedShort565Reversed = 33636, UnsignedShort4444Reversed = 33637, UnsignedShort1555Reversed = 33638, UnsignedInt8888Reversed = 33639, UnsignedInt2101010Reversed = 33640, UnsignedInt248 = 34042, UnsignedInt10F11F11FRev = 35899, UnsignedInt5999Rev = 35902, Float32UnsignedInt248Rev = 36269 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PointParameterName.cs ================================================ namespace OpenGL; public enum PointParameterName { PointSizeMin = 33062, PointSizeMax = 33063, PointFadeThresholdSize = 33064, PointDistanceAttenuation = 33065, PointSpriteCoordOrigin = 36000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PointParameterNameSgis.cs ================================================ namespace OpenGL; public enum PointParameterNameSgis { PointSizeMinSgis = 33062, PointSizeMaxSgis, PointFadeThresholdSizeSgis, DistanceAttenuationSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PointSpriteCoordOriginParameter.cs ================================================ namespace OpenGL; public enum PointSpriteCoordOriginParameter { LowerLeft = 36001, UpperLeft } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/PolygonMode.cs ================================================ namespace OpenGL; public enum PolygonMode { Point = 6912, Line, Fill } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ProgramParameter.cs ================================================ namespace OpenGL; public enum ProgramParameter { ProgramBinaryRetrievableHint = 33367, ProgramSeparable = 33368, ProgramBinaryLength = 34625, GeometryShaderInvocations = 34943, ActiveUniformBlockMaxNameLength = 35381, ActiveUniformBlocks = 35382, DeleteStatus = 35712, LinkStatus = 35714, ValidateStatus = 35715, InfoLogLength = 35716, AttachedShaders = 35717, ActiveUniforms = 35718, ActiveUniformMaxLength = 35719, ActiveAttributes = 35721, ActiveAttributeMaxLength = 35722, TransformFeedbackVaryingMaxLength = 35958, TransformFeedbackBufferMode = 35967, TransformFeedbackVaryings = 35971, GeometryVerticesOut = 36314, GeometryInputType = 36315, GeometryOutputType = 36316, TessControlOutputVertices = 36469, TessGenMode = 36470, TessGenSpacing = 36471, TessGenVertexOrder = 36472, TessGenPointMode = 36473 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ProgramPipelineParameter.cs ================================================ namespace OpenGL; public enum ProgramPipelineParameter { ActiveProgram = 33369 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ProgramStageMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum ProgramStageMask { VertexShaderBit = 1, FragmentShaderBit = 2, GeometryShaderBit = 4, TessControlShaderBit = 8, TessEvaluationShaderBit = 0x10, AllShaderBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ProgramStageParameter.cs ================================================ namespace OpenGL; public enum ProgramStageParameter { ActiveSubroutines = 36325, ActiveSubroutineUniforms = 36326, ActiveSubroutineUniformLocations = 36423, ActiveSubroutineMaxLength = 36424, ActiveSubroutineUniformMaxLength = 36425 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ProvokingVertexMode.cs ================================================ namespace OpenGL; public enum ProvokingVertexMode { FirstVertexConvention = 36429, LastVertexConvention } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/QcomDriverControl.cs ================================================ namespace OpenGL; public enum QcomDriverControl { PerfmonGlobalModeQcom = 36768 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/QcomExtendedGet.cs ================================================ namespace OpenGL; public enum QcomExtendedGet { TextureWidthQcom = 35794, TextureHeightQcom, TextureDepthQcom, TextureInternalFormatQcom, TextureFormatQcom, TextureTypeQcom, TextureImageValidQcom, TextureNumLevelsQcom, TextureTargetQcom, TextureObjectValidQcom, StateRestore } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/QcomWriteonlyRendering.cs ================================================ namespace OpenGL; public enum QcomWriteonlyRendering { WriteonlyRenderingQcom = 34851 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Quaternion.cs ================================================ using System; namespace OpenGL; public struct Quaternion : IEquatable { private Vector3 xyz; private float w; public static Quaternion Identity = new Quaternion(0f, 0f, 0f, 1f); [Obsolete("Use Xyz property instead.")] [CLSCompliant(false)] public Vector3 XYZ { get { return Xyz; } set { Xyz = value; } } public Vector3 Xyz { get { return xyz; } set { xyz = value; } } public float X { get { return xyz.X; } set { xyz.X = value; } } public float Y { get { return xyz.Y; } set { xyz.Y = value; } } public float Z { get { return xyz.Z; } set { xyz.Z = value; } } public float W { get { return w; } set { w = value; } } public float Length => (float)Math.Sqrt(W * W + Xyz.LengthSquared); public float LengthSquared => W * W + Xyz.LengthSquared; public Quaternion(Vector3 v, float w) { xyz = v; this.w = w; } public Quaternion(float x, float y, float z, float w) : this(new Vector3(x, y, z), w) { } public void ToAxisAngle(out Vector3 axis, out float angle) { Vector4 vector = ToAxisAngle(); axis = vector.Xyz; angle = vector.W; } public Vector4 ToAxisAngle() { Quaternion quaternion = this; if (quaternion.W > 1f) { quaternion.Normalize(); } Vector4 result = default(Vector4); result.W = 2f * (float)Math.Acos(quaternion.W); float num = (float)Math.Sqrt(1.0 - (double)(quaternion.W * quaternion.W)); if (num > 0.0001f) { result.Xyz = quaternion.Xyz / num; } else { result.Xyz = Vector3.UnitX; } return result; } public void Normalize() { float num = 1f / Length; Xyz *= num; W *= num; } public void Conjugate() { Xyz = -Xyz; } public static Quaternion Add(Quaternion left, Quaternion right) { return new Quaternion(left.Xyz + right.Xyz, left.W + right.W); } public static void Add(ref Quaternion left, ref Quaternion right, out Quaternion result) { result = new Quaternion(left.Xyz + right.Xyz, left.W + right.W); } public static Quaternion Sub(Quaternion left, Quaternion right) { return new Quaternion(left.Xyz - right.Xyz, left.W - right.W); } public static void Sub(ref Quaternion left, ref Quaternion right, out Quaternion result) { result = new Quaternion(left.Xyz - right.Xyz, left.W - right.W); } [Obsolete("Use Multiply instead.")] public static Quaternion Mult(Quaternion left, Quaternion right) { return new Quaternion(right.W * left.Xyz + left.W * right.Xyz + Vector3.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3.Dot(left.Xyz, right.Xyz)); } [Obsolete("Use Multiply instead.")] public static void Mult(ref Quaternion left, ref Quaternion right, out Quaternion result) { result = new Quaternion(right.W * left.Xyz + left.W * right.Xyz + Vector3.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3.Dot(left.Xyz, right.Xyz)); } public static Quaternion Multiply(Quaternion left, Quaternion right) { Multiply(ref left, ref right, out var result); return result; } public static void Multiply(ref Quaternion left, ref Quaternion right, out Quaternion result) { result = new Quaternion(right.W * left.Xyz + left.W * right.Xyz + Vector3.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3.Dot(left.Xyz, right.Xyz)); } public static void Multiply(ref Quaternion quaternion, float scale, out Quaternion result) { result = new Quaternion(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static Quaternion Multiply(Quaternion quaternion, float scale) { return new Quaternion(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static Quaternion Conjugate(Quaternion q) { return new Quaternion(-q.Xyz, q.W); } public static void Conjugate(ref Quaternion q, out Quaternion result) { result = new Quaternion(-q.Xyz, q.W); } public static Quaternion Invert(Quaternion q) { Invert(ref q, out var result); return result; } public static void Invert(ref Quaternion q, out Quaternion result) { float lengthSquared = q.LengthSquared; if ((double)lengthSquared != 0.0) { float num = 1f / lengthSquared; result = new Quaternion(q.Xyz * (0f - num), q.W * num); } else { result = q; } } public static Quaternion Normalize(Quaternion q) { Normalize(ref q, out var result); return result; } public static void Normalize(ref Quaternion q, out Quaternion result) { float num = 1f / q.Length; result = new Quaternion(q.Xyz * num, q.W * num); } public static Quaternion FromAxisAngle(Vector3 axis, float angle) { if (axis.LengthSquared == 0f) { return Identity; } Quaternion identity = Identity; angle *= 0.5f; axis.Normalize(); identity.Xyz = axis * (float)Math.Sin(angle); identity.W = (float)Math.Cos(angle); return Normalize(identity); } public static Quaternion Slerp(Quaternion q1, Quaternion q2, float blend) { if (q1.LengthSquared == 0f) { if (q2.LengthSquared == 0f) { return Identity; } return q2; } if (q2.LengthSquared == 0f) { return q1; } float num = q1.W * q2.W + Vector3.Dot(q1.Xyz, q2.Xyz); if (num >= 1f || num <= -1f) { return q1; } if (num < 0f) { q2.Xyz = -q2.Xyz; q2.W = 0f - q2.W; num = 0f - num; } float num5; float num6; if (num < 0.99f) { float num2 = (float)Math.Acos(num); float num3 = (float)Math.Sin(num2); float num4 = 1f / num3; num5 = (float)Math.Sin(num2 * (1f - blend)) * num4; num6 = (float)Math.Sin(num2 * blend) * num4; } else { num5 = 1f - blend; num6 = blend; } Quaternion q3 = new Quaternion(num5 * q1.Xyz + num6 * q2.Xyz, num5 * q1.W + num6 * q2.W); if (q3.LengthSquared > 0f) { return Normalize(q3); } return Identity; } public static Quaternion operator +(Quaternion left, Quaternion right) { left.Xyz += right.Xyz; left.W += right.W; return left; } public static Quaternion operator -(Quaternion left, Quaternion right) { left.Xyz -= right.Xyz; left.W -= right.W; return left; } public static Quaternion operator *(Quaternion left, Quaternion right) { Multiply(ref left, ref right, out left); return left; } public static Quaternion operator *(Quaternion quaternion, float scale) { Multiply(ref quaternion, scale, out quaternion); return quaternion; } public static Quaternion operator *(float scale, Quaternion quaternion) { return new Quaternion(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static bool operator ==(Quaternion left, Quaternion right) { return left.Equals(right); } public static bool operator !=(Quaternion left, Quaternion right) { return !left.Equals(right); } public override string ToString() { return $"V: {Xyz}, W: {W}"; } public override bool Equals(object other) { if (!(other is Quaternion)) { return false; } return this == (Quaternion)other; } public override int GetHashCode() { return Xyz.GetHashCode() ^ W.GetHashCode(); } public bool Equals(Quaternion other) { if (Xyz == other.Xyz) { return W == other.W; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Quaterniond.cs ================================================ using System; using System.ComponentModel; using System.Xml.Serialization; namespace OpenGL; [Serializable] public struct Quaterniond : IEquatable { private Vector3d xyz; private double w; public static readonly Quaterniond Identity = new Quaterniond(0.0, 0.0, 0.0, 1.0); [Obsolete("Use Xyz property instead.")] [CLSCompliant(false)] [EditorBrowsable(EditorBrowsableState.Never)] [XmlIgnore] public Vector3d XYZ { get { return Xyz; } set { Xyz = value; } } public Vector3d Xyz { get { return xyz; } set { xyz = value; } } [XmlIgnore] public double X { get { return xyz.X; } set { xyz.X = value; } } [XmlIgnore] public double Y { get { return xyz.Y; } set { xyz.Y = value; } } [XmlIgnore] public double Z { get { return xyz.Z; } set { xyz.Z = value; } } public double W { get { return w; } set { w = value; } } public double Length => Math.Sqrt(W * W + Xyz.LengthSquared); public double LengthSquared => W * W + Xyz.LengthSquared; public Quaterniond(Vector3d v, double w) { xyz = v; this.w = w; } public Quaterniond(double x, double y, double z, double w) : this(new Vector3d(x, y, z), w) { } public void ToAxisAngle(out Vector3d axis, out double angle) { Vector4d vector4d = ToAxisAngle(); axis = vector4d.Xyz; angle = vector4d.W; } public Vector4d ToAxisAngle() { Quaterniond quaterniond = this; if (quaterniond.W > 1.0) { quaterniond.Normalize(); } Vector4d result = default(Vector4d); result.W = 2f * (float)Math.Acos(quaterniond.W); float num = (float)Math.Sqrt(1.0 - quaterniond.W * quaterniond.W); if (num > 0.0001f) { result.Xyz = quaterniond.Xyz / num; } else { result.Xyz = Vector3d.UnitX; } return result; } public void Normalize() { double num = 1.0 / Length; Xyz *= num; W *= num; } public void Conjugate() { Xyz = -Xyz; } public static Quaterniond Add(Quaterniond left, Quaterniond right) { return new Quaterniond(left.Xyz + right.Xyz, left.W + right.W); } public static void Add(ref Quaterniond left, ref Quaterniond right, out Quaterniond result) { result = new Quaterniond(left.Xyz + right.Xyz, left.W + right.W); } public static Quaterniond Sub(Quaterniond left, Quaterniond right) { return new Quaterniond(left.Xyz - right.Xyz, left.W - right.W); } public static void Sub(ref Quaterniond left, ref Quaterniond right, out Quaterniond result) { result = new Quaterniond(left.Xyz - right.Xyz, left.W - right.W); } [Obsolete("Use Multiply instead.")] public static Quaterniond Mult(Quaterniond left, Quaterniond right) { return new Quaterniond(right.W * left.Xyz + left.W * right.Xyz + Vector3d.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3d.Dot(left.Xyz, right.Xyz)); } [Obsolete("Use Multiply instead.")] public static void Mult(ref Quaterniond left, ref Quaterniond right, out Quaterniond result) { result = new Quaterniond(right.W * left.Xyz + left.W * right.Xyz + Vector3d.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3d.Dot(left.Xyz, right.Xyz)); } public static Quaterniond Multiply(Quaterniond left, Quaterniond right) { Multiply(ref left, ref right, out var result); return result; } public static void Multiply(ref Quaterniond left, ref Quaterniond right, out Quaterniond result) { result = new Quaterniond(right.W * left.Xyz + left.W * right.Xyz + Vector3d.Cross(left.Xyz, right.Xyz), left.W * right.W - Vector3d.Dot(left.Xyz, right.Xyz)); } public static void Multiply(ref Quaterniond quaternion, double scale, out Quaterniond result) { result = new Quaterniond(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static Quaterniond Multiply(Quaterniond quaternion, double scale) { return new Quaterniond(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static Quaterniond Conjugate(Quaterniond q) { return new Quaterniond(-q.Xyz, q.W); } public static void Conjugate(ref Quaterniond q, out Quaterniond result) { result = new Quaterniond(-q.Xyz, q.W); } public static Quaterniond Invert(Quaterniond q) { Invert(ref q, out var result); return result; } public static void Invert(ref Quaterniond q, out Quaterniond result) { double lengthSquared = q.LengthSquared; if (lengthSquared != 0.0) { double num = 1.0 / lengthSquared; result = new Quaterniond(q.Xyz * (0.0 - num), q.W * num); } else { result = q; } } public static Quaterniond Normalize(Quaterniond q) { Normalize(ref q, out var result); return result; } public static void Normalize(ref Quaterniond q, out Quaterniond result) { double num = 1.0 / q.Length; result = new Quaterniond(q.Xyz * num, q.W * num); } public static Quaterniond FromAxisAngle(Vector3d axis, double angle) { if (axis.LengthSquared == 0.0) { return Identity; } Quaterniond identity = Identity; angle *= 0.5; axis.Normalize(); identity.Xyz = axis * Math.Sin(angle); identity.W = Math.Cos(angle); return Normalize(identity); } public static Quaterniond Slerp(Quaterniond q1, Quaterniond q2, double blend) { if (q1.LengthSquared == 0.0) { if (q2.LengthSquared == 0.0) { return Identity; } return q2; } if (q2.LengthSquared == 0.0) { return q1; } double num = q1.W * q2.W + Vector3d.Dot(q1.Xyz, q2.Xyz); if (num >= 1.0 || num <= -1.0) { return q1; } if (num < 0.0) { q2.Xyz = -q2.Xyz; q2.W = 0.0 - q2.W; num = 0.0 - num; } double num5; double num6; if (num < 0.9900000095367432) { double num2 = Math.Acos(num); double num3 = Math.Sin(num2); double num4 = 1.0 / num3; num5 = Math.Sin(num2 * (1.0 - blend)) * num4; num6 = Math.Sin(num2 * blend) * num4; } else { num5 = 1.0 - blend; num6 = blend; } Quaterniond q3 = new Quaterniond(num5 * q1.Xyz + num6 * q2.Xyz, num5 * q1.W + num6 * q2.W); if (q3.LengthSquared > 0.0) { return Normalize(q3); } return Identity; } public static Quaterniond operator +(Quaterniond left, Quaterniond right) { left.Xyz += right.Xyz; left.W += right.W; return left; } public static Quaterniond operator -(Quaterniond left, Quaterniond right) { left.Xyz -= right.Xyz; left.W -= right.W; return left; } public static Quaterniond operator *(Quaterniond left, Quaterniond right) { Multiply(ref left, ref right, out left); return left; } public static Quaterniond operator *(Quaterniond quaternion, double scale) { Multiply(ref quaternion, scale, out quaternion); return quaternion; } public static Quaterniond operator *(double scale, Quaterniond quaternion) { return new Quaterniond(quaternion.X * scale, quaternion.Y * scale, quaternion.Z * scale, quaternion.W * scale); } public static bool operator ==(Quaterniond left, Quaterniond right) { return left.Equals(right); } public static bool operator !=(Quaterniond left, Quaterniond right) { return !left.Equals(right); } public override string ToString() { return $"V: {Xyz}, W: {W}"; } public override bool Equals(object other) { if (!(other is Quaterniond)) { return false; } return this == (Quaterniond)other; } public override int GetHashCode() { return Xyz.GetHashCode() ^ W.GetHashCode(); } public bool Equals(Quaterniond other) { if (Xyz == other.Xyz) { return W == other.W; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/QueryCounterTarget.cs ================================================ namespace OpenGL; public enum QueryCounterTarget { Timestamp = 36392 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/QueryTarget.cs ================================================ namespace OpenGL; public enum QueryTarget { TimeElapsed = 35007, SamplesPassed = 35092, AnySamplesPassed = 35887, PrimitivesGenerated = 35975, TransformFeedbackPrimitivesWritten = 35976, Timestamp = 36392 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ReadBufferMode.cs ================================================ namespace OpenGL; public enum ReadBufferMode { None = 0, FrontLeft = 1024, FrontRight = 1025, BackLeft = 1026, BackRight = 1027, Front = 1028, Back = 1029, Left = 1030, Right = 1031, Aux0 = 1033, Aux1 = 1034, Aux2 = 1035, Aux3 = 1036, ColorAttachment0 = 36064, ColorAttachment1 = 36065, ColorAttachment2 = 36066, ColorAttachment3 = 36067, ColorAttachment4 = 36068, ColorAttachment5 = 36069, ColorAttachment6 = 36070, ColorAttachment7 = 36071, ColorAttachment8 = 36072, ColorAttachment9 = 36073, ColorAttachment10 = 36074, ColorAttachment11 = 36075, ColorAttachment12 = 36076, ColorAttachment13 = 36077, ColorAttachment14 = 36078, ColorAttachment15 = 36079 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/RendScreenCoordinates.cs ================================================ namespace OpenGL; public enum RendScreenCoordinates { ScreenCoordinatesRend = 33936, InvertedScreenWRend } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/RenderbufferParameterName.cs ================================================ namespace OpenGL; public enum RenderbufferParameterName { RenderbufferSamples = 36011, RenderbufferWidth = 36162, RenderbufferWidthExt = 36162, RenderbufferHeight = 36163, RenderbufferHeightExt = 36163, RenderbufferInternalFormat = 36164, RenderbufferInternalFormatExt = 36164, RenderbufferRedSize = 36176, RenderbufferRedSizeExt = 36176, RenderbufferGreenSize = 36177, RenderbufferGreenSizeExt = 36177, RenderbufferBlueSize = 36178, RenderbufferBlueSizeExt = 36178, RenderbufferAlphaSize = 36179, RenderbufferAlphaSizeExt = 36179, RenderbufferDepthSize = 36180, RenderbufferDepthSizeExt = 36180, RenderbufferStencilSize = 36181, RenderbufferStencilSizeExt = 36181 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/RenderbufferStorage.cs ================================================ namespace OpenGL; public enum RenderbufferStorage { R3G3B2 = 10768, Alpha4 = 32827, Alpha8 = 32828, Alpha12 = 32829, Alpha16 = 32830, Rgb4 = 32847, Rgb5 = 32848, Rgb8 = 32849, Rgb10 = 32850, Rgb12 = 32851, Rgb16 = 32852, Rgba2 = 32853, Rgba4 = 32854, Rgba8 = 32856, Rgb10A2 = 32857, Rgba12 = 32858, Rgba16 = 32859, DepthComponent16 = 33189, DepthComponent24 = 33190, DepthComponent32 = 33191, R8 = 33321, R16 = 33322, Rg8 = 33323, Rg16 = 33324, R16f = 33325, R32f = 33326, Rg16f = 33327, Rg32f = 33328, R8i = 33329, R8ui = 33330, R16i = 33331, R16ui = 33332, R32i = 33333, R32ui = 33334, Rg8i = 33335, Rg8ui = 33336, Rg16i = 33337, Rg16ui = 33338, Rg32i = 33339, Rg32ui = 33340, Rgba32f = 34836, Rgb32f = 34837, Rgba16f = 34842, Rgb16f = 34843, Depth24Stencil8 = 35056, R11fG11fB10f = 35898, Rgb9E5 = 35901, Srgb8 = 35905, Srgb8Alpha8 = 35907, DepthComponent32f = 36012, Depth32fStencil8 = 36013, StencilIndex1 = 36166, StencilIndex1Ext = 36166, StencilIndex4 = 36167, StencilIndex4Ext = 36167, StencilIndex8 = 36168, StencilIndex8Ext = 36168, StencilIndex16 = 36169, StencilIndex16Ext = 36169, Rgba32ui = 36208, Rgb32ui = 36209, Rgba16ui = 36214, Rgb16ui = 36215, Rgba8ui = 36220, Rgb8ui = 36221, Rgba32i = 36226, Rgb32i = 36227, Rgba16i = 36232, Rgb16i = 36233, Rgba8i = 36238, Rgb8i = 36239, Rgb10A2ui = 36975 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/RenderbufferTarget.cs ================================================ namespace OpenGL; public enum RenderbufferTarget { Renderbuffer = 36161, RenderbufferExt = 36161 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/RenderingMode.cs ================================================ namespace OpenGL; public enum RenderingMode { Render = 7168, Feedback, Select } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/S3S3tc.cs ================================================ namespace OpenGL; public enum S3S3tc { RgbS3tc = 33696, Rgb4S3tc, RgbaS3tc, Rgba4S3tc } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SamplePatternSgis.cs ================================================ namespace OpenGL; public enum SamplePatternSgis { Gl1PassSgis = 32929, Gl2Pass0Sgis, Gl2Pass1Sgis, Gl4Pass0Sgis, Gl4Pass1Sgis, Gl4Pass2Sgis, Gl4Pass3Sgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SamplerParameter.cs ================================================ namespace OpenGL; public enum SamplerParameter { TextureBorderColor = 4100, TextureMagFilter = 10240, TextureMinFilter = 10241, TextureWrapS = 10242, TextureWrapT = 10243, TextureWrapR = 32882, TextureMinLod = 33082, TextureMaxLod = 33083, TextureMaxAnisotropyExt = 34046, TextureLodBias = 34049, TextureCompareMode = 34892, TextureCompareFunc = 34893 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SeparableTarget.cs ================================================ namespace OpenGL; public enum SeparableTarget { Separable2D = 32786 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SeparableTargetExt.cs ================================================ namespace OpenGL; public enum SeparableTargetExt { Separable2DExt = 32786 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgiColorMatrix.cs ================================================ namespace OpenGL; public enum SgiColorMatrix { ColorMatrixSgi = 32945, ColorMatrixStackDepthSgi, MaxColorMatrixStackDepthSgi, PostColorMatrixRedScaleSgi, PostColorMatrixGreenScaleSgi, PostColorMatrixBlueScaleSgi, PostColorMatrixAlphaScaleSgi, PostColorMatrixRedBiasSgi, PostColorMatrixGreenBiasSgi, PostColorMatrixBlueBiasSgi, PostColorMatrixAlphaBiasSgi } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgiColorTable.cs ================================================ namespace OpenGL; public enum SgiColorTable { ColorTableSgi = 32976, PostConvolutionColorTableSgi, PostColorMatrixColorTableSgi, ProxyColorTableSgi, ProxyPostConvolutionColorTableSgi, ProxyPostColorMatrixColorTableSgi, ColorTableScaleSgi, ColorTableBiasSgi, ColorTableFormatSgi, ColorTableWidthSgi, ColorTableRedSizeSgi, ColorTableGreenSizeSgi, ColorTableBlueSizeSgi, ColorTableAlphaSizeSgi, ColorTableLuminanceSizeSgi, ColorTableIntensitySizeSgi } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgiDepthPassInstrument.cs ================================================ namespace OpenGL; public enum SgiDepthPassInstrument { DepthPassInstrumentSgix = 33552, DepthPassInstrumentCountersSgix, DepthPassInstrumentMaxSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgiTextureColorTable.cs ================================================ namespace OpenGL; public enum SgiTextureColorTable { TextureColorTableSgi = 32956, ProxyTextureColorTableSgi } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisDetailTexture.cs ================================================ namespace OpenGL; public enum SgisDetailTexture { DetailTexture2DSgis = 32917, DetailTexture2DBindingSgis, LinearDetailSgis, LinearDetailAlphaSgis, LinearDetailColorSgis, DetailTextureLevelSgis, DetailTextureModeSgis, DetailTextureFuncPointsSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisFogFunction.cs ================================================ namespace OpenGL; public enum SgisFogFunction { FogFuncSgis = 33066, FogFuncPointsSgis, MaxFogFuncPointsSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisGenerateMipmap.cs ================================================ namespace OpenGL; public enum SgisGenerateMipmap { GenerateMipmapSgis = 33169, GenerateMipmapHintSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisMultisample.cs ================================================ namespace OpenGL; public enum SgisMultisample { MultisampleSgis = 32925, SampleAlphaToMaskSgis, SampleAlphaToOneSgis, SampleMaskSgis, Gl1PassSgis, Gl2Pass0Sgis, Gl2Pass1Sgis, Gl4Pass0Sgis, Gl4Pass1Sgis, Gl4Pass2Sgis, Gl4Pass3Sgis, SampleBuffersSgis, SamplesSgis, SampleMaskValueSgis, SampleMaskInvertSgis, SamplePatternSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisPixelTexture.cs ================================================ namespace OpenGL; public enum SgisPixelTexture { PixelTextureSgis = 33619, PixelFragmentRgbSourceSgis, PixelFragmentAlphaSourceSgis, PixelGroupColorSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisPointLineTexgen.cs ================================================ namespace OpenGL; public enum SgisPointLineTexgen { EyeDistanceToPointSgis = 33264, ObjectDistanceToPointSgis, EyeDistanceToLineSgis, ObjectDistanceToLineSgis, EyePointSgis, ObjectPointSgis, EyeLineSgis, ObjectLineSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisPointParameters.cs ================================================ namespace OpenGL; public enum SgisPointParameters { PointSizeMinSgis = 33062, PointSizeMaxSgis, PointFadeThresholdSizeSgis, DistanceAttenuationSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisSharpenTexture.cs ================================================ namespace OpenGL; public enum SgisSharpenTexture { LinearSharpenSgis = 32941, LinearSharpenAlphaSgis, LinearSharpenColorSgis, SharpenTextureFuncPointsSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTexture4D.cs ================================================ namespace OpenGL; public enum SgisTexture4D { PackSkipVolumesSgis = 33072, PackImageDepthSgis = 33073, UnpackSkipVolumesSgis = 33074, UnpackImageDepthSgis = 33075, Texture4DSgis = 33076, ProxyTexture4DSgis = 33077, Texture4DsizeSgis = 33078, TextureWrapQSgis = 33079, Max4DTextureSizeSgis = 33080, Texture4DBindingSgis = 33103 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureBorderClamp.cs ================================================ namespace OpenGL; public enum SgisTextureBorderClamp { ClampToBorderSgis = 33069 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureColorMask.cs ================================================ using System; namespace OpenGL; [Flags] public enum SgisTextureColorMask { TextureColorWritemaskSgis = 0x81EF } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureEdgeClamp.cs ================================================ namespace OpenGL; public enum SgisTextureEdgeClamp { ClampToEdgeSgis = 33071 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureFilter4.cs ================================================ namespace OpenGL; public enum SgisTextureFilter4 { Filter4Sgis = 33094, TextureFilter4SizeSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureLod.cs ================================================ namespace OpenGL; public enum SgisTextureLod { TextureMinLodSgis = 33082, TextureMaxLodSgis, TextureBaseLevelSgis, TextureMaxLevelSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgisTextureSelect.cs ================================================ namespace OpenGL; public enum SgisTextureSelect { DualAlpha4Sgis = 33040, DualAlpha8Sgis, DualAlpha12Sgis, DualAlpha16Sgis, DualLuminance4Sgis, DualLuminance8Sgis, DualLuminance12Sgis, DualLuminance16Sgis, DualIntensity4Sgis, DualIntensity8Sgis, DualIntensity12Sgis, DualIntensity16Sgis, DualLuminanceAlpha4Sgis, DualLuminanceAlpha8Sgis, QuadAlpha4Sgis, QuadAlpha8Sgis, QuadLuminance4Sgis, QuadLuminance8Sgis, QuadIntensity4Sgis, QuadIntensity8Sgis, DualTextureSelectSgis, QuadTextureSelectSgis } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixAsync.cs ================================================ namespace OpenGL; public enum SgixAsync { AsyncMarkerSgix = 33577 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixAsyncHistogram.cs ================================================ namespace OpenGL; public enum SgixAsyncHistogram { AsyncHistogramSgix = 33580, MaxAsyncHistogramSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixAsyncPixel.cs ================================================ namespace OpenGL; public enum SgixAsyncPixel { AsyncTexImageSgix = 33628, AsyncDrawPixelsSgix, AsyncReadPixelsSgix, MaxAsyncTexImageSgix, MaxAsyncDrawPixelsSgix, MaxAsyncReadPixelsSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixBlendAlphaMinmax.cs ================================================ namespace OpenGL; public enum SgixBlendAlphaMinmax { AlphaMinSgix = 33568, AlphaMaxSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixCalligraphicFragment.cs ================================================ namespace OpenGL; public enum SgixCalligraphicFragment { CalligraphicFragmentSgix = 33155 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixClipmap.cs ================================================ namespace OpenGL; public enum SgixClipmap { LinearClipmapLinearSgix = 33136, TextureClipmapCenterSgix = 33137, TextureClipmapFrameSgix = 33138, TextureClipmapOffsetSgix = 33139, TextureClipmapVirtualDepthSgix = 33140, TextureClipmapLodOffsetSgix = 33141, TextureClipmapDepthSgix = 33142, MaxClipmapDepthSgix = 33143, MaxClipmapVirtualDepthSgix = 33144, NearestClipmapNearestSgix = 33869, NearestClipmapLinearSgix = 33870, LinearClipmapNearestSgix = 33871 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixConvolutionAccuracy.cs ================================================ namespace OpenGL; public enum SgixConvolutionAccuracy { ConvolutionHintSgix = 33558 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixDepthPassInstrument.cs ================================================ namespace OpenGL; public enum SgixDepthPassInstrument { DepthPassInstrumentSgix = 33552, DepthPassInstrumentCountersSgix, DepthPassInstrumentMaxSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixDepthTexture.cs ================================================ namespace OpenGL; public enum SgixDepthTexture { DepthComponent16Sgix = 33189, DepthComponent24Sgix, DepthComponent32Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFlushRaster.cs ================================================ namespace OpenGL; public enum SgixFlushRaster { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFogOffset.cs ================================================ namespace OpenGL; public enum SgixFogOffset { FogOffsetSgix = 33176, FogOffsetValueSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFogScale.cs ================================================ namespace OpenGL; public enum SgixFogScale { FogScaleSgix = 33276, FogScaleValueSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFragmentLighting.cs ================================================ namespace OpenGL; public enum SgixFragmentLighting { FragmentLightingSgix = 33792, FragmentColorMaterialSgix, FragmentColorMaterialFaceSgix, FragmentColorMaterialParameterSgix, MaxFragmentLightsSgix, MaxActiveLightsSgix, CurrentRasterNormalSgix, LightEnvModeSgix, FragmentLightModelLocalViewerSgix, FragmentLightModelTwoSideSgix, FragmentLightModelAmbientSgix, FragmentLightModelNormalInterpolationSgix, FragmentLight0Sgix, FragmentLight1Sgix, FragmentLight2Sgix, FragmentLight3Sgix, FragmentLight4Sgix, FragmentLight5Sgix, FragmentLight6Sgix, FragmentLight7Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFragmentsInstrument.cs ================================================ namespace OpenGL; public enum SgixFragmentsInstrument { FragmentsInstrumentSgix = 33555, FragmentsInstrumentCountersSgix, FragmentsInstrumentMaxSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixFramezoom.cs ================================================ namespace OpenGL; public enum SgixFramezoom { FramezoomSgix = 33163, FramezoomFactorSgix, MaxFramezoomFactorSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixIccTexture.cs ================================================ namespace OpenGL; public enum SgixIccTexture { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixImpactPixelTexture.cs ================================================ namespace OpenGL; public enum SgixImpactPixelTexture { PixelTexGenQCeilingSgix = 33156, PixelTexGenQRoundSgix, PixelTexGenQFloorSgix, PixelTexGenAlphaReplaceSgix, PixelTexGenAlphaNoReplaceSgix, PixelTexGenAlphaLsSgix, PixelTexGenAlphaMsSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixInstruments.cs ================================================ namespace OpenGL; public enum SgixInstruments { InstrumentBufferPointerSgix = 33152, InstrumentMeasurementsSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixInterlace.cs ================================================ namespace OpenGL; public enum SgixInterlace { InterlaceSgix = 32916 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixIrInstrument1.cs ================================================ namespace OpenGL; public enum SgixIrInstrument1 { IrInstrument1Sgix = 33151 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixLineQualityHint.cs ================================================ namespace OpenGL; public enum SgixLineQualityHint { LineQualityHintSgix = 33627 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixListPriority.cs ================================================ namespace OpenGL; public enum SgixListPriority { ListPrioritySgix = 33154 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixPixelTexture.cs ================================================ namespace OpenGL; public enum SgixPixelTexture { PixelTexGenSgix = 33081, PixelTexGenModeSgix = 33579 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixPixelTiles.cs ================================================ namespace OpenGL; public enum SgixPixelTiles { PixelTileBestAlignmentSgix = 33086, PixelTileCacheIncrementSgix, PixelTileWidthSgix, PixelTileHeightSgix, PixelTileGridWidthSgix, PixelTileGridHeightSgix, PixelTileGridDepthSgix, PixelTileCacheSizeSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixPolynomialFfd.cs ================================================ namespace OpenGL; public enum SgixPolynomialFfd { GeometryDeformationSgix = 33172, TextureDeformationSgix, DeformationsMaskSgix, MaxDeformationOrderSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixReferencePlane.cs ================================================ namespace OpenGL; public enum SgixReferencePlane { ReferencePlaneSgix = 33149, ReferencePlaneEquationSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixResample.cs ================================================ namespace OpenGL; public enum SgixResample { PackResampleSgix = 33836, UnpackResampleSgix, ResampleReplicateSgix, ResampleZeroFillSgix, ResampleDecimateSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixScalebiasHint.cs ================================================ namespace OpenGL; public enum SgixScalebiasHint { ScalebiasHintSgix = 33570 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixShadow.cs ================================================ namespace OpenGL; public enum SgixShadow { TextureCompareSgix = 33178, TextureCompareOperatorSgix, TextureLequalRSgix, TextureGequalRSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixShadowAmbient.cs ================================================ namespace OpenGL; public enum SgixShadowAmbient { ShadowAmbientSgix = 32959 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixSlim.cs ================================================ namespace OpenGL; public enum SgixSlim { UnpackCompressedSizeSgix = 33562, PackMaxCompressedSizeSgix, PackCompressedSizeSgix, Slim8uSgix, Slim10uSgix, Slim12sSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixSprite.cs ================================================ namespace OpenGL; public enum SgixSprite { SpriteSgix = 33096, SpriteModeSgix, SpriteAxisSgix, SpriteTranslationSgix, SpriteAxialSgix, SpriteObjectAlignedSgix, SpriteEyeAlignedSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixSubsample.cs ================================================ namespace OpenGL; public enum SgixSubsample { PackSubsampleRateSgix = 34208, UnpackSubsampleRateSgix, PixelSubsample4444Sgix, PixelSubsample2424Sgix, PixelSubsample4242Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTagSampleBuffer.cs ================================================ namespace OpenGL; public enum SgixTagSampleBuffer { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTextureAddEnv.cs ================================================ namespace OpenGL; public enum SgixTextureAddEnv { TextureEnvBiasSgix = 32958 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTextureCoordinateClamp.cs ================================================ namespace OpenGL; public enum SgixTextureCoordinateClamp { TextureMaxClampSSgix = 33641, TextureMaxClampTSgix = 33642, TextureMaxClampRSgix = 33643, FogFactorToAlphaSgix = 33647 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTextureLodBias.cs ================================================ namespace OpenGL; public enum SgixTextureLodBias { TextureLodBiasSSgix = 33166, TextureLodBiasTSgix, TextureLodBiasRSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTextureMultiBuffer.cs ================================================ namespace OpenGL; public enum SgixTextureMultiBuffer { TextureMultiBufferHintSgix = 33070 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixTextureScaleBias.cs ================================================ namespace OpenGL; public enum SgixTextureScaleBias { PostTextureFilterBiasSgix = 33145, PostTextureFilterScaleSgix, PostTextureFilterBiasRangeSgix, PostTextureFilterScaleRangeSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixVertexPreclip.cs ================================================ namespace OpenGL; public enum SgixVertexPreclip { VertexPreclipSgix = 33774, VertexPreclipHintSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixYcrcb.cs ================================================ namespace OpenGL; public enum SgixYcrcb { Ycrcb422Sgix = 33211, Ycrcb444Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixYcrcbSubsample.cs ================================================ namespace OpenGL; public enum SgixYcrcbSubsample { PackSubsampleRateSgix = 34208, UnpackSubsampleRateSgix, PixelSubsample4444Sgix, PixelSubsample2424Sgix, PixelSubsample4242Sgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SgixYcrcba.cs ================================================ namespace OpenGL; public enum SgixYcrcba { YcrcbSgix = 33560, YcrcbaSgix } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ShaderParameter.cs ================================================ namespace OpenGL; public enum ShaderParameter { ShaderType = 35663, DeleteStatus = 35712, CompileStatus = 35713, InfoLogLength = 35716, ShaderSourceLength = 35720 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ShaderPrecisionType.cs ================================================ namespace OpenGL; public enum ShaderPrecisionType { LowFloat = 36336, MediumFloat, HighFloat, LowInt, MediumInt, HighInt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ShaderType.cs ================================================ namespace OpenGL; public enum ShaderType { FragmentShader = 35632, VertexShader = 35633, GeometryShader = 36313, GeometryShaderExt = 36313, TessEvaluationShader = 36487, TessControlShader = 36488 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/ShadingModel.cs ================================================ namespace OpenGL; public enum ShadingModel { Flat = 7424, Smooth } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SizedInternalFormat.cs ================================================ namespace OpenGL; public enum SizedInternalFormat { Rgba8 = 32856, Rgba16 = 32859, R8 = 33321, R16 = 33322, Rg8 = 33323, Rg16 = 33324, R16f = 33325, R32f = 33326, Rg16f = 33327, Rg32f = 33328, R8i = 33329, R8ui = 33330, R16i = 33331, R16ui = 33332, R32i = 33333, R32ui = 33334, Rg8i = 33335, Rg8ui = 33336, Rg16i = 33337, Rg16ui = 33338, Rg32i = 33339, Rg32ui = 33340, Rgba32f = 34836, Rgba16f = 34842, Rgba32ui = 36208, Rgba16ui = 36214, Rgba8ui = 36220, Rgba32i = 36226, Rgba16i = 36232, Rgba8i = 36238 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/StencilFace.cs ================================================ namespace OpenGL; public enum StencilFace { Front = 1028, Back = 1029, FrontAndBack = 1032 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/StencilFunction.cs ================================================ namespace OpenGL; public enum StencilFunction { Never = 512, Less, Equal, Lequal, Greater, Notequal, Gequal, Always } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/StencilOp.cs ================================================ namespace OpenGL; public enum StencilOp { Zero = 0, Invert = 5386, Keep = 7680, Replace = 7681, Incr = 7682, Decr = 7683, IncrWrap = 34055, DecrWrap = 34056 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/StringName.cs ================================================ namespace OpenGL; public enum StringName { Vendor = 7936, Renderer = 7937, Version = 7938, Extensions = 7939, ShadingLanguageVersion = 35724 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunConvolutionBorderModes.cs ================================================ namespace OpenGL; public enum SunConvolutionBorderModes { WrapBorderSun = 33236 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunGlobalAlpha.cs ================================================ namespace OpenGL; public enum SunGlobalAlpha { GlobalAlphaSun = 33241, GlobalAlphaFactorSun } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunMeshArray.cs ================================================ namespace OpenGL; public enum SunMeshArray { QuadMeshSun = 34324, TriangleMeshSun } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunSliceAccum.cs ================================================ namespace OpenGL; public enum SunSliceAccum { SliceAccumSun = 34252 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunTriangleList.cs ================================================ namespace OpenGL; public enum SunTriangleList { RestartSun = 1, ReplaceMiddleSun = 2, ReplaceOldestSun = 3, TriangleListSun = 33239, ReplacementCodeSun = 33240, ReplacementCodeArraySun = 34240, ReplacementCodeArrayTypeSun = 34241, ReplacementCodeArrayStrideSun = 34242, ReplacementCodeArrayPointerSun = 34243, R1uiV3fSun = 34244, R1uiC4ubV3fSun = 34245, R1uiC3fV3fSun = 34246, R1uiN3fV3fSun = 34247, R1uiC4fN3fV3fSun = 34248, R1uiT2fV3fSun = 34249, R1uiT2fN3fV3fSun = 34250, R1uiT2fC4fN3fV3fSun = 34251 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunVertex.cs ================================================ namespace OpenGL; public enum SunVertex { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunxConstantData.cs ================================================ namespace OpenGL; public enum SunxConstantData { UnpackConstantDataSunx = 33237, TextureConstantDataSunx } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/SunxGeneralTriangleList.cs ================================================ namespace OpenGL; public enum SunxGeneralTriangleList { RestartSun = 1, ReplaceMiddleSun = 2, ReplaceOldestSun = 3, WrapBorderSun = 33236, TriangleListSun = 33239, ReplacementCodeSun = 33240, ReplacementCodeArraySun = 34240, ReplacementCodeArrayTypeSun = 34241, ReplacementCodeArrayStrideSun = 34242, ReplacementCodeArrayPointerSun = 34243, R1uiV3fSun = 34244, R1uiC4ubV3fSun = 34245, R1uiC3fV3fSun = 34246, R1uiN3fV3fSun = 34247, R1uiC4fN3fV3fSun = 34248, R1uiT2fV3fSun = 34249, R1uiT2fN3fV3fSun = 34250, R1uiT2fC4fN3fV3fSun = 34251 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TexCoordPointerType.cs ================================================ namespace OpenGL; public enum TexCoordPointerType { Short = 5122, Int = 5124, Float = 5126, Double = 5130, HalfFloat = 5131, UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureBufferTarget.cs ================================================ namespace OpenGL; public enum TextureBufferTarget { TextureBuffer = 35882 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureCompareMode.cs ================================================ namespace OpenGL; public enum TextureCompareMode { None = 0, CompareRefToTexture = 34894, CompareRToTexture = 34894 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureCoordName.cs ================================================ namespace OpenGL; public enum TextureCoordName { S = 8192, T, R, Q } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvMode.cs ================================================ namespace OpenGL; public enum TextureEnvMode { Add = 260, Blend = 3042, Modulate = 8448, Decal = 8449, ReplaceExt = 32866, TextureEnvBiasSgix = 32958, Combine = 34160 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModeCombine.cs ================================================ namespace OpenGL; public enum TextureEnvModeCombine { Add = 260, Replace = 7681, Modulate = 8448, Subtract = 34023, AddSigned = 34164, Interpolate = 34165, Dot3Rgb = 34478, Dot3Rgba = 34479 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModeOperandAlpha.cs ================================================ namespace OpenGL; public enum TextureEnvModeOperandAlpha { SrcAlpha = 770, OneMinusSrcAlpha } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModeOperandRgb.cs ================================================ namespace OpenGL; public enum TextureEnvModeOperandRgb { SrcColor = 768, OneMinusSrcColor, SrcAlpha, OneMinusSrcAlpha } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModePointSprite.cs ================================================ namespace OpenGL; public enum TextureEnvModePointSprite { False, True } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModeScale.cs ================================================ namespace OpenGL; public enum TextureEnvModeScale { One = 1, Two = 2, Four = 4 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvModeSource.cs ================================================ namespace OpenGL; public enum TextureEnvModeSource { Texture = 5890, Texture0 = 33984, Texture1 = 33985, Texture2 = 33986, Texture3 = 33987, Texture4 = 33988, Texture5 = 33989, Texture6 = 33990, Texture7 = 33991, Texture8 = 33992, Texture9 = 33993, Texture10 = 33994, Texture11 = 33995, Texture12 = 33996, Texture13 = 33997, Texture14 = 33998, Texture15 = 33999, Texture16 = 34000, Texture17 = 34001, Texture18 = 34002, Texture19 = 34003, Texture20 = 34004, Texture21 = 34005, Texture22 = 34006, Texture23 = 34007, Texture24 = 34008, Texture25 = 34009, Texture26 = 34010, Texture27 = 34011, Texture28 = 34012, Texture29 = 34013, Texture30 = 34014, Texture31 = 34015, Constant = 34166, PrimaryColor = 34167, Previous = 34168 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvParameter.cs ================================================ namespace OpenGL; public enum TextureEnvParameter { AlphaScale = 3356, TextureEnvMode = 8704, TextureEnvColor = 8705, TextureLodBias = 34049, CombineRgb = 34161, CombineAlpha = 34162, RgbScale = 34163, Source0Rgb = 34176, Src1Rgb = 34177, Src2Rgb = 34178, Src0Alpha = 34184, Src1Alpha = 34185, Src2Alpha = 34186, Operand0Rgb = 34192, Operand1Rgb = 34193, Operand2Rgb = 34194, Operand0Alpha = 34200, Operand1Alpha = 34201, Operand2Alpha = 34202, CoordReplace = 34914 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureEnvTarget.cs ================================================ namespace OpenGL; public enum TextureEnvTarget { TextureEnv = 8960, TextureFilterControl = 34048, PointSprite = 34913 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureFilterFuncSgis.cs ================================================ namespace OpenGL; public enum TextureFilterFuncSgis { Filter4Sgis = 33094 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureGenMode.cs ================================================ namespace OpenGL; public enum TextureGenMode { EyeLinear = 9216, ObjectLinear = 9217, SphereMap = 9218, EyeDistanceToPointSgis = 33264, ObjectDistanceToPointSgis = 33265, EyeDistanceToLineSgis = 33266, ObjectDistanceToLineSgis = 33267, NormalMap = 34065, ReflectionMap = 34066 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureGenParameter.cs ================================================ namespace OpenGL; public enum TextureGenParameter { TextureGenMode = 9472, ObjectPlane = 9473, EyePlane = 9474, EyePointSgis = 33268, ObjectPointSgis = 33269, EyeLineSgis = 33270, ObjectLineSgis = 33271 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureMagFilter.cs ================================================ namespace OpenGL; public enum TextureMagFilter { Nearest = 9728, Linear = 9729, LinearDetailSgis = 32919, LinearDetailAlphaSgis = 32920, LinearDetailColorSgis = 32921, LinearSharpenSgis = 32941, LinearSharpenAlphaSgis = 32942, LinearSharpenColorSgis = 32943, Filter4Sgis = 33094, PixelTexGenQCeilingSgix = 33156, PixelTexGenQRoundSgix = 33157, PixelTexGenQFloorSgix = 33158 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureMinFilter.cs ================================================ namespace OpenGL; public enum TextureMinFilter { Nearest = 9728, Linear = 9729, NearestMipmapNearest = 9984, LinearMipmapNearest = 9985, NearestMipmapLinear = 9986, LinearMipmapLinear = 9987, Filter4Sgis = 33094, LinearClipmapLinearSgix = 33136, PixelTexGenQCeilingSgix = 33156, PixelTexGenQRoundSgix = 33157, PixelTexGenQFloorSgix = 33158, NearestClipmapNearestSgix = 33869, NearestClipmapLinearSgix = 33870, LinearClipmapNearestSgix = 33871 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureParameterName.cs ================================================ namespace OpenGL; public enum TextureParameterName { TextureBorderColor = 4100, Red = 6403, TextureMagFilter = 10240, TextureMinFilter = 10241, TextureWrapS = 10242, TextureWrapT = 10243, TexturePriority = 32870, TextureDepth = 32881, TextureWrapR = 32882, TextureWrapRExt = 32882, DetailTextureLevelSgis = 32922, DetailTextureModeSgis = 32923, ShadowAmbientSgix = 32959, TextureCompareFailValue = 32959, DualTextureSelectSgis = 33060, QuadTextureSelectSgis = 33061, ClampToBorder = 33069, ClampToEdge = 33071, TextureWrapQSgis = 33079, TextureMinLod = 33082, TextureMaxLod = 33083, TextureBaseLevel = 33084, TextureMaxLevel = 33085, TextureClipmapCenterSgix = 33137, TextureClipmapFrameSgix = 33138, TextureClipmapOffsetSgix = 33139, TextureClipmapVirtualDepthSgix = 33140, TextureClipmapLodOffsetSgix = 33141, TextureClipmapDepthSgix = 33142, PostTextureFilterBiasSgix = 33145, PostTextureFilterScaleSgix = 33146, TextureLodBiasSSgix = 33166, TextureLodBiasTSgix = 33167, TextureLodBiasRSgix = 33168, GenerateMipmap = 33169, GenerateMipmapSgis = 33169, TextureCompareSgix = 33178, TextureCompareOperatorSgix = 33179, TextureMaxClampSSgix = 33641, TextureMaxClampTSgix = 33642, TextureMaxClampRSgix = 33643, TextureLodBias = 34049, DepthTextureMode = 34891, TextureCompareMode = 34892, TextureCompareFunc = 34893, TextureSwizzleR = 36418, TextureSwizzleG = 36419, TextureSwizzleB = 36420, TextureSwizzleA = 36421, TextureSwizzleRgba = 36422 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureTarget.cs ================================================ namespace OpenGL; public enum TextureTarget { Texture1D = 3552, Texture2D = 3553, ProxyTexture1D = 32867, ProxyTexture2D = 32868, Texture3D = 32879, Texture3DExt = 32879, ProxyTexture3D = 32880, ProxyTexture3DExt = 32880, DetailTexture2DSgis = 32917, Texture4DSgis = 33076, ProxyTexture4DSgis = 33077, TextureMinLodSgis = 33082, TextureMaxLodSgis = 33083, TextureBaseLevelSgis = 33084, TextureMaxLevelSgis = 33085, TextureRectangle = 34037, TextureRectangleArb = 34037, TextureRectangleNv = 34037, ProxyTextureRectangle = 34039, TextureCubeMap = 34067, TextureBindingCubeMap = 34068, TextureCubeMapPositiveX = 34069, TextureCubeMapNegativeX = 34070, TextureCubeMapPositiveY = 34071, TextureCubeMapNegativeY = 34072, TextureCubeMapPositiveZ = 34073, TextureCubeMapNegativeZ = 34074, ProxyTextureCubeMap = 34075, Texture1DArray = 35864, ProxyTexture1DArray = 35865, Texture2DArray = 35866, ProxyTexture2DArray = 35867, TextureBuffer = 35882, TextureCubeMapArray = 36873, ProxyTextureCubeMapArray = 36875, Texture2DMultisample = 37120, ProxyTexture2DMultisample = 37121, Texture2DMultisampleArray = 37122, ProxyTexture2DMultisampleArray = 37123 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureTargetMultisample.cs ================================================ namespace OpenGL; public enum TextureTargetMultisample { Texture2DMultisample = 37120, ProxyTexture2DMultisample, Texture2DMultisampleArray, ProxyTexture2DMultisampleArray } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureUnit.cs ================================================ namespace OpenGL; public enum TextureUnit { Texture0 = 33984, Texture1, Texture2, Texture3, Texture4, Texture5, Texture6, Texture7, Texture8, Texture9, Texture10, Texture11, Texture12, Texture13, Texture14, Texture15, Texture16, Texture17, Texture18, Texture19, Texture20, Texture21, Texture22, Texture23, Texture24, Texture25, Texture26, Texture27, Texture28, Texture29, Texture30, Texture31 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TextureWrapMode.cs ================================================ namespace OpenGL; public enum TextureWrapMode { Clamp = 10496, Repeat = 10497, ClampToBorder = 33069, ClampToBorderSgis = 33069, ClampToEdge = 33071, ClampToEdgeSgis = 33071, MirroredRepeat = 33648 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TransformFeedbackMode.cs ================================================ namespace OpenGL; public enum TransformFeedbackMode { InterleavedAttribs = 35980, SeparateAttribs } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/TransformFeedbackTarget.cs ================================================ namespace OpenGL; public enum TransformFeedbackTarget { TransformFeedback = 36386 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector2.cs ================================================ using System; using System.Runtime.InteropServices; namespace OpenGL; public struct Vector2 : IEquatable { public float X; public float Y; public static readonly Vector2 UnitX = new Vector2(1f, 0f); public static readonly Vector2 UnitY = new Vector2(0f, 1f); public static readonly Vector2 Zero = new Vector2(0f, 0f); public static readonly Vector2 One = new Vector2(1f, 1f); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector2)); public float Length => (float)Math.Sqrt(X * X + Y * Y); public float LengthFast => 1f / MathHelper.InverseSqrtFast(X * X + Y * Y); public float LengthSquared => X * X + Y * Y; public Vector2 PerpendicularRight => new Vector2(Y, 0f - X); public Vector2 PerpendicularLeft => new Vector2(0f - Y, X); public Vector2(float value) { X = value; Y = value; } public Vector2(float x, float y) { X = x; Y = y; } [Obsolete] public Vector2(Vector2 v) { X = v.X; Y = v.Y; } [Obsolete] public Vector2(Vector3 v) { X = v.X; Y = v.Y; } [Obsolete] public Vector2(Vector4 v) { X = v.X; Y = v.Y; } [Obsolete("Use static Add() method instead.")] public void Add(Vector2 right) { X += right.X; Y += right.Y; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector2 right) { X += right.X; Y += right.Y; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector2 right) { X -= right.X; Y -= right.Y; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector2 right) { X -= right.X; Y -= right.Y; } [Obsolete("Use static Multiply() method instead.")] public void Mult(float f) { X *= f; Y *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(float f) { float num = 1f / f; X *= num; Y *= num; } public void Normalize() { float num = 1f / Length; X *= num; Y *= num; } public void NormalizeFast() { float num = MathHelper.InverseSqrtFast(X * X + Y * Y); X *= num; Y *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy) { X *= sx; Y *= sy; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector2 scale) { X *= scale.X; Y *= scale.Y; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector2 scale) { X *= scale.X; Y *= scale.Y; } [Obsolete("Use static Subtract() method instead.")] public static Vector2 Sub(Vector2 a, Vector2 b) { a.X -= b.X; a.Y -= b.Y; return a; } [Obsolete("Use static Subtract() method instead.")] public static void Sub(ref Vector2 a, ref Vector2 b, out Vector2 result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; } [Obsolete("Use static Multiply() method instead.")] public static Vector2 Mult(Vector2 a, float f) { a.X *= f; a.Y *= f; return a; } [Obsolete("Use static Multiply() method instead.")] public static void Mult(ref Vector2 a, float f, out Vector2 result) { result.X = a.X * f; result.Y = a.Y * f; } [Obsolete("Use static Divide() method instead.")] public static Vector2 Div(Vector2 a, float f) { float num = 1f / f; a.X *= num; a.Y *= num; return a; } [Obsolete("Use static Divide() method instead.")] public static void Div(ref Vector2 a, float f, out Vector2 result) { float num = 1f / f; result.X = a.X * num; result.Y = a.Y * num; } public static Vector2 Add(Vector2 a, Vector2 b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector2 a, ref Vector2 b, out Vector2 result) { result = new Vector2(a.X + b.X, a.Y + b.Y); } public static Vector2 Subtract(Vector2 a, Vector2 b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector2 a, ref Vector2 b, out Vector2 result) { result = new Vector2(a.X - b.X, a.Y - b.Y); } public static Vector2 Multiply(Vector2 vector, float scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector2 vector, float scale, out Vector2 result) { result = new Vector2(vector.X * scale, vector.Y * scale); } public static Vector2 Multiply(Vector2 vector, Vector2 scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector2 vector, ref Vector2 scale, out Vector2 result) { result = new Vector2(vector.X * scale.X, vector.Y * scale.Y); } public static Vector2 Divide(Vector2 vector, float scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector2 vector, float scale, out Vector2 result) { Multiply(ref vector, 1f / scale, out result); } public static Vector2 Divide(Vector2 vector, Vector2 scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector2 vector, ref Vector2 scale, out Vector2 result) { result = new Vector2(vector.X / scale.X, vector.Y / scale.Y); } public static Vector2 ComponentMin(Vector2 a, Vector2 b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); return a; } public static void ComponentMin(ref Vector2 a, ref Vector2 b, out Vector2 result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); } public static Vector2 ComponentMax(Vector2 a, Vector2 b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); return a; } public static void ComponentMax(ref Vector2 a, ref Vector2 b, out Vector2 result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); } public static Vector2 Min(Vector2 left, Vector2 right) { if (!(left.LengthSquared < right.LengthSquared)) { return right; } return left; } public static Vector2 Max(Vector2 left, Vector2 right) { if (!(left.LengthSquared >= right.LengthSquared)) { return right; } return left; } public static Vector2 Clamp(Vector2 vec, Vector2 min, Vector2 max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); return vec; } public static void Clamp(ref Vector2 vec, ref Vector2 min, ref Vector2 max, out Vector2 result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); } public static Vector2 Normalize(Vector2 vec) { float num = 1f / vec.Length; vec.X *= num; vec.Y *= num; return vec; } public static void Normalize(ref Vector2 vec, out Vector2 result) { float num = 1f / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; } public static Vector2 NormalizeFast(Vector2 vec) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y); vec.X *= num; vec.Y *= num; return vec; } public static void NormalizeFast(ref Vector2 vec, out Vector2 result) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y); result.X = vec.X * num; result.Y = vec.Y * num; } public static float Dot(Vector2 left, Vector2 right) { return left.X * right.X + left.Y * right.Y; } public static void Dot(ref Vector2 left, ref Vector2 right, out float result) { result = left.X * right.X + left.Y * right.Y; } public static Vector2 Lerp(Vector2 a, Vector2 b, float blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; return a; } public static void Lerp(ref Vector2 a, ref Vector2 b, float blend, out Vector2 result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; } public static Vector2 BaryCentric(Vector2 a, Vector2 b, Vector2 c, float u, float v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector2 a, ref Vector2 b, ref Vector2 c, float u, float v, out Vector2 result) { result = a; Vector2 a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector2 Transform(Vector2 vec, Quaternion quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector2 vec, ref Quaternion quat, out Vector2 result) { Quaternion right = new Quaternion(vec.X, vec.Y, 0f, 0f); Quaternion.Invert(ref quat, out var result2); Quaternion.Multiply(ref quat, ref right, out var result3); Quaternion.Multiply(ref result3, ref result2, out right); result = new Vector2(right.X, right.Y); } public static Vector2 operator +(Vector2 left, Vector2 right) { left.X += right.X; left.Y += right.Y; return left; } public static Vector2 operator -(Vector2 left, Vector2 right) { left.X -= right.X; left.Y -= right.Y; return left; } public static Vector2 operator -(Vector2 vec) { vec.X = 0f - vec.X; vec.Y = 0f - vec.Y; return vec; } public static Vector2 operator *(Vector2 vec, float scale) { vec.X *= scale; vec.Y *= scale; return vec; } public static Vector2 operator *(float scale, Vector2 vec) { vec.X *= scale; vec.Y *= scale; return vec; } public static Vector2 operator /(Vector2 vec, float scale) { float num = 1f / scale; vec.X *= num; vec.Y *= num; return vec; } public static bool operator ==(Vector2 left, Vector2 right) { return left.Equals(right); } public static bool operator !=(Vector2 left, Vector2 right) { return !left.Equals(right); } public override string ToString() { return $"({X}, {Y})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector2)) { return false; } return Equals((Vector2)obj); } public bool Equals(Vector2 other) { if (X == other.X) { return Y == other.Y; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector2d.cs ================================================ using System; using System.Runtime.InteropServices; namespace OpenGL; [Serializable] public struct Vector2d : IEquatable { public double X; public double Y; public static Vector2d UnitX = new Vector2d(1.0, 0.0); public static Vector2d UnitY = new Vector2d(0.0, 1.0); public static Vector2d Zero = new Vector2d(0.0, 0.0); public static readonly Vector2d One = new Vector2d(1.0, 1.0); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector2d)); public double Length => Math.Sqrt(X * X + Y * Y); public double LengthSquared => X * X + Y * Y; public Vector2d PerpendicularRight => new Vector2d(Y, 0.0 - X); public Vector2d PerpendicularLeft => new Vector2d(0.0 - Y, X); public Vector2d(double value) { X = value; Y = value; } public Vector2d(double x, double y) { X = x; Y = y; } [Obsolete("Use static Add() method instead.")] public void Add(Vector2d right) { X += right.X; Y += right.Y; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector2d right) { X += right.X; Y += right.Y; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector2d right) { X -= right.X; Y -= right.Y; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector2d right) { X -= right.X; Y -= right.Y; } [Obsolete("Use static Multiply() method instead.")] public void Mult(double f) { X *= f; Y *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(double f) { double num = 1.0 / f; X *= num; Y *= num; } public void Normalize() { double num = 1.0 / Length; X *= num; Y *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy) { X *= sx; Y *= sy; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector2d scale) { X *= scale.X; Y *= scale.Y; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector2d scale) { X *= scale.X; Y *= scale.Y; } [Obsolete("Use static Subtract() method instead.")] public static Vector2d Sub(Vector2d a, Vector2d b) { a.X -= b.X; a.Y -= b.Y; return a; } [Obsolete("Use static Subtract() method instead.")] public static void Sub(ref Vector2d a, ref Vector2d b, out Vector2d result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; } [Obsolete("Use static Multiply() method instead.")] public static Vector2d Mult(Vector2d a, double d) { a.X *= d; a.Y *= d; return a; } [Obsolete("Use static Multiply() method instead.")] public static void Mult(ref Vector2d a, double d, out Vector2d result) { result.X = a.X * d; result.Y = a.Y * d; } [Obsolete("Use static Divide() method instead.")] public static Vector2d Div(Vector2d a, double d) { double num = 1.0 / d; a.X *= num; a.Y *= num; return a; } [Obsolete("Use static Divide() method instead.")] public static void Div(ref Vector2d a, double d, out Vector2d result) { double num = 1.0 / d; result.X = a.X * num; result.Y = a.Y * num; } public static Vector2d Add(Vector2d a, Vector2d b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector2d a, ref Vector2d b, out Vector2d result) { result = new Vector2d(a.X + b.X, a.Y + b.Y); } public static Vector2d Subtract(Vector2d a, Vector2d b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector2d a, ref Vector2d b, out Vector2d result) { result = new Vector2d(a.X - b.X, a.Y - b.Y); } public static Vector2d Multiply(Vector2d vector, double scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector2d vector, double scale, out Vector2d result) { result = new Vector2d(vector.X * scale, vector.Y * scale); } public static Vector2d Multiply(Vector2d vector, Vector2d scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector2d vector, ref Vector2d scale, out Vector2d result) { result = new Vector2d(vector.X * scale.X, vector.Y * scale.Y); } public static Vector2d Divide(Vector2d vector, double scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector2d vector, double scale, out Vector2d result) { Multiply(ref vector, 1.0 / scale, out result); } public static Vector2d Divide(Vector2d vector, Vector2d scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector2d vector, ref Vector2d scale, out Vector2d result) { result = new Vector2d(vector.X / scale.X, vector.Y / scale.Y); } public static Vector2d Min(Vector2d a, Vector2d b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); return a; } public static void Min(ref Vector2d a, ref Vector2d b, out Vector2d result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); } public static Vector2d Max(Vector2d a, Vector2d b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); return a; } public static void Max(ref Vector2d a, ref Vector2d b, out Vector2d result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); } public static Vector2d Clamp(Vector2d vec, Vector2d min, Vector2d max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); return vec; } public static void Clamp(ref Vector2d vec, ref Vector2d min, ref Vector2d max, out Vector2d result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); } public static Vector2d Normalize(Vector2d vec) { double num = 1.0 / vec.Length; vec.X *= num; vec.Y *= num; return vec; } public static void Normalize(ref Vector2d vec, out Vector2d result) { double num = 1.0 / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; } public static Vector2d NormalizeFast(Vector2d vec) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y); vec.X *= num; vec.Y *= num; return vec; } public static void NormalizeFast(ref Vector2d vec, out Vector2d result) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y); result.X = vec.X * num; result.Y = vec.Y * num; } public static double Dot(Vector2d left, Vector2d right) { return left.X * right.X + left.Y * right.Y; } public static void Dot(ref Vector2d left, ref Vector2d right, out double result) { result = left.X * right.X + left.Y * right.Y; } public static Vector2d Lerp(Vector2d a, Vector2d b, double blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; return a; } public static void Lerp(ref Vector2d a, ref Vector2d b, double blend, out Vector2d result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; } public static Vector2d BaryCentric(Vector2d a, Vector2d b, Vector2d c, double u, double v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector2d a, ref Vector2d b, ref Vector2d c, double u, double v, out Vector2d result) { result = a; Vector2d a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector2d Transform(Vector2d vec, Quaterniond quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector2d vec, ref Quaterniond quat, out Vector2d result) { Quaterniond right = new Quaterniond(vec.X, vec.Y, 0.0, 0.0); Quaterniond.Invert(ref quat, out var result2); Quaterniond.Multiply(ref quat, ref right, out var result3); Quaterniond.Multiply(ref result3, ref result2, out right); result = new Vector2d(right.X, right.Y); } public static Vector2d operator +(Vector2d left, Vector2d right) { left.X += right.X; left.Y += right.Y; return left; } public static Vector2d operator -(Vector2d left, Vector2d right) { left.X -= right.X; left.Y -= right.Y; return left; } public static Vector2d operator -(Vector2d vec) { vec.X = 0.0 - vec.X; vec.Y = 0.0 - vec.Y; return vec; } public static Vector2d operator *(Vector2d vec, double f) { vec.X *= f; vec.Y *= f; return vec; } public static Vector2d operator *(double f, Vector2d vec) { vec.X *= f; vec.Y *= f; return vec; } public static Vector2d operator /(Vector2d vec, double f) { double num = 1.0 / f; vec.X *= num; vec.Y *= num; return vec; } public static bool operator ==(Vector2d left, Vector2d right) { return left.Equals(right); } public static bool operator !=(Vector2d left, Vector2d right) { return !left.Equals(right); } public static explicit operator Vector2d(Vector2 v2) { return new Vector2d(v2.X, v2.Y); } public static explicit operator Vector2(Vector2d v2d) { return new Vector2((float)v2d.X, (float)v2d.Y); } public override string ToString() { return $"({X}, {Y})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector2d)) { return false; } return Equals((Vector2d)obj); } public bool Equals(Vector2d other) { if (X == other.X) { return Y == other.Y; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector2h.cs ================================================ using System; using System.IO; using System.Runtime.Serialization; namespace OpenGL; [Serializable] public struct Vector2h : ISerializable, IEquatable { public Half X; public Half Y; public static readonly int SizeInBytes = 4; public Vector2h(Half value) { X = value; Y = value; } public Vector2h(float value) { X = new Half(value); Y = new Half(value); } public Vector2h(Half x, Half y) { X = x; Y = y; } public Vector2h(float x, float y) { X = new Half(x); Y = new Half(y); } public Vector2h(float x, float y, bool throwOnError) { X = new Half(x, throwOnError); Y = new Half(y, throwOnError); } [CLSCompliant(false)] public Vector2h(Vector2 v) { X = new Half(v.X); Y = new Half(v.Y); } [CLSCompliant(false)] public Vector2h(Vector2 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); } public Vector2h(ref Vector2 v) { X = new Half(v.X); Y = new Half(v.Y); } public Vector2h(ref Vector2 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); } public Vector2h(Vector2d v) { X = new Half(v.X); Y = new Half(v.Y); } public Vector2h(Vector2d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); } [CLSCompliant(false)] public Vector2h(ref Vector2d v) { X = new Half(v.X); Y = new Half(v.Y); } [CLSCompliant(false)] public Vector2h(ref Vector2d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); } public Vector2 ToVector2() { return new Vector2(X, Y); } public Vector2d ToVector2d() { return new Vector2d(X, Y); } public static explicit operator Vector2h(Vector2 v) { return new Vector2h(v); } public static explicit operator Vector2h(Vector2d v) { return new Vector2h(v); } public static explicit operator Vector2(Vector2h h) { return new Vector2(h.X, h.Y); } public static explicit operator Vector2d(Vector2h h) { return new Vector2d(h.X, h.Y); } public Vector2h(SerializationInfo info, StreamingContext context) { X = (Half)info.GetValue("X", typeof(Half)); Y = (Half)info.GetValue("Y", typeof(Half)); } public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("X", X); info.AddValue("Y", Y); } public void FromBinaryStream(BinaryReader bin) { X.FromBinaryStream(bin); Y.FromBinaryStream(bin); } public void ToBinaryStream(BinaryWriter bin) { X.ToBinaryStream(bin); Y.ToBinaryStream(bin); } public bool Equals(Vector2h other) { if (X.Equals(other.X)) { return Y.Equals(other.Y); } return false; } public override string ToString() { return $"({X.ToString()}, {Y.ToString()})"; } public static byte[] GetBytes(Vector2h h) { byte[] array = new byte[SizeInBytes]; byte[] bytes = Half.GetBytes(h.X); array[0] = bytes[0]; array[1] = bytes[1]; bytes = Half.GetBytes(h.Y); array[2] = bytes[0]; array[3] = bytes[1]; return array; } public static Vector2h FromBytes(byte[] value, int startIndex) { Vector2h result = default(Vector2h); result.X = Half.FromBytes(value, startIndex); result.Y = Half.FromBytes(value, startIndex + 2); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector3.cs ================================================ using System; using System.Runtime.InteropServices; namespace OpenGL; public struct Vector3 : IEquatable { public float X; public float Y; public float Z; public static readonly Vector3 UnitX = new Vector3(1f, 0f, 0f); public static readonly Vector3 UnitY = new Vector3(0f, 1f, 0f); public static readonly Vector3 UnitZ = new Vector3(0f, 0f, 1f); public static readonly Vector3 Zero = new Vector3(0f, 0f, 0f); public static readonly Vector3 One = new Vector3(1f, 1f, 1f); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector3)); public float Length => (float)Math.Sqrt(X * X + Y * Y + Z * Z); public float LengthFast => 1f / MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z); public float LengthSquared => X * X + Y * Y + Z * Z; public Vector2 Xy { get { return new Vector2(X, Y); } set { X = value.X; Y = value.Y; } } public Vector3(float value) { X = value; Y = value; Z = value; } public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public Vector3(Vector2 v) { X = v.X; Y = v.Y; Z = 0f; } public Vector3(Vector3 v) { X = v.X; Y = v.Y; Z = v.Z; } public Vector3(Vector4 v) { X = v.X; Y = v.Y; Z = v.Z; } [Obsolete("Use static Add() method instead.")] public void Add(Vector3 right) { X += right.X; Y += right.Y; Z += right.Z; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector3 right) { X += right.X; Y += right.Y; Z += right.Z; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector3 right) { X -= right.X; Y -= right.Y; Z -= right.Z; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector3 right) { X -= right.X; Y -= right.Y; Z -= right.Z; } [Obsolete("Use static Multiply() method instead.")] public void Mult(float f) { X *= f; Y *= f; Z *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(float f) { float num = 1f / f; X *= num; Y *= num; Z *= num; } public void Normalize() { float num = 1f / Length; X *= num; Y *= num; Z *= num; } public void NormalizeFast() { float num = MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z); X *= num; Y *= num; Z *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy, float sz) { X *= sx; Y *= sy; Z *= sz; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector3 scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector3 scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; } [Obsolete("Use static Subtract() method instead.")] public static Vector3 Sub(Vector3 a, Vector3 b) { a.X -= b.X; a.Y -= b.Y; a.Z -= b.Z; return a; } [Obsolete("Use static Subtract() method instead.")] public static void Sub(ref Vector3 a, ref Vector3 b, out Vector3 result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; result.Z = a.Z - b.Z; } [Obsolete("Use static Multiply() method instead.")] public static Vector3 Mult(Vector3 a, float f) { a.X *= f; a.Y *= f; a.Z *= f; return a; } [Obsolete("Use static Multiply() method instead.")] public static void Mult(ref Vector3 a, float f, out Vector3 result) { result.X = a.X * f; result.Y = a.Y * f; result.Z = a.Z * f; } [Obsolete("Use static Divide() method instead.")] public static Vector3 Div(Vector3 a, float f) { float num = 1f / f; a.X *= num; a.Y *= num; a.Z *= num; return a; } [Obsolete("Use static Divide() method instead.")] public static void Div(ref Vector3 a, float f, out Vector3 result) { float num = 1f / f; result.X = a.X * num; result.Y = a.Y * num; result.Z = a.Z * num; } public static Vector3 Add(Vector3 a, Vector3 b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector3 a, ref Vector3 b, out Vector3 result) { result = new Vector3(a.X + b.X, a.Y + b.Y, a.Z + b.Z); } public static Vector3 Subtract(Vector3 a, Vector3 b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector3 a, ref Vector3 b, out Vector3 result) { result = new Vector3(a.X - b.X, a.Y - b.Y, a.Z - b.Z); } public static Vector3 Multiply(Vector3 vector, float scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector3 vector, float scale, out Vector3 result) { result = new Vector3(vector.X * scale, vector.Y * scale, vector.Z * scale); } public static Vector3 Multiply(Vector3 vector, Vector3 scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector3 vector, ref Vector3 scale, out Vector3 result) { result = new Vector3(vector.X * scale.X, vector.Y * scale.Y, vector.Z * scale.Z); } public static Vector3 Divide(Vector3 vector, float scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector3 vector, float scale, out Vector3 result) { Multiply(ref vector, 1f / scale, out result); } public static Vector3 Divide(Vector3 vector, Vector3 scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector3 vector, ref Vector3 scale, out Vector3 result) { result = new Vector3(vector.X / scale.X, vector.Y / scale.Y, vector.Z / scale.Z); } public static Vector3 ComponentMin(Vector3 a, Vector3 b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); a.Z = ((a.Z < b.Z) ? a.Z : b.Z); return a; } public static void ComponentMin(ref Vector3 a, ref Vector3 b, out Vector3 result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); result.Z = ((a.Z < b.Z) ? a.Z : b.Z); } public static Vector3 ComponentMax(Vector3 a, Vector3 b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); a.Z = ((a.Z > b.Z) ? a.Z : b.Z); return a; } public static void ComponentMax(ref Vector3 a, ref Vector3 b, out Vector3 result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); result.Z = ((a.Z > b.Z) ? a.Z : b.Z); } public static Vector3 Min(Vector3 left, Vector3 right) { if (!(left.LengthSquared < right.LengthSquared)) { return right; } return left; } public static Vector3 Max(Vector3 left, Vector3 right) { if (!(left.LengthSquared >= right.LengthSquared)) { return right; } return left; } public static Vector3 Clamp(Vector3 vec, Vector3 min, Vector3 max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); vec.Z = ((vec.Z < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); return vec; } public static void Clamp(ref Vector3 vec, ref Vector3 min, ref Vector3 max, out Vector3 result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); result.Z = ((vec.Z < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); } public static Vector3 Normalize(Vector3 vec) { float num = 1f / vec.Length; vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static void Normalize(ref Vector3 vec, out Vector3 result) { float num = 1f / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; } public static Vector3 NormalizeFast(Vector3 vec) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z); vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static void NormalizeFast(ref Vector3 vec, out Vector3 result) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z); result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; } public static float Dot(Vector3 left, Vector3 right) { return left.X * right.X + left.Y * right.Y + left.Z * right.Z; } public static void Dot(ref Vector3 left, ref Vector3 right, out float result) { result = left.X * right.X + left.Y * right.Y + left.Z * right.Z; } public static Vector3 Cross(Vector3 left, Vector3 right) { Cross(ref left, ref right, out var result); return result; } public static void Cross(ref Vector3 left, ref Vector3 right, out Vector3 result) { result = new Vector3(left.Y * right.Z - left.Z * right.Y, left.Z * right.X - left.X * right.Z, left.X * right.Y - left.Y * right.X); } public static Vector3 Lerp(Vector3 a, Vector3 b, float blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; a.Z = blend * (b.Z - a.Z) + a.Z; return a; } public static void Lerp(ref Vector3 a, ref Vector3 b, float blend, out Vector3 result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; result.Z = blend * (b.Z - a.Z) + a.Z; } public static Vector3 BaryCentric(Vector3 a, Vector3 b, Vector3 c, float u, float v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector3 a, ref Vector3 b, ref Vector3 c, float u, float v, out Vector3 result) { result = a; Vector3 a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector3 TransformVector(Vector3 vec, Matrix4 mat) { Vector3 result = default(Vector3); result.X = Dot(vec, new Vector3(mat.Column0)); result.Y = Dot(vec, new Vector3(mat.Column1)); result.Z = Dot(vec, new Vector3(mat.Column2)); return result; } public static void TransformVector(ref Vector3 vec, ref Matrix4 mat, out Vector3 result) { result.X = vec.X * mat.Row0.X + vec.Y * mat.Row1.X + vec.Z * mat.Row2.X; result.Y = vec.X * mat.Row0.Y + vec.Y * mat.Row1.Y + vec.Z * mat.Row2.Y; result.Z = vec.X * mat.Row0.Z + vec.Y * mat.Row1.Z + vec.Z * mat.Row2.Z; } public static Vector3 TransformNormal(Vector3 norm, Matrix4 mat) { mat.Invert(); return TransformNormalInverse(norm, mat); } public static void TransformNormal(ref Vector3 norm, ref Matrix4 mat, out Vector3 result) { Matrix4 invMat = Matrix4.Invert(mat); TransformNormalInverse(ref norm, ref invMat, out result); } public static Vector3 TransformNormalInverse(Vector3 norm, Matrix4 invMat) { Vector3 result = default(Vector3); result.X = Dot(norm, new Vector3(invMat.Row0)); result.Y = Dot(norm, new Vector3(invMat.Row1)); result.Z = Dot(norm, new Vector3(invMat.Row2)); return result; } public static void TransformNormalInverse(ref Vector3 norm, ref Matrix4 invMat, out Vector3 result) { result.X = norm.X * invMat.Row0.X + norm.Y * invMat.Row0.Y + norm.Z * invMat.Row0.Z; result.Y = norm.X * invMat.Row1.X + norm.Y * invMat.Row1.Y + norm.Z * invMat.Row1.Z; result.Z = norm.X * invMat.Row2.X + norm.Y * invMat.Row2.Y + norm.Z * invMat.Row2.Z; } public static Vector3 TransformPosition(Vector3 pos, Matrix4 mat) { Vector3 result = default(Vector3); result.X = Dot(pos, new Vector3(mat.Column0)) + mat.Row3.X; result.Y = Dot(pos, new Vector3(mat.Column1)) + mat.Row3.Y; result.Z = Dot(pos, new Vector3(mat.Column2)) + mat.Row3.Z; return result; } public static void TransformPosition(ref Vector3 pos, ref Matrix4 mat, out Vector3 result) { result.X = pos.X * mat.Row0.X + pos.Y * mat.Row1.X + pos.Z * mat.Row2.X + mat.Row3.X; result.Y = pos.X * mat.Row0.Y + pos.Y * mat.Row1.Y + pos.Z * mat.Row2.Y + mat.Row3.Y; result.Z = pos.X * mat.Row0.Z + pos.Y * mat.Row1.Z + pos.Z * mat.Row2.Z + mat.Row3.Z; } public static Vector3 Transform(Vector3 vec, Matrix4 mat) { Transform(ref vec, ref mat, out var result); return result; } public static void Transform(ref Vector3 vec, ref Matrix4 mat, out Vector3 result) { Vector4 vec2 = new Vector4(vec.X, vec.Y, vec.Z, 1f); Vector4.Transform(ref vec2, ref mat, out vec2); result = vec2.Xyz; } public static Vector3 Transform(Vector3 vec, Quaternion quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector3 vec, ref Quaternion quat, out Vector3 result) { Vector3 left = quat.Xyz; Cross(ref left, ref vec, out var result2); Multiply(ref vec, quat.W, out var result3); Add(ref result2, ref result3, out result2); Cross(ref left, ref result2, out result2); Multiply(ref result2, 2f, out result2); Add(ref vec, ref result2, out result); } public static Vector3 TransformPerspective(Vector3 vec, Matrix4 mat) { TransformPerspective(ref vec, ref mat, out var result); return result; } public static void TransformPerspective(ref Vector3 vec, ref Matrix4 mat, out Vector3 result) { Vector4 vec2 = new Vector4(vec, 1f); Vector4.Transform(ref vec2, ref mat, out vec2); result.X = vec2.X / vec2.W; result.Y = vec2.Y / vec2.W; result.Z = vec2.Z / vec2.W; } public static float CalculateAngle(Vector3 first, Vector3 second) { return (float)Math.Acos(Dot(first, second) / (first.Length * second.Length)); } public static void CalculateAngle(ref Vector3 first, ref Vector3 second, out float result) { Dot(ref first, ref second, out var result2); result = (float)Math.Acos(result2 / (first.Length * second.Length)); } public static Vector3 operator +(Vector3 left, Vector3 right) { left.X += right.X; left.Y += right.Y; left.Z += right.Z; return left; } public static Vector3 operator -(Vector3 left, Vector3 right) { left.X -= right.X; left.Y -= right.Y; left.Z -= right.Z; return left; } public static Vector3 operator -(Vector3 vec) { vec.X = 0f - vec.X; vec.Y = 0f - vec.Y; vec.Z = 0f - vec.Z; return vec; } public static Vector3 operator *(Vector3 vec, float scale) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; return vec; } public static Vector3 operator *(float scale, Vector3 vec) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; return vec; } public static Vector3 operator /(Vector3 vec, float scale) { float num = 1f / scale; vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static bool operator ==(Vector3 left, Vector3 right) { return left.Equals(right); } public static bool operator !=(Vector3 left, Vector3 right) { return !left.Equals(right); } public override string ToString() { return $"({X}, {Y}, {Z})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector3)) { return false; } return Equals((Vector3)obj); } public bool Equals(Vector3 other) { if (X == other.X && Y == other.Y) { return Z == other.Z; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector3d.cs ================================================ using System; using System.Runtime.InteropServices; using System.Xml.Serialization; namespace OpenGL; [Serializable] public struct Vector3d : IEquatable { public double X; public double Y; public double Z; public static readonly Vector3d UnitX = new Vector3d(1.0, 0.0, 0.0); public static readonly Vector3d UnitY = new Vector3d(0.0, 1.0, 0.0); public static readonly Vector3d UnitZ = new Vector3d(0.0, 0.0, 1.0); public static readonly Vector3d Zero = new Vector3d(0.0, 0.0, 0.0); public static readonly Vector3d One = new Vector3d(1.0, 1.0, 1.0); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector3d)); public double Length => Math.Sqrt(X * X + Y * Y + Z * Z); public double LengthFast => 1.0 / MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z); public double LengthSquared => X * X + Y * Y + Z * Z; [XmlIgnore] public Vector2d Xy { get { return new Vector2d(X, Y); } set { X = value.X; Y = value.Y; } } public Vector3d(double value) { X = value; Y = value; Z = value; } public Vector3d(double x, double y, double z) { X = x; Y = y; Z = z; } public Vector3d(Vector2d v) { X = v.X; Y = v.Y; Z = 0.0; } public Vector3d(Vector3d v) { X = v.X; Y = v.Y; Z = v.Z; } public Vector3d(Vector4d v) { X = v.X; Y = v.Y; Z = v.Z; } [Obsolete("Use static Add() method instead.")] public void Add(Vector3d right) { X += right.X; Y += right.Y; Z += right.Z; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector3d right) { X += right.X; Y += right.Y; Z += right.Z; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector3d right) { X -= right.X; Y -= right.Y; Z -= right.Z; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector3d right) { X -= right.X; Y -= right.Y; Z -= right.Z; } [Obsolete("Use static Multiply() method instead.")] public void Mult(double f) { X *= f; Y *= f; Z *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(double f) { double num = 1.0 / f; X *= num; Y *= num; Z *= num; } public void Normalize() { double num = 1.0 / Length; X *= num; Y *= num; Z *= num; } public void NormalizeFast() { double num = MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z); X *= num; Y *= num; Z *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy, double sz) { X *= sx; Y *= sy; Z *= sz; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector3d scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector3d scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; } [Obsolete("Use static Subtract() method instead.")] public static Vector3d Sub(Vector3d a, Vector3d b) { a.X -= b.X; a.Y -= b.Y; a.Z -= b.Z; return a; } [Obsolete("Use static Subtract() method instead.")] public static void Sub(ref Vector3d a, ref Vector3d b, out Vector3d result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; result.Z = a.Z - b.Z; } [Obsolete("Use static Multiply() method instead.")] public static Vector3d Mult(Vector3d a, double f) { a.X *= f; a.Y *= f; a.Z *= f; return a; } [Obsolete("Use static Multiply() method instead.")] public static void Mult(ref Vector3d a, double f, out Vector3d result) { result.X = a.X * f; result.Y = a.Y * f; result.Z = a.Z * f; } [Obsolete("Use static Divide() method instead.")] public static Vector3d Div(Vector3d a, double f) { double num = 1.0 / f; a.X *= num; a.Y *= num; a.Z *= num; return a; } [Obsolete("Use static Divide() method instead.")] public static void Div(ref Vector3d a, double f, out Vector3d result) { double num = 1.0 / f; result.X = a.X * num; result.Y = a.Y * num; result.Z = a.Z * num; } public static Vector3d Add(Vector3d a, Vector3d b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector3d a, ref Vector3d b, out Vector3d result) { result = new Vector3d(a.X + b.X, a.Y + b.Y, a.Z + b.Z); } public static Vector3d Subtract(Vector3d a, Vector3d b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector3d a, ref Vector3d b, out Vector3d result) { result = new Vector3d(a.X - b.X, a.Y - b.Y, a.Z - b.Z); } public static Vector3d Multiply(Vector3d vector, double scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector3d vector, double scale, out Vector3d result) { result = new Vector3d(vector.X * scale, vector.Y * scale, vector.Z * scale); } public static Vector3d Multiply(Vector3d vector, Vector3d scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector3d vector, ref Vector3d scale, out Vector3d result) { result = new Vector3d(vector.X * scale.X, vector.Y * scale.Y, vector.Z * scale.Z); } public static Vector3d Divide(Vector3d vector, double scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector3d vector, double scale, out Vector3d result) { Multiply(ref vector, 1.0 / scale, out result); } public static Vector3d Divide(Vector3d vector, Vector3d scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector3d vector, ref Vector3d scale, out Vector3d result) { result = new Vector3d(vector.X / scale.X, vector.Y / scale.Y, vector.Z / scale.Z); } public static Vector3d ComponentMin(Vector3d a, Vector3d b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); a.Z = ((a.Z < b.Z) ? a.Z : b.Z); return a; } public static void ComponentMin(ref Vector3d a, ref Vector3d b, out Vector3d result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); result.Z = ((a.Z < b.Z) ? a.Z : b.Z); } public static Vector3d ComponentMax(Vector3d a, Vector3d b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); a.Z = ((a.Z > b.Z) ? a.Z : b.Z); return a; } public static void ComponentMax(ref Vector3d a, ref Vector3d b, out Vector3d result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); result.Z = ((a.Z > b.Z) ? a.Z : b.Z); } public static Vector3d Min(Vector3d left, Vector3d right) { if (!(left.LengthSquared < right.LengthSquared)) { return right; } return left; } public static Vector3d Max(Vector3d left, Vector3d right) { if (!(left.LengthSquared >= right.LengthSquared)) { return right; } return left; } public static Vector3d Clamp(Vector3d vec, Vector3d min, Vector3d max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); vec.Z = ((vec.Z < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); return vec; } public static void Clamp(ref Vector3d vec, ref Vector3d min, ref Vector3d max, out Vector3d result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); result.Z = ((vec.Z < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); } public static Vector3d Normalize(Vector3d vec) { double num = 1.0 / vec.Length; vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static void Normalize(ref Vector3d vec, out Vector3d result) { double num = 1.0 / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; } public static Vector3d NormalizeFast(Vector3d vec) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z); vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static void NormalizeFast(ref Vector3d vec, out Vector3d result) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z); result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; } public static double Dot(Vector3d left, Vector3d right) { return left.X * right.X + left.Y * right.Y + left.Z * right.Z; } public static void Dot(ref Vector3d left, ref Vector3d right, out double result) { result = left.X * right.X + left.Y * right.Y + left.Z * right.Z; } public static Vector3d Cross(Vector3d left, Vector3d right) { Cross(ref left, ref right, out var result); return result; } public static void Cross(ref Vector3d left, ref Vector3d right, out Vector3d result) { result = new Vector3d(left.Y * right.Z - left.Z * right.Y, left.Z * right.X - left.X * right.Z, left.X * right.Y - left.Y * right.X); } public static Vector3d Lerp(Vector3d a, Vector3d b, double blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; a.Z = blend * (b.Z - a.Z) + a.Z; return a; } public static void Lerp(ref Vector3d a, ref Vector3d b, double blend, out Vector3d result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; result.Z = blend * (b.Z - a.Z) + a.Z; } public static Vector3d BaryCentric(Vector3d a, Vector3d b, Vector3d c, double u, double v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector3d a, ref Vector3d b, ref Vector3d c, double u, double v, out Vector3d result) { result = a; Vector3d a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector3d TransformVector(Vector3d vec, Matrix4d mat) { return new Vector3d(Dot(vec, new Vector3d(mat.Column0)), Dot(vec, new Vector3d(mat.Column1)), Dot(vec, new Vector3d(mat.Column2))); } public static void TransformVector(ref Vector3d vec, ref Matrix4d mat, out Vector3d result) { result.X = vec.X * mat.Row0.X + vec.Y * mat.Row1.X + vec.Z * mat.Row2.X; result.Y = vec.X * mat.Row0.Y + vec.Y * mat.Row1.Y + vec.Z * mat.Row2.Y; result.Z = vec.X * mat.Row0.Z + vec.Y * mat.Row1.Z + vec.Z * mat.Row2.Z; } public static Vector3d TransformNormal(Vector3d norm, Matrix4d mat) { mat.Invert(); return TransformNormalInverse(norm, mat); } public static void TransformNormal(ref Vector3d norm, ref Matrix4d mat, out Vector3d result) { Matrix4d invMat = Matrix4d.Invert(mat); TransformNormalInverse(ref norm, ref invMat, out result); } public static Vector3d TransformNormalInverse(Vector3d norm, Matrix4d invMat) { return new Vector3d(Dot(norm, new Vector3d(invMat.Row0)), Dot(norm, new Vector3d(invMat.Row1)), Dot(norm, new Vector3d(invMat.Row2))); } public static void TransformNormalInverse(ref Vector3d norm, ref Matrix4d invMat, out Vector3d result) { result.X = norm.X * invMat.Row0.X + norm.Y * invMat.Row0.Y + norm.Z * invMat.Row0.Z; result.Y = norm.X * invMat.Row1.X + norm.Y * invMat.Row1.Y + norm.Z * invMat.Row1.Z; result.Z = norm.X * invMat.Row2.X + norm.Y * invMat.Row2.Y + norm.Z * invMat.Row2.Z; } public static Vector3d TransformPosition(Vector3d pos, Matrix4d mat) { return new Vector3d(Dot(pos, new Vector3d(mat.Column0)) + mat.Row3.X, Dot(pos, new Vector3d(mat.Column1)) + mat.Row3.Y, Dot(pos, new Vector3d(mat.Column2)) + mat.Row3.Z); } public static void TransformPosition(ref Vector3d pos, ref Matrix4d mat, out Vector3d result) { result.X = pos.X * mat.Row0.X + pos.Y * mat.Row1.X + pos.Z * mat.Row2.X + mat.Row3.X; result.Y = pos.X * mat.Row0.Y + pos.Y * mat.Row1.Y + pos.Z * mat.Row2.Y + mat.Row3.Y; result.Z = pos.X * mat.Row0.Z + pos.Y * mat.Row1.Z + pos.Z * mat.Row2.Z + mat.Row3.Z; } public static Vector3d Transform(Vector3d vec, Matrix4d mat) { Transform(ref vec, ref mat, out var result); return result; } public static void Transform(ref Vector3d vec, ref Matrix4d mat, out Vector3d result) { Vector4d vec2 = new Vector4d(vec.X, vec.Y, vec.Z, 1.0); Vector4d.Transform(ref vec2, ref mat, out vec2); result = vec2.Xyz; } public static Vector3d Transform(Vector3d vec, Quaterniond quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector3d vec, ref Quaterniond quat, out Vector3d result) { Vector3d left = quat.Xyz; Cross(ref left, ref vec, out var result2); Multiply(ref vec, quat.W, out var result3); Add(ref result2, ref result3, out result2); Cross(ref left, ref result2, out result2); Multiply(ref result2, 2.0, out result2); Add(ref vec, ref result2, out result); } public static Vector3d TransformPerspective(Vector3d vec, Matrix4d mat) { TransformPerspective(ref vec, ref mat, out var result); return result; } public static void TransformPerspective(ref Vector3d vec, ref Matrix4d mat, out Vector3d result) { Vector4d vec2 = new Vector4d(vec, 1.0); Vector4d.Transform(ref vec2, ref mat, out vec2); result.X = vec2.X / vec2.W; result.Y = vec2.Y / vec2.W; result.Z = vec2.Z / vec2.W; } public static double CalculateAngle(Vector3d first, Vector3d second) { return Math.Acos(Dot(first, second) / (first.Length * second.Length)); } public static void CalculateAngle(ref Vector3d first, ref Vector3d second, out double result) { Dot(ref first, ref second, out var result2); result = Math.Acos(result2 / (first.Length * second.Length)); } public static Vector3d operator +(Vector3d left, Vector3d right) { left.X += right.X; left.Y += right.Y; left.Z += right.Z; return left; } public static Vector3d operator -(Vector3d left, Vector3d right) { left.X -= right.X; left.Y -= right.Y; left.Z -= right.Z; return left; } public static Vector3d operator -(Vector3d vec) { vec.X = 0.0 - vec.X; vec.Y = 0.0 - vec.Y; vec.Z = 0.0 - vec.Z; return vec; } public static Vector3d operator *(Vector3d vec, double scale) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; return vec; } public static Vector3d operator *(double scale, Vector3d vec) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; return vec; } public static Vector3d operator /(Vector3d vec, double scale) { double num = 1.0 / scale; vec.X *= num; vec.Y *= num; vec.Z *= num; return vec; } public static bool operator ==(Vector3d left, Vector3d right) { return left.Equals(right); } public static bool operator !=(Vector3d left, Vector3d right) { return !left.Equals(right); } public static explicit operator Vector3d(Vector3 v3) { return new Vector3d(v3.X, v3.Y, v3.Z); } public static explicit operator Vector3(Vector3d v3d) { return new Vector3((float)v3d.X, (float)v3d.Y, (float)v3d.Z); } public override string ToString() { return $"({X}, {Y}, {Z})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector3d)) { return false; } return Equals((Vector3d)obj); } public bool Equals(Vector3d other) { if (X == other.X && Y == other.Y) { return Z == other.Z; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector3h.cs ================================================ using System; using System.IO; using System.Runtime.Serialization; using System.Xml.Serialization; namespace OpenGL; [Serializable] public struct Vector3h : ISerializable, IEquatable { public Half X; public Half Y; public Half Z; public static readonly int SizeInBytes = 6; [XmlIgnore] public Vector2h Xy { get { return new Vector2h(X, Y); } set { X = value.X; Y = value.Y; } } public Vector3h(Half value) { X = value; Y = value; Z = value; } public Vector3h(float value) { X = new Half(value); Y = new Half(value); Z = new Half(value); } public Vector3h(Half x, Half y, Half z) { X = x; Y = y; Z = z; } public Vector3h(float x, float y, float z) { X = new Half(x); Y = new Half(y); Z = new Half(z); } public Vector3h(float x, float y, float z, bool throwOnError) { X = new Half(x, throwOnError); Y = new Half(y, throwOnError); Z = new Half(z, throwOnError); } [CLSCompliant(false)] public Vector3h(Vector3 v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); } [CLSCompliant(false)] public Vector3h(Vector3 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); } public Vector3h(ref Vector3 v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); } public Vector3h(ref Vector3 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); } public Vector3h(Vector3d v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); } public Vector3h(Vector3d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); } [CLSCompliant(false)] public Vector3h(ref Vector3d v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); } [CLSCompliant(false)] public Vector3h(ref Vector3d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); } public Vector3 ToVector3() { return new Vector3(X, Y, Z); } public Vector3d ToVector3d() { return new Vector3d(X, Y, Z); } public static explicit operator Vector3h(Vector3 v3f) { return new Vector3h(v3f); } public static explicit operator Vector3h(Vector3d v3d) { return new Vector3h(v3d); } public static explicit operator Vector3(Vector3h h3) { Vector3 result = default(Vector3); result.X = h3.X.ToSingle(); result.Y = h3.Y.ToSingle(); result.Z = h3.Z.ToSingle(); return result; } public static explicit operator Vector3d(Vector3h h3) { Vector3d result = default(Vector3d); result.X = h3.X.ToSingle(); result.Y = h3.Y.ToSingle(); result.Z = h3.Z.ToSingle(); return result; } public Vector3h(SerializationInfo info, StreamingContext context) { X = (Half)info.GetValue("X", typeof(Half)); Y = (Half)info.GetValue("Y", typeof(Half)); Z = (Half)info.GetValue("Z", typeof(Half)); } public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("X", X); info.AddValue("Y", Y); info.AddValue("Z", Z); } public void FromBinaryStream(BinaryReader bin) { X.FromBinaryStream(bin); Y.FromBinaryStream(bin); Z.FromBinaryStream(bin); } public void ToBinaryStream(BinaryWriter bin) { X.ToBinaryStream(bin); Y.ToBinaryStream(bin); Z.ToBinaryStream(bin); } public bool Equals(Vector3h other) { if (X.Equals(other.X) && Y.Equals(other.Y)) { return Z.Equals(other.Z); } return false; } public override string ToString() { return $"({X.ToString()}, {Y.ToString()}, {Z.ToString()})"; } public static byte[] GetBytes(Vector3h h) { byte[] array = new byte[SizeInBytes]; byte[] bytes = Half.GetBytes(h.X); array[0] = bytes[0]; array[1] = bytes[1]; bytes = Half.GetBytes(h.Y); array[2] = bytes[0]; array[3] = bytes[1]; bytes = Half.GetBytes(h.Z); array[4] = bytes[0]; array[5] = bytes[1]; return array; } public static Vector3h FromBytes(byte[] value, int startIndex) { Vector3h result = default(Vector3h); result.X = Half.FromBytes(value, startIndex); result.Y = Half.FromBytes(value, startIndex + 2); result.Z = Half.FromBytes(value, startIndex + 4); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector4.cs ================================================ using System; using System.Runtime.InteropServices; namespace OpenGL; public struct Vector4 : IEquatable { public float X; public float Y; public float Z; public float W; public static Vector4 UnitX = new Vector4(1f, 0f, 0f, 0f); public static Vector4 UnitY = new Vector4(0f, 1f, 0f, 0f); public static Vector4 UnitZ = new Vector4(0f, 0f, 1f, 0f); public static Vector4 UnitW = new Vector4(0f, 0f, 0f, 1f); public static Vector4 Zero = new Vector4(0f, 0f, 0f, 0f); public static readonly Vector4 One = new Vector4(1f, 1f, 1f, 1f); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector4)); public float Length => (float)Math.Sqrt(X * X + Y * Y + Z * Z + W * W); public float LengthFast => 1f / MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z + W * W); public float LengthSquared => X * X + Y * Y + Z * Z + W * W; public Vector2 Xy { get { return new Vector2(X, Y); } set { X = value.X; Y = value.Y; } } public Vector3 Xyz { get { return new Vector3(X, Y, Z); } set { X = value.X; Y = value.Y; Z = value.Z; } } public Vector4(float value) { X = value; Y = value; Z = value; W = value; } public Vector4(float x, float y, float z, float w) { X = x; Y = y; Z = z; W = w; } public Vector4(Vector2 v) { X = v.X; Y = v.Y; Z = 0f; W = 0f; } public Vector4(Vector3 v) { X = v.X; Y = v.Y; Z = v.Z; W = 0f; } public Vector4(Vector3 v, float w) { X = v.X; Y = v.Y; Z = v.Z; W = w; } public Vector4(Vector4 v) { X = v.X; Y = v.Y; Z = v.Z; W = v.W; } [Obsolete("Use static Add() method instead.")] public void Add(Vector4 right) { X += right.X; Y += right.Y; Z += right.Z; W += right.W; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector4 right) { X += right.X; Y += right.Y; Z += right.Z; W += right.W; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector4 right) { X -= right.X; Y -= right.Y; Z -= right.Z; W -= right.W; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector4 right) { X -= right.X; Y -= right.Y; Z -= right.Z; W -= right.W; } [Obsolete("Use static Multiply() method instead.")] public void Mult(float f) { X *= f; Y *= f; Z *= f; W *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(float f) { float num = 1f / f; X *= num; Y *= num; Z *= num; W *= num; } public void Normalize() { float num = 1f / Length; X *= num; Y *= num; Z *= num; W *= num; } public void NormalizeFast() { float num = MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z + W * W); X *= num; Y *= num; Z *= num; W *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy, float sz, float sw) { X *= sx; Y *= sy; Z *= sz; W *= sw; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector4 scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; W *= scale.W; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector4 scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; W *= scale.W; } public static Vector4 Sub(Vector4 a, Vector4 b) { a.X -= b.X; a.Y -= b.Y; a.Z -= b.Z; a.W -= b.W; return a; } public static void Sub(ref Vector4 a, ref Vector4 b, out Vector4 result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; result.Z = a.Z - b.Z; result.W = a.W - b.W; } public static Vector4 Mult(Vector4 a, float f) { a.X *= f; a.Y *= f; a.Z *= f; a.W *= f; return a; } public static void Mult(ref Vector4 a, float f, out Vector4 result) { result.X = a.X * f; result.Y = a.Y * f; result.Z = a.Z * f; result.W = a.W * f; } public static Vector4 Div(Vector4 a, float f) { float num = 1f / f; a.X *= num; a.Y *= num; a.Z *= num; a.W *= num; return a; } public static void Div(ref Vector4 a, float f, out Vector4 result) { float num = 1f / f; result.X = a.X * num; result.Y = a.Y * num; result.Z = a.Z * num; result.W = a.W * num; } public static Vector4 Add(Vector4 a, Vector4 b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector4 a, ref Vector4 b, out Vector4 result) { result = new Vector4(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); } public static Vector4 Subtract(Vector4 a, Vector4 b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector4 a, ref Vector4 b, out Vector4 result) { result = new Vector4(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); } public static Vector4 Multiply(Vector4 vector, float scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector4 vector, float scale, out Vector4 result) { result = new Vector4(vector.X * scale, vector.Y * scale, vector.Z * scale, vector.W * scale); } public static Vector4 Multiply(Vector4 vector, Vector4 scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector4 vector, ref Vector4 scale, out Vector4 result) { result = new Vector4(vector.X * scale.X, vector.Y * scale.Y, vector.Z * scale.Z, vector.W * scale.W); } public static Vector4 Divide(Vector4 vector, float scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector4 vector, float scale, out Vector4 result) { Multiply(ref vector, 1f / scale, out result); } public static Vector4 Divide(Vector4 vector, Vector4 scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector4 vector, ref Vector4 scale, out Vector4 result) { result = new Vector4(vector.X / scale.X, vector.Y / scale.Y, vector.Z / scale.Z, vector.W / scale.W); } public static Vector4 Min(Vector4 a, Vector4 b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); a.Z = ((a.Z < b.Z) ? a.Z : b.Z); a.W = ((a.W < b.W) ? a.W : b.W); return a; } public static void Min(ref Vector4 a, ref Vector4 b, out Vector4 result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); result.Z = ((a.Z < b.Z) ? a.Z : b.Z); result.W = ((a.W < b.W) ? a.W : b.W); } public static Vector4 Max(Vector4 a, Vector4 b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); a.Z = ((a.Z > b.Z) ? a.Z : b.Z); a.W = ((a.W > b.W) ? a.W : b.W); return a; } public static void Max(ref Vector4 a, ref Vector4 b, out Vector4 result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); result.Z = ((a.Z > b.Z) ? a.Z : b.Z); result.W = ((a.W > b.W) ? a.W : b.W); } public static Vector4 Clamp(Vector4 vec, Vector4 min, Vector4 max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); vec.Z = ((vec.X < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); vec.W = ((vec.Y < min.W) ? min.W : ((vec.W > max.W) ? max.W : vec.W)); return vec; } public static void Clamp(ref Vector4 vec, ref Vector4 min, ref Vector4 max, out Vector4 result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); result.Z = ((vec.X < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); result.W = ((vec.Y < min.W) ? min.W : ((vec.W > max.W) ? max.W : vec.W)); } public static Vector4 Normalize(Vector4 vec) { float num = 1f / vec.Length; vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static void Normalize(ref Vector4 vec, out Vector4 result) { float num = 1f / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; result.W = vec.W * num; } public static Vector4 NormalizeFast(Vector4 vec) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z + vec.W * vec.W); vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static void NormalizeFast(ref Vector4 vec, out Vector4 result) { float num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z + vec.W * vec.W); result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; result.W = vec.W * num; } public static float Dot(Vector4 left, Vector4 right) { return left.X * right.X + left.Y * right.Y + left.Z * right.Z + left.W * right.W; } public static void Dot(ref Vector4 left, ref Vector4 right, out float result) { result = left.X * right.X + left.Y * right.Y + left.Z * right.Z + left.W * right.W; } public static Vector4 Lerp(Vector4 a, Vector4 b, float blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; a.Z = blend * (b.Z - a.Z) + a.Z; a.W = blend * (b.W - a.W) + a.W; return a; } public static void Lerp(ref Vector4 a, ref Vector4 b, float blend, out Vector4 result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; result.Z = blend * (b.Z - a.Z) + a.Z; result.W = blend * (b.W - a.W) + a.W; } public static Vector4 BaryCentric(Vector4 a, Vector4 b, Vector4 c, float u, float v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector4 a, ref Vector4 b, ref Vector4 c, float u, float v, out Vector4 result) { result = a; Vector4 a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector4 Transform(Vector4 vec, Matrix4 mat) { Transform(ref vec, ref mat, out var result); return result; } public static void Transform(ref Vector4 vec, ref Matrix4 mat, out Vector4 result) { result = new Vector4(vec.X * mat.Row0.X + vec.Y * mat.Row1.X + vec.Z * mat.Row2.X + vec.W * mat.Row3.X, vec.X * mat.Row0.Y + vec.Y * mat.Row1.Y + vec.Z * mat.Row2.Y + vec.W * mat.Row3.Y, vec.X * mat.Row0.Z + vec.Y * mat.Row1.Z + vec.Z * mat.Row2.Z + vec.W * mat.Row3.Z, vec.X * mat.Row0.W + vec.Y * mat.Row1.W + vec.Z * mat.Row2.W + vec.W * mat.Row3.W); } public static Vector4 Transform(Vector4 vec, Quaternion quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector4 vec, ref Quaternion quat, out Vector4 result) { Quaternion right = new Quaternion(vec.X, vec.Y, vec.Z, vec.W); Quaternion.Invert(ref quat, out var result2); Quaternion.Multiply(ref quat, ref right, out var result3); Quaternion.Multiply(ref result3, ref result2, out right); result = new Vector4(right.X, right.Y, right.Z, right.W); } public static Vector4 operator +(Vector4 left, Vector4 right) { left.X += right.X; left.Y += right.Y; left.Z += right.Z; left.W += right.W; return left; } public static Vector4 operator -(Vector4 left, Vector4 right) { left.X -= right.X; left.Y -= right.Y; left.Z -= right.Z; left.W -= right.W; return left; } public static Vector4 operator -(Vector4 vec) { vec.X = 0f - vec.X; vec.Y = 0f - vec.Y; vec.Z = 0f - vec.Z; vec.W = 0f - vec.W; return vec; } public static Vector4 operator *(Vector4 vec, float scale) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; vec.W *= scale; return vec; } public static Vector4 operator *(float scale, Vector4 vec) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; vec.W *= scale; return vec; } public static Vector4 operator /(Vector4 vec, float scale) { float num = 1f / scale; vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static bool operator ==(Vector4 left, Vector4 right) { return left.Equals(right); } public static bool operator !=(Vector4 left, Vector4 right) { return !left.Equals(right); } [CLSCompliant(false)] public unsafe static explicit operator float*(Vector4 v) { return &v.X; } public unsafe static explicit operator IntPtr(Vector4 v) { return (IntPtr)(&v.X); } public override string ToString() { return $"({X}, {Y}, {Z}, {W})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode() ^ W.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector4)) { return false; } return Equals((Vector4)obj); } public bool Equals(Vector4 other) { if (X == other.X && Y == other.Y && Z == other.Z) { return W == other.W; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector4d.cs ================================================ using System; using System.Runtime.InteropServices; using System.Xml.Serialization; namespace OpenGL; [Serializable] public struct Vector4d : IEquatable { public double X; public double Y; public double Z; public double W; public static Vector4d UnitX = new Vector4d(1.0, 0.0, 0.0, 0.0); public static Vector4d UnitY = new Vector4d(0.0, 1.0, 0.0, 0.0); public static Vector4d UnitZ = new Vector4d(0.0, 0.0, 1.0, 0.0); public static Vector4d UnitW = new Vector4d(0.0, 0.0, 0.0, 1.0); public static Vector4d Zero = new Vector4d(0.0, 0.0, 0.0, 0.0); public static readonly Vector4d One = new Vector4d(1.0, 1.0, 1.0, 1.0); public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector4d)); public double Length => Math.Sqrt(X * X + Y * Y + Z * Z + W * W); public double LengthFast => 1.0 / MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z + W * W); public double LengthSquared => X * X + Y * Y + Z * Z + W * W; [XmlIgnore] public Vector2d Xy { get { return new Vector2d(X, Y); } set { X = value.X; Y = value.Y; } } [XmlIgnore] public Vector3d Xyz { get { return new Vector3d(X, Y, Z); } set { X = value.X; Y = value.Y; Z = value.Z; } } public Vector4d(double value) { X = value; Y = value; Z = value; W = value; } public Vector4d(double x, double y, double z, double w) { X = x; Y = y; Z = z; W = w; } public Vector4d(Vector2d v) { X = v.X; Y = v.Y; Z = 0.0; W = 0.0; } public Vector4d(Vector3d v) { X = v.X; Y = v.Y; Z = v.Z; W = 0.0; } public Vector4d(Vector3d v, double w) { X = v.X; Y = v.Y; Z = v.Z; W = w; } public Vector4d(Vector4d v) { X = v.X; Y = v.Y; Z = v.Z; W = v.W; } [Obsolete("Use static Add() method instead.")] public void Add(Vector4d right) { X += right.X; Y += right.Y; Z += right.Z; W += right.W; } [CLSCompliant(false)] [Obsolete("Use static Add() method instead.")] public void Add(ref Vector4d right) { X += right.X; Y += right.Y; Z += right.Z; W += right.W; } [Obsolete("Use static Subtract() method instead.")] public void Sub(Vector4d right) { X -= right.X; Y -= right.Y; Z -= right.Z; W -= right.W; } [CLSCompliant(false)] [Obsolete("Use static Subtract() method instead.")] public void Sub(ref Vector4d right) { X -= right.X; Y -= right.Y; Z -= right.Z; W -= right.W; } [Obsolete("Use static Multiply() method instead.")] public void Mult(double f) { X *= f; Y *= f; Z *= f; W *= f; } [Obsolete("Use static Divide() method instead.")] public void Div(double f) { double num = 1.0 / f; X *= num; Y *= num; Z *= num; W *= num; } public void Normalize() { double num = 1.0 / Length; X *= num; Y *= num; Z *= num; W *= num; } public void NormalizeFast() { double num = MathHelper.InverseSqrtFast(X * X + Y * Y + Z * Z + W * W); X *= num; Y *= num; Z *= num; W *= num; } [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy, double sz, double sw) { X *= sx; Y *= sy; Z *= sz; W *= sw; } [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector4d scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; W *= scale.W; } [CLSCompliant(false)] [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector4d scale) { X *= scale.X; Y *= scale.Y; Z *= scale.Z; W *= scale.W; } [Obsolete("Use static Subtract() method instead.")] public static Vector4d Sub(Vector4d a, Vector4d b) { a.X -= b.X; a.Y -= b.Y; a.Z -= b.Z; a.W -= b.W; return a; } [Obsolete("Use static Subtract() method instead.")] public static void Sub(ref Vector4d a, ref Vector4d b, out Vector4d result) { result.X = a.X - b.X; result.Y = a.Y - b.Y; result.Z = a.Z - b.Z; result.W = a.W - b.W; } [Obsolete("Use static Multiply() method instead.")] public static Vector4d Mult(Vector4d a, double f) { a.X *= f; a.Y *= f; a.Z *= f; a.W *= f; return a; } [Obsolete("Use static Multiply() method instead.")] public static void Mult(ref Vector4d a, double f, out Vector4d result) { result.X = a.X * f; result.Y = a.Y * f; result.Z = a.Z * f; result.W = a.W * f; } [Obsolete("Use static Divide() method instead.")] public static Vector4d Div(Vector4d a, double f) { double num = 1.0 / f; a.X *= num; a.Y *= num; a.Z *= num; a.W *= num; return a; } [Obsolete("Use static Divide() method instead.")] public static void Div(ref Vector4d a, double f, out Vector4d result) { double num = 1.0 / f; result.X = a.X * num; result.Y = a.Y * num; result.Z = a.Z * num; result.W = a.W * num; } public static Vector4d Add(Vector4d a, Vector4d b) { Add(ref a, ref b, out a); return a; } public static void Add(ref Vector4d a, ref Vector4d b, out Vector4d result) { result = new Vector4d(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); } public static Vector4d Subtract(Vector4d a, Vector4d b) { Subtract(ref a, ref b, out a); return a; } public static void Subtract(ref Vector4d a, ref Vector4d b, out Vector4d result) { result = new Vector4d(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); } public static Vector4d Multiply(Vector4d vector, double scale) { Multiply(ref vector, scale, out vector); return vector; } public static void Multiply(ref Vector4d vector, double scale, out Vector4d result) { result = new Vector4d(vector.X * scale, vector.Y * scale, vector.Z * scale, vector.W * scale); } public static Vector4d Multiply(Vector4d vector, Vector4d scale) { Multiply(ref vector, ref scale, out vector); return vector; } public static void Multiply(ref Vector4d vector, ref Vector4d scale, out Vector4d result) { result = new Vector4d(vector.X * scale.X, vector.Y * scale.Y, vector.Z * scale.Z, vector.W * scale.W); } public static Vector4d Divide(Vector4d vector, double scale) { Divide(ref vector, scale, out vector); return vector; } public static void Divide(ref Vector4d vector, double scale, out Vector4d result) { Multiply(ref vector, 1.0 / scale, out result); } public static Vector4d Divide(Vector4d vector, Vector4d scale) { Divide(ref vector, ref scale, out vector); return vector; } public static void Divide(ref Vector4d vector, ref Vector4d scale, out Vector4d result) { result = new Vector4d(vector.X / scale.X, vector.Y / scale.Y, vector.Z / scale.Z, vector.W / scale.W); } public static Vector4d Min(Vector4d a, Vector4d b) { a.X = ((a.X < b.X) ? a.X : b.X); a.Y = ((a.Y < b.Y) ? a.Y : b.Y); a.Z = ((a.Z < b.Z) ? a.Z : b.Z); a.W = ((a.W < b.W) ? a.W : b.W); return a; } public static void Min(ref Vector4d a, ref Vector4d b, out Vector4d result) { result.X = ((a.X < b.X) ? a.X : b.X); result.Y = ((a.Y < b.Y) ? a.Y : b.Y); result.Z = ((a.Z < b.Z) ? a.Z : b.Z); result.W = ((a.W < b.W) ? a.W : b.W); } public static Vector4d Max(Vector4d a, Vector4d b) { a.X = ((a.X > b.X) ? a.X : b.X); a.Y = ((a.Y > b.Y) ? a.Y : b.Y); a.Z = ((a.Z > b.Z) ? a.Z : b.Z); a.W = ((a.W > b.W) ? a.W : b.W); return a; } public static void Max(ref Vector4d a, ref Vector4d b, out Vector4d result) { result.X = ((a.X > b.X) ? a.X : b.X); result.Y = ((a.Y > b.Y) ? a.Y : b.Y); result.Z = ((a.Z > b.Z) ? a.Z : b.Z); result.W = ((a.W > b.W) ? a.W : b.W); } public static Vector4d Clamp(Vector4d vec, Vector4d min, Vector4d max) { vec.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); vec.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); vec.Z = ((vec.X < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); vec.W = ((vec.Y < min.W) ? min.W : ((vec.W > max.W) ? max.W : vec.W)); return vec; } public static void Clamp(ref Vector4d vec, ref Vector4d min, ref Vector4d max, out Vector4d result) { result.X = ((vec.X < min.X) ? min.X : ((vec.X > max.X) ? max.X : vec.X)); result.Y = ((vec.Y < min.Y) ? min.Y : ((vec.Y > max.Y) ? max.Y : vec.Y)); result.Z = ((vec.X < min.Z) ? min.Z : ((vec.Z > max.Z) ? max.Z : vec.Z)); result.W = ((vec.Y < min.W) ? min.W : ((vec.W > max.W) ? max.W : vec.W)); } public static Vector4d Normalize(Vector4d vec) { double num = 1.0 / vec.Length; vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static void Normalize(ref Vector4d vec, out Vector4d result) { double num = 1.0 / vec.Length; result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; result.W = vec.W * num; } public static Vector4d NormalizeFast(Vector4d vec) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z + vec.W * vec.W); vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static void NormalizeFast(ref Vector4d vec, out Vector4d result) { double num = MathHelper.InverseSqrtFast(vec.X * vec.X + vec.Y * vec.Y + vec.Z * vec.Z + vec.W * vec.W); result.X = vec.X * num; result.Y = vec.Y * num; result.Z = vec.Z * num; result.W = vec.W * num; } public static double Dot(Vector4d left, Vector4d right) { return left.X * right.X + left.Y * right.Y + left.Z * right.Z + left.W * right.W; } public static void Dot(ref Vector4d left, ref Vector4d right, out double result) { result = left.X * right.X + left.Y * right.Y + left.Z * right.Z + left.W * right.W; } public static Vector4d Lerp(Vector4d a, Vector4d b, double blend) { a.X = blend * (b.X - a.X) + a.X; a.Y = blend * (b.Y - a.Y) + a.Y; a.Z = blend * (b.Z - a.Z) + a.Z; a.W = blend * (b.W - a.W) + a.W; return a; } public static void Lerp(ref Vector4d a, ref Vector4d b, double blend, out Vector4d result) { result.X = blend * (b.X - a.X) + a.X; result.Y = blend * (b.Y - a.Y) + a.Y; result.Z = blend * (b.Z - a.Z) + a.Z; result.W = blend * (b.W - a.W) + a.W; } public static Vector4d BaryCentric(Vector4d a, Vector4d b, Vector4d c, double u, double v) { return a + u * (b - a) + v * (c - a); } public static void BaryCentric(ref Vector4d a, ref Vector4d b, ref Vector4d c, double u, double v, out Vector4d result) { result = a; Vector4d a2 = b; Subtract(ref a2, ref a, out a2); Multiply(ref a2, u, out a2); Add(ref result, ref a2, out result); a2 = c; Subtract(ref a2, ref a, out a2); Multiply(ref a2, v, out a2); Add(ref result, ref a2, out result); } public static Vector4d Transform(Vector4d vec, Matrix4d mat) { Transform(ref vec, ref mat, out var result); return result; } public static void Transform(ref Vector4d vec, ref Matrix4d mat, out Vector4d result) { result = new Vector4d(vec.X * mat.Row0.X + vec.Y * mat.Row1.X + vec.Z * mat.Row2.X + vec.W * mat.Row3.X, vec.X * mat.Row0.Y + vec.Y * mat.Row1.Y + vec.Z * mat.Row2.Y + vec.W * mat.Row3.Y, vec.X * mat.Row0.Z + vec.Y * mat.Row1.Z + vec.Z * mat.Row2.Z + vec.W * mat.Row3.Z, vec.X * mat.Row0.W + vec.Y * mat.Row1.W + vec.Z * mat.Row2.W + vec.W * mat.Row3.W); } public static Vector4d Transform(Vector4d vec, Quaterniond quat) { Transform(ref vec, ref quat, out var result); return result; } public static void Transform(ref Vector4d vec, ref Quaterniond quat, out Vector4d result) { Quaterniond right = new Quaterniond(vec.X, vec.Y, vec.Z, vec.W); Quaterniond.Invert(ref quat, out var result2); Quaterniond.Multiply(ref quat, ref right, out var result3); Quaterniond.Multiply(ref result3, ref result2, out right); result = new Vector4d(right.X, right.Y, right.Z, right.W); } public static Vector4d operator +(Vector4d left, Vector4d right) { left.X += right.X; left.Y += right.Y; left.Z += right.Z; left.W += right.W; return left; } public static Vector4d operator -(Vector4d left, Vector4d right) { left.X -= right.X; left.Y -= right.Y; left.Z -= right.Z; left.W -= right.W; return left; } public static Vector4d operator -(Vector4d vec) { vec.X = 0.0 - vec.X; vec.Y = 0.0 - vec.Y; vec.Z = 0.0 - vec.Z; vec.W = 0.0 - vec.W; return vec; } public static Vector4d operator *(Vector4d vec, double scale) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; vec.W *= scale; return vec; } public static Vector4d operator *(double scale, Vector4d vec) { vec.X *= scale; vec.Y *= scale; vec.Z *= scale; vec.W *= scale; return vec; } public static Vector4d operator /(Vector4d vec, double scale) { double num = 1.0 / scale; vec.X *= num; vec.Y *= num; vec.Z *= num; vec.W *= num; return vec; } public static bool operator ==(Vector4d left, Vector4d right) { return left.Equals(right); } public static bool operator !=(Vector4d left, Vector4d right) { return !left.Equals(right); } [CLSCompliant(false)] public unsafe static explicit operator double*(Vector4d v) { return &v.X; } public unsafe static explicit operator IntPtr(Vector4d v) { return (IntPtr)(&v.X); } public static explicit operator Vector4d(Vector4 v4) { return new Vector4d(v4.X, v4.Y, v4.Z, v4.W); } public static explicit operator Vector4(Vector4d v4d) { return new Vector4((float)v4d.X, (float)v4d.Y, (float)v4d.Z, (float)v4d.W); } public override string ToString() { return $"({X}, {Y}, {Z}, {W})"; } public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode() ^ W.GetHashCode(); } public override bool Equals(object obj) { if (!(obj is Vector4d)) { return false; } return Equals((Vector4d)obj); } public bool Equals(Vector4d other) { if (X == other.X && Y == other.Y && Z == other.Z) { return W == other.W; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Vector4h.cs ================================================ using System; using System.IO; using System.Runtime.Serialization; using System.Xml.Serialization; namespace OpenGL; [Serializable] public struct Vector4h : ISerializable, IEquatable { public Half X; public Half Y; public Half Z; public Half W; public static readonly int SizeInBytes = 8; [XmlIgnore] public Vector2h Xy { get { return new Vector2h(X, Y); } set { X = value.X; Y = value.Y; } } [XmlIgnore] public Vector3h Xyz { get { return new Vector3h(X, Y, Z); } set { X = value.X; Y = value.Y; Z = value.Z; } } public Vector4h(Half value) { X = value; Y = value; Z = value; W = value; } public Vector4h(float value) { X = new Half(value); Y = new Half(value); Z = new Half(value); W = new Half(value); } public Vector4h(Half x, Half y, Half z, Half w) { X = x; Y = y; Z = z; W = w; } public Vector4h(float x, float y, float z, float w) { X = new Half(x); Y = new Half(y); Z = new Half(z); W = new Half(w); } public Vector4h(float x, float y, float z, float w, bool throwOnError) { X = new Half(x, throwOnError); Y = new Half(y, throwOnError); Z = new Half(z, throwOnError); W = new Half(w, throwOnError); } [CLSCompliant(false)] public Vector4h(Vector4 v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); W = new Half(v.W); } [CLSCompliant(false)] public Vector4h(Vector4 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); W = new Half(v.W, throwOnError); } public Vector4h(ref Vector4 v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); W = new Half(v.W); } public Vector4h(ref Vector4 v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); W = new Half(v.W, throwOnError); } public Vector4h(Vector4d v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); W = new Half(v.W); } public Vector4h(Vector4d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); W = new Half(v.W, throwOnError); } [CLSCompliant(false)] public Vector4h(ref Vector4d v) { X = new Half(v.X); Y = new Half(v.Y); Z = new Half(v.Z); W = new Half(v.W); } [CLSCompliant(false)] public Vector4h(ref Vector4d v, bool throwOnError) { X = new Half(v.X, throwOnError); Y = new Half(v.Y, throwOnError); Z = new Half(v.Z, throwOnError); W = new Half(v.W, throwOnError); } public Vector4 ToVector4() { return new Vector4(X, Y, Z, W); } public Vector4d ToVector4d() { return new Vector4d(X, Y, Z, W); } public static explicit operator Vector4h(Vector4 v4f) { return new Vector4h(v4f); } public static explicit operator Vector4h(Vector4d v4d) { return new Vector4h(v4d); } public static explicit operator Vector4(Vector4h h4) { Vector4 result = default(Vector4); result.X = h4.X.ToSingle(); result.Y = h4.Y.ToSingle(); result.Z = h4.Z.ToSingle(); result.W = h4.W.ToSingle(); return result; } public static explicit operator Vector4d(Vector4h h4) { Vector4d result = default(Vector4d); result.X = h4.X.ToSingle(); result.Y = h4.Y.ToSingle(); result.Z = h4.Z.ToSingle(); result.W = h4.W.ToSingle(); return result; } public Vector4h(SerializationInfo info, StreamingContext context) { X = (Half)info.GetValue("X", typeof(Half)); Y = (Half)info.GetValue("Y", typeof(Half)); Z = (Half)info.GetValue("Z", typeof(Half)); W = (Half)info.GetValue("W", typeof(Half)); } public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("X", X); info.AddValue("Y", Y); info.AddValue("Z", Z); info.AddValue("W", W); } public void FromBinaryStream(BinaryReader bin) { X.FromBinaryStream(bin); Y.FromBinaryStream(bin); Z.FromBinaryStream(bin); W.FromBinaryStream(bin); } public void ToBinaryStream(BinaryWriter bin) { X.ToBinaryStream(bin); Y.ToBinaryStream(bin); Z.ToBinaryStream(bin); W.ToBinaryStream(bin); } public bool Equals(Vector4h other) { if (X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z)) { return W.Equals(other.W); } return false; } public override string ToString() { return $"({X.ToString()}, {Y.ToString()}, {Z.ToString()}, {W.ToString()})"; } public static byte[] GetBytes(Vector4h h) { byte[] array = new byte[SizeInBytes]; byte[] bytes = Half.GetBytes(h.X); array[0] = bytes[0]; array[1] = bytes[1]; bytes = Half.GetBytes(h.Y); array[2] = bytes[0]; array[3] = bytes[1]; bytes = Half.GetBytes(h.Z); array[4] = bytes[0]; array[5] = bytes[1]; bytes = Half.GetBytes(h.W); array[6] = bytes[0]; array[7] = bytes[1]; return array; } public static Vector4h FromBytes(byte[] value, int startIndex) { Vector4h result = default(Vector4h); result.X = Half.FromBytes(value, startIndex); result.Y = Half.FromBytes(value, startIndex + 2); result.Z = Half.FromBytes(value, startIndex + 4); result.W = Half.FromBytes(value, startIndex + 6); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version11.cs ================================================ namespace OpenGL; public enum Version11 { False = 0, NoError = 0, None = 0, Zero = 0, Points = 0, DepthBufferBit = 256, StencilBufferBit = 1024, ColorBufferBit = 16384, Lines = 1, LineLoop = 2, LineStrip = 3, Triangles = 4, TriangleStrip = 5, TriangleFan = 6, Never = 512, Less = 513, Equal = 514, Lequal = 515, Greater = 516, Notequal = 517, Gequal = 518, Always = 519, SrcColor = 768, OneMinusSrcColor = 769, SrcAlpha = 770, OneMinusSrcAlpha = 771, DstAlpha = 772, OneMinusDstAlpha = 773, DstColor = 774, OneMinusDstColor = 775, SrcAlphaSaturate = 776, FrontLeft = 1024, FrontRight = 1025, BackLeft = 1026, BackRight = 1027, Front = 1028, Back = 1029, Left = 1030, Right = 1031, FrontAndBack = 1032, InvalidEnum = 1280, InvalidValue = 1281, InvalidOperation = 1282, OutOfMemory = 1285, Cw = 2304, Ccw = 2305, PointSize = 2833, PointSizeRange = 2834, PointSizeGranularity = 2835, LineSmooth = 2848, LineWidth = 2849, LineWidthRange = 2850, LineWidthGranularity = 2851, PolygonSmooth = 2881, CullFace = 2884, CullFaceMode = 2885, FrontFace = 2886, DepthRange = 2928, DepthTest = 2929, DepthWritemask = 2930, DepthClearValue = 2931, DepthFunc = 2932, StencilTest = 2960, StencilClearValue = 2961, StencilFunc = 2962, StencilValueMask = 2963, StencilFail = 2964, StencilPassDepthFail = 2965, StencilPassDepthPass = 2966, StencilRef = 2967, StencilWritemask = 2968, Viewport = 2978, Dither = 3024, BlendDst = 3040, BlendSrc = 3041, Blend = 3042, LogicOpMode = 3056, ColorLogicOp = 3058, DrawBuffer = 3073, ReadBuffer = 3074, ScissorBox = 3088, ScissorTest = 3089, ColorClearValue = 3106, ColorWritemask = 3107, Doublebuffer = 3122, Stereo = 3123, LineSmoothHint = 3154, PolygonSmoothHint = 3155, UnpackSwapBytes = 3312, UnpackLsbFirst = 3313, UnpackRowLength = 3314, UnpackSkipRows = 3315, UnpackSkipPixels = 3316, UnpackAlignment = 3317, PackSwapBytes = 3328, PackLsbFirst = 3329, PackRowLength = 3330, PackSkipRows = 3331, PackSkipPixels = 3332, PackAlignment = 3333, MaxTextureSize = 3379, MaxViewportDims = 3386, SubpixelBits = 3408, Texture1D = 3552, Texture2D = 3553, TextureWidth = 4096, TextureHeight = 4097, TextureInternalFormat = 4099, TextureBorderColor = 4100, DontCare = 4352, Fastest = 4353, Nicest = 4354, Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130, Clear = 5376, And = 5377, AndReverse = 5378, Copy = 5379, AndInverted = 5380, Noop = 5381, Xor = 5382, Or = 5383, Nor = 5384, Equiv = 5385, Invert = 5386, OrReverse = 5387, CopyInverted = 5388, OrInverted = 5389, Nand = 5390, Set = 5391, Texture = 5890, Color = 6144, Depth = 6145, Stencil = 6146, StencilIndex = 6401, DepthComponent = 6402, Red = 6403, Green = 6404, Blue = 6405, Alpha = 6406, Rgb = 6407, Rgba = 6408, Point = 6912, Line = 6913, Fill = 6914, Keep = 7680, Replace = 7681, Incr = 7682, Decr = 7683, Vendor = 7936, Renderer = 7937, Version = 7938, Extensions = 7939, Nearest = 9728, Linear = 9729, NearestMipmapNearest = 9984, LinearMipmapNearest = 9985, NearestMipmapLinear = 9986, LinearMipmapLinear = 9987, TextureMagFilter = 10240, TextureMinFilter = 10241, TextureWrapS = 10242, TextureWrapT = 10243, Repeat = 10497, PolygonOffsetUnits = 10752, PolygonOffsetPoint = 10753, PolygonOffsetLine = 10754, R3G3B2 = 10768, PolygonOffsetFill = 32823, PolygonOffsetFactor = 32824, Rgb4 = 32847, Rgb5 = 32848, Rgb8 = 32849, Rgb10 = 32850, Rgb12 = 32851, Rgb16 = 32852, Rgba2 = 32853, Rgba4 = 32854, Rgb5A1 = 32855, Rgba8 = 32856, Rgb10A2 = 32857, Rgba12 = 32858, Rgba16 = 32859, TextureRedSize = 32860, TextureGreenSize = 32861, TextureBlueSize = 32862, TextureAlphaSize = 32863, ProxyTexture1D = 32867, ProxyTexture2D = 32868, TextureBinding1D = 32872, TextureBinding2D = 32873, One = 1, True = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version11Deprecated.cs ================================================ namespace OpenGL; public enum Version11Deprecated { ClientPixelStoreBit = 1, CurrentBit = 1, ClientVertexArrayBit = 2, PointBit = 2, LineBit = 4, PolygonBit = 8, PolygonStippleBit = 16, PixelModeBit = 32, LightingBit = 64, FogBit = 128, AccumBufferBit = 512, ViewportBit = 2048, TransformBit = 4096, EnableBit = 8192, HintBit = 32768, EvalBit = 65536, ListBit = 131072, TextureBit = 262144, Quads = 7, QuadStrip = 8, ScissorBit = 524288, Polygon = 9, Accum = 256, Load = 257, Return = 258, Mult = 259, Add = 260, Aux0 = 1033, Aux1 = 1034, Aux2 = 1035, Aux3 = 1036, StackOverflow = 1283, StackUnderflow = 1284, Gl2D = 1536, Gl3D = 1537, Gl3DColor = 1538, Gl3DColorTexture = 1539, Gl4DColorTexture = 1540, PassThroughToken = 1792, PointToken = 1793, LineToken = 1794, PolygonToken = 1795, BitmapToken = 1796, DrawPixelToken = 1797, CopyPixelToken = 1798, LineResetToken = 1799, Exp = 2048, Exp2 = 2049, Coeff = 2560, Order = 2561, Domain = 2562, CurrentColor = 2816, CurrentIndex = 2817, CurrentNormal = 2818, CurrentTextureCoords = 2819, CurrentRasterColor = 2820, CurrentRasterIndex = 2821, CurrentRasterTextureCoords = 2822, CurrentRasterPosition = 2823, CurrentRasterPositionValid = 2824, CurrentRasterDistance = 2825, PointSmooth = 2832, LineStipple = 2852, LineStipplePattern = 2853, LineStippleRepeat = 2854, ListMode = 2864, MaxListNesting = 2865, ListBase = 2866, ListIndex = 2867, PolygonMode = 2880, PolygonStipple = 2882, EdgeFlag = 2883, Lighting = 2896, LightModelLocalViewer = 2897, LightModelTwoSide = 2898, LightModelAmbient = 2899, ShadeModel = 2900, ColorMaterialFace = 2901, ColorMaterialParameter = 2902, ColorMaterial = 2903, Fog = 2912, FogIndex = 2913, FogDensity = 2914, FogStart = 2915, FogEnd = 2916, FogMode = 2917, FogColor = 2918, AccumClearValue = 2944, MatrixMode = 2976, Normalize = 2977, ModelviewStackDepth = 2979, ProjectionStackDepth = 2980, TextureStackDepth = 2981, ModelviewMatrix = 2982, ProjectionMatrix = 2983, TextureMatrix = 2984, AttribStackDepth = 2992, ClientAttribStackDepth = 2993, AlphaTest = 3008, AlphaTestFunc = 3009, AlphaTestRef = 3010, IndexLogicOp = 3057, LogicOp = 3057, AuxBuffers = 3072, IndexClearValue = 3104, IndexWritemask = 3105, IndexMode = 3120, RgbaMode = 3121, RenderMode = 3136, PerspectiveCorrectionHint = 3152, PointSmoothHint = 3153, FogHint = 3156, TextureGenS = 3168, TextureGenT = 3169, TextureGenR = 3170, TextureGenQ = 3171, PixelMapIToI = 3184, PixelMapSToS = 3185, PixelMapIToR = 3186, PixelMapIToG = 3187, PixelMapIToB = 3188, PixelMapIToA = 3189, PixelMapRToR = 3190, PixelMapGToG = 3191, PixelMapBToB = 3192, PixelMapAToA = 3193, PixelMapIToISize = 3248, PixelMapSToSSize = 3249, PixelMapIToRSize = 3250, PixelMapIToGSize = 3251, PixelMapIToBSize = 3252, PixelMapIToASize = 3253, PixelMapRToRSize = 3254, PixelMapGToGSize = 3255, PixelMapBToBSize = 3256, PixelMapAToASize = 3257, MapColor = 3344, MapStencil = 3345, IndexShift = 3346, IndexOffset = 3347, RedScale = 3348, RedBias = 3349, ZoomX = 3350, ZoomY = 3351, GreenScale = 3352, GreenBias = 3353, BlueScale = 3354, BlueBias = 3355, AlphaScale = 3356, AlphaBias = 3357, DepthScale = 3358, DepthBias = 3359, MaxEvalOrder = 3376, MaxLights = 3377, MaxClipPlanes = 3378, MaxPixelMapTable = 3380, MaxAttribStackDepth = 3381, MaxModelviewStackDepth = 3382, MaxNameStackDepth = 3383, MaxProjectionStackDepth = 3384, MaxTextureStackDepth = 3385, MaxClientAttribStackDepth = 3387, IndexBits = 3409, RedBits = 3410, GreenBits = 3411, BlueBits = 3412, AlphaBits = 3413, DepthBits = 3414, StencilBits = 3415, AccumRedBits = 3416, AccumGreenBits = 3417, AccumBlueBits = 3418, AccumAlphaBits = 3419, NameStackDepth = 3440, AutoNormal = 3456, Map1Color4 = 3472, Map1Index = 3473, Map1Normal = 3474, Map1TextureCoord1 = 3475, Map1TextureCoord2 = 3476, Map1TextureCoord3 = 3477, Map1TextureCoord4 = 3478, Map1Vertex3 = 3479, Map1Vertex4 = 3480, Map2Color4 = 3504, Map2Index = 3505, Map2Normal = 3506, Map2TextureCoord1 = 3507, Map2TextureCoord2 = 3508, Map2TextureCoord3 = 3509, Map2TextureCoord4 = 3510, Map2Vertex3 = 3511, Map2Vertex4 = 3512, Map1GridDomain = 3536, Map1GridSegments = 3537, Map2GridDomain = 3538, Map2GridSegments = 3539, FeedbackBufferPointer = 3568, FeedbackBufferSize = 3569, FeedbackBufferType = 3570, SelectionBufferPointer = 3571, SelectionBufferSize = 3572, TextureComponents = 4099, TextureBorder = 4101, Ambient = 4608, Diffuse = 4609, Specular = 4610, Position = 4611, SpotDirection = 4612, SpotExponent = 4613, SpotCutoff = 4614, ConstantAttenuation = 4615, LinearAttenuation = 4616, QuadraticAttenuation = 4617, Compile = 4864, CompileAndExecute = 4865, Gl2Bytes = 5127, Gl3Bytes = 5128, Gl4Bytes = 5129, Emission = 5632, Shininess = 5633, AmbientAndDiffuse = 5634, ColorIndexes = 5635, Modelview = 5888, Projection = 5889, ColorIndex = 6400, Luminance = 6409, LuminanceAlpha = 6410, Bitmap = 6656, Render = 7168, Feedback = 7169, Select = 7170, Flat = 7424, Smooth = 7425, S = 8192, T = 8193, R = 8194, Q = 8195, Modulate = 8448, Decal = 8449, TextureEnvMode = 8704, TextureEnvColor = 8705, TextureEnv = 8960, EyeLinear = 9216, ObjectLinear = 9217, SphereMap = 9218, TextureGenMode = 9472, ObjectPlane = 9473, EyePlane = 9474, Clamp = 10496, V2f = 10784, V3f = 10785, C4ubV2f = 10786, C4ubV3f = 10787, C3fV3f = 10788, N3fV3f = 10789, C4fN3fV3f = 10790, T2fV3f = 10791, T4fV4f = 10792, T2fC4ubV3f = 10793, T2fC3fV3f = 10794, T2fN3fV3f = 10795, T2fC4fN3fV3f = 10796, T4fC4fN3fV4f = 10797, ClipPlane0 = 12288, ClipPlane1 = 12289, ClipPlane2 = 12290, ClipPlane3 = 12291, ClipPlane4 = 12292, ClipPlane5 = 12293, Light0 = 16384, Light1 = 16385, Light2 = 16386, Light3 = 16387, Light4 = 16388, Light5 = 16389, Light6 = 16390, Light7 = 16391, Alpha4 = 32827, Alpha8 = 32828, Alpha12 = 32829, Alpha16 = 32830, Luminance4 = 32831, Luminance8 = 32832, Luminance12 = 32833, Luminance16 = 32834, Luminance4Alpha4 = 32835, Luminance6Alpha2 = 32836, Luminance8Alpha8 = 32837, Luminance12Alpha4 = 32838, Luminance12Alpha12 = 32839, Luminance16Alpha16 = 32840, Intensity = 32841, Intensity4 = 32842, Intensity8 = 32843, Intensity12 = 32844, Intensity16 = 32845, TextureLuminanceSize = 32864, TextureIntensitySize = 32865, TexturePriority = 32870, TextureResident = 32871, VertexArray = 32884, NormalArray = 32885, ColorArray = 32886, IndexArray = 32887, TextureCoordArray = 32888, EdgeFlagArray = 32889, VertexArraySize = 32890, VertexArrayType = 32891, VertexArrayStride = 32892, NormalArrayType = 32894, NormalArrayStride = 32895, ColorArraySize = 32897, ColorArrayType = 32898, ColorArrayStride = 32899, IndexArrayType = 32901, IndexArrayStride = 32902, TextureCoordArraySize = 32904, TextureCoordArrayType = 32905, TextureCoordArrayStride = 32906, EdgeFlagArrayStride = 32908, VertexArrayPointer = 32910, NormalArrayPointer = 32911, ColorArrayPointer = 32912, IndexArrayPointer = 32913, TextureCoordArrayPointer = 32914, EdgeFlagArrayPointer = 32915, AllAttribBits = -1, ClientAllAttribBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version12.cs ================================================ namespace OpenGL; public enum Version12 { SmoothPointSizeRange = 2834, SmoothPointSizeGranularity = 2835, SmoothLineWidthRange = 2850, SmoothLineWidthGranularity = 2851, ConstantColor = 32769, OneMinusConstantColor = 32770, ConstantAlpha = 32771, OneMinusConstantAlpha = 32772, BlendColor = 32773, Convolution1D = 32784, Convolution2D = 32785, Separable2D = 32786, ConvolutionBorderMode = 32787, ConvolutionFilterScale = 32788, ConvolutionFilterBias = 32789, Reduce = 32790, ConvolutionFormat = 32791, ConvolutionWidth = 32792, ConvolutionHeight = 32793, MaxConvolutionWidth = 32794, MaxConvolutionHeight = 32795, PostConvolutionRedScale = 32796, PostConvolutionGreenScale = 32797, PostConvolutionBlueScale = 32798, PostConvolutionAlphaScale = 32799, PostConvolutionRedBias = 32800, PostConvolutionGreenBias = 32801, PostConvolutionBlueBias = 32802, PostConvolutionAlphaBias = 32803, Histogram = 32804, ProxyHistogram = 32805, HistogramWidth = 32806, HistogramFormat = 32807, HistogramRedSize = 32808, HistogramGreenSize = 32809, HistogramBlueSize = 32810, HistogramAlphaSize = 32811, HistogramSink = 32813, Minmax = 32814, MinmaxFormat = 32815, MinmaxSink = 32816, TableTooLarge = 32817, UnsignedByte332 = 32818, UnsignedShort4444 = 32819, UnsignedShort5551 = 32820, UnsignedInt8888 = 32821, UnsignedInt1010102 = 32822, RescaleNormal = 32826, TextureBinding3D = 32874, PackSkipImages = 32875, PackImageHeight = 32876, UnpackSkipImages = 32877, UnpackImageHeight = 32878, Texture3D = 32879, ProxyTexture3D = 32880, TextureDepth = 32881, TextureWrapR = 32882, Max3DTextureSize = 32883, ColorMatrix = 32945, ColorMatrixStackDepth = 32946, MaxColorMatrixStackDepth = 32947, PostColorMatrixRedScale = 32948, PostColorMatrixGreenScale = 32949, PostColorMatrixBlueScale = 32950, PostColorMatrixAlphaScale = 32951, PostColorMatrixRedBias = 32952, PostColorMatrixGreenBias = 32953, PostColorMatrixBlueBias = 32954, PostColorMatrixAlphaBias = 32955, ColorTable = 32976, PostConvolutionColorTable = 32977, PostColorMatrixColorTable = 32978, ProxyColorTable = 32979, ProxyPostConvolutionColorTable = 32980, ProxyPostColorMatrixColorTable = 32981, ColorTableScale = 32982, ColorTableBias = 32983, ColorTableFormat = 32984, ColorTableWidth = 32985, ColorTableRedSize = 32986, ColorTableGreenSize = 32987, ColorTableBlueSize = 32988, ColorTableAlphaSize = 32989, ColorTableLuminanceSize = 32990, ColorTableIntensitySize = 32991, Bgr = 32992, Bgra = 32993, MaxElementsVertices = 33000, MaxElementsIndices = 33001, ClampToEdge = 33071, TextureMinLod = 33082, TextureMaxLod = 33083, TextureBaseLevel = 33084, TextureMaxLevel = 33085, ConstantBorder = 33105, ReplicateBorder = 33107, ConvolutionBorderColor = 33108, LightModelColorControl = 33272, SingleColor = 33273, SeparateSpecularColor = 33274, UnsignedByte233Rev = 33634, UnsignedShort565 = 33635, UnsignedShort565Rev = 33636, UnsignedShort4444Rev = 33637, UnsignedShort1555Rev = 33638, UnsignedInt8888Rev = 33639, UnsignedInt2101010Rev = 33640, AliasedPointSizeRange = 33901, AliasedLineWidthRange = 33902 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version12Deprecated.cs ================================================ namespace OpenGL; public enum Version12Deprecated { RescaleNormal = 32826, LightModelColorControl = 33272, SingleColor = 33273, SeparateSpecularColor = 33274, AliasedPointSizeRange = 33901 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version13.cs ================================================ namespace OpenGL; public enum Version13 { MultisampleBit = 536870912, Multisample = 32925, SampleAlphaToCoverage = 32926, SampleAlphaToOne = 32927, SampleCoverage = 32928, SampleBuffers = 32936, Samples = 32937, SampleCoverageValue = 32938, SampleCoverageInvert = 32939, ClampToBorder = 33069, Texture0 = 33984, Texture1 = 33985, Texture2 = 33986, Texture3 = 33987, Texture4 = 33988, Texture5 = 33989, Texture6 = 33990, Texture7 = 33991, Texture8 = 33992, Texture9 = 33993, Texture10 = 33994, Texture11 = 33995, Texture12 = 33996, Texture13 = 33997, Texture14 = 33998, Texture15 = 33999, Texture16 = 34000, Texture17 = 34001, Texture18 = 34002, Texture19 = 34003, Texture20 = 34004, Texture21 = 34005, Texture22 = 34006, Texture23 = 34007, Texture24 = 34008, Texture25 = 34009, Texture26 = 34010, Texture27 = 34011, Texture28 = 34012, Texture29 = 34013, Texture30 = 34014, Texture31 = 34015, ActiveTexture = 34016, ClientActiveTexture = 34017, MaxTextureUnits = 34018, TransposeModelviewMatrix = 34019, TransposeProjectionMatrix = 34020, TransposeTextureMatrix = 34021, TransposeColorMatrix = 34022, Subtract = 34023, CompressedAlpha = 34025, CompressedLuminance = 34026, CompressedLuminanceAlpha = 34027, CompressedIntensity = 34028, CompressedRgb = 34029, CompressedRgba = 34030, TextureCompressionHint = 34031, NormalMap = 34065, ReflectionMap = 34066, TextureCubeMap = 34067, TextureBindingCubeMap = 34068, TextureCubeMapPositiveX = 34069, TextureCubeMapNegativeX = 34070, TextureCubeMapPositiveY = 34071, TextureCubeMapNegativeY = 34072, TextureCubeMapPositiveZ = 34073, TextureCubeMapNegativeZ = 34074, ProxyTextureCubeMap = 34075, MaxCubeMapTextureSize = 34076, Combine = 34160, CombineRgb = 34161, CombineAlpha = 34162, RgbScale = 34163, AddSigned = 34164, Interpolate = 34165, Constant = 34166, PrimaryColor = 34167, Previous = 34168, Source0Rgb = 34176, Source1Rgb = 34177, Source2Rgb = 34178, Source0Alpha = 34184, Source1Alpha = 34185, Source2Alpha = 34186, Operand0Rgb = 34192, Operand1Rgb = 34193, Operand2Rgb = 34194, Operand0Alpha = 34200, Operand1Alpha = 34201, Operand2Alpha = 34202, TextureCompressedImageSize = 34464, TextureCompressed = 34465, NumCompressedTextureFormats = 34466, CompressedTextureFormats = 34467, Dot3Rgb = 34478, Dot3Rgba = 34479 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version13Deprecated.cs ================================================ namespace OpenGL; public enum Version13Deprecated { MultisampleBit = 536870912, ClientActiveTexture = 34017, MaxTextureUnits = 34018, TransposeModelviewMatrix = 34019, TransposeProjectionMatrix = 34020, TransposeTextureMatrix = 34021, TransposeColorMatrix = 34022, Subtract = 34023, CompressedAlpha = 34025, CompressedLuminance = 34026, CompressedLuminanceAlpha = 34027, CompressedIntensity = 34028, NormalMap = 34065, ReflectionMap = 34066, Combine = 34160, CombineRgb = 34161, CombineAlpha = 34162, RgbScale = 34163, AddSigned = 34164, Interpolate = 34165, Constant = 34166, PrimaryColor = 34167, Previous = 34168, Source0Rgb = 34176, Source1Rgb = 34177, Source2Rgb = 34178, Source0Alpha = 34184, Source1Alpha = 34185, Source2Alpha = 34186, Operand0Rgb = 34192, Operand1Rgb = 34193, Operand2Rgb = 34194, Operand0Alpha = 34200, Operand1Alpha = 34201, Operand2Alpha = 34202, Dot3Rgb = 34478, Dot3Rgba = 34479 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version14.cs ================================================ namespace OpenGL; public enum Version14 { BlendDstRgb = 32968, BlendSrcRgb = 32969, BlendDstAlpha = 32970, BlendSrcAlpha = 32971, PointSizeMin = 33062, PointSizeMax = 33063, PointFadeThresholdSize = 33064, PointDistanceAttenuation = 33065, GenerateMipmap = 33169, GenerateMipmapHint = 33170, DepthComponent16 = 33189, DepthComponent24 = 33190, DepthComponent32 = 33191, MirroredRepeat = 33648, FogCoordinateSource = 33872, FogCoordinate = 33873, FragmentDepth = 33874, CurrentFogCoordinate = 33875, FogCoordinateArrayType = 33876, FogCoordinateArrayStride = 33877, FogCoordinateArrayPointer = 33878, FogCoordinateArray = 33879, ColorSum = 33880, CurrentSecondaryColor = 33881, SecondaryColorArraySize = 33882, SecondaryColorArrayType = 33883, SecondaryColorArrayStride = 33884, SecondaryColorArrayPointer = 33885, SecondaryColorArray = 33886, MaxTextureLodBias = 34045, TextureFilterControl = 34048, TextureLodBias = 34049, IncrWrap = 34055, DecrWrap = 34056, TextureDepthSize = 34890, DepthTextureMode = 34891, TextureCompareMode = 34892, TextureCompareFunc = 34893, CompareRToTexture = 34894 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version14Deprecated.cs ================================================ namespace OpenGL; public enum Version14Deprecated { PointSizeMin = 33062, PointSizeMax = 33063, PointDistanceAttenuation = 33065, GenerateMipmap = 33169, GenerateMipmapHint = 33170, FogCoordinateSource = 33872, FogCoordinate = 33873, FragmentDepth = 33874, CurrentFogCoordinate = 33875, FogCoordinateArrayType = 33876, FogCoordinateArrayStride = 33877, FogCoordinateArrayPointer = 33878, FogCoordinateArray = 33879, ColorSum = 33880, CurrentSecondaryColor = 33881, SecondaryColorArraySize = 33882, SecondaryColorArrayType = 33883, SecondaryColorArrayStride = 33884, SecondaryColorArrayPointer = 33885, SecondaryColorArray = 33886, TextureFilterControl = 34048, DepthTextureMode = 34891, CompareRToTexture = 34894 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version15.cs ================================================ namespace OpenGL; public enum Version15 { FogCoordSrc = 33872, FogCoord = 33873, CurrentFogCoord = 33875, FogCoordArrayType = 33876, FogCoordArrayStride = 33877, FogCoordArrayPointer = 33878, FogCoordArray = 33879, Src0Rgb = 34176, Src1Rgb = 34177, Src2Rgb = 34178, Src0Alpha = 34184, Src1Alpha = 34185, Src2Alpha = 34186, BufferSize = 34660, BufferUsage = 34661, QueryCounterBits = 34916, CurrentQuery = 34917, QueryResult = 34918, QueryResultAvailable = 34919, ArrayBuffer = 34962, ElementArrayBuffer = 34963, ArrayBufferBinding = 34964, ElementArrayBufferBinding = 34965, VertexArrayBufferBinding = 34966, NormalArrayBufferBinding = 34967, ColorArrayBufferBinding = 34968, IndexArrayBufferBinding = 34969, TextureCoordArrayBufferBinding = 34970, EdgeFlagArrayBufferBinding = 34971, SecondaryColorArrayBufferBinding = 34972, FogCoordArrayBufferBinding = 34973, FogCoordinateArrayBufferBinding = 34973, WeightArrayBufferBinding = 34974, VertexAttribArrayBufferBinding = 34975, ReadOnly = 35000, WriteOnly = 35001, ReadWrite = 35002, BufferAccess = 35003, BufferMapped = 35004, BufferMapPointer = 35005, StreamDraw = 35040, StreamRead = 35041, StreamCopy = 35042, StaticDraw = 35044, StaticRead = 35045, StaticCopy = 35046, DynamicDraw = 35048, DynamicRead = 35049, DynamicCopy = 35050, SamplesPassed = 35092 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version15Deprecated.cs ================================================ namespace OpenGL; public enum Version15Deprecated { FogCoordSrc = 33872, FogCoord = 33873, CurrentFogCoord = 33875, FogCoordArrayType = 33876, FogCoordArrayStride = 33877, FogCoordArrayPointer = 33878, FogCoordArray = 33879, Src0Rgb = 34176, Src1Rgb = 34177, Src2Rgb = 34178, Src0Alpha = 34184, Src1Alpha = 34185, Src2Alpha = 34186, VertexArrayBufferBinding = 34966, NormalArrayBufferBinding = 34967, ColorArrayBufferBinding = 34968, IndexArrayBufferBinding = 34969, TextureCoordArrayBufferBinding = 34970, EdgeFlagArrayBufferBinding = 34971, SecondaryColorArrayBufferBinding = 34972, FogCoordArrayBufferBinding = 34973, FogCoordinateArrayBufferBinding = 34973, WeightArrayBufferBinding = 34974 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version20.cs ================================================ namespace OpenGL; public enum Version20 { BlendEquationRgb = 32777, VertexAttribArrayEnabled = 34338, VertexAttribArraySize = 34339, VertexAttribArrayStride = 34340, VertexAttribArrayType = 34341, CurrentVertexAttrib = 34342, VertexProgramPointSize = 34370, VertexProgramTwoSide = 34371, VertexAttribArrayPointer = 34373, StencilBackFunc = 34816, StencilBackFail = 34817, StencilBackFailAti = 34817, StencilBackPassDepthFail = 34818, StencilBackPassDepthPass = 34819, MaxDrawBuffers = 34852, DrawBuffer0 = 34853, DrawBuffer1 = 34854, DrawBuffer2 = 34855, DrawBuffer3 = 34856, DrawBuffer4 = 34857, DrawBuffer5 = 34858, DrawBuffer6 = 34859, DrawBuffer7 = 34860, DrawBuffer8 = 34861, DrawBuffer9 = 34862, DrawBuffer10 = 34863, DrawBuffer11 = 34864, DrawBuffer12 = 34865, DrawBuffer13 = 34866, DrawBuffer14 = 34867, DrawBuffer15 = 34868, BlendEquationAlpha = 34877, PointSprite = 34913, CoordReplace = 34914, MaxVertexAttribs = 34921, VertexAttribArrayNormalized = 34922, MaxTextureCoords = 34929, MaxTextureImageUnits = 34930, FragmentShader = 35632, VertexShader = 35633, MaxFragmentUniformComponents = 35657, MaxVertexUniformComponents = 35658, MaxVaryingFloats = 35659, MaxVertexTextureImageUnits = 35660, MaxCombinedTextureImageUnits = 35661, ShaderType = 35663, FloatVec2 = 35664, FloatVec3 = 35665, FloatVec4 = 35666, IntVec2 = 35667, IntVec3 = 35668, IntVec4 = 35669, Bool = 35670, BoolVec2 = 35671, BoolVec3 = 35672, BoolVec4 = 35673, FloatMat2 = 35674, FloatMat3 = 35675, FloatMat4 = 35676, Sampler1D = 35677, Sampler2D = 35678, Sampler3D = 35679, SamplerCube = 35680, Sampler1DShadow = 35681, Sampler2DShadow = 35682, DeleteStatus = 35712, CompileStatus = 35713, LinkStatus = 35714, ValidateStatus = 35715, InfoLogLength = 35716, AttachedShaders = 35717, ActiveUniforms = 35718, ActiveUniformMaxLength = 35719, ShaderSourceLength = 35720, ActiveAttributes = 35721, ActiveAttributeMaxLength = 35722, FragmentShaderDerivativeHint = 35723, ShadingLanguageVersion = 35724, CurrentProgram = 35725, PointSpriteCoordOrigin = 36000, LowerLeft = 36001, UpperLeft = 36002, StencilBackRef = 36003, StencilBackValueMask = 36004, StencilBackWritemask = 36005 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version20Deprecated.cs ================================================ namespace OpenGL; public enum Version20Deprecated { VertexProgramTwoSide = 34371, PointSprite = 34913, CoordReplace = 34914, MaxTextureCoords = 34929 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version21.cs ================================================ namespace OpenGL; public enum Version21 { CurrentRasterSecondaryColor = 33887, PixelPackBuffer = 35051, PixelUnpackBuffer = 35052, PixelPackBufferBinding = 35053, PixelUnpackBufferBinding = 35055, FloatMat2x3 = 35685, FloatMat2x4 = 35686, FloatMat3x2 = 35687, FloatMat3x4 = 35688, FloatMat4x2 = 35689, FloatMat4x3 = 35690, Srgb = 35904, Srgb8 = 35905, SrgbAlpha = 35906, Srgb8Alpha8 = 35907, SluminanceAlpha = 35908, Sluminance8Alpha8 = 35909, Sluminance = 35910, Sluminance8 = 35911, CompressedSrgb = 35912, CompressedSrgbAlpha = 35913, CompressedSluminance = 35914, CompressedSluminanceAlpha = 35915 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version21Deprecated.cs ================================================ namespace OpenGL; public enum Version21Deprecated { CurrentRasterSecondaryColor = 33887, SluminanceAlpha = 35908, Sluminance8Alpha8 = 35909, Sluminance = 35910, Sluminance8 = 35911, CompressedSluminance = 35914, CompressedSluminanceAlpha = 35915 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version30.cs ================================================ namespace OpenGL; public enum Version30 { ContextFlagForwardCompatibleBit = 1, MapReadBit = 1, MapWriteBit = 2, MapInvalidateRangeBit = 4, MapInvalidateBufferBit = 8, MapFlushExplicitBit = 16, MapUnsynchronizedBit = 32, InvalidFramebufferOperation = 1286, MaxClipDistances = 3378, HalfFloat = 5131, ClipDistance0 = 12288, ClipDistance1 = 12289, ClipDistance2 = 12290, ClipDistance3 = 12291, ClipDistance4 = 12292, ClipDistance5 = 12293, ClipDistance6 = 12294, ClipDistance7 = 12295, FramebufferAttachmentColorEncoding = 33296, FramebufferAttachmentComponentType = 33297, FramebufferAttachmentRedSize = 33298, FramebufferAttachmentGreenSize = 33299, FramebufferAttachmentBlueSize = 33300, FramebufferAttachmentAlphaSize = 33301, FramebufferAttachmentDepthSize = 33302, FramebufferAttachmentStencilSize = 33303, FramebufferDefault = 33304, FramebufferUndefined = 33305, DepthStencilAttachment = 33306, MajorVersion = 33307, MinorVersion = 33308, NumExtensions = 33309, ContextFlags = 33310, Index = 33314, DepthBuffer = 33315, StencilBuffer = 33316, CompressedRed = 33317, CompressedRg = 33318, Rg = 33319, RgInteger = 33320, R8 = 33321, R16 = 33322, Rg8 = 33323, Rg16 = 33324, R16f = 33325, R32f = 33326, Rg16f = 33327, Rg32f = 33328, R8i = 33329, R8ui = 33330, R16i = 33331, R16ui = 33332, R32i = 33333, R32ui = 33334, Rg8i = 33335, Rg8ui = 33336, Rg16i = 33337, Rg16ui = 33338, Rg32i = 33339, Rg32ui = 33340, MaxRenderbufferSize = 34024, DepthStencil = 34041, UnsignedInt248 = 34042, VertexArrayBinding = 34229, Rgba32f = 34836, Rgb32f = 34837, Rgba16f = 34842, Rgb16f = 34843, CompareRefToTexture = 34894, Depth24Stencil8 = 35056, TextureStencilSize = 35057, VertexAttribArrayInteger = 35069, MaxArrayTextureLayers = 35071, MinProgramTexelOffset = 35076, MaxProgramTexelOffset = 35077, ClampVertexColor = 35098, ClampFragmentColor = 35099, ClampReadColor = 35100, FixedOnly = 35101, MaxVaryingComponents = 35659, TextureRedType = 35856, TextureGreenType = 35857, TextureBlueType = 35858, TextureAlphaType = 35859, TextureLuminanceType = 35860, TextureIntensityType = 35861, TextureDepthType = 35862, UnsignedNormalized = 35863, Texture1DArray = 35864, ProxyTexture1DArray = 35865, Texture2DArray = 35866, ProxyTexture2DArray = 35867, TextureBinding1DArray = 35868, TextureBinding2DArray = 35869, R11fG11fB10f = 35898, UnsignedInt10F11F11FRev = 35899, Rgb9E5 = 35901, UnsignedInt5999Rev = 35902, TextureSharedSize = 35903, TransformFeedbackVaryingMaxLength = 35958, TransformFeedbackBufferMode = 35967, MaxTransformFeedbackSeparateComponents = 35968, TransformFeedbackVaryings = 35971, TransformFeedbackBufferStart = 35972, TransformFeedbackBufferSize = 35973, PrimitivesGenerated = 35975, TransformFeedbackPrimitivesWritten = 35976, RasterizerDiscard = 35977, MaxTransformFeedbackInterleavedComponents = 35978, MaxTransformFeedbackSeparateAttribs = 35979, InterleavedAttribs = 35980, SeparateAttribs = 35981, TransformFeedbackBuffer = 35982, TransformFeedbackBufferBinding = 35983, DrawFramebufferBinding = 36006, FramebufferBinding = 36006, RenderbufferBinding = 36007, ReadFramebuffer = 36008, DrawFramebuffer = 36009, ReadFramebufferBinding = 36010, RenderbufferSamples = 36011, DepthComponent32f = 36012, Depth32fStencil8 = 36013, FramebufferAttachmentObjectType = 36048, FramebufferAttachmentObjectName = 36049, FramebufferAttachmentTextureLevel = 36050, FramebufferAttachmentTextureCubeMapFace = 36051, FramebufferAttachmentTextureLayer = 36052, FramebufferComplete = 36053, FramebufferIncompleteAttachment = 36054, FramebufferIncompleteMissingAttachment = 36055, FramebufferIncompleteDrawBuffer = 36059, FramebufferIncompleteReadBuffer = 36060, FramebufferUnsupported = 36061, MaxColorAttachments = 36063, ColorAttachment0 = 36064, ColorAttachment1 = 36065, ColorAttachment2 = 36066, ColorAttachment3 = 36067, ColorAttachment4 = 36068, ColorAttachment5 = 36069, ColorAttachment6 = 36070, ColorAttachment7 = 36071, ColorAttachment8 = 36072, ColorAttachment9 = 36073, ColorAttachment10 = 36074, ColorAttachment11 = 36075, ColorAttachment12 = 36076, ColorAttachment13 = 36077, ColorAttachment14 = 36078, ColorAttachment15 = 36079, DepthAttachment = 36096, StencilAttachment = 36128, Framebuffer = 36160, Renderbuffer = 36161, RenderbufferWidth = 36162, RenderbufferHeight = 36163, RenderbufferInternalFormat = 36164, StencilIndex1 = 36166, StencilIndex4 = 36167, StencilIndex8 = 36168, StencilIndex16 = 36169, RenderbufferRedSize = 36176, RenderbufferGreenSize = 36177, RenderbufferBlueSize = 36178, RenderbufferAlphaSize = 36179, RenderbufferDepthSize = 36180, RenderbufferStencilSize = 36181, FramebufferIncompleteMultisample = 36182, MaxSamples = 36183, Rgba32ui = 36208, Rgb32ui = 36209, Rgba16ui = 36214, Rgb16ui = 36215, Rgba8ui = 36220, Rgb8ui = 36221, Rgba32i = 36226, Rgb32i = 36227, Rgba16i = 36232, Rgb16i = 36233, Rgba8i = 36238, Rgb8i = 36239, RedInteger = 36244, GreenInteger = 36245, BlueInteger = 36246, RgbInteger = 36248, RgbaInteger = 36249, BgrInteger = 36250, BgraInteger = 36251, Float32UnsignedInt248Rev = 36269, FramebufferSrgb = 36281, CompressedRedRgtc1 = 36283, CompressedSignedRedRgtc1 = 36284, CompressedRgRgtc2 = 36285, CompressedSignedRgRgtc2 = 36286, Sampler1DArray = 36288, Sampler2DArray = 36289, Sampler1DArrayShadow = 36291, Sampler2DArrayShadow = 36292, SamplerCubeShadow = 36293, UnsignedIntVec2 = 36294, UnsignedIntVec3 = 36295, UnsignedIntVec4 = 36296, IntSampler1D = 36297, IntSampler2D = 36298, IntSampler3D = 36299, IntSamplerCube = 36300, IntSampler1DArray = 36302, IntSampler2DArray = 36303, UnsignedIntSampler1D = 36305, UnsignedIntSampler2D = 36306, UnsignedIntSampler3D = 36307, UnsignedIntSamplerCube = 36308, UnsignedIntSampler1DArray = 36310, UnsignedIntSampler2DArray = 36311, QueryWait = 36371, QueryNoWait = 36372, QueryByRegionWait = 36373, QueryByRegionNoWait = 36374, BufferAccessFlags = 37151, BufferMapLength = 37152, BufferMapOffset = 37153 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version30Deprecated.cs ================================================ namespace OpenGL; public enum Version30Deprecated { ClampVertexColor = 35098, ClampFragmentColor = 35099, TextureLuminanceType = 35860, TextureIntensityType = 35861, AlphaInteger = 36247 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version31.cs ================================================ namespace OpenGL; public enum Version31 { TextureRectangle = 34037, TextureBindingRectangle = 34038, ProxyTextureRectangle = 34039, MaxRectangleTextureSize = 34040, UniformBuffer = 35345, UniformBufferBinding = 35368, UniformBufferStart = 35369, UniformBufferSize = 35370, MaxVertexUniformBlocks = 35371, MaxGeometryUniformBlocks = 35372, MaxFragmentUniformBlocks = 35373, MaxCombinedUniformBlocks = 35374, MaxUniformBufferBindings = 35375, MaxUniformBlockSize = 35376, MaxCombinedVertexUniformComponents = 35377, MaxCombinedGeometryUniformComponents = 35378, MaxCombinedFragmentUniformComponents = 35379, UniformBufferOffsetAlignment = 35380, ActiveUniformBlockMaxNameLength = 35381, ActiveUniformBlocks = 35382, UniformType = 35383, UniformSize = 35384, UniformNameLength = 35385, UniformBlockIndex = 35386, UniformOffset = 35387, UniformArrayStride = 35388, UniformMatrixStride = 35389, UniformIsRowMajor = 35390, UniformBlockBinding = 35391, UniformBlockDataSize = 35392, UniformBlockNameLength = 35393, UniformBlockActiveUniforms = 35394, UniformBlockActiveUniformIndices = 35395, UniformBlockReferencedByVertexShader = 35396, UniformBlockReferencedByGeometryShader = 35397, UniformBlockReferencedByFragmentShader = 35398, Sampler2DRect = 35683, Sampler2DRectShadow = 35684, TextureBuffer = 35882, MaxTextureBufferSize = 35883, TextureBindingBuffer = 35884, TextureBufferDataStoreBinding = 35885, TextureBufferFormat = 35886, SamplerBuffer = 36290, IntSampler2DRect = 36301, IntSamplerBuffer = 36304, UnsignedIntSampler2DRect = 36309, UnsignedIntSamplerBuffer = 36312, CopyReadBuffer = 36662, CopyWriteBuffer = 36663, RedSnorm = 36752, RgSnorm = 36753, RgbSnorm = 36754, RgbaSnorm = 36755, R8Snorm = 36756, Rg8Snorm = 36757, Rgb8Snorm = 36758, Rgba8Snorm = 36759, R16Snorm = 36760, Rg16Snorm = 36761, Rgb16Snorm = 36762, Rgba16Snorm = 36763, SignedNormalized = 36764, PrimitiveRestart = 36765, PrimitiveRestartIndex = 36766, InvalidIndex = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version32.cs ================================================ namespace OpenGL; public enum Version32 { ContextCoreProfileBit = 1, SyncFlushCommandsBit = 1, ContextCompatibilityProfileBit = 2, LinesAdjacency = 10, LineStripAdjacency = 11, TrianglesAdjacency = 12, TriangleStripAdjacency = 13, ProgramPointSize = 34370, DepthClamp = 34383, TextureCubeMapSeamless = 34895, GeometryVerticesOut = 35094, GeometryInputType = 35095, GeometryOutputType = 35096, MaxVaryingComponents = 35659, MaxGeometryTextureImageUnits = 35881, FramebufferAttachmentTextureLayer = 36052, FramebufferAttachmentLayered = 36263, FramebufferIncompleteLayerTargets = 36264, GeometryShader = 36313, MaxGeometryUniformComponents = 36319, MaxGeometryOutputVertices = 36320, MaxGeometryTotalOutputComponents = 36321, QuadsFollowProvokingVertexConvention = 36428, FirstVertexConvention = 36429, LastVertexConvention = 36430, ProvokingVertex = 36431, SamplePosition = 36432, SampleMask = 36433, SampleMaskValue = 36434, MaxSampleMaskWords = 36441, Texture2DMultisample = 37120, ProxyTexture2DMultisample = 37121, Texture2DMultisampleArray = 37122, ProxyTexture2DMultisampleArray = 37123, TextureBinding2DMultisample = 37124, TextureBinding2DMultisampleArray = 37125, TextureSamples = 37126, TextureFixedSampleLocations = 37127, Sampler2DMultisample = 37128, IntSampler2DMultisample = 37129, UnsignedIntSampler2DMultisample = 37130, Sampler2DMultisampleArray = 37131, IntSampler2DMultisampleArray = 37132, UnsignedIntSampler2DMultisampleArray = 37133, MaxColorTextureSamples = 37134, MaxDepthTextureSamples = 37135, MaxIntegerSamples = 37136, MaxServerWaitTimeout = 37137, ObjectType = 37138, SyncCondition = 37139, SyncStatus = 37140, SyncFlags = 37141, SyncFence = 37142, SyncGpuCommandsComplete = 37143, Unsignaled = 37144, Signaled = 37145, AlreadySignaled = 37146, TimeoutExpired = 37147, ConditionSatisfied = 37148, WaitFailed = 37149, MaxVertexOutputComponents = 37154, MaxGeometryInputComponents = 37155, MaxGeometryOutputComponents = 37156, MaxFragmentInputComponents = 37157, ContextProfileMask = 37158, TimeoutIgnored = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version33.cs ================================================ namespace OpenGL; public enum Version33 { TimeElapsed = 35007, Src1Color = 35065, OneMinusSrc1Color = 35066, OneMinusSrc1Alpha = 35067, MaxDualSourceDrawBuffers = 35068, VertexAttribArrayDivisor = 35070, SamplerBinding = 35097, AnySamplesPassed = 35887, Int2101010Rev = 36255, Timestamp = 36392, TextureSwizzleR = 36418, TextureSwizzleG = 36419, TextureSwizzleB = 36420, TextureSwizzleA = 36421, TextureSwizzleRgba = 36422, Rgb10A2ui = 36975 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version40.cs ================================================ namespace OpenGL; public enum Version40 { Patches = 14, UniformBlockReferencedByTessControlShader = 34032, UniformBlockReferencedByTessEvaluationShader = 34033, MaxTessControlInputComponents = 34924, MaxTessEvaluationInputComponents = 34925, GeometryShaderInvocations = 34943, SampleShading = 35894, MinSampleShadingValue = 35895, ActiveSubroutines = 36325, ActiveSubroutineUniforms = 36326, MaxSubroutines = 36327, MaxSubroutineUniformLocations = 36328, MaxCombinedTessControlUniformComponents = 36382, MaxCombinedTessEvaluationUniformComponents = 36383, TransformFeedback = 36386, TransformFeedbackBufferPaused = 36387, TransformFeedbackBufferActive = 36388, TransformFeedbackBinding = 36389, ActiveSubroutineUniformLocations = 36423, ActiveSubroutineMaxLength = 36424, ActiveSubroutineUniformMaxLength = 36425, NumCompatibleSubroutines = 36426, CompatibleSubroutines = 36427, MaxGeometryShaderInvocations = 36442, MinFragmentInterpolationOffset = 36443, MaxFragmentInterpolationOffset = 36444, FragmentInterpolationOffsetBits = 36445, MinProgramTextureGatherOffset = 36446, MaxProgramTextureGatherOffset = 36447, MaxTransformFeedbackBuffers = 36464, MaxVertexStreams = 36465, PatchVertices = 36466, PatchDefaultInnerLevel = 36467, PatchDefaultOuterLevel = 36468, TessControlOutputVertices = 36469, TessGenMode = 36470, TessGenSpacing = 36471, TessGenVertexOrder = 36472, TessGenPointMode = 36473, Isolines = 36474, FractionalOdd = 36475, FractionalEven = 36476, MaxPatchVertices = 36477, MaxTessGenLevel = 36478, MaxTessControlUniformComponents = 36479, MaxTessEvaluationUniformComponents = 36480, MaxTessControlTextureImageUnits = 36481, MaxTessEvaluationTextureImageUnits = 36482, MaxTessControlOutputComponents = 36483, MaxTessPatchComponents = 36484, MaxTessControlTotalOutputComponents = 36485, MaxTessEvaluationOutputComponents = 36486, TessEvaluationShader = 36487, TessControlShader = 36488, MaxTessControlUniformBlocks = 36489, MaxTessEvaluationUniformBlocks = 36490, DrawIndirectBuffer = 36671, DrawIndirectBufferBinding = 36675, DoubleMat2 = 36678, DoubleMat3 = 36679, DoubleMat4 = 36680, DoubleMat2x3 = 36681, DoubleMat2x4 = 36682, DoubleMat3x2 = 36683, DoubleMat3x4 = 36684, DoubleMat4x2 = 36685, DoubleMat4x3 = 36686, DoubleVec2 = 36860, DoubleVec3 = 36861, DoubleVec4 = 36862, TextureCubeMapArray = 36873, TextureBindingCubeMapArray = 36874, ProxyTextureCubeMapArray = 36875, SamplerCubeMapArray = 36876, SamplerCubeMapArrayShadow = 36877, IntSamplerCubeMapArray = 36878, UnsignedIntSamplerCubeMapArray = 36879 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/Version41.cs ================================================ namespace OpenGL; public enum Version41 { VertexShaderBit = 1, FragmentShaderBit = 2, GeometryShaderBit = 4, TessControlShaderBit = 8, TessEvaluationShaderBit = 16, Fixed = 5132, ProgramBinaryRetrievableHint = 33367, ProgramSeparable = 33368, ActiveProgram = 33369, ProgramPipelineBinding = 33370, MaxViewports = 33371, ViewportSubpixelBits = 33372, ViewportBoundsRange = 33373, LayerProvokingVertex = 33374, ViewportIndexProvokingVertex = 33375, UndefinedVertex = 33376, ProgramBinaryLength = 34625, NumProgramBinaryFormats = 34814, ProgramBinaryFormats = 34815, ImplementationColorReadType = 35738, ImplementationColorReadFormat = 35739, LowFloat = 36336, MediumFloat = 36337, HighFloat = 36338, LowInt = 36339, MediumInt = 36340, HighInt = 36341, NumShaderBinaryFormats = 36345, ShaderCompiler = 36346, MaxVertexUniformVectors = 36347, MaxVaryingVectors = 36348, MaxFragmentUniformVectors = 36349, AllShaderBits = -1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribDPointerType.cs ================================================ namespace OpenGL; public enum VertexAttribDPointerType { Double = 5130 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribIPointerType.cs ================================================ namespace OpenGL; public enum VertexAttribIPointerType { Byte = 5120, UnsignedByte, Short, UnsignedShort, Int, UnsignedInt } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribParameter.cs ================================================ namespace OpenGL; public enum VertexAttribParameter { ArrayEnabled = 34338, ArraySize = 34339, ArrayStride = 34340, ArrayType = 34341, CurrentVertexAttrib = 34342, ArrayNormalized = 34922, VertexAttribArrayInteger = 35069, VertexAttribArrayDivisor = 35070 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribParameterArb.cs ================================================ namespace OpenGL; public enum VertexAttribParameterArb { ArrayEnabled = 34338, ArraySize = 34339, ArrayStride = 34340, ArrayType = 34341, CurrentVertexAttrib = 34342, ArrayNormalized = 34922, ArrayDivisor = 35070 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribPointerParameter.cs ================================================ namespace OpenGL; public enum VertexAttribPointerParameter { ArrayPointer = 34373 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribPointerParameterArb.cs ================================================ namespace OpenGL; public enum VertexAttribPointerParameterArb { ArrayPointer = 34373 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribPointerType.cs ================================================ namespace OpenGL; public enum VertexAttribPointerType { Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130, HalfFloat = 5131, Fixed = 5132, UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexAttribPointerTypeArb.cs ================================================ namespace OpenGL; public enum VertexAttribPointerTypeArb { Byte = 5120, UnsignedByte = 5121, Short = 5122, UnsignedShort = 5123, Int = 5124, UnsignedInt = 5125, Float = 5126, Double = 5130 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VertexPointerType.cs ================================================ namespace OpenGL; public enum VertexPointerType { Short = 5122, Int = 5124, Float = 5126, Double = 5130, HalfFloat = 5131, UnsignedInt2101010Rev = 33640, Int2101010Rev = 36255 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/VivShaderBinary.cs ================================================ namespace OpenGL; public enum VivShaderBinary { ShaderBinaryViv = 36804 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/WinPhongShading.cs ================================================ namespace OpenGL; public enum WinPhongShading { PhongWin = 33002, PhongHintWin } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/WinSpecularFog.cs ================================================ namespace OpenGL; public enum WinSpecularFog { FogSpecularTextureWin = 33004 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/WindowBorder.cs ================================================ namespace OpenGL; public enum WindowBorder { Resizable, Fixed, Hidden } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/OpenGL/WindowState.cs ================================================ namespace OpenGL; public enum WindowState { Normal, Minimized, Maximized, Fullscreen } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/ClassForAnnotationClassDelegate.cs ================================================ using ObjCRuntime; namespace PdfKit; public delegate Class ClassForAnnotationClassDelegate(Class sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAction.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAction", true)] public class PdfAction : NSObject { private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAction"); public override IntPtr ClassHandle => class_ptr; public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAction() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAction(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionGoTo.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFActionGoTo", true)] public class PdfActionGoTo : PdfAction { private static readonly IntPtr selDestinationHandle = Selector.GetHandle("destination"); private static readonly IntPtr selSetDestination_Handle = Selector.GetHandle("setDestination:"); private static readonly IntPtr selInitWithDestination_Handle = Selector.GetHandle("initWithDestination:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFActionGoTo"); private object __mt_Destination_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfDestination Destination { [Export("destination")] get { return (PdfDestination)(__mt_Destination_var = ((!IsDirectBinding) ? ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationHandle))) : ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationHandle))))); } [Export("setDestination:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestination_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestination_Handle, value.Handle); } __mt_Destination_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfActionGoTo() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfActionGoTo(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionGoTo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionGoTo(IntPtr handle) : base(handle) { } [Export("initWithDestination:")] public PdfActionGoTo(PdfDestination destination) : base(NSObjectFlag.Empty) { if (destination == null) { throw new ArgumentNullException("destination"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithDestination_Handle, destination.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithDestination_Handle, destination.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Destination_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionNamed.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFActionNamed", true)] public class PdfActionNamed : PdfAction { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selInitWithName_Handle = Selector.GetHandle("initWithName:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFActionNamed"); public override IntPtr ClassHandle => class_ptr; public virtual PdfActionNamedName Name { [Export("name")] get { if (IsDirectBinding) { return (PdfActionNamedName)Messaging.int_objc_msgSend(base.Handle, selNameHandle); } return (PdfActionNamedName)Messaging.int_objc_msgSendSuper(base.SuperHandle, selNameHandle); } [Export("setName:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetName_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetName_Handle, (int)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfActionNamed() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfActionNamed(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionNamed(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionNamed(IntPtr handle) : base(handle) { } [Export("initWithName:")] public PdfActionNamed(PdfActionNamedName name) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selInitWithName_Handle, (int)name); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selInitWithName_Handle, (int)name); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionNamedName.cs ================================================ namespace PdfKit; public enum PdfActionNamedName { None, NextPage, PreviousPage, FirstPage, LastPage, GoBack, GoForward, GoToPage, Find, Print, ZoomIn, ZoomOut } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionRemoteGoTo.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFActionRemoteGoTo", true)] public class PdfActionRemoteGoTo : PdfAction { private static readonly IntPtr selPageIndexHandle = Selector.GetHandle("pageIndex"); private static readonly IntPtr selSetPageIndex_Handle = Selector.GetHandle("setPageIndex:"); private static readonly IntPtr selPointHandle = Selector.GetHandle("point"); private static readonly IntPtr selSetPoint_Handle = Selector.GetHandle("setPoint:"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selInitWithPageIndexAtPointFileURL_Handle = Selector.GetHandle("initWithPageIndex:atPoint:fileURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFActionRemoteGoTo"); private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public virtual int PageIndex { [Export("pageIndex")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPageIndexHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPageIndexHandle); } [Export("setPageIndex:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetPageIndex_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetPageIndex_Handle, value); } } } public virtual CGPoint Point { [Export("point")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selPointHandle); } [Export("setPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetPoint_Handle, value); } } } public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfActionRemoteGoTo() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfActionRemoteGoTo(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionRemoteGoTo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionRemoteGoTo(IntPtr handle) : base(handle) { } [Export("initWithPageIndex:atPoint:fileURL:")] public PdfActionRemoteGoTo(int pageIndex, CGPoint point, NSUrl fileUrl) : base(NSObjectFlag.Empty) { if (fileUrl == null) { throw new ArgumentNullException("fileUrl"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int_CGPoint_IntPtr(base.Handle, selInitWithPageIndexAtPointFileURL_Handle, pageIndex, point, fileUrl.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int_CGPoint_IntPtr(base.SuperHandle, selInitWithPageIndexAtPointFileURL_Handle, pageIndex, point, fileUrl.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionResetForm.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFActionResetForm", true)] public class PdfActionResetForm : PdfAction { private static readonly IntPtr selFieldsHandle = Selector.GetHandle("fields"); private static readonly IntPtr selSetFields_Handle = Selector.GetHandle("setFields:"); private static readonly IntPtr selFieldsIncludedAreClearedHandle = Selector.GetHandle("fieldsIncludedAreCleared"); private static readonly IntPtr selSetFieldsIncludedAreCleared_Handle = Selector.GetHandle("setFieldsIncludedAreCleared:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFActionResetForm"); public override IntPtr ClassHandle => class_ptr; public virtual string[] Fields { [Export("fields")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFieldsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFieldsHandle)); } [Export("setFields:")] set { NSArray nSArray = ((value == null) ? null : NSArray.FromStrings(value)); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFields_Handle, nSArray?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFields_Handle, nSArray?.Handle ?? IntPtr.Zero); } nSArray?.Dispose(); } } public virtual bool FieldsIncludedAreCleared { [Export("fieldsIncludedAreCleared")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selFieldsIncludedAreClearedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selFieldsIncludedAreClearedHandle); } [Export("setFieldsIncludedAreCleared:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetFieldsIncludedAreCleared_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetFieldsIncludedAreCleared_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfActionResetForm() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfActionResetForm(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionResetForm(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionResetForm(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfActionUrl.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFActionURL", true)] public class PdfActionUrl : PdfAction { private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFActionURL"); private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfActionUrl() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfActionUrl(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionUrl(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfActionUrl(IntPtr handle) : base(handle) { } [Export("initWithURL:")] public PdfActionUrl(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotation.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotation", true)] public class PdfAnnotation : NSObject { private static readonly IntPtr selPageHandle = Selector.GetHandle("page"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selBoundsHandle = Selector.GetHandle("bounds"); private static readonly IntPtr selSetBounds_Handle = Selector.GetHandle("setBounds:"); private static readonly IntPtr selModificationDateHandle = Selector.GetHandle("modificationDate"); private static readonly IntPtr selSetModificationDate_Handle = Selector.GetHandle("setModificationDate:"); private static readonly IntPtr selUserNameHandle = Selector.GetHandle("userName"); private static readonly IntPtr selSetUserName_Handle = Selector.GetHandle("setUserName:"); private static readonly IntPtr selPopupHandle = Selector.GetHandle("popup"); private static readonly IntPtr selSetPopup_Handle = Selector.GetHandle("setPopup:"); private static readonly IntPtr selShouldDisplayHandle = Selector.GetHandle("shouldDisplay"); private static readonly IntPtr selSetShouldDisplay_Handle = Selector.GetHandle("setShouldDisplay:"); private static readonly IntPtr selShouldPrintHandle = Selector.GetHandle("shouldPrint"); private static readonly IntPtr selSetShouldPrint_Handle = Selector.GetHandle("setShouldPrint:"); private static readonly IntPtr selBorderHandle = Selector.GetHandle("border"); private static readonly IntPtr selSetBorder_Handle = Selector.GetHandle("setBorder:"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selMouseUpActionHandle = Selector.GetHandle("mouseUpAction"); private static readonly IntPtr selSetMouseUpAction_Handle = Selector.GetHandle("setMouseUpAction:"); private static readonly IntPtr selContentsHandle = Selector.GetHandle("contents"); private static readonly IntPtr selSetContents_Handle = Selector.GetHandle("setContents:"); private static readonly IntPtr selToolTipHandle = Selector.GetHandle("toolTip"); private static readonly IntPtr selHasAppearanceStreamHandle = Selector.GetHandle("hasAppearanceStream"); private static readonly IntPtr selInitWithBounds_Handle = Selector.GetHandle("initWithBounds:"); private static readonly IntPtr selRemoveAllAppearanceStreamsHandle = Selector.GetHandle("removeAllAppearanceStreams"); private static readonly IntPtr selDrawWithBox_Handle = Selector.GetHandle("drawWithBox:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotation"); private object __mt_Page_var; private object __mt_ModificationDate_var; private object __mt_Popup_var; private object __mt_Border_var; private object __mt_Color_var; private object __mt_MouseUpAction_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfPage Page { [Export("page")] get { return (PdfPage)(__mt_Page_var = ((!IsDirectBinding) ? ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageHandle))) : ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPageHandle))))); } } public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual CGRect Bounds { [Export("bounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selBoundsHandle); } return retval; } [Export("setBounds:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetBounds_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetBounds_Handle, value); } } } public virtual NSDate ModificationDate { [Export("modificationDate")] get { return (NSDate)(__mt_ModificationDate_var = ((!IsDirectBinding) ? ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selModificationDateHandle))) : ((NSDate)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selModificationDateHandle))))); } [Export("setModificationDate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetModificationDate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetModificationDate_Handle, value.Handle); } __mt_ModificationDate_var = value; } } public virtual string UserName { [Export("userName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUserNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserNameHandle)); } [Export("setUserName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual PdfAnnotationPopup Popup { [Export("popup")] get { return (PdfAnnotationPopup)(__mt_Popup_var = ((!IsDirectBinding) ? ((PdfAnnotationPopup)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPopupHandle))) : ((PdfAnnotationPopup)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPopupHandle))))); } [Export("setPopup:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPopup_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPopup_Handle, value.Handle); } __mt_Popup_var = value; } } public virtual bool ShouldDisplay { [Export("shouldDisplay")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldDisplayHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldDisplayHandle); } [Export("setShouldDisplay:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldDisplay_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldDisplay_Handle, value); } } } public virtual bool ShouldPrint { [Export("shouldPrint")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldPrintHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldPrintHandle); } [Export("setShouldPrint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldPrint_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldPrint_Handle, value); } } } public virtual PdfBorder Border { [Export("border")] get { return (PdfBorder)(__mt_Border_var = ((!IsDirectBinding) ? ((PdfBorder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBorderHandle))) : ((PdfBorder)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBorderHandle))))); } [Export("setBorder:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBorder_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBorder_Handle, value.Handle); } __mt_Border_var = value; } } public virtual NSColor Color { [Export("color")] get { return (NSColor)(__mt_Color_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle))))); } [Export("setColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } __mt_Color_var = value; } } public virtual PdfAction MouseUpAction { [Export("mouseUpAction")] get { return (PdfAction)(__mt_MouseUpAction_var = ((!IsDirectBinding) ? ((PdfAction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMouseUpActionHandle))) : ((PdfAction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMouseUpActionHandle))))); } [Export("setMouseUpAction:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMouseUpAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMouseUpAction_Handle, value.Handle); } __mt_MouseUpAction_var = value; } } public virtual string Contents { [Export("contents")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selContentsHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentsHandle)); } [Export("setContents:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContents_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContents_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ToolTip { [Export("toolTip")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToolTipHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToolTipHandle)); } } public virtual bool HasAppearanceStream { [Export("hasAppearanceStream")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasAppearanceStreamHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasAppearanceStreamHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotation(IntPtr handle) : base(handle) { } [Export("initWithBounds:")] public PdfAnnotation(CGRect bounds) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selInitWithBounds_Handle, bounds); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selInitWithBounds_Handle, bounds); } } [Export("removeAllAppearanceStreams")] public virtual void RemoveAllAppearanceStreams() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveAllAppearanceStreamsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveAllAppearanceStreamsHandle); } } [Export("drawWithBox:")] public virtual void Draw(PdfDisplayBox box) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selDrawWithBox_Handle, (int)box); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selDrawWithBox_Handle, (int)box); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Page_var = null; __mt_ModificationDate_var = null; __mt_Popup_var = null; __mt_Border_var = null; __mt_Color_var = null; __mt_MouseUpAction_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationButtonWidget.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationButtonWidget", true)] public class PdfAnnotationButtonWidget : PdfAnnotation { private static readonly IntPtr selControlTypeHandle = Selector.GetHandle("controlType"); private static readonly IntPtr selSetControlType_Handle = Selector.GetHandle("setControlType:"); private static readonly IntPtr selStateHandle = Selector.GetHandle("state"); private static readonly IntPtr selSetState_Handle = Selector.GetHandle("setState:"); private static readonly IntPtr selIsHighlightedHandle = Selector.GetHandle("isHighlighted"); private static readonly IntPtr selSetHighlighted_Handle = Selector.GetHandle("setHighlighted:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selAllowsToggleToOffHandle = Selector.GetHandle("allowsToggleToOff"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selFontColorHandle = Selector.GetHandle("fontColor"); private static readonly IntPtr selSetFontColor_Handle = Selector.GetHandle("setFontColor:"); private static readonly IntPtr selCaptionHandle = Selector.GetHandle("caption"); private static readonly IntPtr selSetCaption_Handle = Selector.GetHandle("setCaption:"); private static readonly IntPtr selFieldNameHandle = Selector.GetHandle("fieldName"); private static readonly IntPtr selSetFieldName_Handle = Selector.GetHandle("setFieldName:"); private static readonly IntPtr selOnStateValueHandle = Selector.GetHandle("onStateValue"); private static readonly IntPtr selSetOnStateValue_Handle = Selector.GetHandle("setOnStateValue:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationButtonWidget"); private object __mt_BackgroundColor_var; private object __mt_Font_var; private object __mt_FontColor_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfWidgetControlType ControlType { [Export("controlType")] get { if (IsDirectBinding) { return (PdfWidgetControlType)Messaging.int_objc_msgSend(base.Handle, selControlTypeHandle); } return (PdfWidgetControlType)Messaging.int_objc_msgSendSuper(base.SuperHandle, selControlTypeHandle); } [Export("setControlType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetControlType_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetControlType_Handle, (int)value); } } } public virtual int State { [Export("state")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selStateHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selStateHandle); } [Export("setState:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetState_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetState_Handle, value); } } } public virtual bool Highlighted { [Export("isHighlighted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHighlightedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHighlightedHandle); } [Export("setHighlighted:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHighlighted_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHighlighted_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool AllowsToggleToOff { [Export("allowsToggleToOff")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsToggleToOffHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsToggleToOffHandle); } } public virtual NSFont Font { [Export("font")] get { return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSColor FontColor { [Export("fontColor")] get { return (NSColor)(__mt_FontColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontColorHandle))))); } [Export("setFontColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFontColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFontColor_Handle, value.Handle); } __mt_FontColor_var = value; } } public virtual string Caption { [Export("caption")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCaptionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCaptionHandle)); } [Export("setCaption:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCaption_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCaption_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string FieldName { [Export("fieldName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFieldNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFieldNameHandle)); } [Export("setFieldName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFieldName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFieldName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string OnStateValue { [Export("onStateValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOnStateValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOnStateValueHandle)); } [Export("setOnStateValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOnStateValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOnStateValue_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationButtonWidget() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationButtonWidget(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationButtonWidget(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationButtonWidget(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_Font_var = null; __mt_FontColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationChoiceWidget.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationChoiceWidget", true)] public class PdfAnnotationChoiceWidget : PdfAnnotation { private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selSetStringValue_Handle = Selector.GetHandle("setStringValue:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selFontColorHandle = Selector.GetHandle("fontColor"); private static readonly IntPtr selSetFontColor_Handle = Selector.GetHandle("setFontColor:"); private static readonly IntPtr selFieldNameHandle = Selector.GetHandle("fieldName"); private static readonly IntPtr selSetFieldName_Handle = Selector.GetHandle("setFieldName:"); private static readonly IntPtr selIsListChoiceHandle = Selector.GetHandle("isListChoice"); private static readonly IntPtr selSetIsListChoice_Handle = Selector.GetHandle("setIsListChoice:"); private static readonly IntPtr selChoicesHandle = Selector.GetHandle("choices"); private static readonly IntPtr selSetChoices_Handle = Selector.GetHandle("setChoices:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationChoiceWidget"); private object __mt_BackgroundColor_var; private object __mt_Font_var; private object __mt_FontColor_var; public override IntPtr ClassHandle => class_ptr; public virtual string Text { [Export("stringValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } [Export("setStringValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStringValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSFont Font { [Export("font")] get { return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSColor FontColor { [Export("fontColor")] get { return (NSColor)(__mt_FontColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontColorHandle))))); } [Export("setFontColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFontColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFontColor_Handle, value.Handle); } __mt_FontColor_var = value; } } public virtual string FieldName { [Export("fieldName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFieldNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFieldNameHandle)); } [Export("setFieldName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFieldName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFieldName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool IsListChoice { [Export("isListChoice")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsListChoiceHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsListChoiceHandle); } [Export("setIsListChoice:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsListChoice_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsListChoice_Handle, value); } } } public virtual string[] Choices { [Export("choices")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChoicesHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChoicesHandle)); } [Export("setChoices:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetChoices_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetChoices_Handle, nSArray.Handle); } nSArray.Dispose(); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationChoiceWidget() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationChoiceWidget(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationChoiceWidget(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationChoiceWidget(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_Font_var = null; __mt_FontColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationCircle.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationCircle", true)] public class PdfAnnotationCircle : PdfAnnotation { private static readonly IntPtr selInteriorColorHandle = Selector.GetHandle("interiorColor"); private static readonly IntPtr selSetInteriorColor_Handle = Selector.GetHandle("setInteriorColor:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationCircle"); private object __mt_InteriorColor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColor InteriorColor { [Export("interiorColor")] get { return (NSColor)(__mt_InteriorColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInteriorColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInteriorColorHandle))))); } [Export("setInteriorColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInteriorColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInteriorColor_Handle, value.Handle); } __mt_InteriorColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationCircle() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationCircle(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationCircle(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationCircle(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InteriorColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationFreeText.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationFreeText", true)] public class PdfAnnotationFreeText : PdfAnnotation { private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selFontColorHandle = Selector.GetHandle("fontColor"); private static readonly IntPtr selSetFontColor_Handle = Selector.GetHandle("setFontColor:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationFreeText"); private object __mt_Font_var; private object __mt_FontColor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSFont Font { [Export("font")] get { return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSColor FontColor { [Export("fontColor")] get { return (NSColor)(__mt_FontColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontColorHandle))))); } [Export("setFontColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFontColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFontColor_Handle, value.Handle); } __mt_FontColor_var = value; } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationFreeText() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationFreeText(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationFreeText(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationFreeText(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Font_var = null; __mt_FontColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationInk.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationInk", true)] public class PdfAnnotationInk : PdfAnnotation { private static readonly IntPtr selPathsHandle = Selector.GetHandle("paths"); private static readonly IntPtr selAddBezierPath_Handle = Selector.GetHandle("addBezierPath:"); private static readonly IntPtr selRemoveBezierPath_Handle = Selector.GetHandle("removeBezierPath:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationInk"); private object __mt_Paths_var; public override IntPtr ClassHandle => class_ptr; public virtual NSBezierPath[] Paths { [Export("paths")] get { return (NSBezierPath[])(__mt_Paths_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPathsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPathsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationInk() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationInk(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationInk(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationInk(IntPtr handle) : base(handle) { } [Export("addBezierPath:")] public virtual void AddBezierPathpath(NSBezierPath path) { if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddBezierPath_Handle, path.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddBezierPath_Handle, path.Handle); } } [Export("removeBezierPath:")] public virtual void RemoveBezierPathpath(NSBezierPath path) { if (path == null) { throw new ArgumentNullException("path"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveBezierPath_Handle, path.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveBezierPath_Handle, path.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Paths_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationLine.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationLine", true)] public class PdfAnnotationLine : PdfAnnotation { private static readonly IntPtr selStartPointHandle = Selector.GetHandle("startPoint"); private static readonly IntPtr selSetStartPoint_Handle = Selector.GetHandle("setStartPoint:"); private static readonly IntPtr selEndPointHandle = Selector.GetHandle("endPoint"); private static readonly IntPtr selSetEndPoint_Handle = Selector.GetHandle("setEndPoint:"); private static readonly IntPtr selStartLineStyleHandle = Selector.GetHandle("startLineStyle"); private static readonly IntPtr selSetStartLineStyle_Handle = Selector.GetHandle("setStartLineStyle:"); private static readonly IntPtr selEndLineStyleHandle = Selector.GetHandle("endLineStyle"); private static readonly IntPtr selSetEndLineStyle_Handle = Selector.GetHandle("setEndLineStyle:"); private static readonly IntPtr selInteriorColorHandle = Selector.GetHandle("interiorColor"); private static readonly IntPtr selSetInteriorColor_Handle = Selector.GetHandle("setInteriorColor:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationLine"); private object __mt_InteriorColor_var; public override IntPtr ClassHandle => class_ptr; public virtual CGPoint StartPoint { [Export("startPoint")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selStartPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selStartPointHandle); } [Export("setStartPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetStartPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetStartPoint_Handle, value); } } } public virtual CGPoint EndPoint { [Export("endPoint")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selEndPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selEndPointHandle); } [Export("setEndPoint:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selSetEndPoint_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selSetEndPoint_Handle, value); } } } public virtual PdfLineStyle StartLineStyle { [Export("startLineStyle")] get { if (IsDirectBinding) { return (PdfLineStyle)Messaging.int_objc_msgSend(base.Handle, selStartLineStyleHandle); } return (PdfLineStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStartLineStyleHandle); } [Export("setStartLineStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetStartLineStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetStartLineStyle_Handle, (int)value); } } } public virtual PdfLineStyle EndLineStyle { [Export("endLineStyle")] get { if (IsDirectBinding) { return (PdfLineStyle)Messaging.int_objc_msgSend(base.Handle, selEndLineStyleHandle); } return (PdfLineStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selEndLineStyleHandle); } [Export("setEndLineStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetEndLineStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetEndLineStyle_Handle, (int)value); } } } public virtual NSColor InteriorColor { [Export("interiorColor")] get { return (NSColor)(__mt_InteriorColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInteriorColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInteriorColorHandle))))); } [Export("setInteriorColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInteriorColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInteriorColor_Handle, value.Handle); } __mt_InteriorColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationLine() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationLine(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationLine(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationLine(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InteriorColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationLink.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationLink", true)] public class PdfAnnotationLink : PdfAnnotation { private static readonly IntPtr selDestinationHandle = Selector.GetHandle("destination"); private static readonly IntPtr selSetDestination_Handle = Selector.GetHandle("setDestination:"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selSetURL_Handle = Selector.GetHandle("setURL:"); private static readonly IntPtr selSetHighlighted_Handle = Selector.GetHandle("setHighlighted:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationLink"); private object __mt_Destination_var; private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfDestination Destination { [Export("destination")] get { return (PdfDestination)(__mt_Destination_var = ((!IsDirectBinding) ? ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationHandle))) : ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationHandle))))); } [Export("setDestination:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestination_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestination_Handle, value.Handle); } __mt_Destination_var = value; } } public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } [Export("setURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetURL_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetURL_Handle, value.Handle); } __mt_Url_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationLink() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationLink(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationLink(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationLink(IntPtr handle) : base(handle) { } [Export("setHighlighted:")] public virtual void SetHighlighted(bool highlighted) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHighlighted_Handle, highlighted); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHighlighted_Handle, highlighted); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Destination_var = null; __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationMarkup.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationMarkup", true)] public class PdfAnnotationMarkup : PdfAnnotation { private static readonly IntPtr selQuadrilateralPointsHandle = Selector.GetHandle("quadrilateralPoints"); private static readonly IntPtr selSetQuadrilateralPoints_Handle = Selector.GetHandle("setQuadrilateralPoints:"); private static readonly IntPtr selMarkupTypeHandle = Selector.GetHandle("markupType"); private static readonly IntPtr selSetMarkupType_Handle = Selector.GetHandle("setMarkupType:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationMarkup"); private object __mt_QuadrilateralPoints_var; public override IntPtr ClassHandle => class_ptr; public virtual NSArray QuadrilateralPoints { [Export("quadrilateralPoints")] get { return (NSArray)(__mt_QuadrilateralPoints_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQuadrilateralPointsHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selQuadrilateralPointsHandle))))); } [Export("setQuadrilateralPoints:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetQuadrilateralPoints_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetQuadrilateralPoints_Handle, value.Handle); } __mt_QuadrilateralPoints_var = value; } } public virtual PdfMarkupType MarkupType { [Export("markupType")] get { if (IsDirectBinding) { return (PdfMarkupType)Messaging.int_objc_msgSend(base.Handle, selMarkupTypeHandle); } return (PdfMarkupType)Messaging.int_objc_msgSendSuper(base.SuperHandle, selMarkupTypeHandle); } [Export("setMarkupType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMarkupType_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMarkupType_Handle, (int)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationMarkup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationMarkup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationMarkup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationMarkup(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_QuadrilateralPoints_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationPopup.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationPopup", true)] public class PdfAnnotationPopup : PdfAnnotation { private static readonly IntPtr selIsOpenHandle = Selector.GetHandle("isOpen"); private static readonly IntPtr selSetIsOpen_Handle = Selector.GetHandle("setIsOpen:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationPopup"); public override IntPtr ClassHandle => class_ptr; public virtual bool IsOpen { [Export("isOpen")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpenHandle); } [Export("setIsOpen:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsOpen_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsOpen_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationPopup() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationPopup(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationPopup(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationPopup(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationSquare.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationSquare", true)] public class PdfAnnotationSquare : PdfAnnotation { private static readonly IntPtr selInteriorColorHandle = Selector.GetHandle("interiorColor"); private static readonly IntPtr selSetInteriorColor_Handle = Selector.GetHandle("setInteriorColor:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationSquare"); private object __mt_InteriorColor_var; public override IntPtr ClassHandle => class_ptr; public virtual NSColor InteriorColor { [Export("interiorColor")] get { return (NSColor)(__mt_InteriorColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInteriorColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInteriorColorHandle))))); } [Export("setInteriorColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInteriorColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInteriorColor_Handle, value.Handle); } __mt_InteriorColor_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationSquare() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationSquare(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationSquare(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationSquare(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_InteriorColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationStamp.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationStamp", true)] public class PdfAnnotationStamp : PdfAnnotation { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationStamp"); public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationStamp() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationStamp(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationStamp(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationStamp(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationText.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationText", true)] public class PdfAnnotationText : PdfAnnotation { private static readonly IntPtr selIconTypeHandle = Selector.GetHandle("iconType"); private static readonly IntPtr selSetIconType_Handle = Selector.GetHandle("setIconType:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationText"); public override IntPtr ClassHandle => class_ptr; public virtual PdfTextAnnotationIconType IconType { [Export("iconType")] get { if (IsDirectBinding) { return (PdfTextAnnotationIconType)Messaging.int_objc_msgSend(base.Handle, selIconTypeHandle); } return (PdfTextAnnotationIconType)Messaging.int_objc_msgSendSuper(base.SuperHandle, selIconTypeHandle); } [Export("setIconType:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetIconType_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetIconType_Handle, (int)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationText() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationText(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationText(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationText(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAnnotationTextWidget.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFAnnotationTextWidget", true)] public class PdfAnnotationTextWidget : PdfAnnotation { private static readonly IntPtr selStringValueHandle = Selector.GetHandle("stringValue"); private static readonly IntPtr selSetStringValue_Handle = Selector.GetHandle("setStringValue:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selRotationHandle = Selector.GetHandle("rotation"); private static readonly IntPtr selSetRotation_Handle = Selector.GetHandle("setRotation:"); private static readonly IntPtr selFontHandle = Selector.GetHandle("font"); private static readonly IntPtr selSetFont_Handle = Selector.GetHandle("setFont:"); private static readonly IntPtr selFontColorHandle = Selector.GetHandle("fontColor"); private static readonly IntPtr selSetFontColor_Handle = Selector.GetHandle("setFontColor:"); private static readonly IntPtr selAlignmentHandle = Selector.GetHandle("alignment"); private static readonly IntPtr selSetAlignment_Handle = Selector.GetHandle("setAlignment:"); private static readonly IntPtr selMaximumLengthHandle = Selector.GetHandle("maximumLength"); private static readonly IntPtr selSetMaximumLength_Handle = Selector.GetHandle("setMaximumLength:"); private static readonly IntPtr selFieldNameHandle = Selector.GetHandle("fieldName"); private static readonly IntPtr selSetFieldName_Handle = Selector.GetHandle("setFieldName:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFAnnotationTextWidget"); private object __mt_BackgroundColor_var; private object __mt_Font_var; private object __mt_FontColor_var; public override IntPtr ClassHandle => class_ptr; public virtual string StringValue { [Export("stringValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringValueHandle)); } [Export("setStringValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStringValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStringValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual int Rotation { [Export("rotation")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selRotationHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selRotationHandle); } [Export("setRotation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetRotation_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetRotation_Handle, value); } } } public virtual NSFont Font { [Export("font")] get { return (NSFont)(__mt_Font_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontHandle))))); } [Export("setFont:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFont_Handle, value.Handle); } __mt_Font_var = value; } } public virtual NSColor FontColor { [Export("fontColor")] get { return (NSColor)(__mt_FontColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFontColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFontColorHandle))))); } [Export("setFontColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFontColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFontColor_Handle, value.Handle); } __mt_FontColor_var = value; } } public virtual NSTextAlignment Alignment { [Export("alignment")] get { if (IsDirectBinding) { return (NSTextAlignment)Messaging.UInt64_objc_msgSend(base.Handle, selAlignmentHandle); } return (NSTextAlignment)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selAlignmentHandle); } [Export("setAlignment:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetAlignment_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetAlignment_Handle, (ulong)value); } } } public virtual int MaximumLength { [Export("maximumLength")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMaximumLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMaximumLengthHandle); } [Export("setMaximumLength:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMaximumLength_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMaximumLength_Handle, value); } } } public virtual string FieldName { [Export("fieldName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFieldNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFieldNameHandle)); } [Export("setFieldName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFieldName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFieldName_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfAnnotationTextWidget() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfAnnotationTextWidget(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationTextWidget(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfAnnotationTextWidget(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_BackgroundColor_var = null; __mt_Font_var = null; __mt_FontColor_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfAreaOfInterest.cs ================================================ using System; namespace PdfKit; [Flags] public enum PdfAreaOfInterest { NoArea = 0, PageArea = 1, TextArea = 2, AnnotationArea = 4, LinkArea = 8, ControlArea = 0x10, TextFieldArea = 0x20, IconArea = 0x40, PopupArea = 0x80 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfBorder.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFBorder", true)] public class PdfBorder : NSObject { private static readonly IntPtr selStyleHandle = Selector.GetHandle("style"); private static readonly IntPtr selSetStyle_Handle = Selector.GetHandle("setStyle:"); private static readonly IntPtr selLineWidthHandle = Selector.GetHandle("lineWidth"); private static readonly IntPtr selSetLineWidth_Handle = Selector.GetHandle("setLineWidth:"); private static readonly IntPtr selHorizontalCornerRadiusHandle = Selector.GetHandle("horizontalCornerRadius"); private static readonly IntPtr selSetHorizontalCornerRadius_Handle = Selector.GetHandle("setHorizontalCornerRadius:"); private static readonly IntPtr selVerticalCornerRadiusHandle = Selector.GetHandle("verticalCornerRadius"); private static readonly IntPtr selSetVerticalCornerRadius_Handle = Selector.GetHandle("setVerticalCornerRadius:"); private static readonly IntPtr selDashPatternHandle = Selector.GetHandle("dashPattern"); private static readonly IntPtr selSetDashPattern_Handle = Selector.GetHandle("setDashPattern:"); private static readonly IntPtr selDrawInRect_Handle = Selector.GetHandle("drawInRect:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFBorder"); private object __mt_DashPattern_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfBorderStyle Style { [Export("style")] get { if (IsDirectBinding) { return (PdfBorderStyle)Messaging.int_objc_msgSend(base.Handle, selStyleHandle); } return (PdfBorderStyle)Messaging.int_objc_msgSendSuper(base.SuperHandle, selStyleHandle); } [Export("setStyle:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetStyle_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetStyle_Handle, (int)value); } } } public virtual float LineWidth { [Export("lineWidth")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selLineWidthHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selLineWidthHandle); } [Export("setLineWidth:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetLineWidth_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetLineWidth_Handle, value); } } } public virtual float HorizontalCornerRadius { [Export("horizontalCornerRadius")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selHorizontalCornerRadiusHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selHorizontalCornerRadiusHandle); } [Export("setHorizontalCornerRadius:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetHorizontalCornerRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetHorizontalCornerRadius_Handle, value); } } } public virtual float VerticalCornerRadius { [Export("verticalCornerRadius")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVerticalCornerRadiusHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVerticalCornerRadiusHandle); } [Export("setVerticalCornerRadius:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVerticalCornerRadius_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVerticalCornerRadius_Handle, value); } } } public virtual NSArray DashPattern { [Export("dashPattern")] get { return (NSArray)(__mt_DashPattern_var = ((!IsDirectBinding) ? ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDashPatternHandle))) : ((NSArray)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDashPatternHandle))))); } [Export("setDashPattern:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDashPattern_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDashPattern_Handle, value.Handle); } __mt_DashPattern_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfBorder() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfBorder(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfBorder(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfBorder(IntPtr handle) : base(handle) { } [Export("drawInRect:")] public virtual void Draw(CGRect rect) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selDrawInRect_Handle, rect); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selDrawInRect_Handle, rect); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DashPattern_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfBorderStyle.cs ================================================ namespace PdfKit; public enum PdfBorderStyle { Solid, Dashed, Beveled, Inset, Underline } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDestination.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFDestination", true)] public class PdfDestination : NSObject { private static readonly IntPtr selPageHandle = Selector.GetHandle("page"); private static readonly IntPtr selPointHandle = Selector.GetHandle("point"); private static readonly IntPtr selInitWithPageAtPoint_Handle = Selector.GetHandle("initWithPage:atPoint:"); private static readonly IntPtr selCompare_Handle = Selector.GetHandle("compare:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFDestination"); private object __mt_Page_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfPage Page { [Export("page")] get { return (PdfPage)(__mt_Page_var = ((!IsDirectBinding) ? ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageHandle))) : ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPageHandle))))); } } public virtual CGPoint Point { [Export("point")] get { if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend(base.Handle, selPointHandle); } return Messaging.CGPoint_objc_msgSendSuper(base.SuperHandle, selPointHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfDestination() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfDestination(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDestination(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDestination(IntPtr handle) : base(handle) { } [Export("initWithPage:atPoint:")] public PdfDestination(PdfPage page, CGPoint point) : base(NSObjectFlag.Empty) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_CGPoint(base.Handle, selInitWithPageAtPoint_Handle, page.Handle, point); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGPoint(base.SuperHandle, selInitWithPageAtPoint_Handle, page.Handle, point); } } [Export("compare:")] public virtual NSComparisonResult Compare(PdfDestination destination) { if (destination == null) { throw new ArgumentNullException("destination"); } if (IsDirectBinding) { return (NSComparisonResult)Messaging.Int64_objc_msgSend_IntPtr(base.Handle, selCompare_Handle, destination.Handle); } return (NSComparisonResult)Messaging.Int64_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompare_Handle, destination.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Page_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDisplayBox.cs ================================================ namespace PdfKit; public enum PdfDisplayBox { Media, Crop, Bleed, Trim, Art } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDisplayMode.cs ================================================ namespace PdfKit; public enum PdfDisplayMode { SinglePage, SinglePageContinuous, TwoUp, TwoUpContinuous } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDocument.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFDocument", true)] public class PdfDocument : NSObject { [Register] private sealed class _PdfDocumentDelegate : PdfDocumentDelegate { internal EventHandler didMatchString; internal ClassForAnnotationClassDelegate classForAnnotationClass; internal EventHandler findFinished; internal EventHandler pageFindStarted; internal EventHandler pageFindFinished; internal EventHandler matchFound; [Preserve(Conditional = true)] public override void DidMatchString(PdfSelection sender) { didMatchString?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override Class ClassForAnnotationClass(Class sender) { return classForAnnotationClass?.Invoke(sender); } [Preserve(Conditional = true)] public override void FindFinished(NSNotification notification) { findFinished?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void PageFindStarted(NSNotification notification) { pageFindStarted?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void PageFindFinished(NSNotification notification) { pageFindFinished?.Invoke(notification, EventArgs.Empty); } [Preserve(Conditional = true)] public override void MatchFound(NSNotification notification) { matchFound?.Invoke(notification, EventArgs.Empty); } } private static readonly IntPtr selDocumentURLHandle = Selector.GetHandle("documentURL"); private static readonly IntPtr selDocumentAttributesHandle = Selector.GetHandle("documentAttributes"); private static readonly IntPtr selSetDocumentAttributes_Handle = Selector.GetHandle("setDocumentAttributes:"); private static readonly IntPtr selMajorVersionHandle = Selector.GetHandle("majorVersion"); private static readonly IntPtr selMinorVersionHandle = Selector.GetHandle("minorVersion"); private static readonly IntPtr selIsEncryptedHandle = Selector.GetHandle("isEncrypted"); private static readonly IntPtr selIsLockedHandle = Selector.GetHandle("isLocked"); private static readonly IntPtr selAllowsPrintingHandle = Selector.GetHandle("allowsPrinting"); private static readonly IntPtr selAllowsCopyingHandle = Selector.GetHandle("allowsCopying"); private static readonly IntPtr selPermissionsStatusHandle = Selector.GetHandle("permissionsStatus"); private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selOutlineRootHandle = Selector.GetHandle("outlineRoot"); private static readonly IntPtr selSetOutlineRoot_Handle = Selector.GetHandle("setOutlineRoot:"); private static readonly IntPtr selPageCountHandle = Selector.GetHandle("pageCount"); private static readonly IntPtr selPageClassHandle = Selector.GetHandle("pageClass"); private static readonly IntPtr selIsFindingHandle = Selector.GetHandle("isFinding"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr selUnlockWithPassword_Handle = Selector.GetHandle("unlockWithPassword:"); private static readonly IntPtr selDataRepresentationHandle = Selector.GetHandle("dataRepresentation"); private static readonly IntPtr selDataRepresentationWithOptions_Handle = Selector.GetHandle("dataRepresentationWithOptions:"); private static readonly IntPtr selWriteToFile_Handle = Selector.GetHandle("writeToFile:"); private static readonly IntPtr selWriteToFileWithOptions_Handle = Selector.GetHandle("writeToFile:withOptions:"); private static readonly IntPtr selWriteToURL_Handle = Selector.GetHandle("writeToURL:"); private static readonly IntPtr selWriteToURLWithOptions_Handle = Selector.GetHandle("writeToURL:withOptions:"); private static readonly IntPtr selOutlineItemForSelection_Handle = Selector.GetHandle("outlineItemForSelection:"); private static readonly IntPtr selPageAtIndex_Handle = Selector.GetHandle("pageAtIndex:"); private static readonly IntPtr selIndexForPage_Handle = Selector.GetHandle("indexForPage:"); private static readonly IntPtr selInsertPageAtIndex_Handle = Selector.GetHandle("insertPage:atIndex:"); private static readonly IntPtr selRemovePageAtIndex_Handle = Selector.GetHandle("removePageAtIndex:"); private static readonly IntPtr selExchangePageAtIndexWithPageAtIndex_Handle = Selector.GetHandle("exchangePageAtIndex:withPageAtIndex:"); private static readonly IntPtr selFindStringWithOptions_Handle = Selector.GetHandle("findString:withOptions:"); private static readonly IntPtr selBeginFindStringWithOptions_Handle = Selector.GetHandle("beginFindString:withOptions:"); private static readonly IntPtr selBeginFindStringsWithOptions_Handle = Selector.GetHandle("beginFindStrings:withOptions:"); private static readonly IntPtr selFindStringFromSelectionWithOptions_Handle = Selector.GetHandle("findString:fromSelection:withOptions:"); private static readonly IntPtr selCancelFindStringHandle = Selector.GetHandle("cancelFindString"); private static readonly IntPtr selSelectionForEntireDocumentHandle = Selector.GetHandle("selectionForEntireDocument"); private static readonly IntPtr selSelectionFromPageAtPointToPageAtPoint_Handle = Selector.GetHandle("selectionFromPage:atPoint:toPage:atPoint:"); private static readonly IntPtr selSelectionFromPageAtCharacterIndexToPageAtCharacterIndex_Handle = Selector.GetHandle("selectionFromPage:atCharacterIndex:toPage:atCharacterIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFDocument"); private object __mt_DocumentUrl_var; private object __mt_DocumentAttributes_var; private object __mt_WeakDelegate_var; private object __mt_OutlineRoot_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl DocumentUrl { [Export("documentURL")] get { return (NSUrl)(__mt_DocumentUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentURLHandle))))); } } public virtual NSDictionary DocumentAttributes { [Export("documentAttributes")] get { return (NSDictionary)(__mt_DocumentAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentAttributesHandle))))); } [Export("setDocumentAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentAttributes_Handle, value.Handle); } __mt_DocumentAttributes_var = value; } } public virtual int MajorVersion { [Export("majorVersion")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMajorVersionHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMajorVersionHandle); } } public virtual int MinorVersion { [Export("minorVersion")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMinorVersionHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMinorVersionHandle); } } public virtual bool IsEncrypted { [Export("isEncrypted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEncryptedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEncryptedHandle); } } public virtual bool IsLocked { [Export("isLocked")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLockedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLockedHandle); } } public virtual bool AllowsPrinting { [Export("allowsPrinting")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsPrintingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsPrintingHandle); } } public virtual bool AllowsCopying { [Export("allowsCopying")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsCopyingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsCopyingHandle); } } public virtual PdfDocumentPermissions PermissionsStatus { [Export("permissionsStatus")] get { if (IsDirectBinding) { return (PdfDocumentPermissions)Messaging.int_objc_msgSend(base.Handle, selPermissionsStatusHandle); } return (PdfDocumentPermissions)Messaging.int_objc_msgSendSuper(base.SuperHandle, selPermissionsStatusHandle); } } public virtual string Text { [Export("string")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public PdfDocumentDelegate Delegate { get { return WeakDelegate as PdfDocumentDelegate; } set { WeakDelegate = value; } } public virtual PdfOutline OutlineRoot { [Export("outlineRoot")] get { return (PdfOutline)(__mt_OutlineRoot_var = ((!IsDirectBinding) ? ((PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutlineRootHandle))) : ((PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutlineRootHandle))))); } [Export("setOutlineRoot:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutlineRoot_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutlineRoot_Handle, value.Handle); } __mt_OutlineRoot_var = value; } } public virtual int PageCount { [Export("pageCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selPageCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selPageCountHandle); } } public virtual Class PageClass { [Export("pageClass")] get { if (IsDirectBinding) { return new Class(Messaging.IntPtr_objc_msgSend(base.Handle, selPageClassHandle)); } return new Class(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageClassHandle)); } } public virtual bool IsFinding { [Export("isFinding")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsFindingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsFindingHandle); } } public ClassForAnnotationClassDelegate ClassForAnnotationClass { get { return EnsurePdfDocumentDelegate().classForAnnotationClass; } set { EnsurePdfDocumentDelegate().classForAnnotationClass = value; } } public event EventHandler DidMatchString { add { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.didMatchString = (EventHandler)System.Delegate.Combine(pdfDocumentDelegate.didMatchString, value); } remove { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.didMatchString = (EventHandler)System.Delegate.Remove(pdfDocumentDelegate.didMatchString, value); } } public event EventHandler FindFinished { add { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.findFinished = (EventHandler)System.Delegate.Combine(pdfDocumentDelegate.findFinished, value); } remove { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.findFinished = (EventHandler)System.Delegate.Remove(pdfDocumentDelegate.findFinished, value); } } public event EventHandler PageFindStarted { add { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.pageFindStarted = (EventHandler)System.Delegate.Combine(pdfDocumentDelegate.pageFindStarted, value); } remove { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.pageFindStarted = (EventHandler)System.Delegate.Remove(pdfDocumentDelegate.pageFindStarted, value); } } public event EventHandler PageFindFinished { add { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.pageFindFinished = (EventHandler)System.Delegate.Combine(pdfDocumentDelegate.pageFindFinished, value); } remove { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.pageFindFinished = (EventHandler)System.Delegate.Remove(pdfDocumentDelegate.pageFindFinished, value); } } public event EventHandler MatchFound { add { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.matchFound = (EventHandler)System.Delegate.Combine(pdfDocumentDelegate.matchFound, value); } remove { _PdfDocumentDelegate pdfDocumentDelegate = EnsurePdfDocumentDelegate(); pdfDocumentDelegate.matchFound = (EventHandler)System.Delegate.Remove(pdfDocumentDelegate.matchFound, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfDocument() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfDocument(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDocument(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDocument(IntPtr handle) : base(handle) { } [Export("initWithURL:")] public PdfDocument(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("initWithData:")] public PdfDocument(NSData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } [Export("unlockWithPassword:")] public virtual bool Unlock(string password) { if (password == null) { throw new ArgumentNullException("password"); } IntPtr arg = NSString.CreateNative(password); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selUnlockWithPassword_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selUnlockWithPassword_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("dataRepresentation")] public virtual NSData GetDataRepresentation() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataRepresentationHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataRepresentationHandle)); } [Export("dataRepresentationWithOptions:")] public virtual NSData GetDataRepresentation(NSDictionary options) { if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selDataRepresentationWithOptions_Handle, options.Handle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selDataRepresentationWithOptions_Handle, options.Handle)); } [Export("writeToFile:")] public virtual bool Write(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToFile_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selWriteToFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("writeToFile:withOptions:")] public virtual bool Write(string path, NSDictionary options) { if (path == null) { throw new ArgumentNullException("path"); } if (options == null) { throw new ArgumentNullException("options"); } IntPtr arg = NSString.CreateNative(path); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteToFileWithOptions_Handle, arg, options.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteToFileWithOptions_Handle, arg, options.Handle)); NSString.ReleaseNative(arg); return result; } [Export("writeToURL:")] public virtual bool Write(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selWriteToURL_Handle, url.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteToURL_Handle, url.Handle); } [Export("writeToURL:withOptions:")] public virtual bool Write(NSUrl url, NSDictionary options) { if (url == null) { throw new ArgumentNullException("url"); } if (options == null) { throw new ArgumentNullException("options"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteToURLWithOptions_Handle, url.Handle, options.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteToURLWithOptions_Handle, url.Handle, options.Handle); } [Export("outlineItemForSelection:")] public virtual PdfOutline OutlineItem(PdfSelection selection) { if (selection == null) { throw new ArgumentNullException("selection"); } if (IsDirectBinding) { return (PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selOutlineItemForSelection_Handle, selection.Handle)); } return (PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selOutlineItemForSelection_Handle, selection.Handle)); } [Export("pageAtIndex:")] public virtual PdfPage GetPage(int index) { if (IsDirectBinding) { return (PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selPageAtIndex_Handle, index)); } return (PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selPageAtIndex_Handle, index)); } [Export("indexForPage:")] public virtual int GetPageIndex(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { return Messaging.int_objc_msgSend_IntPtr(base.Handle, selIndexForPage_Handle, page.Handle); } return Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selIndexForPage_Handle, page.Handle); } [Export("insertPage:atIndex:")] public virtual void InsertPage(PdfPage page, int index) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertPageAtIndex_Handle, page.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertPageAtIndex_Handle, page.Handle, index); } } [Export("removePageAtIndex:")] public virtual void RemovePage(int index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selRemovePageAtIndex_Handle, index); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selRemovePageAtIndex_Handle, index); } } [Export("exchangePageAtIndex:withPageAtIndex:")] public virtual void ExchangePages(int indexA, int indexB) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int_int(base.Handle, selExchangePageAtIndexWithPageAtIndex_Handle, indexA, indexB); } else { Messaging.void_objc_msgSendSuper_int_int(base.SuperHandle, selExchangePageAtIndexWithPageAtIndex_Handle, indexA, indexB); } } [Export("findString:withOptions:")] public virtual PdfSelection[] Find(string text, int options) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); PdfSelection[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selFindStringWithOptions_Handle, arg, options)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_int(base.Handle, selFindStringWithOptions_Handle, arg, options))); NSString.ReleaseNative(arg); return result; } [Export("beginFindString:withOptions:")] public virtual void FindAsync(string text, int options) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selBeginFindStringWithOptions_Handle, arg, options); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selBeginFindStringWithOptions_Handle, arg, options); } NSString.ReleaseNative(arg); } [Export("beginFindStrings:withOptions:")] public virtual void FindAsync(string[] text, int options) { if (text == null) { throw new ArgumentNullException("text"); } NSArray nSArray = NSArray.FromStrings(text); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selBeginFindStringsWithOptions_Handle, nSArray.Handle, options); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selBeginFindStringsWithOptions_Handle, nSArray.Handle, options); } nSArray.Dispose(); } [Export("findString:fromSelection:withOptions:")] public virtual PdfSelection Find(string text, PdfSelection selection, int options) { if (text == null) { throw new ArgumentNullException("text"); } if (selection == null) { throw new ArgumentNullException("selection"); } IntPtr arg = NSString.CreateNative(text); PdfSelection result = ((!IsDirectBinding) ? ((PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_int(base.SuperHandle, selFindStringFromSelectionWithOptions_Handle, arg, selection.Handle, options))) : ((PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_int(base.Handle, selFindStringFromSelectionWithOptions_Handle, arg, selection.Handle, options)))); NSString.ReleaseNative(arg); return result; } [Export("cancelFindString")] public virtual void CancelFind() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelFindStringHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelFindStringHandle); } } [Export("selectionForEntireDocument")] public virtual PdfSelection SelectEntireDocument() { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionForEntireDocumentHandle)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionForEntireDocumentHandle)); } [Export("selectionFromPage:atPoint:toPage:atPoint:")] public virtual PdfSelection GetSelection(PdfPage startPage, CGPoint startPoint, PdfPage endPage, CGPoint endPoint) { if (startPage == null) { throw new ArgumentNullException("startPage"); } if (endPage == null) { throw new ArgumentNullException("endPage"); } if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_CGPoint_IntPtr_CGPoint(base.Handle, selSelectionFromPageAtPointToPageAtPoint_Handle, startPage.Handle, startPoint, endPage.Handle, endPoint)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGPoint_IntPtr_CGPoint(base.SuperHandle, selSelectionFromPageAtPointToPageAtPoint_Handle, startPage.Handle, startPoint, endPage.Handle, endPoint)); } [Export("selectionFromPage:atCharacterIndex:toPage:atCharacterIndex:")] public virtual PdfSelection GetSelection(PdfPage startPage, int startCharIndex, PdfPage endPage, int endCharIndex) { if (startPage == null) { throw new ArgumentNullException("startPage"); } if (endPage == null) { throw new ArgumentNullException("endPage"); } if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_int_IntPtr_int(base.Handle, selSelectionFromPageAtCharacterIndexToPageAtCharacterIndex_Handle, startPage.Handle, startCharIndex, endPage.Handle, endCharIndex)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_int_IntPtr_int(base.SuperHandle, selSelectionFromPageAtCharacterIndexToPageAtCharacterIndex_Handle, startPage.Handle, startCharIndex, endPage.Handle, endCharIndex)); } private _PdfDocumentDelegate EnsurePdfDocumentDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _PdfDocumentDelegate)) { nSObject = (WeakDelegate = new _PdfDocumentDelegate()); } return (_PdfDocumentDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DocumentUrl_var = null; __mt_DocumentAttributes_var = null; __mt_WeakDelegate_var = null; __mt_OutlineRoot_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDocumentDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PdfDocumentDelegate", true)] [Model] public class PdfDocumentDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfDocumentDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfDocumentDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDocumentDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfDocumentDelegate(IntPtr handle) : base(handle) { } [Export("didMatchString:")] public virtual void DidMatchString(PdfSelection sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("classForAnnotationClass:")] public virtual Class ClassForAnnotationClass(Class sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("documentDidEndDocumentFind:")] public virtual void FindFinished(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("documentDidBeginPageFind:")] public virtual void PageFindStarted(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("documentDidEndPageFind:")] public virtual void PageFindFinished(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("documentDidFindMatch:")] public virtual void MatchFound(NSNotification notification) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfDocumentPermissions.cs ================================================ namespace PdfKit; public enum PdfDocumentPermissions { None, User, Owner } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfLineStyle.cs ================================================ namespace PdfKit; public enum PdfLineStyle { None, Square, Circle, Diamond, OpenArrow, ClosedArrow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfMarkupType.cs ================================================ namespace PdfKit; public enum PdfMarkupType { Highlight, StrikeOut, Underline } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfOutline.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFOutline", true)] public class PdfOutline : NSObject { private static readonly IntPtr selDocumentHandle = Selector.GetHandle("document"); private static readonly IntPtr selParentHandle = Selector.GetHandle("parent"); private static readonly IntPtr selNumberOfChildrenHandle = Selector.GetHandle("numberOfChildren"); private static readonly IntPtr selIndexHandle = Selector.GetHandle("index"); private static readonly IntPtr selLabelHandle = Selector.GetHandle("label"); private static readonly IntPtr selSetLabel_Handle = Selector.GetHandle("setLabel:"); private static readonly IntPtr selIsOpenHandle = Selector.GetHandle("isOpen"); private static readonly IntPtr selSetIsOpen_Handle = Selector.GetHandle("setIsOpen:"); private static readonly IntPtr selDestinationHandle = Selector.GetHandle("destination"); private static readonly IntPtr selSetDestination_Handle = Selector.GetHandle("setDestination:"); private static readonly IntPtr selActionHandle = Selector.GetHandle("action"); private static readonly IntPtr selSetAction_Handle = Selector.GetHandle("setAction:"); private static readonly IntPtr selChildAtIndex_Handle = Selector.GetHandle("childAtIndex:"); private static readonly IntPtr selInsertChildAtIndex_Handle = Selector.GetHandle("insertChild:atIndex:"); private static readonly IntPtr selRemoveFromParentHandle = Selector.GetHandle("removeFromParent"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFOutline"); private object __mt_Document_var; private object __mt_Parent_var; private object __mt_Destination_var; private object __mt_Action_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfDocument Document { [Export("document")] get { return (PdfDocument)(__mt_Document_var = ((!IsDirectBinding) ? ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentHandle))) : ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentHandle))))); } } public virtual PdfOutline Parent { [Export("parent")] get { return (PdfOutline)(__mt_Parent_var = ((!IsDirectBinding) ? ((PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentHandle))) : ((PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentHandle))))); } } public virtual int ChildrenCount { [Export("numberOfChildren")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfChildrenHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfChildrenHandle); } } public virtual int Index { [Export("index")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selIndexHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selIndexHandle); } } public virtual string Label { [Export("label")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLabelHandle)); } [Export("setLabel:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLabel_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLabel_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool IsOpen { [Export("isOpen")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpenHandle); } [Export("setIsOpen:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIsOpen_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIsOpen_Handle, value); } } } public virtual PdfDestination Destination { [Export("destination")] get { return (PdfDestination)(__mt_Destination_var = ((!IsDirectBinding) ? ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDestinationHandle))) : ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDestinationHandle))))); } [Export("setDestination:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDestination_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDestination_Handle, value.Handle); } __mt_Destination_var = value; } } public virtual PdfAction Action { [Export("action")] get { return (PdfAction)(__mt_Action_var = ((!IsDirectBinding) ? ((PdfAction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActionHandle))) : ((PdfAction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selActionHandle))))); } [Export("setAction:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAction_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAction_Handle, value.Handle); } __mt_Action_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfOutline() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfOutline(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfOutline(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfOutline(IntPtr handle) : base(handle) { } [Export("childAtIndex:")] public virtual PdfOutline Child(int index) { if (IsDirectBinding) { return (PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selChildAtIndex_Handle, index)); } return (PdfOutline)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selChildAtIndex_Handle, index)); } [Export("insertChild:atIndex:")] public virtual void InsertChild(PdfOutline child, int index) { if (child == null) { throw new ArgumentNullException("child"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selInsertChildAtIndex_Handle, child.Handle, index); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selInsertChildAtIndex_Handle, child.Handle, index); } } [Export("removeFromParent")] public virtual void RemoveFromParent() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveFromParentHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveFromParentHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Document_var = null; __mt_Parent_var = null; __mt_Destination_var = null; __mt_Action_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfPage.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFPage", true)] public class PdfPage : NSObject { private static readonly IntPtr selDocumentHandle = Selector.GetHandle("document"); private static readonly IntPtr selLabelHandle = Selector.GetHandle("label"); private static readonly IntPtr selRotationHandle = Selector.GetHandle("rotation"); private static readonly IntPtr selSetRotation_Handle = Selector.GetHandle("setRotation:"); private static readonly IntPtr selAnnotationsHandle = Selector.GetHandle("annotations"); private static readonly IntPtr selDisplaysAnnotationsHandle = Selector.GetHandle("displaysAnnotations"); private static readonly IntPtr selSetDisplaysAnnotations_Handle = Selector.GetHandle("setDisplaysAnnotations:"); private static readonly IntPtr selNumberOfCharactersHandle = Selector.GetHandle("numberOfCharacters"); private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selAttributedStringHandle = Selector.GetHandle("attributedString"); private static readonly IntPtr selDataRepresentationHandle = Selector.GetHandle("dataRepresentation"); private static readonly IntPtr selInitWithImage_Handle = Selector.GetHandle("initWithImage:"); private static readonly IntPtr selBoundsForBox_Handle = Selector.GetHandle("boundsForBox:"); private static readonly IntPtr selSetBoundsForBox_Handle = Selector.GetHandle("setBounds:forBox:"); private static readonly IntPtr selAddAnnotation_Handle = Selector.GetHandle("addAnnotation:"); private static readonly IntPtr selRemoveAnnotation_Handle = Selector.GetHandle("removeAnnotation:"); private static readonly IntPtr selAnnotationAtPoint_Handle = Selector.GetHandle("annotationAtPoint:"); private static readonly IntPtr selDrawWithBox_Handle = Selector.GetHandle("drawWithBox:"); private static readonly IntPtr selTransformContextForBox_Handle = Selector.GetHandle("transformContextForBox:"); private static readonly IntPtr selCharacterBoundsAtIndex_Handle = Selector.GetHandle("characterBoundsAtIndex:"); private static readonly IntPtr selCharacterIndexAtPoint_Handle = Selector.GetHandle("characterIndexAtPoint:"); private static readonly IntPtr selSelectionForRect_Handle = Selector.GetHandle("selectionForRect:"); private static readonly IntPtr selSelectionForWordAtPoint_Handle = Selector.GetHandle("selectionForWordAtPoint:"); private static readonly IntPtr selSelectionForLineAtPoint_Handle = Selector.GetHandle("selectionForLineAtPoint:"); private static readonly IntPtr selSelectionFromPointToPoint_Handle = Selector.GetHandle("selectionFromPoint:toPoint:"); private static readonly IntPtr selSelectionForRange_Handle = Selector.GetHandle("selectionForRange:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFPage"); private object __mt_Document_var; private object __mt_Annotations_var; private object __mt_AttributedString_var; private object __mt_DataRepresentation_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfDocument Document { [Export("document")] get { return (PdfDocument)(__mt_Document_var = ((!IsDirectBinding) ? ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentHandle))) : ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentHandle))))); } } public virtual string Label { [Export("label")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLabelHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLabelHandle)); } } public virtual long Rotation { [Export("rotation")] get { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend(base.Handle, selRotationHandle); } return Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selRotationHandle); } [Export("setRotation:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(base.Handle, selSetRotation_Handle, value); } else { Messaging.void_objc_msgSendSuper_Int64(base.SuperHandle, selSetRotation_Handle, value); } } } public virtual PdfAnnotation[] Annotations { [Export("annotations")] get { return (PdfAnnotation[])(__mt_Annotations_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnnotationsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAnnotationsHandle)))); } } public virtual bool DisplaysAnnotations { [Export("displaysAnnotations")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysAnnotationsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysAnnotationsHandle); } [Export("setDisplaysAnnotations:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysAnnotations_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysAnnotations_Handle, value); } } } public virtual ulong CharacterCount { [Export("numberOfCharacters")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selNumberOfCharactersHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selNumberOfCharactersHandle); } } public virtual string Text { [Export("string")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } } public virtual NSAttributedString AttributedString { [Export("attributedString")] get { return (NSAttributedString)(__mt_AttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedStringHandle))))); } } public virtual NSData DataRepresentation { [Export("dataRepresentation")] get { return (NSData)(__mt_DataRepresentation_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataRepresentationHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataRepresentationHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfPage() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfPage(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfPage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfPage(IntPtr handle) : base(handle) { } [Export("initWithImage:")] public PdfPage(NSImage image) : base(NSObjectFlag.Empty) { if (image == null) { throw new ArgumentNullException("image"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithImage_Handle, image.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithImage_Handle, image.Handle); } } [Export("boundsForBox:")] public virtual CGRect GetBoundsForBox(PdfDisplayBox box) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_int(out retval, base.Handle, selBoundsForBox_Handle, (int)box); } else { Messaging.CGRect_objc_msgSendSuper_stret_int(out retval, base.SuperHandle, selBoundsForBox_Handle, (int)box); } return retval; } [Export("setBounds:forBox:")] public virtual void SetBoundsForBox(CGRect bounds, PdfDisplayBox box) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_int(base.Handle, selSetBoundsForBox_Handle, bounds, (int)box); } else { Messaging.void_objc_msgSendSuper_CGRect_int(base.SuperHandle, selSetBoundsForBox_Handle, bounds, (int)box); } } [Export("addAnnotation:")] public virtual void AddAnnotation(PdfAnnotation annotation) { if (annotation == null) { throw new ArgumentNullException("annotation"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddAnnotation_Handle, annotation.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddAnnotation_Handle, annotation.Handle); } } [Export("removeAnnotation:")] public virtual void RemoveAnnotation(PdfAnnotation annotation) { if (annotation == null) { throw new ArgumentNullException("annotation"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAnnotation_Handle, annotation.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAnnotation_Handle, annotation.Handle); } } [Export("annotationAtPoint:")] public virtual PdfAnnotation GetAnnotation(CGPoint point) { if (IsDirectBinding) { return (PdfAnnotation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selAnnotationAtPoint_Handle, point)); } return (PdfAnnotation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selAnnotationAtPoint_Handle, point)); } [Export("drawWithBox:")] public virtual void Draw(PdfDisplayBox box) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selDrawWithBox_Handle, (int)box); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selDrawWithBox_Handle, (int)box); } } [Export("transformContextForBox:")] public virtual void TransformContext(PdfDisplayBox box) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selTransformContextForBox_Handle, (int)box); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selTransformContextForBox_Handle, (int)box); } } [Export("characterBoundsAtIndex:")] public virtual CGRect GetCharacterBounds(long index) { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_Int64(out retval, base.Handle, selCharacterBoundsAtIndex_Handle, index); } else { Messaging.CGRect_objc_msgSendSuper_stret_Int64(out retval, base.SuperHandle, selCharacterBoundsAtIndex_Handle, index); } return retval; } [Export("characterIndexAtPoint:")] public virtual long GetCharacterIndex(CGPoint point) { if (IsDirectBinding) { return Messaging.Int64_objc_msgSend_CGPoint(base.Handle, selCharacterIndexAtPoint_Handle, point); } return Messaging.Int64_objc_msgSendSuper_CGPoint(base.SuperHandle, selCharacterIndexAtPoint_Handle, point); } [Export("selectionForRect:")] public virtual PdfSelection GetSelection(CGRect rect) { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGRect(base.Handle, selSelectionForRect_Handle, rect)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGRect(base.SuperHandle, selSelectionForRect_Handle, rect)); } [Export("selectionForWordAtPoint:")] public virtual PdfSelection SelectWord(CGPoint point) { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selSelectionForWordAtPoint_Handle, point)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selSelectionForWordAtPoint_Handle, point)); } [Export("selectionForLineAtPoint:")] public virtual PdfSelection SelectLine(CGPoint point) { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selSelectionForLineAtPoint_Handle, point)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selSelectionForLineAtPoint_Handle, point)); } [Export("selectionFromPoint:toPoint:")] public virtual PdfSelection GetSelection(CGPoint startPoint, CGPoint endPoint) { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint_CGPoint(base.Handle, selSelectionFromPointToPoint_Handle, startPoint, endPoint)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint_CGPoint(base.SuperHandle, selSelectionFromPointToPoint_Handle, startPoint, endPoint)); } [Export("selectionForRange:")] public virtual PdfSelection GetSelection(NSRange range) { if (IsDirectBinding) { return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_NSRange(base.Handle, selSelectionForRange_Handle, range)); } return (PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_NSRange(base.SuperHandle, selSelectionForRange_Handle, range)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Document_var = null; __mt_Annotations_var = null; __mt_AttributedString_var = null; __mt_DataRepresentation_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfPrintScalingMode.cs ================================================ namespace PdfKit; public enum PdfPrintScalingMode { None, ToFit, DownToFit } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfSelection.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFSelection", true)] public class PdfSelection : NSObject { private static readonly IntPtr selPagesHandle = Selector.GetHandle("pages"); private static readonly IntPtr selColorHandle = Selector.GetHandle("color"); private static readonly IntPtr selSetColor_Handle = Selector.GetHandle("setColor:"); private static readonly IntPtr selStringHandle = Selector.GetHandle("string"); private static readonly IntPtr selAttributedStringHandle = Selector.GetHandle("attributedString"); private static readonly IntPtr selInitWithDocument_Handle = Selector.GetHandle("initWithDocument:"); private static readonly IntPtr selBoundsForPage_Handle = Selector.GetHandle("boundsForPage:"); private static readonly IntPtr selSelectionsByLineHandle = Selector.GetHandle("selectionsByLine"); private static readonly IntPtr selAddSelection_Handle = Selector.GetHandle("addSelection:"); private static readonly IntPtr selAddSelections_Handle = Selector.GetHandle("addSelections:"); private static readonly IntPtr selExtendSelectionAtEnd_Handle = Selector.GetHandle("extendSelectionAtEnd:"); private static readonly IntPtr selExtendSelectionAtStart_Handle = Selector.GetHandle("extendSelectionAtStart:"); private static readonly IntPtr selDrawForPageActive_Handle = Selector.GetHandle("drawForPage:active:"); private static readonly IntPtr selDrawForPageWithBoxActive_Handle = Selector.GetHandle("drawForPage:withBox:active:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFSelection"); private object __mt_Pages_var; private object __mt_Color_var; private object __mt_AttributedString_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfPage[] Pages { [Export("pages")] get { return (PdfPage[])(__mt_Pages_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPagesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPagesHandle)))); } } public virtual NSColor Color { [Export("color")] get { return (NSColor)(__mt_Color_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selColorHandle))))); } [Export("setColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetColor_Handle, value.Handle); } __mt_Color_var = value; } } public virtual string Text { [Export("string")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringHandle)); } } public virtual NSAttributedString AttributedString { [Export("attributedString")] get { return (NSAttributedString)(__mt_AttributedString_var = ((!IsDirectBinding) ? ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributedStringHandle))) : ((NSAttributedString)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributedStringHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfSelection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfSelection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfSelection(IntPtr handle) : base(handle) { } [Export("initWithDocument:")] public PdfSelection(PdfDocument document) : base(NSObjectFlag.Empty) { if (document == null) { throw new ArgumentNullException("document"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithDocument_Handle, document.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithDocument_Handle, document.Handle); } } [Export("boundsForPage:")] public virtual CGRect GetBoundsForPage(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_IntPtr(out retval, base.Handle, selBoundsForPage_Handle, page.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_IntPtr(out retval, base.SuperHandle, selBoundsForPage_Handle, page.Handle); } return retval; } [Export("selectionsByLine")] public virtual PdfSelection[] SelectionsByLine() { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectionsByLineHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectionsByLineHandle)); } [Export("addSelection:")] public virtual void AddSelection(PdfSelection selection) { if (selection == null) { throw new ArgumentNullException("selection"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSelection_Handle, selection.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSelection_Handle, selection.Handle); } } [Export("addSelections:")] public virtual void AddSelections(PdfSelection[] selections) { if (selections == null) { throw new ArgumentNullException("selections"); } NSArray nSArray = NSArray.FromNSObjects(selections); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSelections_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSelections_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("extendSelectionAtEnd:")] public virtual void ExtendSelectionAtEnd(int succeed) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selExtendSelectionAtEnd_Handle, succeed); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selExtendSelectionAtEnd_Handle, succeed); } } [Export("extendSelectionAtStart:")] public virtual void ExtendSelectionAtStart(int precede) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selExtendSelectionAtStart_Handle, precede); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selExtendSelectionAtStart_Handle, precede); } } [Export("drawForPage:active:")] public virtual void Draw(PdfPage page, bool active) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selDrawForPageActive_Handle, page.Handle, active); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selDrawForPageActive_Handle, page.Handle, active); } } [Export("drawForPage:withBox:active:")] public virtual void Draw(PdfPage page, PdfDisplayBox box, bool active) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int_bool(base.Handle, selDrawForPageWithBoxActive_Handle, page.Handle, (int)box, active); } else { Messaging.void_objc_msgSendSuper_IntPtr_int_bool(base.SuperHandle, selDrawForPageWithBoxActive_Handle, page.Handle, (int)box, active); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Pages_var = null; __mt_Color_var = null; __mt_AttributedString_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfTextAnnotationIconType.cs ================================================ namespace PdfKit; public enum PdfTextAnnotationIconType { Comment, Key, Note, Help, NewParagraph, Paragraph, Insert } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfThumbnailView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFThumbnailView", true)] public class PdfThumbnailView : NSView { private static readonly IntPtr selPDFViewHandle = Selector.GetHandle("PDFView"); private static readonly IntPtr selSetPDFView_Handle = Selector.GetHandle("setPDFView:"); private static readonly IntPtr selThumbnailSizeHandle = Selector.GetHandle("thumbnailSize"); private static readonly IntPtr selSetThumbnailSize_Handle = Selector.GetHandle("setThumbnailSize:"); private static readonly IntPtr selMaximumNumberOfColumnsHandle = Selector.GetHandle("maximumNumberOfColumns"); private static readonly IntPtr selSetMaximumNumberOfColumns_Handle = Selector.GetHandle("setMaximumNumberOfColumns:"); private static readonly IntPtr selLabelFontHandle = Selector.GetHandle("labelFont"); private static readonly IntPtr selSetLabelFont_Handle = Selector.GetHandle("setLabelFont:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selAllowsDraggingHandle = Selector.GetHandle("allowsDragging"); private static readonly IntPtr selSetAllowsDragging_Handle = Selector.GetHandle("setAllowsDragging:"); private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr selSetAllowsMultipleSelection_Handle = Selector.GetHandle("setAllowsMultipleSelection:"); private static readonly IntPtr selSelectedPagesHandle = Selector.GetHandle("selectedPages"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFThumbnailView"); private object __mt_PdfView_var; private object __mt_LabelFont_var; private object __mt_BackgroundColor_var; private object __mt_SelectedPages_var; public override IntPtr ClassHandle => class_ptr; public virtual PdfView PdfView { [Export("PDFView")] get { return (PdfView)(__mt_PdfView_var = ((!IsDirectBinding) ? ((PdfView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPDFViewHandle))) : ((PdfView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPDFViewHandle))))); } [Export("setPDFView:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPDFView_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPDFView_Handle, value.Handle); } __mt_PdfView_var = value; } } public virtual CGSize ThumbnailSize { [Export("thumbnailSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selThumbnailSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selThumbnailSizeHandle); } [Export("setThumbnailSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetThumbnailSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetThumbnailSize_Handle, value); } } } public virtual int MaximumNumberOfColumns { [Export("maximumNumberOfColumns")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMaximumNumberOfColumnsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMaximumNumberOfColumnsHandle); } [Export("setMaximumNumberOfColumns:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMaximumNumberOfColumns_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMaximumNumberOfColumns_Handle, value); } } } public virtual NSFont LabelFont { [Export("labelFont")] get { return (NSFont)(__mt_LabelFont_var = ((!IsDirectBinding) ? ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLabelFontHandle))) : ((NSFont)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLabelFontHandle))))); } [Export("setLabelFont:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLabelFont_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLabelFont_Handle, value.Handle); } __mt_LabelFont_var = value; } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual bool AllowsDragging { [Export("allowsDragging")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDraggingHandle); } [Export("setAllowsDragging:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsDragging_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsDragging_Handle, value); } } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } [Export("setAllowsMultipleSelection:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsMultipleSelection_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsMultipleSelection_Handle, value); } } } public virtual PdfPage[] SelectedPages { [Export("selectedPages")] get { return (PdfPage[])(__mt_SelectedPages_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedPagesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedPagesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfThumbnailView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfThumbnailView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfThumbnailView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfThumbnailView(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PdfView_var = null; __mt_LabelFont_var = null; __mt_BackgroundColor_var = null; __mt_SelectedPages_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PDFView", true)] public class PdfView : NSView { [Register] private sealed class _PdfViewDelegate : PdfViewDelegate { internal PdfViewScale willChangeScaleFactor; internal EventHandler willClickOnLink; internal PdfViewTitle titleOfPrintJob; internal EventHandler performFind; internal EventHandler performGoToPage; internal EventHandler performPrint; internal EventHandler openPdf; [Preserve(Conditional = true)] public override float WillChangeScaleFactor(PdfView sender, float scale) { return willChangeScaleFactor?.Invoke(sender, scale) ?? scale; } [Preserve(Conditional = true)] public override void WillClickOnLink(PdfView sender, NSUrl url) { EventHandler eventHandler = willClickOnLink; if (eventHandler != null) { PdfViewUrlEventArgs e = new PdfViewUrlEventArgs(url); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override string TitleOfPrintJob(PdfView sender) { PdfViewTitle pdfViewTitle = titleOfPrintJob; if (pdfViewTitle != null) { return pdfViewTitle(sender); } return string.Empty; } [Preserve(Conditional = true)] public override void PerformFind(PdfView sender) { performFind?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void PerformGoToPage(PdfView sender) { performGoToPage?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void PerformPrint(PdfView sender) { performPrint?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void OpenPdf(PdfView sender, PdfActionRemoteGoTo action) { EventHandler eventHandler = openPdf; if (eventHandler != null) { PdfViewActionEventArgs e = new PdfViewActionEventArgs(action); eventHandler(sender, e); } } } public new static class Notifications { public static NSObject ObserveChangedHistory(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ChangedHistoryNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDocumentChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DocumentChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObservePageChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(PageChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveScaleChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ScaleChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveAnnotationHit(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(AnnotationHitNotification, delegate(NSNotification notification) { handler(null, new PdfViewAnnotationHitEventArgs(notification)); }); } public static NSObject ObserveCopyPermission(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(CopyPermissionNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveAnnotationWillHit(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(AnnotationWillHitNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveSelectionChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(SelectionChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDisplayModeChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DisplayModeChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } public static NSObject ObserveDisplayBoxChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(DisplayBoxChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selDocumentHandle = Selector.GetHandle("document"); private static readonly IntPtr selSetDocument_Handle = Selector.GetHandle("setDocument:"); private static readonly IntPtr selCanGoToFirstPageHandle = Selector.GetHandle("canGoToFirstPage"); private static readonly IntPtr selCanGoToLastPageHandle = Selector.GetHandle("canGoToLastPage"); private static readonly IntPtr selCanGoToNextPageHandle = Selector.GetHandle("canGoToNextPage"); private static readonly IntPtr selCanGoToPreviousPageHandle = Selector.GetHandle("canGoToPreviousPage"); private static readonly IntPtr selCanGoBackHandle = Selector.GetHandle("canGoBack"); private static readonly IntPtr selCanGoForwardHandle = Selector.GetHandle("canGoForward"); private static readonly IntPtr selCurrentPageHandle = Selector.GetHandle("currentPage"); private static readonly IntPtr selCurrentDestinationHandle = Selector.GetHandle("currentDestination"); private static readonly IntPtr selDisplayModeHandle = Selector.GetHandle("displayMode"); private static readonly IntPtr selSetDisplayMode_Handle = Selector.GetHandle("setDisplayMode:"); private static readonly IntPtr selDisplaysPageBreaksHandle = Selector.GetHandle("displaysPageBreaks"); private static readonly IntPtr selSetDisplaysPageBreaks_Handle = Selector.GetHandle("setDisplaysPageBreaks:"); private static readonly IntPtr selDisplayBoxHandle = Selector.GetHandle("displayBox"); private static readonly IntPtr selSetDisplayBox_Handle = Selector.GetHandle("setDisplayBox:"); private static readonly IntPtr selDisplaysAsBookHandle = Selector.GetHandle("displaysAsBook"); private static readonly IntPtr selSetDisplaysAsBook_Handle = Selector.GetHandle("setDisplaysAsBook:"); private static readonly IntPtr selShouldAntiAliasHandle = Selector.GetHandle("shouldAntiAlias"); private static readonly IntPtr selSetShouldAntiAlias_Handle = Selector.GetHandle("setShouldAntiAlias:"); private static readonly IntPtr selGreekingThresholdHandle = Selector.GetHandle("greekingThreshold"); private static readonly IntPtr selSetGreekingThreshold_Handle = Selector.GetHandle("setGreekingThreshold:"); private static readonly IntPtr selBackgroundColorHandle = Selector.GetHandle("backgroundColor"); private static readonly IntPtr selSetBackgroundColor_Handle = Selector.GetHandle("setBackgroundColor:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selScaleFactorHandle = Selector.GetHandle("scaleFactor"); private static readonly IntPtr selSetScaleFactor_Handle = Selector.GetHandle("setScaleFactor:"); private static readonly IntPtr selCanZoomInHandle = Selector.GetHandle("canZoomIn"); private static readonly IntPtr selCanZoomOutHandle = Selector.GetHandle("canZoomOut"); private static readonly IntPtr selAutoScalesHandle = Selector.GetHandle("autoScales"); private static readonly IntPtr selSetAutoScales_Handle = Selector.GetHandle("setAutoScales:"); private static readonly IntPtr selCurrentSelectionHandle = Selector.GetHandle("currentSelection"); private static readonly IntPtr selSetCurrentSelection_Handle = Selector.GetHandle("setCurrentSelection:"); private static readonly IntPtr selHighlightedSelectionsHandle = Selector.GetHandle("highlightedSelections"); private static readonly IntPtr selSetHighlightedSelections_Handle = Selector.GetHandle("setHighlightedSelections:"); private static readonly IntPtr selDocumentViewHandle = Selector.GetHandle("documentView"); private static readonly IntPtr selAllowsDraggingHandle = Selector.GetHandle("allowsDragging"); private static readonly IntPtr selSetAllowsDragging_Handle = Selector.GetHandle("setAllowsDragging:"); private static readonly IntPtr selVisiblePagesHandle = Selector.GetHandle("visiblePages"); private static readonly IntPtr selEnableDataDetectorsHandle = Selector.GetHandle("enableDataDetectors"); private static readonly IntPtr selSetEnableDataDetectors_Handle = Selector.GetHandle("setEnableDataDetectors:"); private static readonly IntPtr selGoToFirstPage_Handle = Selector.GetHandle("goToFirstPage:"); private static readonly IntPtr selGoToLastPage_Handle = Selector.GetHandle("goToLastPage:"); private static readonly IntPtr selGoToNextPage_Handle = Selector.GetHandle("goToNextPage:"); private static readonly IntPtr selGoToPreviousPage_Handle = Selector.GetHandle("goToPreviousPage:"); private static readonly IntPtr selGoBack_Handle = Selector.GetHandle("goBack:"); private static readonly IntPtr selGoForward_Handle = Selector.GetHandle("goForward:"); private static readonly IntPtr selGoToPage_Handle = Selector.GetHandle("goToPage:"); private static readonly IntPtr selGoToDestination_Handle = Selector.GetHandle("goToDestination:"); private static readonly IntPtr selGoToSelection_Handle = Selector.GetHandle("goToSelection:"); private static readonly IntPtr selGoToRectOnPage_Handle = Selector.GetHandle("goToRect:onPage:"); private static readonly IntPtr selTakeBackgroundColorFrom_Handle = Selector.GetHandle("takeBackgroundColorFrom:"); private static readonly IntPtr selZoomIn_Handle = Selector.GetHandle("zoomIn:"); private static readonly IntPtr selZoomOut_Handle = Selector.GetHandle("zoomOut:"); private static readonly IntPtr selAreaOfInterestForMouse_Handle = Selector.GetHandle("areaOfInterestForMouse:"); private static readonly IntPtr selSetCursorForAreaOfInterest_Handle = Selector.GetHandle("setCursorForAreaOfInterest:"); private static readonly IntPtr selPerformAction_Handle = Selector.GetHandle("performAction:"); private static readonly IntPtr selSetCurrentSelectionAnimate_Handle = Selector.GetHandle("setCurrentSelection:animate:"); private static readonly IntPtr selClearSelectionHandle = Selector.GetHandle("clearSelection"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selScrollSelectionToVisible_Handle = Selector.GetHandle("scrollSelectionToVisible:"); private static readonly IntPtr selTakePasswordFrom_Handle = Selector.GetHandle("takePasswordFrom:"); private static readonly IntPtr selDrawPage_Handle = Selector.GetHandle("drawPage:"); private static readonly IntPtr selDrawPagePost_Handle = Selector.GetHandle("drawPagePost:"); private static readonly IntPtr selCopy_Handle = Selector.GetHandle("copy:"); private static readonly IntPtr selPrintWithInfoAutoRotate_Handle = Selector.GetHandle("printWithInfo:autoRotate:"); private static readonly IntPtr selPrintWithInfoAutoRotatePageScaling_Handle = Selector.GetHandle("printWithInfo:autoRotate:pageScaling:"); private static readonly IntPtr selPageForPointNearest_Handle = Selector.GetHandle("pageForPoint:nearest:"); private static readonly IntPtr selConvertPointToPage_Handle = Selector.GetHandle("convertPoint:toPage:"); private static readonly IntPtr selConvertRectToPage_Handle = Selector.GetHandle("convertRect:toPage:"); private static readonly IntPtr selConvertPointFromPage_Handle = Selector.GetHandle("convertPoint:fromPage:"); private static readonly IntPtr selConvertRectFromPage_Handle = Selector.GetHandle("convertRect:fromPage:"); private static readonly IntPtr selLayoutDocumentViewHandle = Selector.GetHandle("layoutDocumentView"); private static readonly IntPtr selAnnotationsChangedOnPage_Handle = Selector.GetHandle("annotationsChangedOnPage:"); private static readonly IntPtr selRowSizeForPage_Handle = Selector.GetHandle("rowSizeForPage:"); private static readonly IntPtr class_ptr = Class.GetHandle("PDFView"); private object __mt_Document_var; private object __mt_CurrentPage_var; private object __mt_CurrentDestination_var; private object __mt_BackgroundColor_var; private object __mt_WeakDelegate_var; private object __mt_CurrentSelection_var; private object __mt_HighlightedSelections_var; private object __mt_DocumentView_var; private object __mt_VisiblePages_var; private static NSString _ChangedHistoryNotification; private static NSString _DocumentChangedNotification; private static NSString _PageChangedNotification; private static NSString _ScaleChangedNotification; private static NSString _AnnotationHitNotification; private static NSString _CopyPermissionNotification; private static NSString _AnnotationWillHitNotification; private static NSString _SelectionChangedNotification; private static NSString _DisplayModeChangedNotification; private static NSString _DisplayBoxChangedNotification; public override IntPtr ClassHandle => class_ptr; public virtual PdfDocument Document { [Export("document")] get { return (PdfDocument)(__mt_Document_var = ((!IsDirectBinding) ? ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentHandle))) : ((PdfDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentHandle))))); } [Export("setDocument:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocument_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocument_Handle, value.Handle); } __mt_Document_var = value; } } public virtual bool CanGoToFirstPage { [Export("canGoToFirstPage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoToFirstPageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoToFirstPageHandle); } } public virtual bool CanGoToLastPage { [Export("canGoToLastPage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoToLastPageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoToLastPageHandle); } } public virtual bool CanGoToNextPage { [Export("canGoToNextPage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoToNextPageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoToNextPageHandle); } } public virtual bool CanGoToPreviousPage { [Export("canGoToPreviousPage")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoToPreviousPageHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoToPreviousPageHandle); } } public virtual bool CanGoBack { [Export("canGoBack")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoBackHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoBackHandle); } } public virtual bool CanGoForward { [Export("canGoForward")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoForwardHandle); } } public virtual PdfPage CurrentPage { [Export("currentPage")] get { return (PdfPage)(__mt_CurrentPage_var = ((!IsDirectBinding) ? ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentPageHandle))) : ((PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentPageHandle))))); } } public virtual PdfDestination CurrentDestination { [Export("currentDestination")] get { return (PdfDestination)(__mt_CurrentDestination_var = ((!IsDirectBinding) ? ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentDestinationHandle))) : ((PdfDestination)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentDestinationHandle))))); } } public virtual PdfDisplayMode DisplayMode { [Export("displayMode")] get { if (IsDirectBinding) { return (PdfDisplayMode)Messaging.int_objc_msgSend(base.Handle, selDisplayModeHandle); } return (PdfDisplayMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selDisplayModeHandle); } [Export("setDisplayMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetDisplayMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetDisplayMode_Handle, (int)value); } } } public virtual bool DisplaysPageBreaks { [Export("displaysPageBreaks")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysPageBreaksHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysPageBreaksHandle); } [Export("setDisplaysPageBreaks:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysPageBreaks_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysPageBreaks_Handle, value); } } } public virtual PdfDisplayBox DisplayBox { [Export("displayBox")] get { if (IsDirectBinding) { return (PdfDisplayBox)Messaging.int_objc_msgSend(base.Handle, selDisplayBoxHandle); } return (PdfDisplayBox)Messaging.int_objc_msgSendSuper(base.SuperHandle, selDisplayBoxHandle); } [Export("setDisplayBox:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetDisplayBox_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetDisplayBox_Handle, (int)value); } } } public virtual bool DisplaysAsBook { [Export("displaysAsBook")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisplaysAsBookHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisplaysAsBookHandle); } [Export("setDisplaysAsBook:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisplaysAsBook_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisplaysAsBook_Handle, value); } } } public virtual bool ShouldAntiAlias { [Export("shouldAntiAlias")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldAntiAliasHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldAntiAliasHandle); } [Export("setShouldAntiAlias:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldAntiAlias_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldAntiAlias_Handle, value); } } } public virtual float GreekingThreshold { [Export("greekingThreshold")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selGreekingThresholdHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selGreekingThresholdHandle); } [Export("setGreekingThreshold:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetGreekingThreshold_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetGreekingThreshold_Handle, value); } } } public virtual NSColor BackgroundColor { [Export("backgroundColor")] get { return (NSColor)(__mt_BackgroundColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackgroundColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackgroundColorHandle))))); } [Export("setBackgroundColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBackgroundColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBackgroundColor_Handle, value.Handle); } __mt_BackgroundColor_var = value; } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public PdfViewDelegate Delegate { get { return WeakDelegate as PdfViewDelegate; } set { WeakDelegate = value; } } public virtual float ScaleFactor { [Export("scaleFactor")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selScaleFactorHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selScaleFactorHandle); } [Export("setScaleFactor:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetScaleFactor_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetScaleFactor_Handle, value); } } } public virtual bool CanZoomIn { [Export("canZoomIn")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanZoomInHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanZoomInHandle); } } public virtual bool CanZoomOut { [Export("canZoomOut")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanZoomOutHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanZoomOutHandle); } } public virtual bool AutoScales { [Export("autoScales")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutoScalesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutoScalesHandle); } [Export("setAutoScales:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutoScales_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutoScales_Handle, value); } } } public virtual PdfSelection CurrentSelection { [Export("currentSelection")] get { return (PdfSelection)(__mt_CurrentSelection_var = ((!IsDirectBinding) ? ((PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentSelectionHandle))) : ((PdfSelection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentSelectionHandle))))); } [Export("setCurrentSelection:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCurrentSelection_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCurrentSelection_Handle, value.Handle); } __mt_CurrentSelection_var = value; } } public virtual PdfSelection[] HighlightedSelections { [Export("highlightedSelections")] get { return (PdfSelection[])(__mt_HighlightedSelections_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHighlightedSelectionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHighlightedSelectionsHandle)))); } [Export("setHighlightedSelections:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromNSObjects(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHighlightedSelections_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHighlightedSelections_Handle, nSArray.Handle); } nSArray.Dispose(); __mt_HighlightedSelections_var = value; } } public virtual NSView DocumentView { [Export("documentView")] get { return (NSView)(__mt_DocumentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentViewHandle))))); } } public virtual bool AllowsDragging { [Export("allowsDragging")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDraggingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDraggingHandle); } [Export("setAllowsDragging:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsDragging_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsDragging_Handle, value); } } } public virtual PdfPage[] VisiblePages { [Export("visiblePages")] get { return (PdfPage[])(__mt_VisiblePages_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVisiblePagesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVisiblePagesHandle)))); } } public virtual bool EnableDataDetectors { [Export("enableDataDetectors")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selEnableDataDetectorsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selEnableDataDetectorsHandle); } [Export("setEnableDataDetectors:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnableDataDetectors_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnableDataDetectors_Handle, value); } } } [Field("PDFViewChangedHistoryNotification", "PdfKit")] public static NSString ChangedHistoryNotification { get { if (_ChangedHistoryNotification == null) { _ChangedHistoryNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewChangedHistoryNotification"); } return _ChangedHistoryNotification; } } [Field("PDFViewDocumentChangedNotification", "PdfKit")] public static NSString DocumentChangedNotification { get { if (_DocumentChangedNotification == null) { _DocumentChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewDocumentChangedNotification"); } return _DocumentChangedNotification; } } [Field("PDFViewPageChangedNotification", "PdfKit")] public static NSString PageChangedNotification { get { if (_PageChangedNotification == null) { _PageChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewPageChangedNotification"); } return _PageChangedNotification; } } [Field("PDFViewScaleChangedNotification", "PdfKit")] public static NSString ScaleChangedNotification { get { if (_ScaleChangedNotification == null) { _ScaleChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewScaleChangedNotification"); } return _ScaleChangedNotification; } } [Field("PDFViewAnnotationHitNotification", "PdfKit")] public static NSString AnnotationHitNotification { get { if (_AnnotationHitNotification == null) { _AnnotationHitNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewAnnotationHitNotification"); } return _AnnotationHitNotification; } } [Field("PDFViewCopyPermissionNotification", "PdfKit")] public static NSString CopyPermissionNotification { get { if (_CopyPermissionNotification == null) { _CopyPermissionNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewCopyPermissionNotification"); } return _CopyPermissionNotification; } } [Field("PDFViewAnnotationWillHitNotification", "PdfKit")] public static NSString AnnotationWillHitNotification { get { if (_AnnotationWillHitNotification == null) { _AnnotationWillHitNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewAnnotationWillHitNotification"); } return _AnnotationWillHitNotification; } } [Field("PDFViewSelectionChangedNotification", "PdfKit")] public static NSString SelectionChangedNotification { get { if (_SelectionChangedNotification == null) { _SelectionChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewSelectionChangedNotification"); } return _SelectionChangedNotification; } } [Field("PDFViewDisplayModeChangedNotification", "PdfKit")] public static NSString DisplayModeChangedNotification { get { if (_DisplayModeChangedNotification == null) { _DisplayModeChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewDisplayModeChangedNotification"); } return _DisplayModeChangedNotification; } } [Field("PDFViewDisplayBoxChangedNotification", "PdfKit")] public static NSString DisplayBoxChangedNotification { get { if (_DisplayBoxChangedNotification == null) { _DisplayBoxChangedNotification = Dlfcn.GetStringConstant(Libraries.PdfKit.Handle, "PDFViewDisplayBoxChangedNotification"); } return _DisplayBoxChangedNotification; } } public PdfViewScale WillChangeScaleFactor { get { return EnsurePdfViewDelegate().willChangeScaleFactor; } set { EnsurePdfViewDelegate().willChangeScaleFactor = value; } } public PdfViewTitle TitleOfPrintJob { get { return EnsurePdfViewDelegate().titleOfPrintJob; } set { EnsurePdfViewDelegate().titleOfPrintJob = value; } } public event EventHandler WillClickOnLink { add { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.willClickOnLink = (EventHandler)System.Delegate.Combine(pdfViewDelegate.willClickOnLink, value); } remove { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.willClickOnLink = (EventHandler)System.Delegate.Remove(pdfViewDelegate.willClickOnLink, value); } } public event EventHandler PerformFind { add { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performFind = (EventHandler)System.Delegate.Combine(pdfViewDelegate.performFind, value); } remove { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performFind = (EventHandler)System.Delegate.Remove(pdfViewDelegate.performFind, value); } } public event EventHandler PerformGoToPage { add { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performGoToPage = (EventHandler)System.Delegate.Combine(pdfViewDelegate.performGoToPage, value); } remove { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performGoToPage = (EventHandler)System.Delegate.Remove(pdfViewDelegate.performGoToPage, value); } } public event EventHandler PerformPrint { add { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performPrint = (EventHandler)System.Delegate.Combine(pdfViewDelegate.performPrint, value); } remove { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.performPrint = (EventHandler)System.Delegate.Remove(pdfViewDelegate.performPrint, value); } } public event EventHandler OpenPdf { add { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.openPdf = (EventHandler)System.Delegate.Combine(pdfViewDelegate.openPdf, value); } remove { _PdfViewDelegate pdfViewDelegate = EnsurePdfViewDelegate(); pdfViewDelegate.openPdf = (EventHandler)System.Delegate.Remove(pdfViewDelegate.openPdf, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfView(IntPtr handle) : base(handle) { } [Export("goToFirstPage:")] public virtual void GoToFirstPage(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToFirstPage_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToFirstPage_Handle, sender.Handle); } } [Export("goToLastPage:")] public virtual void GoToLastPage(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToLastPage_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToLastPage_Handle, sender.Handle); } } [Export("goToNextPage:")] public virtual void GoToNextPage(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToNextPage_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToNextPage_Handle, sender.Handle); } } [Export("goToPreviousPage:")] public virtual void GoToPreviousPage(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToPreviousPage_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToPreviousPage_Handle, sender.Handle); } } [Export("goBack:")] public virtual void GoBack(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoBack_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoBack_Handle, sender.Handle); } } [Export("goForward:")] public virtual void GoForward(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoForward_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoForward_Handle, sender.Handle); } } [Export("goToPage:")] public virtual void GoToPage(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToPage_Handle, page.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToPage_Handle, page.Handle); } } [Export("goToDestination:")] public virtual void GoToDestination(PdfDestination destination) { if (destination == null) { throw new ArgumentNullException("destination"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToDestination_Handle, destination.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToDestination_Handle, destination.Handle); } } [Export("goToSelection:")] public virtual void GoToSelection(PdfSelection selection) { if (selection == null) { throw new ArgumentNullException("selection"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToSelection_Handle, selection.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToSelection_Handle, selection.Handle); } } [Export("goToRect:onPage:")] public virtual void GoToRectangle(CGRect rect, PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_CGRect_IntPtr(base.Handle, selGoToRectOnPage_Handle, rect, page.Handle); } else { Messaging.void_objc_msgSendSuper_CGRect_IntPtr(base.SuperHandle, selGoToRectOnPage_Handle, rect, page.Handle); } } [Export("takeBackgroundColorFrom:")] public virtual void TakeBackgroundColor(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakeBackgroundColorFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakeBackgroundColorFrom_Handle, sender.Handle); } } [Export("zoomIn:")] public virtual void ZoomIn(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomIn_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomIn_Handle, sender.Handle); } } [Export("zoomOut:")] public virtual void ZoomOut(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selZoomOut_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selZoomOut_Handle, sender.Handle); } } [Export("areaOfInterestForMouse:")] public virtual PdfAreaOfInterest GetAreaOfInterest(NSEvent mouseEvent) { if (mouseEvent == null) { throw new ArgumentNullException("mouseEvent"); } if (IsDirectBinding) { return (PdfAreaOfInterest)Messaging.int_objc_msgSend_IntPtr(base.Handle, selAreaOfInterestForMouse_Handle, mouseEvent.Handle); } return (PdfAreaOfInterest)Messaging.int_objc_msgSendSuper_IntPtr(base.SuperHandle, selAreaOfInterestForMouse_Handle, mouseEvent.Handle); } [Export("setCursorForAreaOfInterest:")] public virtual void SetCursor(PdfAreaOfInterest area) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetCursorForAreaOfInterest_Handle, (int)area); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetCursorForAreaOfInterest_Handle, (int)area); } } [Export("performAction:")] public virtual void PerformAction(PdfAction action) { if (action == null) { throw new ArgumentNullException("action"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformAction_Handle, action.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformAction_Handle, action.Handle); } } [Export("setCurrentSelection:animate:")] public virtual void SetCurrentSelection(PdfSelection selection, bool animate) { if (selection == null) { throw new ArgumentNullException("selection"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selSetCurrentSelectionAnimate_Handle, selection.Handle, animate); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selSetCurrentSelectionAnimate_Handle, selection.Handle, animate); } } [Export("clearSelection")] public virtual void ClearSelection() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearSelectionHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearSelectionHandle); } } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender.Handle); } } [Export("scrollSelectionToVisible:")] public virtual void ScrollSelectionToVisible(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selScrollSelectionToVisible_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selScrollSelectionToVisible_Handle, sender.Handle); } } [Export("takePasswordFrom:")] public virtual void TakePasswordFrom(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTakePasswordFrom_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTakePasswordFrom_Handle, sender.Handle); } } [Export("drawPage:")] public virtual void DrawPage(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDrawPage_Handle, page.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDrawPage_Handle, page.Handle); } } [Export("drawPagePost:")] public virtual void DrawPagePost(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDrawPagePost_Handle, page.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDrawPagePost_Handle, page.Handle); } } [Export("copy:")] public virtual void Copy(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopy_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopy_Handle, sender.Handle); } } [Export("printWithInfo:autoRotate:")] public virtual void Print(NSPrintInfo printInfo, bool doRotate) { if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool(base.Handle, selPrintWithInfoAutoRotate_Handle, printInfo.Handle, doRotate); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selPrintWithInfoAutoRotate_Handle, printInfo.Handle, doRotate); } } [Export("printWithInfo:autoRotate:pageScaling:")] public virtual void Print(NSPrintInfo printInfo, bool doRotate, PdfPrintScalingMode scaleMode) { if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool_int(base.Handle, selPrintWithInfoAutoRotatePageScaling_Handle, printInfo.Handle, doRotate, (int)scaleMode); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool_int(base.SuperHandle, selPrintWithInfoAutoRotatePageScaling_Handle, printInfo.Handle, doRotate, (int)scaleMode); } } [Export("pageForPoint:nearest:")] public virtual PdfPage GetPage(CGPoint point, bool nearest) { if (IsDirectBinding) { return (PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint_bool(base.Handle, selPageForPointNearest_Handle, point, nearest)); } return (PdfPage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint_bool(base.SuperHandle, selPageForPointNearest_Handle, point, nearest)); } [Export("convertPoint:toPage:")] public virtual CGPoint ConvertPointToPage(CGPoint point, PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointToPage_Handle, point, page.Handle); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointToPage_Handle, point, page.Handle); } [Export("convertRect:toPage:")] public virtual CGRect ConvertRectangleToPage(CGRect rect, PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectToPage_Handle, rect, page.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectToPage_Handle, rect, page.Handle); } return retval; } [Export("convertPoint:fromPage:")] public virtual CGPoint ConvertPointFromPage(CGPoint point, PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { return Messaging.CGPoint_objc_msgSend_CGPoint_IntPtr(base.Handle, selConvertPointFromPage_Handle, point, page.Handle); } return Messaging.CGPoint_objc_msgSendSuper_CGPoint_IntPtr(base.SuperHandle, selConvertPointFromPage_Handle, point, page.Handle); } [Export("convertRect:fromPage:")] public virtual CGRect ConvertRectangleFromPage(CGRect rect, PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret_CGRect_IntPtr(out retval, base.Handle, selConvertRectFromPage_Handle, rect, page.Handle); } else { Messaging.CGRect_objc_msgSendSuper_stret_CGRect_IntPtr(out retval, base.SuperHandle, selConvertRectFromPage_Handle, rect, page.Handle); } return retval; } [Export("layoutDocumentView")] public virtual void LayoutDocumentView() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selLayoutDocumentViewHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selLayoutDocumentViewHandle); } } [Export("annotationsChangedOnPage:")] public virtual void AnnotationsChanged(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAnnotationsChangedOnPage_Handle, page.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAnnotationsChangedOnPage_Handle, page.Handle); } } [Export("rowSizeForPage:")] public virtual CGSize RowSize(PdfPage page) { if (page == null) { throw new ArgumentNullException("page"); } if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend_IntPtr(base.Handle, selRowSizeForPage_Handle, page.Handle); } return Messaging.CGSize_objc_msgSendSuper_IntPtr(base.SuperHandle, selRowSizeForPage_Handle, page.Handle); } private _PdfViewDelegate EnsurePdfViewDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _PdfViewDelegate)) { nSObject = (WeakDelegate = new _PdfViewDelegate()); } return (_PdfViewDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Document_var = null; __mt_CurrentPage_var = null; __mt_CurrentDestination_var = null; __mt_BackgroundColor_var = null; __mt_WeakDelegate_var = null; __mt_CurrentSelection_var = null; __mt_HighlightedSelections_var = null; __mt_DocumentView_var = null; __mt_VisiblePages_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewActionEventArgs.cs ================================================ using System; namespace PdfKit; public class PdfViewActionEventArgs : EventArgs { public PdfActionRemoteGoTo Action { get; set; } public PdfViewActionEventArgs(PdfActionRemoteGoTo action) { Action = action; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewAnnotationHitEventArgs.cs ================================================ using System; using Foundation; using ObjCRuntime; namespace PdfKit; public class PdfViewAnnotationHitEventArgs : NSNotificationEventArgs { private static IntPtr k0; public PdfAnnotation AnnotationHit { get { if (k0 == IntPtr.Zero) { k0 = Dlfcn.GetIntPtr(Libraries.PdfKit.Handle, "PDFAnnotationHit"); } IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0); if (intPtr == IntPtr.Zero) { return null; } return (PdfAnnotation)Runtime.GetNSObject(intPtr); } } public PdfViewAnnotationHitEventArgs(NSNotification notification) : base(notification) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace PdfKit; [Register("PdfViewDelegate", true)] [Model] public class PdfViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public PdfViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public PdfViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public PdfViewDelegate(IntPtr handle) : base(handle) { } [Export("PDFViewWillChangeScaleFactor:toScale:")] public virtual float WillChangeScaleFactor(PdfView sender, float scale) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewWillClickOnLink:withURL:")] public virtual void WillClickOnLink(PdfView sender, NSUrl url) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewPrintJobTitle:")] public virtual string TitleOfPrintJob(PdfView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewPerformFind:")] public virtual void PerformFind(PdfView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewPerformGoToPage:")] public virtual void PerformGoToPage(PdfView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewPerformPrint:")] public virtual void PerformPrint(PdfView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("PDFViewOpenPDF:forRemoteGoToAction:")] public virtual void OpenPdf(PdfView sender, PdfActionRemoteGoTo action) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewScale.cs ================================================ namespace PdfKit; public delegate float PdfViewScale(PdfView sender, float scale); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewTitle.cs ================================================ namespace PdfKit; public delegate string PdfViewTitle(PdfView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfViewUrlEventArgs.cs ================================================ using System; using Foundation; namespace PdfKit; public class PdfViewUrlEventArgs : EventArgs { public NSUrl Url { get; set; } public PdfViewUrlEventArgs(NSUrl url) { Url = url; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/PdfKit/PdfWidgetControlType.cs ================================================ namespace PdfKit; public enum PdfWidgetControlType { Unknown = -1, PushButton, RadioButton, CheckBox } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Properties/AssemblyInfo.cs ================================================ using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; //[assembly: CLSCompliant(true)] [assembly: AssemblyCopyright("https://github.com/mono/monomac/blob/master/AUTHORS")] [assembly: AssemblyDescription("Package Description")] ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureAudioPreviewOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureAudioPreviewOutput", true)] public class QTCaptureAudioPreviewOutput : QTCaptureOutput { private static readonly IntPtr selOutputDeviceUniqueIDHandle = Selector.GetHandle("outputDeviceUniqueID"); private static readonly IntPtr selSetOutputDeviceUniqueID_Handle = Selector.GetHandle("setOutputDeviceUniqueID:"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureAudioPreviewOutput"); public override IntPtr ClassHandle => class_ptr; public virtual string OutputDeviceUniqueID { [Export("outputDeviceUniqueID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputDeviceUniqueIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputDeviceUniqueIDHandle)); } [Export("setOutputDeviceUniqueID:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOutputDeviceUniqueID_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOutputDeviceUniqueID_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual float Volume { [Export("volume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureAudioPreviewOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureAudioPreviewOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureAudioPreviewOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureAudioPreviewOutput(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureConnection.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureConnection", true)] public class QTCaptureConnection : NSObject { private static readonly IntPtr selOwnerHandle = Selector.GetHandle("owner"); private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selFormatDescriptionHandle = Selector.GetHandle("formatDescription"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selConnectionAttributesHandle = Selector.GetHandle("connectionAttributes"); private static readonly IntPtr selSetConnectionAttributes_Handle = Selector.GetHandle("setConnectionAttributes:"); private static readonly IntPtr selAttributeIsReadOnly_Handle = Selector.GetHandle("attributeIsReadOnly:"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selSetAttributeForKey_Handle = Selector.GetHandle("setAttribute:forKey:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureConnection"); private object __mt_Owner_var; private object __mt_FormatDescription_var; private object __mt_ConnectionAttributes_var; private static NSString _FormatDescriptionWillChangeNotification; private static NSString _FormatDescriptionDidChangeNotification; private static NSString _AttributeWillChangeNotification; private static NSString _AttributeDidChangeNotification; private static NSString _ChangedAttributeKey; private static NSString _AudioAveragePowerLevelsAttribute; private static NSString _AudioPeakHoldLevelsAttribute; private static NSString _AudioMasterVolumeAttribute; private static NSString _AudioVolumesAttribute; private static NSString _EnabledAudioChannelsAttribute; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Owner { [Export("owner")] get { return (NSObject)(__mt_Owner_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerHandle)))); } } public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual QTFormatDescription FormatDescription { [Export("formatDescription")] get { return (QTFormatDescription)(__mt_FormatDescription_var = ((!IsDirectBinding) ? ((QTFormatDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionHandle))) : ((QTFormatDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionHandle))))); } } public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual NSDictionary ConnectionAttributes { [Export("connectionAttributes")] get { return (NSDictionary)(__mt_ConnectionAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionAttributesHandle))))); } [Export("setConnectionAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetConnectionAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetConnectionAttributes_Handle, value.Handle); } __mt_ConnectionAttributes_var = value; } } [Field("QTCaptureConnectionFormatDescriptionWillChangeNotification", "QTKit")] public static NSString FormatDescriptionWillChangeNotification { get { if (_FormatDescriptionWillChangeNotification == null) { _FormatDescriptionWillChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionFormatDescriptionWillChangeNotification"); } return _FormatDescriptionWillChangeNotification; } } [Field("QTCaptureConnectionFormatDescriptionDidChangeNotification", "QTKit")] public static NSString FormatDescriptionDidChangeNotification { get { if (_FormatDescriptionDidChangeNotification == null) { _FormatDescriptionDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionFormatDescriptionDidChangeNotification"); } return _FormatDescriptionDidChangeNotification; } } [Field("QTCaptureConnectionAttributeWillChangeNotification", "QTKit")] public static NSString AttributeWillChangeNotification { get { if (_AttributeWillChangeNotification == null) { _AttributeWillChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAttributeWillChangeNotification"); } return _AttributeWillChangeNotification; } } [Field("QTCaptureConnectionAttributeDidChangeNotification", "QTKit")] public static NSString AttributeDidChangeNotification { get { if (_AttributeDidChangeNotification == null) { _AttributeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAttributeDidChangeNotification"); } return _AttributeDidChangeNotification; } } [Field("QTCaptureConnectionChangedAttributeKey", "QTKit")] public static NSString ChangedAttributeKey { get { if (_ChangedAttributeKey == null) { _ChangedAttributeKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionChangedAttributeKey"); } return _ChangedAttributeKey; } } [Field("QTCaptureConnectionAudioAveragePowerLevelsAttribute", "QTKit")] public static NSString AudioAveragePowerLevelsAttribute { get { if (_AudioAveragePowerLevelsAttribute == null) { _AudioAveragePowerLevelsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAudioAveragePowerLevelsAttribute"); } return _AudioAveragePowerLevelsAttribute; } } [Field("QTCaptureConnectionAudioPeakHoldLevelsAttribute", "QTKit")] public static NSString AudioPeakHoldLevelsAttribute { get { if (_AudioPeakHoldLevelsAttribute == null) { _AudioPeakHoldLevelsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAudioPeakHoldLevelsAttribute"); } return _AudioPeakHoldLevelsAttribute; } } [Field("QTCaptureConnectionAudioMasterVolumeAttribute", "QTKit")] public static NSString AudioMasterVolumeAttribute { get { if (_AudioMasterVolumeAttribute == null) { _AudioMasterVolumeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAudioMasterVolumeAttribute"); } return _AudioMasterVolumeAttribute; } } [Field("QTCaptureConnectionAudioVolumesAttribute", "QTKit")] public static NSString AudioVolumesAttribute { get { if (_AudioVolumesAttribute == null) { _AudioVolumesAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionAudioVolumesAttribute"); } return _AudioVolumesAttribute; } } [Field("QTCaptureConnectionEnabledAudioChannelsAttribute", "QTKit")] public static NSString EnabledAudioChannelsAttribute { get { if (_EnabledAudioChannelsAttribute == null) { _EnabledAudioChannelsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureConnectionEnabledAudioChannelsAttribute"); } return _EnabledAudioChannelsAttribute; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureConnection() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureConnection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureConnection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureConnection(IntPtr handle) : base(handle) { } [Export("attributeIsReadOnly:")] public virtual bool IsAttributeReadOnly(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeIsReadOnly_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAttributeIsReadOnly_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:forKey:")] public virtual void SetAttribute(NSObject attribute, string key) { if (attribute == null) { throw new ArgumentNullException("attribute"); } if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeForKey_Handle, attribute.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeForKey_Handle, attribute.Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Owner_var = null; __mt_FormatDescription_var = null; __mt_ConnectionAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDecompressedVideoOutput.cs ================================================ using System; using System.ComponentModel; using CoreVideo; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureDecompressedVideoOutput", true)] public class QTCaptureDecompressedVideoOutput : QTCaptureOutput { [Register] private sealed class _QTCaptureDecompressedVideoOutputDelegate : QTCaptureDecompressedVideoOutputDelegate { internal EventHandler didOutputVideoFrame; internal EventHandler didDropVideoFrame; [Preserve(Conditional = true)] public override void DidOutputVideoFrame(QTCaptureOutput captureOutput, CVImageBuffer videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { EventHandler eventHandler = didOutputVideoFrame; if (eventHandler != null) { QTCaptureVideoFrameEventArgs e = new QTCaptureVideoFrameEventArgs(videoFrame, sampleBuffer, connection); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void DidDropVideoFrame(QTCaptureOutput captureOutput, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { EventHandler eventHandler = didDropVideoFrame; if (eventHandler != null) { QTCaptureVideoDroppedEventArgs e = new QTCaptureVideoDroppedEventArgs(sampleBuffer, connection); eventHandler(captureOutput, e); } } } private static readonly IntPtr selPixelBufferAttributesHandle = Selector.GetHandle("pixelBufferAttributes"); private static readonly IntPtr selSetPixelBufferAttributes_Handle = Selector.GetHandle("setPixelBufferAttributes:"); private static readonly IntPtr selMinimumVideoFrameIntervalHandle = Selector.GetHandle("minimumVideoFrameInterval"); private static readonly IntPtr selSetMinimumVideoFrameInterval_Handle = Selector.GetHandle("setMinimumVideoFrameInterval:"); private static readonly IntPtr selAutomaticallyDropsLateVideoFramesHandle = Selector.GetHandle("automaticallyDropsLateVideoFrames"); private static readonly IntPtr selSetAutomaticallyDropsLateVideoFrames_Handle = Selector.GetHandle("setAutomaticallyDropsLateVideoFrames:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selOutputVideoFrameWithSampleBufferFromConnection_Handle = Selector.GetHandle("outputVideoFrame:withSampleBuffer:fromConnection:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureDecompressedVideoOutput"); private object __mt_PixelBufferAttributes_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSDictionary PixelBufferAttributes { [Export("pixelBufferAttributes")] get { return (NSDictionary)(__mt_PixelBufferAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPixelBufferAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPixelBufferAttributesHandle))))); } [Export("setPixelBufferAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPixelBufferAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPixelBufferAttributes_Handle, value.Handle); } __mt_PixelBufferAttributes_var = value; } } public virtual double MinimumVideoFrameInterval { [Export("minimumVideoFrameInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinimumVideoFrameIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinimumVideoFrameIntervalHandle); } [Export("setMinimumVideoFrameInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinimumVideoFrameInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinimumVideoFrameInterval_Handle, value); } } } public virtual bool AutomaticallyDropsLateVideoFrames { [Export("automaticallyDropsLateVideoFrames")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutomaticallyDropsLateVideoFramesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutomaticallyDropsLateVideoFramesHandle); } [Export("setAutomaticallyDropsLateVideoFrames:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutomaticallyDropsLateVideoFrames_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutomaticallyDropsLateVideoFrames_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public QTCaptureDecompressedVideoOutputDelegate Delegate { get { return WeakDelegate as QTCaptureDecompressedVideoOutputDelegate; } set { WeakDelegate = value; } } public event EventHandler DidOutputVideoFrame { add { _QTCaptureDecompressedVideoOutputDelegate qTCaptureDecompressedVideoOutputDelegate = EnsureQTCaptureDecompressedVideoOutputDelegate(); qTCaptureDecompressedVideoOutputDelegate.didOutputVideoFrame = (EventHandler)System.Delegate.Combine(qTCaptureDecompressedVideoOutputDelegate.didOutputVideoFrame, value); } remove { _QTCaptureDecompressedVideoOutputDelegate qTCaptureDecompressedVideoOutputDelegate = EnsureQTCaptureDecompressedVideoOutputDelegate(); qTCaptureDecompressedVideoOutputDelegate.didOutputVideoFrame = (EventHandler)System.Delegate.Remove(qTCaptureDecompressedVideoOutputDelegate.didOutputVideoFrame, value); } } public event EventHandler DidDropVideoFrame { add { _QTCaptureDecompressedVideoOutputDelegate qTCaptureDecompressedVideoOutputDelegate = EnsureQTCaptureDecompressedVideoOutputDelegate(); qTCaptureDecompressedVideoOutputDelegate.didDropVideoFrame = (EventHandler)System.Delegate.Combine(qTCaptureDecompressedVideoOutputDelegate.didDropVideoFrame, value); } remove { _QTCaptureDecompressedVideoOutputDelegate qTCaptureDecompressedVideoOutputDelegate = EnsureQTCaptureDecompressedVideoOutputDelegate(); qTCaptureDecompressedVideoOutputDelegate.didDropVideoFrame = (EventHandler)System.Delegate.Remove(qTCaptureDecompressedVideoOutputDelegate.didDropVideoFrame, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureDecompressedVideoOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureDecompressedVideoOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDecompressedVideoOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDecompressedVideoOutput(IntPtr handle) : base(handle) { } [Export("outputVideoFrame:withSampleBuffer:fromConnection:")] public virtual void OutputVideoFrame(CVImageBuffer videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { if (sampleBuffer == null) { throw new ArgumentNullException("sampleBuffer"); } if (connection == null) { throw new ArgumentNullException("connection"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selOutputVideoFrameWithSampleBufferFromConnection_Handle, videoFrame.Handle, sampleBuffer.Handle, connection.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selOutputVideoFrameWithSampleBufferFromConnection_Handle, videoFrame.Handle, sampleBuffer.Handle, connection.Handle); } } private _QTCaptureDecompressedVideoOutputDelegate EnsureQTCaptureDecompressedVideoOutputDelegate() { QTCaptureDecompressedVideoOutputDelegate qTCaptureDecompressedVideoOutputDelegate = Delegate; if (qTCaptureDecompressedVideoOutputDelegate == null || !(qTCaptureDecompressedVideoOutputDelegate is _QTCaptureDecompressedVideoOutputDelegate)) { qTCaptureDecompressedVideoOutputDelegate = (Delegate = new _QTCaptureDecompressedVideoOutputDelegate()); } return (_QTCaptureDecompressedVideoOutputDelegate)qTCaptureDecompressedVideoOutputDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_PixelBufferAttributes_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDecompressedVideoOutputDelegate.cs ================================================ using System; using System.ComponentModel; using CoreVideo; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureDecompressedVideoOutput_Delegate", true)] [Model] public class QTCaptureDecompressedVideoOutputDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureDecompressedVideoOutputDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureDecompressedVideoOutputDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDecompressedVideoOutputDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDecompressedVideoOutputDelegate(IntPtr handle) : base(handle) { } [Export("captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:")] public virtual void DidOutputVideoFrame(QTCaptureOutput captureOutput, CVImageBuffer videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didDropVideoFrameWithSampleBuffer:fromConnection:")] public virtual void DidDropVideoFrame(QTCaptureOutput captureOutput, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDestination.cs ================================================ namespace QTKit; public enum QTCaptureDestination { NewFile = 1, OldFile } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDevice.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureDevice", true)] public class QTCaptureDevice : NSObject { private static readonly IntPtr selInputDevicesHandle = Selector.GetHandle("inputDevices"); private static readonly IntPtr selUniqueIDHandle = Selector.GetHandle("uniqueID"); private static readonly IntPtr selModelUniqueIDHandle = Selector.GetHandle("modelUniqueID"); private static readonly IntPtr selLocalizedDisplayNameHandle = Selector.GetHandle("localizedDisplayName"); private static readonly IntPtr selFormatDescriptionsHandle = Selector.GetHandle("formatDescriptions"); private static readonly IntPtr selIsConnectedHandle = Selector.GetHandle("isConnected"); private static readonly IntPtr selIsInUseByAnotherApplicationHandle = Selector.GetHandle("isInUseByAnotherApplication"); private static readonly IntPtr selIsOpenHandle = Selector.GetHandle("isOpen"); private static readonly IntPtr selDeviceAttributesHandle = Selector.GetHandle("deviceAttributes"); private static readonly IntPtr selSetDeviceAttributes_Handle = Selector.GetHandle("setDeviceAttributes:"); private static readonly IntPtr selInputDevicesWithMediaType_Handle = Selector.GetHandle("inputDevicesWithMediaType:"); private static readonly IntPtr selDefaultInputDeviceWithMediaType_Handle = Selector.GetHandle("defaultInputDeviceWithMediaType:"); private static readonly IntPtr selDeviceWithUniqueID_Handle = Selector.GetHandle("deviceWithUniqueID:"); private static readonly IntPtr selHasMediaType_Handle = Selector.GetHandle("hasMediaType:"); private static readonly IntPtr selAttributeIsReadOnly_Handle = Selector.GetHandle("attributeIsReadOnly:"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selSetAttributeForKey_Handle = Selector.GetHandle("setAttribute:forKey:"); private static readonly IntPtr selOpen_Handle = Selector.GetHandle("open:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureDevice"); private static object __mt_InputDevices_var_static; private object __mt_FormatDescriptions_var; private object __mt_DeviceAttributes_var; private static NSString _WasConnectedNotification; private static NSString _WasDisconnectedNotification; private static NSString _FormatDescriptionsWillChangeNotification; private static NSString _FormatDescriptionsDidChangeNotification; private static NSString _AttributeWillChangeNotification; private static NSString _AttributeDidChangeNotification; private static NSString _ChangedAttributeKey; private static NSString _LinkedDevicesAttribute; private static NSString _AvailableInputSourcesAttribute; private static NSString _InputSourceIdentifierAttribute; private static NSString _InputSourceIdentifierKey; private static NSString _InputSourceLocalizedDisplayNameKey; private static NSString _LegacySequenceGrabberAttribute; private static NSString _AVCTransportControlsAttribute; private static NSString _AVCTransportControlsPlaybackModeKey; private static NSString _AVCTransportControlsSpeedKey; private static NSString _SuspendedAttribute; public bool IsAvcTransportControlReadOnly => IsAttributeReadOnly(AVCTransportControlsAttribute); public QTCaptureDeviceTransportControl AvcTransportControl { get { NSDictionary nSDictionary = (NSDictionary)GetAttribute(AVCTransportControlsAttribute); if (nSDictionary == null) { return null; } return new QTCaptureDeviceTransportControl(nSDictionary); } set { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (value.Speed.HasValue) { nSMutableDictionary[AVCTransportControlsSpeedKey] = NSNumber.FromInt32((int)value.Speed.Value); } if (value.PlaybackMode.HasValue) { nSMutableDictionary[AVCTransportControlsSpeedKey] = NSNumber.FromInt32((int)value.PlaybackMode.Value); } SetAttribute(nSMutableDictionary, AVCTransportControlsAttribute); } } public bool IsSuspended => ((NSNumber)GetAttribute(SuspendedAttribute))?.BoolValue ?? false; public override IntPtr ClassHandle => class_ptr; public static QTCaptureDevice[] InputDevices { [Export("inputDevices")] get { return (QTCaptureDevice[])(__mt_InputDevices_var_static = NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selInputDevicesHandle))); } } public virtual string UniqueID { [Export("uniqueID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUniqueIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUniqueIDHandle)); } } public virtual string ModelUniqueID { [Export("modelUniqueID")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selModelUniqueIDHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selModelUniqueIDHandle)); } } public virtual string LocalizedDisplayName { [Export("localizedDisplayName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedDisplayNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedDisplayNameHandle)); } } public virtual QTFormatDescription[] FormatDescriptions { [Export("formatDescriptions")] get { return (QTFormatDescription[])(__mt_FormatDescriptions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionsHandle)))); } } public virtual bool IsConnected { [Export("isConnected")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsConnectedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsConnectedHandle); } } public virtual bool IsInUseByAnotherApplication { [Export("isInUseByAnotherApplication")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsInUseByAnotherApplicationHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsInUseByAnotherApplicationHandle); } } public virtual bool IsOpen { [Export("isOpen")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsOpenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsOpenHandle); } } public virtual NSDictionary DeviceAttributes { [Export("deviceAttributes")] get { return (NSDictionary)(__mt_DeviceAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceAttributesHandle))))); } [Export("setDeviceAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDeviceAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDeviceAttributes_Handle, value.Handle); } __mt_DeviceAttributes_var = value; } } [Field("QTCaptureDeviceWasConnectedNotification", "QTKit")] public static NSString WasConnectedNotification { get { if (_WasConnectedNotification == null) { _WasConnectedNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceWasConnectedNotification"); } return _WasConnectedNotification; } } [Field("QTCaptureDeviceWasDisconnectedNotification", "QTKit")] public static NSString WasDisconnectedNotification { get { if (_WasDisconnectedNotification == null) { _WasDisconnectedNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceWasDisconnectedNotification"); } return _WasDisconnectedNotification; } } [Field("QTCaptureDeviceFormatDescriptionsWillChangeNotification", "QTKit")] public static NSString FormatDescriptionsWillChangeNotification { get { if (_FormatDescriptionsWillChangeNotification == null) { _FormatDescriptionsWillChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceFormatDescriptionsWillChangeNotification"); } return _FormatDescriptionsWillChangeNotification; } } [Field("QTCaptureDeviceFormatDescriptionsDidChangeNotification", "QTKit")] public static NSString FormatDescriptionsDidChangeNotification { get { if (_FormatDescriptionsDidChangeNotification == null) { _FormatDescriptionsDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceFormatDescriptionsDidChangeNotification"); } return _FormatDescriptionsDidChangeNotification; } } [Field("QTCaptureDeviceAttributeWillChangeNotification", "QTKit")] public static NSString AttributeWillChangeNotification { get { if (_AttributeWillChangeNotification == null) { _AttributeWillChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAttributeWillChangeNotification"); } return _AttributeWillChangeNotification; } } [Field("QTCaptureDeviceAttributeDidChangeNotification", "QTKit")] public static NSString AttributeDidChangeNotification { get { if (_AttributeDidChangeNotification == null) { _AttributeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAttributeDidChangeNotification"); } return _AttributeDidChangeNotification; } } [Field("QTCaptureDeviceChangedAttributeKey", "QTKit")] public static NSString ChangedAttributeKey { get { if (_ChangedAttributeKey == null) { _ChangedAttributeKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceChangedAttributeKey"); } return _ChangedAttributeKey; } } [Field("QTCaptureDeviceLinkedDevicesAttribute", "QTKit")] public static NSString LinkedDevicesAttribute { get { if (_LinkedDevicesAttribute == null) { _LinkedDevicesAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceLinkedDevicesAttribute"); } return _LinkedDevicesAttribute; } } [Field("QTCaptureDeviceAvailableInputSourcesAttribute", "QTKit")] public static NSString AvailableInputSourcesAttribute { get { if (_AvailableInputSourcesAttribute == null) { _AvailableInputSourcesAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAvailableInputSourcesAttribute"); } return _AvailableInputSourcesAttribute; } } [Field("QTCaptureDeviceInputSourceIdentifierAttribute", "QTKit")] public static NSString InputSourceIdentifierAttribute { get { if (_InputSourceIdentifierAttribute == null) { _InputSourceIdentifierAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceInputSourceIdentifierAttribute"); } return _InputSourceIdentifierAttribute; } } [Field("QTCaptureDeviceInputSourceIdentifierKey", "QTKit")] public static NSString InputSourceIdentifierKey { get { if (_InputSourceIdentifierKey == null) { _InputSourceIdentifierKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceInputSourceIdentifierKey"); } return _InputSourceIdentifierKey; } } [Field("QTCaptureDeviceInputSourceLocalizedDisplayNameKey", "QTKit")] public static NSString InputSourceLocalizedDisplayNameKey { get { if (_InputSourceLocalizedDisplayNameKey == null) { _InputSourceLocalizedDisplayNameKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceInputSourceLocalizedDisplayNameKey"); } return _InputSourceLocalizedDisplayNameKey; } } [Field("QTCaptureDeviceLegacySequenceGrabberAttribute", "QTKit")] public static NSString LegacySequenceGrabberAttribute { get { if (_LegacySequenceGrabberAttribute == null) { _LegacySequenceGrabberAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceLegacySequenceGrabberAttribute"); } return _LegacySequenceGrabberAttribute; } } [Field("QTCaptureDeviceAVCTransportControlsAttribute", "QTKit")] internal static NSString AVCTransportControlsAttribute { get { if (_AVCTransportControlsAttribute == null) { _AVCTransportControlsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAVCTransportControlsAttribute"); } return _AVCTransportControlsAttribute; } } [Field("QTCaptureDeviceAVCTransportControlsPlaybackModeKey", "QTKit")] internal static NSString AVCTransportControlsPlaybackModeKey { get { if (_AVCTransportControlsPlaybackModeKey == null) { _AVCTransportControlsPlaybackModeKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAVCTransportControlsPlaybackModeKey"); } return _AVCTransportControlsPlaybackModeKey; } } [Field("QTCaptureDeviceAVCTransportControlsSpeedKey", "QTKit")] internal static NSString AVCTransportControlsSpeedKey { get { if (_AVCTransportControlsSpeedKey == null) { _AVCTransportControlsSpeedKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceAVCTransportControlsSpeedKey"); } return _AVCTransportControlsSpeedKey; } } [Field("QTCaptureDeviceSuspendedAttribute", "QTKit")] internal static NSString SuspendedAttribute { get { if (_SuspendedAttribute == null) { _SuspendedAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureDeviceSuspendedAttribute"); } return _SuspendedAttribute; } } private static NSString FromMediaType(QTMediaType mediaType) { return mediaType switch { QTMediaType.Video => QTMedia.TypeVideo, QTMediaType.Sound => QTMedia.TypeSound, QTMediaType.Text => QTMedia.TypeText, QTMediaType.Base => QTMedia.TypeBase, QTMediaType.Mpeg => QTMedia.TypeMpeg, QTMediaType.Music => QTMedia.TypeMusic, QTMediaType.TimeCode => QTMedia.TypeTimeCode, QTMediaType.Sprite => QTMedia.TypeSprite, QTMediaType.Flash => QTMedia.TypeFlash, QTMediaType.Movie => QTMedia.TypeMovie, QTMediaType.Tween => QTMedia.TypeTween, QTMediaType.Type3D => QTMedia.Type3D, QTMediaType.Skin => QTMedia.TypeSkin, QTMediaType.Qtvr => QTMedia.TypeQTVR, QTMediaType.Hint => QTMedia.TypeHint, QTMediaType.Stream => QTMedia.TypeStream, QTMediaType.Muxed => QTMedia.TypeMuxed, QTMediaType.QuartzComposer => QTMedia.TypeQuartzComposer, _ => null, }; } public static QTCaptureDevice[] GetInputDevices(QTMediaType mediaType) { NSString nSString = FromMediaType(mediaType); if (nSString == null) { return null; } return _GetInputDevices(nSString); } public static QTCaptureDevice GetDefaultInputDevice(QTMediaType mediaType) { NSString nSString = FromMediaType(mediaType); if (nSString == null) { return null; } return _GetDefaultInputDevice(nSString); } public bool HasMediaType(QTMediaType mediaType) { return _HasMediaType(FromMediaType(mediaType)); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureDevice(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDevice(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDevice(IntPtr handle) : base(handle) { } [Export("inputDevicesWithMediaType:")] internal static QTCaptureDevice[] _GetInputDevices(NSString forMediaType) { if (forMediaType == null) { throw new ArgumentNullException("forMediaType"); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selInputDevicesWithMediaType_Handle, forMediaType.Handle)); } [Export("defaultInputDeviceWithMediaType:")] internal static QTCaptureDevice _GetDefaultInputDevice(NSString forMediaType) { if (forMediaType == null) { throw new ArgumentNullException("forMediaType"); } return (QTCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDefaultInputDeviceWithMediaType_Handle, forMediaType.Handle)); } [Export("deviceWithUniqueID:")] public static QTCaptureDevice FromUniqueID(string deviceUniqueID) { if (deviceUniqueID == null) { throw new ArgumentNullException("deviceUniqueID"); } IntPtr arg = NSString.CreateNative(deviceUniqueID); QTCaptureDevice result = (QTCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDeviceWithUniqueID_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("hasMediaType:")] internal virtual bool _HasMediaType(string mediaType) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } IntPtr arg = NSString.CreateNative(mediaType); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasMediaType_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasMediaType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("attributeIsReadOnly:")] public virtual bool IsAttributeReadOnly(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeIsReadOnly_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selAttributeIsReadOnly_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:forKey:")] public virtual void SetAttribute(NSObject attribute, string attributeKey) { if (attribute == null) { throw new ArgumentNullException("attribute"); } if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeForKey_Handle, attribute.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeForKey_Handle, attribute.Handle, arg); } NSString.ReleaseNative(arg); } [Export("open:")] public virtual bool Open(out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selOpen_Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selOpen_Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("close")] public virtual void Close() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FormatDescriptions_var = null; __mt_DeviceAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDeviceControlsSpeed.cs ================================================ namespace QTKit; public enum QTCaptureDeviceControlsSpeed { FastestReverse = -19000, VeryFastReverse = -16000, FastReverse = -13000, NormalReverse = -10000, SlowReverse = -7000, VerySlowReverse = -4000, SlowestReverse = -1000, Stopped = 0, SlowestForward = 1000, VerySlowForward = 4000, SlowForward = 7000, NormalForward = 10000, FastForward = 13000, VeryFastForward = 16000, FastestForward = 19000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDeviceInput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureDeviceInput", true)] public class QTCaptureDeviceInput : QTCaptureInput { private static readonly IntPtr selDeviceHandle = Selector.GetHandle("device"); private static readonly IntPtr selDeviceInputWithDevice_Handle = Selector.GetHandle("deviceInputWithDevice:"); private static readonly IntPtr selInitWithDevice_Handle = Selector.GetHandle("initWithDevice:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureDeviceInput"); private object __mt_Device_var; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureDevice Device { [Export("device")] get { return (QTCaptureDevice)(__mt_Device_var = ((!IsDirectBinding) ? ((QTCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDeviceHandle))) : ((QTCaptureDevice)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDeviceHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureDeviceInput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDeviceInput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureDeviceInput(IntPtr handle) : base(handle) { } [Export("deviceInputWithDevice:")] public static QTCaptureDeviceInput FromDevice(QTCaptureDevice device) { if (device == null) { throw new ArgumentNullException("device"); } return (QTCaptureDeviceInput)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDeviceInputWithDevice_Handle, device.Handle)); } [Export("initWithDevice:")] public QTCaptureDeviceInput(QTCaptureDevice device) : base(NSObjectFlag.Empty) { if (device == null) { throw new ArgumentNullException("device"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithDevice_Handle, device.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithDevice_Handle, device.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Device_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDevicePlaybackMode.cs ================================================ namespace QTKit; public enum QTCaptureDevicePlaybackMode { NotPlaying, Playing } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureDeviceTransportControl.cs ================================================ using Foundation; namespace QTKit; public class QTCaptureDeviceTransportControl { public QTCaptureDeviceControlsSpeed? Speed { get; set; } public QTCaptureDevicePlaybackMode? PlaybackMode { get; set; } public QTCaptureDeviceTransportControl() { } internal QTCaptureDeviceTransportControl(NSDictionary dict) { NSNumber nSNumber = (NSNumber)dict[QTCaptureDevice.AVCTransportControlsSpeedKey]; if (nSNumber != null) { Speed = (QTCaptureDeviceControlsSpeed)nSNumber.Int32Value; } nSNumber = (NSNumber)dict[QTCaptureDevice.AVCTransportControlsPlaybackModeKey]; if (nSNumber != null) { PlaybackMode = (QTCaptureDevicePlaybackMode)nSNumber.Int32Value; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileError.cs ================================================ using Foundation; namespace QTKit; public delegate bool QTCaptureFileError(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileErrorEventArgs.cs ================================================ using System; using Foundation; namespace QTKit; public class QTCaptureFileErrorEventArgs : EventArgs { public NSUrl OutputFileURL { get; set; } public QTCaptureConnection[] Connections { get; set; } public NSError Reason { get; set; } public QTCaptureFileErrorEventArgs(NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { OutputFileURL = outputFileURL; Connections = connections; Reason = reason; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileOutput.cs ================================================ using System; using System.ComponentModel; using CoreGraphics; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureFileOutput", true)] public class QTCaptureFileOutput : QTCaptureOutput { [Register] private sealed class _QTCaptureFileOutputDelegate : QTCaptureFileOutputDelegate { internal EventHandler didOutputSampleBuffer; internal EventHandler willStartRecording; internal EventHandler didStartRecording; internal QTCaptureFileError shouldChangeOutputFile; internal EventHandler mustChangeOutputFile; internal EventHandler willFinishRecording; internal EventHandler didFinishRecording; internal EventHandler didPauseRecording; internal EventHandler didResumeRecording; [Preserve(Conditional = true)] public override void DidOutputSampleBuffer(QTCaptureFileOutput captureOutput, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { EventHandler eventHandler = didOutputSampleBuffer; if (eventHandler != null) { QTCaptureFileSampleEventArgs e = new QTCaptureFileSampleEventArgs(sampleBuffer, connection); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void WillStartRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { EventHandler eventHandler = willStartRecording; if (eventHandler != null) { QTCaptureFileUrlEventArgs e = new QTCaptureFileUrlEventArgs(fileUrl, connections); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void DidStartRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { EventHandler eventHandler = didStartRecording; if (eventHandler != null) { QTCaptureFileUrlEventArgs e = new QTCaptureFileUrlEventArgs(fileUrl, connections); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override bool ShouldChangeOutputFile(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { return shouldChangeOutputFile?.Invoke(captureOutput, outputFileURL, connections, reason) ?? true; } [Preserve(Conditional = true)] public override void MustChangeOutputFile(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { EventHandler eventHandler = mustChangeOutputFile; if (eventHandler != null) { QTCaptureFileErrorEventArgs e = new QTCaptureFileErrorEventArgs(outputFileURL, connections, reason); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void WillFinishRecording(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { EventHandler eventHandler = willFinishRecording; if (eventHandler != null) { QTCaptureFileErrorEventArgs e = new QTCaptureFileErrorEventArgs(outputFileURL, connections, reason); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void DidFinishRecording(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { EventHandler eventHandler = didFinishRecording; if (eventHandler != null) { QTCaptureFileErrorEventArgs e = new QTCaptureFileErrorEventArgs(outputFileURL, connections, reason); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void DidPauseRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { EventHandler eventHandler = didPauseRecording; if (eventHandler != null) { QTCaptureFileUrlEventArgs e = new QTCaptureFileUrlEventArgs(fileUrl, connections); eventHandler(captureOutput, e); } } [Preserve(Conditional = true)] public override void DidResumeRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { EventHandler eventHandler = didResumeRecording; if (eventHandler != null) { QTCaptureFileUrlEventArgs e = new QTCaptureFileUrlEventArgs(fileUrl, connections); eventHandler(captureOutput, e); } } } private static readonly IntPtr selOutputFileURLHandle = Selector.GetHandle("outputFileURL"); private static readonly IntPtr selIsRecordingPausedHandle = Selector.GetHandle("isRecordingPaused"); private static readonly IntPtr selRecordedDurationHandle = Selector.GetHandle("recordedDuration"); private static readonly IntPtr selRecordedFileSizeHandle = Selector.GetHandle("recordedFileSize"); private static readonly IntPtr selMaximumVideoSizeHandle = Selector.GetHandle("maximumVideoSize"); private static readonly IntPtr selSetMaximumVideoSize_Handle = Selector.GetHandle("setMaximumVideoSize:"); private static readonly IntPtr selMinimumVideoFrameIntervalHandle = Selector.GetHandle("minimumVideoFrameInterval"); private static readonly IntPtr selSetMinimumVideoFrameInterval_Handle = Selector.GetHandle("setMinimumVideoFrameInterval:"); private static readonly IntPtr selMaximumRecordedDurationHandle = Selector.GetHandle("maximumRecordedDuration"); private static readonly IntPtr selSetMaximumRecordedDuration_Handle = Selector.GetHandle("setMaximumRecordedDuration:"); private static readonly IntPtr selMaximumRecordedFileSizeHandle = Selector.GetHandle("maximumRecordedFileSize"); private static readonly IntPtr selSetMaximumRecordedFileSize_Handle = Selector.GetHandle("setMaximumRecordedFileSize:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selRecordToOutputFileURL_Handle = Selector.GetHandle("recordToOutputFileURL:"); private static readonly IntPtr selRecordToOutputFileURLBufferDestination_Handle = Selector.GetHandle("recordToOutputFileURL:bufferDestination:"); private static readonly IntPtr selPauseRecordingHandle = Selector.GetHandle("pauseRecording"); private static readonly IntPtr selResumeRecordingHandle = Selector.GetHandle("resumeRecording"); private static readonly IntPtr selCompressionOptionsForConnection_Handle = Selector.GetHandle("compressionOptionsForConnection:"); private static readonly IntPtr selSetCompressionOptionsForConnection_Handle = Selector.GetHandle("setCompressionOptions:forConnection:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureFileOutput"); private object __mt_OutputFileUrl_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual NSUrl OutputFileUrl { [Export("outputFileURL")] get { return (NSUrl)(__mt_OutputFileUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputFileURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputFileURLHandle))))); } } public virtual bool IsRecordingPaused { [Export("isRecordingPaused")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRecordingPausedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRecordingPausedHandle); } } public virtual QTTime RecordedDuration { [Export("recordedDuration")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selRecordedDurationHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selRecordedDurationHandle); } } public virtual ulong RecordedFileSize { [Export("recordedFileSize")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selRecordedFileSizeHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selRecordedFileSizeHandle); } } public virtual CGSize MaximumVideoSize { [Export("maximumVideoSize")] get { if (IsDirectBinding) { return Messaging.CGSize_objc_msgSend(base.Handle, selMaximumVideoSizeHandle); } return Messaging.CGSize_objc_msgSendSuper(base.SuperHandle, selMaximumVideoSizeHandle); } [Export("setMaximumVideoSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize(base.Handle, selSetMaximumVideoSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGSize(base.SuperHandle, selSetMaximumVideoSize_Handle, value); } } } public virtual double MinimumVideoFrameInterval { [Export("minimumVideoFrameInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selMinimumVideoFrameIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selMinimumVideoFrameIntervalHandle); } [Export("setMinimumVideoFrameInterval:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Double(base.Handle, selSetMinimumVideoFrameInterval_Handle, value); } else { Messaging.void_objc_msgSendSuper_Double(base.SuperHandle, selSetMinimumVideoFrameInterval_Handle, value); } } } public virtual QTTime MaximumRecordedDuration { [Export("maximumRecordedDuration")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selMaximumRecordedDurationHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selMaximumRecordedDurationHandle); } [Export("setMaximumRecordedDuration:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTime(base.Handle, selSetMaximumRecordedDuration_Handle, value); } else { Messaging.void_objc_msgSendSuper_QTTime(base.SuperHandle, selSetMaximumRecordedDuration_Handle, value); } } } public virtual ulong MaximumRecordedFileSize { [Export("maximumRecordedFileSize")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selMaximumRecordedFileSizeHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selMaximumRecordedFileSizeHandle); } [Export("setMaximumRecordedFileSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(base.Handle, selSetMaximumRecordedFileSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_UInt64(base.SuperHandle, selSetMaximumRecordedFileSize_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public QTCaptureFileOutputDelegate Delegate { get { return WeakDelegate as QTCaptureFileOutputDelegate; } set { WeakDelegate = value; } } public QTCaptureFileError ShouldChangeOutputFile { get { return EnsureQTCaptureFileOutputDelegate().shouldChangeOutputFile; } set { EnsureQTCaptureFileOutputDelegate().shouldChangeOutputFile = value; } } public event EventHandler DidOutputSampleBuffer { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didOutputSampleBuffer = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.didOutputSampleBuffer, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didOutputSampleBuffer = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.didOutputSampleBuffer, value); } } public event EventHandler WillStartRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.willStartRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.willStartRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.willStartRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.willStartRecording, value); } } public event EventHandler DidStartRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didStartRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.didStartRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didStartRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.didStartRecording, value); } } public event EventHandler MustChangeOutputFile { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.mustChangeOutputFile = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.mustChangeOutputFile, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.mustChangeOutputFile = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.mustChangeOutputFile, value); } } public event EventHandler WillFinishRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.willFinishRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.willFinishRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.willFinishRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.willFinishRecording, value); } } public event EventHandler DidFinishRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didFinishRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.didFinishRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didFinishRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.didFinishRecording, value); } } public event EventHandler DidPauseRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didPauseRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.didPauseRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didPauseRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.didPauseRecording, value); } } public event EventHandler DidResumeRecording { add { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didResumeRecording = (EventHandler)System.Delegate.Combine(qTCaptureFileOutputDelegate.didResumeRecording, value); } remove { _QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = EnsureQTCaptureFileOutputDelegate(); qTCaptureFileOutputDelegate.didResumeRecording = (EventHandler)System.Delegate.Remove(qTCaptureFileOutputDelegate.didResumeRecording, value); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureFileOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureFileOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureFileOutput(IntPtr handle) : base(handle) { } [Export("recordToOutputFileURL:")] public virtual void RecordToOutputFile(NSUrl url) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRecordToOutputFileURL_Handle, url?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRecordToOutputFileURL_Handle, url?.Handle ?? IntPtr.Zero); } } [Export("recordToOutputFileURL:bufferDestination:")] public virtual void RecordToOutputFile(NSUrl url, QTCaptureDestination bufferDestination) { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selRecordToOutputFileURLBufferDestination_Handle, url?.Handle ?? IntPtr.Zero, (int)bufferDestination); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selRecordToOutputFileURLBufferDestination_Handle, url?.Handle ?? IntPtr.Zero, (int)bufferDestination); } } [Export("pauseRecording")] public virtual void PauseRecording() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPauseRecordingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPauseRecordingHandle); } } [Export("resumeRecording")] public virtual void ResumeRecording() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selResumeRecordingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selResumeRecordingHandle); } } [Export("compressionOptionsForConnection:")] public virtual QTCompressionOptions GetCompressionOptions(QTCaptureConnection forConnection) { if (forConnection == null) { throw new ArgumentNullException("forConnection"); } if (IsDirectBinding) { return (QTCompressionOptions)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCompressionOptionsForConnection_Handle, forConnection.Handle)); } return (QTCompressionOptions)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompressionOptionsForConnection_Handle, forConnection.Handle)); } [Export("setCompressionOptions:forConnection:")] public virtual void SetCompressionOptions(QTCompressionOptions compressionOptions, QTCaptureConnection forConnection) { if (compressionOptions == null) { throw new ArgumentNullException("compressionOptions"); } if (forConnection == null) { throw new ArgumentNullException("forConnection"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetCompressionOptionsForConnection_Handle, compressionOptions.Handle, forConnection.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetCompressionOptionsForConnection_Handle, compressionOptions.Handle, forConnection.Handle); } } private _QTCaptureFileOutputDelegate EnsureQTCaptureFileOutputDelegate() { QTCaptureFileOutputDelegate qTCaptureFileOutputDelegate = Delegate; if (qTCaptureFileOutputDelegate == null || !(qTCaptureFileOutputDelegate is _QTCaptureFileOutputDelegate)) { qTCaptureFileOutputDelegate = (Delegate = new _QTCaptureFileOutputDelegate()); } return (_QTCaptureFileOutputDelegate)qTCaptureFileOutputDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OutputFileUrl_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileOutputDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureFileOutput_Delegate", true)] [Model] public class QTCaptureFileOutputDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureFileOutputDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureFileOutputDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureFileOutputDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureFileOutputDelegate(IntPtr handle) : base(handle) { } [Export("captureOutput:didOutputSampleBuffer:fromConnection:")] public virtual void DidOutputSampleBuffer(QTCaptureFileOutput captureOutput, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:willStartRecordingToOutputFileAtURL:forConnections:")] public virtual void WillStartRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didStartRecordingToOutputFileAtURL:forConnections:")] public virtual void DidStartRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:shouldChangeOutputFileAtURL:forConnections:dueToError:")] public virtual bool ShouldChangeOutputFile(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:mustChangeOutputFileAtURL:forConnections:dueToError:")] public virtual void MustChangeOutputFile(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:willFinishRecordingToOutputFileAtURL:forConnections:dueToError:")] public virtual void WillFinishRecording(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didFinishRecordingToOutputFileAtURL:forConnections:dueToError:")] public virtual void DidFinishRecording(QTCaptureFileOutput captureOutput, NSUrl outputFileURL, QTCaptureConnection[] connections, NSError reason) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didPauseRecordingToOutputFileAtURL:forConnections:")] public virtual void DidPauseRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("captureOutput:didResumeRecordingToOutputFileAtURL:forConnections:")] public virtual void DidResumeRecording(QTCaptureFileOutput captureOutput, NSUrl fileUrl, QTCaptureConnection[] connections) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileSampleEventArgs.cs ================================================ using System; namespace QTKit; public class QTCaptureFileSampleEventArgs : EventArgs { public QTSampleBuffer SampleBuffer { get; set; } public QTCaptureConnection Connection { get; set; } public QTCaptureFileSampleEventArgs(QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { SampleBuffer = sampleBuffer; Connection = connection; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureFileUrlEventArgs.cs ================================================ using System; using Foundation; namespace QTKit; public class QTCaptureFileUrlEventArgs : EventArgs { public NSUrl FileUrl { get; set; } public QTCaptureConnection[] Connections { get; set; } public QTCaptureFileUrlEventArgs(NSUrl fileUrl, QTCaptureConnection[] connections) { FileUrl = fileUrl; Connections = connections; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureImageEvent.cs ================================================ using CoreImage; namespace QTKit; public delegate CIImage QTCaptureImageEvent(QTCaptureView view, CIImage image); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureInput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureInput", true)] public class QTCaptureInput : NSObject { private static readonly IntPtr selConnectionsHandle = Selector.GetHandle("connections"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureInput"); private object __mt_Connections_var; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureConnection[] Connections { [Export("connections")] get { return (QTCaptureConnection[])(__mt_Connections_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureInput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureInput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureInput(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Connections_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureLayer.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureLayer", true)] public class QTCaptureLayer : CALayer { private static readonly IntPtr selSessionHandle = Selector.GetHandle("session"); private static readonly IntPtr selSetSession_Handle = Selector.GetHandle("setSession:"); private static readonly IntPtr selLayerWithSession_Handle = Selector.GetHandle("layerWithSession:"); private static readonly IntPtr selInitWithSession_Handle = Selector.GetHandle("initWithSession:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureLayer"); private object __mt_Session_var; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureSession Session { [Export("session")] get { return (QTCaptureSession)(__mt_Session_var = ((!IsDirectBinding) ? ((QTCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSessionHandle))) : ((QTCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSessionHandle))))); } [Export("setSession:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSession_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSession_Handle, value.Handle); } __mt_Session_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureLayer(IntPtr handle) : base(handle) { } [Export("layerWithSession:")] public static NSObject FromSession(QTCaptureSession session) { if (session == null) { throw new ArgumentNullException("session"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLayerWithSession_Handle, session.Handle)); } [Export("initWithSession:")] public QTCaptureLayer(QTCaptureSession session) : base(NSObjectFlag.Empty) { if (session == null) { throw new ArgumentNullException("session"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithSession_Handle, session.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithSession_Handle, session.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Session_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureMovieFileOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureMovieFileOutput", true)] public class QTCaptureMovieFileOutput : QTCaptureFileOutput { private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureMovieFileOutput"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureMovieFileOutput() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureMovieFileOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureMovieFileOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureMovieFileOutput(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureOutput.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureOutput", true)] public class QTCaptureOutput : NSObject { private static readonly IntPtr selConnectionsHandle = Selector.GetHandle("connections"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureOutput"); private object __mt_Connections_var; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureConnection[] Connections { [Export("connections")] get { return (QTCaptureConnection[])(__mt_Connections_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selConnectionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selConnectionsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureOutput(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureOutput(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureOutput(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Connections_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureSession.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureSession", true)] public class QTCaptureSession : NSObject { private static readonly IntPtr selInputsHandle = Selector.GetHandle("inputs"); private static readonly IntPtr selOutputsHandle = Selector.GetHandle("outputs"); private static readonly IntPtr selIsRunningHandle = Selector.GetHandle("isRunning"); private static readonly IntPtr selAddInputError_Handle = Selector.GetHandle("addInput:error:"); private static readonly IntPtr selRemoveInput_Handle = Selector.GetHandle("removeInput:"); private static readonly IntPtr selAddOutputError_Handle = Selector.GetHandle("addOutput:error:"); private static readonly IntPtr selRemoveOutput_Handle = Selector.GetHandle("removeOutput:"); private static readonly IntPtr selStartRunningHandle = Selector.GetHandle("startRunning"); private static readonly IntPtr selStopRunningHandle = Selector.GetHandle("stopRunning"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureSession"); private object __mt_Inputs_var; private object __mt_Outputs_var; private static NSString _RuntimeErrorNotification; private static NSString _ErrorKey; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureInput[] Inputs { [Export("inputs")] get { return (QTCaptureInput[])(__mt_Inputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputsHandle)))); } } public virtual QTCaptureOutput[] Outputs { [Export("outputs")] get { return (QTCaptureOutput[])(__mt_Outputs_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputsHandle)))); } } public virtual bool IsRunning { [Export("isRunning")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRunningHandle); } } [Field("QTCaptureSessionRuntimeErrorNotification", "QTKit")] public static NSString RuntimeErrorNotification { get { if (_RuntimeErrorNotification == null) { _RuntimeErrorNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureSessionRuntimeErrorNotification"); } return _RuntimeErrorNotification; } } [Field("QTCaptureSessionErrorKey", "QTKit")] public static NSString ErrorKey { get { if (_ErrorKey == null) { _ErrorKey = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTCaptureSessionErrorKey"); } return _ErrorKey; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureSession() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureSession(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureSession(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureSession(IntPtr handle) : base(handle) { } [Export("addInput:error:")] public virtual bool AddInput(QTCaptureInput input, out NSError error) { if (input == null) { throw new ArgumentNullException("input"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddInputError_Handle, input.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddInputError_Handle, input.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeInput:")] public virtual void RemoveInput(QTCaptureInput input) { if (input == null) { throw new ArgumentNullException("input"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveInput_Handle, input.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveInput_Handle, input.Handle); } } [Export("addOutput:error:")] public virtual bool AddOutput(QTCaptureOutput output, out NSError error) { if (output == null) { throw new ArgumentNullException("output"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selAddOutputError_Handle, output.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selAddOutputError_Handle, output.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("removeOutput:")] public virtual void RemoveOutput(QTCaptureOutput output) { if (output == null) { throw new ArgumentNullException("output"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveOutput_Handle, output.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveOutput_Handle, output.Handle); } } [Export("startRunning")] public virtual void StartRunning() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStartRunningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStartRunningHandle); } } [Export("stopRunning")] public virtual void StopRunning() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopRunningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopRunningHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Inputs_var = null; __mt_Outputs_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureVideoDroppedEventArgs.cs ================================================ using System; namespace QTKit; public class QTCaptureVideoDroppedEventArgs : EventArgs { public QTSampleBuffer SampleBuffer { get; set; } public QTCaptureConnection Connection { get; set; } public QTCaptureVideoDroppedEventArgs(QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { SampleBuffer = sampleBuffer; Connection = connection; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureVideoFrameEventArgs.cs ================================================ using System; using CoreVideo; namespace QTKit; public class QTCaptureVideoFrameEventArgs : EventArgs { public CVImageBuffer VideoFrame { get; set; } public QTSampleBuffer SampleBuffer { get; set; } public QTCaptureConnection Connection { get; set; } public QTCaptureVideoFrameEventArgs(CVImageBuffer videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection) { VideoFrame = videoFrame; SampleBuffer = sampleBuffer; Connection = connection; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using CoreImage; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureView", true)] public class QTCaptureView : NSView { [Register] private sealed class _QTCaptureViewDelegate : QTCaptureViewDelegate { internal QTCaptureImageEvent willDisplayImage; [Preserve(Conditional = true)] public override CIImage WillDisplayImage(QTCaptureView view, CIImage image) { QTCaptureImageEvent qTCaptureImageEvent = willDisplayImage; if (qTCaptureImageEvent != null) { return qTCaptureImageEvent(view, image); } return image; } } private static readonly IntPtr selAvailableVideoPreviewConnectionsHandle = Selector.GetHandle("availableVideoPreviewConnections"); private static readonly IntPtr selPreviewBoundsHandle = Selector.GetHandle("previewBounds"); private static readonly IntPtr selCaptureSessionHandle = Selector.GetHandle("captureSession"); private static readonly IntPtr selSetCaptureSession_Handle = Selector.GetHandle("setCaptureSession:"); private static readonly IntPtr selVideoPreviewConnectionHandle = Selector.GetHandle("videoPreviewConnection"); private static readonly IntPtr selSetVideoPreviewConnection_Handle = Selector.GetHandle("setVideoPreviewConnection:"); private static readonly IntPtr selFillColorHandle = Selector.GetHandle("fillColor"); private static readonly IntPtr selSetFillColor_Handle = Selector.GetHandle("setFillColor:"); private static readonly IntPtr selPreservesAspectRatioHandle = Selector.GetHandle("preservesAspectRatio"); private static readonly IntPtr selSetPreservesAspectRatio_Handle = Selector.GetHandle("setPreservesAspectRatio:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCaptureView"); private object __mt_AvailableVideoPreviewConnections_var; private object __mt_CaptureSession_var; private object __mt_VideoPreviewConnection_var; private object __mt_FillColor_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual QTCaptureConnection[] AvailableVideoPreviewConnections { [Export("availableVideoPreviewConnections")] get { return (QTCaptureConnection[])(__mt_AvailableVideoPreviewConnections_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAvailableVideoPreviewConnectionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAvailableVideoPreviewConnectionsHandle)))); } } public virtual CGRect PreviewBounds { [Export("previewBounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selPreviewBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selPreviewBoundsHandle); } return retval; } } public virtual QTCaptureSession CaptureSession { [Export("captureSession")] get { return (QTCaptureSession)(__mt_CaptureSession_var = ((!IsDirectBinding) ? ((QTCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCaptureSessionHandle))) : ((QTCaptureSession)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCaptureSessionHandle))))); } [Export("setCaptureSession:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCaptureSession_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCaptureSession_Handle, value.Handle); } __mt_CaptureSession_var = value; } } public virtual QTCaptureConnection VideoPreviewConnection { [Export("videoPreviewConnection")] get { return (QTCaptureConnection)(__mt_VideoPreviewConnection_var = ((!IsDirectBinding) ? ((QTCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVideoPreviewConnectionHandle))) : ((QTCaptureConnection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selVideoPreviewConnectionHandle))))); } [Export("setVideoPreviewConnection:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVideoPreviewConnection_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVideoPreviewConnection_Handle, value.Handle); } __mt_VideoPreviewConnection_var = value; } } public virtual NSColor FillColor { [Export("fillColor")] get { return (NSColor)(__mt_FillColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFillColorHandle))))); } [Export("setFillColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillColor_Handle, value.Handle); } __mt_FillColor_var = value; } } public virtual bool PreservesAspectRatio { [Export("preservesAspectRatio")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesAspectRatioHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesAspectRatioHandle); } [Export("setPreservesAspectRatio:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesAspectRatio_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesAspectRatio_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public QTCaptureViewDelegate Delegate { get { return WeakDelegate as QTCaptureViewDelegate; } set { WeakDelegate = value; } } public QTCaptureImageEvent WillDisplayImage { get { return EnsureQTCaptureViewDelegate().willDisplayImage; } set { EnsureQTCaptureViewDelegate().willDisplayImage = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureView(IntPtr handle) : base(handle) { } private _QTCaptureViewDelegate EnsureQTCaptureViewDelegate() { QTCaptureViewDelegate qTCaptureViewDelegate = Delegate; if (qTCaptureViewDelegate == null || !(qTCaptureViewDelegate is _QTCaptureViewDelegate)) { qTCaptureViewDelegate = (Delegate = new _QTCaptureViewDelegate()); } return (_QTCaptureViewDelegate)qTCaptureViewDelegate; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AvailableVideoPreviewConnections_var = null; __mt_CaptureSession_var = null; __mt_VideoPreviewConnection_var = null; __mt_FillColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCaptureViewDelegate.cs ================================================ using System; using System.ComponentModel; using CoreImage; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCaptureView_Delegate", true)] [Model] public class QTCaptureViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCaptureViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCaptureViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCaptureViewDelegate(IntPtr handle) : base(handle) { } [Export("view:willDisplayImage:")] public virtual CIImage WillDisplayImage(QTCaptureView view, CIImage image) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCodecQuality.cs ================================================ namespace QTKit; public enum QTCodecQuality { Lossless = 1024, Max = 1023, Min = 0, Low = 256, Normal = 512, High = 768 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTCompressionOptions.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTCompressionOptions", true)] public class QTCompressionOptions : NSObject { private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selLocalizedDisplayNameHandle = Selector.GetHandle("localizedDisplayName"); private static readonly IntPtr selLocalizedCompressionOptionsSummaryHandle = Selector.GetHandle("localizedCompressionOptionsSummary"); private static readonly IntPtr selCompressionOptionsIdentifiersForMediaType_Handle = Selector.GetHandle("compressionOptionsIdentifiersForMediaType:"); private static readonly IntPtr selCompressionOptionsWithIdentifier_Handle = Selector.GetHandle("compressionOptionsWithIdentifier:"); private static readonly IntPtr selIsEqualToCompressionOptions_Handle = Selector.GetHandle("isEqualToCompressionOptions:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTCompressionOptions"); public override IntPtr ClassHandle => class_ptr; public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual string LocalizedDisplayName { [Export("localizedDisplayName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedDisplayNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedDisplayNameHandle)); } } public virtual string LocalizedCompressionOptionsSummary { [Export("localizedCompressionOptionsSummary")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedCompressionOptionsSummaryHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedCompressionOptionsSummaryHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTCompressionOptions() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTCompressionOptions(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCompressionOptions(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTCompressionOptions(IntPtr handle) : base(handle) { } [Export("compressionOptionsIdentifiersForMediaType:")] public static string[] GetCompressionOptionsIdentifiers(string forMediaType) { if (forMediaType == null) { throw new ArgumentNullException("forMediaType"); } IntPtr arg = NSString.CreateNative(forMediaType); string[] result = NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompressionOptionsIdentifiersForMediaType_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("compressionOptionsWithIdentifier:")] public static NSObject FromIdentifier(string identifier) { if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompressionOptionsWithIdentifier_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("isEqualToCompressionOptions:")] public virtual bool IsEqualToCompressionOptions(QTCompressionOptions compressionOptions) { if (compressionOptions == null) { throw new ArgumentNullException("compressionOptions"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToCompressionOptions_Handle, compressionOptions.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToCompressionOptions_Handle, compressionOptions.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTDataReference.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTDataReference", true)] public class QTDataReference : NSObject { private static readonly IntPtr selDataRefDataHandle = Selector.GetHandle("dataRefData"); private static readonly IntPtr selReferenceFileHandle = Selector.GetHandle("referenceFile"); private static readonly IntPtr selReferenceURLHandle = Selector.GetHandle("referenceURL"); private static readonly IntPtr selReferenceDataHandle = Selector.GetHandle("referenceData"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selMIMETypeHandle = Selector.GetHandle("MIMEType"); private static readonly IntPtr selDataRefTypeHandle = Selector.GetHandle("dataRefType"); private static readonly IntPtr selSetDataRefType_Handle = Selector.GetHandle("setDataRefType:"); private static readonly IntPtr selDataReferenceWithDataRefDataType_Handle = Selector.GetHandle("dataReferenceWithDataRefData:type:"); private static readonly IntPtr selDataReferenceWithReferenceToFile_Handle = Selector.GetHandle("dataReferenceWithReferenceToFile:"); private static readonly IntPtr selDataReferenceWithReferenceToURL_Handle = Selector.GetHandle("dataReferenceWithReferenceToURL:"); private static readonly IntPtr selDataReferenceWithReferenceToData_Handle = Selector.GetHandle("dataReferenceWithReferenceToData:"); private static readonly IntPtr selDataReferenceWithReferenceToDataNameMIMEType_Handle = Selector.GetHandle("dataReferenceWithReferenceToData:name:MIMEType:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTDataReference"); private object __mt_DataRefData_var; private object __mt_ReferenceUrl_var; private object __mt_ReferenceData_var; public override IntPtr ClassHandle => class_ptr; public virtual NSData DataRefData { [Export("dataRefData")] get { return (NSData)(__mt_DataRefData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataRefDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataRefDataHandle))))); } } public virtual string ReferenceFile { [Export("referenceFile")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selReferenceFileHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReferenceFileHandle)); } } public virtual NSUrl ReferenceUrl { [Export("referenceURL")] get { return (NSUrl)(__mt_ReferenceUrl_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReferenceURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReferenceURLHandle))))); } } public virtual NSData ReferenceData { [Export("referenceData")] get { return (NSData)(__mt_ReferenceData_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReferenceDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selReferenceDataHandle))))); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual string MimeType { [Export("MIMEType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMIMETypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMIMETypeHandle)); } } public virtual string DataRefType { [Export("dataRefType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDataRefTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataRefTypeHandle)); } [Export("setDataRefType:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDataRefType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDataRefType_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTDataReference() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTDataReference(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTDataReference(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTDataReference(IntPtr handle) : base(handle) { } [Export("dataReferenceWithDataRefData:type:")] public static NSObject FromDataRefData(NSData dataRefData, string type) { if (dataRefData == null) { throw new ArgumentNullException("dataRefData"); } if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selDataReferenceWithDataRefDataType_Handle, dataRefData.Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("dataReferenceWithReferenceToFile:")] public static NSObject FromReference(string fileName) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr arg = NSString.CreateNative(fileName); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataReferenceWithReferenceToFile_Handle, arg)); NSString.ReleaseNative(arg); return nSObject; } [Export("dataReferenceWithReferenceToURL:")] public static NSObject FromReference(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataReferenceWithReferenceToURL_Handle, url.Handle)); } [Export("dataReferenceWithReferenceToData:")] public static NSObject FromDataReference(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selDataReferenceWithReferenceToData_Handle, data.Handle)); } [Export("dataReferenceWithReferenceToData:name:MIMEType:")] public static NSObject FromReference(NSData data, string name, string mimeType) { if (data == null) { throw new ArgumentNullException("data"); } if (name == null) { throw new ArgumentNullException("name"); } if (mimeType == null) { throw new ArgumentNullException("mimeType"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(mimeType); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selDataReferenceWithReferenceToDataNameMIMEType_Handle, data.Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DataRefData_var = null; __mt_ReferenceUrl_var = null; __mt_ReferenceData_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTError.cs ================================================ namespace QTKit; public enum QTError { Unknown = -1, None = 0, IncompatibleInput = 1002, IncompatibleOutput = 1003, InvalidInputsOrOutputs = 1100, DeviceAlreadyUsedbyAnotherSession = 1101, NoDataCaptured = 1200, SessionConfigurationChanged = 1201, DiskFull = 1202, DeviceWasDisconnected = 1203, MediaChanged = 1204, MaximumDurationReached = 1205, MaximumFileSizeReached = 1206, MediaDiscontinuity = 1207, MaximumNumberOfSamplesForFileFormatReached = 1208, DeviceNotConnected = 1300, DeviceInUseByAnotherApplication = 1301, DeviceExcludedByAnotherDevice = 1302 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTFileType.cs ================================================ namespace QTKit; public enum QTFileType { AIFF = 1095321158, AIFC = 1095321155, DVC = 1685480225, MIDI = 1298752617, Picture = 1346978644, Movie = 1299148630, Text = 1413830740, Wave = 1463899717, SystemSevenSound = 1936091500, MuLaw = 1431060823, AVI = 1449547552, SoundDesignerII = 1399075430, AudioCDTrack = 1953653099, PICS = 1346978643, GIF = 1195984486, PNG = 1347307366, TIFF = 1414088262, PhotoShop = 943870035, SGIImage = 777209673, BMP = 1112363110, JPEG = 1246774599, JFIF = 1246774599, MacPaint = 1347310663, TargaImage = 1414547779, QuickDrawGXPicture = 1902405496, QuickTimeImage = 1903454566, T3DMF = 860114246, FLC = 1179403040, Flash = 1398228556, FlashPix = 1179675000, MP4 = 1836082996, PDF = 1346651680, T3GPP = 862417008, AMR = 1634562592, SDV = 1935963680, T3GP2 = 862416946, AMC = 1634558752, JPEG2000 = 1785737760 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTFormatDescription.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTFormatDescription", true)] public class QTFormatDescription : NSObject { private static readonly IntPtr selMediaTypeHandle = Selector.GetHandle("mediaType"); private static readonly IntPtr selFormatTypeHandle = Selector.GetHandle("formatType"); private static readonly IntPtr selLocalizedFormatSummaryHandle = Selector.GetHandle("localizedFormatSummary"); private static readonly IntPtr selQuickTimeSampleDescriptionHandle = Selector.GetHandle("quickTimeSampleDescription"); private static readonly IntPtr selFormatDescriptionAttributesHandle = Selector.GetHandle("formatDescriptionAttributes"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selIsEqualToFormatDescription_Handle = Selector.GetHandle("isEqualToFormatDescription:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTFormatDescription"); private object __mt_QuickTimeSampleDescription_var; private object __mt_FormatDescriptionAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual string MediaType { [Export("mediaType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTypeHandle)); } } public virtual uint FormatType { [Export("formatType")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selFormatTypeHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selFormatTypeHandle); } } public virtual string LocalizedFormatSummary { [Export("localizedFormatSummary")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalizedFormatSummaryHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalizedFormatSummaryHandle)); } } public virtual NSData QuickTimeSampleDescription { [Export("quickTimeSampleDescription")] get { return (NSData)(__mt_QuickTimeSampleDescription_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQuickTimeSampleDescriptionHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selQuickTimeSampleDescriptionHandle))))); } } public virtual NSDictionary FormatDescriptionAttributes { [Export("formatDescriptionAttributes")] get { return (NSDictionary)(__mt_FormatDescriptionAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionAttributesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTFormatDescription() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTFormatDescription(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTFormatDescription(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTFormatDescription(IntPtr handle) : base(handle) { } [Export("attributeForKey:")] public virtual NSObject AttributeForKey(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("isEqualToFormatDescription:")] public virtual bool IsEqualToFormatDescription(QTFormatDescription formatDescription) { if (formatDescription == null) { throw new ArgumentNullException("formatDescription"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualToFormatDescription_Handle, formatDescription.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualToFormatDescription_Handle, formatDescription.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_QuickTimeSampleDescription_var = null; __mt_FormatDescriptionAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTImageAttributes.cs ================================================ using Foundation; namespace QTKit; public class QTImageAttributes { public string CodecType { get; set; } public QTCodecQuality? Quality { get; set; } public int? TimeScale { get; set; } public NSDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (CodecType != null) { nSMutableDictionary.SetObject(new NSString(CodecType), QTMovie.ImageCodecType); } if (Quality.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromInt32((int)Quality.Value), QTMovie.ImageCodecQuality); } if (TimeScale.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromInt32(TimeScale.Value), QTTrack.TimeScaleAttribute); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMedia.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTMedia", true)] public class QTMedia : NSObject { private static readonly IntPtr selTrackHandle = Selector.GetHandle("track"); private static readonly IntPtr selQuickTimeMediaHandle = Selector.GetHandle("quickTimeMedia"); private static readonly IntPtr selMediaAttributesHandle = Selector.GetHandle("mediaAttributes"); private static readonly IntPtr selSetMediaAttributes_Handle = Selector.GetHandle("setMediaAttributes:"); private static readonly IntPtr selMediaWithQuickTimeMediaError_Handle = Selector.GetHandle("mediaWithQuickTimeMedia:error:"); private static readonly IntPtr selInitWithQuickTimeMediaError_Handle = Selector.GetHandle("initWithQuickTimeMedia:error:"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selSetAttributeForKey_Handle = Selector.GetHandle("setAttribute:forKey:"); private static readonly IntPtr selHasCharacteristic_Handle = Selector.GetHandle("hasCharacteristic:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTMedia"); private object __mt_Track_var; private object __mt_MediaAttributes_var; private static NSString _TypeVideo; private static NSString _TypeSound; private static NSString _TypeText; private static NSString _TypeBase; private static NSString _TypeMpeg; private static NSString _TypeMusic; private static NSString _TypeTimeCode; private static NSString _TypeSprite; private static NSString _TypeFlash; private static NSString _TypeMovie; private static NSString _TypeTween; private static NSString _Type3D; private static NSString _TypeSkin; private static NSString _TypeQTVR; private static NSString _TypeHint; private static NSString _TypeStream; private static NSString _TypeMuxed; private static NSString _TypeQuartzComposer; private static NSString _CharacteristicVisual; private static NSString _CharacteristicAudio; private static NSString _CharacteristicCanSendVideo; private static NSString _CharacteristicProvidesActions; private static NSString _CharacteristicNonLinear; private static NSString _CharacteristicCanStep; private static NSString _CharacteristicHasNoDuration; private static NSString _CharacteristicHasSkinData; private static NSString _CharacteristicProvidesKeyFocus; private static NSString _CharacteristicHasVideoFrameRate; private static NSString _CreationTimeAttribute; private static NSString _DurationAttribute; private static NSString _ModificationTimeAttribute; private static NSString _SampleCountAttribute; private static NSString _QualityAttribute; private static NSString _TimeScaleAttribute; private static NSString _TypeAttribute; public override IntPtr ClassHandle => class_ptr; public virtual QTTrack Track { [Export("track")] get { return (QTTrack)(__mt_Track_var = ((!IsDirectBinding) ? ((QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTrackHandle))) : ((QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTrackHandle))))); } } public virtual IntPtr QuickTimeMedia { [Export("quickTimeMedia")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selQuickTimeMediaHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQuickTimeMediaHandle); } } public virtual NSDictionary MediaAttributes { [Export("mediaAttributes")] get { return (NSDictionary)(__mt_MediaAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaAttributesHandle))))); } [Export("setMediaAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMediaAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMediaAttributes_Handle, value.Handle); } __mt_MediaAttributes_var = value; } } [Field("QTMediaTypeVideo", "QTKit")] internal static NSString TypeVideo { get { if (_TypeVideo == null) { _TypeVideo = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeVideo"); } return _TypeVideo; } } [Field("QTMediaTypeSound", "QTKit")] internal static NSString TypeSound { get { if (_TypeSound == null) { _TypeSound = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeSound"); } return _TypeSound; } } [Field("QTMediaTypeText", "QTKit")] internal static NSString TypeText { get { if (_TypeText == null) { _TypeText = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeText"); } return _TypeText; } } [Field("QTMediaTypeBase", "QTKit")] internal static NSString TypeBase { get { if (_TypeBase == null) { _TypeBase = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeBase"); } return _TypeBase; } } [Field("QTMediaTypeMPEG", "QTKit")] internal static NSString TypeMpeg { get { if (_TypeMpeg == null) { _TypeMpeg = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeMPEG"); } return _TypeMpeg; } } [Field("QTMediaTypeMusic", "QTKit")] internal static NSString TypeMusic { get { if (_TypeMusic == null) { _TypeMusic = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeMusic"); } return _TypeMusic; } } [Field("QTMediaTypeTimeCode", "QTKit")] internal static NSString TypeTimeCode { get { if (_TypeTimeCode == null) { _TypeTimeCode = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeTimeCode"); } return _TypeTimeCode; } } [Field("QTMediaTypeSprite", "QTKit")] internal static NSString TypeSprite { get { if (_TypeSprite == null) { _TypeSprite = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeSprite"); } return _TypeSprite; } } [Field("QTMediaTypeFlash", "QTKit")] internal static NSString TypeFlash { get { if (_TypeFlash == null) { _TypeFlash = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeFlash"); } return _TypeFlash; } } [Field("QTMediaTypeMovie", "QTKit")] internal static NSString TypeMovie { get { if (_TypeMovie == null) { _TypeMovie = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeMovie"); } return _TypeMovie; } } [Field("QTMediaTypeTween", "QTKit")] internal static NSString TypeTween { get { if (_TypeTween == null) { _TypeTween = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeTween"); } return _TypeTween; } } [Field("QTMediaType3D", "QTKit")] internal static NSString Type3D { get { if (_Type3D == null) { _Type3D = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaType3D"); } return _Type3D; } } [Field("QTMediaTypeSkin", "QTKit")] internal static NSString TypeSkin { get { if (_TypeSkin == null) { _TypeSkin = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeSkin"); } return _TypeSkin; } } [Field("QTMediaTypeQTVR", "QTKit")] internal static NSString TypeQTVR { get { if (_TypeQTVR == null) { _TypeQTVR = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeQTVR"); } return _TypeQTVR; } } [Field("QTMediaTypeHint", "QTKit")] internal static NSString TypeHint { get { if (_TypeHint == null) { _TypeHint = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeHint"); } return _TypeHint; } } [Field("QTMediaTypeStream", "QTKit")] internal static NSString TypeStream { get { if (_TypeStream == null) { _TypeStream = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeStream"); } return _TypeStream; } } [Field("QTMediaTypeMuxed", "QTKit")] internal static NSString TypeMuxed { get { if (_TypeMuxed == null) { _TypeMuxed = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeMuxed"); } return _TypeMuxed; } } [Field("QTMediaTypeQuartzComposer", "QTKit")] internal static NSString TypeQuartzComposer { get { if (_TypeQuartzComposer == null) { _TypeQuartzComposer = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeQuartzComposer"); } return _TypeQuartzComposer; } } [Field("QTMediaCharacteristicVisual", "QTKit")] public static NSString CharacteristicVisual { get { if (_CharacteristicVisual == null) { _CharacteristicVisual = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicVisual"); } return _CharacteristicVisual; } } [Field("QTMediaCharacteristicAudio", "QTKit")] public static NSString CharacteristicAudio { get { if (_CharacteristicAudio == null) { _CharacteristicAudio = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicAudio"); } return _CharacteristicAudio; } } [Field("QTMediaCharacteristicCanSendVideo", "QTKit")] public static NSString CharacteristicCanSendVideo { get { if (_CharacteristicCanSendVideo == null) { _CharacteristicCanSendVideo = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicCanSendVideo"); } return _CharacteristicCanSendVideo; } } [Field("QTMediaCharacteristicProvidesActions", "QTKit")] public static NSString CharacteristicProvidesActions { get { if (_CharacteristicProvidesActions == null) { _CharacteristicProvidesActions = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicProvidesActions"); } return _CharacteristicProvidesActions; } } [Field("QTMediaCharacteristicNonLinear", "QTKit")] public static NSString CharacteristicNonLinear { get { if (_CharacteristicNonLinear == null) { _CharacteristicNonLinear = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicNonLinear"); } return _CharacteristicNonLinear; } } [Field("QTMediaCharacteristicCanStep", "QTKit")] public static NSString CharacteristicCanStep { get { if (_CharacteristicCanStep == null) { _CharacteristicCanStep = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicCanStep"); } return _CharacteristicCanStep; } } [Field("QTMediaCharacteristicHasNoDuration", "QTKit")] public static NSString CharacteristicHasNoDuration { get { if (_CharacteristicHasNoDuration == null) { _CharacteristicHasNoDuration = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicHasNoDuration"); } return _CharacteristicHasNoDuration; } } [Field("QTMediaCharacteristicHasSkinData", "QTKit")] public static NSString CharacteristicHasSkinData { get { if (_CharacteristicHasSkinData == null) { _CharacteristicHasSkinData = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicHasSkinData"); } return _CharacteristicHasSkinData; } } [Field("QTMediaCharacteristicProvidesKeyFocus", "QTKit")] public static NSString CharacteristicProvidesKeyFocus { get { if (_CharacteristicProvidesKeyFocus == null) { _CharacteristicProvidesKeyFocus = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicProvidesKeyFocus"); } return _CharacteristicProvidesKeyFocus; } } [Field("QTMediaCharacteristicHasVideoFrameRate", "QTKit")] public static NSString CharacteristicHasVideoFrameRate { get { if (_CharacteristicHasVideoFrameRate == null) { _CharacteristicHasVideoFrameRate = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCharacteristicHasVideoFrameRate"); } return _CharacteristicHasVideoFrameRate; } } [Field("QTMediaCreationTimeAttribute", "QTKit")] public static NSString CreationTimeAttribute { get { if (_CreationTimeAttribute == null) { _CreationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaCreationTimeAttribute"); } return _CreationTimeAttribute; } } [Field("QTMediaDurationAttribute", "QTKit")] public static NSString DurationAttribute { get { if (_DurationAttribute == null) { _DurationAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaDurationAttribute"); } return _DurationAttribute; } } [Field("QTMediaModificationTimeAttribute", "QTKit")] public static NSString ModificationTimeAttribute { get { if (_ModificationTimeAttribute == null) { _ModificationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaModificationTimeAttribute"); } return _ModificationTimeAttribute; } } [Field("QTMediaSampleCountAttribute", "QTKit")] public static NSString SampleCountAttribute { get { if (_SampleCountAttribute == null) { _SampleCountAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaSampleCountAttribute"); } return _SampleCountAttribute; } } [Field("QTMediaQualityAttribute", "QTKit")] public static NSString QualityAttribute { get { if (_QualityAttribute == null) { _QualityAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaQualityAttribute"); } return _QualityAttribute; } } [Field("QTMediaTimeScaleAttribute", "QTKit")] public static NSString TimeScaleAttribute { get { if (_TimeScaleAttribute == null) { _TimeScaleAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTimeScaleAttribute"); } return _TimeScaleAttribute; } } [Field("QTMediaTypeAttribute", "QTKit")] public static NSString TypeAttribute { get { if (_TypeAttribute == null) { _TypeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMediaTypeAttribute"); } return _TypeAttribute; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTMedia() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTMedia(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMedia(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMedia(IntPtr handle) : base(handle) { } [Export("mediaWithQuickTimeMedia:error:")] public static NSObject FromQuickTimeMedia(IntPtr quicktimeMedia, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMediaWithQuickTimeMediaError_Handle, quicktimeMedia, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return nSObject; } [Export("initWithQuickTimeMedia:error:")] public virtual IntPtr Conditions(IntPtr quicktimeMedia, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithQuickTimeMediaError_Handle, quicktimeMedia, intPtr) : Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithQuickTimeMediaError_Handle, quicktimeMedia, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:forKey:")] public virtual void SetAttribute(NSObject value, string attributeKey) { if (value == null) { throw new ArgumentNullException("value"); } if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeForKey_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeForKey_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } [Export("hasCharacteristic:")] public virtual bool HasCharacteristic(string characteristic) { if (characteristic == null) { throw new ArgumentNullException("characteristic"); } IntPtr arg = NSString.CreateNative(characteristic); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasCharacteristic_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasCharacteristic_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Track_var = null; __mt_MediaAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMediaType.cs ================================================ namespace QTKit; public enum QTMediaType { Video, Sound, Text, Base, Mpeg, Music, TimeCode, Sprite, Flash, Movie, Tween, Type3D, Skin, Qtvr, Hint, Stream, Muxed, QuartzComposer } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovie.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using AppKit; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTMovie", true)] public class QTMovie : NSObject { private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selMovieHandle = Selector.GetHandle("movie"); private static readonly IntPtr selCurrentTimeHandle = Selector.GetHandle("currentTime"); private static readonly IntPtr selSetCurrentTime_Handle = Selector.GetHandle("setCurrentTime:"); private static readonly IntPtr selRateHandle = Selector.GetHandle("rate"); private static readonly IntPtr selSetRate_Handle = Selector.GetHandle("setRate:"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr selMutedHandle = Selector.GetHandle("muted"); private static readonly IntPtr selSetMuted_Handle = Selector.GetHandle("setMuted:"); private static readonly IntPtr selMovieAttributesHandle = Selector.GetHandle("movieAttributes"); private static readonly IntPtr selSetMovieAttributes_Handle = Selector.GetHandle("setMovieAttributes:"); private static readonly IntPtr selTracksHandle = Selector.GetHandle("tracks"); private static readonly IntPtr selPosterImageHandle = Selector.GetHandle("posterImage"); private static readonly IntPtr selCurrentFrameImageHandle = Selector.GetHandle("currentFrameImage"); private static readonly IntPtr selCanUpdateMovieFileHandle = Selector.GetHandle("canUpdateMovieFile"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selIsIdlingHandle = Selector.GetHandle("isIdling"); private static readonly IntPtr selHasChaptersHandle = Selector.GetHandle("hasChapters"); private static readonly IntPtr selChapterCountHandle = Selector.GetHandle("chapterCount"); private static readonly IntPtr selCanInitWithPasteboard_Handle = Selector.GetHandle("canInitWithPasteboard:"); private static readonly IntPtr selCanInitWithFile_Handle = Selector.GetHandle("canInitWithFile:"); private static readonly IntPtr selCanInitWithURL_Handle = Selector.GetHandle("canInitWithURL:"); private static readonly IntPtr selMovieFileTypes_Handle = Selector.GetHandle("movieFileTypes:"); private static readonly IntPtr selMovieUnfilteredFileTypesHandle = Selector.GetHandle("movieUnfilteredFileTypes"); private static readonly IntPtr selMovieUnfilteredPasteboardTypesHandle = Selector.GetHandle("movieUnfilteredPasteboardTypes"); private static readonly IntPtr selMovieTypesWithOptions_Handle = Selector.GetHandle("movieTypesWithOptions:"); private static readonly IntPtr selMovieWithFileError_Handle = Selector.GetHandle("movieWithFile:error:"); private static readonly IntPtr selMovieWithURLError_Handle = Selector.GetHandle("movieWithURL:error:"); private static readonly IntPtr selMovieWithPasteboardError_Handle = Selector.GetHandle("movieWithPasteboard:error:"); private static readonly IntPtr selMovieWithDataError_Handle = Selector.GetHandle("movieWithData:error:"); private static readonly IntPtr selMovieWithAttributesError_Handle = Selector.GetHandle("movieWithAttributes:error:"); private static readonly IntPtr selMovieNamedError_Handle = Selector.GetHandle("movieNamed:error:"); private static readonly IntPtr selInitWithFileError_Handle = Selector.GetHandle("initWithFile:error:"); private static readonly IntPtr selInitWithURLError_Handle = Selector.GetHandle("initWithURL:error:"); private static readonly IntPtr selInitWithDataReferenceError_Handle = Selector.GetHandle("initWithDataReference:error:"); private static readonly IntPtr selInitWithPasteboardError_Handle = Selector.GetHandle("initWithPasteboard:error:"); private static readonly IntPtr selInitWithDataError_Handle = Selector.GetHandle("initWithData:error:"); private static readonly IntPtr selInitWithMovieTimeRangeError_Handle = Selector.GetHandle("initWithMovie:timeRange:error:"); private static readonly IntPtr selInitWithAttributesError_Handle = Selector.GetHandle("initWithAttributes:error:"); private static readonly IntPtr selMovieWithTimeRangeError_Handle = Selector.GetHandle("movieWithTimeRange:error:"); private static readonly IntPtr selInitToWritableDataError_Handle = Selector.GetHandle("initToWritableData:error:"); private static readonly IntPtr selInvalidateHandle = Selector.GetHandle("invalidate"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selSetAttributeForKey_Handle = Selector.GetHandle("setAttribute:forKey:"); private static readonly IntPtr selTracksOfMediaType_Handle = Selector.GetHandle("tracksOfMediaType:"); private static readonly IntPtr selFrameImageAtTime_Handle = Selector.GetHandle("frameImageAtTime:"); private static readonly IntPtr selFrameImageAtTimeWithAttributesError_Handle = Selector.GetHandle("frameImageAtTime:withAttributes:error:"); private static readonly IntPtr selMovieFormatRepresentationHandle = Selector.GetHandle("movieFormatRepresentation"); private static readonly IntPtr selWriteToFileWithAttributes_Handle = Selector.GetHandle("writeToFile:withAttributes:"); private static readonly IntPtr selWriteToFileWithAttributesError_Handle = Selector.GetHandle("writeToFile:withAttributes:error:"); private static readonly IntPtr selUpdateMovieFileHandle = Selector.GetHandle("updateMovieFile"); private static readonly IntPtr selAutoplayHandle = Selector.GetHandle("autoplay"); private static readonly IntPtr selPlayHandle = Selector.GetHandle("play"); private static readonly IntPtr selStopHandle = Selector.GetHandle("stop"); private static readonly IntPtr selGotoBeginningHandle = Selector.GetHandle("gotoBeginning"); private static readonly IntPtr selGotoEndHandle = Selector.GetHandle("gotoEnd"); private static readonly IntPtr selGotoNextSelectionPointHandle = Selector.GetHandle("gotoNextSelectionPoint"); private static readonly IntPtr selGotoPreviousSelectionPointHandle = Selector.GetHandle("gotoPreviousSelectionPoint"); private static readonly IntPtr selGotoPosterTimeHandle = Selector.GetHandle("gotoPosterTime"); private static readonly IntPtr selStepForwardHandle = Selector.GetHandle("stepForward"); private static readonly IntPtr selStepBackwardHandle = Selector.GetHandle("stepBackward"); private static readonly IntPtr selSetSelection_Handle = Selector.GetHandle("setSelection:"); private static readonly IntPtr selSelectionStartHandle = Selector.GetHandle("selectionStart"); private static readonly IntPtr selSelectionEndHandle = Selector.GetHandle("selectionEnd"); private static readonly IntPtr selSelectionDurationHandle = Selector.GetHandle("selectionDuration"); private static readonly IntPtr selReplaceSelectionWithSelectionFromMovie_Handle = Selector.GetHandle("replaceSelectionWithSelectionFromMovie:"); private static readonly IntPtr selAppendSelectionFromMovie_Handle = Selector.GetHandle("appendSelectionFromMovie:"); private static readonly IntPtr selInsertSegmentOfMovieTimeRangeAtTime_Handle = Selector.GetHandle("insertSegmentOfMovie:timeRange:atTime:"); private static readonly IntPtr selInsertSegmentOfMovieFromRangeScaledToRange_Handle = Selector.GetHandle("insertSegmentOfMovie:fromRange:scaledToRange:"); private static readonly IntPtr selInsertEmptySegmentAt_Handle = Selector.GetHandle("insertEmptySegmentAt:"); private static readonly IntPtr selDeleteSegment_Handle = Selector.GetHandle("deleteSegment:"); private static readonly IntPtr selScaleSegmentNewDuration_Handle = Selector.GetHandle("scaleSegment:newDuration:"); private static readonly IntPtr selAddImageForDurationWithAttributes_Handle = Selector.GetHandle("addImage:forDuration:withAttributes:"); private static readonly IntPtr selInsertSegmentOfTrackTimeRangeAtTime_Handle = Selector.GetHandle("insertSegmentOfTrack:timeRange:atTime:"); private static readonly IntPtr selInsertSegmentOfTrackFromRangeScaledToRange_Handle = Selector.GetHandle("insertSegmentOfTrack:fromRange:scaledToRange:"); private static readonly IntPtr selRemoveTrack_Handle = Selector.GetHandle("removeTrack:"); private static readonly IntPtr selGenerateApertureModeDimensionsHandle = Selector.GetHandle("generateApertureModeDimensions"); private static readonly IntPtr selRemoveApertureModeDimensionsHandle = Selector.GetHandle("removeApertureModeDimensions"); private static readonly IntPtr selEnterQTKitOnThreadHandle = Selector.GetHandle("enterQTKitOnThread"); private static readonly IntPtr selEnterQTKitOnThreadDisablingThreadSafetyProtectionHandle = Selector.GetHandle("enterQTKitOnThreadDisablingThreadSafetyProtection"); private static readonly IntPtr selExitQTKitOnThreadHandle = Selector.GetHandle("exitQTKitOnThread"); private static readonly IntPtr selAttachToCurrentThreadHandle = Selector.GetHandle("attachToCurrentThread"); private static readonly IntPtr selDetachFromCurrentThreadHandle = Selector.GetHandle("detachFromCurrentThread"); private static readonly IntPtr selChaptersHandle = Selector.GetHandle("chapters"); private static readonly IntPtr selRemoveChaptersHandle = Selector.GetHandle("removeChapters"); private static readonly IntPtr selStartTimeOfChapter_Handle = Selector.GetHandle("startTimeOfChapter:"); private static readonly IntPtr selChapterIndexForTime_Handle = Selector.GetHandle("chapterIndexForTime:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTMovie"); private static object __mt_Movie_var_static; private object __mt_MovieAttributes_var; private object __mt_Tracks_var; private object __mt_PosterImage_var; private object __mt_CurrentFrameImage_var; private object __mt_WeakDelegate_var; private static NSString _PasteboardType; private static NSString _EditabilityDidChangeNotification; private static NSString _EditedNotification; private static NSString _LoadStateDidChangeNotification; private static NSString _LoopModeDidChangeNotification; private static NSString _MessageStringPostedNotification; private static NSString _RateDidChangeNotification; private static NSString _SelectionDidChangeNotification; private static NSString _SizeDidChangeNotification; private static NSString _StatusStringPostedNotification; private static NSString _TimeDidChangeNotification; private static NSString _VolumeDidChangeNotification; private static NSString _DidEndNotification; private static NSString _ChapterDidChangeNotification; private static NSString _ChapterListDidChangeNotification; private static NSString _EnterFullScreenRequestNotification; private static NSString _ExitFullScreenRequestNotification; private static NSString _CloseWindowRequestNotification; private static NSString _ApertureModeDidChangeNotification; private static NSString _MessageNotificationParameter; private static NSString _RateDidChangeNotificationParameter; private static NSString _StatusFlagsNotificationParameter; private static NSString _StatusCodeNotificationParameter; private static NSString _StatusStringNotificationParameter; private static NSString _TargetIDNotificationParameter; private static NSString _TargetNameNotificationParameter; private static NSString _KeyExport; private static NSString _KeyExportType; private static NSString _KeyFlatten; private static NSString _KeyExportSettings; private static NSString _KeyExportManufacturer; private static NSString _ImageCodecType; private static NSString _ImageCodecQuality; private static NSString _DataReferenceAttribute; private static NSString _PasteboardAttribute; private static NSString _DataAttribute; private static NSString _FileOffsetAttribute; private static NSString _ResolveDataRefsAttribute; private static NSString _AskUnresolvedDataRefsAttribute; private static NSString _OpenAsyncOKAttribute; private static NSString _ApertureModeAttribute; private static NSString _ActiveSegmentAttribute; private static NSString _AutoAlternatesAttribute; private static NSString _CopyrightAttribute; private static NSString _CreationTimeAttribute; private static NSString _CurrentSizeAttribute; private static NSString _CurrentTimeAttribute; private static NSString _DataSizeAttribute; private static NSString _DelegateAttribute; private static NSString _DisplayNameAttribute; private static NSString _DontInteractWithUserAttribute; private static NSString _DurationAttribute; private static NSString _EditableAttribute; private static NSString _FileNameAttribute; private static NSString _HasApertureModeDimensionsAttribute; private static NSString _HasAudioAttribute; private static NSString _HasDurationAttribute; private static NSString _HasVideoAttribute; private static NSString _IsActiveAttribute; private static NSString _IsInteractiveAttribute; private static NSString _IsLinearAttribute; private static NSString _IsSteppableAttribute; private static NSString _LoadStateAttribute; private static NSString _LoopsAttribute; private static NSString _LoopsBackAndForthAttribute; private static NSString _ModificationTimeAttribute; private static NSString _MutedAttribute; private static NSString _NaturalSizeAttribute; private static NSString _PlaysAllFramesAttribute; private static NSString _PlaysSelectionOnlyAttribute; private static NSString _PosterTimeAttribute; private static NSString _PreferredMutedAttribute; private static NSString _PreferredRateAttribute; private static NSString _PreferredVolumeAttribute; private static NSString _PreviewModeAttribute; private static NSString _PreviewRangeAttribute; private static NSString _RateAttribute; private static NSString _SelectionAttribute; private static NSString _TimeScaleAttribute; private static NSString _URLAttribute; private static NSString _VolumeAttribute; private static NSString _RateChangesPreservePitchAttribute; private static NSString _ApertureModeClassic; private static NSString _ApertureModeClean; private static NSString _ApertureModeProduction; private static NSString _ApertureModeEncodedPixels; private static NSString _FrameImageSize; private static NSString _FrameImageType; private static NSString _FrameImageTypeNSImage; private static NSString _FrameImageTypeCGImageRef; private static NSString _FrameImageTypeCIImage; private static NSString _FrameImageTypeCVPixelBufferRef; private static NSString _FrameImageTypeCVOpenGLTextureRef; private static NSString _FrameImageOpenGLContext; private static NSString _FrameImagePixelFormat; private static NSString _FrameImageRepresentationsType; private static NSString _FrameImageDeinterlaceFields; private static NSString _FrameImageHighQuality; private static NSString _FrameImageSingleField; private static NSString _UneditableException; private static NSString _ChapterName; private static NSString _ChapterStartTime; private static NSString _ChapterTargetTrackAttribute; public override IntPtr ClassHandle => class_ptr; public virtual QTTime Duration { [Export("duration")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } } public static QTMovie Movie { [Export("movie")] get { return (QTMovie)(__mt_Movie_var_static = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selMovieHandle))); } } public virtual QTTime CurrentTime { [Export("currentTime")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selCurrentTimeHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selCurrentTimeHandle); } [Export("setCurrentTime:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTime(base.Handle, selSetCurrentTime_Handle, value); } else { Messaging.void_objc_msgSendSuper_QTTime(base.SuperHandle, selSetCurrentTime_Handle, value); } } } public virtual float Rate { [Export("rate")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selRateHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selRateHandle); } [Export("setRate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetRate_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetRate_Handle, value); } } } public virtual float Volume { [Export("volume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } public virtual bool Muted { [Export("muted")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMutedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMutedHandle); } [Export("setMuted:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMuted_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMuted_Handle, value); } } } public virtual NSDictionary MovieAttributes { [Export("movieAttributes")] get { return (NSDictionary)(__mt_MovieAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMovieAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMovieAttributesHandle))))); } [Export("setMovieAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMovieAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMovieAttributes_Handle, value.Handle); } __mt_MovieAttributes_var = value; } } public virtual QTTrack[] Tracks { [Export("tracks")] get { return (QTTrack[])(__mt_Tracks_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTracksHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTracksHandle)))); } } public virtual NSImage PosterImage { [Export("posterImage")] get { return (NSImage)(__mt_PosterImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPosterImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPosterImageHandle))))); } } public virtual NSImage CurrentFrameImage { [Export("currentFrameImage")] get { return (NSImage)(__mt_CurrentFrameImage_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentFrameImageHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentFrameImageHandle))))); } } public virtual bool CanUpdateMovieFile { [Export("canUpdateMovieFile")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanUpdateMovieFileHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanUpdateMovieFileHandle); } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public virtual bool Idling { [Export("isIdling")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsIdlingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsIdlingHandle); } } public virtual bool HasChapters { [Export("hasChapters")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasChaptersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasChaptersHandle); } } public virtual int ChapterCount { [Export("chapterCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selChapterCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selChapterCountHandle); } } [Field("QTMoviePasteboardType", "QTKit")] public static NSString PasteboardType { get { if (_PasteboardType == null) { _PasteboardType = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePasteboardType"); } return _PasteboardType; } } [Field("QTMovieEditabilityDidChangeNotification", "QTKit")] public static NSString EditabilityDidChangeNotification { get { if (_EditabilityDidChangeNotification == null) { _EditabilityDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieEditabilityDidChangeNotification"); } return _EditabilityDidChangeNotification; } } [Field("QTMovieEditedNotification", "QTKit")] public static NSString EditedNotification { get { if (_EditedNotification == null) { _EditedNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieEditedNotification"); } return _EditedNotification; } } [Field("QTMovieLoadStateDidChangeNotification", "QTKit")] public static NSString LoadStateDidChangeNotification { get { if (_LoadStateDidChangeNotification == null) { _LoadStateDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieLoadStateDidChangeNotification"); } return _LoadStateDidChangeNotification; } } [Field("QTMovieLoopModeDidChangeNotification", "QTKit")] public static NSString LoopModeDidChangeNotification { get { if (_LoopModeDidChangeNotification == null) { _LoopModeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieLoopModeDidChangeNotification"); } return _LoopModeDidChangeNotification; } } [Field("QTMovieMessageStringPostedNotification", "QTKit")] public static NSString MessageStringPostedNotification { get { if (_MessageStringPostedNotification == null) { _MessageStringPostedNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieMessageStringPostedNotification"); } return _MessageStringPostedNotification; } } [Field("QTMovieRateDidChangeNotification", "QTKit")] public static NSString RateDidChangeNotification { get { if (_RateDidChangeNotification == null) { _RateDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieRateDidChangeNotification"); } return _RateDidChangeNotification; } } [Field("QTMovieSelectionDidChangeNotification", "QTKit")] public static NSString SelectionDidChangeNotification { get { if (_SelectionDidChangeNotification == null) { _SelectionDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieSelectionDidChangeNotification"); } return _SelectionDidChangeNotification; } } [Field("QTMovieSizeDidChangeNotification", "QTKit")] public static NSString SizeDidChangeNotification { get { if (_SizeDidChangeNotification == null) { _SizeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieSizeDidChangeNotification"); } return _SizeDidChangeNotification; } } [Field("QTMovieStatusStringPostedNotification", "QTKit")] public static NSString StatusStringPostedNotification { get { if (_StatusStringPostedNotification == null) { _StatusStringPostedNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieStatusStringPostedNotification"); } return _StatusStringPostedNotification; } } [Field("QTMovieTimeDidChangeNotification", "QTKit")] public static NSString TimeDidChangeNotification { get { if (_TimeDidChangeNotification == null) { _TimeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieTimeDidChangeNotification"); } return _TimeDidChangeNotification; } } [Field("QTMovieVolumeDidChangeNotification", "QTKit")] public static NSString VolumeDidChangeNotification { get { if (_VolumeDidChangeNotification == null) { _VolumeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieVolumeDidChangeNotification"); } return _VolumeDidChangeNotification; } } [Field("QTMovieDidEndNotification", "QTKit")] public static NSString DidEndNotification { get { if (_DidEndNotification == null) { _DidEndNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDidEndNotification"); } return _DidEndNotification; } } [Field("QTMovieChapterDidChangeNotification", "QTKit")] public static NSString ChapterDidChangeNotification { get { if (_ChapterDidChangeNotification == null) { _ChapterDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieChapterDidChangeNotification"); } return _ChapterDidChangeNotification; } } [Field("QTMovieChapterListDidChangeNotification", "QTKit")] public static NSString ChapterListDidChangeNotification { get { if (_ChapterListDidChangeNotification == null) { _ChapterListDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieChapterListDidChangeNotification"); } return _ChapterListDidChangeNotification; } } [Field("QTMovieEnterFullScreenRequestNotification", "QTKit")] public static NSString EnterFullScreenRequestNotification { get { if (_EnterFullScreenRequestNotification == null) { _EnterFullScreenRequestNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieEnterFullScreenRequestNotification"); } return _EnterFullScreenRequestNotification; } } [Field("QTMovieExitFullScreenRequestNotification", "QTKit")] public static NSString ExitFullScreenRequestNotification { get { if (_ExitFullScreenRequestNotification == null) { _ExitFullScreenRequestNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieExitFullScreenRequestNotification"); } return _ExitFullScreenRequestNotification; } } [Field("QTMovieCloseWindowRequestNotification", "QTKit")] public static NSString CloseWindowRequestNotification { get { if (_CloseWindowRequestNotification == null) { _CloseWindowRequestNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieCloseWindowRequestNotification"); } return _CloseWindowRequestNotification; } } [Field("QTMovieApertureModeDidChangeNotification", "QTKit")] public static NSString ApertureModeDidChangeNotification { get { if (_ApertureModeDidChangeNotification == null) { _ApertureModeDidChangeNotification = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeDidChangeNotification"); } return _ApertureModeDidChangeNotification; } } [Field("QTMovieMessageNotificationParameter", "QTKit")] public static NSString MessageNotificationParameter { get { if (_MessageNotificationParameter == null) { _MessageNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieMessageNotificationParameter"); } return _MessageNotificationParameter; } } [Field("QTMovieRateDidChangeNotificationParameter", "QTKit")] public static NSString RateDidChangeNotificationParameter { get { if (_RateDidChangeNotificationParameter == null) { _RateDidChangeNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieRateDidChangeNotificationParameter"); } return _RateDidChangeNotificationParameter; } } [Field("QTMovieStatusFlagsNotificationParameter", "QTKit")] public static NSString StatusFlagsNotificationParameter { get { if (_StatusFlagsNotificationParameter == null) { _StatusFlagsNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieStatusFlagsNotificationParameter"); } return _StatusFlagsNotificationParameter; } } [Field("QTMovieStatusCodeNotificationParameter", "QTKit")] public static NSString StatusCodeNotificationParameter { get { if (_StatusCodeNotificationParameter == null) { _StatusCodeNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieStatusCodeNotificationParameter"); } return _StatusCodeNotificationParameter; } } [Field("QTMovieStatusStringNotificationParameter", "QTKit")] public static NSString StatusStringNotificationParameter { get { if (_StatusStringNotificationParameter == null) { _StatusStringNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieStatusStringNotificationParameter"); } return _StatusStringNotificationParameter; } } [Field("QTMovieTargetIDNotificationParameter", "QTKit")] public static NSString TargetIDNotificationParameter { get { if (_TargetIDNotificationParameter == null) { _TargetIDNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieTargetIDNotificationParameter"); } return _TargetIDNotificationParameter; } } [Field("QTMovieTargetNameNotificationParameter", "QTKit")] public static NSString TargetNameNotificationParameter { get { if (_TargetNameNotificationParameter == null) { _TargetNameNotificationParameter = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieTargetNameNotificationParameter"); } return _TargetNameNotificationParameter; } } [Field("QTMovieExport", "QTKit")] internal static NSString KeyExport { get { if (_KeyExport == null) { _KeyExport = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieExport"); } return _KeyExport; } } [Field("QTMovieExportType", "QTKit")] internal static NSString KeyExportType { get { if (_KeyExportType == null) { _KeyExportType = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieExportType"); } return _KeyExportType; } } [Field("QTMovieFlatten", "QTKit")] internal static NSString KeyFlatten { get { if (_KeyFlatten == null) { _KeyFlatten = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFlatten"); } return _KeyFlatten; } } [Field("QTMovieExportSettings", "QTKit")] internal static NSString KeyExportSettings { get { if (_KeyExportSettings == null) { _KeyExportSettings = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieExportSettings"); } return _KeyExportSettings; } } [Field("QTMovieExportManufacturer", "QTKit")] internal static NSString KeyExportManufacturer { get { if (_KeyExportManufacturer == null) { _KeyExportManufacturer = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieExportManufacturer"); } return _KeyExportManufacturer; } } [Field("QTAddImageCodecType", "QTKit")] internal static NSString ImageCodecType { get { if (_ImageCodecType == null) { _ImageCodecType = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTAddImageCodecType"); } return _ImageCodecType; } } [Field("QTAddImageCodecQuality", "QTKit")] internal static NSString ImageCodecQuality { get { if (_ImageCodecQuality == null) { _ImageCodecQuality = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTAddImageCodecQuality"); } return _ImageCodecQuality; } } [Field("QTMovieDataReferenceAttribute", "QTKit")] public static NSString DataReferenceAttribute { get { if (_DataReferenceAttribute == null) { _DataReferenceAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDataReferenceAttribute"); } return _DataReferenceAttribute; } } [Field("QTMoviePasteboardAttribute", "QTKit")] public static NSString PasteboardAttribute { get { if (_PasteboardAttribute == null) { _PasteboardAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePasteboardAttribute"); } return _PasteboardAttribute; } } [Field("QTMovieDataAttribute", "QTKit")] public static NSString DataAttribute { get { if (_DataAttribute == null) { _DataAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDataAttribute"); } return _DataAttribute; } } [Field("QTMovieFileOffsetAttribute", "QTKit")] public static NSString FileOffsetAttribute { get { if (_FileOffsetAttribute == null) { _FileOffsetAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFileOffsetAttribute"); } return _FileOffsetAttribute; } } [Field("QTMovieResolveDataRefsAttribute", "QTKit")] public static NSString ResolveDataRefsAttribute { get { if (_ResolveDataRefsAttribute == null) { _ResolveDataRefsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieResolveDataRefsAttribute"); } return _ResolveDataRefsAttribute; } } [Field("QTMovieAskUnresolvedDataRefsAttribute", "QTKit")] public static NSString AskUnresolvedDataRefsAttribute { get { if (_AskUnresolvedDataRefsAttribute == null) { _AskUnresolvedDataRefsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieAskUnresolvedDataRefsAttribute"); } return _AskUnresolvedDataRefsAttribute; } } [Field("QTMovieOpenAsyncOKAttribute", "QTKit")] public static NSString OpenAsyncOKAttribute { get { if (_OpenAsyncOKAttribute == null) { _OpenAsyncOKAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieOpenAsyncOKAttribute"); } return _OpenAsyncOKAttribute; } } [Field("QTMovieApertureModeAttribute", "QTKit")] public static NSString ApertureModeAttribute { get { if (_ApertureModeAttribute == null) { _ApertureModeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeAttribute"); } return _ApertureModeAttribute; } } [Field("QTMovieActiveSegmentAttribute", "QTKit")] public static NSString ActiveSegmentAttribute { get { if (_ActiveSegmentAttribute == null) { _ActiveSegmentAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieActiveSegmentAttribute"); } return _ActiveSegmentAttribute; } } [Field("QTMovieAutoAlternatesAttribute", "QTKit")] public static NSString AutoAlternatesAttribute { get { if (_AutoAlternatesAttribute == null) { _AutoAlternatesAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieAutoAlternatesAttribute"); } return _AutoAlternatesAttribute; } } [Field("QTMovieCopyrightAttribute", "QTKit")] public static NSString CopyrightAttribute { get { if (_CopyrightAttribute == null) { _CopyrightAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieCopyrightAttribute"); } return _CopyrightAttribute; } } [Field("QTMovieCreationTimeAttribute", "QTKit")] public static NSString CreationTimeAttribute { get { if (_CreationTimeAttribute == null) { _CreationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieCreationTimeAttribute"); } return _CreationTimeAttribute; } } [Field("QTMovieCurrentSizeAttribute", "QTKit")] public static NSString CurrentSizeAttribute { get { if (_CurrentSizeAttribute == null) { _CurrentSizeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieCurrentSizeAttribute"); } return _CurrentSizeAttribute; } } [Field("QTMovieCurrentTimeAttribute", "QTKit")] public static NSString CurrentTimeAttribute { get { if (_CurrentTimeAttribute == null) { _CurrentTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieCurrentTimeAttribute"); } return _CurrentTimeAttribute; } } [Field("QTMovieDataSizeAttribute", "QTKit")] public static NSString DataSizeAttribute { get { if (_DataSizeAttribute == null) { _DataSizeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDataSizeAttribute"); } return _DataSizeAttribute; } } [Field("QTMovieDelegateAttribute", "QTKit")] public static NSString DelegateAttribute { get { if (_DelegateAttribute == null) { _DelegateAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDelegateAttribute"); } return _DelegateAttribute; } } [Field("QTMovieDisplayNameAttribute", "QTKit")] public static NSString DisplayNameAttribute { get { if (_DisplayNameAttribute == null) { _DisplayNameAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDisplayNameAttribute"); } return _DisplayNameAttribute; } } [Field("QTMovieDontInteractWithUserAttribute", "QTKit")] public static NSString DontInteractWithUserAttribute { get { if (_DontInteractWithUserAttribute == null) { _DontInteractWithUserAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDontInteractWithUserAttribute"); } return _DontInteractWithUserAttribute; } } [Field("QTMovieDurationAttribute", "QTKit")] public static NSString DurationAttribute { get { if (_DurationAttribute == null) { _DurationAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieDurationAttribute"); } return _DurationAttribute; } } [Field("QTMovieEditableAttribute", "QTKit")] public static NSString EditableAttribute { get { if (_EditableAttribute == null) { _EditableAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieEditableAttribute"); } return _EditableAttribute; } } [Field("QTMovieFileNameAttribute", "QTKit")] public static NSString FileNameAttribute { get { if (_FileNameAttribute == null) { _FileNameAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFileNameAttribute"); } return _FileNameAttribute; } } [Field("QTMovieHasApertureModeDimensionsAttribute", "QTKit")] public static NSString HasApertureModeDimensionsAttribute { get { if (_HasApertureModeDimensionsAttribute == null) { _HasApertureModeDimensionsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieHasApertureModeDimensionsAttribute"); } return _HasApertureModeDimensionsAttribute; } } [Field("QTMovieHasAudioAttribute", "QTKit")] public static NSString HasAudioAttribute { get { if (_HasAudioAttribute == null) { _HasAudioAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieHasAudioAttribute"); } return _HasAudioAttribute; } } [Field("QTMovieHasDurationAttribute", "QTKit")] public static NSString HasDurationAttribute { get { if (_HasDurationAttribute == null) { _HasDurationAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieHasDurationAttribute"); } return _HasDurationAttribute; } } [Field("QTMovieHasVideoAttribute", "QTKit")] public static NSString HasVideoAttribute { get { if (_HasVideoAttribute == null) { _HasVideoAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieHasVideoAttribute"); } return _HasVideoAttribute; } } [Field("QTMovieIsActiveAttribute", "QTKit")] public static NSString IsActiveAttribute { get { if (_IsActiveAttribute == null) { _IsActiveAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieIsActiveAttribute"); } return _IsActiveAttribute; } } [Field("QTMovieIsInteractiveAttribute", "QTKit")] public static NSString IsInteractiveAttribute { get { if (_IsInteractiveAttribute == null) { _IsInteractiveAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieIsInteractiveAttribute"); } return _IsInteractiveAttribute; } } [Field("QTMovieIsLinearAttribute", "QTKit")] public static NSString IsLinearAttribute { get { if (_IsLinearAttribute == null) { _IsLinearAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieIsLinearAttribute"); } return _IsLinearAttribute; } } [Field("QTMovieIsSteppableAttribute", "QTKit")] public static NSString IsSteppableAttribute { get { if (_IsSteppableAttribute == null) { _IsSteppableAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieIsSteppableAttribute"); } return _IsSteppableAttribute; } } [Field("QTMovieLoadStateAttribute", "QTKit")] public static NSString LoadStateAttribute { get { if (_LoadStateAttribute == null) { _LoadStateAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieLoadStateAttribute"); } return _LoadStateAttribute; } } [Field("QTMovieLoopsAttribute", "QTKit")] public static NSString LoopsAttribute { get { if (_LoopsAttribute == null) { _LoopsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieLoopsAttribute"); } return _LoopsAttribute; } } [Field("QTMovieLoopsBackAndForthAttribute", "QTKit")] public static NSString LoopsBackAndForthAttribute { get { if (_LoopsBackAndForthAttribute == null) { _LoopsBackAndForthAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieLoopsBackAndForthAttribute"); } return _LoopsBackAndForthAttribute; } } [Field("QTMovieModificationTimeAttribute", "QTKit")] public static NSString ModificationTimeAttribute { get { if (_ModificationTimeAttribute == null) { _ModificationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieModificationTimeAttribute"); } return _ModificationTimeAttribute; } } [Field("QTMovieMutedAttribute", "QTKit")] public static NSString MutedAttribute { get { if (_MutedAttribute == null) { _MutedAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieMutedAttribute"); } return _MutedAttribute; } } [Field("QTMovieNaturalSizeAttribute", "QTKit")] public static NSString NaturalSizeAttribute { get { if (_NaturalSizeAttribute == null) { _NaturalSizeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieNaturalSizeAttribute"); } return _NaturalSizeAttribute; } } [Field("QTMoviePlaysAllFramesAttribute", "QTKit")] public static NSString PlaysAllFramesAttribute { get { if (_PlaysAllFramesAttribute == null) { _PlaysAllFramesAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePlaysAllFramesAttribute"); } return _PlaysAllFramesAttribute; } } [Field("QTMoviePlaysSelectionOnlyAttribute", "QTKit")] public static NSString PlaysSelectionOnlyAttribute { get { if (_PlaysSelectionOnlyAttribute == null) { _PlaysSelectionOnlyAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePlaysSelectionOnlyAttribute"); } return _PlaysSelectionOnlyAttribute; } } [Field("QTMoviePosterTimeAttribute", "QTKit")] public static NSString PosterTimeAttribute { get { if (_PosterTimeAttribute == null) { _PosterTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePosterTimeAttribute"); } return _PosterTimeAttribute; } } [Field("QTMoviePreferredMutedAttribute", "QTKit")] public static NSString PreferredMutedAttribute { get { if (_PreferredMutedAttribute == null) { _PreferredMutedAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePreferredMutedAttribute"); } return _PreferredMutedAttribute; } } [Field("QTMoviePreferredRateAttribute", "QTKit")] public static NSString PreferredRateAttribute { get { if (_PreferredRateAttribute == null) { _PreferredRateAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePreferredRateAttribute"); } return _PreferredRateAttribute; } } [Field("QTMoviePreferredVolumeAttribute", "QTKit")] public static NSString PreferredVolumeAttribute { get { if (_PreferredVolumeAttribute == null) { _PreferredVolumeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePreferredVolumeAttribute"); } return _PreferredVolumeAttribute; } } [Field("QTMoviePreviewModeAttribute", "QTKit")] public static NSString PreviewModeAttribute { get { if (_PreviewModeAttribute == null) { _PreviewModeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePreviewModeAttribute"); } return _PreviewModeAttribute; } } [Field("QTMoviePreviewRangeAttribute", "QTKit")] public static NSString PreviewRangeAttribute { get { if (_PreviewRangeAttribute == null) { _PreviewRangeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMoviePreviewRangeAttribute"); } return _PreviewRangeAttribute; } } [Field("QTMovieRateAttribute", "QTKit")] public static NSString RateAttribute { get { if (_RateAttribute == null) { _RateAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieRateAttribute"); } return _RateAttribute; } } [Field("QTMovieSelectionAttribute", "QTKit")] public static NSString SelectionAttribute { get { if (_SelectionAttribute == null) { _SelectionAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieSelectionAttribute"); } return _SelectionAttribute; } } [Field("QTMovieTimeScaleAttribute", "QTKit")] public static NSString TimeScaleAttribute { get { if (_TimeScaleAttribute == null) { _TimeScaleAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieTimeScaleAttribute"); } return _TimeScaleAttribute; } } [Field("QTMovieURLAttribute", "QTKit")] public static NSString URLAttribute { get { if (_URLAttribute == null) { _URLAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieURLAttribute"); } return _URLAttribute; } } [Field("QTMovieVolumeAttribute", "QTKit")] public static NSString VolumeAttribute { get { if (_VolumeAttribute == null) { _VolumeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieVolumeAttribute"); } return _VolumeAttribute; } } [Field("QTMovieRateChangesPreservePitchAttribute", "QTKit")] public static NSString RateChangesPreservePitchAttribute { get { if (_RateChangesPreservePitchAttribute == null) { _RateChangesPreservePitchAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieRateChangesPreservePitchAttribute"); } return _RateChangesPreservePitchAttribute; } } [Field("QTMovieApertureModeClassic", "QTKit")] public static NSString ApertureModeClassic { get { if (_ApertureModeClassic == null) { _ApertureModeClassic = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeClassic"); } return _ApertureModeClassic; } } [Field("QTMovieApertureModeClean", "QTKit")] public static NSString ApertureModeClean { get { if (_ApertureModeClean == null) { _ApertureModeClean = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeClean"); } return _ApertureModeClean; } } [Field("QTMovieApertureModeProduction", "QTKit")] public static NSString ApertureModeProduction { get { if (_ApertureModeProduction == null) { _ApertureModeProduction = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeProduction"); } return _ApertureModeProduction; } } [Field("QTMovieApertureModeEncodedPixels", "QTKit")] public static NSString ApertureModeEncodedPixels { get { if (_ApertureModeEncodedPixels == null) { _ApertureModeEncodedPixels = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieApertureModeEncodedPixels"); } return _ApertureModeEncodedPixels; } } [Field("QTMovieFrameImageSize", "QTKit")] public static NSString FrameImageSize { get { if (_FrameImageSize == null) { _FrameImageSize = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageSize"); } return _FrameImageSize; } } [Field("QTMovieFrameImageType", "QTKit")] public static NSString FrameImageType { get { if (_FrameImageType == null) { _FrameImageType = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageType"); } return _FrameImageType; } } [Field("QTMovieFrameImageTypeNSImage", "QTKit")] public static NSString FrameImageTypeNSImage { get { if (_FrameImageTypeNSImage == null) { _FrameImageTypeNSImage = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageTypeNSImage"); } return _FrameImageTypeNSImage; } } [Field("QTMovieFrameImageTypeCGImageRef", "QTKit")] public static NSString FrameImageTypeCGImageRef { get { if (_FrameImageTypeCGImageRef == null) { _FrameImageTypeCGImageRef = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageTypeCGImageRef"); } return _FrameImageTypeCGImageRef; } } [Field("QTMovieFrameImageTypeCIImage", "QTKit")] public static NSString FrameImageTypeCIImage { get { if (_FrameImageTypeCIImage == null) { _FrameImageTypeCIImage = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageTypeCIImage"); } return _FrameImageTypeCIImage; } } [Field("QTMovieFrameImageTypeCVPixelBufferRef", "QTKit")] public static NSString FrameImageTypeCVPixelBufferRef { get { if (_FrameImageTypeCVPixelBufferRef == null) { _FrameImageTypeCVPixelBufferRef = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageTypeCVPixelBufferRef"); } return _FrameImageTypeCVPixelBufferRef; } } [Field("QTMovieFrameImageTypeCVOpenGLTextureRef", "QTKit")] public static NSString FrameImageTypeCVOpenGLTextureRef { get { if (_FrameImageTypeCVOpenGLTextureRef == null) { _FrameImageTypeCVOpenGLTextureRef = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageTypeCVOpenGLTextureRef"); } return _FrameImageTypeCVOpenGLTextureRef; } } [Field("QTMovieFrameImageOpenGLContext", "QTKit")] public static NSString FrameImageOpenGLContext { get { if (_FrameImageOpenGLContext == null) { _FrameImageOpenGLContext = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageOpenGLContext"); } return _FrameImageOpenGLContext; } } [Field("QTMovieFrameImagePixelFormat", "QTKit")] public static NSString FrameImagePixelFormat { get { if (_FrameImagePixelFormat == null) { _FrameImagePixelFormat = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImagePixelFormat"); } return _FrameImagePixelFormat; } } [Field("QTMovieFrameImageRepresentationsType", "QTKit")] public static NSString FrameImageRepresentationsType { get { if (_FrameImageRepresentationsType == null) { _FrameImageRepresentationsType = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageRepresentationsType"); } return _FrameImageRepresentationsType; } } [Field("QTMovieFrameImageDeinterlaceFields", "QTKit")] public static NSString FrameImageDeinterlaceFields { get { if (_FrameImageDeinterlaceFields == null) { _FrameImageDeinterlaceFields = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageDeinterlaceFields"); } return _FrameImageDeinterlaceFields; } } [Field("QTMovieFrameImageHighQuality", "QTKit")] public static NSString FrameImageHighQuality { get { if (_FrameImageHighQuality == null) { _FrameImageHighQuality = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageHighQuality"); } return _FrameImageHighQuality; } } [Field("QTMovieFrameImageSingleField", "QTKit")] public static NSString FrameImageSingleField { get { if (_FrameImageSingleField == null) { _FrameImageSingleField = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieFrameImageSingleField"); } return _FrameImageSingleField; } } [Field("QTMovieUneditableException", "QTKit")] public static NSString UneditableException { get { if (_UneditableException == null) { _UneditableException = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieUneditableException"); } return _UneditableException; } } [Field("QTMovieChapterName", "QTKit")] public static NSString ChapterName { get { if (_ChapterName == null) { _ChapterName = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieChapterName"); } return _ChapterName; } } [Field("QTMovieChapterStartTime", "QTKit")] public static NSString ChapterStartTime { get { if (_ChapterStartTime == null) { _ChapterStartTime = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieChapterStartTime"); } return _ChapterStartTime; } } [Field("QTMovieChapterTargetTrackAttribute", "QTKit")] public static NSString ChapterTargetTrackAttribute { get { if (_ChapterTargetTrackAttribute == null) { _ChapterTargetTrackAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTMovieChapterTargetTrackAttribute"); } return _ChapterTargetTrackAttribute; } } public bool SaveTo(string fileName, QTMovieSaveOptions options, out NSError error) { return SaveTo(fileName, options?.ToDictionary(), out error); } public bool SaveTo(string fileName, QTMovieSaveOptions options) { return SaveTo(fileName, options?.ToDictionary()); } public void AddImage(NSImage image, QTTime forDuration, QTImageAttributes attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } AddImage(image, forDuration, attributes.ToDictionary()); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTMovie() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTMovie(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovie(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovie(IntPtr handle) : base(handle) { } [Export("canInitWithPasteboard:")] public static bool CanInitWithPasteboard(NSPasteboard pasteboard) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithPasteboard_Handle, pasteboard.Handle); } [Export("canInitWithFile:")] public static bool CanInitWithFile(string fileName) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr arg = NSString.CreateNative(fileName); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithFile_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("canInitWithURL:")] public static bool CanInitWithUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanInitWithURL_Handle, url.Handle); } [Export("movieFileTypes:")] public static string[] MovieFileTypes(QTMovieFileTypeOptions types) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_int(class_ptr, selMovieFileTypes_Handle, (int)types)); } [Export("movieUnfilteredFileTypes")] public static string[] MovieUnfilteredFileTypes() { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selMovieUnfilteredFileTypesHandle)); } [Export("movieUnfilteredPasteboardTypes")] public static string[] MovieUnfilteredPasteboardTypes() { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selMovieUnfilteredPasteboardTypesHandle)); } [Export("movieTypesWithOptions:")] public static string[] MovieTypesWithOptions(QTMovieFileTypeOptions types) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend_int(class_ptr, selMovieTypesWithOptions_Handle, (int)types)); } [Export("movieWithFile:error:")] public static QTMovie FromFile(string fileName, out NSError error) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(fileName); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieWithFileError_Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieWithURL:error:")] public static QTMovie FromUrl(NSUrl url, out NSError error) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieWithURLError_Handle, url.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieWithPasteboard:error:")] public static QTMovie FromPasteboard(NSPasteboard pasteboard, out NSError error) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieWithPasteboardError_Handle, pasteboard.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieWithData:error:")] public static QTMovie FromData(NSData data, out NSError error) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieWithDataError_Handle, data.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieWithAttributes:error:")] public static QTMovie FromAttributes(NSDictionary attributes, out NSError error) { if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieWithAttributesError_Handle, attributes.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieNamed:error:")] public static QTMovie FromMovieNamed(string name, out NSError error) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(name); QTMovie result = (QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selMovieNamedError_Handle, arg, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("initWithFile:error:")] public QTMovie(string fileName, out NSError error) : base(NSObjectFlag.Empty) { if (fileName == null) { throw new ArgumentNullException("fileName"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(fileName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithFileError_Handle, arg, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithFileError_Handle, arg, intPtr); } NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithURL:error:")] public QTMovie(NSUrl url, out NSError error) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithURLError_Handle, url.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithURLError_Handle, url.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithDataReference:error:")] public QTMovie(QTDataReference dataReference, out NSError error) : base(NSObjectFlag.Empty) { if (dataReference == null) { throw new ArgumentNullException("dataReference"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDataReferenceError_Handle, dataReference.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDataReferenceError_Handle, dataReference.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithPasteboard:error:")] public QTMovie(NSPasteboard pasteboard, out NSError error) : base(NSObjectFlag.Empty) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithPasteboardError_Handle, pasteboard.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithPasteboardError_Handle, pasteboard.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithData:error:")] public QTMovie(NSData data, out NSError error) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithDataError_Handle, data.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithDataError_Handle, data.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithMovie:timeRange:error:")] public QTMovie(QTMovie movie, QTTimeRange range, out NSError error) : base(NSObjectFlag.Empty) { if (movie == null) { throw new ArgumentNullException("movie"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_QTTimeRange_IntPtr(base.Handle, selInitWithMovieTimeRangeError_Handle, movie.Handle, range, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_IntPtr(base.SuperHandle, selInitWithMovieTimeRangeError_Handle, movie.Handle, range, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initWithAttributes:error:")] public QTMovie(NSDictionary attributes, out NSError error) : base(NSObjectFlag.Empty) { if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithAttributesError_Handle, attributes.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithAttributesError_Handle, attributes.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("movieWithTimeRange:error:")] public QTMovie(QTTimeRange range, out NSError error) : base(NSObjectFlag.Empty) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_QTTimeRange_IntPtr(base.Handle, selMovieWithTimeRangeError_Handle, range, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_QTTimeRange_IntPtr(base.SuperHandle, selMovieWithTimeRangeError_Handle, range, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("initToWritableData:error:")] public QTMovie(NSMutableData data, out NSError error) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitToWritableDataError_Handle, data.Handle, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitToWritableDataError_Handle, data.Handle, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("invalidate")] public virtual void Invalidate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selInvalidateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selInvalidateHandle); } } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:forKey:")] public virtual void SetAttribute(NSObject value, string attributeKey) { if (value == null) { throw new ArgumentNullException("value"); } if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeForKey_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeForKey_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } [Export("tracksOfMediaType:")] public virtual QTTrack[] TracksOfMediaType(string type) { if (type == null) { throw new ArgumentNullException("type"); } IntPtr arg = NSString.CreateNative(type); QTTrack[] result = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTracksOfMediaType_Handle, arg)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTracksOfMediaType_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("frameImageAtTime:")] public virtual NSImage FrameImageAtTime(QTTime time) { if (IsDirectBinding) { return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_QTTime(base.Handle, selFrameImageAtTime_Handle, time)); } return (NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_QTTime(base.SuperHandle, selFrameImageAtTime_Handle, time)); } [Export("frameImageAtTime:withAttributes:error:")] public virtual IntPtr FrameImageAtTime(QTTime time, NSDictionary attributes, out NSError error) { if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr result = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper_QTTime_IntPtr_IntPtr(base.SuperHandle, selFrameImageAtTimeWithAttributesError_Handle, time, attributes.Handle, intPtr) : Messaging.IntPtr_objc_msgSend_QTTime_IntPtr_IntPtr(base.Handle, selFrameImageAtTimeWithAttributesError_Handle, time, attributes.Handle, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("movieFormatRepresentation")] public virtual NSData MovieFormatRepresentation() { if (IsDirectBinding) { return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMovieFormatRepresentationHandle)); } return (NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMovieFormatRepresentationHandle)); } [Export("writeToFile:withAttributes:")] public virtual bool SaveTo(string fileName, NSDictionary attributes) { if (fileName == null) { throw new ArgumentNullException("fileName"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr arg = NSString.CreateNative(fileName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteToFileWithAttributes_Handle, arg, attributes.Handle) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteToFileWithAttributes_Handle, arg, attributes.Handle)); NSString.ReleaseNative(arg); return result; } [Export("writeToFile:withAttributes:error:")] public virtual bool SaveTo(string fileName, NSDictionary attributes, out NSError error) { if (fileName == null) { throw new ArgumentNullException("fileName"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); IntPtr arg = NSString.CreateNative(fileName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selWriteToFileWithAttributesError_Handle, arg, attributes.Handle, intPtr) : Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selWriteToFileWithAttributesError_Handle, arg, attributes.Handle, intPtr)); NSString.ReleaseNative(arg); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return result; } [Export("updateMovieFile")] public virtual bool UpdateMovieFile() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUpdateMovieFileHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUpdateMovieFileHandle); } [Export("autoplay")] public virtual void Autoplay() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selAutoplayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selAutoplayHandle); } } [Export("play")] public virtual void Play() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPlayHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPlayHandle); } } [Export("stop")] public virtual void Stop() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopHandle); } } [Export("gotoBeginning")] public virtual void GotoBeginning() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGotoBeginningHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGotoBeginningHandle); } } [Export("gotoEnd")] public virtual void GotoEnd() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGotoEndHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGotoEndHandle); } } [Export("gotoNextSelectionPoint")] public virtual void GotoNextSelectionPoint() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGotoNextSelectionPointHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGotoNextSelectionPointHandle); } } [Export("gotoPreviousSelectionPoint")] public virtual void GotoPreviousSelectionPoint() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGotoPreviousSelectionPointHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGotoPreviousSelectionPointHandle); } } [Export("gotoPosterTime")] public virtual void GotoPosterTime() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGotoPosterTimeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGotoPosterTimeHandle); } } [Export("stepForward")] public virtual void StepForward() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStepForwardHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStepForwardHandle); } } [Export("stepBackward")] public virtual void StepBackward() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStepBackwardHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStepBackwardHandle); } } [Export("setSelection:")] public virtual void SetSelection(QTTimeRange selection) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange(base.Handle, selSetSelection_Handle, selection); } else { Messaging.void_objc_msgSendSuper_QTTimeRange(base.SuperHandle, selSetSelection_Handle, selection); } } [Export("selectionStart")] public virtual QTTime SelectionStart() { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selSelectionStartHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selSelectionStartHandle); } [Export("selectionEnd")] public virtual QTTime SelectionEnd() { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selSelectionEndHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selSelectionEndHandle); } [Export("selectionDuration")] public virtual QTTime SelectionDuration() { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selSelectionDurationHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selSelectionDurationHandle); } [Export("replaceSelectionWithSelectionFromMovie:")] public virtual void ReplaceSelectionWithSelectionFromMovie(QTMovie movie) { if (movie == null) { throw new ArgumentNullException("movie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceSelectionWithSelectionFromMovie_Handle, movie.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceSelectionWithSelectionFromMovie_Handle, movie.Handle); } } [Export("appendSelectionFromMovie:")] public virtual void AppendSelectionFromMovie(QTMovie movie) { if (movie == null) { throw new ArgumentNullException("movie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendSelectionFromMovie_Handle, movie.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendSelectionFromMovie_Handle, movie.Handle); } } [Export("insertSegmentOfMovie:timeRange:atTime:")] public virtual void InsertSegmentOfMovieTimeRange(QTMovie movie, QTTimeRange range, QTTime time) { if (movie == null) { throw new ArgumentNullException("movie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTimeRange_QTTime(base.Handle, selInsertSegmentOfMovieTimeRangeAtTime_Handle, movie.Handle, range, time); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTime(base.SuperHandle, selInsertSegmentOfMovieTimeRangeAtTime_Handle, movie.Handle, range, time); } } [Export("insertSegmentOfMovie:fromRange:scaledToRange:")] public virtual void InsertSegmentOfMovieFromRange(QTMovie movie, QTTimeRange srcRange, QTTimeRange dstRange) { if (movie == null) { throw new ArgumentNullException("movie"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTimeRange_QTTimeRange(base.Handle, selInsertSegmentOfMovieFromRangeScaledToRange_Handle, movie.Handle, srcRange, dstRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTimeRange(base.SuperHandle, selInsertSegmentOfMovieFromRangeScaledToRange_Handle, movie.Handle, srcRange, dstRange); } } [Export("insertEmptySegmentAt:")] public virtual void InsertEmptySegmentAt(QTTimeRange range) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange(base.Handle, selInsertEmptySegmentAt_Handle, range); } else { Messaging.void_objc_msgSendSuper_QTTimeRange(base.SuperHandle, selInsertEmptySegmentAt_Handle, range); } } [Export("deleteSegment:")] public virtual void DeleteSegment(QTTimeRange segment) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange(base.Handle, selDeleteSegment_Handle, segment); } else { Messaging.void_objc_msgSendSuper_QTTimeRange(base.SuperHandle, selDeleteSegment_Handle, segment); } } [Export("scaleSegment:newDuration:")] public virtual void ScaleSegmentNewDuration(QTTimeRange segment, QTTime newDuration) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange_QTTime(base.Handle, selScaleSegmentNewDuration_Handle, segment, newDuration); } else { Messaging.void_objc_msgSendSuper_QTTimeRange_QTTime(base.SuperHandle, selScaleSegmentNewDuration_Handle, segment, newDuration); } } [Export("addImage:forDuration:withAttributes:")] public virtual void AddImage(NSImage image, QTTime duration, NSDictionary attributes) { if (image == null) { throw new ArgumentNullException("image"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTime_IntPtr(base.Handle, selAddImageForDurationWithAttributes_Handle, image.Handle, duration, attributes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTime_IntPtr(base.SuperHandle, selAddImageForDurationWithAttributes_Handle, image.Handle, duration, attributes.Handle); } } [Export("insertSegmentOfTrack:timeRange:atTime:")] public virtual QTTrack InsertSegmentOfTrackTimeRange(QTTrack track, QTTimeRange range, QTTime time) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { return (QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_QTTimeRange_QTTime(base.Handle, selInsertSegmentOfTrackTimeRangeAtTime_Handle, track.Handle, range, time)); } return (QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_QTTime(base.SuperHandle, selInsertSegmentOfTrackTimeRangeAtTime_Handle, track.Handle, range, time)); } [Export("insertSegmentOfTrack:fromRange:scaledToRange:")] public virtual QTTrack InsertSegmentOfTrackFromRange(QTTrack track, QTTimeRange srcRange, QTTimeRange dstRange) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { return (QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_QTTimeRange_QTTimeRange(base.Handle, selInsertSegmentOfTrackFromRangeScaledToRange_Handle, track.Handle, srcRange, dstRange)); } return (QTTrack)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_QTTimeRange_QTTimeRange(base.SuperHandle, selInsertSegmentOfTrackFromRangeScaledToRange_Handle, track.Handle, srcRange, dstRange)); } [Export("removeTrack:")] public virtual void RemoveTrack(QTTrack track) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveTrack_Handle, track.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveTrack_Handle, track.Handle); } } [Export("generateApertureModeDimensions")] public virtual void GenerateApertureModeDimensions() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGenerateApertureModeDimensionsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGenerateApertureModeDimensionsHandle); } } [Export("removeApertureModeDimensions")] public virtual void RemoveApertureModeDimensions() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveApertureModeDimensionsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveApertureModeDimensionsHandle); } } [Export("enterQTKitOnThread")] public static void EnterQTKitOnThread() { Messaging.void_objc_msgSend(class_ptr, selEnterQTKitOnThreadHandle); } [Export("enterQTKitOnThreadDisablingThreadSafetyProtection")] public static void EnterQTKitOnThreadDisablingThreadSafetyProtection() { Messaging.void_objc_msgSend(class_ptr, selEnterQTKitOnThreadDisablingThreadSafetyProtectionHandle); } [Export("exitQTKitOnThread")] public static void ExitQTKitOnThread() { Messaging.void_objc_msgSend(class_ptr, selExitQTKitOnThreadHandle); } [Export("attachToCurrentThread")] public virtual bool AttachToCurrentThread() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAttachToCurrentThreadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAttachToCurrentThreadHandle); } [Export("detachFromCurrentThread")] public virtual bool DetachFromCurrentThread() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDetachFromCurrentThreadHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDetachFromCurrentThreadHandle); } [Export("chapters")] public virtual NSDictionary[] Chapters() { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChaptersHandle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChaptersHandle)); } [Export("removeChapters")] public virtual bool RemoveChapters() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selRemoveChaptersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selRemoveChaptersHandle); } [Export("startTimeOfChapter:")] public virtual QTTime StartTimeOfChapter(int chapterIndex) { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend_int(base.Handle, selStartTimeOfChapter_Handle, chapterIndex); } return Messaging.QTTime_objc_msgSendSuper_int(base.SuperHandle, selStartTimeOfChapter_Handle, chapterIndex); } [Export("chapterIndexForTime:")] public virtual int ChapterIndexForTime(QTTime time) { if (IsDirectBinding) { return Messaging.int_objc_msgSend_QTTime(base.Handle, selChapterIndexForTime_Handle, time); } return Messaging.int_objc_msgSendSuper_QTTime(base.SuperHandle, selChapterIndexForTime_Handle, time); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_MovieAttributes_var = null; __mt_Tracks_var = null; __mt_PosterImage_var = null; __mt_CurrentFrameImage_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovieFileTypeOptions.cs ================================================ using System; namespace QTKit; [Flags] public enum QTMovieFileTypeOptions { StillImageTypes = 1, TranslatableTypes = 2, AggressiveTypes = 4, DynamicTypes = 8, CommonTypes = 0, AllTypes = 0xFFFF } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovieLayer.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTMovieLayer", true)] public class QTMovieLayer : CALayer { private static readonly IntPtr selMovieHandle = Selector.GetHandle("movie"); private static readonly IntPtr selSetMovie_Handle = Selector.GetHandle("setMovie:"); private static readonly IntPtr selLayerWithMovie_Handle = Selector.GetHandle("layerWithMovie:"); private static readonly IntPtr selInitWithMovie_Handle = Selector.GetHandle("initWithMovie:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTMovieLayer"); private object __mt_Movie_var; public override IntPtr ClassHandle => class_ptr; public virtual QTMovie Movie { [Export("movie")] get { return (QTMovie)(__mt_Movie_var = ((!IsDirectBinding) ? ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMovieHandle))) : ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMovieHandle))))); } [Export("setMovie:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMovie_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMovie_Handle, value.Handle); } __mt_Movie_var = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTMovieLayer() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTMovieLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieLayer(IntPtr handle) : base(handle) { } [Export("layerWithMovie:")] public static QTMovieLayer FromMovie(QTMovie movie) { if (movie == null) { throw new ArgumentNullException("movie"); } return (QTMovieLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selLayerWithMovie_Handle, movie.Handle)); } [Export("initWithMovie:")] public QTMovieLayer(QTMovie movie) : base(NSObjectFlag.Empty) { if (movie == null) { throw new ArgumentNullException("movie"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithMovie_Handle, movie.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithMovie_Handle, movie.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Movie_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovieSaveOptions.cs ================================================ using Foundation; namespace QTKit; public class QTMovieSaveOptions { public bool Flatten { get; set; } public QTFileType? ExportType { get; set; } public NSData ExportSettings { get; set; } public int? ManufacturerCode { get; set; } public NSDictionary ToDictionary() { NSMutableDictionary nSMutableDictionary = new NSMutableDictionary(); if (Flatten) { nSMutableDictionary.SetObject(NSNumber.FromInt32(1), QTMovie.KeyFlatten); } if (ExportType.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromInt32(1), QTMovie.KeyExport); nSMutableDictionary.SetObject(NSNumber.FromInt32((int)ExportType.Value), QTMovie.KeyExportType); } if (ExportSettings != null) { nSMutableDictionary.SetObject(ExportSettings, QTMovie.KeyExportSettings); } if (ManufacturerCode.HasValue) { nSMutableDictionary.SetObject(NSNumber.FromInt32(ManufacturerCode.Value), QTMovie.KeyExportManufacturer); } return nSMutableDictionary; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovieView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTMovieView", true)] public class QTMovieView : NSView { private static readonly IntPtr selMovieHandle = Selector.GetHandle("movie"); private static readonly IntPtr selSetMovie_Handle = Selector.GetHandle("setMovie:"); private static readonly IntPtr selIsControllerVisibleHandle = Selector.GetHandle("isControllerVisible"); private static readonly IntPtr selSetControllerVisible_Handle = Selector.GetHandle("setControllerVisible:"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selControllerBarHeightHandle = Selector.GetHandle("controllerBarHeight"); private static readonly IntPtr selPreservesAspectRatioHandle = Selector.GetHandle("preservesAspectRatio"); private static readonly IntPtr selSetPreservesAspectRatio_Handle = Selector.GetHandle("setPreservesAspectRatio:"); private static readonly IntPtr selFillColorHandle = Selector.GetHandle("fillColor"); private static readonly IntPtr selSetFillColor_Handle = Selector.GetHandle("setFillColor:"); private static readonly IntPtr selMovieBoundsHandle = Selector.GetHandle("movieBounds"); private static readonly IntPtr selMovieControllerBoundsHandle = Selector.GetHandle("movieControllerBounds"); private static readonly IntPtr selIsBackButtonVisibleHandle = Selector.GetHandle("isBackButtonVisible"); private static readonly IntPtr selSetBackButtonVisible_Handle = Selector.GetHandle("setBackButtonVisible:"); private static readonly IntPtr selIsCustomButtonVisibleHandle = Selector.GetHandle("isCustomButtonVisible"); private static readonly IntPtr selSetCustomButtonVisible_Handle = Selector.GetHandle("setCustomButtonVisible:"); private static readonly IntPtr selIsHotSpotButtonVisibleHandle = Selector.GetHandle("isHotSpotButtonVisible"); private static readonly IntPtr selSetHotSpotButtonVisible_Handle = Selector.GetHandle("setHotSpotButtonVisible:"); private static readonly IntPtr selAreStepButtonsVisibleHandle = Selector.GetHandle("areStepButtonsVisible"); private static readonly IntPtr selSetStepButtonsVisible_Handle = Selector.GetHandle("setStepButtonsVisible:"); private static readonly IntPtr selIsTranslateButtonVisibleHandle = Selector.GetHandle("isTranslateButtonVisible"); private static readonly IntPtr selSetTranslateButtonVisible_Handle = Selector.GetHandle("setTranslateButtonVisible:"); private static readonly IntPtr selIsVolumeButtonVisibleHandle = Selector.GetHandle("isVolumeButtonVisible"); private static readonly IntPtr selSetVolumeButtonVisible_Handle = Selector.GetHandle("setVolumeButtonVisible:"); private static readonly IntPtr selAreZoomButtonsVisibleHandle = Selector.GetHandle("areZoomButtonsVisible"); private static readonly IntPtr selSetZoomButtonsVisible_Handle = Selector.GetHandle("setZoomButtonsVisible:"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selSetShowsResizeIndicator_Handle = Selector.GetHandle("setShowsResizeIndicator:"); private static readonly IntPtr selPlay_Handle = Selector.GetHandle("play:"); private static readonly IntPtr selPause_Handle = Selector.GetHandle("pause:"); private static readonly IntPtr selGotoBeginning_Handle = Selector.GetHandle("gotoBeginning:"); private static readonly IntPtr selGotoEnd_Handle = Selector.GetHandle("gotoEnd:"); private static readonly IntPtr selGotoNextSelectionPoint_Handle = Selector.GetHandle("gotoNextSelectionPoint:"); private static readonly IntPtr selGotoPreviousSelectionPoint_Handle = Selector.GetHandle("gotoPreviousSelectionPoint:"); private static readonly IntPtr selGotoPosterFrame_Handle = Selector.GetHandle("gotoPosterFrame:"); private static readonly IntPtr selStepForward_Handle = Selector.GetHandle("stepForward:"); private static readonly IntPtr selStepBackward_Handle = Selector.GetHandle("stepBackward:"); private static readonly IntPtr selCut_Handle = Selector.GetHandle("cut:"); private static readonly IntPtr selCopy_Handle = Selector.GetHandle("copy:"); private static readonly IntPtr selPaste_Handle = Selector.GetHandle("paste:"); private static readonly IntPtr selSelectAll_Handle = Selector.GetHandle("selectAll:"); private static readonly IntPtr selSelectNone_Handle = Selector.GetHandle("selectNone:"); private static readonly IntPtr selDelete_Handle = Selector.GetHandle("delete:"); private static readonly IntPtr selAdd_Handle = Selector.GetHandle("add:"); private static readonly IntPtr selAddScaled_Handle = Selector.GetHandle("addScaled:"); private static readonly IntPtr selReplace_Handle = Selector.GetHandle("replace:"); private static readonly IntPtr selTrim_Handle = Selector.GetHandle("trim:"); private static readonly IntPtr class_ptr = Class.GetHandle("QTMovieView"); private object __mt_Movie_var; private object __mt_FillColor_var; private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual QTMovie Movie { [Export("movie")] get { return (QTMovie)(__mt_Movie_var = ((!IsDirectBinding) ? ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMovieHandle))) : ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMovieHandle))))); } [Export("setMovie:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMovie_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMovie_Handle, value.Handle); } __mt_Movie_var = value; } } public virtual bool IsControllerVisible { [Export("isControllerVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsControllerVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsControllerVisibleHandle); } [Export("setControllerVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetControllerVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetControllerVisible_Handle, value); } } } public virtual bool Editable { [Export("isEditable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual float ControllerBarHeight { [Export("controllerBarHeight")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selControllerBarHeightHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selControllerBarHeightHandle); } } public virtual bool PreservesAspectRatio { [Export("preservesAspectRatio")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPreservesAspectRatioHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPreservesAspectRatioHandle); } [Export("setPreservesAspectRatio:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPreservesAspectRatio_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPreservesAspectRatio_Handle, value); } } } public virtual NSColor FillColor { [Export("fillColor")] get { return (NSColor)(__mt_FillColor_var = ((!IsDirectBinding) ? ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFillColorHandle))) : ((NSColor)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFillColorHandle))))); } [Export("setFillColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFillColor_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFillColor_Handle, value.Handle); } __mt_FillColor_var = value; } } public virtual CGRect MovieBounds { [Export("movieBounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selMovieBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMovieBoundsHandle); } return retval; } } public virtual CGRect MovieControllerBounds { [Export("movieControllerBounds")] get { CGRect retval; if (IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selMovieControllerBoundsHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selMovieControllerBoundsHandle); } return retval; } } public virtual bool BackButtonVisible { [Export("isBackButtonVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsBackButtonVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsBackButtonVisibleHandle); } [Export("setBackButtonVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetBackButtonVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetBackButtonVisible_Handle, value); } } } public virtual bool CustomButtonVisible { [Export("isCustomButtonVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsCustomButtonVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsCustomButtonVisibleHandle); } [Export("setCustomButtonVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCustomButtonVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCustomButtonVisible_Handle, value); } } } public virtual bool HotSpotButtonVisible { [Export("isHotSpotButtonVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsHotSpotButtonVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsHotSpotButtonVisibleHandle); } [Export("setHotSpotButtonVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetHotSpotButtonVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetHotSpotButtonVisible_Handle, value); } } } public virtual bool SetStepButtonsVisible { [Export("areStepButtonsVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAreStepButtonsVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAreStepButtonsVisibleHandle); } [Export("setStepButtonsVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetStepButtonsVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetStepButtonsVisible_Handle, value); } } } public virtual bool TranslateButtonVisible { [Export("isTranslateButtonVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsTranslateButtonVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsTranslateButtonVisibleHandle); } [Export("setTranslateButtonVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTranslateButtonVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTranslateButtonVisible_Handle, value); } } } public virtual bool VolumeButtonVisible { [Export("isVolumeButtonVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsVolumeButtonVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsVolumeButtonVisibleHandle); } [Export("setVolumeButtonVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetVolumeButtonVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetVolumeButtonVisible_Handle, value); } } } public virtual bool ZoomButtonsVisible { [Export("areZoomButtonsVisible")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAreZoomButtonsVisibleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAreZoomButtonsVisibleHandle); } [Export("setZoomButtonsVisible:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetZoomButtonsVisible_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetZoomButtonsVisible_Handle, value); } } } public virtual NSObject WeakDelegate { [Export("delegate")] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public QTMovieViewDelegate Delegate { get { return WeakDelegate as QTMovieViewDelegate; } set { WeakDelegate = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTMovieView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTMovieView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieView(IntPtr handle) : base(handle) { } [Export("setShowsResizeIndicator:")] public virtual void SetShowsResizeIndicator(bool show) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShowsResizeIndicator_Handle, show); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShowsResizeIndicator_Handle, show); } } [Export("play:")] public virtual void Play(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPlay_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPlay_Handle, sender.Handle); } } [Export("pause:")] public virtual void Pause(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPause_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPause_Handle, sender.Handle); } } [Export("gotoBeginning:")] public virtual void GotoBeginning(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGotoBeginning_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGotoBeginning_Handle, sender.Handle); } } [Export("gotoEnd:")] public virtual void GotoEnd(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGotoEnd_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGotoEnd_Handle, sender.Handle); } } [Export("gotoNextSelectionPoint:")] public virtual void GotoNextSelectionPoint(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGotoNextSelectionPoint_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGotoNextSelectionPoint_Handle, sender.Handle); } } [Export("gotoPreviousSelectionPoint:")] public virtual void GotoPreviousSelectionPoint(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGotoPreviousSelectionPoint_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGotoPreviousSelectionPoint_Handle, sender.Handle); } } [Export("gotoPosterFrame:")] public virtual void GotoPosterFrame(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGotoPosterFrame_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGotoPosterFrame_Handle, sender.Handle); } } [Export("stepForward:")] public virtual void StepForward(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStepForward_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStepForward_Handle, sender.Handle); } } [Export("stepBackward:")] public virtual void StepBackward(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStepBackward_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStepBackward_Handle, sender.Handle); } } [Export("cut:")] public virtual void Cut(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCut_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCut_Handle, sender.Handle); } } [Export("copy:")] public virtual void Copy(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopy_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopy_Handle, sender.Handle); } } [Export("paste:")] public virtual void Paste(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPaste_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPaste_Handle, sender.Handle); } } [Export("selectAll:")] public virtual void SelectAll(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectAll_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectAll_Handle, sender.Handle); } } [Export("selectNone:")] public virtual void SelectNone(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNone_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNone_Handle, sender.Handle); } } [Export("delete:")] public virtual void Delete(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDelete_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDelete_Handle, sender.Handle); } } [Export("add:")] public virtual void Add(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAdd_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAdd_Handle, sender.Handle); } } [Export("addScaled:")] public virtual void AddScaled(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddScaled_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddScaled_Handle, sender.Handle); } } [Export("replace:")] public virtual void Replace(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplace_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplace_Handle, sender.Handle); } } [Export("trim:")] public virtual void Trim(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selTrim_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selTrim_Handle, sender.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Movie_var = null; __mt_FillColor_var = null; __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTMovieViewDelegate.cs ================================================ using System; using System.ComponentModel; using CoreImage; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTMovieViewDelegate", true)] [Model] public class QTMovieViewDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTMovieViewDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTMovieViewDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieViewDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTMovieViewDelegate(IntPtr handle) : base(handle) { } [Export("view:willDisplayImage:")] public virtual CIImage ViewWillDisplayImage(QTMovieView view, CIImage image) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTSampleBuffer.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTSampleBuffer", true)] public class QTSampleBuffer : NSObject { private static readonly IntPtr selBytesForAllSamplesHandle = Selector.GetHandle("bytesForAllSamples"); private static readonly IntPtr selLengthForAllSamplesHandle = Selector.GetHandle("lengthForAllSamples"); private static readonly IntPtr selFormatDescriptionHandle = Selector.GetHandle("formatDescription"); private static readonly IntPtr selDurationHandle = Selector.GetHandle("duration"); private static readonly IntPtr selDecodeTimeHandle = Selector.GetHandle("decodeTime"); private static readonly IntPtr selPresentationTimeHandle = Selector.GetHandle("presentationTime"); private static readonly IntPtr selNumberOfSamplesHandle = Selector.GetHandle("numberOfSamples"); private static readonly IntPtr selSampleBufferAttributesHandle = Selector.GetHandle("sampleBufferAttributes"); private static readonly IntPtr selSampleUseCountHandle = Selector.GetHandle("sampleUseCount"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selIncrementSampleUseCountHandle = Selector.GetHandle("incrementSampleUseCount"); private static readonly IntPtr selDecrementSampleUseCountHandle = Selector.GetHandle("decrementSampleUseCount"); private static readonly IntPtr class_ptr = Class.GetHandle("QTSampleBuffer"); private object __mt_FormatDescription_var; private object __mt_SampleBufferAttributes_var; public override IntPtr ClassHandle => class_ptr; public virtual IntPtr BytesForAllSamples { [Export("bytesForAllSamples")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selBytesForAllSamplesHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBytesForAllSamplesHandle); } } public virtual uint LengthForAllSamples { [Export("lengthForAllSamples")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selLengthForAllSamplesHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selLengthForAllSamplesHandle); } } public virtual QTFormatDescription FormatDescription { [Export("formatDescription")] get { return (QTFormatDescription)(__mt_FormatDescription_var = ((!IsDirectBinding) ? ((QTFormatDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormatDescriptionHandle))) : ((QTFormatDescription)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormatDescriptionHandle))))); } } public virtual QTTime Duration { [Export("duration")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selDurationHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selDurationHandle); } } public virtual QTTime DecodeTime { [Export("decodeTime")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selDecodeTimeHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selDecodeTimeHandle); } } public virtual QTTime PresentationTime { [Export("presentationTime")] get { if (IsDirectBinding) { return Messaging.QTTime_objc_msgSend(base.Handle, selPresentationTimeHandle); } return Messaging.QTTime_objc_msgSendSuper(base.SuperHandle, selPresentationTimeHandle); } } public virtual int SampleCount { [Export("numberOfSamples")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selNumberOfSamplesHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selNumberOfSamplesHandle); } } public virtual NSDictionary SampleBufferAttributes { [Export("sampleBufferAttributes")] get { return (NSDictionary)(__mt_SampleBufferAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSampleBufferAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSampleBufferAttributesHandle))))); } } public virtual int SampleUseCount { [Export("sampleUseCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSampleUseCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSampleUseCountHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTSampleBuffer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTSampleBuffer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTSampleBuffer(IntPtr handle) : base(handle) { } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string key) { if (key == null) { throw new ArgumentNullException("key"); } IntPtr arg = NSString.CreateNative(key); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("incrementSampleUseCount")] public virtual void IncrementSampleUseCount() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selIncrementSampleUseCountHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selIncrementSampleUseCountHandle); } } [Export("decrementSampleUseCount")] public virtual void DecrementSampleUseCount() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDecrementSampleUseCountHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDecrementSampleUseCountHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_FormatDescription_var = null; __mt_SampleBufferAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTTime.cs ================================================ namespace QTKit; public struct QTTime { public static readonly QTTime Zero = new QTTime(0L, 1, (TimeFlags)0); public static readonly QTTime IndefiniteTime = new QTTime(0L, 1, TimeFlags.TimeIsIndefinite); public long TimeValue; public int TimeScale; public TimeFlags Flags; public QTTime(long timeValue, int timeScale, TimeFlags flags) { TimeValue = timeValue; TimeScale = timeScale; Flags = flags; } public QTTime(long timeValue, int timeScale) { TimeValue = timeValue; TimeScale = timeScale; Flags = (TimeFlags)0; } public override string ToString() { if (Flags == (TimeFlags)0) { return $"[TimeValue={TimeValue} scale={TimeScale}]"; } return $"[TimeValue={TimeValue} scale={TimeScale} Flags={Flags}]"; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTTimeRange.cs ================================================ namespace QTKit; public struct QTTimeRange { public QTTime Time; public QTTime Duration; public QTTimeRange(QTTime time, QTTime duration) { Time = time; Duration = duration; } public override string ToString() { return string.Format("[Time={0} Duration={2}]", Time, Duration); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/QTTrack.cs ================================================ using System; using System.ComponentModel; using System.Runtime.InteropServices; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace QTKit; [Register("QTTrack", true)] public class QTTrack : NSObject { private static readonly IntPtr selMovieHandle = Selector.GetHandle("movie"); private static readonly IntPtr selMediaHandle = Selector.GetHandle("media"); private static readonly IntPtr selQuickTimeTrackHandle = Selector.GetHandle("quickTimeTrack"); private static readonly IntPtr selIsEnabledHandle = Selector.GetHandle("isEnabled"); private static readonly IntPtr selSetEnabled_Handle = Selector.GetHandle("setEnabled:"); private static readonly IntPtr selVolumeHandle = Selector.GetHandle("volume"); private static readonly IntPtr selSetVolume_Handle = Selector.GetHandle("setVolume:"); private static readonly IntPtr selTrackAttributesHandle = Selector.GetHandle("trackAttributes"); private static readonly IntPtr selSetTrackAttributes_Handle = Selector.GetHandle("setTrackAttributes:"); private static readonly IntPtr selTrackWithQuickTimeTrackError_Handle = Selector.GetHandle("trackWithQuickTimeTrack:error:"); private static readonly IntPtr selInitWithQuickTimeTrackError_Handle = Selector.GetHandle("initWithQuickTimeTrack:error:"); private static readonly IntPtr selAttributeForKey_Handle = Selector.GetHandle("attributeForKey:"); private static readonly IntPtr selSetAttributeForKey_Handle = Selector.GetHandle("setAttribute:forKey:"); private static readonly IntPtr selInsertSegmentOfTrackTimeRangeAtTime_Handle = Selector.GetHandle("insertSegmentOfTrack:timeRange:atTime:"); private static readonly IntPtr selInsertSegmentOfTrackFromRangeScaledToRange_Handle = Selector.GetHandle("insertSegmentOfTrack:fromRange:scaledToRange:"); private static readonly IntPtr selInsertEmptySegmentAt_Handle = Selector.GetHandle("insertEmptySegmentAt:"); private static readonly IntPtr selDeleteSegment_Handle = Selector.GetHandle("deleteSegment:"); private static readonly IntPtr selScaleSegmentNewDuration_Handle = Selector.GetHandle("scaleSegment:newDuration:"); private static readonly IntPtr selAddImageForDurationWithAttributes_Handle = Selector.GetHandle("addImage:forDuration:withAttributes:"); private static readonly IntPtr selApertureModeDimensionsForMode_Handle = Selector.GetHandle("apertureModeDimensionsForMode:"); private static readonly IntPtr selSetApertureModeDimensionsForMode_Handle = Selector.GetHandle("setApertureModeDimensions:forMode:"); private static readonly IntPtr selGenerateApertureModeDimensionsHandle = Selector.GetHandle("generateApertureModeDimensions"); private static readonly IntPtr selRemoveApertureModeDimensionsHandle = Selector.GetHandle("removeApertureModeDimensions"); private static readonly IntPtr class_ptr = Class.GetHandle("QTTrack"); private object __mt_Movie_var; private object __mt_Media_var; private object __mt_TrackAttributes_var; private static NSString _BoundsAttribute; private static NSString _CreationTimeAttribute; private static NSString _DimensionsAttribute; private static NSString _DisplayNameAttribute; private static NSString _EnabledAttribute; private static NSString _FormatSummaryAttribute; private static NSString _IsChapterTrackAttribute; private static NSString _HasApertureModeDimensionsAttribute; private static NSString _IDAttribute; private static NSString _LayerAttribute; private static NSString _MediaTypeAttribute; private static NSString _ModificationTimeAttribute; private static NSString _RangeAttribute; private static NSString _TimeScaleAttribute; private static NSString _UsageInMovieAttribute; private static NSString _UsageInPosterAttribute; private static NSString _UsageInPreviewAttribute; private static NSString _VolumeAttribute; public override IntPtr ClassHandle => class_ptr; public virtual QTMovie Movie { [Export("movie")] get { return (QTMovie)(__mt_Movie_var = ((!IsDirectBinding) ? ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMovieHandle))) : ((QTMovie)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMovieHandle))))); } } public virtual QTMedia Media { [Export("media")] get { return (QTMedia)(__mt_Media_var = ((!IsDirectBinding) ? ((QTMedia)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaHandle))) : ((QTMedia)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaHandle))))); } } public virtual IntPtr QuickTimeTrack { [Export("quickTimeTrack")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selQuickTimeTrackHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selQuickTimeTrackHandle); } } public virtual bool Enabled { [Export("isEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEnabledHandle); } [Export("setEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEnabled_Handle, value); } } } public virtual float Volume { [Export("volume")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selVolumeHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selVolumeHandle); } [Export("setVolume:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetVolume_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetVolume_Handle, value); } } } public virtual NSDictionary TrackAttributes { [Export("trackAttributes")] get { return (NSDictionary)(__mt_TrackAttributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTrackAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTrackAttributesHandle))))); } [Export("setTrackAttributes:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTrackAttributes_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTrackAttributes_Handle, value.Handle); } __mt_TrackAttributes_var = value; } } [Field("QTTrackBoundsAttribute", "QTKit")] public static NSString BoundsAttribute { get { if (_BoundsAttribute == null) { _BoundsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackBoundsAttribute"); } return _BoundsAttribute; } } [Field("QTTrackCreationTimeAttribute", "QTKit")] public static NSString CreationTimeAttribute { get { if (_CreationTimeAttribute == null) { _CreationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackCreationTimeAttribute"); } return _CreationTimeAttribute; } } [Field("QTTrackDimensionsAttribute", "QTKit")] public static NSString DimensionsAttribute { get { if (_DimensionsAttribute == null) { _DimensionsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackDimensionsAttribute"); } return _DimensionsAttribute; } } [Field("QTTrackDisplayNameAttribute", "QTKit")] public static NSString DisplayNameAttribute { get { if (_DisplayNameAttribute == null) { _DisplayNameAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackDisplayNameAttribute"); } return _DisplayNameAttribute; } } [Field("QTTrackEnabledAttribute", "QTKit")] public static NSString EnabledAttribute { get { if (_EnabledAttribute == null) { _EnabledAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackEnabledAttribute"); } return _EnabledAttribute; } } [Field("QTTrackFormatSummaryAttribute", "QTKit")] public static NSString FormatSummaryAttribute { get { if (_FormatSummaryAttribute == null) { _FormatSummaryAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackFormatSummaryAttribute"); } return _FormatSummaryAttribute; } } [Field("QTTrackIsChapterTrackAttribute", "QTKit")] public static NSString IsChapterTrackAttribute { get { if (_IsChapterTrackAttribute == null) { _IsChapterTrackAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackIsChapterTrackAttribute"); } return _IsChapterTrackAttribute; } } [Field("QTTrackHasApertureModeDimensionsAttribute", "QTKit")] public static NSString HasApertureModeDimensionsAttribute { get { if (_HasApertureModeDimensionsAttribute == null) { _HasApertureModeDimensionsAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackHasApertureModeDimensionsAttribute"); } return _HasApertureModeDimensionsAttribute; } } [Field("QTTrackIDAttribute", "QTKit")] public static NSString IDAttribute { get { if (_IDAttribute == null) { _IDAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackIDAttribute"); } return _IDAttribute; } } [Field("QTTrackLayerAttribute", "QTKit")] public static NSString LayerAttribute { get { if (_LayerAttribute == null) { _LayerAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackLayerAttribute"); } return _LayerAttribute; } } [Field("QTTrackMediaTypeAttribute", "QTKit")] public static NSString MediaTypeAttribute { get { if (_MediaTypeAttribute == null) { _MediaTypeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackMediaTypeAttribute"); } return _MediaTypeAttribute; } } [Field("QTTrackModificationTimeAttribute", "QTKit")] public static NSString ModificationTimeAttribute { get { if (_ModificationTimeAttribute == null) { _ModificationTimeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackModificationTimeAttribute"); } return _ModificationTimeAttribute; } } [Field("QTTrackRangeAttribute", "QTKit")] public static NSString RangeAttribute { get { if (_RangeAttribute == null) { _RangeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackRangeAttribute"); } return _RangeAttribute; } } [Field("QTTrackTimeScaleAttribute", "QTKit")] public static NSString TimeScaleAttribute { get { if (_TimeScaleAttribute == null) { _TimeScaleAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackTimeScaleAttribute"); } return _TimeScaleAttribute; } } [Field("QTTrackUsageInMovieAttribute", "QTKit")] public static NSString UsageInMovieAttribute { get { if (_UsageInMovieAttribute == null) { _UsageInMovieAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackUsageInMovieAttribute"); } return _UsageInMovieAttribute; } } [Field("QTTrackUsageInPosterAttribute", "QTKit")] public static NSString UsageInPosterAttribute { get { if (_UsageInPosterAttribute == null) { _UsageInPosterAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackUsageInPosterAttribute"); } return _UsageInPosterAttribute; } } [Field("QTTrackUsageInPreviewAttribute", "QTKit")] public static NSString UsageInPreviewAttribute { get { if (_UsageInPreviewAttribute == null) { _UsageInPreviewAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackUsageInPreviewAttribute"); } return _UsageInPreviewAttribute; } } [Field("QTTrackVolumeAttribute", "QTKit")] public static NSString VolumeAttribute { get { if (_VolumeAttribute == null) { _VolumeAttribute = Dlfcn.GetStringConstant(Libraries.QTKit.Handle, "QTTrackVolumeAttribute"); } return _VolumeAttribute; } } public void AddImage(NSImage image, QTTime forDuration, QTImageAttributes attributes) { if (attributes == null) { throw new ArgumentNullException("attributes"); } AddImage(image, forDuration, attributes.ToDictionary()); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QTTrack() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QTTrack(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTTrack(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QTTrack(IntPtr handle) : base(handle) { } [Export("trackWithQuickTimeTrack:error:")] public static NSObject FromQuickTimeTrack(IntPtr quicktimeTrack, out NSError error) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); NSObject nSObject = Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, selTrackWithQuickTimeTrackError_Handle, quicktimeTrack, intPtr)); IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); return nSObject; } [Export("initWithQuickTimeTrack:error:")] public QTTrack(IntPtr quicktimeTrack, out NSError error) : base(NSObjectFlag.Empty) { IntPtr intPtr = Marshal.AllocHGlobal(4); Marshal.WriteInt32(intPtr, 0); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInitWithQuickTimeTrackError_Handle, quicktimeTrack, intPtr); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInitWithQuickTimeTrackError_Handle, quicktimeTrack, intPtr); } IntPtr intPtr2 = Marshal.ReadIntPtr(intPtr); error = ((intPtr2 != IntPtr.Zero) ? ((NSError)Runtime.GetNSObject(intPtr2)) : null); Marshal.FreeHGlobal(intPtr); } [Export("attributeForKey:")] public virtual NSObject GetAttribute(string attributeKey) { if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAttributeForKey_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAttributeForKey_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:forKey:")] public virtual void SetAttribute(NSObject value, string attributeKey) { if (value == null) { throw new ArgumentNullException("value"); } if (attributeKey == null) { throw new ArgumentNullException("attributeKey"); } IntPtr arg = NSString.CreateNative(attributeKey); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeForKey_Handle, value.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeForKey_Handle, value.Handle, arg); } NSString.ReleaseNative(arg); } [Export("insertSegmentOfTrack:timeRange:atTime:")] public virtual void InsertSegmentOfTrack(QTTrack track, QTTimeRange timeRange, QTTime atTime) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTimeRange_QTTime(base.Handle, selInsertSegmentOfTrackTimeRangeAtTime_Handle, track.Handle, timeRange, atTime); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTime(base.SuperHandle, selInsertSegmentOfTrackTimeRangeAtTime_Handle, track.Handle, timeRange, atTime); } } [Export("insertSegmentOfTrack:fromRange:scaledToRange:")] public virtual void InsertSegmentOfTrack(QTTrack track, QTTimeRange fromRange, QTTimeRange scaledToRange) { if (track == null) { throw new ArgumentNullException("track"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTimeRange_QTTimeRange(base.Handle, selInsertSegmentOfTrackFromRangeScaledToRange_Handle, track.Handle, fromRange, scaledToRange); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTimeRange_QTTimeRange(base.SuperHandle, selInsertSegmentOfTrackFromRangeScaledToRange_Handle, track.Handle, fromRange, scaledToRange); } } [Export("insertEmptySegmentAt:")] public virtual void InsertEmptySegment(QTTimeRange range) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange(base.Handle, selInsertEmptySegmentAt_Handle, range); } else { Messaging.void_objc_msgSendSuper_QTTimeRange(base.SuperHandle, selInsertEmptySegmentAt_Handle, range); } } [Export("deleteSegment:")] public virtual void DeleteSegment(QTTimeRange segment) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange(base.Handle, selDeleteSegment_Handle, segment); } else { Messaging.void_objc_msgSendSuper_QTTimeRange(base.SuperHandle, selDeleteSegment_Handle, segment); } } [Export("scaleSegment:newDuration:")] public virtual void ScaleSegmentnewDuration(QTTimeRange segment, QTTime newDuration) { if (IsDirectBinding) { Messaging.void_objc_msgSend_QTTimeRange_QTTime(base.Handle, selScaleSegmentNewDuration_Handle, segment, newDuration); } else { Messaging.void_objc_msgSendSuper_QTTimeRange_QTTime(base.SuperHandle, selScaleSegmentNewDuration_Handle, segment, newDuration); } } [Export("addImage:forDuration:withAttributes:")] public virtual void AddImage(NSImage image, QTTime forDuration, NSDictionary attributes) { if (image == null) { throw new ArgumentNullException("image"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_QTTime_IntPtr(base.Handle, selAddImageForDurationWithAttributes_Handle, image.Handle, forDuration, attributes.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_QTTime_IntPtr(base.SuperHandle, selAddImageForDurationWithAttributes_Handle, image.Handle, forDuration, attributes.Handle); } } [Export("apertureModeDimensionsForMode:")] public virtual CGSize ApertureModeDimensionsForMode(string mode) { if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); CGSize result = ((!IsDirectBinding) ? Messaging.CGSize_objc_msgSendSuper_IntPtr(base.SuperHandle, selApertureModeDimensionsForMode_Handle, arg) : Messaging.CGSize_objc_msgSend_IntPtr(base.Handle, selApertureModeDimensionsForMode_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("setApertureModeDimensions:forMode:")] public virtual void SetApertureModeDimensionsforMode(CGSize dimensions, string mode) { if (mode == null) { throw new ArgumentNullException("mode"); } IntPtr arg = NSString.CreateNative(mode); if (IsDirectBinding) { Messaging.void_objc_msgSend_CGSize_IntPtr(base.Handle, selSetApertureModeDimensionsForMode_Handle, dimensions, arg); } else { Messaging.void_objc_msgSendSuper_CGSize_IntPtr(base.SuperHandle, selSetApertureModeDimensionsForMode_Handle, dimensions, arg); } NSString.ReleaseNative(arg); } [Export("generateApertureModeDimensions")] public virtual void GenerateApertureModeDimensions() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGenerateApertureModeDimensionsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGenerateApertureModeDimensionsHandle); } } [Export("removeApertureModeDimensions")] public virtual void RemoveApertureModeDimensions() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveApertureModeDimensionsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveApertureModeDimensionsHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Movie_var = null; __mt_Media_var = null; __mt_TrackAttributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QTKit/TimeFlags.cs ================================================ using System; namespace QTKit; [Flags] public enum TimeFlags { TimeIsIndefinite = 1 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QuartzComposer/QCComposition.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QuartzComposer; [Register("QCComposition", true)] public class QCComposition : NSObject { private static readonly IntPtr selProtocolsHandle = Selector.GetHandle("protocols"); private static readonly IntPtr selAttributesHandle = Selector.GetHandle("attributes"); private static readonly IntPtr selInputKeysHandle = Selector.GetHandle("inputKeys"); private static readonly IntPtr selOutputKeysHandle = Selector.GetHandle("outputKeys"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selCompositionWithFile_Handle = Selector.GetHandle("compositionWithFile:"); private static readonly IntPtr selCompositionWithData_Handle = Selector.GetHandle("compositionWithData:"); private static readonly IntPtr class_ptr = Class.GetHandle("QCComposition"); private object __mt_Attributes_var; private static NSString _AttributeNameKey; private static NSString _AttributeDescriptionKey; private static NSString _AttributeCopyrightKey; private static NSString _AttributeBuiltInKey; private static NSString _AttributeIsTimeDependentKey; private static NSString _AttributeHasConsumersKey; private static NSString _AttributeCategoryKey; private static NSString _CategoryDistortion; private static NSString _CategoryStylize; private static NSString _CategoryUtility; private static NSString _InputImageKey; private static NSString _InputSourceImageKey; private static NSString _InputDestinationImageKey; private static NSString _InputRSSFeedURLKey; private static NSString _InputRSSArticleDurationKey; private static NSString _InputPreviewModeKey; private static NSString _InputXKey; private static NSString _InputYKey; private static NSString _InputScreenImageKey; private static NSString _InputAudioPeakKey; private static NSString _InputAudioSpectrumKey; private static NSString _InputTrackPositionKey; private static NSString _InputTrackInfoKey; private static NSString _InputTrackSignalKey; private static NSString _InputPrimaryColorKey; private static NSString _InputSecondaryColorKey; private static NSString _InputPaceKey; private static NSString _OutputImageKey; private static NSString _OutputWebPageURLKey; private static NSString _ProtocolGraphicAnimation; private static NSString _ProtocolGraphicTransition; private static NSString _ProtocolImageFilter; private static NSString _ProtocolScreenSaver; private static NSString _ProtocolRSSVisualizer; private static NSString _ProtocolMusicVisualizer; public override IntPtr ClassHandle => class_ptr; public virtual string[] Protocols { [Export("protocols")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selProtocolsHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProtocolsHandle)); } } public virtual NSDictionary Attributes { [Export("attributes")] get { return (NSDictionary)(__mt_Attributes_var = ((!IsDirectBinding) ? ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesHandle))) : ((NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesHandle))))); } } public virtual string[] InputKeys { [Export("inputKeys")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputKeysHandle)); } } public virtual string[] OutputKeys { [Export("outputKeys")] get { if (IsDirectBinding) { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOutputKeysHandle)); } return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOutputKeysHandle)); } } public virtual string Identifier { [Export("identifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } } [Field("QCCompositionAttributeNameKey", "QuartzComposer")] public static NSString AttributeNameKey { get { if (_AttributeNameKey == null) { _AttributeNameKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeNameKey"); } return _AttributeNameKey; } } [Field("QCCompositionAttributeDescriptionKey", "QuartzComposer")] public static NSString AttributeDescriptionKey { get { if (_AttributeDescriptionKey == null) { _AttributeDescriptionKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeDescriptionKey"); } return _AttributeDescriptionKey; } } [Field("QCCompositionAttributeCopyrightKey", "QuartzComposer")] public static NSString AttributeCopyrightKey { get { if (_AttributeCopyrightKey == null) { _AttributeCopyrightKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeCopyrightKey"); } return _AttributeCopyrightKey; } } [Field("QCCompositionAttributeBuiltInKey", "QuartzComposer")] public static NSString AttributeBuiltInKey { get { if (_AttributeBuiltInKey == null) { _AttributeBuiltInKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeBuiltInKey"); } return _AttributeBuiltInKey; } } [Field("QCCompositionAttributeIsTimeDependentKey", "QuartzComposer")] public static NSString AttributeIsTimeDependentKey { get { if (_AttributeIsTimeDependentKey == null) { _AttributeIsTimeDependentKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeIsTimeDependentKey"); } return _AttributeIsTimeDependentKey; } } [Field("QCCompositionAttributeHasConsumersKey", "QuartzComposer")] public static NSString AttributeHasConsumersKey { get { if (_AttributeHasConsumersKey == null) { _AttributeHasConsumersKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeHasConsumersKey"); } return _AttributeHasConsumersKey; } } [Field("QCCompositionAttributeCategoryKey", "QuartzComposer")] public static NSString AttributeCategoryKey { get { if (_AttributeCategoryKey == null) { _AttributeCategoryKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionAttributeCategoryKey"); } return _AttributeCategoryKey; } } [Field("QCCompositionCategoryDistortion", "QuartzComposer")] public static NSString CategoryDistortion { get { if (_CategoryDistortion == null) { _CategoryDistortion = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionCategoryDistortion"); } return _CategoryDistortion; } } [Field("QCCompositionCategoryStylize", "QuartzComposer")] public static NSString CategoryStylize { get { if (_CategoryStylize == null) { _CategoryStylize = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionCategoryStylize"); } return _CategoryStylize; } } [Field("QCCompositionCategoryUtility", "QuartzComposer")] public static NSString CategoryUtility { get { if (_CategoryUtility == null) { _CategoryUtility = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionCategoryUtility"); } return _CategoryUtility; } } [Field("QCCompositionInputImageKey", "QuartzComposer")] public static NSString InputImageKey { get { if (_InputImageKey == null) { _InputImageKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputImageKey"); } return _InputImageKey; } } [Field("QCCompositionInputSourceImageKey", "QuartzComposer")] public static NSString InputSourceImageKey { get { if (_InputSourceImageKey == null) { _InputSourceImageKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputSourceImageKey"); } return _InputSourceImageKey; } } [Field("QCCompositionInputDestinationImageKey", "QuartzComposer")] public static NSString InputDestinationImageKey { get { if (_InputDestinationImageKey == null) { _InputDestinationImageKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputDestinationImageKey"); } return _InputDestinationImageKey; } } [Field("QCCompositionInputRSSFeedURLKey", "QuartzComposer")] public static NSString InputRSSFeedURLKey { get { if (_InputRSSFeedURLKey == null) { _InputRSSFeedURLKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputRSSFeedURLKey"); } return _InputRSSFeedURLKey; } } [Field("QCCompositionInputRSSArticleDurationKey", "QuartzComposer")] public static NSString InputRSSArticleDurationKey { get { if (_InputRSSArticleDurationKey == null) { _InputRSSArticleDurationKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputRSSArticleDurationKey"); } return _InputRSSArticleDurationKey; } } [Field("QCCompositionInputPreviewModeKey", "QuartzComposer")] public static NSString InputPreviewModeKey { get { if (_InputPreviewModeKey == null) { _InputPreviewModeKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputPreviewModeKey"); } return _InputPreviewModeKey; } } [Field("QCCompositionInputXKey", "QuartzComposer")] public static NSString InputXKey { get { if (_InputXKey == null) { _InputXKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputXKey"); } return _InputXKey; } } [Field("QCCompositionInputYKey", "QuartzComposer")] public static NSString InputYKey { get { if (_InputYKey == null) { _InputYKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputYKey"); } return _InputYKey; } } [Field("QCCompositionInputScreenImageKey", "QuartzComposer")] public static NSString InputScreenImageKey { get { if (_InputScreenImageKey == null) { _InputScreenImageKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputScreenImageKey"); } return _InputScreenImageKey; } } [Field("QCCompositionInputAudioPeakKey", "QuartzComposer")] public static NSString InputAudioPeakKey { get { if (_InputAudioPeakKey == null) { _InputAudioPeakKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputAudioPeakKey"); } return _InputAudioPeakKey; } } [Field("QCCompositionInputAudioSpectrumKey", "QuartzComposer")] public static NSString InputAudioSpectrumKey { get { if (_InputAudioSpectrumKey == null) { _InputAudioSpectrumKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputAudioSpectrumKey"); } return _InputAudioSpectrumKey; } } [Field("QCCompositionInputTrackPositionKey", "QuartzComposer")] public static NSString InputTrackPositionKey { get { if (_InputTrackPositionKey == null) { _InputTrackPositionKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputTrackPositionKey"); } return _InputTrackPositionKey; } } [Field("QCCompositionInputTrackInfoKey", "QuartzComposer")] public static NSString InputTrackInfoKey { get { if (_InputTrackInfoKey == null) { _InputTrackInfoKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputTrackInfoKey"); } return _InputTrackInfoKey; } } [Field("QCCompositionInputTrackSignalKey", "QuartzComposer")] public static NSString InputTrackSignalKey { get { if (_InputTrackSignalKey == null) { _InputTrackSignalKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputTrackSignalKey"); } return _InputTrackSignalKey; } } [Field("QCCompositionInputPrimaryColorKey", "QuartzComposer")] public static NSString InputPrimaryColorKey { get { if (_InputPrimaryColorKey == null) { _InputPrimaryColorKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputPrimaryColorKey"); } return _InputPrimaryColorKey; } } [Field("QCCompositionInputSecondaryColorKey", "QuartzComposer")] public static NSString InputSecondaryColorKey { get { if (_InputSecondaryColorKey == null) { _InputSecondaryColorKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputSecondaryColorKey"); } return _InputSecondaryColorKey; } } [Field("QCCompositionInputPaceKey", "QuartzComposer")] public static NSString InputPaceKey { get { if (_InputPaceKey == null) { _InputPaceKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionInputPaceKey"); } return _InputPaceKey; } } [Field("QCCompositionOutputImageKey", "QuartzComposer")] public static NSString OutputImageKey { get { if (_OutputImageKey == null) { _OutputImageKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionOutputImageKey"); } return _OutputImageKey; } } [Field("QCCompositionOutputWebPageURLKey", "QuartzComposer")] public static NSString OutputWebPageURLKey { get { if (_OutputWebPageURLKey == null) { _OutputWebPageURLKey = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionOutputWebPageURLKey"); } return _OutputWebPageURLKey; } } [Field("QCCompositionProtocolGraphicAnimation", "QuartzComposer")] public static NSString ProtocolGraphicAnimation { get { if (_ProtocolGraphicAnimation == null) { _ProtocolGraphicAnimation = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolGraphicAnimation"); } return _ProtocolGraphicAnimation; } } [Field("QCCompositionProtocolGraphicTransition", "QuartzComposer")] public static NSString ProtocolGraphicTransition { get { if (_ProtocolGraphicTransition == null) { _ProtocolGraphicTransition = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolGraphicTransition"); } return _ProtocolGraphicTransition; } } [Field("QCCompositionProtocolImageFilter", "QuartzComposer")] public static NSString ProtocolImageFilter { get { if (_ProtocolImageFilter == null) { _ProtocolImageFilter = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolImageFilter"); } return _ProtocolImageFilter; } } [Field("QCCompositionProtocolScreenSaver", "QuartzComposer")] public static NSString ProtocolScreenSaver { get { if (_ProtocolScreenSaver == null) { _ProtocolScreenSaver = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolScreenSaver"); } return _ProtocolScreenSaver; } } [Field("QCCompositionProtocolRSSVisualizer", "QuartzComposer")] public static NSString ProtocolRSSVisualizer { get { if (_ProtocolRSSVisualizer == null) { _ProtocolRSSVisualizer = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolRSSVisualizer"); } return _ProtocolRSSVisualizer; } } [Field("QCCompositionProtocolMusicVisualizer", "QuartzComposer")] public static NSString ProtocolMusicVisualizer { get { if (_ProtocolMusicVisualizer == null) { _ProtocolMusicVisualizer = Dlfcn.GetStringConstant(Libraries.QuartzComposer.Handle, "QCCompositionProtocolMusicVisualizer"); } return _ProtocolMusicVisualizer; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public QCComposition() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QCComposition(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCComposition(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCComposition(IntPtr handle) : base(handle) { } [Export("compositionWithFile:")] public static QCComposition GetComposition(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); QCComposition result = (QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompositionWithFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("compositionWithData:")] public static QCComposition GetComposition(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } return (QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompositionWithData_Handle, data.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Attributes_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QuartzComposer/QCCompositionLayer.cs ================================================ using System; using System.ComponentModel; using CoreAnimation; using Foundation; using ObjCRuntime; namespace QuartzComposer; [Register("QCCompositionLayer", true)] public class QCCompositionLayer : CAOpenGLLayer { private static readonly IntPtr selCompositionHandle = Selector.GetHandle("composition"); private static readonly IntPtr selCompositionLayerWithFile_Handle = Selector.GetHandle("compositionLayerWithFile:"); private static readonly IntPtr selCompositionLayerWithComposition_Handle = Selector.GetHandle("compositionLayerWithComposition:"); private static readonly IntPtr selInitWithFile_Handle = Selector.GetHandle("initWithFile:"); private static readonly IntPtr selInitWithComposition_Handle = Selector.GetHandle("initWithComposition:"); private static readonly IntPtr class_ptr = Class.GetHandle("QCCompositionLayer"); private object __mt_Composition_var; public override IntPtr ClassHandle => class_ptr; public virtual QCComposition Composition { [Export("composition")] get { return (QCComposition)(__mt_Composition_var = ((!IsDirectBinding) ? ((QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompositionHandle))) : ((QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCompositionHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QCCompositionLayer(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCCompositionLayer(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCCompositionLayer(IntPtr handle) : base(handle) { } [Export("compositionLayerWithFile:")] public static QCCompositionLayer Create(string path) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); QCCompositionLayer result = (QCCompositionLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompositionLayerWithFile_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("compositionLayerWithComposition:")] public static QCCompositionLayer Create(QCComposition composition) { if (composition == null) { throw new ArgumentNullException("composition"); } return (QCCompositionLayer)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selCompositionLayerWithComposition_Handle, composition.Handle)); } [Export("initWithFile:")] public QCCompositionLayer(string path) : base(NSObjectFlag.Empty) { if (path == null) { throw new ArgumentNullException("path"); } IntPtr arg = NSString.CreateNative(path); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithFile_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithFile_Handle, arg); } NSString.ReleaseNative(arg); } [Export("initWithComposition:")] public QCCompositionLayer(QCComposition composition) : base(NSObjectFlag.Empty) { if (composition == null) { throw new ArgumentNullException("composition"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithComposition_Handle, composition.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithComposition_Handle, composition.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Composition_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QuartzComposer/QCCompositionRepository.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace QuartzComposer; [Register("QCCompositionRepository", true)] public class QCCompositionRepository : NSObject { private static readonly IntPtr selSharedCompositionRepositoryHandle = Selector.GetHandle("sharedCompositionRepository"); private static readonly IntPtr selAllCompositionsHandle = Selector.GetHandle("allCompositions"); private static readonly IntPtr selCompositionWithIdentifier_Handle = Selector.GetHandle("compositionWithIdentifier:"); private static readonly IntPtr selCompositionsWithProtocolsAndAttributes_Handle = Selector.GetHandle("compositionsWithProtocols:andAttributes:"); private static readonly IntPtr class_ptr = Class.GetHandle("QCCompositionRepository"); private static object __mt_SharedCompositionRepository_var_static; private object __mt_AllCompositions_var; public override IntPtr ClassHandle => class_ptr; public static QCCompositionRepository SharedCompositionRepository { [Export("sharedCompositionRepository")] get { return (QCCompositionRepository)(__mt_SharedCompositionRepository_var_static = (QCCompositionRepository)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selSharedCompositionRepositoryHandle))); } } public virtual QCComposition[] AllCompositions { [Export("allCompositions")] get { return (QCComposition[])(__mt_AllCompositions_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAllCompositionsHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAllCompositionsHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public QCCompositionRepository(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCCompositionRepository(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public QCCompositionRepository(IntPtr handle) : base(handle) { } [Export("compositionWithIdentifier:")] public virtual QCComposition GetComposition(string identifier) { if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); QCComposition result = ((!IsDirectBinding) ? ((QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompositionWithIdentifier_Handle, arg))) : ((QCComposition)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCompositionWithIdentifier_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("compositionsWithProtocols:andAttributes:")] public virtual QCComposition[] GetCompositions(NSArray protocols, NSDictionary attributes) { if (protocols == null) { throw new ArgumentNullException("protocols"); } if (attributes == null) { throw new ArgumentNullException("attributes"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCompositionsWithProtocolsAndAttributes_Handle, protocols.Handle, attributes.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCompositionsWithProtocolsAndAttributes_Handle, protocols.Handle, attributes.Handle)); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AllCompositions_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/QuickLook/QLThumbnailImage.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; namespace QuickLook; public static class QLThumbnailImage { private static NSString _OptionScaleFactorKey; private static NSString _OptionIconModeKey; [Field("kQLThumbnailOptionScaleFactorKey", "QuickLook")] internal static NSString OptionScaleFactorKey { get { if (_OptionScaleFactorKey == null) { _OptionScaleFactorKey = Dlfcn.GetStringConstant(Libraries.QuickLook.Handle, "kQLThumbnailOptionScaleFactorKey"); } return _OptionScaleFactorKey; } } [Field("kQLThumbnailOptionIconModeKey", "QuickLook")] internal static NSString OptionIconModeKey { get { if (_OptionIconModeKey == null) { _OptionIconModeKey = Dlfcn.GetStringConstant(Libraries.QuickLook.Handle, "kQLThumbnailOptionIconModeKey"); } return _OptionIconModeKey; } } [DllImport("/System/Library/Frameworks/QuickLook.framework/QuickLook")] private static extern IntPtr QLThumbnailImageCreate(IntPtr allocator, IntPtr url, CGSize maxThumbnailSize, IntPtr options); public static CGImage Create(NSUrl url, CGSize maxThumbnailSize, double scaleFactor = 1.0, bool iconMode = false) { NSMutableDictionary nSMutableDictionary = null; if (scaleFactor != 1.0 && iconMode) { nSMutableDictionary = new NSMutableDictionary(); nSMutableDictionary.LowlevelSetObject((NSNumber)scaleFactor, OptionScaleFactorKey.Handle); nSMutableDictionary.LowlevelSetObject(iconMode ? CFBoolean.True.Handle : CFBoolean.False.Handle, OptionIconModeKey.Handle); } IntPtr intPtr = QLThumbnailImageCreate(IntPtr.Zero, url.Handle, maxThumbnailSize, nSMutableDictionary?.Handle ?? IntPtr.Zero); GC.KeepAlive(nSMutableDictionary); if (intPtr != IntPtr.Zero) { return new CGImage(intPtr, owns: true); } return null; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Registrar/DynamicRegistrar.cs ================================================ using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; using Xamarin.Utiles; namespace Registrar; internal class DynamicRegistrar : Registrar { private Dictionary type_map; private Dictionary registered_assemblies; private Dictionary custom_type_map; protected object lock_obj = new object(); protected override bool IsSimulatorOrDesktop => true; protected override bool Is64Bits => IntPtr.Size == 8; protected override bool IsARM64 => RuntimeEx.IsARM64CallingConvention; protected override string PlatformName => "Mac"; public DynamicRegistrar() { type_map = new Dictionary(RuntimeEx.IntPtrEqualityComparer); custom_type_map = new Dictionary(RuntimeEx.TypeEqualityComparer); } protected override bool SkipRegisterAssembly(Assembly assembly) { if (registered_assemblies != null) { return registered_assemblies.ContainsKey(GetAssemblyName(assembly)); } return false; } public void SetAssemblyRegistered(string assembly) { if (registered_assemblies == null) { registered_assemblies = new Dictionary(); } registered_assemblies.Add(assembly, null); } protected override bool ContainsPlatformReference(Assembly assembly) { if (assembly.GetName().Name == AssemblyName) { return true; } AssemblyName[] referencedAssemblies = assembly.GetReferencedAssemblies(); for (int i = 0; i < referencedAssemblies.Length; i++) { if (referencedAssemblies[i].Name == AssemblyName) { return true; } } return false; } public bool IsCustomType(Type type) { lock (custom_type_map) { return custom_type_map.ContainsKey(type); } } public void RegisterMethod(Type type, MethodInfo minfo, ExportAttribute ea) { if (!IsNSObject(type)) { throw new ArgumentException($"Cannot register methods on '{type.FullName}'; it does not inherit from NSObject."); } if (!minfo.IsStatic && type != minfo.DeclaringType) { throw new ArgumentException(string.Format("Cannot register the instance method '{0}' on the type '{1}'. The type to connect to ('{2}') must match the method's type ('{1}').", minfo.Name, type.FullName, minfo.DeclaringType.FullName)); } List exceptions = null; ObjCType objCType = RegisterType(type, ref exceptions); ObjCMethod objCMethod = new ObjCMethod(this, objCType, minfo); if (objCMethod.SetExportAttribute(ea, ref exceptions) && exceptions == null) { objCType.Add(objCMethod, ref exceptions); if (exceptions == null) { RegisterMethod(objCMethod); } } if (exceptions != null) { throw (exceptions.Count == 1) ? exceptions[0] : new AggregateException(exceptions); } } protected override IEnumerable FindMethods(Type type, string name) { MethodInfo[] methods = type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); foreach (MethodInfo methodInfo in methods) { if (methodInfo.Name == name) { yield return methodInfo; } } } protected override PropertyInfo FindProperty(Type type, string name) { return type.GetProperty(name, BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); } public override Type FindType(Type relative, string @namespace, string name) { Type[] array = relative.Assembly.GetTypes(); foreach (Type type in array) { if (type.Namespace == @namespace && type.Name == name) { return type; } } return null; } protected override int GetValueTypeSize(Type type) { return Marshal.SizeOf(type); } protected override IEnumerable CollectConstructors(Type type) { return type.GetConstructors(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); } protected override IEnumerable CollectMethods(Type type) { return type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); } protected override IEnumerable CollectProperties(Type type) { return type.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); } protected override IEnumerable CollectTypes(Assembly assembly) { return assembly.GetTypes(); } protected override BindAsAttribute GetBindAsAttribute(PropertyInfo property) { return property?.GetCustomAttribute(inherit: false); } protected override BindAsAttribute GetBindAsAttribute(MethodBase method, int parameter_index) { if (method == null) { return null; } MethodInfo methodInfo = method as MethodInfo; ICustomAttributeProvider provider; if (methodInfo != null) { methodInfo = methodInfo.GetBaseDefinition(); provider = ((parameter_index != -1) ? methodInfo.GetParameters()[parameter_index] : methodInfo.ReturnTypeCustomAttributes); } else { ConstructorInfo constructorInfo = method as ConstructorInfo; if (parameter_index == -1) { throw ErrorHelper.CreateError(99, "Internal error: can't get the BindAs attribute for the return value of a constructor (" + GetDescriptiveMethodName(method) + "). Please file a bug report with a test case (https://github.com/xamarin/xamarin-macios/issues/new)."); } provider = constructorInfo.GetParameters()[parameter_index]; } return SharedDynamic.GetOneAttribute(provider); } public override Type GetNullableType(Type type) { if (!type.IsGenericType) { return null; } if (type.GetGenericTypeDefinition() != typeof(Nullable<>)) { return null; } return type.GetGenericArguments()[0]; } protected override ConnectAttribute GetConnectAttribute(PropertyInfo property) { return SharedDynamic.GetOneAttribute(property); } protected override ExportAttribute GetExportAttribute(MethodBase method) { MethodInfo methodInfo = method as MethodInfo; if (methodInfo != null) { return SharedDynamic.GetOneAttribute(methodInfo.GetBaseDefinition()); } ConstructorInfo constructorInfo = method as ConstructorInfo; if (constructorInfo != null) { return SharedDynamic.GetOneAttribute(constructorInfo); } return null; } protected override Dictionary> PrepareMethodMapping(Type type) { return SharedDynamic.PrepareInterfaceMethodMapping(type); } protected override ExportAttribute GetExportAttribute(PropertyInfo property) { return SharedDynamic.GetOneAttribute(GetBasePropertyInTypeHierarchy(property) ?? property); } public override RegisterAttribute GetRegisterAttribute(Type type) { return SharedDynamic.GetOneAttribute(type); } public override ProtocolAttribute GetProtocolAttribute(Type type) { return SharedDynamic.GetOneAttribute(type); } protected override IEnumerable GetProtocolMemberAttributes(Type type) { object[] customAttributes = type.GetCustomAttributes(inherit: false); for (int i = 0; i < customAttributes.Length; i++) { if (customAttributes[i] is ProtocolMemberAttribute protocolMemberAttribute) { yield return protocolMemberAttribute; } } } protected override Version GetSDKVersion() { throw new NotImplementedException(); } protected override Type GetSystemVoidType() { return typeof(void); } protected override Type MakeByRef(Type type) { return type.MakeByRefType(); } protected override CategoryAttribute GetCategoryAttribute(Type type) { return SharedDynamic.GetOneAttribute(type); } protected override Type GetProtocolAttributeWrapperType(Type type) { return SharedDynamic.GetOneAttribute(type)?.WrapperType; } protected override IList GetAdoptsAttributes(Type type) { return (AdoptsAttribute[])type.GetCustomAttributes(typeof(AdoptsAttribute), inherit: false); } protected override string GetAssemblyName(Assembly assembly) { return assembly.GetName().Name; } protected override Type GetBaseType(Type type) { return type.BaseType; } protected override MethodBase GetBaseMethod(MethodBase method) { return ((MethodInfo)method).GetBaseDefinition(); } protected override Type GetElementType(Type type) { return type.GetElementType(); } protected override Type GetEnumUnderlyingType(Type type) { return Enum.GetUnderlyingType(type); } protected override string GetFieldName(FieldInfo field) { return field.Name; } protected override IEnumerable GetFields(Type type) { return type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); } protected override Type GetFieldType(FieldInfo field) { return field.FieldType; } protected override MethodBase GetGetMethod(PropertyInfo property) { return property.GetGetMethod(nonPublic: true); } protected override MethodBase GetSetMethod(PropertyInfo property) { return property.GetSetMethod(nonPublic: true); } protected override string GetMethodName(MethodBase method) { return method.Name; } protected override void GetNamespaceAndName(Type type, out string @namespace, out string name) { @namespace = type.Namespace; name = type.Name; } protected override Type[] GetParameters(MethodBase method) { ParameterInfo[] parameters = method.GetParameters(); Type[] array = new Type[parameters.Length]; for (int i = 0; i < parameters.Length; i++) { array[i] = parameters[i].ParameterType; } return array; } protected override string GetParameterName(MethodBase method, int parameter_index) { return method.GetParameters()[parameter_index].Name; } protected override string GetPropertyName(PropertyInfo property) { return property.Name; } protected override Type GetPropertyType(PropertyInfo property) { return property.PropertyType; } protected override Type GetReturnType(MethodBase method) { MethodInfo methodInfo = method as MethodInfo; if (methodInfo != null) { return methodInfo.ReturnType; } throw ErrorHelper.CreateError(0, "Cannot get the return type of a {0}", method.GetType().Name); } protected override string GetTypeFullName(Type type) { return type.FullName; } protected override bool VerifyIsConstrainedToNSObject(Type type, out Type constrained_type) { constrained_type = null; if (!type.IsGenericType && (!type.IsGenericType || type.ContainsGenericParameters) && !type.IsGenericParameter && !type.IsGenericTypeDefinition) { return true; } if (type.IsGenericParameter) { if (typeof(NSObject).IsAssignableFrom(type)) { Type[] genericParameterConstraints = type.GetGenericParameterConstraints(); foreach (Type type2 in genericParameterConstraints) { if (type2.IsSubclassOf(typeof(NSObject))) { constrained_type = type2; return true; } } constrained_type = typeof(NSObject); return true; } return false; } if (type.IsGenericTypeDefinition) { bool flag = true; Type[] genericArguments = type.GetGenericArguments(); Type[] array = new Type[genericArguments.Length]; for (int j = 0; j < genericArguments.Length; j++) { flag &= VerifyIsConstrainedToNSObject(genericArguments[j], out var constrained_type2); array[j] = constrained_type2; } constrained_type = type.MakeGenericType(array); return flag; } return true; } protected override Exception CreateExceptionImpl(int code, bool error, Exception innerException, MethodBase method, string message, params object[] args) { if (error) { return ErrorHelper.CreateError(code, innerException, message, args); } return ErrorHelper.CreateWarning(code, innerException, message, args); } protected override Exception CreateExceptionImpl(int code, bool error, Exception innerException, Type type, string message, params object[] args) { if (error) { return ErrorHelper.CreateError(code, innerException, message, args); } return ErrorHelper.CreateWarning(code, innerException, message, args); } protected override string GetAssemblyQualifiedName(Type type) { return type.AssemblyQualifiedName; } protected override bool HasReleaseAttribute(MethodBase method) { MethodInfo methodInfo = method as MethodInfo; if (methodInfo == null) { return false; } return methodInfo.ReturnTypeCustomAttributes.IsDefined(typeof(ReleaseAttribute), inherit: false); } public static bool HasThisAttributeImpl(MethodBase method) { MethodInfo methodInfo = method as MethodInfo; if (methodInfo == null) { return false; } return methodInfo.IsDefined(typeof(ExtensionAttribute), inherit: false); } protected override bool HasThisAttribute(MethodBase method) { return HasThisAttributeImpl(method); } protected override string GetTypeName(Type type) { return type.Name; } protected override bool HasModelAttribute(Type type) { return type.IsDefined(typeof(ModelAttribute), inherit: false); } protected override bool IsArray(Type type, out int rank) { if (!type.IsArray) { rank = 0; return false; } rank = type.GetArrayRank(); return true; } protected override bool IsByRef(Type type) { return type.IsByRef; } protected override bool IsConstructor(MethodBase method) { return method is ConstructorInfo; } protected override bool IsGenericType(Type type) { if (!type.IsGenericType && !type.IsGenericTypeDefinition) { return type.IsGenericParameter; } return true; } protected override bool IsGenericMethod(MethodBase method) { if (!method.IsGenericMethod) { return method.IsGenericMethodDefinition; } return true; } protected override Type GetGenericTypeDefinition(Type type) { return type.GetGenericTypeDefinition(); } protected override bool IsDelegate(Type type) { return type.IsSubclassOf(typeof(Delegate)); } protected override bool IsNullable(Type type) { if (!type.IsGenericType) { return false; } return type.GetGenericTypeDefinition() == typeof(Nullable<>); } protected override bool IsEnum(Type type, out bool isNativeEnum) { isNativeEnum = false; if (type.IsEnum) { isNativeEnum = type.IsDefined(typeof(NativeAttribute), inherit: false); } return type.IsEnum; } protected override bool IsInterface(Type type) { return type.IsInterface; } protected override bool IsAbstract(Type type) { return type.IsAbstract; } protected override bool IsINativeObject(Type type) { return typeof(INativeObject).IsAssignableFrom(type); } protected override bool IsNSObject(Type type) { if (!(type == typeof(NSObject))) { return type.IsSubclassOf(typeof(NSObject)); } return true; } protected override bool IsStatic(FieldInfo field) { return field.IsStatic; } protected override bool IsStatic(MethodBase method) { return method.IsStatic; } protected override bool IsStatic(PropertyInfo property) { return IsStaticProperty(property); } protected override bool IsValueType(Type type) { return type.IsValueType; } protected override bool IsVirtual(MethodBase method) { return method.IsVirtual; } protected override Type[] GetInterfaces(Type type) { return type.GetInterfaces(); } protected override bool TryGetAttribute(Type type, string attributeNamespace, string attributeType, out object attribute) { object[] customAttributes = type.GetCustomAttributes(inherit: false); attribute = null; if (customAttributes.Length == 0) { return false; } object[] array = customAttributes; foreach (object obj in array) { Type type2 = obj.GetType(); if (type2.Namespace == attributeNamespace && type2.Name == attributeType) { if (attribute != null) { throw new AmbiguousMatchException($"The type '{type.FullName}' contains more than one '{attributeNamespace}.{attributeType}'"); } attribute = obj; } } return attribute != null; } protected override void ReportError(int code, string message, params object[] args) { LogHelper.NSLog(string.Format(message, args)); } private Class.objc_attribute_prop[] GetPropertyAttributes(ObjCProperty property, out int count, bool isProtocol) { Class.objc_attribute_prop[] array = new Class.objc_attribute_prop[5]; count = 0; array[count++] = new Class.objc_attribute_prop { name = "T", value = ToSignature(property.PropertyType, property, forProperty: true) }; switch (property.ArgumentSemantic) { case ArgumentSemantic.Copy: array[count++] = new Class.objc_attribute_prop { name = "C", value = "" }; break; case ArgumentSemantic.Retain: array[count++] = new Class.objc_attribute_prop { name = "&", value = "" }; break; } if (!isProtocol) { array[count++] = new Class.objc_attribute_prop { name = "V", value = property.Selector }; } if (property.IsReadOnly) { array[count++] = new Class.objc_attribute_prop { name = "R", value = string.Empty }; } array[count++] = new Class.objc_attribute_prop { name = "N", value = string.Empty }; return array; } protected override void OnRegisterProtocol(ObjCType type) { IntPtr intPtr = Protocol.objc_getProtocol(type.ProtocolName); if (intPtr != IntPtr.Zero) { type.Handle = intPtr; if (!type_map.ContainsKey(intPtr)) { type_map[intPtr] = type; } return; } intPtr = Protocol.objc_allocateProtocol(type.ProtocolName); if (type.Protocols != null) { ObjCType[] protocols = type.Protocols; foreach (ObjCType objCType in protocols) { if (objCType.ProtocolName == "JSExport") { ErrorHelper.Show(ErrorHelper.CreateWarning(4147, "Detected a protocol ({0}) inheriting from the JSExport protocol while using the dynamic registrar. It is not possible to export protocols to JavaScriptCore dynamically; the static registrar must be used (add '--registrar:static' to the additional mtouch arguments in the project's iOS Build options to select the static registrar).", GetTypeFullName(type.Type))); } Protocol.protocol_addProtocol(intPtr, objCType.Handle); } } if (type.Properties != null) { foreach (ObjCProperty property in type.Properties) { int count; Class.objc_attribute_prop[] propertyAttributes = GetPropertyAttributes(property, out count, isProtocol: true); Protocol.protocol_addProperty(intPtr, property.Selector, propertyAttributes, count, !property.IsOptional, !property.IsStatic); string text = ToSignature(property.PropertyType, property); Protocol.protocol_addMethodDescription(intPtr, Selector.GetHandle(property.GetterSelector), text + "@:", !property.IsOptional, !property.IsStatic); if (!property.IsReadOnly) { Protocol.protocol_addMethodDescription(intPtr, Selector.GetHandle(property.SetterSelector), "v@:" + text, !property.IsOptional, !property.IsStatic); } } } if (type.Methods != null) { foreach (ObjCMethod method in type.Methods) { Protocol.protocol_addMethodDescription(intPtr, Selector.GetHandle(method.Selector), method.Signature, !method.IsOptional, !method.IsStatic); } } Protocol.objc_registerProtocol(intPtr); type_map[intPtr] = type; } protected override void OnRegisterCategory(ObjCType type, ref List exceptions) { if (type.Methods == null) { return; } foreach (ObjCMethod method in type.Methods) { if (!RegisterMethod(method)) { Registrar.AddException(ref exceptions, ErrorHelper.CreateError(4155, "Cannot register the method '{0}.{1}' with the selector '{2}' as a category method on '{3}' because Objective-C already has an implementation for this selector.", GetTypeFullName(type.Type), method.MethodName, method.Selector, type.ExportedName)); } } } protected override void OnReloadType(ObjCType type) { if (type.Handle == IntPtr.Zero) { type.Handle = Class.GetHandle(type.ExportedName); } } protected override void OnRegisterType(ObjCType type) { type.Handle = Class.GetHandle(type.ExportedName); if (type.Handle != IntPtr.Zero) { if (!type_map.ContainsKey(type.Handle)) { type_map[type.Handle] = type; } } else { if ((type.IsWrapper && !type.IsModel) || type.IsFakeProtocol) { return; } ObjCType superType = type.SuperType; type.Handle = Class.objc_allocateClassPair(superType.Handle, type.ExportedName, IntPtr.Zero); if (type.Properties != null) { foreach (ObjCProperty property in type.Properties) { int count; Class.objc_attribute_prop[] propertyAttributes = GetPropertyAttributes(property, out count, isProtocol: false); Class.class_addProperty(type.Handle, property.Selector, propertyAttributes, count); } } if (type.Fields != null) { foreach (ObjCField value in type.Fields.Values) { Class.class_addIvar(type.Handle, value.Name, new IntPtr(value.Size), value.Alignment, value.FieldType); } } if (type.Methods != null) { foreach (ObjCMethod method in type.Methods) { RegisterMethod(method); } } if (type.Protocols != null) { ObjCType[] protocols = type.Protocols; foreach (ObjCType objCType in protocols) { Class.class_addProtocol(type.Handle, objCType.Handle); } } Class.objc_registerClassPair(type.Handle); type_map[type.Handle] = type; AddCustomType(type.Type); } } public void AddCustomType(Type type) { lock (custom_type_map) { custom_type_map[type] = null; } } public void GetMethodDescriptionAndObject(Type type, IntPtr selector, bool is_static, IntPtr obj, ref IntPtr mthis, IntPtr desc) { string name = Selector.GetName(selector); ObjCMethod methodNoThrow = GetMethodNoThrow(type, type, name, is_static); if (methodNoThrow == null) { throw ErrorHelper.CreateError(8006, "Failed to find the selector '{0}' on the type '{1}'", name, type.FullName); } if (methodNoThrow.IsInstanceCategory) { mthis = IntPtr.Zero; } else { try { NSObject nSObject = Runtime.GetNSObject(obj); //NSObject nSObject = Runtime.GetNSObject(obj, RuntimeEx.MissingCtorResolution.ThrowConstructor1NotFound, evenInFinalizerQueue: true); mthis = RuntimeEx.AllocGCHandle(nSObject); if (methodNoThrow.Method.ContainsGenericParameters) { methodNoThrow.WriteUnmanagedDescription(desc, Runtime.FindClosedMethod(nSObject.GetType(), methodNoThrow.Method)); return; } } catch (Exception innerException) { throw ErrorHelper.CreateError(8035, innerException, "Failed to get the 'this' instance in a method call to " + methodNoThrow.DescriptiveMethodName + "."); } } methodNoThrow.WriteUnmanagedDescription(desc); } public void GetMethodDescription(Type type, IntPtr selector, bool is_static, IntPtr desc) { string name = Selector.GetName(selector); ObjCMethod methodNoThrow = GetMethodNoThrow(type, type, name, is_static); if (methodNoThrow == null) { throw ErrorHelper.CreateError(8006, "Failed to find the selector '{0}' on the type '{1}'", name, type.FullName); } if (type.IsGenericType && methodNoThrow.Method is ConstructorInfo) { throw ErrorHelper.CreateError(4133, "Cannot construct an instance of the type '{0}' from Objective-C because the type is generic.", type.FullName); } methodNoThrow.WriteUnmanagedDescription(desc); } private ObjCMethod GetMethodNoThrow(Type original_type, Type type, string selector, bool is_static) { ObjCType objCType = RegisterType(type); if (objCType == null) { throw ErrorHelper.CreateError(4142, "Failed to register the type '{0}'", type.FullName); } ObjCMember member = null; if (type.BaseType != typeof(object) && !objCType.TryGetMember(selector, is_static, out member)) { return GetMethodNoThrow(original_type, type.BaseType, selector, is_static); } if (!(member is ObjCMethod result)) { throw ErrorHelper.CreateError(8007, "Cannot get the method descriptor for the selector '{0}' on the type '{1}', because the selector does not correspond to a method", selector, original_type.FullName); } return result; } public Type Lookup(IntPtr @class, bool throw_on_error) { IntPtr cls = @class; bool lockTaken = false; try { LockRegistrar(ref lockTaken); do { if (type_map.TryGetValue(@class, out var value)) { return value.Type; } bool is_custom_type; Type type = Class.FindType(@class, out is_custom_type); if (type != null) { value = RegisterType(type); if (is_custom_type) { AddCustomType(type); } return type; } @class = Class.class_getSuperclass(@class); } while (@class != IntPtr.Zero); } finally { if (lockTaken) { UnlockRegistrar(); } } if (throw_on_error) { throw ErrorHelper.CreateError(4143, "The ObjectiveC class '{0}' could not be registered, it does not seem to derive from any known ObjectiveC class (including NSObject).", Marshal.PtrToStringAuto(Class.class_getName(cls))); } return null; } private bool RegisterMethod(ObjCMethod method) { IntPtr cls = ((method.IsStatic && !method.IsCategoryInstance) ? Class.object_getClass(method.DeclaringType.Handle) : method.DeclaringType.Handle); return Class.class_addMethod(imp: method.Trampoline switch { Trampoline.Constructor => () => { }, //Trampoline.Constructor => Method.ConstructorTrampoline, //Trampoline.Double => Method.DoubleTrampoline, //Trampoline.Long => Method.LongTrampoline, //Trampoline.Normal => Method.Trampoline, //Trampoline.Release => Method.ReleaseTrampoline, //Trampoline.Retain => Method.RetainTrampoline, //Trampoline.Single => Method.SingleTrampoline, //Trampoline.Static => Method.StaticTrampoline, //Trampoline.StaticDouble => Method.StaticDoubleTrampoline, //Trampoline.StaticLong => Method.StaticLongTrampoline, //Trampoline.StaticSingle => Method.StaticSingleTrampoline, //Trampoline.StaticStret => Method.StaticStretTrampoline, //Trampoline.Stret => Method.StretTrampoline, //Trampoline.X86_DoubleABI_StaticStretTrampoline => Method.X86_DoubleABI_StaticStretTrampoline, //Trampoline.X86_DoubleABI_StretTrampoline => Method.X86_DoubleABI_StretTrampoline, //Trampoline.GetGCHandle => Method.GetGCHandleTrampoline, //Trampoline.SetGCHandle => Method.SetGCHandleTrampoline, //Trampoline.GetFlags => Method.GetFlagsTrampoline, //Trampoline.SetFlags => Method.SetFlagsTrampoline, _ => throw ErrorHelper.CreateError(4144, "Cannot register the method '{0}.{1}' since it does not have an associated trampoline. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new", method.DeclaringType.Type.FullName, method.Name), }, cls: cls, name: Selector.GetHandle(method.Selector), types: method.Signature);; } private static MethodInfo GetPropertyMethod(PropertyInfo property) { if (property.CanRead) { return property.GetGetMethod(nonPublic: true); } return property.GetSetMethod(nonPublic: true); } private static bool IsStaticProperty(PropertyInfo property) { return GetPropertyMethod(property).IsStatic; } private static bool IsVirtualProperty(PropertyInfo property) { return GetPropertyMethod(property).IsVirtual; } private static PropertyInfo GetBasePropertyInTypeHierarchy(PropertyInfo property) { if (IsStaticProperty(property) || !IsVirtualProperty(property)) { return property; } Type baseType = property.DeclaringType.BaseType; while (baseType != null) { PropertyInfo propertyInfo = TryMatchProperty(baseType, property); if (propertyInfo != null) { return GetBasePropertyInTypeHierarchy(propertyInfo) ?? propertyInfo; } baseType = baseType.BaseType; } return null; } private static PropertyInfo TryMatchProperty(Type type, PropertyInfo property) { PropertyInfo[] properties = type.GetProperties(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (PropertyInfo propertyInfo in properties) { if (PropertyMatch(propertyInfo, property)) { return propertyInfo; } } return null; } private static bool PropertyMatch(PropertyInfo candidate, PropertyInfo property) { if (candidate.Name != property.Name) { return false; } if (candidate.CanRead) { if (!property.CanRead) { return false; } if (!MethodMatch(candidate.GetGetMethod(nonPublic: true), property.GetGetMethod(nonPublic: true))) { return false; } } else if (property.CanRead) { return false; } if (candidate.CanWrite) { if (!property.CanWrite) { return false; } if (!MethodMatch(candidate.GetSetMethod(nonPublic: true), property.GetSetMethod(nonPublic: true))) { return false; } } else if (property.CanWrite) { return false; } return true; } private static bool MethodMatch(MethodInfo candidate, MethodInfo method) { if (!candidate.IsVirtual) { return false; } if (candidate.Name != method.Name) { return false; } if (!TypeMatch(candidate.ReturnType, method.ReturnType)) { return false; } ParameterInfo[] parameters = candidate.GetParameters(); ParameterInfo[] parameters2 = method.GetParameters(); if (parameters.Length != parameters2.Length) { return false; } for (int i = 0; i < parameters.Length; i++) { if (!TypeMatch(parameters[i].ParameterType, parameters2[i].ParameterType)) { return false; } } return true; } private static bool TypeMatch(Type a, Type b) { return a == b; } public IntPtr Register(Type type) { List exceptions = null; ObjCType objCType = RegisterType(type, ref exceptions); if (exceptions != null && exceptions.Count > 0) { throw new AggregateException(exceptions); } return objCType?.Handle ?? IntPtr.Zero; } public void Register(Type type, ref List exceptions) { RegisterType(type, ref exceptions); } public string ComputeSignature(MethodInfo method, bool isBlockSignature) { return ComputeSignature(method.DeclaringType, method, null, isCategoryInstance: false, isBlockSignature); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Registrar/Registrar.cs ================================================ using Foundation; using ObjCRuntime; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Xamarin.Utiles; namespace Registrar; internal abstract class Registrar { internal class ObjCType { public Registrar Registrar; public RegisterAttribute RegisterAttribute; public CategoryAttribute CategoryAttribute; public Type Type; public ObjCType BaseType; public ObjCType[] Protocols; public string[] AdoptedProtocols; public bool IsModel; public bool IsProtocol; public bool IsInformalProtocol; public bool IsWrapper; public bool IsGeneric; public IntPtr Handle; public Dictionary Fields; public List Methods; public List Properties; private Dictionary Map = new Dictionary(); private ObjCType superType; private static readonly char[] invalidSelectorCharacters = new char[27] { ' ', '\t', '?', '\\', '!', '|', '@', '"', '\'', '%', '&', '/', '(', ')', '=', '^', '[', ']', '{', '}', ',', '.', ';', '-', '\n', '<', '>' }; public bool IsCategory => CategoryAttribute != null; public string Name { get { if (RegisterAttribute == null || RegisterAttribute.Name == null) { return Registrar.GetTypeFullName(Type); } return RegisterAttribute.Name; } } public string CategoryName { get { if (!IsCategory) { throw new InvalidOperationException(); } return SanitizeObjectiveCName(CategoryAttribute.Name ?? Registrar.GetTypeFullName(Type)); } } public string ProtocolName { get { if (!IsProtocol) { throw new InvalidOperationException(); } return SanitizeObjectiveCName(Registrar.GetProtocolAttribute(Type).Name ?? Registrar.GetTypeFullName(Type)); } } public string ExportedName => Registrar.GetExportedTypeName(Type, RegisterAttribute); public bool IsFakeProtocol { get { if (RegisterAttribute == null || IsProtocol || IsModel) { return false; } return Registrar.HasProtocolAttribute(Type); } } public ObjCType SuperType { get { if (superType != null) { return superType; } ObjCType baseType = BaseType; while (baseType != null && (baseType.IsModel || baseType.IsFakeProtocol)) { baseType = baseType.BaseType; } superType = baseType; return superType; } } public void VerifyRegisterAttribute(ref List exceptions) { if (RegisterAttribute == null) { return; } string name = RegisterAttribute.Name; if (string.IsNullOrEmpty(name)) { return; } for (int i = 0; i < name.Length; i++) { if (!char.IsWhiteSpace(name[i])) { continue; } bool error = false; string text = name.Trim(); for (int j = 0; j < text.Length; j++) { if (char.IsWhiteSpace(text[j])) { error = true; break; } } AddException(ref exceptions, new RuntimeException(4146, error, "The Name parameter of the Registrar attribute on the class '{0}' ('{3}') contains an invalid character: '{1}' (0x{2}).", Registrar.GetTypeFullName(Type), name[i], ((int)name[i]).ToString("x"), name)); break; } } private void VerifySelector(ObjCMethod method, ref List exceptions) { if (!(method.Method == null)) { int num = method.Selector.Split(':').Length - 1; if (method.IsVariadic) { num++; } Type[] parameters = method.Parameters; int num2 = ((parameters != null) ? parameters.Length : 0); if (method.IsCategoryInstance) { num2--; } if (num != num2) { Exception mex = ((!method.IsVariadic) ? Registrar.CreateException(4117, method, "The registrar found a signature mismatch in the method '{0}.{1}' - the selector '{4}' indicates the method takes {2} parameters, while the managed method has {3} parameters.", method.Method.DeclaringType.FullName, method.MethodName, num, num2, method.Selector) : Registrar.CreateException(4140, method, "The registrar found a signature mismatch in the method '{0}.{1}' - the selector '{4}' indicates the variadic method takes {2} parameters, while the managed method has {3} parameters.", method.Method.DeclaringType.FullName, method.MethodName, num, num2, method.Selector)); AddException(ref exceptions, mex); } if (method.IsVariadic && parameters != null && Registrar.GetTypeFullName(parameters[num2 - 1]) != "System.IntPtr") { AddException(ref exceptions, Registrar.CreateException(4123, method, "The type of the variadic parameter in the variadic function '{0}' must be System.IntPtr.", Registrar.GetDescriptiveMethodName(method.Method))); } int num3 = method.Selector.IndexOfAny(invalidSelectorCharacters); if (num3 != -1) { char c = method.Selector[num3]; Registrar registrar = Registrar; object[] obj = new object[5] { c, null, null, null, null }; int num4 = c; obj[1] = num4.ToString("x"); obj[2] = method.Selector; obj[3] = Registrar.GetTypeFullName(Type); obj[4] = Registrar.GetDescriptiveMethodName(method.Method); AddException(ref exceptions, registrar.CreateException(4160, method, "Invalid character '{0}' (0x{1}) found in selector '{2}' for '{3}.{4}'", obj)); } } } public void VerifyAdoptedProtocolsNames(ref List exceptions) { if (AdoptedProtocols == null) { return; } string[] adoptedProtocols = AdoptedProtocols; foreach (string text in adoptedProtocols) { int num = text.IndexOfAny(invalidSelectorCharacters); string text2 = text; if (num != -1) { char c = text[num]; string arg = c.ToString(); switch (c) { case '{': arg = "{{"; text2 = text2.Insert(num, "{"); break; case '}': arg = "}}"; text2 = text2.Insert(num, "}"); break; } string message = $"The 'ProtocolType' parameter of the 'Adopts' attribute used in class '{Registrar.GetTypeFullName(Type)}' contains an invalid character. Value used: '{text2}' Invalid Char: '{arg}'"; object[] args = new string[0]; AddException(ref exceptions, new RuntimeException(4177, error: true, message, args)); } } } public void Add(ObjCField field, ref List exceptions) { ObjCType baseType = BaseType; string key = (field.IsStatic ? "+" : "-") + field.Name; while (baseType != null) { if (baseType.Fields != null && baseType.Fields.ContainsKey(key)) { return; } if (baseType == baseType.BaseType) { break; } baseType = baseType.BaseType; } if (Fields == null) { Fields = new Dictionary(); } Fields.Add(key, field); } public bool Add(ObjCMethod method, ref List exceptions) { if (Methods == null) { Methods = new List(); } VerifySelector(method, ref exceptions); method.ValidateSignature(ref exceptions); if (!method.IsPropertyAccessor && !method.DeclaringType.IsProtocol) { Registrar.VerifyInSdk(ref exceptions, method); } bool result = AddToMap(method, ref exceptions); Methods.Add(method); return result; } public void Add(ObjCProperty property, ref List exceptions) { if (Properties == null) { Properties = new List(); } Properties.Add(property); if (!property.DeclaringType.IsProtocol) { Registrar.VerifyInSdk(ref exceptions, property); } VerifyIsNotKeyword(ref exceptions, property); } public static bool IsObjectiveCKeyword(string name) { switch (name) { case "auto": case "break": case "case": case "char": case "const": case "continue": case "default": case "do": case "double": case "else": case "enum": case "export": case "extern": case "float": case "for": case "goto": case "if": case "inline": case "int": case "long": case "register": case "restrict": case "return": case "short": case "signed": case "sizeof": case "static": case "struct": case "switch": case "template": case "typedef": case "union": case "unsigned": case "void": case "volatile": case "while": case "_Bool": case "_Complex": case "_Imaginery": return true; default: return false; } } private void VerifyIsNotKeyword(ref List exceptions, ObjCProperty property) { if (IsObjectiveCKeyword(property.Selector)) { AddException(ref exceptions, CreateException(4164, property, "Cannot export the property '{0}' because its selector '{1}' is an Objective-C keyword. Please use a different name.", property.Name, property.Selector)); } } public bool TryGetMember(string selector, bool is_static, out ObjCMember member) { selector = ((!is_static) ? ("-" + selector) : ("+" + selector)); return Map.TryGetValue(selector, out member); } private bool AddToMap(ObjCMember member, ref List exceptions) { bool result = true; if (TryGetMember(member.Selector, member.IsNativeStatic, out var member2)) { if (member2.IsImplicit) { AddException(ref exceptions, CreateException(4141, member, "Cannot register the selector '{0}' on the member '{1}.{2}' because Xamarin.iOS implicitly registers this selector.", member.Selector, Registrar.GetTypeFullName(Type), Registrar.GetMemberName(member))); } else { AddException(ref exceptions, CreateException(4119, member, "Could not register the selector '{0}' of the member '{1}.{2}' because the selector is already registered on the member '{3}'.", member.Selector, Registrar.GetTypeFullName(Type), Registrar.GetMemberName(member), Registrar.GetMemberName(member2))); } result = false; } Map[(member.IsNativeStatic ? "+" : "-") + member.Selector] = member; return result; } private Exception CreateException(int code, ObjCMember member, string message, params object[] args) { if (member is ObjCMethod objCMethod) { return Registrar.CreateException(code, objCMethod.Method, message, args); } if (member is ObjCProperty objCProperty && objCProperty.Property != null) { return Registrar.CreateException(code, objCProperty.Property.GetMethod ?? objCProperty.Property.SetMethod, message, args); } return Registrar.CreateException(code, message, args); } } internal abstract class ObjCMember { public Registrar Registrar; public ObjCType DeclaringType; public string Name; public ObjCType CategoryType; public ArgumentSemantic ArgumentSemantic = ArgumentSemantic.None; public bool IsVariadic; public bool IsOptional; private string selector; public string Selector { get { return selector; } set { if (string.IsNullOrEmpty(value)) { throw Registrar.CreateException(4135, this, "The member '{0}' has an Export attribute without a selector. A selector is required.", FullName); } selector = value; } } public abstract string FullName { get; } public abstract bool IsNativeStatic { get; } public virtual bool IsImplicit => false; public bool SetExportAttribute(ExportAttribute ea, ref List exceptions) { if (string.IsNullOrEmpty(ea.Selector)) { AddException(ref exceptions, Registrar.CreateException(4135, this, "The member '{0}' has an Export attribute without a selector. A selector is required.", FullName)); return false; } Selector = ea.Selector; ArgumentSemantic = ea.ArgumentSemantic; IsVariadic = ea.IsVariadic; return true; } public ObjCMember() { } public ObjCMember(Registrar registrar, ObjCType declaringType) { Registrar = registrar; DeclaringType = declaringType; } protected string ToSignature(Type type, ref bool success) { return Registrar.ToSignature(type, this, ref success); } } internal class ObjCMethod : ObjCMember { public readonly MethodBase Method; private string signature; private Trampoline trampoline; private bool? is_static; private bool? is_ctor; private Type[] parameters; private Type[] native_parameters; private Type return_type; private Type native_return_type; private const int RetainReturnValueFlag = 1024; private const int InstanceCategoryFlag = 2048; public string MethodName => Name ?? Registrar.GetMethodName(Method); public override bool IsImplicit { get { if (Method != null) { return false; } Trampoline trampoline = this.trampoline; if ((uint)(trampoline - 5) <= 1u || (uint)(trampoline - 18) <= 3u) { return true; } return false; } } public bool IsConstructor { get { if (!is_ctor.HasValue) { is_ctor = Registrar.IsConstructor(Method); } return is_ctor.Value; } set { is_ctor = value; } } internal bool IsInstanceCategory => DynamicRegistrar.HasThisAttributeImpl(Method); public bool HasParameters => parameters != null; public Type[] Parameters { get { if (parameters == null) { parameters = Registrar.GetParameters(Method); } return parameters; } set { parameters = value; native_parameters = null; } } public Type[] NativeParameters { get { if (native_parameters == null && Parameters != null) { Type[] array = new Type[parameters.Length]; for (int i = 0; i < parameters.Length; i++) { Type type = Registrar.GetBindAsAttribute(this, i)?.OriginalType; if (type != null) { if (!IsValidToManagedTypeConversion(type, parameters[i])) { throw Registrar.CreateException(4172, Method, "The registrar can't convert from '{0}' to '{1}' for the parameter '{2}' in the method {3}.", Registrar.GetTypeFullName(parameters[i]), type.FullName, Registrar.GetParameterName(Method, i), DescriptiveMethodName); } array[i] = type; } else { array[i] = parameters[i]; } } native_parameters = array; } return native_parameters; } } public bool HasReturnType => return_type != null; public Type ReturnType { get { if (return_type == null) { return_type = Registrar.GetReturnType(Method); } return return_type; } set { return_type = value; native_return_type = null; } } public Type NativeReturnType { get { if (native_return_type == null) { if (Registrar.Is(ReturnType, "System", "Void")) { native_return_type = ReturnType; } else { Type type = Registrar.GetBindAsAttribute(this, -1)?.OriginalType; if (type != null) { if (!IsValidToManagedTypeConversion(type, ReturnType)) { throw Registrar.CreateException(4170, Method, "The registrar can't convert from '{0}' to '{1}' for the return value in the method {2}.", Registrar.GetTypeFullName(ReturnType), type.FullName, DescriptiveMethodName); } native_return_type = type; } else { native_return_type = ReturnType; } } } return native_return_type; } } public bool IsStatic { get { if (!is_static.HasValue) { return Registrar.IsStatic(Method); } return is_static.Value; } set { is_static = value; } } public override bool IsNativeStatic { get { if (IsStatic) { return !IsCategoryInstance; } return false; } } public bool IsCategoryInstance { get { if (IsCategory) { return Registrar.HasThisAttribute(Method); } return false; } } public bool IsCategory => CategoryType != null; public bool RetainReturnValue => Registrar.HasReleaseAttribute(Method); public Trampoline CurrentTrampoline => trampoline; public Trampoline Trampoline { get { if (trampoline != 0) { return trampoline; } _ = (MethodInfo)Method; bool flag = !RuntimeEx.IsARM64CallingConvention && ((IntPtr.Size == 8) ? Stret.X86_64NeedStret(NativeReturnType, null) : Stret.X86NeedStret(NativeReturnType, null)); bool flag2 = IsStatic && !IsCategoryInstance; if (Registrar.IsValueType(NativeReturnType) && !Registrar.IsEnum(NativeReturnType) && Registrar.IsGenericType(NativeReturnType)) { throw Registrar.CreateException(4104, Method, "The registrar cannot marshal the return value of type `{0}` in the method `{1}.{2}`.", Registrar.GetTypeFullName(NativeReturnType), Registrar.GetTypeFullName(DeclaringType.Type), Registrar.GetDescriptiveMethodName(Method)); } if (flag) { if (Registrar.IsSimulatorOrDesktop && !Registrar.Is64Bits) { trampoline = (flag2 ? Trampoline.X86_DoubleABI_StaticStretTrampoline : Trampoline.X86_DoubleABI_StretTrampoline); } else { trampoline = (flag2 ? Trampoline.StaticStret : Trampoline.Stret); } } else { switch (Signature[0]) { case 'Q': case 'q': trampoline = (flag2 ? Trampoline.StaticLong : Trampoline.Long); break; case 'f': trampoline = (flag2 ? Trampoline.StaticSingle : Trampoline.Single); break; case 'd': trampoline = (flag2 ? Trampoline.StaticDouble : Trampoline.Double); break; default: trampoline = ((!flag2) ? Trampoline.Normal : Trampoline.Static); break; } } return trampoline; } set { trampoline = value; } } public string Signature { get { if (signature == null) { signature = ComputeSignature(); } return signature; } set { signature = value; } } public string DescriptiveMethodName => Registrar.GetTypeFullName(DeclaringType.Type) + "." + ((Method == null) ? Name : Registrar.GetMethodName(Method)); public override string FullName => DescriptiveMethodName; public bool IsPropertyAccessor { get { if (Method == null) { return false; } if (Method.IsSpecialName) { if (!Method.Name.StartsWith("get_", StringComparison.Ordinal)) { return Method.Name.StartsWith("set_", StringComparison.Ordinal); } return true; } return false; } } public ObjCMethod(Registrar registrar, ObjCType declaringType, MethodBase method) : base(registrar, declaringType) { Method = method; } internal void WriteUnmanagedDescription(IntPtr desc) { WriteUnmanagedDescription(desc, Method); } internal void WriteUnmanagedDescription(IntPtr desc, MethodBase method_base) { ArgumentSemantic argumentSemantic = ArgumentSemantic; MethodInfo methodInfo = method_base as MethodInfo; bool num = methodInfo != null && methodInfo.GetBaseDefinition().ReturnTypeCustomAttributes.IsDefined(typeof(ReleaseAttribute), inherit: false); bool flag = methodInfo != null && DynamicRegistrar.HasThisAttributeImpl(methodInfo); if (argumentSemantic == ArgumentSemantic.None) { argumentSemantic = ArgumentSemantic.Assign; } if (num) { argumentSemantic |= (ArgumentSemantic)1024; } if (flag) { argumentSemantic |= (ArgumentSemantic)2048; } int num2 = Marshal.ReadInt32((nint)desc + IntPtr.Size + 4); if (num2 < 1 + Parameters.Length) { throw ErrorHelper.CreateError(8018, $"Internal consistency error: BindAs array is not big enough (expected at least {1 + parameters.Length} elements, got {num2} elements) for {method_base.DeclaringType.FullName + "." + method_base.Name}. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new."); } Marshal.WriteIntPtr(desc, RuntimeEx.AllocGCHandle(method_base)); Marshal.WriteInt32((nint)desc + IntPtr.Size, (int)argumentSemantic); if (!IsConstructor && ReturnType != NativeReturnType) { Marshal.WriteIntPtr((nint)desc + IntPtr.Size + 8, RuntimeEx.AllocGCHandle(NativeReturnType)); } for (int i = 0; i < NativeParameters.Length; i++) { if (!(parameters[i] == native_parameters[i])) { Marshal.WriteIntPtr((nint)desc + IntPtr.Size + 8 + IntPtr.Size * (i + 1), RuntimeEx.AllocGCHandle(native_parameters[i])); } } } private bool IsValidToManagedTypeConversion(Type inputType, Type outputType) { Type nullableType = Registrar.GetNullableType(outputType); bool num = nullableType != null; int rank = 0; bool flag = Registrar.IsArray(outputType, out rank); Type type = outputType; Type type2 = inputType; if (num) { type = nullableType; } else if (flag) { if (rank != 1) { return false; } if (!Registrar.IsArray(inputType)) { return false; } type = Registrar.GetElementType(outputType); type2 = Registrar.GetElementType(inputType); } string typeFullName = Registrar.GetTypeFullName(type); if (Registrar.Is(type2, Foundation, "NSNumber")) { switch (typeFullName) { case "System.Byte": case "System.SByte": case "System.Int16": case "System.UInt16": case "System.Int32": case "System.UInt32": case "System.Int64": case "System.UInt64": case "System.IntPtr": case "System.UIntPtr": case "System.nint": case "System.nuint": case "System.Single": case "System.Double": case "System.Boolean": return true; default: if (typeFullName == "System.Runtime.InteropServices.NFloat") { return true; } return Registrar.IsEnum(type); } } if (Registrar.Is(type2, Foundation, "NSValue")) { switch (typeFullName) { case "CoreAnimation.CATransform3D": case "CoreGraphics.CGAffineTransform": case "CoreGraphics.CGPoint": case "CoreGraphics.CGRect": case "CoreGraphics.CGSize": case "CoreGraphics.CGVector": case "CoreLocation.CLLocationCoordinate2D": case "CoreMedia.CMTime": case "CoreMedia.CMTimeMapping": case "CoreMedia.CMTimeRange": case "MapKit.MKCoordinateSpan": case "Foundation.NSRange": case "SceneKit.SCNMatrix4": case "SceneKit.SCNVector3": case "SceneKit.SCNVector4": case "UIKit.UIEdgeInsets": case "UIKit.UIOffset": case "UIKit.NSDirectionalEdgeInsets": return true; default: return false; } } if (Registrar.Is(type2, Foundation, "NSString")) { return Registrar.IsSmartEnum(type); } return false; } private bool IsValidToNativeTypeConversion(Type inputType, Type outputType) { return IsValidToManagedTypeConversion(outputType, inputType); } public bool ValidateSignature(ref List exceptions) { if (Registrar.LaxMode) { return true; } if (signature == null) { try { signature = ComputeSignature(); } catch (RuntimeException mex) { AddException(ref exceptions, mex); return false; } } return true; } private string ComputeSignature() { return Registrar.ComputeSignature(DeclaringType.Type, null, this, IsCategoryInstance); } public override string ToString() { return string.Format("[ObjCMethod: Name={0}, IsStatic={1}, Trampoline={2}, Signature={3}]", (Method != null) ? Registrar.GetMethodName(Method) : "null", IsStatic, Trampoline, ""); } } internal class ObjCProperty : ObjCMember { private bool? is_static; public PropertyInfo Property; private Type property_type; private bool? is_read_only; public string GetterSelector; public string SetterSelector; public Type PropertyType { get { if (property_type == null) { property_type = Property.PropertyType; } return property_type; } set { property_type = value; } } public bool IsReadOnly { get { if (!is_read_only.HasValue) { is_read_only = Registrar.GetSetMethod(Property) == null; } return is_read_only.Value; } set { is_read_only = value; } } public bool IsStatic { get { if (!is_static.HasValue) { return Registrar.IsStatic(Property); } return is_static.Value; } set { is_static = value; } } public override bool IsNativeStatic => IsStatic; public override string FullName => Registrar.GetTypeFullName(DeclaringType.Type) + "." + ((Property != null) ? Registrar.GetPropertyName(Property) : Name); } internal class ObjCField : ObjCMember { public int Size; public byte Alignment; public string FieldType; public bool IsProperty; private bool is_static; public override string FullName => Registrar.GetTypeFullName(DeclaringType.Type) + "." + Name; public bool IsStatic { get { return is_static; } set { is_static = value; } } public override bool IsNativeStatic => IsStatic; } internal static class StringConstants { internal const string ExportAttribute = "ExportAttribute"; internal const string ModelAttribute = "ModelAttribute"; internal const string RegisterAttribute = "RegisterAttribute"; internal const string ConnectAttribute = "ConnectAttribute"; internal const string ProtocolAttribute = "ProtocolAttribute"; internal const string ProtocolMemberAttribute = "ProtocolMemberAttribute"; internal const string TransientAttribute = "TransientAttribute"; internal const string ReleaseAttribute = "ReleaseAttribute"; internal const string NativeAttribute = "NativeAttribute"; internal const string CategoryAttribute = "CategoryAttribute"; internal const string INativeObject = "INativeObject"; } private const string NFloatTypeName = "System.Runtime.InteropServices.NFloat"; private Dictionary assemblies = new Dictionary(); private Dictionary types = new Dictionary(); private Dictionary type_map = new Dictionary(); private Dictionary protocol_map = new Dictionary(); private Dictionary categories_map = new Dictionary(); private MethodBase conforms_to_protocol; private MethodBase invoke_conforms_to_protocol; internal const string AssemblyName = "Xamarin.Mac"; private static StringBuilder trace; protected abstract bool IsSimulatorOrDesktop { get; } protected abstract bool Is64Bits { get; } protected abstract bool IsARM64 { get; } protected abstract string PlatformName { get; } protected virtual bool LaxMode => false; internal static string Foundation => "Foundation"; internal static string ObjCRuntime => "ObjCRuntime"; internal static string CoreAnimation => "CoreAnimation"; public string PlatformAssembly => "Xamarin.Mac"; internal static string CreateSetterSelector(string getterSelector) { if (string.IsNullOrEmpty(getterSelector)) { return getterSelector; } int num = getterSelector[0]; if (num >= 97 && num <= 122) { num = (ushort)(num - 32); } return "set" + (char)num + getterSelector.Substring(1) + ":"; } public static string SanitizeObjectiveCName(string name) { StringBuilder stringBuilder = null; for (int i = 0; i < name.Length; i++) { char c = name[i]; switch (c) { case '$': case '+': case '-': case '.': case '/': case '<': case '>': case '@': case '`': if (stringBuilder == null) { stringBuilder = new StringBuilder(name, 0, i, name.Length); } stringBuilder.Append('_'); break; default: stringBuilder?.Append(c); break; } } if (stringBuilder != null) { return stringBuilder.ToString(); } return name; } public IEnumerable GetAssemblies() { return assemblies.Keys; } protected virtual void OnRegisterType(ObjCType type) { } protected virtual void OnSkipType(Type type, ObjCType registered_type) { } protected virtual void OnReloadType(ObjCType type) { } protected virtual void OnRegisterProtocol(ObjCType type) { } protected virtual void OnRegisterCategory(ObjCType type, ref List exceptions) { } protected virtual bool SkipRegisterAssembly(Assembly assembly) { return false; } protected abstract IEnumerable CollectTypes(Assembly assembly); protected abstract IEnumerable CollectMethods(Type type); protected abstract IEnumerable CollectProperties(Type type); protected abstract IEnumerable CollectConstructors(Type type); protected abstract bool ContainsPlatformReference(Assembly assembly); protected abstract Type GetBaseType(Type type); protected abstract Type[] GetInterfaces(Type type); protected virtual Type[] GetLinkedAwayInterfaces(Type type) { return null; } protected abstract MethodBase GetBaseMethod(MethodBase method); protected abstract Type[] GetParameters(MethodBase method); protected abstract string GetParameterName(MethodBase method, int parameter_index); protected abstract MethodBase GetGetMethod(PropertyInfo property); protected abstract MethodBase GetSetMethod(PropertyInfo property); protected abstract Type GetSystemVoidType(); protected abstract bool IsVirtual(MethodBase method); protected abstract bool IsByRef(Type type); protected abstract bool IsStatic(PropertyInfo property); protected abstract bool IsStatic(FieldInfo field); protected abstract bool IsStatic(MethodBase method); protected abstract Type MakeByRef(Type type); protected abstract bool HasThisAttribute(MethodBase method); protected abstract bool IsConstructor(MethodBase method); protected abstract Type GetElementType(Type type); protected abstract Type GetReturnType(MethodBase method); protected abstract void GetNamespaceAndName(Type type, out string @namespace, out string name); protected abstract bool TryGetAttribute(Type type, string attributeNamespace, string attributeType, out object attribute); protected abstract ExportAttribute GetExportAttribute(PropertyInfo property); protected abstract ExportAttribute GetExportAttribute(MethodBase method); protected abstract Dictionary> PrepareMethodMapping(Type type); public abstract RegisterAttribute GetRegisterAttribute(Type type); protected abstract CategoryAttribute GetCategoryAttribute(Type type); protected abstract ConnectAttribute GetConnectAttribute(PropertyInfo property); public abstract ProtocolAttribute GetProtocolAttribute(Type type); protected abstract IEnumerable GetProtocolMemberAttributes(Type type); protected virtual Version GetSdkIntroducedVersion(Type obj, out string message) { message = null; return null; } protected abstract Version GetSDKVersion(); protected abstract Type GetProtocolAttributeWrapperType(Type type); protected abstract BindAsAttribute GetBindAsAttribute(MethodBase method, int parameter_index); protected abstract BindAsAttribute GetBindAsAttribute(PropertyInfo property); protected abstract IList GetAdoptsAttributes(Type type); public abstract Type GetNullableType(Type type); protected abstract bool HasReleaseAttribute(MethodBase method); protected abstract bool IsINativeObject(Type type); protected abstract bool IsValueType(Type type); protected abstract bool IsArray(Type type, out int rank); protected abstract bool IsEnum(Type type, out bool isNativeEnum); protected abstract bool IsNullable(Type type); protected abstract bool IsDelegate(Type type); protected abstract bool IsGenericType(Type type); protected abstract bool IsGenericMethod(MethodBase method); protected abstract bool IsInterface(Type type); protected abstract bool IsAbstract(Type type); protected abstract Type GetGenericTypeDefinition(Type type); protected abstract bool VerifyIsConstrainedToNSObject(Type type, out Type constrained_type); protected abstract Type GetEnumUnderlyingType(Type type); protected abstract IEnumerable GetFields(Type type); protected abstract Type GetFieldType(FieldInfo field); protected abstract int GetValueTypeSize(Type type); protected abstract Exception CreateExceptionImpl(int code, bool error, Exception innerException, MethodBase method, string message, params object[] args); protected abstract Exception CreateExceptionImpl(int code, bool error, Exception innerException, Type type, string message, params object[] args); public abstract Type FindType(Type relative, string @namespace, string name); protected abstract IEnumerable FindMethods(Type type, string name); protected abstract PropertyInfo FindProperty(Type type, string name); protected abstract string GetAssemblyName(Assembly assembly); protected abstract string GetTypeFullName(Type type); protected abstract string GetAssemblyQualifiedName(Type type); protected abstract string GetTypeName(Type type); protected abstract string GetPropertyName(PropertyInfo property); protected abstract Type GetPropertyType(PropertyInfo property); protected abstract string GetMethodName(MethodBase method); protected abstract string GetFieldName(FieldInfo field); public Registrar() { } protected bool IsArray(Type type) { int rank; return IsArray(type, out rank); } protected bool IsEnum(Type type) { bool isNativeEnum; return IsEnum(type, out isNativeEnum); } public BindAsAttribute GetBindAsAttribute(ObjCMethod method, int parameter_index) { BindAsAttribute bindAsAttribute = GetBindAsAttribute(method.Method, parameter_index); if (bindAsAttribute != null) { if (parameter_index != -1) { _ = GetParameters(method.Method)[parameter_index]; } else { GetReturnType(method.Method); } if (parameter_index == -1) { Type returnType = GetReturnType(method.Method); if (!AreEqual(returnType, bindAsAttribute.Type)) { throw CreateException(4171, method.Method, "The BindAs attribute on the return value of the method {0} is invalid: the BindAs type {1} is different from the return type {2}.", method.DescriptiveMethodName, GetTypeFullName(bindAsAttribute.Type), GetTypeFullName(returnType)); } } else { Type type = GetParameters(method.Method)[parameter_index]; if (IsByRef(type)) { type = GetElementType(type); } if (!AreEqual(type, bindAsAttribute.Type)) { throw CreateException(4171, method.Method, "The BindAs attribute on the parameter #{0} is invalid: the BindAs type {1} is different from the parameter type {2}.", parameter_index + 1, GetTypeFullName(bindAsAttribute.Type), GetTypeFullName(type)); } } return bindAsAttribute; } if (!method.IsPropertyAccessor) { return null; } PropertyInfo property = FindProperty(method.DeclaringType.Type, method.MethodName.Substring(4)); bindAsAttribute = GetBindAsAttribute(property); if (bindAsAttribute != null) { Type propertyType = GetPropertyType(property); if (!AreEqual(propertyType, bindAsAttribute.Type)) { throw CreateException(4171, property, "The BindAs attribute on the property {0}.{1} is invalid: the BindAs type {2} is different from the property type {1}.", GetTypeFullName(method.DeclaringType.Type), GetPropertyName(property), GetTypeFullName(bindAsAttribute.Type), GetTypeFullName(propertyType)); } } return bindAsAttribute; } private bool IsSmartEnum(Type type) { MethodBase getConstantMethod; MethodBase getValueMethod; return IsSmartEnum(type, out getConstantMethod, out getValueMethod); } public bool IsSmartEnum(Type type, out MethodBase getConstantMethod, out MethodBase getValueMethod) { getConstantMethod = null; getValueMethod = null; if (!IsEnum(type)) { return false; } Type type2 = FindType(type, type.Namespace, type.Name + "Extensions"); if (type2 == null) { return false; } foreach (MethodBase item in FindMethods(type2, "GetConstant")) { if (Is(GetReturnType(item), Foundation, "NSString")) { Type[] parameters = GetParameters(item); if (parameters != null && parameters.Length == 1 && AreEqual(parameters[0], type)) { getConstantMethod = item; break; } } } if (getConstantMethod == null) { return false; } foreach (MethodBase item2 in FindMethods(type2, "GetValue")) { if (AreEqual(GetReturnType(item2), type)) { Type[] parameters2 = GetParameters(item2); if (parameters2 != null && parameters2.Length == 1 && Is(parameters2[0], Foundation, "NSString")) { getValueMethod = item2; break; } } } if (getValueMethod == null) { return false; } return true; } protected string GetMemberName(ObjCMember member) { if (member is ObjCMethod objCMethod) { if (objCMethod.Method != null) { return GetMethodName(objCMethod.Method); } return objCMethod.MethodName ?? ""; } if (member is ObjCProperty objCProperty) { return GetPropertyName(objCProperty.Property); } return ((ObjCField)member).Name; } protected Exception CreateException(int code, string message, params object[] args) { return CreateExceptionImpl(code, error: true, message, args); } protected Exception CreateException(int code, MethodBase method, string message, params object[] args) { return CreateExceptionImpl(code, error: true, method, message, args); } protected Exception CreateException(int code, PropertyInfo property, string message, params object[] args) { return CreateExceptionImpl(code, error: true, property, message, args); } protected Exception CreateException(int code, Type type, string message, params object[] args) { return CreateExceptionImpl(code, error: true, type, message, args); } protected Exception CreateException(int code, Exception innerException, PropertyInfo property, string message, params object[] args) { return CreateExceptionImpl(code, error: true, innerException, property, message, args); } private Exception CreateExceptionImpl(int code, bool error, string message, params object[] args) { return CreateExceptionImpl(code, error, (MethodBase)null, message, args); } private Exception CreateExceptionImpl(int code, bool error, MethodBase method, string message, params object[] args) { return CreateExceptionImpl(code, error, null, method, message, args); } private Exception CreateExceptionImpl(int code, bool error, PropertyInfo property, string message, params object[] args) { return CreateExceptionImpl(code, error, null, property, message, args); } private Exception CreateExceptionImpl(int code, bool error, Type type, string message, params object[] args) { return CreateExceptionImpl(code, error, null, type, message, args); } private Exception CreateExceptionImpl(int code, bool error, Exception innerException, PropertyInfo property, string message, params object[] args) { if (property == null) { return CreateExceptionImpl(code, error, innerException, (MethodBase)null, message, args); } MethodBase getMethod = GetGetMethod(property); if (getMethod != null) { return CreateExceptionImpl(code, error, innerException, getMethod, message, args); } return CreateExceptionImpl(code, error, innerException, GetSetMethod(property), message, args); } private Exception CreateException(int code, ObjCMember member, string message, params object[] args) { return CreateExceptionImpl(code, error: true, member, message, args); } private Exception CreateExceptionImpl(int code, bool error, ObjCMember member, string message, params object[] args) { if (member is ObjCMethod objCMethod) { return CreateExceptionImpl(code, error, objCMethod.Method, message, args); } if (member is ObjCProperty objCProperty) { return CreateExceptionImpl(code, error, objCProperty.Property, message, args); } return CreateExceptionImpl(code, error, message, args); } private Exception CreateWarning(int code, ObjCMember member, string message, params object[] args) { return CreateExceptionImpl(code, error: false, member, message, args); } protected string GetDescriptiveMethodName(MethodBase method) { if (method == null) { return string.Empty; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(GetMethodName(method)); stringBuilder.Append("("); Type[] parameters = GetParameters(method); if (parameters != null && parameters.Length != 0) { for (int i = 0; i < parameters.Length; i++) { if (i > 0) { stringBuilder.Append(","); } stringBuilder.Append(GetTypeFullName(parameters[i])); } } stringBuilder.Append(")"); return stringBuilder.ToString(); } private string GetDescriptiveMethodName(Type type, MethodBase method) { return GetTypeFullName(type) + "." + GetDescriptiveMethodName(method); } protected virtual bool IsNSObject(Type type) { GetNamespaceAndName(type, out var @namespace, out var name); if (@namespace == Foundation && name == "NSObject") { return true; } Type baseType = GetBaseType(type); if (baseType != null) { return IsNSObject(baseType); } return false; } protected virtual bool AreEqual(Type a, Type b) { return a == b; } protected bool Is(Type type, string @namespace, string name) { GetNamespaceAndName(type, out var namespace2, out var name2); if (namespace2 == @namespace) { return name2 == name; } return false; } protected virtual bool HasModelAttribute(Type type) { object attribute; return TryGetAttribute(type, Foundation, "ModelAttribute", out attribute); } public virtual bool HasProtocolAttribute(Type type) { object attribute; return TryGetAttribute(type, Foundation, "ProtocolAttribute", out attribute); } public ObjCType RegisterType(Type type) { List exceptions = null; ObjCType value; lock (types) { if (types.TryGetValue(type, out value)) { return value; } value = RegisterTypeUnsafe(type, ref exceptions); } if (exceptions != null && exceptions.Count > 0) { throw new AggregateException(exceptions); } return value; } public ObjCType RegisterType(Type type, ref List exceptions) { lock (types) { return RegisterTypeUnsafe(type, ref exceptions); } } private bool VerifyNonGenericMethod(ref List exceptions, Type declaringType, MethodBase method) { if (!IsGenericMethod(method)) { return true; } AddException(ref exceptions, CreateException(4113, method, "The registrar found a generic method: '{0}'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes", GetDescriptiveMethodName(declaringType, method))); return false; } private void VerifyInSdk(ref List exceptions, ObjCMethod method) { if (method.HasReturnType || (method.Method != null && !method.IsConstructor && method.NativeReturnType != null)) { VerifyTypeInSDK(ref exceptions, method.NativeReturnType, null, method); } if (method.HasParameters || (method.Method != null && method.Parameters != null)) { Type[] parameters = method.Parameters; foreach (Type type in parameters) { VerifyTypeInSDK(ref exceptions, type, method); } } } private void VerifyInSdk(ref List exceptions, ObjCProperty property) { VerifyTypeInSDK(ref exceptions, property.PropertyType, null, null, property); } private void VerifyTypeInSDK(ref List exceptions, Type type, ObjCMethod parameterIn = null, ObjCMethod returnTypeOf = null, ObjCProperty propertyTypeOf = null, Type baseTypeOf = null) { string message; Version sdkIntroducedVersion = GetSdkIntroducedVersion(type, out message); if ((object)sdkIntroducedVersion == null) { return; } Version sDKVersion = GetSDKVersion(); if (!(sdkIntroducedVersion <= sDKVersion)) { string typeFullName = GetTypeFullName(type); string text = string.Empty; string platformName = PlatformName; string text2 = sDKVersion.ToString(); string text3 = sdkIntroducedVersion.ToString(); string text4 = (string.IsNullOrEmpty(message) ? "." : (": '" + message + "'.")); string format; if (baseTypeOf != null) { format = "The type '{0}' (used as a base type of {1}) is not available in {2} {3} (it was introduced in {2} {4}){5} Please build with a newer {2} SDK (usually done by using the most recent version of Xcode)."; text = GetTypeFullName(baseTypeOf); } else if (parameterIn != null) { format = "The type '{0}' (used as a parameter in {1}) is not available in {2} {3} (it was introduced in {2} {4}){5} Please build with a newer {2} SDK (usually done by using the most recent version of Xcode)."; text = parameterIn.DescriptiveMethodName; } else if (returnTypeOf != null) { format = "The type '{0}' (used as a return type in {1}) is not available in {2} {3} (it was introduced in {2} {4}){5} Please build with a newer {2} SDK (usually done by using the most recent version of Xcode)."; text = returnTypeOf.DescriptiveMethodName; } else if (propertyTypeOf != null) { format = "The type '{0}' (used as the property type of {1}) is not available in {2} {3} (it was introduced in {2} {4}){5} Please build with a newer {2} SDK (usually done by using the most recent version of Xcode)."; text = propertyTypeOf.FullName; } else { format = "The type '{0}' is not available in {3} {4} (it was introduced in {3} {5}){6} Please build with a newer {3} SDK (usually done by using the most recent version of Xcode)."; } format = string.Format(format, typeFullName, text, platformName, text2, text3, text4); Exception mex = ((baseTypeOf != null) ? CreateException(4162, baseTypeOf, format) : ((parameterIn != null) ? CreateException(4162, parameterIn, format) : ((returnTypeOf != null) ? CreateException(4162, returnTypeOf, format) : ((propertyTypeOf == null) ? CreateException(4162, format) : CreateException(4162, propertyTypeOf, format))))); AddException(ref exceptions, mex); } } protected static void AddException(ref List exceptions, Exception mex) { if (exceptions == null) { exceptions = new List(); } exceptions.Add(mex); } private bool IsSubClassOf(Type type, string @namespace, string name) { while ((type = GetBaseType(type)) != null) { GetNamespaceAndName(type, out var namespace2, out var name2); if (namespace2 == @namespace && name2 == name) { return true; } } return false; } private bool VerifyIsConstrainedToNSObject(ref List exceptions, Type type, ObjCMethod method) { Type constrained_type = null; if (!VerifyIsConstrainedToNSObject(method.ReturnType, out constrained_type)) { AddException(ref exceptions, CreateException(4129, method.Method, "The registrar found an invalid generic return type '{0}' in the method '{1}'. The generic return type must have an 'NSObject' constraint.", GetTypeFullName(method.ReturnType), GetDescriptiveMethodName(type, method.Method))); return false; } if (constrained_type != null) { method.ReturnType = constrained_type; } Type[] parameters = method.Parameters; if (parameters == null) { return true; } List list = null; for (int i = 0; i < parameters.Length; i++) { Type type2 = parameters[i]; if (!VerifyIsConstrainedToNSObject(type2, out constrained_type)) { AddException(ref exceptions, CreateException(4128, method.Method, "The registrar found an invalid generic parameter type '{0}' in the parameter {2} of the method '{1}'. The generic parameter must have an 'NSObject' constraint.", GetTypeFullName(type2), GetDescriptiveMethodName(type, method.Method), GetParameterName(method.Method, i))); return false; } if (constrained_type != null) { if (list == null) { list = new List(); for (int j = 0; j < i; j++) { list.Add(parameters[j]); } } list.Add(constrained_type); } else { list?.Add(type2); } } if (list != null) { method.Parameters = list.ToArray(); } return true; } private void FlattenInterfaces(Type[] ifaces) { if (ifaces.Length == 1) { return; } for (int i = 0; i < ifaces.Length; i++) { Type type = ifaces[i]; if (type == null) { continue; } Type[] interfaces = GetInterfaces(type); if (interfaces == null) { continue; } for (int j = 0; j < interfaces.Length; j++) { for (int k = 0; k < ifaces.Length; k++) { if (k != i && !(ifaces[k] == null) && ifaces[k] == interfaces[j]) { ifaces[k] = null; } } } } } private Type[] GetInterfacesImpl(ObjCType objcType) { Type type = objcType.Type; Type[] array = GetInterfaces(type); if (array == null || array.Length == 0) { return array; } FlattenInterfaces(array); ObjCType superType = objcType.SuperType; if (superType == null || superType.Type == null) { return array; } Type[] interfaces = GetInterfaces(superType.Type); if (interfaces == null || interfaces.Length == 0) { return array; } FlattenInterfaces(interfaces); int newSize = 0; for (int i = 0; i < array.Length; i++) { if (Array.IndexOf(interfaces, array[i]) < 0) { array[newSize++] = array[i]; } } Array.Resize(ref array, newSize); return array; } private ObjCType[] GetProtocols(ObjCType type, ref List exceptions) { Type[] interfacesImpl = GetInterfacesImpl(type); List list = null; if (interfacesImpl != null && interfacesImpl.Length != 0) { List list2 = new List(interfacesImpl); list = new List(interfacesImpl.Length); for (int i = 0; i < list2.Count; i++) { if (list2[i] == null) { continue; } ObjCType objCType = RegisterTypeUnsafe(list2[i], ref exceptions); if (objCType == null) { continue; } if (objCType.IsInformalProtocol) { Type[] interfacesImpl2 = GetInterfacesImpl(objCType); if (interfacesImpl2 != null) { list2.AddRange(interfacesImpl2); } } else { list.Add(objCType); } } } List list3 = new List(); Type[] linkedAwayInterfaces = GetLinkedAwayInterfaces(type.Type); ObjCType baseType = type.BaseType; if (linkedAwayInterfaces != null) { list3.AddRange(linkedAwayInterfaces); } while (baseType != null && baseType.IsModel) { linkedAwayInterfaces = GetLinkedAwayInterfaces(baseType.Type); if (linkedAwayInterfaces != null) { list3.AddRange(linkedAwayInterfaces); } baseType = baseType.BaseType; } if (list3.Count > 0) { if (list == null) { list = new List(); } for (int j = 0; j < list3.Count; j++) { Type type2 = list3[j]; ProtocolAttribute protocolAttribute = GetProtocolAttribute(type2); if (protocolAttribute == null) { continue; } if (protocolAttribute.IsInformal) { linkedAwayInterfaces = GetLinkedAwayInterfaces(type2); if (linkedAwayInterfaces != null) { list3.AddRange(linkedAwayInterfaces); } } else { ObjCType item = new ObjCType { Registrar = this, Type = type2, IsProtocol = true }; list.Add(item); } } } if (list == null || list.Count == 0) { return null; } return list.ToArray(); } private string[] GetAdoptedProtocols(ObjCType type) { IList adoptsAttributes = GetAdoptsAttributes(type.Type); if (adoptsAttributes == null || adoptsAttributes.Count == 0) { return null; } string[] array = new string[adoptsAttributes.Count]; for (int i = 0; i < adoptsAttributes.Count; i++) { array[i] = adoptsAttributes[i].ProtocolType; } return array; } private ObjCType RegisterCategory(Type type, CategoryAttribute attrib, ref List exceptions) { if (IsINativeObject(type)) { AddException(ref exceptions, ErrorHelper.CreateError(4152, "Cannot register the type '{0}' as a category because it implements INativeObject or subclasses NSObject.", GetTypeFullName(type))); return null; } if (IsGenericType(type)) { AddException(ref exceptions, ErrorHelper.CreateError(4153, "Cannot register the type '{0}' as a category because it's generic.", GetTypeFullName(type))); return null; } if (attrib.Type == null) { AddException(ref exceptions, ErrorHelper.CreateError(4151, "Cannot register the type '{0}' because the Type property in its Category attribute isn't set.", GetTypeFullName(type))); return null; } ObjCType objCType = RegisterType(attrib.Type, ref exceptions); if (objCType == null) { AddException(ref exceptions, ErrorHelper.CreateError(4150, "Cannot register the type '{0}' because the category type '{1}' in its Category attribute does not inherit from NSObject.", GetTypeFullName(type), GetTypeFullName(attrib.Type))); return null; } ObjCType objCType2 = new ObjCType { Registrar = this, Type = type, BaseType = objCType, CategoryAttribute = attrib }; lock (categories_map) { if (categories_map.TryGetValue(objCType2.CategoryName, out var value)) { AddException(ref exceptions, ErrorHelper.CreateError(4156, "Cannot register two categories ('{0}' and '{1}') with the same native name ('{2}')", GetAssemblyQualifiedName(type), GetAssemblyQualifiedName(value), objCType2.CategoryName)); return null; } categories_map.Add(objCType2.CategoryName, type); } types.Add(type, objCType2); foreach (MethodBase item in CollectConstructors(type)) { if (GetExportAttribute(item) != null) { AddException(ref exceptions, CreateException(4158, item, "Cannot register the constructor {0}.{1} in the category {0} because constructors in categories are not supported.", GetTypeFullName(type), GetDescriptiveMethodName(item))); } } foreach (MethodBase item2 in CollectMethods(type)) { ExportAttribute exportAttribute = GetExportAttribute(item2); if (exportAttribute == null) { continue; } if (!IsStatic(item2)) { AddException(ref exceptions, CreateException(4159, item2, "Cannot register the method '{0}.{1}' as a category method because category methods must be static.", GetTypeFullName(type), GetMethodName(item2))); return null; } if (HasThisAttribute(item2)) { Type[] parameters = GetParameters(item2); if (parameters == null || parameters.Length == 0) { AddException(ref exceptions, CreateException(4157, item2, "Cannot register the category method '{0}.{1}' because at least one parameter is required for extension methods (and its type must match the category type '{2}').", GetTypeFullName(type), GetMethodName(item2), GetTypeFullName(objCType.Type))); continue; } if (GetTypeFullName(parameters[0]) != GetTypeFullName(objCType.Type)) { AddException(ref exceptions, CreateException(4149, item2, "Cannot register the extension method '{0}.{1}' because the type of the first parameter ('{2}') does not match the category type ('{3}').", GetTypeFullName(type), GetMethodName(item2), GetTypeFullName(parameters[0]), GetTypeFullName(objCType.Type))); continue; } } if (IsGenericMethod(item2)) { AddException(ref exceptions, CreateException(4154, item2, "Cannot register the method '{0}.{1}' as a category method because it's generic.", GetTypeFullName(type), GetMethodName(item2))); continue; } ObjCMethod objCMethod = new ObjCMethod(this, objCType, item2) { CategoryType = objCType2 }; if (objCMethod.SetExportAttribute(exportAttribute, ref exceptions)) { objCType2.Add(objCMethod, ref exceptions); objCType.Add(objCMethod, ref exceptions); } } OnRegisterCategory(objCType2, ref exceptions); return objCType2; } private ObjCType RegisterTypeUnsafe(Type type, ref List exceptions) { bool flag = false; bool flag2 = false; bool flag3 = false; if (IsGenericType(type)) { type = GetGenericTypeDefinition(type); flag = true; } if (types.TryGetValue(type, out var value)) { OnReloadType(value); return value; } CategoryAttribute categoryAttribute = GetCategoryAttribute(type); if (categoryAttribute != null) { return RegisterCategory(type, categoryAttribute, ref exceptions); } if (!IsNSObject(type)) { if (!IsInterface(type)) { return null; } if (!HasProtocolAttribute(type)) { return null; } if (flag) { exceptions.Add(ErrorHelper.CreateError(4148, "The registrar found a generic protocol: '{0}'. Exporting generic protocols is not supported.", GetTypeFullName(type))); return null; } flag3 = GetProtocolAttribute(type).IsInformal; flag2 = true; } Type baseType = GetBaseType(type); ObjCType objCType = null; if (baseType != null) { objCType = RegisterTypeUnsafe(baseType, ref exceptions); } RegisterAttribute registerAttribute = GetRegisterAttribute(type); if (registerAttribute != null && registerAttribute.SkipRegistration) { OnSkipType(type, objCType); return objCType; } value = new ObjCType { Registrar = this, RegisterAttribute = GetRegisterAttribute(type), Type = type, IsModel = HasModelAttribute(type), IsProtocol = flag2, IsInformalProtocol = flag3, IsGeneric = flag }; value.VerifyRegisterAttribute(ref exceptions); value.AdoptedProtocols = GetAdoptedProtocols(value); value.VerifyAdoptedProtocolsNames(ref exceptions); value.BaseType = (flag2 ? null : (objCType ?? value)); value.Protocols = GetProtocols(value, ref exceptions); value.IsWrapper = ((flag2 && !flag3) ? (GetProtocolAttributeWrapperType(value.Type) != null) : (value.RegisterAttribute != null && value.RegisterAttribute.IsWrapper)); if (!value.IsWrapper && value.BaseType != null) { VerifyTypeInSDK(ref exceptions, value.BaseType.Type, null, null, null, value.Type); } if (ObjCType.IsObjectiveCKeyword(value.ExportedName)) { AddException(ref exceptions, ErrorHelper.CreateError(4168, "Cannot register the type '{0}' because its Objective-C name '{1}' is an Objective-C keyword. Please use a different name.", GetTypeFullName(type), value.ExportedName)); } if (value.Protocols != null) { ObjCType[] protocols = value.Protocols; foreach (ObjCType type2 in protocols) { OnRegisterProtocol(type2); } } Type value2; if (value.IsProtocol) { lock (protocol_map) { if (protocol_map.TryGetValue(value.ExportedName, out value2)) { throw ErrorHelper.CreateError(4126, "Cannot register two managed protocols ('{0}' and '{1}') with the same native name ('{2}').", GetAssemblyQualifiedName(type), GetAssemblyQualifiedName(value2), value.ExportedName); } protocol_map.Add(value.ExportedName, type); } } else { lock (type_map) { if (type_map.TryGetValue(value.ExportedName, out value2)) { throw ErrorHelper.CreateError(4118, "Cannot register two managed types ('{0}' and '{1}') with the same native name ('{2}').", GetAssemblyQualifiedName(type), GetAssemblyQualifiedName(value2), value.ExportedName); } type_map.Add(value.ExportedName, type); } } types.Add(type, value); bool flag4 = false; List list = new List(CollectMethods(type)); if (!flag2) { flag4 = !value.IsWrapper && !value.IsModel && (value.BaseType.IsWrapper || value.BaseType.IsModel); if (flag4) { if (!IsSubClassOf(value.Type, CoreAnimation, "CALayer")) { value.Add(new ObjCMethod(this, value, null) { Selector = "release", Trampoline = Trampoline.Release, Signature = "v@:", IsStatic = false }, ref exceptions); value.Add(new ObjCMethod(this, value, null) { Selector = "retain", Trampoline = Trampoline.Retain, Signature = "@@:", IsStatic = false }, ref exceptions); } value.Add(new ObjCMethod(this, value, null) { Selector = "xamarinGetGCHandle", Trampoline = Trampoline.GetGCHandle, Signature = "i@:", IsStatic = false }, ref exceptions); value.Add(new ObjCMethod(this, value, null) { Selector = "xamarinSetGCHandle:flags:", Trampoline = Trampoline.SetGCHandle, Signature = "v@:^vi", IsStatic = false }, ref exceptions); value.Add(new ObjCMethod(this, value, null) { Selector = "xamarinGetFlags", Trampoline = Trampoline.GetFlags, Signature = "i@:", IsStatic = false }, ref exceptions); value.Add(new ObjCMethod(this, value, null) { Selector = "xamarinSetFlags:", Trampoline = Trampoline.SetFlags, Signature = "v@:i", IsStatic = false }, ref exceptions); } if (conforms_to_protocol == null && Is(type, Foundation, "NSObject")) { foreach (MethodBase item in list) { string methodName = GetMethodName(item); if (!(methodName == "InvokeConformsToProtocol")) { if (methodName == "ConformsToProtocol") { conforms_to_protocol = item; } } else { invoke_conforms_to_protocol = item; } if (invoke_conforms_to_protocol != null && conforms_to_protocol != null) { break; } } } } List list2 = new List(CollectProperties(type)); bool flag5 = false; if (flag2 && !flag3) { foreach (ProtocolMemberAttribute protocolMemberAttribute in GetProtocolMemberAttributes(type)) { flag5 = true; if (protocolMemberAttribute.IsProperty) { if (protocolMemberAttribute.IsStatic) { ObjCMethod objCMethod = new ObjCMethod(this, value, null); objCMethod.Name = protocolMemberAttribute.Name; objCMethod.Selector = protocolMemberAttribute.GetterSelector; objCMethod.Parameters = new Type[0]; objCMethod.ReturnType = protocolMemberAttribute.PropertyType; objCMethod.IsStatic = protocolMemberAttribute.IsStatic; objCMethod.IsOptional = !protocolMemberAttribute.IsRequired; objCMethod.IsConstructor = false; ObjCMethod method = objCMethod; value.Add(method, ref exceptions); if (!string.IsNullOrEmpty(protocolMemberAttribute.SetterSelector)) { objCMethod = new ObjCMethod(this, value, null); objCMethod.Name = protocolMemberAttribute.Name; objCMethod.Selector = protocolMemberAttribute.SetterSelector; objCMethod.Parameters = new Type[1] { protocolMemberAttribute.PropertyType }; objCMethod.ReturnType = GetSystemVoidType(); objCMethod.IsStatic = protocolMemberAttribute.IsStatic; objCMethod.IsOptional = !protocolMemberAttribute.IsRequired; objCMethod.IsConstructor = false; ObjCMethod method2 = objCMethod; value.Add(method2, ref exceptions); } } else { ObjCProperty property = new ObjCProperty { Registrar = this, DeclaringType = value, Property = null, Name = protocolMemberAttribute.Name, Selector = protocolMemberAttribute.Selector, ArgumentSemantic = protocolMemberAttribute.ArgumentSemantic, IsReadOnly = string.IsNullOrEmpty(protocolMemberAttribute.SetterSelector), IsStatic = protocolMemberAttribute.IsStatic, IsOptional = !protocolMemberAttribute.IsRequired, GetterSelector = protocolMemberAttribute.GetterSelector, SetterSelector = protocolMemberAttribute.SetterSelector, PropertyType = protocolMemberAttribute.PropertyType }; value.Add(property, ref exceptions); } continue; } MethodBase method3 = null; ObjCMethod objCMethod2 = new ObjCMethod(this, value, method3) { Name = protocolMemberAttribute.Name, Selector = protocolMemberAttribute.Selector, ArgumentSemantic = protocolMemberAttribute.ArgumentSemantic, IsVariadic = protocolMemberAttribute.IsVariadic, ReturnType = (protocolMemberAttribute.ReturnType ?? GetSystemVoidType()), IsStatic = protocolMemberAttribute.IsStatic, IsOptional = !protocolMemberAttribute.IsRequired, IsConstructor = false }; if (protocolMemberAttribute.ParameterType != null) { Type[] array = new Type[protocolMemberAttribute.ParameterType.Length]; for (int j = 0; j < array.Length; j++) { if (protocolMemberAttribute.ParameterByRef[j]) { array[j] = MakeByRef(protocolMemberAttribute.ParameterType[j]); } else { array[j] = protocolMemberAttribute.ParameterType[j]; } } objCMethod2.Parameters = array; } else { objCMethod2.Parameters = new Type[0]; } value.Add(objCMethod2, ref exceptions); } } foreach (PropertyInfo item2 in list2) { if (flag5) { continue; } if (!flag2) { ConnectAttribute connectAttribute = GetConnectAttribute(item2); if (connectAttribute != null) { if (!IsINativeObject(GetPropertyType(item2))) { AddException(ref exceptions, CreateException(4139, item2, "The registrar cannot marshal the property type '{0}' of the property '{1}.{2}'. Properties with the [Connect] attribute must have a property type of NSObject (or a subclass of NSObject).", GetTypeFullName(GetPropertyType(item2)), GetTypeFullName(type), GetPropertyName(item2))); continue; } value.Add(new ObjCField { DeclaringType = value, Name = (connectAttribute.Name ?? GetPropertyName(item2)), Size = (Is64Bits ? 8 : 4), Alignment = (byte)(Is64Bits ? 3u : 2u), FieldType = "@", IsProperty = true, IsStatic = IsStatic(item2) }, ref exceptions); } } ExportAttribute exportAttribute = GetExportAttribute(item2); if (exportAttribute == null || (IsStatic(item2) && (value.IsWrapper || value.IsModel))) { continue; } if (IsStatic(item2) && flag) { AddException(ref exceptions, CreateException(4131, item2, "The registrar cannot export static properties in generic classes ('{0}.{1}').", GetTypeFullName(type), GetPropertyName(item2))); continue; } Type constrained_type = null; if (flag && !VerifyIsConstrainedToNSObject(GetPropertyType(item2), out constrained_type)) { AddException(ref exceptions, CreateException(4132, item2, "The registrar found an invalid generic return type '{0}' in the property '{1}.{2}'. The return type must have an 'NSObject' constraint.", GetTypeFullName(GetPropertyType(item2)), GetTypeFullName(type), GetPropertyName(item2))); continue; } if (constrained_type == null) { constrained_type = GetPropertyType(item2); } ObjCProperty property2 = new ObjCProperty { Registrar = this, DeclaringType = value, Property = item2, Name = item2.Name, Selector = (exportAttribute.Selector ?? GetPropertyName(item2)), ArgumentSemantic = exportAttribute.ArgumentSemantic, PropertyType = constrained_type }; MethodBase getMethod = GetGetMethod(item2); MethodBase setMethod = GetSetMethod(item2); if (getMethod != null && VerifyNonGenericMethod(ref exceptions, type, getMethod)) { ObjCMethod objCMethod3 = new ObjCMethod(this, value, getMethod) { Selector = (exportAttribute.Selector ?? GetPropertyName(item2)), ArgumentSemantic = exportAttribute.ArgumentSemantic, ReturnType = constrained_type }; List exceptions2 = null; if (!objCMethod3.ValidateSignature(ref exceptions2)) { exceptions.Add(CreateException(4138, exceptions2[0], item2, "The registrar cannot marshal the property type '{0}' of the property '{1}.{2}'.", GetTypeFullName(item2.PropertyType), item2.DeclaringType.FullName, item2.Name)); continue; } if (!value.Add(objCMethod3, ref exceptions)) { continue; } } if (setMethod != null && VerifyNonGenericMethod(ref exceptions, type, setMethod)) { string getterSelector = exportAttribute.Selector ?? GetPropertyName(item2); ObjCMethod objCMethod = new ObjCMethod(this, value, setMethod); objCMethod.Selector = CreateSetterSelector(getterSelector); objCMethod.ArgumentSemantic = exportAttribute.ArgumentSemantic; objCMethod.Parameters = new Type[1] { constrained_type }; ObjCMethod objCMethod4 = objCMethod; List exceptions3 = null; if (!objCMethod4.ValidateSignature(ref exceptions3)) { exceptions.Add(CreateException(4138, exceptions3[0], item2, "The registrar cannot marshal the property type '{0}' of the property '{1}.{2}'.", GetTypeFullName(item2.PropertyType), item2.DeclaringType.FullName, item2.Name)); continue; } if (!value.Add(objCMethod4, ref exceptions)) { continue; } } value.Add(property2, ref exceptions); } bool flag6 = !flag4; Dictionary> dictionary = null; if (!flag2) { dictionary = PrepareMethodMapping(type); } foreach (MethodBase item3 in list) { if (flag5) { continue; } ExportAttribute exportAttribute2 = GetExportAttribute(item3); if (exportAttribute2 == null && dictionary != null && dictionary.TryGetValue(item3, out var value3)) { if (value3.Count != 1) { foreach (RuntimeException item4 in Shared.GetMT4127(item3, value3)) { AddException(ref exceptions, item4); } continue; } exportAttribute2 = GetExportAttribute(value3[0]); } if (exportAttribute2 == null || (IsStatic(item3) && (value.IsWrapper || value.IsModel) && (!value.IsProtocol || value.IsFakeProtocol)) || (value.IsModel && IsVirtual(item3))) { continue; } if (!flag6 && item3.DeclaringType == type && GetBaseMethod(item3) == conforms_to_protocol) { flag6 = true; } if (!VerifyNonGenericMethod(ref exceptions, type, item3)) { continue; } ObjCMethod objCMethod5 = new ObjCMethod(this, value, item3); if (!objCMethod5.SetExportAttribute(exportAttribute2, ref exceptions)) { continue; } if (IsStatic(item3) && flag) { AddException(ref exceptions, CreateException(4130, item3, "The registrar cannot export static methods in generic classes ('{0}').", GetDescriptiveMethodName(type, item3))); } else if (!flag || VerifyIsConstrainedToNSObject(ref exceptions, type, objCMethod5)) { try { value.Add(objCMethod5, ref exceptions); } catch (Exception mex) { AddException(ref exceptions, mex); } } } if (!flag2 && !flag6) { value.Add(new ObjCMethod(this, value, invoke_conforms_to_protocol) { Selector = "conformsToProtocol:", Trampoline = Trampoline.Normal, Signature = "B@:^v", IsStatic = false }, ref exceptions); } foreach (MethodBase item5 in CollectConstructors(type)) { if (IsStatic(item5)) { continue; } Type[] parameters = GetParameters(item5); if (parameters == null || parameters.Length == 0) { value.Add(new ObjCMethod(this, value, item5) { Selector = "init", Trampoline = Trampoline.Constructor }, ref exceptions); continue; } ExportAttribute exportAttribute3 = GetExportAttribute(item5); if (exportAttribute3 != null && VerifyNonGenericMethod(ref exceptions, type, item5)) { ObjCMethod objCMethod6 = new ObjCMethod(this, value, item5) { Trampoline = Trampoline.Constructor }; if (objCMethod6.SetExportAttribute(exportAttribute3, ref exceptions)) { value.Add(objCMethod6, ref exceptions); } } } if (value.IsProtocol) { OnRegisterProtocol(value); } else { OnRegisterType(value); } return value; } public void RegisterAssembly(Assembly assembly) { if (assembly == null) { throw new ArgumentNullException("assembly"); } if (assemblies.ContainsKey(assembly) || SkipRegisterAssembly(assembly)) { return; } if (!ContainsPlatformReference(assembly)) { assemblies.Add(assembly, null); return; } List exceptions = new List(); try { IEnumerable enumerable = CollectTypes(assembly); lock (types) { foreach (Type item in enumerable) { RegisterTypeUnsafe(item, ref exceptions); } } assemblies.Add(assembly, null); } catch (Exception ex) { ReportError(4116, "Could not register the assembly '{0}': {1}", GetAssemblyName(assembly), ex); } if (exceptions.Count <= 0) { return; } Exception obj = ((exceptions.Count == 1) ? exceptions[0] : new AggregateException(exceptions)); LogHelper.NSLog(obj.ToString()); throw obj; } public string ComputeSignature(Type DeclaringType, MethodBase Method, ObjCMember member = null, bool isCategoryInstance = false, bool isBlockSignature = false) { ObjCMethod objCMethod = member as ObjCMethod; Type return_type = null; bool flag = ((!(Method != null)) ? objCMethod.IsConstructor : IsConstructor(Method)); if (!flag) { return_type = ((Method != null) ? GetReturnType(Method) : objCMethod.NativeReturnType); } Type[] parameters = ((!(Method != null)) ? objCMethod.NativeParameters : GetParameters(Method)); return ComputeSignature(DeclaringType, flag, return_type, parameters, Method, member, isCategoryInstance, isBlockSignature); } public string ComputeSignature(Type declaring_type, bool is_ctor, Type return_type, Type[] parameters, MethodBase mi = null, ObjCMember member = null, bool isCategoryInstance = false, bool isBlockSignature = false) { bool success = true; StringBuilder stringBuilder = new StringBuilder(); if (mi == null) { mi = (member as ObjCMethod)?.Method; } if (is_ctor) { stringBuilder.Append('@'); } else { stringBuilder.Append(ToSignature(return_type, member, ref success)); if (!success) { throw CreateException(4104, mi, "The registrar cannot marshal the return value of type `{0}` in the method `{1}.{2}`.", GetTypeFullName(return_type), GetTypeFullName(declaring_type), GetDescriptiveMethodName(mi)); } } stringBuilder.Append(isBlockSignature ? "@?" : "@:"); if (parameters != null) { for (int i = 0; i < parameters.Length; i++) { if (i == 0 && isCategoryInstance) { continue; } Type type = parameters[i]; if (IsByRef(type)) { stringBuilder.Append("^"); Type elementType = GetElementType(type); if (IsNullable(elementType)) { stringBuilder.Append(ToSignature(GetNullableType(elementType), member, ref success)); } else { stringBuilder.Append(ToSignature(elementType, member, ref success)); } } else { stringBuilder.Append(ToSignature(type, member, ref success)); } if (!success) { if (mi != null) { parameters = GetParameters(mi); } throw CreateException(4136, mi, "The registrar cannot marshal the parameter type '{0}' of the parameter '{1}' in the method '{2}.{3}'", GetTypeFullName(parameters[i]), GetParameterName(mi, i), GetTypeFullName(declaring_type), GetDescriptiveMethodName(mi)); } } } return stringBuilder.ToString(); } protected string ToSignature(Type type, ObjCMember member, bool forProperty = false) { bool success = true; string result = ToSignature(type, member, ref success, forProperty); if (success) { return result; } if (member is ObjCMethod objCMethod) { throw ErrorHelper.CreateError(4111, "The registrar cannot build a signature for type `{0}' in method `{1}`.", GetTypeFullName(type), GetTypeFullName(objCMethod.DeclaringType.Type) + "." + objCMethod.MethodName); } throw ErrorHelper.CreateError(4101, "The registrar cannot build a signature for type `{0}`.", GetTypeFullName(type)); } public string GetExportedTypeName(Type type, RegisterAttribute register_attribute) { string text = null; if (register_attribute != null) { if (register_attribute.SkipRegistration) { return GetExportedTypeName(GetBaseType(type)); } text = register_attribute.Name; } if (text == null) { text = GetTypeFullName(type); } return SanitizeObjectiveCName(text); } protected string GetExportedTypeName(Type type) { return GetExportedTypeName(type, GetRegisterAttribute(type)); } protected string ToSignature(Type type, ObjCMember member, ref bool success, bool forProperty = false) { string typeFullName = GetTypeFullName(type); switch (typeFullName) { case "System.UIntPtr": case "System.IntPtr": return "^v"; case "System.SByte": return "c"; case "System.Byte": return "C"; case "System.Char": return "s"; case "System.Int16": return "s"; case "System.UInt16": return "S"; case "System.Int32": return "i"; case "System.UInt32": return "I"; case "System.Int64": return "q"; case "System.UInt64": return "Q"; case "System.Single": return "f"; case "System.Double": return "d"; case "System.Boolean": if (!Is64Bits) { return "c"; } return "B"; case "System.Void": return "v"; case "System.String": if (!forProperty) { return "@"; } return "@\"NSString\""; case "System.nint": if (!Is64Bits) { return "i"; } return "q"; case "System.nuint": if (!Is64Bits) { return "I"; } return "Q"; case "System.DateTime": throw CreateException(4102, member, "The registrar found an invalid type `{0}` in signature for method `{2}`. Use `{1}` instead.", "System.DateTime", "Foundation.NSDate", member.FullName); default: { if (typeFullName == "System.Runtime.InteropServices.NFloat") { if (!Is64Bits) { return "f"; } return "d"; } if (Is(type, ObjCRuntime, "Selector")) { return ":"; } if (Is(type, ObjCRuntime, "Class")) { return "#"; } if (IsINativeObject(type)) { if (!IsGenericType(type) && !IsInterface(type) && !IsNSObject(type) && IsAbstract(type)) { ErrorHelper.Show(CreateWarning(4179, member, "The registrar found the abstract type '{0}' in the signature for '{1}'. Abstract types should not be used in the signature for a member exported to Objective-C.", type.FullName, member.FullName)); } if (IsNSObject(type) && forProperty) { return "@\"" + GetExportedTypeName(type) + "\""; } return "@"; } if (IsDelegate(type)) { return "^v"; } if (IsEnum(type, out var isNativeEnum)) { if (isNativeEnum && !Is64Bits) { string fullName = GetEnumUnderlyingType(type).FullName; if (!(fullName == "System.Int64")) { if (fullName == "System.UInt64") { return "I"; } throw CreateException(4145, "Invalid enum '{0}': enums with the [Native] attribute must have a underlying enum type of either 'long' or 'ulong'.", GetTypeFullName(type)); } return "i"; } return ToSignature(GetEnumUnderlyingType(type), member, ref success); } if (IsValueType(type)) { return ValueTypeSignature(type, member, ref success); } if (IsArray(type)) { ToSignature(GetElementType(type), member, ref success); return "@"; } success = false; return string.Empty; } } } private string ValueTypeSignature(Type type, ObjCMember member) { bool success = true; return ValueTypeSignature(type, member, ref success); } private string ValueTypeSignature(Type type, ObjCMember member, ref bool success) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("{"); stringBuilder.AppendFormat("{0}=", GetTypeName(type)); foreach (FieldInfo field in GetFields(type)) { if (!IsStatic(field)) { stringBuilder.Append(ToSignature(GetFieldType(field), member, ref success)); } } stringBuilder.Append("}"); return stringBuilder.ToString(); } protected void LockRegistrar(ref bool lockTaken) { Monitor.Enter(types, ref lockTaken); } protected void UnlockRegistrar() { Monitor.Exit(types); } protected virtual void ReportError(int code, string message, params object[] args) { LogHelper.NSLog(string.Format(message, args)); } protected virtual void ReportWarning(int code, string message, params object[] args) { LogHelper.NSLog(ErrorHelper.CreateWarning(code, message, args).ToString()); } [Conditional("VERBOSE_REGISTRAR")] public static void FlushTrace() { if (trace != null) { trace.Insert(0, '\n'); LogHelper.NSLog(trace.ToString()); trace.Clear(); } } [Conditional("VERBOSE_REGISTRAR")] public static void Trace(string msg, params object[] args) { if (trace == null) { trace = new StringBuilder(); } trace.AppendFormat(msg, args); trace.AppendLine(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Registrar/Shared.cs ================================================ using System.Reflection; using Xamarin.Utiles; namespace Registrar; internal static class Shared { public static List GetMT4127(MethodBase impl, List ifaceMethods) { List list = new List(); list.Add(ErrorHelper.CreateError(4127, "Cannot register more than one interface method for the method '{0}.{1}'.", impl.DeclaringType.FullName, impl.Name)); for (int i = 0; i < ifaceMethods.Count; i++) { MethodBase methodBase = ifaceMethods[i]; list.Add(ErrorHelper.CreateError(4137, "The method '{0}.{1}' is implementing '{2}.{3}'.", impl.DeclaringType.FullName, impl.Name, methodBase.DeclaringType.FullName, methodBase.Name)); } return list; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Registrar/SharedDynamic.cs ================================================ using Foundation; using System.Reflection; using Xamarin.Utiles; namespace Registrar; internal static class SharedDynamic { public static Dictionary> PrepareInterfaceMethodMapping(Type type) { Dictionary> dictionary = null; Type[] array = type.FindInterfaces(delegate (Type v, object o) { object[] customAttributes = v.GetCustomAttributes(typeof(ProtocolAttribute), inherit: true); return customAttributes != null && customAttributes.Length != 0; }, null); Type[] array2 = array; foreach (Type interfaceType in array2) { InterfaceMapping interfaceMap = type.GetInterfaceMap(interfaceType); for (int j = 0; j < interfaceMap.InterfaceMethods.Length; j++) { MethodInfo methodInfo = interfaceMap.InterfaceMethods[j]; MethodInfo key = interfaceMap.TargetMethods[j]; if (GetOneAttribute(methodInfo) != null) { List value; if (dictionary == null) { dictionary = new Dictionary>(); value = (dictionary[key] = new List()); } else if (!dictionary.TryGetValue(key, out value)) { value = (dictionary[key] = new List()); } value.Add(methodInfo); } } } return dictionary; } public static T GetOneAttribute(ICustomAttributeProvider provider) where T : Attribute { object[] customAttributes = provider.GetCustomAttributes(typeof(T), inherit: false); if (customAttributes.Length == 0) { return null; } if (customAttributes.Length == 1) { return (T)customAttributes[0]; } MemberInfo memberInfo = provider as MemberInfo; if (memberInfo != null) { throw new AmbiguousMatchException($"The member '{memberInfo.Name}' contains more than one '{typeof(T).FullName}'"); } if (provider is ParameterInfo parameterInfo) { throw new AmbiguousMatchException($"The parameter '{parameterInfo.Name}' contains more than one '{typeof(T).FullName}'"); } throw new AmbiguousMatchException($"The member '{provider}' contains more than one '{typeof(T).FullName}'"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Registrar/Trampoline.cs ================================================ namespace Registrar; internal enum Trampoline { None, Normal, Stret, Single, Double, Release, Retain, Static, StaticStret, StaticSingle, StaticDouble, Constructor, Long, StaticLong, X86_DoubleABI_StaticStretTrampoline, X86_DoubleABI_StretTrampoline, CopyWithZone1, CopyWithZone2, GetGCHandle, SetGCHandle, GetFlags, SetFlags } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/AESendMode.cs ================================================ using System; namespace ScriptingBridge; [Flags] public enum AESendMode { NoReply = 1, QueueReply = 2, WaitReply = 3, DontReconnect = 0x80, WantReceipt = 0x200, NeverInteract = 0x10, CanInteract = 0x20, AlwaysInteract = 0x30, CanSwitchLayer = 0x40, DontRecord = 0x1000, DontExecute = 0x2000, ProcessNonReplyEvents = 0x8000 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/LSLaunchFlags.cs ================================================ using System; namespace ScriptingBridge; [Flags] public enum LSLaunchFlags : uint { LaunchDefaults = 1u, LaunchAndPrint = 2u, LaunchReserved2 = 4u, LaunchReserved3 = 8u, LaunchReserved4 = 0x10u, LaunchReserved5 = 0x20u, LaunchAndDisplayErrors = 0x40u, LaunchInhibitBGOnly = 0x80u, LaunchDontAddToRecents = 0x100u, LaunchDontSwitch = 0x200u, LaunchNoParams = 0x800u, LaunchAsync = 0x10000u, LaunchStartClassic = 0x20000u, LaunchInClassic = 0x40000u, LaunchNewInstance = 0x80000u, LaunchAndHide = 0x100000u, LaunchAndHideOthers = 0x200000u, LaunchHasUntrustedContents = 0x400000u } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/SBApplication.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ScriptingBridge; [Register("SBApplication", true)] public class SBApplication : SBObject { [Register] private sealed class _SBApplicationDelegate : SBApplicationDelegate { internal SBApplicationError eventDidFailwithError; [Preserve(Conditional = true)] public override NSObject EventDidFailwithError(IntPtr appleEvent, NSError error) { return eventDidFailwithError?.Invoke(appleEvent, error); } } private static readonly IntPtr selIsRunningHandle = Selector.GetHandle("isRunning"); private static readonly IntPtr selDelegateHandle = Selector.GetHandle("delegate"); private static readonly IntPtr selSetDelegate_Handle = Selector.GetHandle("setDelegate:"); private static readonly IntPtr selLaunchFlagsHandle = Selector.GetHandle("launchFlags"); private static readonly IntPtr selSetLaunchFlags_Handle = Selector.GetHandle("setLaunchFlags:"); private static readonly IntPtr selSendModeHandle = Selector.GetHandle("sendMode"); private static readonly IntPtr selSetSendMode_Handle = Selector.GetHandle("setSendMode:"); private static readonly IntPtr selTimeoutHandle = Selector.GetHandle("timeout"); private static readonly IntPtr selSetTimeout_Handle = Selector.GetHandle("setTimeout:"); private static readonly IntPtr selInitWithURL_Handle = Selector.GetHandle("initWithURL:"); private static readonly IntPtr selInitWithProcessIdentifier_Handle = Selector.GetHandle("initWithProcessIdentifier:"); private static readonly IntPtr selInitWithBundleIdentifier_Handle = Selector.GetHandle("initWithBundleIdentifier:"); private static readonly IntPtr selApplicationWithBundleIdentifier_Handle = Selector.GetHandle("applicationWithBundleIdentifier:"); private static readonly IntPtr selApplicationWithURL_Handle = Selector.GetHandle("applicationWithURL:"); private static readonly IntPtr selApplicationWithProcessIdentifier_Handle = Selector.GetHandle("applicationWithProcessIdentifier:"); private static readonly IntPtr selClassForScriptingClass_Handle = Selector.GetHandle("classForScriptingClass:"); private static readonly IntPtr selActivateHandle = Selector.GetHandle("activate"); private static readonly IntPtr class_ptr = Class.GetHandle("SBApplication"); private object __mt_WeakDelegate_var; public override IntPtr ClassHandle => class_ptr; public virtual bool IsRunning { [Export("isRunning")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsRunningHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsRunningHandle); } } public virtual NSObject WeakDelegate { [Export("delegate", ArgumentSemantic.Assign)] get { return (NSObject)(__mt_WeakDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDelegateHandle)))); } [Export("setDelegate:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDelegate_var = value; } } public SBApplicationDelegate Delegate { get { return WeakDelegate as SBApplicationDelegate; } set { WeakDelegate = value; } } public virtual LSLaunchFlags LaunchFlags { [Export("launchFlags")] get { if (IsDirectBinding) { return (LSLaunchFlags)Messaging.UInt32_objc_msgSend(base.Handle, selLaunchFlagsHandle); } return (LSLaunchFlags)Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selLaunchFlagsHandle); } [Export("setLaunchFlags:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selSetLaunchFlags_Handle, (uint)value); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selSetLaunchFlags_Handle, (uint)value); } } } public virtual AESendMode SendMode { [Export("sendMode")] get { if (IsDirectBinding) { return (AESendMode)Messaging.int_objc_msgSend(base.Handle, selSendModeHandle); } return (AESendMode)Messaging.int_objc_msgSendSuper(base.SuperHandle, selSendModeHandle); } [Export("setSendMode:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetSendMode_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetSendMode_Handle, (int)value); } } } public virtual int Timeout { [Export("timeout")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTimeoutHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTimeoutHandle); } [Export("setTimeout:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTimeout_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTimeout_Handle, value); } } } public SBApplicationError EventDidFailwithError { get { return EnsureSBApplicationDelegate().eventDidFailwithError; } set { EnsureSBApplicationDelegate().eventDidFailwithError = value; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public SBApplication(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBApplication(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBApplication(IntPtr handle) : base(handle) { } [Export("initWithURL:")] public SBApplication(NSUrl url) : base(NSObjectFlag.Empty) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithURL_Handle, url.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithURL_Handle, url.Handle); } } [Export("initWithProcessIdentifier:")] public SBApplication(int pid) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_int(base.Handle, selInitWithProcessIdentifier_Handle, pid); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selInitWithProcessIdentifier_Handle, pid); } } [Export("initWithBundleIdentifier:")] public SBApplication(string ident) : base(NSObjectFlag.Empty) { if (ident == null) { throw new ArgumentNullException("ident"); } IntPtr arg = NSString.CreateNative(ident); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithBundleIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithBundleIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } [Export("applicationWithBundleIdentifier:")] public static SBApplication FromBundleIdentifier(string ident) { if (ident == null) { throw new ArgumentNullException("ident"); } IntPtr arg = NSString.CreateNative(ident); SBApplication result = (SBApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selApplicationWithBundleIdentifier_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("applicationWithURL:")] public static SBApplication FromURL(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return (SBApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selApplicationWithURL_Handle, url.Handle)); } [Export("applicationWithProcessIdentifier:")] public static SBApplication FromProcessIdentifier(int pid) { return (SBApplication)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(class_ptr, selApplicationWithProcessIdentifier_Handle, pid)); } [Export("classForScriptingClass:")] public virtual Class ClassForScripting(string className) { if (className == null) { throw new ArgumentNullException("className"); } IntPtr arg = NSString.CreateNative(className); Class result = ((!IsDirectBinding) ? new Class(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selClassForScriptingClass_Handle, arg)) : new Class(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selClassForScriptingClass_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("activate")] public virtual void Activate() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selActivateHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selActivateHandle); } } private _SBApplicationDelegate EnsureSBApplicationDelegate() { NSObject nSObject = WeakDelegate; if (nSObject == null || !(nSObject is _SBApplicationDelegate)) { nSObject = (WeakDelegate = new _SBApplicationDelegate()); } return (_SBApplicationDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WeakDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/SBApplicationDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ScriptingBridge; [Register("SBApplicationDelegate", true)] [Model] public abstract class SBApplicationDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public SBApplicationDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public SBApplicationDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBApplicationDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBApplicationDelegate(IntPtr handle) : base(handle) { } [Export("eventDidFail:withError:")] public abstract NSObject EventDidFailwithError(IntPtr appleEvent, NSError error); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/SBApplicationError.cs ================================================ using System; using Foundation; namespace ScriptingBridge; public delegate NSObject SBApplicationError(IntPtr appleEvent, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/ScriptingBridge/SBObject.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace ScriptingBridge; [Register("SBObject", true)] public class SBObject : NSObject { private static readonly IntPtr selGetHandle = Selector.GetHandle("get"); private static readonly IntPtr selLastErrorHandle = Selector.GetHandle("lastError"); private static readonly IntPtr selInitWithProperties_Handle = Selector.GetHandle("initWithProperties:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr class_ptr = Class.GetHandle("SBObject"); private object __mt_Get_var; private object __mt_LastError_var; public override IntPtr ClassHandle => class_ptr; public virtual NSObject Get { [Export("get")] get { return (NSObject)(__mt_Get_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selGetHandle)))); } } public virtual NSError LastError { [Export("lastError")] get { return (NSError)(__mt_LastError_var = ((!IsDirectBinding) ? ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastErrorHandle))) : ((NSError)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastErrorHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public SBObject() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public SBObject(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBObject(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public SBObject(IntPtr handle) : base(handle) { } [Export("initWithProperties:")] public SBObject(NSDictionary properties) : base(NSObjectFlag.Empty) { if (properties == null) { throw new ArgumentNullException("properties"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithProperties_Handle, properties.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithProperties_Handle, properties.Handle); } } [Export("initWithData:")] public SBObject(NSObject data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Get_var = null; __mt_LastError_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/Authorization.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace Security; public class Authorization : INativeObject, IDisposable { private IntPtr handle; public IntPtr Handle => handle; [DllImport("/System/Library/Frameworks/Security.framework/Security")] private unsafe static extern int AuthorizationCreate(AuthorizationItemSet* rights, AuthorizationItemSet* environment, AuthorizationFlags flags, out IntPtr auth); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern int AuthorizationExecuteWithPrivileges(IntPtr handle, string pathToTool, AuthorizationFlags flags, string[] args, IntPtr FILEPtr); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern int AuthorizationFree(IntPtr handle, AuthorizationFlags flags); internal Authorization(IntPtr handle) { this.handle = handle; } public int ExecuteWithPrivileges(string pathToTool, AuthorizationFlags flags, string[] args) { return AuthorizationExecuteWithPrivileges(handle, pathToTool, flags, args, IntPtr.Zero); } public void Dispose() { GC.SuppressFinalize(this); Dispose(AuthorizationFlags.Defaults, disposing: true); } ~Authorization() { Dispose(AuthorizationFlags.Defaults, disposing: false); } public virtual void Dispose(AuthorizationFlags flags, bool disposing) { if (handle != IntPtr.Zero) { AuthorizationFree(handle, flags); handle = IntPtr.Zero; } } public static Authorization Create(AuthorizationFlags flags) { return Create(null, null, flags); } private static void EncodeString(ref AuthorizationItem item, string key, string value) { item.name = Messaging.NativeUtf8FromString(key); if (value != null) { item.value = Messaging.NativeUtf8FromString(value); item.valueLen = (IntPtr)value.Length; } } public unsafe static Authorization Create(AuthorizationParameters parameters, AuthorizationEnvironment environment, AuthorizationFlags flags) { AuthorizationItemSet authorizationItemSet = default(AuthorizationItemSet); AuthorizationItemSet* ptr = null; AuthorizationItem* ptr2 = null; AuthorizationItemSet authorizationItemSet2 = default(AuthorizationItemSet); AuthorizationItemSet* ptr3 = null; AuthorizationItem* ptr4 = null; try { if (parameters != null) { ptr = &authorizationItemSet; authorizationItemSet.ptrToAuthorization = (AuthorizationItem*)(void*)Marshal.AllocHGlobal(sizeof(AuthorizationItem) * 3); if (parameters.PathToSystemPrivilegeTool != null) { EncodeString(ref authorizationItemSet.ptrToAuthorization[authorizationItemSet.count++], "system.privilege.admin", parameters.PathToSystemPrivilegeTool); } if (parameters.Prompt != null) { EncodeString(ref authorizationItemSet.ptrToAuthorization[authorizationItemSet.count++], "prompt", parameters.Prompt); } if (parameters.IconPath != null) { EncodeString(ref authorizationItemSet.ptrToAuthorization[authorizationItemSet.count++], "prompt", parameters.IconPath); } } if (environment != null) { ptr3 = &authorizationItemSet2; authorizationItemSet2.ptrToAuthorization = (AuthorizationItem*)(void*)Marshal.AllocHGlobal(sizeof(AuthorizationItem) * 3); if (environment.Username != null) { EncodeString(ref authorizationItemSet2.ptrToAuthorization[authorizationItemSet2.count++], "username", environment.Username); } if (environment.Password != null) { EncodeString(ref authorizationItemSet2.ptrToAuthorization[authorizationItemSet2.count++], "password", environment.Password); } if (environment.AddToSharedCredentialPool) { EncodeString(ref authorizationItemSet2.ptrToAuthorization[authorizationItemSet2.count++], "shared", null); } } if (AuthorizationCreate(ptr, ptr3, flags, out var auth) != 0) { return null; } return new Authorization(auth); } finally { if (ptr != null) { for (int i = 0; i < authorizationItemSet.count; i++) { Marshal.FreeHGlobal(authorizationItemSet.ptrToAuthorization[i].name); Marshal.FreeHGlobal(authorizationItemSet.ptrToAuthorization[i].value); } Marshal.FreeHGlobal((IntPtr)authorizationItemSet.ptrToAuthorization); } if (ptr3 != null) { for (int j = 0; j < authorizationItemSet2.count; j++) { Marshal.FreeHGlobal(authorizationItemSet2.ptrToAuthorization[j].name); if (authorizationItemSet2.ptrToAuthorization[j].value != IntPtr.Zero) { Marshal.FreeHGlobal(authorizationItemSet2.ptrToAuthorization[j].value); } } Marshal.FreeHGlobal((IntPtr)authorizationItemSet2.ptrToAuthorization); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationEnvironment.cs ================================================ namespace Security; public class AuthorizationEnvironment { public string Username; public string Password; public bool AddToSharedCredentialPool; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationFlags.cs ================================================ using System; namespace Security; [Flags] public enum AuthorizationFlags { Defaults = 0, InteractionAllowed = 1, ExtendRights = 2, PartialRights = 4, DestroyRights = 8, PreAuthorize = 0x10 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationItem.cs ================================================ using System; namespace Security; internal struct AuthorizationItem { public IntPtr name; public IntPtr valueLen; public IntPtr value; public int flags; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationItemSet.cs ================================================ namespace Security; internal struct AuthorizationItemSet { public int count; public unsafe AuthorizationItem* ptrToAuthorization; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationParameters.cs ================================================ namespace Security; public class AuthorizationParameters { public string PathToSystemPrivilegeTool; public string Prompt; public string IconPath; } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/AuthorizationStatus.cs ================================================ namespace Security; public enum AuthorizationStatus { Success = 0, InvalidSet = -60001, InvalidRef = -60002, InvalidTag = -60003, InvalidPointer = -60004, Denied = -60005, Canceled = -60006, InteractionNotAllowed = -60007, Internal = -60008, ExternalizeNotAllowed = -60009, InternalizeNotAllowed = -60010, InvalidFlags = -60011, ToolExecuteFailure = -60031, ToolEnvironmentError = -60032, BadAddress = -60033 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/ClassKeys.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class ClassKeys { private static IntPtr _Public; private static IntPtr _Private; private static IntPtr _Symmetric; public static IntPtr Public { get { if (_Public == IntPtr.Zero) { _Public = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyClassPublic"); } return _Public; } } public static IntPtr Private { get { if (_Private == IntPtr.Zero) { _Private = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyClassPrivate"); } return _Private; } } public static IntPtr Symmetric { get { if (_Symmetric == IntPtr.Zero) { _Symmetric = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyClassSymmetric"); } return _Symmetric; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/KeyTypeKeys.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class KeyTypeKeys { private static IntPtr _RSA; private static IntPtr _EC; public static IntPtr RSA { get { if (_RSA == IntPtr.Zero) { _RSA = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyTypeRSA"); } return _RSA; } } public static IntPtr EC { get { if (_EC == IntPtr.Zero) { _EC = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyTypeEC"); } return _EC; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/KeysAccessible.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class KeysAccessible { private static IntPtr _WhenUnlocked; private static IntPtr _AfterFirstUnlock; private static IntPtr _Always; private static IntPtr _WhenUnlockedThisDeviceOnly; private static IntPtr _AfterFirstUnlockThisDeviceOnly; private static IntPtr _AlwaysThisDeviceOnly; public static IntPtr WhenUnlocked { get { if (_WhenUnlocked == IntPtr.Zero) { _WhenUnlocked = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleWhenUnlocked"); } return _WhenUnlocked; } } public static IntPtr AfterFirstUnlock { get { if (_AfterFirstUnlock == IntPtr.Zero) { _AfterFirstUnlock = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleAfterFirstUnlock"); } return _AfterFirstUnlock; } } public static IntPtr Always { get { if (_Always == IntPtr.Zero) { _Always = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleAlways"); } return _Always; } } public static IntPtr WhenUnlockedThisDeviceOnly { get { if (_WhenUnlockedThisDeviceOnly == IntPtr.Zero) { _WhenUnlockedThisDeviceOnly = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleWhenUnlockedThisDeviceOnly"); } return _WhenUnlockedThisDeviceOnly; } } public static IntPtr AfterFirstUnlockThisDeviceOnly { get { if (_AfterFirstUnlockThisDeviceOnly == IntPtr.Zero) { _AfterFirstUnlockThisDeviceOnly = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly"); } return _AfterFirstUnlockThisDeviceOnly; } } public static IntPtr AlwaysThisDeviceOnly { get { if (_AlwaysThisDeviceOnly == IntPtr.Zero) { _AlwaysThisDeviceOnly = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessibleAlwaysThisDeviceOnly"); } return _AlwaysThisDeviceOnly; } } public static IntPtr FromSecAccessible(SecAccessible accessible) { return accessible switch { SecAccessible.WhenUnlocked => WhenUnlocked, SecAccessible.AfterFirstUnlock => AfterFirstUnlock, SecAccessible.Always => Always, SecAccessible.WhenUnlockedThisDeviceOnly => WhenUnlockedThisDeviceOnly, SecAccessible.AfterFirstUnlockThisDeviceOnly => AfterFirstUnlockThisDeviceOnly, SecAccessible.AlwaysThisDeviceOnly => AlwaysThisDeviceOnly, _ => throw new ArgumentException("accessible"), }; } public static SecAccessible ToSecAccessible(IntPtr handle) { if (handle == WhenUnlocked) { return SecAccessible.WhenUnlocked; } if (handle == AfterFirstUnlock) { return SecAccessible.AfterFirstUnlock; } if (handle == Always) { return SecAccessible.Always; } if (handle == WhenUnlockedThisDeviceOnly) { return SecAccessible.WhenUnlockedThisDeviceOnly; } if (handle == AfterFirstUnlockThisDeviceOnly) { return SecAccessible.AfterFirstUnlockThisDeviceOnly; } if (handle == AlwaysThisDeviceOnly) { return SecAccessible.AlwaysThisDeviceOnly; } throw new ArgumentException("obj"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/KeysAuthenticationType.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class KeysAuthenticationType { private static IntPtr _NTLM; private static IntPtr _MSN; private static IntPtr _DPA; private static IntPtr _RPA; private static IntPtr _HTTPBasic; private static IntPtr _HTTPDigest; private static IntPtr _HTMLForm; private static IntPtr _Default; public static IntPtr NTLM { get { if (_NTLM == IntPtr.Zero) { _NTLM = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeNTLM"); } return _NTLM; } } public static IntPtr MSN { get { if (_MSN == IntPtr.Zero) { _MSN = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeMSN"); } return _MSN; } } public static IntPtr DPA { get { if (_DPA == IntPtr.Zero) { _DPA = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeDPA"); } return _DPA; } } public static IntPtr RPA { get { if (_RPA == IntPtr.Zero) { _RPA = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeRPA"); } return _RPA; } } public static IntPtr HTTPBasic { get { if (_HTTPBasic == IntPtr.Zero) { _HTTPBasic = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeHTTPBasic"); } return _HTTPBasic; } } public static IntPtr HTTPDigest { get { if (_HTTPDigest == IntPtr.Zero) { _HTTPDigest = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeHTTPDigest"); } return _HTTPDigest; } } public static IntPtr HTMLForm { get { if (_HTMLForm == IntPtr.Zero) { _HTMLForm = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeHTMLForm"); } return _HTMLForm; } } public static IntPtr Default { get { if (_Default == IntPtr.Zero) { _Default = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationTypeDefault"); } return _Default; } } public static SecAuthenticationType ToSecAuthenticationType(IntPtr handle) { if (handle == NTLM) { return SecAuthenticationType.Ntlm; } if (handle == MSN) { return SecAuthenticationType.Msn; } if (handle == DPA) { return SecAuthenticationType.Dpa; } if (handle == RPA) { return SecAuthenticationType.Rpa; } if (handle == HTTPBasic) { return SecAuthenticationType.HttpBasic; } if (handle == HTTPDigest) { return SecAuthenticationType.HttpDigest; } if (handle == HTMLForm) { return SecAuthenticationType.HtmlForm; } if (handle == Default) { return SecAuthenticationType.Default; } throw new ArgumentException("handle"); } public static IntPtr FromSecAuthenticationType(SecAuthenticationType type) { return type switch { SecAuthenticationType.Ntlm => NTLM, SecAuthenticationType.Msn => MSN, SecAuthenticationType.Dpa => DPA, SecAuthenticationType.Rpa => RPA, SecAuthenticationType.HttpBasic => HTTPBasic, SecAuthenticationType.HttpDigest => HTTPDigest, SecAuthenticationType.HtmlForm => HTMLForm, SecAuthenticationType.Default => Default, _ => throw new ArgumentException("type"), }; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecAccessible.cs ================================================ namespace Security; public enum SecAccessible { WhenUnlocked, AfterFirstUnlock, Always, WhenUnlockedThisDeviceOnly, AfterFirstUnlockThisDeviceOnly, AlwaysThisDeviceOnly } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecAttributeKey.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class SecAttributeKey { private static IntPtr _AttrAccessible; private static IntPtr _AttrAccessGroup; private static IntPtr _AttrCreationDate; private static IntPtr _AttrModificationDate; private static IntPtr _AttrDescription; private static IntPtr _AttrComment; private static IntPtr _AttrCreator; private static IntPtr _AttrType; private static IntPtr _AttrLabel; private static IntPtr _AttrIsInvisible; private static IntPtr _AttrIsNegative; private static IntPtr _AttrAccount; private static IntPtr _AttrService; private static IntPtr _AttrGeneric; private static IntPtr _AttrSecurityDomain; private static IntPtr _AttrServer; private static IntPtr _AttrProtocol; private static IntPtr _AttrAuthenticationType; private static IntPtr _AttrPort; private static IntPtr _AttrPath; private static IntPtr _AttrSubject; private static IntPtr _AttrIssuer; private static IntPtr _AttrSerialNumber; private static IntPtr _AttrSubjectKeyID; private static IntPtr _AttrPublicKeyHash; private static IntPtr _AttrCertificateType; private static IntPtr _AttrCertificateEncoding; private static IntPtr _AttrKeyClass; private static IntPtr _AttrApplicationLabel; private static IntPtr _AttrIsPermanent; private static IntPtr _AttrApplicationTag; private static IntPtr _AttrKeyType; private static IntPtr _AttrKeySizeInBits; private static IntPtr _AttrEffectiveKeySize; private static IntPtr _AttrCanEncrypt; private static IntPtr _AttrCanDecrypt; private static IntPtr _AttrCanDerive; private static IntPtr _AttrCanSign; private static IntPtr _AttrCanVerify; private static IntPtr _AttrCanWrap; private static IntPtr _AttrCanUnwrap; public static IntPtr AttrAccessible { get { if (_AttrAccessible == IntPtr.Zero) { _AttrAccessible = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessible"); } return _AttrAccessible; } } public static IntPtr AttrAccessGroup { get { if (_AttrAccessGroup == IntPtr.Zero) { _AttrAccessGroup = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccessGroup"); } return _AttrAccessGroup; } } public static IntPtr AttrCreationDate { get { if (_AttrCreationDate == IntPtr.Zero) { _AttrCreationDate = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCreationDate"); } return _AttrCreationDate; } } public static IntPtr AttrModificationDate { get { if (_AttrModificationDate == IntPtr.Zero) { _AttrModificationDate = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrModificationDate"); } return _AttrModificationDate; } } public static IntPtr AttrDescription { get { if (_AttrDescription == IntPtr.Zero) { _AttrDescription = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrDescription"); } return _AttrDescription; } } public static IntPtr AttrComment { get { if (_AttrComment == IntPtr.Zero) { _AttrComment = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrComment"); } return _AttrComment; } } public static IntPtr AttrCreator { get { if (_AttrCreator == IntPtr.Zero) { _AttrCreator = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCreator"); } return _AttrCreator; } } public static IntPtr AttrType { get { if (_AttrType == IntPtr.Zero) { _AttrType = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrType"); } return _AttrType; } } public static IntPtr AttrLabel { get { if (_AttrLabel == IntPtr.Zero) { _AttrLabel = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrLabel"); } return _AttrLabel; } } public static IntPtr AttrIsInvisible { get { if (_AttrIsInvisible == IntPtr.Zero) { _AttrIsInvisible = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrIsInvisible"); } return _AttrIsInvisible; } } public static IntPtr AttrIsNegative { get { if (_AttrIsNegative == IntPtr.Zero) { _AttrIsNegative = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrIsNegative"); } return _AttrIsNegative; } } public static IntPtr AttrAccount { get { if (_AttrAccount == IntPtr.Zero) { _AttrAccount = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAccount"); } return _AttrAccount; } } public static IntPtr AttrService { get { if (_AttrService == IntPtr.Zero) { _AttrService = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrService"); } return _AttrService; } } public static IntPtr AttrGeneric { get { if (_AttrGeneric == IntPtr.Zero) { _AttrGeneric = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrGeneric"); } return _AttrGeneric; } } public static IntPtr AttrSecurityDomain { get { if (_AttrSecurityDomain == IntPtr.Zero) { _AttrSecurityDomain = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrSecurityDomain"); } return _AttrSecurityDomain; } } public static IntPtr AttrServer { get { if (_AttrServer == IntPtr.Zero) { _AttrServer = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrServer"); } return _AttrServer; } } public static IntPtr AttrProtocol { get { if (_AttrProtocol == IntPtr.Zero) { _AttrProtocol = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocol"); } return _AttrProtocol; } } public static IntPtr AttrAuthenticationType { get { if (_AttrAuthenticationType == IntPtr.Zero) { _AttrAuthenticationType = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrAuthenticationType"); } return _AttrAuthenticationType; } } public static IntPtr AttrPort { get { if (_AttrPort == IntPtr.Zero) { _AttrPort = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrPort"); } return _AttrPort; } } public static IntPtr AttrPath { get { if (_AttrPath == IntPtr.Zero) { _AttrPath = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrPath"); } return _AttrPath; } } public static IntPtr AttrSubject { get { if (_AttrSubject == IntPtr.Zero) { _AttrSubject = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrSubject"); } return _AttrSubject; } } public static IntPtr AttrIssuer { get { if (_AttrIssuer == IntPtr.Zero) { _AttrIssuer = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrIssuer"); } return _AttrIssuer; } } public static IntPtr AttrSerialNumber { get { if (_AttrSerialNumber == IntPtr.Zero) { _AttrSerialNumber = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrSerialNumber"); } return _AttrSerialNumber; } } public static IntPtr AttrSubjectKeyID { get { if (_AttrSubjectKeyID == IntPtr.Zero) { _AttrSubjectKeyID = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrSubjectKeyID"); } return _AttrSubjectKeyID; } } public static IntPtr AttrPublicKeyHash { get { if (_AttrPublicKeyHash == IntPtr.Zero) { _AttrPublicKeyHash = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrPublicKeyHash"); } return _AttrPublicKeyHash; } } public static IntPtr AttrCertificateType { get { if (_AttrCertificateType == IntPtr.Zero) { _AttrCertificateType = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCertificateType"); } return _AttrCertificateType; } } public static IntPtr AttrCertificateEncoding { get { if (_AttrCertificateEncoding == IntPtr.Zero) { _AttrCertificateEncoding = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCertificateEncoding"); } return _AttrCertificateEncoding; } } public static IntPtr AttrKeyClass { get { if (_AttrKeyClass == IntPtr.Zero) { _AttrKeyClass = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyClass"); } return _AttrKeyClass; } } public static IntPtr AttrApplicationLabel { get { if (_AttrApplicationLabel == IntPtr.Zero) { _AttrApplicationLabel = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrApplicationLabel"); } return _AttrApplicationLabel; } } public static IntPtr AttrIsPermanent { get { if (_AttrIsPermanent == IntPtr.Zero) { _AttrIsPermanent = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrIsPermanent"); } return _AttrIsPermanent; } } public static IntPtr AttrApplicationTag { get { if (_AttrApplicationTag == IntPtr.Zero) { _AttrApplicationTag = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrApplicationTag"); } return _AttrApplicationTag; } } public static IntPtr AttrKeyType { get { if (_AttrKeyType == IntPtr.Zero) { _AttrKeyType = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeyType"); } return _AttrKeyType; } } public static IntPtr AttrKeySizeInBits { get { if (_AttrKeySizeInBits == IntPtr.Zero) { _AttrKeySizeInBits = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrKeySizeInBits"); } return _AttrKeySizeInBits; } } public static IntPtr AttrEffectiveKeySize { get { if (_AttrEffectiveKeySize == IntPtr.Zero) { _AttrEffectiveKeySize = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrEffectiveKeySize"); } return _AttrEffectiveKeySize; } } public static IntPtr AttrCanEncrypt { get { if (_AttrCanEncrypt == IntPtr.Zero) { _AttrCanEncrypt = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanEncrypt"); } return _AttrCanEncrypt; } } public static IntPtr AttrCanDecrypt { get { if (_AttrCanDecrypt == IntPtr.Zero) { _AttrCanDecrypt = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanDecrypt"); } return _AttrCanDecrypt; } } public static IntPtr AttrCanDerive { get { if (_AttrCanDerive == IntPtr.Zero) { _AttrCanDerive = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanDerive"); } return _AttrCanDerive; } } public static IntPtr AttrCanSign { get { if (_AttrCanSign == IntPtr.Zero) { _AttrCanSign = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanSign"); } return _AttrCanSign; } } public static IntPtr AttrCanVerify { get { if (_AttrCanVerify == IntPtr.Zero) { _AttrCanVerify = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanVerify"); } return _AttrCanVerify; } } public static IntPtr AttrCanWrap { get { if (_AttrCanWrap == IntPtr.Zero) { _AttrCanWrap = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanWrap"); } return _AttrCanWrap; } } public static IntPtr AttrCanUnwrap { get { if (_AttrCanUnwrap == IntPtr.Zero) { _AttrCanUnwrap = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrCanUnwrap"); } return _AttrCanUnwrap; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecAuthenticationType.cs ================================================ namespace Security; public enum SecAuthenticationType { Ntlm, Msn, Dpa, Rpa, HttpBasic, HttpDigest, HtmlForm, Default } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecCertificate.cs ================================================ using System; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecCertificate : INativeObject, IDisposable { internal IntPtr handle; public string SubjectSummary { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecCertificate"); } IntPtr obj = SecCertificateCopySubjectSummary(handle); string result = CFString.FetchString(obj); CFObject.CFRelease(obj); return result; } } public NSData DerData { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecCertificate"); } IntPtr intPtr = SecCertificateCopyData(handle); if (intPtr == IntPtr.Zero) { throw new ArgumentException("Not a valid certificate"); } return new NSData(intPtr); } } public IntPtr Handle => handle; internal SecCertificate(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal SecCertificate(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new Exception("Invalid handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } [DllImport("/System/Library/Frameworks/Security.framework/Security", EntryPoint = "SecCertificateGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecCertificateCreateWithData(IntPtr allocator, IntPtr cfData); public SecCertificate(NSData data) { if (data == null) { throw new ArgumentNullException("data"); } Initialize(data); } public SecCertificate(byte[] data) { if (data == null) { throw new ArgumentNullException("data"); } using NSData data2 = NSData.FromArray(data); Initialize(data2); } public SecCertificate(X509Certificate certificate) { if (certificate == null) { throw new ArgumentNullException("certificate"); } using NSData data = NSData.FromArray(certificate.Export(X509ContentType.Cert)); Initialize(data); } public SecCertificate(X509Certificate2 certificate) { if (certificate == null) { throw new ArgumentNullException("certificate"); } using NSData data = NSData.FromArray(certificate.RawData); Initialize(data); } private void Initialize(NSData data) { handle = SecCertificateCreateWithData(IntPtr.Zero, data.Handle); if (handle == IntPtr.Zero) { throw new ArgumentException("Not a valid DER-encoded X.509 certificate"); } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecCertificateCopySubjectSummary(IntPtr cert); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecCertificateCopyData(IntPtr cert); ~SecCertificate() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecClass.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class SecClass { public static IntPtr SecClassKey; public static IntPtr GenericPassword; public static IntPtr InternetPassword; public static IntPtr Certificate; public static IntPtr Key; public static IntPtr Identity; static SecClass() { SecClassKey = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClass"); GenericPassword = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClassGenericPassword"); InternetPassword = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClassInternetPassword"); Certificate = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClassCertificate"); Key = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClassKey"); Identity = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecClassIdentity"); } public static IntPtr FromSecKind(SecKind secKind) { if (secKind == SecKind.InternetPassword) { return InternetPassword; } throw new ArgumentException("secKind"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecIdentity.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecIdentity : INativeObject, IDisposable { internal IntPtr handle; public SecCertificate Certificate { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecIdentity"); } SecIdentityCopyCertificate(handle, out var _); return new SecCertificate(handle, owns: true); } } public IntPtr Handle => handle; internal SecIdentity(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal SecIdentity(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } [DllImport("/System/Library/Frameworks/Security.framework/Security", EntryPoint = "SecIdentityGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecIdentityCopyCertificate(IntPtr handle, out IntPtr cert); ~SecIdentity() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecItem.cs ================================================ using System; using System.Runtime.InteropServices; using ObjCRuntime; namespace Security; internal class SecItem { internal static IntPtr securityLibrary = Dlfcn.dlopen("/System/Library/Frameworks/Security.framework/Security", 0); private static IntPtr _MatchPolicy; private static IntPtr _MatchItemList; private static IntPtr _MatchSearchList; private static IntPtr _MatchIssuers; private static IntPtr _MatchEmailAddressIfPresent; private static IntPtr _MatchSubjectContains; private static IntPtr _MatchCaseInsensitive; private static IntPtr _MatchTrustedOnly; private static IntPtr _MatchValidOnDate; private static IntPtr _MatchLimit; private static IntPtr _ReturnData; private static IntPtr _ReturnAttributes; private static IntPtr _ReturnRef; private static IntPtr _ReturnPersistentRef; private static IntPtr _ValueData; private static IntPtr _ValueRef; private static IntPtr _ValuePersistentRef; private static IntPtr _UseItemList; public static IntPtr MatchPolicy { get { if (_MatchPolicy == IntPtr.Zero) { _MatchPolicy = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchPolicy"); } return _MatchPolicy; } } public static IntPtr MatchItemList { get { if (_MatchItemList == IntPtr.Zero) { _MatchItemList = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchItemList"); } return _MatchItemList; } } public static IntPtr MatchSearchList { get { if (_MatchSearchList == IntPtr.Zero) { _MatchSearchList = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchSearchList"); } return _MatchSearchList; } } public static IntPtr MatchIssuers { get { if (_MatchIssuers == IntPtr.Zero) { _MatchIssuers = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchIssuers"); } return _MatchIssuers; } } public static IntPtr MatchEmailAddressIfPresent { get { if (_MatchEmailAddressIfPresent == IntPtr.Zero) { _MatchEmailAddressIfPresent = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchEmailAddressIfPresent"); } return _MatchEmailAddressIfPresent; } } public static IntPtr MatchSubjectContains { get { if (_MatchSubjectContains == IntPtr.Zero) { _MatchSubjectContains = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchSubjectContains"); } return _MatchSubjectContains; } } public static IntPtr MatchCaseInsensitive { get { if (_MatchCaseInsensitive == IntPtr.Zero) { _MatchCaseInsensitive = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchCaseInsensitive"); } return _MatchCaseInsensitive; } } public static IntPtr MatchTrustedOnly { get { if (_MatchTrustedOnly == IntPtr.Zero) { _MatchTrustedOnly = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchTrustedOnly"); } return _MatchTrustedOnly; } } public static IntPtr MatchValidOnDate { get { if (_MatchValidOnDate == IntPtr.Zero) { _MatchValidOnDate = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchValidOnDate"); } return _MatchValidOnDate; } } public static IntPtr MatchLimit { get { if (_MatchLimit == IntPtr.Zero) { _MatchLimit = Dlfcn.GetIntPtr(securityLibrary, "kSecMatchLimit"); } return _MatchLimit; } } public static IntPtr ReturnData { get { if (_ReturnData == IntPtr.Zero) { _ReturnData = Dlfcn.GetIntPtr(securityLibrary, "kSecReturnData"); } return _ReturnData; } } public static IntPtr ReturnAttributes { get { if (_ReturnAttributes == IntPtr.Zero) { _ReturnAttributes = Dlfcn.GetIntPtr(securityLibrary, "kSecReturnAttributes"); } return _ReturnAttributes; } } public static IntPtr ReturnRef { get { if (_ReturnRef == IntPtr.Zero) { _ReturnRef = Dlfcn.GetIntPtr(securityLibrary, "kSecReturnRef"); } return _ReturnRef; } } public static IntPtr ReturnPersistentRef { get { if (_ReturnPersistentRef == IntPtr.Zero) { _ReturnPersistentRef = Dlfcn.GetIntPtr(securityLibrary, "kSecReturnPersistentRef"); } return _ReturnPersistentRef; } } public static IntPtr ValueData { get { if (_ValueData == IntPtr.Zero) { _ValueData = Dlfcn.GetIntPtr(securityLibrary, "kSecValueData"); } return _ValueData; } } public static IntPtr ValueRef { get { if (_ValueRef == IntPtr.Zero) { _ValueRef = Dlfcn.GetIntPtr(securityLibrary, "kSecValueRef"); } return _ValueRef; } } public static IntPtr ValuePersistentRef { get { if (_ValuePersistentRef == IntPtr.Zero) { _ValuePersistentRef = Dlfcn.GetIntPtr(securityLibrary, "kSecValuePersistentRef"); } return _ValuePersistentRef; } } public static IntPtr UseItemList { get { if (_UseItemList == IntPtr.Zero) { _UseItemList = Dlfcn.GetIntPtr(securityLibrary, "kSecUseItemList"); } return _UseItemList; } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] internal static extern SecStatusCode SecItemCopyMatching(IntPtr cfDictRef, out IntPtr result); [DllImport("/System/Library/Frameworks/Security.framework/Security")] internal static extern SecStatusCode SecItemAdd(IntPtr cfDictRef, IntPtr result); [DllImport("/System/Library/Frameworks/Security.framework/Security")] internal static extern SecStatusCode SecItemDelete(IntPtr cfDictRef); [DllImport("/System/Library/Frameworks/Security.framework/Security")] internal static extern SecStatusCode SecItemUpdate(IntPtr cfDictRef, IntPtr attrsToUpdate); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecKey.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecKey : INativeObject, IDisposable { internal IntPtr handle; private long BlockSize { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } return (long)SecKeyGetBlockSize(handle); } } public IntPtr Handle => handle; public SecKey(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] public SecKey(IntPtr handle, bool owns) { this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } [DllImport("/System/Library/Frameworks/Security.framework/Security", EntryPoint = "SecKeyGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeyGeneratePair(IntPtr dictHandle, out IntPtr pubKey, out IntPtr privKey); public static SecStatusCode GenerateKeyPair(NSDictionary parameters, out SecKey publicKey, out SecKey privateKey) { if (parameters == null) { throw new ArgumentNullException("parameters"); } IntPtr pubKey; IntPtr privKey; SecStatusCode num = SecKeyGeneratePair(parameters.Handle, out pubKey, out privKey); if (num == SecStatusCode.Success) { publicKey = new SecKey(pubKey, owns: true); privateKey = new SecKey(privKey, owns: true); return num; } publicKey = (privateKey = null); return num; } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecKeyGetBlockSize(IntPtr handle); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeyRawSign(IntPtr handle, SecPadding padding, IntPtr dataToSign, IntPtr dataToSignLen, IntPtr sig, IntPtr sigLen); private unsafe SecStatusCode RawSign(SecPadding padding, IntPtr dataToSign, int dataToSignLen, out byte[] result) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } result = new byte[(int)SecKeyGetBlockSize(handle)]; fixed (byte* ptr = &result[0]) { return SecKeyRawSign(handle, padding, dataToSign, (IntPtr)dataToSignLen, (IntPtr)ptr, (IntPtr)result.Length); } } private unsafe SecStatusCode RawSign(SecPadding padding, byte[] dataToSign, out byte[] result) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } if (dataToSign == null) { throw new ArgumentNullException("dataToSign"); } result = new byte[(int)SecKeyGetBlockSize(handle)]; fixed (byte* ptr = &dataToSign[0]) { fixed (byte* ptr2 = &result[0]) { return SecKeyRawSign(handle, padding, (IntPtr)ptr, (IntPtr)dataToSign.Length, (IntPtr)ptr2, (IntPtr)result.Length); } } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeyRawVerify(IntPtr handle, SecPadding padding, IntPtr signedData, IntPtr signedLen, IntPtr sign, IntPtr signLen); public SecStatusCode RawVerify(SecPadding padding, IntPtr signedData, int signedDataLen, IntPtr signature, int signatureLen) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } return SecKeyRawVerify(handle, padding, signedData, (IntPtr)signedDataLen, signature, (IntPtr)signatureLen); } public unsafe SecStatusCode RawVerify(SecPadding padding, byte[] signedData, byte[] signature) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } if (signature == null) { throw new ArgumentNullException("signature"); } if (signedData == null) { throw new ArgumentNullException("signedData"); } fixed (byte* ptr2 = &signature[0]) { fixed (byte* ptr = &signedData[0]) { return SecKeyRawVerify(handle, padding, (IntPtr)ptr, (IntPtr)signedData.Length, (IntPtr)ptr2, (IntPtr)signature.Length); } } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeyEncrypt(IntPtr handle, SecPadding padding, IntPtr plainText, IntPtr playLen, IntPtr cipherText, IntPtr cipherLen); public SecStatusCode Encrypt(SecPadding padding, IntPtr plainText, int playLen, IntPtr cipherText, int cipherLen) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } return SecKeyEncrypt(handle, padding, plainText, (IntPtr)playLen, cipherText, (IntPtr)cipherLen); } public unsafe SecStatusCode Encrypt(SecPadding padding, byte[] plainText, byte[] cipherText) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } if (cipherText == null) { throw new ArgumentNullException("cipherText"); } if (plainText == null) { throw new ArgumentNullException("plainText"); } fixed (byte* ptr2 = &cipherText[0]) { fixed (byte* ptr = &plainText[0]) { return SecKeyEncrypt(handle, padding, (IntPtr)ptr, (IntPtr)plainText.Length, (IntPtr)ptr2, (IntPtr)cipherText.Length); } } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeyDecrypt(IntPtr handle, SecPadding padding, IntPtr cipherText, IntPtr cipherLen, IntPtr plainText, IntPtr playLen); public SecStatusCode Decrypt(SecPadding padding, IntPtr cipherText, int cipherLen, IntPtr plainText, int playLen) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } return SecKeyDecrypt(handle, padding, cipherText, (IntPtr)cipherLen, plainText, (IntPtr)playLen); } public unsafe SecStatusCode Decrypt(SecPadding padding, byte[] cipherText, byte[] plainText) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecKey"); } if (cipherText == null) { throw new ArgumentNullException("cipherText"); } if (plainText == null) { throw new ArgumentNullException("plainText"); } fixed (byte* ptr = &cipherText[0]) { fixed (byte* ptr2 = &plainText[0]) { return SecKeyDecrypt(handle, padding, (IntPtr)ptr, (IntPtr)cipherText.Length, (IntPtr)ptr2, (IntPtr)plainText.Length); } } } ~SecKey() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecKeyChain.cs ================================================ using System; using System.Runtime.InteropServices; using System.Text; using CoreFoundation; using Foundation; namespace Security; public static class SecKeyChain { private static NSNumber SetLimit(NSMutableDictionary dict, int max) { NSNumber nSNumber = null; IntPtr obj; switch (max) { case -1: obj = SecMatchLimit.MatchLimitAll; break; case 1: obj = SecMatchLimit.MatchLimitOne; break; default: nSNumber = NSNumber.FromInt32(max); obj = nSNumber.Handle; break; } dict.LowlevelSetObject(obj, SecItem.MatchLimit); return nSNumber; } public static NSData QueryAsData(SecRecord query, bool wantPersistentReference, out SecStatusCode status) { if (query == null) { throw new ArgumentNullException("query"); } using NSMutableDictionary nSMutableDictionary = NSMutableDictionary.FromDictionary(query.queryDict); SetLimit(nSMutableDictionary, 1); nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, SecItem.ReturnData); status = SecItem.SecItemCopyMatching(nSMutableDictionary.Handle, out var result); if (status == SecStatusCode.Success) { return new NSData(result, owns: false); } return null; } public static NSData[] QueryAsData(SecRecord query, bool wantPersistentReference, int max, out SecStatusCode status) { if (query == null) { throw new ArgumentNullException("query"); } using NSMutableDictionary nSMutableDictionary = NSMutableDictionary.FromDictionary(query.queryDict); SetLimit(nSMutableDictionary, max); nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, SecItem.ReturnData); status = SecItem.SecItemCopyMatching(nSMutableDictionary.Handle, out var result); if (status == SecStatusCode.Success) { if (max == 1) { return new NSData[1] { new NSData(result, owns: false) }; } NSArray nSArray = new NSArray(result); NSData[] array = new NSData[nSArray.Count]; for (uint num = 0u; num < array.Length; num++) { array[num] = new NSData(nSArray.ValueAt(num), owns: false); } return array; } return null; } public static NSData QueryAsData(SecRecord query) { SecStatusCode status; return QueryAsData(query, wantPersistentReference: false, out status); } public static NSData[] QueryAsData(SecRecord query, int max) { SecStatusCode status; return QueryAsData(query, wantPersistentReference: false, max, out status); } public static SecRecord QueryAsRecord(SecRecord query, out SecStatusCode result) { if (query == null) { throw new ArgumentNullException("query"); } using NSMutableDictionary nSMutableDictionary = NSMutableDictionary.FromDictionary(query.queryDict); SetLimit(nSMutableDictionary, 1); nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, SecItem.ReturnAttributes); nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, SecItem.ReturnData); result = SecItem.SecItemCopyMatching(nSMutableDictionary.Handle, out var result2); if (result == SecStatusCode.Success) { return new SecRecord(new NSMutableDictionary(result2, owns: false)); } return null; } public static SecRecord[] QueryAsRecord(SecRecord query, int max, out SecStatusCode result) { if (query == null) { throw new ArgumentNullException("query"); } using NSMutableDictionary nSMutableDictionary = NSMutableDictionary.FromDictionary(query.queryDict); nSMutableDictionary.LowlevelSetObject(CFBoolean.True.Handle, SecItem.ReturnAttributes); SetLimit(nSMutableDictionary, max); result = SecItem.SecItemCopyMatching(nSMutableDictionary.Handle, out var result2); if (result == SecStatusCode.Success) { NSArray nSArray = new NSArray(result2); SecRecord[] array = new SecRecord[nSArray.Count]; for (uint num = 0u; num < array.Length; num++) { array[num] = new SecRecord(new NSMutableDictionary(nSArray.ValueAt(num), owns: false)); } return array; } return null; } public static SecStatusCode Add(SecRecord record) { if (record == null) { throw new ArgumentNullException("record"); } return SecItem.SecItemAdd(record.queryDict.Handle, IntPtr.Zero); } public static SecStatusCode Remove(SecRecord record) { if (record == null) { throw new ArgumentNullException("record"); } return SecItem.SecItemDelete(record.queryDict.Handle); } public static SecStatusCode Update(SecRecord query, SecRecord newAttributes) { if (query == null) { throw new ArgumentNullException("record"); } if (newAttributes == null) { throw new ArgumentNullException("newAttributes"); } return SecItem.SecItemUpdate(query.queryDict.Handle, newAttributes.queryDict.Handle); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeychainAddGenericPassword(IntPtr keychain, int serviceNameLength, IntPtr serviceName, int accountNameLength, IntPtr accountName, int passwordLength, IntPtr passwordData, IntPtr itemRef); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeychainFindGenericPassword(IntPtr keychainOrArray, int serviceNameLength, IntPtr serviceName, int accountNameLength, IntPtr accountName, out int passwordLength, out IntPtr passwordData, IntPtr itemRef); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeychainAddInternetPassword(IntPtr keychain, int serverNameLength, IntPtr serverName, int securityDomainLength, IntPtr securityDomain, int accountNameLength, IntPtr accountName, int pathLength, IntPtr path, short port, IntPtr protocol, IntPtr authenticationType, int passwordLength, IntPtr passwordData, IntPtr itemRef); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeychainFindInternetPassword(IntPtr keychain, int serverNameLength, IntPtr serverName, int securityDomainLength, IntPtr securityDomain, int accountNameLength, IntPtr accountName, int pathLength, IntPtr path, short port, IntPtr protocol, IntPtr authenticationType, out int passwordLength, out IntPtr passwordData, IntPtr itemRef); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecKeychainItemFreeContent(IntPtr attrList, IntPtr data); public static SecStatusCode AddInternetPassword(string serverName, string accountName, byte[] password, SecProtocol protocolType = SecProtocol.Http, short port = 0, string path = null, SecAuthenticationType authenticationType = SecAuthenticationType.Default, string securityDomain = null) { GCHandle gCHandle = default(GCHandle); GCHandle gCHandle2 = default(GCHandle); GCHandle gCHandle3 = default(GCHandle); GCHandle gCHandle4 = default(GCHandle); GCHandle gCHandle5 = default(GCHandle); int serverNameLength = 0; IntPtr serverName2 = IntPtr.Zero; int securityDomainLength = 0; IntPtr zero = IntPtr.Zero; int accountNameLength = 0; IntPtr accountName2 = IntPtr.Zero; int pathLength = 0; IntPtr path2 = IntPtr.Zero; int passwordLength = 0; IntPtr passwordData = IntPtr.Zero; try { if (!string.IsNullOrEmpty(serverName)) { byte[] bytes = Encoding.UTF8.GetBytes(serverName); serverNameLength = bytes.Length; gCHandle = GCHandle.Alloc(bytes, GCHandleType.Pinned); serverName2 = gCHandle.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(securityDomain)) { byte[] bytes2 = Encoding.UTF8.GetBytes(securityDomain); securityDomainLength = bytes2.Length; gCHandle2 = GCHandle.Alloc(bytes2, GCHandleType.Pinned); } if (!string.IsNullOrEmpty(accountName)) { byte[] bytes3 = Encoding.UTF8.GetBytes(accountName); accountNameLength = bytes3.Length; gCHandle3 = GCHandle.Alloc(bytes3, GCHandleType.Pinned); accountName2 = gCHandle3.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(path)) { byte[] bytes4 = Encoding.UTF8.GetBytes(path); pathLength = bytes4.Length; gCHandle4 = GCHandle.Alloc(bytes4, GCHandleType.Pinned); path2 = gCHandle4.AddrOfPinnedObject(); } if (password != null && password.Length != 0) { passwordLength = password.Length; gCHandle5 = GCHandle.Alloc(password, GCHandleType.Pinned); passwordData = gCHandle5.AddrOfPinnedObject(); } return SecKeychainAddInternetPassword(IntPtr.Zero, serverNameLength, serverName2, securityDomainLength, zero, accountNameLength, accountName2, pathLength, path2, port, SecProtocolKeys.FromSecProtocol(protocolType), KeysAuthenticationType.FromSecAuthenticationType(authenticationType), passwordLength, passwordData, IntPtr.Zero); } finally { if (gCHandle.IsAllocated) { gCHandle.Free(); } if (gCHandle3.IsAllocated) { gCHandle3.Free(); } if (gCHandle5.IsAllocated) { gCHandle5.Free(); } if (gCHandle2.IsAllocated) { gCHandle2.Free(); } if (gCHandle4.IsAllocated) { gCHandle4.Free(); } } } public static SecStatusCode FindInternetPassword(string serverName, string accountName, out byte[] password, SecProtocol protocolType = SecProtocol.Http, short port = 0, string path = null, SecAuthenticationType authenticationType = SecAuthenticationType.Default, string securityDomain = null) { password = null; GCHandle gCHandle = default(GCHandle); GCHandle gCHandle2 = default(GCHandle); GCHandle gCHandle3 = default(GCHandle); GCHandle gCHandle4 = default(GCHandle); int serverNameLength = 0; IntPtr serverName2 = IntPtr.Zero; int securityDomainLength = 0; IntPtr zero = IntPtr.Zero; int accountNameLength = 0; IntPtr accountName2 = IntPtr.Zero; int pathLength = 0; IntPtr path2 = IntPtr.Zero; IntPtr passwordData = IntPtr.Zero; try { if (!string.IsNullOrEmpty(serverName)) { byte[] bytes = Encoding.UTF8.GetBytes(serverName); serverNameLength = bytes.Length; gCHandle = GCHandle.Alloc(bytes, GCHandleType.Pinned); serverName2 = gCHandle.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(securityDomain)) { byte[] bytes2 = Encoding.UTF8.GetBytes(securityDomain); securityDomainLength = bytes2.Length; gCHandle2 = GCHandle.Alloc(bytes2, GCHandleType.Pinned); } if (!string.IsNullOrEmpty(accountName)) { byte[] bytes3 = Encoding.UTF8.GetBytes(accountName); accountNameLength = bytes3.Length; gCHandle3 = GCHandle.Alloc(bytes3, GCHandleType.Pinned); accountName2 = gCHandle3.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(path)) { byte[] bytes4 = Encoding.UTF8.GetBytes(path); pathLength = bytes4.Length; gCHandle4 = GCHandle.Alloc(bytes4, GCHandleType.Pinned); path2 = gCHandle4.AddrOfPinnedObject(); } int passwordLength = 0; SecStatusCode num = SecKeychainFindInternetPassword(IntPtr.Zero, serverNameLength, serverName2, securityDomainLength, zero, accountNameLength, accountName2, pathLength, path2, port, SecProtocolKeys.FromSecProtocol(protocolType), KeysAuthenticationType.FromSecAuthenticationType(authenticationType), out passwordLength, out passwordData, IntPtr.Zero); if (num == SecStatusCode.Success && passwordLength > 0) { password = new byte[passwordLength]; Marshal.Copy(passwordData, password, 0, passwordLength); } return num; } finally { if (gCHandle.IsAllocated) { gCHandle.Free(); } if (gCHandle3.IsAllocated) { gCHandle3.Free(); } if (gCHandle2.IsAllocated) { gCHandle2.Free(); } if (gCHandle4.IsAllocated) { gCHandle4.Free(); } if (passwordData != IntPtr.Zero) { SecKeychainItemFreeContent(IntPtr.Zero, passwordData); } } } public static SecStatusCode AddGenericPassword(string serviceName, string accountName, byte[] password) { GCHandle gCHandle = default(GCHandle); GCHandle gCHandle2 = default(GCHandle); GCHandle gCHandle3 = default(GCHandle); int serviceNameLength = 0; IntPtr serviceName2 = IntPtr.Zero; int accountNameLength = 0; IntPtr accountName2 = IntPtr.Zero; int passwordLength = 0; IntPtr passwordData = IntPtr.Zero; try { if (!string.IsNullOrEmpty(serviceName)) { byte[] bytes = Encoding.UTF8.GetBytes(serviceName); serviceNameLength = bytes.Length; gCHandle = GCHandle.Alloc(bytes, GCHandleType.Pinned); serviceName2 = gCHandle.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(accountName)) { byte[] bytes2 = Encoding.UTF8.GetBytes(accountName); accountNameLength = bytes2.Length; gCHandle2 = GCHandle.Alloc(bytes2, GCHandleType.Pinned); accountName2 = gCHandle2.AddrOfPinnedObject(); } if (password != null && password.Length != 0) { passwordLength = password.Length; gCHandle3 = GCHandle.Alloc(password, GCHandleType.Pinned); passwordData = gCHandle3.AddrOfPinnedObject(); } return SecKeychainAddGenericPassword(IntPtr.Zero, serviceNameLength, serviceName2, accountNameLength, accountName2, passwordLength, passwordData, IntPtr.Zero); } finally { if (gCHandle.IsAllocated) { gCHandle.Free(); } if (gCHandle2.IsAllocated) { gCHandle2.Free(); } if (gCHandle3.IsAllocated) { gCHandle3.Free(); } } } public static SecStatusCode FindGenericPassword(string serviceName, string accountName, out byte[] password) { password = null; GCHandle gCHandle = default(GCHandle); GCHandle gCHandle2 = default(GCHandle); int serviceNameLength = 0; IntPtr serviceName2 = IntPtr.Zero; int accountNameLength = 0; IntPtr accountName2 = IntPtr.Zero; IntPtr passwordData = IntPtr.Zero; try { if (!string.IsNullOrEmpty(serviceName)) { byte[] bytes = Encoding.UTF8.GetBytes(serviceName); serviceNameLength = bytes.Length; gCHandle = GCHandle.Alloc(bytes, GCHandleType.Pinned); serviceName2 = gCHandle.AddrOfPinnedObject(); } if (!string.IsNullOrEmpty(accountName)) { byte[] bytes2 = Encoding.UTF8.GetBytes(accountName); accountNameLength = bytes2.Length; gCHandle2 = GCHandle.Alloc(bytes2, GCHandleType.Pinned); accountName2 = gCHandle2.AddrOfPinnedObject(); } int passwordLength = 0; SecStatusCode num = SecKeychainFindGenericPassword(IntPtr.Zero, serviceNameLength, serviceName2, accountNameLength, accountName2, out passwordLength, out passwordData, IntPtr.Zero); if (num == SecStatusCode.Success && passwordLength > 0) { password = new byte[passwordLength]; Marshal.Copy(passwordData, password, 0, passwordLength); } return num; } finally { if (gCHandle.IsAllocated) { gCHandle.Free(); } if (gCHandle2.IsAllocated) { gCHandle2.Free(); } if (passwordData != IntPtr.Zero) { SecKeychainItemFreeContent(IntPtr.Zero, passwordData); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecKeyClass.cs ================================================ namespace Security; public enum SecKeyClass { Public, Private, Symmetric } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecKeyType.cs ================================================ namespace Security; public enum SecKeyType { RSA, EC } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecKind.cs ================================================ namespace Security; public enum SecKind { InternetPassword } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecMatchLimit.cs ================================================ using System; using ObjCRuntime; namespace Security; public static class SecMatchLimit { private static IntPtr _MatchLimitOne; private static IntPtr _MatchLimitAll; public static IntPtr MatchLimitOne { get { if (_MatchLimitOne == IntPtr.Zero) { _MatchLimitOne = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecMatchLimitOne"); } return _MatchLimitOne; } } public static IntPtr MatchLimitAll { get { if (_MatchLimitAll == IntPtr.Zero) { _MatchLimitAll = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecMatchLimitAll"); } return _MatchLimitAll; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecPadding.cs ================================================ namespace Security; public enum SecPadding { None = 0, PKCS1 = 1, OAEP = 2, PKCS1MD2 = 32768, PKCS1MD5 = 32769, PKCS1SHA1 = 32770, PKCS1SHA224 = 32771, PKCS1SHA256 = 32772, PKCS1SHA384 = 32773, PKCS1SHA512 = 32774 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecPolicy.cs ================================================ using System; using System.Runtime.InteropServices; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecPolicy : INativeObject, IDisposable { private IntPtr handle; public IntPtr Handle => handle; internal SecPolicy(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal SecPolicy(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new Exception("Invalid handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecPolicyCreateSSL(bool server, IntPtr hostname); public static SecPolicy CreateSslPolicy(bool server, string hostName) { CFString cFString = ((hostName == null) ? null : new CFString(hostName)); IntPtr hostname = cFString?.Handle ?? IntPtr.Zero; SecPolicy result = new SecPolicy(SecPolicyCreateSSL(server, hostname), owns: true); cFString?.Dispose(); return result; } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecPolicyCreateBasicX509(); public static SecPolicy CreateBasicX509Policy() { return new SecPolicy(SecPolicyCreateBasicX509(), owns: true); } ~SecPolicy() { Dispose(disposing: false); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } [DllImport("/System/Library/Frameworks/Security.framework/Security", EntryPoint = "SecPolicyGetTypeID")] public static extern int GetTypeID(); public static bool operator ==(SecPolicy a, SecPolicy b) { if ((object)a == null) { return (object)b == null; } if ((object)b == null) { return false; } return a.Handle == b.Handle; } public static bool operator !=(SecPolicy a, SecPolicy b) { if ((object)a == null) { return (object)b != null; } if ((object)b == null) { return true; } return a.Handle != b.Handle; } public override bool Equals(object other) { SecPolicy secPolicy = other as SecPolicy; return this == secPolicy; } public override int GetHashCode() { return (int)Handle; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecProtocol.cs ================================================ namespace Security; public enum SecProtocol { Ftp, FtpAccount, Http, Irc, Nntp, Pop3, Smtp, Socks, Imap, Ldap, AppleTalk, Afp, Telnet, Ssh, Ftps, Https, HttpProxy, HttpsProxy, FtpProxy, Smb, Rtsp, RtspProxy, Daap, Eppc, Ipp, Nntps, Ldaps, Telnets, Imaps, Ircs, Pop3s } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecProtocolKeys.cs ================================================ using System; using ObjCRuntime; namespace Security; internal static class SecProtocolKeys { private static IntPtr _AttrProtocolFTP; private static IntPtr _AttrProtocolFTPAccount; private static IntPtr _AttrProtocolHTTP; private static IntPtr _AttrProtocolIRC; private static IntPtr _AttrProtocolNNTP; private static IntPtr _AttrProtocolPOP3; private static IntPtr _AttrProtocolSMTP; private static IntPtr _AttrProtocolSOCKS; private static IntPtr _AttrProtocolIMAP; private static IntPtr _AttrProtocolLDAP; private static IntPtr _AttrProtocolAppleTalk; private static IntPtr _AttrProtocolAFP; private static IntPtr _AttrProtocolTelnet; private static IntPtr _AttrProtocolSSH; private static IntPtr _AttrProtocolFTPS; private static IntPtr _AttrProtocolHTTPS; private static IntPtr _AttrProtocolHTTPProxy; private static IntPtr _AttrProtocolHTTPSProxy; private static IntPtr _AttrProtocolFTPProxy; private static IntPtr _AttrProtocolSMB; private static IntPtr _AttrProtocolRTSP; private static IntPtr _AttrProtocolRTSPProxy; private static IntPtr _AttrProtocolDAAP; private static IntPtr _AttrProtocolEPPC; private static IntPtr _AttrProtocolIPP; private static IntPtr _AttrProtocolNNTPS; private static IntPtr _AttrProtocolLDAPS; private static IntPtr _AttrProtocolTelnetS; private static IntPtr _AttrProtocolIMAPS; private static IntPtr _AttrProtocolIRCS; private static IntPtr _AttrProtocolPOP3S; public static IntPtr AttrProtocolFTP { get { if (_AttrProtocolFTP == IntPtr.Zero) { _AttrProtocolFTP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolFTP"); } return _AttrProtocolFTP; } } public static IntPtr AttrProtocolFTPAccount { get { if (_AttrProtocolFTPAccount == IntPtr.Zero) { _AttrProtocolFTPAccount = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolFTPAccount"); } return _AttrProtocolFTPAccount; } } public static IntPtr AttrProtocolHTTP { get { if (_AttrProtocolHTTP == IntPtr.Zero) { _AttrProtocolHTTP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolHTTP"); } return _AttrProtocolHTTP; } } public static IntPtr AttrProtocolIRC { get { if (_AttrProtocolIRC == IntPtr.Zero) { _AttrProtocolIRC = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolIRC"); } return _AttrProtocolIRC; } } public static IntPtr AttrProtocolNNTP { get { if (_AttrProtocolNNTP == IntPtr.Zero) { _AttrProtocolNNTP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolNNTP"); } return _AttrProtocolNNTP; } } public static IntPtr AttrProtocolPOP3 { get { if (_AttrProtocolPOP3 == IntPtr.Zero) { _AttrProtocolPOP3 = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolPOP3"); } return _AttrProtocolPOP3; } } public static IntPtr AttrProtocolSMTP { get { if (_AttrProtocolSMTP == IntPtr.Zero) { _AttrProtocolSMTP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolSMTP"); } return _AttrProtocolSMTP; } } public static IntPtr AttrProtocolSOCKS { get { if (_AttrProtocolSOCKS == IntPtr.Zero) { _AttrProtocolSOCKS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolSOCKS"); } return _AttrProtocolSOCKS; } } public static IntPtr AttrProtocolIMAP { get { if (_AttrProtocolIMAP == IntPtr.Zero) { _AttrProtocolIMAP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolIMAP"); } return _AttrProtocolIMAP; } } public static IntPtr AttrProtocolLDAP { get { if (_AttrProtocolLDAP == IntPtr.Zero) { _AttrProtocolLDAP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolLDAP"); } return _AttrProtocolLDAP; } } public static IntPtr AttrProtocolAppleTalk { get { if (_AttrProtocolAppleTalk == IntPtr.Zero) { _AttrProtocolAppleTalk = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolAppleTalk"); } return _AttrProtocolAppleTalk; } } public static IntPtr AttrProtocolAFP { get { if (_AttrProtocolAFP == IntPtr.Zero) { _AttrProtocolAFP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolAFP"); } return _AttrProtocolAFP; } } public static IntPtr AttrProtocolTelnet { get { if (_AttrProtocolTelnet == IntPtr.Zero) { _AttrProtocolTelnet = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolTelnet"); } return _AttrProtocolTelnet; } } public static IntPtr AttrProtocolSSH { get { if (_AttrProtocolSSH == IntPtr.Zero) { _AttrProtocolSSH = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolSSH"); } return _AttrProtocolSSH; } } public static IntPtr AttrProtocolFTPS { get { if (_AttrProtocolFTPS == IntPtr.Zero) { _AttrProtocolFTPS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolFTPS"); } return _AttrProtocolFTPS; } } public static IntPtr AttrProtocolHTTPS { get { if (_AttrProtocolHTTPS == IntPtr.Zero) { _AttrProtocolHTTPS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolHTTPS"); } return _AttrProtocolHTTPS; } } public static IntPtr AttrProtocolHTTPProxy { get { if (_AttrProtocolHTTPProxy == IntPtr.Zero) { _AttrProtocolHTTPProxy = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolHTTPProxy"); } return _AttrProtocolHTTPProxy; } } public static IntPtr AttrProtocolHTTPSProxy { get { if (_AttrProtocolHTTPSProxy == IntPtr.Zero) { _AttrProtocolHTTPSProxy = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolHTTPSProxy"); } return _AttrProtocolHTTPSProxy; } } public static IntPtr AttrProtocolFTPProxy { get { if (_AttrProtocolFTPProxy == IntPtr.Zero) { _AttrProtocolFTPProxy = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolFTPProxy"); } return _AttrProtocolFTPProxy; } } public static IntPtr AttrProtocolSMB { get { if (_AttrProtocolSMB == IntPtr.Zero) { _AttrProtocolSMB = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolSMB"); } return _AttrProtocolSMB; } } public static IntPtr AttrProtocolRTSP { get { if (_AttrProtocolRTSP == IntPtr.Zero) { _AttrProtocolRTSP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolRTSP"); } return _AttrProtocolRTSP; } } public static IntPtr AttrProtocolRTSPProxy { get { if (_AttrProtocolRTSPProxy == IntPtr.Zero) { _AttrProtocolRTSPProxy = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolRTSPProxy"); } return _AttrProtocolRTSPProxy; } } public static IntPtr AttrProtocolDAAP { get { if (_AttrProtocolDAAP == IntPtr.Zero) { _AttrProtocolDAAP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolDAAP"); } return _AttrProtocolDAAP; } } public static IntPtr AttrProtocolEPPC { get { if (_AttrProtocolEPPC == IntPtr.Zero) { _AttrProtocolEPPC = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolEPPC"); } return _AttrProtocolEPPC; } } public static IntPtr AttrProtocolIPP { get { if (_AttrProtocolIPP == IntPtr.Zero) { _AttrProtocolIPP = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolIPP"); } return _AttrProtocolIPP; } } public static IntPtr AttrProtocolNNTPS { get { if (_AttrProtocolNNTPS == IntPtr.Zero) { _AttrProtocolNNTPS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolNNTPS"); } return _AttrProtocolNNTPS; } } public static IntPtr AttrProtocolLDAPS { get { if (_AttrProtocolLDAPS == IntPtr.Zero) { _AttrProtocolLDAPS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolLDAPS"); } return _AttrProtocolLDAPS; } } public static IntPtr AttrProtocolTelnetS { get { if (_AttrProtocolTelnetS == IntPtr.Zero) { _AttrProtocolTelnetS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolTelnetS"); } return _AttrProtocolTelnetS; } } public static IntPtr AttrProtocolIMAPS { get { if (_AttrProtocolIMAPS == IntPtr.Zero) { _AttrProtocolIMAPS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolIMAPS"); } return _AttrProtocolIMAPS; } } public static IntPtr AttrProtocolIRCS { get { if (_AttrProtocolIRCS == IntPtr.Zero) { _AttrProtocolIRCS = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolIRCS"); } return _AttrProtocolIRCS; } } public static IntPtr AttrProtocolPOP3S { get { if (_AttrProtocolPOP3S == IntPtr.Zero) { _AttrProtocolPOP3S = Dlfcn.GetIntPtr(SecItem.securityLibrary, "kSecAttrProtocolPOP3S"); } return _AttrProtocolPOP3S; } } public static IntPtr FromSecProtocol(SecProtocol protocol) { return protocol switch { SecProtocol.Ftp => AttrProtocolFTP, SecProtocol.FtpAccount => AttrProtocolFTPAccount, SecProtocol.Http => AttrProtocolHTTP, SecProtocol.Irc => AttrProtocolIRC, SecProtocol.Nntp => AttrProtocolNNTP, SecProtocol.Pop3 => AttrProtocolPOP3, SecProtocol.Smtp => AttrProtocolSMTP, SecProtocol.Socks => AttrProtocolSOCKS, SecProtocol.Imap => AttrProtocolIMAP, SecProtocol.Ldap => AttrProtocolLDAP, SecProtocol.AppleTalk => AttrProtocolAppleTalk, SecProtocol.Afp => AttrProtocolAFP, SecProtocol.Telnet => AttrProtocolTelnet, SecProtocol.Ssh => AttrProtocolSSH, SecProtocol.Ftps => AttrProtocolFTPS, SecProtocol.Https => AttrProtocolHTTPS, SecProtocol.HttpProxy => AttrProtocolHTTPProxy, SecProtocol.HttpsProxy => AttrProtocolHTTPSProxy, SecProtocol.FtpProxy => AttrProtocolFTPProxy, SecProtocol.Smb => AttrProtocolSMB, SecProtocol.Rtsp => AttrProtocolRTSP, SecProtocol.RtspProxy => AttrProtocolRTSPProxy, SecProtocol.Daap => AttrProtocolDAAP, SecProtocol.Eppc => AttrProtocolEPPC, SecProtocol.Ipp => AttrProtocolIPP, SecProtocol.Nntps => AttrProtocolNNTPS, SecProtocol.Ldaps => AttrProtocolLDAPS, SecProtocol.Telnets => AttrProtocolTelnetS, SecProtocol.Imaps => AttrProtocolIMAPS, SecProtocol.Ircs => AttrProtocolIRCS, SecProtocol.Pop3s => AttrProtocolPOP3S, _ => throw new ArgumentException("protocol"), }; } public static SecProtocol ToSecProtocol(IntPtr handle) { if (handle == AttrProtocolFTP) { return SecProtocol.Ftp; } if (handle == AttrProtocolFTPAccount) { return SecProtocol.FtpAccount; } if (handle == AttrProtocolHTTP) { return SecProtocol.Http; } if (handle == AttrProtocolIRC) { return SecProtocol.Irc; } if (handle == AttrProtocolNNTP) { return SecProtocol.Nntp; } if (handle == AttrProtocolPOP3) { return SecProtocol.Pop3; } if (handle == AttrProtocolSMTP) { return SecProtocol.Smtp; } if (handle == AttrProtocolSOCKS) { return SecProtocol.Socks; } if (handle == AttrProtocolIMAP) { return SecProtocol.Imap; } if (handle == AttrProtocolLDAP) { return SecProtocol.Ldap; } if (handle == AttrProtocolAppleTalk) { return SecProtocol.AppleTalk; } if (handle == AttrProtocolAFP) { return SecProtocol.Afp; } if (handle == AttrProtocolTelnet) { return SecProtocol.Telnet; } if (handle == AttrProtocolSSH) { return SecProtocol.Ssh; } if (handle == AttrProtocolFTPS) { return SecProtocol.Ftps; } if (handle == AttrProtocolHTTPS) { return SecProtocol.Https; } if (handle == AttrProtocolHTTPProxy) { return SecProtocol.HttpProxy; } if (handle == AttrProtocolHTTPSProxy) { return SecProtocol.HttpsProxy; } if (handle == AttrProtocolFTPProxy) { return SecProtocol.FtpProxy; } if (handle == AttrProtocolSMB) { return SecProtocol.Smb; } if (handle == AttrProtocolRTSP) { return SecProtocol.Rtsp; } if (handle == AttrProtocolRTSPProxy) { return SecProtocol.RtspProxy; } if (handle == AttrProtocolDAAP) { return SecProtocol.Daap; } if (handle == AttrProtocolEPPC) { return SecProtocol.Eppc; } if (handle == AttrProtocolIPP) { return SecProtocol.Ipp; } if (handle == AttrProtocolNNTPS) { return SecProtocol.Nntps; } if (handle == AttrProtocolLDAPS) { return SecProtocol.Ldaps; } if (handle == AttrProtocolTelnetS) { return SecProtocol.Telnets; } if (handle == AttrProtocolIMAPS) { return SecProtocol.Imaps; } if (handle == AttrProtocolIRCS) { return SecProtocol.Ircs; } if (handle == AttrProtocolPOP3S) { return SecProtocol.Pop3s; } throw new ArgumentException("handle"); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecRecord.cs ================================================ using System; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecRecord : IDisposable { internal NSMutableDictionary queryDict; public SecAccessible Accessible { get { return KeysAccessible.ToSecAccessible(Fetch(SecAttributeKey.AttrAccessible)); } set { SetValue(KeysAccessible.FromSecAccessible(value), SecAttributeKey.AttrAccessible); } } public NSDate CreationDate { get { return (NSDate)FetchObject(SecAttributeKey.AttrCreationDate); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecAttributeKey.AttrCreationDate); } } public NSDate ModificationDate { get { return (NSDate)FetchObject(SecAttributeKey.AttrModificationDate); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecAttributeKey.AttrModificationDate); } } public string Description { get { return FetchString(SecAttributeKey.AttrDescription); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrDescription); } } public string Comment { get { return FetchString(SecAttributeKey.AttrComment); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrComment); } } public int Creator { get { return FetchNumber(SecAttributeKey.AttrCreator).Int32Value; } set { SetValue(new NSNumber(value), SecAttributeKey.AttrCreator); } } public int CreatorType { get { return FetchNumber(SecAttributeKey.AttrType).Int32Value; } set { SetValue(new NSNumber(value), SecAttributeKey.AttrType); } } public string Label { get { return FetchString(SecAttributeKey.AttrLabel); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrLabel); } } public bool Invisible { get { return Fetch(SecAttributeKey.AttrIsInvisible) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrIsInvisible); } } public bool IsNegative { get { return Fetch(SecAttributeKey.AttrIsNegative) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrIsNegative); } } public string Account { get { return FetchString(SecAttributeKey.AttrAccount); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrAccount); } } public string Service { get { return FetchString(SecAttributeKey.AttrService); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrService); } } public NSData Generic { get { return FetchData(SecAttributeKey.AttrGeneric); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecAttributeKey.AttrGeneric); } } public string SecurityDomain { get { return FetchString(SecAttributeKey.AttrSecurityDomain); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrSecurityDomain); } } public string Server { get { return FetchString(SecAttributeKey.AttrServer); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrServer); } } public SecProtocol Protocol { get { return SecProtocolKeys.ToSecProtocol(Fetch(SecAttributeKey.AttrProtocol)); } set { SetValue(SecProtocolKeys.FromSecProtocol(value), SecAttributeKey.AttrProtocol); } } public SecAuthenticationType AuthenticationType { get { IntPtr intPtr = Fetch(SecAttributeKey.AttrAuthenticationType); if (intPtr == IntPtr.Zero) { return SecAuthenticationType.Default; } return KeysAuthenticationType.ToSecAuthenticationType(intPtr); } set { SetValue(KeysAuthenticationType.FromSecAuthenticationType(value), SecAttributeKey.AttrAuthenticationType); } } public int Port { get { return FetchNumber(SecAttributeKey.AttrPort).Int32Value; } set { SetValue(new NSNumber(value), SecAttributeKey.AttrPort); } } public string Path { get { return FetchString(SecAttributeKey.AttrPath); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrPath); } } public string Subject => FetchString(SecAttributeKey.AttrSubject); public NSData Issuer => FetchData(SecAttributeKey.AttrIssuer); public NSData SerialNumber => FetchData(SecAttributeKey.AttrSerialNumber); public NSData SubjectKeyID => FetchData(SecAttributeKey.AttrSubjectKeyID); public NSData PublicKeyHash => FetchData(SecAttributeKey.AttrPublicKeyHash); public NSNumber CertificateType => FetchNumber(SecAttributeKey.AttrCertificateType); public NSNumber CertificateEncoding => FetchNumber(SecAttributeKey.AttrCertificateEncoding); public SecKeyClass KeyClass { get { IntPtr intPtr = Fetch(SecAttributeKey.AttrKeyClass); if (intPtr == ClassKeys.Public) { return SecKeyClass.Public; } if (intPtr == ClassKeys.Private) { return SecKeyClass.Private; } if (intPtr == ClassKeys.Symmetric) { return SecKeyClass.Symmetric; } throw new Exception("Unknown value"); } set { SetValue(value switch { SecKeyClass.Private => ClassKeys.Private, SecKeyClass.Public => ClassKeys.Public, _ => ClassKeys.Symmetric, }, SecAttributeKey.AttrKeyClass); } } public string ApplicationLabel { get { return FetchString(SecAttributeKey.AttrApplicationLabel); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrApplicationLabel); } } public bool IsPermanent { get { return Fetch(SecAttributeKey.AttrIsPermanent) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrIsPermanent); } } public NSData ApplicationTag { get { return FetchData(SecAttributeKey.AttrApplicationTag); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecAttributeKey.AttrApplicationTag); } } public SecKeyType KeyType { get { if (Fetch(SecAttributeKey.AttrKeyType) == KeyTypeKeys.RSA) { return SecKeyType.RSA; } return SecKeyType.EC; } set { SetValue((value == SecKeyType.RSA) ? KeyTypeKeys.RSA : KeyTypeKeys.EC, SecAttributeKey.AttrKeyType); } } public int KeySizeInBits { get { return FetchNumber(SecAttributeKey.AttrKeySizeInBits).Int32Value; } set { SetValue(new NSNumber(value), SecAttributeKey.AttrKeySizeInBits); } } public int EffectiveKeySize { get { return FetchNumber(SecAttributeKey.AttrEffectiveKeySize).Int32Value; } set { SetValue(new NSNumber(value), SecAttributeKey.AttrEffectiveKeySize); } } public bool CanEncrypt { get { return Fetch(SecAttributeKey.AttrCanEncrypt) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanEncrypt); } } public bool CanDecrypt { get { return Fetch(SecAttributeKey.AttrCanDecrypt) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanDecrypt); } } public bool CanDerive { get { return Fetch(SecAttributeKey.AttrCanDerive) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanDerive); } } public bool CanSign { get { return Fetch(SecAttributeKey.AttrCanSign) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanSign); } } public bool CanVerify { get { return Fetch(SecAttributeKey.AttrCanVerify) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanVerify); } } public bool CanWrap { get { return Fetch(SecAttributeKey.AttrCanWrap) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanWrap); } } public bool CanUnwrap { get { return Fetch(SecAttributeKey.AttrCanUnwrap) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecAttributeKey.AttrCanUnwrap); } } public string AccessGroup { get { return FetchString(SecAttributeKey.AttrAccessGroup); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecAttributeKey.AttrAccessGroup); } } public SecPolicy MatchPolicy { get { return new SecPolicy(Fetch(SecItem.MatchPolicy)); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value.Handle, SecItem.MatchPolicy); } } public NSArray MatchItemList { get { return (NSArray)Runtime.GetNSObject(Fetch(SecItem.MatchItemList)); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecItem.MatchItemList); } } public NSData[] MatchIssuers { set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(NSArray.FromNSObjects(value), SecItem.MatchIssuers); } } public string MatchEmailAddressIfPresent { get { return FetchString(SecItem.MatchEmailAddressIfPresent); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecItem.MatchEmailAddressIfPresent); } } public string MatchSubjectContains { get { return FetchString(SecItem.MatchSubjectContains); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(new NSString(value), SecItem.MatchSubjectContains); } } public bool MatchCaseInsensitive { get { return Fetch(SecItem.MatchCaseInsensitive) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecItem.MatchCaseInsensitive); } } public bool MatchTrustedOnly { get { return Fetch(SecItem.MatchTrustedOnly) == CFBoolean.True.Handle; } set { SetValue(CFBoolean.FromBoolean(value).Handle, SecItem.MatchTrustedOnly); } } public NSDate MatchValidOnDate { get { return (NSDate)Runtime.GetNSObject(Fetch(SecItem.MatchValidOnDate)); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecItem.MatchValidOnDate); } } public NSData ValueData { get { return FetchData(SecItem.ValueData); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecItem.ValueData); } } public NSObject ValueRef { get { return FetchObject(SecItem.ValueRef); } set { if (value == null) { throw new ArgumentNullException("value"); } SetValue(value, SecItem.ValueRef); } } internal SecRecord(NSMutableDictionary dict) { queryDict = dict; } public SecRecord(SecKind secKind) { IntPtr intPtr = SecClass.FromSecKind(secKind); if (intPtr == SecClass.Identity) { queryDict = new NSMutableDictionary(); } else { queryDict = NSMutableDictionary.LowlevelFromObjectAndKey(intPtr, SecClass.SecClassKey); } } public SecRecord Clone() { return new SecRecord(NSMutableDictionary.FromDictionary(queryDict)); } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } public virtual void Dispose(bool disposing) { if (queryDict != null && disposing) { queryDict.Dispose(); queryDict = null; } } ~SecRecord() { Dispose(disposing: false); } private IntPtr Fetch(IntPtr key) { return queryDict.LowlevelObjectForKey(key); } private NSObject FetchObject(IntPtr key) { return Runtime.GetNSObject(queryDict.LowlevelObjectForKey(key)); } private string FetchString(IntPtr key) { return (NSString)Runtime.GetNSObject(queryDict.LowlevelObjectForKey(key)); } private NSNumber FetchNumber(IntPtr key) { return (NSNumber)Runtime.GetNSObject(queryDict.LowlevelObjectForKey(key)); } private NSData FetchData(IntPtr key) { return (NSData)Runtime.GetNSObject(queryDict.LowlevelObjectForKey(key)); } private void SetValue(NSObject val, IntPtr key) { queryDict.LowlevelSetObject(val, key); } private void SetValue(IntPtr val, IntPtr key) { queryDict.LowlevelSetObject(val, key); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecStatusCode.cs ================================================ namespace Security; public enum SecStatusCode { Success = 0, Unimplemented = -4, Param = -50, Allocate = -108, NotAvailable = -25291, ReadOnly = -25292, AuthFailed = -25293, NoSuchKeyChain = -25294, InvalidKeyChain = -25295, DuplicateKeyChain = -25296, DuplicateItem = -25299, ItemNotFound = -25300, InteractionNotAllowed = -25308, Decode = -26275 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecTrust.cs ================================================ using System; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using CoreFoundation; using Foundation; using ObjCRuntime; namespace Security; public class SecTrust : INativeObject, IDisposable { private IntPtr handle; public int Count { get { if (handle == IntPtr.Zero) { return 0; } return (int)SecTrustGetCertificateCount(handle); } } public SecCertificate this[int index] { get { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } if (index < 0 || index >= Count) { throw new ArgumentOutOfRangeException("index"); } return new SecCertificate(SecTrustGetCertificateAtIndex(handle, index)); } } public IntPtr Handle => handle; internal SecTrust(IntPtr handle) : this(handle, owns: false) { } [Preserve(Conditional = true)] internal SecTrust(IntPtr handle, bool owns) { if (handle == IntPtr.Zero) { throw new Exception("Invalid handle"); } this.handle = handle; if (!owns) { CFObject.CFRetain(handle); } } [DllImport("/System/Library/Frameworks/Security.framework/Security", EntryPoint = "SecTrustGetTypeID")] public static extern int GetTypeID(); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecTrustCreateWithCertificates(IntPtr certOrCertArray, IntPtr policies, out IntPtr sectrustref); public SecTrust(X509Certificate certificate, SecPolicy policy) { if (certificate == null) { throw new ArgumentNullException("certificate"); } using SecCertificate secCertificate = new SecCertificate(certificate); Initialize(secCertificate.Handle, policy); } public SecTrust(X509Certificate2 certificate, SecPolicy policy) { if (certificate == null) { throw new ArgumentNullException("certificate"); } using SecCertificate secCertificate = new SecCertificate(certificate); Initialize(secCertificate.Handle, policy); } public SecTrust(X509CertificateCollection certificates, SecPolicy policy) { if (certificates == null) { throw new ArgumentNullException("certificates"); } SecCertificate[] array = new SecCertificate[certificates.Count]; int num = 0; foreach (X509Certificate certificate in certificates) { array[num++] = new SecCertificate(certificate); } Initialize(array, policy); } public SecTrust(X509Certificate2Collection certificates, SecPolicy policy) { if (certificates == null) { throw new ArgumentNullException("certificates"); } SecCertificate[] array = new SecCertificate[certificates.Count]; int num = 0; X509Certificate2Enumerator enumerator = certificates.GetEnumerator(); while (enumerator.MoveNext()) { X509Certificate2 current = enumerator.Current; array[num++] = new SecCertificate(current); } Initialize(array, policy); } private void Initialize(SecCertificate[] array, SecPolicy policy) { using CFArray cFArray = CFArray.FromNativeObjects(array); Initialize(cFArray.Handle, policy); } private void Initialize(IntPtr certHandle, SecPolicy policy) { if (policy == null) { throw new ArgumentNullException("policy"); } SecStatusCode secStatusCode = SecTrustCreateWithCertificates(certHandle, policy.Handle, out handle); if (secStatusCode != 0) { throw new ArgumentException(secStatusCode.ToString()); } } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecTrustEvaluate(IntPtr trust, out SecTrustResult result); public SecTrustResult Evaluate() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } SecTrustResult result; SecStatusCode secStatusCode = SecTrustEvaluate(handle, out result); if (secStatusCode != 0) { throw new InvalidOperationException(secStatusCode.ToString()); } return result; } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern long SecTrustGetCertificateCount(IntPtr trust); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecTrustGetCertificateAtIndex(IntPtr trust, long ix); [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecTrustCopyPublicKey(IntPtr trust); public SecKey GetPublicKey() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } return new SecKey(SecTrustCopyPublicKey(handle), owns: true); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern IntPtr SecTrustCopyExceptions(IntPtr trust); public NSData GetExceptions() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } return new NSData(SecTrustCopyExceptions(handle), owns: false); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern bool SecTrustSetExceptions(IntPtr trust, IntPtr exceptions); public bool SetExceptions(NSData data) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } IntPtr exceptions = data?.Handle ?? IntPtr.Zero; return SecTrustSetExceptions(handle, exceptions); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern double SecTrustGetVerifyTime(IntPtr trust); public double GetVerifyTime() { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } return SecTrustGetVerifyTime(handle); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecTrustSetVerifyDate(IntPtr trust, IntPtr verifyDate); public SecStatusCode SetVerifyDate(DateTime date) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } using NSDate nSDate = (NSDate)date; return SecTrustSetVerifyDate(handle, nSDate.Handle); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecTrustSetAnchorCertificates(IntPtr trust, IntPtr anchorCertificates); public SecStatusCode SetAnchorCertificates(X509CertificateCollection certificates) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } if (certificates == null) { return SecTrustSetAnchorCertificates(handle, IntPtr.Zero); } SecCertificate[] array = new SecCertificate[certificates.Count]; int num = 0; foreach (X509Certificate certificate in certificates) { array[num++] = new SecCertificate(certificate); } return SetAnchorCertificates(array); } public SecStatusCode SetAnchorCertificates(X509Certificate2Collection certificates) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } if (certificates == null) { return SecTrustSetAnchorCertificates(handle, IntPtr.Zero); } SecCertificate[] array = new SecCertificate[certificates.Count]; int num = 0; X509Certificate2Enumerator enumerator = certificates.GetEnumerator(); while (enumerator.MoveNext()) { X509Certificate2 current = enumerator.Current; array[num++] = new SecCertificate(current); } return SetAnchorCertificates(array); } private SecStatusCode SetAnchorCertificates(SecCertificate[] array) { using CFArray cFArray = CFArray.FromNativeObjects(array); return SecTrustSetAnchorCertificates(handle, cFArray.Handle); } [DllImport("/System/Library/Frameworks/Security.framework/Security")] private static extern SecStatusCode SecTrustSetAnchorCertificatesOnly(IntPtr trust, bool anchorCertificatesOnly); public SecStatusCode SetAnchorCertificatesOnly(bool anchorCertificatesOnly) { if (handle == IntPtr.Zero) { throw new ObjectDisposedException("SecTrust"); } return SecTrustSetAnchorCertificatesOnly(handle, anchorCertificatesOnly); } ~SecTrust() { Dispose(disposing: false); } protected virtual void Dispose(bool disposing) { if (handle != IntPtr.Zero) { CFObject.CFRelease(handle); handle = IntPtr.Zero; } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecTrustResult.cs ================================================ namespace Security; public enum SecTrustResult { Invalid, Proceed, Confirm, Deny, Unspecified, RecoverableTrustFailure, FatalTrustFailure, ResultOtherError } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Security/SecurityException.cs ================================================ using System; namespace Security; public class SecurityException : Exception { private static string ToMessage(SecStatusCode code) { switch (code) { case SecStatusCode.Decode: case SecStatusCode.InteractionNotAllowed: case SecStatusCode.ItemNotFound: case SecStatusCode.DuplicateItem: case SecStatusCode.NotAvailable: case SecStatusCode.Allocate: case SecStatusCode.Param: case SecStatusCode.Unimplemented: case SecStatusCode.Success: return code.ToString(); default: return $"Unknown error: 0x{code:x}"; } } public SecurityException(SecStatusCode code) : base(ToMessage(code)) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Trampolines.cs ================================================ using System; using System.Runtime.InteropServices; using AppKit; using AVFoundation; using CoreMedia; using Foundation; using JavaScriptCore; using ObjCRuntime; using WebKit; internal static class Trampolines { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V0(IntPtr block, IntPtr obj); internal static class SDActionArity1V0 { internal static readonly DActionArity1V0 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V0))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(obj)); } } internal delegate void DNSAction(IntPtr block); internal static class SDNSAction { internal static readonly DNSAction Handler = TNSAction; [MonoPInvokeCallback(typeof(DNSAction))] private unsafe static void TNSAction(IntPtr block) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSAction)((BlockLiteral*)block)->Target)?.Invoke(); } } internal delegate void DNSWindowCompletionHandler(IntPtr block, IntPtr window, IntPtr error); internal static class SDNSWindowCompletionHandler { internal static readonly DNSWindowCompletionHandler Handler = TNSWindowCompletionHandler; [MonoPInvokeCallback(typeof(DNSWindowCompletionHandler))] private unsafe static void TNSWindowCompletionHandler(IntPtr block, IntPtr window, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSWindowCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke((NSWindow)Runtime.GetNSObject(window), (NSError)Runtime.GetNSObject(error)); } } internal delegate void DNSDocumentCompletionHandler(IntPtr block, IntPtr nsErrorPointerOrZero); internal static class SDNSDocumentCompletionHandler { internal static readonly DNSDocumentCompletionHandler Handler = TNSDocumentCompletionHandler; [MonoPInvokeCallback(typeof(DNSDocumentCompletionHandler))] private unsafe static void TNSDocumentCompletionHandler(IntPtr block, IntPtr nsErrorPointerOrZero) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSDocumentCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke(nsErrorPointerOrZero); } } internal delegate void DOpenDocumentCompletionHandler(IntPtr block, IntPtr document, bool documentWasAlreadyOpen, IntPtr error); internal static class SDOpenDocumentCompletionHandler { internal static readonly DOpenDocumentCompletionHandler Handler = TOpenDocumentCompletionHandler; [MonoPInvokeCallback(typeof(DOpenDocumentCompletionHandler))] private unsafe static void TOpenDocumentCompletionHandler(IntPtr block, IntPtr document, bool documentWasAlreadyOpen, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((OpenDocumentCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke((NSDocument)Runtime.GetNSObject(document), documentWasAlreadyOpen, (NSError)Runtime.GetNSObject(error)); } } internal delegate IntPtr DNSDraggingItemImagesContentProvider(IntPtr block); internal static class SDNSDraggingItemImagesContentProvider { internal static readonly DNSDraggingItemImagesContentProvider Handler = TNSDraggingItemImagesContentProvider; [MonoPInvokeCallback(typeof(DNSDraggingItemImagesContentProvider))] private unsafe static IntPtr TNSDraggingItemImagesContentProvider(IntPtr block) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; return NSArray.FromNSObjects(((NSDraggingItemImagesContentProvider)((BlockLiteral*)block)->Target)()).Handle; } } internal delegate void DNSDraggingEnumerator(IntPtr block, IntPtr draggingItem, int idx, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSDraggingEnumerator { internal static readonly DNSDraggingEnumerator Handler = TNSDraggingEnumerator; [MonoPInvokeCallback(typeof(DNSDraggingEnumerator))] private unsafe static void TNSDraggingEnumerator(IntPtr block, IntPtr draggingItem, int idx, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSDraggingEnumerator)((BlockLiteral*)block)->Target)?.Invoke((NSDraggingItem)Runtime.GetNSObject(draggingItem), idx, ref stop); } } internal delegate void DGlobalEventHandler(IntPtr block, IntPtr theEvent); internal static class SDGlobalEventHandler { internal static readonly DGlobalEventHandler Handler = TGlobalEventHandler; [MonoPInvokeCallback(typeof(DGlobalEventHandler))] private unsafe static void TGlobalEventHandler(IntPtr block, IntPtr theEvent) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((GlobalEventHandler)((BlockLiteral*)block)->Target)?.Invoke((NSEvent)Runtime.GetNSObject(theEvent)); } } internal delegate IntPtr DLocalEventHandler(IntPtr block, IntPtr theEvent); internal static class SDLocalEventHandler { internal static readonly DLocalEventHandler Handler = TLocalEventHandler; [MonoPInvokeCallback(typeof(DLocalEventHandler))] private unsafe static IntPtr TLocalEventHandler(IntPtr block, IntPtr theEvent) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; return ((LocalEventHandler)((BlockLiteral*)block)->Target)((NSEvent)Runtime.GetNSObject(theEvent))?.Handle ?? IntPtr.Zero; } } internal delegate void DNSEventTrackHandler(IntPtr block, double gestureAmount, NSEventPhase eventPhase, bool isComplete, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSEventTrackHandler { internal static readonly DNSEventTrackHandler Handler = TNSEventTrackHandler; [MonoPInvokeCallback(typeof(DNSEventTrackHandler))] private unsafe static void TNSEventTrackHandler(IntPtr block, double gestureAmount, NSEventPhase eventPhase, bool isComplete, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSEventTrackHandler)((BlockLiteral*)block)->Target)?.Invoke(gestureAmount, eventPhase, isComplete, ref stop); } } internal delegate void DNSSavePanelComplete(IntPtr block, int result); internal static class SDNSSavePanelComplete { internal static readonly DNSSavePanelComplete Handler = TNSSavePanelComplete; [MonoPInvokeCallback(typeof(DNSSavePanelComplete))] private unsafe static void TNSSavePanelComplete(IntPtr block, int result) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSSavePanelComplete)((BlockLiteral*)block)->Target)?.Invoke(result); } } internal delegate void DNSTableViewRowHandler(IntPtr block, IntPtr rowView, int row); internal static class SDNSTableViewRowHandler { internal static readonly DNSTableViewRowHandler Handler = TNSTableViewRowHandler; [MonoPInvokeCallback(typeof(DNSTableViewRowHandler))] private unsafe static void TNSTableViewRowHandler(IntPtr block, IntPtr rowView, int row) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSTableViewRowHandler)((BlockLiteral*)block)->Target)?.Invoke((NSTableRowView)Runtime.GetNSObject(rowView), row); } } internal delegate void DNSWorkspaceUrlHandler(IntPtr block, IntPtr newUrls, IntPtr error); internal static class SDNSWorkspaceUrlHandler { internal static readonly DNSWorkspaceUrlHandler Handler = TNSWorkspaceUrlHandler; [MonoPInvokeCallback(typeof(DNSWorkspaceUrlHandler))] private unsafe static void TNSWorkspaceUrlHandler(IntPtr block, IntPtr newUrls, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSWorkspaceUrlHandler)((BlockLiteral*)block)->Target)?.Invoke((NSDictionary)Runtime.GetNSObject(newUrls), (NSError)Runtime.GetNSObject(error)); } } internal delegate void DNSSharingServiceHandler(IntPtr block); internal static class SDNSSharingServiceHandler { internal static readonly DNSSharingServiceHandler Handler = TNSSharingServiceHandler; [MonoPInvokeCallback(typeof(DNSSharingServiceHandler))] private unsafe static void TNSSharingServiceHandler(IntPtr block) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSSharingServiceHandler)((BlockLiteral*)block)->Target)?.Invoke(); } } internal delegate void DAVAssetImageGeneratorCompletionHandler(IntPtr block, CMTime requestedTime, IntPtr imageRef, CMTime actualTime, AVAssetImageGeneratorResult result, IntPtr error); internal static class SDAVAssetImageGeneratorCompletionHandler { internal static readonly DAVAssetImageGeneratorCompletionHandler Handler = TAVAssetImageGeneratorCompletionHandler; [MonoPInvokeCallback(typeof(DAVAssetImageGeneratorCompletionHandler))] private unsafe static void TAVAssetImageGeneratorCompletionHandler(IntPtr block, CMTime requestedTime, IntPtr imageRef, CMTime actualTime, AVAssetImageGeneratorResult result, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((AVAssetImageGeneratorCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke(requestedTime, imageRef, actualTime, result, (NSError)Runtime.GetNSObject(error)); } } internal delegate void DAVCompletionHandler(IntPtr block); internal static class SDAVCompletionHandler { internal static readonly DAVCompletionHandler Handler = TAVCompletionHandler; [MonoPInvokeCallback(typeof(DAVCompletionHandler))] private unsafe static void TAVCompletionHandler(IntPtr block) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((AVCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke(); } } internal delegate void DAVCaptureCompletionHandler(IntPtr block, IntPtr imageDataSampleBuffer, IntPtr error); internal static class SDAVCaptureCompletionHandler { internal static readonly DAVCaptureCompletionHandler Handler = TAVCaptureCompletionHandler; [MonoPInvokeCallback(typeof(DAVCaptureCompletionHandler))] private unsafe static void TAVCaptureCompletionHandler(IntPtr block, IntPtr imageDataSampleBuffer, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((AVCaptureCompletionHandler)((BlockLiteral*)block)->Target)?.Invoke(new CMSampleBuffer(imageDataSampleBuffer, owns: false), (NSError)Runtime.GetNSObject(error)); } } internal delegate void DAVTimeHandler(IntPtr block, CMTime time); internal static class SDAVTimeHandler { internal static readonly DAVTimeHandler Handler = TAVTimeHandler; [MonoPInvokeCallback(typeof(DAVTimeHandler))] private unsafe static void TAVTimeHandler(IntPtr block, CMTime time) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((AVTimeHandler)((BlockLiteral*)block)->Target)?.Invoke(time); } } internal delegate void DAVCompletion(IntPtr block, bool finished); internal static class SDAVCompletion { internal static readonly DAVCompletion Handler = TAVCompletion; [MonoPInvokeCallback(typeof(DAVCompletion))] private unsafe static void TAVCompletion(IntPtr block, bool finished) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((AVCompletion)((BlockLiteral*)block)->Target)?.Invoke(finished); } } internal delegate long DNSComparator(IntPtr block, IntPtr obj1, IntPtr obj2); internal static class SDNSComparator { internal static readonly DNSComparator Handler = TNSComparator; [MonoPInvokeCallback(typeof(DNSComparator))] private unsafe static long TNSComparator(IntPtr block, IntPtr obj1, IntPtr obj2) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; return ((NSComparator)((BlockLiteral*)block)->Target)(Runtime.GetNSObject(obj1), Runtime.GetNSObject(obj2)); } } internal delegate void DNSAttributedRangeCallback(IntPtr block, IntPtr attrs, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSAttributedRangeCallback { internal static readonly DNSAttributedRangeCallback Handler = TNSAttributedRangeCallback; [MonoPInvokeCallback(typeof(DNSAttributedRangeCallback))] private unsafe static void TNSAttributedRangeCallback(IntPtr block, IntPtr attrs, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSAttributedRangeCallback)((BlockLiteral*)block)->Target)?.Invoke((NSDictionary)Runtime.GetNSObject(attrs), range, ref stop); } } internal delegate void DNSAttributedStringCallback(IntPtr block, IntPtr value, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSAttributedStringCallback { internal static readonly DNSAttributedStringCallback Handler = TNSAttributedStringCallback; [MonoPInvokeCallback(typeof(DNSAttributedStringCallback))] private unsafe static void TNSAttributedStringCallback(IntPtr block, IntPtr value, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSAttributedStringCallback)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObject(value), range, ref stop); } } internal delegate void DNSFileHandleUpdateHandler(IntPtr block, IntPtr handle); internal static class SDNSFileHandleUpdateHandler { internal static readonly DNSFileHandleUpdateHandler Handler = TNSFileHandleUpdateHandler; [MonoPInvokeCallback(typeof(DNSFileHandleUpdateHandler))] private unsafe static void TNSFileHandleUpdateHandler(IntPtr block, IntPtr handle) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSFileHandleUpdateHandler)((BlockLiteral*)block)->Target)?.Invoke((NSFileHandle)Runtime.GetNSObject(handle)); } } internal delegate void DNSExpressionHandler(IntPtr block, IntPtr evaluatedObject, IntPtr expressions, IntPtr context); internal static class SDNSExpressionHandler { internal static readonly DNSExpressionHandler Handler = TNSExpressionHandler; [MonoPInvokeCallback(typeof(DNSExpressionHandler))] private unsafe static void TNSExpressionHandler(IntPtr block, IntPtr evaluatedObject, IntPtr expressions, IntPtr context) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSExpressionHandler)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObject(evaluatedObject), NSArray.ArrayFromHandle(expressions), (NSMutableDictionary)Runtime.GetNSObject(context)); } } internal delegate void DNSLingusticEnumerator(IntPtr block, IntPtr tag, NSRange tokenRange, NSRange sentenceRange, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSLingusticEnumerator { internal static readonly DNSLingusticEnumerator Handler = TNSLingusticEnumerator; [MonoPInvokeCallback(typeof(DNSLingusticEnumerator))] private unsafe static void TNSLingusticEnumerator(IntPtr block, IntPtr tag, NSRange tokenRange, NSRange sentenceRange, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSLingusticEnumerator)((BlockLiteral*)block)->Target)?.Invoke((NSString)Runtime.GetNSObject(tag), tokenRange, sentenceRange, ref stop); } } internal delegate void DNSSetEnumerator(IntPtr block, IntPtr obj, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSSetEnumerator { internal static readonly DNSSetEnumerator Handler = TNSSetEnumerator; [MonoPInvokeCallback(typeof(DNSSetEnumerator))] private unsafe static void TNSSetEnumerator(IntPtr block, IntPtr obj, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSSetEnumerator)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObject(obj), ref stop); } } internal delegate void DNSUrlConnectionDataResponse(IntPtr block, IntPtr response, IntPtr data, IntPtr error); internal static class SDNSUrlConnectionDataResponse { internal static readonly DNSUrlConnectionDataResponse Handler = TNSUrlConnectionDataResponse; [MonoPInvokeCallback(typeof(DNSUrlConnectionDataResponse))] private unsafe static void TNSUrlConnectionDataResponse(IntPtr block, IntPtr response, IntPtr data, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSUrlConnectionDataResponse)((BlockLiteral*)block)->Target)?.Invoke((NSUrlResponse)Runtime.GetNSObject(response), (NSData)Runtime.GetNSObject(data), (NSError)Runtime.GetNSObject(error)); } } internal delegate void DNSRangeIterator(IntPtr block, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop); internal static class SDNSRangeIterator { internal static readonly DNSRangeIterator Handler = TNSRangeIterator; [MonoPInvokeCallback(typeof(DNSRangeIterator))] private unsafe static void TNSRangeIterator(IntPtr block, NSRange range, [MarshalAs(UnmanagedType.I1)] ref bool stop) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSRangeIterator)((BlockLiteral*)block)->Target)?.Invoke(range, ref stop); } } internal delegate void DNSNotificationHandler(IntPtr block, IntPtr notification); internal static class SDNSNotificationHandler { internal static readonly DNSNotificationHandler Handler = TNSNotificationHandler; [MonoPInvokeCallback(typeof(DNSNotificationHandler))] private unsafe static void TNSNotificationHandler(IntPtr block, IntPtr notification) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSNotificationHandler)((BlockLiteral*)block)->Target)?.Invoke((NSNotification)Runtime.GetNSObject(notification)); } } internal delegate void DNSFileCoordinatorWorker(IntPtr block, IntPtr newUrl); internal static class SDNSFileCoordinatorWorker { internal static readonly DNSFileCoordinatorWorker Handler = TNSFileCoordinatorWorker; [MonoPInvokeCallback(typeof(DNSFileCoordinatorWorker))] private unsafe static void TNSFileCoordinatorWorker(IntPtr block, IntPtr newUrl) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSFileCoordinatorWorker)((BlockLiteral*)block)->Target)?.Invoke((NSUrl)Runtime.GetNSObject(newUrl)); } } internal delegate void DNSFileCoordinatorWorkerRW(IntPtr block, IntPtr newReadingUrl, IntPtr newWritingUrl); internal static class SDNSFileCoordinatorWorkerRW { internal static readonly DNSFileCoordinatorWorkerRW Handler = TNSFileCoordinatorWorkerRW; [MonoPInvokeCallback(typeof(DNSFileCoordinatorWorkerRW))] private unsafe static void TNSFileCoordinatorWorkerRW(IntPtr block, IntPtr newReadingUrl, IntPtr newWritingUrl) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((NSFileCoordinatorWorkerRW)((BlockLiteral*)block)->Target)?.Invoke((NSUrl)Runtime.GetNSObject(newReadingUrl), (NSUrl)Runtime.GetNSObject(newWritingUrl)); } } internal delegate bool DNSEnumerateErrorHandler(IntPtr block, IntPtr url, IntPtr error); internal static class SDNSEnumerateErrorHandler { internal static readonly DNSEnumerateErrorHandler Handler = TNSEnumerateErrorHandler; [MonoPInvokeCallback(typeof(DNSEnumerateErrorHandler))] private unsafe static bool TNSEnumerateErrorHandler(IntPtr block, IntPtr url, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; return ((NSEnumerateErrorHandler)((BlockLiteral*)block)->Target)((NSUrl)Runtime.GetNSObject(url), (NSError)Runtime.GetNSObject(error)); } } internal delegate bool DNSPredicateEvaluator(IntPtr block, IntPtr evaluatedObject, IntPtr bindings); internal static class SDNSPredicateEvaluator { internal static readonly DNSPredicateEvaluator Handler = TNSPredicateEvaluator; [MonoPInvokeCallback(typeof(DNSPredicateEvaluator))] private unsafe static bool TNSPredicateEvaluator(IntPtr block, IntPtr evaluatedObject, IntPtr bindings) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; return ((NSPredicateEvaluator)((BlockLiteral*)block)->Target)(Runtime.GetNSObject(evaluatedObject), (NSDictionary)Runtime.GetNSObject(bindings)); } } #region [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DAction(IntPtr block); internal static class SDAction { internal static readonly DAction Handler = Invoke; [MonoPInvokeCallback(typeof(DAction))] private unsafe static void Invoke(IntPtr block) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(); } } internal sealed class NIDAction : TrampolineBlockBase { private DAction invoker; public unsafe NIDAction(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDAction((BlockLiteral*)(void*)block).Invoke); } private void Invoke() { invoker(base.BlockPointer); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V31(IntPtr block, IntPtr obj); internal static class SDActionArity1V31 { internal static readonly DActionArity1V31 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V31))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(NSArray.ArrayFromHandle(obj)); } } internal sealed class NIDActionArity1V31 : TrampolineBlockBase { private DActionArity1V31 invoker; public unsafe NIDActionArity1V31(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V31((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSHttpCookie[] obj) { NSArray nSArray = ((obj == null) ? null : NSArray.FromNSObjects(obj)); invoker(base.BlockPointer, nSArray?.Handle ?? IntPtr.Zero); nSArray?.Dispose(); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V96(IntPtr block, IntPtr obj); internal static class SDActionArity1V96 { internal static readonly DActionArity1V96 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V96))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(obj)); } } internal sealed class NIDActionArity1V96 : TrampolineBlockBase { private DActionArity1V96 invoker; public unsafe NIDActionArity1V96(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V96((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSArray obj) { invoker(base.BlockPointer, obj?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V93(IntPtr block, nint obj); internal static class SDActionArity1V93 { internal static readonly DActionArity1V93 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V93))] private unsafe static void Invoke(IntPtr block, nint obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke((WKNavigationActionPolicy)(long)obj); } } public sealed class NIDActionArity1V93 : TrampolineBlockBase { private DActionArity1V93 invoker; public unsafe NIDActionArity1V93(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V93((BlockLiteral*)(void*)block).Invoke); } private void Invoke(WKNavigationActionPolicy obj) { invoker(base.BlockPointer, (nint)(long)obj); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V94(IntPtr block, nint obj); internal static class SDActionArity1V94 { internal static readonly DActionArity1V94 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V94))] private unsafe static void Invoke(IntPtr block, nint obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke((WKNavigationResponsePolicy)(long)obj); } } internal sealed class NIDActionArity1V94 : TrampolineBlockBase { private DActionArity1V94 invoker; public unsafe NIDActionArity1V94(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V94((BlockLiteral*)(void*)block).Invoke); } private void Invoke(WKNavigationResponsePolicy obj) { invoker(base.BlockPointer, (nint)(long)obj); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V85(IntPtr block, nint arg1, IntPtr arg2); internal static class SDActionArity2V85 { internal static readonly DActionArity2V85 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity2V85))] private unsafe static void Invoke(IntPtr block, nint arg1, IntPtr arg2) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke((WKNavigationActionPolicy)(long)arg1, Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V85 : TrampolineBlockBase { private DActionArity2V85 invoker; public unsafe NIDActionArity2V85(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V85((BlockLiteral*)(void*)block).Invoke); } private void Invoke(WKNavigationActionPolicy arg1, WKWebpagePreferences arg2) { invoker(base.BlockPointer, (nint)(long)arg1, arg2?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V44(IntPtr block, nint arg1, IntPtr arg2); internal static class SDActionArity2V44 { internal static readonly DActionArity2V44 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity2V44))] private unsafe static void Invoke(IntPtr block, nint arg1, IntPtr arg2) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke((NSUrlSessionAuthChallengeDisposition)(long)arg1, Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V44 : TrampolineBlockBase { private DActionArity2V44 invoker; public unsafe NIDActionArity2V44(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V44((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSUrlSessionAuthChallengeDisposition arg1, NSUrlCredential arg2) { invoker(base.BlockPointer, (nint)(long)arg1, arg2?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V44(IntPtr block, IntPtr obj); internal static class SDActionArity1V44 { internal static readonly DActionArity1V44 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V44))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(NSString.FromHandle(obj)); } } internal sealed class NIDActionArity1V44 : TrampolineBlockBase { private DActionArity1V44 invoker; public unsafe NIDActionArity1V44(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V44((BlockLiteral*)(void*)block).Invoke); } private void Invoke(string obj) { IntPtr intPtr = NSString.CreateNative(obj); invoker(base.BlockPointer, intPtr); NSString.ReleaseNative(intPtr); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V95(IntPtr block, IntPtr obj); internal static class SDActionArity1V95 { internal static readonly DActionArity1V95 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V95))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(NSArray.ArrayFromHandle(obj)); } } internal sealed class NIDActionArity1V95 : TrampolineBlockBase { private DActionArity1V95 invoker; public unsafe NIDActionArity1V95(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V95((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSUrl[] obj) { NSArray nSArray = ((obj == null) ? null : NSArray.FromNSObjects(obj)); invoker(base.BlockPointer, nSArray?.Handle ?? IntPtr.Zero); nSArray?.Dispose(); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(JSContextExceptionHandler))] internal delegate void DJSContextExceptionHandler(IntPtr block, IntPtr context, IntPtr exception); internal static class SDJSContextExceptionHandler { internal static readonly DJSContextExceptionHandler Handler = Invoke; [MonoPInvokeCallback(typeof(DJSContextExceptionHandler))] private unsafe static void Invoke(IntPtr block, IntPtr context, IntPtr exception) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((JSContextExceptionHandler)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(context), Runtime.GetNSObjectTx(exception)); } } internal sealed class NIDJSContextExceptionHandler { [Preserve(Conditional = true)] public unsafe static JSContextExceptionHandler? Create(IntPtr block) { if (block == IntPtr.Zero) return null; BlockLiteral* ptr = (BlockLiteral*)(void*)block; JSContextExceptionHandler jSContextExceptionHandler = (JSContextExceptionHandler)(ptr->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr(ptr->global_handle).Target : GCHandle.FromIntPtr(ptr->local_handle).Target); return jSContextExceptionHandler; } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(JSPromiseCreationExecutor))] internal delegate void DJSPromiseCreationExecutor(IntPtr block, IntPtr resolve, IntPtr rejected); internal static class SDJSPromiseCreationExecutor { internal static readonly DJSPromiseCreationExecutor Handler = Invoke; [MonoPInvokeCallback(typeof(DJSPromiseCreationExecutor))] private unsafe static void Invoke(IntPtr block, IntPtr resolve, IntPtr rejected) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((JSPromiseCreationExecutor)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(resolve), Runtime.GetNSObjectTx(rejected)); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V84(IntPtr block, IntPtr arg1, IntPtr arg2); internal static class SDActionArity2V84 { internal static readonly DActionArity2V84 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity2V84))] private unsafe static void Invoke(IntPtr block, IntPtr arg1, IntPtr arg2) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(arg1), Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V84 : TrampolineBlockBase { private DActionArity2V84 invoker; public unsafe NIDActionArity2V84(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V84((BlockLiteral*)(void*)block).Invoke); } private void Invoke(WKContentRuleList arg1, NSError arg2) { invoker(base.BlockPointer, arg1?.Handle ?? IntPtr.Zero, arg2?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V1(IntPtr block, IntPtr obj); internal static class SDActionArity1V1 { internal static readonly DActionArity1V1 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V1))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(NSArray.StringArrayFromHandle(obj)); } } internal sealed class NIDActionArity1V1 : TrampolineBlockBase { private DActionArity1V1 invoker; public unsafe NIDActionArity1V1(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V1((BlockLiteral*)(void*)block).Invoke); } private void Invoke(string[] obj) { NSArray nSArray = ((obj == null) ? null : NSArray.FromStrings(obj)); invoker(base.BlockPointer, nSArray?.Handle ?? IntPtr.Zero); nSArray?.Dispose(); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V10(IntPtr block, IntPtr obj); internal static class SDActionArity1V10 { internal static readonly DActionArity1V10 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V10))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(obj)); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V11(IntPtr block, IntPtr obj); internal static class SDActionArity1V11 { internal static readonly DActionArity1V11 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity1V11))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(obj)); } } internal sealed class NIDActionArity1V11 : TrampolineBlockBase { private DActionArity1V11 invoker; public unsafe NIDActionArity1V11(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) return null; Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V11((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSError obj) { invoker(base.BlockPointer, obj?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(WKJavascriptEvaluationResult))] internal delegate void DWKJavascriptEvaluationResult(IntPtr block, IntPtr result, IntPtr error); internal static class SDWKJavascriptEvaluationResult { internal static readonly DWKJavascriptEvaluationResult Handler = Invoke; [MonoPInvokeCallback(typeof(DWKJavascriptEvaluationResult))] private unsafe static void Invoke(IntPtr block, IntPtr result, IntPtr error) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((WKJavascriptEvaluationResult)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(result), Runtime.GetNSObjectTx(error)); } } internal sealed class NIDWKJavascriptEvaluationResult : TrampolineBlockBase { private DWKJavascriptEvaluationResult invoker; public unsafe NIDWKJavascriptEvaluationResult(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static WKJavascriptEvaluationResult? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } WKJavascriptEvaluationResult wKJavascriptEvaluationResult = (WKJavascriptEvaluationResult)TrampolineBlockBase.GetExistingManagedDelegate(block); return wKJavascriptEvaluationResult ?? new WKJavascriptEvaluationResult(new NIDWKJavascriptEvaluationResult((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSObject result, NSError error) { invoker(base.BlockPointer, result?.Handle ?? IntPtr.Zero, error?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V86(IntPtr block, IntPtr arg1, IntPtr arg2); internal static class SDActionArity2V86 { internal static readonly DActionArity2V86 Handler = Invoke; [MonoPInvokeCallback(typeof(DActionArity2V86))] private unsafe static void Invoke(IntPtr block, IntPtr arg1, IntPtr arg2) { BlockLiteral* ptr = (BlockLiteral*)(void*)block; ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(arg1), Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V86 : TrampolineBlockBase { private DActionArity2V86 invoker; public unsafe NIDActionArity2V86(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V86((BlockLiteral*)(void*)block).Invoke); } private void Invoke(NSImage arg1, NSError arg2) { invoker(base.BlockPointer, arg1?.Handle ?? IntPtr.Zero, arg2?.Handle ?? IntPtr.Zero); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V69(IntPtr block, IntPtr arg1, IntPtr arg2); internal static class SDActionArity2V69 { internal static readonly DActionArity2V69 Handler = Invoke; [Preserve(Conditional = true)] [MonoPInvokeCallback(typeof(DActionArity2V69))] private unsafe static void Invoke(IntPtr block, IntPtr arg1, IntPtr arg2) { ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(arg1), Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V69 : TrampolineBlockBase { private DActionArity2V69 invoker; public unsafe NIDActionArity2V69(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V69((BlockLiteral*)block).Invoke); } private void Invoke(NSObject arg1, NSError arg2) { NativeHandle handle = arg1.GetHandle(); NativeHandle handle2 = arg2.GetHandle(); invoker(base.BlockPointer, handle, handle2); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity2V16(IntPtr block, IntPtr arg1, IntPtr arg2); internal static class SDActionArity2V16 { internal static readonly DActionArity2V16 Handler = Invoke; [Preserve(Conditional = true)] [MonoPInvokeCallback(typeof(DActionArity2V16))] private unsafe static void Invoke(IntPtr block, IntPtr arg1, IntPtr arg2) { ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(arg1), Runtime.GetNSObjectTx(arg2)); } } internal sealed class NIDActionArity2V16 : TrampolineBlockBase { private DActionArity2V16 invoker; public unsafe NIDActionArity2V16(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity2V16((BlockLiteral*)block).Invoke); } private void Invoke(NSData arg1, NSError arg2) { NativeHandle handle = arg1.GetHandle(); NativeHandle handle2 = arg2.GetHandle(); invoker(base.BlockPointer, handle, handle2); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V256(IntPtr block, IntPtr obj); internal static class SDActionArity1V256 { internal static readonly DActionArity1V256 Handler = Invoke; [Preserve(Conditional = true)] [MonoPInvokeCallback(typeof(DActionArity1V256))] private unsafe static void Invoke(IntPtr block, IntPtr obj) { ((Action)((BlockLiteral*)block)->Target)?.Invoke(Runtime.GetNSObjectTx(obj)); } } internal sealed class NIDActionArity1V256 : TrampolineBlockBase { private DActionArity1V256 invoker; public unsafe NIDActionArity1V256(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V256((BlockLiteral*)block).Invoke); } private void Invoke(WKFindResult obj) { NativeHandle handle = obj.GetHandle(); invoker(base.BlockPointer, handle); } } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UserDelegateType(typeof(Action))] internal delegate void DActionArity1V2(IntPtr block, bool obj); internal static class SDActionArity1V2 { internal static readonly DActionArity1V2 Handler = Invoke; [Preserve(Conditional = true)] [MonoPInvokeCallback(typeof(DActionArity1V2))] private unsafe static void Invoke(IntPtr block, bool obj) { ((Action)((BlockLiteral*)block)->Target)?.Invoke(obj); } } internal sealed class NIDActionArity1V2 : TrampolineBlockBase { private DActionArity1V2 invoker; public unsafe NIDActionArity1V2(BlockLiteral* block) : base(block) { invoker = block->GetDelegateForBlock(); } [Preserve(Conditional = true)] public unsafe static Action? Create(IntPtr block) { if (block == IntPtr.Zero) { return null; } Action action = (Action)TrampolineBlockBase.GetExistingManagedDelegate(block); return action ?? new Action(new NIDActionArity1V2((BlockLiteral*)block).Invoke); } private void Invoke(bool obj) { invoker(base.BlockPointer, obj); } } #endregion //(ptr->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr(ptr->global_handle).Target : GCHandle.FromIntPtr(ptr->local_handle).Target) } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/CreateWebViewFromRequest.cs ================================================ using Foundation; namespace WebKit; public delegate WebView CreateWebViewFromRequest(WebView sender, NSUrlRequest request); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomAbstractView.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMAbstractView", true)] public class DomAbstractView : DomObject { private static readonly IntPtr selDocumentHandle = Selector.GetHandle("document"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMAbstractView"); private object __mt_Document_var; public override IntPtr ClassHandle => class_ptr; public virtual DomDocument Document { [Export("document")] get { return (DomDocument)(__mt_Document_var = ((!IsDirectBinding) ? ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentHandle))) : ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomAbstractView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomAbstractView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomAbstractView(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Document_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomAttr.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMAttr", true)] public class DomAttr : DomNode { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSpecifiedHandle = Selector.GetHandle("specified"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selSetValue_Handle = Selector.GetHandle("setValue:"); private static readonly IntPtr selOwnerElementHandle = Selector.GetHandle("ownerElement"); private static readonly IntPtr selStyleHandle = Selector.GetHandle("style"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMAttr"); private object __mt_OwnerElement_var; private object __mt_Style_var; public override IntPtr ClassHandle => class_ptr; public new virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual bool Specified { [Export("specified")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSpecifiedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSpecifiedHandle); } } public virtual string Value { [Export("value")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)); } [Export("setValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomElement OwnerElement { [Export("ownerElement")] get { return (DomElement)(__mt_OwnerElement_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerElementHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerElementHandle))))); } } public virtual DomCssStyleDeclaration Style { [Export("style")] get { return (DomCssStyleDeclaration)(__mt_Style_var = ((!IsDirectBinding) ? ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStyleHandle))) : ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStyleHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomAttr(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomAttr(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomAttr(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OwnerElement_var = null; __mt_Style_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCDataSection.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCDATASection", true)] public class DomCDataSection : DomText { private static readonly IntPtr class_ptr = Class.GetHandle("DOMCDATASection"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCDataSection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCDataSection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCDataSection(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCharacterData.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCharacterData", true)] public class DomCharacterData : DomNode { private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selSetData_Handle = Selector.GetHandle("setData:"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selSubstringDataLength_Handle = Selector.GetHandle("substringData:length:"); private static readonly IntPtr selAppendData_Handle = Selector.GetHandle("appendData:"); private static readonly IntPtr selInsertDataData_Handle = Selector.GetHandle("insertData:data:"); private static readonly IntPtr selDeleteDataLength_Handle = Selector.GetHandle("deleteData:length:"); private static readonly IntPtr selReplaceDataLengthData_Handle = Selector.GetHandle("replaceData:length:data:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCharacterData"); public override IntPtr ClassHandle => class_ptr; public virtual string Data { [Export("data")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle)); } [Export("setData:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetData_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetData_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCharacterData(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCharacterData(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCharacterData(IntPtr handle) : base(handle) { } [Export("substringData:length:")] public virtual string SubstringData(uint offset, uint length) { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_UInt32_UInt32(base.Handle, selSubstringDataLength_Handle, offset, length)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_UInt32_UInt32(base.SuperHandle, selSubstringDataLength_Handle, offset, length)); } [Export("appendData:")] public virtual void AppendData(string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendData_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendData_Handle, arg); } NSString.ReleaseNative(arg); } [Export("insertData:data:")] public virtual void InsertData(uint offset, string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32_IntPtr(base.Handle, selInsertDataData_Handle, offset, arg); } else { Messaging.void_objc_msgSendSuper_UInt32_IntPtr(base.SuperHandle, selInsertDataData_Handle, offset, arg); } NSString.ReleaseNative(arg); } [Export("deleteData:length:")] public virtual void DeleteData(uint offset, uint length) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32_UInt32(base.Handle, selDeleteDataLength_Handle, offset, length); } else { Messaging.void_objc_msgSendSuper_UInt32_UInt32(base.SuperHandle, selDeleteDataLength_Handle, offset, length); } } [Export("replaceData:length:data:")] public virtual void ReplaceData(uint offset, uint length, string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32_UInt32_IntPtr(base.Handle, selReplaceDataLengthData_Handle, offset, length, arg); } else { Messaging.void_objc_msgSendSuper_UInt32_UInt32_IntPtr(base.SuperHandle, selReplaceDataLengthData_Handle, offset, length, arg); } NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomComment.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMComment", true)] public class DomComment : DomCharacterData { private static readonly IntPtr class_ptr = Class.GetHandle("DOMComment"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomComment(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomComment(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomComment(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssRule.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCSSRule", true)] public class DomCssRule : DomObject { private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selCssTextHandle = Selector.GetHandle("cssText"); private static readonly IntPtr selSetCssText_Handle = Selector.GetHandle("setCssText:"); private static readonly IntPtr selParentStyleSheetHandle = Selector.GetHandle("parentStyleSheet"); private static readonly IntPtr selParentRuleHandle = Selector.GetHandle("parentRule"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCSSRule"); private object __mt_ParentStyleSheet_var; private object __mt_ParentRule_var; public override IntPtr ClassHandle => class_ptr; public virtual DomCssRuleType Type { [Export("type")] get { if (IsDirectBinding) { return (DomCssRuleType)Messaging.UInt16_objc_msgSend(base.Handle, selTypeHandle); } return (DomCssRuleType)Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selTypeHandle); } } public virtual string CssText { [Export("cssText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCssTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCssTextHandle)); } [Export("setCssText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCssText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCssText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomCssStyleSheet ParentStyleSheet { [Export("parentStyleSheet")] get { return (DomCssStyleSheet)(__mt_ParentStyleSheet_var = ((!IsDirectBinding) ? ((DomCssStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentStyleSheetHandle))) : ((DomCssStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentStyleSheetHandle))))); } } public virtual DomCssRule ParentRule { [Export("parentRule")] get { return (DomCssRule)(__mt_ParentRule_var = ((!IsDirectBinding) ? ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentRuleHandle))) : ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentRuleHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCssRule(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssRule(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssRule(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ParentStyleSheet_var = null; __mt_ParentRule_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssRuleList.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCSSRuleList", true)] public class DomCssRuleList : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCSSRuleList"); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public DomCssRule this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCssRuleList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssRuleList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssRuleList(IntPtr handle) : base(handle) { } [Export("item:")] public virtual DomCssRule GetItem(int index) { if (IsDirectBinding) { return (DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return (DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssRuleType.cs ================================================ namespace WebKit; public enum DomCssRuleType : ushort { Unknown, Style, Charset, Import, Media, FontFace, Page, Variables, WebKitKeyFrames, WebKitKeyFrame } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssStyleDeclaration.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCSSStyleDeclaration", true)] public class DomCssStyleDeclaration : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selCssTextHandle = Selector.GetHandle("cssText"); private static readonly IntPtr selSetCssText_Handle = Selector.GetHandle("setCssText:"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selParentRuleHandle = Selector.GetHandle("parentRule"); private static readonly IntPtr selGetPropertyValue_Handle = Selector.GetHandle("getPropertyValue:"); private static readonly IntPtr selGetPropertyCSSValue_Handle = Selector.GetHandle("getPropertyCSSValue:"); private static readonly IntPtr selRemoveProperty_Handle = Selector.GetHandle("removeProperty:"); private static readonly IntPtr selGetPropertyPriority_Handle = Selector.GetHandle("getPropertyPriority:"); private static readonly IntPtr selSetPropertyValuePriority_Handle = Selector.GetHandle("setProperty:value:priority:"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr selGetPropertyShorthand_Handle = Selector.GetHandle("getPropertyShorthand:"); private static readonly IntPtr selIsPropertyImplicit_Handle = Selector.GetHandle("isPropertyImplicit:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCSSStyleDeclaration"); private object __mt_ParentRule_var; public override IntPtr ClassHandle => class_ptr; public virtual string CssText { [Export("cssText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCssTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCssTextHandle)); } [Export("setCssText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCssText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCssText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public virtual DomCssRule ParentRule { [Export("parentRule")] get { return (DomCssRule)(__mt_ParentRule_var = ((!IsDirectBinding) ? ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentRuleHandle))) : ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentRuleHandle))))); } } public string this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCssStyleDeclaration(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssStyleDeclaration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssStyleDeclaration(IntPtr handle) : base(handle) { } [Export("getPropertyValue:")] public virtual string GetPropertyValue(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetPropertyValue_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetPropertyValue_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("getPropertyCSSValue:")] public virtual DomCssValue GetPropertyCssValue(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); DomCssValue result = ((!IsDirectBinding) ? ((DomCssValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetPropertyCSSValue_Handle, arg))) : ((DomCssValue)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetPropertyCSSValue_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("removeProperty:")] public virtual string RemoveProperty(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveProperty_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRemoveProperty_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("getPropertyPriority:")] public virtual string GetPropertyPriority(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetPropertyPriority_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetPropertyPriority_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setProperty:value:priority:")] public virtual void SetProperty(string propertyName, string value, string priority) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } if (value == null) { throw new ArgumentNullException("value"); } if (priority == null) { throw new ArgumentNullException("priority"); } IntPtr arg = NSString.CreateNative(propertyName); IntPtr arg2 = NSString.CreateNative(value); IntPtr arg3 = NSString.CreateNative(priority); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetPropertyValuePriority_Handle, arg, arg2, arg3); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetPropertyValuePriority_Handle, arg, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("item:")] public virtual string GetItem(int index) { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } [Export("getPropertyShorthand:")] public virtual string GetPropertyShorthand(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetPropertyShorthand_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetPropertyShorthand_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("isPropertyImplicit:")] public virtual bool IsPropertyImplicit(string propertyName) { if (propertyName == null) { throw new ArgumentNullException("propertyName"); } IntPtr arg = NSString.CreateNative(propertyName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsPropertyImplicit_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsPropertyImplicit_Handle, arg)); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ParentRule_var = null; } } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssStyleSheet.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCSSStyleSheet", true)] public class DomCssStyleSheet : DomStyleSheet { private static readonly IntPtr selOwnerRuleHandle = Selector.GetHandle("ownerRule"); private static readonly IntPtr selCssRulesHandle = Selector.GetHandle("cssRules"); private static readonly IntPtr selRulesHandle = Selector.GetHandle("rules"); private static readonly IntPtr selInsertRuleIndex_Handle = Selector.GetHandle("insertRule:index:"); private static readonly IntPtr selDeleteRule_Handle = Selector.GetHandle("deleteRule:"); private static readonly IntPtr selAddRuleStyleIndex_Handle = Selector.GetHandle("addRule:style:index:"); private static readonly IntPtr selRemoveRule_Handle = Selector.GetHandle("removeRule:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCSSStyleSheet"); private object __mt_OwnerRule_var; private object __mt_CssRules_var; private object __mt_Rules_var; public override IntPtr ClassHandle => class_ptr; public virtual DomCssRule OwnerRule { [Export("ownerRule")] get { return (DomCssRule)(__mt_OwnerRule_var = ((!IsDirectBinding) ? ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerRuleHandle))) : ((DomCssRule)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerRuleHandle))))); } } public virtual DomCssRuleList CssRules { [Export("cssRules")] get { return (DomCssRuleList)(__mt_CssRules_var = ((!IsDirectBinding) ? ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCssRulesHandle))) : ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCssRulesHandle))))); } } public virtual DomCssRuleList Rules { [Export("rules")] get { return (DomCssRuleList)(__mt_Rules_var = ((!IsDirectBinding) ? ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRulesHandle))) : ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRulesHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCssStyleSheet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssStyleSheet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssStyleSheet(IntPtr handle) : base(handle) { } [Export("insertRule:index:")] public virtual uint InsertRule(string rule, uint index) { if (rule == null) { throw new ArgumentNullException("rule"); } IntPtr arg = NSString.CreateNative(rule); uint result = ((!IsDirectBinding) ? Messaging.UInt32_objc_msgSendSuper_IntPtr_UInt32(base.SuperHandle, selInsertRuleIndex_Handle, arg, index) : Messaging.UInt32_objc_msgSend_IntPtr_UInt32(base.Handle, selInsertRuleIndex_Handle, arg, index)); NSString.ReleaseNative(arg); return result; } [Export("deleteRule:")] public virtual void DeleteRule(uint index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selDeleteRule_Handle, index); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selDeleteRule_Handle, index); } } [Export("addRule:style:index:")] public virtual int AddRule(string selector, string style, uint index) { if (selector == null) { throw new ArgumentNullException("selector"); } if (style == null) { throw new ArgumentNullException("style"); } IntPtr arg = NSString.CreateNative(selector); IntPtr arg2 = NSString.CreateNative(style); int result = ((!IsDirectBinding) ? Messaging.int_objc_msgSendSuper_IntPtr_IntPtr_UInt32(base.SuperHandle, selAddRuleStyleIndex_Handle, arg, arg2, index) : Messaging.int_objc_msgSend_IntPtr_IntPtr_UInt32(base.Handle, selAddRuleStyleIndex_Handle, arg, arg2, index)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("removeRule:")] public virtual void RemoveRule(uint index) { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt32(base.Handle, selRemoveRule_Handle, index); } else { Messaging.void_objc_msgSendSuper_UInt32(base.SuperHandle, selRemoveRule_Handle, index); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OwnerRule_var = null; __mt_CssRules_var = null; __mt_Rules_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssValue.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMCSSValue", true)] public class DomCssValue : DomObject { private static readonly IntPtr selCssTextHandle = Selector.GetHandle("cssText"); private static readonly IntPtr selSetCssText_Handle = Selector.GetHandle("setCssText:"); private static readonly IntPtr selCssValueTypeHandle = Selector.GetHandle("cssValueType"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMCSSValue"); public override IntPtr ClassHandle => class_ptr; public virtual string CssText { [Export("cssText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCssTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCssTextHandle)); } [Export("setCssText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCssText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCssText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomCssValueType Type { [Export("cssValueType")] get { if (IsDirectBinding) { return (DomCssValueType)Messaging.UInt16_objc_msgSend(base.Handle, selCssValueTypeHandle); } return (DomCssValueType)Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selCssValueTypeHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomCssValue(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssValue(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomCssValue(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomCssValueType.cs ================================================ namespace WebKit; public enum DomCssValueType : ushort { Inherit, PrimitiveValue, ValueList, Custom } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomDocument.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMDocument", true)] public class DomDocument : DomNode { private static readonly IntPtr selDoctypeHandle = Selector.GetHandle("doctype"); private static readonly IntPtr selImplementationHandle = Selector.GetHandle("implementation"); private static readonly IntPtr selDocumentElementHandle = Selector.GetHandle("documentElement"); private static readonly IntPtr selInputEncodingHandle = Selector.GetHandle("inputEncoding"); private static readonly IntPtr selXmlEncodingHandle = Selector.GetHandle("xmlEncoding"); private static readonly IntPtr selXmlVersionHandle = Selector.GetHandle("xmlVersion"); private static readonly IntPtr selSetXmlVersion_Handle = Selector.GetHandle("setXmlVersion:"); private static readonly IntPtr selXmlStandaloneHandle = Selector.GetHandle("xmlStandalone"); private static readonly IntPtr selSetXmlStandalone_Handle = Selector.GetHandle("setXmlStandalone:"); private static readonly IntPtr selDocumentURIHandle = Selector.GetHandle("documentURI"); private static readonly IntPtr selSetDocumentURI_Handle = Selector.GetHandle("setDocumentURI:"); private static readonly IntPtr selDefaultViewHandle = Selector.GetHandle("defaultView"); private static readonly IntPtr selStyleSheetsHandle = Selector.GetHandle("styleSheets"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selReferrerHandle = Selector.GetHandle("referrer"); private static readonly IntPtr selDomainHandle = Selector.GetHandle("domain"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selCookieHandle = Selector.GetHandle("cookie"); private static readonly IntPtr selSetCookie_Handle = Selector.GetHandle("setCookie:"); private static readonly IntPtr selBodyHandle = Selector.GetHandle("body"); private static readonly IntPtr selSetBody_Handle = Selector.GetHandle("setBody:"); private static readonly IntPtr selImagesHandle = Selector.GetHandle("images"); private static readonly IntPtr selAppletsHandle = Selector.GetHandle("applets"); private static readonly IntPtr selLinksHandle = Selector.GetHandle("links"); private static readonly IntPtr selFormsHandle = Selector.GetHandle("forms"); private static readonly IntPtr selAnchorsHandle = Selector.GetHandle("anchors"); private static readonly IntPtr selLastModifiedHandle = Selector.GetHandle("lastModified"); private static readonly IntPtr selCharsetHandle = Selector.GetHandle("charset"); private static readonly IntPtr selSetCharset_Handle = Selector.GetHandle("setCharset:"); private static readonly IntPtr selDefaultCharsetHandle = Selector.GetHandle("defaultCharset"); private static readonly IntPtr selReadyStateHandle = Selector.GetHandle("readyState"); private static readonly IntPtr selCharacterSetHandle = Selector.GetHandle("characterSet"); private static readonly IntPtr selPreferredStylesheetSetHandle = Selector.GetHandle("preferredStylesheetSet"); private static readonly IntPtr selSelectedStylesheetSetHandle = Selector.GetHandle("selectedStylesheetSet"); private static readonly IntPtr selSetSelectedStylesheetSet_Handle = Selector.GetHandle("setSelectedStylesheetSet:"); private static readonly IntPtr selCreateElement_Handle = Selector.GetHandle("createElement:"); private static readonly IntPtr selCreateDocumentFragmentHandle = Selector.GetHandle("createDocumentFragment"); private static readonly IntPtr selCreateTextNode_Handle = Selector.GetHandle("createTextNode:"); private static readonly IntPtr selCreateComment_Handle = Selector.GetHandle("createComment:"); private static readonly IntPtr selCreateCDATASection_Handle = Selector.GetHandle("createCDATASection:"); private static readonly IntPtr selCreateProcessingInstructionData_Handle = Selector.GetHandle("createProcessingInstruction:data:"); private static readonly IntPtr selCreateAttribute_Handle = Selector.GetHandle("createAttribute:"); private static readonly IntPtr selCreateEntityReference_Handle = Selector.GetHandle("createEntityReference:"); private static readonly IntPtr selGetElementsByTagName_Handle = Selector.GetHandle("getElementsByTagName:"); private static readonly IntPtr selImportNodeDeep_Handle = Selector.GetHandle("importNode:deep:"); private static readonly IntPtr selCreateElementNSQualifiedName_Handle = Selector.GetHandle("createElementNS:qualifiedName:"); private static readonly IntPtr selCreateAttributeNSQualifiedName_Handle = Selector.GetHandle("createAttributeNS:qualifiedName:"); private static readonly IntPtr selGetElementsByTagNameNSLocalName_Handle = Selector.GetHandle("getElementsByTagNameNS:localName:"); private static readonly IntPtr selGetElementById_Handle = Selector.GetHandle("getElementById:"); private static readonly IntPtr selAdoptNode_Handle = Selector.GetHandle("adoptNode:"); private static readonly IntPtr selCreateRangeHandle = Selector.GetHandle("createRange"); private static readonly IntPtr selGetOverrideStylePseudoElement_Handle = Selector.GetHandle("getOverrideStyle:pseudoElement:"); private static readonly IntPtr selExecCommandUserInterfaceValue_Handle = Selector.GetHandle("execCommand:userInterface:value:"); private static readonly IntPtr selExecCommandUserInterface_Handle = Selector.GetHandle("execCommand:userInterface:"); private static readonly IntPtr selExecCommand_Handle = Selector.GetHandle("execCommand:"); private static readonly IntPtr selQueryCommandEnabled_Handle = Selector.GetHandle("queryCommandEnabled:"); private static readonly IntPtr selQueryCommandIndeterm_Handle = Selector.GetHandle("queryCommandIndeterm:"); private static readonly IntPtr selQueryCommandState_Handle = Selector.GetHandle("queryCommandState:"); private static readonly IntPtr selQueryCommandSupported_Handle = Selector.GetHandle("queryCommandSupported:"); private static readonly IntPtr selQueryCommandValue_Handle = Selector.GetHandle("queryCommandValue:"); private static readonly IntPtr selGetElementsByName_Handle = Selector.GetHandle("getElementsByName:"); private static readonly IntPtr selElementFromPointY_Handle = Selector.GetHandle("elementFromPoint:y:"); private static readonly IntPtr selCreateCSSStyleDeclarationHandle = Selector.GetHandle("createCSSStyleDeclaration"); private static readonly IntPtr selGetComputedStylePseudoElement_Handle = Selector.GetHandle("getComputedStyle:pseudoElement:"); private static readonly IntPtr selGetMatchedCSSRulesPseudoElement_Handle = Selector.GetHandle("getMatchedCSSRules:pseudoElement:"); private static readonly IntPtr selGetMatchedCSSRulesPseudoElementAuthorOnly_Handle = Selector.GetHandle("getMatchedCSSRules:pseudoElement:authorOnly:"); private static readonly IntPtr selGetElementsByClassName_Handle = Selector.GetHandle("getElementsByClassName:"); private static readonly IntPtr selQuerySelector_Handle = Selector.GetHandle("querySelector:"); private static readonly IntPtr selQuerySelectorAll_Handle = Selector.GetHandle("querySelectorAll:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMDocument"); private object __mt_DocumentType_var; private object __mt_Implementation_var; private object __mt_DocumentElement_var; private object __mt_DefaultView_var; private object __mt_StyleSheets_var; private object __mt_body_var; private object __mt_images_var; private object __mt_applets_var; private object __mt_links_var; private object __mt_forms_var; private object __mt_anchors_var; public override IntPtr ClassHandle => class_ptr; public virtual DomDocumentType DocumentType { [Export("doctype")] get { return (DomDocumentType)(__mt_DocumentType_var = ((!IsDirectBinding) ? ((DomDocumentType)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDoctypeHandle))) : ((DomDocumentType)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDoctypeHandle))))); } } public virtual DomImplementation Implementation { [Export("implementation")] get { return (DomImplementation)(__mt_Implementation_var = ((!IsDirectBinding) ? ((DomImplementation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImplementationHandle))) : ((DomImplementation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImplementationHandle))))); } } public virtual DomElement DocumentElement { [Export("documentElement")] get { return (DomElement)(__mt_DocumentElement_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentElementHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentElementHandle))))); } } public virtual string InputEncoding { [Export("inputEncoding")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInputEncodingHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInputEncodingHandle)); } } public virtual string XmlEncoding { [Export("xmlEncoding")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selXmlEncodingHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selXmlEncodingHandle)); } } public virtual string XmlVersion { [Export("xmlVersion")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selXmlVersionHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selXmlVersionHandle)); } [Export("setXmlVersion:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetXmlVersion_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetXmlVersion_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool XmlStandalone { [Export("xmlStandalone")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selXmlStandaloneHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selXmlStandaloneHandle); } [Export("setXmlStandalone:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetXmlStandalone_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetXmlStandalone_Handle, value); } } } public virtual string DocumentURI { [Export("documentURI")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentURIHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentURIHandle)); } [Export("setDocumentURI:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDocumentURI_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDocumentURI_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomAbstractView DefaultView { [Export("defaultView")] get { return (DomAbstractView)(__mt_DefaultView_var = ((!IsDirectBinding) ? ((DomAbstractView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultViewHandle))) : ((DomAbstractView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultViewHandle))))); } } public virtual DomStyleSheetList StyleSheets { [Export("styleSheets")] get { return (DomStyleSheetList)(__mt_StyleSheets_var = ((!IsDirectBinding) ? ((DomStyleSheetList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStyleSheetsHandle))) : ((DomStyleSheetList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStyleSheetsHandle))))); } } public virtual string Title { [Export("title")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Referrer { [Export("referrer")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selReferrerHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReferrerHandle)); } } public virtual string Domain { [Export("domain")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDomainHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDomainHandle)); } } public virtual string Url { [Export("URL")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle)); } } public virtual string Cookie { [Export("cookie")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCookieHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCookieHandle)); } [Export("setCookie:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCookie_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCookie_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomHtmlElement body { [Export("body")] get { return (DomHtmlElement)(__mt_body_var = ((!IsDirectBinding) ? ((DomHtmlElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBodyHandle))) : ((DomHtmlElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBodyHandle))))); } [Export("setBody:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBody_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBody_Handle, value.Handle); } __mt_body_var = value; } } public virtual DomHtmlCollection images { [Export("images")] get { return (DomHtmlCollection)(__mt_images_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selImagesHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selImagesHandle))))); } } public virtual DomHtmlCollection applets { [Export("applets")] get { return (DomHtmlCollection)(__mt_applets_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAppletsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAppletsHandle))))); } } public virtual DomHtmlCollection links { [Export("links")] get { return (DomHtmlCollection)(__mt_links_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLinksHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLinksHandle))))); } } public virtual DomHtmlCollection forms { [Export("forms")] get { return (DomHtmlCollection)(__mt_forms_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFormsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFormsHandle))))); } } public virtual DomHtmlCollection anchors { [Export("anchors")] get { return (DomHtmlCollection)(__mt_anchors_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAnchorsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAnchorsHandle))))); } } public virtual string LastModified { [Export("lastModified")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLastModifiedHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastModifiedHandle)); } } public virtual string Charset { [Export("charset")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCharsetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCharsetHandle)); } [Export("setCharset:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCharset_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCharset_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string DefaultCharset { [Export("defaultCharset")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultCharsetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultCharsetHandle)); } } public virtual string ReadyState { [Export("readyState")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selReadyStateHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selReadyStateHandle)); } } public virtual string CharacterSet { [Export("characterSet")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCharacterSetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCharacterSetHandle)); } } public virtual string PreferredStylesheetSet { [Export("preferredStylesheetSet")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferredStylesheetSetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferredStylesheetSetHandle)); } } public virtual string SelectedStylesheetSet { [Export("selectedStylesheetSet")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedStylesheetSetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedStylesheetSetHandle)); } [Export("setSelectedStylesheetSet:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSelectedStylesheetSet_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSelectedStylesheetSet_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomDocument(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocument(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocument(IntPtr handle) : base(handle) { } [Export("createElement:")] public virtual DomElement CreateElement(string tagName) { if (tagName == null) { throw new ArgumentNullException("tagName"); } IntPtr arg = NSString.CreateNative(tagName); DomElement result = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateElement_Handle, arg))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateElement_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createDocumentFragment")] public virtual DomDocumentFragment CreateDocumentFragment() { if (IsDirectBinding) { return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCreateDocumentFragmentHandle)); } return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCreateDocumentFragmentHandle)); } [Export("createTextNode:")] public virtual DomText CreateTextNode(string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); DomText result = ((!IsDirectBinding) ? ((DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateTextNode_Handle, arg))) : ((DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateTextNode_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createComment:")] public virtual DomComment CreateComment(string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); DomComment result = ((!IsDirectBinding) ? ((DomComment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateComment_Handle, arg))) : ((DomComment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateComment_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createCDATASection:")] public virtual DomCDataSection CreateCDataSection(string data) { if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(data); DomCDataSection result = ((!IsDirectBinding) ? ((DomCDataSection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateCDATASection_Handle, arg))) : ((DomCDataSection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateCDATASection_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createProcessingInstruction:data:")] public virtual DomProcessingInstruction CreateProcessingInstruction(string target, string data) { if (target == null) { throw new ArgumentNullException("target"); } if (data == null) { throw new ArgumentNullException("data"); } IntPtr arg = NSString.CreateNative(target); IntPtr arg2 = NSString.CreateNative(data); DomProcessingInstruction result = ((!IsDirectBinding) ? ((DomProcessingInstruction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCreateProcessingInstructionData_Handle, arg, arg2))) : ((DomProcessingInstruction)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCreateProcessingInstructionData_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("createAttribute:")] public virtual DomAttr CreateAttribute(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomAttr result = ((!IsDirectBinding) ? ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateAttribute_Handle, arg))) : ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateAttribute_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("createEntityReference:")] public virtual DomEntityReference CreateEntityReference(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomEntityReference result = ((!IsDirectBinding) ? ((DomEntityReference)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateEntityReference_Handle, arg))) : ((DomEntityReference)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateEntityReference_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("getElementsByTagName:")] public virtual DomNodeList GetElementsByTagName(string tagname) { if (tagname == null) { throw new ArgumentNullException("tagname"); } IntPtr arg = NSString.CreateNative(tagname); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementsByTagName_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementsByTagName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("importNode:deep:")] public virtual DomNode ImportNode(DomNode importedNode, bool deep) { if (importedNode == null) { throw new ArgumentNullException("importedNode"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_bool(base.Handle, selImportNodeDeep_Handle, importedNode.Handle, deep)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selImportNodeDeep_Handle, importedNode.Handle, deep)); } [Export("createElementNS:qualifiedName:")] public virtual DomElement CreateElementNS(string namespaceURI, string qualifiedName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (qualifiedName == null) { throw new ArgumentNullException("qualifiedName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(qualifiedName); DomElement result = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCreateElementNSQualifiedName_Handle, arg, arg2))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCreateElementNSQualifiedName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("createAttributeNS:qualifiedName:")] public virtual DomAttr CreateAttributeNS(string namespaceURI, string qualifiedName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (qualifiedName == null) { throw new ArgumentNullException("qualifiedName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(qualifiedName); DomAttr result = ((!IsDirectBinding) ? ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCreateAttributeNSQualifiedName_Handle, arg, arg2))) : ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCreateAttributeNSQualifiedName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("getElementsByTagNameNS:localName:")] public virtual DomNodeList GetElementsByTagNameNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetElementsByTagNameNSLocalName_Handle, arg, arg2))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetElementsByTagNameNSLocalName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("getElementById:")] public virtual DomElement GetElementById(string elementId) { if (elementId == null) { throw new ArgumentNullException("elementId"); } IntPtr arg = NSString.CreateNative(elementId); DomElement result = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementById_Handle, arg))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementById_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("adoptNode:")] public virtual DomNode AdoptNode(DomNode source) { if (source == null) { throw new ArgumentNullException("source"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAdoptNode_Handle, source.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAdoptNode_Handle, source.Handle)); } [Export("createRange")] public virtual DomRange CreateRange() { if (IsDirectBinding) { return (DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCreateRangeHandle)); } return (DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCreateRangeHandle)); } [Export("getOverrideStyle:pseudoElement:")] public virtual DomCssStyleDeclaration GetOverrideStyle(DomElement element, string pseudoElement) { if (element == null) { throw new ArgumentNullException("element"); } if (pseudoElement == null) { throw new ArgumentNullException("pseudoElement"); } IntPtr arg = NSString.CreateNative(pseudoElement); DomCssStyleDeclaration result = ((!IsDirectBinding) ? ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetOverrideStylePseudoElement_Handle, element.Handle, arg))) : ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetOverrideStylePseudoElement_Handle, element.Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("execCommand:userInterface:value:")] public virtual bool ExecCommand(string command, bool userInterface, string value) { if (command == null) { throw new ArgumentNullException("command"); } if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(command); IntPtr arg2 = NSString.CreateNative(value); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool_IntPtr(base.SuperHandle, selExecCommandUserInterfaceValue_Handle, arg, userInterface, arg2) : Messaging.bool_objc_msgSend_IntPtr_bool_IntPtr(base.Handle, selExecCommandUserInterfaceValue_Handle, arg, userInterface, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("execCommand:userInterface:")] public virtual bool ExecCommand(string command, bool userInterface) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool(base.SuperHandle, selExecCommandUserInterface_Handle, arg, userInterface) : Messaging.bool_objc_msgSend_IntPtr_bool(base.Handle, selExecCommandUserInterface_Handle, arg, userInterface)); NSString.ReleaseNative(arg); return result; } [Export("execCommand:")] public virtual bool ExecCommand(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selExecCommand_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selExecCommand_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("queryCommandEnabled:")] public virtual bool QueryCommandEnabled(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selQueryCommandEnabled_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selQueryCommandEnabled_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("queryCommandIndeterm:")] public virtual bool QueryCommandIndeterm(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selQueryCommandIndeterm_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selQueryCommandIndeterm_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("queryCommandState:")] public virtual bool QueryCommandState(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selQueryCommandState_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selQueryCommandState_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("queryCommandSupported:")] public virtual bool QueryCommandSupported(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selQueryCommandSupported_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selQueryCommandSupported_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("queryCommandValue:")] public virtual string QueryCommandValue(string command) { if (command == null) { throw new ArgumentNullException("command"); } IntPtr arg = NSString.CreateNative(command); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selQueryCommandValue_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selQueryCommandValue_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("getElementsByName:")] public virtual DomNodeList GetElementsByName(string elementName) { if (elementName == null) { throw new ArgumentNullException("elementName"); } IntPtr arg = NSString.CreateNative(elementName); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementsByName_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementsByName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("elementFromPoint:y:")] public virtual DomElement ElementFromPoint(int x, int y) { if (IsDirectBinding) { return (DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int_int(base.Handle, selElementFromPointY_Handle, x, y)); } return (DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int_int(base.SuperHandle, selElementFromPointY_Handle, x, y)); } [Export("createCSSStyleDeclaration")] public virtual DomCssStyleDeclaration CreateCssStyleDeclaration() { if (IsDirectBinding) { return (DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCreateCSSStyleDeclarationHandle)); } return (DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCreateCSSStyleDeclarationHandle)); } [Export("getComputedStyle:pseudoElement:")] public virtual DomCssStyleDeclaration GetComputedStyle(DomElement element, string pseudoElement) { if (element == null) { throw new ArgumentNullException("element"); } if (pseudoElement == null) { throw new ArgumentNullException("pseudoElement"); } IntPtr arg = NSString.CreateNative(pseudoElement); DomCssStyleDeclaration result = ((!IsDirectBinding) ? ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetComputedStylePseudoElement_Handle, element.Handle, arg))) : ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetComputedStylePseudoElement_Handle, element.Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("getMatchedCSSRules:pseudoElement:")] public virtual DomCssRuleList GetMatchedCSSRules(DomElement element, string pseudoElement) { if (element == null) { throw new ArgumentNullException("element"); } if (pseudoElement == null) { throw new ArgumentNullException("pseudoElement"); } IntPtr arg = NSString.CreateNative(pseudoElement); DomCssRuleList result = ((!IsDirectBinding) ? ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetMatchedCSSRulesPseudoElement_Handle, element.Handle, arg))) : ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetMatchedCSSRulesPseudoElement_Handle, element.Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("getMatchedCSSRules:pseudoElement:authorOnly:")] public virtual DomCssRuleList GetMatchedCSSRules(DomElement element, string pseudoElement, bool authorOnly) { if (element == null) { throw new ArgumentNullException("element"); } if (pseudoElement == null) { throw new ArgumentNullException("pseudoElement"); } IntPtr arg = NSString.CreateNative(pseudoElement); DomCssRuleList result = ((!IsDirectBinding) ? ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selGetMatchedCSSRulesPseudoElementAuthorOnly_Handle, element.Handle, arg, authorOnly))) : ((DomCssRuleList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selGetMatchedCSSRulesPseudoElementAuthorOnly_Handle, element.Handle, arg, authorOnly)))); NSString.ReleaseNative(arg); return result; } [Export("getElementsByClassName:")] public virtual DomNodeList GetElementsByClassName(string tagname) { if (tagname == null) { throw new ArgumentNullException("tagname"); } IntPtr arg = NSString.CreateNative(tagname); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementsByClassName_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementsByClassName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("querySelector:")] public virtual DomElement QuerySelector(string selectors) { if (selectors == null) { throw new ArgumentNullException("selectors"); } IntPtr arg = NSString.CreateNative(selectors); DomElement result = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selQuerySelector_Handle, arg))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selQuerySelector_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("querySelectorAll:")] public virtual DomNodeList QuerySelectorAll(string selectors) { if (selectors == null) { throw new ArgumentNullException("selectors"); } IntPtr arg = NSString.CreateNative(selectors); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selQuerySelectorAll_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selQuerySelectorAll_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_DocumentType_var = null; __mt_Implementation_var = null; __mt_DocumentElement_var = null; __mt_DefaultView_var = null; __mt_StyleSheets_var = null; __mt_body_var = null; __mt_images_var = null; __mt_applets_var = null; __mt_links_var = null; __mt_forms_var = null; __mt_anchors_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomDocumentFragment.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMDocumentFragment", true)] public class DomDocumentFragment : DomNode { private static readonly IntPtr class_ptr = Class.GetHandle("DOMDocumentFragment"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomDocumentFragment(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocumentFragment(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocumentFragment(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomDocumentPosition.cs ================================================ using System; namespace WebKit; [Flags] public enum DomDocumentPosition : ushort { Disconnected = 1, Preceeding = 2, Following = 4, Contains = 8, ContainedBy = 0x10, ImplementationSpecific = 0x20 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomDocumentType.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMDocumentType", true)] public class DomDocumentType : DomNode { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selEntitiesHandle = Selector.GetHandle("entities"); private static readonly IntPtr selNotationsHandle = Selector.GetHandle("notations"); private static readonly IntPtr selPublicIdHandle = Selector.GetHandle("publicId"); private static readonly IntPtr selSystemIdHandle = Selector.GetHandle("systemId"); private static readonly IntPtr selInternalSubsetHandle = Selector.GetHandle("internalSubset"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMDocumentType"); private object __mt_Entities_var; private object __mt_Notations_var; public override IntPtr ClassHandle => class_ptr; public new virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual DomNamedNodeMap Entities { [Export("entities")] get { return (DomNamedNodeMap)(__mt_Entities_var = ((!IsDirectBinding) ? ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEntitiesHandle))) : ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEntitiesHandle))))); } } public virtual DomNamedNodeMap Notations { [Export("notations")] get { return (DomNamedNodeMap)(__mt_Notations_var = ((!IsDirectBinding) ? ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNotationsHandle))) : ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNotationsHandle))))); } } public virtual string PublicId { [Export("publicId")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPublicIdHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPublicIdHandle)); } } public virtual string SystemId { [Export("systemId")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSystemIdHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSystemIdHandle)); } } public virtual string InternalSubset { [Export("internalSubset")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInternalSubsetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInternalSubsetHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomDocumentType(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocumentType(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomDocumentType(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Entities_var = null; __mt_Notations_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomElement.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMElement", true)] public class DomElement : DomNode { private static readonly IntPtr selOffsetLeftHandle = Selector.GetHandle("offsetLeft"); private static readonly IntPtr selOffsetTopHandle = Selector.GetHandle("offsetTop"); private static readonly IntPtr selOffsetWidthHandle = Selector.GetHandle("offsetWidth"); private static readonly IntPtr selOffsetHeightHandle = Selector.GetHandle("offsetHeight"); private static readonly IntPtr selOffsetParentHandle = Selector.GetHandle("offsetParent"); private static readonly IntPtr selClientLeftHandle = Selector.GetHandle("clientLeft"); private static readonly IntPtr selClientTopHandle = Selector.GetHandle("clientTop"); private static readonly IntPtr selClientWidthHandle = Selector.GetHandle("clientWidth"); private static readonly IntPtr selClientHeightHandle = Selector.GetHandle("clientHeight"); private static readonly IntPtr selScrollLeftHandle = Selector.GetHandle("scrollLeft"); private static readonly IntPtr selSetScrollLeft_Handle = Selector.GetHandle("setScrollLeft:"); private static readonly IntPtr selScrollTopHandle = Selector.GetHandle("scrollTop"); private static readonly IntPtr selSetScrollTop_Handle = Selector.GetHandle("setScrollTop:"); private static readonly IntPtr selScrollWidthHandle = Selector.GetHandle("scrollWidth"); private static readonly IntPtr selScrollHeightHandle = Selector.GetHandle("scrollHeight"); private static readonly IntPtr selFirstElementChildHandle = Selector.GetHandle("firstElementChild"); private static readonly IntPtr selLastElementChildHandle = Selector.GetHandle("lastElementChild"); private static readonly IntPtr selPreviousElementSiblingHandle = Selector.GetHandle("previousElementSibling"); private static readonly IntPtr selNextElementSiblingHandle = Selector.GetHandle("nextElementSibling"); private static readonly IntPtr selChildElementCountHandle = Selector.GetHandle("childElementCount"); private static readonly IntPtr selInnerTextHandle = Selector.GetHandle("innerText"); private static readonly IntPtr selGetAttribute_Handle = Selector.GetHandle("getAttribute:"); private static readonly IntPtr selSetAttributeValue_Handle = Selector.GetHandle("setAttribute:value:"); private static readonly IntPtr selRemoveAttribute_Handle = Selector.GetHandle("removeAttribute:"); private static readonly IntPtr selGetAttributeNode_Handle = Selector.GetHandle("getAttributeNode:"); private static readonly IntPtr selSetAttributeNode_Handle = Selector.GetHandle("setAttributeNode:"); private static readonly IntPtr selRemoveAttributeNode_Handle = Selector.GetHandle("removeAttributeNode:"); private static readonly IntPtr selGetElementsByTagName_Handle = Selector.GetHandle("getElementsByTagName:"); private static readonly IntPtr selGetAttributeNSLocalName_Handle = Selector.GetHandle("getAttributeNS:localName:"); private static readonly IntPtr selSetAttributeNSQualifiedNameValue_Handle = Selector.GetHandle("setAttributeNS:qualifiedName:value:"); private static readonly IntPtr selRemoveAttributeNSLocalName_Handle = Selector.GetHandle("removeAttributeNS:localName:"); private static readonly IntPtr selGetElementsByTagNameNSLocalName_Handle = Selector.GetHandle("getElementsByTagNameNS:localName:"); private static readonly IntPtr selGetAttributeNodeNSLocalName_Handle = Selector.GetHandle("getAttributeNodeNS:localName:"); private static readonly IntPtr selSetAttributeNodeNS_Handle = Selector.GetHandle("setAttributeNodeNS:"); private static readonly IntPtr selHasAttribute_Handle = Selector.GetHandle("hasAttribute:"); private static readonly IntPtr selHasAttributeNSLocalName_Handle = Selector.GetHandle("hasAttributeNS:localName:"); private static readonly IntPtr selFocusHandle = Selector.GetHandle("focus"); private static readonly IntPtr selBlurHandle = Selector.GetHandle("blur"); private static readonly IntPtr selScrollIntoView_Handle = Selector.GetHandle("scrollIntoView:"); private static readonly IntPtr selContains_Handle = Selector.GetHandle("contains:"); private static readonly IntPtr selScrollIntoViewIfNeeded_Handle = Selector.GetHandle("scrollIntoViewIfNeeded:"); private static readonly IntPtr selScrollByLines_Handle = Selector.GetHandle("scrollByLines:"); private static readonly IntPtr selScrollByPages_Handle = Selector.GetHandle("scrollByPages:"); private static readonly IntPtr selGetElementsByClassName_Handle = Selector.GetHandle("getElementsByClassName:"); private static readonly IntPtr selQuerySelector_Handle = Selector.GetHandle("querySelector:"); private static readonly IntPtr selQuerySelectorAll_Handle = Selector.GetHandle("querySelectorAll:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMElement"); private object __mt_OffsetParent_var; private object __mt_FirstElementChild_var; private object __mt_LastElementChild_var; private object __mt_PreviousElementSibling_var; private object __mt_NextElementSibling_var; public override IntPtr ClassHandle => class_ptr; public virtual int OffsetLeft { [Export("offsetLeft")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selOffsetLeftHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selOffsetLeftHandle); } } public virtual int OffsetTop { [Export("offsetTop")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selOffsetTopHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selOffsetTopHandle); } } public virtual int OffsetWidth { [Export("offsetWidth")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selOffsetWidthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selOffsetWidthHandle); } } public virtual int OffsetHeight { [Export("offsetHeight")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selOffsetHeightHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selOffsetHeightHandle); } } public virtual DomElement OffsetParent { [Export("offsetParent")] get { return (DomElement)(__mt_OffsetParent_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOffsetParentHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOffsetParentHandle))))); } } public virtual int ClientLeft { [Export("clientLeft")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selClientLeftHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selClientLeftHandle); } } public virtual int ClientTop { [Export("clientTop")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selClientTopHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selClientTopHandle); } } public virtual int ClientWidth { [Export("clientWidth")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selClientWidthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selClientWidthHandle); } } public virtual int ClientHeight { [Export("clientHeight")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selClientHeightHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selClientHeightHandle); } } public virtual int ScrollLeft { [Export("scrollLeft")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selScrollLeftHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selScrollLeftHandle); } [Export("setScrollLeft:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetScrollLeft_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetScrollLeft_Handle, value); } } } public virtual int ScrollTop { [Export("scrollTop")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selScrollTopHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selScrollTopHandle); } [Export("setScrollTop:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetScrollTop_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetScrollTop_Handle, value); } } } public virtual int ScrollWidth { [Export("scrollWidth")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selScrollWidthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selScrollWidthHandle); } } public virtual int ScrollHeight { [Export("scrollHeight")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selScrollHeightHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selScrollHeightHandle); } } public virtual DomElement FirstElementChild { [Export("firstElementChild")] get { return (DomElement)(__mt_FirstElementChild_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFirstElementChildHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFirstElementChildHandle))))); } } public virtual DomElement LastElementChild { [Export("lastElementChild")] get { return (DomElement)(__mt_LastElementChild_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastElementChildHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastElementChildHandle))))); } } public virtual DomElement PreviousElementSibling { [Export("previousElementSibling")] get { return (DomElement)(__mt_PreviousElementSibling_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreviousElementSiblingHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPreviousElementSiblingHandle))))); } } public virtual DomElement NextElementSibling { [Export("nextElementSibling")] get { return (DomElement)(__mt_NextElementSibling_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextElementSiblingHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextElementSiblingHandle))))); } } public virtual uint ChildElementCount { [Export("childElementCount")] get { if (IsDirectBinding) { return Messaging.UInt32_objc_msgSend(base.Handle, selChildElementCountHandle); } return Messaging.UInt32_objc_msgSendSuper(base.SuperHandle, selChildElementCountHandle); } } public virtual string InnerText { [Export("innerText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInnerTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInnerTextHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomElement(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomElement(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomElement(IntPtr handle) : base(handle) { } [Export("getAttribute:")] public virtual string GetAttribute(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetAttribute_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetAttribute_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setAttribute:value:")] public virtual void SetAttribute(string name, string value) { if (name == null) { throw new ArgumentNullException("name"); } if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(name); IntPtr arg2 = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selSetAttributeValue_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selSetAttributeValue_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("removeAttribute:")] public virtual void RemoveAttribute(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveAttribute_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAttribute_Handle, arg); } NSString.ReleaseNative(arg); } [Export("getAttributeNode:")] public virtual DomAttr GetAttributeNode(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomAttr result = ((!IsDirectBinding) ? ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetAttributeNode_Handle, arg))) : ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetAttributeNode_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setAttributeNode:")] public virtual DomAttr SetAttributeNode(DomAttr newAttr) { if (newAttr == null) { throw new ArgumentNullException("newAttr"); } if (IsDirectBinding) { return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetAttributeNode_Handle, newAttr.Handle)); } return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributeNode_Handle, newAttr.Handle)); } [Export("removeAttributeNode:")] public virtual DomAttr RemoveAttributeNode(DomAttr oldAttr) { if (oldAttr == null) { throw new ArgumentNullException("oldAttr"); } if (IsDirectBinding) { return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRemoveAttributeNode_Handle, oldAttr.Handle)); } return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveAttributeNode_Handle, oldAttr.Handle)); } [Export("getElementsByTagName:")] public virtual DomNodeList GetElementsByTagName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementsByTagName_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementsByTagName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("getAttributeNS:localName:")] public virtual string GetAttributeNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetAttributeNSLocalName_Handle, arg, arg2)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetAttributeNSLocalName_Handle, arg, arg2))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setAttributeNS:qualifiedName:value:")] public virtual void SetAttributeNS(string namespaceURI, string qualifiedName, string value) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (qualifiedName == null) { throw new ArgumentNullException("qualifiedName"); } if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(qualifiedName); IntPtr arg3 = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selSetAttributeNSQualifiedNameValue_Handle, arg, arg2, arg3); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selSetAttributeNSQualifiedNameValue_Handle, arg, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } [Export("removeAttributeNS:localName:")] public virtual void RemoveAttributeNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveAttributeNSLocalName_Handle, arg, arg2); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveAttributeNSLocalName_Handle, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("getElementsByTagNameNS:localName:")] public virtual DomNodeList GetElementsByTagNameNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetElementsByTagNameNSLocalName_Handle, arg, arg2))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetElementsByTagNameNSLocalName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("getAttributeNodeNS:localName:")] public virtual DomAttr GetAttributeNodeNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); DomAttr result = ((!IsDirectBinding) ? ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetAttributeNodeNSLocalName_Handle, arg, arg2))) : ((DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetAttributeNodeNSLocalName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setAttributeNodeNS:")] public virtual DomAttr SetAttributeNodeNS(DomAttr newAttr) { if (newAttr == null) { throw new ArgumentNullException("newAttr"); } if (IsDirectBinding) { return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetAttributeNodeNS_Handle, newAttr.Handle)); } return (DomAttr)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAttributeNodeNS_Handle, newAttr.Handle)); } [Export("hasAttribute:")] public virtual bool HasAttribute(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selHasAttribute_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selHasAttribute_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("hasAttributeNS:localName:")] public virtual bool HasAttributeNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selHasAttributeNSLocalName_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selHasAttributeNSLocalName_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("focus")] public virtual void Focus() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFocusHandle); } } [Export("blur")] public virtual void Blur() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBlurHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBlurHandle); } } [Export("scrollIntoView:")] public virtual void ScrollIntoView(bool alignWithTop) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selScrollIntoView_Handle, alignWithTop); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selScrollIntoView_Handle, alignWithTop); } } [Export("contains:")] public virtual bool Contains(DomElement element) { if (element == null) { throw new ArgumentNullException("element"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selContains_Handle, element.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selContains_Handle, element.Handle); } [Export("scrollIntoViewIfNeeded:")] public virtual void ScrollIntoViewIfNeeded(bool centerIfNeeded) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selScrollIntoViewIfNeeded_Handle, centerIfNeeded); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selScrollIntoViewIfNeeded_Handle, centerIfNeeded); } } [Export("scrollByLines:")] public virtual void ScrollByLines(int lines) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selScrollByLines_Handle, lines); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selScrollByLines_Handle, lines); } } [Export("scrollByPages:")] public virtual void ScrollByPages(int pages) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selScrollByPages_Handle, pages); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selScrollByPages_Handle, pages); } } [Export("getElementsByClassName:")] public virtual DomNodeList GetElementsByClassName(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetElementsByClassName_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetElementsByClassName_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("querySelector:")] public virtual DomElement QuerySelector(string selectors) { if (selectors == null) { throw new ArgumentNullException("selectors"); } IntPtr arg = NSString.CreateNative(selectors); DomElement result = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selQuerySelector_Handle, arg))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selQuerySelector_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("querySelectorAll:")] public virtual DomNodeList QuerySelectorAll(string selectors) { if (selectors == null) { throw new ArgumentNullException("selectors"); } IntPtr arg = NSString.CreateNative(selectors); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selQuerySelectorAll_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selQuerySelectorAll_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OffsetParent_var = null; __mt_FirstElementChild_var = null; __mt_LastElementChild_var = null; __mt_PreviousElementSibling_var = null; __mt_NextElementSibling_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEntityReference.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMEntityReference", true)] public class DomEntityReference : DomNode { private static readonly IntPtr class_ptr = Class.GetHandle("DOMEntityReference"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomEntityReference(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEntityReference(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEntityReference(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEvent.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMEvent", true)] public class DomEvent : DomObject { private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selCurrentTargetHandle = Selector.GetHandle("currentTarget"); private static readonly IntPtr selEventPhaseHandle = Selector.GetHandle("eventPhase"); private static readonly IntPtr selBubblesHandle = Selector.GetHandle("bubbles"); private static readonly IntPtr selCancelableHandle = Selector.GetHandle("cancelable"); private static readonly IntPtr selTimeStampHandle = Selector.GetHandle("timeStamp"); private static readonly IntPtr selSrcElementHandle = Selector.GetHandle("srcElement"); private static readonly IntPtr selReturnValueHandle = Selector.GetHandle("returnValue"); private static readonly IntPtr selSetReturnValue_Handle = Selector.GetHandle("setReturnValue:"); private static readonly IntPtr selCancelBubbleHandle = Selector.GetHandle("cancelBubble"); private static readonly IntPtr selSetCancelBubble_Handle = Selector.GetHandle("setCancelBubble:"); private static readonly IntPtr selStopPropagationHandle = Selector.GetHandle("stopPropagation"); private static readonly IntPtr selPreventDefaultHandle = Selector.GetHandle("preventDefault"); private static readonly IntPtr selInitEventCanBubbleArgCancelableArg_Handle = Selector.GetHandle("initEvent:canBubbleArg:cancelableArg:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMEvent"); private object __mt_Target_var; private object __mt_CurrentTarget_var; private object __mt_SourceElement_var; public override IntPtr ClassHandle => class_ptr; public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual NSObject Target { [Export("target")] get { return (NSObject)(__mt_Target_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)))); } } public virtual NSObject CurrentTarget { [Export("currentTarget")] get { return (NSObject)(__mt_CurrentTarget_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentTargetHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentTargetHandle)))); } } public virtual DomEventPhase EventPhase { [Export("eventPhase")] get { if (IsDirectBinding) { return (DomEventPhase)Messaging.UInt16_objc_msgSend(base.Handle, selEventPhaseHandle); } return (DomEventPhase)Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selEventPhaseHandle); } } public virtual bool Bubbles { [Export("bubbles")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selBubblesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selBubblesHandle); } } public virtual bool Cancelable { [Export("cancelable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCancelableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCancelableHandle); } } public virtual ulong TimeStamp { [Export("timeStamp")] get { if (IsDirectBinding) { return Messaging.UInt64_objc_msgSend(base.Handle, selTimeStampHandle); } return Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selTimeStampHandle); } } public virtual NSObject SourceElement { [Export("srcElement")] get { return (NSObject)(__mt_SourceElement_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSrcElementHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSrcElementHandle)))); } } public virtual bool ReturnValue { [Export("returnValue")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReturnValueHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReturnValueHandle); } [Export("setReturnValue:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReturnValue_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReturnValue_Handle, value); } } } public virtual bool CancelBubble { [Export("cancelBubble")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCancelBubbleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCancelBubbleHandle); } [Export("setCancelBubble:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetCancelBubble_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetCancelBubble_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomEvent(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEvent(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEvent(IntPtr handle) : base(handle) { } [Export("stopPropagation")] public virtual void StopPropagation() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopPropagationHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopPropagationHandle); } } [Export("preventDefault")] public virtual void PreventDefault() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPreventDefaultHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPreventDefaultHandle); } } [Export("initEvent:canBubbleArg:cancelableArg:")] public virtual void InitEvent(string eventTypeArg, bool canBubbleArg, bool cancelableArg) { if (eventTypeArg == null) { throw new ArgumentNullException("eventTypeArg"); } IntPtr arg = NSString.CreateNative(eventTypeArg); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_bool_bool(base.Handle, selInitEventCanBubbleArgCancelableArg_Handle, arg, canBubbleArg, cancelableArg); } else { Messaging.void_objc_msgSendSuper_IntPtr_bool_bool(base.SuperHandle, selInitEventCanBubbleArgCancelableArg_Handle, arg, canBubbleArg, cancelableArg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Target_var = null; __mt_CurrentTarget_var = null; __mt_SourceElement_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEventArgs.cs ================================================ using System; namespace WebKit; public class DomEventArgs : EventArgs { public DomEvent Event { get; set; } public DomEventArgs(DomEvent evt) { Event = evt; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEventListener.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMEventListener", true)] [Model] public abstract class DomEventListener : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public DomEventListener() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomEventListener(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEventListener(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomEventListener(IntPtr handle) : base(handle) { } [Export("handleEvent:")] public abstract void HandleEvent(DomEvent evt); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEventListenerHandler.cs ================================================ namespace WebKit; public delegate void DomEventListenerHandler(object sender, DomEventArgs args); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomEventPhase.cs ================================================ namespace WebKit; public enum DomEventPhase : ushort { Capturing = 1, AtTarget, Bubbling } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomHtmlCollection.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMHTMLCollection", true)] public class DomHtmlCollection : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr selNamedItem_Handle = Selector.GetHandle("namedItem:"); private static readonly IntPtr selTags_Handle = Selector.GetHandle("tags:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMHTMLCollection"); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public DomNode this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomHtmlCollection(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlCollection(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlCollection(IntPtr handle) : base(handle) { } [Export("item:")] public virtual DomNode GetItem(int index) { if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } [Export("namedItem:")] public virtual DomNode GetNamedItem(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNode result = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selNamedItem_Handle, arg))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selNamedItem_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("tags:")] public virtual DomNodeList GetTags(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNodeList result = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selTags_Handle, arg))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selTags_Handle, arg)))); NSString.ReleaseNative(arg); return result; } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomHtmlDocument.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMHTMLDocument", true)] public class DomHtmlDocument : DomDocument { private static readonly IntPtr selEmbedsHandle = Selector.GetHandle("embeds"); private static readonly IntPtr selPluginsHandle = Selector.GetHandle("plugins"); private static readonly IntPtr selScriptsHandle = Selector.GetHandle("scripts"); private static readonly IntPtr selWidthHandle = Selector.GetHandle("width"); private static readonly IntPtr selHeightHandle = Selector.GetHandle("height"); private static readonly IntPtr selDirHandle = Selector.GetHandle("dir"); private static readonly IntPtr selSetDir_Handle = Selector.GetHandle("setDir:"); private static readonly IntPtr selDesignModeHandle = Selector.GetHandle("designMode"); private static readonly IntPtr selSetDesignMode_Handle = Selector.GetHandle("setDesignMode:"); private static readonly IntPtr selCompatModeHandle = Selector.GetHandle("compatMode"); private static readonly IntPtr selActiveElementHandle = Selector.GetHandle("activeElement"); private static readonly IntPtr selBgColorHandle = Selector.GetHandle("bgColor"); private static readonly IntPtr selSetBgColor_Handle = Selector.GetHandle("setBgColor:"); private static readonly IntPtr selFgColorHandle = Selector.GetHandle("fgColor"); private static readonly IntPtr selSetFgColor_Handle = Selector.GetHandle("setFgColor:"); private static readonly IntPtr selAlinkColorHandle = Selector.GetHandle("alinkColor"); private static readonly IntPtr selSetAlinkColor_Handle = Selector.GetHandle("setAlinkColor:"); private static readonly IntPtr selLinkColorHandle = Selector.GetHandle("linkColor"); private static readonly IntPtr selSetLinkColor_Handle = Selector.GetHandle("setLinkColor:"); private static readonly IntPtr selVlinkColorHandle = Selector.GetHandle("vlinkColor"); private static readonly IntPtr selSetVlinkColor_Handle = Selector.GetHandle("setVlinkColor:"); private static readonly IntPtr selOpenHandle = Selector.GetHandle("open"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selWrite_Handle = Selector.GetHandle("write:"); private static readonly IntPtr selWriteln_Handle = Selector.GetHandle("writeln:"); private static readonly IntPtr selClearHandle = Selector.GetHandle("clear"); private static readonly IntPtr selCaptureEventsHandle = Selector.GetHandle("captureEvents"); private static readonly IntPtr selReleaseEventsHandle = Selector.GetHandle("releaseEvents"); private static readonly IntPtr selHasFocusHandle = Selector.GetHandle("hasFocus"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMHTMLDocument"); private object __mt_Embeds_var; private object __mt_Plugins_var; private object __mt_Scripts_var; private object __mt_ActiveElement_var; public override IntPtr ClassHandle => class_ptr; public virtual DomHtmlCollection Embeds { [Export("embeds")] get { return (DomHtmlCollection)(__mt_Embeds_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEmbedsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEmbedsHandle))))); } } public virtual DomHtmlCollection Plugins { [Export("plugins")] get { return (DomHtmlCollection)(__mt_Plugins_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPluginsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPluginsHandle))))); } } public virtual DomHtmlCollection Scripts { [Export("scripts")] get { return (DomHtmlCollection)(__mt_Scripts_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selScriptsHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selScriptsHandle))))); } } public virtual int Width { [Export("width")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selWidthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selWidthHandle); } } public virtual int Height { [Export("height")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selHeightHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selHeightHandle); } } public virtual string Dir { [Export("dir")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDirHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDirHandle)); } [Export("setDir:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDir_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDir_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string DesignMode { [Export("designMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDesignModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDesignModeHandle)); } [Export("setDesignMode:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDesignMode_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDesignMode_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CompatMode { [Export("compatMode")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCompatModeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCompatModeHandle)); } } public virtual DomElement ActiveElement { [Export("activeElement")] get { return (DomElement)(__mt_ActiveElement_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selActiveElementHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selActiveElementHandle))))); } } public virtual string BackgroundColor { [Export("bgColor")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBgColorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBgColorHandle)); } [Export("setBgColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetBgColor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetBgColor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ForegroundColor { [Export("fgColor")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFgColorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFgColorHandle)); } [Export("setFgColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFgColor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFgColor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ALinkColor { [Export("alinkColor")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlinkColorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlinkColorHandle)); } [Export("setAlinkColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlinkColor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlinkColor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string LinkColor { [Export("linkColor")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLinkColorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLinkColorHandle)); } [Export("setLinkColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLinkColor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLinkColor_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string VLinkColor { [Export("vlinkColor")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selVlinkColorHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selVlinkColorHandle)); } [Export("setVlinkColor:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetVlinkColor_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetVlinkColor_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomHtmlDocument(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlDocument(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlDocument(IntPtr handle) : base(handle) { } [Export("open")] public virtual void Open() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selOpenHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selOpenHandle); } } [Export("close")] public virtual void Close() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("write:")] public virtual void Write(string text) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWrite_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWrite_Handle, arg); } NSString.ReleaseNative(arg); } [Export("writeln:")] public virtual void Writeln(string text) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selWriteln_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selWriteln_Handle, arg); } NSString.ReleaseNative(arg); } [Export("clear")] public virtual void Clear() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClearHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClearHandle); } } [Export("captureEvents")] public virtual void CaptureEvents() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCaptureEventsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCaptureEventsHandle); } } [Export("releaseEvents")] public virtual void ReleaseEvents() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReleaseEventsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReleaseEventsHandle); } } [Export("hasFocus")] public virtual bool HasFocus() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasFocusHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasFocusHandle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Embeds_var = null; __mt_Plugins_var = null; __mt_Scripts_var = null; __mt_ActiveElement_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomHtmlElement.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMHTMLElement", true)] public class DomHtmlElement : DomElement { private static readonly IntPtr selIdNameHandle = Selector.GetHandle("idName"); private static readonly IntPtr selSetIdName_Handle = Selector.GetHandle("setIdName:"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selSetTitle_Handle = Selector.GetHandle("setTitle:"); private static readonly IntPtr selLangHandle = Selector.GetHandle("lang"); private static readonly IntPtr selSetLang_Handle = Selector.GetHandle("setLang:"); private static readonly IntPtr selDirHandle = Selector.GetHandle("dir"); private static readonly IntPtr selSetDir_Handle = Selector.GetHandle("setDir:"); private static readonly IntPtr selClassNameHandle = Selector.GetHandle("className"); private static readonly IntPtr selSetClassName_Handle = Selector.GetHandle("setClassName:"); private static readonly IntPtr selTabIndexHandle = Selector.GetHandle("tabIndex"); private static readonly IntPtr selSetTabIndex_Handle = Selector.GetHandle("setTabIndex:"); private static readonly IntPtr selInnerHTMLHandle = Selector.GetHandle("innerHTML"); private static readonly IntPtr selSetInnerHTML_Handle = Selector.GetHandle("setInnerHTML:"); private static readonly IntPtr selInnerTextHandle = Selector.GetHandle("innerText"); private static readonly IntPtr selSetInnerText_Handle = Selector.GetHandle("setInnerText:"); private static readonly IntPtr selOuterHTMLHandle = Selector.GetHandle("outerHTML"); private static readonly IntPtr selSetOuterHTML_Handle = Selector.GetHandle("setOuterHTML:"); private static readonly IntPtr selOuterTextHandle = Selector.GetHandle("outerText"); private static readonly IntPtr selSetOuterText_Handle = Selector.GetHandle("setOuterText:"); private static readonly IntPtr selChildrenHandle = Selector.GetHandle("children"); private static readonly IntPtr selContentEditableHandle = Selector.GetHandle("contentEditable"); private static readonly IntPtr selSetContentEditable_Handle = Selector.GetHandle("setContentEditable:"); private static readonly IntPtr selIsContentEditableHandle = Selector.GetHandle("isContentEditable"); private static readonly IntPtr selTitleDisplayStringHandle = Selector.GetHandle("titleDisplayString"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMHTMLElement"); private object __mt_Children_var; public override IntPtr ClassHandle => class_ptr; public virtual string IdName { [Export("idName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdNameHandle)); } [Export("setIdName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetIdName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetIdName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Title { [Export("title")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } [Export("setTitle:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTitle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Lang { [Export("lang")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLangHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLangHandle)); } [Export("setLang:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetLang_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetLang_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Dir { [Export("dir")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDirHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDirHandle)); } [Export("setDir:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDir_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDir_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string ClassName { [Export("className")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selClassNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selClassNameHandle)); } [Export("setClassName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetClassName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetClassName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int TabIndex { [Export("tabIndex")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTabIndexHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTabIndexHandle); } [Export("setTabIndex:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTabIndex_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTabIndex_Handle, value); } } } public virtual string InnerHTML { [Export("innerHTML")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInnerHTMLHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInnerHTMLHandle)); } [Export("setInnerHTML:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInnerHTML_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInnerHTML_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual string InnerText { [Export("innerText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selInnerTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInnerTextHandle)); } [Export("setInnerText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetInnerText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetInnerText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string OuterHTML { [Export("outerHTML")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOuterHTMLHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOuterHTMLHandle)); } [Export("setOuterHTML:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOuterHTML_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOuterHTML_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string OuterText { [Export("outerText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOuterTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOuterTextHandle)); } [Export("setOuterText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetOuterText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetOuterText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomHtmlCollection Children { [Export("children")] get { return (DomHtmlCollection)(__mt_Children_var = ((!IsDirectBinding) ? ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildrenHandle))) : ((DomHtmlCollection)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChildrenHandle))))); } } public virtual string ContentEditable { [Export("contentEditable")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selContentEditableHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selContentEditableHandle)); } [Export("setContentEditable:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetContentEditable_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetContentEditable_Handle, arg); } NSString.ReleaseNative(arg); } } public new virtual bool IsContentEditable { [Export("isContentEditable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContentEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContentEditableHandle); } } public virtual string TitleDisplayString { [Export("titleDisplayString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleDisplayStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleDisplayStringHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomHtmlElement(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlElement(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlElement(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Children_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomHtmlInputElement.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMHTMLInputElement", true)] public class DomHtmlInputElement : DomHtmlElement { private static readonly IntPtr selAcceptHandle = Selector.GetHandle("accept"); private static readonly IntPtr selSetAccept_Handle = Selector.GetHandle("setAccept:"); private static readonly IntPtr selAltHandle = Selector.GetHandle("alt"); private static readonly IntPtr selSetAlt_Handle = Selector.GetHandle("setAlt:"); private static readonly IntPtr selAutofocusHandle = Selector.GetHandle("autofocus"); private static readonly IntPtr selSetAutofocus_Handle = Selector.GetHandle("setAutofocus:"); private static readonly IntPtr selDefaultCheckedHandle = Selector.GetHandle("defaultChecked"); private static readonly IntPtr selSetDefaultChecked_Handle = Selector.GetHandle("setDefaultChecked:"); private static readonly IntPtr selCheckedHandle = Selector.GetHandle("checked"); private static readonly IntPtr selSetChecked_Handle = Selector.GetHandle("setChecked:"); private static readonly IntPtr selDisabledHandle = Selector.GetHandle("disabled"); private static readonly IntPtr selSetDisabled_Handle = Selector.GetHandle("setDisabled:"); private static readonly IntPtr selIndeterminateHandle = Selector.GetHandle("indeterminate"); private static readonly IntPtr selSetIndeterminate_Handle = Selector.GetHandle("setIndeterminate:"); private static readonly IntPtr selMaxLengthHandle = Selector.GetHandle("maxLength"); private static readonly IntPtr selSetMaxLength_Handle = Selector.GetHandle("setMaxLength:"); private static readonly IntPtr selMultipleHandle = Selector.GetHandle("multiple"); private static readonly IntPtr selSetMultiple_Handle = Selector.GetHandle("setMultiple:"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selReadOnlyHandle = Selector.GetHandle("readOnly"); private static readonly IntPtr selSetReadOnly_Handle = Selector.GetHandle("setReadOnly:"); private static readonly IntPtr selSizeHandle = Selector.GetHandle("size"); private static readonly IntPtr selSetSize_Handle = Selector.GetHandle("setSize:"); private static readonly IntPtr selSrcHandle = Selector.GetHandle("src"); private static readonly IntPtr selSetSrc_Handle = Selector.GetHandle("setSrc:"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selSetType_Handle = Selector.GetHandle("setType:"); private static readonly IntPtr selDefaultValueHandle = Selector.GetHandle("defaultValue"); private static readonly IntPtr selSetDefaultValue_Handle = Selector.GetHandle("setDefaultValue:"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selSetValue_Handle = Selector.GetHandle("setValue:"); private static readonly IntPtr selWillValidateHandle = Selector.GetHandle("willValidate"); private static readonly IntPtr selSelectionStartHandle = Selector.GetHandle("selectionStart"); private static readonly IntPtr selSetSelectionStart_Handle = Selector.GetHandle("setSelectionStart:"); private static readonly IntPtr selSelectionEndHandle = Selector.GetHandle("selectionEnd"); private static readonly IntPtr selSetSelectionEnd_Handle = Selector.GetHandle("setSelectionEnd:"); private static readonly IntPtr selAlignHandle = Selector.GetHandle("align"); private static readonly IntPtr selSetAlign_Handle = Selector.GetHandle("setAlign:"); private static readonly IntPtr selUseMapHandle = Selector.GetHandle("useMap"); private static readonly IntPtr selSetUseMap_Handle = Selector.GetHandle("setUseMap:"); private static readonly IntPtr selAccessKeyHandle = Selector.GetHandle("accessKey"); private static readonly IntPtr selSetAccessKey_Handle = Selector.GetHandle("setAccessKey:"); private static readonly IntPtr selAltDisplayStringHandle = Selector.GetHandle("altDisplayString"); private static readonly IntPtr selAbsoluteImageURLHandle = Selector.GetHandle("absoluteImageURL"); private static readonly IntPtr selSelectHandle = Selector.GetHandle("select"); private static readonly IntPtr selSetSelectionRangeEnd_Handle = Selector.GetHandle("setSelectionRange:end:"); private static readonly IntPtr selClickHandle = Selector.GetHandle("click"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMHTMLInputElement"); private object __mt_AbsoluteImageURL_var; public override IntPtr ClassHandle => class_ptr; public virtual string Accept { [Export("accept")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAcceptHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAcceptHandle)); } [Export("setAccept:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccept_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccept_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Alt { [Export("alt")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAltHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAltHandle)); } [Export("setAlt:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlt_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlt_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Autofocus { [Export("autofocus")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutofocusHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutofocusHandle); } [Export("setAutofocus:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutofocus_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutofocus_Handle, value); } } } public virtual bool defaultChecked { [Export("defaultChecked")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDefaultCheckedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDefaultCheckedHandle); } [Export("setDefaultChecked:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDefaultChecked_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDefaultChecked_Handle, value); } } } public virtual bool Checked { [Export("checked")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCheckedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCheckedHandle); } [Export("setChecked:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetChecked_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetChecked_Handle, value); } } } public virtual bool Disabled { [Export("disabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisabledHandle); } [Export("setDisabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisabled_Handle, value); } } } public virtual bool Indeterminate { [Export("indeterminate")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIndeterminateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIndeterminateHandle); } [Export("setIndeterminate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetIndeterminate_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetIndeterminate_Handle, value); } } } public virtual int MaxLength { [Export("maxLength")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMaxLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMaxLengthHandle); } [Export("setMaxLength:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMaxLength_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMaxLength_Handle, value); } } } public virtual bool Multiple { [Export("multiple")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMultipleHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMultipleHandle); } [Export("setMultiple:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMultiple_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMultiple_Handle, value); } } } public new virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ReadOnly { [Export("readOnly")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReadOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReadOnlyHandle); } [Export("setReadOnly:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReadOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReadOnly_Handle, value); } } } public virtual string Size { [Export("size")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSizeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSizeHandle)); } [Export("setSize:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSize_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSize_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Src { [Export("src")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSrcHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSrcHandle)); } [Export("setSrc:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSrc_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSrc_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } [Export("setType:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetType_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetType_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string DefaultValue { [Export("defaultValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultValueHandle)); } [Export("setDefaultValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string Value { [Export("value")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)); } [Export("setValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool WillValidate { [Export("willValidate")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selWillValidateHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selWillValidateHandle); } } public virtual int SelectionStart { [Export("selectionStart")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSelectionStartHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSelectionStartHandle); } [Export("setSelectionStart:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetSelectionStart_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetSelectionStart_Handle, value); } } } public virtual int SelectionEnd { [Export("selectionEnd")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSelectionEndHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSelectionEndHandle); } [Export("setSelectionEnd:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetSelectionEnd_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetSelectionEnd_Handle, value); } } } public virtual string Align { [Export("align")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlignHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlignHandle)); } [Export("setAlign:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlign_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlign_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string UseMap { [Export("useMap")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selUseMapHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUseMapHandle)); } [Export("setUseMap:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUseMap_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUseMap_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string AccessKey { [Export("accessKey")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessKeyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessKeyHandle)); } [Export("setAccessKey:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessKey_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string AltDisplayString { [Export("altDisplayString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAltDisplayStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAltDisplayStringHandle)); } } public virtual NSUrl AbsoluteImageURL { [Export("absoluteImageURL")] get { return (NSUrl)(__mt_AbsoluteImageURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAbsoluteImageURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAbsoluteImageURLHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomHtmlInputElement(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlInputElement(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlInputElement(IntPtr handle) : base(handle) { } [Export("select")] public virtual void Select() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSelectHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSelectHandle); } } [Export("setSelectionRange:end:")] public virtual void SetSelectionRange(int start, int end) { if (IsDirectBinding) { Messaging.void_objc_msgSend_int_int(base.Handle, selSetSelectionRangeEnd_Handle, start, end); } else { Messaging.void_objc_msgSendSuper_int_int(base.SuperHandle, selSetSelectionRangeEnd_Handle, start, end); } } [Export("click")] public virtual void Click() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selClickHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selClickHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_AbsoluteImageURL_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomHtmlTextAreaElement.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMHTMLTextAreaElement", true)] public class DomHtmlTextAreaElement : DomHtmlElement { private static readonly IntPtr selAccessKeyHandle = Selector.GetHandle("accessKey"); private static readonly IntPtr selSetAccessKey_Handle = Selector.GetHandle("setAccessKey:"); private static readonly IntPtr selColsHandle = Selector.GetHandle("cols"); private static readonly IntPtr selSetCols_Handle = Selector.GetHandle("setCols:"); private static readonly IntPtr selDefaultValueHandle = Selector.GetHandle("defaultValue"); private static readonly IntPtr selSetDefaultValue_Handle = Selector.GetHandle("setDefaultValue:"); private static readonly IntPtr selDisabledHandle = Selector.GetHandle("disabled"); private static readonly IntPtr selSetDisabled_Handle = Selector.GetHandle("setDisabled:"); private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selSetName_Handle = Selector.GetHandle("setName:"); private static readonly IntPtr selReadOnlyHandle = Selector.GetHandle("readOnly"); private static readonly IntPtr selSetReadOnly_Handle = Selector.GetHandle("setReadOnly:"); private static readonly IntPtr selRowsHandle = Selector.GetHandle("rows"); private static readonly IntPtr selSetRows_Handle = Selector.GetHandle("setRows:"); private static readonly IntPtr selTabIndexHandle = Selector.GetHandle("tabIndex"); private static readonly IntPtr selSetTabIndex_Handle = Selector.GetHandle("setTabIndex:"); private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selValueHandle = Selector.GetHandle("value"); private static readonly IntPtr selSetValue_Handle = Selector.GetHandle("setValue:"); private static readonly IntPtr selBlurHandle = Selector.GetHandle("blur"); private static readonly IntPtr selFocusHandle = Selector.GetHandle("focus"); private static readonly IntPtr selSelectHandle = Selector.GetHandle("select"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMHTMLTextAreaElement"); public override IntPtr ClassHandle => class_ptr; public virtual string AccessKey { [Export("accessKey")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAccessKeyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAccessKeyHandle)); } [Export("setAccessKey:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAccessKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAccessKey_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int Columns { [Export("cols")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selColsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selColsHandle); } [Export("setCols:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetCols_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetCols_Handle, value); } } } public virtual string DefaultValue { [Export("defaultValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultValueHandle)); } [Export("setDefaultValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool Disabled { [Export("disabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisabledHandle); } [Export("setDisabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisabled_Handle, value); } } } public new virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } [Export("setName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool ReadOnly { [Export("readOnly")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selReadOnlyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selReadOnlyHandle); } [Export("setReadOnly:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetReadOnly_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetReadOnly_Handle, value); } } } public virtual int Rows { [Export("rows")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selRowsHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selRowsHandle); } [Export("setRows:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetRows_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetRows_Handle, value); } } } public new virtual int TabIndex { [Export("tabIndex")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selTabIndexHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selTabIndexHandle); } [Export("setTabIndex:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetTabIndex_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetTabIndex_Handle, value); } } } public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual string Value { [Export("value")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selValueHandle)); } [Export("setValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetValue_Handle, arg); } NSString.ReleaseNative(arg); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomHtmlTextAreaElement(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlTextAreaElement(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomHtmlTextAreaElement(IntPtr handle) : base(handle) { } [Export("blur")] public new virtual void Blur() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selBlurHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selBlurHandle); } } [Export("focus")] public new virtual void Focus() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selFocusHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selFocusHandle); } } [Export("select")] public virtual void Select() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selSelectHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selSelectHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomImplementation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMImplementation", true)] public class DomImplementation : DomObject { private static readonly IntPtr selHasFeatureVersion_Handle = Selector.GetHandle("hasFeature:version:"); private static readonly IntPtr selCreateDocumentTypePublicIdSystemId_Handle = Selector.GetHandle("createDocumentType:publicId:systemId:"); private static readonly IntPtr selCreateDocumentQualifiedNameDoctype_Handle = Selector.GetHandle("createDocument:qualifiedName:doctype:"); private static readonly IntPtr selCreateCSSStyleSheetMedia_Handle = Selector.GetHandle("createCSSStyleSheet:media:"); private static readonly IntPtr selCreateHTMLDocument_Handle = Selector.GetHandle("createHTMLDocument:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMImplementation"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomImplementation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomImplementation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomImplementation(IntPtr handle) : base(handle) { } [Export("hasFeature:version:")] public virtual bool HasFeature(string feature, string version) { if (feature == null) { throw new ArgumentNullException("feature"); } if (version == null) { throw new ArgumentNullException("version"); } IntPtr arg = NSString.CreateNative(feature); IntPtr arg2 = NSString.CreateNative(version); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selHasFeatureVersion_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selHasFeatureVersion_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("createDocumentType:publicId:systemId:")] public virtual DomDocumentType CreateDocumentType(string qualifiedName, string publicId, string systemId) { if (qualifiedName == null) { throw new ArgumentNullException("qualifiedName"); } if (publicId == null) { throw new ArgumentNullException("publicId"); } if (systemId == null) { throw new ArgumentNullException("systemId"); } IntPtr arg = NSString.CreateNative(qualifiedName); IntPtr arg2 = NSString.CreateNative(publicId); IntPtr arg3 = NSString.CreateNative(systemId); DomDocumentType result = ((!IsDirectBinding) ? ((DomDocumentType)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateDocumentTypePublicIdSystemId_Handle, arg, arg2, arg3))) : ((DomDocumentType)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCreateDocumentTypePublicIdSystemId_Handle, arg, arg2, arg3)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); return result; } [Export("createDocument:qualifiedName:doctype:")] public virtual DomDocument CreateDocument(string namespaceUri, string qualifiedName, DomDocumentType doctype) { if (namespaceUri == null) { throw new ArgumentNullException("namespaceUri"); } if (qualifiedName == null) { throw new ArgumentNullException("qualifiedName"); } if (doctype == null) { throw new ArgumentNullException("doctype"); } IntPtr arg = NSString.CreateNative(namespaceUri); IntPtr arg2 = NSString.CreateNative(qualifiedName); DomDocument result = ((!IsDirectBinding) ? ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCreateDocumentQualifiedNameDoctype_Handle, arg, arg2, doctype.Handle))) : ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCreateDocumentQualifiedNameDoctype_Handle, arg, arg2, doctype.Handle)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("createCSSStyleSheet:media:")] public virtual DomCssStyleSheet CreateCssStyleSheet(string title, string media) { if (title == null) { throw new ArgumentNullException("title"); } if (media == null) { throw new ArgumentNullException("media"); } IntPtr arg = NSString.CreateNative(title); IntPtr arg2 = NSString.CreateNative(media); DomCssStyleSheet result = ((!IsDirectBinding) ? ((DomCssStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCreateCSSStyleSheetMedia_Handle, arg, arg2))) : ((DomCssStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCreateCSSStyleSheetMedia_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("createHTMLDocument:")] public virtual DomHtmlDocument CreateHtmlDocument(string title) { if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(title); DomHtmlDocument result = ((!IsDirectBinding) ? ((DomHtmlDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateHTMLDocument_Handle, arg))) : ((DomHtmlDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateHTMLDocument_Handle, arg)))); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomMediaList.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMMediaList", true)] public class DomMediaList : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selMediaTextHandle = Selector.GetHandle("mediaText"); private static readonly IntPtr selSetMediaText_Handle = Selector.GetHandle("setMediaText:"); private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr selDeleteMedium_Handle = Selector.GetHandle("deleteMedium:"); private static readonly IntPtr selAppendMedium_Handle = Selector.GetHandle("appendMedium:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMMediaList"); public override IntPtr ClassHandle => class_ptr; public virtual string MediaText { [Export("mediaText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaTextHandle)); } [Export("setMediaText:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMediaText_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMediaText_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public string this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomMediaList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomMediaList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomMediaList(IntPtr handle) : base(handle) { } [Export("item:")] public virtual string GetItem(int index) { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } [Export("deleteMedium:")] public virtual void DeleteMedium(string oldMedium) { if (oldMedium == null) { throw new ArgumentNullException("oldMedium"); } IntPtr arg = NSString.CreateNative(oldMedium); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDeleteMedium_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDeleteMedium_Handle, arg); } NSString.ReleaseNative(arg); } [Export("appendMedium:")] public virtual void AppendMedium(string newMedium) { if (newMedium == null) { throw new ArgumentNullException("newMedium"); } IntPtr arg = NSString.CreateNative(newMedium); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAppendMedium_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendMedium_Handle, arg); } NSString.ReleaseNative(arg); } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomNamedNodeMap.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMNamedNodeMap", true)] public class DomNamedNodeMap : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selGetNamedItem_Handle = Selector.GetHandle("getNamedItem:"); private static readonly IntPtr selSetNamedItem_Handle = Selector.GetHandle("setNamedItem:"); private static readonly IntPtr selRemoveNamedItem_Handle = Selector.GetHandle("removeNamedItem:"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr selGetNamedItemNSLocalName_Handle = Selector.GetHandle("getNamedItemNS:localName:"); private static readonly IntPtr selSetNamedItemNS_Handle = Selector.GetHandle("setNamedItemNS:"); private static readonly IntPtr selRemoveNamedItemNSLocalName_Handle = Selector.GetHandle("removeNamedItemNS:localName:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMNamedNodeMap"); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public DomNode this[int index] => GetItem(index); public DomNode this[string name] => GetNamedItem(name); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomNamedNodeMap(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNamedNodeMap(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNamedNodeMap(IntPtr handle) : base(handle) { } [Export("getNamedItem:")] public virtual DomNode GetNamedItem(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNode result = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetNamedItem_Handle, arg))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selGetNamedItem_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("setNamedItem:")] public virtual DomNode SetNamedItem(DomNode node) { if (node == null) { throw new ArgumentNullException("node"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetNamedItem_Handle, node.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNamedItem_Handle, node.Handle)); } [Export("removeNamedItem:")] public virtual DomNode RemoveNamedItem(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); DomNode result = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveNamedItem_Handle, arg))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRemoveNamedItem_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("item:")] public virtual DomNode GetItem(int index) { if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } [Export("getNamedItemNS:localName:")] public virtual DomNode GetNamedItemNS(string namespaceUri, string localName) { if (namespaceUri == null) { throw new ArgumentNullException("namespaceUri"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceUri); IntPtr arg2 = NSString.CreateNative(localName); DomNode result = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selGetNamedItemNSLocalName_Handle, arg, arg2))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selGetNamedItemNSLocalName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("setNamedItemNS:")] public virtual DomNode SetNamedItemNS(DomNode node) { if (node == null) { throw new ArgumentNullException("node"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSetNamedItemNS_Handle, node.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNamedItemNS_Handle, node.Handle)); } [Export("removeNamedItemNS:localName:")] public virtual DomNode RemoveNamedItemNS(string namespaceURI, string localName) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } if (localName == null) { throw new ArgumentNullException("localName"); } IntPtr arg = NSString.CreateNative(namespaceURI); IntPtr arg2 = NSString.CreateNative(localName); DomNode result = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveNamedItemNSLocalName_Handle, arg, arg2))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveNamedItemNSLocalName_Handle, arg, arg2)))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomNode.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMNode", true)] public class DomNode : DomObject { internal class DomNodeEventProxy : DomEventListener { private DomEventListenerHandler handler; private DomNode root; public DomNodeEventProxy(DomNode root, DomEventListenerHandler handler) { this.root = root; this.handler = handler; } public override void HandleEvent(DomEvent evt) { handler(root, new DomEventArgs(evt)); } } internal class DomNodeEventProxy2 : DomEventListener { private Action callback; public DomNodeEventProxy2(Action callback) { this.callback = callback; } public override void HandleEvent(DomEvent evt) { callback(evt); } } private static readonly IntPtr selNodeNameHandle = Selector.GetHandle("nodeName"); private static readonly IntPtr selNodeValueHandle = Selector.GetHandle("nodeValue"); private static readonly IntPtr selSetNodeValue_Handle = Selector.GetHandle("setNodeValue:"); private static readonly IntPtr selNodeTypeHandle = Selector.GetHandle("nodeType"); private static readonly IntPtr selParentNodeHandle = Selector.GetHandle("parentNode"); private static readonly IntPtr selChildNodesHandle = Selector.GetHandle("childNodes"); private static readonly IntPtr selFirstChildHandle = Selector.GetHandle("firstChild"); private static readonly IntPtr selLastChildHandle = Selector.GetHandle("lastChild"); private static readonly IntPtr selPreviousSiblingHandle = Selector.GetHandle("previousSibling"); private static readonly IntPtr selNextSiblingHandle = Selector.GetHandle("nextSibling"); private static readonly IntPtr selAttributesHandle = Selector.GetHandle("attributes"); private static readonly IntPtr selOwnerDocumentHandle = Selector.GetHandle("ownerDocument"); private static readonly IntPtr selNamespaceURIHandle = Selector.GetHandle("namespaceURI"); private static readonly IntPtr selPrefixHandle = Selector.GetHandle("prefix"); private static readonly IntPtr selSetPrefix_Handle = Selector.GetHandle("setPrefix:"); private static readonly IntPtr selLocalNameHandle = Selector.GetHandle("localName"); private static readonly IntPtr selBaseURIHandle = Selector.GetHandle("baseURI"); private static readonly IntPtr selTextContentHandle = Selector.GetHandle("textContent"); private static readonly IntPtr selSetTextContent_Handle = Selector.GetHandle("setTextContent:"); private static readonly IntPtr selParentElementHandle = Selector.GetHandle("parentElement"); private static readonly IntPtr selIsContentEditableHandle = Selector.GetHandle("isContentEditable"); private static readonly IntPtr selInsertBeforeRefChild_Handle = Selector.GetHandle("insertBefore:refChild:"); private static readonly IntPtr selReplaceChildOldChild_Handle = Selector.GetHandle("replaceChild:oldChild:"); private static readonly IntPtr selRemoveChild_Handle = Selector.GetHandle("removeChild:"); private static readonly IntPtr selAppendChild_Handle = Selector.GetHandle("appendChild:"); private static readonly IntPtr selHasChildNodesHandle = Selector.GetHandle("hasChildNodes"); private static readonly IntPtr selCloneNode_Handle = Selector.GetHandle("cloneNode:"); private static readonly IntPtr selNormalizeHandle = Selector.GetHandle("normalize"); private static readonly IntPtr selIsSupportedVersion_Handle = Selector.GetHandle("isSupported:version:"); private static readonly IntPtr selHasAttributesHandle = Selector.GetHandle("hasAttributes"); private static readonly IntPtr selIsSameNode_Handle = Selector.GetHandle("isSameNode:"); private static readonly IntPtr selIsEqualNode_Handle = Selector.GetHandle("isEqualNode:"); private static readonly IntPtr selLookupPrefix_Handle = Selector.GetHandle("lookupPrefix:"); private static readonly IntPtr selIsDefaultNamespace_Handle = Selector.GetHandle("isDefaultNamespace:"); private static readonly IntPtr selLookupNamespaceURI_Handle = Selector.GetHandle("lookupNamespaceURI:"); private static readonly IntPtr selCompareDocumentPosition_Handle = Selector.GetHandle("compareDocumentPosition:"); private static readonly IntPtr selAddEventListenerListenerUseCapture_Handle = Selector.GetHandle("addEventListener:listener:useCapture:"); private static readonly IntPtr selRemoveEventListenerListenerUseCapture_Handle = Selector.GetHandle("removeEventListener:listener:useCapture:"); private static readonly IntPtr selDispatchEvent_Handle = Selector.GetHandle("dispatchEvent:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMNode"); private object __mt_ParentNode_var; private object __mt_ChildNodes_var; private object __mt_FirstChild_var; private object __mt_LastChild_var; private object __mt_PreviousSibling_var; private object __mt_NextSibling_var; private object __mt_Attributes_var; private object __mt_OwnerDocument_var; private object __mt_ParentElement_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("nodeName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNodeNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNodeNameHandle)); } } public virtual string NodeValue { [Export("nodeValue")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNodeValueHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNodeValueHandle)); } [Export("setNodeValue:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetNodeValue_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetNodeValue_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomNodeType NodeType { [Export("nodeType")] get { if (IsDirectBinding) { return (DomNodeType)Messaging.UInt16_objc_msgSend(base.Handle, selNodeTypeHandle); } return (DomNodeType)Messaging.UInt16_objc_msgSendSuper(base.SuperHandle, selNodeTypeHandle); } } public virtual DomNode ParentNode { [Export("parentNode")] get { return (DomNode)(__mt_ParentNode_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentNodeHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentNodeHandle))))); } } public virtual DomNodeList ChildNodes { [Export("childNodes")] get { return (DomNodeList)(__mt_ChildNodes_var = ((!IsDirectBinding) ? ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildNodesHandle))) : ((DomNodeList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selChildNodesHandle))))); } } public virtual DomNode FirstChild { [Export("firstChild")] get { return (DomNode)(__mt_FirstChild_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFirstChildHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFirstChildHandle))))); } } public virtual DomNode LastChild { [Export("lastChild")] get { return (DomNode)(__mt_LastChild_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLastChildHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selLastChildHandle))))); } } public virtual DomNode PreviousSibling { [Export("previousSibling")] get { return (DomNode)(__mt_PreviousSibling_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreviousSiblingHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPreviousSiblingHandle))))); } } public virtual DomNode NextSibling { [Export("nextSibling")] get { return (DomNode)(__mt_NextSibling_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNextSiblingHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selNextSiblingHandle))))); } } public virtual DomNamedNodeMap Attributes { [Export("attributes")] get { return (DomNamedNodeMap)(__mt_Attributes_var = ((!IsDirectBinding) ? ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAttributesHandle))) : ((DomNamedNodeMap)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selAttributesHandle))))); } } public virtual DomDocument OwnerDocument { [Export("ownerDocument")] get { return (DomDocument)(__mt_OwnerDocument_var = ((!IsDirectBinding) ? ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerDocumentHandle))) : ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerDocumentHandle))))); } } public virtual string NamespaceURI { [Export("namespaceURI")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNamespaceURIHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNamespaceURIHandle)); } } public virtual string Prefix { [Export("prefix")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPrefixHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPrefixHandle)); } [Export("setPrefix:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPrefix_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPrefix_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string LocalName { [Export("localName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selLocalNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selLocalNameHandle)); } } public virtual string BaseURI { [Export("baseURI")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selBaseURIHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBaseURIHandle)); } } public virtual string TextContent { [Export("textContent")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextContentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextContentHandle)); } [Export("setTextContent:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTextContent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTextContent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomElement ParentElement { [Export("parentElement")] get { return (DomElement)(__mt_ParentElement_var = ((!IsDirectBinding) ? ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentElementHandle))) : ((DomElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentElementHandle))))); } } public virtual bool IsContentEditable { [Export("isContentEditable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContentEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContentEditableHandle); } } public DomEventListener AddEventListener(string type, DomEventListenerHandler handler, bool useCapture) { if (handler == null) { throw new ArgumentNullException("handler"); } DomNodeEventProxy domNodeEventProxy = new DomNodeEventProxy(this, handler); AddEventListener(type, domNodeEventProxy, useCapture); return domNodeEventProxy; } public DomEventListener AddEventListener(string type, Action callback, bool useCapture) { if (callback == null) { throw new ArgumentNullException("callback"); } DomNodeEventProxy2 domNodeEventProxy = new DomNodeEventProxy2(callback); AddEventListener(type, domNodeEventProxy, useCapture); return domNodeEventProxy; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomNode(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNode(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNode(IntPtr handle) : base(handle) { } [Export("insertBefore:refChild:")] public virtual DomNode InsertBefore(DomNode newChild, DomNode refChild) { if (newChild == null) { throw new ArgumentNullException("newChild"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selInsertBeforeRefChild_Handle, newChild.Handle, refChild?.Handle ?? IntPtr.Zero)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selInsertBeforeRefChild_Handle, newChild.Handle, refChild?.Handle ?? IntPtr.Zero)); } [Export("replaceChild:oldChild:")] public virtual DomNode ReplaceChild(DomNode newChild, DomNode oldChild) { if (newChild == null) { throw new ArgumentNullException("newChild"); } if (oldChild == null) { throw new ArgumentNullException("oldChild"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selReplaceChildOldChild_Handle, newChild.Handle, oldChild.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selReplaceChildOldChild_Handle, newChild.Handle, oldChild.Handle)); } [Export("removeChild:")] public virtual DomNode RemoveChild(DomNode oldChild) { if (oldChild == null) { throw new ArgumentNullException("oldChild"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selRemoveChild_Handle, oldChild.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveChild_Handle, oldChild.Handle)); } [Export("appendChild:")] public virtual DomNode AppendChild(DomNode newChild) { if (newChild == null) { throw new ArgumentNullException("newChild"); } if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selAppendChild_Handle, newChild.Handle)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selAppendChild_Handle, newChild.Handle)); } [Export("hasChildNodes")] public virtual bool HasChildNodes() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasChildNodesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasChildNodesHandle); } [Export("cloneNode:")] public virtual DomNode CloneNode(bool deep) { if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_bool(base.Handle, selCloneNode_Handle, deep)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_bool(base.SuperHandle, selCloneNode_Handle, deep)); } [Export("normalize")] public virtual void Normalize() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selNormalizeHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selNormalizeHandle); } } [Export("isSupported:version:")] public virtual bool IsSupported(string feature, string version) { if (feature == null) { throw new ArgumentNullException("feature"); } if (version == null) { throw new ArgumentNullException("version"); } IntPtr arg = NSString.CreateNative(feature); IntPtr arg2 = NSString.CreateNative(version); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selIsSupportedVersion_Handle, arg, arg2) : Messaging.bool_objc_msgSend_IntPtr_IntPtr(base.Handle, selIsSupportedVersion_Handle, arg, arg2)); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export("hasAttributes")] public virtual bool HasAttributes() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selHasAttributesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selHasAttributesHandle); } [Export("isSameNode:")] public virtual bool IsSameNode(DomNode other) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsSameNode_Handle, other?.Handle ?? IntPtr.Zero); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsSameNode_Handle, other?.Handle ?? IntPtr.Zero); } [Export("isEqualNode:")] public virtual bool IsEqualNode(DomNode other) { if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsEqualNode_Handle, other?.Handle ?? IntPtr.Zero); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsEqualNode_Handle, other?.Handle ?? IntPtr.Zero); } [Export("lookupPrefix:")] public virtual string LookupPrefix(string namespaceURI) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } IntPtr arg = NSString.CreateNative(namespaceURI); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLookupPrefix_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLookupPrefix_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("isDefaultNamespace:")] public virtual bool IsDefaultNamespace(string namespaceURI) { if (namespaceURI == null) { throw new ArgumentNullException("namespaceURI"); } IntPtr arg = NSString.CreateNative(namespaceURI); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIsDefaultNamespace_Handle, arg) : Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIsDefaultNamespace_Handle, arg)); NSString.ReleaseNative(arg); return result; } [Export("lookupNamespaceURI:")] public virtual string LookupNamespace(string prefix) { if (prefix == null) { throw new ArgumentNullException("prefix"); } IntPtr arg = NSString.CreateNative(prefix); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selLookupNamespaceURI_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selLookupNamespaceURI_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("compareDocumentPosition:")] public virtual DomDocumentPosition CompareDocumentPosition(DomNode other) { if (other == null) { throw new ArgumentNullException("other"); } if (IsDirectBinding) { return (DomDocumentPosition)Messaging.UInt16_objc_msgSend_IntPtr(base.Handle, selCompareDocumentPosition_Handle, other.Handle); } return (DomDocumentPosition)Messaging.UInt16_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompareDocumentPosition_Handle, other.Handle); } [Export("addEventListener:listener:useCapture:")] public virtual void AddEventListener(string type, DomEventListener listener, bool useCapture) { if (type == null) { throw new ArgumentNullException("type"); } if (listener == null) { throw new ArgumentNullException("listener"); } IntPtr arg = NSString.CreateNative(type); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selAddEventListenerListenerUseCapture_Handle, arg, listener.Handle, useCapture); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selAddEventListenerListenerUseCapture_Handle, arg, listener.Handle, useCapture); } NSString.ReleaseNative(arg); } [Export("removeEventListener:listener:useCapture:")] public virtual void RemoveEventListener(string type, DomEventListener listener, bool useCapture) { if (type == null) { throw new ArgumentNullException("type"); } if (listener == null) { throw new ArgumentNullException("listener"); } IntPtr arg = NSString.CreateNative(type); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(base.Handle, selRemoveEventListenerListenerUseCapture_Handle, arg, listener.Handle, useCapture); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_bool(base.SuperHandle, selRemoveEventListenerListenerUseCapture_Handle, arg, listener.Handle, useCapture); } NSString.ReleaseNative(arg); } [Export("dispatchEvent:")] public virtual bool DispatchEvent(DomEvent evt) { if (evt == null) { throw new ArgumentNullException("evt"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selDispatchEvent_Handle, evt.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selDispatchEvent_Handle, evt.Handle); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_ParentNode_var = null; __mt_ChildNodes_var = null; __mt_FirstChild_var = null; __mt_LastChild_var = null; __mt_PreviousSibling_var = null; __mt_NextSibling_var = null; __mt_Attributes_var = null; __mt_OwnerDocument_var = null; __mt_ParentElement_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomNodeList.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMNodeList", true)] public class DomNodeList : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMNodeList"); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public DomNode this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomNodeList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNodeList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomNodeList(IntPtr handle) : base(handle) { } [Export("item:")] public virtual DomNode GetItem(int index) { if (IsDirectBinding) { return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return (DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomNodeType.cs ================================================ namespace WebKit; public enum DomNodeType : ushort { Element = 1, Attribute, Text, CData, EntityReference, Entity, ProcessingInstruction, Comment, Document, DocumentType, DocumentFragment, Notation } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomObject.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMObject", true)] public class DomObject : WebScriptObject { private static readonly IntPtr class_ptr = Class.GetHandle("DOMObject"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomObject(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomObject(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomObject(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomProcessingInstruction.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMProcessingInstruction", true)] public class DomProcessingInstruction : DomNode { private static readonly IntPtr selTargetHandle = Selector.GetHandle("target"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selSetData_Handle = Selector.GetHandle("setData:"); private static readonly IntPtr selSheetHandle = Selector.GetHandle("sheet"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMProcessingInstruction"); private object __mt_Sheet_var; public override IntPtr ClassHandle => class_ptr; public virtual string Target { [Export("target")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTargetHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTargetHandle)); } } public virtual string Data { [Export("data")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle)); } [Export("setData:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetData_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetData_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomStyleSheet Sheet { [Export("sheet")] get { return (DomStyleSheet)(__mt_Sheet_var = ((!IsDirectBinding) ? ((DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSheetHandle))) : ((DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSheetHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomProcessingInstruction(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomProcessingInstruction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomProcessingInstruction(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Sheet_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomRange.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMRange", true)] public class DomRange : DomObject { private static readonly IntPtr selStartContainerHandle = Selector.GetHandle("startContainer"); private static readonly IntPtr selStartOffsetHandle = Selector.GetHandle("startOffset"); private static readonly IntPtr selEndContainerHandle = Selector.GetHandle("endContainer"); private static readonly IntPtr selEndOffsetHandle = Selector.GetHandle("endOffset"); private static readonly IntPtr selCollapsedHandle = Selector.GetHandle("collapsed"); private static readonly IntPtr selCommonAncestorContainerHandle = Selector.GetHandle("commonAncestorContainer"); private static readonly IntPtr selTextHandle = Selector.GetHandle("text"); private static readonly IntPtr selSetStartOffset_Handle = Selector.GetHandle("setStart:offset:"); private static readonly IntPtr selSetEndOffset_Handle = Selector.GetHandle("setEnd:offset:"); private static readonly IntPtr selSetStartBefore_Handle = Selector.GetHandle("setStartBefore:"); private static readonly IntPtr selSetStartAfter_Handle = Selector.GetHandle("setStartAfter:"); private static readonly IntPtr selSetEndBefore_Handle = Selector.GetHandle("setEndBefore:"); private static readonly IntPtr selSetEndAfter_Handle = Selector.GetHandle("setEndAfter:"); private static readonly IntPtr selCollapse_Handle = Selector.GetHandle("collapse:"); private static readonly IntPtr selSelectNode_Handle = Selector.GetHandle("selectNode:"); private static readonly IntPtr selSelectNodeContents_Handle = Selector.GetHandle("selectNodeContents:"); private static readonly IntPtr selCompareBoundaryPointsSourceRange_Handle = Selector.GetHandle("compareBoundaryPoints:sourceRange:"); private static readonly IntPtr selDeleteContentsHandle = Selector.GetHandle("deleteContents"); private static readonly IntPtr selExtractContentsHandle = Selector.GetHandle("extractContents"); private static readonly IntPtr selCloneContentsHandle = Selector.GetHandle("cloneContents"); private static readonly IntPtr selInsertNode_Handle = Selector.GetHandle("insertNode:"); private static readonly IntPtr selSurroundContents_Handle = Selector.GetHandle("surroundContents:"); private static readonly IntPtr selCloneRangeHandle = Selector.GetHandle("cloneRange"); private static readonly IntPtr selToStringHandle = Selector.GetHandle("toString"); private static readonly IntPtr selDetachHandle = Selector.GetHandle("detach"); private static readonly IntPtr selCreateContextualFragment_Handle = Selector.GetHandle("createContextualFragment:"); private static readonly IntPtr selIntersectsNode_Handle = Selector.GetHandle("intersectsNode:"); private static readonly IntPtr selCompareNode_Handle = Selector.GetHandle("compareNode:"); private static readonly IntPtr selComparePointOffset_Handle = Selector.GetHandle("comparePoint:offset:"); private static readonly IntPtr selIsPointInRangeOffset_Handle = Selector.GetHandle("isPointInRange:offset:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMRange"); private object __mt_StartContainer_var; private object __mt_EndContainer_var; private object __mt_CommonAncestorContainer_var; public override IntPtr ClassHandle => class_ptr; public virtual DomNode StartContainer { [Export("startContainer")] get { return (DomNode)(__mt_StartContainer_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStartContainerHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selStartContainerHandle))))); } } public virtual int StartOffset { [Export("startOffset")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selStartOffsetHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selStartOffsetHandle); } } public virtual DomNode EndContainer { [Export("endContainer")] get { return (DomNode)(__mt_EndContainer_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEndContainerHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEndContainerHandle))))); } } public virtual int EndOffset { [Export("endOffset")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selEndOffsetHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selEndOffsetHandle); } } public virtual bool Collapsed { [Export("collapsed")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCollapsedHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCollapsedHandle); } } public virtual DomNode CommonAncestorContainer { [Export("commonAncestorContainer")] get { return (DomNode)(__mt_CommonAncestorContainer_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCommonAncestorContainerHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCommonAncestorContainerHandle))))); } } public virtual string Text { [Export("text")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomRange(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomRange(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomRange(IntPtr handle) : base(handle) { } [Export("setStart:offset:")] public virtual void SetStart(DomNode refNode, int offset) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetStartOffset_Handle, refNode.Handle, offset); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetStartOffset_Handle, refNode.Handle, offset); } } [Export("setEnd:offset:")] public virtual void SetEnd(DomNode refNode, int offset) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_int(base.Handle, selSetEndOffset_Handle, refNode.Handle, offset); } else { Messaging.void_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selSetEndOffset_Handle, refNode.Handle, offset); } } [Export("setStartBefore:")] public virtual void SetStartBefore(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStartBefore_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStartBefore_Handle, refNode.Handle); } } [Export("setStartAfter:")] public virtual void SetStartAfter(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStartAfter_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStartAfter_Handle, refNode.Handle); } } [Export("setEndBefore:")] public virtual void SetEndBefore(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEndBefore_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEndBefore_Handle, refNode.Handle); } } [Export("setEndAfter:")] public virtual void SetEndAfter(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEndAfter_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEndAfter_Handle, refNode.Handle); } } [Export("collapse:")] public virtual void Collapse(bool toStart) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selCollapse_Handle, toStart); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selCollapse_Handle, toStart); } } [Export("selectNode:")] public virtual void SelectNode(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNode_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNode_Handle, refNode.Handle); } } [Export("selectNodeContents:")] public virtual void SelectNodeContents(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectNodeContents_Handle, refNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectNodeContents_Handle, refNode.Handle); } } [Export("compareBoundaryPoints:sourceRange:")] public virtual short CompareBoundaryPoints(DomRangeCompareHow how, DomRange sourceRange) { if (sourceRange == null) { throw new ArgumentNullException("sourceRange"); } if (IsDirectBinding) { return Messaging.short_objc_msgSend_UInt16_IntPtr(base.Handle, selCompareBoundaryPointsSourceRange_Handle, (ushort)how, sourceRange.Handle); } return Messaging.short_objc_msgSendSuper_UInt16_IntPtr(base.SuperHandle, selCompareBoundaryPointsSourceRange_Handle, (ushort)how, sourceRange.Handle); } [Export("deleteContents")] public virtual void DeleteContents() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeleteContentsHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeleteContentsHandle); } } [Export("extractContents")] public virtual DomDocumentFragment ExtractContents() { if (IsDirectBinding) { return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selExtractContentsHandle)); } return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selExtractContentsHandle)); } [Export("cloneContents")] public virtual DomDocumentFragment CloneContents() { if (IsDirectBinding) { return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCloneContentsHandle)); } return (DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCloneContentsHandle)); } [Export("insertNode:")] public virtual void InsertNode(DomNode newNode) { if (newNode == null) { throw new ArgumentNullException("newNode"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selInsertNode_Handle, newNode.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selInsertNode_Handle, newNode.Handle); } } [Export("surroundContents:")] public virtual void SurroundContents(DomNode newParent) { if (newParent == null) { throw new ArgumentNullException("newParent"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSurroundContents_Handle, newParent.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSurroundContents_Handle, newParent.Handle); } } [Export("cloneRange")] public virtual DomRange CloneRange() { if (IsDirectBinding) { return (DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCloneRangeHandle)); } return (DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCloneRangeHandle)); } [Export("toString")] public new virtual string ToString() { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selToStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selToStringHandle)); } [Export("detach")] public virtual void Detach() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDetachHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDetachHandle); } } [Export("createContextualFragment:")] public virtual DomDocumentFragment CreateContextualFragment(string html) { if (html == null) { throw new ArgumentNullException("html"); } IntPtr arg = NSString.CreateNative(html); DomDocumentFragment result = ((!IsDirectBinding) ? ((DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCreateContextualFragment_Handle, arg))) : ((DomDocumentFragment)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCreateContextualFragment_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("intersectsNode:")] public virtual bool IntersectsNode(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selIntersectsNode_Handle, refNode.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selIntersectsNode_Handle, refNode.Handle); } [Export("compareNode:")] public virtual short CompareNode(DomNode refNode) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { return Messaging.short_objc_msgSend_IntPtr(base.Handle, selCompareNode_Handle, refNode.Handle); } return Messaging.short_objc_msgSendSuper_IntPtr(base.SuperHandle, selCompareNode_Handle, refNode.Handle); } [Export("comparePoint:offset:")] public virtual short ComparePoint(DomNode refNode, int offset) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { return Messaging.short_objc_msgSend_IntPtr_int(base.Handle, selComparePointOffset_Handle, refNode.Handle, offset); } return Messaging.short_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selComparePointOffset_Handle, refNode.Handle, offset); } [Export("isPointInRange:offset:")] public virtual bool IsPointInRange(DomNode refNode, int offset) { if (refNode == null) { throw new ArgumentNullException("refNode"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr_int(base.Handle, selIsPointInRangeOffset_Handle, refNode.Handle, offset); } return Messaging.bool_objc_msgSendSuper_IntPtr_int(base.SuperHandle, selIsPointInRangeOffset_Handle, refNode.Handle, offset); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_StartContainer_var = null; __mt_EndContainer_var = null; __mt_CommonAncestorContainer_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomRangeCompareHow.cs ================================================ namespace WebKit; public enum DomRangeCompareHow : ushort { StartToStart, StartToEnd, EndToEnd, EndToStart } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomStyleSheet.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMStyleSheet", true)] public class DomStyleSheet : DomObject { private static readonly IntPtr selTypeHandle = Selector.GetHandle("type"); private static readonly IntPtr selDisabledHandle = Selector.GetHandle("disabled"); private static readonly IntPtr selSetDisabled_Handle = Selector.GetHandle("setDisabled:"); private static readonly IntPtr selOwnerNodeHandle = Selector.GetHandle("ownerNode"); private static readonly IntPtr selParentStyleSheetHandle = Selector.GetHandle("parentStyleSheet"); private static readonly IntPtr selHrefHandle = Selector.GetHandle("href"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selMediaHandle = Selector.GetHandle("media"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMStyleSheet"); private object __mt_OwnerNode_var; private object __mt_ParentStyleSheet_var; private object __mt_Media_var; public override IntPtr ClassHandle => class_ptr; public virtual string Type { [Export("type")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypeHandle)); } } public virtual bool Disabled { [Export("disabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDisabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDisabledHandle); } [Export("setDisabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDisabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDisabled_Handle, value); } } } public virtual DomNode OwnerNode { [Export("ownerNode")] get { return (DomNode)(__mt_OwnerNode_var = ((!IsDirectBinding) ? ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOwnerNodeHandle))) : ((DomNode)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selOwnerNodeHandle))))); } } public virtual DomStyleSheet ParentStyleSheet { [Export("parentStyleSheet")] get { return (DomStyleSheet)(__mt_ParentStyleSheet_var = ((!IsDirectBinding) ? ((DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentStyleSheetHandle))) : ((DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentStyleSheetHandle))))); } } public virtual string Href { [Export("href")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selHrefHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHrefHandle)); } } public virtual string Title { [Export("title")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } } public virtual DomMediaList Media { [Export("media")] get { return (DomMediaList)(__mt_Media_var = ((!IsDirectBinding) ? ((DomMediaList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaHandle))) : ((DomMediaList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomStyleSheet(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomStyleSheet(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomStyleSheet(IntPtr handle) : base(handle) { } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_OwnerNode_var = null; __mt_ParentStyleSheet_var = null; __mt_Media_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomStyleSheetList.cs ================================================ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMStyleSheetList", true)] public class DomStyleSheetList : DomObject, IIndexedContainer, IEnumerable, IEnumerable { private static readonly IntPtr selLengthHandle = Selector.GetHandle("length"); private static readonly IntPtr selItem_Handle = Selector.GetHandle("item:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMStyleSheetList"); public override IntPtr ClassHandle => class_ptr; public virtual int Count { [Export("length")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selLengthHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selLengthHandle); } } public DomStyleSheet this[int index] => GetItem(index); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomStyleSheetList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomStyleSheetList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomStyleSheetList(IntPtr handle) : base(handle) { } [Export("item:")] public virtual DomStyleSheet GetItem(int index) { if (IsDirectBinding) { return (DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItem_Handle, index)); } return (DomStyleSheet)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItem_Handle, index)); } public IEnumerator GetEnumerator() { return new IndexedContainerEnumerator(this); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)this).GetEnumerator(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DomText.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("DOMText", true)] public class DomText : DomCharacterData { private static readonly IntPtr selWholeTextHandle = Selector.GetHandle("wholeText"); private static readonly IntPtr selSplitText_Handle = Selector.GetHandle("splitText:"); private static readonly IntPtr selReplaceWholeText_Handle = Selector.GetHandle("replaceWholeText:"); private static readonly IntPtr class_ptr = Class.GetHandle("DOMText"); public override IntPtr ClassHandle => class_ptr; public virtual string WholeText { [Export("wholeText")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selWholeTextHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWholeTextHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public DomText(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomText(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public DomText(IntPtr handle) : base(handle) { } [Export("splitText:")] public virtual DomText SplitText(uint offset) { if (IsDirectBinding) { return (DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_UInt32(base.Handle, selSplitText_Handle, offset)); } return (DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_UInt32(base.SuperHandle, selSplitText_Handle, offset)); } [Export("replaceWholeText:")] public virtual DomText ReplaceWholeText(string content) { if (content == null) { throw new ArgumentNullException("content"); } IntPtr arg = NSString.CreateNative(content); DomText result = ((!IsDirectBinding) ? ((DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceWholeText_Handle, arg))) : ((DomText)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selReplaceWholeText_Handle, arg)))); NSString.ReleaseNative(arg); return result; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DragDestinationGetActionMask.cs ================================================ using AppKit; namespace WebKit; public delegate NSEventModifierMask DragDestinationGetActionMask(WebView webView, NSDraggingInfo draggingInfo); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/DragSourceGetActionMask.cs ================================================ using AppKit; using CoreGraphics; namespace WebKit; public delegate NSEventModifierMask DragSourceGetActionMask(WebView webView, CGPoint point); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IIndexedContainer.cs ================================================ namespace WebKit; public interface IIndexedContainer { int Count { get; } T this[int index] { get; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKHttpCookieStoreObserver.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WKHTTPCookieStoreObserver", WrapperType = typeof(WKHttpCookieStoreObserverWrapper))] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "CookiesDidChangeInCookieStore", Selector = "cookiesDidChangeInCookieStore:", ParameterType = new Type[] { typeof(WKHttpCookieStore) }, ParameterByRef = new bool[] { false })] public interface IWKHttpCookieStoreObserver : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKNavigationDelegate.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WKNavigationDelegate", WrapperType = typeof(WKNavigationDelegateWrapper))] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicy", Selector = "webView:decidePolicyForNavigationAction:decisionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigationAction), typeof(Action) }, ParameterByRef = new bool[] { false, false, false }, ParameterBlockProxy = new Type[] { null, null, typeof(Trampolines.NIDActionArity1V93) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicy", Selector = "webView:decidePolicyForNavigationResponse:decisionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigationResponse), typeof(Action) }, ParameterByRef = new bool[] { false, false, false }, ParameterBlockProxy = new Type[] { null, null, typeof(Trampolines.NIDActionArity1V94) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicy", Selector = "webView:decidePolicyForNavigationAction:preferences:decisionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigationAction), typeof(WKWebpagePreferences), typeof(Action) }, ParameterByRef = new bool[] { false, false, false, false }, ParameterBlockProxy = new Type[] { null, null, null, typeof(Trampolines.NIDActionArity2V85) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidStartProvisionalNavigation", Selector = "webView:didStartProvisionalNavigation:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidReceiveServerRedirectForProvisionalNavigation", Selector = "webView:didReceiveServerRedirectForProvisionalNavigation:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidFailProvisionalNavigation", Selector = "webView:didFailProvisionalNavigation:withError:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation), typeof(NSError) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidCommitNavigation", Selector = "webView:didCommitNavigation:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidFinishNavigation", Selector = "webView:didFinishNavigation:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidFailNavigation", Selector = "webView:didFailNavigation:withError:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKNavigation), typeof(NSError) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidReceiveAuthenticationChallenge", Selector = "webView:didReceiveAuthenticationChallenge:completionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(NSUrlAuthenticationChallenge), typeof(Action) }, ParameterByRef = new bool[] { false, false, false }, ParameterBlockProxy = new Type[] { null, null, typeof(Trampolines.NIDActionArity2V44) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ContentProcessDidTerminate", Selector = "webViewWebContentProcessDidTerminate:", ParameterType = new Type[] { typeof(WKWebView) }, ParameterByRef = new bool[] { false })] public interface IWKNavigationDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKScriptMessageHandler.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WKScriptMessageHandler", WrapperType = typeof(WKScriptMessageHandlerWrapper))] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidReceiveScriptMessage", Selector = "userContentController:didReceiveScriptMessage:", ParameterType = new Type[] { typeof(WKUserContentController), typeof(WKScriptMessage) }, ParameterByRef = new bool[] { false, false })] public interface IWKScriptMessageHandler : INativeObject, IDisposable { [Export("userContentController:didReceiveScriptMessage:")] [Preserve(Conditional = true)] void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKUIDelegate.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WKUIDelegate", WrapperType = typeof(WKUIDelegateWrapper))] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "CreateWebView", Selector = "webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:", ReturnType = typeof(WKWebView), ParameterType = new Type[] { typeof(WKWebView), typeof(WKWebViewConfiguration), typeof(WKNavigationAction), typeof(WKWindowFeatures) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "RunJavaScriptAlertPanel", Selector = "webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(string), typeof(WKFrameInfo), typeof(Action) }, ParameterByRef = new bool[] { false, false, false, false }, ParameterBlockProxy = new Type[] { null, null, null, typeof(Trampolines.NIDAction) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "RunJavaScriptConfirmPanel", Selector = "webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(string), typeof(WKFrameInfo), typeof(Action) }, ParameterByRef = new bool[] { false, false, false, false }, ParameterBlockProxy = new Type[] { null, null, null, typeof(Trampolines.NIDActionArity1V2) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "RunJavaScriptTextInputPanel", Selector = "webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(string), typeof(string), typeof(WKFrameInfo), typeof(Action) }, ParameterByRef = new bool[] { false, false, false, false, false }, ParameterBlockProxy = new Type[] { null, null, null, null, typeof(Trampolines.NIDActionArity1V44) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "RunOpenPanel", Selector = "webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:", ParameterType = new Type[] { typeof(WKWebView), typeof(WKOpenPanelParameters), typeof(WKFrameInfo), typeof(Action) }, ParameterByRef = new bool[] { false, false, false, false }, ParameterBlockProxy = new Type[] { null, null, null, typeof(Trampolines.NIDActionArity1V95) })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidClose", Selector = "webViewDidClose:", ParameterType = new Type[] { typeof(WKWebView) }, ParameterByRef = new bool[] { false })] public interface IWKUIDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKUrlSchemeHandler.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WKURLSchemeHandler", WrapperType = typeof(WKUrlSchemeHandlerWrapper))] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "StartUrlSchemeTask", Selector = "webView:startURLSchemeTask:", ParameterType = new Type[] { typeof(WKWebView), typeof(IWKUrlSchemeTask) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "StopUrlSchemeTask", Selector = "webView:stopURLSchemeTask:", ParameterType = new Type[] { typeof(WKWebView), typeof(IWKUrlSchemeTask) }, ParameterByRef = new bool[] { false, false })] public interface IWKUrlSchemeHandler : INativeObject, IDisposable { [Export("webView:startURLSchemeTask:")] [Preserve(Conditional = true)] void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask); [Export("webView:stopURLSchemeTask:")] [Preserve(Conditional = true)] void StopUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWKUrlSchemeTask.cs ================================================ using Foundation; using ObjCRuntime; using Xamarin.Utiles; namespace WebKit; [Protocol(Name = "WKURLSchemeTask", WrapperType = typeof(WKUrlSchemeTaskWrapper))] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidReceiveResponse", Selector = "didReceiveResponse:", ParameterType = new Type[] { typeof(NSUrlResponse) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidReceiveData", Selector = "didReceiveData:", ParameterType = new Type[] { typeof(NSData) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidFinish", Selector = "didFinish")] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "DidFailWithError", Selector = "didFailWithError:", ParameterType = new Type[] { typeof(NSError) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "Request", Selector = "request", PropertyType = typeof(NSUrlRequest), GetterSelector = "request", ArgumentSemantic = ArgumentSemantic.Copy)] public interface IWKUrlSchemeTask : INativeObject, IDisposable { [Preserve(Conditional = true)] NSUrlRequest Request { [Export("request", ArgumentSemantic.Copy)] get; } [Export("didReceiveResponse:")] [Preserve(Conditional = true)] void DidReceiveResponse(NSUrlResponse response); [Export("didReceiveData:")] [Preserve(Conditional = true)] void DidReceiveData(NSData data); [Export("didFinish")] [Preserve(Conditional = true)] void DidFinish(); [Export("didFailWithError:")] [Preserve(Conditional = true)] void DidFailWithError(NSError error); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebDocumentRepresentation.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebDocumentRepresentation", WrapperType = typeof(WebDocumentRepresentationWrapper))] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "SetDataSource", Selector = "setDataSource:", ParameterType = new Type[] { typeof(WebDataSource) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "ReceivedData", Selector = "receivedData:withDataSource:", ParameterType = new Type[] { typeof(NSData), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "ReceivedError", Selector = "receivedError:withDataSource:", ParameterType = new Type[] { typeof(NSError), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = true, IsProperty = false, IsStatic = false, Name = "FinishedLoading", Selector = "finishedLoadingWithDataSource:", ParameterType = new Type[] { typeof(WebDataSource) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "CanProvideDocumentSource", Selector = "canProvideDocumentSource", PropertyType = typeof(bool), GetterSelector = "canProvideDocumentSource", ArgumentSemantic = ArgumentSemantic.None)] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "DocumentSource", Selector = "documentSource", PropertyType = typeof(string), GetterSelector = "documentSource", ArgumentSemantic = ArgumentSemantic.None)] [ProtocolMember(IsRequired = true, IsProperty = true, IsStatic = false, Name = "Title", Selector = "title", PropertyType = typeof(string), GetterSelector = "title", ArgumentSemantic = ArgumentSemantic.None)] public interface IWebDocumentRepresentation : INativeObject, IDisposable { [Preserve(Conditional = true)] bool CanProvideDocumentSource { [Export("canProvideDocumentSource")] get; } [Preserve(Conditional = true)] string DocumentSource { [Export("documentSource")] get; } [Preserve(Conditional = true)] string Title { [Export("title")] get; } [Export("setDataSource:")] [Preserve(Conditional = true)] void SetDataSource(WebDataSource dataSource); [Export("receivedData:withDataSource:")] [Preserve(Conditional = true)] void ReceivedData(NSData data, WebDataSource dataSource); [Export("receivedError:withDataSource:")] [Preserve(Conditional = true)] void ReceivedError(NSError error, WebDataSource dataSource); [Export("finishedLoadingWithDataSource:")] [Preserve(Conditional = true)] void FinishedLoading(WebDataSource dataSource); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebDownloadDelegate.cs ================================================ using AppKit; using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebDownloadDelegate", WrapperType = typeof(WebDownloadDelegateWrapper), FormalSince = "10.11")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnDownloadWindowForSheet", Selector = "downloadWindowForAuthenticationSheet:", ReturnType = typeof(NSWindow), ParameterType = new Type[] { typeof(WebDownload) }, ParameterByRef = new bool[] { false })] public interface IWebDownloadDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebFrameLoadDelegate.cs ================================================ using AppKit; using Foundation; using JavaScriptCore; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebFrameLoadDelegate", WrapperType = typeof(WebFrameLoadDelegateWrapper), FormalSince = "10.11")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "StartedProvisionalLoad", Selector = "webView:didStartProvisionalLoadForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ReceivedServerRedirectForProvisionalLoad", Selector = "webView:didReceiveServerRedirectForProvisionalLoadForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "FailedProvisionalLoad", Selector = "webView:didFailProvisionalLoadWithError:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(NSError), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "CommitedLoad", Selector = "webView:didCommitLoadForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ReceivedTitle", Selector = "webView:didReceiveTitle:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(string), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ReceivedIcon", Selector = "webView:didReceiveIcon:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(NSImage), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "FinishedLoad", Selector = "webView:didFinishLoadForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "FailedLoadWithError", Selector = "webView:didFailLoadWithError:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(NSError), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ChangedLocationWithinPage", Selector = "webView:didChangeLocationWithinPageForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillPerformClientRedirect", Selector = "webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(NSUrl), typeof(double), typeof(NSDate), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "CanceledClientRedirect", Selector = "webView:didCancelClientRedirectForFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "WillCloseFrame", Selector = "webView:willCloseFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ClearedWindowObject", Selector = "webView:didClearWindowObject:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(WebScriptObject), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "WindowScriptObjectAvailable", Selector = "webView:windowScriptObjectAvailable:", ParameterType = new Type[] { typeof(WebView), typeof(WebScriptObject) }, ParameterByRef = new bool[] { false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DidCreateJavaScriptContext", Selector = "webView:didCreateJavaScriptContext:forFrame:", ParameterType = new Type[] { typeof(WebView), typeof(JSContext), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] public interface IWebFrameLoadDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebOpenPanelResultListener.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebOpenPanelResultListener", WrapperType = typeof(WebOpenPanelResultListenerWrapper))] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ChooseFilename", Selector = "chooseFilename:", ParameterType = new Type[] { typeof(string) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "ChooseFilenames", Selector = "chooseFilenames:", ParameterType = new Type[] { typeof(string[]) }, ParameterByRef = new bool[] { false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "Cancel", Selector = "cancel")] public interface IWebOpenPanelResultListener : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebPolicyDecisionListener.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebPolicyDecisionListener", WrapperType = typeof(WebPolicyDecisionListenerWrapper))] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "Use", Selector = "use")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "Download", Selector = "download")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "Ignore", Selector = "ignore")] public interface IWebPolicyDecisionListener : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebPolicyDelegate.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebPolicyDelegate", WrapperType = typeof(WebPolicyDelegateWrapper), FormalSince = "10.11")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicyForNavigation", Selector = "webView:decidePolicyForNavigationAction:request:frame:decisionListener:", ParameterType = new Type[] { typeof(WebView), typeof(NSDictionary), typeof(NSUrlRequest), typeof(WebFrame), typeof(NSObject) }, ParameterByRef = new bool[] { false, false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicyForNewWindow", Selector = "webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:", ParameterType = new Type[] { typeof(WebView), typeof(NSDictionary), typeof(NSUrlRequest), typeof(string), typeof(NSObject) }, ParameterByRef = new bool[] { false, false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "DecidePolicyForMimeType", Selector = "webView:decidePolicyForMIMEType:request:frame:decisionListener:", ParameterType = new Type[] { typeof(WebView), typeof(string), typeof(NSUrlRequest), typeof(WebFrame), typeof(NSObject) }, ParameterByRef = new bool[] { false, false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "UnableToImplementPolicy", Selector = "webView:unableToImplementPolicyWithError:frame:", ParameterType = new Type[] { typeof(WebView), typeof(NSError), typeof(WebFrame) }, ParameterByRef = new bool[] { false, false, false })] public interface IWebPolicyDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IWebResourceLoadDelegate.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; [Protocol(Name = "WebResourceLoadDelegate", WrapperType = typeof(WebResourceLoadDelegateWrapper), FormalSince = "10.11")] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnIdentifierForInitialRequest", Selector = "webView:identifierForInitialRequest:fromDataSource:", ReturnType = typeof(NSObject), ParameterType = new Type[] { typeof(WebView), typeof(NSUrlRequest), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnSendRequest", Selector = "webView:resource:willSendRequest:redirectResponse:fromDataSource:", ReturnType = typeof(NSUrlRequest), ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(NSUrlRequest), typeof(NSUrlResponse), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnReceivedAuthenticationChallenge", Selector = "webView:resource:didReceiveAuthenticationChallenge:fromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(NSUrlAuthenticationChallenge), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnCancelledAuthenticationChallenge", Selector = "webView:resource:didCancelAuthenticationChallenge:fromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(NSUrlAuthenticationChallenge), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnReceivedResponse", Selector = "webView:resource:didReceiveResponse:fromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(NSUrlResponse), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnReceivedContentLength", Selector = "webView:resource:didReceiveContentLength:fromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(nint), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnFinishedLoading", Selector = "webView:resource:didFinishLoadingFromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnFailedLoading", Selector = "webView:resource:didFailLoadingWithError:fromDataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSObject), typeof(NSError), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false, false })] [ProtocolMember(IsRequired = false, IsProperty = false, IsStatic = false, Name = "OnPlugInFailed", Selector = "webView:plugInFailedWithError:dataSource:", ParameterType = new Type[] { typeof(WebView), typeof(NSError), typeof(WebDataSource) }, ParameterByRef = new bool[] { false, false, false })] public interface IWebResourceLoadDelegate : INativeObject, IDisposable { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/IndexedContainerEnumerator.cs ================================================ using System; using System.Collections; using System.Collections.Generic; namespace WebKit; internal class IndexedContainerEnumerator : IEnumerator, IEnumerator, IDisposable { private IIndexedContainer _container; private int _index; public T Current => _container[_index]; object IEnumerator.Current => ((IEnumerator)this).Current; public IndexedContainerEnumerator(IIndexedContainer container) { _container = container; Reset(); } public void Dispose() { _container = null; } public bool MoveNext() { return ++_index < _container.Count; } public void Reset() { _index = -1; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/NSUrlSessionAuthChallengeDisposition.cs ================================================ namespace WebKit; public enum NSUrlSessionAuthChallengeDisposition : long { UseCredential, PerformDefaultHandling, CancelAuthenticationChallenge, RejectProtectionSpace } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKAudiovisualMediaTypes.cs ================================================ namespace WebKit; [Flags] public enum WKAudiovisualMediaTypes : ulong { None = 0uL, Audio = 1uL, Video = 2uL, All = ulong.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKBackForwardList.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKBackForwardList", true)] public class WKBackForwardList : NSObject { private const string selBackItem = "backItem"; private static readonly IntPtr selBackItemHandle = Selector.GetHandle("backItem"); private const string selBackList = "backList"; private static readonly IntPtr selBackListHandle = Selector.GetHandle("backList"); private const string selCurrentItem = "currentItem"; private static readonly IntPtr selCurrentItemHandle = Selector.GetHandle("currentItem"); private const string selForwardItem = "forwardItem"; private static readonly IntPtr selForwardItemHandle = Selector.GetHandle("forwardItem"); private const string selForwardList = "forwardList"; private static readonly IntPtr selForwardListHandle = Selector.GetHandle("forwardList"); private const string selItemAtIndex_ = "itemAtIndex:"; private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("WKBackForwardList"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKBackForwardList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKBackForwardList(IntPtr handle) : base(handle) { } public virtual WKBackForwardListItem BackItem { [Export("backItem", ArgumentSemantic.Retain)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selBackItemHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selBackItemHandle)); } } public virtual WKBackForwardListItem[] BackList { [Export("backList")] get { if (IsDirectBinding) return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selBackListHandle)); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selBackListHandle)); } } public virtual WKBackForwardListItem CurrentItem { [Export("currentItem", ArgumentSemantic.Retain)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selCurrentItemHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCurrentItemHandle)); } } public virtual WKBackForwardListItem ForwardItem { [Export("forwardItem", ArgumentSemantic.Retain)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selForwardItemHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selForwardItemHandle)); } } public virtual WKBackForwardListItem[] ForwardList { [Export("forwardList")] get { if (IsDirectBinding) return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selForwardListHandle)); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selForwardListHandle)); } } [Export("itemAtIndex:")] public virtual WKBackForwardListItem ItemAtIndex(long index) { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_long(Handle, selItemAtIndex_Handle, index)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_long(SuperHandle, selItemAtIndex_Handle, index)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKBackForwardListItem.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKBackForwardListItem", true)] public class WKBackForwardListItem : NSObject { private const string selURL = "URL"; private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private const string selInitialURL = "initialURL"; private static readonly IntPtr selInitialURLHandle = Selector.GetHandle("initialURL"); private const string selTitle = "title"; private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr class_ptr = Class.GetHandle("WKBackForwardListItem"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKBackForwardListItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKBackForwardListItem(IntPtr handle) : base(handle) { } public virtual NSUrl InitialUrl { [Export("initialURL", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selInitialURLHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selInitialURLHandle)); } } public virtual string Title { [Export("title")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selTitleHandle)); } } public virtual NSUrl Url { [Export("URL", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selURLHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selURLHandle)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKContentMode.cs ================================================ namespace WebKit; public enum WKContentMode : long { Recommended, Mobile, Desktop } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKContentRuleList.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKContentRuleList", true)] public class WKContentRuleList : NSObject { private const string selIdentifier = "identifier"; private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr class_ptr = Class.GetHandle("WKContentRuleList"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKContentRuleList() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKContentRuleList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKContentRuleList(IntPtr handle) : base(handle) { } public virtual string Identifier { [Export("identifier")] get { if (base.IsDirectBinding) return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKContentRuleListStore.cs ================================================ using Foundation; using ObjCRuntime; using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using Xamarin.Utiles; namespace WebKit; [Register("WKContentRuleListStore", true)] public class WKContentRuleListStore : NSObject { private const string selCompileContentRuleListForIdentifier_EncodedContentRuleList_CompletionHandler_ = "compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:"; private static readonly IntPtr selCompileContentRuleListForIdentifier_EncodedContentRuleList_CompletionHandler_Handle = Selector.GetHandle("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:"); private const string selDefaultStore = "defaultStore"; private static readonly IntPtr selDefaultStoreHandle = Selector.GetHandle("defaultStore"); private const string selGetAvailableContentRuleListIdentifiers_ = "getAvailableContentRuleListIdentifiers:"; private static readonly IntPtr selGetAvailableContentRuleListIdentifiers_Handle = Selector.GetHandle("getAvailableContentRuleListIdentifiers:"); private const string selLookUpContentRuleListForIdentifier_CompletionHandler_ = "lookUpContentRuleListForIdentifier:completionHandler:"; private static readonly IntPtr selLookUpContentRuleListForIdentifier_CompletionHandler_Handle = Selector.GetHandle("lookUpContentRuleListForIdentifier:completionHandler:"); private const string selRemoveContentRuleListForIdentifier_CompletionHandler_ = "removeContentRuleListForIdentifier:completionHandler:"; private static readonly IntPtr selRemoveContentRuleListForIdentifier_CompletionHandler_Handle = Selector.GetHandle("removeContentRuleListForIdentifier:completionHandler:"); private const string selStoreWithURL_ = "storeWithURL:"; private static readonly IntPtr selStoreWithURL_Handle = Selector.GetHandle("storeWithURL:"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKContentRuleListStore"); public override IntPtr ClassHandle => class_ptr; public static WKContentRuleListStore DefaultStore { [Export("defaultStore")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultStoreHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKContentRuleListStore() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKContentRuleListStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKContentRuleListStore(IntPtr handle) : base(handle) { } [Export("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:")] public unsafe virtual void CompileContentRuleList(string identifier, string encodedContentRuleList, [BlockProxy(typeof(Trampolines.NIDActionArity2V84))] Action completionHandler) { if (identifier == null) { throw new ArgumentNullException("identifier"); } if (encodedContentRuleList == null) { throw new ArgumentNullException("encodedContentRuleList"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr arg = NSString.CreateNative(identifier); IntPtr arg2 = NSString.CreateNative(encodedContentRuleList); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V84.Handler, completionHandler); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selCompileContentRuleListForIdentifier_EncodedContentRuleList_CompletionHandler_Handle, arg, arg2, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selCompileContentRuleListForIdentifier_EncodedContentRuleList_CompletionHandler_Handle, arg, arg2, (IntPtr)ptr); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); ptr->CleanupBlock(); } public virtual Task CompileContentRuleListAsync(string identifier, string encodedContentRuleList) { TaskCompletionSource tcs = new TaskCompletionSource(); CompileContentRuleList(identifier, encodedContentRuleList, delegate (WKContentRuleList arg1_, NSError arg2_) { if (arg2_ != null) { tcs.SetException(new NSErrorException(arg2_)); } else { tcs.SetResult(arg1_); } }); return tcs.Task; } [Export("storeWithURL:")] public static WKContentRuleListStore FromUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selStoreWithURL_Handle, url.Handle)); } [Export("getAvailableContentRuleListIdentifiers:")] public unsafe virtual void GetAvailableContentRuleListIdentifiers([BlockProxy(typeof(Trampolines.NIDActionArity1V1))] Action callback) { if (callback == null) { throw new ArgumentNullException("callback"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V1.Handler, callback); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGetAvailableContentRuleListIdentifiers_Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGetAvailableContentRuleListIdentifiers_Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task GetAvailableContentRuleListIdentifiersAsync() { TaskCompletionSource tcs = new TaskCompletionSource(); GetAvailableContentRuleListIdentifiers(delegate (string[] obj_) { tcs.SetResult(obj_); }); return tcs.Task; } [Export("lookUpContentRuleListForIdentifier:completionHandler:")] public unsafe virtual void LookUpContentRuleList(string identifier, [BlockProxy(typeof(Trampolines.NIDActionArity2V84))] Action completionHandler) { if (identifier == null) { throw new ArgumentNullException("identifier"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr arg = NSString.CreateNative(identifier); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V84.Handler, completionHandler); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selLookUpContentRuleListForIdentifier_CompletionHandler_Handle, arg, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selLookUpContentRuleListForIdentifier_CompletionHandler_Handle, arg, (IntPtr)ptr); } NSString.ReleaseNative(arg); ptr->CleanupBlock(); } public virtual Task LookUpContentRuleListAsync(string identifier) { TaskCompletionSource tcs = new TaskCompletionSource(); LookUpContentRuleList(identifier, delegate (WKContentRuleList arg1_, NSError arg2_) { if (arg2_ != null) { tcs.SetException(new NSErrorException(arg2_)); } else { tcs.SetResult(arg1_); } }); return tcs.Task; } [Export("removeContentRuleListForIdentifier:completionHandler:")] public unsafe virtual void RemoveContentRuleList(string identifier, [BlockProxy(typeof(Trampolines.NIDActionArity1V11))] Action completionHandler) { if (identifier == null) { throw new ArgumentNullException("identifier"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr arg = NSString.CreateNative(identifier); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V11.Handler, completionHandler); if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selRemoveContentRuleListForIdentifier_CompletionHandler_Handle, arg, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selRemoveContentRuleListForIdentifier_CompletionHandler_Handle, arg, (IntPtr)ptr); } NSString.ReleaseNative(arg); ptr->CleanupBlock(); } public virtual Task RemoveContentRuleListAsync(string identifier) { TaskCompletionSource tcs = new TaskCompletionSource(); RemoveContentRuleList(identifier, delegate (NSError obj_) { if (obj_ != null) { tcs.SetException(new NSErrorException(obj_)); } else { tcs.SetResult(result: true); } }); return tcs.Task; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKContentWorld.cs ================================================ using CoreFoundation; using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Register("WKContentWorld", true)] public class WKContentWorld : NSObject { private static readonly IntPtr class_ptr = Class.GetHandle("WKContentWorld"); public override IntPtr ClassHandle => class_ptr; public static WKContentWorld DefaultClient { [Export("defaultClientWorld")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, Selector.GetHandle("defaultClientWorld"))); } } public virtual string? Name { [Export("name")] get { if (IsDirectBinding) { return CFString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, Selector.GetHandle("name"))); } return CFString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, Selector.GetHandle("name"))); } } public static WKContentWorld Page { [Export("pageWorld")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, Selector.GetHandle("pageWorld"))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKContentWorld(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKContentWorld(IntPtr handle) : base(handle) { } [Export("worldWithName:")] public static WKContentWorld Create(string name) { if (name == null) { ThrowHelper.ThrowArgumentNullException("name"); } NativeHandle arg = CFString.CreateNative(name); WKContentWorld? nSObject = Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle("worldWithName:"), arg)); CFString.ReleaseNative(arg); return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKErrorCode.cs ================================================ namespace WebKit; public enum WKErrorCode : long { None, Unknown, WebContentProcessTerminated, WebViewInvalidated, JavaScriptExceptionOccurred, JavaScriptResultTypeIsUnsupported, ContentRuleListStoreCompileFailed, ContentRuleListStoreLookUpFailed, ContentRuleListStoreRemoveFailed, ContentRuleListStoreVersionMismatch, AttributedStringContentFailedToLoad, AttributedStringContentLoadTimedOut } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKErrorCodeExtensions.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; public static class WKErrorCodeExtensions { [Field("WKErrorDomain", "WebKit")] private static NSString? _domain; public static NSString? GetDomain(this WKErrorCode self) { if (_domain == null) { _domain = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKErrorDomain"); } return _domain; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKFindConfiguration.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Register("WKFindConfiguration", true)] public class WKFindConfiguration : NSObject, INativeObject, IDisposable { private static readonly IntPtr class_ptr = Class.GetHandle("WKFindConfiguration"); public override IntPtr ClassHandle => class_ptr; public virtual bool Backwards { [Export("backwards")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, Selector.GetHandle("backwards")); } return Messaging.bool_objc_msgSendSuper(SuperHandle, Selector.GetHandle("backwards")); } [Export("setBackwards:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, Selector.GetHandle("setBackwards:"), value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, Selector.GetHandle("setBackwards:"), value); } } } public virtual bool CaseSensitive { [Export("caseSensitive")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, Selector.GetHandle("caseSensitive")); } return Messaging.bool_objc_msgSendSuper(SuperHandle, Selector.GetHandle("caseSensitive")); } [Export("setCaseSensitive:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, Selector.GetHandle("setCaseSensitive:"), value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, Selector.GetHandle("setCaseSensitive:"), value); } } } public virtual bool Wraps { [Export("wraps")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, Selector.GetHandle("wraps")); } return Messaging.bool_objc_msgSendSuper(SuperHandle, Selector.GetHandle("wraps")); } [Export("setWraps:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, Selector.GetHandle("setWraps:"), value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, Selector.GetHandle("setWraps:"), value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKFindConfiguration() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKFindConfiguration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKFindConfiguration(IntPtr handle) : base(handle) { } [Export("copyWithZone:")] [return: Release] public virtual NSObject Copy(NSZone? zone) { IntPtr arg = zone.GetHandle(); NSObject nSObject = !IsDirectBinding ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.GetHandle("copyWithZone:"), arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.GetHandle("copyWithZone:"), arg)); if (nSObject != null) { Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); } return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKFindResult.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Register("WKFindResult", true)] public class WKFindResult : NSObject, INativeObject, IDisposable { private static readonly IntPtr class_ptr = Class.GetHandle("WKFindResult"); public override IntPtr ClassHandle => class_ptr; public virtual bool MatchFound { [Export("matchFound")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, Selector.GetHandle("matchFound")); } return Messaging.bool_objc_msgSendSuper(SuperHandle, Selector.GetHandle("matchFound")); } } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKFindResult(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKFindResult(IntPtr handle) : base(handle) { } [Export("copyWithZone:")] [return: Release] public virtual NSObject Copy(NSZone? zone) { IntPtr arg = zone.GetHandle(); NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, Selector.GetHandle("copyWithZone:"), arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, Selector.GetHandle("copyWithZone:"), arg))); if (nSObject != null) { Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); } return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKFrameInfo.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKFrameInfo", true)] public class WKFrameInfo : NSObject { private const string selCopyWithZone_ = "copyWithZone:"; private static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle("copyWithZone:"); private const string selIsMainFrame = "isMainFrame"; private static readonly IntPtr selIsMainFrameHandle = Selector.GetHandle("isMainFrame"); private const string selRequest = "request"; private static readonly IntPtr selRequestHandle = Selector.GetHandle("request"); private const string selSecurityOrigin = "securityOrigin"; private static readonly IntPtr selSecurityOriginHandle = Selector.GetHandle("securityOrigin"); private const string selWebView = "webView"; private static readonly IntPtr selWebViewHandle = Selector.GetHandle("webView"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKFrameInfo"); private object? __mt_WebView_var; public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKFrameInfo() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKFrameInfo(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKFrameInfo(IntPtr handle) : base(handle) { } public virtual bool MainFrame { [Export("isMainFrame")] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selIsMainFrameHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsMainFrameHandle); } } public virtual NSUrlRequest Request { [Export("request", ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selRequestHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selRequestHandle)); } } public virtual WKSecurityOrigin SecurityOrigin { [Export("securityOrigin")] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selSecurityOriginHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selSecurityOriginHandle)); } } public virtual WKWebView? WebView { [Export("webView", ArgumentSemantic.Weak)] get { WKWebView wKWebView = ((!IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWebViewHandle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selWebViewHandle))); __mt_WebView_var = wKWebView; return wKWebView; } } [Export("copyWithZone:")] public virtual NSObject Copy(NSZone? zone) { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); return nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) __mt_WebView_var = null; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKFullscreenState.cs ================================================ using Xamarin.Utiles; namespace WebKit; [Native] public enum WKFullscreenState : long { NotInFullscreen, EnteringFullscreen, InFullscreen, ExitingFullscreen } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKHttpCookieStore.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Register("WKHTTPCookieStore", true)] public class WKHttpCookieStore : NSObject { private const string selAddObserver_ = "addObserver:"; private static readonly IntPtr selAddObserver_Handle = Selector.GetHandle("addObserver:"); private const string selDeleteCookie_CompletionHandler_ = "deleteCookie:completionHandler:"; private static readonly IntPtr selDeleteCookie_CompletionHandler_Handle = Selector.GetHandle("deleteCookie:completionHandler:"); private const string selGetAllCookies_ = "getAllCookies:"; private static readonly IntPtr selGetAllCookies_Handle = Selector.GetHandle("getAllCookies:"); private const string selRemoveObserver_ = "removeObserver:"; private static readonly IntPtr selRemoveObserver_Handle = Selector.GetHandle("removeObserver:"); private const string selSetCookie_CompletionHandler_ = "setCookie:completionHandler:"; private static readonly IntPtr selSetCookie_CompletionHandler_Handle = Selector.GetHandle("setCookie:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("WKHTTPCookieStore"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKHttpCookieStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKHttpCookieStore(IntPtr handle) : base(handle) { } [Export("addObserver:")] public virtual void AddObserver(IWKHttpCookieStoreObserver observer) { if (observer == null) throw new ArgumentNullException("observer"); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selAddObserver_Handle, observer.Handle); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selAddObserver_Handle, observer.Handle); } [Export("deleteCookie:completionHandler:")] public unsafe virtual void DeleteCookie(NSHttpCookie cookie, [BlockProxy(typeof(Trampolines.NIDAction))] Action? completionHandler) { if (cookie == null) throw new ArgumentNullException("cookie"); BlockLiteral* ptr; if (completionHandler == null) ptr = null; else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAction.Handler, completionHandler); } if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selDeleteCookie_CompletionHandler_Handle, cookie.Handle, (IntPtr)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selDeleteCookie_CompletionHandler_Handle, cookie.Handle, (IntPtr)ptr); if (ptr != null) ptr->CleanupBlock(); } public virtual Task DeleteCookieAsync(NSHttpCookie cookie) { TaskCompletionSource tcs = new TaskCompletionSource(); DeleteCookie(cookie, delegate { tcs.SetResult(result: true); }); return tcs.Task; } [Export("getAllCookies:")] public unsafe virtual void GetAllCookies([BlockProxy(typeof(Trampolines.NIDActionArity1V31))] Action completionHandler) { if (completionHandler == null) throw new ArgumentNullException("completionHandler"); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V31.Handler, completionHandler); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selGetAllCookies_Handle, (IntPtr)ptr); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selGetAllCookies_Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public virtual Task GetAllCookiesAsync() { TaskCompletionSource tcs = new TaskCompletionSource(); GetAllCookies(delegate (NSHttpCookie[] obj_) { tcs.SetResult(obj_); }); return tcs.Task; } [Export("removeObserver:")] public virtual void RemoveObserver(IWKHttpCookieStoreObserver observer) { if (observer == null) throw new ArgumentNullException("observer"); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveObserver_Handle, observer.Handle); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selRemoveObserver_Handle, observer.Handle); } [Export("setCookie:completionHandler:")] public unsafe virtual void SetCookie(NSHttpCookie cookie, [BlockProxy(typeof(Trampolines.NIDAction))] Action? completionHandler) { if (cookie == null) throw new ArgumentNullException("cookie"); BlockLiteral* ptr; if (completionHandler == null) ptr = null; else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAction.Handler, completionHandler); } if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetCookie_CompletionHandler_Handle, cookie.Handle, (IntPtr)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetCookie_CompletionHandler_Handle, cookie.Handle, (IntPtr)ptr); if (ptr != null) ptr->CleanupBlock(); } public virtual Task SetCookieAsync(NSHttpCookie cookie) { TaskCompletionSource tcs = new TaskCompletionSource(); SetCookie(cookie, delegate { tcs.SetResult(result: true); }); return tcs.Task; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKHttpCookieStoreObserverWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal class WKHttpCookieStoreObserverWrapper : BaseWrapper, IWKHttpCookieStoreObserver { [Preserve(Conditional = true)] public WKHttpCookieStoreObserverWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKHttpCookieStoreObserverWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKHttpCookieStoreObserver_Extensions.cs ================================================ using ObjCRuntime; namespace WebKit; public static class WKHttpCookieStoreObserver_Extensions { public static void CookiesDidChangeInCookieStore(this IWKHttpCookieStoreObserver This, WKHttpCookieStore cookieStore) { if (cookieStore == null) throw new ArgumentNullException("cookieStore"); Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("cookiesDidChangeInCookieStore:"), cookieStore.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKJavascriptEvaluationResult.cs ================================================ using Foundation; namespace WebKit; public delegate void WKJavascriptEvaluationResult(NSObject result, NSError error); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKMediaCaptureState.cs ================================================ using Xamarin.Utiles; namespace WebKit; [Native] public enum WKMediaCaptureState : long { None, Active, Muted } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigation.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKNavigation", true)] public class WKNavigation : NSObject { private const string selEffectiveContentMode = "effectiveContentMode"; private static readonly IntPtr selEffectiveContentModeHandle = Selector.GetHandle("effectiveContentMode"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKNavigation"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKNavigation() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKNavigation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKNavigation(IntPtr handle) : base(handle) { } public virtual WKContentMode EffectiveContentMode { [Export("effectiveContentMode")] get { if (base.IsDirectBinding) { return (WKContentMode)Messaging.Int64_objc_msgSend(base.Handle, selEffectiveContentModeHandle); } return (WKContentMode)Messaging.Int64_objc_msgSendSuper(base.SuperHandle, selEffectiveContentModeHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationAction.cs ================================================ using AppKit; using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKNavigationAction", true)] public class WKNavigationAction : NSObject { private const string selButtonNumber = "buttonNumber"; private static readonly IntPtr selButtonNumberHandle = Selector.GetHandle("buttonNumber"); private const string selModifierFlags = "modifierFlags"; private static readonly IntPtr selModifierFlagsHandle = Selector.GetHandle("modifierFlags"); private const string selNavigationType = "navigationType"; private static readonly IntPtr selNavigationTypeHandle = Selector.GetHandle("navigationType"); private const string selRequest = "request"; private static readonly IntPtr selRequestHandle = Selector.GetHandle("request"); private const string selSourceFrame = "sourceFrame"; private static readonly IntPtr selSourceFrameHandle = Selector.GetHandle("sourceFrame"); private const string selTargetFrame = "targetFrame"; private static readonly IntPtr selTargetFrameHandle = Selector.GetHandle("targetFrame"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKNavigationAction"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKNavigationAction() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKNavigationAction(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKNavigationAction(IntPtr handle) : base(handle) { } public virtual long ButtonNumber { [Export("buttonNumber")] get { if (IsDirectBinding) return Messaging.long_objc_msgSend(Handle, selButtonNumberHandle); return Messaging.long_objc_msgSendSuper(SuperHandle, selButtonNumberHandle); } } public virtual NSEventModifierMask ModifierFlags { [Export("modifierFlags")] get { if (IsDirectBinding) return (NSEventModifierMask)Messaging.UInt64_objc_msgSend(Handle, selModifierFlagsHandle); return (NSEventModifierMask)Messaging.UInt64_objc_msgSendSuper(SuperHandle, selModifierFlagsHandle); } } public virtual WKNavigationType NavigationType { [Export("navigationType")] get { if (IsDirectBinding) return (WKNavigationType)Messaging.Int64_objc_msgSend(Handle, selNavigationTypeHandle); return (WKNavigationType)Messaging.Int64_objc_msgSendSuper(SuperHandle, selNavigationTypeHandle); } } public virtual NSUrlRequest Request { [Export("request", ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selRequestHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selRequestHandle)); } } public virtual WKFrameInfo SourceFrame { [Export("sourceFrame", ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selSourceFrameHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selSourceFrameHandle)); } } public virtual WKFrameInfo TargetFrame { [Export("targetFrame", ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selTargetFrameHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selTargetFrameHandle)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationActionPolicy.cs ================================================ namespace WebKit; public enum WKNavigationActionPolicy : long { Cancel, Allow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationDelegate.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Protocol] [Register("WKNavigationDelegate", false)] [Model] public class WKNavigationDelegate : NSObject, IWKNavigationDelegate { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKNavigationDelegate() : base(NSObjectFlag.Empty) { IsDirectBinding = false; InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKNavigationDelegate(NSObjectFlag t) : base(t) { IsDirectBinding = false; } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKNavigationDelegate(IntPtr handle) : base(handle) { IsDirectBinding = false; } [Export("webViewWebContentProcessDidTerminate:")] public virtual void ContentProcessDidTerminate(WKWebView webView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:decidePolicyForNavigationAction:decisionHandler:")] public virtual void DecidePolicy(WKWebView webView, WKNavigationAction navigationAction, [BlockProxy(typeof(Trampolines.NIDActionArity1V93))] Action decisionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:decidePolicyForNavigationResponse:decisionHandler:")] public virtual void DecidePolicy(WKWebView webView, WKNavigationResponse navigationResponse, [BlockProxy(typeof(Trampolines.NIDActionArity1V94))] Action decisionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:decidePolicyForNavigationAction:preferences:decisionHandler:")] public virtual void DecidePolicy(WKWebView webView, WKNavigationAction navigationAction, WKWebpagePreferences preferences, [BlockProxy(typeof(Trampolines.NIDActionArity2V85))] Action decisionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didCommitNavigation:")] public virtual void DidCommitNavigation(WKWebView webView, WKNavigation navigation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFailNavigation:withError:")] public virtual void DidFailNavigation(WKWebView webView, WKNavigation navigation, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFailProvisionalNavigation:withError:")] public virtual void DidFailProvisionalNavigation(WKWebView webView, WKNavigation navigation, NSError error) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFinishNavigation:")] public virtual void DidFinishNavigation(WKWebView webView, WKNavigation navigation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didReceiveAuthenticationChallenge:completionHandler:")] public virtual void DidReceiveAuthenticationChallenge(WKWebView webView, NSUrlAuthenticationChallenge challenge, [BlockProxy(typeof(Trampolines.NIDActionArity2V44))] Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didReceiveServerRedirectForProvisionalNavigation:")] public virtual void DidReceiveServerRedirectForProvisionalNavigation(WKWebView webView, WKNavigation navigation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didStartProvisionalNavigation:")] public virtual void DidStartProvisionalNavigation(WKWebView webView, WKNavigation navigation) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WKNavigationDelegateWrapper : BaseWrapper, IWKNavigationDelegate { [Preserve(Conditional = true)] public WKNavigationDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKNavigationDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationDelegate_Extensions.cs ================================================ using Foundation; using ObjCRuntime; using Xamarin.Utiles; namespace WebKit; public static class WKNavigationDelegate_Extensions { public unsafe static void DecidePolicy(this IWKNavigationDelegate This, WKWebView webView, WKNavigationAction navigationAction, [BlockProxy(typeof(Trampolines.NIDActionArity1V93))] Action decisionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigationAction == null) { throw new ArgumentNullException("navigationAction"); } if (decisionHandler == null) { throw new ArgumentNullException("decisionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V93.Handler, decisionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForNavigationAction:decisionHandler:"), webView.Handle, navigationAction.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public unsafe static void DecidePolicy(this IWKNavigationDelegate This, WKWebView webView, WKNavigationResponse navigationResponse, [BlockProxy(typeof(Trampolines.NIDActionArity1V94))] Action decisionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigationResponse == null) { throw new ArgumentNullException("navigationResponse"); } if (decisionHandler == null) { throw new ArgumentNullException("decisionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V94.Handler, decisionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForNavigationResponse:decisionHandler:"), webView.Handle, navigationResponse.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public unsafe static void DecidePolicy(this IWKNavigationDelegate This, WKWebView webView, WKNavigationAction navigationAction, WKWebpagePreferences preferences, [BlockProxy(typeof(Trampolines.NIDActionArity2V85))] Action decisionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigationAction == null) { throw new ArgumentNullException("navigationAction"); } if (preferences == null) { throw new ArgumentNullException("preferences"); } if (decisionHandler == null) { throw new ArgumentNullException("decisionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V85.Handler, decisionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForNavigationAction:preferences:decisionHandler:"), webView.Handle, navigationAction.Handle, preferences.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public static void DidStartProvisionalNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didStartProvisionalNavigation:"), webView.Handle, navigation.Handle); } public static void DidReceiveServerRedirectForProvisionalNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didReceiveServerRedirectForProvisionalNavigation:"), webView.Handle, navigation.Handle); } public static void DidFailProvisionalNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation, NSError error) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (error == null) { throw new ArgumentNullException("error"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didFailProvisionalNavigation:withError:"), webView.Handle, navigation.Handle, error.Handle); } public static void DidCommitNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didCommitNavigation:"), webView.Handle, navigation.Handle); } public static void DidFinishNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didFinishNavigation:"), webView.Handle, navigation.Handle); } public static void DidFailNavigation(this IWKNavigationDelegate This, WKWebView webView, WKNavigation navigation, NSError error) { if (webView == null) { throw new ArgumentNullException("webView"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (error == null) { throw new ArgumentNullException("error"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didFailNavigation:withError:"), webView.Handle, navigation.Handle, error.Handle); } public unsafe static void DidReceiveAuthenticationChallenge(this IWKNavigationDelegate This, WKWebView webView, NSUrlAuthenticationChallenge challenge, [BlockProxy(typeof(Trampolines.NIDActionArity2V44))] Action completionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (challenge == null) { throw new ArgumentNullException("challenge"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V44.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:didReceiveAuthenticationChallenge:completionHandler:"), webView.Handle, challenge.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public static void ContentProcessDidTerminate(this IWKNavigationDelegate This, WKWebView webView) { if (webView == null) { throw new ArgumentNullException("webView"); } Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("webViewWebContentProcessDidTerminate:"), webView.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationResponse.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKNavigationResponse", true)] public class WKNavigationResponse : NSObject { private const string selCanShowMIMEType = "canShowMIMEType"; private static readonly IntPtr selCanShowMIMETypeHandle = Selector.GetHandle("canShowMIMEType"); private const string selIsForMainFrame = "isForMainFrame"; private static readonly IntPtr selIsForMainFrameHandle = Selector.GetHandle("isForMainFrame"); private const string selResponse = "response"; private static readonly IntPtr selResponseHandle = Selector.GetHandle("response"); private static readonly IntPtr class_ptr = Class.GetHandle("WKNavigationResponse"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKNavigationResponse() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKNavigationResponse(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKNavigationResponse(IntPtr handle) : base(handle) { } public virtual bool CanShowMimeType { [Export("canShowMIMEType")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanShowMIMETypeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanShowMIMETypeHandle); } } public virtual bool IsForMainFrame { [Export("isForMainFrame")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsForMainFrameHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsForMainFrameHandle); } } public virtual NSUrlResponse Response { [Export("response", ArgumentSemantic.Copy)] get { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selResponseHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResponseHandle)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationResponsePolicy.cs ================================================ namespace WebKit; public enum WKNavigationResponsePolicy : long { Cancel, Allow } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKNavigationType.cs ================================================ namespace WebKit; public enum WKNavigationType : long { LinkActivated = 0L, FormSubmitted = 1L, BackForward = 2L, Reload = 3L, FormResubmitted = 4L, Other = -1L } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKOpenPanelParameters.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKOpenPanelParameters", true)] public class WKOpenPanelParameters : NSObject { private const string selAllowsDirectories = "allowsDirectories"; private static readonly IntPtr selAllowsDirectoriesHandle = Selector.GetHandle("allowsDirectories"); private const string selAllowsMultipleSelection = "allowsMultipleSelection"; private static readonly IntPtr selAllowsMultipleSelectionHandle = Selector.GetHandle("allowsMultipleSelection"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKOpenPanelParameters"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKOpenPanelParameters() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKOpenPanelParameters(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKOpenPanelParameters(IntPtr handle) : base(handle) { } public virtual bool AllowsDirectories { [Export("allowsDirectories")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsDirectoriesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsDirectoriesHandle); } } public virtual bool AllowsMultipleSelection { [Export("allowsMultipleSelection")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsMultipleSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsMultipleSelectionHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKPreferences.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.System; namespace WebKit; [Register("WKPreferences", true)] public class WKPreferences : NSObject { private const string selEncodeWithCoder_ = "encodeWithCoder:"; private static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle("encodeWithCoder:"); private const string selInitWithCoder_ = "initWithCoder:"; private static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle("initWithCoder:"); private const string selIsFraudulentWebsiteWarningEnabled = "isFraudulentWebsiteWarningEnabled"; private static readonly IntPtr selIsFraudulentWebsiteWarningEnabledHandle = Selector.GetHandle("isFraudulentWebsiteWarningEnabled"); private const string selJavaEnabled = "javaEnabled"; private static readonly IntPtr selJavaEnabledHandle = Selector.GetHandle("javaEnabled"); private const string selJavaScriptCanOpenWindowsAutomatically = "javaScriptCanOpenWindowsAutomatically"; private static readonly IntPtr selJavaScriptCanOpenWindowsAutomaticallyHandle = Selector.GetHandle("javaScriptCanOpenWindowsAutomatically"); private const string selJavaScriptEnabled = "javaScriptEnabled"; private static readonly IntPtr selJavaScriptEnabledHandle = Selector.GetHandle("javaScriptEnabled"); private const string selMinimumFontSize = "minimumFontSize"; private static readonly IntPtr selMinimumFontSizeHandle = Selector.GetHandle("minimumFontSize"); private const string selPlugInsEnabled = "plugInsEnabled"; private static readonly IntPtr selPlugInsEnabledHandle = Selector.GetHandle("plugInsEnabled"); private const string selSetFraudulentWebsiteWarningEnabled_ = "setFraudulentWebsiteWarningEnabled:"; private static readonly IntPtr selSetFraudulentWebsiteWarningEnabled_Handle = Selector.GetHandle("setFraudulentWebsiteWarningEnabled:"); private const string selSetJavaEnabled_ = "setJavaEnabled:"; private static readonly IntPtr selSetJavaEnabled_Handle = Selector.GetHandle("setJavaEnabled:"); private const string selSetJavaScriptCanOpenWindowsAutomatically_ = "setJavaScriptCanOpenWindowsAutomatically:"; private static readonly IntPtr selSetJavaScriptCanOpenWindowsAutomatically_Handle = Selector.GetHandle("setJavaScriptCanOpenWindowsAutomatically:"); private const string selSetJavaScriptEnabled_ = "setJavaScriptEnabled:"; private static readonly IntPtr selSetJavaScriptEnabled_Handle = Selector.GetHandle("setJavaScriptEnabled:"); private const string selSetMinimumFontSize_ = "setMinimumFontSize:"; private static readonly IntPtr selSetMinimumFontSize_Handle = Selector.GetHandle("setMinimumFontSize:"); private const string selSetPlugInsEnabled_ = "setPlugInsEnabled:"; private static readonly IntPtr selSetPlugInsEnabled_Handle = Selector.GetHandle("setPlugInsEnabled:"); private const string selSetTabFocusesLinks_ = "setTabFocusesLinks:"; private static readonly IntPtr selSetTabFocusesLinks_Handle = Selector.GetHandle("setTabFocusesLinks:"); private const string selTabFocusesLinks = "tabFocusesLinks"; private static readonly IntPtr selTabFocusesLinksHandle = Selector.GetHandle("tabFocusesLinks"); private static readonly IntPtr class_ptr = Class.GetHandle("WKPreferences"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKPreferences() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WKPreferences(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKPreferences(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKPreferences(IntPtr handle) : base(handle) { } public virtual bool FraudulentWebsiteWarningEnabled { [Export("isFraudulentWebsiteWarningEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selIsFraudulentWebsiteWarningEnabledHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsFraudulentWebsiteWarningEnabledHandle); } [Export("setFraudulentWebsiteWarningEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetFraudulentWebsiteWarningEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetFraudulentWebsiteWarningEnabled_Handle, value); } } } public virtual bool JavaEnabled { [Export("javaEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selJavaEnabledHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selJavaEnabledHandle); } [Export("setJavaEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetJavaEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetJavaEnabled_Handle, value); } } } public virtual bool JavaScriptCanOpenWindowsAutomatically { [Export("javaScriptCanOpenWindowsAutomatically")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selJavaScriptCanOpenWindowsAutomaticallyHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selJavaScriptCanOpenWindowsAutomaticallyHandle); } [Export("setJavaScriptCanOpenWindowsAutomatically:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetJavaScriptCanOpenWindowsAutomatically_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetJavaScriptCanOpenWindowsAutomatically_Handle, value); } } } public virtual bool JavaScriptEnabled { [Export("javaScriptEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selJavaScriptEnabledHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selJavaScriptEnabledHandle); } [Export("setJavaScriptEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetJavaScriptEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetJavaScriptEnabled_Handle, value); } } } public virtual nfloat MinimumFontSize { [Export("minimumFontSize")] get { if (IsDirectBinding) { return Messaging.nfloat_objc_msgSend(Handle, selMinimumFontSizeHandle); } return Messaging.nfloat_objc_msgSendSuper(SuperHandle, selMinimumFontSizeHandle); } [Export("setMinimumFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_nfloat(Handle, selSetMinimumFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_nfloat(SuperHandle, selSetMinimumFontSize_Handle, value); } } } public virtual bool PlugInsEnabled { [Export("plugInsEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selPlugInsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selPlugInsEnabledHandle); } [Export("setPlugInsEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetPlugInsEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetPlugInsEnabled_Handle, value); } } } public virtual bool TabFocusesLinks { [Export("tabFocusesLinks")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selTabFocusesLinksHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selTabFocusesLinksHandle); } [Export("setTabFocusesLinks:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetTabFocusesLinks_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetTabFocusesLinks_Handle, value); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKProcessPool.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKProcessPool", true)] public class WKProcessPool : NSObject { private const string selEncodeWithCoder_ = "encodeWithCoder:"; private static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle(selEncodeWithCoder_); private const string selInitWithCoder_ = "initWithCoder:"; private static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle(selInitWithCoder_); private static readonly IntPtr class_ptr = Class.GetHandle("WKProcessPool"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKProcessPool() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export(selInitWithCoder_)] public WKProcessPool(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKProcessPool(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKProcessPool(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKScriptMessage.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKScriptMessage", true)] public class WKScriptMessage : NSObject { private const string selBody = "body"; private static readonly IntPtr selBodyHandle = Selector.GetHandle("body"); private const string selFrameInfo = "frameInfo"; private static readonly IntPtr selFrameInfoHandle = Selector.GetHandle("frameInfo"); private const string selName = "name"; private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private const string selWebView = "webView"; private static readonly IntPtr selWebViewHandle = Selector.GetHandle("webView"); private static readonly IntPtr class_ptr = Class.GetHandle("WKScriptMessage"); private object? __mt_WebView_var; public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKScriptMessage() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKScriptMessage(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKScriptMessage(IntPtr handle) : base(handle) { } public virtual NSObject Body { [Export("body", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selBodyHandle)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selBodyHandle)); } } public virtual WKFrameInfo FrameInfo { [Export("frameInfo", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selFrameInfoHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selFrameInfoHandle)); } } public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selNameHandle)); } } public virtual WKWebView WebView { [Export("webView", ArgumentSemantic.Weak)] get { WKWebView wKWebView = ((!IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWebViewHandle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selWebViewHandle))); __mt_WebView_var = wKWebView; return wKWebView; } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) __mt_WebView_var = null; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKScriptMessageHandler.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Protocol] [Register("WKScriptMessageHandler", false)] [Model] public abstract class WKScriptMessageHandler : NSObject, IWKScriptMessageHandler, INativeObject, IDisposable { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] protected WKScriptMessageHandler() : base(NSObjectFlag.Empty) { IsDirectBinding = false; InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKScriptMessageHandler(NSObjectFlag t) : base(t) { IsDirectBinding = false; } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKScriptMessageHandler(IntPtr handle) : base(handle) { IsDirectBinding = false; } [Export("userContentController:didReceiveScriptMessage:")] public abstract void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKScriptMessageHandlerWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal class WKScriptMessageHandlerWrapper : BaseWrapper, IWKScriptMessageHandler { [Preserve(Conditional = true)] public WKScriptMessageHandlerWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKScriptMessageHandlerWrapper(IntPtr handle) : base(handle, false) { } [Export("userContentController:didReceiveScriptMessage:")] public void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message) { if (userContentController == null) throw new ArgumentNullException("userContentController"); if (message == null) throw new ArgumentNullException("message"); Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, Selector.GetHandle("userContentController:didReceiveScriptMessage:"), userContentController.Handle, message.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKSecurityOrigin.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKSecurityOrigin", true)] public class WKSecurityOrigin : NSObject { private const string selHost = "host"; private static readonly IntPtr selHostHandle = Selector.GetHandle("host"); private const string selPort = "port"; private static readonly IntPtr selPortHandle = Selector.GetHandle("port"); private const string selProtocol = "protocol"; private static readonly IntPtr selProtocolHandle = Selector.GetHandle("protocol"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKSecurityOrigin"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKSecurityOrigin(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKSecurityOrigin(IntPtr handle) : base(handle) { } public virtual string Host { [Export("host")] get { if (IsDirectBinding) return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selHostHandle)); return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selHostHandle)); } } public virtual long Port { [Export("port")] get { if (IsDirectBinding) return Messaging.long_objc_msgSend(Handle, selPortHandle); return Messaging.long_objc_msgSendSuper(SuperHandle, selPortHandle); } } public virtual string Protocol { [Export("protocol")] get { if (IsDirectBinding) return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selProtocolHandle)); return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selProtocolHandle)); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKSelectionGranularity.cs ================================================ namespace WebKit; public enum WKSelectionGranularity : long { Dynamic, Character } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKSnapshotConfiguration.cs ================================================ using CoreGraphics; using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKSnapshotConfiguration", true)] public class WKSnapshotConfiguration : NSObject, INativeObject, IDisposable { private const string selAfterScreenUpdates = "afterScreenUpdates"; private static readonly IntPtr selAfterScreenUpdatesHandle = Selector.GetHandle("afterScreenUpdates"); private const string selCopyWithZone_ = "copyWithZone:"; private static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle("copyWithZone:"); private const string selRect = "rect"; private static readonly IntPtr selRectHandle = Selector.GetHandle("rect"); private const string selSetAfterScreenUpdates_ = "setAfterScreenUpdates:"; private static readonly IntPtr selSetAfterScreenUpdates_Handle = Selector.GetHandle("setAfterScreenUpdates:"); private const string selSetRect_ = "setRect:"; private static readonly IntPtr selSetRect_Handle = Selector.GetHandle("setRect:"); private const string selSetSnapshotWidth_ = "setSnapshotWidth:"; private static readonly IntPtr selSetSnapshotWidth_Handle = Selector.GetHandle("setSnapshotWidth:"); private const string selSnapshotWidth = "snapshotWidth"; private static readonly IntPtr selSnapshotWidthHandle = Selector.GetHandle("snapshotWidth"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKSnapshotConfiguration"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKSnapshotConfiguration() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKSnapshotConfiguration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKSnapshotConfiguration(IntPtr handle) : base(handle) { } public virtual bool AfterScreenUpdates { [Export("afterScreenUpdates")] get { if (base.IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAfterScreenUpdatesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAfterScreenUpdatesHandle); } [Export("setAfterScreenUpdates:")] set { if (base.IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAfterScreenUpdates_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAfterScreenUpdates_Handle, value); } } } public virtual CGRect Rect { [Export("rect")] get { CGRect retval; if (base.IsDirectBinding) { Messaging.CGRect_objc_msgSend_stret(out retval, base.Handle, selRectHandle); } else { Messaging.CGRect_objc_msgSendSuper_stret(out retval, base.SuperHandle, selRectHandle); } return retval; } [Export("setRect:")] set { if (base.IsDirectBinding) { Messaging.void_objc_msgSend_CGRect(base.Handle, selSetRect_Handle, value); } else { Messaging.void_objc_msgSendSuper_CGRect(base.SuperHandle, selSetRect_Handle, value); } } } public virtual NSNumber SnapshotWidth { [Export("snapshotWidth")] get { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(base.Handle, selSnapshotWidthHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSnapshotWidthHandle)); } [Export("setSnapshotWidth:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (base.IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSnapshotWidth_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSnapshotWidth_Handle, value.Handle); } } } [Export("copyWithZone:")] public virtual NSObject Copy(NSZone? zone) { NSObject nSObject = ((!base.IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) { Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); } return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUIDelegate.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Protocol] [Register("WKUIDelegate", false)] [Model] public class WKUIDelegate : NSObject, IWKUIDelegate, INativeObject, IDisposable { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKUIDelegate() : base(NSObjectFlag.Empty) { IsDirectBinding = false; InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKUIDelegate(NSObjectFlag t) : base(t) { IsDirectBinding = false; } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKUIDelegate(IntPtr handle) : base(handle) { IsDirectBinding = false; } [Export("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:")] public virtual WKWebView CreateWebView(WKWebView webView, WKWebViewConfiguration configuration, WKNavigationAction navigationAction, WKWindowFeatures windowFeatures) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewDidClose:")] public virtual void DidClose(WKWebView webView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:")] public virtual void RunJavaScriptAlertPanel(WKWebView webView, string message, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDAction))] Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:")] public virtual void RunJavaScriptConfirmPanel(WKWebView webView, string message, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V2))] Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:")] public virtual void RunJavaScriptTextInputPanel(WKWebView webView, string prompt, string? defaultText, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V44))] Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")] public virtual void RunOpenPanel(WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V95))] Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUIDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WKUIDelegateWrapper : BaseWrapper, IWKUIDelegate { [Preserve(Conditional = true)] public WKUIDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKUIDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUIDelegate_Extensions.cs ================================================ using Foundation; using ObjCRuntime; using System; using System.Collections.Generic; using System.Text; using Xamarin.Utiles; namespace WebKit; public static class WKUIDelegate_Extensions { public static WKWebView CreateWebView(this IWKUIDelegate This, WKWebView webView, WKWebViewConfiguration configuration, WKNavigationAction navigationAction, WKWindowFeatures windowFeatures) { if (webView == null) { throw new ArgumentNullException("webView"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (navigationAction == null) { throw new ArgumentNullException("navigationAction"); } if (windowFeatures == null) { throw new ArgumentNullException("windowFeatures"); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:"), webView.Handle, configuration.Handle, navigationAction.Handle, windowFeatures.Handle)); } public unsafe static void RunJavaScriptAlertPanel(this IWKUIDelegate This, WKWebView webView, string message, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDAction))] Action completionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (message == null) { throw new ArgumentNullException("message"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr intPtr = NSString.CreateNative(message); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAction.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:"), webView.Handle, intPtr, frame.Handle, (IntPtr)ptr); NSString.ReleaseNative(intPtr); ptr->CleanupBlock(); } public unsafe static void RunJavaScriptConfirmPanel(this IWKUIDelegate This, WKWebView webView, string message, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V2))] Action completionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (message == null) { throw new ArgumentNullException("message"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr intPtr = NSString.CreateNative(message); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V2.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:"), webView.Handle, intPtr, frame.Handle, (IntPtr)ptr); NSString.ReleaseNative(intPtr); ptr->CleanupBlock(); } public unsafe static void RunJavaScriptTextInputPanel(this IWKUIDelegate This, WKWebView webView, string prompt, string? defaultText, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V44))] Action completionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (prompt == null) { throw new ArgumentNullException("prompt"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } IntPtr intPtr = NSString.CreateNative(prompt); IntPtr intPtr2 = NSString.CreateNative(defaultText); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V44.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:"), webView.Handle, intPtr, intPtr2, frame.Handle, (IntPtr)ptr); NSString.ReleaseNative(intPtr); NSString.ReleaseNative(intPtr2); ptr->CleanupBlock(); } public unsafe static void RunOpenPanel(this IWKUIDelegate This, WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, [BlockProxy(typeof(Trampolines.NIDActionArity1V95))] Action completionHandler) { if (webView == null) { throw new ArgumentNullException("webView"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V95.Handler, completionHandler); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:"), webView.Handle, parameters.Handle, frame.Handle, (IntPtr)ptr); ptr->CleanupBlock(); } public static void DidClose(this IWKUIDelegate This, WKWebView webView) { if (webView == null) { throw new ArgumentNullException("webView"); } Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("webViewDidClose:"), webView.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUrlSchemeHandlerWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WKUrlSchemeHandlerWrapper : BaseWrapper, IWKUrlSchemeHandler { [Preserve(Conditional = true)] public WKUrlSchemeHandlerWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKUrlSchemeHandlerWrapper(IntPtr handle) : base(handle, false) { } [Export("webView:startURLSchemeTask:")] public void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask) { if (webView == null) throw new ArgumentNullException("webView"); if (urlSchemeTask == null) throw new ArgumentNullException("urlSchemeTask"); Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("webView:startURLSchemeTask:"), webView.Handle, urlSchemeTask.Handle); } [Export("webView:stopURLSchemeTask:")] public void StopUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask) { if (webView == null) throw new ArgumentNullException("webView"); if (urlSchemeTask == null) throw new ArgumentNullException("urlSchemeTask"); Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("webView:stopURLSchemeTask:"), webView.Handle, urlSchemeTask.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUrlSchemeTaskWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WKUrlSchemeTaskWrapper : BaseWrapper, IWKUrlSchemeTask { [Preserve(Conditional = true)] public WKUrlSchemeTaskWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WKUrlSchemeTaskWrapper(IntPtr handle) : base(handle, false) { } public NSUrlRequest Request { [Export("request", ArgumentSemantic.Copy)] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, Selector.GetHandle("request"))); } } [Export("didReceiveResponse:")] public void DidReceiveResponse(NSUrlResponse response) { if (response == null) throw new ArgumentNullException("response"); Messaging.void_objc_msgSend_IntPtr(Handle, Selector.GetHandle("didReceiveResponse:"), response.Handle); } [Export("didReceiveData:")] public void DidReceiveData(NSData data) { if (data == null) throw new ArgumentNullException("data"); Messaging.void_objc_msgSend_IntPtr(Handle, Selector.GetHandle("didReceiveData:"), data.Handle); } [Export("didFinish")] public void DidFinish() { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("didFinish")); } [Export("didFailWithError:")] public void DidFailWithError(NSError error) { if (error == null) throw new ArgumentNullException("error"); Messaging.void_objc_msgSend_IntPtr(Handle, Selector.GetHandle("didFailWithError:"), error.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUserContentController.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKUserContentController", true)] public class WKUserContentController : NSObject { private const string selAddContentRuleList_ = "addContentRuleList:"; private static readonly IntPtr selAddContentRuleList_Handle = Selector.GetHandle("addContentRuleList:"); private const string selAddScriptMessageHandler_Name_ = "addScriptMessageHandler:name:"; private static readonly IntPtr selAddScriptMessageHandler_Name_Handle = Selector.GetHandle("addScriptMessageHandler:name:"); private const string selAddUserScript_ = "addUserScript:"; private static readonly IntPtr selAddUserScript_Handle = Selector.GetHandle("addUserScript:"); private const string selEncodeWithCoder_ = "encodeWithCoder:"; private static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle("encodeWithCoder:"); private const string selInitWithCoder_ = "initWithCoder:"; private static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle("initWithCoder:"); private const string selRemoveAllContentRuleLists = "removeAllContentRuleLists"; private static readonly IntPtr selRemoveAllContentRuleListsHandle = Selector.GetHandle("removeAllContentRuleLists"); private const string selRemoveAllUserScripts = "removeAllUserScripts"; private static readonly IntPtr selRemoveAllUserScriptsHandle = Selector.GetHandle("removeAllUserScripts"); private const string selRemoveContentRuleList_ = "removeContentRuleList:"; private static readonly IntPtr selRemoveContentRuleList_Handle = Selector.GetHandle("removeContentRuleList:"); private const string selRemoveScriptMessageHandlerForName_ = "removeScriptMessageHandlerForName:"; private static readonly IntPtr selRemoveScriptMessageHandlerForName_Handle = Selector.GetHandle("removeScriptMessageHandlerForName:"); private const string selUserScripts = "userScripts"; private static readonly IntPtr selUserScriptsHandle = Selector.GetHandle("userScripts"); private static readonly IntPtr class_ptr = Class.GetHandle("WKUserContentController"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKUserContentController() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WKUserContentController(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKUserContentController(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKUserContentController(IntPtr handle) : base(handle) { } public virtual WKUserScript[] UserScripts { [Export("userScripts")] get { if (IsDirectBinding) return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selUserScriptsHandle)); return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selUserScriptsHandle)); } } [Export("addContentRuleList:")] public virtual void AddContentRuleList(WKContentRuleList contentRuleList) { if (contentRuleList == null) { throw new ArgumentNullException("contentRuleList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selAddContentRuleList_Handle, contentRuleList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selAddContentRuleList_Handle, contentRuleList.Handle); } } [Export("addScriptMessageHandler:name:")] public virtual void AddScriptMessageHandler(IWKScriptMessageHandler scriptMessageHandler, string name) { if (scriptMessageHandler != null) { if (!(scriptMessageHandler is NSObject)) { throw new ArgumentException("The object passed of type " + scriptMessageHandler.GetType()?.ToString() + " does not derive from NSObject"); } if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selAddScriptMessageHandler_Name_Handle, scriptMessageHandler.Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selAddScriptMessageHandler_Name_Handle, scriptMessageHandler.Handle, arg); } NSString.ReleaseNative(arg); return; } throw new ArgumentNullException("scriptMessageHandler"); } [Export("addUserScript:")] public virtual void AddUserScript(WKUserScript userScript) { if (userScript == null) { throw new ArgumentNullException("userScript"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selAddUserScript_Handle, userScript.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selAddUserScript_Handle, userScript.Handle); } } [Export("removeAllContentRuleLists")] public virtual void RemoveAllContentRuleLists() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selRemoveAllContentRuleListsHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selRemoveAllContentRuleListsHandle); } } [Export("removeAllUserScripts")] public virtual void RemoveAllUserScripts() { if (IsDirectBinding) { Messaging.void_objc_msgSend(Handle, selRemoveAllUserScriptsHandle); } else { Messaging.void_objc_msgSendSuper(SuperHandle, selRemoveAllUserScriptsHandle); } } [Export("removeContentRuleList:")] public virtual void RemoveContentRuleList(WKContentRuleList contentRuleList) { if (contentRuleList == null) { throw new ArgumentNullException("contentRuleList"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveContentRuleList_Handle, contentRuleList.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selRemoveContentRuleList_Handle, contentRuleList.Handle); } } [Export("removeScriptMessageHandlerForName:")] public virtual void RemoveScriptMessageHandler(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selRemoveScriptMessageHandlerForName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selRemoveScriptMessageHandlerForName_Handle, arg); } NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUserScript.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKUserScript", true)] public class WKUserScript : NSObject { private const string selCopyWithZone_ = "copyWithZone:"; private static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle("copyWithZone:"); private const string selInitWithSource_InjectionTime_ForMainFrameOnly_ = "initWithSource:injectionTime:forMainFrameOnly:"; private static readonly IntPtr selInitWithSource_InjectionTime_ForMainFrameOnly_Handle = Selector.GetHandle("initWithSource:injectionTime:forMainFrameOnly:"); private const string selInjectionTime = "injectionTime"; private static readonly IntPtr selInjectionTimeHandle = Selector.GetHandle("injectionTime"); private const string selIsForMainFrameOnly = "isForMainFrameOnly"; private static readonly IntPtr selIsForMainFrameOnlyHandle = Selector.GetHandle("isForMainFrameOnly"); private const string selSource = "source"; private static readonly IntPtr selSourceHandle = Selector.GetHandle("source"); private static readonly IntPtr class_ptr = Class.GetHandle("WKUserScript"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKUserScript(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKUserScript(IntPtr handle) : base(handle) { } [Export("initWithSource:injectionTime:forMainFrameOnly:")] public WKUserScript(NSString source, WKUserScriptInjectionTime injectionTime, bool isForMainFrameOnly) : base(NSObjectFlag.Empty) { if (source == null) throw new ArgumentNullException("source"); if (IsDirectBinding) InitializeWithHandle(Messaging.IntPtr_objc_msgSend_IntPtr_Int64_bool(Handle, selInitWithSource_InjectionTime_ForMainFrameOnly_Handle, source.Handle, (long)injectionTime, isForMainFrameOnly)); else InitializeWithHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr_Int64_bool(SuperHandle, selInitWithSource_InjectionTime_ForMainFrameOnly_Handle, source.Handle, (long)injectionTime, isForMainFrameOnly)); } public virtual WKUserScriptInjectionTime InjectionTime { [Export("injectionTime")] get { if (IsDirectBinding) return (WKUserScriptInjectionTime)Messaging.Int64_objc_msgSend(Handle, selInjectionTimeHandle); return (WKUserScriptInjectionTime)Messaging.Int64_objc_msgSendSuper(SuperHandle, selInjectionTimeHandle); } } public virtual bool IsForMainFrameOnly { [Export("isForMainFrameOnly")] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selIsForMainFrameOnlyHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsForMainFrameOnlyHandle); } } public virtual NSString Source { [Export("source", ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selSourceHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selSourceHandle)); } } [Export("copyWithZone:")] public virtual NSObject Copy(NSZone? zone) { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); return nSObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKUserScriptInjectionTime.cs ================================================ namespace WebKit; public enum WKUserScriptInjectionTime : long { AtDocumentStart, AtDocumentEnd } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebView.cs ================================================ using AppKit; using CoreFoundation; using CoreGraphics; using Foundation; using ObjCRuntime; using Security; using System.ComponentModel; using Xamarin.System; using Xamarin.Utiles; namespace WebKit; [Register(nameof(WKWebView), true)] public class WKWebView : NSView { private const string selUIDelegate = "UIDelegate"; private static readonly IntPtr selUIDelegateHandle = Selector.GetHandle(selUIDelegate); private const string selURL = "URL"; private static readonly IntPtr selURLHandle = Selector.GetHandle(selURL); private const string selAllowsBackForwardNavigationGestures = "allowsBackForwardNavigationGestures"; private static readonly IntPtr selAllowsBackForwardNavigationGesturesHandle = Selector.GetHandle(selAllowsBackForwardNavigationGestures); private const string selAllowsLinkPreview = "allowsLinkPreview"; private static readonly IntPtr selAllowsLinkPreviewHandle = Selector.GetHandle(selAllowsLinkPreview); private const string selAllowsMagnification = "allowsMagnification"; private static readonly IntPtr selAllowsMagnificationHandle = Selector.GetHandle(selAllowsMagnification); private const string selCameraCaptureState = "cameraCaptureState"; private static readonly IntPtr selCameraCaptureStateHandle = Selector.GetHandle(selCameraCaptureState); private const string selBackForwardList = "backForwardList"; private static readonly IntPtr selBackForwardListHandle = Selector.GetHandle(selBackForwardList); private const string selFullscreenState = "fullscreenState"; private static readonly IntPtr selFullscreenStateHandle = Selector.GetHandle(selFullscreenState); private const string selInteractionState = "interactionState"; private static readonly IntPtr selInteractionStateHandle = Selector.GetHandle(selInteractionState); private const string selSetInteractionState_ = "setInteractionState:"; private static readonly IntPtr selSetInteractionStateHandle = Selector.GetHandle(selSetInteractionState_); private const string selPageZoom = "pageZoom"; private static readonly IntPtr selPageZoomHandle = Selector.GetHandle(selPageZoom); private const string selSetPageZoom_ = "setPageZoom:"; private static readonly IntPtr selSetPageZoomHandle = Selector.GetHandle(selSetPageZoom_); private const string selCreateWebArchiveDataWithCompletionHandler_ = "createWebArchiveDataWithCompletionHandler:"; private static readonly IntPtr selCreateWebArchiveDataWithCompletionHandler_Handle = Selector.GetHandle(selCreateWebArchiveDataWithCompletionHandler_); private const string selCanGoBack = "canGoBack"; private static readonly IntPtr selCanGoBackHandle = Selector.GetHandle(selCanGoBack); private const string selCanGoForward = "canGoForward"; private static readonly IntPtr selCanGoForwardHandle = Selector.GetHandle(selCanGoForward); private const string selCertificateChain = "certificateChain"; private static readonly IntPtr selCertificateChainHandle = Selector.GetHandle(selCertificateChain); private const string selConfiguration = "configuration"; private static readonly IntPtr selConfigurationHandle = Selector.GetHandle(selConfiguration); private const string selCustomUserAgent = "customUserAgent"; private static readonly IntPtr selCustomUserAgentHandle = Selector.GetHandle(selCustomUserAgent); private const string selEstimatedProgress = "estimatedProgress"; private static readonly IntPtr selEstimatedProgressHandle = Selector.GetHandle(selEstimatedProgress); private const string selEvaluateJavaScript_CompletionHandler_ = "evaluateJavaScript:completionHandler:"; private static readonly IntPtr selEvaluateJavaScript_CompletionHandler_Handle = Selector.GetHandle(selEvaluateJavaScript_CompletionHandler_); private const string selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_ = "evaluateJavaScript:inFrame:inContentWorld:completionHandler:"; private static readonly IntPtr selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_Handle = Selector.GetHandle(selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_); private const string selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_ = "callAsyncJavaScript:arguments:inFrame:inContentWorld:completionHandler:"; private static readonly IntPtr selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_Handle = Selector.GetHandle(selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_); private const string selGoBack = "goBack"; private static readonly IntPtr selGoBackHandle = Selector.GetHandle(selGoBack); private const string selGoForward = "goForward"; private static readonly IntPtr selGoForwardHandle = Selector.GetHandle(selGoForward); private const string selGoToBackForwardListItem_ = "goToBackForwardListItem:"; private static readonly IntPtr selGoToBackForwardListItem_Handle = Selector.GetHandle(selGoToBackForwardListItem_); private const string selHandlesURLScheme_ = "handlesURLScheme:"; private static readonly IntPtr selHandlesURLScheme_Handle = Selector.GetHandle(selHandlesURLScheme_); private const string selHasOnlySecureContent = "hasOnlySecureContent"; private static readonly IntPtr selHasOnlySecureContentHandle = Selector.GetHandle(selHasOnlySecureContent); private const string selInitWithFrame_Configuration_ = "initWithFrame:configuration:"; private static readonly IntPtr selInitWithFrame_Configuration_Handle = Selector.GetHandle(selInitWithFrame_Configuration_); private const string selFindString_WithConfiguration_completionHandler_ = "findString:withConfiguration:completionHandler:"; private static readonly IntPtr selFindString_WithConfiguration_completionHandler_Handle = Selector.GetHandle(selFindString_WithConfiguration_completionHandler_); private const string selIsLoading = "isLoading"; private static readonly IntPtr selIsLoadingHandle = Selector.GetHandle(selIsLoading); private const string selLoadData_MIMEType_CharacterEncodingName_BaseURL_ = "loadData:MIMEType:characterEncodingName:baseURL:"; private static readonly IntPtr selLoadData_MIMEType_CharacterEncodingName_BaseURL_Handle = Selector.GetHandle(selLoadData_MIMEType_CharacterEncodingName_BaseURL_); private const string selLoadFileRequest_AllowingReadAccessToURL_ = "loadFileRequest:allowingReadAccessToURL:"; private static readonly IntPtr selLoadFileRequest_AllowingReadAccessToURL_Handle = Selector.GetHandle(selLoadFileRequest_AllowingReadAccessToURL_); private const string selLoadFileURL_AllowingReadAccessToURL_ = "loadFileURL:allowingReadAccessToURL:"; private static readonly IntPtr selLoadFileURL_AllowingReadAccessToURL_Handle = Selector.GetHandle(selLoadFileURL_AllowingReadAccessToURL_); private const string selLoadHTMLString_BaseURL_ = "loadHTMLString:baseURL:"; private static readonly IntPtr selLoadHTMLString_BaseURL_Handle = Selector.GetHandle(selLoadHTMLString_BaseURL_); private const string selLoadRequest_ = "loadRequest:"; private static readonly IntPtr selLoadRequest_Handle = Selector.GetHandle(selLoadRequest_); private const string selMagnification = "magnification"; private static readonly IntPtr selMagnificationHandle = Selector.GetHandle(selMagnification); private const string selNavigationDelegate = "navigationDelegate"; private static readonly IntPtr selNavigationDelegateHandle = Selector.GetHandle(selNavigationDelegate); private const string selReload = "reload"; private static readonly IntPtr selReloadHandle = Selector.GetHandle(selReload); private const string selReloadFromOrigin = "reloadFromOrigin"; private static readonly IntPtr selReloadFromOriginHandle = Selector.GetHandle(selReloadFromOrigin); private const string selServerTrust = "serverTrust"; private static readonly IntPtr selServerTrustHandle = Selector.GetHandle(selServerTrust); private const string selSetAllowsBackForwardNavigationGestures_ = "setAllowsBackForwardNavigationGestures:"; private static readonly IntPtr selSetAllowsBackForwardNavigationGestures_Handle = Selector.GetHandle(selSetAllowsBackForwardNavigationGestures_); private const string selSetAllowsLinkPreview_ = "setAllowsLinkPreview:"; private static readonly IntPtr selSetAllowsLinkPreview_Handle = Selector.GetHandle(selSetAllowsLinkPreview_); private const string selSetAllowsMagnification_ = "setAllowsMagnification:"; private static readonly IntPtr selSetAllowsMagnification_Handle = Selector.GetHandle(selSetAllowsMagnification_); private const string selSetCustomUserAgent_ = "setCustomUserAgent:"; private static readonly IntPtr selSetCustomUserAgent_Handle = Selector.GetHandle(selSetCustomUserAgent_); private const string selSetMagnification_ = "setMagnification:"; private static readonly IntPtr selSetMagnification_Handle = Selector.GetHandle(selSetMagnification_); private const string selSetMagnification_CenteredAtPoint_ = "setMagnification:centeredAtPoint:"; private static readonly IntPtr selSetMagnification_CenteredAtPoint_Handle = Selector.GetHandle(selSetMagnification_CenteredAtPoint_); private const string selSetNavigationDelegate_ = "setNavigationDelegate:"; private static readonly IntPtr selSetNavigationDelegate_Handle = Selector.GetHandle(selSetNavigationDelegate_); private const string selSetUIDelegate_ = "setUIDelegate:"; private static readonly IntPtr selSetUIDelegate_Handle = Selector.GetHandle(selSetUIDelegate_); private const string selStopLoading = "stopLoading"; private static readonly IntPtr selStopLoadingHandle = Selector.GetHandle(selStopLoading); private const string selTakeSnapshotWithConfiguration_CompletionHandler_ = "takeSnapshotWithConfiguration:completionHandler:"; private static readonly IntPtr selTakeSnapshotWithConfiguration_CompletionHandler_Handle = Selector.GetHandle(selTakeSnapshotWithConfiguration_CompletionHandler_); private const string selTitle = "title"; private static readonly IntPtr selTitleHandle = Selector.GetHandle(selTitle); private const string selValidateUserInterfaceItem_ = "validateUserInterfaceItem:"; private static readonly IntPtr selValidateUserInterfaceItem_Handle = Selector.GetHandle(selValidateUserInterfaceItem_); private static readonly IntPtr class_ptr = Class.GetHandle(nameof(WKWebView)); private static Type hack = typeof(NSProxy); [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WKWebView(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWebView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWebView(IntPtr handle) : base(handle) { } [Export(selInitWithFrame_Configuration_)] public WKWebView(CGRect frame, WKWebViewConfiguration configuration) : base(NSObjectFlag.Empty) { if (configuration == null) throw new ArgumentNullException("configuration"); if (IsDirectBinding) InitializeWithHandle(Messaging.IntPtr_objc_msgSend_CGRect_IntPtr(Handle, selInitWithFrame_Configuration_Handle, frame, configuration.Handle)); else InitializeWithHandle(Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr(SuperHandle, selInitWithFrame_Configuration_Handle, frame, configuration.Handle)); } private object? __mt_WeakNavigationDelegate_var; private object? __mt_WeakUIDelegate_var; public virtual bool AllowsBackForwardNavigationGestures { [Export(selAllowsBackForwardNavigationGestures)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selAllowsBackForwardNavigationGesturesHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selAllowsBackForwardNavigationGesturesHandle); } [Export(selSetAllowsBackForwardNavigationGestures_)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_bool(Handle, selSetAllowsBackForwardNavigationGestures_Handle, value); else Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetAllowsBackForwardNavigationGestures_Handle, value); } } public virtual bool AllowsLinkPreview { [Export(selAllowsLinkPreview)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selAllowsLinkPreviewHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selAllowsLinkPreviewHandle); } [Export(selSetAllowsLinkPreview_)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_bool(Handle, selSetAllowsLinkPreview_Handle, value); else Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetAllowsLinkPreview_Handle, value); } } public virtual bool AllowsMagnification { [Export(selAllowsMagnification)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selAllowsMagnificationHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selAllowsMagnificationHandle); } [Export(selSetAllowsMagnification_)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_bool(Handle, selSetAllowsMagnification_Handle, value); else Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetAllowsMagnification_Handle, value); } } public virtual WKBackForwardList BackForwardList { [Export(selBackForwardList, ArgumentSemantic.Retain)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selBackForwardListHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selBackForwardListHandle)); } } public virtual WKMediaCaptureState CameraCaptureState { [Export(selCameraCaptureState)] get { if (IsDirectBinding) return (WKMediaCaptureState)Messaging.IntPtr_objc_msgSend(Handle, selCameraCaptureStateHandle); return (WKMediaCaptureState)Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCameraCaptureStateHandle); } } public virtual bool CanGoBack { [Export(selCanGoBack)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selCanGoBackHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selCanGoBackHandle); } } public virtual bool CanGoForward { [Export(selCanGoForward)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selCanGoForwardHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selCanGoForwardHandle); } } public virtual SecCertificate[] CertificateChain { [Export(selCertificateChain, ArgumentSemantic.Copy)] get { if (IsDirectBinding) return CFArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(Handle, selCertificateChainHandle)); return CFArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCertificateChainHandle)); } } public virtual WKWebViewConfiguration Configuration { [Export(selConfiguration, ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selConfigurationHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selConfigurationHandle)); } } public virtual string? CustomUserAgent { [Export(selCustomUserAgent)] get { if (IsDirectBinding) return CFString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selCustomUserAgentHandle)); return CFString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selCustomUserAgentHandle)); } [Export(selSetCustomUserAgent_)] set { if (value == null) throw new ArgumentNullException("value"); IntPtr arg = CFString.CreateNative(value); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selSetCustomUserAgent_Handle, arg); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetCustomUserAgent_Handle, arg); CFString.ReleaseNative(arg); } } public virtual double EstimatedProgress { [Export(selEstimatedProgress)] get { if (IsDirectBinding) return Messaging.Double_objc_msgSend(Handle, selEstimatedProgressHandle); return Messaging.Double_objc_msgSendSuper(SuperHandle, selEstimatedProgressHandle); } } public virtual WKFullscreenState FullscreenState { [Export(selFullscreenState)] get { if (IsDirectBinding) return (WKFullscreenState)Messaging.IntPtr_objc_msgSend(Handle, selFullscreenStateHandle); return (WKFullscreenState)Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selFullscreenStateHandle); } } public virtual bool HasOnlySecureContent { [Export(selHasOnlySecureContent)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selHasOnlySecureContentHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selHasOnlySecureContentHandle); } } public virtual NSObject? InteractionState { [Export(selInteractionState, ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selInteractionStateHandle)); return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selInteractionStateHandle)); } [Export(selSetInteractionState_, ArgumentSemantic.Copy)] set { IntPtr arg = value.Handle; if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selSetInteractionStateHandle, arg); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetInteractionStateHandle, arg); } } public virtual bool IsLoading { [Export(selIsLoading)] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selIsLoadingHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsLoadingHandle); } } public virtual nfloat Magnification { [Export(selMagnification)] get { if (IsDirectBinding) return Messaging.nfloat_objc_msgSend(Handle, selMagnificationHandle); return Messaging.nfloat_objc_msgSendSuper(SuperHandle, selMagnificationHandle); } [Export(selSetMagnification_)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_nfloat(Handle, selSetMagnification_Handle, value); else Messaging.void_objc_msgSendSuper_nfloat(SuperHandle, selSetMagnification_Handle, value); } } public IWKNavigationDelegate NavigationDelegate { get => WeakNavigationDelegate as IWKNavigationDelegate; set { NSObject nSObject = value as NSObject; if (value != null && nSObject == null) throw new ArgumentException("The object passed of type " + value.GetType()?.ToString() + " does not derive from NSObject"); WeakNavigationDelegate = nSObject; } } public virtual nfloat PageZoom { [Export(selPageZoom)] get { if (IsDirectBinding) return Messaging.nfloat_objc_msgSend(Handle, selPageZoomHandle); return Messaging.nfloat_objc_msgSendSuper(SuperHandle, selPageZoomHandle); } [Export(selSetPageZoom_)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_nfloat(Handle, selSetPageZoomHandle, value); else Messaging.void_objc_msgSendSuper_nfloat(SuperHandle, selSetPageZoomHandle, value); } } public virtual SecTrust ServerTrust { [Export(selServerTrust)] get { IntPtr intPtr = ((!IsDirectBinding) ? Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selServerTrustHandle) : Messaging.IntPtr_objc_msgSend(Handle, selServerTrustHandle)); return (intPtr == IntPtr.Zero) ? null : new SecTrust(intPtr); } } public virtual string Title { [Export(selTitle)] get { if (IsDirectBinding) return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selTitleHandle)); return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selTitleHandle)); } } public IWKUIDelegate UIDelegate { get => WeakUIDelegate as IWKUIDelegate; set { NSObject nSObject = value as NSObject; if (value != null && nSObject == null) throw new ArgumentException("The object passed of type " + value.GetType()?.ToString() + " does not derive from NSObject"); WeakUIDelegate = nSObject; } } public virtual NSUrl? Url { [Export(selURL, ArgumentSemantic.Copy)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selURLHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selURLHandle)); } } public virtual NSObject? WeakNavigationDelegate { [Export(selNavigationDelegate, ArgumentSemantic.Weak)] get { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selNavigationDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selNavigationDelegateHandle))); __mt_WeakNavigationDelegate_var = nSObject; return nSObject; } [Export(selSetNavigationDelegate_, ArgumentSemantic.Weak)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selSetNavigationDelegate_Handle, value?.Handle ?? IntPtr.Zero); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetNavigationDelegate_Handle, value?.Handle ?? IntPtr.Zero); __mt_WeakNavigationDelegate_var = value; } } public virtual NSObject? WeakUIDelegate { [Export(selUIDelegate, ArgumentSemantic.Weak)] get { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selUIDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(Handle, selUIDelegateHandle))); __mt_WeakUIDelegate_var = nSObject; return nSObject; } [Export(selSetUIDelegate_, ArgumentSemantic.Weak)] set { if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selSetUIDelegate_Handle, value?.Handle ?? IntPtr.Zero); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetUIDelegate_Handle, value?.Handle ?? IntPtr.Zero); __mt_WeakUIDelegate_var = value; } } [Export(selEvaluateJavaScript_CompletionHandler_)] public unsafe virtual void EvaluateJavaScript(NSString javascript, [BlockProxy(typeof(Trampolines.NIDWKJavascriptEvaluationResult))] WKJavascriptEvaluationResult? completionHandler) { if (javascript == null) throw new ArgumentNullException("javascript"); BlockLiteral* ptr; if (completionHandler == null) ptr = null; else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDWKJavascriptEvaluationResult.Handler, completionHandler); } if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selEvaluateJavaScript_CompletionHandler_Handle, javascript.Handle, (IntPtr)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selEvaluateJavaScript_CompletionHandler_Handle, javascript.Handle, (IntPtr)ptr); if (ptr != null) ptr->CleanupBlock(); } public virtual Task EvaluateJavaScriptAsync(NSString javascript) { TaskCompletionSource tcs = new TaskCompletionSource(); EvaluateJavaScript(javascript, delegate (NSObject result_, NSError error_) { if (error_ != null) { tcs.SetException(new NSErrorException(error_)); } else { tcs.SetResult(result_); } }); return tcs.Task; } public void EvaluateJavaScript(string javascript, WKJavascriptEvaluationResult completionHandler) => EvaluateJavaScript((NSString)javascript, completionHandler); public Task EvaluateJavaScriptAsync(string javascript) { TaskCompletionSource tcs = new TaskCompletionSource(); EvaluateJavaScript(javascript, delegate (NSObject result_, NSError error_) { if (error_ != null) tcs.SetException(new NSErrorException(error_)); else tcs.SetResult(result_); }); return tcs.Task; } [Export(selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_)] public unsafe virtual void EvaluateJavaScript(string javaScriptString, WKFrameInfo? frame, WKContentWorld contentWorld, [BlockProxy(typeof(Trampolines.NIDActionArity2V69))] Action? completionHandler) { if (javaScriptString == null) ThrowHelper.ThrowArgumentNullException("javaScriptString"); IntPtr arg = frame.Handle; IntPtr nonNullHandle = contentWorld.Handle; IntPtr arg2 = CFString.CreateNative(javaScriptString); BlockLiteral* ptr; if (completionHandler == null) { ptr = null; } else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V69.Handler, completionHandler); } if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_Handle, arg2, arg, nonNullHandle, (nint)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selEvaluateJavaScript_InFrame_InContentWorld_CompletionHandler_Handle, arg2, arg, nonNullHandle, (nint)ptr); CFString.ReleaseNative(arg2); if (ptr != null) { ptr->CleanupBlock(); } } public virtual Task EvaluateJavaScriptAsync(string javaScriptString, WKFrameInfo? frame, WKContentWorld contentWorld) { TaskCompletionSource tcs = new TaskCompletionSource(); EvaluateJavaScript(javaScriptString, frame, contentWorld, delegate (NSObject arg1_, NSError arg2_) { if (arg2_ != null) { tcs.SetException(new NSErrorException(arg2_)); } else { tcs.SetResult(arg1_); } }); return tcs.Task; } [Export(selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_)] public unsafe virtual void CallAsyncJavaScript(string functionBody, NSDictionary? arguments, WKFrameInfo? frame, WKContentWorld contentWorld, [BlockProxy(typeof(Trampolines.NIDActionArity2V69))] Action? completionHandler) { if (functionBody == null) ThrowHelper.ThrowArgumentNullException("functionBody"); IntPtr arg = arguments.Handle; IntPtr arg2 = frame.Handle; IntPtr nonNullHandle = contentWorld.Handle; IntPtr arg3 = CFString.CreateNative(functionBody); BlockLiteral* ptr; if (completionHandler == null) ptr = null; else { BlockLiteral blockLiteral = default(BlockLiteral); ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V69.Handler, completionHandler); } if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_Handle, arg3, arg, arg2, nonNullHandle, (nint)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selCallAsyncJavaScript_Arguments_InFrame_InContentWorld_CompletionHandler_Handle, arg3, arg, arg2, nonNullHandle, (nint)ptr); CFString.ReleaseNative(arg3); if (ptr != null) ptr->CleanupBlock(); } public virtual Task CallAsyncJavaScriptAsync(string functionBody, NSDictionary? arguments, WKFrameInfo? frame, WKContentWorld contentWorld) { TaskCompletionSource tcs = new TaskCompletionSource(); CallAsyncJavaScript(functionBody, arguments, frame, contentWorld, delegate (NSObject arg1_, NSError arg2_) { if (arg2_ != null) tcs.SetException(new NSErrorException(arg2_)); else tcs.SetResult(arg1_); }); return tcs.Task; } [Export(selCreateWebArchiveDataWithCompletionHandler_)] public unsafe virtual void CreateWebArchive([BlockProxy(typeof(Trampolines.NIDActionArity2V16))] Action completionHandler) { if (completionHandler == null) ThrowHelper.ThrowArgumentNullException("completionHandler"); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V16.Handler, completionHandler); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selCreateWebArchiveDataWithCompletionHandler_Handle, (nint)ptr); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selCreateWebArchiveDataWithCompletionHandler_Handle, (nint)ptr); ptr->CleanupBlock(); } public virtual Task CreateWebArchiveAsync() { TaskCompletionSource tcs = new TaskCompletionSource(); CreateWebArchive(delegate (NSData arg1_, NSError arg2_) { if (arg2_ != null) tcs.SetException(new NSErrorException(arg2_)); else tcs.SetResult(arg1_); }); return tcs.Task; } [Export(selGoBack)] public virtual WKNavigation GoBack() { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selGoBackHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selGoBackHandle)); } [Export(selGoForward)] public virtual WKNavigation GoForward() { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selGoForwardHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selGoForwardHandle)); } [Export(selGoToBackForwardListItem_)] public virtual WKNavigation GoTo(WKBackForwardListItem item) { if (item == null) throw new ArgumentNullException("item"); if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selGoToBackForwardListItem_Handle, item.Handle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selGoToBackForwardListItem_Handle, item.Handle)); } [Export(selHandlesURLScheme_)] public static bool HandlesUrlScheme(string urlScheme) { if (urlScheme == null) throw new ArgumentNullException("urlScheme"); IntPtr arg = NSString.CreateNative(urlScheme); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selHandlesURLScheme_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export(selLoadData_MIMEType_CharacterEncodingName_BaseURL_)] public virtual WKNavigation LoadData(NSData data, string mimeType, string characterEncodingName, NSUrl baseUrl) { if (data == null) throw new ArgumentNullException("data"); if (mimeType == null) throw new ArgumentNullException("mimeType"); if (characterEncodingName == null) throw new ArgumentNullException("characterEncodingName"); if (baseUrl == null) throw new ArgumentNullException("baseUrl"); IntPtr arg = NSString.CreateNative(mimeType); IntPtr arg2 = NSString.CreateNative(characterEncodingName); WKNavigation result = ((!IsDirectBinding) ? Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(SuperHandle, selLoadData_MIMEType_CharacterEncodingName_BaseURL_Handle, data.Handle, arg, arg2, baseUrl.Handle)) : Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(Handle, selLoadData_MIMEType_CharacterEncodingName_BaseURL_Handle, data.Handle, arg, arg2, baseUrl.Handle))); NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); return result; } [Export(selLoadFileRequest_AllowingReadAccessToURL_)] public virtual WKNavigation LoadFileRequest(NSUrlRequest request, NSUrl readAccessURL) { IntPtr nonNullHandle = request.GetNonNullHandle("request"); IntPtr nonNullHandle2 = readAccessURL.GetNonNullHandle("readAccessURL"); if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selLoadFileRequest_AllowingReadAccessToURL_Handle, nonNullHandle, nonNullHandle2)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selLoadFileRequest_AllowingReadAccessToURL_Handle, nonNullHandle, nonNullHandle2)); } [Export(selLoadFileURL_AllowingReadAccessToURL_)] public virtual WKNavigation? LoadFileUrl(NSUrl url, NSUrl readAccessUrl) { if (url == null) throw new ArgumentNullException("url"); if (readAccessUrl == null) throw new ArgumentNullException("readAccessUrl"); if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selLoadFileURL_AllowingReadAccessToURL_Handle, url.Handle, readAccessUrl.Handle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selLoadFileURL_AllowingReadAccessToURL_Handle, url.Handle, readAccessUrl.Handle)); } [Export(selLoadHTMLString_BaseURL_)] public virtual WKNavigation LoadHtmlString(NSString htmlString, NSUrl? baseUrl) { if (htmlString == null) throw new ArgumentNullException("htmlString"); if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(Handle, selLoadHTMLString_BaseURL_Handle, htmlString.Handle, (baseUrl == null) ? IntPtr.Zero : baseUrl.Handle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selLoadHTMLString_BaseURL_Handle, htmlString.Handle, (baseUrl == null) ? IntPtr.Zero : baseUrl.Handle)); } public WKNavigation LoadHtmlString(string htmlString, NSUrl baseUrl) => LoadHtmlString((NSString)htmlString, baseUrl); [Export(selLoadRequest_)] public virtual WKNavigation LoadRequest(NSUrlRequest request) { if (request == null) throw new ArgumentNullException("request"); if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selLoadRequest_Handle, request.Handle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selLoadRequest_Handle, request.Handle)); } [Export(selReload)] public virtual WKNavigation Reload() { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selReloadHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selReloadHandle)); } [Export(selReloadFromOrigin)] public virtual WKNavigation ReloadFromOrigin() { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selReloadFromOriginHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selReloadFromOriginHandle)); } [Export(selSetMagnification_CenteredAtPoint_)] public virtual void SetMagnification(nfloat magnification, CGPoint centerPoint) { if (IsDirectBinding) Messaging.void_objc_msgSend_nfloat_CGPoint(Handle, selSetMagnification_CenteredAtPoint_Handle, magnification, centerPoint); else Messaging.void_objc_msgSendSuper_nfloat_CGPoint(SuperHandle, selSetMagnification_CenteredAtPoint_Handle, magnification, centerPoint); } [Export(selStopLoading)] public virtual void StopLoading() { if (IsDirectBinding) Messaging.void_objc_msgSend(Handle, selStopLoadingHandle); else Messaging.void_objc_msgSendSuper(SuperHandle, selStopLoadingHandle); } [Export(selTakeSnapshotWithConfiguration_CompletionHandler_)] public unsafe virtual void TakeSnapshot(WKSnapshotConfiguration? snapshotConfiguration, [BlockProxy(typeof(Trampolines.NIDActionArity2V86))] Action completionHandler) { if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity2V86.Handler, completionHandler); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selTakeSnapshotWithConfiguration_CompletionHandler_Handle, snapshotConfiguration?.Handle ?? IntPtr.Zero, (IntPtr)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selTakeSnapshotWithConfiguration_CompletionHandler_Handle, snapshotConfiguration?.Handle ?? IntPtr.Zero, (IntPtr)ptr); ptr->CleanupBlock(); } public virtual Task TakeSnapshotAsync(WKSnapshotConfiguration? snapshotConfiguration) { TaskCompletionSource tcs = new TaskCompletionSource(); TakeSnapshot(snapshotConfiguration, delegate (NSImage arg1_, NSError arg2_) { if (arg2_ != null) tcs.SetException(new NSErrorException(arg2_)); else tcs.SetResult(arg1_); }); return tcs.Task; } [Export(selValidateUserInterfaceItem_)] public virtual bool ValidateUserInterfaceItem(INSValidatedUserInterfaceItem item) { if (item == null) throw new ArgumentNullException("item"); if (IsDirectBinding) return Messaging.bool_objc_msgSend_IntPtr(Handle, selValidateUserInterfaceItem_Handle, item.Handle); return Messaging.bool_objc_msgSendSuper_IntPtr(SuperHandle, selValidateUserInterfaceItem_Handle, item.Handle); } [Export(selFindString_WithConfiguration_completionHandler_)] public unsafe virtual void Find(string @string, WKFindConfiguration? configuration, [BlockProxy(typeof(Trampolines.NIDActionArity1V256))] Action completionHandler) { if (@string == null) { ThrowHelper.ThrowArgumentNullException("string"); } IntPtr arg = configuration.Handle; if (completionHandler == null) ThrowHelper.ThrowArgumentNullException("completionHandler"); IntPtr arg2 = CFString.CreateNative(@string); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V256.Handler, completionHandler); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selFindString_WithConfiguration_completionHandler_Handle, arg2, arg, (nint)ptr); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selFindString_WithConfiguration_completionHandler_Handle, arg2, arg, (nint)ptr); CFString.ReleaseNative(arg2); ptr->CleanupBlock(); } public virtual Task FindAsync(string @string, WKFindConfiguration? configuration) { TaskCompletionSource tcs = new TaskCompletionSource(); Find(@string, configuration, delegate (WKFindResult obj_) { tcs.SetResult(obj_); }); return tcs.Task; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (Handle == IntPtr.Zero) { __mt_WeakNavigationDelegate_var = null; __mt_WeakUIDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebViewConfiguration.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKWebViewConfiguration", true)] public class WKWebViewConfiguration : NSObject { private const string selAllowsAirPlayForMediaPlayback = "allowsAirPlayForMediaPlayback"; private static readonly IntPtr selAllowsAirPlayForMediaPlaybackHandle = Selector.GetHandle("allowsAirPlayForMediaPlayback"); private const string selApplicationNameForUserAgent = "applicationNameForUserAgent"; private static readonly IntPtr selApplicationNameForUserAgentHandle = Selector.GetHandle("applicationNameForUserAgent"); private const string selCopyWithZone_ = "copyWithZone:"; private static readonly IntPtr selCopyWithZone_Handle = Selector.GetHandle("copyWithZone:"); private const string selDefaultWebpagePreferences = "defaultWebpagePreferences"; private static readonly IntPtr selDefaultWebpagePreferencesHandle = Selector.GetHandle("defaultWebpagePreferences"); private const string selEncodeWithCoder_ = "encodeWithCoder:"; private static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle("encodeWithCoder:"); private const string selInitWithCoder_ = "initWithCoder:"; private static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle("initWithCoder:"); private const string selMediaTypesRequiringUserActionForPlayback = "mediaTypesRequiringUserActionForPlayback"; private static readonly IntPtr selMediaTypesRequiringUserActionForPlaybackHandle = Selector.GetHandle("mediaTypesRequiringUserActionForPlayback"); private const string selPreferences = "preferences"; private static readonly IntPtr selPreferencesHandle = Selector.GetHandle("preferences"); private const string selProcessPool = "processPool"; private static readonly IntPtr selProcessPoolHandle = Selector.GetHandle("processPool"); private const string selSetAllowsAirPlayForMediaPlayback_ = "setAllowsAirPlayForMediaPlayback:"; private static readonly IntPtr selSetAllowsAirPlayForMediaPlayback_Handle = Selector.GetHandle("setAllowsAirPlayForMediaPlayback:"); private const string selSetApplicationNameForUserAgent_ = "setApplicationNameForUserAgent:"; private static readonly IntPtr selSetApplicationNameForUserAgent_Handle = Selector.GetHandle("setApplicationNameForUserAgent:"); private const string selSetDefaultWebpagePreferences_ = "setDefaultWebpagePreferences:"; private static readonly IntPtr selSetDefaultWebpagePreferences_Handle = Selector.GetHandle("setDefaultWebpagePreferences:"); private const string selSetMediaTypesRequiringUserActionForPlayback_ = "setMediaTypesRequiringUserActionForPlayback:"; private static readonly IntPtr selSetMediaTypesRequiringUserActionForPlayback_Handle = Selector.GetHandle("setMediaTypesRequiringUserActionForPlayback:"); private const string selSetPreferences_ = "setPreferences:"; private static readonly IntPtr selSetPreferences_Handle = Selector.GetHandle("setPreferences:"); private const string selSetProcessPool_ = "setProcessPool:"; private static readonly IntPtr selSetProcessPool_Handle = Selector.GetHandle("setProcessPool:"); private const string selSetSuppressesIncrementalRendering_ = "setSuppressesIncrementalRendering:"; private static readonly IntPtr selSetSuppressesIncrementalRendering_Handle = Selector.GetHandle("setSuppressesIncrementalRendering:"); private const string selSetURLSchemeHandler_ForURLScheme_ = "setURLSchemeHandler:forURLScheme:"; private static readonly IntPtr selSetURLSchemeHandler_ForURLScheme_Handle = Selector.GetHandle("setURLSchemeHandler:forURLScheme:"); private const string selSetUserContentController_ = "setUserContentController:"; private static readonly IntPtr selSetUserContentController_Handle = Selector.GetHandle("setUserContentController:"); private const string selSetWebsiteDataStore_ = "setWebsiteDataStore:"; private static readonly IntPtr selSetWebsiteDataStore_Handle = Selector.GetHandle("setWebsiteDataStore:"); private const string selSuppressesIncrementalRendering = "suppressesIncrementalRendering"; private static readonly IntPtr selSuppressesIncrementalRenderingHandle = Selector.GetHandle("suppressesIncrementalRendering"); private const string selUrlSchemeHandlerForURLScheme_ = "urlSchemeHandlerForURLScheme:"; private static readonly IntPtr selUrlSchemeHandlerForURLScheme_Handle = Selector.GetHandle("urlSchemeHandlerForURLScheme:"); private const string selUserContentController = "userContentController"; private static readonly IntPtr selUserContentControllerHandle = Selector.GetHandle("userContentController"); private const string selWebsiteDataStore = "websiteDataStore"; private static readonly IntPtr selWebsiteDataStoreHandle = Selector.GetHandle("websiteDataStore"); private static readonly IntPtr class_ptr = Class.GetHandle("WKWebViewConfiguration"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKWebViewConfiguration() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WKWebViewConfiguration(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWebViewConfiguration(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWebViewConfiguration(IntPtr handle) : base(handle) { } public virtual bool AllowsAirPlayForMediaPlayback { [Export("allowsAirPlayForMediaPlayback")] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selAllowsAirPlayForMediaPlaybackHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selAllowsAirPlayForMediaPlaybackHandle); } [Export("setAllowsAirPlayForMediaPlayback:")] set { if (IsDirectBinding) Messaging.void_objc_msgSend_bool(Handle, selSetAllowsAirPlayForMediaPlayback_Handle, value); else Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetAllowsAirPlayForMediaPlayback_Handle, value); } } public virtual string ApplicationNameForUserAgent { [Export("applicationNameForUserAgent")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(Handle, selApplicationNameForUserAgentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selApplicationNameForUserAgentHandle)); } [Export("setApplicationNameForUserAgent:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetApplicationNameForUserAgent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetApplicationNameForUserAgent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual WKWebpagePreferences DefaultWebpagePreferences { [Export("defaultWebpagePreferences", ArgumentSemantic.Copy)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selDefaultWebpagePreferencesHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selDefaultWebpagePreferencesHandle)); } [Export("setDefaultWebpagePreferences:", ArgumentSemantic.Copy)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetDefaultWebpagePreferences_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetDefaultWebpagePreferences_Handle, value.Handle); } } } public virtual WKAudiovisualMediaTypes MediaTypesRequiringUserActionForPlayback { [Export("mediaTypesRequiringUserActionForPlayback", ArgumentSemantic.Assign)] get { if (IsDirectBinding) { return (WKAudiovisualMediaTypes)Messaging.UInt64_objc_msgSend(Handle, selMediaTypesRequiringUserActionForPlaybackHandle); } return (WKAudiovisualMediaTypes)Messaging.UInt64_objc_msgSendSuper(SuperHandle, selMediaTypesRequiringUserActionForPlaybackHandle); } [Export("setMediaTypesRequiringUserActionForPlayback:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_UInt64(Handle, selSetMediaTypesRequiringUserActionForPlayback_Handle, (ulong)value); } else { Messaging.void_objc_msgSendSuper_UInt64(SuperHandle, selSetMediaTypesRequiringUserActionForPlayback_Handle, (ulong)value); } } } public virtual WKPreferences Preferences { [Export("preferences", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selPreferencesHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selPreferencesHandle)); } [Export("setPreferences:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetPreferences_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetPreferences_Handle, value.Handle); } } } public virtual WKProcessPool ProcessPool { [Export("processPool", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selProcessPoolHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selProcessPoolHandle)); } [Export("setProcessPool:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetProcessPool_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetProcessPool_Handle, value.Handle); } } } public virtual bool SuppressesIncrementalRendering { [Export("suppressesIncrementalRendering")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(Handle, selSuppressesIncrementalRenderingHandle); } return Messaging.bool_objc_msgSendSuper(SuperHandle, selSuppressesIncrementalRenderingHandle); } [Export("setSuppressesIncrementalRendering:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(Handle, selSetSuppressesIncrementalRendering_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(SuperHandle, selSetSuppressesIncrementalRendering_Handle, value); } } } public virtual WKUserContentController UserContentController { [Export("userContentController", ArgumentSemantic.Retain)] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selUserContentControllerHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selUserContentControllerHandle)); } [Export("setUserContentController:", ArgumentSemantic.Retain)] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(Handle, selSetUserContentController_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetUserContentController_Handle, value.Handle); } } } public virtual WKWebsiteDataStore WebsiteDataStore { [Export("websiteDataStore", ArgumentSemantic.Retain)] get { if (IsDirectBinding) return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selWebsiteDataStoreHandle)); return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWebsiteDataStoreHandle)); } [Export("setWebsiteDataStore:", ArgumentSemantic.Retain)] set { if (value == null) throw new ArgumentNullException("value"); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selSetWebsiteDataStore_Handle, value.Handle); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selSetWebsiteDataStore_Handle, value.Handle); } } [Export("copyWithZone:")] public virtual NSObject Copy(NSZone? zone) { NSObject nSObject = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selCopyWithZone_Handle, zone?.Handle ?? IntPtr.Zero))); if (nSObject != null) Messaging.void_objc_msgSend(nSObject.Handle, Selector.GetHandle("release")); return nSObject; } [Export("encodeWithCoder:")] public override void EncodeTo(NSCoder encoder) { if (encoder == null) throw new ArgumentNullException("encoder"); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr(Handle, selEncodeWithCoder_Handle, encoder.Handle); else Messaging.void_objc_msgSendSuper_IntPtr(SuperHandle, selEncodeWithCoder_Handle, encoder.Handle); } [Export("urlSchemeHandlerForURLScheme:")] public virtual IWKUrlSchemeHandler? GetUrlSchemeHandler(string urlScheme) { if (urlScheme == null) { throw new ArgumentNullException("urlScheme"); } IntPtr arg = NSString.CreateNative(urlScheme); IWKUrlSchemeHandler result = ((!IsDirectBinding) ? Runtime.GetNativeObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(SuperHandle, selUrlSchemeHandlerForURLScheme_Handle, arg)) : Runtime.GetNativeObject(Messaging.IntPtr_objc_msgSend_IntPtr(Handle, selUrlSchemeHandlerForURLScheme_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("setURLSchemeHandler:forURLScheme:")] public virtual void SetUrlSchemeHandler(IWKUrlSchemeHandler? urlSchemeHandler, string urlScheme) { if (urlScheme == null) throw new ArgumentNullException("urlScheme"); IntPtr arg = NSString.CreateNative(urlScheme); if (IsDirectBinding) Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selSetURLSchemeHandler_ForURLScheme_Handle, urlSchemeHandler?.Handle ?? IntPtr.Zero, arg); else Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selSetURLSchemeHandler_ForURLScheme_Handle, urlSchemeHandler?.Handle ?? IntPtr.Zero, arg); NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebpagePreferences.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKWebpagePreferences", true)] public class WKWebpagePreferences : NSObject { private const string selPreferredContentMode = "preferredContentMode"; private static readonly IntPtr selPreferredContentModeHandle = Selector.GetHandle("preferredContentMode"); private const string selSetPreferredContentMode_ = "setPreferredContentMode:"; private static readonly IntPtr selSetPreferredContentMode_Handle = Selector.GetHandle("setPreferredContentMode:"); private static readonly IntPtr class_ptr = ObjCRuntime.Class.GetHandle("WKWebpagePreferences"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKWebpagePreferences() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWebpagePreferences(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWebpagePreferences(IntPtr handle) : base(handle) { } public virtual WKContentMode PreferredContentMode { [Export("preferredContentMode", ArgumentSemantic.Assign)] get { if (IsDirectBinding) { return (WKContentMode)Messaging.Int64_objc_msgSend(Handle, selPreferredContentModeHandle); } return (WKContentMode)Messaging.Int64_objc_msgSendSuper(SuperHandle, selPreferredContentModeHandle); } [Export("setPreferredContentMode:", ArgumentSemantic.Assign)] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_Int64(Handle, selSetPreferredContentMode_Handle, (long)value); } else { Messaging.void_objc_msgSendSuper_Int64(SuperHandle, selSetPreferredContentMode_Handle, (long)value); } } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebsiteDataRecord.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; namespace WebKit; [Register("WKWebsiteDataRecord", true)] public class WKWebsiteDataRecord : NSObject { private const string selDataTypes = "dataTypes"; private static readonly IntPtr selDataTypesHandle = Selector.GetHandle("dataTypes"); private const string selDisplayName = "displayName"; private static readonly IntPtr selDisplayNameHandle = Selector.GetHandle("displayName"); private static readonly IntPtr class_ptr = Class.GetHandle("WKWebsiteDataRecord"); public override IntPtr ClassHandle => class_ptr; public virtual NSSet DataTypes { [Export("dataTypes", ArgumentSemantic.Copy)] get { if (base.IsDirectBinding) { return Runtime.GetNSObjectTx>(Messaging.IntPtr_objc_msgSend(base.Handle, selDataTypesHandle)); } return Runtime.GetNSObjectTx>(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataTypesHandle)); } } public virtual string DisplayName { [Export("displayName")] get { if (base.IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDisplayNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDisplayNameHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKWebsiteDataRecord() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWebsiteDataRecord(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWebsiteDataRecord(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebsiteDataStore.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.Utiles; namespace WebKit; [Register("WKWebsiteDataStore", true)] public class WKWebsiteDataStore : NSObject { private const string selAllWebsiteDataTypes = "allWebsiteDataTypes"; private static readonly IntPtr selAllWebsiteDataTypesHandle = Selector.GetHandle("allWebsiteDataTypes"); private const string selDefaultDataStore = "defaultDataStore"; private static readonly IntPtr selDefaultDataStoreHandle = Selector.GetHandle("defaultDataStore"); private const string selEncodeWithCoder_ = "encodeWithCoder:"; private static readonly IntPtr selEncodeWithCoder_Handle = Selector.GetHandle("encodeWithCoder:"); private const string selFetchDataRecordsOfTypes_CompletionHandler_ = "fetchDataRecordsOfTypes:completionHandler:"; private static readonly IntPtr selFetchDataRecordsOfTypes_CompletionHandler_Handle = Selector.GetHandle("fetchDataRecordsOfTypes:completionHandler:"); private const string selHttpCookieStore = "httpCookieStore"; private static readonly IntPtr selHttpCookieStoreHandle = Selector.GetHandle("httpCookieStore"); private const string selInitWithCoder_ = "initWithCoder:"; private static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle("initWithCoder:"); private const string selIsPersistent = "isPersistent"; private static readonly IntPtr selIsPersistentHandle = Selector.GetHandle("isPersistent"); private const string selNonPersistentDataStore = "nonPersistentDataStore"; private static readonly IntPtr selNonPersistentDataStoreHandle = Selector.GetHandle("nonPersistentDataStore"); private const string selRemoveDataOfTypes_ForDataRecords_CompletionHandler_ = "removeDataOfTypes:forDataRecords:completionHandler:"; private static readonly IntPtr selRemoveDataOfTypes_ForDataRecords_CompletionHandler_Handle = Selector.GetHandle("removeDataOfTypes:forDataRecords:completionHandler:"); private const string selRemoveDataOfTypes_ModifiedSince_CompletionHandler_ = "removeDataOfTypes:modifiedSince:completionHandler:"; private static readonly IntPtr selRemoveDataOfTypes_ModifiedSince_CompletionHandler_Handle = Selector.GetHandle("removeDataOfTypes:modifiedSince:completionHandler:"); private static readonly IntPtr class_ptr = Class.GetHandle("WKWebsiteDataStore"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKWebsiteDataStore() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WKWebsiteDataStore(NSCoder coder) : base(NSObjectFlag.Empty) { InitializeHandle(Selector.InitWithCoder, coder); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWebsiteDataStore(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWebsiteDataStore(IntPtr handle) : base(handle) { } public static NSSet AllWebsiteDataTypes { [Export("allWebsiteDataTypes")] get { return Runtime.GetNSObjectTx>(Messaging.IntPtr_objc_msgSend(class_ptr, selAllWebsiteDataTypesHandle)); } } public static WKWebsiteDataStore DefaultDataStore { [Export("defaultDataStore")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selDefaultDataStoreHandle)); } } public virtual WKHttpCookieStore HttpCookieStore { [Export("httpCookieStore")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selHttpCookieStoreHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selHttpCookieStoreHandle)); } } public static WKWebsiteDataStore NonPersistentDataStore { [Export("nonPersistentDataStore")] get { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(class_ptr, selNonPersistentDataStoreHandle)); } } public virtual bool Persistent { [Export("isPersistent")] get { if (IsDirectBinding) return Messaging.bool_objc_msgSend(Handle, selIsPersistentHandle); return Messaging.bool_objc_msgSendSuper(SuperHandle, selIsPersistentHandle); } } [Export("fetchDataRecordsOfTypes:completionHandler:")] public unsafe virtual void FetchDataRecordsOfTypes(NSSet dataTypes, [BlockProxy(typeof(Trampolines.NIDActionArity1V96))] Action completionHandler) { if (dataTypes == null) { throw new ArgumentNullException("dataTypes"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default; BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDActionArity1V96.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(Handle, selFetchDataRecordsOfTypes_CompletionHandler_Handle, dataTypes.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(SuperHandle, selFetchDataRecordsOfTypes_CompletionHandler_Handle, dataTypes.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task FetchDataRecordsOfTypesAsync(NSSet dataTypes) { TaskCompletionSource tcs = new TaskCompletionSource(); FetchDataRecordsOfTypes(dataTypes, delegate (NSArray obj_) { tcs.SetResult(obj_); }); return tcs.Task; } [Export("removeDataOfTypes:forDataRecords:completionHandler:")] public unsafe virtual void RemoveDataOfTypes(NSSet dataTypes, WKWebsiteDataRecord[] dataRecords, [BlockProxy(typeof(Trampolines.NIDAction))] Action completionHandler) { if (dataTypes == null) { throw new ArgumentNullException("dataTypes"); } if (dataRecords == null) { throw new ArgumentNullException("dataRecords"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } NSArray nSArray = NSArray.FromNSObjects(dataRecords); BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAction.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selRemoveDataOfTypes_ForDataRecords_CompletionHandler_Handle, dataTypes.Handle, nSArray.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selRemoveDataOfTypes_ForDataRecords_CompletionHandler_Handle, dataTypes.Handle, nSArray.Handle, (IntPtr)ptr); } nSArray.Dispose(); ptr->CleanupBlock(); } public virtual Task RemoveDataOfTypesAsync(NSSet dataTypes, WKWebsiteDataRecord[] dataRecords) { TaskCompletionSource tcs = new TaskCompletionSource(); RemoveDataOfTypes(dataTypes, dataRecords, delegate { tcs.SetResult(result: true); }); return tcs.Task; } [Export("removeDataOfTypes:modifiedSince:completionHandler:")] public unsafe virtual void RemoveDataOfTypes(NSSet websiteDataTypes, NSDate date, [BlockProxy(typeof(Trampolines.NIDAction))] Action completionHandler) { if (websiteDataTypes == null) { throw new ArgumentNullException("websiteDataTypes"); } if (date == null) { throw new ArgumentNullException("date"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral blockLiteral = default(BlockLiteral); BlockLiteral* ptr = &blockLiteral; blockLiteral.SetupBlock(Trampolines.SDAction.Handler, completionHandler); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(Handle, selRemoveDataOfTypes_ModifiedSince_CompletionHandler_Handle, websiteDataTypes.Handle, date.Handle, (IntPtr)ptr); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(SuperHandle, selRemoveDataOfTypes_ModifiedSince_CompletionHandler_Handle, websiteDataTypes.Handle, date.Handle, (IntPtr)ptr); } ptr->CleanupBlock(); } public virtual Task RemoveDataOfTypesAsync(NSSet websiteDataTypes, NSDate date) { TaskCompletionSource tcs = new TaskCompletionSource(); RemoveDataOfTypes(websiteDataTypes, date, delegate { tcs.SetResult(result: true); }); return tcs.Task; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWebsiteDataType.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; public static class WKWebsiteDataType { private static NSString? _Cookies; private static NSString? _DiskCache; private static NSString? _FetchCache; private static NSString? _IndexedDBDatabases; private static NSString? _LocalStorage; private static NSString? _MemoryCache; private static NSString? _OfflineWebApplicationCache; private static NSString? _ServiceWorkerRegistrations; private static NSString? _SessionStorage; private static NSString? _WebSQLDatabases; [Field("WKWebsiteDataTypeCookies", "WebKit")] public static NSString Cookies { get { if (_Cookies == null) { _Cookies = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeCookies"); } return _Cookies; } } [Field("WKWebsiteDataTypeDiskCache", "WebKit")] public static NSString DiskCache { get { if (_DiskCache == null) { _DiskCache = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeDiskCache"); } return _DiskCache; } } [Field("WKWebsiteDataTypeFetchCache", "WebKit")] public static NSString FetchCache { get { if (_FetchCache == null) { _FetchCache = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeFetchCache"); } return _FetchCache; } } [Field("WKWebsiteDataTypeIndexedDBDatabases", "WebKit")] public static NSString IndexedDBDatabases { get { if (_IndexedDBDatabases == null) { _IndexedDBDatabases = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeIndexedDBDatabases"); } return _IndexedDBDatabases; } } [Field("WKWebsiteDataTypeLocalStorage", "WebKit")] public static NSString LocalStorage { get { if (_LocalStorage == null) { _LocalStorage = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeLocalStorage"); } return _LocalStorage; } } [Field("WKWebsiteDataTypeMemoryCache", "WebKit")] public static NSString MemoryCache { get { if (_MemoryCache == null) { _MemoryCache = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeMemoryCache"); } return _MemoryCache; } } [Field("WKWebsiteDataTypeOfflineWebApplicationCache", "WebKit")] public static NSString OfflineWebApplicationCache { get { if (_OfflineWebApplicationCache == null) { _OfflineWebApplicationCache = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeOfflineWebApplicationCache"); } return _OfflineWebApplicationCache; } } [Field("WKWebsiteDataTypeServiceWorkerRegistrations", "WebKit")] public static NSString ServiceWorkerRegistrations { get { if (_ServiceWorkerRegistrations == null) { _ServiceWorkerRegistrations = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeServiceWorkerRegistrations"); } return _ServiceWorkerRegistrations; } } [Field("WKWebsiteDataTypeSessionStorage", "WebKit")] public static NSString SessionStorage { get { if (_SessionStorage == null) { _SessionStorage = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeSessionStorage"); } return _SessionStorage; } } [Field("WKWebsiteDataTypeWebSQLDatabases", "WebKit")] public static NSString WebSQLDatabases { get { if (_WebSQLDatabases == null) { _WebSQLDatabases = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WKWebsiteDataTypeWebSQLDatabases"); } return _WebSQLDatabases; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WKWindowFeatures.cs ================================================ using Foundation; using ObjCRuntime; using System.ComponentModel; using Xamarin.System; namespace WebKit; [Register("WKWindowFeatures", true)] public class WKWindowFeatures : NSObject { private const string selAllowsResizing = "allowsResizing"; private static readonly IntPtr selAllowsResizingHandle = Selector.GetHandle("allowsResizing"); private const string selHeight = "height"; private static readonly IntPtr selHeightHandle = Selector.GetHandle("height"); private const string selMenuBarVisibility = "menuBarVisibility"; private static readonly IntPtr selMenuBarVisibilityHandle = Selector.GetHandle("menuBarVisibility"); private const string selStatusBarVisibility = "statusBarVisibility"; private static readonly IntPtr selStatusBarVisibilityHandle = Selector.GetHandle("statusBarVisibility"); private const string selToolbarsVisibility = "toolbarsVisibility"; private static readonly IntPtr selToolbarsVisibilityHandle = Selector.GetHandle("toolbarsVisibility"); private const string selWidth = "width"; private static readonly IntPtr selWidthHandle = Selector.GetHandle("width"); private const string selX = "x"; private static readonly IntPtr selXHandle = Selector.GetHandle("x"); private const string selY = "y"; private static readonly IntPtr selYHandle = Selector.GetHandle("y"); private static readonly IntPtr class_ptr = Class.GetHandle("WKWindowFeatures"); public bool? MenuBarVisibility => (menuBarVisibility == null) ? null : new bool?(menuBarVisibility.BoolValue); public bool? StatusBarVisibility => (statusBarVisibility == null) ? null : new bool?(statusBarVisibility.BoolValue); public bool? ToolbarsVisibility => (toolbarsVisibility == null) ? null : new bool?(toolbarsVisibility.BoolValue); public bool? AllowsResizing => (allowsResizing == null) ? null : new bool?(allowsResizing.BoolValue); public nfloat? X => NFloatValue(x); public nfloat? Y => NFloatValue(y); public nfloat? Width => NFloatValue(width); public nfloat? Height => NFloatValue(height); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WKWindowFeatures() : base(NSObjectFlag.Empty) { InitializeHandle(Selector.Init); } [EditorBrowsable(EditorBrowsableState.Advanced)] protected WKWindowFeatures(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] protected internal WKWindowFeatures(IntPtr handle) : base(handle) { } internal virtual NSNumber allowsResizing { [Export("allowsResizing")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selAllowsResizingHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selAllowsResizingHandle)); } } internal virtual NSNumber height { [Export("height")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selHeightHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selHeightHandle)); } } internal virtual NSNumber menuBarVisibility { [Export("menuBarVisibility")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selMenuBarVisibilityHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selMenuBarVisibilityHandle)); } } internal virtual NSNumber statusBarVisibility { [Export("statusBarVisibility")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selStatusBarVisibilityHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selStatusBarVisibilityHandle)); } } internal virtual NSNumber toolbarsVisibility { [Export("toolbarsVisibility")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selToolbarsVisibilityHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selToolbarsVisibilityHandle)); } } internal virtual NSNumber width { [Export("width")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selWidthHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selWidthHandle)); } } internal virtual NSNumber x { [Export("x")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selXHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selXHandle)); } } internal virtual NSNumber y { [Export("y")] get { if (IsDirectBinding) { return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSend(Handle, selYHandle)); } return Runtime.GetNSObjectTx(Messaging.IntPtr_objc_msgSendSuper(SuperHandle, selYHandle)); } } private static nfloat? NFloatValue(NSNumber number) { if (number == null) { return null; } if (IntPtr.Size == 4) { return number.FloatValue; } return (nfloat)number.DoubleValue; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebArchive.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebArchive", true)] public class WebArchive : NSObject { private static readonly IntPtr selMainResourceHandle = Selector.GetHandle("mainResource"); private static readonly IntPtr selSubresourcesHandle = Selector.GetHandle("subresources"); private static readonly IntPtr selSubframeArchivesHandle = Selector.GetHandle("subframeArchives"); private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selInitWithMainResourceSubresourcesSubframeArchives_Handle = Selector.GetHandle("initWithMainResource:subresources:subframeArchives:"); private static readonly IntPtr selInitWithData_Handle = Selector.GetHandle("initWithData:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebArchive"); private object __mt_MainResource_var; private object __mt_Subresources_var; private object __mt_SubframeArchives_var; private object __mt_Data_var; public override IntPtr ClassHandle => class_ptr; public virtual WebResource MainResource { [Export("mainResource")] get { return (WebResource)(__mt_MainResource_var = ((!IsDirectBinding) ? ((WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainResourceHandle))) : ((WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainResourceHandle))))); } } public virtual WebResource[] Subresources { [Export("subresources")] get { return (WebResource[])(__mt_Subresources_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubresourcesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubresourcesHandle)))); } } public virtual WebArchive[] SubframeArchives { [Export("subframeArchives")] get { return (WebArchive[])(__mt_SubframeArchives_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubframeArchivesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubframeArchivesHandle)))); } } public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebArchive() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebArchive(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebArchive(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebArchive(IntPtr handle) : base(handle) { } [Export("initWithMainResource:subresources:subframeArchives:")] public WebArchive(WebResource mainResource, NSArray subresources, NSArray subframeArchives) : base(NSObjectFlag.Empty) { if (mainResource == null) { throw new ArgumentNullException("mainResource"); } if (subresources == null) { throw new ArgumentNullException("subresources"); } if (subframeArchives == null) { throw new ArgumentNullException("subframeArchives"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithMainResourceSubresourcesSubframeArchives_Handle, mainResource.Handle, subresources.Handle, subframeArchives.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithMainResourceSubresourcesSubframeArchives_Handle, mainResource.Handle, subresources.Handle, subframeArchives.Handle); } } [Export("initWithData:")] public WebArchive(NSData data) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithData_Handle, data.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithData_Handle, data.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_MainResource_var = null; __mt_Subresources_var = null; __mt_SubframeArchives_var = null; __mt_Data_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebBackForwardList.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebBackForwardList", true)] public class WebBackForwardList : NSObject { private static readonly IntPtr selBackListCountHandle = Selector.GetHandle("backListCount"); private static readonly IntPtr selForwardListCountHandle = Selector.GetHandle("forwardListCount"); private static readonly IntPtr selCapacityHandle = Selector.GetHandle("capacity"); private static readonly IntPtr selSetCapacity_Handle = Selector.GetHandle("setCapacity:"); private static readonly IntPtr selAddItem_Handle = Selector.GetHandle("addItem:"); private static readonly IntPtr selGoBackHandle = Selector.GetHandle("goBack"); private static readonly IntPtr selGoForwardHandle = Selector.GetHandle("goForward"); private static readonly IntPtr selGoToItem_Handle = Selector.GetHandle("goToItem:"); private static readonly IntPtr selBackItemHandle = Selector.GetHandle("backItem"); private static readonly IntPtr selCurrentItemHandle = Selector.GetHandle("currentItem"); private static readonly IntPtr selForwardItemHandle = Selector.GetHandle("forwardItem"); private static readonly IntPtr selBackListWithLimit_Handle = Selector.GetHandle("backListWithLimit:"); private static readonly IntPtr selForwardListWithLimit_Handle = Selector.GetHandle("forwardListWithLimit:"); private static readonly IntPtr selContainsItem_Handle = Selector.GetHandle("containsItem:"); private static readonly IntPtr selItemAtIndex_Handle = Selector.GetHandle("itemAtIndex:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebBackForwardList"); public override IntPtr ClassHandle => class_ptr; public virtual int BackListCount { [Export("backListCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selBackListCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selBackListCountHandle); } } public virtual int ForwardListCount { [Export("forwardListCount")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selForwardListCountHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selForwardListCountHandle); } } public virtual int Capacity { [Export("capacity")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selCapacityHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selCapacityHandle); } [Export("setCapacity:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetCapacity_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetCapacity_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebBackForwardList() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebBackForwardList(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebBackForwardList(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebBackForwardList(IntPtr handle) : base(handle) { } [Export("addItem:")] public virtual void AddItem(WebHistoryItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddItem_Handle, item.Handle); } } [Export("goBack")] public virtual void GoBack() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGoBackHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGoBackHandle); } } [Export("goForward")] public virtual void GoForward() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selGoForwardHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selGoForwardHandle); } } [Export("goToItem:")] public virtual void GoToItem(WebHistoryItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selGoToItem_Handle, item.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToItem_Handle, item.Handle); } } [Export("backItem")] public virtual WebHistoryItem BackItem() { if (IsDirectBinding) { return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackItemHandle)); } return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackItemHandle)); } [Export("currentItem")] public virtual WebHistoryItem CurrentItem() { if (IsDirectBinding) { return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selCurrentItemHandle)); } return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCurrentItemHandle)); } [Export("forwardItem")] public virtual WebHistoryItem ForwardItem() { if (IsDirectBinding) { return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selForwardItemHandle)); } return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selForwardItemHandle)); } [Export("backListWithLimit:")] public virtual WebHistoryItem[] BackListWithLimit(int limit) { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_int(base.Handle, selBackListWithLimit_Handle, limit)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selBackListWithLimit_Handle, limit)); } [Export("forwardListWithLimit:")] public virtual WebHistoryItem[] ForwardListWithLimit(int limit) { if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_int(base.Handle, selForwardListWithLimit_Handle, limit)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selForwardListWithLimit_Handle, limit)); } [Export("containsItem:")] public virtual bool ContainsItem(WebHistoryItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selContainsItem_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selContainsItem_Handle, item.Handle); } [Export("itemAtIndex:")] public virtual WebHistoryItem ItemAtIndex(int index) { if (IsDirectBinding) { return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selItemAtIndex_Handle, index)); } return (WebHistoryItem)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selItemAtIndex_Handle, index)); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebCacheModel.cs ================================================ namespace WebKit; public enum WebCacheModel { DocumentViewer, DocumentBrowser, PrimaryWebBrowser } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDataSource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebDataSource", true)] public class WebDataSource : NSObject { private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selRepresentationHandle = Selector.GetHandle("representation"); private static readonly IntPtr selWebFrameHandle = Selector.GetHandle("webFrame"); private static readonly IntPtr selInitialRequestHandle = Selector.GetHandle("initialRequest"); private static readonly IntPtr selRequestHandle = Selector.GetHandle("request"); private static readonly IntPtr selResponseHandle = Selector.GetHandle("response"); private static readonly IntPtr selTextEncodingNameHandle = Selector.GetHandle("textEncodingName"); private static readonly IntPtr selIsLoadingHandle = Selector.GetHandle("isLoading"); private static readonly IntPtr selPageTitleHandle = Selector.GetHandle("pageTitle"); private static readonly IntPtr selUnreachableURLHandle = Selector.GetHandle("unreachableURL"); private static readonly IntPtr selWebArchiveHandle = Selector.GetHandle("webArchive"); private static readonly IntPtr selMainResourceHandle = Selector.GetHandle("mainResource"); private static readonly IntPtr selSubresourcesHandle = Selector.GetHandle("subresources"); private static readonly IntPtr selInitWithRequest_Handle = Selector.GetHandle("initWithRequest:"); private static readonly IntPtr selSubresourceForURL_Handle = Selector.GetHandle("subresourceForURL:"); private static readonly IntPtr selAddSubresource_Handle = Selector.GetHandle("addSubresource:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebDataSource"); private object __mt_Data_var; private object __mt_Representation_var; private object __mt_WebFrame_var; private object __mt_InitialRequest_var; private object __mt_Request_var; private object __mt_Response_var; private object __mt_UnreachableURL_var; private object __mt_WebArchive_var; private object __mt_MainResource_var; private object __mt_Subresources_var; public override IntPtr ClassHandle => class_ptr; public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public virtual WebDocumentRepresentation Representation { [Export("representation")] get { return (WebDocumentRepresentation)(__mt_Representation_var = ((!IsDirectBinding) ? ((WebDocumentRepresentation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRepresentationHandle))) : ((WebDocumentRepresentation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRepresentationHandle))))); } } public virtual WebFrame WebFrame { [Export("webFrame")] get { return (WebFrame)(__mt_WebFrame_var = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWebFrameHandle))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWebFrameHandle))))); } } public virtual NSUrlRequest InitialRequest { [Export("initialRequest")] get { return (NSUrlRequest)(__mt_InitialRequest_var = ((!IsDirectBinding) ? ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selInitialRequestHandle))) : ((NSUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selInitialRequestHandle))))); } } public virtual NSMutableUrlRequest Request { [Export("request")] get { return (NSMutableUrlRequest)(__mt_Request_var = ((!IsDirectBinding) ? ((NSMutableUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selRequestHandle))) : ((NSMutableUrlRequest)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selRequestHandle))))); } } public virtual NSUrlResponse Response { [Export("response")] get { return (NSUrlResponse)(__mt_Response_var = ((!IsDirectBinding) ? ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResponseHandle))) : ((NSUrlResponse)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selResponseHandle))))); } } public virtual string TextEncodingName { [Export("textEncodingName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextEncodingNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextEncodingNameHandle)); } } public virtual bool IsLoading { [Export("isLoading")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLoadingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLoadingHandle); } } public virtual string PageTitle { [Export("pageTitle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPageTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPageTitleHandle)); } } public virtual NSUrl UnreachableURL { [Export("unreachableURL")] get { return (NSUrl)(__mt_UnreachableURL_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUnreachableURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUnreachableURLHandle))))); } } public virtual WebArchive WebArchive { [Export("webArchive")] get { return (WebArchive)(__mt_WebArchive_var = ((!IsDirectBinding) ? ((WebArchive)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWebArchiveHandle))) : ((WebArchive)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWebArchiveHandle))))); } } public virtual WebResource MainResource { [Export("mainResource")] get { return (WebResource)(__mt_MainResource_var = ((!IsDirectBinding) ? ((WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainResourceHandle))) : ((WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainResourceHandle))))); } } public virtual WebResource[] Subresources { [Export("subresources")] get { return (WebResource[])(__mt_Subresources_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSubresourcesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSubresourcesHandle)))); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebDataSource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebDataSource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDataSource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDataSource(IntPtr handle) : base(handle) { } [Export("initWithRequest:")] public WebDataSource(NSUrlRequest request) : base(NSObjectFlag.Empty) { if (request == null) { throw new ArgumentNullException("request"); } if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithRequest_Handle, request.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithRequest_Handle, request.Handle); } } [Export("subresourceForURL:")] public virtual WebResource SubresourceForUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return (WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selSubresourceForURL_Handle, url.Handle)); } return (WebResource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selSubresourceForURL_Handle, url.Handle)); } [Export("addSubresource:")] public virtual void AddSubresource(WebResource subresource) { if (subresource == null) { throw new ArgumentNullException("subresource"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAddSubresource_Handle, subresource.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAddSubresource_Handle, subresource.Handle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Data_var = null; __mt_Representation_var = null; __mt_WebFrame_var = null; __mt_InitialRequest_var = null; __mt_Request_var = null; __mt_Response_var = null; __mt_UnreachableURL_var = null; __mt_WebArchive_var = null; __mt_MainResource_var = null; __mt_Subresources_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDocumentRepresentation.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebDocumentRepresentation", true)] [Model] public abstract class WebDocumentRepresentation : NSObject { public abstract bool CanProvideDocumentSource { [Export("canProvideDocumentSource")] get; } public abstract string DocumentSource { [Export("documentSource")] get; } public abstract string Title { [Export("title")] get; } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebDocumentRepresentation() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebDocumentRepresentation(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDocumentRepresentation(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDocumentRepresentation(IntPtr handle) : base(handle) { } [Export("setDataSource:")] public abstract void SetDataSource(WebDataSource dataSource); [Export("receivedData:withDataSource:")] public abstract void ReceivedData(NSData data, WebDataSource dataSource); [Export("receivedError:withDataSource:")] public abstract void ReceivedError(NSError error, WebDataSource dataSource); [Export("finishedLoadingWithDataSource:")] public abstract void FinishedLoading(WebDataSource dataSource); } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDocumentRepresentationWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebDocumentRepresentationWrapper : BaseWrapper, IWebDocumentRepresentation { public bool CanProvideDocumentSource { [Export("canProvideDocumentSource")] get { return Messaging.bool_objc_msgSend(base.Handle, Selector.GetHandle("canProvideDocumentSource")); } } public string DocumentSource { [Export("documentSource")] get { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, Selector.GetHandle("documentSource"))); } } public string Title { [Export("title")] get { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, Selector.GetHandle("title"))); } } [Preserve(Conditional = false)] public WebDocumentRepresentationWrapper(IntPtr handle) : base(handle, false) { } [Preserve(Conditional = true)] public WebDocumentRepresentationWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Export("setDataSource:")] public void SetDataSource(WebDataSource dataSource) { if (dataSource == null) { throw new ArgumentNullException("dataSource"); } Messaging.void_objc_msgSend_IntPtr(base.Handle, Selector.GetHandle("setDataSource:"), dataSource.Handle); } [Export("receivedData:withDataSource:")] public void ReceivedData(NSData data, WebDataSource dataSource) { if (data == null) { throw new ArgumentNullException("data"); } if (dataSource == null) { throw new ArgumentNullException("dataSource"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("receivedData:withDataSource:"), data.Handle, dataSource.Handle); } [Export("receivedError:withDataSource:")] public void ReceivedError(NSError error, WebDataSource dataSource) { if (error == null) { throw new ArgumentNullException("error"); } if (dataSource == null) { throw new ArgumentNullException("dataSource"); } Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, Selector.GetHandle("receivedError:withDataSource:"), error.Handle, dataSource.Handle); } [Export("finishedLoadingWithDataSource:")] public void FinishedLoading(WebDataSource dataSource) { if (dataSource == null) { throw new ArgumentNullException("dataSource"); } Messaging.void_objc_msgSend_IntPtr(base.Handle, Selector.GetHandle("finishedLoadingWithDataSource:"), dataSource.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDownload.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebDownload", true)] public class WebDownload : NSUrlDownload { private static readonly IntPtr class_ptr = Class.GetHandle("WebDownload"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebDownload() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebDownload(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDownload(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDownload(IntPtr handle) : base(handle) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDownloadDelegate.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebDownloadDelegate", true)] [Model] public class WebDownloadDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebDownloadDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebDownloadDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDownloadDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebDownloadDelegate(IntPtr handle) : base(handle) { } [Export("downloadWindowForAuthenticationSheet:")] public virtual NSWindow OnDownloadWindowForSheet(WebDownload download) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDownloadDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebDownloadDelegateWrapper : BaseWrapper, IWebDownloadDelegate { [Preserve(Conditional = true)] public WebDownloadDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebDownloadDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDownloadRequest.cs ================================================ using AppKit; namespace WebKit; public delegate NSWindow WebDownloadRequest(WebDownload download); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDragDestinationAction.cs ================================================ using System; namespace WebKit; [Flags] public enum WebDragDestinationAction : uint { None = 0u, DHTML = 1u, Image = 2u, Link = 4u, Selection = 8u, Any = uint.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebDragSourceAction.cs ================================================ using System; namespace WebKit; [Flags] public enum WebDragSourceAction : uint { None = 0u, DHTML = 1u, Image = 2u, Link = 4u, Selection = 8u, Any = uint.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFailureToImplementPolicyEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebFailureToImplementPolicyEventArgs : EventArgs { public NSError Error { get; set; } public WebFrame Frame { get; set; } public WebFailureToImplementPolicyEventArgs(NSError error, WebFrame frame) { Error = error; Frame = frame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrame.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebFrame", true)] public class WebFrame : NSObject { private static readonly IntPtr selNameHandle = Selector.GetHandle("name"); private static readonly IntPtr selWebViewHandle = Selector.GetHandle("webView"); private static readonly IntPtr selFrameViewHandle = Selector.GetHandle("frameView"); private static readonly IntPtr selDOMDocumentHandle = Selector.GetHandle("DOMDocument"); private static readonly IntPtr selFrameElementHandle = Selector.GetHandle("frameElement"); private static readonly IntPtr selDataSourceHandle = Selector.GetHandle("dataSource"); private static readonly IntPtr selProvisionalDataSourceHandle = Selector.GetHandle("provisionalDataSource"); private static readonly IntPtr selParentFrameHandle = Selector.GetHandle("parentFrame"); private static readonly IntPtr selChildFramesHandle = Selector.GetHandle("childFrames"); private static readonly IntPtr selWindowObjectHandle = Selector.GetHandle("windowObject"); private static readonly IntPtr selGlobalContextHandle = Selector.GetHandle("globalContext"); private static readonly IntPtr selInitWithNameWebFrameViewWebView_Handle = Selector.GetHandle("initWithName:webFrameView:webView:"); private static readonly IntPtr selLoadRequest_Handle = Selector.GetHandle("loadRequest:"); private static readonly IntPtr selLoadDataMIMETypeTextEncodingNameBaseURL_Handle = Selector.GetHandle("loadData:MIMEType:textEncodingName:baseURL:"); private static readonly IntPtr selLoadHTMLStringBaseURL_Handle = Selector.GetHandle("loadHTMLString:baseURL:"); private static readonly IntPtr selLoadAlternateHTMLStringBaseURLForUnreachableURL_Handle = Selector.GetHandle("loadAlternateHTMLString:baseURL:forUnreachableURL:"); private static readonly IntPtr selLoadArchive_Handle = Selector.GetHandle("loadArchive:"); private static readonly IntPtr selStopLoadingHandle = Selector.GetHandle("stopLoading"); private static readonly IntPtr selReloadHandle = Selector.GetHandle("reload"); private static readonly IntPtr selReloadFromOriginHandle = Selector.GetHandle("reloadFromOrigin"); private static readonly IntPtr selFindFrameNamed_Handle = Selector.GetHandle("findFrameNamed:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebFrame"); private object __mt_WebView_var; private object __mt_FrameView_var; private object __mt_DomDocument_var; private object __mt_FrameElement_var; private object __mt_DataSource_var; private object __mt_ProvisionalDataSource_var; private object __mt_ParentFrame_var; private object __mt_ChildFrames_var; private object __mt_WindowObject_var; public override IntPtr ClassHandle => class_ptr; public virtual string Name { [Export("name")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selNameHandle)); } } public virtual WebView WebView { [Export("webView")] get { return (WebView)(__mt_WebView_var = ((!IsDirectBinding) ? ((WebView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWebViewHandle))) : ((WebView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWebViewHandle))))); } } public virtual WebFrameView FrameView { [Export("frameView")] get { return (WebFrameView)(__mt_FrameView_var = ((!IsDirectBinding) ? ((WebFrameView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrameViewHandle))) : ((WebFrameView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFrameViewHandle))))); } } public virtual DomDocument DomDocument { [Export("DOMDocument")] get { return (DomDocument)(__mt_DomDocument_var = ((!IsDirectBinding) ? ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDOMDocumentHandle))) : ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDOMDocumentHandle))))); } } public virtual DomHtmlElement FrameElement { [Export("frameElement")] get { return (DomHtmlElement)(__mt_FrameElement_var = ((!IsDirectBinding) ? ((DomHtmlElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrameElementHandle))) : ((DomHtmlElement)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFrameElementHandle))))); } } public virtual WebDataSource DataSource { [Export("dataSource")] get { return (WebDataSource)(__mt_DataSource_var = ((!IsDirectBinding) ? ((WebDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataSourceHandle))) : ((WebDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataSourceHandle))))); } } public virtual WebDataSource ProvisionalDataSource { [Export("provisionalDataSource")] get { return (WebDataSource)(__mt_ProvisionalDataSource_var = ((!IsDirectBinding) ? ((WebDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selProvisionalDataSourceHandle))) : ((WebDataSource)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selProvisionalDataSourceHandle))))); } } public virtual WebFrame ParentFrame { [Export("parentFrame")] get { return (WebFrame)(__mt_ParentFrame_var = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selParentFrameHandle))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selParentFrameHandle))))); } } public virtual WebFrame[] ChildFrames { [Export("childFrames")] get { return (WebFrame[])(__mt_ChildFrames_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selChildFramesHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selChildFramesHandle)))); } } public virtual WebScriptObject WindowObject { [Export("windowObject")] get { return (WebScriptObject)(__mt_WindowObject_var = ((!IsDirectBinding) ? ((WebScriptObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowObjectHandle))) : ((WebScriptObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowObjectHandle))))); } } public virtual IntPtr GlobalContext { [Export("globalContext")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selGlobalContextHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGlobalContextHandle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebFrame(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrame(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrame(IntPtr handle) : base(handle) { } [Export("initWithName:webFrameView:webView:")] public WebFrame(string name, WebFrameView view, WebView webView) : base(NSObjectFlag.Empty) { if (name == null) { throw new ArgumentNullException("name"); } if (view == null) { throw new ArgumentNullException("view"); } if (webView == null) { throw new ArgumentNullException("webView"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithNameWebFrameViewWebView_Handle, arg, view.Handle, webView.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithNameWebFrameViewWebView_Handle, arg, view.Handle, webView.Handle); } NSString.ReleaseNative(arg); } [Export("loadRequest:")] public virtual void LoadRequest(NSUrlRequest request) { if (request == null) { throw new ArgumentNullException("request"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selLoadRequest_Handle, request.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selLoadRequest_Handle, request.Handle); } } [Export("loadData:MIMEType:textEncodingName:baseURL:")] public virtual void LoadData(NSData data, string mimeType, string textDncodingName, NSUrl baseUrl) { if (data == null) { throw new ArgumentNullException("data"); } if (mimeType == null) { throw new ArgumentNullException("mimeType"); } if (textDncodingName == null) { throw new ArgumentNullException("textDncodingName"); } if (baseUrl == null) { throw new ArgumentNullException("baseUrl"); } IntPtr arg = NSString.CreateNative(mimeType); IntPtr arg2 = NSString.CreateNative(textDncodingName); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selLoadDataMIMETypeTextEncodingNameBaseURL_Handle, data.Handle, arg, arg2, baseUrl.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selLoadDataMIMETypeTextEncodingNameBaseURL_Handle, data.Handle, arg, arg2, baseUrl.Handle); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("loadHTMLString:baseURL:")] public virtual void LoadHtmlString(NSString htmlString, NSUrl? baseUrl) { if (htmlString == null) { throw new ArgumentNullException("htmlString"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selLoadHTMLStringBaseURL_Handle, htmlString.Handle, baseUrl?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selLoadHTMLStringBaseURL_Handle, htmlString.Handle, baseUrl?.Handle ?? IntPtr.Zero); } } [Export("loadAlternateHTMLString:baseURL:forUnreachableURL:")] public virtual void LoadAlternateHtmlString(string htmlString, NSUrl baseURL, NSUrl forUnreachableURL) { if (htmlString == null) { throw new ArgumentNullException("htmlString"); } if (baseURL == null) { throw new ArgumentNullException("baseURL"); } if (forUnreachableURL == null) { throw new ArgumentNullException("forUnreachableURL"); } IntPtr arg = NSString.CreateNative(htmlString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selLoadAlternateHTMLStringBaseURLForUnreachableURL_Handle, arg, baseURL.Handle, forUnreachableURL.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selLoadAlternateHTMLStringBaseURLForUnreachableURL_Handle, arg, baseURL.Handle, forUnreachableURL.Handle); } NSString.ReleaseNative(arg); } [Export("loadArchive:")] public virtual void LoadArchive(WebArchive archive) { if (archive == null) { throw new ArgumentNullException("archive"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selLoadArchive_Handle, archive.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selLoadArchive_Handle, archive.Handle); } } [Export("stopLoading")] public virtual void StopLoading() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selStopLoadingHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selStopLoadingHandle); } } [Export("reload")] public virtual void Reload() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadHandle); } } [Export("reloadFromOrigin")] public virtual void ReloadFromOrigin() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selReloadFromOriginHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selReloadFromOriginHandle); } } [Export("findFrameNamed:")] public virtual WebFrame FindFrameNamed(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); WebFrame result = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selFindFrameNamed_Handle, arg))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selFindFrameNamed_Handle, arg)))); NSString.ReleaseNative(arg); return result; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WebView_var = null; __mt_FrameView_var = null; __mt_DomDocument_var = null; __mt_FrameElement_var = null; __mt_DataSource_var = null; __mt_ProvisionalDataSource_var = null; __mt_ParentFrame_var = null; __mt_ChildFrames_var = null; __mt_WindowObject_var = null; } } public void LoadHtmlString(string htmlString, NSUrl? baseUrl) { LoadHtmlString((NSString)htmlString, baseUrl); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameClientRedirectEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebFrameClientRedirectEventArgs : EventArgs { public NSUrl ToUrl { get; set; } public double SecondsDelay { get; set; } public NSDate FireDate { get; set; } public WebFrame ForFrame { get; set; } public WebFrameClientRedirectEventArgs(NSUrl toUrl, double secondsDelay, NSDate fireDate, WebFrame forFrame) { ToUrl = toUrl; SecondsDelay = secondsDelay; FireDate = fireDate; ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameErrorEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebFrameErrorEventArgs : EventArgs { public NSError Error { get; set; } public WebFrame ForFrame { get; set; } public WebFrameErrorEventArgs(NSError error, WebFrame forFrame) { Error = error; ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameEventArgs.cs ================================================ using System; namespace WebKit; public class WebFrameEventArgs : EventArgs { public WebFrame ForFrame { get; set; } public WebFrameEventArgs(WebFrame forFrame) { ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameImageEventArgs.cs ================================================ using System; using AppKit; namespace WebKit; public class WebFrameImageEventArgs : EventArgs { public NSImage Image { get; set; } public WebFrame ForFrame { get; set; } public WebFrameImageEventArgs(NSImage image, WebFrame forFrame) { Image = image; ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameLoadDelegate.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebFrameLoadDelegate", true)] [Model] public class WebFrameLoadDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebFrameLoadDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebFrameLoadDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrameLoadDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrameLoadDelegate(IntPtr handle) : base(handle) { } [Export("webView:didStartProvisionalLoadForFrame:")] public virtual void StartedProvisionalLoad(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didReceiveServerRedirectForProvisionalLoadForFrame:")] public virtual void ReceivedServerRedirectForProvisionalLoad(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFailProvisionalLoadWithError:forFrame:")] public virtual void FailedProvisionalLoad(WebView sender, NSError error, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didCommitLoadForFrame:")] public virtual void CommitedLoad(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didReceiveTitle:forFrame:")] public virtual void ReceivedTitle(WebView sender, string title, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didReceiveIcon:forFrame:")] public virtual void ReceivedIcon(WebView sender, NSImage image, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFinishLoadForFrame:")] public virtual void FinishedLoad(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didFailLoadWithError:forFrame:")] public virtual void FailedLoadWithError(WebView sender, NSError error, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didChangeLocationWithinPageForFrame:")] public virtual void ChangedLocationWithinPage(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:")] public virtual void WillPerformClientRedirect(WebView sender, NSUrl toUrl, double secondsDelay, NSDate fireDate, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didCancelClientRedirectForFrame:")] public virtual void CanceledClientRedirect(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:willCloseFrame:")] public virtual void WillCloseFrame(WebView sender, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:didClearWindowObject:forFrame:")] public virtual void ClearedWindowObject(WebView webView, WebScriptObject windowObject, WebFrame forFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:windowScriptObjectAvailable:")] public virtual void WindowScriptObjectAvailable(WebView webView, WebScriptObject windowScriptObject) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameLoadDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebFrameLoadDelegateWrapper : BaseWrapper, IWebFrameLoadDelegate, INativeObject, IDisposable { [Preserve(Conditional = true)] public WebFrameLoadDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebFrameLoadDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameScriptFrameEventArgs.cs ================================================ using System; namespace WebKit; public class WebFrameScriptFrameEventArgs : EventArgs { public WebScriptObject WindowObject { get; set; } public WebFrame ForFrame { get; set; } public WebFrameScriptFrameEventArgs(WebScriptObject windowObject, WebFrame forFrame) { WindowObject = windowObject; ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameScriptObjectEventArgs.cs ================================================ using System; namespace WebKit; public class WebFrameScriptObjectEventArgs : EventArgs { public WebScriptObject WindowScriptObject { get; set; } public WebFrameScriptObjectEventArgs(WebScriptObject windowScriptObject) { WindowScriptObject = windowScriptObject; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameTitleEventArgs.cs ================================================ using System; namespace WebKit; public class WebFrameTitleEventArgs : EventArgs { public string Title { get; set; } public WebFrame ForFrame { get; set; } public WebFrameTitleEventArgs(string title, WebFrame forFrame) { Title = title; ForFrame = forFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebFrameView.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebFrameView", true)] public class WebFrameView : NSView { private static readonly IntPtr selWebFrameHandle = Selector.GetHandle("webFrame"); private static readonly IntPtr selDocumentViewHandle = Selector.GetHandle("documentView"); private static readonly IntPtr selCanPrintHeadersAndFootersHandle = Selector.GetHandle("canPrintHeadersAndFooters"); private static readonly IntPtr selDocumentViewShouldHandlePrintHandle = Selector.GetHandle("documentViewShouldHandlePrint"); private static readonly IntPtr selAllowsScrollingHandle = Selector.GetHandle("allowsScrolling"); private static readonly IntPtr selSetAllowsScrolling_Handle = Selector.GetHandle("setAllowsScrolling:"); private static readonly IntPtr selPrintOperationWithPrintInfo_Handle = Selector.GetHandle("printOperationWithPrintInfo:"); private static readonly IntPtr selPrintDocumentViewHandle = Selector.GetHandle("printDocumentView"); private static readonly IntPtr class_ptr = Class.GetHandle("WebFrameView"); private object __mt_WebFrame_var; private object __mt_DocumentView_var; public override IntPtr ClassHandle => class_ptr; public virtual WebFrame WebFrame { [Export("webFrame")] get { return (WebFrame)(__mt_WebFrame_var = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWebFrameHandle))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWebFrameHandle))))); } } public virtual NSView DocumentView { [Export("documentView")] get { return (NSView)(__mt_DocumentView_var = ((!IsDirectBinding) ? ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDocumentViewHandle))) : ((NSView)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDocumentViewHandle))))); } } public virtual bool CanPrintHeadersAndFooters { [Export("canPrintHeadersAndFooters")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanPrintHeadersAndFootersHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanPrintHeadersAndFootersHandle); } } public virtual bool DocumentViewShouldHandlePrint { [Export("documentViewShouldHandlePrint")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDocumentViewShouldHandlePrintHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDocumentViewShouldHandlePrintHandle); } } public virtual bool AllowsScrolling { [Export("allowsScrolling")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsScrollingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsScrollingHandle); } [Export("setAllowsScrolling:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsScrolling_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsScrolling_Handle, value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebFrameView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebFrameView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrameView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebFrameView(IntPtr handle) : base(handle) { } [Export("printOperationWithPrintInfo:")] public virtual NSPrintOperation GetPrintOperation(NSPrintInfo printInfo) { if (printInfo == null) { throw new ArgumentNullException("printInfo"); } if (IsDirectBinding) { return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPrintOperationWithPrintInfo_Handle, printInfo.Handle)); } return (NSPrintOperation)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPrintOperationWithPrintInfo_Handle, printInfo.Handle)); } [Export("printDocumentView")] public virtual void PrintDocumentView() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selPrintDocumentViewHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selPrintDocumentViewHandle); } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_WebFrame_var = null; __mt_DocumentView_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebHistoryItem.cs ================================================ using System; using System.ComponentModel; using AppKit; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebHistoryItem", true)] public class WebHistoryItem : NSObject { public static class Notifications { public static NSObject ObserveChanged(EventHandler handler) { return NSNotificationCenter.DefaultCenter.AddObserver(ChangedNotification, delegate(NSNotification notification) { handler(null, new NSNotificationEventArgs(notification)); }); } } private static readonly IntPtr selOriginalURLStringHandle = Selector.GetHandle("originalURLString"); private static readonly IntPtr selURLStringHandle = Selector.GetHandle("URLString"); private static readonly IntPtr selTitleHandle = Selector.GetHandle("title"); private static readonly IntPtr selLastVisitedTimeIntervalHandle = Selector.GetHandle("lastVisitedTimeInterval"); private static readonly IntPtr selIconHandle = Selector.GetHandle("icon"); private static readonly IntPtr selAlternateTitleHandle = Selector.GetHandle("alternateTitle"); private static readonly IntPtr selSetAlternateTitle_Handle = Selector.GetHandle("setAlternateTitle:"); private static readonly IntPtr selInitWithURLStringTitleLastVisitedTimeInterval_Handle = Selector.GetHandle("initWithURLString:title:lastVisitedTimeInterval:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebHistoryItem"); private object __mt_Icon_var; private static NSString _ChangedNotification; public override IntPtr ClassHandle => class_ptr; public virtual string OriginalUrlString { [Export("originalURLString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selOriginalURLStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selOriginalURLStringHandle)); } } public virtual string UrlString { [Export("URLString")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selURLStringHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLStringHandle)); } } public virtual string Title { [Export("title")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTitleHandle)); } } public virtual double LastVisitedTimeInterval { [Export("lastVisitedTimeInterval")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selLastVisitedTimeIntervalHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selLastVisitedTimeIntervalHandle); } } public virtual NSImage Icon { [Export("icon")] get { return (NSImage)(__mt_Icon_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIconHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selIconHandle))))); } } public virtual string AlternateTitle { [Export("alternateTitle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selAlternateTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selAlternateTitleHandle)); } [Export("setAlternateTitle:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetAlternateTitle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetAlternateTitle_Handle, arg); } NSString.ReleaseNative(arg); } } [Field("WebHistoryItemChangedNotification", "WebKit")] public static NSString ChangedNotification { get { if (_ChangedNotification == null) { _ChangedNotification = Dlfcn.GetStringConstant(Libraries.WebKit.Handle, "WebHistoryItemChangedNotification"); } return _ChangedNotification; } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebHistoryItem() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebHistoryItem(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebHistoryItem(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebHistoryItem(IntPtr handle) : base(handle) { } [Export("initWithURLString:title:lastVisitedTimeInterval:")] public WebHistoryItem(string urlString, string title, double lastVisitedTimeInterval) : base(NSObjectFlag.Empty) { if (urlString == null) { throw new ArgumentNullException("urlString"); } if (title == null) { throw new ArgumentNullException("title"); } IntPtr arg = NSString.CreateNative(urlString); IntPtr arg2 = NSString.CreateNative(title); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Double(base.Handle, selInitWithURLStringTitleLastVisitedTimeInterval_Handle, arg, arg2, lastVisitedTimeInterval); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_Double(base.SuperHandle, selInitWithURLStringTitleLastVisitedTimeInterval_Handle, arg, arg2, lastVisitedTimeInterval); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Icon_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebMimeTypePolicyEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebMimeTypePolicyEventArgs : EventArgs { public string MimeType { get; set; } public NSUrlRequest Request { get; set; } public WebFrame Frame { get; set; } public NSObject DecisionToken { get; set; } public WebMimeTypePolicyEventArgs(string mimeType, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { MimeType = mimeType; Request = request; Frame = frame; DecisionToken = decisionToken; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebNavigationPolicyEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebNavigationPolicyEventArgs : EventArgs { public NSDictionary ActionInformation { get; set; } public NSUrlRequest Request { get; set; } public WebFrame Frame { get; set; } public NSObject DecisionToken { get; set; } public WebNavigationPolicyEventArgs(NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { ActionInformation = actionInformation; Request = request; Frame = frame; DecisionToken = decisionToken; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebNavigationType.cs ================================================ namespace WebKit; public enum WebNavigationType { LinkClicked, FormSubmitted, BackForward, Reload, FormResubmitted, Other } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebNewWindowPolicyEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebNewWindowPolicyEventArgs : EventArgs { public NSDictionary ActionInformation { get; set; } public NSUrlRequest Request { get; set; } public string NewFrameName { get; set; } public NSObject DecisionToken { get; set; } public WebNewWindowPolicyEventArgs(NSDictionary actionInformation, NSUrlRequest request, string newFrameName, NSObject decisionToken) { ActionInformation = actionInformation; Request = request; NewFrameName = newFrameName; DecisionToken = decisionToken; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebOpenPanelResultListener.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebOpenPanelResultListener", true)] public class WebOpenPanelResultListener : NSObject { private static readonly IntPtr selChooseFilename_Handle = Selector.GetHandle("chooseFilename:"); private static readonly IntPtr selChooseFilenames_Handle = Selector.GetHandle("chooseFilenames:"); private static readonly IntPtr selCancelHandle = Selector.GetHandle("cancel"); private static readonly IntPtr class_ptr = Class.GetHandle("WebOpenPanelResultListener"); public override IntPtr ClassHandle => class_ptr; [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebOpenPanelResultListener() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebOpenPanelResultListener(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebOpenPanelResultListener(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebOpenPanelResultListener(IntPtr handle) : base(handle) { } [Export("chooseFilename:")] public virtual void ChooseFilename(string filename) { if (filename == null) { throw new ArgumentNullException("filename"); } IntPtr arg = NSString.CreateNative(filename); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChooseFilename_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChooseFilename_Handle, arg); } NSString.ReleaseNative(arg); } [Export("chooseFilenames:")] public virtual void ChooseFilenames(string[] filenames) { if (filenames == null) { throw new ArgumentNullException("filenames"); } NSArray nSArray = NSArray.FromStrings(filenames); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChooseFilenames_Handle, nSArray.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChooseFilenames_Handle, nSArray.Handle); } nSArray.Dispose(); } [Export("cancel")] public virtual void Cancel() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCancelHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCancelHandle); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebOpenPanelResultListenerWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebOpenPanelResultListenerWrapper : BaseWrapper, IWebOpenPanelResultListener, INativeObject, IDisposable { [Preserve(Conditional = true)] public WebOpenPanelResultListenerWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebOpenPanelResultListenerWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebOpenPanelResultListener_Extensions.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; public static class WebOpenPanelResultListener_Extensions { public static void ChooseFilename(this IWebOpenPanelResultListener This, string filename) { if (filename == null) { throw new ArgumentNullException("filename"); } IntPtr intPtr = NSString.CreateNative(filename); Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("chooseFilename:"), intPtr); NSString.ReleaseNative(intPtr); } public static void ChooseFilenames(this IWebOpenPanelResultListener This, string[] filenames) { if (filenames == null) { throw new ArgumentNullException("filenames"); } NSArray nSArray = NSArray.FromStrings(filenames); Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("chooseFilenames:"), nSArray.Handle); nSArray.Dispose(); } public static void Cancel(this IWebOpenPanelResultListener This) { Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("cancel")); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPolicyDecisionListener.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebPolicyDecisionListener", true)] [Model] public class WebPolicyDecisionListener : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebPolicyDecisionListener() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebPolicyDecisionListener(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPolicyDecisionListener(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPolicyDecisionListener(IntPtr handle) : base(handle) { } [Export("use")] public virtual void Use() { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("download")] public virtual void Download() { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("ignore")] public virtual void Ignore() { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPolicyDecisionListenerWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebPolicyDecisionListenerWrapper : BaseWrapper, IWebPolicyDecisionListener, INativeObject, IDisposable { [Preserve(Conditional = true)] public WebPolicyDecisionListenerWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebPolicyDecisionListenerWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPolicyDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebPolicyDelegate", true)] [Model] public class WebPolicyDelegate : NSObject { private static IntPtr selUse = Selector.GetHandle("use"); private static IntPtr selDownload = Selector.GetHandle("download"); private static IntPtr selIgnore = Selector.GetHandle("ignore"); public static void DecideUse(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("token"); } Messaging.void_objc_msgSend(decisionToken.Handle, selUse); } public static void DecideDownload(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } Messaging.void_objc_msgSend(decisionToken.Handle, selDownload); } public static void DecideIgnore(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } Messaging.void_objc_msgSend(decisionToken.Handle, selIgnore); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebPolicyDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebPolicyDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPolicyDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPolicyDelegate(IntPtr handle) : base(handle) { } [Export("webView:decidePolicyForNavigationAction:request:frame:decisionListener:")] public virtual void DecidePolicyForNavigation(WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:")] public virtual void DecidePolicyForNewWindow(WebView webView, NSDictionary actionInformation, NSUrlRequest request, string newFrameName, NSObject decisionToken) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:decidePolicyForMIMEType:request:frame:")] public virtual void DecidePolicyForMimeType(WebView webView, string mimeType, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:unableToImplementPolicyWithError:frame::")] public virtual void UnableToImplementPolicy(WebView webView, NSError error, WebFrame frame) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPolicyDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebPolicyDelegateWrapper : BaseWrapper, IWebPolicyDelegate, INativeObject, IDisposable { [Preserve(Conditional = true)] public WebPolicyDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebPolicyDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPolicyDelegate_Extensions.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; public static class WebPolicyDelegate_Extensions { public static void DecidePolicyForNavigation(this IWebPolicyDelegate This, WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { if (webView == null) { throw new ArgumentNullException("webView"); } if (actionInformation == null) { throw new ArgumentNullException("actionInformation"); } if (request == null) { throw new ArgumentNullException("request"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForNavigationAction:request:frame:decisionListener:"), webView.Handle, actionInformation.Handle, request.Handle, frame.Handle, decisionToken.Handle); } public static void DecidePolicyForNewWindow(this IWebPolicyDelegate This, WebView webView, NSDictionary actionInformation, NSUrlRequest request, string newFrameName, NSObject decisionToken) { if (webView == null) { throw new ArgumentNullException("webView"); } if (actionInformation == null) { throw new ArgumentNullException("actionInformation"); } if (request == null) { throw new ArgumentNullException("request"); } if (newFrameName == null) { throw new ArgumentNullException("newFrameName"); } if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } IntPtr intPtr = NSString.CreateNative(newFrameName); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:"), webView.Handle, actionInformation.Handle, request.Handle, intPtr, decisionToken.Handle); NSString.ReleaseNative(intPtr); } public static void DecidePolicyForMimeType(this IWebPolicyDelegate This, WebView webView, string mimeType, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { if (webView == null) { throw new ArgumentNullException("webView"); } if (mimeType == null) { throw new ArgumentNullException("mimeType"); } if (request == null) { throw new ArgumentNullException("request"); } if (frame == null) { throw new ArgumentNullException("frame"); } if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } IntPtr intPtr = NSString.CreateNative(mimeType); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:decidePolicyForMIMEType:request:frame:decisionListener:"), webView.Handle, intPtr, request.Handle, frame.Handle, decisionToken.Handle); NSString.ReleaseNative(intPtr); } public static void UnableToImplementPolicy(this IWebPolicyDelegate This, WebView webView, NSError error, WebFrame frame) { if (webView == null) { throw new ArgumentNullException("webView"); } if (error == null) { throw new ArgumentNullException("error"); } if (frame == null) { throw new ArgumentNullException("frame"); } Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("webView:unableToImplementPolicyWithError:frame:"), webView.Handle, error.Handle, frame.Handle); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebPreferences.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebPreferences", true)] public class WebPreferences : NSObject { private static readonly IntPtr selStandardPreferencesHandle = Selector.GetHandle("standardPreferences"); private static readonly IntPtr selIdentifierHandle = Selector.GetHandle("identifier"); private static readonly IntPtr selArePlugInsEnabledHandle = Selector.GetHandle("arePlugInsEnabled"); private static readonly IntPtr selSetPlugInsEnabled_Handle = Selector.GetHandle("setPlugInsEnabled:"); private static readonly IntPtr selStandardFontFamilyHandle = Selector.GetHandle("standardFontFamily"); private static readonly IntPtr selSetStandardFontFamily_Handle = Selector.GetHandle("setStandardFontFamily:"); private static readonly IntPtr selFixedFontFamilyHandle = Selector.GetHandle("fixedFontFamily"); private static readonly IntPtr selSetFixedFontFamily_Handle = Selector.GetHandle("setFixedFontFamily:"); private static readonly IntPtr selSerifFontFamilyHandle = Selector.GetHandle("serifFontFamily"); private static readonly IntPtr selSetSerifFontFamily_Handle = Selector.GetHandle("setSerifFontFamily:"); private static readonly IntPtr selSansSerifFontFamilyHandle = Selector.GetHandle("sansSerifFontFamily"); private static readonly IntPtr selSetSansSerifFontFamily_Handle = Selector.GetHandle("setSansSerifFontFamily:"); private static readonly IntPtr selCursiveFontFamilyHandle = Selector.GetHandle("cursiveFontFamily"); private static readonly IntPtr selSetCursiveFontFamily_Handle = Selector.GetHandle("setCursiveFontFamily:"); private static readonly IntPtr selFantasyFontFamilyHandle = Selector.GetHandle("fantasyFontFamily"); private static readonly IntPtr selSetFantasyFontFamily_Handle = Selector.GetHandle("setFantasyFontFamily:"); private static readonly IntPtr selDefaultFontSizeHandle = Selector.GetHandle("defaultFontSize"); private static readonly IntPtr selSetDefaultFontSize_Handle = Selector.GetHandle("setDefaultFontSize:"); private static readonly IntPtr selDefaultFixedFontSizeHandle = Selector.GetHandle("defaultFixedFontSize"); private static readonly IntPtr selSetDefaultFixedFontSize_Handle = Selector.GetHandle("setDefaultFixedFontSize:"); private static readonly IntPtr selMinimumFontSizeHandle = Selector.GetHandle("minimumFontSize"); private static readonly IntPtr selSetMinimumFontSize_Handle = Selector.GetHandle("setMinimumFontSize:"); private static readonly IntPtr selMinimumLogicalFontSizeHandle = Selector.GetHandle("minimumLogicalFontSize"); private static readonly IntPtr selSetMinimumLogicalFontSize_Handle = Selector.GetHandle("setMinimumLogicalFontSize:"); private static readonly IntPtr selDefaultTextEncodingNameHandle = Selector.GetHandle("defaultTextEncodingName"); private static readonly IntPtr selSetDefaultTextEncodingName_Handle = Selector.GetHandle("setDefaultTextEncodingName:"); private static readonly IntPtr selUserStyleSheetEnabledHandle = Selector.GetHandle("userStyleSheetEnabled"); private static readonly IntPtr selSetUserStyleSheetEnabled_Handle = Selector.GetHandle("setUserStyleSheetEnabled:"); private static readonly IntPtr selUserStyleSheetLocationHandle = Selector.GetHandle("userStyleSheetLocation"); private static readonly IntPtr selSetUserStyleSheetLocation_Handle = Selector.GetHandle("setUserStyleSheetLocation:"); private static readonly IntPtr selIsJavaEnabledHandle = Selector.GetHandle("isJavaEnabled"); private static readonly IntPtr selSetJavaEnabled_Handle = Selector.GetHandle("setJavaEnabled:"); private static readonly IntPtr selIsJavaScriptEnabledHandle = Selector.GetHandle("isJavaScriptEnabled"); private static readonly IntPtr selSetJavaScriptEnabled_Handle = Selector.GetHandle("setJavaScriptEnabled:"); private static readonly IntPtr selJavaScriptCanOpenWindowsAutomaticallyHandle = Selector.GetHandle("javaScriptCanOpenWindowsAutomatically"); private static readonly IntPtr selSetJavaScriptCanOpenWindowsAutomatically_Handle = Selector.GetHandle("setJavaScriptCanOpenWindowsAutomatically:"); private static readonly IntPtr selAllowsAnimatedImagesHandle = Selector.GetHandle("allowsAnimatedImages"); private static readonly IntPtr selSetAllowsAnimatedImages_Handle = Selector.GetHandle("setAllowsAnimatedImages:"); private static readonly IntPtr selAllowsAnimatedImageLoopingHandle = Selector.GetHandle("allowsAnimatedImageLooping"); private static readonly IntPtr selSetAllowsAnimatedImageLooping_Handle = Selector.GetHandle("setAllowsAnimatedImageLooping:"); private static readonly IntPtr selLoadsImagesAutomaticallyHandle = Selector.GetHandle("loadsImagesAutomatically"); private static readonly IntPtr selSetLoadsImagesAutomatically_Handle = Selector.GetHandle("setLoadsImagesAutomatically:"); private static readonly IntPtr selAutosavesHandle = Selector.GetHandle("autosaves"); private static readonly IntPtr selSetAutosaves_Handle = Selector.GetHandle("setAutosaves:"); private static readonly IntPtr selShouldPrintBackgroundsHandle = Selector.GetHandle("shouldPrintBackgrounds"); private static readonly IntPtr selSetShouldPrintBackgrounds_Handle = Selector.GetHandle("setShouldPrintBackgrounds:"); private static readonly IntPtr selPrivateBrowsingEnabledHandle = Selector.GetHandle("privateBrowsingEnabled"); private static readonly IntPtr selSetPrivateBrowsingEnabled_Handle = Selector.GetHandle("setPrivateBrowsingEnabled:"); private static readonly IntPtr selTabsToLinksHandle = Selector.GetHandle("tabsToLinks"); private static readonly IntPtr selSetTabsToLinks_Handle = Selector.GetHandle("setTabsToLinks:"); private static readonly IntPtr selUsesPageCacheHandle = Selector.GetHandle("usesPageCache"); private static readonly IntPtr selSetUsesPageCache_Handle = Selector.GetHandle("setUsesPageCache:"); private static readonly IntPtr selCacheModelHandle = Selector.GetHandle("cacheModel"); private static readonly IntPtr selSetCacheModel_Handle = Selector.GetHandle("setCacheModel:"); private static readonly IntPtr selInitWithIdentifier_Handle = Selector.GetHandle("initWithIdentifier:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebPreferences"); private static object __mt_StandardPreferences_var_static; private object __mt_UserStyleSheetLocation_var; public override IntPtr ClassHandle => class_ptr; public static WebPreferences StandardPreferences { [Export("standardPreferences")] get { return (WebPreferences)(__mt_StandardPreferences_var_static = (WebPreferences)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(class_ptr, selStandardPreferencesHandle))); } } public virtual string Identifier { [Export("identifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selIdentifierHandle)); } } public virtual bool PlugInsEnabled { [Export("arePlugInsEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selArePlugInsEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selArePlugInsEnabledHandle); } [Export("setPlugInsEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPlugInsEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPlugInsEnabled_Handle, value); } } } public virtual string StandardFontFamily { [Export("standardFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStandardFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStandardFontFamilyHandle)); } [Export("setStandardFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetStandardFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetStandardFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string FixedFontFamily { [Export("fixedFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFixedFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFixedFontFamilyHandle)); } [Export("setFixedFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFixedFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFixedFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string SerifFontFamily { [Export("serifFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSerifFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSerifFontFamilyHandle)); } [Export("setSerifFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSerifFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSerifFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string SansSerifFontFamily { [Export("sansSerifFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selSansSerifFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSansSerifFontFamilyHandle)); } [Export("setSansSerifFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetSansSerifFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetSansSerifFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CursiveFontFamily { [Export("cursiveFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCursiveFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCursiveFontFamilyHandle)); } [Export("setCursiveFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCursiveFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCursiveFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string FantasyFontFamily { [Export("fantasyFontFamily")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFantasyFontFamilyHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFantasyFontFamilyHandle)); } [Export("setFantasyFontFamily:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFantasyFontFamily_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFantasyFontFamily_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual int DefaultFontSize { [Export("defaultFontSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selDefaultFontSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selDefaultFontSizeHandle); } [Export("setDefaultFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetDefaultFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetDefaultFontSize_Handle, value); } } } public virtual int DefaultFixedFontSize { [Export("defaultFixedFontSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selDefaultFixedFontSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selDefaultFixedFontSizeHandle); } [Export("setDefaultFixedFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetDefaultFixedFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetDefaultFixedFontSize_Handle, value); } } } public virtual int MinimumFontSize { [Export("minimumFontSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMinimumFontSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMinimumFontSizeHandle); } [Export("setMinimumFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMinimumFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMinimumFontSize_Handle, value); } } } public virtual int MinimumLogicalFontSize { [Export("minimumLogicalFontSize")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selMinimumLogicalFontSizeHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selMinimumLogicalFontSizeHandle); } [Export("setMinimumLogicalFontSize:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetMinimumLogicalFontSize_Handle, value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetMinimumLogicalFontSize_Handle, value); } } } public virtual string DefaultTextEncodingName { [Export("defaultTextEncodingName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selDefaultTextEncodingNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDefaultTextEncodingNameHandle)); } [Export("setDefaultTextEncodingName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDefaultTextEncodingName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDefaultTextEncodingName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool UserStyleSheetEnabled { [Export("userStyleSheetEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUserStyleSheetEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUserStyleSheetEnabledHandle); } [Export("setUserStyleSheetEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUserStyleSheetEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUserStyleSheetEnabled_Handle, value); } } } public virtual NSUrl UserStyleSheetLocation { [Export("userStyleSheetLocation")] get { return (NSUrl)(__mt_UserStyleSheetLocation_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUserStyleSheetLocationHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUserStyleSheetLocationHandle))))); } [Export("setUserStyleSheetLocation:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUserStyleSheetLocation_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUserStyleSheetLocation_Handle, value.Handle); } __mt_UserStyleSheetLocation_var = value; } } public virtual bool JavaEnabled { [Export("isJavaEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsJavaEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsJavaEnabledHandle); } [Export("setJavaEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetJavaEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetJavaEnabled_Handle, value); } } } public virtual bool JavaScriptEnabled { [Export("isJavaScriptEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsJavaScriptEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsJavaScriptEnabledHandle); } [Export("setJavaScriptEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetJavaScriptEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetJavaScriptEnabled_Handle, value); } } } public virtual bool JavaScriptCanOpenWindowsAutomatically { [Export("javaScriptCanOpenWindowsAutomatically")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selJavaScriptCanOpenWindowsAutomaticallyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selJavaScriptCanOpenWindowsAutomaticallyHandle); } [Export("setJavaScriptCanOpenWindowsAutomatically:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetJavaScriptCanOpenWindowsAutomatically_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetJavaScriptCanOpenWindowsAutomatically_Handle, value); } } } public virtual bool AllowsAnimatedImages { [Export("allowsAnimatedImages")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsAnimatedImagesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsAnimatedImagesHandle); } [Export("setAllowsAnimatedImages:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsAnimatedImages_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsAnimatedImages_Handle, value); } } } public virtual bool AllowsAnimatedImageLooping { [Export("allowsAnimatedImageLooping")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAllowsAnimatedImageLoopingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAllowsAnimatedImageLoopingHandle); } [Export("setAllowsAnimatedImageLooping:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAllowsAnimatedImageLooping_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAllowsAnimatedImageLooping_Handle, value); } } } public virtual bool LoadsImagesAutomatically { [Export("loadsImagesAutomatically")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selLoadsImagesAutomaticallyHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selLoadsImagesAutomaticallyHandle); } [Export("setLoadsImagesAutomatically:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetLoadsImagesAutomatically_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetLoadsImagesAutomatically_Handle, value); } } } public virtual bool Autosaves { [Export("autosaves")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selAutosavesHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selAutosavesHandle); } [Export("setAutosaves:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetAutosaves_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetAutosaves_Handle, value); } } } public virtual bool ShouldPrintBackgrounds { [Export("shouldPrintBackgrounds")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldPrintBackgroundsHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldPrintBackgroundsHandle); } [Export("setShouldPrintBackgrounds:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldPrintBackgrounds_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldPrintBackgrounds_Handle, value); } } } public virtual bool PrivateBrowsingEnabled { [Export("privateBrowsingEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selPrivateBrowsingEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selPrivateBrowsingEnabledHandle); } [Export("setPrivateBrowsingEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetPrivateBrowsingEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetPrivateBrowsingEnabled_Handle, value); } } } public virtual bool TabsToLinks { [Export("tabsToLinks")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selTabsToLinksHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selTabsToLinksHandle); } [Export("setTabsToLinks:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetTabsToLinks_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetTabsToLinks_Handle, value); } } } public virtual bool UsesPageCache { [Export("usesPageCache")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selUsesPageCacheHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selUsesPageCacheHandle); } [Export("setUsesPageCache:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetUsesPageCache_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetUsesPageCache_Handle, value); } } } public virtual WebCacheModel CacheModel { [Export("cacheModel")] get { if (IsDirectBinding) { return (WebCacheModel)Messaging.int_objc_msgSend(base.Handle, selCacheModelHandle); } return (WebCacheModel)Messaging.int_objc_msgSendSuper(base.SuperHandle, selCacheModelHandle); } [Export("setCacheModel:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_int(base.Handle, selSetCacheModel_Handle, (int)value); } else { Messaging.void_objc_msgSendSuper_int(base.SuperHandle, selSetCacheModel_Handle, (int)value); } } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebPreferences() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebPreferences(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPreferences(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebPreferences(IntPtr handle) : base(handle) { } [Export("initWithIdentifier:")] public WebPreferences(string identifier) : base(NSObjectFlag.Empty) { if (identifier == null) { throw new ArgumentNullException("identifier"); } IntPtr arg = NSString.CreateNative(identifier); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selInitWithIdentifier_Handle, arg); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selInitWithIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_UserStyleSheetLocation_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResource.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebResource", true)] public class WebResource : NSObject { private static readonly IntPtr selDataHandle = Selector.GetHandle("data"); private static readonly IntPtr selURLHandle = Selector.GetHandle("URL"); private static readonly IntPtr selMIMETypeHandle = Selector.GetHandle("MIMEType"); private static readonly IntPtr selTextEncodingNameHandle = Selector.GetHandle("textEncodingName"); private static readonly IntPtr selFrameNameHandle = Selector.GetHandle("frameName"); private static readonly IntPtr selInitWithDataURLMIMETypeTextEncodingNameFrameName_Handle = Selector.GetHandle("initWithData:URL:MIMEType:textEncodingName:frameName:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebResource"); private object __mt_Data_var; private object __mt_Url_var; public override IntPtr ClassHandle => class_ptr; public virtual NSData Data { [Export("data")] get { return (NSData)(__mt_Data_var = ((!IsDirectBinding) ? ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDataHandle))) : ((NSData)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDataHandle))))); } } public virtual NSUrl Url { [Export("URL")] get { return (NSUrl)(__mt_Url_var = ((!IsDirectBinding) ? ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selURLHandle))) : ((NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selURLHandle))))); } } public virtual string MimeType { [Export("MIMEType")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMIMETypeHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMIMETypeHandle)); } } public virtual string TextEncodingName { [Export("textEncodingName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selTextEncodingNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTextEncodingNameHandle)); } } public virtual string FrameName { [Export("frameName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selFrameNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrameNameHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebResource() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebResource(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebResource(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebResource(IntPtr handle) : base(handle) { } [Export("initWithData:URL:MIMEType:textEncodingName:frameName:")] public WebResource(NSData data, NSUrl url, string mimeType, string textEncodingName, string frameName) : base(NSObjectFlag.Empty) { if (data == null) { throw new ArgumentNullException("data"); } if (url == null) { throw new ArgumentNullException("url"); } if (mimeType == null) { throw new ArgumentNullException("mimeType"); } if (textEncodingName == null) { throw new ArgumentNullException("textEncodingName"); } if (frameName == null) { throw new ArgumentNullException("frameName"); } IntPtr arg = NSString.CreateNative(mimeType); IntPtr arg2 = NSString.CreateNative(textEncodingName); IntPtr arg3 = NSString.CreateNative(frameName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.Handle, selInitWithDataURLMIMETypeTextEncodingNameFrameName_Handle, data.Handle, url.Handle, arg, arg2, arg3); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr(base.SuperHandle, selInitWithDataURLMIMETypeTextEncodingNameFrameName_Handle, data.Handle, url.Handle, arg, arg2, arg3); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); NSString.ReleaseNative(arg3); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_Data_var = null; __mt_Url_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceAuthenticationChallengeEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceAuthenticationChallengeEventArgs : EventArgs { public NSObject Identifier { get; set; } public NSUrlAuthenticationChallenge Challenge { get; set; } public WebDataSource DataSource { get; set; } public WebResourceAuthenticationChallengeEventArgs(NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { Identifier = identifier; Challenge = challenge; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceCancelledChallengeEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceCancelledChallengeEventArgs : EventArgs { public NSObject Identifier { get; set; } public NSUrlAuthenticationChallenge Challenge { get; set; } public WebDataSource DataSource { get; set; } public WebResourceCancelledChallengeEventArgs(NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { Identifier = identifier; Challenge = challenge; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceCompletedEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceCompletedEventArgs : EventArgs { public NSObject Identifier { get; set; } public WebDataSource DataSource { get; set; } public WebResourceCompletedEventArgs(NSObject identifier, WebDataSource dataSource) { Identifier = identifier; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceErrorEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceErrorEventArgs : EventArgs { public NSObject Identifier { get; set; } public NSError WithError { get; set; } public WebDataSource DataSource { get; set; } public WebResourceErrorEventArgs(NSObject identifier, NSError withError, WebDataSource dataSource) { Identifier = identifier; WithError = withError; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceIdentifierRequest.cs ================================================ using Foundation; namespace WebKit; public delegate NSObject WebResourceIdentifierRequest(WebView sender, NSUrlRequest request, WebDataSource dataSource); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceLoadDelegate.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebResourceLoadDelegate", true)] [Model] public class WebResourceLoadDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebResourceLoadDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebResourceLoadDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebResourceLoadDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebResourceLoadDelegate(IntPtr handle) : base(handle) { } [Export("webView:identifierForInitialRequest:fromDataSource:")] public virtual NSObject OnIdentifierForInitialRequest(WebView sender, NSUrlRequest request, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:willSendRequest:redirectResponse:fromDataSource:")] public virtual NSUrlRequest OnSendRequest(WebView sender, NSObject identifier, NSUrlRequest request, NSUrlResponse redirectResponse, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didReceiveAuthenticationChallenge:fromDataSource:")] public virtual void OnReceivedAuthenticationChallenge(WebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didCancelAuthenticationChallenge:fromDataSource:")] public virtual void OnCancelledAuthenticationChallenge(WebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didReceiveResponse:fromDataSource:")] public virtual void OnReceivedResponse(WebView sender, NSObject identifier, NSUrlResponse responseReceived, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didReceiveContentLength:fromDataSource:")] public virtual void OnReceivedContentLength(WebView sender, NSObject identifier, int length, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didFinishLoadingFromDataSource:")] public virtual void OnFinishedLoading(WebView sender, NSObject identifier, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:resource:didFailLoadingWithError:fromDataSource:")] public virtual void OnFailedLoading(WebView sender, NSObject identifier, NSError withError, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:plugInFailedWithError:dataSource:")] public virtual void OnPlugInFailed(WebView sender, NSError error, WebDataSource dataSource) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceLoadDelegateWrapper.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; internal sealed class WebResourceLoadDelegateWrapper : BaseWrapper, IWebResourceLoadDelegate, INativeObject, IDisposable { [Preserve(Conditional = true)] public WebResourceLoadDelegateWrapper(IntPtr handle, bool owns) : base(handle, owns) { } [Preserve(Conditional = false)] public WebResourceLoadDelegateWrapper(IntPtr handle) : base(handle, false) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceOnRequestSend.cs ================================================ using Foundation; namespace WebKit; public delegate NSUrlRequest WebResourceOnRequestSend(WebView sender, NSObject identifier, NSUrlRequest request, NSUrlResponse redirectResponse, WebDataSource dataSource); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourcePluginErrorEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourcePluginErrorEventArgs : EventArgs { public NSError Error { get; set; } public WebDataSource DataSource { get; set; } public WebResourcePluginErrorEventArgs(NSError error, WebDataSource dataSource) { Error = error; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceReceivedContentLengthEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceReceivedContentLengthEventArgs : EventArgs { public NSObject Identifier { get; set; } public int Length { get; set; } public WebDataSource DataSource { get; set; } public WebResourceReceivedContentLengthEventArgs(NSObject identifier, int length, WebDataSource dataSource) { Identifier = identifier; Length = length; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebResourceReceivedResponseEventArgs.cs ================================================ using System; using Foundation; namespace WebKit; public class WebResourceReceivedResponseEventArgs : EventArgs { public NSObject Identifier { get; set; } public NSUrlResponse ResponseReceived { get; set; } public WebDataSource DataSource { get; set; } public WebResourceReceivedResponseEventArgs(NSObject identifier, NSUrlResponse responseReceived, WebDataSource dataSource) { Identifier = identifier; ResponseReceived = responseReceived; DataSource = dataSource; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebScriptObject.cs ================================================ using System; using System.ComponentModel; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebScriptObject", true)] public class WebScriptObject : NSObject { private static readonly IntPtr selJSObjectHandle = Selector.GetHandle("JSObject"); private static readonly IntPtr selStringRepresentationHandle = Selector.GetHandle("stringRepresentation"); private static readonly IntPtr selThrowException_Handle = Selector.GetHandle("throwException:"); private static readonly IntPtr selCallWebScriptMethodWithArguments_Handle = Selector.GetHandle("callWebScriptMethod:withArguments:"); private static readonly IntPtr selEvaluateWebScript_Handle = Selector.GetHandle("evaluateWebScript:"); private static readonly IntPtr selRemoveWebScriptKey_Handle = Selector.GetHandle("removeWebScriptKey:"); private static readonly IntPtr selWebScriptValueAtIndex_Handle = Selector.GetHandle("webScriptValueAtIndex:"); private static readonly IntPtr selSetWebScriptValueAtIndexValue_Handle = Selector.GetHandle("setWebScriptValueAtIndex:value:"); private static readonly IntPtr selSetException_Handle = Selector.GetHandle("setException:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebScriptObject"); public override IntPtr ClassHandle => class_ptr; public virtual IntPtr JSObject { [Export("JSObject")] get { if (IsDirectBinding) { return Messaging.IntPtr_objc_msgSend(base.Handle, selJSObjectHandle); } return Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selJSObjectHandle); } } public virtual string StringRepresentation { [Export("stringRepresentation")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selStringRepresentationHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selStringRepresentationHandle)); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebScriptObject(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebScriptObject(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebScriptObject(IntPtr handle) : base(handle) { } [Export("throwException:")] public static bool ThrowException(string exceptionMessage) { if (exceptionMessage == null) { throw new ArgumentNullException("exceptionMessage"); } IntPtr arg = NSString.CreateNative(exceptionMessage); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selThrowException_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("callWebScriptMethod:withArguments:")] public virtual NSObject CallWebScriptMethod(string name, NSObject[] arguments) { if (name == null) { throw new ArgumentNullException("name"); } if (arguments == null) { throw new ArgumentNullException("arguments"); } IntPtr arg = NSString.CreateNative(name); NSArray nSArray = NSArray.FromNSObjects(arguments); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selCallWebScriptMethodWithArguments_Handle, arg, nSArray.Handle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(base.Handle, selCallWebScriptMethodWithArguments_Handle, arg, nSArray.Handle))); NSString.ReleaseNative(arg); nSArray.Dispose(); return result; } [Export("evaluateWebScript:")] public virtual NSObject EvaluateWebScript(string script) { if (script == null) { throw new ArgumentNullException("script"); } IntPtr arg = NSString.CreateNative(script); NSObject result = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selEvaluateWebScript_Handle, arg)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selEvaluateWebScript_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("removeWebScriptKey:")] public virtual void RemoveWebScriptKey(string name) { if (name == null) { throw new ArgumentNullException("name"); } IntPtr arg = NSString.CreateNative(name); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selRemoveWebScriptKey_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selRemoveWebScriptKey_Handle, arg); } NSString.ReleaseNative(arg); } [Export("webScriptValueAtIndex:")] public virtual NSObject WebScriptValueAtIndex(int index) { if (IsDirectBinding) { return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_int(base.Handle, selWebScriptValueAtIndex_Handle, index)); } return Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_int(base.SuperHandle, selWebScriptValueAtIndex_Handle, index)); } [Export("setWebScriptValueAtIndex:value:")] public virtual void SetWebScriptValueAtIndexvalue(int index, NSObject value) { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_int_IntPtr(base.Handle, selSetWebScriptValueAtIndexValue_Handle, index, value.Handle); } else { Messaging.void_objc_msgSendSuper_int_IntPtr(base.SuperHandle, selSetWebScriptValueAtIndexValue_Handle, index, value.Handle); } } [Export("setException:")] public virtual void SetException(string description) { if (description == null) { throw new ArgumentNullException("description"); } IntPtr arg = NSString.CreateNative(description); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetException_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetException_Handle, arg); } NSString.ReleaseNative(arg); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebUIDelegate.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebUIDelegate", true)] [Model] public class WebUIDelegate : NSObject { [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebUIDelegate() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebUIDelegate(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebUIDelegate(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebUIDelegate(IntPtr handle) : base(handle) { } [Export("webView:createWebViewWithRequest:")] public virtual WebView UICreateWebView(WebView sender, NSUrlRequest request) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewShow:")] public virtual void UIShow(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:createWebViewModalDialogWithRequest:")] public virtual WebView UICreateModalDialog(WebView sender, NSUrlRequest request) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewRunModal:")] public virtual void UIRunModal(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewClose:")] public virtual void UIClose(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewFocus:")] public virtual void UIFocus(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewUnfocus:")] public virtual void UIUnfocus(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewFirstResponder:")] public virtual NSResponder UIGetFirstResponder(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:makeFirstResponder:")] public virtual void UIMakeFirstResponder(WebView sender, NSResponder newResponder) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setStatusText:")] public virtual void UISetStatusText(WebView sender, string text) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewStatusText:")] public virtual string UIGetStatusText(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewAreToolbarsVisible:")] public virtual bool UIAreToolbarsVisible(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setToolbarsVisible:")] public virtual void UISetToolbarsVisible(WebView sender, bool visible) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewIsStatusBarVisible:")] public virtual bool UIIsStatusBarVisible(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setStatusBarVisible:")] public virtual void UISetStatusBarVisible(WebView sender, bool visible) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewIsResizable:")] public virtual bool UIIsResizable(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setResizable:")] public virtual void UISetResizable(WebView sender, bool resizable) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setFrame:")] public virtual void UISetFrame(WebView sender, CGRect newFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewFrame:")] public virtual CGRect UIGetFrame(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:")] public virtual void UIRunJavaScriptAlertPanelMessage(WebView sender, string withMessage, WebFrame initiatedByFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:")] public virtual bool UIRunJavaScriptConfirmationPanel(WebView sender, string withMessage, WebFrame initiatedByFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:")] public virtual string UIRunJavaScriptTextInputPanelWithFrame(WebView sender, string prompt, string defaultText, WebFrame initiatedByFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:")] public virtual bool UIRunBeforeUnload(WebView sender, string message, WebFrame initiatedByFrame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runOpenPanelForFileButtonWithResultListener:")] public virtual void UIRunOpenPanelForFileButton(WebView sender, WebOpenPanelResultListener resultListener) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:mouseDidMoveOverElement:modifierFlags:")] public virtual void UIMouseDidMoveOverElement(WebView sender, NSDictionary elementInformation, NSEventModifierMask modifierFlags) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:contextMenuItemsForElement:defaultMenuItems:")] public virtual NSMenuItem[] UIGetContextMenuItems(WebView sender, NSDictionary forElement, NSMenuItem[] defaultMenuItems) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:validateUserInterfaceItem:defaultValidation:")] public virtual bool UIValidateUserInterfaceItem(WebView webView, NSObject validatedUserInterfaceItem, bool defaultValidation) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:shouldPerformAction:fromSender:")] public virtual bool UIShouldPerformActionfromSender(WebView webView, Selector action, NSObject sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:dragDestinationActionMaskForDraggingInfo:")] public virtual NSEventModifierMask UIGetDragDestinationActionMask(WebView webView, NSDraggingInfo draggingInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:willPerformDragDestinationAction:forDraggingInfo:")] public virtual void UIWillPerformDragDestination(WebView webView, WebDragDestinationAction action, NSDraggingInfo draggingInfo) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:dragSourceActionMaskForPoint:")] public virtual NSEventModifierMask UIDragSourceActionMask(WebView webView, CGPoint point) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:willPerformDragSourceAction:fromPoint:withPasteboard:")] public virtual void UIWillPerformDragSource(WebView webView, WebDragSourceAction action, CGPoint sourcePoint, NSPasteboard pasteboard) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:printFrameView:")] public virtual void UIPrintFrameView(WebView sender, WebFrameView frameView) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewHeaderHeight:")] public virtual float UIGetHeaderHeight(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewFooterHeight:")] public virtual float UIGetFooterHeight(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:drawHeaderInRect:")] public virtual void UIDrawHeaderInRect(WebView sender, CGRect rect) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:drawFooterInRect:")] public virtual void UIDrawFooterInRect(WebView sender, CGRect rect) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptAlertPanelWithMessage:")] public virtual void UIRunJavaScriptAlertPanel(WebView sender, string message) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptConfirmPanelWithMessage:")] public virtual bool UIRunJavaScriptConfirmPanel(WebView sender, string message) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:")] public virtual string UIRunJavaScriptTextInputPanel(WebView sender, string prompt, string defaultText) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webView:setContentRect:")] public virtual void UISetContentRect(WebView sender, CGRect frame) { throw new You_Should_Not_Call_base_In_This_Method(); } [Export("webViewContentRect:")] public virtual CGRect UIGetContentRect(WebView sender) { throw new You_Should_Not_Call_base_In_This_Method(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebView.cs ================================================ using System; using System.ComponentModel; using AppKit; using CoreGraphics; using Foundation; using ObjCRuntime; namespace WebKit; [Register("WebView", true)] public class WebView : NSView { [Register] private sealed class _WebFrameLoadDelegate : WebFrameLoadDelegate { internal EventHandler startedProvisionalLoad; internal EventHandler receivedServerRedirectForProvisionalLoad; internal EventHandler failedProvisionalLoad; internal EventHandler commitedLoad; internal EventHandler receivedTitle; internal EventHandler receivedIcon; internal EventHandler finishedLoad; internal EventHandler failedLoadWithError; internal EventHandler changedLocationWithinPage; internal EventHandler willPerformClientRedirect; internal EventHandler canceledClientRedirect; internal EventHandler willCloseFrame; internal EventHandler clearedWindowObject; internal EventHandler windowScriptObjectAvailable; [Preserve(Conditional = true)] public override void StartedProvisionalLoad(WebView sender, WebFrame forFrame) { EventHandler eventHandler = startedProvisionalLoad; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ReceivedServerRedirectForProvisionalLoad(WebView sender, WebFrame forFrame) { EventHandler eventHandler = receivedServerRedirectForProvisionalLoad; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void FailedProvisionalLoad(WebView sender, NSError error, WebFrame forFrame) { EventHandler eventHandler = failedProvisionalLoad; if (eventHandler != null) { WebFrameErrorEventArgs e = new WebFrameErrorEventArgs(error, forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void CommitedLoad(WebView sender, WebFrame forFrame) { EventHandler eventHandler = commitedLoad; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ReceivedTitle(WebView sender, string title, WebFrame forFrame) { EventHandler eventHandler = receivedTitle; if (eventHandler != null) { WebFrameTitleEventArgs e = new WebFrameTitleEventArgs(title, forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ReceivedIcon(WebView sender, NSImage image, WebFrame forFrame) { EventHandler eventHandler = receivedIcon; if (eventHandler != null) { WebFrameImageEventArgs e = new WebFrameImageEventArgs(image, forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void FinishedLoad(WebView sender, WebFrame forFrame) { EventHandler eventHandler = finishedLoad; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void FailedLoadWithError(WebView sender, NSError error, WebFrame forFrame) { EventHandler eventHandler = failedLoadWithError; if (eventHandler != null) { WebFrameErrorEventArgs e = new WebFrameErrorEventArgs(error, forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ChangedLocationWithinPage(WebView sender, WebFrame forFrame) { EventHandler eventHandler = changedLocationWithinPage; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void WillPerformClientRedirect(WebView sender, NSUrl toUrl, double secondsDelay, NSDate fireDate, WebFrame forFrame) { EventHandler eventHandler = willPerformClientRedirect; if (eventHandler != null) { WebFrameClientRedirectEventArgs e = new WebFrameClientRedirectEventArgs(toUrl, secondsDelay, fireDate, forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void CanceledClientRedirect(WebView sender, WebFrame forFrame) { EventHandler eventHandler = canceledClientRedirect; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void WillCloseFrame(WebView sender, WebFrame forFrame) { EventHandler eventHandler = willCloseFrame; if (eventHandler != null) { WebFrameEventArgs e = new WebFrameEventArgs(forFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void ClearedWindowObject(WebView webView, WebScriptObject windowObject, WebFrame forFrame) { EventHandler eventHandler = clearedWindowObject; if (eventHandler != null) { WebFrameScriptFrameEventArgs e = new WebFrameScriptFrameEventArgs(windowObject, forFrame); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override void WindowScriptObjectAvailable(WebView webView, WebScriptObject windowScriptObject) { EventHandler eventHandler = windowScriptObjectAvailable; if (eventHandler != null) { WebFrameScriptObjectEventArgs e = new WebFrameScriptObjectEventArgs(windowScriptObject); eventHandler(webView, e); } } } [Register] private sealed class _WebDownloadDelegate : WebDownloadDelegate { internal WebDownloadRequest onDownloadWindowForSheet; [Preserve(Conditional = true)] public override NSWindow OnDownloadWindowForSheet(WebDownload download) { return onDownloadWindowForSheet?.Invoke(download); } } [Register] private sealed class _WebResourceLoadDelegate : WebResourceLoadDelegate { internal WebResourceIdentifierRequest onIdentifierForInitialRequest; internal WebResourceOnRequestSend onSendRequest; internal EventHandler onReceivedAuthenticationChallenge; internal EventHandler onCancelledAuthenticationChallenge; internal EventHandler onReceivedResponse; internal EventHandler onReceivedContentLength; internal EventHandler onFinishedLoading; internal EventHandler onFailedLoading; internal EventHandler onPlugInFailed; [Preserve(Conditional = true)] public override NSObject OnIdentifierForInitialRequest(WebView sender, NSUrlRequest request, WebDataSource dataSource) { return onIdentifierForInitialRequest?.Invoke(sender, request, dataSource); } [Preserve(Conditional = true)] public override NSUrlRequest OnSendRequest(WebView sender, NSObject identifier, NSUrlRequest request, NSUrlResponse redirectResponse, WebDataSource dataSource) { WebResourceOnRequestSend webResourceOnRequestSend = onSendRequest; if (webResourceOnRequestSend != null) { return webResourceOnRequestSend(sender, identifier, request, redirectResponse, dataSource); } return request; } [Preserve(Conditional = true)] public override void OnReceivedAuthenticationChallenge(WebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { EventHandler eventHandler = onReceivedAuthenticationChallenge; if (eventHandler != null) { WebResourceAuthenticationChallengeEventArgs e = new WebResourceAuthenticationChallengeEventArgs(identifier, challenge, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnCancelledAuthenticationChallenge(WebView sender, NSObject identifier, NSUrlAuthenticationChallenge challenge, WebDataSource dataSource) { EventHandler eventHandler = onCancelledAuthenticationChallenge; if (eventHandler != null) { WebResourceCancelledChallengeEventArgs e = new WebResourceCancelledChallengeEventArgs(identifier, challenge, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnReceivedResponse(WebView sender, NSObject identifier, NSUrlResponse responseReceived, WebDataSource dataSource) { EventHandler eventHandler = onReceivedResponse; if (eventHandler != null) { WebResourceReceivedResponseEventArgs e = new WebResourceReceivedResponseEventArgs(identifier, responseReceived, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnReceivedContentLength(WebView sender, NSObject identifier, int length, WebDataSource dataSource) { EventHandler eventHandler = onReceivedContentLength; if (eventHandler != null) { WebResourceReceivedContentLengthEventArgs e = new WebResourceReceivedContentLengthEventArgs(identifier, length, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnFinishedLoading(WebView sender, NSObject identifier, WebDataSource dataSource) { EventHandler eventHandler = onFinishedLoading; if (eventHandler != null) { WebResourceCompletedEventArgs e = new WebResourceCompletedEventArgs(identifier, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnFailedLoading(WebView sender, NSObject identifier, NSError withError, WebDataSource dataSource) { EventHandler eventHandler = onFailedLoading; if (eventHandler != null) { WebResourceErrorEventArgs e = new WebResourceErrorEventArgs(identifier, withError, dataSource); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void OnPlugInFailed(WebView sender, NSError error, WebDataSource dataSource) { EventHandler eventHandler = onPlugInFailed; if (eventHandler != null) { WebResourcePluginErrorEventArgs e = new WebResourcePluginErrorEventArgs(error, dataSource); eventHandler(sender, e); } } } [Register] private sealed class _WebUIDelegate : WebUIDelegate { internal CreateWebViewFromRequest uICreateWebView; internal EventHandler uIShow; internal WebViewCreate uICreateModalDialog; internal EventHandler uIRunModal; internal EventHandler uIClose; internal EventHandler uIFocus; internal EventHandler uIUnfocus; internal WebViewGetResponder uIGetFirstResponder; internal EventHandler uIMakeFirstResponder; internal EventHandler uISetStatusText; internal WebViewGetString uIGetStatusText; internal WebViewGetBool uIAreToolbarsVisible; internal EventHandler uISetToolbarsVisible; internal WebViewGetBool uIIsStatusBarVisible; internal EventHandler uISetStatusBarVisible; internal WebViewGetBool uIIsResizable; internal EventHandler uISetResizable; internal EventHandler uISetFrame; internal WebViewGetRectangle uIGetFrame; internal EventHandler uIRunJavaScriptAlertPanelMessage; internal WebViewConfirmationPanel uIRunJavaScriptConfirmationPanel; internal WebViewPromptPanel uIRunJavaScriptTextInputPanelWithFrame; internal WebViewJavaScriptFrame uIRunBeforeUnload; internal EventHandler uIRunOpenPanelForFileButton; internal EventHandler uIMouseDidMoveOverElement; internal WebViewGetContextMenuItems uIGetContextMenuItems; internal WebViewValidateUserInterface uIValidateUserInterfaceItem; internal WebViewPerformAction uIShouldPerformActionfromSender; internal DragDestinationGetActionMask uIGetDragDestinationActionMask; internal EventHandler uIWillPerformDragDestination; internal DragSourceGetActionMask uIDragSourceActionMask; internal EventHandler uIWillPerformDragSource; internal EventHandler uIPrintFrameView; internal WebViewGetFloat uIGetHeaderHeight; internal WebViewGetFloat uIGetFooterHeight; internal EventHandler uIDrawHeaderInRect; internal EventHandler uIDrawFooterInRect; internal EventHandler uIRunJavaScriptAlertPanel; internal WebViewPrompt uIRunJavaScriptConfirmPanel; internal WebViewJavaScriptInput uIRunJavaScriptTextInputPanel; internal EventHandler uISetContentRect; internal WebViewGetRectangle uIGetContentRect; [Preserve(Conditional = true)] public override WebView UICreateWebView(WebView sender, NSUrlRequest request) { return uICreateWebView?.Invoke(sender, request); } [Preserve(Conditional = true)] public override void UIShow(WebView sender) { uIShow?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override WebView UICreateModalDialog(WebView sender, NSUrlRequest request) { return uICreateModalDialog?.Invoke(sender, request); } [Preserve(Conditional = true)] public override void UIRunModal(WebView sender) { uIRunModal?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void UIClose(WebView sender) { uIClose?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void UIFocus(WebView sender) { uIFocus?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override void UIUnfocus(WebView sender) { uIUnfocus?.Invoke(sender, EventArgs.Empty); } [Preserve(Conditional = true)] public override NSResponder UIGetFirstResponder(WebView sender) { return uIGetFirstResponder?.Invoke(sender); } [Preserve(Conditional = true)] public override void UIMakeFirstResponder(WebView sender, NSResponder newResponder) { EventHandler eventHandler = uIMakeFirstResponder; if (eventHandler != null) { WebViewResponderEventArgs e = new WebViewResponderEventArgs(newResponder); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void UISetStatusText(WebView sender, string text) { EventHandler eventHandler = uISetStatusText; if (eventHandler != null) { WebViewStatusTextEventArgs e = new WebViewStatusTextEventArgs(text); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override string UIGetStatusText(WebView sender) { return uIGetStatusText?.Invoke(sender); } [Preserve(Conditional = true)] public override bool UIAreToolbarsVisible(WebView sender) { WebViewGetBool webViewGetBool = uIAreToolbarsVisible; if (webViewGetBool != null) { return webViewGetBool(sender); } throw new Exception("No event handler has been added to the UIAreToolbarsVisible event."); } [Preserve(Conditional = true)] public override void UISetToolbarsVisible(WebView sender, bool visible) { EventHandler eventHandler = uISetToolbarsVisible; if (eventHandler != null) { WebViewToolBarsEventArgs e = new WebViewToolBarsEventArgs(visible); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override bool UIIsStatusBarVisible(WebView sender) { return uIIsStatusBarVisible?.Invoke(sender) ?? false; } [Preserve(Conditional = true)] public override void UISetStatusBarVisible(WebView sender, bool visible) { EventHandler eventHandler = uISetStatusBarVisible; if (eventHandler != null) { WebViewStatusBarEventArgs e = new WebViewStatusBarEventArgs(visible); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override bool UIIsResizable(WebView sender) { WebViewGetBool webViewGetBool = uIIsResizable; if (webViewGetBool != null) { return webViewGetBool(sender); } throw new Exception("No event handler has been added to the UIIsResizable event."); } [Preserve(Conditional = true)] public override void UISetResizable(WebView sender, bool resizable) { EventHandler eventHandler = uISetResizable; if (eventHandler != null) { WebViewResizableEventArgs e = new WebViewResizableEventArgs(resizable); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void UISetFrame(WebView sender, CGRect newFrame) { EventHandler eventHandler = uISetFrame; if (eventHandler != null) { WebViewFrameEventArgs e = new WebViewFrameEventArgs(newFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override CGRect UIGetFrame(WebView sender) { WebViewGetRectangle webViewGetRectangle = uIGetFrame; if (webViewGetRectangle != null) { return webViewGetRectangle(sender); } throw new Exception("No event handler has been added to the UIGetFrame event."); } [Preserve(Conditional = true)] public override void UIRunJavaScriptAlertPanelMessage(WebView sender, string withMessage, WebFrame initiatedByFrame) { EventHandler eventHandler = uIRunJavaScriptAlertPanelMessage; if (eventHandler != null) { WebViewJavaScriptFrameEventArgs e = new WebViewJavaScriptFrameEventArgs(withMessage, initiatedByFrame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override bool UIRunJavaScriptConfirmationPanel(WebView sender, string withMessage, WebFrame initiatedByFrame) { WebViewConfirmationPanel webViewConfirmationPanel = uIRunJavaScriptConfirmationPanel; if (webViewConfirmationPanel != null) { return webViewConfirmationPanel(sender, withMessage, initiatedByFrame); } throw new Exception("No event handler has been added to the UIRunJavaScriptConfirmationPanel event."); } [Preserve(Conditional = true)] public override string UIRunJavaScriptTextInputPanelWithFrame(WebView sender, string prompt, string defaultText, WebFrame initiatedByFrame) { return uIRunJavaScriptTextInputPanelWithFrame?.Invoke(sender, prompt, defaultText, initiatedByFrame); } [Preserve(Conditional = true)] public override bool UIRunBeforeUnload(WebView sender, string message, WebFrame initiatedByFrame) { WebViewJavaScriptFrame webViewJavaScriptFrame = uIRunBeforeUnload; if (webViewJavaScriptFrame != null) { return webViewJavaScriptFrame(sender, message, initiatedByFrame); } throw new Exception("No event handler has been added to the UIRunBeforeUnload event."); } [Preserve(Conditional = true)] public override void UIRunOpenPanelForFileButton(WebView sender, WebOpenPanelResultListener resultListener) { EventHandler eventHandler = uIRunOpenPanelForFileButton; if (eventHandler != null) { WebViewRunOpenPanelEventArgs e = new WebViewRunOpenPanelEventArgs(resultListener); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void UIMouseDidMoveOverElement(WebView sender, NSDictionary elementInformation, NSEventModifierMask modifierFlags) { EventHandler eventHandler = uIMouseDidMoveOverElement; if (eventHandler != null) { WebViewMouseMovedEventArgs e = new WebViewMouseMovedEventArgs(elementInformation, modifierFlags); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override NSMenuItem[] UIGetContextMenuItems(WebView sender, NSDictionary forElement, NSMenuItem[] defaultMenuItems) { return uIGetContextMenuItems?.Invoke(sender, forElement, defaultMenuItems); } [Preserve(Conditional = true)] public override bool UIValidateUserInterfaceItem(WebView webView, NSObject validatedUserInterfaceItem, bool defaultValidation) { return uIValidateUserInterfaceItem?.Invoke(webView, validatedUserInterfaceItem, defaultValidation) ?? defaultValidation; } [Preserve(Conditional = true)] public override bool UIShouldPerformActionfromSender(WebView webView, Selector action, NSObject sender) { WebViewPerformAction webViewPerformAction = uIShouldPerformActionfromSender; if (webViewPerformAction != null) { return webViewPerformAction(webView, action, sender); } throw new Exception("No event handler has been added to the UIShouldPerformActionfromSender event."); } [Preserve(Conditional = true)] public override NSEventModifierMask UIGetDragDestinationActionMask(WebView webView, NSDraggingInfo draggingInfo) { return uIGetDragDestinationActionMask?.Invoke(webView, draggingInfo) ?? ((NSEventModifierMask)0uL); } [Preserve(Conditional = true)] public override void UIWillPerformDragDestination(WebView webView, WebDragDestinationAction action, NSDraggingInfo draggingInfo) { EventHandler eventHandler = uIWillPerformDragDestination; if (eventHandler != null) { WebViewDragEventArgs e = new WebViewDragEventArgs(action, draggingInfo); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override NSEventModifierMask UIDragSourceActionMask(WebView webView, CGPoint point) { return uIDragSourceActionMask?.Invoke(webView, point) ?? ((NSEventModifierMask)0uL); } [Preserve(Conditional = true)] public override void UIWillPerformDragSource(WebView webView, WebDragSourceAction action, CGPoint sourcePoint, NSPasteboard pasteboard) { EventHandler eventHandler = uIWillPerformDragSource; if (eventHandler != null) { WebViewPerformDragEventArgs e = new WebViewPerformDragEventArgs(action, sourcePoint, pasteboard); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override void UIPrintFrameView(WebView sender, WebFrameView frameView) { EventHandler eventHandler = uIPrintFrameView; if (eventHandler != null) { WebViewPrintEventArgs e = new WebViewPrintEventArgs(frameView); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override float UIGetHeaderHeight(WebView sender) { WebViewGetFloat webViewGetFloat = uIGetHeaderHeight; if (webViewGetFloat != null) { return webViewGetFloat(sender); } throw new Exception("No event handler has been added to the UIGetHeaderHeight event."); } [Preserve(Conditional = true)] public override float UIGetFooterHeight(WebView sender) { WebViewGetFloat webViewGetFloat = uIGetFooterHeight; if (webViewGetFloat != null) { return webViewGetFloat(sender); } throw new Exception("No event handler has been added to the UIGetFooterHeight event."); } [Preserve(Conditional = true)] public override void UIDrawHeaderInRect(WebView sender, CGRect rect) { EventHandler eventHandler = uIDrawHeaderInRect; if (eventHandler != null) { WebViewHeaderEventArgs e = new WebViewHeaderEventArgs(rect); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void UIDrawFooterInRect(WebView sender, CGRect rect) { EventHandler eventHandler = uIDrawFooterInRect; if (eventHandler != null) { WebViewFooterEventArgs e = new WebViewFooterEventArgs(rect); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override void UIRunJavaScriptAlertPanel(WebView sender, string message) { EventHandler eventHandler = uIRunJavaScriptAlertPanel; if (eventHandler != null) { WebViewJavaScriptEventArgs e = new WebViewJavaScriptEventArgs(message); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override bool UIRunJavaScriptConfirmPanel(WebView sender, string message) { WebViewPrompt webViewPrompt = uIRunJavaScriptConfirmPanel; if (webViewPrompt != null) { return webViewPrompt(sender, message); } throw new Exception("No event handler has been added to the UIRunJavaScriptConfirmPanel event."); } [Preserve(Conditional = true)] public override string UIRunJavaScriptTextInputPanel(WebView sender, string prompt, string defaultText) { return uIRunJavaScriptTextInputPanel?.Invoke(sender, prompt, defaultText); } [Preserve(Conditional = true)] public override void UISetContentRect(WebView sender, CGRect frame) { EventHandler eventHandler = uISetContentRect; if (eventHandler != null) { WebViewContentEventArgs e = new WebViewContentEventArgs(frame); eventHandler(sender, e); } } [Preserve(Conditional = true)] public override CGRect UIGetContentRect(WebView sender) { WebViewGetRectangle webViewGetRectangle = uIGetContentRect; if (webViewGetRectangle != null) { return webViewGetRectangle(sender); } throw new Exception("No event handler has been added to the UIGetContentRect event."); } } [Register] private sealed class _WebPolicyDelegate : WebPolicyDelegate { internal EventHandler decidePolicyForNavigation; internal EventHandler decidePolicyForNewWindow; internal EventHandler decidePolicyForMimeType; internal EventHandler unableToImplementPolicy; [Preserve(Conditional = true)] public override void DecidePolicyForNavigation(WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { EventHandler eventHandler = decidePolicyForNavigation; if (eventHandler != null) { WebNavigationPolicyEventArgs e = new WebNavigationPolicyEventArgs(actionInformation, request, frame, decisionToken); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override void DecidePolicyForNewWindow(WebView webView, NSDictionary actionInformation, NSUrlRequest request, string newFrameName, NSObject decisionToken) { EventHandler eventHandler = decidePolicyForNewWindow; if (eventHandler != null) { WebNewWindowPolicyEventArgs e = new WebNewWindowPolicyEventArgs(actionInformation, request, newFrameName, decisionToken); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override void DecidePolicyForMimeType(WebView webView, string mimeType, NSUrlRequest request, WebFrame frame, NSObject decisionToken) { EventHandler eventHandler = decidePolicyForMimeType; if (eventHandler != null) { WebMimeTypePolicyEventArgs e = new WebMimeTypePolicyEventArgs(mimeType, request, frame, decisionToken); eventHandler(webView, e); } } [Preserve(Conditional = true)] public override void UnableToImplementPolicy(WebView webView, NSError error, WebFrame frame) { EventHandler eventHandler = unableToImplementPolicy; if (eventHandler != null) { WebFailureToImplementPolicyEventArgs e = new WebFailureToImplementPolicyEventArgs(error, frame); eventHandler(webView, e); } } } private static IntPtr selUse = Selector.GetHandle("use"); private static IntPtr selDownload = Selector.GetHandle("download"); private static IntPtr selIgnore = Selector.GetHandle("ignore"); private static readonly IntPtr selMIMETypesShownAsHTMLHandle = Selector.GetHandle("MIMETypesShownAsHTML"); private static readonly IntPtr selSetMIMETypesShownAsHTML_Handle = Selector.GetHandle("setMIMETypesShownAsHTML:"); private static readonly IntPtr selMainFrameHandle = Selector.GetHandle("mainFrame"); private static readonly IntPtr selSelectedFrameHandle = Selector.GetHandle("selectedFrame"); private static readonly IntPtr selBackForwardListHandle = Selector.GetHandle("backForwardList"); private static readonly IntPtr selSupportsTextEncodingHandle = Selector.GetHandle("supportsTextEncoding"); private static readonly IntPtr selWindowScriptObjectHandle = Selector.GetHandle("windowScriptObject"); private static readonly IntPtr selEstimatedProgressHandle = Selector.GetHandle("estimatedProgress"); private static readonly IntPtr selIsLoadingHandle = Selector.GetHandle("isLoading"); private static readonly IntPtr selPasteboardTypesForSelectionHandle = Selector.GetHandle("pasteboardTypesForSelection"); private static readonly IntPtr selMainFrameDocumentHandle = Selector.GetHandle("mainFrameDocument"); private static readonly IntPtr selMainFrameTitleHandle = Selector.GetHandle("mainFrameTitle"); private static readonly IntPtr selMainFrameIconHandle = Selector.GetHandle("mainFrameIcon"); private static readonly IntPtr selShouldCloseWithWindowHandle = Selector.GetHandle("shouldCloseWithWindow"); private static readonly IntPtr selSetShouldCloseWithWindow_Handle = Selector.GetHandle("setShouldCloseWithWindow:"); private static readonly IntPtr selResourceLoadDelegateHandle = Selector.GetHandle("resourceLoadDelegate"); private static readonly IntPtr selSetResourceLoadDelegate_Handle = Selector.GetHandle("setResourceLoadDelegate:"); private static readonly IntPtr selDownloadDelegateHandle = Selector.GetHandle("downloadDelegate"); private static readonly IntPtr selSetDownloadDelegate_Handle = Selector.GetHandle("setDownloadDelegate:"); private static readonly IntPtr selFrameLoadDelegateHandle = Selector.GetHandle("frameLoadDelegate"); private static readonly IntPtr selSetFrameLoadDelegate_Handle = Selector.GetHandle("setFrameLoadDelegate:"); private static readonly IntPtr selUIDelegateHandle = Selector.GetHandle("UIDelegate"); private static readonly IntPtr selSetUIDelegate_Handle = Selector.GetHandle("setUIDelegate:"); private static readonly IntPtr selPolicyDelegateHandle = Selector.GetHandle("policyDelegate"); private static readonly IntPtr selSetPolicyDelegate_Handle = Selector.GetHandle("setPolicyDelegate:"); private static readonly IntPtr selTextSizeMultiplierHandle = Selector.GetHandle("textSizeMultiplier"); private static readonly IntPtr selSetTextSizeMultiplier_Handle = Selector.GetHandle("setTextSizeMultiplier:"); private static readonly IntPtr selApplicationNameForUserAgentHandle = Selector.GetHandle("applicationNameForUserAgent"); private static readonly IntPtr selSetApplicationNameForUserAgent_Handle = Selector.GetHandle("setApplicationNameForUserAgent:"); private static readonly IntPtr selCustomUserAgentHandle = Selector.GetHandle("customUserAgent"); private static readonly IntPtr selSetCustomUserAgent_Handle = Selector.GetHandle("setCustomUserAgent:"); private static readonly IntPtr selCustomTextEncodingNameHandle = Selector.GetHandle("customTextEncodingName"); private static readonly IntPtr selSetCustomTextEncodingName_Handle = Selector.GetHandle("setCustomTextEncodingName:"); private static readonly IntPtr selMediaStyleHandle = Selector.GetHandle("mediaStyle"); private static readonly IntPtr selSetMediaStyle_Handle = Selector.GetHandle("setMediaStyle:"); private static readonly IntPtr selPreferencesHandle = Selector.GetHandle("preferences"); private static readonly IntPtr selSetPreferences_Handle = Selector.GetHandle("setPreferences:"); private static readonly IntPtr selPreferencesIdentifierHandle = Selector.GetHandle("preferencesIdentifier"); private static readonly IntPtr selSetPreferencesIdentifier_Handle = Selector.GetHandle("setPreferencesIdentifier:"); private static readonly IntPtr selHostWindowHandle = Selector.GetHandle("hostWindow"); private static readonly IntPtr selSetHostWindow_Handle = Selector.GetHandle("setHostWindow:"); private static readonly IntPtr selGroupNameHandle = Selector.GetHandle("groupName"); private static readonly IntPtr selSetGroupName_Handle = Selector.GetHandle("setGroupName:"); private static readonly IntPtr selDrawsBackgroundHandle = Selector.GetHandle("drawsBackground"); private static readonly IntPtr selSetDrawsBackground_Handle = Selector.GetHandle("setDrawsBackground:"); private static readonly IntPtr selShouldUpdateWhileOffscreenHandle = Selector.GetHandle("shouldUpdateWhileOffscreen"); private static readonly IntPtr selSetShouldUpdateWhileOffscreen_Handle = Selector.GetHandle("setShouldUpdateWhileOffscreen:"); private static readonly IntPtr selMainFrameURLHandle = Selector.GetHandle("mainFrameURL"); private static readonly IntPtr selSetMainFrameURL_Handle = Selector.GetHandle("setMainFrameURL:"); private static readonly IntPtr selSelectedDOMRangeHandle = Selector.GetHandle("selectedDOMRange"); private static readonly IntPtr selSelectionAffinityHandle = Selector.GetHandle("selectionAffinity"); private static readonly IntPtr selMaintainsInactiveSelectionHandle = Selector.GetHandle("maintainsInactiveSelection"); private static readonly IntPtr selSpellCheckerDocumentTagHandle = Selector.GetHandle("spellCheckerDocumentTag"); private static readonly IntPtr selUndoManagerHandle = Selector.GetHandle("undoManager"); private static readonly IntPtr selIsEditableHandle = Selector.GetHandle("isEditable"); private static readonly IntPtr selSetEditable_Handle = Selector.GetHandle("setEditable:"); private static readonly IntPtr selTypingStyleHandle = Selector.GetHandle("typingStyle"); private static readonly IntPtr selSetTypingStyle_Handle = Selector.GetHandle("setTypingStyle:"); private static readonly IntPtr selSmartInsertDeleteEnabledHandle = Selector.GetHandle("smartInsertDeleteEnabled"); private static readonly IntPtr selSetSmartInsertDeleteEnabled_Handle = Selector.GetHandle("setSmartInsertDeleteEnabled:"); private static readonly IntPtr selIsContinuousSpellCheckingEnabledHandle = Selector.GetHandle("isContinuousSpellCheckingEnabled"); private static readonly IntPtr selSetContinuousSpellCheckingEnabled_Handle = Selector.GetHandle("setContinuousSpellCheckingEnabled:"); private static readonly IntPtr selEditingDelegateHandle = Selector.GetHandle("editingDelegate"); private static readonly IntPtr selSetEditingDelegate_Handle = Selector.GetHandle("setEditingDelegate:"); private static readonly IntPtr selCanShowMIMEType_Handle = Selector.GetHandle("canShowMIMEType:"); private static readonly IntPtr selCanShowMIMETypeAsHTML_Handle = Selector.GetHandle("canShowMIMETypeAsHTML:"); private static readonly IntPtr selURLFromPasteboard_Handle = Selector.GetHandle("URLFromPasteboard:"); private static readonly IntPtr selURLTitleFromPasteboard_Handle = Selector.GetHandle("URLTitleFromPasteboard:"); private static readonly IntPtr selRegisterURLSchemeAsLocal_Handle = Selector.GetHandle("registerURLSchemeAsLocal:"); private static readonly IntPtr selInitWithFrameFrameNameGroupName_Handle = Selector.GetHandle("initWithFrame:frameName:groupName:"); private static readonly IntPtr selCloseHandle = Selector.GetHandle("close"); private static readonly IntPtr selSetMaintainsBackForwardList_Handle = Selector.GetHandle("setMaintainsBackForwardList:"); private static readonly IntPtr selGoBackHandle = Selector.GetHandle("goBack"); private static readonly IntPtr selGoForwardHandle = Selector.GetHandle("goForward"); private static readonly IntPtr selGoToBackForwardItem_Handle = Selector.GetHandle("goToBackForwardItem:"); private static readonly IntPtr selUserAgentForURL_Handle = Selector.GetHandle("userAgentForURL:"); private static readonly IntPtr selStringByEvaluatingJavaScriptFromString_Handle = Selector.GetHandle("stringByEvaluatingJavaScriptFromString:"); private static readonly IntPtr selSearchForDirectionCaseSensitiveWrap_Handle = Selector.GetHandle("searchFor:direction:caseSensitive:wrap:"); private static readonly IntPtr selRegisterViewClassRepresentationClassForMIMEType_Handle = Selector.GetHandle("registerViewClass:representationClass:forMIMEType:"); private static readonly IntPtr selElementAtPoint_Handle = Selector.GetHandle("elementAtPoint:"); private static readonly IntPtr selWriteSelectionWithPasteboardTypesToPasteboard_Handle = Selector.GetHandle("writeSelectionWithPasteboardTypes:toPasteboard:"); private static readonly IntPtr selPasteboardTypesForElement_Handle = Selector.GetHandle("pasteboardTypesForElement:"); private static readonly IntPtr selWriteElementWithPasteboardTypesToPasteboard_Handle = Selector.GetHandle("writeElement:withPasteboardTypes:toPasteboard:"); private static readonly IntPtr selMoveDragCaretToPoint_Handle = Selector.GetHandle("moveDragCaretToPoint:"); private static readonly IntPtr selRemoveDragCaretHandle = Selector.GetHandle("removeDragCaret"); private static readonly IntPtr selReload_Handle = Selector.GetHandle("reload:"); private static readonly IntPtr selReloadFromOrigin_Handle = Selector.GetHandle("reloadFromOrigin:"); private static readonly IntPtr selCanGoBackHandle = Selector.GetHandle("canGoBack"); private static readonly IntPtr selCanGoForwardHandle = Selector.GetHandle("canGoForward"); private static readonly IntPtr selCanMakeTextLargerHandle = Selector.GetHandle("canMakeTextLarger"); private static readonly IntPtr selMakeTextLarger_Handle = Selector.GetHandle("makeTextLarger:"); private static readonly IntPtr selCanMakeTextSmallerHandle = Selector.GetHandle("canMakeTextSmaller"); private static readonly IntPtr selMakeTextSmaller_Handle = Selector.GetHandle("makeTextSmaller:"); private static readonly IntPtr selCanMakeTextStandardSizeHandle = Selector.GetHandle("canMakeTextStandardSize"); private static readonly IntPtr selMakeTextStandardSize_Handle = Selector.GetHandle("makeTextStandardSize:"); private static readonly IntPtr selToggleContinuousSpellChecking_Handle = Selector.GetHandle("toggleContinuousSpellChecking:"); private static readonly IntPtr selToggleSmartInsertDelete_Handle = Selector.GetHandle("toggleSmartInsertDelete:"); private static readonly IntPtr selStyleDeclarationWithText_Handle = Selector.GetHandle("styleDeclarationWithText:"); private static readonly IntPtr selReplaceSelectionWithMarkupString_Handle = Selector.GetHandle("replaceSelectionWithMarkupString:"); private static readonly IntPtr selReplaceSelectionWithArchive_Handle = Selector.GetHandle("replaceSelectionWithArchive:"); private static readonly IntPtr selDeleteSelectionHandle = Selector.GetHandle("deleteSelection"); private static readonly IntPtr selApplyStyle_Handle = Selector.GetHandle("applyStyle:"); private static readonly IntPtr selCut_Handle = Selector.GetHandle("cut:"); private static readonly IntPtr selPaste_Handle = Selector.GetHandle("paste:"); private static readonly IntPtr selCopyFont_Handle = Selector.GetHandle("copyFont:"); private static readonly IntPtr selPasteFont_Handle = Selector.GetHandle("pasteFont:"); private static readonly IntPtr selDelete_Handle = Selector.GetHandle("delete:"); private static readonly IntPtr selPasteAsPlainText_Handle = Selector.GetHandle("pasteAsPlainText:"); private static readonly IntPtr selPasteAsRichText_Handle = Selector.GetHandle("pasteAsRichText:"); private static readonly IntPtr selChangeFont_Handle = Selector.GetHandle("changeFont:"); private static readonly IntPtr selChangeAttributes_Handle = Selector.GetHandle("changeAttributes:"); private static readonly IntPtr selChangeDocumentBackgroundColor_Handle = Selector.GetHandle("changeDocumentBackgroundColor:"); private static readonly IntPtr selChangeColor_Handle = Selector.GetHandle("changeColor:"); private static readonly IntPtr selAlignCenter_Handle = Selector.GetHandle("alignCenter:"); private static readonly IntPtr selAlignJustified_Handle = Selector.GetHandle("alignJustified:"); private static readonly IntPtr selAlignLeft_Handle = Selector.GetHandle("alignLeft:"); private static readonly IntPtr selAlignRight_Handle = Selector.GetHandle("alignRight:"); private static readonly IntPtr selCheckSpelling_Handle = Selector.GetHandle("checkSpelling:"); private static readonly IntPtr selShowGuessPanel_Handle = Selector.GetHandle("showGuessPanel:"); private static readonly IntPtr selPerformFindPanelAction_Handle = Selector.GetHandle("performFindPanelAction:"); private static readonly IntPtr selStartSpeaking_Handle = Selector.GetHandle("startSpeaking:"); private static readonly IntPtr selStopSpeaking_Handle = Selector.GetHandle("stopSpeaking:"); private static readonly IntPtr selMoveToBeginningOfSentence_Handle = Selector.GetHandle("moveToBeginningOfSentence:"); private static readonly IntPtr selMoveToBeginningOfSentenceAndModifySelection_Handle = Selector.GetHandle("moveToBeginningOfSentenceAndModifySelection:"); private static readonly IntPtr selMoveToEndOfSentence_Handle = Selector.GetHandle("moveToEndOfSentence:"); private static readonly IntPtr selMoveToEndOfSentenceAndModifySelection_Handle = Selector.GetHandle("moveToEndOfSentenceAndModifySelection:"); private static readonly IntPtr selSelectSentence_Handle = Selector.GetHandle("selectSentence:"); private static readonly IntPtr class_ptr = Class.GetHandle("WebView"); private object __mt_MainFrame_var; private object __mt_SelectedFrame_var; private object __mt_BackForwardList_var; private object __mt_WindowScriptObject_var; private object __mt_PasteboardTypesForSelection_var; private object __mt_MainFrameDocument_var; private object __mt_MainFrameIcon_var; private object __mt_WeakResourceLoadDelegate_var; private object __mt_WeakDownloadDelegate_var; private object __mt_WeakFrameLoadDelegate_var; private object __mt_WeakUIDelegate_var; private object __mt_WeakPolicyDelegate_var; private object __mt_Preferences_var; private object __mt_HostWindow_var; private object __mt_SelectedDomRange_var; private object __mt_UndoManager_var; private object __mt_TypingStyle_var; private object __mt_EditingDelegate_var; public override IntPtr ClassHandle => class_ptr; public static string[] MimeTypesShownAsHtml { [Export("MIMETypesShownAsHTML")] get { return NSArray.StringArrayFromHandle(Messaging.IntPtr_objc_msgSend(class_ptr, selMIMETypesShownAsHTMLHandle)); } [Export("setMIMETypesShownAsHTML:")] set { if (value == null) { throw new ArgumentNullException("value"); } NSArray nSArray = NSArray.FromStrings(value); Messaging.void_objc_msgSend_IntPtr(class_ptr, selSetMIMETypesShownAsHTML_Handle, nSArray.Handle); nSArray.Dispose(); } } public virtual WebFrame MainFrame { [Export("mainFrame")] get { return (WebFrame)(__mt_MainFrame_var = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainFrameHandle))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainFrameHandle))))); } } public virtual WebFrame SelectedFrame { [Export("selectedFrame")] get { return (WebFrame)(__mt_SelectedFrame_var = ((!IsDirectBinding) ? ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedFrameHandle))) : ((WebFrame)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedFrameHandle))))); } } public virtual WebBackForwardList BackForwardList { [Export("backForwardList")] get { return (WebBackForwardList)(__mt_BackForwardList_var = ((!IsDirectBinding) ? ((WebBackForwardList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selBackForwardListHandle))) : ((WebBackForwardList)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selBackForwardListHandle))))); } } public virtual bool SupportsTextEncoding { [Export("supportsTextEncoding")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSupportsTextEncodingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSupportsTextEncodingHandle); } } public virtual WebScriptObject WindowScriptObject { [Export("windowScriptObject")] get { return (WebScriptObject)(__mt_WindowScriptObject_var = ((!IsDirectBinding) ? ((WebScriptObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selWindowScriptObjectHandle))) : ((WebScriptObject)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selWindowScriptObjectHandle))))); } } public virtual double EstimatedProgress { [Export("estimatedProgress")] get { if (IsDirectBinding) { return Messaging.Double_objc_msgSend(base.Handle, selEstimatedProgressHandle); } return Messaging.Double_objc_msgSendSuper(base.SuperHandle, selEstimatedProgressHandle); } } public virtual bool IsLoading { [Export("isLoading")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsLoadingHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsLoadingHandle); } } public virtual NSPasteboard[] PasteboardTypesForSelection { [Export("pasteboardTypesForSelection")] get { return (NSPasteboard[])(__mt_PasteboardTypesForSelection_var = ((!IsDirectBinding) ? NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPasteboardTypesForSelectionHandle)) : NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPasteboardTypesForSelectionHandle)))); } } public virtual DomDocument MainFrameDocument { [Export("mainFrameDocument")] get { return (DomDocument)(__mt_MainFrameDocument_var = ((!IsDirectBinding) ? ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainFrameDocumentHandle))) : ((DomDocument)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainFrameDocumentHandle))))); } } public virtual string MainFrameTitle { [Export("mainFrameTitle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMainFrameTitleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainFrameTitleHandle)); } } public virtual NSImage MainFrameIcon { [Export("mainFrameIcon")] get { return (NSImage)(__mt_MainFrameIcon_var = ((!IsDirectBinding) ? ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainFrameIconHandle))) : ((NSImage)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selMainFrameIconHandle))))); } } public virtual bool ShouldCloseWithWindow { [Export("shouldCloseWithWindow")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldCloseWithWindowHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldCloseWithWindowHandle); } [Export("setShouldCloseWithWindow:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldCloseWithWindow_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldCloseWithWindow_Handle, value); } } } public virtual NSObject WeakResourceLoadDelegate { [Export("resourceLoadDelegate")] get { return (NSObject)(__mt_WeakResourceLoadDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selResourceLoadDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selResourceLoadDelegateHandle)))); } [Export("setResourceLoadDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetResourceLoadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetResourceLoadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakResourceLoadDelegate_var = value; } } public WebResourceLoadDelegate ResourceLoadDelegate { get { return WeakResourceLoadDelegate as WebResourceLoadDelegate; } set { WeakResourceLoadDelegate = value; } } public virtual NSObject WeakDownloadDelegate { [Export("downloadDelegate")] get { return (NSObject)(__mt_WeakDownloadDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selDownloadDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selDownloadDelegateHandle)))); } [Export("setDownloadDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetDownloadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetDownloadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakDownloadDelegate_var = value; } } public WebDownloadDelegate DownloadDelegate { get { return WeakDownloadDelegate as WebDownloadDelegate; } set { WeakDownloadDelegate = value; } } public virtual NSObject WeakFrameLoadDelegate { [Export("frameLoadDelegate")] get { return (NSObject)(__mt_WeakFrameLoadDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selFrameLoadDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selFrameLoadDelegateHandle)))); } [Export("setFrameLoadDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetFrameLoadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetFrameLoadDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakFrameLoadDelegate_var = value; } } public WebFrameLoadDelegate FrameLoadDelegate { get { return WeakFrameLoadDelegate as WebFrameLoadDelegate; } set { WeakFrameLoadDelegate = value; } } public virtual NSObject WeakUIDelegate { [Export("UIDelegate")] get { return (NSObject)(__mt_WeakUIDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUIDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUIDelegateHandle)))); } [Export("setUIDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetUIDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetUIDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakUIDelegate_var = value; } } public WebUIDelegate UIDelegate { get { return WeakUIDelegate as WebUIDelegate; } set { WeakUIDelegate = value; } } public virtual NSObject WeakPolicyDelegate { [Export("policyDelegate")] get { return (NSObject)(__mt_WeakPolicyDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPolicyDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPolicyDelegateHandle)))); } [Export("setPolicyDelegate:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPolicyDelegate_Handle, value?.Handle ?? IntPtr.Zero); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPolicyDelegate_Handle, value?.Handle ?? IntPtr.Zero); } __mt_WeakPolicyDelegate_var = value; } } public WebPolicyDelegate PolicyDelegate { get { return WeakPolicyDelegate as WebPolicyDelegate; } set { WeakPolicyDelegate = value; } } public virtual float TextSizeMultiplier { [Export("textSizeMultiplier")] get { if (IsDirectBinding) { return Messaging.float_objc_msgSend(base.Handle, selTextSizeMultiplierHandle); } return Messaging.float_objc_msgSendSuper(base.SuperHandle, selTextSizeMultiplierHandle); } [Export("setTextSizeMultiplier:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_float(base.Handle, selSetTextSizeMultiplier_Handle, value); } else { Messaging.void_objc_msgSendSuper_float(base.SuperHandle, selSetTextSizeMultiplier_Handle, value); } } } public virtual string ApplicationNameForUserAgent { [Export("applicationNameForUserAgent")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selApplicationNameForUserAgentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selApplicationNameForUserAgentHandle)); } [Export("setApplicationNameForUserAgent:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetApplicationNameForUserAgent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetApplicationNameForUserAgent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CustomUserAgent { [Export("customUserAgent")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCustomUserAgentHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCustomUserAgentHandle)); } [Export("setCustomUserAgent:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCustomUserAgent_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCustomUserAgent_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string CustomTextEncodingName { [Export("customTextEncodingName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selCustomTextEncodingNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selCustomTextEncodingNameHandle)); } [Export("setCustomTextEncodingName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetCustomTextEncodingName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetCustomTextEncodingName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual string MediaStyle { [Export("mediaStyle")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMediaStyleHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMediaStyleHandle)); } [Export("setMediaStyle:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMediaStyle_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMediaStyle_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual WebPreferences Preferences { [Export("preferences")] get { return (WebPreferences)(__mt_Preferences_var = ((!IsDirectBinding) ? ((WebPreferences)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferencesHandle))) : ((WebPreferences)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferencesHandle))))); } [Export("setPreferences:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPreferences_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPreferences_Handle, value.Handle); } __mt_Preferences_var = value; } } public virtual string PreferencesIdentifier { [Export("preferencesIdentifier")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selPreferencesIdentifierHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selPreferencesIdentifierHandle)); } [Export("setPreferencesIdentifier:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetPreferencesIdentifier_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetPreferencesIdentifier_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual NSWindow HostWindow { [Export("hostWindow")] get { return (NSWindow)(__mt_HostWindow_var = ((!IsDirectBinding) ? ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selHostWindowHandle))) : ((NSWindow)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selHostWindowHandle))))); } [Export("setHostWindow:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetHostWindow_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetHostWindow_Handle, value.Handle); } __mt_HostWindow_var = value; } } public virtual string GroupName { [Export("groupName")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selGroupNameHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selGroupNameHandle)); } [Export("setGroupName:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetGroupName_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetGroupName_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual bool DrawsBackground { [Export("drawsBackground")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selDrawsBackgroundHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selDrawsBackgroundHandle); } [Export("setDrawsBackground:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetDrawsBackground_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetDrawsBackground_Handle, value); } } } public virtual bool UpdateWhileOffscreen { [Export("shouldUpdateWhileOffscreen")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selShouldUpdateWhileOffscreenHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selShouldUpdateWhileOffscreenHandle); } [Export("setShouldUpdateWhileOffscreen:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetShouldUpdateWhileOffscreen_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetShouldUpdateWhileOffscreen_Handle, value); } } } public virtual string MainFrameUrl { [Export("mainFrameURL")] get { if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend(base.Handle, selMainFrameURLHandle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selMainFrameURLHandle)); } [Export("setMainFrameURL:")] set { if (value == null) { throw new ArgumentNullException("value"); } IntPtr arg = NSString.CreateNative(value); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetMainFrameURL_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetMainFrameURL_Handle, arg); } NSString.ReleaseNative(arg); } } public virtual DomRange SelectedDomRange { [Export("selectedDOMRange")] get { return (DomRange)(__mt_SelectedDomRange_var = ((!IsDirectBinding) ? ((DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selSelectedDOMRangeHandle))) : ((DomRange)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selSelectedDOMRangeHandle))))); } } public virtual NSSelectionAffinity SelectionAffinity { [Export("selectionAffinity")] get { if (IsDirectBinding) { return (NSSelectionAffinity)Messaging.UInt64_objc_msgSend(base.Handle, selSelectionAffinityHandle); } return (NSSelectionAffinity)Messaging.UInt64_objc_msgSendSuper(base.SuperHandle, selSelectionAffinityHandle); } } public virtual bool MaintainsInactiveSelection { [Export("maintainsInactiveSelection")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selMaintainsInactiveSelectionHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selMaintainsInactiveSelectionHandle); } } public virtual int SpellCheckerDocumentTag { [Export("spellCheckerDocumentTag")] get { if (IsDirectBinding) { return Messaging.int_objc_msgSend(base.Handle, selSpellCheckerDocumentTagHandle); } return Messaging.int_objc_msgSendSuper(base.SuperHandle, selSpellCheckerDocumentTagHandle); } } public virtual NSUndoManager UndoManager { [Export("undoManager")] get { return (NSUndoManager)(__mt_UndoManager_var = ((!IsDirectBinding) ? ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selUndoManagerHandle))) : ((NSUndoManager)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selUndoManagerHandle))))); } } public virtual bool Editable { [Export("isEditable")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsEditableHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsEditableHandle); } [Export("setEditable:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetEditable_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetEditable_Handle, value); } } } public virtual DomCssStyleDeclaration TypingStyle { [Export("typingStyle")] get { return (DomCssStyleDeclaration)(__mt_TypingStyle_var = ((!IsDirectBinding) ? ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selTypingStyleHandle))) : ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selTypingStyleHandle))))); } [Export("setTypingStyle:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetTypingStyle_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetTypingStyle_Handle, value.Handle); } __mt_TypingStyle_var = value; } } public virtual bool SmartInsertDeleteEnabled { [Export("smartInsertDeleteEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selSmartInsertDeleteEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selSmartInsertDeleteEnabledHandle); } [Export("setSmartInsertDeleteEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetSmartInsertDeleteEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetSmartInsertDeleteEnabled_Handle, value); } } } public virtual bool ContinuousSpellCheckingEnabled { [Export("isContinuousSpellCheckingEnabled")] get { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selIsContinuousSpellCheckingEnabledHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selIsContinuousSpellCheckingEnabledHandle); } [Export("setContinuousSpellCheckingEnabled:")] set { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetContinuousSpellCheckingEnabled_Handle, value); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetContinuousSpellCheckingEnabled_Handle, value); } } } public virtual NSObject EditingDelegate { [Export("editingDelegate")] get { return (NSObject)(__mt_EditingDelegate_var = ((!IsDirectBinding) ? Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, selEditingDelegateHandle)) : Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend(base.Handle, selEditingDelegateHandle)))); } [Export("setEditingDelegate:")] set { if (value == null) { throw new ArgumentNullException("value"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSetEditingDelegate_Handle, value.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSetEditingDelegate_Handle, value.Handle); } __mt_EditingDelegate_var = value; } } public WebDownloadRequest OnDownloadWindowForSheet { get { return EnsureWebDownloadDelegate().onDownloadWindowForSheet; } set { EnsureWebDownloadDelegate().onDownloadWindowForSheet = value; } } public WebResourceIdentifierRequest OnIdentifierForInitialRequest { get { return EnsureWebResourceLoadDelegate().onIdentifierForInitialRequest; } set { EnsureWebResourceLoadDelegate().onIdentifierForInitialRequest = value; } } public WebResourceOnRequestSend OnSendRequest { get { return EnsureWebResourceLoadDelegate().onSendRequest; } set { EnsureWebResourceLoadDelegate().onSendRequest = value; } } public CreateWebViewFromRequest UICreateWebView { get { return EnsureWebUIDelegate().uICreateWebView; } set { EnsureWebUIDelegate().uICreateWebView = value; } } public WebViewCreate UICreateModalDialog { get { return EnsureWebUIDelegate().uICreateModalDialog; } set { EnsureWebUIDelegate().uICreateModalDialog = value; } } public WebViewGetResponder UIGetFirstResponder { get { return EnsureWebUIDelegate().uIGetFirstResponder; } set { EnsureWebUIDelegate().uIGetFirstResponder = value; } } public WebViewGetString UIGetStatusText { get { return EnsureWebUIDelegate().uIGetStatusText; } set { EnsureWebUIDelegate().uIGetStatusText = value; } } public WebViewGetBool UIAreToolbarsVisible { get { return EnsureWebUIDelegate().uIAreToolbarsVisible; } set { EnsureWebUIDelegate().uIAreToolbarsVisible = value; } } public WebViewGetBool UIIsStatusBarVisible { get { return EnsureWebUIDelegate().uIIsStatusBarVisible; } set { EnsureWebUIDelegate().uIIsStatusBarVisible = value; } } public WebViewGetBool UIIsResizable { get { return EnsureWebUIDelegate().uIIsResizable; } set { EnsureWebUIDelegate().uIIsResizable = value; } } public WebViewGetRectangle UIGetFrame { get { return EnsureWebUIDelegate().uIGetFrame; } set { EnsureWebUIDelegate().uIGetFrame = value; } } public WebViewConfirmationPanel UIRunJavaScriptConfirmationPanel { get { return EnsureWebUIDelegate().uIRunJavaScriptConfirmationPanel; } set { EnsureWebUIDelegate().uIRunJavaScriptConfirmationPanel = value; } } public WebViewPromptPanel UIRunJavaScriptTextInputPanelWithFrame { get { return EnsureWebUIDelegate().uIRunJavaScriptTextInputPanelWithFrame; } set { EnsureWebUIDelegate().uIRunJavaScriptTextInputPanelWithFrame = value; } } public WebViewJavaScriptFrame UIRunBeforeUnload { get { return EnsureWebUIDelegate().uIRunBeforeUnload; } set { EnsureWebUIDelegate().uIRunBeforeUnload = value; } } public WebViewGetContextMenuItems UIGetContextMenuItems { get { return EnsureWebUIDelegate().uIGetContextMenuItems; } set { EnsureWebUIDelegate().uIGetContextMenuItems = value; } } public WebViewValidateUserInterface UIValidateUserInterfaceItem { get { return EnsureWebUIDelegate().uIValidateUserInterfaceItem; } set { EnsureWebUIDelegate().uIValidateUserInterfaceItem = value; } } public WebViewPerformAction UIShouldPerformActionfromSender { get { return EnsureWebUIDelegate().uIShouldPerformActionfromSender; } set { EnsureWebUIDelegate().uIShouldPerformActionfromSender = value; } } public DragDestinationGetActionMask UIGetDragDestinationActionMask { get { return EnsureWebUIDelegate().uIGetDragDestinationActionMask; } set { EnsureWebUIDelegate().uIGetDragDestinationActionMask = value; } } public DragSourceGetActionMask UIDragSourceActionMask { get { return EnsureWebUIDelegate().uIDragSourceActionMask; } set { EnsureWebUIDelegate().uIDragSourceActionMask = value; } } public WebViewGetFloat UIGetHeaderHeight { get { return EnsureWebUIDelegate().uIGetHeaderHeight; } set { EnsureWebUIDelegate().uIGetHeaderHeight = value; } } public WebViewGetFloat UIGetFooterHeight { get { return EnsureWebUIDelegate().uIGetFooterHeight; } set { EnsureWebUIDelegate().uIGetFooterHeight = value; } } public WebViewPrompt UIRunJavaScriptConfirmPanel { get { return EnsureWebUIDelegate().uIRunJavaScriptConfirmPanel; } set { EnsureWebUIDelegate().uIRunJavaScriptConfirmPanel = value; } } public WebViewJavaScriptInput UIRunJavaScriptTextInputPanel { get { return EnsureWebUIDelegate().uIRunJavaScriptTextInputPanel; } set { EnsureWebUIDelegate().uIRunJavaScriptTextInputPanel = value; } } public WebViewGetRectangle UIGetContentRect { get { return EnsureWebUIDelegate().uIGetContentRect; } set { EnsureWebUIDelegate().uIGetContentRect = value; } } public event EventHandler StartedProvisionalLoad { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.startedProvisionalLoad = (EventHandler)Delegate.Combine(webFrameLoadDelegate.startedProvisionalLoad, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.startedProvisionalLoad = (EventHandler)Delegate.Remove(webFrameLoadDelegate.startedProvisionalLoad, value); } } public event EventHandler ReceivedServerRedirectForProvisionalLoad { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedServerRedirectForProvisionalLoad = (EventHandler)Delegate.Combine(webFrameLoadDelegate.receivedServerRedirectForProvisionalLoad, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedServerRedirectForProvisionalLoad = (EventHandler)Delegate.Remove(webFrameLoadDelegate.receivedServerRedirectForProvisionalLoad, value); } } public event EventHandler FailedProvisionalLoad { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.failedProvisionalLoad = (EventHandler)Delegate.Combine(webFrameLoadDelegate.failedProvisionalLoad, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.failedProvisionalLoad = (EventHandler)Delegate.Remove(webFrameLoadDelegate.failedProvisionalLoad, value); } } public event EventHandler CommitedLoad { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.commitedLoad = (EventHandler)Delegate.Combine(webFrameLoadDelegate.commitedLoad, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.commitedLoad = (EventHandler)Delegate.Remove(webFrameLoadDelegate.commitedLoad, value); } } public event EventHandler ReceivedTitle { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedTitle = (EventHandler)Delegate.Combine(webFrameLoadDelegate.receivedTitle, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedTitle = (EventHandler)Delegate.Remove(webFrameLoadDelegate.receivedTitle, value); } } public event EventHandler ReceivedIcon { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedIcon = (EventHandler)Delegate.Combine(webFrameLoadDelegate.receivedIcon, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.receivedIcon = (EventHandler)Delegate.Remove(webFrameLoadDelegate.receivedIcon, value); } } public event EventHandler FinishedLoad { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.finishedLoad = (EventHandler)Delegate.Combine(webFrameLoadDelegate.finishedLoad, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.finishedLoad = (EventHandler)Delegate.Remove(webFrameLoadDelegate.finishedLoad, value); } } public event EventHandler FailedLoadWithError { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.failedLoadWithError = (EventHandler)Delegate.Combine(webFrameLoadDelegate.failedLoadWithError, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.failedLoadWithError = (EventHandler)Delegate.Remove(webFrameLoadDelegate.failedLoadWithError, value); } } public event EventHandler ChangedLocationWithinPage { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.changedLocationWithinPage = (EventHandler)Delegate.Combine(webFrameLoadDelegate.changedLocationWithinPage, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.changedLocationWithinPage = (EventHandler)Delegate.Remove(webFrameLoadDelegate.changedLocationWithinPage, value); } } public event EventHandler WillPerformClientRedirect { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.willPerformClientRedirect = (EventHandler)Delegate.Combine(webFrameLoadDelegate.willPerformClientRedirect, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.willPerformClientRedirect = (EventHandler)Delegate.Remove(webFrameLoadDelegate.willPerformClientRedirect, value); } } public event EventHandler CanceledClientRedirect { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.canceledClientRedirect = (EventHandler)Delegate.Combine(webFrameLoadDelegate.canceledClientRedirect, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.canceledClientRedirect = (EventHandler)Delegate.Remove(webFrameLoadDelegate.canceledClientRedirect, value); } } public event EventHandler WillCloseFrame { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.willCloseFrame = (EventHandler)Delegate.Combine(webFrameLoadDelegate.willCloseFrame, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.willCloseFrame = (EventHandler)Delegate.Remove(webFrameLoadDelegate.willCloseFrame, value); } } public event EventHandler ClearedWindowObject { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.clearedWindowObject = (EventHandler)Delegate.Combine(webFrameLoadDelegate.clearedWindowObject, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.clearedWindowObject = (EventHandler)Delegate.Remove(webFrameLoadDelegate.clearedWindowObject, value); } } public event EventHandler WindowScriptObjectAvailable { add { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.windowScriptObjectAvailable = (EventHandler)Delegate.Combine(webFrameLoadDelegate.windowScriptObjectAvailable, value); } remove { _WebFrameLoadDelegate webFrameLoadDelegate = EnsureWebFrameLoadDelegate(); webFrameLoadDelegate.windowScriptObjectAvailable = (EventHandler)Delegate.Remove(webFrameLoadDelegate.windowScriptObjectAvailable, value); } } public event EventHandler OnReceivedAuthenticationChallenge { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedAuthenticationChallenge = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onReceivedAuthenticationChallenge, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedAuthenticationChallenge = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onReceivedAuthenticationChallenge, value); } } public event EventHandler OnCancelledAuthenticationChallenge { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onCancelledAuthenticationChallenge = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onCancelledAuthenticationChallenge, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onCancelledAuthenticationChallenge = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onCancelledAuthenticationChallenge, value); } } public event EventHandler OnReceivedResponse { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedResponse = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onReceivedResponse, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedResponse = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onReceivedResponse, value); } } public event EventHandler OnReceivedContentLength { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedContentLength = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onReceivedContentLength, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onReceivedContentLength = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onReceivedContentLength, value); } } public event EventHandler OnFinishedLoading { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onFinishedLoading = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onFinishedLoading, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onFinishedLoading = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onFinishedLoading, value); } } public event EventHandler OnFailedLoading { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onFailedLoading = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onFailedLoading, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onFailedLoading = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onFailedLoading, value); } } public event EventHandler OnPlugInFailed { add { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onPlugInFailed = (EventHandler)Delegate.Combine(webResourceLoadDelegate.onPlugInFailed, value); } remove { _WebResourceLoadDelegate webResourceLoadDelegate = EnsureWebResourceLoadDelegate(); webResourceLoadDelegate.onPlugInFailed = (EventHandler)Delegate.Remove(webResourceLoadDelegate.onPlugInFailed, value); } } public event EventHandler UIShow { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIShow = (EventHandler)Delegate.Combine(webUIDelegate.uIShow, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIShow = (EventHandler)Delegate.Remove(webUIDelegate.uIShow, value); } } public event EventHandler UIRunModal { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunModal = (EventHandler)Delegate.Combine(webUIDelegate.uIRunModal, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunModal = (EventHandler)Delegate.Remove(webUIDelegate.uIRunModal, value); } } public event EventHandler UIClose { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIClose = (EventHandler)Delegate.Combine(webUIDelegate.uIClose, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIClose = (EventHandler)Delegate.Remove(webUIDelegate.uIClose, value); } } public event EventHandler UIFocus { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIFocus = (EventHandler)Delegate.Combine(webUIDelegate.uIFocus, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIFocus = (EventHandler)Delegate.Remove(webUIDelegate.uIFocus, value); } } public event EventHandler UIUnfocus { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIUnfocus = (EventHandler)Delegate.Combine(webUIDelegate.uIUnfocus, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIUnfocus = (EventHandler)Delegate.Remove(webUIDelegate.uIUnfocus, value); } } public event EventHandler UIMakeFirstResponder { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIMakeFirstResponder = (EventHandler)Delegate.Combine(webUIDelegate.uIMakeFirstResponder, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIMakeFirstResponder = (EventHandler)Delegate.Remove(webUIDelegate.uIMakeFirstResponder, value); } } public event EventHandler UISetStatusText { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetStatusText = (EventHandler)Delegate.Combine(webUIDelegate.uISetStatusText, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetStatusText = (EventHandler)Delegate.Remove(webUIDelegate.uISetStatusText, value); } } public event EventHandler UISetToolbarsVisible { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetToolbarsVisible = (EventHandler)Delegate.Combine(webUIDelegate.uISetToolbarsVisible, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetToolbarsVisible = (EventHandler)Delegate.Remove(webUIDelegate.uISetToolbarsVisible, value); } } public event EventHandler UISetStatusBarVisible { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetStatusBarVisible = (EventHandler)Delegate.Combine(webUIDelegate.uISetStatusBarVisible, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetStatusBarVisible = (EventHandler)Delegate.Remove(webUIDelegate.uISetStatusBarVisible, value); } } public event EventHandler UISetResizable { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetResizable = (EventHandler)Delegate.Combine(webUIDelegate.uISetResizable, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetResizable = (EventHandler)Delegate.Remove(webUIDelegate.uISetResizable, value); } } public event EventHandler UISetFrame { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetFrame = (EventHandler)Delegate.Combine(webUIDelegate.uISetFrame, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetFrame = (EventHandler)Delegate.Remove(webUIDelegate.uISetFrame, value); } } public event EventHandler UIRunJavaScriptAlertPanelMessage { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunJavaScriptAlertPanelMessage = (EventHandler)Delegate.Combine(webUIDelegate.uIRunJavaScriptAlertPanelMessage, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunJavaScriptAlertPanelMessage = (EventHandler)Delegate.Remove(webUIDelegate.uIRunJavaScriptAlertPanelMessage, value); } } public event EventHandler UIRunOpenPanelForFileButton { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunOpenPanelForFileButton = (EventHandler)Delegate.Combine(webUIDelegate.uIRunOpenPanelForFileButton, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunOpenPanelForFileButton = (EventHandler)Delegate.Remove(webUIDelegate.uIRunOpenPanelForFileButton, value); } } public event EventHandler UIMouseDidMoveOverElement { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIMouseDidMoveOverElement = (EventHandler)Delegate.Combine(webUIDelegate.uIMouseDidMoveOverElement, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIMouseDidMoveOverElement = (EventHandler)Delegate.Remove(webUIDelegate.uIMouseDidMoveOverElement, value); } } public event EventHandler UIWillPerformDragDestination { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIWillPerformDragDestination = (EventHandler)Delegate.Combine(webUIDelegate.uIWillPerformDragDestination, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIWillPerformDragDestination = (EventHandler)Delegate.Remove(webUIDelegate.uIWillPerformDragDestination, value); } } public event EventHandler UIWillPerformDragSource { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIWillPerformDragSource = (EventHandler)Delegate.Combine(webUIDelegate.uIWillPerformDragSource, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIWillPerformDragSource = (EventHandler)Delegate.Remove(webUIDelegate.uIWillPerformDragSource, value); } } public event EventHandler UIPrintFrameView { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIPrintFrameView = (EventHandler)Delegate.Combine(webUIDelegate.uIPrintFrameView, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIPrintFrameView = (EventHandler)Delegate.Remove(webUIDelegate.uIPrintFrameView, value); } } public event EventHandler UIDrawHeaderInRect { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIDrawHeaderInRect = (EventHandler)Delegate.Combine(webUIDelegate.uIDrawHeaderInRect, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIDrawHeaderInRect = (EventHandler)Delegate.Remove(webUIDelegate.uIDrawHeaderInRect, value); } } public event EventHandler UIDrawFooterInRect { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIDrawFooterInRect = (EventHandler)Delegate.Combine(webUIDelegate.uIDrawFooterInRect, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIDrawFooterInRect = (EventHandler)Delegate.Remove(webUIDelegate.uIDrawFooterInRect, value); } } public event EventHandler UIRunJavaScriptAlertPanel { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunJavaScriptAlertPanel = (EventHandler)Delegate.Combine(webUIDelegate.uIRunJavaScriptAlertPanel, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uIRunJavaScriptAlertPanel = (EventHandler)Delegate.Remove(webUIDelegate.uIRunJavaScriptAlertPanel, value); } } public event EventHandler UISetContentRect { add { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetContentRect = (EventHandler)Delegate.Combine(webUIDelegate.uISetContentRect, value); } remove { _WebUIDelegate webUIDelegate = EnsureWebUIDelegate(); webUIDelegate.uISetContentRect = (EventHandler)Delegate.Remove(webUIDelegate.uISetContentRect, value); } } public event EventHandler DecidePolicyForNavigation { add { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForNavigation = (EventHandler)Delegate.Combine(webPolicyDelegate.decidePolicyForNavigation, value); } remove { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForNavigation = (EventHandler)Delegate.Remove(webPolicyDelegate.decidePolicyForNavigation, value); } } public event EventHandler DecidePolicyForNewWindow { add { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForNewWindow = (EventHandler)Delegate.Combine(webPolicyDelegate.decidePolicyForNewWindow, value); } remove { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForNewWindow = (EventHandler)Delegate.Remove(webPolicyDelegate.decidePolicyForNewWindow, value); } } public event EventHandler DecidePolicyForMimeType { add { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForMimeType = (EventHandler)Delegate.Combine(webPolicyDelegate.decidePolicyForMimeType, value); } remove { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.decidePolicyForMimeType = (EventHandler)Delegate.Remove(webPolicyDelegate.decidePolicyForMimeType, value); } } public event EventHandler UnableToImplementPolicy { add { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.unableToImplementPolicy = (EventHandler)Delegate.Combine(webPolicyDelegate.unableToImplementPolicy, value); } remove { _WebPolicyDelegate webPolicyDelegate = EnsureWebPolicyDelegate(); webPolicyDelegate.unableToImplementPolicy = (EventHandler)Delegate.Remove(webPolicyDelegate.unableToImplementPolicy, value); } } public static void DecideUse(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("token"); } Messaging.void_objc_msgSend(decisionToken.Handle, selUse); } public static void DecideDownload(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } Messaging.void_objc_msgSend(decisionToken.Handle, selDownload); } public static void DecideIgnore(NSObject decisionToken) { if (decisionToken == null) { throw new ArgumentNullException("decisionToken"); } Messaging.void_objc_msgSend(decisionToken.Handle, selIgnore); } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("init")] public WebView() : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend(base.Handle, Selector.Init); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper(base.SuperHandle, Selector.Init); } } [EditorBrowsable(EditorBrowsableState.Advanced)] [Export("initWithCoder:")] public WebView(NSCoder coder) : base(NSObjectFlag.Empty) { if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, Selector.InitWithCoder, coder.Handle); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, Selector.InitWithCoder, coder.Handle); } } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebView(NSObjectFlag t) : base(t) { } [EditorBrowsable(EditorBrowsableState.Advanced)] public WebView(IntPtr handle) : base(handle) { } [Export("canShowMIMEType:")] public static bool CanShowMimeType(string MimeType) { if (MimeType == null) { throw new ArgumentNullException("MimeType"); } IntPtr arg = NSString.CreateNative(MimeType); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanShowMIMEType_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("canShowMIMETypeAsHTML:")] public static bool CanShowMimeTypeAsHtml(string mimeType) { if (mimeType == null) { throw new ArgumentNullException("mimeType"); } IntPtr arg = NSString.CreateNative(mimeType); bool result = Messaging.bool_objc_msgSend_IntPtr(class_ptr, selCanShowMIMETypeAsHTML_Handle, arg); NSString.ReleaseNative(arg); return result; } [Export("URLFromPasteboard:")] public static NSUrl UrlFromPasteboard(NSPasteboard pasteboard) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return (NSUrl)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selURLFromPasteboard_Handle, pasteboard.Handle)); } [Export("URLTitleFromPasteboard:")] public static string UrlTitleFromPasteboard(NSPasteboard pasteboard) { if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selURLTitleFromPasteboard_Handle, pasteboard.Handle)); } [Export("registerURLSchemeAsLocal:")] public static void RegisterUrlSchemeAsLocal(string scheme) { if (scheme == null) { throw new ArgumentNullException("scheme"); } IntPtr arg = NSString.CreateNative(scheme); Messaging.void_objc_msgSend_IntPtr(class_ptr, selRegisterURLSchemeAsLocal_Handle, arg); NSString.ReleaseNative(arg); } [Export("initWithFrame:frameName:groupName:")] public WebView(CGRect frame, string frameName, string groupName) : base(NSObjectFlag.Empty) { if (frameName == null) { throw new ArgumentNullException("frameName"); } if (groupName == null) { throw new ArgumentNullException("groupName"); } IntPtr arg = NSString.CreateNative(frameName); IntPtr arg2 = NSString.CreateNative(groupName); if (IsDirectBinding) { base.Handle = Messaging.IntPtr_objc_msgSend_CGRect_IntPtr_IntPtr(base.Handle, selInitWithFrameFrameNameGroupName_Handle, frame, arg, arg2); } else { base.Handle = Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr_IntPtr(base.SuperHandle, selInitWithFrameFrameNameGroupName_Handle, frame, arg, arg2); } NSString.ReleaseNative(arg); NSString.ReleaseNative(arg2); } [Export("close")] public virtual void Close() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selCloseHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selCloseHandle); } } [Export("setMaintainsBackForwardList:")] public virtual void SetMaintainsBackForwardList(bool flag) { if (IsDirectBinding) { Messaging.void_objc_msgSend_bool(base.Handle, selSetMaintainsBackForwardList_Handle, flag); } else { Messaging.void_objc_msgSendSuper_bool(base.SuperHandle, selSetMaintainsBackForwardList_Handle, flag); } } [Export("goBack")] public virtual bool GoBack() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selGoBackHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selGoBackHandle); } [Export("goForward")] public virtual bool GoForward() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selGoForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selGoForwardHandle); } [Export("goToBackForwardItem:")] public virtual bool GoToBackForwardItem(WebHistoryItem item) { if (item == null) { throw new ArgumentNullException("item"); } if (IsDirectBinding) { return Messaging.bool_objc_msgSend_IntPtr(base.Handle, selGoToBackForwardItem_Handle, item.Handle); } return Messaging.bool_objc_msgSendSuper_IntPtr(base.SuperHandle, selGoToBackForwardItem_Handle, item.Handle); } [Export("userAgentForURL:")] public virtual string UserAgentForUrl(NSUrl url) { if (url == null) { throw new ArgumentNullException("url"); } if (IsDirectBinding) { return NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selUserAgentForURL_Handle, url.Handle)); } return NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selUserAgentForURL_Handle, url.Handle)); } [Export("stringByEvaluatingJavaScriptFromString:")] public virtual string StringByEvaluatingJavaScriptFromString(string script) { if (script == null) { throw new ArgumentNullException("script"); } IntPtr arg = NSString.CreateNative(script); string result = ((!IsDirectBinding) ? NSString.FromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStringByEvaluatingJavaScriptFromString_Handle, arg)) : NSString.FromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStringByEvaluatingJavaScriptFromString_Handle, arg))); NSString.ReleaseNative(arg); return result; } [Export("searchFor:direction:caseSensitive:wrap:")] public virtual bool Search(string forString, bool forward, bool caseSensitive, bool wrap) { if (forString == null) { throw new ArgumentNullException("forString"); } IntPtr arg = NSString.CreateNative(forString); bool result = ((!IsDirectBinding) ? Messaging.bool_objc_msgSendSuper_IntPtr_bool_bool_bool(base.SuperHandle, selSearchForDirectionCaseSensitiveWrap_Handle, arg, forward, caseSensitive, wrap) : Messaging.bool_objc_msgSend_IntPtr_bool_bool_bool(base.Handle, selSearchForDirectionCaseSensitiveWrap_Handle, arg, forward, caseSensitive, wrap)); NSString.ReleaseNative(arg); return result; } [Export("registerViewClass:representationClass:forMIMEType:")] public static void RegisterViewClass(Class viewClass, Class representationClass, string mimeType) { if (viewClass == null) { throw new ArgumentNullException("viewClass"); } if (representationClass == null) { throw new ArgumentNullException("representationClass"); } if (mimeType == null) { throw new ArgumentNullException("mimeType"); } IntPtr arg = NSString.CreateNative(mimeType); Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, selRegisterViewClassRepresentationClassForMIMEType_Handle, viewClass.Handle, representationClass.Handle, arg); NSString.ReleaseNative(arg); } [Export("elementAtPoint:")] public virtual NSDictionary ElementAtPoint(CGPoint point) { if (IsDirectBinding) { return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_CGPoint(base.Handle, selElementAtPoint_Handle, point)); } return (NSDictionary)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_CGPoint(base.SuperHandle, selElementAtPoint_Handle, point)); } [Export("writeSelectionWithPasteboardTypes:toPasteboard:")] public virtual void WriteSelection(NSObject[] types, NSPasteboard pasteboard) { if (types == null) { throw new ArgumentNullException("types"); } if (pasteboard == null) { throw new ArgumentNullException("pasteboard"); } NSArray nSArray = NSArray.FromNSObjects(types); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(base.Handle, selWriteSelectionWithPasteboardTypesToPasteboard_Handle, nSArray.Handle, pasteboard.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(base.SuperHandle, selWriteSelectionWithPasteboardTypesToPasteboard_Handle, nSArray.Handle, pasteboard.Handle); } nSArray.Dispose(); } [Export("pasteboardTypesForElement:")] public virtual NSObject[] PasteboardTypesForElement(NSDictionary element) { if (element == null) { throw new ArgumentNullException("element"); } if (IsDirectBinding) { return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selPasteboardTypesForElement_Handle, element.Handle)); } return NSArray.ArrayFromHandle(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteboardTypesForElement_Handle, element.Handle)); } [Export("writeElement:withPasteboardTypes:toPasteboard:")] public virtual void WriteElement(NSDictionary element, NSObject[] pasteboardTypes, NSPasteboard toPasteboard) { if (element == null) { throw new ArgumentNullException("element"); } if (pasteboardTypes == null) { throw new ArgumentNullException("pasteboardTypes"); } if (toPasteboard == null) { throw new ArgumentNullException("toPasteboard"); } NSArray nSArray = NSArray.FromNSObjects(pasteboardTypes); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(base.Handle, selWriteElementWithPasteboardTypesToPasteboard_Handle, element.Handle, nSArray.Handle, toPasteboard.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(base.SuperHandle, selWriteElementWithPasteboardTypesToPasteboard_Handle, element.Handle, nSArray.Handle, toPasteboard.Handle); } nSArray.Dispose(); } [Export("moveDragCaretToPoint:")] public virtual void MoveDragCaretToPoint(CGPoint point) { if (IsDirectBinding) { Messaging.void_objc_msgSend_CGPoint(base.Handle, selMoveDragCaretToPoint_Handle, point); } else { Messaging.void_objc_msgSendSuper_CGPoint(base.SuperHandle, selMoveDragCaretToPoint_Handle, point); } } [Export("removeDragCaret")] public virtual void RemoveDragCaret() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selRemoveDragCaretHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selRemoveDragCaretHandle); } } [Export("reload:")] public virtual void Reload(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReload_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReload_Handle, sender.Handle); } } [Export("reloadFromOrigin:")] public virtual void ReloadFromOrigin(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReloadFromOrigin_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReloadFromOrigin_Handle, sender.Handle); } } [Export("canGoBack")] public virtual bool CanGoBack() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoBackHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoBackHandle); } [Export("canGoForward")] public virtual bool CanGoForward() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanGoForwardHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanGoForwardHandle); } [Export("canMakeTextLarger")] public virtual bool CanMakeTextLarger() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanMakeTextLargerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanMakeTextLargerHandle); } [Export("makeTextLarger:")] public virtual void MakeTextLarger(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMakeTextLarger_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMakeTextLarger_Handle, sender.Handle); } } [Export("canMakeTextSmaller")] public virtual bool CanMakeTextSmaller() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanMakeTextSmallerHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanMakeTextSmallerHandle); } [Export("makeTextSmaller:")] public virtual void MakeTextSmaller(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMakeTextSmaller_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMakeTextSmaller_Handle, sender.Handle); } } [Export("canMakeTextStandardSize")] public virtual bool CanMakeTextStandardSize() { if (IsDirectBinding) { return Messaging.bool_objc_msgSend(base.Handle, selCanMakeTextStandardSizeHandle); } return Messaging.bool_objc_msgSendSuper(base.SuperHandle, selCanMakeTextStandardSizeHandle); } [Export("makeTextStandardSize:")] public virtual void MakeTextStandardSize(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMakeTextStandardSize_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMakeTextStandardSize_Handle, sender.Handle); } } [Export("toggleContinuousSpellChecking:")] public virtual void ToggleContinuousSpellChecking(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleContinuousSpellChecking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleContinuousSpellChecking_Handle, sender.Handle); } } [Export("toggleSmartInsertDelete:")] public virtual void ToggleSmartInsertDelete(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selToggleSmartInsertDelete_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selToggleSmartInsertDelete_Handle, sender.Handle); } } [Export("styleDeclarationWithText:")] public virtual DomCssStyleDeclaration StyleDeclarationWithText(string text) { if (text == null) { throw new ArgumentNullException("text"); } IntPtr arg = NSString.CreateNative(text); DomCssStyleDeclaration result = ((!IsDirectBinding) ? ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSendSuper_IntPtr(base.SuperHandle, selStyleDeclarationWithText_Handle, arg))) : ((DomCssStyleDeclaration)Runtime.GetNSObject(Messaging.IntPtr_objc_msgSend_IntPtr(base.Handle, selStyleDeclarationWithText_Handle, arg)))); NSString.ReleaseNative(arg); return result; } [Export("replaceSelectionWithMarkupString:")] public virtual void ReplaceSelectionWithMarkupString(string markupString) { if (markupString == null) { throw new ArgumentNullException("markupString"); } IntPtr arg = NSString.CreateNative(markupString); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceSelectionWithMarkupString_Handle, arg); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceSelectionWithMarkupString_Handle, arg); } NSString.ReleaseNative(arg); } [Export("replaceSelectionWithArchive:")] public virtual void ReplaceSelectionWithArchive(WebArchive archive) { if (archive == null) { throw new ArgumentNullException("archive"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selReplaceSelectionWithArchive_Handle, archive.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selReplaceSelectionWithArchive_Handle, archive.Handle); } } [Export("deleteSelection")] public virtual void DeleteSelection() { if (IsDirectBinding) { Messaging.void_objc_msgSend(base.Handle, selDeleteSelectionHandle); } else { Messaging.void_objc_msgSendSuper(base.SuperHandle, selDeleteSelectionHandle); } } [Export("applyStyle:")] public virtual void ApplyStyle(DomCssStyleDeclaration style) { if (style == null) { throw new ArgumentNullException("style"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selApplyStyle_Handle, style.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selApplyStyle_Handle, style.Handle); } } [Export("cut:")] public virtual void Cut(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCut_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCut_Handle, sender.Handle); } } [Export("paste:")] public virtual void Paste(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPaste_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPaste_Handle, sender.Handle); } } [Export("copyFont:")] public virtual void CopyFont(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCopyFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCopyFont_Handle, sender.Handle); } } [Export("pasteFont:")] public virtual void PasteFont(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteFont_Handle, sender.Handle); } } [Export("delete:")] public virtual void Delete(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selDelete_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selDelete_Handle, sender.Handle); } } [Export("pasteAsPlainText:")] public virtual void PasteAsPlainText(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteAsPlainText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteAsPlainText_Handle, sender.Handle); } } [Export("pasteAsRichText:")] public virtual void PasteAsRichText(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPasteAsRichText_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPasteAsRichText_Handle, sender.Handle); } } [Export("changeFont:")] public virtual void ChangeFont(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeFont_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeFont_Handle, sender.Handle); } } [Export("changeAttributes:")] public virtual void ChangeAttributes(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeAttributes_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeAttributes_Handle, sender.Handle); } } [Export("changeDocumentBackgroundColor:")] public virtual void ChangeDocumentBackgroundColor(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeDocumentBackgroundColor_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeDocumentBackgroundColor_Handle, sender.Handle); } } [Export("changeColor:")] public virtual void ChangeColor(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selChangeColor_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selChangeColor_Handle, sender.Handle); } } [Export("alignCenter:")] public virtual void AlignCenter(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignCenter_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignCenter_Handle, sender.Handle); } } [Export("alignJustified:")] public virtual void AlignJustified(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignJustified_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignJustified_Handle, sender.Handle); } } [Export("alignLeft:")] public virtual void AlignLeft(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignLeft_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignLeft_Handle, sender.Handle); } } [Export("alignRight:")] public virtual void AlignRight(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selAlignRight_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selAlignRight_Handle, sender.Handle); } } [Export("checkSpelling:")] public virtual void CheckSpelling(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selCheckSpelling_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selCheckSpelling_Handle, sender.Handle); } } [Export("showGuessPanel:")] public virtual void ShowGuessPanel(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selShowGuessPanel_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selShowGuessPanel_Handle, sender.Handle); } } [Export("performFindPanelAction:")] public virtual void PerformFindPanelAction(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selPerformFindPanelAction_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selPerformFindPanelAction_Handle, sender.Handle); } } [Export("startSpeaking:")] public virtual void StartSpeaking(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStartSpeaking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStartSpeaking_Handle, sender.Handle); } } [Export("stopSpeaking:")] public virtual void StopSpeaking(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selStopSpeaking_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selStopSpeaking_Handle, sender.Handle); } } [Export("moveToBeginningOfSentence:")] public virtual void MoveToBeginningOfSentence(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMoveToBeginningOfSentence_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMoveToBeginningOfSentence_Handle, sender.Handle); } } [Export("moveToBeginningOfSentenceAndModifySelection:")] public virtual void MoveToBeginningOfSentenceAndModifySelection(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMoveToBeginningOfSentenceAndModifySelection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMoveToBeginningOfSentenceAndModifySelection_Handle, sender.Handle); } } [Export("moveToEndOfSentence:")] public virtual void MoveToEndOfSentence(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMoveToEndOfSentence_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMoveToEndOfSentence_Handle, sender.Handle); } } [Export("moveToEndOfSentenceAndModifySelection:")] public virtual void MoveToEndOfSentenceAndModifySelection(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selMoveToEndOfSentenceAndModifySelection_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selMoveToEndOfSentenceAndModifySelection_Handle, sender.Handle); } } [Export("selectSentence:")] public virtual void SelectSentence(NSObject sender) { if (sender == null) { throw new ArgumentNullException("sender"); } if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr(base.Handle, selSelectSentence_Handle, sender.Handle); } else { Messaging.void_objc_msgSendSuper_IntPtr(base.SuperHandle, selSelectSentence_Handle, sender.Handle); } } private _WebFrameLoadDelegate EnsureWebFrameLoadDelegate() { NSObject nSObject = WeakFrameLoadDelegate; if (nSObject == null || !(nSObject is _WebFrameLoadDelegate)) { nSObject = (WeakFrameLoadDelegate = new _WebFrameLoadDelegate()); } return (_WebFrameLoadDelegate)nSObject; } private _WebDownloadDelegate EnsureWebDownloadDelegate() { NSObject nSObject = WeakDownloadDelegate; if (nSObject == null || !(nSObject is _WebDownloadDelegate)) { nSObject = (WeakDownloadDelegate = new _WebDownloadDelegate()); } return (_WebDownloadDelegate)nSObject; } private _WebResourceLoadDelegate EnsureWebResourceLoadDelegate() { NSObject nSObject = WeakResourceLoadDelegate; if (nSObject == null || !(nSObject is _WebResourceLoadDelegate)) { nSObject = (WeakResourceLoadDelegate = new _WebResourceLoadDelegate()); } return (_WebResourceLoadDelegate)nSObject; } private _WebUIDelegate EnsureWebUIDelegate() { NSObject nSObject = WeakUIDelegate; if (nSObject == null || !(nSObject is _WebUIDelegate)) { nSObject = (WeakUIDelegate = new _WebUIDelegate()); } return (_WebUIDelegate)nSObject; } private _WebPolicyDelegate EnsureWebPolicyDelegate() { NSObject nSObject = WeakPolicyDelegate; if (nSObject == null || !(nSObject is _WebPolicyDelegate)) { nSObject = (WeakPolicyDelegate = new _WebPolicyDelegate()); } return (_WebPolicyDelegate)nSObject; } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (base.Handle == IntPtr.Zero) { __mt_MainFrame_var = null; __mt_SelectedFrame_var = null; __mt_BackForwardList_var = null; __mt_WindowScriptObject_var = null; __mt_PasteboardTypesForSelection_var = null; __mt_MainFrameDocument_var = null; __mt_MainFrameIcon_var = null; __mt_WeakResourceLoadDelegate_var = null; __mt_WeakDownloadDelegate_var = null; __mt_WeakFrameLoadDelegate_var = null; __mt_WeakUIDelegate_var = null; __mt_WeakPolicyDelegate_var = null; __mt_Preferences_var = null; __mt_HostWindow_var = null; __mt_SelectedDomRange_var = null; __mt_UndoManager_var = null; __mt_TypingStyle_var = null; __mt_EditingDelegate_var = null; } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewConfirmationPanel.cs ================================================ namespace WebKit; public delegate bool WebViewConfirmationPanel(WebView sender, string withMessage, WebFrame initiatedByFrame); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewContentEventArgs.cs ================================================ using System; using CoreGraphics; namespace WebKit; public class WebViewContentEventArgs : EventArgs { public CGRect Frame { get; set; } public WebViewContentEventArgs(CGRect frame) { Frame = frame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewCreate.cs ================================================ using Foundation; namespace WebKit; public delegate WebView WebViewCreate(WebView sender, NSUrlRequest request); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewDragEventArgs.cs ================================================ using System; using AppKit; namespace WebKit; public class WebViewDragEventArgs : EventArgs { public WebDragDestinationAction Action { get; set; } public NSDraggingInfo DraggingInfo { get; set; } public WebViewDragEventArgs(WebDragDestinationAction action, NSDraggingInfo draggingInfo) { Action = action; DraggingInfo = draggingInfo; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewFooterEventArgs.cs ================================================ using System; using CoreGraphics; namespace WebKit; public class WebViewFooterEventArgs : EventArgs { public CGRect Rect { get; set; } public WebViewFooterEventArgs(CGRect rect) { Rect = rect; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewFrameEventArgs.cs ================================================ using System; using CoreGraphics; namespace WebKit; public class WebViewFrameEventArgs : EventArgs { public CGRect NewFrame { get; set; } public WebViewFrameEventArgs(CGRect newFrame) { NewFrame = newFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetBool.cs ================================================ namespace WebKit; public delegate bool WebViewGetBool(WebView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetContextMenuItems.cs ================================================ using AppKit; using Foundation; namespace WebKit; public delegate NSMenuItem[] WebViewGetContextMenuItems(WebView sender, NSDictionary forElement, NSMenuItem[] defaultMenuItems); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetFloat.cs ================================================ namespace WebKit; public delegate float WebViewGetFloat(WebView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetRectangle.cs ================================================ using CoreGraphics; namespace WebKit; public delegate CGRect WebViewGetRectangle(WebView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetResponder.cs ================================================ using AppKit; namespace WebKit; public delegate NSResponder WebViewGetResponder(WebView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewGetString.cs ================================================ namespace WebKit; public delegate string WebViewGetString(WebView sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewHeaderEventArgs.cs ================================================ using System; using CoreGraphics; namespace WebKit; public class WebViewHeaderEventArgs : EventArgs { public CGRect Rect { get; set; } public WebViewHeaderEventArgs(CGRect rect) { Rect = rect; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewJavaScriptEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewJavaScriptEventArgs : EventArgs { public string Message { get; set; } public WebViewJavaScriptEventArgs(string message) { Message = message; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewJavaScriptFrame.cs ================================================ namespace WebKit; public delegate bool WebViewJavaScriptFrame(WebView sender, string message, WebFrame initiatedByFrame); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewJavaScriptFrameEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewJavaScriptFrameEventArgs : EventArgs { public string WithMessage { get; set; } public WebFrame InitiatedByFrame { get; set; } public WebViewJavaScriptFrameEventArgs(string withMessage, WebFrame initiatedByFrame) { WithMessage = withMessage; InitiatedByFrame = initiatedByFrame; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewJavaScriptInput.cs ================================================ namespace WebKit; public delegate string WebViewJavaScriptInput(WebView sender, string prompt, string defaultText); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewMouseMovedEventArgs.cs ================================================ using System; using AppKit; using Foundation; namespace WebKit; public class WebViewMouseMovedEventArgs : EventArgs { public NSDictionary ElementInformation { get; set; } public NSEventModifierMask ModifierFlags { get; set; } public WebViewMouseMovedEventArgs(NSDictionary elementInformation, NSEventModifierMask modifierFlags) { ElementInformation = elementInformation; ModifierFlags = modifierFlags; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewPerformAction.cs ================================================ using Foundation; using ObjCRuntime; namespace WebKit; public delegate bool WebViewPerformAction(WebView webView, Selector action, NSObject sender); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewPerformDragEventArgs.cs ================================================ using System; using AppKit; using CoreGraphics; namespace WebKit; public class WebViewPerformDragEventArgs : EventArgs { public WebDragSourceAction Action { get; set; } public CGPoint SourcePoint { get; set; } public NSPasteboard Pasteboard { get; set; } public WebViewPerformDragEventArgs(WebDragSourceAction action, CGPoint sourcePoint, NSPasteboard pasteboard) { Action = action; SourcePoint = sourcePoint; Pasteboard = pasteboard; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewPrintEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewPrintEventArgs : EventArgs { public WebFrameView FrameView { get; set; } public WebViewPrintEventArgs(WebFrameView frameView) { FrameView = frameView; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewPrompt.cs ================================================ namespace WebKit; public delegate bool WebViewPrompt(WebView sender, string message); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewPromptPanel.cs ================================================ namespace WebKit; public delegate string WebViewPromptPanel(WebView sender, string prompt, string defaultText, WebFrame initiatedByFrame); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewResizableEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewResizableEventArgs : EventArgs { public bool Resizable { get; set; } public WebViewResizableEventArgs(bool resizable) { Resizable = resizable; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewResponderEventArgs.cs ================================================ using System; using AppKit; namespace WebKit; public class WebViewResponderEventArgs : EventArgs { public NSResponder NewResponder { get; set; } public WebViewResponderEventArgs(NSResponder newResponder) { NewResponder = newResponder; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewRunOpenPanelEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewRunOpenPanelEventArgs : EventArgs { public WebOpenPanelResultListener ResultListener { get; set; } public WebViewRunOpenPanelEventArgs(WebOpenPanelResultListener resultListener) { ResultListener = resultListener; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewStatusBarEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewStatusBarEventArgs : EventArgs { public bool Visible { get; set; } public WebViewStatusBarEventArgs(bool visible) { Visible = visible; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewStatusTextEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewStatusTextEventArgs : EventArgs { public string Text { get; set; } public WebViewStatusTextEventArgs(string text) { Text = text; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewToolBarsEventArgs.cs ================================================ using System; namespace WebKit; public class WebViewToolBarsEventArgs : EventArgs { public bool Visible { get; set; } public WebViewToolBarsEventArgs(bool visible) { Visible = visible; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/WebKit/WebViewValidateUserInterface.cs ================================================ using Foundation; namespace WebKit; public delegate bool WebViewValidateUserInterface(WebView webView, NSObject validatedUserInterfaceItem, bool defaultValidation); ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Mac.csproj ================================================  netstandard2.0 annotations all build; analyzers all all all ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.System/nfloat.cs ================================================ using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; namespace Xamarin.System; [Serializable] [DebuggerDisplay("{v,nq}")] public struct nfloat : IFormattable, IConvertible, IComparable, IComparable, IEquatable { public static readonly int Size = 8; public static readonly nfloat MaxValue = (nfloat)double.MaxValue; public static readonly nfloat MinValue = (nfloat)double.MinValue; public static readonly nfloat Epsilon = (nfloat)double.Epsilon; public static readonly nfloat NaN = (nfloat)double.NaN; public static readonly nfloat NegativeInfinity = (nfloat)double.NegativeInfinity; public static readonly nfloat PositiveInfinity = (nfloat)double.PositiveInfinity; [DebuggerBrowsable(DebuggerBrowsableState.Never)] internal double v; internal nfloat(nfloat v) { this.v = v.v; } public nfloat(float v) { this.v = v; } public nfloat(double v) { this.v = v; } public unsafe static explicit operator nfloat(IntPtr v) { return new nfloat(*(double*)(&v)); } public unsafe static explicit operator IntPtr(nfloat v) { return *(IntPtr*)(&v.v); } public static implicit operator nfloat(sbyte v) { return new nfloat((double)v); } public static explicit operator sbyte(nfloat v) { return (sbyte)v.v; } public static implicit operator nfloat(byte v) { return new nfloat((double)(int)v); } public static explicit operator byte(nfloat v) { return (byte)v.v; } public static implicit operator nfloat(char v) { return new nfloat((double)(int)v); } public static explicit operator char(nfloat v) { return (char)v.v; } public static implicit operator nfloat(short v) { return new nfloat((double)v); } public static explicit operator short(nfloat v) { return (short)v.v; } public static implicit operator nfloat(ushort v) { return new nfloat((double)(int)v); } public static explicit operator ushort(nfloat v) { return (ushort)v.v; } public static implicit operator nfloat(int v) { return new nfloat((double)v); } public static explicit operator int(nfloat v) { return (int)v.v; } public static implicit operator nfloat(uint v) { return new nfloat((double)v); } public static explicit operator uint(nfloat v) { return (uint)v.v; } public static implicit operator nfloat(long v) { return new nfloat((double)v); } public static explicit operator long(nfloat v) { return (long)v.v; } public static implicit operator nfloat(ulong v) { return new nfloat((double)v); } public static explicit operator ulong(nfloat v) { return (ulong)v.v; } public static implicit operator nfloat(float v) { return new nfloat((double)v); } public static explicit operator float(nfloat v) { return (float)v.v; } public static explicit operator nfloat(double v) { return new nfloat(v); } public static implicit operator double(nfloat v) { return v.v; } public static explicit operator nfloat(decimal v) { return new nfloat((double)v); } public static explicit operator decimal(nfloat v) { return (decimal)v.v; } public static nfloat operator +(nfloat v) { return new nfloat(v.v); } public static nfloat operator -(nfloat v) { return new nfloat(0.0 - v.v); } public static nfloat operator ++(nfloat v) { return new nfloat(v.v + 1.0); } public static nfloat operator --(nfloat v) { return new nfloat(v.v - 1.0); } public static nfloat operator +(nfloat l, nfloat r) { return new nfloat(l.v + r.v); } public static nfloat operator -(nfloat l, nfloat r) { return new nfloat(l.v - r.v); } public static nfloat operator *(nfloat l, nfloat r) { return new nfloat(l.v * r.v); } public static nfloat operator /(nfloat l, nfloat r) { return new nfloat(l.v / r.v); } public static nfloat operator %(nfloat l, nfloat r) { return new nfloat(l.v % r.v); } public static bool operator ==(nfloat l, nfloat r) { return l.v == r.v; } public static bool operator !=(nfloat l, nfloat r) { return l.v != r.v; } public static bool operator <(nfloat l, nfloat r) { return l.v < r.v; } public static bool operator >(nfloat l, nfloat r) { return l.v > r.v; } public static bool operator <=(nfloat l, nfloat r) { return l.v <= r.v; } public static bool operator >=(nfloat l, nfloat r) { return l.v >= r.v; } public int CompareTo(nfloat value) { return v.CompareTo(value.v); } public int CompareTo(object value) { if (value is nfloat) { return v.CompareTo(((nfloat)value).v); } return v.CompareTo(value); } public bool Equals(nfloat obj) { return v.Equals(obj.v); } public override bool Equals(object obj) { if (obj is nfloat) { return v.Equals(((nfloat)obj).v); } return v.Equals(obj); } public override int GetHashCode() { return v.GetHashCode(); } public static bool IsNaN(nfloat f) { return double.IsNaN(f); } public static bool IsInfinity(nfloat f) { return double.IsInfinity(f); } public static bool IsPositiveInfinity(nfloat f) { return double.IsPositiveInfinity(f); } public static bool IsNegativeInfinity(nfloat f) { return double.IsNegativeInfinity(f); } public static nfloat Parse(string s, IFormatProvider provider) { return (nfloat)double.Parse(s, provider); } public static nfloat Parse(string s, NumberStyles style) { return (nfloat)double.Parse(s, style); } public static nfloat Parse(string s) { return (nfloat)double.Parse(s); } public static nfloat Parse(string s, NumberStyles style, IFormatProvider provider) { return (nfloat)double.Parse(s, style, provider); } public static bool TryParse(string s, out nfloat result) { double result2; bool result3 = double.TryParse(s, out result2); result = (nfloat)result2; return result3; } public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out nfloat result) { double result2; bool result3 = double.TryParse(s, style, provider, out result2); result = (nfloat)result2; return result3; } public override string ToString() { return v.ToString(); } public string ToString(IFormatProvider provider) { return v.ToString(provider); } public string ToString(string format) { return v.ToString(format); } public string ToString(string format, IFormatProvider provider) { return v.ToString(format, provider); } public TypeCode GetTypeCode() { return v.GetTypeCode(); } bool IConvertible.ToBoolean(IFormatProvider provider) { return ((IConvertible)v).ToBoolean(provider); } byte IConvertible.ToByte(IFormatProvider provider) { return ((IConvertible)v).ToByte(provider); } char IConvertible.ToChar(IFormatProvider provider) { return ((IConvertible)v).ToChar(provider); } DateTime IConvertible.ToDateTime(IFormatProvider provider) { return ((IConvertible)v).ToDateTime(provider); } decimal IConvertible.ToDecimal(IFormatProvider provider) { return ((IConvertible)v).ToDecimal(provider); } double IConvertible.ToDouble(IFormatProvider provider) { return ((IConvertible)v).ToDouble(provider); } short IConvertible.ToInt16(IFormatProvider provider) { return ((IConvertible)v).ToInt16(provider); } int IConvertible.ToInt32(IFormatProvider provider) { return ((IConvertible)v).ToInt32(provider); } long IConvertible.ToInt64(IFormatProvider provider) { return ((IConvertible)v).ToInt64(provider); } sbyte IConvertible.ToSByte(IFormatProvider provider) { return ((IConvertible)v).ToSByte(provider); } float IConvertible.ToSingle(IFormatProvider provider) { return ((IConvertible)v).ToSingle(provider); } ushort IConvertible.ToUInt16(IFormatProvider provider) { return ((IConvertible)v).ToUInt16(provider); } uint IConvertible.ToUInt32(IFormatProvider provider) { return ((IConvertible)v).ToUInt32(provider); } ulong IConvertible.ToUInt64(IFormatProvider provider) { return ((IConvertible)v).ToUInt64(provider); } object IConvertible.ToType(Type targetType, IFormatProvider provider) { return ((IConvertible)v).ToType(targetType, provider); } public static void CopyArray(IntPtr source, nfloat[] destination, int startIndex, int length) { if (source == IntPtr.Zero) { throw new ArgumentNullException("source"); } if (destination == null) { throw new ArgumentNullException("destination"); } if (destination.Rank != 1) { throw new ArgumentException("destination", "array is multi-dimensional"); } if (startIndex < 0) { throw new ArgumentException("startIndex", "must be >= 0"); } if (length < 0) { throw new ArgumentException("length", "must be >= 0"); } if (startIndex + length > destination.Length) { throw new ArgumentException("length", "startIndex + length > destination.Length"); } for (int i = 0; i < length; i++) { destination[i + startIndex] = (nfloat)Marshal.ReadIntPtr(source, i * Size); } } public static void CopyArray(nfloat[] source, int startIndex, IntPtr destination, int length) { if (source == null) { throw new ArgumentNullException("source"); } if (destination == IntPtr.Zero) { throw new ArgumentNullException("destination"); } if (source.Rank != 1) { throw new ArgumentException("source", "array is multi-dimensional"); } if (startIndex < 0) { throw new ArgumentException("startIndex", "must be >= 0"); } if (length < 0) { throw new ArgumentException("length", "must be >= 0"); } if (startIndex + length > source.Length) { throw new ArgumentException("length", "startIndex + length > source.Length"); } for (int i = 0; i < length; i++) { Marshal.WriteIntPtr(destination, i * Size, (IntPtr)source[i + startIndex]); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/ActionAttribute.cs ================================================ using Foundation; using System; namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Method)] public sealed class ActionAttribute : ExportAttribute { public ActionAttribute() { } public ActionAttribute(string selector) : base(selector) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/AdoptsAttribute.cs ================================================ using System; using System.Runtime.InteropServices; namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class AdoptsAttribute : Attribute { private IntPtr handle; public string ProtocolType { get; private set; } public IntPtr ProtocolHandle { get { if (handle == IntPtr.Zero && ProtocolType != null) { handle = objc_getProtocol(ProtocolType); } return handle; } } [DllImport("/usr/lib/libobjc.dylib")] internal static extern IntPtr objc_getProtocol(string proto); public AdoptsAttribute(string protocolType) { ProtocolType = protocolType; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/AlphaAttribute.cs ================================================ using System; namespace Xamarin.Utiles; public class AlphaAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/AvailabilityBaseAttribute.cs ================================================ using System; using System.Collections.Generic; using System.Text; namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)] public abstract class AvailabilityBaseAttribute : Attribute { public AvailabilityKind AvailabilityKind { get; private set; } public PlatformName Platform { get; private set; } public Version Version { get; private set; } public PlatformArchitecture Architecture { get; private set; } public string Message { get; private set; } internal AvailabilityBaseAttribute() { } internal AvailabilityBaseAttribute(AvailabilityKind availabilityKind, PlatformName platform, Version version, PlatformArchitecture architecture, string message) { AvailabilityKind = availabilityKind; Platform = platform; Version = version; Architecture = architecture; Message = message; } public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("[{0} ({1}.{2}", AvailabilityKind, "PlatformName", Platform); if (Version != null) { stringBuilder.AppendFormat(", {0},{1}", Version.Major, Version.Minor); if (Version.Build >= 0) { stringBuilder.AppendFormat(",{0}", Version.Build); } } if (Architecture != 0) { stringBuilder.AppendFormat(", {0}.{1}", "PlatformArchitecture", Architecture); } if (Message != null) { stringBuilder.AppendFormat(", message: \"{0}\"", Message.Replace("\"", "\"\"")); } stringBuilder.Append(")]"); return stringBuilder.ToString(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/AvailabilityKind.cs ================================================ namespace Xamarin.Utiles; public enum AvailabilityKind { Introduced, Deprecated, Obsoleted, Unavailable } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/BindAsAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false)] public class BindAsAttribute : Attribute { public Type Type; public Type OriginalType; public BindAsAttribute(Type type) { Type = type; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/BlockProxyAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public sealed class BlockProxyAttribute : Attribute { public Type Type { get; set; } public BlockProxyAttribute(Type t) { Type = t; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/CategoryAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Class)] public class CategoryAttribute : Attribute { public Type Type { get; set; } public string Name { get; set; } public CategoryAttribute(Type type) { Type = type; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/DelegateProxyAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.ReturnValue, AllowMultiple = false)] public sealed class DelegateProxyAttribute : Attribute { public Type DelegateType { get; set; } public DelegateProxyAttribute(Type delegateType) { DelegateType = delegateType; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/ElCapitanAttribute.cs ================================================ using System; namespace Xamarin.Utiles; public class ElCapitanAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/ErrorHelper.cs ================================================ namespace Xamarin.Utiles; internal static class ErrorHelper { public enum WarningLevel { Error = -1, Warning, Disable } private const string Prefix = "MM"; private static Dictionary warning_levels; public static int Verbosity { get; set; } public static WarningLevel GetWarningLevel(int code) { if (warning_levels == null) { return WarningLevel.Warning; } if (warning_levels.TryGetValue(-1, out var value)) { return value; } if (warning_levels.TryGetValue(code, out value)) { return value; } return WarningLevel.Warning; } public static void SetWarningLevel(WarningLevel level, int? code = null) { if (warning_levels == null) { warning_levels = new Dictionary(); } if (code.HasValue) { warning_levels[code.Value] = level; } else { warning_levels[-1] = level; } } public static RuntimeException CreateError(int code, string message, params object[] args) { return new RuntimeException(code, error: true, message, args); } public static RuntimeException CreateError(int code, Exception innerException, string message, params object[] args) { return new RuntimeException(code, error: true, innerException, message, args); } public static RuntimeException CreateWarning(int code, string message, params object[] args) { return new RuntimeException(code, error: false, message, args); } public static RuntimeException CreateWarning(int code, Exception innerException, string message, params object[] args) { return new RuntimeException(code, error: false, innerException, message, args); } public static void Error(int code, Exception innerException, string message, params object[] args) { throw new RuntimeException(code, error: true, innerException, message, args); } public static void Error(int code, string message, params object[] args) { throw new RuntimeException(code, error: true, message, args); } public static void Warning(int code, string message, params object[] args) { Show(new RuntimeException(code, error: false, message, args)); } public static void Warning(int code, Exception innerException, string message, params object[] args) { Show(new RuntimeException(code, error: false, innerException, message, args)); } public static void Show(IEnumerable list) { List list2 = new List(); bool flag = false; foreach (Exception item in list) { CollectExceptions(item, list2); } foreach (Exception item2 in list2) { flag |= ShowInternal(item2); } if (flag) { Exit(1); } } public static void Show(Exception e) { List list = new List(); bool flag = false; CollectExceptions(e, list); foreach (Exception item in list) { flag |= ShowInternal(item); } if (flag) { Exit(1); } } private static void Exit(int exitCode) { Environment.Exit(exitCode); } private static void CollectExceptions(Exception ex, List exceptions) { if (ex is AggregateException ex2 && ex2.InnerExceptions.Count > 0) { foreach (Exception innerException in ex2.InnerExceptions) { CollectExceptions(innerException, exceptions); } return; } exceptions.Add(ex); } private static bool ShowInternal(Exception e) { RuntimeException ex = e as RuntimeException; bool flag = true; if (ex != null) { flag = ex.Error; if (!flag && GetWarningLevel(ex.Code) == WarningLevel.Disable) { return false; } Console.Error.WriteLine(ex.ToString()); if (ex.Code > 8999) { return flag; } if (Verbosity > 1) { ShowInner(e); } if (Verbosity > 2 && !string.IsNullOrEmpty(e.StackTrace)) { Console.Error.WriteLine(e.StackTrace); } } else { Console.Error.WriteLine(e.ToString()); if (Verbosity > 1) { ShowInner(e); } if (Verbosity > 2 && !string.IsNullOrEmpty(e.StackTrace)) { Console.Error.WriteLine(e.StackTrace); } } return flag; } private static void ShowInner(Exception e) { Exception innerException = e.InnerException; if (innerException != null) { if (Verbosity > 3) { Console.Error.WriteLine("--- inner exception"); Console.Error.WriteLine(innerException); Console.Error.WriteLine("---"); } else { Console.Error.WriteLine("\t{0}", innerException.Message); } ShowInner(innerException); } } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/IntPtrEqualityComparer.cs ================================================ namespace Xamarin.Utiles; internal class IntPtrEqualityComparer : IEqualityComparer { public bool Equals(IntPtr x, IntPtr y) { return x == y; } public int GetHashCode(IntPtr obj) { return obj.GetHashCode(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/LinkerSafeAttribute.cs ================================================ using System; namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Assembly)] public sealed class LinkerSafeAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/LogHelper.cs ================================================ using Foundation; using System.Runtime.InteropServices; namespace Xamarin.Utiles; internal class LogHelper { [DllImport("/System/Library/Frameworks/Foundation.framework/Foundation", EntryPoint = "NSLog")] private static extern void NSLog_impl(IntPtr format, [MarshalAs(UnmanagedType.LPStr)] string s); internal static void NSLog(string format, params object[] args) { IntPtr intPtr = NSString.CreateNative("%s"); string s = ((args == null || args.Length == 0) ? format : string.Format(format, args)); NSLog(intPtr, s); NSString.ReleaseNative(intPtr); } private static void NSLog(IntPtr format, string s) { if (PlatformHelper.CheckSystemVersion(10, 12)) Console.WriteLine(s); else NSLog_impl(format, s); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/MavericksAttribute.cs ================================================ using System; namespace Xamarin.Utiles; public class MavericksAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/MonoNativeFunctionWrapperAttribute.cs ================================================ using System; [AttributeUsage(AttributeTargets.Delegate)] public class MonoNativeFunctionWrapperAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/MonoPInvokeCallbackAttribute.cs ================================================ using System; [AttributeUsage(AttributeTargets.Method)] public sealed class MonoPInvokeCallbackAttribute : Attribute { public MonoPInvokeCallbackAttribute(Type t) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/NativeAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Enum)] public sealed class NativeAttribute : Attribute { public string NativeName { get; set; } public NativeAttribute() { } public NativeAttribute(string name) { NativeName = name; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/OutletAttribute.cs ================================================ using Foundation; namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Property)] public sealed class OutletAttribute : ExportAttribute { public OutletAttribute() { } public OutletAttribute(string name) : base(name) { } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/Platform.cs ================================================ namespace Xamarin.Utiles; [Flags] public enum Platform : ulong { None = 0uL, iOS_2_0 = 0x20000uL, iOS_2_2 = 0x20200uL, iOS_3_0 = 0x30000uL, iOS_3_1 = 0x30100uL, iOS_3_2 = 0x30200uL, iOS_4_0 = 0x40000uL, iOS_4_1 = 0x40100uL, iOS_4_2 = 0x40200uL, iOS_4_3 = 0x40300uL, iOS_5_0 = 0x50000uL, iOS_5_1 = 0x50100uL, iOS_6_0 = 0x60000uL, iOS_6_1 = 0x60100uL, iOS_7_0 = 0x70000uL, iOS_7_1 = 0x70100uL, iOS_8_0 = 0x80000uL, iOS_8_1 = 0x80100uL, iOS_8_2 = 0x80200uL, iOS_8_3 = 0x80300uL, iOS_8_4 = 0x80400uL, iOS_9_0 = 0x90000uL, iOS_9_1 = 0x90100uL, iOS_9_2 = 0x90200uL, iOS_9_3 = 0x90300uL, Mac_10_0 = 0xA000000000000uL, Mac_10_1 = 0xA010000000000uL, Mac_10_2 = 0xA020000000000uL, Mac_10_3 = 0xA030000000000uL, Mac_10_4 = 0xA040000000000uL, Mac_10_5 = 0xA050000000000uL, Mac_10_6 = 0xA060000000000uL, Mac_10_7 = 0xA070000000000uL, Mac_10_8 = 0xA080000000000uL, Mac_10_9 = 0xA090000000000uL, Mac_10_10 = 0xA0A0000000000uL, Mac_10_10_3 = 0xA0A0300000000uL, Mac_10_11 = 0xA0B0000000000uL, Mac_10_11_3 = 0xA0B0300000000uL, Mac_10_12 = 0xA0C0000000000uL, iOS_Version = 0xFFFFFFuL, Mac_Version = 0xFFFFFF00000000uL, Mac_Arch32 = 0x100000000000000uL, Mac_Arch64 = 0x200000000000000uL, Mac_Arch = 18374686479671623680uL, iOS_Arch32 = 0x1000000uL, iOS_Arch64 = 0x2000000uL, iOS_Arch = 0xFF000000uL } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/PlatformArchitecture.cs ================================================ namespace Xamarin.Utiles; [Flags] public enum PlatformArchitecture : byte { None = 0, Arch32 = 1, Arch64 = 2, All = byte.MaxValue } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/PlatformHelper.cs ================================================ using Foundation; using System.Globalization; using System.Runtime.InteropServices; namespace Xamarin.Utiles; public static class PlatformHelper { private static Platform? hostApiPlatform; private const int sys1 = 1937339185; private const int sys2 = 1937339186; private static int osx_major; private static int osx_minor; public static bool IsValid(this Platform platform) { switch (platform.ToMacVersion()) { default: return false; case Platform.None: case Platform.Mac_10_0: case Platform.Mac_10_1: case Platform.Mac_10_2: case Platform.Mac_10_3: case Platform.Mac_10_4: case Platform.Mac_10_5: case Platform.Mac_10_6: case Platform.Mac_10_7: case Platform.Mac_10_8: case Platform.Mac_10_9: case Platform.Mac_10_10: case Platform.Mac_10_10_3: case Platform.Mac_10_11: case Platform.Mac_10_12: case Platform.Mac_Version: switch (platform.ToIosVersion()) { default: return false; case Platform.None: case Platform.iOS_2_0: case Platform.iOS_2_2: case Platform.iOS_3_0: case Platform.iOS_3_1: case Platform.iOS_3_2: case Platform.iOS_4_0: case Platform.iOS_4_1: case Platform.iOS_4_2: case Platform.iOS_4_3: case Platform.iOS_5_0: case Platform.iOS_5_1: case Platform.iOS_6_0: case Platform.iOS_6_1: case Platform.iOS_7_0: case Platform.iOS_7_1: case Platform.iOS_8_0: case Platform.iOS_8_1: case Platform.iOS_8_2: case Platform.iOS_8_3: case Platform.iOS_8_4: case Platform.iOS_9_0: case Platform.iOS_9_1: case Platform.iOS_9_2: case Platform.iOS_Version: return true; } } } public static Platform ToVersion(this Platform platform) { return platform & (Platform.iOS_Version | Platform.Mac_Version); } public static Platform ToMacVersion(this Platform platform) { return platform & Platform.Mac_Version; } public static Platform ToIosVersion(this Platform platform) { return platform & Platform.iOS_Version; } public static Platform ToArch(this Platform platform) { return platform & (Platform.Mac_Arch | Platform.iOS_Arch); } public static Platform ToMacArch(this Platform platform) { return platform & Platform.Mac_Arch; } public static Platform ToIosArch(this Platform platform) { return platform & Platform.iOS_Arch; } public static int CompareMacVersion(this Platform a, Platform b) { return ((ulong)a.ToMacVersion()).CompareTo((ulong)b.ToMacVersion()); } public static int CompareIosVersion(this Platform a, Platform b) { return ((uint)a.ToIosVersion()).CompareTo((uint)b.ToIosVersion()); } public static bool IsMac(this Platform platform) { return platform.ToMacVersion() != Platform.None; } public static bool IsIos(this Platform platform) { return platform.ToIosVersion() != Platform.None; } public static bool Is64BitOnlyOnCurrentPlatform(this Platform platform) { return platform.ToMacArch() == Platform.Mac_Arch64; } public static Platform GetHostApiPlatform() { if (hostApiPlatform.HasValue && hostApiPlatform.HasValue) { return hostApiPlatform.Value; } using NSDictionary nSDictionary = NSDictionary.FromFile("/System/Library/CoreServices/SystemVersion.plist"); Platform? platform = (hostApiPlatform = ParseApiPlatform((NSString)nSDictionary["ProductName"], (NSString)nSDictionary["ProductVersion"])); return platform.Value; } public static Platform ParseApiPlatform(string productName, string productVersion) { if (productName == null) { throw new ArgumentNullException("productName"); } if (productVersion == null) { throw new ArgumentNullException("productVersion"); } string text = productName.Replace(" ", string.Empty).ToLowerInvariant(); string[] array = productVersion.Split(new char[] { '.' }, StringSplitOptions.None); CultureInfo invariantCulture = CultureInfo.InvariantCulture; if (!byte.TryParse(array[0], NumberStyles.Integer, invariantCulture, out var result) || !byte.TryParse(array[1], NumberStyles.Integer, invariantCulture, out var result2)) { throw new FormatException("Bad version format: " + productVersion); } if (text.StartsWith("mac", StringComparison.Ordinal)) { return (Platform)(((ulong)result << 48) | ((ulong)result2 << 40)); } if (text.StartsWith("iphone", StringComparison.Ordinal) || text.StartsWith("ios", StringComparison.Ordinal)) { return (Platform)(((ulong)result << 16) | ((ulong)result2 << 8)); } throw new FormatException("Unknown product name: " + productName); } [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] private static extern int Gestalt(int selector, out int result); public static bool CheckSystemVersion(int major, int minor) { if (osx_major == 0) { Gestalt(1937339185, out osx_major); Gestalt(1937339186, out osx_minor); } return osx_major > major || (osx_major == major && osx_minor >= minor); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/PlatformName.cs ================================================ namespace Xamarin.Utiles; public enum PlatformName : byte { None = 0, MacOSX = 1, iOS = 2, WatchOS = 3, TvOS = 4, MacCatalyst = 5, UIKitForMac = 5 } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/ReleaseAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.ReturnValue)] public sealed class ReleaseAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/RequiredFrameworkAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public class RequiredFrameworkAttribute : Attribute { public string Name { get; private set; } public RequiredFrameworkAttribute(string name) { Name = name; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/RuntimeException.cs ================================================ namespace Xamarin.Utiles; public class RuntimeException : Exception { public int Code { get; private set; } public bool Error { get; private set; } public RuntimeException(string message, params object[] args) : base(string.Format(message, args)) { } public RuntimeException(int code, string message, params object[] args) : this(code, error: false, message, args) { } public RuntimeException(int code, bool error, string message, params object[] args) : this(code, error, null, message, args) { } public RuntimeException(int code, bool error, Exception innerException, string message, params object[] args) : base(string.Format(message, args), innerException) { Code = code; Error = error; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/Stret.cs ================================================ using System.Reflection; using System.Runtime.InteropServices; using Xamarin.System; namespace Xamarin.Utiles; internal class Stret { private static bool IsHomogeneousAggregateSmallEnough_Armv7k(Type t, int members) { return members <= 4; } private static bool IsHomogeneousAggregateBaseType_Armv7k(Type t, object generator) { if (t == typeof(float) || t == typeof(double) || t == typeof(nfloat)) { return true; } return false; } private static bool IsHomogeneousAggregate_Armv7k(List fieldTypes, object generator) { if (fieldTypes.Count == 0) { return false; } if (!IsHomogeneousAggregateSmallEnough_Armv7k(fieldTypes[0], fieldTypes.Count)) { return false; } if (!IsHomogeneousAggregateBaseType_Armv7k(fieldTypes[0], generator)) { return false; } for (int i = 1; i < fieldTypes.Count; i++) { if (fieldTypes[0] != fieldTypes[i]) { return false; } } return true; } public static bool ArmNeedStret(Type returnType, object generator) { if (0 == 0) { return false; } if (!returnType.IsValueType || returnType.IsEnum || IsBuiltInType(returnType)) { return false; } List list = new List(); int valueTypeSize = GetValueTypeSize(returnType, list, is_64_bits: false, generator); if (false) { if (valueTypeSize <= 16) { return false; } if (IsHomogeneousAggregate_Armv7k(list, generator)) { return false; } } if (false && valueTypeSize <= 4 && list.Count == 1) { switch (list[0].FullName) { case "System.Char": case "System.Byte": case "System.SByte": case "System.UInt16": case "System.Int16": case "System.UInt32": case "System.Int32": case "System.IntPtr": case "System.nuint": case "System.uint": return false; } } return true; } public static bool X86NeedStret(Type returnType, object generator) { if (!returnType.IsValueType || returnType.IsEnum || IsBuiltInType(returnType)) { return false; } List list = new List(); int valueTypeSize = GetValueTypeSize(returnType, list, is_64_bits: false, generator); if (valueTypeSize > 8) { return true; } if (list.Count == 3) { return true; } return false; } public static bool X86_64NeedStret(Type returnType, object generator) { if (!returnType.IsValueType || returnType.IsEnum || IsBuiltInType(returnType)) { return false; } List fieldTypes = new List(); return GetValueTypeSize(returnType, fieldTypes, is_64_bits: true, generator) > 16; } private static int GetValueTypeSize(Type type, List fieldTypes, bool is_64_bits, object generator) { int size = 0; int max_element_size = 1; if (type.IsExplicitLayout) { FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (FieldInfo fieldInfo in fields) { FieldOffsetAttribute fieldOffsetAttribute = (FieldOffsetAttribute)Attribute.GetCustomAttribute(fieldInfo, typeof(FieldOffsetAttribute)); int size2 = 0; GetValueTypeSize(type, fieldInfo.FieldType, fieldTypes, is_64_bits, ref size2, ref max_element_size, generator); size = Math.Max(size, size2 + fieldOffsetAttribute.Value); } } else { GetValueTypeSize(type, type, fieldTypes, is_64_bits, ref size, ref max_element_size, generator); } if (size % max_element_size != 0) { size += max_element_size - size % max_element_size; } return size; } private static int AlignAndAdd(Type original_type, int size, int add, ref int max_element_size) { max_element_size = Math.Max(max_element_size, add); if (size % add != 0) { size += add - size % add; } return size += add; } private static bool IsBuiltInType(Type type) { int type_size; return IsBuiltInType(type, is_64_bits: true, out type_size); } private static bool IsBuiltInType(Type type, bool is_64_bits, out int type_size) { type_size = 0; if (type.IsNested) { return false; } if (type.Namespace != "System") { return false; } switch (type.Name) { case "Char": case "Boolean": case "SByte": case "Byte": type_size = 1; return true; case "Int16": case "UInt16": type_size = 2; return true; case "Single": case "Int32": case "UInt32": type_size = 4; return true; case "Double": case "Int64": case "UInt64": type_size = 8; return true; case "IntPtr": case "nfloat": case "nuint": case "nint": type_size = (is_64_bits ? 8 : 4); return true; case "Void": return true; default: return false; } } private static void GetValueTypeSize(Type original_type, Type type, List field_types, bool is_64_bits, ref int size, ref int max_element_size, object generator) { if (IsBuiltInType(type, is_64_bits, out var type_size) && type_size > 0) { field_types.Add(type); size = AlignAndAdd(original_type, size, type_size, ref max_element_size); return; } FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (FieldInfo fieldInfo in fields) { MarshalAsAttribute marshalAsAttribute = (MarshalAsAttribute)Attribute.GetCustomAttribute(fieldInfo, typeof(MarshalAsAttribute)); if (marshalAsAttribute == null) { GetValueTypeSize(original_type, fieldInfo.FieldType, field_types, is_64_bits, ref size, ref max_element_size, generator); continue; } int num = 1; switch (marshalAsAttribute.Value) { case UnmanagedType.ByValArray: { List field_types2 = new List(); GetValueTypeSize(original_type, fieldInfo.FieldType.GetElementType(), field_types2, is_64_bits, ref type_size, ref max_element_size, generator); num = marshalAsAttribute.SizeConst; break; } case UnmanagedType.I1: case UnmanagedType.U1: type_size = 1; break; case UnmanagedType.I2: case UnmanagedType.U2: type_size = 2; break; case UnmanagedType.I4: case UnmanagedType.U4: case UnmanagedType.R4: type_size = 4; break; case UnmanagedType.I8: case UnmanagedType.U8: case UnmanagedType.R8: type_size = 8; break; default: throw new Exception($"Unhandled MarshalAs attribute: {marshalAsAttribute.Value} on field {fieldInfo.DeclaringType.FullName}.{fieldInfo.Name}"); } field_types.Add(fieldInfo.FieldType); size = AlignAndAdd(original_type, size, type_size, ref max_element_size); size += (num - 1) * size; } } public static bool NeedStret(Type returnType, object generator) { if (X86NeedStret(returnType, generator)) { return true; } if (X86_64NeedStret(returnType, generator)) { return true; } if (ArmNeedStret(returnType, generator)) { return true; } return false; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/StringUtils.cs ================================================ using System.Text; namespace Xamarin.Utiles; internal class StringUtils { private static char shellQuoteChar; private static char[] mustQuoteCharacters; private static char[] mustQuoteCharactersProcess; static StringUtils() { mustQuoteCharacters = new char[5] { ' ', '\'', ',', '$', '\\' }; mustQuoteCharactersProcess = new char[4] { ' ', '\\', '"', '\'' }; PlatformID platform = Environment.OSVersion.Platform; if (platform != (PlatformID)128 && platform != PlatformID.Unix && platform != PlatformID.MacOSX) { shellQuoteChar = '"'; } else { shellQuoteChar = '\''; } } public static string[] Quote(params string[] array) { if (array == null || array.Length == 0) { return array; } string[] array2 = new string[array.Length]; for (int i = 0; i < array.Length; i++) { array2[i] = Quote(array[i]); } return array2; } public static string Quote(string f) { if (string.IsNullOrEmpty(f)) { return f ?? string.Empty; } if (f.IndexOfAny(mustQuoteCharacters) == -1) { return f; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(shellQuoteChar); foreach (char c in f) { if (c == '\'' || c == '"' || c == '\\') { stringBuilder.Append('\\'); } stringBuilder.Append(c); } stringBuilder.Append(shellQuoteChar); return stringBuilder.ToString(); } public static string[] QuoteForProcess(IList arguments) { if (arguments == null) { return Array.Empty(); } return QuoteForProcess(arguments.ToArray()); } public static string[] QuoteForProcess(params string[] array) { if (array == null || array.Length == 0) { return array; } string[] array2 = new string[array.Length]; for (int i = 0; i < array.Length; i++) { array2[i] = QuoteForProcess(array[i]); } return array2; } public static string QuoteForProcess(string f) { if (string.IsNullOrEmpty(f)) { return f ?? string.Empty; } if (f.IndexOfAny(mustQuoteCharactersProcess) == -1) { return f; } StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append('"'); foreach (char c in f) { switch (c) { case '"': stringBuilder.Append('\\'); stringBuilder.Append(c).Append(c); break; case '\\': stringBuilder.Append(c); break; } stringBuilder.Append(c); } stringBuilder.Append('"'); return stringBuilder.ToString(); } public static string FormatArguments(params string[] arguments) { return FormatArguments((IList)arguments); } public static string FormatArguments(IList arguments) { return string.Join(" ", QuoteForProcess(arguments)); } public static string Unquote(string input) { if (input == null || input.Length == 0 || input[0] != shellQuoteChar) { return input; } StringBuilder stringBuilder = new StringBuilder(); for (int i = 1; i < input.Length - 1; i++) { char c = input[i]; if (c == '\\') { stringBuilder.Append(input[i + 1]); i++; } else { stringBuilder.Append(input[i]); } } return stringBuilder.ToString(); } public static bool TryParseArguments(string quotedArguments, out string[] argv, out Exception ex) { StringBuilder builder = new StringBuilder(); List list = new List(); for (int i = 0; i < quotedArguments.Length; i++) { char c = quotedArguments[i]; if (c != ' ' && c != '\t') { string argument; if ((argument = GetArgument(builder, quotedArguments, i, out var endIndex, out ex)) == null) { argv = null; return false; } list.Add(argument); i = endIndex; } } argv = list.ToArray(); ex = null; return true; } private static string GetArgument(StringBuilder builder, string buf, int startIndex, out int endIndex, out Exception ex) { bool flag = false; char c = '\0'; int num = startIndex; builder.Clear(); char c2; switch (buf[startIndex]) { case '\'': c2 = '\''; num++; break; case '"': c2 = '"'; num++; break; default: c2 = '\0'; break; } while (num < buf.Length) { c = buf[num]; if (c == c2 && !flag) { num++; break; } if (c == '\\') { flag = true; } else if (flag) { builder.Append(c); flag = false; } else { if (c2 == '\0' && (c == ' ' || c == '\t')) { break; } if (c2 == '\0' && (c == '\'' || c == '"')) { string value = builder.ToString(); string argument; if ((argument = GetArgument(builder, buf, num, out endIndex, out ex)) == null) { return null; } num = endIndex; builder.Clear(); builder.Append(value); builder.Append(argument); continue; } builder.Append(c); } num++; } if (flag || (c2 != 0 && c != c2)) { ex = new FormatException(flag ? "Incomplete escape sequence." : "No matching quote found."); endIndex = -1; return null; } endIndex = num; ex = null; return builder.ToString(); } public static Version ParseVersion(string v) { if (int.TryParse(v, out var result)) { return new Version(result, 0); } return Version.Parse(v); } public static string SanitizeObjectiveCName(string name) { StringBuilder stringBuilder = null; for (int i = 0; i < name.Length; i++) { char c = name[i]; switch (c) { case '$': case '+': case '-': case '.': case '/': case '<': case '>': case '@': case '`': if (stringBuilder == null) { stringBuilder = new StringBuilder(name, 0, i, name.Length); } stringBuilder.Append('_'); break; default: stringBuilder?.Append(c); break; } } if (stringBuilder != null) { return stringBuilder.ToString(); } return name; } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/ThrowHelper.cs ================================================ using System.ComponentModel; using System.Diagnostics.CodeAnalysis; namespace Xamarin.Utiles; [EditorBrowsable(EditorBrowsableState.Never)] public static class ThrowHelper { [DoesNotReturn] public static void ThrowArgumentException(string argumentName) { throw new ArgumentException(argumentName); } [DoesNotReturn] public static void ThrowArgumentException(string argumentName, string message) { throw new ArgumentException(message, argumentName); } [DoesNotReturn] public static void ThrowArgumentNullException(string argumentName) { throw new ArgumentNullException(argumentName); } [DoesNotReturn] public static void ThrowArgumentNullException(string argumentName, string message) { throw new ArgumentNullException(argumentName, message); } [DoesNotReturn] public static void ThrowArgumentOutOfRangeException(string argumentName, string message) { throw new ArgumentOutOfRangeException(argumentName, message); } [DoesNotReturn] public static void ThrowArgumentOutOfRangeException(string argumentName, object actualValue, string message) { throw new ArgumentOutOfRangeException(argumentName, actualValue, message); } [DoesNotReturn] public static void ThrowObjectDisposedException(object o) { throw new ObjectDisposedException(o.GetType().ToString()); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/TransientAttribute.cs ================================================ namespace Xamarin.Utiles; [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public sealed class TransientAttribute : Attribute { } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/TypeEqualityComparer.cs ================================================ namespace Xamarin.Utiles; internal class TypeEqualityComparer : IEqualityComparer { public bool Equals(Type x, Type y) { return x == y; } public int GetHashCode(Type obj) { if (obj == null) { return 0; } return obj.GetHashCode(); } } ================================================ FILE: Source/Platform/Mac/Xamarin.Mac/Xamarin.Utiles/YosemiteAttribute.cs ================================================ namespace Xamarin.Utiles; public class YosemiteAttribute : Attribute { } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/AppBuilderExtensions.cs ================================================ using Avalonia.WebView.Windows; namespace Avalonia.WebView.Desktop; public static class AppBuilderExtensions { public static AppBuilder UseWindowWebView(this AppBuilder appBuilder) { return appBuilder.AfterPlatformServicesSetup(app => { WebViewLocator.s_Registrator.RegisterSingleton(); WebViewLocator.s_Registrator.RegisterSingleton(); }); } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Avalonia.WebView.Windows.csproj ================================================  netstandard2.0 WebView.Avalonia.Windows WebView.Avalonia.Windows $(TargetsForTfmSpecificContentInPackage);CopyTargetsForTfmSpecificContentInPackage runtimes $(TargetFramework) lib/$(TargetFramework)/runtimes/;runtimes $(TargetFramework) lib/$(TargetFramework)/ $(TargetFramework) $(TargetFramework) $(TargetFramework) $(TargetFramework) True \ True \ all all all all ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/BlazorWebViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Windows; internal class BlazorWebViewHandlerProvider : IPlatformBlazorWebViewProvider { public string Scheme => "https"; public IFileProvider CreateFileProvider(Assembly? assembly, string contentRootDirFullPath) { if (Directory.Exists(contentRootDirFullPath)) return new PhysicalFileProvider(contentRootDirFullPath); else return new NullFileProvider(); } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Core/WebView2Core-assist.cs ================================================ namespace Avalonia.WebView.Windows.Core; partial class WebView2Core { void VerifyNotDisposed() { if (IsDisposed) throw new ObjectDisposedException(typeof(WebView2Core).FullName); } private void VerifyBrowserNotCrashed() { if (_browserCrashed) throw new InvalidOperationException("The WebView control is no longer valid because the browser process crashed.To work around this, please listen for the CoreWebView2.ProcessFailed event to explicitly manage the lifetime of the WebView2 control in the event of a browser failure.https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.processfailed"); } private void VerifyCoreWebView2() { if (CoreWebView2 == null) throw new InvalidOperationException("Attempted to use WebView2 functionality which requires its CoreWebView2 prior to the CoreWebView2 being initialized. Call EnsureCoreWebView2Async or set the Source property first."); } void ReparentController(CoreWebView2Controller coreWebView2Controller, IntPtr hwnd, bool sync = true) { if (coreWebView2Controller is null) return; if (hwnd == IntPtr.Zero) { coreWebView2Controller.IsVisible = false; coreWebView2Controller.ParentWindow = IntPtr.Zero; return; } coreWebView2Controller.ParentWindow = hwnd; if (sync) SyncControllerWithParentWindow(coreWebView2Controller); } void SyncControllerWithParentWindow(CoreWebView2Controller coreWebView2Controller) { if (coreWebView2Controller is null) return; _handler.TryUpdateNativeControlPosition(); var focusElement = TopLevel.GetTopLevel(_handler)?.FocusManager?.GetFocusedElement(); if (focusElement == _handler) coreWebView2Controller.MoveFocus(CoreWebView2MoveFocusReason.Programmatic); coreWebView2Controller.IsVisible = _handler.IsVisible; } void ResetWebViewSize(CoreWebView2Controller coreWebView2Controller) { if (coreWebView2Controller is null) return; double scale = 1; var topLevel = TopLevel.GetTopLevel(_handler); if (topLevel is not null) scale = topLevel.RenderScaling; coreWebView2Controller.Bounds = new Rectangle(0, 0, Convert.ToInt32(_handler.Bounds.Width * scale), Convert.ToInt32(_handler.Bounds.Height * scale)); coreWebView2Controller.NotifyParentWindowPositionChanged(); return; } void ApplyDefaultWebViewSettings(CoreWebView2 coreWebView2) { if (coreWebView2 is null) return; coreWebView2.Settings.AreDevToolsEnabled = _creationProperties.AreDevToolEnabled; coreWebView2.Settings.AreDefaultContextMenusEnabled = _creationProperties.AreDefaultContextMenusEnabled; coreWebView2.Settings.IsStatusBarEnabled = _creationProperties.IsStatusBarEnabled; } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Core/WebView2Core-core.cs ================================================ using System; using WebViewCore.Enums; using WebViewCore.Helpers; using WebViewCore.Models; namespace Avalonia.WebView.Windows.Core; partial class WebView2Core { Task CreateEnvironmentAsync() { var options = new CoreWebView2EnvironmentOptions(_creationProperties.AdditionalBrowserArguments!, _creationProperties.Language!); //return CoreWebView2Environment.CreateAsync(_creationProperties.BrowserExecutableFolder!, _creationProperties.UserDataFolder!, options); return CoreWebView2Environment.CreateAsync(_creationProperties.BrowserExecutableFolder!, _creationProperties.UserDataFolder!, options); } CoreWebView2ControllerOptions? CreateCoreWebView2ControllerOptions(CoreWebView2Environment environment) { if (string.IsNullOrWhiteSpace(_creationProperties.ProfileName) && _creationProperties.IsInPrivateModeEnabled is null) return default; var coreWebView2ControllerOptions = environment.CreateCoreWebView2ControllerOptions(); coreWebView2ControllerOptions.ProfileName = _creationProperties.ProfileName!; coreWebView2ControllerOptions.IsInPrivateModeEnabled = _creationProperties.IsInPrivateModeEnabled.GetValueOrDefault(); return coreWebView2ControllerOptions; } void SetEnvirmentDefaultBackground(Color color) => Environment.SetEnvironmentVariable("WEBVIEW2_DEFAULT_BACKGROUND_COLOR", color.Name); Task PrepareBlazorWebViewStarting(IVirtualBlazorWebViewProvider provider, CoreWebView2 coreWebView2) { if (provider is null || coreWebView2 is null) return Task.CompletedTask; if (!provider.ResourceRequestedFilterProvider(this, out var filter)) return Task.CompletedTask; _isBlazorWebView = true; var filterString = $"{filter.BaseUri.AbsoluteUri}*"; coreWebView2.AddWebResourceRequestedFilter(filterString, CoreWebView2WebResourceContext.All); return coreWebView2.AddScriptToExecuteOnDocumentCreatedAsync(BlazorScriptHelper.BlazorStartingScript); } void ClearBlazorWebViewCompleted(CoreWebView2 coreWebView2) { _isBlazorWebView = false; } private async void CoreWebView2_WebResourceRequested(object sender, CoreWebView2WebResourceRequestedEventArgs e) { await CoreWebView2_WebResourceRequestedAsync(sender, e); } private protected string GetHeaderString(IDictionary headers) => string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}")); private Task CoreWebView2_WebResourceRequestedAsync(object sender, CoreWebView2WebResourceRequestedEventArgs e) { if (_provider is null) return Task.CompletedTask; if (_coreWebView2Environment is null) return Task.CompletedTask; var allowFallbackOnHostPage = e.ResourceContext == CoreWebView2WebResourceContext.Document || e.ResourceContext == CoreWebView2WebResourceContext.Other; var request = new WebResourceRequest { RequestUri = e.Request.Uri, AllowFallbackOnHostPage = allowFallbackOnHostPage }; if (!_provider.PlatformWebViewResourceRequested(this, request, out var response)) return Task.CompletedTask; if (response is null) return Task.CompletedTask; var headerString = GetHeaderString(response.Headers); e.Response = _coreWebView2Environment.CreateWebResourceResponse(response.Content, response.StatusCode, response.StatusMessage, headerString); return Task.CompletedTask; } private void CoreWebView2Controller_ZoomFactorChanged(object sender, object e) { } private void CoreWebView2Controller_MoveFocusRequested(object sender, CoreWebView2MoveFocusRequestedEventArgs e) { } private void CoreWebView2Controller_LostFocus(object sender, object e) { } private void CoreWebView2Controller_GotFocus(object sender, object e) { } private void CoreWebView2Controller_AcceleratorKeyPressed(object sender, CoreWebView2AcceleratorKeyPressedEventArgs e) { } private async void CoreWebView2_DOMContentLoaded(object sender, CoreWebView2DOMContentLoadedEventArgs e) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return; try { await coreWebView2.ExecuteScriptAsync(BlazorScriptHelper.BlazorStaredScript); } catch (Exception) { } } private void CoreWebView2_WebMessageReceived(object sender, CoreWebView2WebMessageReceivedEventArgs e) { var message = new WebViewMessageReceivedEventArgs { Message = e.TryGetWebMessageAsString(), MessageAsJson = e.WebMessageAsJson, Source = new Uri(e.Source), RawArgs = e, }; _callBack.PlatformWebViewMessageReceived(this, message); _provider?.PlatformWebViewMessageReceived(this, message); } private void CoreWebView2_SourceChanged(object sender, CoreWebView2SourceChangedEventArgs e) { } private void CoreWebView2_ProcessFailed(object sender, CoreWebView2ProcessFailedEventArgs e) { } private void CoreWebView2_NavigationStarting(object sender, CoreWebView2NavigationStartingEventArgs e) { WebViewUrlLoadingEventArg args = new() { Url = new Uri(e.Uri), RawArgs = e }; _callBack.PlatformWebViewNavigationStarting(this, args); e.Cancel = args.Cancel; } private void CoreWebView2_NavigationCompleted(object sender, CoreWebView2NavigationCompletedEventArgs e) { _callBack.PlatformWebViewNavigationCompleted(this, new WebViewUrlLoadedEventArg() { IsSuccess = e.IsSuccess, RawArgs = e }); } private void CoreWebView2_HistoryChanged(object sender, object e) { } private void CoreWebView2_ContentLoading(object sender, CoreWebView2ContentLoadingEventArgs e) { } private void CoreWebView2_NewWindowRequested(object sender, CoreWebView2NewWindowRequestedEventArgs e) { var urlLoadingStrategy = UrlRequestStrategy.OpenInWebView; var uri = new Uri(e.Uri); if (_provider is not null) { if (_provider.BaseUri.IsBaseOf(uri) == true) urlLoadingStrategy = UrlRequestStrategy.OpenInWebView; } var newWindowEventArgs = new WebViewNewWindowEventArgs() { Url = uri, UrlLoadingStrategy = urlLoadingStrategy, RawArgs = e, }; if (!_callBack.PlatformWebViewNewWindowRequest(this, newWindowEventArgs)) return; switch (newWindowEventArgs.UrlLoadingStrategy) { case UrlRequestStrategy.OpenExternally: e.Handled = true; OpenUriHelper.OpenInProcess(uri); break; case UrlRequestStrategy.OpenInWebView: e.NewWindow = CoreWebView2!; break; case UrlRequestStrategy.CancelLoad: e.Handled = true; break; case UrlRequestStrategy.OpenInNewWindow: default: break; } } private void Profile_Deleted(object sender, object e) { } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Core/WebView2Core-event.cs ================================================ using System.Runtime.InteropServices; namespace Avalonia.WebView.Windows.Core; partial class WebView2Core { void RegisterEvents() { _handler.SizeChanged += HostControl_SizeChanged; _handler.PlatformHandlerChanged += Handler_PlatformHandlerChanged; } void UnregisterEvents() { _handler.SizeChanged -= HostControl_SizeChanged; _handler.PlatformHandlerChanged -= Handler_PlatformHandlerChanged; } void RegisterWebViewEvents(CoreWebView2Controller coreWebView2Controller) { if (coreWebView2Controller is null) return; if (!_browserHitTransparent) coreWebView2Controller.AcceleratorKeyPressed += CoreWebView2Controller_AcceleratorKeyPressed; ; coreWebView2Controller.GotFocus += CoreWebView2Controller_GotFocus; coreWebView2Controller.LostFocus += CoreWebView2Controller_LostFocus; coreWebView2Controller.MoveFocusRequested += CoreWebView2Controller_MoveFocusRequested; coreWebView2Controller.ZoomFactorChanged += CoreWebView2Controller_ZoomFactorChanged; var corewebview2 = coreWebView2Controller.CoreWebView2; if (corewebview2 is null) return; corewebview2.NewWindowRequested += CoreWebView2_NewWindowRequested; corewebview2.ContentLoading += CoreWebView2_ContentLoading; corewebview2.HistoryChanged += CoreWebView2_HistoryChanged; corewebview2.NavigationCompleted += CoreWebView2_NavigationCompleted; corewebview2.NavigationStarting += CoreWebView2_NavigationStarting; corewebview2.ProcessFailed += CoreWebView2_ProcessFailed; corewebview2.SourceChanged += CoreWebView2_SourceChanged; corewebview2.WebMessageReceived += CoreWebView2_WebMessageReceived; corewebview2.WebResourceRequested += CoreWebView2_WebResourceRequested; corewebview2.DOMContentLoaded += CoreWebView2_DOMContentLoaded; corewebview2.Profile.Deleted += Profile_Deleted; } void UnregisterWebViewEvents(CoreWebView2Controller coreWebView2Controller, bool browserCrashed = false) { if (coreWebView2Controller is null) return; var corewebview2 = coreWebView2Controller.CoreWebView2; if (!_browserHitTransparent) coreWebView2Controller.AcceleratorKeyPressed -= CoreWebView2Controller_AcceleratorKeyPressed; ; coreWebView2Controller.GotFocus -= CoreWebView2Controller_GotFocus; coreWebView2Controller.LostFocus -= CoreWebView2Controller_LostFocus; coreWebView2Controller.MoveFocusRequested -= CoreWebView2Controller_MoveFocusRequested; coreWebView2Controller.ZoomFactorChanged -= CoreWebView2Controller_ZoomFactorChanged; coreWebView2Controller.Close(); if (corewebview2 is null) return; corewebview2.NewWindowRequested -= CoreWebView2_NewWindowRequested; corewebview2.ContentLoading -= CoreWebView2_ContentLoading; corewebview2.HistoryChanged -= CoreWebView2_HistoryChanged; corewebview2.NavigationCompleted -= CoreWebView2_NavigationCompleted; corewebview2.NavigationStarting -= CoreWebView2_NavigationStarting; corewebview2.ProcessFailed -= CoreWebView2_ProcessFailed; corewebview2.SourceChanged -= CoreWebView2_SourceChanged; corewebview2.WebMessageReceived -= CoreWebView2_WebMessageReceived; corewebview2.WebResourceRequested -= CoreWebView2_WebResourceRequested; corewebview2.DOMContentLoaded -= CoreWebView2_DOMContentLoaded; corewebview2.Profile.Deleted -= Profile_Deleted; } private void HostControl_SizeChanged(object sender, SizeChangedEventArgs e) { if (_coreWebView2Controller is null) return; double scale = 1; var topLevel = TopLevel.GetTopLevel(_handler); if (topLevel is not null) scale = topLevel.RenderScaling; _coreWebView2Controller.Bounds = new Rectangle(0, 0, Convert.ToInt32(e.NewSize.Width * scale), Convert.ToInt32(e.NewSize.Height * scale)); _coreWebView2Controller.NotifyParentWindowPositionChanged(); } private void Handler_PlatformHandlerChanged(object sender, EventArgs e) { if (_handler.RefHandler.Handle != IntPtr.Zero) { NativeHandler = _handler.RefHandler.Handle; _hwndTaskSource.SetResult(_handler.RefHandler.Handle); } } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Core/WebView2Core-override.cs ================================================ namespace Avalonia.WebView.Windows.Core; partial class WebView2Core { public IntPtr NativeHandler { get; private set; } WebView2Core IPlatformWebView.PlatformView => this; object? IPlatformWebView.PlatformViewContext => this; bool IPlatformWebView.IsInitialized => IsInitialized; bool IWebViewControl.IsCanGoForward => CoreWebView2?.CanGoForward ?? false; bool IWebViewControl.IsCanGoBack => CoreWebView2?.CanGoBack ?? false; async Task IPlatformWebView.Initialize() { if (IsInitialized) return true; try { _callBack.PlatformWebViewCreating(this, new WebViewCreatingEventArgs()); var environment2 = await CreateEnvironmentAsync().ConfigureAwait(true); _coreWebView2Environment = environment2; var options = CreateCoreWebView2ControllerOptions(environment2); IntPtr intPtr = await _hwndTaskSource.Task; if (options is not null) { CoreWebView2Environment environment3 = environment2; CoreWebView2Controller coreWebView2Controller = await environment3.CreateCoreWebView2ControllerAsync(intPtr, options).ConfigureAwait(true); _coreWebView2Controller = coreWebView2Controller; _controllerOptions = options; } else { CoreWebView2Environment environment3 = environment2; CoreWebView2Controller coreWebView2Controller = await environment3.CreateCoreWebView2ControllerAsync(intPtr).ConfigureAwait(true); _coreWebView2Controller = coreWebView2Controller; } var coreWebView2 = _coreWebView2Controller.CoreWebView2; if (coreWebView2 is null) throw new ArgumentNullException(nameof(coreWebView2), "coreWebView2 is null!"); try { _browserHitTransparent = _coreWebView2Controller.IsBrowserHitTransparent; } catch (NotImplementedException) { } ResetWebViewSize(_coreWebView2Controller); if (_coreWebView2Controller.ParentWindow != intPtr) ReparentController(_coreWebView2Controller, intPtr); if (_coreWebView2Controller.ParentWindow != IntPtr.Zero) SyncControllerWithParentWindow(_coreWebView2Controller); ApplyDefaultWebViewSettings(coreWebView2); RegisterWebViewEvents(_coreWebView2Controller); if (_provider is not null) await PrepareBlazorWebViewStarting(_provider, coreWebView2).ConfigureAwait(true); IsInitialized = true; _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = true }); return true; } catch (Exception ex2) { _callBack.PlatformWebViewCreated(this, new WebViewCreatedEventArgs { IsSucceed = false, Message = ex2.ToString() }); } return false; } bool IWebViewControl.GoBack() { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (!coreWebView2.CanGoBack) return false; coreWebView2.GoBack(); return true; } bool IWebViewControl.GoForward() { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (!coreWebView2.CanGoForward) return false; coreWebView2.GoForward(); return true; } bool IWebViewControl.Navigate(Uri? uri) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (uri is null) return false; coreWebView2.Navigate(uri.AbsoluteUri); return true; } bool IWebViewControl.NavigateToString(string htmlContent) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (string.IsNullOrWhiteSpace(htmlContent)) return false; coreWebView2.NavigateToString(htmlContent); return true; } bool IWebViewControl.OpenDevToolsWindow() { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; coreWebView2.OpenDevToolsWindow(); return true; } async Task IWebViewControl.ExecuteScriptAsync(string javaScript) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return default; if (string.IsNullOrEmpty(javaScript)) return default; var result = await coreWebView2.ExecuteScriptAsync(javaScript); return result; } bool IWebViewControl.PostWebMessageAsJson(string webMessageAsJson, Uri? baseUri) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (string.IsNullOrWhiteSpace(webMessageAsJson)) return false; coreWebView2.PostWebMessageAsJson(webMessageAsJson); return true; } bool IWebViewControl.PostWebMessageAsString(string webMessageAsString, Uri? baseUri) { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; if (string.IsNullOrWhiteSpace(webMessageAsString)) return false; coreWebView2.PostWebMessageAsString(webMessageAsString); return true; } bool IWebViewControl.Reload() { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; coreWebView2.Reload(); return true; } bool IWebViewControl.Stop() { var coreWebView2 = CoreWebView2; if (coreWebView2 is null) return false; coreWebView2.Stop(); return true; } protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { try { ClearBlazorWebViewCompleted(CoreWebView2!); UnregisterWebViewEvents(_coreWebView2Controller!); UnregisterEvents(); } catch (Exception) { } _controllerOptions = null; _coreWebView2Controller = null; _coreWebView2Environment = null; } IsDisposed = true; } } void IDisposable.Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } ValueTask IAsyncDisposable.DisposeAsync() { ((IDisposable)this)?.Dispose(); return new ValueTask(); } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Core/WebView2Core.cs ================================================ namespace Avalonia.WebView.Windows.Core; public partial class WebView2Core : IPlatformWebView { public WebView2Core(ViewHandler handler, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { _hwndTaskSource = new(); _callBack = callback; _handler = handler; _creationProperties = webViewCreationProperties; _provider = provider; if (handler.RefHandler.Handle != IntPtr.Zero) { NativeHandler = handler.RefHandler.Handle; _hwndTaskSource.SetResult(handler.RefHandler.Handle); } SetEnvirmentDefaultBackground(webViewCreationProperties.DefaultWebViewBackgroundColor); RegisterEvents(); } ~WebView2Core() { Dispose(disposing: false); } readonly IVirtualBlazorWebViewProvider? _provider; readonly IVirtualWebViewControlCallBack _callBack; readonly ViewHandler _handler; readonly WebViewCreationProperties _creationProperties; readonly TaskCompletionSource _hwndTaskSource; bool _browserHitTransparent; bool _browserCrashed; bool _isBlazorWebView = false; bool _isInitialized = false; public bool IsInitialized { get => Volatile.Read(ref _isInitialized); private set => Volatile.Write(ref _isInitialized, value); } bool _isDisposed = false; public bool IsDisposed { get => Volatile.Read(ref _isDisposed); private set => Volatile.Write(ref _isDisposed, value); } CoreWebView2Environment? _coreWebView2Environment { get; set; } CoreWebView2Controller? _coreWebView2Controller { get; set; } CoreWebView2ControllerOptions? _controllerOptions { get; set; } [Browsable(false)] public CoreWebView2? CoreWebView2 { get { VerifyNotDisposed(); VerifyBrowserNotCrashed(); return _coreWebView2Controller?.CoreWebView2; } } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Helpers/BlazorScriptHelper.cs ================================================ namespace Avalonia.WebView.Windows.Helpers; internal static class BlazorScriptHelper { public const string BlazorStartingScript = """ window.external = { sendMessage: message => { window.chrome.webview.postMessage(message); }, receiveMessage: callback => { window.chrome.webview.addEventListener('message', e => callback(e.data)); } }; """; public const string BlazorStaredScript = """ Blazor.start(); """; } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/Properties/_globalusing.cs ================================================ global using AvaloniaWebView.Shared.Handlers; global using Microsoft.Web.WebView2.Core; global using WebViewCore; global using Avalonia.Platform; global using Avalonia.Controls; global using Avalonia.WebView.Windows.Core; global using System.Runtime.InteropServices; global using WebViewCore.Configurations; global using AvaloniaWebView.Shared; global using Avalonia.Input; global using System.ComponentModel; global using Avalonia.WebView.Windows.Helpers; global using System.Drawing; global using WebViewCore.Events; global using WebViewCore.Models; global using Microsoft.Extensions.FileProviders; global using System.Reflection; global using DryIoc.Shared.Extensions; global using WebViewCore.Ioc; ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/ViewHandlerProvider.cs ================================================ namespace Avalonia.WebView.Windows; internal class ViewHandlerProvider : IViewHandlerProvider { IViewHandler IViewHandlerProvider.CreatePlatformWebViewHandler(IVirtualWebView virtualView, IVirtualWebViewControlCallBack virtualViewCallBack, IVirtualBlazorWebViewProvider? provider, Action? configDelegate) { var creatonProperty = new WebViewCreationProperties(); configDelegate?.Invoke(creatonProperty); return new WebViewHandler(virtualView, virtualViewCallBack, provider, creatonProperty); } } ================================================ FILE: Source/Platform/Windows/Avalonia.WebView.Windows/WebViewHandler.cs ================================================ namespace Avalonia.WebView.Windows; public class WebViewHandler : ViewHandler { public WebViewHandler(IVirtualWebView virtualWebView, IVirtualWebViewControlCallBack callback, IVirtualBlazorWebViewProvider? provider, WebViewCreationProperties webViewCreationProperties) { var webView = new WebView2Core(this, callback, provider, webViewCreationProperties); PlatformWebView = webView; VirtualViewContext = virtualWebView; PlatformViewContext = webView; } protected override HandleRef CreatePlatformHandler(IPlatformHandle parent, Func createFromSystem) { var handler = createFromSystem.Invoke(); return new HandleRef(this, handler.Handle); } protected override void Disposing() { PlatformWebView.Dispose(); PlatformWebView = default!; VirtualViewContext = default!; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/AutoCloseOnReadCompleteStream.cs ================================================ using System.IO; namespace Microsoft.AspNetCore.Components.WebView; internal class AutoCloseOnReadCompleteStream : Stream { private readonly Stream _baseStream; public AutoCloseOnReadCompleteStream(Stream baseStream) { _baseStream = baseStream; } public override bool CanRead => _baseStream.CanRead; public override bool CanSeek => _baseStream.CanSeek; public override bool CanWrite => _baseStream.CanWrite; public override long Length => _baseStream.Length; public override long Position { get => _baseStream.Position; set => _baseStream.Position = value; } public override void Flush() => _baseStream.Flush(); public override int Read(byte[] buffer, int offset, int count) { var bytesRead = _baseStream.Read(buffer, offset, count); // Stream.Read only returns 0 when it has reached the end of stream // and no further bytes are expected. Otherwise it blocks until // one or more (and at most count) bytes can be read. if (bytesRead == 0) { _baseStream.Close(); } return bytesRead; } public override long Seek(long offset, SeekOrigin origin) => _baseStream.Seek(offset, origin); public override void SetLength(long value) => _baseStream.SetLength(value); public override void Write(byte[] buffer, int offset, int count) => _baseStream.Write(buffer, offset, count); } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/BlazorWebView.cs ================================================ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using System.Collections.Specialized; using System.ComponentModel; using System.IO; using System.Reflection; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using WebView2Control = Microsoft.Web.WebView2.Wpf.WebView2; namespace Microsoft.AspNetCore.Components.WebView.Wpf; public class BlazorWebView : Control, IAsyncDisposable { #region Dependency property definitions /// /// The backing store for the property. /// public static readonly DependencyProperty HostPageProperty = DependencyProperty.Register( name: nameof(HostPage), propertyType: typeof(string), ownerType: typeof(BlazorWebView), typeMetadata: new PropertyMetadata(OnHostPagePropertyChanged)); /// /// The backing store for the property. /// public static readonly DependencyProperty RootComponentsProperty = DependencyProperty.Register( name: nameof(RootComponents), propertyType: typeof(RootComponentsCollection), ownerType: typeof(BlazorWebView)); /// /// The backing store for the property. /// public static readonly DependencyProperty ServicesProperty = DependencyProperty.Register( name: nameof(Services), propertyType: typeof(IServiceProvider), ownerType: typeof(BlazorWebView), typeMetadata: new PropertyMetadata(OnServicesPropertyChanged)); /// /// The backing store for the property. /// public static readonly DependencyProperty UrlLoadingProperty = DependencyProperty.Register( name: nameof(UrlLoading), propertyType: typeof(EventHandler), ownerType: typeof(BlazorWebView)); /// /// The backing store for the event. /// public static readonly DependencyProperty BlazorWebViewInitializingProperty = DependencyProperty.Register( name: nameof(BlazorWebViewInitializing), propertyType: typeof(EventHandler), ownerType: typeof(BlazorWebView)); /// /// The backing store for the event. /// public static readonly DependencyProperty BlazorWebViewInitializedProperty = DependencyProperty.Register( name: nameof(BlazorWebViewInitialized), propertyType: typeof(EventHandler), ownerType: typeof(BlazorWebView)); #endregion private const string WebViewTemplateChildName = "WebView"; private WebView2Control? _webview; private WebView2WebViewManager? _webviewManager; private bool _isDisposed; static BlazorWebView() { // By default, prevent the BlazorWebView from receiving focus. Focus should typically be directed // to the underlying WebView2 control. FocusableProperty.OverrideMetadata(typeof(BlazorWebView), new FrameworkPropertyMetadata(false)); // Listen for changes to the IsTabStop property so we can manipulate how tab navigation affects // the BlazorWebView's subtree. IsTabStopProperty.OverrideMetadata(typeof(BlazorWebView), new FrameworkPropertyMetadata(OnIsTabStopPropertyChanged)); } /// /// Creates a new instance of . /// public BlazorWebView() { ComponentsDispatcher = new WpfDispatcher(Application.Current.Dispatcher); SetValue(RootComponentsProperty, new RootComponentsCollection()); RootComponents.CollectionChanged += HandleRootComponentsCollectionChanged; Template = new ControlTemplate { VisualTree = new FrameworkElementFactory(typeof(WebView2Control), WebViewTemplateChildName) }; ApplyTabNavigation(IsTabStop); } /// /// Returns the inner used by this control. /// /// /// Directly using some functionality of the inner web view can cause unexpected results because its behavior /// is controlled by the that is hosting it. /// [Browsable(false)] public WebView2Control WebView => _webview!; /// /// Path to the host page within the application's static files. For example, wwwroot\index.html. /// This property must be set to a valid value for the Razor components to start. /// public string HostPage { get => (string)GetValue(HostPageProperty); set => SetValue(HostPageProperty, value); } /// /// A collection of instances that specify the Blazor types /// to be used directly in the specified . /// public RootComponentsCollection RootComponents => (RootComponentsCollection)GetValue(RootComponentsProperty); /// /// Allows customizing how links are opened. /// By default, opens internal links in the webview and external links in an external app. /// public EventHandler UrlLoading { get => (EventHandler)GetValue(UrlLoadingProperty); set => SetValue(UrlLoadingProperty, value); } /// /// Allows customizing the web view before it is created. /// public EventHandler BlazorWebViewInitializing { get => (EventHandler)GetValue(BlazorWebViewInitializingProperty); set => SetValue(BlazorWebViewInitializingProperty, value); } /// /// Allows customizing the web view after it is created. /// public EventHandler BlazorWebViewInitialized { get => (EventHandler)GetValue(BlazorWebViewInitializedProperty); set => SetValue(BlazorWebViewInitializedProperty, value); } /// /// Gets or sets an containing services to be used by this control and also by application code. /// This property must be set to a valid value for the Razor components to start. /// public IServiceProvider Services { get => (IServiceProvider)GetValue(ServicesProperty); set => SetValue(ServicesProperty, value); } private static void OnServicesPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) => ((BlazorWebView)d).OnServicesPropertyChanged(e); private void OnServicesPropertyChanged(DependencyPropertyChangedEventArgs e) => StartWebViewCoreIfPossible(); private static void OnHostPagePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) => ((BlazorWebView)d).OnHostPagePropertyChanged(e); private void OnHostPagePropertyChanged(DependencyPropertyChangedEventArgs e) => StartWebViewCoreIfPossible(); private static void OnIsTabStopPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) => ((BlazorWebView)d).OnIsTabStopPropertyChanged(e); private void OnIsTabStopPropertyChanged(DependencyPropertyChangedEventArgs e) => ApplyTabNavigation((bool)e.NewValue); private void ApplyTabNavigation(bool isTabStop) { var keyboardNavigationMode = isTabStop ? KeyboardNavigationMode.Local : KeyboardNavigationMode.None; KeyboardNavigation.SetTabNavigation(this, keyboardNavigationMode); } private bool RequiredStartupPropertiesSet => _webview != null && HostPage != null && Services != null; /// public override void OnApplyTemplate() { CheckDisposed(); // Called when the control is created after its child control (the WebView2) is created from the Template property base.OnApplyTemplate(); if (_webview == null) { _webview = (WebView2Control)GetTemplateChild(WebViewTemplateChildName); StartWebViewCoreIfPossible(); } } /// protected override void OnInitialized(EventArgs e) { // Called when BeginInit/EndInit are used, such as when creating the control from XAML base.OnInitialized(e); StartWebViewCoreIfPossible(); } private void StartWebViewCoreIfPossible() { CheckDisposed(); if (!RequiredStartupPropertiesSet || _webviewManager != null) { return; } var logger = Services.GetService>() ?? NullLogger.Instance; // We assume the host page is always in the root of the content directory, because it's // unclear there's any other use case. We can add more options later if so. string appRootDir; var entryAssemblyLocation = Assembly.GetEntryAssembly()?.Location; if (!string.IsNullOrEmpty(entryAssemblyLocation)) { appRootDir = Path.GetDirectoryName(entryAssemblyLocation)!; } else { appRootDir = Environment.CurrentDirectory; } var hostPageFullPath = Path.GetFullPath(Path.Combine(appRootDir, HostPage)); var contentRootDirFullPath = Path.GetDirectoryName(hostPageFullPath)!; var hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, hostPageFullPath); var contentRootDirRelativePath = Path.GetRelativePath(appRootDir, contentRootDirFullPath); var fileProvider = CreateFileProvider(contentRootDirFullPath); _webviewManager = new WebView2WebViewManager( _webview!, Services, ComponentsDispatcher, fileProvider, RootComponents.JSComponents, contentRootDirRelativePath, hostPageRelativePath, (args) => UrlLoading?.Invoke(this, args), (args) => BlazorWebViewInitializing?.Invoke(this, args), (args) => BlazorWebViewInitialized?.Invoke(this, args), logger); StaticContentHotReloadManager.AttachToWebViewManagerIfEnabled(_webviewManager); foreach (var rootComponent in RootComponents) { // Since the page isn't loaded yet, this will always complete synchronously _ = rootComponent.AddToWebViewManagerAsync(_webviewManager); } _webviewManager.Navigate("/"); } private WpfDispatcher ComponentsDispatcher { get; } private void HandleRootComponentsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs eventArgs) { CheckDisposed(); // If we haven't initialized yet, this is a no-op if (_webviewManager != null) { // Dispatch because this is going to be async, and we want to catch any errors _ = ComponentsDispatcher.InvokeAsync(async () => { var newItems = (eventArgs.NewItems ?? Array.Empty()).Cast(); var oldItems = (eventArgs.OldItems ?? Array.Empty()).Cast(); foreach (var item in newItems.Except(oldItems)) { await item.AddToWebViewManagerAsync(_webviewManager); } foreach (var item in oldItems.Except(newItems)) { await item.RemoveFromWebViewManagerAsync(_webviewManager); } }); } } /// /// Creates a file provider for static assets used in the . The default implementation /// serves files from disk. Override this method to return a custom to serve assets such /// as wwwroot/index.html. Call the base method and combine its return value with a /// to use both custom assets and default assets. /// /// The base directory to use for all requested assets, such as wwwroot. /// Returns a for static assets. public virtual IFileProvider CreateFileProvider(string contentRootDir) { if (Directory.Exists(contentRootDir)) { // Typical case after publishing, or if you're copying content to the bin dir in development for some nonstandard reason return new PhysicalFileProvider(contentRootDir); } else { // Typical case in development, as the files come from Microsoft.AspNetCore.Components.WebView.StaticContentProvider // instead and aren't copied to the bin dir return new NullFileProvider(); } } private void CheckDisposed() { if (_isDisposed) { throw new ObjectDisposedException(GetType().Name); } } /// /// Allows asynchronous disposal of the . /// protected virtual async ValueTask DisposeAsyncCore() { // Dispose this component's contents that user-written disposal logic and Razor component disposal logic will // complete first. Then dispose the WebView2 control. This order is critical because once the WebView2 is // disposed it will prevent and Razor component code from working because it requires the WebView to exist. if (_webviewManager != null) { await _webviewManager.DisposeAsync() .ConfigureAwait(false); _webviewManager = null; } _webview?.Dispose(); _webview = null; } /// public async ValueTask DisposeAsync() { if (_isDisposed) { return; } _isDisposed = true; // Perform async cleanup. await DisposeAsyncCore(); #pragma warning disable CA1816 // Dispose methods should call SuppressFinalize // Suppress finalization. GC.SuppressFinalize(this); #pragma warning restore CA1816 // Dispose methods should call SuppressFinalize } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/BlazorWebViewDeveloperTools.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView; internal class BlazorWebViewDeveloperTools { public bool Enabled { get; set; } = false; } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/BlazorWebViewInitializedEventArgs.cs ================================================ using WebView2Control = Microsoft.Web.WebView2.Wpf.WebView2; namespace Microsoft.AspNetCore.Components.WebView; public class BlazorWebViewInitializedEventArgs : EventArgs { public WebView2Control? WebView { get; internal set; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/BlazorWebViewInitializingEventArgs.cs ================================================ using Microsoft.Web.WebView2.Core; namespace Microsoft.AspNetCore.Components.WebView; public class BlazorWebViewInitializingEventArgs : EventArgs { public string? BrowserExecutableFolder { get; set; } public string? UserDataFolder { get; set; } public CoreWebView2EnvironmentOptions? EnvironmentOptions { get; set; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/BlazorWebViewServiceCollectionExtensions.cs ================================================ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; namespace Microsoft.AspNetCore.Components.WebView.Wpf; public static class BlazorWebViewServiceCollectionExtensions { /// /// Configures to add support for . /// /// The . /// The . public static IWpfBlazorWebViewBuilder AddWpfBlazorWebView(this IServiceCollection services) { services.AddBlazorWebView(); services.TryAddSingleton(new BlazorWebViewDeveloperTools { Enabled = false }); services.TryAddSingleton(); return new WpfBlazorWebViewBuilder(services); } /// /// Enables Developer tools on the underlying WebView controls. /// /// The . /// The . public static IServiceCollection AddBlazorWebViewDeveloperTools(this IServiceCollection services) { return services.AddSingleton(new BlazorWebViewDeveloperTools { Enabled = true }); } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/IWpfBlazorWebViewBuilder.cs ================================================ using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Components.WebView.Wpf; public interface IWpfBlazorWebViewBuilder { /// /// Gets the builder service collection. /// IServiceCollection Services { get; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/Microsoft.AspNetCore.Components.WebView.Wpf.csproj ================================================  net7.0-windows true ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/Properties/AssemblyInfo.cs ================================================ using System.Windows.Markup; [assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation/blazor", "Microsoft.AspNetCore.Components.WebView.Wpf")] ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/QueryStringHelper.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView; internal static class QueryStringHelper { public static string RemovePossibleQueryString(string? url) { if (string.IsNullOrEmpty(url)) { return string.Empty; } var indexOfQueryString = url.IndexOf('?', StringComparison.Ordinal); return (indexOfQueryString == -1) ? url : url.Substring(0, indexOfQueryString); } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/RootComponent.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView.Wpf; public class RootComponent { /// /// Gets or sets the CSS selector string that specifies where in the document the component should be placed. /// This must be unique among the root components within the . /// public string Selector { get; set; } = default!; /// /// Gets or sets the type of the root component. This type must implement . /// public Type ComponentType { get; set; } = default!; /// /// Gets or sets an optional dictionary of parameters to pass to the root component. /// public IDictionary? Parameters { get; set; } internal Task AddToWebViewManagerAsync(WebViewManager webViewManager) { // As a characteristic of XAML,we can't rely on non-default constructors. So we have to // validate that the required properties were set. We could skip validating this and allow // the lower-level renderer code to throw, but that would be harder for developers to understand. if (string.IsNullOrWhiteSpace(Selector)) { throw new InvalidOperationException($"{nameof(RootComponent)} requires a value for its {nameof(Selector)} property, but no value was set."); } if (ComponentType is null) { throw new InvalidOperationException($"{nameof(RootComponent)} requires a value for its {nameof(ComponentType)} property, but no value was set."); } var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters); return webViewManager.AddRootComponentAsync(ComponentType, Selector, parameterView); } internal Task RemoveFromWebViewManagerAsync(WebView2WebViewManager webviewManager) { return webviewManager.RemoveRootComponentAsync(Selector); } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/RootComponentsCollection.cs ================================================ using Microsoft.AspNetCore.Components.Web; using System.Collections.ObjectModel; namespace Microsoft.AspNetCore.Components.WebView.Wpf; public class RootComponentsCollection : ObservableCollection, IJSComponentConfiguration { /// public JSComponentConfigurationStore JSComponents { get; } = new(); } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/StaticContentHotReloadManager.cs ================================================ using Microsoft.Extensions.Logging; using Microsoft.JSInterop; using System.IO; using System.Reflection; using System.Reflection.Metadata; using System.Text; using System.Text.RegularExpressions; namespace Microsoft.AspNetCore.Components.WebView; internal static class StaticContentHotReloadManager { private delegate void ContentUpdatedHandler(string assemblyName, string relativePath); private readonly static Regex ContentUrlRegex = new Regex("^_content/(?[^/]+)/(?.*)"); private static event ContentUpdatedHandler? OnContentUpdated; // If the current platform can't tell us the application entry assembly name, we can use a placeholder name private static string ApplicationAssemblyName { get; } = Assembly.GetEntryAssembly()?.GetName().Name ?? "__application_assembly__"; private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new() { { (ApplicationAssemblyName, "_framework/static-content-hot-reload.js"), ("text/javascript", Encoding.UTF8.GetBytes(@" export function notifyCssUpdated() { const allLinkElems = Array.from(document.querySelectorAll('link[rel=stylesheet]')); allLinkElems.forEach(elem => elem.href += ''); } ")) } }; /// /// MetadataUpdateHandler event. This is invoked by the hot reload host via reflection. /// public static void UpdateContent(string assemblyName, bool isApplicationProject, string relativePath, byte[] contents) { if (isApplicationProject) { // Some platforms don't know the name of the application entry assembly (e.g., Android) so in // those cases we have a placeholder name for it. The tooling does know the real name, but we // need to use our placeholder so the lookups work later. assemblyName = ApplicationAssemblyName; } _updatedContent[(assemblyName, relativePath)] = (ContentType: null, Content: contents); OnContentUpdated?.Invoke(assemblyName, relativePath); } public static void AttachToWebViewManagerIfEnabled(WebViewManager manager) { if (MetadataUpdater.IsSupported) { manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); } } public static bool TryReplaceResponseContent(string contentRootRelativePath, string requestAbsoluteUri, ref int responseStatusCode, ref Stream responseContent, IDictionary responseHeaders) { if (MetadataUpdater.IsSupported) { var (assemblyName, relativePath) = GetAssemblyNameAndRelativePath(requestAbsoluteUri, contentRootRelativePath); if (_updatedContent.TryGetValue((assemblyName, relativePath), out var values)) { responseStatusCode = 200; responseContent.Close(); responseContent = new MemoryStream(values.Content); if (!string.IsNullOrEmpty(values.ContentType)) { responseHeaders["Content-Type"] = values.ContentType; } return true; } } return false; } private static (string AssemblyName, string RelativePath) GetAssemblyNameAndRelativePath(string requestAbsoluteUri, string appContentRoot) { var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1); if (ContentUrlRegex.Match(requestPath) is { Success: true } match) { // For RCLs (i.e., URLs of the form _content/assembly/path), we assume the content root within the // RCL to be "wwwroot" since we have no other information. If this is not the case, content within // that RCL will not be hot-reloadable. return (match.Groups["AssemblyName"].Value, $"wwwroot/{match.Groups["RelativePath"].Value}"); } else if (requestPath.StartsWith("_framework/", StringComparison.Ordinal)) { return (ApplicationAssemblyName, requestPath); } else { return (ApplicationAssemblyName, Path.Combine(appContentRoot, requestPath).Replace('\\', '/')); } } // To provide a consistent way of transporting the data across all platforms, // we can use the existing IJSRuntime. In turn we can get an instance of this // that's always attached to the currently-loaded page (if it's a Blazor page) // by injecting this headless root component. private sealed class StaticContentChangeNotifier : IComponent, IDisposable { private ILogger _logger = default!; [Inject] private IJSRuntime JSRuntime { get; set; } = default!; [Inject] private ILoggerFactory LoggerFactory { get; set; } = default!; public void Attach(RenderHandle renderHandle) { _logger = LoggerFactory.CreateLogger(); OnContentUpdated += NotifyContentUpdated; } public void Dispose() { OnContentUpdated -= NotifyContentUpdated; } private void NotifyContentUpdated(string assemblyName, string relativePath) { // It handles its own errors _ = NotifyContentUpdatedAsync(assemblyName, relativePath); } private async Task NotifyContentUpdatedAsync(string assemblyName, string relativePath) { try { await using var module = await JSRuntime.InvokeAsync("import", "./_framework/static-content-hot-reload.js"); // In the future we might want to hot-reload other content types such as images, but currently the tooling is // only expected to notify about CSS files. If it notifies us about something else, we'd need different JS logic. if (string.Equals(".css", Path.GetExtension(relativePath), StringComparison.Ordinal)) { // We could try to supply the URL of the modified file, so the JS-side logic could only update the affected // stylesheet. This would reduce flicker. However, this involves hardcoding further details about URL conventions // (e.g., _content/AssemblyName/Path) and accounting for configurable content roots. To reduce the chances of // CSS hot reload being broken by customizations, we'll have the JS-side code refresh all stylesheets. await module.InvokeVoidAsync("notifyCssUpdated"); } } catch (Exception ex) { _logger.LogError(ex, $"Failed to notify about static content update to {relativePath}."); } } public Task SetParametersAsync(ParameterView parameters) => Task.CompletedTask; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/UrlLoadingEventArgs.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView; public class UrlLoadingEventArgs : EventArgs { internal static UrlLoadingEventArgs CreateWithDefaultLoadingStrategy(Uri urlToLoad, Uri appOriginUri) { var strategy = appOriginUri.IsBaseOf(urlToLoad) ? UrlLoadingStrategy.OpenInWebView : UrlLoadingStrategy.OpenExternally; return new(urlToLoad, strategy); } private UrlLoadingEventArgs(Uri url, UrlLoadingStrategy urlLoadingStrategy) { Url = url; UrlLoadingStrategy = urlLoadingStrategy; } public Uri Url { get; } public UrlLoadingStrategy UrlLoadingStrategy { get; set; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/UrlLoadingStrategy.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView; public enum UrlLoadingStrategy { /// /// Allows loading URLs using an app determined by the system. /// This is the default strategy for URLs with an external host. /// OpenExternally, /// /// Allows loading URLs within the Blazor WebView. /// This is the default strategy for URLs with a host matching the app origin. /// /// This strategy should not be used for external links unless you can ensure they are fully trusted. /// /// OpenInWebView, /// /// Cancels the current URL loading attempt. /// CancelLoad } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/WebView2WebViewManager.cs ================================================ using Microsoft.AspNetCore.Components.Web; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Logging; using Microsoft.Web.WebView2.Core; using System.Diagnostics; using System.IO; using System.Reflection; using WebView2Control = Microsoft.Web.WebView2.Wpf.WebView2; namespace Microsoft.AspNetCore.Components.WebView.Wpf; internal class WebView2WebViewManager : WebViewManager { // Using an IP address means that WebView2 doesn't wait for any DNS resolution, // making it substantially faster. Note that this isn't real HTTP traffic, since // we intercept all the requests within this origin. internal static readonly string AppHostAddress = "0.0.0.0"; /// /// Gets the application's base URI. Defaults to https://0.0.0.0/ /// protected static readonly string AppOrigin = $"https://{AppHostAddress}/"; internal static readonly Uri AppOriginUri = new(AppOrigin); private readonly ILogger _logger; private readonly WebView2Control _webview; private readonly Task _webviewReadyTask; private readonly string _contentRootRelativeToAppRoot; private protected CoreWebView2Environment? _coreWebView2Environment; private readonly Action _urlLoading; private readonly Action _blazorWebViewInitializing; private readonly Action _blazorWebViewInitialized; private readonly BlazorWebViewDeveloperTools _developerTools; internal WebView2WebViewManager( WebView2Control webview, IServiceProvider services, Dispatcher dispatcher, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string contentRootRelativeToAppRoot, string hostPagePathWithinFileProvider, Action urlLoading, Action blazorWebViewInitializing, Action blazorWebViewInitialized, ILogger logger) : base(services, dispatcher, AppOriginUri, fileProvider, jsComponents, hostPagePathWithinFileProvider) { ArgumentNullException.ThrowIfNull(webview); if (services.GetService() is null) { throw new InvalidOperationException( "Unable to find the required services. " + $"Please add all the required services by calling '{nameof(IServiceCollection)}.{nameof(BlazorWebViewServiceCollectionExtensions.AddWpfBlazorWebView)}' in the application startup code."); } _logger = logger; _webview = webview; _urlLoading = urlLoading; _blazorWebViewInitializing = blazorWebViewInitializing; _blazorWebViewInitialized = blazorWebViewInitialized; _developerTools = services.GetRequiredService(); _contentRootRelativeToAppRoot = contentRootRelativeToAppRoot; _webviewReadyTask = TryInitializeWebView2(); } /// protected override void NavigateCore(Uri absoluteUri) { _ = Dispatcher.InvokeAsync(async () => { var isWebviewInitialized = await _webviewReadyTask; if (isWebviewInitialized) { _webview.Source = absoluteUri; } }); } /// protected override void SendMessage(string message) => _webview.CoreWebView2.PostWebMessageAsString(message); private async Task TryInitializeWebView2() { var args = new BlazorWebViewInitializingEventArgs(); _blazorWebViewInitializing?.Invoke(args); var userDataFolder = args.UserDataFolder ?? GetWebView2UserDataFolder(); _coreWebView2Environment = await CoreWebView2Environment.CreateAsync( browserExecutableFolder: args.BrowserExecutableFolder!, userDataFolder: userDataFolder!, options: args.EnvironmentOptions!) .ConfigureAwait(true); await _webview.EnsureCoreWebView2Async(_coreWebView2Environment); var developerTools = _developerTools; ApplyDefaultWebViewSettings(developerTools); _blazorWebViewInitialized?.Invoke(new BlazorWebViewInitializedEventArgs { WebView = _webview, }); _webview.CoreWebView2.AddWebResourceRequestedFilter($"{AppOrigin}*", CoreWebView2WebResourceContext.All); _webview.CoreWebView2.WebResourceRequested += async (s, eventArgs) => { await HandleWebResourceRequest(eventArgs); }; _webview.CoreWebView2.NavigationStarting += CoreWebView2_NavigationStarting; _webview.CoreWebView2.NewWindowRequested += CoreWebView2_NewWindowRequested; // The code inside blazor.webview.js is meant to be agnostic to specific webview technologies, // so the following is an adaptor from blazor.webview.js conventions to WebView2 APIs await _webview.CoreWebView2.AddScriptToExecuteOnDocumentCreatedAsync(@" window.external = { sendMessage: message => { window.chrome.webview.postMessage(message); }, receiveMessage: callback => { window.chrome.webview.addEventListener('message', e => callback(e.data)); } }; ") .ConfigureAwait(true); QueueBlazorStart(); _webview.CoreWebView2.WebMessageReceived += (s, e) => MessageReceived(new Uri(e.Source), e.TryGetWebMessageAsString()); return true; } protected virtual Task HandleWebResourceRequest(CoreWebView2WebResourceRequestedEventArgs eventArgs) { var allowFallbackOnHostPage = eventArgs.ResourceContext == CoreWebView2WebResourceContext.Document || eventArgs.ResourceContext == CoreWebView2WebResourceContext.Other; // e.g., dev tools requesting page source var requestUri = QueryStringHelper.RemovePossibleQueryString(eventArgs.Request.Uri); if (TryGetResponseContent(requestUri, allowFallbackOnHostPage, out var statusCode, out var statusMessage, out var content, out var headers)) { StaticContentHotReloadManager.TryReplaceResponseContent(_contentRootRelativeToAppRoot, requestUri, ref statusCode, ref content, headers); var headerString = GetHeaderString(headers); var autoCloseStream = new AutoCloseOnReadCompleteStream(content); eventArgs.Response = _coreWebView2Environment!.CreateWebResourceResponse(autoCloseStream, statusCode, statusMessage, headerString); } else { } return Task.CompletedTask; } protected virtual void QueueBlazorStart() { } private void CoreWebView2_NavigationStarting(object? sender, CoreWebView2NavigationStartingEventArgs args) { if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) { var callbackArgs = UrlLoadingEventArgs.CreateWithDefaultLoadingStrategy(uri, AppOriginUri); _urlLoading?.Invoke(callbackArgs); if (callbackArgs.UrlLoadingStrategy == UrlLoadingStrategy.OpenExternally) { LaunchUriInExternalBrowser(uri); } args.Cancel = callbackArgs.UrlLoadingStrategy != UrlLoadingStrategy.OpenInWebView; } } private void CoreWebView2_NewWindowRequested(object? sender, CoreWebView2NewWindowRequestedEventArgs args) { if (Uri.TryCreate(args.Uri, UriKind.RelativeOrAbsolute, out var uri)) { LaunchUriInExternalBrowser(uri); args.Handled = true; } } private void LaunchUriInExternalBrowser(Uri uri) { using (var launchBrowser = new Process()) { launchBrowser.StartInfo.UseShellExecute = true; launchBrowser.StartInfo.FileName = uri.ToString(); launchBrowser.Start(); } } private protected static string GetHeaderString(IDictionary headers) => string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}")); private void ApplyDefaultWebViewSettings(BlazorWebViewDeveloperTools devTools) { _webview.CoreWebView2.Settings.AreDevToolsEnabled = devTools.Enabled; // Desktop applications typically don't want the default web browser context menu _webview.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false; // Desktop applications almost never want to show a URL preview when hovering over a link _webview.CoreWebView2.Settings.IsStatusBarEnabled = false; } private static string? GetWebView2UserDataFolder() { if (Assembly.GetEntryAssembly() is { } mainAssembly) { var applicationName = mainAssembly.GetName().Name; var result = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), $"{applicationName}.WebView2"); return result; } return null; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/WpfBlazorMarkerService.cs ================================================ namespace Microsoft.AspNetCore.Components.WebView.Wpf; internal class WpfBlazorMarkerService { } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/WpfBlazorWebViewBuilder.cs ================================================ using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Components.WebView.Wpf; internal class WpfBlazorWebViewBuilder : IWpfBlazorWebViewBuilder { public IServiceCollection Services { get; } public WpfBlazorWebViewBuilder(IServiceCollection services) { Services = services; } } ================================================ FILE: Source/Platform/Windows/Microsoft.AspNetCore.Components.WebView.Wpf/WpfDispatcher.cs ================================================ using System.Runtime.ExceptionServices; using WindowsDispatcher = System.Windows.Threading.Dispatcher; namespace Microsoft.AspNetCore.Components.WebView.Wpf; internal sealed class WpfDispatcher : Dispatcher { private readonly WindowsDispatcher _windowsDispatcher; public WpfDispatcher(WindowsDispatcher windowsDispatcher) { _windowsDispatcher = windowsDispatcher ?? throw new ArgumentNullException(nameof(windowsDispatcher)); } private static Action RethrowException = exception => ExceptionDispatchInfo.Capture(exception).Throw(); public override bool CheckAccess() => _windowsDispatcher.CheckAccess(); public override async Task InvokeAsync(Action workItem) { try { if (_windowsDispatcher.CheckAccess()) { workItem(); } else { await _windowsDispatcher.InvokeAsync(workItem); } } catch (Exception ex) { _ = _windowsDispatcher.BeginInvoke(RethrowException, ex); throw; } } public override async Task InvokeAsync(Func workItem) { try { if (_windowsDispatcher.CheckAccess()) { await workItem(); } else { await _windowsDispatcher.InvokeAsync(workItem); } } catch (Exception ex) { _ = _windowsDispatcher.BeginInvoke(RethrowException, ex); throw; } } public override async Task InvokeAsync(Func workItem) { try { if (_windowsDispatcher.CheckAccess()) { return workItem(); } else { return await _windowsDispatcher.InvokeAsync(workItem); } } catch (Exception ex) { _ = _windowsDispatcher.BeginInvoke(RethrowException, ex); throw; } } public override async Task InvokeAsync(Func> workItem) { try { if (_windowsDispatcher.CheckAccess()) { return await workItem(); } else { return await _windowsDispatcher.InvokeAsync(workItem).Task.Unwrap(); } } catch (Exception ex) { _ = _windowsDispatcher.BeginInvoke(RethrowException, ex); throw; } } } ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/COMDotNetTypeConverter.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Drawing; using System.Numerics; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal static class COMDotNetTypeConverter { public static Rectangle RectangleCOMToNet(tagRECT rect) { int left = rect.left; int top = rect.top; int width = rect.right - rect.left; int height = rect.bottom - rect.top; return new Rectangle(left, top, width, height); } public static tagRECT RectangleNetToCOM(Rectangle dotNetRect) { tagRECT result = default(tagRECT); result.top = dotNetRect.Top; result.left = dotNetRect.Left; result.right = dotNetRect.Right; result.bottom = dotNetRect.Bottom; return result; } public static List CookieListCOMToNet(ICoreWebView2CookieList rawCookieList) { List list = new List(Convert.ToInt32(rawCookieList.Count)); for (uint num = 0u; num < rawCookieList.Count; num++) { list.Add(new CoreWebView2Cookie(rawCookieList.GetValueAtIndex(num))); } return list; } public static IReadOnlyList CoreWebView2FrameInfoCollectionCOMToNet(ICoreWebView2FrameInfoCollection rawFrameInfoCollection) { if (rawFrameInfoCollection == null) { return null; } List list = new List(); ICoreWebView2FrameInfoCollectionIterator iterator = rawFrameInfoCollection.GetIterator(); while (iterator.HasCurrent != 0) { list.Add(new CoreWebView2FrameInfo(iterator.GetCurrent())); iterator.MoveNext(); } return new ReadOnlyCollection(list); } public static Color ColorCOMToNet(COREWEBVIEW2_COLOR color) { return Color.FromArgb(color.A, color.R, color.G, color.B); } public static COREWEBVIEW2_COLOR ColorNetToCOM(Color dotNetColor) { COREWEBVIEW2_COLOR result = default(COREWEBVIEW2_COLOR); result.A = dotNetColor.A; result.R = dotNetColor.R; result.G = dotNetColor.G; result.B = dotNetColor.B; return result; } public static Point PointCOMToNet(tagPOINT point) { return new Point(point.x, point.y); } public static tagPOINT PointNetToCOM(Point dotNetPoint) { tagPOINT result = default(tagPOINT); result.x = Convert.ToInt32(dotNetPoint.X); result.y = Convert.ToInt32(dotNetPoint.Y); return result; } public static IReadOnlyList CoreWebView2ClientCertificateCollectionCOMToNet(ICoreWebView2ClientCertificateCollection rawClientCertificateCollection) { if (rawClientCertificateCollection == null) { return null; } List list = new List(Convert.ToInt32(rawClientCertificateCollection.Count)); for (uint num = 0u; num < rawClientCertificateCollection.Count; num++) { list.Add(new CoreWebView2ClientCertificate(rawClientCertificateCollection.GetValueAtIndex(num))); } return new ReadOnlyCollection(list); } public static IReadOnlyList CoreWebView2StringCollectionCOMToNet(ICoreWebView2StringCollection rawStringCollection) { if (rawStringCollection == null) { return null; } List list = new List(Convert.ToInt32(rawStringCollection.Count)); for (uint num = 0u; num < rawStringCollection.Count; num++) { list.Add(rawStringCollection.GetValueAtIndex(num)); } return new ReadOnlyCollection(list); } public static IReadOnlyList CoreWebView2ObjectCollectionViewCOMToNet(ICoreWebView2ObjectCollectionView rawObjectCollection) { if (rawObjectCollection == null) { return null; } List list = new List(Convert.ToInt32(rawObjectCollection.Count)); for (uint num = 0u; num < rawObjectCollection.Count; num++) { list.Add(Marshal.GetObjectForIUnknown((dynamic)rawObjectCollection.GetValueAtIndex(num))); } return new ReadOnlyCollection(list); } public static IList CoreWebView2ContextMenuItemCollectionCOMToNet(ICoreWebView2ContextMenuItemCollection rawContextMenuCollection) { if (rawContextMenuCollection == null) { return null; } List list = new List(Convert.ToInt32(rawContextMenuCollection.Count)); for (uint num = 0u; num < rawContextMenuCollection.Count; num++) { list.Add(new CoreWebView2ContextMenuItem(rawContextMenuCollection.GetValueAtIndex(num))); } ObservableCollection collection = new ObservableCollection(list); collection.CollectionChanged += delegate (object sender, NotifyCollectionChangedEventArgs args) { switch (args.Action) { case NotifyCollectionChangedAction.Remove: rawContextMenuCollection.RemoveValueAtIndex((uint)args.OldStartingIndex); break; case NotifyCollectionChangedAction.Add: rawContextMenuCollection.InsertValueAtIndex((uint)args.NewStartingIndex, ((CoreWebView2ContextMenuItem)args.NewItems![0])._nativeICoreWebView2ContextMenuItem); break; case NotifyCollectionChangedAction.Replace: rawContextMenuCollection.RemoveValueAtIndex((uint)args.OldStartingIndex); rawContextMenuCollection.InsertValueAtIndex((uint)args.NewStartingIndex, ((CoreWebView2ContextMenuItem)args.NewItems![0])._nativeICoreWebView2ContextMenuItem); break; case NotifyCollectionChangedAction.Move: case NotifyCollectionChangedAction.Reset: { uint count = rawContextMenuCollection.Count; for (uint num2 = 0u; num2 < count; num2++) { rawContextMenuCollection.RemoveValueAtIndex(0u); } for (int i = 0; i < collection.Count; i++) { rawContextMenuCollection.InsertValueAtIndex((uint)i, collection[i]._nativeICoreWebView2ContextMenuItem); } break; } } }; return collection; } public static Matrix4x4 Matrix4x4COMToNet(COREWEBVIEW2_MATRIX_4X4 matrix4x4) { float m = Convert.ToSingle(matrix4x4._11); float m2 = Convert.ToSingle(matrix4x4._12); float m3 = Convert.ToSingle(matrix4x4._13); float m4 = Convert.ToSingle(matrix4x4._14); float m5 = Convert.ToSingle(matrix4x4._21); float m6 = Convert.ToSingle(matrix4x4._22); float m7 = Convert.ToSingle(matrix4x4._23); float m8 = Convert.ToSingle(matrix4x4._24); float m9 = Convert.ToSingle(matrix4x4._31); float m10 = Convert.ToSingle(matrix4x4._32); float m11 = Convert.ToSingle(matrix4x4._33); float m12 = Convert.ToSingle(matrix4x4._34); float m13 = Convert.ToSingle(matrix4x4._41); float m14 = Convert.ToSingle(matrix4x4._42); float m15 = Convert.ToSingle(matrix4x4._43); float m16 = Convert.ToSingle(matrix4x4._44); return new Matrix4x4(m, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15, m16); } public static COREWEBVIEW2_MATRIX_4X4 Matrix4x4NetToCOM(Matrix4x4 dotNetMatrix4x4) { COREWEBVIEW2_MATRIX_4X4 result = default(COREWEBVIEW2_MATRIX_4X4); result._11 = dotNetMatrix4x4.M11; result._12 = dotNetMatrix4x4.M12; result._13 = dotNetMatrix4x4.M13; result._14 = dotNetMatrix4x4.M14; result._21 = dotNetMatrix4x4.M21; result._22 = dotNetMatrix4x4.M22; result._23 = dotNetMatrix4x4.M23; result._24 = dotNetMatrix4x4.M24; result._31 = dotNetMatrix4x4.M31; result._32 = dotNetMatrix4x4.M32; result._33 = dotNetMatrix4x4.M33; result._34 = dotNetMatrix4x4.M34; result._41 = dotNetMatrix4x4.M41; result._42 = dotNetMatrix4x4.M42; result._43 = dotNetMatrix4x4.M43; result._44 = dotNetMatrix4x4.M44; return result; } public static IReadOnlyList ProcessInfoCollectionCOMToNet(ICoreWebView2ProcessInfoCollection rawCoreWebView2ProcessInfoCollection) { if (rawCoreWebView2ProcessInfoCollection == null) { return null; } List list = new List(Convert.ToInt32(rawCoreWebView2ProcessInfoCollection.Count)); for (uint num = 0u; num < rawCoreWebView2ProcessInfoCollection.Count; num++) { list.Add(new CoreWebView2ProcessInfo(rawCoreWebView2ProcessInfoCollection.GetValueAtIndex(num))); } return new ReadOnlyCollection(list); } public static COMStreamWrapper StreamCOMToNet(IStream stream) { if (stream == null) { return null; } return new COMStreamWrapper(stream); } public static IReadOnlyList CoreWebView2PermissionSettingCollectionViewCOMToNet(ICoreWebView2PermissionSettingCollectionView rawPermissionSettingCollectionView) { if (rawPermissionSettingCollectionView == null) { return null; } List list = new List(Convert.ToInt32(rawPermissionSettingCollectionView.Count)); for (uint num = 0u; num < rawPermissionSettingCollectionView.Count; num++) { list.Add(new CoreWebView2PermissionSetting(rawPermissionSettingCollectionView.GetValueAtIndex(num))); } return new ReadOnlyCollection(list); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/COMStreamWrapper.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.IO; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace Microsoft.Web.WebView2.Core { internal class COMStreamWrapper : Stream { private IStream _istream; private IntPtr _mInt64; private long _size; public override bool CanRead => true; public override bool CanSeek => false; public override bool CanWrite => true; public override long Length { get { _istream.Stat(out var pstatstg, 1); return pstatstg.cbSize; } } public override long Position { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } } public COMStreamWrapper(IStream source) { _istream = source; _mInt64 = Marshal.AllocCoTaskMem(8); try { _size = Length; if (_size > 0) { GC.AddMemoryPressure(_size); } } catch (Exception ex) { _ = "Warning: The stream does not implement Stat properly, therefore it will not be possible to detect its size and report to .NET GC so it can be cleaned up. If it uses any unmanaged memory this may cause out of memory issues. Exception message: " + ex.Message; } } ~COMStreamWrapper() { _istream = null; Marshal.FreeCoTaskMem(_mInt64); if (_size > 0) { GC.RemoveMemoryPressure(_size); _size = 0L; } } public override void Flush() { _istream.Commit(0); } public override int Read(byte[] buffer, int offset, int count) { if (offset != 0) { throw new NotImplementedException(); } _istream.Read(buffer, count, _mInt64); return Marshal.ReadInt32(_mInt64); } public override long Seek(long offset, SeekOrigin origin) { _istream.Seek(offset, (int)origin, _mInt64); return Marshal.ReadInt64(_mInt64); } public override void SetLength(long value) { _istream.SetSize(value); } public override void Write(byte[] buffer, int offset, int count) { if (offset != 0) { throw new NotImplementedException(); } _istream.Write(buffer, count, IntPtr.Zero); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Drawing; using System.IO; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // WebView2 enables you to host web content using the latest Microsoft Edge browser // and web technology. public class CoreWebView2 { internal ICoreWebView2 _nativeICoreWebView2Value; internal ICoreWebView2_2 _nativeICoreWebView2_2Value; internal ICoreWebView2_3 _nativeICoreWebView2_3Value; internal ICoreWebView2_4 _nativeICoreWebView2_4Value; internal ICoreWebView2_5 _nativeICoreWebView2_5Value; internal ICoreWebView2_6 _nativeICoreWebView2_6Value; internal ICoreWebView2_7 _nativeICoreWebView2_7Value; internal ICoreWebView2_8 _nativeICoreWebView2_8Value; internal ICoreWebView2_9 _nativeICoreWebView2_9Value; internal ICoreWebView2_10 _nativeICoreWebView2_10Value; internal ICoreWebView2_11 _nativeICoreWebView2_11Value; internal ICoreWebView2_12 _nativeICoreWebView2_12Value; internal ICoreWebView2_13 _nativeICoreWebView2_13Value; internal ICoreWebView2_14 _nativeICoreWebView2_14Value; internal ICoreWebView2_15 _nativeICoreWebView2_15Value; internal ICoreWebView2_16 _nativeICoreWebView2_16Value; internal ICoreWebView2_17 _nativeICoreWebView2_17Value; internal ICoreWebView2Experimental9 _nativeICoreWebView2Experimental9Value; internal ICoreWebView2Experimental8 _nativeICoreWebView2Experimental8Value; internal ICoreWebView2Experimental7 _nativeICoreWebView2Experimental7Value; internal ICoreWebView2Experimental6 _nativeICoreWebView2Experimental6Value; internal ICoreWebView2Experimental4 _nativeICoreWebView2Experimental4Value; internal ICoreWebView2Experimental3 _nativeICoreWebView2Experimental3Value; internal ICoreWebView2Experimental21 _nativeICoreWebView2Experimental21Value; internal ICoreWebView2Experimental5 _nativeICoreWebView2Experimental5Value; internal ICoreWebView2Experimental20 _nativeICoreWebView2Experimental20Value; internal ICoreWebView2Experimental19 _nativeICoreWebView2Experimental19Value; internal ICoreWebView2Experimental18 _nativeICoreWebView2Experimental18Value; internal ICoreWebView2Experimental17 _nativeICoreWebView2Experimental17Value; internal ICoreWebView2Experimental16 _nativeICoreWebView2Experimental16Value; internal ICoreWebView2Experimental15 _nativeICoreWebView2Experimental15Value; internal ICoreWebView2Experimental14 _nativeICoreWebView2Experimental14Value; internal ICoreWebView2Experimental13 _nativeICoreWebView2Experimental13Value; internal ICoreWebView2Experimental12 _nativeICoreWebView2Experimental12Value; internal ICoreWebView2Experimental11 _nativeICoreWebView2Experimental11Value; internal ICoreWebView2Experimental2 _nativeICoreWebView2Experimental2Value; internal ICoreWebView2Experimental10 _nativeICoreWebView2Experimental10Value; internal ICoreWebView2Experimental _nativeICoreWebView2ExperimentalValue; internal ICoreWebView2PrivatePartial _nativeICoreWebView2PrivatePartialValue; internal object _rawNative; private EventRegistrationToken _navigationStartingToken; private EventHandler navigationStarting; private EventRegistrationToken _contentLoadingToken; private EventHandler contentLoading; private EventRegistrationToken _sourceChangedToken; private EventHandler sourceChanged; private EventRegistrationToken _historyChangedToken; private EventHandler historyChanged; private EventRegistrationToken _navigationCompletedToken; private EventHandler navigationCompleted; private EventRegistrationToken _frameNavigationStartingToken; private EventHandler frameNavigationStarting; private EventRegistrationToken _frameNavigationCompletedToken; private EventHandler frameNavigationCompleted; private EventRegistrationToken _scriptDialogOpeningToken; private EventHandler scriptDialogOpening; private EventRegistrationToken _permissionRequestedToken; private EventHandler permissionRequested; private EventRegistrationToken _processFailedToken; private EventHandler processFailed; private EventRegistrationToken _webMessageReceivedToken; private EventHandler webMessageReceived; private EventRegistrationToken _newWindowRequestedToken; private EventHandler newWindowRequested; private EventRegistrationToken _documentTitleChangedToken; private EventHandler documentTitleChanged; private EventRegistrationToken _containsFullScreenElementChangedToken; private EventHandler containsFullScreenElementChanged; private EventRegistrationToken _webResourceRequestedToken; private EventHandler webResourceRequested; private EventRegistrationToken _windowCloseRequestedToken; private EventHandler windowCloseRequested; private EventRegistrationToken _webResourceResponseReceivedToken; private EventHandler webResourceResponseReceived; private EventRegistrationToken _dOMContentLoadedToken; private EventHandler dOMContentLoaded; private EventRegistrationToken _frameCreatedToken; private EventHandler frameCreated; private EventRegistrationToken _downloadStartingToken; private EventHandler downloadStarting; private EventRegistrationToken _clientCertificateRequestedToken; private EventHandler clientCertificateRequested; private EventRegistrationToken _isMutedChangedToken; private EventHandler isMutedChanged; private EventRegistrationToken _isDocumentPlayingAudioChangedToken; private EventHandler isDocumentPlayingAudioChanged; private EventRegistrationToken _isDefaultDownloadDialogOpenChangedToken; private EventHandler isDefaultDownloadDialogOpenChanged; private EventRegistrationToken _basicAuthenticationRequestedToken; private EventHandler basicAuthenticationRequested; private EventRegistrationToken _contextMenuRequestedToken; private EventHandler contextMenuRequested; private EventRegistrationToken _statusBarTextChangedToken; private EventHandler statusBarTextChanged; private EventRegistrationToken _serverCertificateErrorDetectedToken; private EventHandler serverCertificateErrorDetected; private EventRegistrationToken _faviconChangedToken; private EventHandler faviconChanged; private EventRegistrationToken _launchingExternalUriSchemeToken; private EventHandler launchingExternalUriScheme; internal ICoreWebView2 _nativeICoreWebView2 { get { if (_nativeICoreWebView2Value == null) { try { _nativeICoreWebView2Value = (ICoreWebView2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Value; } set { _nativeICoreWebView2Value = value; } } internal ICoreWebView2_2 _nativeICoreWebView2_2 { get { if (_nativeICoreWebView2_2Value == null) { try { _nativeICoreWebView2_2Value = (ICoreWebView2_2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_2Value; } set { _nativeICoreWebView2_2Value = value; } } internal ICoreWebView2_3 _nativeICoreWebView2_3 { get { if (_nativeICoreWebView2_3Value == null) { try { _nativeICoreWebView2_3Value = (ICoreWebView2_3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_3Value; } set { _nativeICoreWebView2_3Value = value; } } internal ICoreWebView2_4 _nativeICoreWebView2_4 { get { if (_nativeICoreWebView2_4Value == null) { try { _nativeICoreWebView2_4Value = (ICoreWebView2_4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_4Value; } set { _nativeICoreWebView2_4Value = value; } } internal ICoreWebView2_5 _nativeICoreWebView2_5 { get { if (_nativeICoreWebView2_5Value == null) { try { _nativeICoreWebView2_5Value = (ICoreWebView2_5)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_5.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_5Value; } set { _nativeICoreWebView2_5Value = value; } } internal ICoreWebView2_6 _nativeICoreWebView2_6 { get { if (_nativeICoreWebView2_6Value == null) { try { _nativeICoreWebView2_6Value = (ICoreWebView2_6)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_6.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_6Value; } set { _nativeICoreWebView2_6Value = value; } } internal ICoreWebView2_7 _nativeICoreWebView2_7 { get { if (_nativeICoreWebView2_7Value == null) { try { _nativeICoreWebView2_7Value = (ICoreWebView2_7)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_7.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_7Value; } set { _nativeICoreWebView2_7Value = value; } } internal ICoreWebView2_8 _nativeICoreWebView2_8 { get { if (_nativeICoreWebView2_8Value == null) { try { _nativeICoreWebView2_8Value = (ICoreWebView2_8)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_8.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_8Value; } set { _nativeICoreWebView2_8Value = value; } } internal ICoreWebView2_9 _nativeICoreWebView2_9 { get { if (_nativeICoreWebView2_9Value == null) { try { _nativeICoreWebView2_9Value = (ICoreWebView2_9)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_9.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_9Value; } set { _nativeICoreWebView2_9Value = value; } } internal ICoreWebView2_10 _nativeICoreWebView2_10 { get { if (_nativeICoreWebView2_10Value == null) { try { _nativeICoreWebView2_10Value = (ICoreWebView2_10)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_10.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_10Value; } set { _nativeICoreWebView2_10Value = value; } } internal ICoreWebView2_11 _nativeICoreWebView2_11 { get { if (_nativeICoreWebView2_11Value == null) { try { _nativeICoreWebView2_11Value = (ICoreWebView2_11)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_11.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_11Value; } set { _nativeICoreWebView2_11Value = value; } } internal ICoreWebView2_12 _nativeICoreWebView2_12 { get { if (_nativeICoreWebView2_12Value == null) { try { _nativeICoreWebView2_12Value = (ICoreWebView2_12)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_12.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_12Value; } set { _nativeICoreWebView2_12Value = value; } } internal ICoreWebView2_13 _nativeICoreWebView2_13 { get { if (_nativeICoreWebView2_13Value == null) { try { _nativeICoreWebView2_13Value = (ICoreWebView2_13)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_13.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_13Value; } set { _nativeICoreWebView2_13Value = value; } } internal ICoreWebView2_14 _nativeICoreWebView2_14 { get { if (_nativeICoreWebView2_14Value == null) { try { _nativeICoreWebView2_14Value = (ICoreWebView2_14)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_14.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_14Value; } set { _nativeICoreWebView2_14Value = value; } } internal ICoreWebView2_15 _nativeICoreWebView2_15 { get { if (_nativeICoreWebView2_15Value == null) { try { _nativeICoreWebView2_15Value = (ICoreWebView2_15)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_15.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_15Value; } set { _nativeICoreWebView2_15Value = value; } } internal ICoreWebView2_16 _nativeICoreWebView2_16 { get { if (_nativeICoreWebView2_16Value == null) { try { _nativeICoreWebView2_16Value = (ICoreWebView2_16)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_16.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_16Value; } set { _nativeICoreWebView2_16Value = value; } } internal ICoreWebView2_17 _nativeICoreWebView2_17 { get { if (_nativeICoreWebView2_17Value == null) { try { _nativeICoreWebView2_17Value = (ICoreWebView2_17)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_17.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2_17Value; } set { _nativeICoreWebView2_17Value = value; } } internal ICoreWebView2Experimental9 _nativeICoreWebView2Experimental9 { get { if (_nativeICoreWebView2Experimental9Value == null) { try { _nativeICoreWebView2Experimental9Value = (ICoreWebView2Experimental9)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental9.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental9Value; } set { _nativeICoreWebView2Experimental9Value = value; } } internal ICoreWebView2Experimental8 _nativeICoreWebView2Experimental8 { get { if (_nativeICoreWebView2Experimental8Value == null) { try { _nativeICoreWebView2Experimental8Value = (ICoreWebView2Experimental8)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental8.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental8Value; } set { _nativeICoreWebView2Experimental8Value = value; } } internal ICoreWebView2Experimental7 _nativeICoreWebView2Experimental7 { get { if (_nativeICoreWebView2Experimental7Value == null) { try { _nativeICoreWebView2Experimental7Value = (ICoreWebView2Experimental7)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental7.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental7Value; } set { _nativeICoreWebView2Experimental7Value = value; } } internal ICoreWebView2Experimental6 _nativeICoreWebView2Experimental6 { get { if (_nativeICoreWebView2Experimental6Value == null) { try { _nativeICoreWebView2Experimental6Value = (ICoreWebView2Experimental6)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental6.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental6Value; } set { _nativeICoreWebView2Experimental6Value = value; } } internal ICoreWebView2Experimental4 _nativeICoreWebView2Experimental4 { get { if (_nativeICoreWebView2Experimental4Value == null) { try { _nativeICoreWebView2Experimental4Value = (ICoreWebView2Experimental4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental4Value; } set { _nativeICoreWebView2Experimental4Value = value; } } internal ICoreWebView2Experimental3 _nativeICoreWebView2Experimental3 { get { if (_nativeICoreWebView2Experimental3Value == null) { try { _nativeICoreWebView2Experimental3Value = (ICoreWebView2Experimental3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental3Value; } set { _nativeICoreWebView2Experimental3Value = value; } } internal ICoreWebView2Experimental21 _nativeICoreWebView2Experimental21 { get { if (_nativeICoreWebView2Experimental21Value == null) { try { _nativeICoreWebView2Experimental21Value = (ICoreWebView2Experimental21)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental21.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental21Value; } set { _nativeICoreWebView2Experimental21Value = value; } } internal ICoreWebView2Experimental5 _nativeICoreWebView2Experimental5 { get { if (_nativeICoreWebView2Experimental5Value == null) { try { _nativeICoreWebView2Experimental5Value = (ICoreWebView2Experimental5)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental5.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental5Value; } set { _nativeICoreWebView2Experimental5Value = value; } } internal ICoreWebView2Experimental20 _nativeICoreWebView2Experimental20 { get { if (_nativeICoreWebView2Experimental20Value == null) { try { _nativeICoreWebView2Experimental20Value = (ICoreWebView2Experimental20)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental20.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental20Value; } set { _nativeICoreWebView2Experimental20Value = value; } } internal ICoreWebView2Experimental19 _nativeICoreWebView2Experimental19 { get { if (_nativeICoreWebView2Experimental19Value == null) { try { _nativeICoreWebView2Experimental19Value = (ICoreWebView2Experimental19)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental19.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental19Value; } set { _nativeICoreWebView2Experimental19Value = value; } } internal ICoreWebView2Experimental18 _nativeICoreWebView2Experimental18 { get { if (_nativeICoreWebView2Experimental18Value == null) { try { _nativeICoreWebView2Experimental18Value = (ICoreWebView2Experimental18)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental18.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental18Value; } set { _nativeICoreWebView2Experimental18Value = value; } } internal ICoreWebView2Experimental17 _nativeICoreWebView2Experimental17 { get { if (_nativeICoreWebView2Experimental17Value == null) { try { _nativeICoreWebView2Experimental17Value = (ICoreWebView2Experimental17)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental17.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental17Value; } set { _nativeICoreWebView2Experimental17Value = value; } } internal ICoreWebView2Experimental16 _nativeICoreWebView2Experimental16 { get { if (_nativeICoreWebView2Experimental16Value == null) { try { _nativeICoreWebView2Experimental16Value = (ICoreWebView2Experimental16)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental16.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental16Value; } set { _nativeICoreWebView2Experimental16Value = value; } } internal ICoreWebView2Experimental15 _nativeICoreWebView2Experimental15 { get { if (_nativeICoreWebView2Experimental15Value == null) { try { _nativeICoreWebView2Experimental15Value = (ICoreWebView2Experimental15)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental15.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental15Value; } set { _nativeICoreWebView2Experimental15Value = value; } } internal ICoreWebView2Experimental14 _nativeICoreWebView2Experimental14 { get { if (_nativeICoreWebView2Experimental14Value == null) { try { _nativeICoreWebView2Experimental14Value = (ICoreWebView2Experimental14)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental14.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental14Value; } set { _nativeICoreWebView2Experimental14Value = value; } } internal ICoreWebView2Experimental13 _nativeICoreWebView2Experimental13 { get { if (_nativeICoreWebView2Experimental13Value == null) { try { _nativeICoreWebView2Experimental13Value = (ICoreWebView2Experimental13)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental13.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental13Value; } set { _nativeICoreWebView2Experimental13Value = value; } } internal ICoreWebView2Experimental12 _nativeICoreWebView2Experimental12 { get { if (_nativeICoreWebView2Experimental12Value == null) { try { _nativeICoreWebView2Experimental12Value = (ICoreWebView2Experimental12)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental12.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental12Value; } set { _nativeICoreWebView2Experimental12Value = value; } } internal ICoreWebView2Experimental11 _nativeICoreWebView2Experimental11 { get { if (_nativeICoreWebView2Experimental11Value == null) { try { _nativeICoreWebView2Experimental11Value = (ICoreWebView2Experimental11)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental11.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental11Value; } set { _nativeICoreWebView2Experimental11Value = value; } } internal ICoreWebView2Experimental2 _nativeICoreWebView2Experimental2 { get { if (_nativeICoreWebView2Experimental2Value == null) { try { _nativeICoreWebView2Experimental2Value = (ICoreWebView2Experimental2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental2Value; } set { _nativeICoreWebView2Experimental2Value = value; } } internal ICoreWebView2Experimental10 _nativeICoreWebView2Experimental10 { get { if (_nativeICoreWebView2Experimental10Value == null) { try { _nativeICoreWebView2Experimental10Value = (ICoreWebView2Experimental10)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental10.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Experimental10Value; } set { _nativeICoreWebView2Experimental10Value = value; } } internal ICoreWebView2Experimental _nativeICoreWebView2Experimental { get { if (_nativeICoreWebView2ExperimentalValue == null) { try { _nativeICoreWebView2ExperimentalValue = (ICoreWebView2Experimental)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalValue; } set { _nativeICoreWebView2ExperimentalValue = value; } } internal ICoreWebView2PrivatePartial _nativeICoreWebView2PrivatePartial { get { if (_nativeICoreWebView2PrivatePartialValue == null) { try { _nativeICoreWebView2PrivatePartialValue = (ICoreWebView2PrivatePartial)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2PrivatePartial.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2PrivatePartialValue; } set { _nativeICoreWebView2PrivatePartialValue = value; } } // // Summary: // Gets the Microsoft.Web.WebView2.Core.CoreWebView2Settings object contains various // modifiable settings for the running WebView. public CoreWebView2Settings Settings { get { try { return (_nativeICoreWebView2.Settings == null) ? null : new CoreWebView2Settings(_nativeICoreWebView2.Settings); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the URI of the current top level document. // // Remarks: // This value potentially changes as a part of the Microsoft.Web.WebView2.Core.CoreWebView2.SourceChanged // event raised for some cases such as navigating to a different site or fragment // navigations. It remains the same for other types of navigations such as page // refreshes or history.pushState with the same URL as the current page. public string Source { get { try { return _nativeICoreWebView2.Source; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the process ID of the browser process that hosts the WebView. public uint BrowserProcessId { get { try { return _nativeICoreWebView2.BrowserProcessId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // true if the WebView is able to navigate to a previous page in the navigation // history. // // Remarks: // If CanGoBack changes value, the Microsoft.Web.WebView2.Core.CoreWebView2.HistoryChanged // event is raised. public bool CanGoBack { get { try { return _nativeICoreWebView2.CanGoBack != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // true if the WebView is able to navigate to a next page in the navigation history. // // Remarks: // If CanGoForward changes value, the Microsoft.Web.WebView2.Core.CoreWebView2.HistoryChanged // event is raised. public bool CanGoForward { get { try { return _nativeICoreWebView2.CanGoForward != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the title for the current top-level document. // // Remarks: // If the document has no explicit title or is otherwise empty, a default that may // or may not match the URI of the document is used. public string DocumentTitle { get { try { return _nativeICoreWebView2.DocumentTitle; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates if the WebView contains a fullscreen HTML element. public bool ContainsFullScreenElement { get { try { return _nativeICoreWebView2.ContainsFullScreenElement != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the Microsoft.Web.WebView2.Core.CoreWebView2CookieManager object associated // with this Microsoft.Web.WebView2.Core.CoreWebView2. public CoreWebView2CookieManager CookieManager { get { try { return (_nativeICoreWebView2_2.CookieManager == null) ? null : new CoreWebView2CookieManager(_nativeICoreWebView2_2.CookieManager); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Exposes the Microsoft.Web.WebView2.Core.CoreWebView2Environment used to create // this Microsoft.Web.WebView2.Core.CoreWebView2. public CoreWebView2Environment Environment { get { try { return (_nativeICoreWebView2_2.Environment == null) ? null : new CoreWebView2Environment(_nativeICoreWebView2_2.Environment); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Whether WebView is suspended. // // Remarks: // True when WebView is suspended, from the time when Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync // has completed successfully until WebView is resumed. public bool IsSuspended { get { try { return _nativeICoreWebView2_3.IsSuspended != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether all audio output from this CoreWebView2 is muted or not. Set // to true will mute this CoreWebView2, and set to false will unmute this CoreWebView2. // true if audio is muted. public bool IsMuted { get { try { try { return _nativeICoreWebView2_8.IsMuted != 0; } catch (NotImplementedException) { return _nativeICoreWebView2Experimental9.IsMuted != 0; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2_8.IsMuted = (value ? 1 : 0); } catch (NotImplementedException) { _nativeICoreWebView2Experimental9.IsMuted = (value ? 1 : 0); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Indicates whether any audio output from this CoreWebView2 is playing. true if // audio is playing even if Microsoft.Web.WebView2.Core.CoreWebView2.IsMuted is // true. public bool IsDocumentPlayingAudio { get { try { try { return _nativeICoreWebView2_8.IsDocumentPlayingAudio != 0; } catch (NotImplementedException) { return _nativeICoreWebView2Experimental9.IsDocumentPlayingAudio != 0; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // True if the default download dialog is currently open. // // Remarks: // The value of this property changes only when the default download dialog is explicitly // opened or closed. Hiding the WebView implicitly hides the dialog, but does not // change the value of this property. public bool IsDefaultDownloadDialogOpen { get { try { try { return _nativeICoreWebView2_9.IsDefaultDownloadDialogOpen != 0; } catch (NotImplementedException) { return _nativeICoreWebView2Experimental11.IsDefaultDownloadDialogOpen != 0; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // The default download dialog corner alignment. // // Remarks: // The dialog can be aligned to any of the WebView corners (see Microsoft.Web.WebView2.Core.CoreWebView2DefaultDownloadDialogCornerAlignment). // When the WebView or dialog changes size, the dialog keeps it position relative // to the corner. The dialog may become partially or completely outside of the WebView // bounds if the WebView is small enough. Set the margin from the corner with the // Microsoft.Web.WebView2.Core.CoreWebView2.DefaultDownloadDialogMargin property. // The corner alignment and margin should be set during initialization to ensure // that they are correcly applied when the layout is first computed, otherwise they // will not take effect until the next time the WebView position or size is updated. public CoreWebView2DefaultDownloadDialogCornerAlignment DefaultDownloadDialogCornerAlignment { get { try { try { return (CoreWebView2DefaultDownloadDialogCornerAlignment)_nativeICoreWebView2_9.DefaultDownloadDialogCornerAlignment; } catch (NotImplementedException) { return (CoreWebView2DefaultDownloadDialogCornerAlignment)_nativeICoreWebView2Experimental11.DefaultDownloadDialogCornerAlignment; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2_9.DefaultDownloadDialogCornerAlignment = (COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT)value; } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.DefaultDownloadDialogCornerAlignment = (COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT)value; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // The default download dialog margin relative to the WebView corner specified by // Microsoft.Web.WebView2.Core.CoreWebView2.DefaultDownloadDialogCornerAlignment. // // Remarks: // The margin is a point that describes the vertical and horizontal distances between // the chosen WebView corner and the default download dialog corner nearest to it. // Positive values move the dialog towards the center of the WebView from the chosen // WebView corner, and negative values move the dialog away from it. Use (0, 0) // to align the dialog to the WebView corner with no margin. The corner alignment // and margin should be set during initialization to ensure that they are correcly // applied when the layout is first computed, otherwise they will not take effect // until the next time the WebView position or size is updated. public Point DefaultDownloadDialogMargin { get { try { try { return COMDotNetTypeConverter.PointCOMToNet(_nativeICoreWebView2_9.DefaultDownloadDialogMargin); } catch (NotImplementedException) { return COMDotNetTypeConverter.PointCOMToNet(_nativeICoreWebView2Experimental11.DefaultDownloadDialogMargin); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2_9.DefaultDownloadDialogMargin = COMDotNetTypeConverter.PointNetToCOM(value); } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.DefaultDownloadDialogMargin = COMDotNetTypeConverter.PointNetToCOM(value); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // The current text of the statusbar as defined by [Window.statusbar](https://developer.mozilla.org/docs/Web/API/Window/statusbar). public string StatusBarText { get { try { try { return _nativeICoreWebView2_12.StatusBarText; } catch (NotImplementedException) { return _nativeICoreWebView2Experimental13.StatusBarText; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // The associated Microsoft.Web.WebView2.Core.CoreWebView2Profile object of Microsoft.Web.WebView2.Core.CoreWebView2. public CoreWebView2Profile Profile { get { try { try { return (_nativeICoreWebView2_13.Profile == null) ? null : new CoreWebView2Profile(_nativeICoreWebView2_13.Profile); } catch (NotImplementedException) { return (_nativeICoreWebView2Experimental8.Profile == null) ? null : new CoreWebView2Profile(_nativeICoreWebView2Experimental8.Profile); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Get the Uri as a string of the current Favicon. This will be an empty string // if the page does not have a Favicon. public string FaviconUri { get { try { try { return _nativeICoreWebView2_15.FaviconUri; } catch (NotImplementedException) { return _nativeICoreWebView2Experimental12.FaviconUri; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Desired Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel of a WebView. // // Remarks: // An app may set Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel // to indicate desired memory consumption level of WebView. Scripts will not be // impacted and continue to run. This is useful for inactive apps that still want // to run scripts and/or keep network connections alive and therefore could not // call Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync and Microsoft.Web.WebView2.Core.CoreWebView2.Resume // to reduce memory consumption. These apps can set memory usage target level to // Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Low when the app // becomes inactive, and set back to Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Normal // when the app becomes active. It is not necessary to set CoreWebView2Controller's // IsVisible property to false when setting the property. It is a best effort operation // to change memory usage level, and the API will return before the operation completes. // Setting the level to Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Low // could potentially cause memory for some WebView browser processes to be swapped // out to disk in some circumstances. It is a best effort to reduce memory usage // as much as possible. If a script runs after its related memory has been swapped // out, the memory will be swapped back in to ensure the script can still run, but // performance might be impacted. Therefore, the app should set the level back to // Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Normal when the // app becomes active again. Setting memory usage target level back to normal will // not happen automatically. An app should choose to use either the combination // of Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync and Microsoft.Web.WebView2.Core.CoreWebView2.Resume // or the combination of setting MemoryUsageTargetLevel to Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Low // and Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Normal. It // is not advisable to mix them. Trying to set Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel // while suspended will be ignored. The Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync // and Microsoft.Web.WebView2.Core.CoreWebView2.Resume methods will change the Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel. // Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync will automatically set // Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel to Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Low // while Microsoft.Web.WebView2.Core.CoreWebView2.Resume on suspended WebView will // automatically set Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel // to Microsoft.Web.WebView2.Core.CoreWebView2MemoryUsageTargetLevel.Normal. Calling // Microsoft.Web.WebView2.Core.CoreWebView2.Resume when the WebView is not suspended // would not change Microsoft.Web.WebView2.Core.CoreWebView2.MemoryUsageTargetLevel. public CoreWebView2MemoryUsageTargetLevel MemoryUsageTargetLevel { get { try { return (CoreWebView2MemoryUsageTargetLevel)_nativeICoreWebView2Experimental5.MemoryUsageTargetLevel; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Experimental5.MemoryUsageTargetLevel = (COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL)value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the custom data partition id of the WebView. // // Remarks: // This API requires enabling 2 experimental browser features to work properly. // These features will be enabled by default in the future. Before these features // are enabled by default, please enable them by ensuring --enable-features=ThirdPartyStoragePartitioning,PartitionedCookies // is set in Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions.AdditionalBrowserArguments // used to initialize Microsoft.Web.WebView2.Core.CoreWebView2Environment. If these // features are not enabled, all data are treated as unpartitioned and stored in // the global default location for the profile. // When custom data partition id id is set, the page in the WebView will act as // if the page were hosted in a top level site uniquely associated with the partition // id and have a separate storage partition as described in https://developer.chrome.com/docs/privacy-sandbox/storage-partitioning/ // and separate cookie partition as described in https://developer.chrome.com/docs/privacy-sandbox/chips/ // with all cookies partitioned. If custom data partition id is set to null or empty // string, the page inside the WebView will work normally with data treated as unpartitioned. // The custom data partition id is case sensitive. The default is an empty string. // There is no restriction on the length or what characters can be used in partition // id. // The change of the custom data partition id will be applied to new page or iframe // navigations and not impact existing pages and iframes. To avoid accidentally // using the new partition id for new page or iframe navigations started by the // old page, it is recommended to create a new WebView for new partition instead // of changing partition. If you really have to change partition, it is recommended // to navigate to a blank page before setting the new partition id and navigating // to a page with the new partition. // As setting custom data partition id does not change DOM security model, developers // should be very careful for WebViews with opener and opened window relationship, // especially when the pages in the WebViews have same origin, like when the opened // window is the same website or about:blank. The pages in these WebViews can access // each other’s DOM and therefore can potentially access DOM storage and cookies // in different partition for the same website. It is recommended to set the same // custom data partition id for these WebViews, unless there is an absolute need // to set different partition ids and only trusted code is hosted in them. // :::code language="csharp" source="../code/sample/SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs" // id="CustomDataPartitionId"::: public string CustomDataPartitionId { get { try { return _nativeICoreWebView2Experimental20.CustomDataPartitionId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Experimental20.CustomDataPartitionId = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NavigationStarting is raised when the WebView main frame is requesting permission // to navigate to a different URI. // // Remarks: // Redirects raise this event as well, and the navigation id is the same as the // original one. You may block corresponding navigations until the event handler // returns. public event EventHandler NavigationStarting { add { if (navigationStarting == null) { try { _nativeICoreWebView2.add_NavigationStarting(new CoreWebView2NavigationStartingEventHandler(OnNavigationStarting), out _navigationStartingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } navigationStarting = (EventHandler)Delegate.Combine(navigationStarting, value); } remove { navigationStarting = (EventHandler)Delegate.Remove(navigationStarting, value); if (navigationStarting != null) { return; } try { _nativeICoreWebView2.remove_NavigationStarting(_navigationStartingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // ContentLoading is raised before any content is loaded, including scripts added // with Microsoft.Web.WebView2.Core.CoreWebView2.AddScriptToExecuteOnDocumentCreatedAsync(System.String). // ContentLoading is not raised if a same page navigation occurs (such as through // fragment navigations or history.pushState navigations). // // Remarks: // This operation follows the Microsoft.Web.WebView2.Core.CoreWebView2.NavigationStarting // and Microsoft.Web.WebView2.Core.CoreWebView2.SourceChanged events and precedes // the Microsoft.Web.WebView2.Core.CoreWebView2.HistoryChanged and Microsoft.Web.WebView2.Core.CoreWebView2.NavigationCompleted // events. public event EventHandler ContentLoading { add { if (contentLoading == null) { try { _nativeICoreWebView2.add_ContentLoading(new CoreWebView2ContentLoadingEventHandler(OnContentLoading), out _contentLoadingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } contentLoading = (EventHandler)Delegate.Combine(contentLoading, value); } remove { contentLoading = (EventHandler)Delegate.Remove(contentLoading, value); if (contentLoading != null) { return; } try { _nativeICoreWebView2.remove_ContentLoading(_contentLoadingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // SourceChanged is raised when the Microsoft.Web.WebView2.Core.CoreWebView2.Source // property changes. // // Remarks: // SourceChanged is raised when navigating to a different site or fragment navigations. // It is not raised for other types of navigations such as page refreshes or history.pushState // with the same URL as the current page. This event is raised before Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading // for navigation to a new document. public event EventHandler SourceChanged { add { if (sourceChanged == null) { try { _nativeICoreWebView2.add_SourceChanged(new CoreWebView2SourceChangedEventHandler(OnSourceChanged), out _sourceChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } sourceChanged = (EventHandler)Delegate.Combine(sourceChanged, value); } remove { sourceChanged = (EventHandler)Delegate.Remove(sourceChanged, value); if (sourceChanged != null) { return; } try { _nativeICoreWebView2.remove_SourceChanged(_sourceChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // HistoryChanged is raised for changes to joint session history, which consists // of top-level and manual frame navigations. // // Remarks: // Use HistoryChanged to verify that the Microsoft.Web.WebView2.Core.CoreWebView2.CanGoBack // or Microsoft.Web.WebView2.Core.CoreWebView2.CanGoForward value has changed. HistoryChanged // is also raised for using Microsoft.Web.WebView2.Core.CoreWebView2.GoBack or Microsoft.Web.WebView2.Core.CoreWebView2.GoForward. // HistoryChanged is raised after Microsoft.Web.WebView2.Core.CoreWebView2.SourceChanged // and Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading. CanGoBack is false // for navigations initiated through CoreWebView2Frame APIs if there has not yet // been a user gesture. public event EventHandler HistoryChanged { add { if (historyChanged == null) { try { _nativeICoreWebView2.add_HistoryChanged(new CoreWebView2HistoryChangedEventHandler(OnHistoryChanged), out _historyChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } historyChanged = (EventHandler)Delegate.Combine(historyChanged, value); } remove { historyChanged = (EventHandler)Delegate.Remove(historyChanged, value); if (historyChanged != null) { return; } try { _nativeICoreWebView2.remove_HistoryChanged(_historyChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NavigationCompleted is raised when the WebView has completely loaded (body.onload // has been raised) or loading stopped with error. public event EventHandler NavigationCompleted { add { if (navigationCompleted == null) { try { _nativeICoreWebView2.add_NavigationCompleted(new CoreWebView2NavigationCompletedEventHandler(OnNavigationCompleted), out _navigationCompletedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } navigationCompleted = (EventHandler)Delegate.Combine(navigationCompleted, value); } remove { navigationCompleted = (EventHandler)Delegate.Remove(navigationCompleted, value); if (navigationCompleted != null) { return; } try { _nativeICoreWebView2.remove_NavigationCompleted(_navigationCompletedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // FrameNavigationStarting is raised when a child frame in the WebView requests // permission to navigate to a different URI. // // Remarks: // Redirects raise this operation as well, and the navigation id is the same as // the original one. You may block corresponding navigations until the event handler // returns. public event EventHandler FrameNavigationStarting { add { if (frameNavigationStarting == null) { try { _nativeICoreWebView2.add_FrameNavigationStarting(new CoreWebView2NavigationStartingEventHandler(OnFrameNavigationStarting), out _frameNavigationStartingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } frameNavigationStarting = (EventHandler)Delegate.Combine(frameNavigationStarting, value); } remove { frameNavigationStarting = (EventHandler)Delegate.Remove(frameNavigationStarting, value); if (frameNavigationStarting != null) { return; } try { _nativeICoreWebView2.remove_FrameNavigationStarting(_frameNavigationStartingToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // FrameNavigationCompleted is raised when a child frame has completely loaded (body.onload // has been raised) or loading stopped with error. public event EventHandler FrameNavigationCompleted { add { if (frameNavigationCompleted == null) { try { _nativeICoreWebView2.add_FrameNavigationCompleted(new CoreWebView2NavigationCompletedEventHandler(OnFrameNavigationCompleted), out _frameNavigationCompletedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } frameNavigationCompleted = (EventHandler)Delegate.Combine(frameNavigationCompleted, value); } remove { frameNavigationCompleted = (EventHandler)Delegate.Remove(frameNavigationCompleted, value); if (frameNavigationCompleted != null) { return; } try { _nativeICoreWebView2.remove_FrameNavigationCompleted(_frameNavigationCompletedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // ScriptDialogOpening is raised when a JavaScript dialog (alert, confirm, prompt, // or beforeunload) displays for the WebView. // // Remarks: // This event only is raised if the Microsoft.Web.WebView2.Core.CoreWebView2Settings.AreDefaultScriptDialogsEnabled // property is set to false. This event suppresses dialogs or replaces default dialogs // with custom dialogs. If a deferral is not taken on the event args, the subsequent // scripts are blocked until the event handler returns. If a deferral is taken, // the scripts are blocked until the deferral is completed. public event EventHandler ScriptDialogOpening { add { if (scriptDialogOpening == null) { try { _nativeICoreWebView2.add_ScriptDialogOpening(new CoreWebView2ScriptDialogOpeningEventHandler(OnScriptDialogOpening), out _scriptDialogOpeningToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } scriptDialogOpening = (EventHandler)Delegate.Combine(scriptDialogOpening, value); } remove { scriptDialogOpening = (EventHandler)Delegate.Remove(scriptDialogOpening, value); if (scriptDialogOpening != null) { return; } try { _nativeICoreWebView2.remove_ScriptDialogOpening(_scriptDialogOpeningToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // PermissionRequested is raised when content in a WebView requests permission to // access some privileged resources. // // Remarks: // If a deferral is not taken on the event args, the subsequent scripts are blocked // until the event handler returns. If a deferral is taken, the scripts are blocked // until the deferral is completed. public event EventHandler PermissionRequested { add { if (permissionRequested == null) { try { _nativeICoreWebView2.add_PermissionRequested(new CoreWebView2PermissionRequestedEventHandler(OnPermissionRequested), out _permissionRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } permissionRequested = (EventHandler)Delegate.Combine(permissionRequested, value); } remove { permissionRequested = (EventHandler)Delegate.Remove(permissionRequested, value); if (permissionRequested != null) { return; } try { _nativeICoreWebView2.remove_PermissionRequested(_permissionRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // ProcessFailed is raised when a WebView process ends unexpectedly or becomes unresponsive. public event EventHandler ProcessFailed { add { if (processFailed == null) { try { _nativeICoreWebView2.add_ProcessFailed(new CoreWebView2ProcessFailedEventHandler(OnProcessFailed), out _processFailedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } processFailed = (EventHandler)Delegate.Combine(processFailed, value); } remove { processFailed = (EventHandler)Delegate.Remove(processFailed, value); if (processFailed != null) { return; } try { _nativeICoreWebView2.remove_ProcessFailed(_processFailedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // WebMessageReceived is raised when the Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsWebMessageEnabled // setting is set and the top-level document of the WebView runs window.chrome.webview.postMessage // or window.chrome.webview.postMessageWithAdditionalObjects. // // Remarks: // The postMessage function is void postMessage(object) where object is any object // supported by JSON conversion. When postMessage is called, the handler's Invoke // method will be called with the object parameter postMessage converted to a JSON // string. If the same page calls postMessage multiple times, the corresponding // WebMessageReceived events are guaranteed to be fired in the same order. However, // if multiple frames call postMessage, there is no guaranteed order. In addition, // WebMessageReceived events caused by calls to postMessage are not guaranteed to // be sequenced with events caused by DOM APIs. For example, if the page runs // chrome.webview.postMessage("message"); // window.open(); // then the Microsoft.Web.WebView2.Core.CoreWebView2.NewWindowRequested event might // be fired before the WebMessageReceived event. If you need the WebMessageReceived // event to happen before anything else, then in the WebMessageReceived handler // you can post a message back to the page and have the page wait until it receives // that message before continuing. public event EventHandler WebMessageReceived { add { if (webMessageReceived == null) { try { _nativeICoreWebView2.add_WebMessageReceived(new CoreWebView2WebMessageReceivedEventHandler(OnWebMessageReceived), out _webMessageReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } webMessageReceived = (EventHandler)Delegate.Combine(webMessageReceived, value); } remove { webMessageReceived = (EventHandler)Delegate.Remove(webMessageReceived, value); if (webMessageReceived != null) { return; } try { _nativeICoreWebView2.remove_WebMessageReceived(_webMessageReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NewWindowRequested is raised when content inside the WebView requests to open // a new window, such as through window.open(). // // Remarks: // The app can pass a target WebView that is considered the opened window or mark // the event as Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.Handled, // in which case WebView2 does not open a window. If either Handled or Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.NewWindow // properties are not set, the target content will be opened on a popup window. // If a deferral is not taken on the event args, scripts that resulted in the new // window that are requested are blocked until the event handler returns. If a deferral // is taken, then scripts are blocked until the deferral is completed. On Hololens // 2, if the Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.NewWindow // property is not set and the Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.Handled // property is not set to true, the WebView2 will navigate to the Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.Uri. // If either of these properties are set, the WebView2 will not navigate to the // Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.Uri and the // the Microsoft.Web.WebView2.Core.CoreWebView2.NewWindowRequested event will continue // as normal. public event EventHandler NewWindowRequested { add { if (newWindowRequested == null) { try { _nativeICoreWebView2.add_NewWindowRequested(new CoreWebView2NewWindowRequestedEventHandler(OnNewWindowRequested), out _newWindowRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } newWindowRequested = (EventHandler)Delegate.Combine(newWindowRequested, value); } remove { newWindowRequested = (EventHandler)Delegate.Remove(newWindowRequested, value); if (newWindowRequested != null) { return; } try { _nativeICoreWebView2.remove_NewWindowRequested(_newWindowRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // DocumentTitleChanged is raised when the Microsoft.Web.WebView2.Core.CoreWebView2.DocumentTitle // property changes and may be raised before or after the Microsoft.Web.WebView2.Core.CoreWebView2.NavigationCompleted // event. public event EventHandler DocumentTitleChanged { add { if (documentTitleChanged == null) { try { _nativeICoreWebView2.add_DocumentTitleChanged(new CoreWebView2DocumentTitleChangedEventHandler(OnDocumentTitleChanged), out _documentTitleChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } documentTitleChanged = (EventHandler)Delegate.Combine(documentTitleChanged, value); } remove { documentTitleChanged = (EventHandler)Delegate.Remove(documentTitleChanged, value); if (documentTitleChanged != null) { return; } try { _nativeICoreWebView2.remove_DocumentTitleChanged(_documentTitleChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // ContainsFullScreenElementChanged is raised when the Microsoft.Web.WebView2.Core.CoreWebView2.ContainsFullScreenElement // property changes. // // Remarks: // An HTML element inside the WebView may enter fullscreen to the size of the WebView // or leave fullscreen. This event is useful when, for example, a video element // requests to go fullscreen. The listener of this event may resize the WebView // in response. public event EventHandler ContainsFullScreenElementChanged { add { if (containsFullScreenElementChanged == null) { try { _nativeICoreWebView2.add_ContainsFullScreenElementChanged(new CoreWebView2ContainsFullScreenElementChangedEventHandler(OnContainsFullScreenElementChanged), out _containsFullScreenElementChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } containsFullScreenElementChanged = (EventHandler)Delegate.Combine(containsFullScreenElementChanged, value); } remove { containsFullScreenElementChanged = (EventHandler)Delegate.Remove(containsFullScreenElementChanged, value); if (containsFullScreenElementChanged != null) { return; } try { _nativeICoreWebView2.remove_ContainsFullScreenElementChanged(_containsFullScreenElementChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // WebResourceRequested is raised when the WebView is performing a URL request to // a matching URL and resource context filter that was added with Microsoft.Web.WebView2.Core.CoreWebView2.AddWebResourceRequestedFilter(System.String,Microsoft.Web.WebView2.Core.CoreWebView2WebResourceContext). // // Remarks: // At least one filter must be added for the event to be raised. The web resource // requested may be blocked until the event handler returns if a deferral is not // taken on the event args. If a deferral is taken, then the web resource requested // is blocked until the deferral is completed. If this event is subscribed in the // Microsoft.Web.WebView2.Core.CoreWebView2.NewWindowRequested handler it should // be called after the new window is set. For more details see Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.NewWindow. // Currently this only supports file, http, and https URI schemes. public event EventHandler WebResourceRequested { add { if (webResourceRequested == null) { try { _nativeICoreWebView2.add_WebResourceRequested(new CoreWebView2WebResourceRequestedEventHandler(OnWebResourceRequested), out _webResourceRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } webResourceRequested = (EventHandler)Delegate.Combine(webResourceRequested, value); } remove { webResourceRequested = (EventHandler)Delegate.Remove(webResourceRequested, value); if (webResourceRequested != null) { return; } try { _nativeICoreWebView2.remove_WebResourceRequested(_webResourceRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // WindowCloseRequested is raised when content inside the WebView requested to close // the window, such as after window.close() is run. // // Remarks: // The app should close the WebView and related app window if that makes sense to // the app. public event EventHandler WindowCloseRequested { add { if (windowCloseRequested == null) { try { _nativeICoreWebView2.add_WindowCloseRequested(new CoreWebView2WindowCloseRequestedEventHandler(OnWindowCloseRequested), out _windowCloseRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } windowCloseRequested = (EventHandler)Delegate.Combine(windowCloseRequested, value); } remove { windowCloseRequested = (EventHandler)Delegate.Remove(windowCloseRequested, value); if (windowCloseRequested != null) { return; } try { _nativeICoreWebView2.remove_WindowCloseRequested(_windowCloseRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // WebResourceResponseReceived is raised when the WebView receives the response // for a request for a web resource (any URI resolution performed by the WebView; // such as HTTP/HTTPS, file and data requests from redirects, navigations, declarations // in HTML, implicit Favicon lookups, and fetch API usage in the document). // // Remarks: // The host app can use this event to view the actual request and response for a // web resource. There is no guarantee about the order in which the WebView processes // the response and the host app's handler runs. The app's handler will not block // the WebView from processing the response. The event args include the Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest // as sent by the wire and Microsoft.Web.WebView2.Core.CoreWebView2WebResourceResponse // received, including any additional headers added by the network stack that were // not be included as part of the associated Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event, such as Authentication headers. public event EventHandler WebResourceResponseReceived { add { if (webResourceResponseReceived == null) { try { _nativeICoreWebView2_2.add_WebResourceResponseReceived(new CoreWebView2WebResourceResponseReceivedEventHandler(OnWebResourceResponseReceived), out _webResourceResponseReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } webResourceResponseReceived = (EventHandler)Delegate.Combine(webResourceResponseReceived, value); } remove { webResourceResponseReceived = (EventHandler)Delegate.Remove(webResourceResponseReceived, value); if (webResourceResponseReceived != null) { return; } try { _nativeICoreWebView2_2.remove_WebResourceResponseReceived(_webResourceResponseReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // DOMContentLoaded is raised when the initial HTML document has been parsed. // // Remarks: // This aligns with the the document's DOMContentLoaded event in HTML. public event EventHandler DOMContentLoaded { add { if (dOMContentLoaded == null) { try { _nativeICoreWebView2_2.add_DOMContentLoaded(new CoreWebView2DOMContentLoadedEventHandler(OnDOMContentLoaded), out _dOMContentLoadedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } dOMContentLoaded = (EventHandler)Delegate.Combine(dOMContentLoaded, value); } remove { dOMContentLoaded = (EventHandler)Delegate.Remove(dOMContentLoaded, value); if (dOMContentLoaded != null) { return; } try { _nativeICoreWebView2_2.remove_DOMContentLoaded(_dOMContentLoadedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // FrameCreated is raised when a new iframe is created. Handle this event to get // access to Microsoft.Web.WebView2.Core.CoreWebView2Frame objects. // // Remarks: // Use the Microsoft.Web.WebView2.Core.CoreWebView2Frame.Destroyed to listen for // when this iframe goes away. public event EventHandler FrameCreated { add { if (frameCreated == null) { try { try { _nativeICoreWebView2_4.add_FrameCreated(new CoreWebView2FrameCreatedEventHandler(OnFrameCreated), out _frameCreatedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental.add_FrameCreated(new CoreWebView2FrameCreatedEventHandler(OnFrameCreated), out _frameCreatedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } frameCreated = (EventHandler)Delegate.Combine(frameCreated, value); } remove { frameCreated = (EventHandler)Delegate.Remove(frameCreated, value); if (frameCreated != null) { return; } try { try { _nativeICoreWebView2_4.remove_FrameCreated(_frameCreatedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental.remove_FrameCreated(_frameCreatedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // DownloadStarting is raised when a download has begun, blocking the default download // dialog, but not blocking the progress of the download. // // Remarks: // The host can choose to cancel a download, change the result file path, and hide // the default download dialog. If download is not handled or canceled, the download // is saved to the default path after the event completes with default download // dialog shown. public event EventHandler DownloadStarting { add { if (downloadStarting == null) { try { try { _nativeICoreWebView2_4.add_DownloadStarting(new CoreWebView2DownloadStartingEventHandler(OnDownloadStarting), out _downloadStartingToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental2.add_DownloadStarting(new CoreWebView2DownloadStartingEventHandler(OnDownloadStarting), out _downloadStartingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } downloadStarting = (EventHandler)Delegate.Combine(downloadStarting, value); } remove { downloadStarting = (EventHandler)Delegate.Remove(downloadStarting, value); if (downloadStarting != null) { return; } try { try { _nativeICoreWebView2_4.remove_DownloadStarting(_downloadStartingToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental2.remove_DownloadStarting(_downloadStartingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // ClientCertificateRequested is raised when WebView2 is making a request to an // HTTP server that needs a client certificate for HTTP authentication. Read more // about HTTP client certificates at [RFC 8446 The Transport Layer Security (TLS) // Protocol Version 1.3](https://tools.ietf.org/html/rfc8446). // // Remarks: // The host have several options for responding to client certificate requests: // Scenario Handled Cancel SelectedCertificate // Respond to server with a certificate True False MutuallyTrustedCertificate value // Respond to server without certificate True False null // Display default client certificate selection dialog prompt False False n/a // Cancel the request n/a True n/a // If the host don't handle the event, WebView2 will show the default client certificate // selection dialog prompt to the user. public event EventHandler ClientCertificateRequested { add { if (clientCertificateRequested == null) { try { try { _nativeICoreWebView2_5.add_ClientCertificateRequested(new CoreWebView2ClientCertificateRequestedEventHandler(OnClientCertificateRequested), out _clientCertificateRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental3.add_ClientCertificateRequested(new CoreWebView2ClientCertificateRequestedEventHandler(OnClientCertificateRequested), out _clientCertificateRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } clientCertificateRequested = (EventHandler)Delegate.Combine(clientCertificateRequested, value); } remove { clientCertificateRequested = (EventHandler)Delegate.Remove(clientCertificateRequested, value); if (clientCertificateRequested != null) { return; } try { try { _nativeICoreWebView2_5.remove_ClientCertificateRequested(_clientCertificateRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental3.remove_ClientCertificateRequested(_clientCertificateRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // IsMutedChanged is raised when the mute state changes. public event EventHandler IsMutedChanged { add { if (isMutedChanged == null) { try { try { _nativeICoreWebView2_8.add_IsMutedChanged(new CoreWebView2IsMutedChangedEventHandler(OnIsMutedChanged), out _isMutedChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental9.add_IsMutedChanged(new CoreWebView2IsMutedChangedEventHandler(OnIsMutedChanged), out _isMutedChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } isMutedChanged = (EventHandler)Delegate.Combine(isMutedChanged, value); } remove { isMutedChanged = (EventHandler)Delegate.Remove(isMutedChanged, value); if (isMutedChanged != null) { return; } try { try { _nativeICoreWebView2_8.remove_IsMutedChanged(_isMutedChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental9.remove_IsMutedChanged(_isMutedChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // IsDocumentPlayingAudioChanged is raised when document starts or stops playing // audio. public event EventHandler IsDocumentPlayingAudioChanged { add { if (isDocumentPlayingAudioChanged == null) { try { try { _nativeICoreWebView2_8.add_IsDocumentPlayingAudioChanged(new CoreWebView2IsDocumentPlayingAudioChangedEventHandler(OnIsDocumentPlayingAudioChanged), out _isDocumentPlayingAudioChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental9.add_IsDocumentPlayingAudioChanged(new CoreWebView2IsDocumentPlayingAudioChangedEventHandler(OnIsDocumentPlayingAudioChanged), out _isDocumentPlayingAudioChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } isDocumentPlayingAudioChanged = (EventHandler)Delegate.Combine(isDocumentPlayingAudioChanged, value); } remove { isDocumentPlayingAudioChanged = (EventHandler)Delegate.Remove(isDocumentPlayingAudioChanged, value); if (isDocumentPlayingAudioChanged != null) { return; } try { try { _nativeICoreWebView2_8.remove_IsDocumentPlayingAudioChanged(_isDocumentPlayingAudioChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental9.remove_IsDocumentPlayingAudioChanged(_isDocumentPlayingAudioChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Raised when the Microsoft.Web.WebView2.Core.CoreWebView2.IsDefaultDownloadDialogOpen // property changes. // // Remarks: // This event comes after the Microsoft.Web.WebView2.Core.CoreWebView2.DownloadStarting // event. Setting the Microsoft.Web.WebView2.Core.CoreWebView2DownloadStartingEventArgs.Handled // property disables the default download dialog and ensures that this event is // never raised. public event EventHandler IsDefaultDownloadDialogOpenChanged { add { if (isDefaultDownloadDialogOpenChanged == null) { try { try { _nativeICoreWebView2_9.add_IsDefaultDownloadDialogOpenChanged(new CoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler(OnIsDefaultDownloadDialogOpenChanged), out _isDefaultDownloadDialogOpenChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.add_IsDefaultDownloadDialogOpenChanged(new CoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler(OnIsDefaultDownloadDialogOpenChanged), out _isDefaultDownloadDialogOpenChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } isDefaultDownloadDialogOpenChanged = (EventHandler)Delegate.Combine(isDefaultDownloadDialogOpenChanged, value); } remove { isDefaultDownloadDialogOpenChanged = (EventHandler)Delegate.Remove(isDefaultDownloadDialogOpenChanged, value); if (isDefaultDownloadDialogOpenChanged != null) { return; } try { try { _nativeICoreWebView2_9.remove_IsDefaultDownloadDialogOpenChanged(_isDefaultDownloadDialogOpenChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.remove_IsDefaultDownloadDialogOpenChanged(_isDefaultDownloadDialogOpenChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // BasicAuthenticationRequested event is raised when WebView encounters a Basic // HTTP Authentication request as described in https://developer.mozilla.org/docs/Web/HTTP/Authentication, // a Digest HTTP Authentication request as described in https://developer.mozilla.org/docs/Web/HTTP/Headers/Authorization#digest, // an NTLM authentication or a Proxy Authentication request. // // Remarks: // The host can provide a response with credentials for the authentication or cancel // the request. If the host sets the Cancel property to false but does not provide // either UserName or Password properties on the Response property, then WebView2 // will show the default authentication challenge dialog prompt to the user. public event EventHandler BasicAuthenticationRequested { add { if (basicAuthenticationRequested == null) { try { try { _nativeICoreWebView2_10.add_BasicAuthenticationRequested(new CoreWebView2BasicAuthenticationRequestedEventHandler(OnBasicAuthenticationRequested), out _basicAuthenticationRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental10.add_BasicAuthenticationRequested(new CoreWebView2BasicAuthenticationRequestedEventHandler(OnBasicAuthenticationRequested), out _basicAuthenticationRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } basicAuthenticationRequested = (EventHandler)Delegate.Combine(basicAuthenticationRequested, value); } remove { basicAuthenticationRequested = (EventHandler)Delegate.Remove(basicAuthenticationRequested, value); if (basicAuthenticationRequested != null) { return; } try { try { _nativeICoreWebView2_10.remove_BasicAuthenticationRequested(_basicAuthenticationRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental10.remove_BasicAuthenticationRequested(_basicAuthenticationRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // ContextMenuRequested is raised when a context menu is requested by the user and // the content inside WebView hasn't disabled context menus. // // Remarks: // The host has the option to create their own context menu with the information // provided in the event or can add items to or remove items from WebView context // menu. If the host doesn't handle the event, WebView will display the default // context menu. public event EventHandler ContextMenuRequested { add { if (contextMenuRequested == null) { try { try { _nativeICoreWebView2_11.add_ContextMenuRequested(new CoreWebView2ContextMenuRequestedEventHandler(OnContextMenuRequested), out _contextMenuRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental6.add_ContextMenuRequested(new CoreWebView2ContextMenuRequestedEventHandler(OnContextMenuRequested), out _contextMenuRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } contextMenuRequested = (EventHandler)Delegate.Combine(contextMenuRequested, value); } remove { contextMenuRequested = (EventHandler)Delegate.Remove(contextMenuRequested, value); if (contextMenuRequested != null) { return; } try { try { _nativeICoreWebView2_11.remove_ContextMenuRequested(_contextMenuRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental6.remove_ContextMenuRequested(_contextMenuRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // StatusBarTextChanged event is raised when the text in the [Window.statusbar](https://developer.mozilla.org/docs/Web/API/Window/statusbar) // changes. When the event is fired use the property Microsoft.Web.WebView2.Core.CoreWebView2.StatusBarText // to get the current statusbar text. // // Remarks: // Events which cause causes can be anything from hover, url events, and others. // There is not a finite list on how to cause the statusbar to change. The developer // must create the status bar and set the text. public event EventHandler StatusBarTextChanged { add { if (statusBarTextChanged == null) { try { try { _nativeICoreWebView2_12.add_StatusBarTextChanged(new CoreWebView2StatusBarTextChangedEventHandler(OnStatusBarTextChanged), out _statusBarTextChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental13.add_StatusBarTextChanged(new CoreWebView2StatusBarTextChangedEventHandler(OnStatusBarTextChanged), out _statusBarTextChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } statusBarTextChanged = (EventHandler)Delegate.Combine(statusBarTextChanged, value); } remove { statusBarTextChanged = (EventHandler)Delegate.Remove(statusBarTextChanged, value); if (statusBarTextChanged != null) { return; } try { try { _nativeICoreWebView2_12.remove_StatusBarTextChanged(_statusBarTextChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental13.remove_StatusBarTextChanged(_statusBarTextChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } public event EventHandler ServerCertificateErrorDetected { add { if (serverCertificateErrorDetected == null) { try { try { _nativeICoreWebView2_14.add_ServerCertificateErrorDetected(new CoreWebView2ServerCertificateErrorDetectedEventHandler(OnServerCertificateErrorDetected), out _serverCertificateErrorDetectedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental15.add_ServerCertificateErrorDetected(new CoreWebView2ServerCertificateErrorDetectedEventHandler(OnServerCertificateErrorDetected), out _serverCertificateErrorDetectedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } serverCertificateErrorDetected = (EventHandler)Delegate.Combine(serverCertificateErrorDetected, value); } remove { serverCertificateErrorDetected = (EventHandler)Delegate.Remove(serverCertificateErrorDetected, value); if (serverCertificateErrorDetected != null) { return; } try { try { _nativeICoreWebView2_14.remove_ServerCertificateErrorDetected(_serverCertificateErrorDetectedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental15.remove_ServerCertificateErrorDetected(_serverCertificateErrorDetectedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Raised when the Favicon has changed. This can include when a new page is loaded // and thus by default no icon is set or the icon is set for the page by DOM or // JavaScript. // // Remarks: // The first argument is the Webview2 which saw the changed Favicon and the second // is null. public event EventHandler FaviconChanged { add { if (faviconChanged == null) { try { try { _nativeICoreWebView2_15.add_FaviconChanged(new CoreWebView2FaviconChangedEventHandler(OnFaviconChanged), out _faviconChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental12.add_FaviconChanged(new CoreWebView2FaviconChangedEventHandler(OnFaviconChanged), out _faviconChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } faviconChanged = (EventHandler)Delegate.Combine(faviconChanged, value); } remove { faviconChanged = (EventHandler)Delegate.Remove(faviconChanged, value); if (faviconChanged != null) { return; } try { try { _nativeICoreWebView2_15.remove_FaviconChanged(_faviconChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2Experimental12.remove_FaviconChanged(_faviconChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // LaunchingExternalUriScheme is raised when a navigation request is made to a URI // scheme that is registered with the OS. public event EventHandler LaunchingExternalUriScheme { add { if (launchingExternalUriScheme == null) { try { _nativeICoreWebView2Experimental21.add_LaunchingExternalUriScheme(new CoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler(OnLaunchingExternalUriScheme), out _launchingExternalUriSchemeToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } launchingExternalUriScheme = (EventHandler)Delegate.Combine(launchingExternalUriScheme, value); } remove { launchingExternalUriScheme = (EventHandler)Delegate.Remove(launchingExternalUriScheme, value); if (launchingExternalUriScheme != null) { return; } try { _nativeICoreWebView2Experimental21.remove_LaunchingExternalUriScheme(_launchingExternalUriSchemeToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Print the current page to PDF asynchronously with the provided settings. // // Remarks: // See Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings for description of // settings. Passing null for printSettings results in default print settings used. // Use resultFilePath to specify the path to the PDF file. The host should provide // an absolute path, including file name. If the path points to an existing file, // the file will be overwritten. If the path is not valid, the method fails. The // async PrintToPdf operation completes when the data has been written to the PDF // file. If the application exits before printing is complete, the file is not saved. // Only one `Printing` operation can be in progress at a time. If PrintToPdf is // called while a `PrintToPdf` or `PrintToPdfStream` or `Print` operation is in // progress, the operation completes and returns false. public async Task PrintToPdfAsync(string ResultFilePath, CoreWebView2PrintSettings printSettings = null) { CoreWebView2PrintToPdfCompletedHandler handler; try { handler = new CoreWebView2PrintToPdfCompletedHandler(); ICoreWebView2PrintSettings printSettings2 = printSettings?._nativeICoreWebView2PrintSettings; try { _nativeICoreWebView2_7.PrintToPdf(ResultFilePath, printSettings2, handler); } catch (NotImplementedException) { _nativeICoreWebView2Experimental7.PrintToPdf(ResultFilePath, printSettings2, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.isSuccessful; } // // Summary: // Adds a URI and resource context filter for corresponding request sources for // the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested event. // // Parameters: // uri: // A URI to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // ResourceContext: // A resource context filter to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // RequestSourceKinds: // A request source filter to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. public void AddWebResourceRequestedFilter(string uri, CoreWebView2WebResourceContext ResourceContext, CoreWebView2WebResourceRequestSourceKinds RequestSourceKinds) { try { _nativeICoreWebView2Experimental16.AddWebResourceRequestedFilterWithRequestSourceKinds(uri, (COREWEBVIEW2_WEB_RESOURCE_CONTEXT)ResourceContext, (COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS)RequestSourceKinds); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Removes a matching WebResource filter that was previously added for the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // Parameters: // uri: // An URI to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // ResourceContext: // A resource context filter to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // RequestSourceKinds: // A request source filter to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. public void RemoveWebResourceRequestedFilter(string uri, CoreWebView2WebResourceContext ResourceContext, CoreWebView2WebResourceRequestSourceKinds RequestSourceKinds) { try { _nativeICoreWebView2Experimental16.RemoveWebResourceRequestedFilterWithRequestSourceKinds(uri, (COREWEBVIEW2_WEB_RESOURCE_CONTEXT)ResourceContext, (COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS)RequestSourceKinds); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Opens the browser print preview dialog to print the current web page public void ShowPrintUI() { try { CoreWebView2PrintDialogKind printDialogKind = CoreWebView2PrintDialogKind.Browser; _nativeICoreWebView2_16.ShowPrintUI((COREWEBVIEW2_PRINT_DIALOG_KIND)printDialogKind); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal CoreWebView2(object rawCoreWebView2) { _rawNative = rawCoreWebView2; } internal void OnNavigationStarting(CoreWebView2NavigationStartingEventArgs args) { navigationStarting?.Invoke(this, args); } internal void OnContentLoading(CoreWebView2ContentLoadingEventArgs args) { contentLoading?.Invoke(this, args); } internal void OnSourceChanged(CoreWebView2SourceChangedEventArgs args) { sourceChanged?.Invoke(this, args); } internal void OnHistoryChanged(object args) { historyChanged?.Invoke(this, args); } internal void OnNavigationCompleted(CoreWebView2NavigationCompletedEventArgs args) { navigationCompleted?.Invoke(this, args); } internal void OnFrameNavigationStarting(CoreWebView2NavigationStartingEventArgs args) { frameNavigationStarting?.Invoke(this, args); } internal void OnFrameNavigationCompleted(CoreWebView2NavigationCompletedEventArgs args) { frameNavigationCompleted?.Invoke(this, args); } internal void OnScriptDialogOpening(CoreWebView2ScriptDialogOpeningEventArgs args) { scriptDialogOpening?.Invoke(this, args); } internal void OnPermissionRequested(CoreWebView2PermissionRequestedEventArgs args) { permissionRequested?.Invoke(this, args); } internal void OnProcessFailed(CoreWebView2ProcessFailedEventArgs args) { processFailed?.Invoke(this, args); } internal void OnWebMessageReceived(CoreWebView2WebMessageReceivedEventArgs args) { webMessageReceived?.Invoke(this, args); } internal void OnNewWindowRequested(CoreWebView2NewWindowRequestedEventArgs args) { newWindowRequested?.Invoke(this, args); } internal void OnDocumentTitleChanged(object args) { documentTitleChanged?.Invoke(this, args); } internal void OnContainsFullScreenElementChanged(object args) { containsFullScreenElementChanged?.Invoke(this, args); } internal void OnWebResourceRequested(CoreWebView2WebResourceRequestedEventArgs args) { webResourceRequested?.Invoke(this, args); } internal void OnWindowCloseRequested(object args) { windowCloseRequested?.Invoke(this, args); } // // Summary: // Causes a navigation of the top level document to the specified URI. // // Parameters: // uri: // The URI to navigate to. // // Remarks: // For more information, navigate to [Navigation event](/microsoft-edge/webview2/concepts/navigation-events). // Note that this operation starts a navigation and the corresponding Microsoft.Web.WebView2.Core.CoreWebView2.NavigationStarting // event is raised sometime after Navigate runs. public void Navigate(string uri) { try { _nativeICoreWebView2.Navigate(uri); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Initiates a navigation to htmlContent as source HTML of a new document. // // Parameters: // htmlContent: // A source HTML of a new document. // // Remarks: // The htmlContent parameter may not be larger than 2 MB (2 * 1024 * 1024 bytes) // in total size. The origin of the new page is about:blank. public void NavigateToString(string htmlContent) { try { _nativeICoreWebView2.NavigateToString(htmlContent); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Adds the provided JavaScript to a list of scripts that should be run after the // global object has been created, but before the HTML document has been parsed // and before any other script included by the HTML document is run. // // Parameters: // javaScript: // The JavaScript code to be run. // // Returns: // A script ID that may be passed when calling Microsoft.Web.WebView2.Core.CoreWebView2.RemoveScriptToExecuteOnDocumentCreated(System.String). // // Remarks: // The injected script will apply to all future top level document and child frame // navigations until removed with Microsoft.Web.WebView2.Core.CoreWebView2.RemoveScriptToExecuteOnDocumentCreated(System.String). // This is applied asynchronously and you must wait for the returned System.Threading.Tasks.Task`1 // to complete before you can be sure that the script is ready to execute on future // navigations. If the method is run in Microsoft.Web.WebView2.Core.CoreWebView2.NewWindowRequested // handler, it should be called before the new window is set. For more details see // Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs.NewWindow. // Note that if an HTML document has sandboxing of some kind via [sandbox](https://developer.mozilla.org/docs/Web/HTML/Element/iframe#attr-sandbox) // properties or the [Content-Security-Policy HTTP header](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy) // this will affect the script run here. So, for example, if the allow-modals keyword // is not set then calls to the alert function will be ignored. public async Task AddScriptToExecuteOnDocumentCreatedAsync(string javaScript) { CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler handler; try { handler = new CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler(); _nativeICoreWebView2.AddScriptToExecuteOnDocumentCreated(javaScript, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.id; } // // Summary: // Removes the corresponding JavaScript added via Microsoft.Web.WebView2.Core.CoreWebView2.AddScriptToExecuteOnDocumentCreatedAsync(System.String) // with the specified script ID. // // Parameters: // id: // The ID corresponds to the JavaScript code to be removed from the list of scripts. public void RemoveScriptToExecuteOnDocumentCreated(string id) { try { _nativeICoreWebView2.RemoveScriptToExecuteOnDocumentCreated(id); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Runs JavaScript code from the javaScript parameter in the current top-level document // rendered in the WebView. // // Parameters: // javaScript: // The JavaScript code to be run in the current top-level document rendered in the // WebView. // // Returns: // A JSON encoded string that represents the result of running the provided JavaScript. // // Remarks: // If the result is undefined, contains a reference cycle, or otherwise is not able // to be encoded into JSON, the JSON null value is returned as the "null" string. // A function that has no explicit return value returns undefined. If the script // that was run throws an unhandled exception, then the result is also null. This // method is applied asynchronously. If the method is run after the Microsoft.Web.WebView2.Core.CoreWebView2.NavigationStarting // event during a navigation, the script runs in the new document when loading it, // around the time Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading is run. // This operation works even if Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsScriptEnabled // is set to false. public async Task ExecuteScriptAsync(string javaScript) { CoreWebView2ExecuteScriptCompletedHandler handler; try { handler = new CoreWebView2ExecuteScriptCompletedHandler(); _nativeICoreWebView2.ExecuteScript(javaScript, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.resultObjectAsJson; } // // Summary: // Captures an image of what WebView is displaying. // // Parameters: // imageFormat: // The format of the image to be captured. // // imageStream: // The stream to which the resulting image binary data is written. // // Remarks: // When CapturePreviewAsync finishes writing to the stream, the Invoke method on // the provided handler parameter is called. This method fails if called before // the first Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading event. For // example if this is called in the Microsoft.Web.WebView2.Core.CoreWebView2.NavigationStarting // event for the first navigation it will fail. For subsequent navigations, the // method may not fail, but will not capture an image of a given webpage until the // Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading event has been fired // for it. Any call to this method prior to that will result in a capture of the // page being navigated away from. public async Task CapturePreviewAsync(CoreWebView2CapturePreviewImageFormat imageFormat, Stream imageStream) { CoreWebView2CapturePreviewCompletedHandler handler; try { handler = new CoreWebView2CapturePreviewCompletedHandler(); _nativeICoreWebView2.CapturePreview((COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT)imageFormat, (imageStream == null) ? null : new ManagedIStream(imageStream), handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); } // // Summary: // Reloads the current page. // // Remarks: // This is similar to navigating to the URI of current top level document including // all navigation events firing and respecting any entries in the HTTP cache. But, // the back or forward history will not be modified. public void Reload() { try { _nativeICoreWebView2.Reload(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Posts the specified webMessageAsJson to the top level document in this WebView. // // Parameters: // webMessageAsJson: // The web message to be posted to the top level document in this WebView. // // Remarks: // The event args is an instance of MessageEvent. The Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsWebMessageEnabled // setting must be true or the message will not be sent. The event arg's data property // of the event arg is the webMessageAsJson string parameter parsed as a JSON string // into a JavaScript object. The event arg's source property of the event arg is // a reference to the window.chrome.webview object. For information about sending // messages from the HTML document in the WebView to the host, navigate to Microsoft.Web.WebView2.Core.CoreWebView2.WebMessageReceived. // The message is sent asynchronously. If a navigation occurs before the message // is posted to the page, the message is not be sent. public void PostWebMessageAsJson(string webMessageAsJson) { try { _nativeICoreWebView2.PostWebMessageAsJson(webMessageAsJson); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Posts a message that is a simple string rather than a JSON string representation // of a JavaScript object. // // Parameters: // webMessageAsString: // The web message to be posted to the top level document in this WebView. // // Remarks: // This behaves in exactly the same manner as Microsoft.Web.WebView2.Core.CoreWebView2.PostWebMessageAsJson(System.String), // but the data property of the event arg of the window.chrome.webview message is // a string with the same value as webMessageAsString. Use this instead of Microsoft.Web.WebView2.Core.CoreWebView2.PostWebMessageAsJson(System.String) // if you want to communicate using simple strings rather than JSON objects. public void PostWebMessageAsString(string webMessageAsString) { try { _nativeICoreWebView2.PostWebMessageAsString(webMessageAsString); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Runs an asynchronous DevToolsProtocol method. // // Parameters: // methodName: // The full name of the method in the format {domain}.{method}. // // parametersAsJson: // A JSON formatted string containing the parameters for the corresponding method. // // Returns: // A JSON string that represents the method's return object. // // Remarks: // For more information about available methods, navigate to [DevTools Protocol // Viewer](https://aka.ms/DevToolsProtocolDocs). The returned task is completed // when the method asynchronously completes and will return the method's return // object as a JSON string. Note even though WebView2 dispatches the CDP messages // in the order called, CDP method calls may be processed out of order. If you require // CDP methods to run in a particular order, you should await for the previous method // call. public async Task CallDevToolsProtocolMethodAsync(string methodName, string parametersAsJson) { CoreWebView2CallDevToolsProtocolMethodCompletedHandler handler; try { handler = new CoreWebView2CallDevToolsProtocolMethodCompletedHandler(); _nativeICoreWebView2.CallDevToolsProtocolMethod(methodName, parametersAsJson, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.returnObjectAsJson; } // // Summary: // Navigates the WebView to the previous page in the navigation history. public void GoBack() { try { _nativeICoreWebView2.GoBack(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Navigates the WebView to the next page in the navigation history. public void GoForward() { try { _nativeICoreWebView2.GoForward(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Gets a DevTools Protocol event receiver that allows you to subscribe to a DevToolsProtocol // event. // // Parameters: // eventName: // The full name of the event in the format {domain}.{event}. // // Returns: // A Devtools Protocol event receiver. // // Remarks: // For more information about DevToolsProtocol events description and event args, // navigate to [DevTools Protocol Viewer](https://aka.ms/DevToolsProtocolDocs). public CoreWebView2DevToolsProtocolEventReceiver GetDevToolsProtocolEventReceiver(string eventName) { try { return new CoreWebView2DevToolsProtocolEventReceiver(_nativeICoreWebView2.GetDevToolsProtocolEventReceiver(eventName)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Stops all navigations and pending resource fetches. // // Remarks: // Does not stop scripts. public void Stop() { try { _nativeICoreWebView2.Stop(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Adds the provided host object to script running in the WebView with the specified // name. // // Parameters: // name: // The name of the host object. // // rawObject: // The host object to be added to script. // // Remarks: // Host objects are exposed as host object proxies via window.chrome.webview.hostObjects.{name}. // Host object proxies are promises and will resolve to an object representing the // host object. Only the COM visible objects/properties/methods can be accessed // from script. The app can control which part of .NET objects are exposed using // System.Runtime.InteropServices.ComVisibleAttribute. JavaScript code in the WebView // will be able to access appObject as following and then access attributes and // methods of appObject. Note that while simple types, IDispatch and array are supported, // and IUnknown objects that also implement IDispatch are treated as IDispatch, // generic IUnknown, VT_DECIMAL, or VT_RECORD variant is not supported. Remote JavaScript // objects like callback functions are represented as an VT_DISPATCH VARIANT with // the object implementing IDispatch. The JavaScript callback method may be invoked // using DISPID_VALUE for the DISPID. Nested arrays are supported up to a depth // of 3. Arrays of by reference types are not supported. VT_EMPTY and VT_NULL are // mapped into JavaScript as null. In JavaScript null and undefined are mapped to // VT_EMPTY. Additionally, all host objects are exposed as window.chrome.webview.hostObjects.sync.{name}. // Here the host objects are exposed as synchronous host object proxies. These are // not promises and calls to functions or property access synchronously block running // script waiting to communicate cross process for the host code to run. Accordingly // this can result in reliability issues and it is recommended that you use the // promise based asynchronous window.chrome.webview.hostObjects.{name} API described // above. Synchronous host object proxies and asynchronous host object proxies can // both proxy the same host object. Remote changes made by one proxy will be reflected // in any other proxy of that same host object whether the other proxies and synchronous // or asynchronous. While JavaScript is blocked on a synchronous call to native // code, that native code is unable to call back to JavaScript. Attempts to do so // will fail with HRESULT_FROM_WIN32(ERROR_POSSIBLE_DEADLOCK). Host object proxies // are JavaScript Proxy objects that intercept all property get, property set, and // method invocations. Properties or methods that are a part of the Function or // Object prototype are run locally. Additionally any property or method in the // array chrome.webview.hostObjects.options.forceLocalProperties will also be run // locally. This defaults to including optional methods that have meaning in JavaScript // like toJSON and Symbol.toPrimitive. You can add more to this array as required. // There's a method chrome.webview.hostObjects.cleanupSome that will best effort // garbage collect host object proxies. The chrome.webview.hostObjects.options object // provides the ability to change some functionality of host objects. // Options property – Details // forceLocalProperties – This is an array of host object property names that will // be run locally, instead of being called on the native host object. This defaults // to then, toJSON, Symbol.toString, and Symbol.toPrimitive. You can add other properties // to specify that they should be run locally on the JavaScript host object proxy. // log – This is a callback that will be called with debug information. For example, // you can set this to console.log.bind(console) to have it print debug information // to the console to help when troubleshooting host object usage. By default this // is null. // shouldSerializeDates – By default this is false, and JavaScript Date objects // will be sent to host objects as a string using JSON.stringify. You can set this // property to true to have Date objects properly serialize as a System.DateTime // when sending to the .NET host object, and have System.DateTime properties and // return values create a JavaScript Date object. // defaultSyncProxy – When calling a method on a synchronous proxy, the result should // also be a synchronous proxy. But in some cases, the sync/async context is lost // (for example, when providing to native code a reference to a function, and then // calling that function in native code). In these cases, the proxy will be asynchronous, // unless this property is set. // forceAsyncMethodMatches – This is an array of regular expressions. When calling // a method on a synchronous proxy, the method call will be performed asynchronously // if the method name matches a string or regular expression in this array. Setting // this value to Async will make any method that ends with Async be an asynchronous // method call. If an async method doesn't match here and isn't forced to be asynchronous, // the method will be invoked synchronously, blocking execution of the calling JavaScript // and then returning the resolution of the promise, rather than returning a promise. // ignoreMemberNotFoundError – By default, an exception is thrown when attempting // to get the value of a proxy property that doesn't exist on the corresponding // native class. Setting this property to true switches the behavior to match Chakra // WinRT projection (and general JavaScript) behavior of returning undefined with // no error. // Host object proxies additionally have the following methods which run locally: // Method name – Details // applyHostFunction, getHostProperty, setHostProperty – Perform a method invocation, // property get, or property set on the host object. You can use these to explicitly // force a method or property to run remotely if there is a conflicting local method // or property. For instance, proxy.toString() will run the local toString method // on the proxy object. But proxy.applyHostFunction('toString') runs toString on // the host proxied object instead. // getLocalProperty, setLocalProperty – Perform property get, or property set locally. // You can use these methods to force getting or setting a property on the host // object proxy itself rather than on the host object it represents. For instance, // proxy.unknownProperty will get the property named unknownProperty from the host // proxied object. But proxy.getLocalProperty('unknownProperty') will get the value // of the property unknownProperty on the proxy object itself. // sync – Asynchronous host object proxies expose a sync method which returns a // promise for a synchronous host object proxy for the same host object. For example, // chrome.webview.hostObjects.sample.methodCall() returns an asynchronous host object // proxy. You can use the sync method to obtain a synchronous host object proxy // instead: const syncProxy = await chrome.webview.hostObjects.sample.methodCall().sync() // async – Synchronous host object proxies expose an async method which blocks and // returns an asynchronous host object proxy for the same host object. For example, // chrome.webview.hostObjects.sync.sample.methodCall() returns a synchronous host // object proxy. Calling the async method on this blocks and then returns an asynchronous // host object proxy for the same host object: const asyncProxy = chrome.webview.hostObjects.sync.sample.methodCall().async() // then – Asynchronous host object proxies have a then method. This allows them // to be awaitable. then will return a promise that resolves with a representation // of the host object. If the proxy represents a JavaScript literal then a copy // of that is returned locally. If the proxy represents a function then a non-awaitable // proxy is returned. If the proxy represents a JavaScript object with a mix of // literal properties and function properties, then the a copy of the object is // returned with some properties as host object proxies. // All other property and method invocations (other than the above Remote object // proxy methods, forceLocalProperties list, and properties on Function and Object // prototypes) are run remotely. Asynchronous host object proxies return a promise // representing asynchronous completion of remotely invoking the method, or getting // the property. The promise resolves after the remote operations complete and the // promises resolve to the resulting value of the operation. Synchronous host object // proxies work similarly but block JavaScript execution and wait for the remote // operation to complete. Setting a property on an asynchronous host object proxy // works slightly differently. The set returns immediately and the return value // is the value that will be set. This is a requirement of the JavaScript Proxy // object. If you need to asynchronously wait for the property set to complete, // use the setHostProperty method which returns a promise as described above. Synchronous // object property set property synchronously blocks until the property is set. // Exposing host objects to script has security risk. Please follow [best practices](/microsoft-edge/webview2/concepts/security). public void AddHostObjectToScript(string name, object rawObject) { try { ICoreWebView2 nativeICoreWebView = _nativeICoreWebView2; object @object = rawObject; nativeICoreWebView.AddHostObjectToScript(name, ref @object); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Removes the host object specified by the name so that it is no longer accessible // from JavaScript code in the WebView. // // Parameters: // name: // The name of the host object to be removed. // // Remarks: // While new access attempts are denied, if the object is already obtained by JavaScript // code in the WebView, the JavaScript code continues to have access to that object. // Running this method for a name that is already removed or never added fails. public void RemoveHostObjectFromScript(string name) { try { _nativeICoreWebView2.RemoveHostObjectFromScript(name); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Opens the DevTools window for the current document in the WebView. // // Remarks: // Does nothing if run when the DevTools window is already open. public void OpenDevToolsWindow() { try { _nativeICoreWebView2.OpenDevToolsWindow(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Adds a URI and resource context filter for the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // Parameters: // uri: // An URI to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // ResourceContext: // A resource context filter to be added to the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // Remarks: // A web resource request with a resource context that matches this filter's resource // context and a URI that matches this filter's URI wildcard string will be raised // via the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested event. // The uri parameter value is a wildcard string matched against the URI of the web // resource request. This is a glob style wildcard string in which a * matches zero // or more characters and a ? matches exactly one character. These wildcard characters // can be escaped using a backslash just before the wildcard character in order // to represent the literal * or ?. The matching occurs over the URI as a whole // string and not limiting wildcard matches to particular parts of the URI. The // wildcard filter is compared to the URI after the URI has been normalized, any // URI fragment has been removed, and non-ASCII hostnames have been converted to // punycode. Specifying a nullptr for the uri is equivalent to an empty string which // matches no URIs. For more information about resource context filters, navigate // to Microsoft.Web.WebView2.Core.CoreWebView2WebResourceContext. // URI Filter String Request URI Match Notes // * https://contoso.com/a/b/c Yes A single * will match all URIs // *://contoso.com/* https://contoso.com/a/b/c Yes Matches everything in contoso.com // across all schemes // *://contoso.com/* https://example.com/?https://contoso.com/ Yes But also matches // a URI with just the same text anywhere in the URI // example https://contoso.com/example No The filter does not perform partial matches // *example https://contoso.com/example Yes The filter matches across URI parts // *example https://contoso.com/path/?example Yes The filter matches across URI // parts // *example https://contoso.com/path/?query#example No The filter is matched against // the URI with no fragment // *example https://example No The URI is normalized before filter matching so the // actual URI used for comparison is https://example.com/ // *example/ https://example Yes Just like above, but this time the filter ends // with a / just like the normalized URI // https://xn--qei.example/ https://❤.example/ Yes Non-ASCII hostnames are normalized // to punycode before wildcard comparison // https://❤.example/ https://xn--qei.example/ No Non-ASCII hostnames are normalized // to punycode before wildcard comparison public void AddWebResourceRequestedFilter(string uri, CoreWebView2WebResourceContext ResourceContext) { try { _nativeICoreWebView2.AddWebResourceRequestedFilter(uri, (COREWEBVIEW2_WEB_RESOURCE_CONTEXT)ResourceContext); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Removes a matching WebResource filter that was previously added for the Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event. // // Parameters: // uri: // An URI to at which a web resource filter was added. // // ResourceContext: // A previously added resource context filter to be removed. // // Exceptions: // T:System.ArgumentException: // A filter that was never added. // // Remarks: // If the same filter was added multiple times, then it must need to be removed // as many times as it was added for the removal to be effective. public void RemoveWebResourceRequestedFilter(string uri, CoreWebView2WebResourceContext ResourceContext) { try { _nativeICoreWebView2.RemoveWebResourceRequestedFilter(uri, (COREWEBVIEW2_WEB_RESOURCE_CONTEXT)ResourceContext); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal void OnWebResourceResponseReceived(CoreWebView2WebResourceResponseReceivedEventArgs args) { webResourceResponseReceived?.Invoke(this, args); } internal void OnDOMContentLoaded(CoreWebView2DOMContentLoadedEventArgs args) { dOMContentLoaded?.Invoke(this, args); } // // Summary: // Navigates using a constructed Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest // object. // // Parameters: // Request: // The constructed web resource object to provide post data or additional request // headers during navigation. // // Remarks: // The headers in the Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest // override headers added by WebView2 runtime except for Cookie headers. Method // can only be either GET or POST. Provided post data will only be sent only if // the method is POST and the uri scheme is HTTP(S). public void NavigateWithWebResourceRequest(CoreWebView2WebResourceRequest Request) { try { _nativeICoreWebView2_2.NavigateWithWebResourceRequest(Request._nativeICoreWebView2WebResourceRequest); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // An app may call this API to have the WebView2 consume less memory. // // Remarks: // This is useful when a Win32 app becomes invisible, or when a Universal Windows // Platform app is being suspended, during the suspended event handler before completing // the suspended event. The Microsoft.Web.WebView2.Core.CoreWebView2Controller.IsVisible // property must be false when the API is called. Otherwise, the API throws COMException // with error code of HRESULT_FROM_WIN32(ERROR_INVALID_STATE). Suspending is similar // to putting a tab to sleep in the Edge browser. Suspending pauses WebView script // timers and animations, minimizes CPU usage for the associated browser renderer // process and allows the operating system to reuse the memory that was used by // the renderer process for other processes. Note that Suspend is best effort and // considered completed successfully once the request is sent to browser renderer // process. If there is a running script, the script will continue to run and the // renderer process will be suspended after that script is done. See [Sleeping Tabs // FAQ](https://techcommunity.microsoft.com/t5/articles/sleeping-tabs-faq/m-p/1705434) // for conditions that might prevent WebView from being suspended. In those situations, // the result of the async task is false. The WebView will be automatically resumed // when it becomes visible. Therefore, the app normally does not have to call Microsoft.Web.WebView2.Core.CoreWebView2.Resume // explicitly. The app can call Microsoft.Web.WebView2.Core.CoreWebView2.Resume // and then Microsoft.Web.WebView2.Core.CoreWebView2.TrySuspendAsync periodically // for an invisible WebView so that the invisible WebView can sync up with latest // data and the page ready to show fresh content when it becomes visible. All WebView // APIs can still be accessed when a WebView is suspended. Some APIs like Navigate // will auto resume the WebView. To avoid unexpected auto resume, check Microsoft.Web.WebView2.Core.CoreWebView2.IsSuspended // property before calling APIs that might change WebView state. public async Task TrySuspendAsync() { CoreWebView2TrySuspendCompletedHandler handler; try { handler = new CoreWebView2TrySuspendCompletedHandler(); _nativeICoreWebView2_3.TrySuspend(handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.isSuccessful; } // // Summary: // Resumes the WebView so that it resumes activities on the web page. // // Remarks: // This API can be called while the WebView2 controller is invisible. The app can // interact with the WebView immediately after Microsoft.Web.WebView2.Core.CoreWebView2.Resume. // WebView will be automatically resumed when it becomes visible. public void Resume() { try { _nativeICoreWebView2_3.Resume(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Sets a mapping between a virtual host name and a folder path to make available // to web sites via that host name. // // Parameters: // hostName: // A virtual host name. // // folderPath: // A folder path name to be mapped to the virtual host name. The length must not // exceed the Windows MAX_PATH limit. // // accessKind: // The level of access to resources under the virtual host from other sites. // // Remarks: // After setting the mapping, documents loaded in the WebView can use HTTP or HTTPS // URLs at the specified host name specified by hostName to access files in the // local folder specified by folderPath. This mapping applies to both top-level // document and iframe navigations as well as subresource references from a document. // This also applies to dedicated and shared worker scripts but does not apply to // service worker scripts. Due to a current implementation limitation, media files // accessed using virtual host name can be very slow to load. As the resource loaders // for the current page might have already been created and running, changes to // the mapping might not be applied to the current page and a reload of the page // is needed to apply the new mapping. Both absolute and relative paths are supported // for folderPath. Relative paths are interpreted as relative to the folder where // the exe of the app is in. // For example, after calling SetVirtualHostNameToFolderMapping("appassets.example", // "assets", CoreWebView2HostResourceAccessKind.Deny);, navigating to https://appassets.example/my-local-file.html // will show content from my-local-file.html in the assets subfolder located on // disk under the same path as the app's executable file. DOM elements that want // to reference local files will have their host reference virtual host in the source. // If there are multiple folders being used, define one unique virtual host per // folder. // You should typically choose virtual host names that are never used by real sites. // If you own a domain such as example.com, another option is to use a subdomain // reserved for the app (like my-app.example.com). // [RFC 6761](https://tools.ietf.org/html/rfc6761) has reserved several special-use // domain names that are guaranteed to not be used by real sites (for example, .example, // .test, and .invalid). // Note that using .local as the top-level domain name will work but can cause a // delay during navigations. You should avoid using .local if you can. // Apps should use distinct domain names when mapping folder from different sources // that should be isolated from each other. For instance, the app might use app-file.example // for files that ship as part of the app, and book1.example might be used for files // containing books from a less trusted source that were previously downloaded and // saved to the disk by the app. // The host name used in the APIs is canonicalized using Chromium's host name parsing // logic before being used internally. For more information see [HTML5 2.6 URLs](https://dev.w3.org/html5/spec-LC/urls.html). // All host names that are canonicalized to the same string are considered identical. // For example, EXAMPLE.COM and example.com are treated as the same host name. An // international host name and its Punycode-encoded host name are considered the // same host name. There is no DNS resolution for host name and the trailing '.' // is not normalized as part of canonicalization. // Therefore example.com and example.com. are treated as different host names. Similarly, // virtual-host-name and virtual-host-name.example.com are treated as different // host names even if the machine has a DNS suffix of example.com. // Specify the minimal cross-origin access necessary to run the app. If there is // not a need to access local resources from other origins, use Microsoft.Web.WebView2.Core.CoreWebView2HostResourceAccessKind.Deny. public void SetVirtualHostNameToFolderMapping(string hostName, string folderPath, CoreWebView2HostResourceAccessKind accessKind) { try { _nativeICoreWebView2_3.SetVirtualHostNameToFolderMapping(hostName, folderPath, (COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND)accessKind); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Clears a host name mapping for local folder that was added by Microsoft.Web.WebView2.Core.CoreWebView2.SetVirtualHostNameToFolderMapping(System.String,System.String,Microsoft.Web.WebView2.Core.CoreWebView2HostResourceAccessKind). // // Parameters: // hostName: // The host name to be removed from the mapping. public void ClearVirtualHostNameToFolderMapping(string hostName) { try { _nativeICoreWebView2_3.ClearVirtualHostNameToFolderMapping(hostName); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal void OnFrameCreated(CoreWebView2FrameCreatedEventArgs args) { frameCreated?.Invoke(this, args); } internal void OnDownloadStarting(CoreWebView2DownloadStartingEventArgs args) { downloadStarting?.Invoke(this, args); } internal void OnClientCertificateRequested(CoreWebView2ClientCertificateRequestedEventArgs args) { clientCertificateRequested?.Invoke(this, args); } // // Summary: // Opens the Browser Task Manager view as a new window in the foreground. // // Remarks: // If the Browser Task Manager is already open, this will bring it into the foreground. // WebView2 currently blocks the Shift+Esc shortcut for opening the task manager. // An end user can open the browser task manager manually via the Browser task manager // entry of the DevTools window's title bar's context menu. public void OpenTaskManagerWindow() { try { try { _nativeICoreWebView2_6.OpenTaskManagerWindow(); } catch (NotImplementedException) { _nativeICoreWebView2Experimental4.OpenTaskManagerWindow(); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnIsMutedChanged(object args) { isMutedChanged?.Invoke(this, args); } internal void OnIsDocumentPlayingAudioChanged(object args) { isDocumentPlayingAudioChanged?.Invoke(this, args); } internal void OnIsDefaultDownloadDialogOpenChanged(object args) { isDefaultDownloadDialogOpenChanged?.Invoke(this, args); } // // Summary: // Open the default download dialog. // // Remarks: // If the dialog is opened before there are recent downloads, the dialog shows all // past downloads for the current profile. Otherwise, the dialog shows only the // recent downloads with a "See more" button for past downloads. Calling this method // raises the Microsoft.Web.WebView2.Core.CoreWebView2.IsDefaultDownloadDialogOpenChanged // event if the dialog was closed. No effect if the dialog is already open. public void OpenDefaultDownloadDialog() { try { try { _nativeICoreWebView2_9.OpenDefaultDownloadDialog(); } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.OpenDefaultDownloadDialog(); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Close the default download dialog. // // Remarks: // Calling this method raises the Microsoft.Web.WebView2.Core.CoreWebView2.IsDefaultDownloadDialogOpenChanged // event if the dialog was open. No effect if the dialog is already closed. public void CloseDefaultDownloadDialog() { try { try { _nativeICoreWebView2_9.CloseDefaultDownloadDialog(); } catch (NotImplementedException) { _nativeICoreWebView2Experimental11.CloseDefaultDownloadDialog(); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnBasicAuthenticationRequested(CoreWebView2BasicAuthenticationRequestedEventArgs args) { basicAuthenticationRequested?.Invoke(this, args); } internal void OnContextMenuRequested(CoreWebView2ContextMenuRequestedEventArgs args) { contextMenuRequested?.Invoke(this, args); } // // Summary: // Runs an asynchronous DevToolsProtocol method for a specific session of an attached // target. // // Parameters: // sessionId: // The sessionId for an attached target. null or empty string is treated as the // session for the default target for the top page. // // methodName: // The full name of the method in the format {domain}.{method}. // // parametersAsJson: // A JSON formatted string containing the parameters for the corresponding method. // // Returns: // A JSON string that represents the method's return object. // // Remarks: // There could be multiple DevToolsProtocol targets in a WebView. Besides the top // level page, iframes from different origin and web workers are also separate targets. // Attaching to these targets allows interaction with them. When the DevToolsProtocol // is attached to a target, the connection is identified by a sessionId. To use // this API, you must set the flatten parameter to true when calling Target.attachToTarget // or Target.setAutoAttach DevToolsProtocol method. Using Target.setAutoAttach is // recommended as that would allow you to attach to dedicated worker targets, which // are not discoverable via other APIs like Target.getTargets. For more information // about targets and sessions, navigate to [Chrome DevTools Protocol - Target domain]( // https://chromedevtools.github.io/devtools-protocol/tot/Target). For more information // about available methods, navigate to [DevTools Protocol Viewer](https://aka.ms/DevToolsProtocolDocs). // The handler's Invoke method will be called when the method asynchronously completes. // Invoke will be called with the method's return object as a JSON string. public async Task CallDevToolsProtocolMethodForSessionAsync(string sessionId, string methodName, string parametersAsJson) { CoreWebView2CallDevToolsProtocolMethodCompletedHandler handler; try { try { handler = new CoreWebView2CallDevToolsProtocolMethodCompletedHandler(); _nativeICoreWebView2_11.CallDevToolsProtocolMethodForSession(sessionId, methodName, parametersAsJson, handler); } catch (NotImplementedException) { handler = new CoreWebView2CallDevToolsProtocolMethodCompletedHandler(); _nativeICoreWebView2Experimental14.CallDevToolsProtocolMethodForSession(sessionId, methodName, parametersAsJson, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.returnObjectAsJson; } internal void OnStatusBarTextChanged(object args) { statusBarTextChanged?.Invoke(this, args); } internal void OnServerCertificateErrorDetected(CoreWebView2ServerCertificateErrorDetectedEventArgs args) { serverCertificateErrorDetected?.Invoke(this, args); } // // Summary: // Clears all cached decisions to proceed with TLS certificate errors from the Microsoft.Web.WebView2.Core.CoreWebView2.ServerCertificateErrorDetected // event for all WebView2's sharing the same session. public async Task ClearServerCertificateErrorActionsAsync() { CoreWebView2ClearServerCertificateErrorActionsCompletedHandler handler; try { try { handler = new CoreWebView2ClearServerCertificateErrorActionsCompletedHandler(); _nativeICoreWebView2_14.ClearServerCertificateErrorActions(handler); } catch (NotImplementedException) { handler = new CoreWebView2ClearServerCertificateErrorActionsCompletedHandler(); _nativeICoreWebView2Experimental15.ClearServerCertificateErrorActions(handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); } internal void OnFaviconChanged(object args) { faviconChanged?.Invoke(this, args); } // // Summary: // Get the downloaded Favicon image for the current page and copy it to the image // stream. // // Parameters: // format: // The format to retrieve the Favicon in. // // Returns: // An IStream populated with the downloaded Favicon. public async Task GetFaviconAsync(CoreWebView2FaviconImageFormat format) { CoreWebView2GetFaviconCompletedHandler handler; try { try { handler = new CoreWebView2GetFaviconCompletedHandler(); _nativeICoreWebView2_15.GetFavicon((COREWEBVIEW2_FAVICON_IMAGE_FORMAT)format, handler); } catch (NotImplementedException) { handler = new CoreWebView2GetFaviconCompletedHandler(); _nativeICoreWebView2Experimental12.GetFavicon((COREWEBVIEW2_FAVICON_IMAGE_FORMAT)format, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.faviconStream; } // // Summary: // Print the current web page asynchronously to the specified printer with the provided // settings. // // Remarks: // See Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings for description of // settings. Passing null for printSettings results in default print settings used. // The method will return Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus as // Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.PrinterUnavailable if printerName // doesn't match with the name of any installed printers on the user OS. The method // will throw ArgumentException if the caller provides invalid settings for a given // printer. The async Print operation completes when it finishes printing to the // printer. Only one Printing operation can be in progress at a time. If Print is // called while a Microsoft.Web.WebView2.Core.CoreWebView2.PrintAsync(Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // or Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfAsync(System.String,Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // or Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfStreamAsync(Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // job is in progress, System.Threading.Tasks.Task`1 throws exception. This is only // for printing operation on one webview. // Error PrintStatus Notes // No Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.Succeeded Print operation // succeeded. // No Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.PrinterUnavailable If // specified printer is not found or printer status is not available, offline or // error state. // No Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.OtherError Print operation // is failed. // ArgumentException Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.OtherError // If the caller provides invalid settings for the specified printer. // Exception Microsoft.Web.WebView2.Core.CoreWebView2PrintStatus.OtherError Print // operation is failed as printing job already in progress. public async Task PrintAsync(CoreWebView2PrintSettings printSettings) { CoreWebView2PrintCompletedHandler handler; try { try { handler = new CoreWebView2PrintCompletedHandler(); _nativeICoreWebView2_16.Print(printSettings._nativeICoreWebView2PrintSettings, handler); } catch (NotImplementedException) { handler = new CoreWebView2PrintCompletedHandler(); _nativeICoreWebView2Experimental17.Print(printSettings._nativeICoreWebView2PrintSettings, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.printStatus; } // // Summary: // Opens the print dialog to print the current web page. // // Remarks: // See Microsoft.Web.WebView2.Core.CoreWebView2PrintDialogKind for descriptions // of print dialog kinds. Invoking browser or system print dialog doesn't open new // print dialog if it is already open. public void ShowPrintUI(CoreWebView2PrintDialogKind printDialogKind) { try { try { _nativeICoreWebView2_16.ShowPrintUI((COREWEBVIEW2_PRINT_DIALOG_KIND)printDialogKind); } catch (NotImplementedException) { _nativeICoreWebView2Experimental17.ShowPrintUI((COREWEBVIEW2_PRINT_DIALOG_KIND)printDialogKind); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Provides the Pdf data of current web page asynchronously for the provided settings. // // Remarks: // Stream will be rewound to the start of the pdf data. See Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings // for description of settings. Passing null for printSettings results in default // print settings used. The async PrintToPdfStream operation completes when it finishes // writing to the stream. Only one Printing operation can be in progress at a time. // If Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfStreamAsync(Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // is called while a Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfStreamAsync(Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // or Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfAsync(System.String,Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // or Microsoft.Web.WebView2.Core.CoreWebView2.PrintAsync(Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // job is in progress, the System.Threading.Tasks.Task`1 throws an exception. This // is only for printing operation on one webview. public async Task PrintToPdfStreamAsync(CoreWebView2PrintSettings printSettings) { CoreWebView2PrintToPdfStreamCompletedHandler handler; try { try { handler = new CoreWebView2PrintToPdfStreamCompletedHandler(); _nativeICoreWebView2_16.PrintToPdfStream(printSettings._nativeICoreWebView2PrintSettings, handler); } catch (NotImplementedException) { handler = new CoreWebView2PrintToPdfStreamCompletedHandler(); _nativeICoreWebView2Experimental17.PrintToPdfStream(printSettings._nativeICoreWebView2PrintSettings, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.pdfStream; } // // Summary: // Share a shared buffer object with script of the main frame in the WebView. // // Parameters: // sharedBuffer: // The Microsoft.Web.WebView2.Core.CoreWebView2SharedBuffer object to be shared // with script. // // access: // The desired Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess given // to script. // // additionalDataAsJson: // Additional data to be send to script. If it is not null or empty string, and // it is not a valid JSON string, System.ArgumentException will be thrown. // // Remarks: // The script will receive a sharedbufferreceived event from chrome.webview. The // event arg for that event will have the following methods and properties. // Property Description // getBuffer() A method that returns an ArrayBuffer object with the backing content // from the shared buffer. // additionalData An object as the result of parsing additionalDataAsJson as JSON // string. This property will be undefined if additionalDataAsJson is nullptr or // empty string. // source With a value set as chrome.webview object. // If access is Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess.ReadOnly, // the script will only have read access to the buffer. If the script tries to modify // the content in a read only buffer, it will cause an access violation in WebView // renderer process and crash the renderer process. If the shared buffer is already // closed, the API throws System.Runtime.InteropServices.COMException with error // code of RO_E_CLOSED. The script code should call chrome.webview.releaseBuffer // with the shared buffer as the parameter to release underlying resources as soon // as it does not need access to the shared buffer any more. The application can // post the same shared buffer object to multiple web pages or iframes, or post // to the same web page or iframe multiple times. Each PostSharedBufferToScript // will create a separate ArrayBuffer object with its own view of the memory and // is separately released. The underlying shared memory will be released when all // the views are released. Sharing a buffer to script has security risk. You should // only share buffer with trusted site. If a buffer is shared to a untrusted site, // possible sensitive information could be leaked. If a buffer is shared as modifiable // by the script and the script modifies it in an unexpected way, it could result // in corrupted data that might even crash the application. The example code shows // how to send data to script for one time read only consumption. public void PostSharedBufferToScript(CoreWebView2SharedBuffer sharedBuffer, CoreWebView2SharedBufferAccess access, string additionalDataAsJson) { try { try { _nativeICoreWebView2_17.PostSharedBufferToScript(sharedBuffer._nativeICoreWebView2SharedBuffer, (COREWEBVIEW2_SHARED_BUFFER_ACCESS)access, additionalDataAsJson); } catch (NotImplementedException) { _nativeICoreWebView2Experimental18.PostSharedBufferToScript(sharedBuffer._nativeICoreWebView2SharedBuffer, (COREWEBVIEW2_SHARED_BUFFER_ACCESS)access, additionalDataAsJson); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnLaunchingExternalUriScheme(CoreWebView2LaunchingExternalUriSchemeEventArgs args) { launchingExternalUriScheme?.Invoke(this, args); } // // Summary: // Runs JavaScript code from the javaScript parameter in the current top-level document // rendered in the WebView, The result of the execution is returned asynchronously // in the Microsoft.Web.WebView2.Core.CoreWebView2ExecuteScriptResult object which // has methods and properties to obtain the successful result of script execution // as well as any unhandled JavaScript exceptions. public async Task ExecuteScriptWithResultAsync(string javaScript) { CoreWebView2ExecuteScriptWithResultCompletedHandler handler; try { handler = new CoreWebView2ExecuteScriptWithResultCompletedHandler(); _nativeICoreWebView2Experimental19.ExecuteScriptWithResult(javaScript, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.result; } internal void AddHostObjectHelper(CoreWebView2PrivateHostObjectHelper helper) { try { _nativeICoreWebView2PrivatePartial.AddHostObjectHelper(helper._nativeICoreWebView2PrivateHostObjectHelper); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2AcceleratorKeyPressedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2Controller.AcceleratorKeyPressed // event. public class CoreWebView2AcceleratorKeyPressedEventArgs : EventArgs { internal ICoreWebView2AcceleratorKeyPressedEventArgs _nativeICoreWebView2AcceleratorKeyPressedEventArgsValue; internal object _rawNative; internal ICoreWebView2AcceleratorKeyPressedEventArgs _nativeICoreWebView2AcceleratorKeyPressedEventArgs { get { if (_nativeICoreWebView2AcceleratorKeyPressedEventArgsValue == null) { try { _nativeICoreWebView2AcceleratorKeyPressedEventArgsValue = (ICoreWebView2AcceleratorKeyPressedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2AcceleratorKeyPressedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2AcceleratorKeyPressedEventArgsValue; } set { _nativeICoreWebView2AcceleratorKeyPressedEventArgsValue = value; } } // // Summary: // Gets the key event kind that caused the event to run. public CoreWebView2KeyEventKind KeyEventKind { get { try { return (CoreWebView2KeyEventKind)_nativeICoreWebView2AcceleratorKeyPressedEventArgs.KeyEventKind; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the Win32 virtual key code of the key that was pressed or released. // // Remarks: // It is one of the Win32 virtual key constants such as VK_RETURN or an (uppercase) // ASCII value such as 'A'. Verify whether Ctrl or Alt are pressed by running GetKeyState(VK_CONTROL) // or GetKeyState(VK_MENU). public uint VirtualKey { get { try { return _nativeICoreWebView2AcceleratorKeyPressedEventArgs.VirtualKey; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the LPARAM value that accompanied the window message. // // Remarks: // See the documentation for the WM_KEYDOWN and WM_KEYUP messages. public int KeyEventLParam { get { try { return _nativeICoreWebView2AcceleratorKeyPressedEventArgs.KeyEventLParam; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets a Microsoft.Web.WebView2.Core.CoreWebView2PhysicalKeyStatus representing // the information passed in the LPARAM of the window message. public CoreWebView2PhysicalKeyStatus PhysicalKeyStatus { get { try { return new CoreWebView2PhysicalKeyStatus(_nativeICoreWebView2AcceleratorKeyPressedEventArgs.PhysicalKeyStatus); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether the Microsoft.Web.WebView2.Core.CoreWebView2Controller.AcceleratorKeyPressed // event is handled by host. // // Remarks: // If set to true then this prevents the WebView from performing the default action // for this accelerator key. Otherwise the WebView will perform the default action // for the accelerator key. public bool Handled { get { try { return _nativeICoreWebView2AcceleratorKeyPressedEventArgs.Handled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2AcceleratorKeyPressedEventArgs.Handled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2AcceleratorKeyPressedEventArgs(object rawCoreWebView2AcceleratorKeyPressedEventArgs) { _rawNative = rawCoreWebView2AcceleratorKeyPressedEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2AcceleratorKeyPressedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2AcceleratorKeyPressedEventHandler : ICoreWebView2AcceleratorKeyPressedEventHandler { public delegate void CallbackType(CoreWebView2AcceleratorKeyPressedEventArgs args); private CallbackType _callback; public CoreWebView2AcceleratorKeyPressedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Controller source, ICoreWebView2AcceleratorKeyPressedEventArgs args) { _callback(new CoreWebView2AcceleratorKeyPressedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler : ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler, INotifyCompletion { private Action continuation; public string id { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, string id) { this.id = id; this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public string GetResult() { return id; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BasicAuthenticationRequestedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the BasicAuthenticationRequested event. Will contain the request // that led to the HTTP authorization challenge, the challenge and allows the host // to provide authentication response or cancel the request. public class CoreWebView2BasicAuthenticationRequestedEventArgs : EventArgs { internal ICoreWebView2BasicAuthenticationRequestedEventArgs _nativeICoreWebView2BasicAuthenticationRequestedEventArgsValue; internal object _rawNative; internal ICoreWebView2BasicAuthenticationRequestedEventArgs _nativeICoreWebView2BasicAuthenticationRequestedEventArgs { get { if (_nativeICoreWebView2BasicAuthenticationRequestedEventArgsValue == null) { try { _nativeICoreWebView2BasicAuthenticationRequestedEventArgsValue = (ICoreWebView2BasicAuthenticationRequestedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2BasicAuthenticationRequestedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2BasicAuthenticationRequestedEventArgsValue; } set { _nativeICoreWebView2BasicAuthenticationRequestedEventArgsValue = value; } } // // Summary: // The URI that led to the authentication challenge. For proxy authentication requests, // this will be the URI of the proxy server. public string Uri { get { try { return _nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Uri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The authentication challenge string. public string Challenge { get { try { return _nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Challenge; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Response to the authentication request with credentials. // // Remarks: // This object will be populated by the app if the host would like to provide authentication // credentials. public CoreWebView2BasicAuthenticationResponse Response { get { try { return (_nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Response == null) ? null : new CoreWebView2BasicAuthenticationResponse(_nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Response); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether to cancel the authentication request. // // Remarks: // false by default. If set to true, Response will be ignored. public bool Cancel { get { try { return _nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Cancel != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2BasicAuthenticationRequestedEventArgs.Cancel = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2BasicAuthenticationRequestedEventArgs(object rawCoreWebView2BasicAuthenticationRequestedEventArgs) { _rawNative = rawCoreWebView2BasicAuthenticationRequestedEventArgs; } // // Summary: // Gets a Microsoft.Web.WebView2.Core.CoreWebView2Deferral object. // // Remarks: // Use this Deferral to defer the decision to show the Basic Authentication dialog. public CoreWebView2Deferral GetDeferral() { try { return new CoreWebView2Deferral(_nativeICoreWebView2BasicAuthenticationRequestedEventArgs.GetDeferral()); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BasicAuthenticationRequestedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2BasicAuthenticationRequestedEventHandler : ICoreWebView2BasicAuthenticationRequestedEventHandler { public delegate void CallbackType(CoreWebView2BasicAuthenticationRequestedEventArgs args); private CallbackType _callback; public CoreWebView2BasicAuthenticationRequestedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2BasicAuthenticationRequestedEventArgs args) { _callback(new CoreWebView2BasicAuthenticationRequestedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BasicAuthenticationResponse.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents a Basic HTTP authentication response that contains a user name and // a password as according to RFC7617 (https://tools.ietf.org/html/rfc7617) public class CoreWebView2BasicAuthenticationResponse { internal ICoreWebView2BasicAuthenticationResponse _nativeICoreWebView2BasicAuthenticationResponseValue; internal object _rawNative; internal ICoreWebView2BasicAuthenticationResponse _nativeICoreWebView2BasicAuthenticationResponse { get { if (_nativeICoreWebView2BasicAuthenticationResponseValue == null) { try { _nativeICoreWebView2BasicAuthenticationResponseValue = (ICoreWebView2BasicAuthenticationResponse)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2BasicAuthenticationResponse.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2BasicAuthenticationResponseValue; } set { _nativeICoreWebView2BasicAuthenticationResponseValue = value; } } // // Summary: // User name provided for authentication. public string UserName { get { try { return _nativeICoreWebView2BasicAuthenticationResponse.UserName; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2BasicAuthenticationResponse.UserName = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Password provided for authentication. public string Password { get { try { return _nativeICoreWebView2BasicAuthenticationResponse.Password; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2BasicAuthenticationResponse.Password = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2BasicAuthenticationResponse(object rawCoreWebView2BasicAuthenticationResponse) { _rawNative = rawCoreWebView2BasicAuthenticationResponse; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BoundsMode.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Mode for how the Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds property // is interpreted in relation to the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property. public enum CoreWebView2BoundsMode { // // Summary: // Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds property represents // raw pixels. Physical size of WebView is not impacted by Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale. UseRawPixels, // // Summary: // Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds property represents // logical pixels and the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property is used to get the physical size of the WebView. UseRasterizationScale } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BrowserProcessExitKind.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Specifies the browser process exit kind used in Microsoft.Web.WebView2.Core.CoreWebView2BrowserProcessExitedEventArgs. public enum CoreWebView2BrowserProcessExitKind { // // Summary: // Indicates that the browser process ended normally. Normal, // // Summary: // Indicates that the browser process ended unexpectedly. A Microsoft.Web.WebView2.Core.CoreWebView2.ProcessFailed // event will also be raised to listening WebViews from the Microsoft.Web.WebView2.Core.CoreWebView2Environment // associated to the failed process. Failed } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BrowserProcessExitedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2Environment.BrowserProcessExited // event. public class CoreWebView2BrowserProcessExitedEventArgs : EventArgs { internal ICoreWebView2BrowserProcessExitedEventArgs _nativeICoreWebView2BrowserProcessExitedEventArgsValue; internal object _rawNative; internal ICoreWebView2BrowserProcessExitedEventArgs _nativeICoreWebView2BrowserProcessExitedEventArgs { get { if (_nativeICoreWebView2BrowserProcessExitedEventArgsValue == null) { try { _nativeICoreWebView2BrowserProcessExitedEventArgsValue = (ICoreWebView2BrowserProcessExitedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2BrowserProcessExitedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2BrowserProcessExitedEventArgsValue; } set { _nativeICoreWebView2BrowserProcessExitedEventArgsValue = value; } } // // Summary: // The kind of browser process exit that has occurred. public CoreWebView2BrowserProcessExitKind BrowserProcessExitKind { get { try { return (CoreWebView2BrowserProcessExitKind)_nativeICoreWebView2BrowserProcessExitedEventArgs.BrowserProcessExitKind; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The process ID of the browser process that has exited. public uint BrowserProcessId { get { try { return _nativeICoreWebView2BrowserProcessExitedEventArgs.BrowserProcessId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2BrowserProcessExitedEventArgs(object rawCoreWebView2BrowserProcessExitedEventArgs) { _rawNative = rawCoreWebView2BrowserProcessExitedEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BrowserProcessExitedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2BrowserProcessExitedEventHandler : ICoreWebView2BrowserProcessExitedEventHandler { public delegate void CallbackType(CoreWebView2BrowserProcessExitedEventArgs args); private CallbackType _callback; public CoreWebView2BrowserProcessExitedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Environment source, ICoreWebView2BrowserProcessExitedEventArgs args) { _callback(new CoreWebView2BrowserProcessExitedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BrowsingDataKinds.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; namespace Microsoft.Web.WebView2.Core { // // Summary: // Indicates the kind of browsing data to clear. Or operations can be applied to // create a mask representing multiple CoreWebView2BrowsingDataKinds. The resulting // mask may be passed to Microsoft.Web.WebView2.Core.CoreWebView2Profile.ClearBrowsingDataAsync(Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds) // or Microsoft.Web.WebView2.Core.CoreWebView2Profile.ClearBrowsingDataAsync(Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds,System.DateTime,System.DateTime) // to clear the corresponding data. [Flags] public enum CoreWebView2BrowsingDataKinds { // // Summary: // Specifies file systems data. FileSystems = 0x1, // // Summary: // Specifies data stored by the IndexedDB DOM feature. IndexedDb = 0x2, // // Summary: // Specifies data stored by the localStorage DOM API. LocalStorage = 0x4, // // Summary: // Specifies data stored by the Web SQL database DOM API. WebSql = 0x8, // // Summary: // Specifies data stored by the CacheStorage DOM API. CacheStorage = 0x10, // // Summary: // Specifies DOM storage data, now and future. This browsing data kind is inclusive // of CoreWebView2BrowsingDataKinds.FileSystems, CoreWebView2BrowsingDataKinds.IndexedDb, // CoreWebView2BrowsingDataKinds.WebSql, CoreWebView2BrowsingDataKinds.CacheStorage. // New DOM storage data types may be added to this data kind in the future. AllDomStorage = 0x20, // // Summary: // Specifies HTTP cookies data. Cookies = 0x40, // // Summary: // Specifies all site data, now and future. This browsing data kind is inclusive // of CoreWebView2BrowsingDataKinds.AllDomStorage and CoreWebView2BrowsingDataKinds.Cookies. // New site data types may be added to this data kind in the future. AllSite = 0x80, // // Summary: // Specifies disk cache. DiskCache = 0x100, // // Summary: // Specifies download history data. DownloadHistory = 0x200, // // Summary: // Specifies general autofill form data. This excludes password information and // includes information like: names, street and email addresses, phone numbers, // and arbitrary input. This also includes payment data. GeneralAutofill = 0x400, // // Summary: // Specifies password autosave data. PasswordAutosave = 0x800, // // Summary: // Specifies browsing history data. BrowsingHistory = 0x1000, // // Summary: // Specifies settings data. Settings = 0x2000, // // Summary: // Specifies profile data that should be wiped to make it look like a new profile. // This does not delete account-scoped data like passwords but will remove access // to account-scoped data by signing the user out. Specifies all profile data, now // and future. New profile data types may be added to this data kind in the future. // This browsing data kind is inclusive of Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.AllSite, // Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.DiskCache, Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.DownloadHistory, // Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.GeneralAutofill, Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.PasswordAutosave, // Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.BrowsingHistory, Microsoft.Web.WebView2.Core.CoreWebView2BrowsingDataKinds.Settings. AllProfile = 0x4000 } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2BytesReceivedChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2BytesReceivedChangedEventHandler : ICoreWebView2BytesReceivedChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2BytesReceivedChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2DownloadOperation source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CallDevToolsProtocolMethodCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CallDevToolsProtocolMethodCompletedHandler : ICoreWebView2CallDevToolsProtocolMethodCompletedHandler, INotifyCompletion { private Action continuation; public string returnObjectAsJson { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2CallDevToolsProtocolMethodCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, string returnObjectAsJson) { this.returnObjectAsJson = returnObjectAsJson; this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2CallDevToolsProtocolMethodCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public string GetResult() { return returnObjectAsJson; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CapturePreviewCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CapturePreviewCompletedHandler : ICoreWebView2CapturePreviewCompletedHandler, INotifyCompletion { private Action continuation; public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2CapturePreviewCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode) { this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2CapturePreviewCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public void GetResult() { } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CapturePreviewImageFormat.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Specifies the image format for the Microsoft.Web.WebView2.Core.CoreWebView2.CapturePreviewAsync(Microsoft.Web.WebView2.Core.CoreWebView2CapturePreviewImageFormat,System.IO.Stream) // method. public enum CoreWebView2CapturePreviewImageFormat { // // Summary: // Indicates that the PNG image format is used. Png, // // Summary: // Indicates that the JPEG image format is used. Jpeg } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Certificate.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents a certificate. Gives access to a certificate's metadata. public class CoreWebView2Certificate { private static DateTime _unixEpoch = DateTime.SpecifyKind(new DateTime(1970, 1, 1), DateTimeKind.Utc); internal ICoreWebView2Certificate _nativeICoreWebView2CertificateValue; internal object _rawNative; // // Summary: // The valid date and time for the certificate since the UNIX epoc. public DateTime ValidFrom => SecondsSinceUnixEpochToDateTime(_nativeICoreWebView2Certificate.ValidFrom); // // Summary: // The valid date and time for the certificate since the UNIX epoc. public DateTime ValidTo => SecondsSinceUnixEpochToDateTime(_nativeICoreWebView2Certificate.ValidTo); internal ICoreWebView2Certificate _nativeICoreWebView2Certificate { get { if (_nativeICoreWebView2CertificateValue == null) { try { _nativeICoreWebView2CertificateValue = (ICoreWebView2Certificate)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Certificate.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CertificateValue; } set { _nativeICoreWebView2CertificateValue = value; } } // // Summary: // Subject of the certificate. public string Subject { get { try { return _nativeICoreWebView2Certificate.Subject; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Name of the certificate authority that issued the certificate. public string Issuer { get { try { return _nativeICoreWebView2Certificate.Issuer; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Base64 encoding of DER encoded serial number of the certificate. Read more about // DER at [RFC 7468 DER](https://tools.ietf.org/html/rfc7468#appendix-B). public string DerEncodedSerialNumber { get { try { return _nativeICoreWebView2Certificate.DerEncodedSerialNumber; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Display name for a certificate. public string DisplayName { get { try { return _nativeICoreWebView2Certificate.DisplayName; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns list of PEM encoded certificate issuer chain. In this list first element // is the current certificate followed by intermediate1, intermediate2...intermediateN-1. // Root certificate is the last element in the list. public IReadOnlyList PemEncodedIssuerCertificateChain { get { try { return COMDotNetTypeConverter.CoreWebView2StringCollectionCOMToNet(_nativeICoreWebView2Certificate.PemEncodedIssuerCertificateChain); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Converts this to a X509Certificate2. // // Returns: // An object created using PEM encoded data from this Microsoft.Web.WebView2.Core.CoreWebView2Certificate // object. public X509Certificate2 ToX509Certificate2() { X509Certificate2 x509Certificate = new X509Certificate2(Convert.FromBase64String(ToPemEncoding().Replace("-----BEGIN CERTIFICATE-----", string.Empty).Replace("-----END CERTIFICATE-----", string.Empty))); if (x509Certificate != null) { x509Certificate.FriendlyName = DisplayName; } return x509Certificate; } private DateTime SecondsSinceUnixEpochToDateTime(double seconds) { if (seconds < 0.0) { return DateTime.MinValue; } double num = seconds * 10000000.0 + (double)_unixEpoch.Ticks; DateTime maxValue = DateTime.MaxValue; if (num > (double)maxValue.Ticks) { return DateTime.MaxValue; } return _unixEpoch.AddSeconds(seconds); } internal CoreWebView2Certificate(object rawCoreWebView2Certificate) { _rawNative = rawCoreWebView2Certificate; } // // Summary: // PEM encoded data for the certificate. Returns Base64 encoding of DER encoded // certificate. Read more about PEM at [RFC 1421 Privacy Enhanced Mail](https://tools.ietf.org/html/rfc1421). public string ToPemEncoding() { try { return _nativeICoreWebView2Certificate.ToPemEncoding(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClearBrowsingDataCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ClearBrowsingDataCompletedHandler : ICoreWebView2ClearBrowsingDataCompletedHandler, INotifyCompletion { private Action continuation; public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2ClearBrowsingDataCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode) { this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2ClearBrowsingDataCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public void GetResult() { } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClearCustomDataPartitionCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ClearCustomDataPartitionCompletedHandler : ICoreWebView2ExperimentalClearCustomDataPartitionCompletedHandler, INotifyCompletion { private Action continuation; public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2ClearCustomDataPartitionCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode) { this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2ClearCustomDataPartitionCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public void GetResult() { } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClearServerCertificateErrorActionsCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ClearServerCertificateErrorActionsCompletedHandler : ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler, INotifyCompletion { private Action continuation; public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2ClearServerCertificateErrorActionsCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode) { this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2ClearServerCertificateErrorActionsCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public void GetResult() { } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClientCertificate.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents a client certificate. Gives access to a certificate's metadata. public class CoreWebView2ClientCertificate { private static DateTime _unixEpoch = DateTime.SpecifyKind(new DateTime(1970, 1, 1), DateTimeKind.Utc); internal ICoreWebView2ClientCertificate _nativeICoreWebView2ClientCertificateValue; internal object _rawNative; // // Summary: // The valid date and time for the certificate since the UNIX epoc. public DateTime ValidFrom => SecondsSinceUnixEpochToDateTime(_nativeICoreWebView2ClientCertificate.ValidFrom); // // Summary: // The valid date and time for the certificate since the UNIX epoc. public DateTime ValidTo => SecondsSinceUnixEpochToDateTime(_nativeICoreWebView2ClientCertificate.ValidTo); internal ICoreWebView2ClientCertificate _nativeICoreWebView2ClientCertificate { get { if (_nativeICoreWebView2ClientCertificateValue == null) { try { _nativeICoreWebView2ClientCertificateValue = (ICoreWebView2ClientCertificate)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ClientCertificate.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ClientCertificateValue; } set { _nativeICoreWebView2ClientCertificateValue = value; } } // // Summary: // Subject of the certificate. public string Subject { get { try { return _nativeICoreWebView2ClientCertificate.Subject; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Name of the certificate authority that issued the certificate. public string Issuer { get { try { return _nativeICoreWebView2ClientCertificate.Issuer; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Base64 encoding of DER encoded serial number of the certificate. Read more about // DER at [RFC 7468 DER](https://tools.ietf.org/html/rfc7468#appendix-B). public string DerEncodedSerialNumber { get { try { return _nativeICoreWebView2ClientCertificate.DerEncodedSerialNumber; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Display name for a certificate. public string DisplayName { get { try { return _nativeICoreWebView2ClientCertificate.DisplayName; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns list of PEM encoded client certificate issuer chain. In this list first // element is the current certificate followed by intermediate1, intermediate2...intermediateN-1. // Root certificate is the last element in the list. public IReadOnlyList PemEncodedIssuerCertificateChain { get { try { return COMDotNetTypeConverter.CoreWebView2StringCollectionCOMToNet(_nativeICoreWebView2ClientCertificate.PemEncodedIssuerCertificateChain); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Kind of a certificate. See Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateKind // for descriptions. public CoreWebView2ClientCertificateKind Kind { get { try { return (CoreWebView2ClientCertificateKind)_nativeICoreWebView2ClientCertificate.Kind; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Converts this to a X509Certificate2. // // Returns: // An object created using PEM encoded data from this Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificate // object. public X509Certificate2 ToX509Certificate2() { X509Certificate2 x509Certificate = new X509Certificate2(Convert.FromBase64String(ToPemEncoding().Replace("-----BEGIN CERTIFICATE-----", string.Empty).Replace("-----END CERTIFICATE-----", string.Empty))); if (x509Certificate != null) { x509Certificate.FriendlyName = DisplayName; } return x509Certificate; } private DateTime SecondsSinceUnixEpochToDateTime(double seconds) { if (seconds < 0.0) { return DateTime.MinValue; } double num = seconds * 10000000.0 + (double)_unixEpoch.Ticks; DateTime maxValue = DateTime.MaxValue; if (num > (double)maxValue.Ticks) { return DateTime.MaxValue; } return _unixEpoch.AddSeconds(seconds); } internal CoreWebView2ClientCertificate(object rawCoreWebView2ClientCertificate) { _rawNative = rawCoreWebView2ClientCertificate; } // // Summary: // PEM encoded data for the certificate. Returns Base64 encoding of DER encoded // certificate. Read more about PEM at [RFC 1421 Privacy Enhanced Mail](https://tools.ietf.org/html/rfc1421). public string ToPemEncoding() { try { return _nativeICoreWebView2ClientCertificate.ToPemEncoding(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClientCertificateKind.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // The kind of the Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificate. public enum CoreWebView2ClientCertificateKind { // // Summary: // Specifies smart card certificate. SmartCard, // // Summary: // Specifies PIN certificate. Pin, // // Summary: // Specifies other certificate. Other } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClientCertificateRequestedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.ClientCertificateRequested // event. public class CoreWebView2ClientCertificateRequestedEventArgs : EventArgs { internal ICoreWebView2ClientCertificateRequestedEventArgs _nativeICoreWebView2ClientCertificateRequestedEventArgsValue; internal object _rawNative; internal ICoreWebView2ClientCertificateRequestedEventArgs _nativeICoreWebView2ClientCertificateRequestedEventArgs { get { if (_nativeICoreWebView2ClientCertificateRequestedEventArgsValue == null) { try { _nativeICoreWebView2ClientCertificateRequestedEventArgsValue = (ICoreWebView2ClientCertificateRequestedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ClientCertificateRequestedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ClientCertificateRequestedEventArgsValue; } set { _nativeICoreWebView2ClientCertificateRequestedEventArgsValue = value; } } // // Summary: // Returns host name of the server that requested client certificate authentication. // // Remarks: // Normalization rules applied to the hostname are: // • Convert to lowercase characters for ascii characters. // • Punycode is used for representing non ascii characters. // • Strip square brackets for IPV6 address. public string Host { get { try { return _nativeICoreWebView2ClientCertificateRequestedEventArgs.Host; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns port of the server that requested client certificate authentication. public int Port { get { try { return _nativeICoreWebView2ClientCertificateRequestedEventArgs.Port; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the server that issued this request is an http proxy. Returns // false if the server is the origin server. public bool IsProxy { get { try { return _nativeICoreWebView2ClientCertificateRequestedEventArgs.IsProxy != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The list contains Base64 encoding of DER encoded distinguished names of certificate // authorities allowed by the server. public IReadOnlyList AllowedCertificateAuthorities { get { try { return COMDotNetTypeConverter.CoreWebView2StringCollectionCOMToNet(_nativeICoreWebView2ClientCertificateRequestedEventArgs.AllowedCertificateAuthorities); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns the list of Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificate // when client certificate authentication is requested. The list contains mutually // trusted CA certificate. public IReadOnlyList MutuallyTrustedCertificates { get { try { return COMDotNetTypeConverter.CoreWebView2ClientCertificateCollectionCOMToNet(_nativeICoreWebView2ClientCertificateRequestedEventArgs.MutuallyTrustedCertificates); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Selected certificate to respond to the server. public CoreWebView2ClientCertificate SelectedCertificate { get { try { return (_nativeICoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate == null) ? null : new CoreWebView2ClientCertificate(_nativeICoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate = value._nativeICoreWebView2ClientCertificate; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether to cancel the certificate selection. // // Remarks: // If canceled, the request is aborted regardless of the Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.Handled // property. By default the value is false. public bool Cancel { get { try { return _nativeICoreWebView2ClientCertificateRequestedEventArgs.Cancel != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ClientCertificateRequestedEventArgs.Cancel = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether the event has been handled by host. // // Remarks: // Set to true to respond to the server with or without a certificate. If this flag // is true with a Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate // it responds to the server with the selected certificate otherwise respond to // the server without a certificate. By default the value of Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.Handled // and Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.Cancel // are false and display default client certificate selection dialog prompt to allow // the user to choose a certificate. The Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate // is ignored unless Microsoft.Web.WebView2.Core.CoreWebView2ClientCertificateRequestedEventArgs.Handled // is set to true. public bool Handled { get { try { return _nativeICoreWebView2ClientCertificateRequestedEventArgs.Handled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ClientCertificateRequestedEventArgs.Handled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ClientCertificateRequestedEventArgs(object rawCoreWebView2ClientCertificateRequestedEventArgs) { _rawNative = rawCoreWebView2ClientCertificateRequestedEventArgs; } // // Summary: // Gets a Microsoft.Web.WebView2.Core.CoreWebView2Deferral object. // // Remarks: // Use this to Microsoft.Web.WebView2.Core.CoreWebView2Deferral.Complete the event // at a later time. public CoreWebView2Deferral GetDeferral() { try { return new CoreWebView2Deferral(_nativeICoreWebView2ClientCertificateRequestedEventArgs.GetDeferral()); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ClientCertificateRequestedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ClientCertificateRequestedEventHandler : ICoreWebView2ClientCertificateRequestedEventHandler { public delegate void CallbackType(CoreWebView2ClientCertificateRequestedEventArgs args); private CallbackType _callback; public CoreWebView2ClientCertificateRequestedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2ClientCertificateRequestedEventArgs args) { _callback(new CoreWebView2ClientCertificateRequestedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Color.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2. // // Remarks: // Each component takes a value from 0 to 255, with 0 being no intensity and 255 // being the highest intensity. public struct CoreWebView2Color { // // Summary: // Specifies the intensity of the Alpha ie. opacity value. 0 is transparent, 255 // is opaque. public byte A; // // Summary: // Specifies the intensity of the Red color. public byte R; // // Summary: // Specifies the intensity of the Green color. public byte G; // // Summary: // Specifies the intensity of the Blue color. public byte B; internal CoreWebView2Color(COREWEBVIEW2_COLOR rawStruct) { A = rawStruct.A; R = rawStruct.R; G = rawStruct.G; B = rawStruct.B; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CompositionController.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Drawing; using System.Numerics; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // This class is an extension of the Microsoft.Web.WebView2.Core.CoreWebView2Controller // class to support visual hosting. public class CoreWebView2CompositionController { internal ICoreWebView2CompositionController _nativeICoreWebView2CompositionControllerValue; internal ICoreWebView2CompositionController2 _nativeICoreWebView2CompositionController2Value; internal ICoreWebView2CompositionController3 _nativeICoreWebView2CompositionController3Value; internal ICoreWebView2ExperimentalCompositionController4 _nativeICoreWebView2ExperimentalCompositionController4Value; internal ICoreWebView2ExperimentalCompositionController3 _nativeICoreWebView2ExperimentalCompositionController3Value; internal object _rawNative; private EventRegistrationToken _cursorChangedToken; private EventHandler cursorChanged; internal ICoreWebView2CompositionController _nativeICoreWebView2CompositionController { get { if (_nativeICoreWebView2CompositionControllerValue == null) { try { _nativeICoreWebView2CompositionControllerValue = (ICoreWebView2CompositionController)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2CompositionController.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CompositionControllerValue; } set { _nativeICoreWebView2CompositionControllerValue = value; } } internal ICoreWebView2CompositionController2 _nativeICoreWebView2CompositionController2 { get { if (_nativeICoreWebView2CompositionController2Value == null) { try { _nativeICoreWebView2CompositionController2Value = (ICoreWebView2CompositionController2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2CompositionController2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CompositionController2Value; } set { _nativeICoreWebView2CompositionController2Value = value; } } internal ICoreWebView2CompositionController3 _nativeICoreWebView2CompositionController3 { get { if (_nativeICoreWebView2CompositionController3Value == null) { try { _nativeICoreWebView2CompositionController3Value = (ICoreWebView2CompositionController3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2CompositionController3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CompositionController3Value; } set { _nativeICoreWebView2CompositionController3Value = value; } } internal ICoreWebView2ExperimentalCompositionController4 _nativeICoreWebView2ExperimentalCompositionController4 { get { if (_nativeICoreWebView2ExperimentalCompositionController4Value == null) { try { _nativeICoreWebView2ExperimentalCompositionController4Value = (ICoreWebView2ExperimentalCompositionController4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalCompositionController4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalCompositionController4Value; } set { _nativeICoreWebView2ExperimentalCompositionController4Value = value; } } internal ICoreWebView2ExperimentalCompositionController3 _nativeICoreWebView2ExperimentalCompositionController3 { get { if (_nativeICoreWebView2ExperimentalCompositionController3Value == null) { try { _nativeICoreWebView2ExperimentalCompositionController3Value = (ICoreWebView2ExperimentalCompositionController3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalCompositionController3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalCompositionController3Value; } set { _nativeICoreWebView2ExperimentalCompositionController3Value = value; } } // // Summary: // Gets or sets the root visual in the hosting app's visual tree. // // Remarks: // This visual is where the WebView will connect its visual tree. The app uses this // visual to position the WebView within the app. The app still needs to use the // Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds property to size the // WebView. The RootVisualTarget property can be an IDCompositionVisual or a Windows::UI::Composition::ContainerVisual. // WebView will connect its visual tree to the provided visual before returning // from the property setter. The app needs to commit on its device setting the RootVisualTarget // property. The RootVisualTarget property supports being set to null to disconnect // the WebView from the app's visual tree. public object RootVisualTarget { get { try { return _nativeICoreWebView2CompositionController.RootVisualTarget; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2CompositionController.RootVisualTarget = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the current cursor that WebView thinks it should be. // // Remarks: // The cursor should be set in WM_SETCURSOR through Mouse.SetCursor or set on the // corresponding parent/ancestor HWND of the WebView through ::SetClassLongPtr. // The HCURSOR can be freed so CopyCursor/DestroyCursor is recommended to keep your // own copy if you are doing more than immediately setting the cursor. public IntPtr Cursor { get { try { return _nativeICoreWebView2CompositionController.Cursor; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the current system cursor ID reported by the underlying rendering engine // for WebView. public uint SystemCursorId { get { try { return _nativeICoreWebView2CompositionController.SystemCursorId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The event is raised when WebView thinks the cursor should be changed. // // Remarks: // For example, when the mouse cursor is currently the default cursor but is then // moved over text, it may try to change to the IBeam cursor. It is expected for // the developer to send Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.Leave // messages (in addition to Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.Move // messages) through Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.SendMouseInput(Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind,Microsoft.Web.WebView2.Core.CoreWebView2MouseEventVirtualKeys,System.UInt32,System.Drawing.Point). // This is to ensure that the mouse is actually within the WebView that sends out // CursorChanged events. public event EventHandler CursorChanged { add { if (cursorChanged == null) { try { _nativeICoreWebView2CompositionController.add_CursorChanged(new CoreWebView2CursorChangedEventHandler(OnCursorChanged), out _cursorChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } cursorChanged = (EventHandler)Delegate.Combine(cursorChanged, value); } remove { cursorChanged = (EventHandler)Delegate.Remove(cursorChanged, value); if (cursorChanged != null) { return; } try { _nativeICoreWebView2CompositionController.remove_CursorChanged(_cursorChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2CompositionController(object rawCoreWebView2CompositionController) { _rawNative = rawCoreWebView2CompositionController; } internal void OnCursorChanged(object args) { cursorChanged?.Invoke(this, args); } // // Summary: // Sends mouse input to the WebView. // // Parameters: // eventKind: // The mouse event kind. // // virtualKeys: // The virtual keys associated with the eventKind. // // mouseData: // The amount of wheel movement. // // point: // The absolute position of the mouse, or the amount of motion since the last mouse // event was generated, depending on the eventKind. // // Remarks: // If eventKind is Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.HorizontalWheel // or Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.Wheel, then mouseData // specifies the amount of wheel movement. A positive value indicates that the wheel // was rotated forward, away from the user; a negative value indicates that the // wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, // which is 120. If eventKind is Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.XButtonDoubleClick, // Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.XButtonDown, or Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.XButtonUp, // then mouseData specifies which X buttons were pressed or released. This value // should be 1 if the first X button is pressed/released and 2 if the second X button // is pressed/released. If eventKind is Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.Leave, // then virtualKeys, mouseData, and point should all be zero. If eventKind is any // other value, then mouseData should be zero. point is expected to be in the client // coordinate space of the WebView. To track mouse events that start in the WebView // and can potentially move outside of the WebView and host application, calling // SetCapture and ReleaseCapture is recommended. To dismiss hover popups, it is // also recommended to send Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind.Leave // messages. public void SendMouseInput(CoreWebView2MouseEventKind eventKind, CoreWebView2MouseEventVirtualKeys virtualKeys, uint mouseData, Point point) { try { _nativeICoreWebView2CompositionController.SendMouseInput((COREWEBVIEW2_MOUSE_EVENT_KIND)eventKind, (COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS)virtualKeys, mouseData, COMDotNetTypeConverter.PointNetToCOM(point)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Sends pen or pointer input to the WebView. // // Parameters: // eventKind: // The pointer event kind. // // pointerInfo: // The pointer information. // // Remarks: // Accepts touch or pen pointer input of kinds defined in Microsoft.Web.WebView2.Core.CoreWebView2PointerEventKind. // Any pointer input from the system must be converted into a Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo // first. public void SendPointerInput(CoreWebView2PointerEventKind eventKind, CoreWebView2PointerInfo pointerInfo) { try { _nativeICoreWebView2CompositionController.SendPointerInput((COREWEBVIEW2_POINTER_EVENT_KIND)eventKind, pointerInfo._nativeICoreWebView2PointerInfo); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Call this method to inform the CoreWebView2CompositionController that a drag // operation has left the WebView. // // Remarks: // Corresponds to the [ICoreDropOperationTarget.LeaveAsync](/uwp/api/windows.applicationmodel.datatransfer.dragdrop.core.icoredropoperationtarget.leaveasync) // method when performing a drag operation into the WebView. public void DragLeave() { try { try { _nativeICoreWebView2CompositionController3.DragLeave(); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalCompositionController3.DragLeave(); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Converts a PointerId received from the system into a Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo. // // Parameters: // PointerId: // The PointerId received from the system to be converted into a Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo. // // ParentWindow: // The HWND that contains the WebView. This can be any HWND in the hwnd tree that // contains the WebView. // // transform: // The transform from that HWND to the WebView. // // Remarks: // The returned Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo is used in Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.SendPointerInput(Microsoft.Web.WebView2.Core.CoreWebView2PointerEventKind,Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo). // The Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo.PointerKind must be either // pen or touch or the function will fail. public CoreWebView2PointerInfo CreateCoreWebView2PointerInfoFromPointerId(uint PointerId, IntPtr ParentWindow, Matrix4x4 transform) { try { return new CoreWebView2PointerInfo(_nativeICoreWebView2ExperimentalCompositionController4.CreateCoreWebView2PointerInfoFromPointerId(PointerId, ParentWindow, COMDotNetTypeConverter.Matrix4x4NetToCOM(transform))); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContainsFullScreenElementChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ContainsFullScreenElementChangedEventHandler : ICoreWebView2ContainsFullScreenElementChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ContainsFullScreenElementChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContentLoadingEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading event. public class CoreWebView2ContentLoadingEventArgs : EventArgs { internal ICoreWebView2ContentLoadingEventArgs _nativeICoreWebView2ContentLoadingEventArgsValue; internal object _rawNative; internal ICoreWebView2ContentLoadingEventArgs _nativeICoreWebView2ContentLoadingEventArgs { get { if (_nativeICoreWebView2ContentLoadingEventArgsValue == null) { try { _nativeICoreWebView2ContentLoadingEventArgsValue = (ICoreWebView2ContentLoadingEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ContentLoadingEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ContentLoadingEventArgsValue; } set { _nativeICoreWebView2ContentLoadingEventArgsValue = value; } } // // Summary: // true if the loaded content is an error page. public bool IsErrorPage { get { try { return _nativeICoreWebView2ContentLoadingEventArgs.IsErrorPage != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the ID of the navigation. public ulong NavigationId { get { try { return _nativeICoreWebView2ContentLoadingEventArgs.NavigationId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ContentLoadingEventArgs(object rawCoreWebView2ContentLoadingEventArgs) { _rawNative = rawCoreWebView2ContentLoadingEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContentLoadingEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ContentLoadingEventHandler : ICoreWebView2ContentLoadingEventHandler { public delegate void CallbackType(CoreWebView2ContentLoadingEventArgs args); private CallbackType _callback; public CoreWebView2ContentLoadingEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2ContentLoadingEventArgs args) { _callback(new CoreWebView2ContentLoadingEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuItem.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents a context menu item of a context menu displayed by WebView. public class CoreWebView2ContextMenuItem { internal ICoreWebView2ContextMenuItem _nativeICoreWebView2ContextMenuItemValue; internal object _rawNative; private EventRegistrationToken _customItemSelectedToken; private EventHandler customItemSelected; internal ICoreWebView2ContextMenuItem _nativeICoreWebView2ContextMenuItem { get { if (_nativeICoreWebView2ContextMenuItemValue == null) { try { _nativeICoreWebView2ContextMenuItemValue = (ICoreWebView2ContextMenuItem)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ContextMenuItem.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ContextMenuItemValue; } set { _nativeICoreWebView2ContextMenuItemValue = value; } } // // Summary: // Gets the unlocalized name for the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // // Remarks: // Use this to distinguish between context menu item types. This will be the English // label of the menu item in lower camel case. For example, the "Save as" menu item // will be "saveAs". Extension menu items will be "extension", custom menu items // will be "custom" and spellcheck items will be "spellCheck". Some example context // menu item names are: // • "saveAs" // • "copyImage" // • "openLinkInNewWindow" public string Name { get { try { return _nativeICoreWebView2ContextMenuItem.Name; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the localized label for the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // Will contain an ampersand for characters to be used as keyboard accelerator. public string Label { get { try { return _nativeICoreWebView2ContextMenuItem.Label; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the Command ID for the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // // Remarks: // Use this to report the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuRequestedEventArgs.SelectedCommandId // in Microsoft.Web.WebView2.Core.CoreWebView2.ContextMenuRequested event. public int CommandId { get { try { return _nativeICoreWebView2ContextMenuItem.CommandId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the localized keyboard shortcut for this Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // // Remarks: // It will be the empty string if there is no keyboard shortcut. This is text intended // to be displayed to the end user to show the keyboard shortcut. For example this // property is Ctrl+Shift+I for the "Inspect" Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. public string ShortcutKeyDescription { get { try { return _nativeICoreWebView2ContextMenuItem.ShortcutKeyDescription; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the Icon for the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // in PNG, Bitmap or SVG formats in the form of an IStream. // // Remarks: // Stream will be rewound to the start of the image data before being read. public Stream Icon { get { try { return COMDotNetTypeConverter.StreamCOMToNet(_nativeICoreWebView2ContextMenuItem.Icon); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the kind of Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem as Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItemKind. public CoreWebView2ContextMenuItemKind Kind { get { try { return (CoreWebView2ContextMenuItemKind)_nativeICoreWebView2ContextMenuItem.Kind; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the enabled property of the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // Must only be used in the case of a custom context menu item. // // Remarks: // The default value for this is true. public bool IsEnabled { get { try { return _nativeICoreWebView2ContextMenuItem.IsEnabled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ContextMenuItem.IsEnabled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the checked property of the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // // Remarks: // Must only be used for custom context menu items that are of kind Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItemKind.CheckBox // or Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItemKind.Radio. public bool IsChecked { get { try { return _nativeICoreWebView2ContextMenuItem.IsChecked != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ContextMenuItem.IsChecked = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the list of children menu items if the kind is Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItemKind.Submenu. // // Remarks: // If the kind is not Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItemKind.Submenu, // will return null. public IList Children { get { try { return COMDotNetTypeConverter.CoreWebView2ContextMenuItemCollectionCOMToNet(_nativeICoreWebView2ContextMenuItem.Children); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // CustomItemSelected event is raised when the user selects this Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem. // // Remarks: // Will only be raised for end developer created context menu items. public event EventHandler CustomItemSelected { add { if (customItemSelected == null) { try { _nativeICoreWebView2ContextMenuItem.add_CustomItemSelected(new CoreWebView2CustomItemSelectedEventHandler(OnCustomItemSelected), out _customItemSelectedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } customItemSelected = (EventHandler)Delegate.Combine(customItemSelected, value); } remove { customItemSelected = (EventHandler)Delegate.Remove(customItemSelected, value); if (customItemSelected != null) { return; } try { _nativeICoreWebView2ContextMenuItem.remove_CustomItemSelected(_customItemSelectedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ContextMenuItem(object rawCoreWebView2ContextMenuItem) { _rawNative = rawCoreWebView2ContextMenuItem; } internal void OnCustomItemSelected(object args) { customItemSelected?.Invoke(this, args); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuItemKind.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Specifies the menu item kind for the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.Kind // property. public enum CoreWebView2ContextMenuItemKind { // // Summary: // Specifies a command menu item kind. Command, // // Summary: // Specifies a check box menu item kind. Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects of this kind will need the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.IsChecked // property to determine current state of the check box. CheckBox, // // Summary: // Specifies a radio button menu item kind. Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects of this kind will need the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.IsChecked // property to determine current state of the radio button. Radio, // // Summary: // Specifies a separator menu item kind. Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects of this kind are used to signal a visual separator with no functionality. Separator, // // Summary: // Specifies a submenu menu item kind. Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects of this kind will contain a collection of its children Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects. Submenu } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuRequestedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Drawing; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.ContextMenuRequested // event. // // Remarks: // Will contain the selection information and a collection of all of the default // context menu items that the WebView would show. Allows the app to draw its own // context menu or add/remove from the default context menu. public class CoreWebView2ContextMenuRequestedEventArgs : EventArgs { internal ICoreWebView2ContextMenuRequestedEventArgs _nativeICoreWebView2ContextMenuRequestedEventArgsValue; internal object _rawNative; internal ICoreWebView2ContextMenuRequestedEventArgs _nativeICoreWebView2ContextMenuRequestedEventArgs { get { if (_nativeICoreWebView2ContextMenuRequestedEventArgsValue == null) { try { _nativeICoreWebView2ContextMenuRequestedEventArgsValue = (ICoreWebView2ContextMenuRequestedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ContextMenuRequestedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ContextMenuRequestedEventArgsValue; } set { _nativeICoreWebView2ContextMenuRequestedEventArgsValue = value; } } // // Summary: // Gets the collection of Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem // objects. public IList MenuItems { get { try { return COMDotNetTypeConverter.CoreWebView2ContextMenuItemCollectionCOMToNet(_nativeICoreWebView2ContextMenuRequestedEventArgs.MenuItems); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the target information associated with the requested context menu. public CoreWebView2ContextMenuTarget ContextMenuTarget { get { try { return (_nativeICoreWebView2ContextMenuRequestedEventArgs.ContextMenuTarget == null) ? null : new CoreWebView2ContextMenuTarget(_nativeICoreWebView2ContextMenuRequestedEventArgs.ContextMenuTarget); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the coordinates where the context menu request occurred in relation to the // upper left corner of the WebView bounds. public Point Location { get { try { return COMDotNetTypeConverter.PointCOMToNet(_nativeICoreWebView2ContextMenuRequestedEventArgs.Location); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the selected Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem's // Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.CommandId. // // Remarks: // When the app handles the Microsoft.Web.WebView2.Core.CoreWebView2.ContextMenuRequested // event, it can set this to report the selected command from the context menu. // The default value is -1 which means that no selection occurred. The app can also // set the command ID for a custom context menu item, which will cause the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.CustomItemSelected // event to be fired, however while command IDs for each custom context menu item // is unique during a ContextMenuRequested event, WebView may reassign command ID // values of deleted custom ContextMenuItems to new objects and the command ID assigned // to the same custom item can be different between each app runtime. The command // ID should always be obtained via the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.CommandId // property. public int SelectedCommandId { get { try { return _nativeICoreWebView2ContextMenuRequestedEventArgs.SelectedCommandId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ContextMenuRequestedEventArgs.SelectedCommandId = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets whether the Microsoft.Web.WebView2.Core.CoreWebView2.ContextMenuRequested // event is handled by host after the event handler completes or after the deferral // is completed if there is a taken Microsoft.Web.WebView2.Core.CoreWebView2Deferral. // // Remarks: // If Handled is set to true then WebView2 will not display a context menu and will // instead use the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuRequestedEventArgs.SelectedCommandId // property to indicate which, if any, context menu item to invoke. If after the // event handler or deferral completes, Handled is set to false then WebView will // display a context menu based on the contents of the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuRequestedEventArgs.MenuItems // property. The default value is false. public bool Handled { get { try { return _nativeICoreWebView2ContextMenuRequestedEventArgs.Handled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ContextMenuRequestedEventArgs.Handled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ContextMenuRequestedEventArgs(object rawCoreWebView2ContextMenuRequestedEventArgs) { _rawNative = rawCoreWebView2ContextMenuRequestedEventArgs; } // // Summary: // Returns a Microsoft.Web.WebView2.Core.CoreWebView2Deferral object. // // Remarks: // Use this operation to complete the event when the custom context menu is closed. public CoreWebView2Deferral GetDeferral() { try { return new CoreWebView2Deferral(_nativeICoreWebView2ContextMenuRequestedEventArgs.GetDeferral()); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuRequestedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ContextMenuRequestedEventHandler : ICoreWebView2ContextMenuRequestedEventHandler { public delegate void CallbackType(CoreWebView2ContextMenuRequestedEventArgs args); private CallbackType _callback; public CoreWebView2ContextMenuRequestedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2ContextMenuRequestedEventArgs args) { _callback(new CoreWebView2ContextMenuRequestedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuTarget.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents the information regarding the context menu target. Includes the context // selected and the appropriate data used for the actions of a context menu. public class CoreWebView2ContextMenuTarget { internal ICoreWebView2ContextMenuTarget _nativeICoreWebView2ContextMenuTargetValue; internal object _rawNative; internal ICoreWebView2ContextMenuTarget _nativeICoreWebView2ContextMenuTarget { get { if (_nativeICoreWebView2ContextMenuTargetValue == null) { try { _nativeICoreWebView2ContextMenuTargetValue = (ICoreWebView2ContextMenuTarget)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ContextMenuTarget.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ContextMenuTargetValue; } set { _nativeICoreWebView2ContextMenuTargetValue = value; } } // // Summary: // Gets the kind of context that the user selected as Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTargetKind. public CoreWebView2ContextMenuTargetKind Kind { get { try { return (CoreWebView2ContextMenuTargetKind)_nativeICoreWebView2ContextMenuTarget.Kind; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu is requested on an editable component. public bool IsEditable { get { try { return _nativeICoreWebView2ContextMenuTarget.IsEditable != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu was requested on the main frame and false if // invoked on another frame. public bool IsRequestedForMainFrame { get { try { return _nativeICoreWebView2ContextMenuTarget.IsRequestedForMainFrame != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the uri of the page. public string PageUri { get { try { return _nativeICoreWebView2ContextMenuTarget.PageUri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the uri of the frame. Will match the Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.PageUri // if Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.IsRequestedForMainFrame // is true. public string FrameUri { get { try { return _nativeICoreWebView2ContextMenuTarget.FrameUri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu is requested on HTML containing an anchor tag. public bool HasLinkUri { get { try { return _nativeICoreWebView2ContextMenuTarget.HasLinkUri != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the uri of the link (if Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.HasLinkUri // is true, null otherwise). public string LinkUri { get { try { return _nativeICoreWebView2ContextMenuTarget.LinkUri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu is requested on text element that contains an // anchor tag. public bool HasLinkText { get { try { return _nativeICoreWebView2ContextMenuTarget.HasLinkText != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the text of the link (if Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.HasLinkText // is true, null otherwise). public string LinkText { get { try { return _nativeICoreWebView2ContextMenuTarget.LinkText; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu is requested on HTML containing a source uri. public bool HasSourceUri { get { try { return _nativeICoreWebView2ContextMenuTarget.HasSourceUri != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the active source uri of element (if Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.HasSourceUri // is true, null otherwise). public string SourceUri { get { try { return _nativeICoreWebView2ContextMenuTarget.SourceUri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if the context menu is requested on a selection. public bool HasSelection { get { try { return _nativeICoreWebView2ContextMenuTarget.HasSelection != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the selected text (if Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.HasSelection // is true, null otherwise). public string SelectionText { get { try { return _nativeICoreWebView2ContextMenuTarget.SelectionText; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ContextMenuTarget(object rawCoreWebView2ContextMenuTarget) { _rawNative = rawCoreWebView2ContextMenuTarget; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ContextMenuTargetKind.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Indicates the kind of context for which the context menu was created for the // Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuTarget.Kind property. This // enum will always represent the active element that caused the context menu request. // If there is a selection with multiple images, audio and text, for example, the // element that the end user right clicks on within this selection will be the option // represented by this enum. public enum CoreWebView2ContextMenuTargetKind { // // Summary: // Indicates that the context menu was created for the page without any additional // content. Page, // // Summary: // Indicates that the context menu was created for an image element. Image, // // Summary: // Indicates that the context menu was created for selected text. SelectedText, // // Summary: // Indicates that the context menu was created for an audio element. Audio, // // Summary: // Indicates that the context menu was created for a video element. Video } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Controller.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Drawing; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // This class is the owner of the Microsoft.Web.WebView2.Core.CoreWebView2Controller.CoreWebView2 // object, and provides support for resizing, showing and hiding, focusing, and // other functionality related to windowing and composition. // // Remarks: // The Microsoft.Web.WebView2.Core.CoreWebView2Controller owns the Microsoft.Web.WebView2.Core.CoreWebView2Controller.CoreWebView2, // and if all references to the Microsoft.Web.WebView2.Core.CoreWebView2Controller // go away, the WebView will be closed. public class CoreWebView2Controller { private const string HostObjectHelperName = "{60A417CA-F1AB-4307-801B-F96003F8938B} Host Object Helper"; private CoreWebView2 _coreWebView2; internal ICoreWebView2Controller _nativeICoreWebView2ControllerValue; internal ICoreWebView2Controller2 _nativeICoreWebView2Controller2Value; internal ICoreWebView2Controller3 _nativeICoreWebView2Controller3Value; internal ICoreWebView2Controller4 _nativeICoreWebView2Controller4Value; internal ICoreWebView2ExperimentalController2 _nativeICoreWebView2ExperimentalController2Value; internal ICoreWebView2ExperimentalController _nativeICoreWebView2ExperimentalControllerValue; internal ICoreWebView2PrivatePartialController _nativeICoreWebView2PrivatePartialControllerValue; internal object _rawNative; private EventRegistrationToken _zoomFactorChangedToken; private EventHandler zoomFactorChanged; private EventRegistrationToken _moveFocusRequestedToken; private EventHandler moveFocusRequested; private EventRegistrationToken _gotFocusToken; private EventHandler gotFocus; private EventRegistrationToken _lostFocusToken; private EventHandler lostFocus; private EventRegistrationToken _acceleratorKeyPressedToken; private EventHandler acceleratorKeyPressed; private EventRegistrationToken _rasterizationScaleChangedToken; private EventHandler rasterizationScaleChanged; private EventRegistrationToken _keyPressedToken; private EventHandler keyPressed; // // Summary: // Gets the Microsoft.Web.WebView2.Core.CoreWebView2Controller.CoreWebView2 associated // with this Microsoft.Web.WebView2.Core.CoreWebView2Controller. public CoreWebView2 CoreWebView2 { get { if (_nativeICoreWebView2Controller.CoreWebView2 == null) { return null; } if (_coreWebView2 == null) { _coreWebView2 = new CoreWebView2(_nativeICoreWebView2Controller.CoreWebView2); } return _coreWebView2; } } internal ICoreWebView2Controller _nativeICoreWebView2Controller { get { if (_nativeICoreWebView2ControllerValue == null) { try { _nativeICoreWebView2ControllerValue = (ICoreWebView2Controller)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ControllerValue; } set { _nativeICoreWebView2ControllerValue = value; } } internal ICoreWebView2Controller2 _nativeICoreWebView2Controller2 { get { if (_nativeICoreWebView2Controller2Value == null) { try { _nativeICoreWebView2Controller2Value = (ICoreWebView2Controller2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Controller2Value; } set { _nativeICoreWebView2Controller2Value = value; } } internal ICoreWebView2Controller3 _nativeICoreWebView2Controller3 { get { if (_nativeICoreWebView2Controller3Value == null) { try { _nativeICoreWebView2Controller3Value = (ICoreWebView2Controller3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Controller3Value; } set { _nativeICoreWebView2Controller3Value = value; } } internal ICoreWebView2Controller4 _nativeICoreWebView2Controller4 { get { if (_nativeICoreWebView2Controller4Value == null) { try { _nativeICoreWebView2Controller4Value = (ICoreWebView2Controller4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Controller4Value; } set { _nativeICoreWebView2Controller4Value = value; } } internal ICoreWebView2ExperimentalController2 _nativeICoreWebView2ExperimentalController2 { get { if (_nativeICoreWebView2ExperimentalController2Value == null) { try { _nativeICoreWebView2ExperimentalController2Value = (ICoreWebView2ExperimentalController2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalController2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalController2Value; } set { _nativeICoreWebView2ExperimentalController2Value = value; } } internal ICoreWebView2ExperimentalController _nativeICoreWebView2ExperimentalController { get { if (_nativeICoreWebView2ExperimentalControllerValue == null) { try { _nativeICoreWebView2ExperimentalControllerValue = (ICoreWebView2ExperimentalController)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalController.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalControllerValue; } set { _nativeICoreWebView2ExperimentalControllerValue = value; } } internal ICoreWebView2PrivatePartialController _nativeICoreWebView2PrivatePartialController { get { if (_nativeICoreWebView2PrivatePartialControllerValue == null) { try { _nativeICoreWebView2PrivatePartialControllerValue = (ICoreWebView2PrivatePartialController)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2PrivatePartialController.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2PrivatePartialControllerValue; } set { _nativeICoreWebView2PrivatePartialControllerValue = value; } } // // Summary: // Determines whether to show or hide the WebView. // // Remarks: // If IsVisible is set to false, the WebView is transparent and is not rendered. // However, this does not affect the window containing the WebView (the ParentWindow // parameter that was passed to Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr) // or Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions)). // If you want that window to disappear too, run the corresponding Hide method from // the UI framework on it directly in addition to modifying this. WebView as a child // window does not get window messages when the top window is minimized or restored. // For performance reasons, developers should set the IsVisible property of the // WebView to false when the app window is minimized and back to true when the app // window is restored. The app window does this by handling SIZE_MINIMIZED and SIZE_RESTORED // command upon receiving WM_SIZE message. There are CPU and memory benefits when // the page is hidden. For instance Chromium has code that throttles activities // on the page like animations and some tasks are run less frequently. Similarly, // WebView2 will purge some caches to reduce memory usage. public bool IsVisible { get { try { return _nativeICoreWebView2Controller.IsVisible != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Controller.IsVisible = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the WebView bounds. // // Remarks: // Bounds are relative to the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ParentWindow. // The app has two ways to position a WebView: // • Create a child HWND that is the WebView parent HWND. Position the window where // the WebView should be. Use (0, 0) for the top-left corner (the offset) of the // Bounds of the WebView. // • Use the top-most window of the app as the WebView parent HWND. For example, // to position ebView correctly in the app, set the top-left corner of the Bounds // of the WebView. // The values of Bounds are limited by the coordinate space of the host. public Rectangle Bounds { get { try { return COMDotNetTypeConverter.RectangleCOMToNet(_nativeICoreWebView2Controller.Bounds); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Controller.Bounds = COMDotNetTypeConverter.RectangleNetToCOM(value); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the zoom factor for the WebView. // // Remarks: // Note that changing zoom factor may cause window.innerWidth or window.innerHeight // and page layout to change. A zoom factor that is applied by the host by setting // this ZoomFactor property becomes the new default zoom for the WebView. This zoom // factor applies across navigations and is the zoom factor WebView is returned // to when the user presses Ctrl+0. When the zoom factor is changed by the user // (resulting in the app receiving Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactorChanged), // that zoom applies only for the current page. Any user applied zoom is only for // the current page and is reset on a navigation. Specifying a ZoomFactor less than // or equal to 0 is not allowed. WebView also has an internal supported zoom factor // range. When a specified zoom factor is out of that range, it is normalized to // be within the range, and a Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactorChanged // event is raised for the real applied zoom factor. When this range normalization // happens, this reports the zoom factor specified during the previous modification // of the ZoomFactor property until the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactorChanged // event is received after WebView applies the normalized zoom factor. public double ZoomFactor { get { try { return _nativeICoreWebView2Controller.ZoomFactor; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Controller.ZoomFactor = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the parent window provided by the app or sets the parent window that this // WebView is using to render content. // // Remarks: // It initially returns the ParentWindow passed into Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr) // or Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions). // Setting the property causes the WebView to re-parent the main WebView window // to the newly provided window. public IntPtr ParentWindow { get { try { return _nativeICoreWebView2Controller.ParentWindow; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Controller.ParentWindow = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the WebView default background color. // // Remarks: // The `DefaultBackgroundColor` is the color that renders underneath all web content. // This means WebView renders this color when there is no web content loaded such // as before the initial navigation or between navigations. This also means web // pages with undefined css background properties or background properties containing // transparent pixels will render their contents over this color. Web pages with // defined and opaque background properties that span the page will obscure the // `DefaultBackgroundColor` and display normally. The default value for this property // is white to resemble the native browser experience. Currently this API only supports // opaque colors and transparency. It will fail for colors with alpha values that // don't equal 0 or 255 ie. translucent colors are not supported. It also does not // support transparency on Windows 7. On Windows 7, setting DefaultBackgroundColor // to a Color with an Alpha value other than 255 will result in failure. On any // OS above Win7, choosing a transparent color will result in showing hosting app // content. This means webpages without explicit background properties defined will // render web content over hosting app content. This property may also be set via // the `WEBVIEW2_DEFAULT_BACKGROUND_COLOR` environment variable. There is a known // issue with background color where just setting the color by property can still // leave the app with a white flicker before the `DefaultBackgroundColor` property // takes effect. Setting the color via environment variable solves this issue. The // value must be a hex value that can optionally prepend a 0x. The value must account // for the alpha value which is represented by the first 2 digits. So any hex value // fewer than 8 digits will assume a prepended 00 to the hex value and result in // a transparent color. `DefaultBackgroundColor` will return the result of this // environment variable even if it has not been set directly. This environment variable // can only set the `DefaultBackgroundColor` once. Subsequent updates to background // color must be done by setting the property. public Color DefaultBackgroundColor { get { try { return COMDotNetTypeConverter.ColorCOMToNet(_nativeICoreWebView2Controller2.DefaultBackgroundColor); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Controller2.DefaultBackgroundColor = COMDotNetTypeConverter.ColorNetToCOM(value); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the WebView rasterization scale. // // Remarks: // The rasterization scale is the combination of the monitor DPI scale and text // scaling set by the user. This value should be updated when the DPI scale of the // app's top level window changes (i.e. monitor DPI scale changes or the window // changes monitor) or when the text scale factor of the system changes. Rasterization // scale applies to the WebView content, as well as popups, context menus, scroll // bars, and so on. Normal app scaling scenarios should use the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // property or Microsoft.Web.WebView2.Core.CoreWebView2Controller.SetBoundsAndZoomFactor(System.Drawing.Rectangle,System.Double) // method. public double RasterizationScale { get { try { try { return _nativeICoreWebView2Controller3.RasterizationScale; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalController.RasterizationScale; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2Controller3.RasterizationScale = value; } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController.RasterizationScale = value; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Determines whether the WebView will detect monitor scale changes. // // Remarks: // ShouldDetectMonitorScaleChanges property determines whether the WebView attempts // to track monitor DPI scale changes. When true, the WebView will track monitor // DPI scale changes, update the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property, and fire Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScaleChanged // event. When false, the WebView will not track monitor DPI scale changes, and // the app must update the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property itself. Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScaleChanged // event will never raise when ShouldDetectMonitorScaleChanges is false. Apps that // want to set their own rasterization scale should set this property to false to // avoid the WebView2 updating the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property to match the monitor DPI scale. public bool ShouldDetectMonitorScaleChanges { get { try { try { return _nativeICoreWebView2Controller3.ShouldDetectMonitorScaleChanges != 0; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalController.ShouldDetectMonitorScaleChanges != 0; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2Controller3.ShouldDetectMonitorScaleChanges = (value ? 1 : 0); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController.ShouldDetectMonitorScaleChanges = (value ? 1 : 0); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Gets or sets the WebView bounds mode. // // Remarks: // BoundsMode affects how setting the Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds // and Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale properties // work. Bounds mode can either be in Microsoft.Web.WebView2.Core.CoreWebView2BoundsMode.UseRawPixels // mode or Microsoft.Web.WebView2.Core.CoreWebView2BoundsMode.UseRasterizationScale // mode. public CoreWebView2BoundsMode BoundsMode { get { try { try { return (CoreWebView2BoundsMode)_nativeICoreWebView2Controller3.BoundsMode; } catch (NotImplementedException) { return (CoreWebView2BoundsMode)_nativeICoreWebView2ExperimentalController.BoundsMode; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2Controller3.BoundsMode = (COREWEBVIEW2_BOUNDS_MODE)value; } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController.BoundsMode = (COREWEBVIEW2_BOUNDS_MODE)value; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Gets or sets the WebView allow external drop property. // // Remarks: // The AllowExternalDrop is to configure the capability that dropping files into // webview2 is allowed or permitted. The default value is true. public bool AllowExternalDrop { get { try { try { return _nativeICoreWebView2Controller4.AllowExternalDrop != 0; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalController2.AllowExternalDrop != 0; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2Controller4.AllowExternalDrop = (value ? 1 : 0); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController2.AllowExternalDrop = (value ? 1 : 0); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } internal bool IsBrowserHitTransparent { get { try { return _nativeICoreWebView2PrivatePartialController.IsBrowserHitTransparent != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // ZoomFactorChanged is raised when the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // property changes. // // Remarks: // The event may be raised because the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // property was modified, or due to the user manually modifying the zoom. When it // is modified using the Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // property, the internal zoom factor is updated immediately and no ZoomFactorChanged // event is raised. WebView associates the last used zoom factor for each site. // It is possible for the zoom factor to change when navigating to a different page. // When the zoom factor changes due to a navigation change, the ZoomFactorChanged // event is raised right after the Microsoft.Web.WebView2.Core.CoreWebView2.ContentLoading // event. public event EventHandler ZoomFactorChanged { add { if (zoomFactorChanged == null) { try { _nativeICoreWebView2Controller.add_ZoomFactorChanged(new CoreWebView2ZoomFactorChangedEventHandler(OnZoomFactorChanged), out _zoomFactorChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } zoomFactorChanged = (EventHandler)Delegate.Combine(zoomFactorChanged, value); } remove { zoomFactorChanged = (EventHandler)Delegate.Remove(zoomFactorChanged, value); if (zoomFactorChanged != null) { return; } try { _nativeICoreWebView2Controller.remove_ZoomFactorChanged(_zoomFactorChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // MoveFocusRequested is raised when user tries to tab out of the WebView. // // Remarks: // The focus of the WebView has not changed when this event is raised. public event EventHandler MoveFocusRequested { add { if (moveFocusRequested == null) { try { _nativeICoreWebView2Controller.add_MoveFocusRequested(new CoreWebView2MoveFocusRequestedEventHandler(OnMoveFocusRequested), out _moveFocusRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } moveFocusRequested = (EventHandler)Delegate.Combine(moveFocusRequested, value); } remove { moveFocusRequested = (EventHandler)Delegate.Remove(moveFocusRequested, value); if (moveFocusRequested != null) { return; } try { _nativeICoreWebView2Controller.remove_MoveFocusRequested(_moveFocusRequestedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // GotFocus is raised when WebView gets focus. public event EventHandler GotFocus { add { if (gotFocus == null) { try { _nativeICoreWebView2Controller.add_GotFocus(new CoreWebView2FocusChangedEventHandler(OnGotFocus), out _gotFocusToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } gotFocus = (EventHandler)Delegate.Combine(gotFocus, value); } remove { gotFocus = (EventHandler)Delegate.Remove(gotFocus, value); if (gotFocus != null) { return; } try { _nativeICoreWebView2Controller.remove_GotFocus(_gotFocusToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // LostFocus is raised when WebView loses focus. // // Remarks: // In the case where Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocusRequested // event is raised, the focus is still on WebView when Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocusRequested // event is raised. LostFocus is only raised afterwards when code of the app or // default action of Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocusRequested // event sets focus away from WebView. public event EventHandler LostFocus { add { if (lostFocus == null) { try { _nativeICoreWebView2Controller.add_LostFocus(new CoreWebView2FocusChangedEventHandler(OnLostFocus), out _lostFocusToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } lostFocus = (EventHandler)Delegate.Combine(lostFocus, value); } remove { lostFocus = (EventHandler)Delegate.Remove(lostFocus, value); if (lostFocus != null) { return; } try { _nativeICoreWebView2Controller.remove_LostFocus(_lostFocusToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // AcceleratorKeyPressed is raised when an accelerator key or key combo is pressed // or released while the WebView is focused. // // Remarks: // A key is considered an accelerator if either of the following conditions are // true: // • Ctrl or Alt is currently being held. // • The pressed key does not map to a character. // A few specific keys are never considered accelerators, such as Shift. The Escape // key is always considered an accelerator. Autorepeated key events caused by holding // the key down will also raise this event. Filter out the auto-repeated key events // by verifying Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs.KeyEventLParam // or Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs.PhysicalKeyStatus. // In windowed mode, this event is synchronous. Until you set Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs.Handled // to true or the event handler returns, the browser process is blocked and outgoing // cross-process COM calls will fail with RPC_E_CANTCALLOUT_ININPUTSYNCCALL. All // Microsoft.Web.WebView2.Core.CoreWebView2Controller.CoreWebView2 methods work, // however. In windowless mode, the event is asynchronous. Further input do not // reach the browser until the event handler returns or Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs.Handled // is set to true, but the browser process is not blocked, and outgoing COM calls // work normally. It is recommended to set Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs.Handled // to true as early as you are able to know that you want to handle the accelerator // key. public event EventHandler AcceleratorKeyPressed { add { if (acceleratorKeyPressed == null) { try { _nativeICoreWebView2Controller.add_AcceleratorKeyPressed(new CoreWebView2AcceleratorKeyPressedEventHandler(OnAcceleratorKeyPressed), out _acceleratorKeyPressedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } acceleratorKeyPressed = (EventHandler)Delegate.Combine(acceleratorKeyPressed, value); } remove { acceleratorKeyPressed = (EventHandler)Delegate.Remove(acceleratorKeyPressed, value); if (acceleratorKeyPressed != null) { return; } try { _nativeICoreWebView2Controller.remove_AcceleratorKeyPressed(_acceleratorKeyPressedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // RasterizationScaleChanged is raised when the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property changes. // // Remarks: // The event is raised when the Webview detects that the monitor DPI scale has changed, // Microsoft.Web.WebView2.Core.CoreWebView2Controller.ShouldDetectMonitorScaleChanges // is true, and the Webview has changed the Microsoft.Web.WebView2.Core.CoreWebView2Controller.RasterizationScale // property. public event EventHandler RasterizationScaleChanged { add { if (rasterizationScaleChanged == null) { try { try { _nativeICoreWebView2Controller3.add_RasterizationScaleChanged(new CoreWebView2RasterizationScaleChangedEventHandler(OnRasterizationScaleChanged), out _rasterizationScaleChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController.add_RasterizationScaleChanged(new CoreWebView2ExperimentalRasterizationScaleChangedEventHandler(OnRasterizationScaleChanged), out _rasterizationScaleChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } rasterizationScaleChanged = (EventHandler)Delegate.Combine(rasterizationScaleChanged, value); } remove { rasterizationScaleChanged = (EventHandler)Delegate.Remove(rasterizationScaleChanged, value); if (rasterizationScaleChanged != null) { return; } try { try { _nativeICoreWebView2Controller3.remove_RasterizationScaleChanged(_rasterizationScaleChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalController.remove_RasterizationScaleChanged(_rasterizationScaleChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } internal event EventHandler KeyPressed { add { if (keyPressed == null) { try { _nativeICoreWebView2PrivatePartialController.add_KeyPressed(new CoreWebView2PrivateKeyPressedEventHandler(OnKeyPressed), out _keyPressedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } keyPressed = (EventHandler)Delegate.Combine(keyPressed, value); } remove { keyPressed = (EventHandler)Delegate.Remove(keyPressed, value); if (keyPressed != null) { return; } try { _nativeICoreWebView2PrivatePartialController.remove_KeyPressed(_keyPressedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Moves focus into WebView. // // Parameters: // reason: // The reason for moving focus. // // Remarks: // WebView will get focus and focus will be set to correspondent element in the // page hosted in the WebView. For Microsoft.Web.WebView2.Core.CoreWebView2MoveFocusReason.Programmatic // reason, focus is set to previously focused element or the default element if // no previously focused element exists. For Microsoft.Web.WebView2.Core.CoreWebView2MoveFocusReason.Next // reason, focus is set to the first element. For Microsoft.Web.WebView2.Core.CoreWebView2MoveFocusReason.Previous // reason, focus is set to the last element. WebView changes focus through user // interaction including selecting into a WebView or Tab into it. For tabbing, the // app runs MoveFocus with Microsoft.Web.WebView2.Core.CoreWebView2MoveFocusReason.Next // or Microsoft.Web.WebView2.Core.CoreWebView2MoveFocusReason.Previous to align // with Tab and Shift+Tab respectively when it decides the WebView is the next tabbable // element. public void MoveFocus(CoreWebView2MoveFocusReason reason) { try { _nativeICoreWebView2Controller.MoveFocus((COREWEBVIEW2_MOVE_FOCUS_REASON)reason); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } catch (ArgumentException ex3) { if (ex3.HResult == -2147024809) { return; } throw ex3; } } private void Initialize() { if (_nativeICoreWebView2Controller != null) { try { CoreWebView2PrivateHostObjectHelper helper = new CoreWebView2PrivateHostObjectHelper(); CoreWebView2.AddHostObjectHelper(helper); } catch (NotImplementedException) { ICoreWebView2 coreWebView = _nativeICoreWebView2Controller.CoreWebView2; object @object = new HostObjectHelper(); coreWebView.AddHostObjectToScript("{60A417CA-F1AB-4307-801B-F96003F8938B} Host Object Helper", ref @object); } } } internal CoreWebView2Controller(object rawCoreWebView2Controller) { _rawNative = rawCoreWebView2Controller; Initialize(); } internal void OnZoomFactorChanged(object args) { zoomFactorChanged?.Invoke(this, args); } internal void OnMoveFocusRequested(CoreWebView2MoveFocusRequestedEventArgs args) { moveFocusRequested?.Invoke(this, args); } internal void OnGotFocus(object args) { gotFocus?.Invoke(this, args); } internal void OnLostFocus(object args) { lostFocus?.Invoke(this, args); } internal void OnAcceleratorKeyPressed(CoreWebView2AcceleratorKeyPressedEventArgs args) { acceleratorKeyPressed?.Invoke(this, args); } // // Summary: // Updates Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds and Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // properties at the same time. // // Parameters: // Bounds: // The bounds to be updated. // // ZoomFactor: // The zoom factor to be updated. // // Remarks: // This operation is atomic from the perspective of the host. After returning from // this function, the Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds // and Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor properties // are both updated if the function is successful, or neither is updated if the // function fails. If Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds // and Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor are both updated // by the same scale (for example, Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds // and Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor are both doubled), // then the page does not display a change in window.innerWidth or window.innerHeight // and the WebView renders the content at the new size and zoom without intermediate // renderings. This function also updates just one of Microsoft.Web.WebView2.Core.CoreWebView2Controller.ZoomFactor // or Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds by passing in the // new value for one and the current value for the other. public void SetBoundsAndZoomFactor(Rectangle Bounds, double ZoomFactor) { try { _nativeICoreWebView2Controller.SetBoundsAndZoomFactor(COMDotNetTypeConverter.RectangleNetToCOM(Bounds), ZoomFactor); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Tells WebView that the main WebView parent (or any ancestor) HWND moved. // // Remarks: // This is a notification separate from Microsoft.Web.WebView2.Core.CoreWebView2Controller.Bounds. // This is needed for accessibility and certain dialogs in WebView to work correctly. public void NotifyParentWindowPositionChanged() { try { _nativeICoreWebView2Controller.NotifyParentWindowPositionChanged(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Closes the WebView and cleans up the underlying browser instance. // // Remarks: // Cleaning up the browser instance releases the resources powering the WebView. // The browser instance is shut down if no other WebViews are using it. After running // Close, all methods fail and event handlers stop running. Specifically, the WebView // releases the associated references to any associated event handlers when Close // is run. Close is implicitly run when the Microsoft.Web.WebView2.Core.CoreWebView2Controller // loses the final reference and is destructed. But it is best practice to explicitly // run Close to avoid any accidental cycle of references between the WebView and // the app code. Specifically, if you capture a reference to the WebView in an event // handler you create a reference cycle between the WebView and the event handler. // Run Close to break the cycle by releasing all event handlers. But to avoid the // situation, it is best to both explicitly run Close on the WebView and to not // capture a reference to the WebView to ensure the WebView is cleaned up correctly. // Close is synchronous and won't trigger the beforeunload event. public void Close() { try { _nativeICoreWebView2Controller.Close(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal void OnRasterizationScaleChanged(object args) { rasterizationScaleChanged?.Invoke(this, args); } internal void OnKeyPressed(CoreWebView2PrivateKeyPressedEventArgs args) { keyPressed?.Invoke(this, args); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ControllerOptions.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Used to manage profile options that created by Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerOptions. public class CoreWebView2ControllerOptions { internal ICoreWebView2ControllerOptions _nativeICoreWebView2ControllerOptionsValue; internal ICoreWebView2ControllerOptions2 _nativeICoreWebView2ControllerOptions2Value; internal ICoreWebView2ExperimentalControllerOptions _nativeICoreWebView2ExperimentalControllerOptionsValue; internal object _rawNative; // // Summary: // Manages the value of the controller's script locale. // // Remarks: // The ScriptLocale property is to specify the default script locale. It sets the // default locale for all Intl JavaScript APIs and other JavaScript APIs that depend // on it, namely Intl.DateTimeFormat() which affects string formatting like in the // time/date formats.The intended locale value is in the format of BCP 47 Language // Tags. More information can be found from [IETF BCP47](https://www.ietf.org/rfc/bcp/bcp47.html // ). The default value for ScriptLocale will be depend on the WebView2 language // and OS region. If the language portions of the WebView2 language and OS region // match, then it will use the OS region. Otherwise, it will use the WebView2 language. // OS Region WebView2 Language Default WebView2 ScriptLocale // en-GB en-US en-GB // es-MX en-US en-US // en-US en-GB en-US // You can set the ScriptLocale to the empty string to get the default ScriptLocale // value. Use OS specific APIs to determine the OS region to use with this property // if you always want to match with the OS region. For example: // CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; // return cultureInfo.Name public string ScriptLocale { get { try { try { return _nativeICoreWebView2ControllerOptions2.ScriptLocale; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalControllerOptions.LocaleRegion; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } set { try { try { _nativeICoreWebView2ControllerOptions2.ScriptLocale = value; } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalControllerOptions.LocaleRegion = value; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } internal ICoreWebView2ControllerOptions _nativeICoreWebView2ControllerOptions { get { if (_nativeICoreWebView2ControllerOptionsValue == null) { try { _nativeICoreWebView2ControllerOptionsValue = (ICoreWebView2ControllerOptions)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ControllerOptions.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ControllerOptionsValue; } set { _nativeICoreWebView2ControllerOptionsValue = value; } } internal ICoreWebView2ControllerOptions2 _nativeICoreWebView2ControllerOptions2 { get { if (_nativeICoreWebView2ControllerOptions2Value == null) { try { _nativeICoreWebView2ControllerOptions2Value = (ICoreWebView2ControllerOptions2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ControllerOptions2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ControllerOptions2Value; } set { _nativeICoreWebView2ControllerOptions2Value = value; } } internal ICoreWebView2ExperimentalControllerOptions _nativeICoreWebView2ExperimentalControllerOptions { get { if (_nativeICoreWebView2ExperimentalControllerOptionsValue == null) { try { _nativeICoreWebView2ExperimentalControllerOptionsValue = (ICoreWebView2ExperimentalControllerOptions)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalControllerOptions.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalControllerOptionsValue; } set { _nativeICoreWebView2ExperimentalControllerOptionsValue = value; } } // // Summary: // Manage the name of the controller's profile. // // Remarks: // The ProfileName property is to specify a profile name, which is only allowed // to contain the following ASCII characters. It has a maximum length of 64 characters // excluding the null-terminator. It is ASCII case insensitive. * alphabet characters: // a-z and A-Z * digit characters: 0-9 * and '#', '@', '$', '(', ')', '+', '-', // '_', '~', '.', ' ' (space). Note: the text must not end with a period '.' or // ' ' (space). And, although upper-case letters are allowed, they're treated just // as lower-case counterparts because the profile name will be mapped to the real // profile directory path on disk and Windows file system handles path names in // a case-insensitive way. public string ProfileName { get { try { return _nativeICoreWebView2ControllerOptions.ProfileName; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ControllerOptions.ProfileName = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Manage the controller's InPrivate mode. public bool IsInPrivateModeEnabled { get { try { return _nativeICoreWebView2ControllerOptions.IsInPrivateModeEnabled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2ControllerOptions.IsInPrivateModeEnabled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ControllerOptions(object rawCoreWebView2ControllerOptions) { _rawNative = rawCoreWebView2ControllerOptions; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Cookie.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Net; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Provides a set of properties that are used to manage a Microsoft.Web.WebView2.Core.CoreWebView2Cookie. public class CoreWebView2Cookie { private static DateTime _unixEpoch = DateTime.SpecifyKind(new DateTime(1970, 1, 1), DateTimeKind.Utc); internal ICoreWebView2Cookie _nativeICoreWebView2CookieValue; internal object _rawNative; // // Summary: // The expiration date and time for the cookie since the UNIX epoch. // // Remarks: // Setting the Expires property to System.DateTime.MinValue makes this a session // cookie, which is its default value. public DateTime Expires { get { return SecondsSinceUnixEpochToDateTime(_nativeICoreWebView2Cookie.Expires); } set { if (value.Kind != DateTimeKind.Utc) { value = value.ToUniversalTime(); } double totalSeconds = (value - _unixEpoch).TotalSeconds; _nativeICoreWebView2Cookie.Expires = ((totalSeconds < 0.0) ? Convert.ToDouble(-1.0) : totalSeconds); } } internal ICoreWebView2Cookie _nativeICoreWebView2Cookie { get { if (_nativeICoreWebView2CookieValue == null) { try { _nativeICoreWebView2CookieValue = (ICoreWebView2Cookie)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Cookie.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CookieValue; } set { _nativeICoreWebView2CookieValue = value; } } // // Summary: // Get or sets the cookie name. public string Name { get { try { return _nativeICoreWebView2Cookie.Name; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the cookie value. public string Value { get { try { return _nativeICoreWebView2Cookie.Value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Cookie.Value = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the domain for which the cookie is valid. // // Remarks: // The default value is the host that this cookie has been received from. Note that, // for instance, .bing.com, bing.com, and www.bing.com are considered different // domains. public string Domain { get { try { return _nativeICoreWebView2Cookie.Domain; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the path for which the cookie is valid. // // Remarks: // The default value is "/", which means this cookie will be sent to all pages on // the Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Domain. public string Path { get { try { return _nativeICoreWebView2Cookie.Path; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Determines whether this cookie is http-only. public bool IsHttpOnly { get { try { return _nativeICoreWebView2Cookie.IsHttpOnly != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Cookie.IsHttpOnly = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Determines the SameSite status of the cookie which represents the enforcement // mode of the cookie. // // Remarks: // The default value is Microsoft.Web.WebView2.Core.CoreWebView2CookieSameSiteKind.Lax. public CoreWebView2CookieSameSiteKind SameSite { get { try { return (CoreWebView2CookieSameSiteKind)_nativeICoreWebView2Cookie.SameSite; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Cookie.SameSite = (COREWEBVIEW2_COOKIE_SAME_SITE_KIND)value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the security level of this cookie. public bool IsSecure { get { try { return _nativeICoreWebView2Cookie.IsSecure != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2Cookie.IsSecure = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Determines whether this is a session cookie. The default value is false. public bool IsSession { get { try { return _nativeICoreWebView2Cookie.IsSession != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Converts this to a System.Net.Cookie. // // Returns: // An object whose System.Net.Cookie.Name, System.Net.Cookie.Value, System.Net.Cookie.Path, // System.Net.Cookie.Domain, System.Net.Cookie.HttpOnly, System.Net.Cookie.Secure, // and System.Net.Cookie.Expires, matches those Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Name, // Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Value, Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Path, // Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Domain, Microsoft.Web.WebView2.Core.CoreWebView2Cookie.IsHttpOnly, // Microsoft.Web.WebView2.Core.CoreWebView2Cookie.IsSecure, and Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Expires // of this Microsoft.Web.WebView2.Core.CoreWebView2Cookie object. // // Remarks: // The values of the System.Net.Cookie properties other than those specified above // remain their default values. public Cookie ToSystemNetCookie() { return new Cookie(Name, Value, Path, Domain) { Expires = Expires, HttpOnly = IsHttpOnly, Secure = IsSecure }; } private DateTime SecondsSinceUnixEpochToDateTime(double seconds) { if (seconds < 0.0) { return DateTime.MinValue; } double num = seconds * 10000000.0 + (double)_unixEpoch.Ticks; DateTime maxValue = DateTime.MaxValue; if (num > (double)maxValue.Ticks) { return DateTime.MaxValue; } return _unixEpoch.AddSeconds(seconds); } internal CoreWebView2Cookie(object rawCoreWebView2Cookie) { _rawNative = rawCoreWebView2Cookie; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CookieManager.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Net; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Creates, adds or updates, gets, or or view the cookies. // // Remarks: // The changes would apply to the context of the user profile. That is, other WebViews // under the same user profile could be affected. public class CoreWebView2CookieManager { internal ICoreWebView2CookieManager _nativeICoreWebView2CookieManagerValue; internal object _rawNative; internal ICoreWebView2CookieManager _nativeICoreWebView2CookieManager { get { if (_nativeICoreWebView2CookieManagerValue == null) { try { _nativeICoreWebView2CookieManagerValue = (ICoreWebView2CookieManager)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2CookieManager.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2CookieManagerValue; } set { _nativeICoreWebView2CookieManagerValue = value; } } // // Summary: // Creates a CoreWebView2Cookie object whose params matches those of the given System.Net.Cookie. // // Parameters: // systemNetCookie: // A System.Net.Cookie whose params to be used to create a CoreWebView2Cookie. // // Returns: // An object whose Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Name, Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Value, // Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Path, Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Domain, // Microsoft.Web.WebView2.Core.CoreWebView2Cookie.IsHttpOnly, Microsoft.Web.WebView2.Core.CoreWebView2Cookie.IsSecure, // and Microsoft.Web.WebView2.Core.CoreWebView2Cookie.Expires, matches those System.Net.Cookie.Name, // System.Net.Cookie.Value, System.Net.Cookie.Path, System.Net.Cookie.Domain, System.Net.Cookie.HttpOnly, // System.Net.Cookie.Secure, and System.Net.Cookie.Expires of the given System.Net.Cookie // object. // // Remarks: // The default value for the Microsoft.Web.WebView2.Core.CoreWebView2Cookie.SameSite // property of the returned Microsoft.Web.WebView2.Core.CoreWebView2Cookie object // is Microsoft.Web.WebView2.Core.CoreWebView2CookieSameSiteKind.Lax. public CoreWebView2Cookie CreateCookieWithSystemNetCookie(Cookie systemNetCookie) { return new CoreWebView2Cookie(_nativeICoreWebView2CookieManager.CreateCookie(systemNetCookie.Name, systemNetCookie.Value, systemNetCookie.Domain, systemNetCookie.Path)) { IsHttpOnly = systemNetCookie.HttpOnly, IsSecure = systemNetCookie.Secure, Expires = systemNetCookie.Expires.ToUniversalTime() }; } internal CoreWebView2CookieManager(object rawCoreWebView2CookieManager) { _rawNative = rawCoreWebView2CookieManager; } // // Summary: // Creates a cookie object with a specified name, value, domain, and path. // // Parameters: // name: // The name for the Microsoft.Web.WebView2.Core.CoreWebView2Cookie to be created. // It cannot start with whitespace(s). // // value: // // Domain: // // Path: // // Remarks: // One can set other optional properties after cookie creation. This only creates // a cookie object and it is not added to the cookie manager until you call Microsoft.Web.WebView2.Core.CoreWebView2CookieManager.AddOrUpdateCookie(Microsoft.Web.WebView2.Core.CoreWebView2Cookie). // name that starts with whitespace(s) is not allowed. public CoreWebView2Cookie CreateCookie(string name, string value, string Domain, string Path) { try { return new CoreWebView2Cookie(_nativeICoreWebView2CookieManager.CreateCookie(name, value, Domain, Path)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Creates a cookie whose params matches those of the specified cookie. public CoreWebView2Cookie CopyCookie(CoreWebView2Cookie cookieParam) { try { return new CoreWebView2Cookie(_nativeICoreWebView2CookieManager.CopyCookie(cookieParam._nativeICoreWebView2Cookie)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Gets a list of cookies matching the specific URI. // // Parameters: // uri: // If uri is empty string or null, all cookies under the same profile are returned. // // Remarks: // You can modify the cookie objects by calling Microsoft.Web.WebView2.Core.CoreWebView2CookieManager.AddOrUpdateCookie(Microsoft.Web.WebView2.Core.CoreWebView2Cookie), // and the changes will be applied to the webview. public async Task> GetCookiesAsync(string uri) { CoreWebView2GetCookiesCompletedHandler handler; try { handler = new CoreWebView2GetCookiesCompletedHandler(); _nativeICoreWebView2CookieManager.GetCookies(uri, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.cookieList; } // // Summary: // Adds or updates a cookie with the given cookie data; may overwrite cookies with // matching name, domain, and path if they exist. // // Parameters: // cookie: // The Microsoft.Web.WebView2.Core.CoreWebView2Cookie to be added or updated. // // Remarks: // This method will fail if the domain of the given cookie is not specified. public void AddOrUpdateCookie(CoreWebView2Cookie cookie) { try { _nativeICoreWebView2CookieManager.AddOrUpdateCookie(cookie._nativeICoreWebView2Cookie); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Deletes a cookie whose name and domain/path pair match those of the specified // cookie. public void DeleteCookie(CoreWebView2Cookie cookie) { try { _nativeICoreWebView2CookieManager.DeleteCookie(cookie._nativeICoreWebView2Cookie); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Deletes cookies with matching name and uri. // // Parameters: // name: // The name for the cookies to be deleted is required. // // uri: // If uri is specified, deletes all cookies with the given name where domain and // path match provided URI. public void DeleteCookies(string name, string uri) { try { _nativeICoreWebView2CookieManager.DeleteCookies(name, uri); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Deletes cookies with matching name and domain/path pair. // // Parameters: // name: // The name for the cookies to be deleted is required. // // Domain: // If domain is specified, deletes only cookies with the exact domain. // // Path: // If path is specified, deletes only cookies with the exact path. public void DeleteCookiesWithDomainAndPath(string name, string Domain, string Path) { try { _nativeICoreWebView2CookieManager.DeleteCookiesWithDomainAndPath(name, Domain, Path); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Deletes all cookies under the same profile. // // Remarks: // This could affect other WebViews under the same user profile. public void DeleteAllCookies() { try { _nativeICoreWebView2CookieManager.DeleteAllCookies(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CookieSameSiteKind.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // Kind of cookie SameSite status used in the Microsoft.Web.WebView2.Core.CoreWebView2Cookie // class. // // Remarks: // These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. // Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07 public enum CoreWebView2CookieSameSiteKind { // // Summary: // None SameSite type. No restrictions on cross-site requests. None, // // Summary: // Lax SameSite type. The cookie will be sent with "same-site" requests, and with // "cross-site" top level navigation. Lax, // // Summary: // Strict SameSite type. The cookie will only be sent along with "same-site" requests. Strict } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler : ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler, INotifyCompletion { private Action continuation; public CoreWebView2CompositionController webView { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, ICoreWebView2CompositionController webView) { this.webView = new CoreWebView2CompositionController(webView); this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public CoreWebView2CompositionController GetResult() { return webView; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CreateCoreWebView2ControllerCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CreateCoreWebView2ControllerCompletedHandler : ICoreWebView2CreateCoreWebView2ControllerCompletedHandler, INotifyCompletion { private Action continuation; public CoreWebView2Controller createdController { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2CreateCoreWebView2ControllerCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, ICoreWebView2Controller createdController) { this.createdController = new CoreWebView2Controller(createdController); this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2CreateCoreWebView2ControllerCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public CoreWebView2Controller GetResult() { return createdController; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler : ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler, INotifyCompletion { private Action continuation; public CoreWebView2Environment createdEnvironment { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, ICoreWebView2Environment createdEnvironment) { this.createdEnvironment = new CoreWebView2Environment(createdEnvironment); this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public CoreWebView2Environment GetResult() { return createdEnvironment; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CursorChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CursorChangedEventHandler : ICoreWebView2CursorChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2CursorChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2CompositionController source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CustomItemSelectedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2CustomItemSelectedEventHandler : ICoreWebView2CustomItemSelectedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2CustomItemSelectedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ContextMenuItem source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2CustomSchemeRegistration.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents the registration of a custom scheme with the Microsoft.Web.WebView2.Core.CoreWebView2Environment. // // Remarks: // This allows the WebView2 app to be able to handle Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event for requests with the specified scheme and be able to navigate the WebView2 // to the custom scheme. Once the environment is created, the registrations are // valid and immutable throughout the lifetime of the associated WebView2s' browser // process and any WebView2 environments sharing the browser process must be created // with identical custom scheme registrations, otherwise the environment creation // will fail. Any further attempts to register the same scheme will fail during // environment creation. The URIs of registered custom schemes will be treated similar // to http URIs for their origins. They will have tuple origins for URIs with host // and opaque origins for URIs without host as specified in [7.5 Origin - HTML Living // Standard](https://html.spec.whatwg.org/multipage/origin.html) For Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event, the cases of request URIs and filter URIs with custom schemes will be // normalized according to generic URI syntax rules. Any non-ASCII characters will // be preserved. The registered custom schemes also participate in [CORS](https://developer.mozilla.org/docs/Web/HTTP/CORS) // and adheres to [CSP](https://developer.mozilla.org/docs/Web/HTTP/CSP). The app // needs to set the appropriate access headers in its Microsoft.Web.WebView2.Core.CoreWebView2.WebResourceRequested // event handler to allow CORS requests. public class CoreWebView2CustomSchemeRegistration { private class RawCustomSchemeRegistration : ICoreWebView2CustomSchemeRegistration { public string SchemeName { get; set; } public int TreatAsSecure { get; set; } public int HasAuthorityComponent { get; set; } private List AllowedOrigins { get; } = new List(); public RawCustomSchemeRegistration(string schemeName, bool treatAsSecure, bool hasAuthorityComponent, List allowedOrigins) { SchemeName = schemeName; TreatAsSecure = (treatAsSecure ? 1 : 0); HasAuthorityComponent = (hasAuthorityComponent ? 1 : 0); AllowedOrigins = allowedOrigins; } public void GetAllowedOrigins(out uint allowedOriginsCount, IntPtr allowedOriginsPtr) { allowedOriginsCount = (uint)AllowedOrigins.Count; if (allowedOriginsCount != 0) { IntPtr intPtr = Marshal.AllocCoTaskMem((int)allowedOriginsCount * Marshal.SizeOf()); for (int i = 0; i < allowedOriginsCount; i++) { Marshal.WriteIntPtr(intPtr + i * Marshal.SizeOf(), Marshal.StringToCoTaskMemAuto(AllowedOrigins[i])); } Marshal.WriteIntPtr(allowedOriginsPtr, intPtr); } } public void SetAllowedOrigins(uint allowedOriginsCount, ref string allowedOrigins) { throw new NotImplementedException(); } } // // Summary: // The name of the custom scheme to register. public string SchemeName { get; } // // Summary: // Whether the sites with this scheme will be treated as a [Secure Context](https://developer.mozilla.org/docs/Web/Security/Secure_Contexts) // like an HTTPS site. public bool TreatAsSecure { get; set; } // // Summary: // Set this property to true if the URIs with this custom scheme will have an authority // component (a host for custom schemes). Specifically, if you have a URI of the // following form you should set the HasAuthorityComponent value as listed. // URI Recommended HasAuthorityComponent value // custom-scheme-with-authority://host/path true // custom-scheme-without-authority:path false // // Remarks: // When this property is set to true, the URIs with this scheme will be interpreted // as having a [scheme and host](https://html.spec.whatwg.org/multipage/origin.html#concept-origin-tuple) // origin similar to an http URI. Note that the port and user information are never // included in the computation of origins for custom schemes. If this property is // set to false, URIs with this scheme will have an [opaque origin](https://html.spec.whatwg.org/multipage/origin.html#concept-origin-opaque) // similar to a data URI. This property is false by default. Note: For custom schemes // registered as having authority component, navigations to URIs without authority // of such custom schemes will fail. However, if the content inside WebView2 references // a subresource with a URI that does not have an authority component, but of a // custom scheme that is registered as having authority component, the URI will // be interpreted as a relative path as specified in [RFC3986](https://www.rfc-editor.org/rfc/rfc3986). // For example, custom-scheme-with-authority:path will be interpreted as custom-scheme-with-authority://host/path. // However, this behavior cannot be guaranteed to remain in future releases so it // is recommended not to rely on this behavior. public bool HasAuthorityComponent { get; set; } // // Summary: // List of origins that are allowed to issue requests with the custom scheme, such // as XHRs and subresource requests that have an Origin header. // // Remarks: // The origin of any request (requests that have the [Origin header](https://developer.mozilla.org/docs/Web/HTTP/Headers/Origin)) // to the custom scheme URI needs to be in this list. No-origin requests are requests // that do not have an Origin header, such as link navigations, embedded images // and are always allowed. Note that cross-origin restrictions still apply. From // any opaque origin (Origin header is null), no cross-origin requests are allowed. // If the list is empty, no cross-origin request to this scheme is allowed. Origins // are specified as a string in the format of scheme://host:port. The origins are // string pattern matched with * (matches 0 or more characters) and ? (matches 0 // or 1 character) wildcards just like the URI matching in the Microsoft.Web.WebView2.Core.CoreWebView2.AddWebResourceRequestedFilter(System.String,Microsoft.Web.WebView2.Core.CoreWebView2WebResourceContext) // API. For example, http://*.example.com:80. Here's a set of examples of what is // allowed or not: // Request URI Originating URL AllowedOrigins Allowed // custom-scheme:request https://www.example.com {"https://www.example.com"} Yes // custom-scheme:request https://www.example.com {"https://*.example.com"} Yes // custom-scheme:request https://www.example.com {"https://www.example2.com"} No // custom-scheme-with-authority://host/path custom-scheme-with-authority://host2 // {""} No // custom-scheme-with-authority://host/path custom-scheme-with-authority2://host // {"custom-scheme-with-authority2://*"} Yes // custom-scheme-without-authority:path custom-scheme-without-authority:path2 {"custom-scheme-without-authority:*"} // No // custom-scheme-without-authority:path custom-scheme-without-authority:path2 {"*"} // Yes public List AllowedOrigins { get; set; } = new List(); // // Summary: // Initializes a new instance of the CoreWebView2CustomSchemeRegistration class. // // Parameters: // schemeName: // The name of the custom scheme to register. public CoreWebView2CustomSchemeRegistration(string schemeName) { SchemeName = schemeName; } internal IntPtr GetNative() { return Marshal.GetComInterfaceForObject(new RawCustomSchemeRegistration(SchemeName, TreatAsSecure, HasAuthorityComponent, AllowedOrigins), typeof(ICoreWebView2CustomSchemeRegistration)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DOMContentLoadedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.DOMContentLoaded // event. public class CoreWebView2DOMContentLoadedEventArgs : EventArgs { internal ICoreWebView2DOMContentLoadedEventArgs _nativeICoreWebView2DOMContentLoadedEventArgsValue; internal object _rawNative; internal ICoreWebView2DOMContentLoadedEventArgs _nativeICoreWebView2DOMContentLoadedEventArgs { get { if (_nativeICoreWebView2DOMContentLoadedEventArgsValue == null) { try { _nativeICoreWebView2DOMContentLoadedEventArgsValue = (ICoreWebView2DOMContentLoadedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DOMContentLoadedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DOMContentLoadedEventArgsValue; } set { _nativeICoreWebView2DOMContentLoadedEventArgsValue = value; } } // // Summary: // Gets the ID of the navigation. public ulong NavigationId { get { try { return _nativeICoreWebView2DOMContentLoadedEventArgs.NavigationId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2DOMContentLoadedEventArgs(object rawCoreWebView2DOMContentLoadedEventArgs) { _rawNative = rawCoreWebView2DOMContentLoadedEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DOMContentLoadedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2DOMContentLoadedEventHandler : ICoreWebView2DOMContentLoadedEventHandler { public delegate void CallbackType(CoreWebView2DOMContentLoadedEventArgs args); private CallbackType _callback; public CoreWebView2DOMContentLoadedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2DOMContentLoadedEventArgs args) { _callback(new CoreWebView2DOMContentLoadedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DefaultDownloadDialogCornerAlignment.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // The default download dialog can be aligned to any of the WebView corners by setting // the Microsoft.Web.WebView2.Core.CoreWebView2.DefaultDownloadDialogCornerAlignment // property. The default position is top-right corner. public enum CoreWebView2DefaultDownloadDialogCornerAlignment { // // Summary: // The top-left corner of the WebView. TopLeft, // // Summary: // The top-right corner of the WebView. TopRight, // // Summary: // The bottom-left corner of the WebView. BottomLeft, // // Summary: // The bottom-right corner of the WebView. BottomRight } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Deferral.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; using Microsoft.Win32.SafeHandles; namespace Microsoft.Web.WebView2.Core { // // Summary: // This is used to complete deferrals on event args that support getting deferrals // using the GetDeferral method. This class implements System.IDisposable. public class CoreWebView2Deferral : IDisposable { private bool disposed; private SafeHandle handle = new SafeFileHandle(IntPtr.Zero, ownsHandle: true); internal ICoreWebView2Deferral _nativeICoreWebView2DeferralValue; internal object _rawNative; internal ICoreWebView2Deferral _nativeICoreWebView2Deferral { get { if (_nativeICoreWebView2DeferralValue == null) { try { _nativeICoreWebView2DeferralValue = (ICoreWebView2Deferral)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Deferral.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DeferralValue; } set { _nativeICoreWebView2DeferralValue = value; } } public void Dispose() { Dispose(disposing: true); GC.SuppressFinalize(this); } // // Summary: // Protected implementation of Dispose pattern. protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { handle.Dispose(); } Complete(); disposed = true; } } internal CoreWebView2Deferral(object rawCoreWebView2Deferral) { _rawNative = rawCoreWebView2Deferral; } // // Summary: // Completes the associated deferred event. // // Remarks: // Complete should only be run once for each deferral taken. public void Complete() { try { _nativeICoreWebView2Deferral.Complete(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DevToolsProtocolEventReceivedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2DevToolsProtocolEventReceiver.DevToolsProtocolEventReceived // event. public class CoreWebView2DevToolsProtocolEventReceivedEventArgs : EventArgs { internal ICoreWebView2DevToolsProtocolEventReceivedEventArgs _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgsValue; internal ICoreWebView2DevToolsProtocolEventReceivedEventArgs2 _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2Value; internal object _rawNative; internal ICoreWebView2DevToolsProtocolEventReceivedEventArgs _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs { get { if (_nativeICoreWebView2DevToolsProtocolEventReceivedEventArgsValue == null) { try { _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgsValue = (ICoreWebView2DevToolsProtocolEventReceivedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DevToolsProtocolEventReceivedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgsValue; } set { _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgsValue = value; } } internal ICoreWebView2DevToolsProtocolEventReceivedEventArgs2 _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2 { get { if (_nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2Value == null) { try { _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2Value = (ICoreWebView2DevToolsProtocolEventReceivedEventArgs2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DevToolsProtocolEventReceivedEventArgs2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2Value; } set { _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2Value = value; } } // // Summary: // Gets the parameter object of the corresponding DevToolsProtocol event represented // as a JSON string. public string ParameterObjectAsJson { get { try { return _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs.ParameterObjectAsJson; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the sessionId of the target where the event originates from. Empty string // is returned as sessionId if the event comes from the default session for the // top page. public string SessionId { get { try { return _nativeICoreWebView2DevToolsProtocolEventReceivedEventArgs2.SessionId; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2DevToolsProtocolEventReceivedEventArgs(object rawCoreWebView2DevToolsProtocolEventReceivedEventArgs) { _rawNative = rawCoreWebView2DevToolsProtocolEventReceivedEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DevToolsProtocolEventReceivedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2DevToolsProtocolEventReceivedEventHandler : ICoreWebView2DevToolsProtocolEventReceivedEventHandler { public delegate void CallbackType(CoreWebView2DevToolsProtocolEventReceivedEventArgs args); private CallbackType _callback; public CoreWebView2DevToolsProtocolEventReceivedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2DevToolsProtocolEventReceivedEventArgs args) { _callback(new CoreWebView2DevToolsProtocolEventReceivedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DevToolsProtocolEventReceiver.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // A Receiver is created for a particular DevTools Protocol event and allows you // to subscribe and unsubscribe from that event. // // Remarks: // Obtained from the WebView object using Microsoft.Web.WebView2.Core.CoreWebView2.GetDevToolsProtocolEventReceiver(System.String). public class CoreWebView2DevToolsProtocolEventReceiver { internal ICoreWebView2DevToolsProtocolEventReceiver _nativeICoreWebView2DevToolsProtocolEventReceiverValue; internal object _rawNative; private EventRegistrationToken _devToolsProtocolEventReceivedToken; private EventHandler devToolsProtocolEventReceived; internal ICoreWebView2DevToolsProtocolEventReceiver _nativeICoreWebView2DevToolsProtocolEventReceiver { get { if (_nativeICoreWebView2DevToolsProtocolEventReceiverValue == null) { try { _nativeICoreWebView2DevToolsProtocolEventReceiverValue = (ICoreWebView2DevToolsProtocolEventReceiver)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DevToolsProtocolEventReceiver.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DevToolsProtocolEventReceiverValue; } set { _nativeICoreWebView2DevToolsProtocolEventReceiverValue = value; } } // // Summary: // DevToolsProtocolEventReceived is raised when the corresponding DevToolsProtocol // event is raised. public event EventHandler DevToolsProtocolEventReceived { add { if (devToolsProtocolEventReceived == null) { try { _nativeICoreWebView2DevToolsProtocolEventReceiver.add_DevToolsProtocolEventReceived(new CoreWebView2DevToolsProtocolEventReceivedEventHandler(OnDevToolsProtocolEventReceived), out _devToolsProtocolEventReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } devToolsProtocolEventReceived = (EventHandler)Delegate.Combine(devToolsProtocolEventReceived, value); } remove { devToolsProtocolEventReceived = (EventHandler)Delegate.Remove(devToolsProtocolEventReceived, value); if (devToolsProtocolEventReceived != null) { return; } try { _nativeICoreWebView2DevToolsProtocolEventReceiver.remove_DevToolsProtocolEventReceived(_devToolsProtocolEventReceivedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2DevToolsProtocolEventReceiver(object rawCoreWebView2DevToolsProtocolEventReceiver) { _rawNative = rawCoreWebView2DevToolsProtocolEventReceiver; } internal void OnDevToolsProtocolEventReceived(CoreWebView2DevToolsProtocolEventReceivedEventArgs args) { devToolsProtocolEventReceived?.Invoke(this, args); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DocumentTitleChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2DocumentTitleChangedEventHandler : ICoreWebView2DocumentTitleChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2DocumentTitleChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DownloadInterruptReason.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // The reason why the Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation // was interrupted. public enum CoreWebView2DownloadInterruptReason { // // Summary: // No interrupt reason. None, // // Summary: // Generic file error. FileFailed, // // Summary: // Access denied due to security restrictions. FileAccessDenied, // // Summary: // Disk full. User should free some space or choose a different location to store // the file. FileNoSpace, // // Summary: // Result file path with file name is too long. FileNameTooLong, // // Summary: // File is too large for file system. FileTooLarge, // // Summary: // Microsoft Defender Smartscreen detected a virus in the file. FileMalicious, // // Summary: // File was in use, too many files opened, or out of memory. FileTransientError, // // Summary: // File blocked by local policy. FileBlockedByPolicy, // // Summary: // Security check failed unexpectedly. Microsoft Defender SmartScreen could not // scan this file. FileSecurityCheckFailed, // // Summary: // Seeking past the end of a file in opening a file, as part of resuming an interrupted // download. The file did not exist or was not as large as expected. Partially downloaded // file was truncated or deleted, and download will be restarted automatically. FileTooShort, // // Summary: // Partial file did not match the expected hash and was deleted. Download will be // restarted automatically. FileHashMismatch, // // Summary: // Generic network error. User can retry the download manually. NetworkFailed, // // Summary: // Network operation timed out. NetworkTimeout, // // Summary: // Network connection lost. User can retry the download manually. NetworkDisconnected, // // Summary: // Server has gone down. User can retry the download manually. NetworkServerDown, // // Summary: // Network request invalid because original or redirected URI is invalid, has an // unsupported scheme, or is disallowed by network policy. NetworkInvalidRequest, // // Summary: // Generic server error. User can retry the download manually. ServerFailed, // // Summary: // Server does not support range requests. ServerNoRange, // // Summary: // Server does not have the requested data. ServerBadContent, // // Summary: // Server did not authorize access to resource. ServerUnauthorized, // // Summary: // Server certificate problem. ServerCertificateProblem, // // Summary: // Server access forbidden. ServerForbidden, // // Summary: // Unexpected server response. Responding server may not be intended server. User // can retry the download manually. ServerUnexpectedResponse, // // Summary: // Server sent fewer bytes than the Content-Length header. Content-Length header // may be invalid or connection may have closed. Download is treated as complete // unless there are [strong validators](https://tools.ietf.org/html/rfc7232#section-2) // present to interrupt the download. ServerContentLengthMismatch, // // Summary: // Unexpected cross-origin redirect. ServerCrossOriginRedirect, // // Summary: // User canceled the download. UserCanceled, // // Summary: // User shut down the WebView. Resuming downloads that were interrupted during shutdown // is not yet supported. UserShutdown, // // Summary: // User paused the download. UserPaused, // // Summary: // WebView crashed. DownloadProcessCrashed } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DownloadOperation.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Represents a download operation. Gives access to a download's metadata and supports // a user canceling, pausing, or resuming a download. public class CoreWebView2DownloadOperation { internal ICoreWebView2DownloadOperation _nativeICoreWebView2DownloadOperationValue; internal object _rawNative; private EventRegistrationToken _bytesReceivedChangedToken; private EventHandler bytesReceivedChanged; private EventRegistrationToken _estimatedEndTimeChangedToken; private EventHandler estimatedEndTimeChanged; private EventRegistrationToken _stateChangedToken; private EventHandler stateChanged; // // Summary: // The estimated end time of the download. public DateTime EstimatedEndTime => DateTime.Parse(_nativeICoreWebView2DownloadOperation.EstimatedEndTime); // // Summary: // The total bytes to receive count. public ulong? TotalBytesToReceive { get { if (_nativeICoreWebView2DownloadOperation.TotalBytesToReceive < 0) { return null; } return (ulong)_nativeICoreWebView2DownloadOperation.TotalBytesToReceive; } } internal ICoreWebView2DownloadOperation _nativeICoreWebView2DownloadOperation { get { if (_nativeICoreWebView2DownloadOperationValue == null) { try { _nativeICoreWebView2DownloadOperationValue = (ICoreWebView2DownloadOperation)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DownloadOperation.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DownloadOperationValue; } set { _nativeICoreWebView2DownloadOperationValue = value; } } // // Summary: // The URI of the download. public string Uri { get { try { return _nativeICoreWebView2DownloadOperation.Uri; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The Content-Disposition header value from the download's HTTP response. If none, // the value is an empty string. public string ContentDisposition { get { try { return _nativeICoreWebView2DownloadOperation.ContentDisposition; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // MIME type of the downloaded content. public string MimeType { get { try { return _nativeICoreWebView2DownloadOperation.MimeType; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The number of bytes that have been written to the download file. public long BytesReceived { get { try { return _nativeICoreWebView2DownloadOperation.BytesReceived; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The absolute path to the download file, including file name. // // Remarks: // Host can change this from Microsoft.Web.WebView2.Core.CoreWebView2DownloadStartingEventArgs.ResultFilePath. public string ResultFilePath { get { try { return _nativeICoreWebView2DownloadOperation.ResultFilePath; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The state of the download. A download can be in progress, interrupted, or completed. // // Remarks: // See Microsoft.Web.WebView2.Core.CoreWebView2DownloadState for descriptions of // states. public CoreWebView2DownloadState State { get { try { return (CoreWebView2DownloadState)_nativeICoreWebView2DownloadOperation.State; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The reason why connection with file host was broken. // // Remarks: // See Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason for descriptions // of reasons. public CoreWebView2DownloadInterruptReason InterruptReason { get { try { return (CoreWebView2DownloadInterruptReason)_nativeICoreWebView2DownloadOperation.InterruptReason; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Returns true if an interrupted download can be resumed. // // Remarks: // Downloads with the following interrupt reasons may automatically resume without // you calling any methods: Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason.ServerNoRange, // Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason.FileHashMismatch, // Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason.FileTooShort. // In these cases progress may be restarted with Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.BytesReceived // set to 0. public bool CanResume { get { try { return _nativeICoreWebView2DownloadOperation.CanResume != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Event raised when the bytes received count is updated. public event EventHandler BytesReceivedChanged { add { if (bytesReceivedChanged == null) { try { _nativeICoreWebView2DownloadOperation.add_BytesReceivedChanged(new CoreWebView2BytesReceivedChangedEventHandler(OnBytesReceivedChanged), out _bytesReceivedChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } bytesReceivedChanged = (EventHandler)Delegate.Combine(bytesReceivedChanged, value); } remove { bytesReceivedChanged = (EventHandler)Delegate.Remove(bytesReceivedChanged, value); if (bytesReceivedChanged != null) { return; } try { _nativeICoreWebView2DownloadOperation.remove_BytesReceivedChanged(_bytesReceivedChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Event raised when the estimated end time changes. public event EventHandler EstimatedEndTimeChanged { add { if (estimatedEndTimeChanged == null) { try { _nativeICoreWebView2DownloadOperation.add_EstimatedEndTimeChanged(new CoreWebView2EstimatedEndTimeChangedEventHandler(OnEstimatedEndTimeChanged), out _estimatedEndTimeChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } estimatedEndTimeChanged = (EventHandler)Delegate.Combine(estimatedEndTimeChanged, value); } remove { estimatedEndTimeChanged = (EventHandler)Delegate.Remove(estimatedEndTimeChanged, value); if (estimatedEndTimeChanged != null) { return; } try { _nativeICoreWebView2DownloadOperation.remove_EstimatedEndTimeChanged(_estimatedEndTimeChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Event raised when the state of the download changes. // // Remarks: // Use Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.State to get the // current state, and Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.InterruptReason // to get the reason if the download is interrupted. public event EventHandler StateChanged { add { if (stateChanged == null) { try { _nativeICoreWebView2DownloadOperation.add_StateChanged(new CoreWebView2StateChangedEventHandler(OnStateChanged), out _stateChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } stateChanged = (EventHandler)Delegate.Combine(stateChanged, value); } remove { stateChanged = (EventHandler)Delegate.Remove(stateChanged, value); if (stateChanged != null) { return; } try { _nativeICoreWebView2DownloadOperation.remove_StateChanged(_stateChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2DownloadOperation(object rawCoreWebView2DownloadOperation) { _rawNative = rawCoreWebView2DownloadOperation; } internal void OnBytesReceivedChanged(object args) { bytesReceivedChanged?.Invoke(this, args); } internal void OnEstimatedEndTimeChanged(object args) { estimatedEndTimeChanged?.Invoke(this, args); } internal void OnStateChanged(object args) { stateChanged?.Invoke(this, args); } // // Summary: // Cancels the download. // // Remarks: // If canceled, the default download dialog shows that the download was canceled. // Host should use Microsoft.Web.WebView2.Core.CoreWebView2DownloadStartingEventArgs.Cancel // if download should be canceled without displaying the default download dialog. public void Cancel() { try { _nativeICoreWebView2DownloadOperation.Cancel(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Pauses the download. // // Remarks: // If paused, the default download dialog shows that the download is paused. No // effect if download is already paused. Pausing a download changes the state from // in progress to interrupted, with interrupt reason set to Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason.UserCanceled. public void Pause() { try { _nativeICoreWebView2DownloadOperation.Pause(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Resumes a paused download. May also resume a download that was interrupted for // another reason if Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.CanResume // returns true. // // Remarks: // Resuming a download changes the state from interrupted to in progress. public void Resume() { try { _nativeICoreWebView2DownloadOperation.Resume(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DownloadStartingEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.DownloadStarting // event. public class CoreWebView2DownloadStartingEventArgs : EventArgs { internal ICoreWebView2DownloadStartingEventArgs _nativeICoreWebView2DownloadStartingEventArgsValue; internal object _rawNative; internal ICoreWebView2DownloadStartingEventArgs _nativeICoreWebView2DownloadStartingEventArgs { get { if (_nativeICoreWebView2DownloadStartingEventArgsValue == null) { try { _nativeICoreWebView2DownloadStartingEventArgsValue = (ICoreWebView2DownloadStartingEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2DownloadStartingEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2DownloadStartingEventArgsValue; } set { _nativeICoreWebView2DownloadStartingEventArgsValue = value; } } // // Summary: // Returns the Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation for the // download that has started. public CoreWebView2DownloadOperation DownloadOperation { get { try { return (_nativeICoreWebView2DownloadStartingEventArgs.DownloadOperation == null) ? null : new CoreWebView2DownloadOperation(_nativeICoreWebView2DownloadStartingEventArgs.DownloadOperation); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether to cancel the download. // // Remarks: // If canceled, the download save dialog is not displayed regardless of the Microsoft.Web.WebView2.Core.CoreWebView2DownloadStartingEventArgs.Handled // value and the state is changed to Microsoft.Web.WebView2.Core.CoreWebView2DownloadState.Interrupted // with interrupt reason Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason.UserCanceled. public bool Cancel { get { try { return _nativeICoreWebView2DownloadStartingEventArgs.Cancel != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2DownloadStartingEventArgs.Cancel = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The path to the file. // // Remarks: // If setting the path, the host should ensure that it is an absolute path, including // the file name, and that the path does not point to an existing file. If the path // points to an existing file, the file will be overwritten. If the directory does // not exist, it is created. public string ResultFilePath { get { try { return _nativeICoreWebView2DownloadStartingEventArgs.ResultFilePath; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2DownloadStartingEventArgs.ResultFilePath = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Indicates whether to hide the default download dialog. // // Remarks: // If set to true, the default download dialog is hidden for this download. The // download progresses normally if it is not canceled, there will just be no default // UI shown. By default the value is false and the default download dialog is shown. public bool Handled { get { try { return _nativeICoreWebView2DownloadStartingEventArgs.Handled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2DownloadStartingEventArgs.Handled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2DownloadStartingEventArgs(object rawCoreWebView2DownloadStartingEventArgs) { _rawNative = rawCoreWebView2DownloadStartingEventArgs; } // // Summary: // Gets a Microsoft.Web.WebView2.Core.CoreWebView2Deferral object. // // Remarks: // Use this to Microsoft.Web.WebView2.Core.CoreWebView2Deferral.Complete the event // at a later time. public CoreWebView2Deferral GetDeferral() { try { return new CoreWebView2Deferral(_nativeICoreWebView2DownloadStartingEventArgs.GetDeferral()); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DownloadStartingEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2DownloadStartingEventHandler : ICoreWebView2DownloadStartingEventHandler { public delegate void CallbackType(CoreWebView2DownloadStartingEventArgs args); private CallbackType _callback; public CoreWebView2DownloadStartingEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2DownloadStartingEventArgs args) { _callback(new CoreWebView2DownloadStartingEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2DownloadState.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // The state of the Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation. public enum CoreWebView2DownloadState { // // Summary: // The download is in progress. InProgress, // // Summary: // The connection with the file host was broken. The reason why a download was interrupted // can accessed from Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.InterruptReason. // See Microsoft.Web.WebView2.Core.CoreWebView2DownloadInterruptReason for descriptions // of the different kinds of interrupt reasons. Host can check whether an interrupted // download can be resumed with Microsoft.Web.WebView2.Core.CoreWebView2DownloadOperation.CanResume. // Once resumed, the download state is in progress. Interrupted, // // Summary: // The download completed successfully. Completed } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Environment.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Reflection; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // This represents the WebView2 Environment. // // Remarks: // WebViews created from an environment run on the Browser process specified with // environment parameters and objects created from an environment should be used // in the same environment. Using it in different environments are not guaranteed // to be compatible and may fail. public class CoreWebView2Environment { private enum ProcessorArchitecture : ushort { x86 = 0, x64 = 9, ARM64 = 12, Unknown = ushort.MaxValue } private struct SYSTEM_INFO { internal ushort wProcessorArchitecture; private ushort wReserved; private int dwPageSize; private IntPtr lpMinimumApplicationAddress; private IntPtr lpMaximumApplicationAddress; private IntPtr dwActiveProcessorMask; private int dwNumberOfProcessors; private int dwProcessorType; private int dwAllocationGranularity; private short wProcessorLevel; private short wProcessorRevision; } private const char DirectorySeparatorChar = '\\'; private const char AltDirectorySeparatorChar = '/'; private const char VolumeSeparatorChar = ':'; private static bool webView2LoaderLoaded; private static string loaderDllFolderPath; internal ICoreWebView2Environment _nativeICoreWebView2EnvironmentValue; internal ICoreWebView2Environment2 _nativeICoreWebView2Environment2Value; internal ICoreWebView2Environment3 _nativeICoreWebView2Environment3Value; internal ICoreWebView2Environment4 _nativeICoreWebView2Environment4Value; internal ICoreWebView2Environment5 _nativeICoreWebView2Environment5Value; internal ICoreWebView2Environment6 _nativeICoreWebView2Environment6Value; internal ICoreWebView2Environment7 _nativeICoreWebView2Environment7Value; internal ICoreWebView2Environment8 _nativeICoreWebView2Environment8Value; internal ICoreWebView2Environment9 _nativeICoreWebView2Environment9Value; internal ICoreWebView2Environment10 _nativeICoreWebView2Environment10Value; internal ICoreWebView2Environment11 _nativeICoreWebView2Environment11Value; internal ICoreWebView2Environment12 _nativeICoreWebView2Environment12Value; internal ICoreWebView2ExperimentalEnvironment12 _nativeICoreWebView2ExperimentalEnvironment12Value; internal ICoreWebView2ExperimentalEnvironment10 _nativeICoreWebView2ExperimentalEnvironment10Value; internal ICoreWebView2ExperimentalEnvironment9 _nativeICoreWebView2ExperimentalEnvironment9Value; internal ICoreWebView2ExperimentalEnvironment8 _nativeICoreWebView2ExperimentalEnvironment8Value; internal ICoreWebView2ExperimentalEnvironment7 _nativeICoreWebView2ExperimentalEnvironment7Value; internal ICoreWebView2ExperimentalEnvironment6 _nativeICoreWebView2ExperimentalEnvironment6Value; internal ICoreWebView2ExperimentalEnvironment5 _nativeICoreWebView2ExperimentalEnvironment5Value; internal ICoreWebView2ExperimentalEnvironment4 _nativeICoreWebView2ExperimentalEnvironment4Value; internal ICoreWebView2ExperimentalEnvironment3 _nativeICoreWebView2ExperimentalEnvironment3Value; internal ICoreWebView2ExperimentalEnvironment2 _nativeICoreWebView2ExperimentalEnvironment2Value; internal ICoreWebView2ExperimentalEnvironment _nativeICoreWebView2ExperimentalEnvironmentValue; internal object _rawNative; private EventRegistrationToken _newBrowserVersionAvailableToken; private EventHandler newBrowserVersionAvailable; private EventRegistrationToken _browserProcessExitedToken; private EventHandler browserProcessExited; private EventRegistrationToken _processInfosChangedToken; private EventHandler processInfosChanged; private EventRegistrationToken _renderAdapterLUIDChangedToken; private EventHandler renderAdapterLUIDChanged; internal ICoreWebView2Environment _nativeICoreWebView2Environment { get { if (_nativeICoreWebView2EnvironmentValue == null) { try { _nativeICoreWebView2EnvironmentValue = (ICoreWebView2Environment)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentValue; } set { _nativeICoreWebView2EnvironmentValue = value; } } internal ICoreWebView2Environment2 _nativeICoreWebView2Environment2 { get { if (_nativeICoreWebView2Environment2Value == null) { try { _nativeICoreWebView2Environment2Value = (ICoreWebView2Environment2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment2Value; } set { _nativeICoreWebView2Environment2Value = value; } } internal ICoreWebView2Environment3 _nativeICoreWebView2Environment3 { get { if (_nativeICoreWebView2Environment3Value == null) { try { _nativeICoreWebView2Environment3Value = (ICoreWebView2Environment3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment3Value; } set { _nativeICoreWebView2Environment3Value = value; } } internal ICoreWebView2Environment4 _nativeICoreWebView2Environment4 { get { if (_nativeICoreWebView2Environment4Value == null) { try { _nativeICoreWebView2Environment4Value = (ICoreWebView2Environment4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment4Value; } set { _nativeICoreWebView2Environment4Value = value; } } internal ICoreWebView2Environment5 _nativeICoreWebView2Environment5 { get { if (_nativeICoreWebView2Environment5Value == null) { try { _nativeICoreWebView2Environment5Value = (ICoreWebView2Environment5)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment5.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment5Value; } set { _nativeICoreWebView2Environment5Value = value; } } internal ICoreWebView2Environment6 _nativeICoreWebView2Environment6 { get { if (_nativeICoreWebView2Environment6Value == null) { try { _nativeICoreWebView2Environment6Value = (ICoreWebView2Environment6)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment6.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment6Value; } set { _nativeICoreWebView2Environment6Value = value; } } internal ICoreWebView2Environment7 _nativeICoreWebView2Environment7 { get { if (_nativeICoreWebView2Environment7Value == null) { try { _nativeICoreWebView2Environment7Value = (ICoreWebView2Environment7)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment7.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment7Value; } set { _nativeICoreWebView2Environment7Value = value; } } internal ICoreWebView2Environment8 _nativeICoreWebView2Environment8 { get { if (_nativeICoreWebView2Environment8Value == null) { try { _nativeICoreWebView2Environment8Value = (ICoreWebView2Environment8)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment8.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment8Value; } set { _nativeICoreWebView2Environment8Value = value; } } internal ICoreWebView2Environment9 _nativeICoreWebView2Environment9 { get { if (_nativeICoreWebView2Environment9Value == null) { try { _nativeICoreWebView2Environment9Value = (ICoreWebView2Environment9)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment9.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment9Value; } set { _nativeICoreWebView2Environment9Value = value; } } internal ICoreWebView2Environment10 _nativeICoreWebView2Environment10 { get { if (_nativeICoreWebView2Environment10Value == null) { try { _nativeICoreWebView2Environment10Value = (ICoreWebView2Environment10)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment10.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment10Value; } set { _nativeICoreWebView2Environment10Value = value; } } internal ICoreWebView2Environment11 _nativeICoreWebView2Environment11 { get { if (_nativeICoreWebView2Environment11Value == null) { try { _nativeICoreWebView2Environment11Value = (ICoreWebView2Environment11)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment11.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment11Value; } set { _nativeICoreWebView2Environment11Value = value; } } internal ICoreWebView2Environment12 _nativeICoreWebView2Environment12 { get { if (_nativeICoreWebView2Environment12Value == null) { try { _nativeICoreWebView2Environment12Value = (ICoreWebView2Environment12)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment12.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Environment12Value; } set { _nativeICoreWebView2Environment12Value = value; } } internal ICoreWebView2ExperimentalEnvironment12 _nativeICoreWebView2ExperimentalEnvironment12 { get { if (_nativeICoreWebView2ExperimentalEnvironment12Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment12Value = (ICoreWebView2ExperimentalEnvironment12)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment12.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment12Value; } set { _nativeICoreWebView2ExperimentalEnvironment12Value = value; } } internal ICoreWebView2ExperimentalEnvironment10 _nativeICoreWebView2ExperimentalEnvironment10 { get { if (_nativeICoreWebView2ExperimentalEnvironment10Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment10Value = (ICoreWebView2ExperimentalEnvironment10)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment10.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment10Value; } set { _nativeICoreWebView2ExperimentalEnvironment10Value = value; } } internal ICoreWebView2ExperimentalEnvironment9 _nativeICoreWebView2ExperimentalEnvironment9 { get { if (_nativeICoreWebView2ExperimentalEnvironment9Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment9Value = (ICoreWebView2ExperimentalEnvironment9)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment9.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment9Value; } set { _nativeICoreWebView2ExperimentalEnvironment9Value = value; } } internal ICoreWebView2ExperimentalEnvironment8 _nativeICoreWebView2ExperimentalEnvironment8 { get { if (_nativeICoreWebView2ExperimentalEnvironment8Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment8Value = (ICoreWebView2ExperimentalEnvironment8)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment8.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment8Value; } set { _nativeICoreWebView2ExperimentalEnvironment8Value = value; } } internal ICoreWebView2ExperimentalEnvironment7 _nativeICoreWebView2ExperimentalEnvironment7 { get { if (_nativeICoreWebView2ExperimentalEnvironment7Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment7Value = (ICoreWebView2ExperimentalEnvironment7)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment7.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment7Value; } set { _nativeICoreWebView2ExperimentalEnvironment7Value = value; } } internal ICoreWebView2ExperimentalEnvironment6 _nativeICoreWebView2ExperimentalEnvironment6 { get { if (_nativeICoreWebView2ExperimentalEnvironment6Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment6Value = (ICoreWebView2ExperimentalEnvironment6)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment6.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment6Value; } set { _nativeICoreWebView2ExperimentalEnvironment6Value = value; } } internal ICoreWebView2ExperimentalEnvironment5 _nativeICoreWebView2ExperimentalEnvironment5 { get { if (_nativeICoreWebView2ExperimentalEnvironment5Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment5Value = (ICoreWebView2ExperimentalEnvironment5)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment5.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment5Value; } set { _nativeICoreWebView2ExperimentalEnvironment5Value = value; } } internal ICoreWebView2ExperimentalEnvironment4 _nativeICoreWebView2ExperimentalEnvironment4 { get { if (_nativeICoreWebView2ExperimentalEnvironment4Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment4Value = (ICoreWebView2ExperimentalEnvironment4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment4Value; } set { _nativeICoreWebView2ExperimentalEnvironment4Value = value; } } internal ICoreWebView2ExperimentalEnvironment3 _nativeICoreWebView2ExperimentalEnvironment3 { get { if (_nativeICoreWebView2ExperimentalEnvironment3Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment3Value = (ICoreWebView2ExperimentalEnvironment3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment3Value; } set { _nativeICoreWebView2ExperimentalEnvironment3Value = value; } } internal ICoreWebView2ExperimentalEnvironment2 _nativeICoreWebView2ExperimentalEnvironment2 { get { if (_nativeICoreWebView2ExperimentalEnvironment2Value == null) { try { _nativeICoreWebView2ExperimentalEnvironment2Value = (ICoreWebView2ExperimentalEnvironment2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironment2Value; } set { _nativeICoreWebView2ExperimentalEnvironment2Value = value; } } internal ICoreWebView2ExperimentalEnvironment _nativeICoreWebView2ExperimentalEnvironment { get { if (_nativeICoreWebView2ExperimentalEnvironmentValue == null) { try { _nativeICoreWebView2ExperimentalEnvironmentValue = (ICoreWebView2ExperimentalEnvironment)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalEnvironmentValue; } set { _nativeICoreWebView2ExperimentalEnvironmentValue = value; } } // // Summary: // Gets the browser version info of the current Microsoft.Web.WebView2.Core.CoreWebView2Environment, // including channel name if it is not the stable channel. // // Remarks: // It matches the format of the Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableBrowserVersionString(System.String) // method. Channel names are beta, dev, and canary. public string BrowserVersionString { get { try { return _nativeICoreWebView2Environment.BrowserVersionString; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets the user data folder that all CoreWebView2s created from this environment // are using. // // Remarks: // This could be either the value passed in by the developer when creating the environment // object or the calculated one for default handling. And will always be an absolute // path. public string UserDataFolder { get { try { try { return _nativeICoreWebView2Environment7.UserDataFolder; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalEnvironment5.UserDataFolder; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Gets the failure report folder that all CoreWebView2s created from this environment // are using. public string FailureReportFolderPath { get { try { try { return _nativeICoreWebView2Environment11.FailureReportFolderPath; } catch (NotImplementedException) { return _nativeICoreWebView2ExperimentalEnvironment.FailureReportFolderPath; } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Retrieves the browser's adapter LUID. public ulong RenderAdapterLUID { get { try { return _nativeICoreWebView2ExperimentalEnvironment12.RenderAdapterLUID; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NewBrowserVersionAvailable is raised when a newer version of the WebView2 Runtime // is installed and available using WebView2. // // Remarks: // To use the newer version of the browser you must create a new environment and // WebView. The event is only raised for new version from the same WebView2 Runtime // from which the code is running. When not running with installed WebView2 Runtime, // no event is raised. Because a user data folder is only able to be used by one // browser process at a time, if you want to use the same user data folder in the // WebViews using the new version of the browser, you must close the environment // and instance of WebView that are using the older version of the browser first. // Or simply prompt the user to restart the app. public event EventHandler NewBrowserVersionAvailable { add { if (newBrowserVersionAvailable == null) { try { _nativeICoreWebView2Environment.add_NewBrowserVersionAvailable(new CoreWebView2NewBrowserVersionAvailableEventHandler(OnNewBrowserVersionAvailable), out _newBrowserVersionAvailableToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } newBrowserVersionAvailable = (EventHandler)Delegate.Combine(newBrowserVersionAvailable, value); } remove { newBrowserVersionAvailable = (EventHandler)Delegate.Remove(newBrowserVersionAvailable, value); if (newBrowserVersionAvailable != null) { return; } try { _nativeICoreWebView2Environment.remove_NewBrowserVersionAvailable(_newBrowserVersionAvailableToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // BrowserProcessExited is raised when the collection of WebView2 Runtime processes // for the browser process of this Microsoft.Web.WebView2.Core.CoreWebView2Environment // terminate due to browser process failure or normal shutdown (for example, when // all associated WebViews are closed), after all resources have been released (including // the user data folder). // // Remarks: // Multiple app processes can share a browser process by creating their webviews // from a Microsoft.Web.WebView2.Core.CoreWebView2Environment with the same user // data folder. When the entire collection of WebView2Runtime processes for the // browser process exit, all associated Microsoft.Web.WebView2.Core.CoreWebView2Environment // objects receive the BrowserProcessExited event. Multiple processes sharing the // same browser process need to coordinate their use of the shared user data folder // to avoid race conditions and unnecessary waits. For example, one process should // not clear the user data folder at the same time that another process recovers // from a crash by recreating its WebView controls; one process should not block // waiting for the event if other app processes are using the same browser process // (the browser process will not exit until those other processes have closed their // webviews too). Note this is an event from Microsoft.Web.WebView2.Core.CoreWebView2Environment, // not Microsoft.Web.WebView2.Core.CoreWebView2. The difference between BrowserProcessExited // and Microsoft.Web.WebView2.Core.CoreWebView2.ProcessFailed is that BrowserProcessExited // is raised for any browser process exit (expected or unexpected, after all associated // processes have exited too), while Microsoft.Web.WebView2.Core.CoreWebView2.ProcessFailed // is raised for unexpected process exits of any kind (browser, render, GPU, and // all other types), or for main frame render process unresponsiveness. To learn // more about the WebView2 Process Model, go to [Process model](/microsoft-edge/webview2/concepts/process-model). // In the case the browser process crashes, both BrowserProcessExited and Microsoft.Web.WebView2.Core.CoreWebView2.ProcessFailed // events are raised, but the order is not guaranteed. These events are intended // for different scenarios. It is up to the app to coordinate the handlers so they // do not try to perform reliability recovery while also trying to move to a new // WebView2 Runtime version or remove the user data folder. public event EventHandler BrowserProcessExited { add { if (browserProcessExited == null) { try { try { _nativeICoreWebView2Environment5.add_BrowserProcessExited(new CoreWebView2BrowserProcessExitedEventHandler(OnBrowserProcessExited), out _browserProcessExitedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalEnvironment4.add_BrowserProcessExited(new CoreWebView2BrowserProcessExitedEventHandler(OnBrowserProcessExited), out _browserProcessExitedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } browserProcessExited = (EventHandler)Delegate.Combine(browserProcessExited, value); } remove { browserProcessExited = (EventHandler)Delegate.Remove(browserProcessExited, value); if (browserProcessExited != null) { return; } try { try { _nativeICoreWebView2Environment5.remove_BrowserProcessExited(_browserProcessExitedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalEnvironment4.remove_BrowserProcessExited(_browserProcessExitedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // ProcessInfosChanged is raised when a collection of WebView2 Runtime processes // changed due to new process being detected or when a existing process gone away. public event EventHandler ProcessInfosChanged { add { if (processInfosChanged == null) { try { try { _nativeICoreWebView2Environment8.add_ProcessInfosChanged(new CoreWebView2ProcessInfosChangedEventHandler(OnProcessInfosChanged), out _processInfosChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalEnvironment9.add_ProcessInfosChanged(new CoreWebView2ProcessInfosChangedEventHandler(OnProcessInfosChanged), out _processInfosChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } processInfosChanged = (EventHandler)Delegate.Combine(processInfosChanged, value); } remove { processInfosChanged = (EventHandler)Delegate.Remove(processInfosChanged, value); if (processInfosChanged != null) { return; } try { try { _nativeICoreWebView2Environment8.remove_ProcessInfosChanged(_processInfosChangedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalEnvironment9.remove_ProcessInfosChanged(_processInfosChangedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Registers the browser adapter LUID changed event. public event EventHandler RenderAdapterLUIDChanged { add { if (renderAdapterLUIDChanged == null) { try { _nativeICoreWebView2ExperimentalEnvironment12.add_RenderAdapterLUIDChanged(new CoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler(OnRenderAdapterLUIDChanged), out _renderAdapterLUIDChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } renderAdapterLUIDChanged = (EventHandler)Delegate.Combine(renderAdapterLUIDChanged, value); } remove { renderAdapterLUIDChanged = (EventHandler)Delegate.Remove(renderAdapterLUIDChanged, value); if (renderAdapterLUIDChanged != null) { return; } try { _nativeICoreWebView2ExperimentalEnvironment12.remove_RenderAdapterLUIDChanged(_renderAdapterLUIDChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } [DllImport("WebView2Loader.dll")] internal static extern int CreateCoreWebView2EnvironmentWithOptions([In][MarshalAs(UnmanagedType.LPWStr)] string browserExecutableFolder, [In][MarshalAs(UnmanagedType.LPWStr)] string userDataFolder, ICoreWebView2EnvironmentOptions options, ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler environment_created_handler); [DllImport("WebView2Loader.dll")] internal static extern int GetAvailableCoreWebView2BrowserVersionString([In][MarshalAs(UnmanagedType.LPWStr)] string browserExecutableFolder, [MarshalAs(UnmanagedType.LPWStr)] ref string versionInfo); [DllImport("WebView2Loader.dll")] internal static extern int CompareBrowserVersions([In][MarshalAs(UnmanagedType.LPWStr)] string version1, [In][MarshalAs(UnmanagedType.LPWStr)] string version2, ref int result); // // Summary: // Creates a WebView2 Environment using the installed or a custom WebView2 Runtime // version. // // Parameters: // browserExecutableFolder: // The relative path to the folder that contains a custom version of WebView2 Runtime. // To use a fixed version of the WebView2 Runtime, pass the folder path that contains // the fixed version of the WebView2 Runtime to browserExecutableFolder. BrowserExecutableFolder // supports both relative (to the application's executable) and absolute file paths. // To create WebView2 controls that use the installed version of the WebView2 Runtime // that exists on user machines, pass a null or empty string to browserExecutableFolder. // In this scenario, the API tries to find a compatible version of the WebView2 // Runtime that is installed on the user machine (first at the machine level, and // then per user) using the selected channel preference. The path of fixed version // of the WebView2 Runtime should not contain \Edge\Application\. When such a path // is used, the API fails with ERROR_NOT_SUPPORTED. // // userDataFolder: // The user data folder location for WebView2. // The path is either an absolute file path or a relative file path that is interpreted // as relative to the compiled code for the current process. The default user data // folder {Executable File Name}.WebView2 is created in the same directory next // to the compiled code for the app. WebView2 creation fails if the compiled code // is running in a directory in which the process does not have permission to create // a new directory. The app is responsible to clean up the associated user data // folder when it is done. // // options: // Options used to create WebView2 Environment. // As a browser process may be shared among WebViews, WebView creation fails if // the specified options does not match the options of the WebViews that are currently // running in the shared browser process. // // Remarks: // The default channel search order is the WebView2 Runtime, Beta, Dev, and Canary. // When an override WEBVIEW2_RELEASE_CHANNEL_PREFERENCE environment variable or // applicable releaseChannelPreference registry value is set to 1, the channel search // order is reversed. // To use a fixed version of the WebView2 Runtime, pass the relative folder path // that contains the fixed version of the WebView2 Runtime to browserExecutableFolder. // To create WebView2 controls that use the installed version of the WebView2 Runtime // that exists on user machines, pass a null or empty string to browserExecutableFolder. // In this scenario, the API tries to find a compatible version of the WebView2 // Runtime that is installed on the user machine (first at the machine level, and // then per user) using the selected channel preference. The path of fixed version // of the WebView2 Runtime should not contain \Edge\Application\. When such a path // is used, the API fails with the following error. // The browserExecutableFolder, userDataFolder, and options may be overridden by // values either specified in environment variables or in the registry. // When creating a Microsoft.Web.WebView2.Core.CoreWebView2Environment the following // environment variables are verified. // • WEBVIEW2_BROWSER_EXECUTABLE_FOLDER – // • WEBVIEW2_USER_DATA_FOLDER – // • WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS – // • WEBVIEW2_RELEASE_CHANNEL_PREFERENCE – // If browser executable folder or user data folder is specified in an environment // variable or in the registry, the specified browserExecutableFolder or userDataFolder // values are overridden. If additional browser arguments are specified in an environment // variable or in the registry, it is appended to the corresponding value in the // specified options. // While not strictly overrides, additional environment variables may be set. // Value – Description // WEBVIEW2_WAIT_FOR_SCRIPT_DEBUGGER – When found with a non-empty value, this indicates // that the WebView is being launched under a script debugger. In this case, the // WebView issues a Page.waitForDebugger CDP command that runs the script inside // the WebView to pause on launch, until a debugger issues a corresponding Runtime.runIfWaitingForDebugger // CDP command to resume the runtime. Note that this environment variable does not // have a registry key equivalent. // WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER – When found with a non-empty value, it indicates // that the WebView is being launched under a script debugger that also supports // host apps that use multiple WebViews. The value is used as the identifier for // a named pipe that is opened and written to when a new WebView is created by the // host app. The payload should match the payload of the remote-debugging-port JSON // target and an external debugger may use it to attach to a specific WebView instance. // The format of the pipe created by the debugger should be \\.\pipe\WebView2\Debugger\{app_name}\{pipe_name}, // where the following are true. // • {app_name} is the host app exe file name, for example, WebView2Example.exe // • {pipe_name} is the value set for WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER // To enable debugging of the targets identified by the JSON, you must set the WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS // environment variable to send --remote-debugging-port={port_num}, where the following // is true. // • {port_num} is the port on which the CDP server binds. // If both WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER and WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS // environment variables, the WebViews hosted in your app and associated contents // may exposed to 3rd party apps such as debuggers. Note that this environment variable // does not have a registry key equivalent. // If none of those environment variables exist, then the registry is examined next. // • [{Root}]\Software\Policies\Microsoft\Edge\WebView2\BrowserExecutableFolder // "{AppId}"="" – // • [{Root}]\Software\Policies\Microsoft\Edge\WebView2\ReleaseChannelPreference // "{AppId}"="" – // • [{Root}]\Software\Policies\Microsoft\Edge\WebView2\AdditionalBrowserArguments // "{AppId}"="" – // • [{Root}]\Software\Policies\Microsoft\Edge\WebView2\UserDataFolder "{AppId}"="" // – // Use a group policy under Administrative Templates > Microsoft Edge WebView2 to // configure browser executable folder and release channel preference. // Value – Description // ERROR_DISK_FULL – In the unlikely scenario where some instances of WebView are // open during a browser update, the deletion of the previous WebView2 Runtime may // be blocked. To avoid running out of disk space, a new WebView creation fails // with this error if it detects that too many previous WebView2 Runtime versions // exist. // COREWEBVIEW2_MAX_INSTANCES – The default maximum number of WebView2 Runtime versions // allowed is 20. To override the maximum number of the previous WebView2 Runtime // versions allowed, set the value of the following environment variable. // ERROR_PRODUCT_UNINSTALLED – If the Webview depends upon an installed WebView2 // Runtime version and it is uninstalled, any subsequent creation fails with this // error. // First verify with Root as HKLM and then HKCU. AppId is first set to the Application // User Model ID of the process, then if no corresponding registry key, the AppId // is set to the compiled code name of the process, or if that is not a registry // key then *. If an override registry key is found, use the browserExecutableFolder // and userDataFolder registry values as replacements and append additionalBrowserArguments // registry values for the corresponding values in the provided options. public static async Task CreateAsync(string browserExecutableFolder = null, string userDataFolder = null, CoreWebView2EnvironmentOptions options = null) { LoadWebView2LoaderDll(); CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler handler = new CoreWebView2CreateCoreWebView2EnvironmentCompletedHandler(); CoreWebView2EnvironmentOptions coreWebView2EnvironmentOptions = options ?? new CoreWebView2EnvironmentOptions(); int num = CreateCoreWebView2EnvironmentWithOptions(browserExecutableFolder, userDataFolder, coreWebView2EnvironmentOptions._nativeICoreWebView2EnvironmentOptions, handler); if (num == -2147024894) { throw new WebView2RuntimeNotFoundException(Marshal.GetExceptionForHR(num)); } Marshal.ThrowExceptionForHR(num); await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.createdEnvironment; } // // Summary: // Gets the browser version info including channel name if it is not the stable // channel or WebView2 Runtime. // // Parameters: // browserExecutableFolder: // The relative path to the folder that contains the WebView2 Runtime. // // Exceptions: // T:Microsoft.Web.WebView2.Core.WebView2RuntimeNotFoundException: // WebView2 Runtime installation is missing. public static string GetAvailableBrowserVersionString(string browserExecutableFolder = null) { LoadWebView2LoaderDll(); string versionInfo = null; int availableCoreWebView2BrowserVersionString = GetAvailableCoreWebView2BrowserVersionString(browserExecutableFolder, ref versionInfo); if (availableCoreWebView2BrowserVersionString == -2147024894) { throw new WebView2RuntimeNotFoundException(Marshal.GetExceptionForHR(availableCoreWebView2BrowserVersionString)); } Marshal.ThrowExceptionForHR(availableCoreWebView2BrowserVersionString); return versionInfo; } // // Summary: // Compares two instances of browser versions correctly and returns an integer that // indicates whether the first instance is older, the same as, or newer than the // second instance. // // Parameters: // version1: // One of the version strings to compare. // // version2: // The other version string to compare. // // Returns: // An integer that indicates whether the first instance is older, the same as, or // newer than the second instance. // Value Type Condition // Less than zero version1 is older than version2. // Zero version1 is the same as version2. // Greater than zero version1 is newer than version2. public static int CompareBrowserVersions(string version1, string version2) { LoadWebView2LoaderDll(); int result = 0; Marshal.ThrowExceptionForHR(CompareBrowserVersions(version1, version2, ref result)); return result; } // // Summary: // Creates a new Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest object. // // Parameters: // uri: // The request URI. // // Method: // The HTTP request method. // // postData: // // Headers: // The raw request header string delimited by CRLF (optional in last header). // // Remarks: // uri parameter must be absolute URI. It's also possible to create this object // with null headers string and then use the Microsoft.Web.WebView2.Core.CoreWebView2HttpRequestHeaders // to construct the headers line by line. public CoreWebView2WebResourceRequest CreateWebResourceRequest(string uri, string Method, Stream postData, string Headers) { return new CoreWebView2WebResourceRequest(_nativeICoreWebView2Environment2.CreateWebResourceRequest(uri, Method, (postData == null) ? null : new ManagedIStream(postData), Headers)); } // // Summary: // Creates a new Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions object, // which can be passed as a parameter in Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions) // and Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2CompositionControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions) // function for multiple profiles support. // // Returns: // A Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions that can be passed // when calling Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions) // and Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2CompositionControllerAsync(System.IntPtr,Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions). // // Remarks: // The options is a settable property while the default for profile name is an empty // string and the default value for Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions.IsInPrivateModeEnabled // is false. The profile will be created on disk or opened when calling CreateCoreWebView2ControllerWithOptions // no matter InPrivate mode is enabled or not, and it will be released in memory // when the correspoding Microsoft.Web.WebView2.Core.CoreWebView2Controller is closed // but still remain on disk. As WebView2 is built on top of Edge browser, it follows // Edge's behavior pattern. To create an InPrivate WebView, we get an off-the-record // profile (an InPrivate profile) from a regular profile, then create the WebView // with the off-the-record profile. Also the profile name can be reused. public CoreWebView2ControllerOptions CreateCoreWebView2ControllerOptions() { try { return new CoreWebView2ControllerOptions(_nativeICoreWebView2Environment10.CreateCoreWebView2ControllerOptions()); } catch (NotImplementedException) { return new CoreWebView2ControllerOptions(_nativeICoreWebView2ExperimentalEnvironment8.CreateCoreWebView2ControllerOptions("", 0)); } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2Environment members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CreateCoreWebView2ControllerOptions members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Asynchronously creates a new Microsoft.Web.WebView2.Core.CoreWebView2Controller // object. // // Parameters: // ParentWindow: // The HWND in which the WebView should be displayed and from which receive input. // // options: // The options contains profileName and inPrivate parameters that could be used // to create CoreWebView2Profile, and it can be used to create multiple WebViews // with multiple profiles under a single user data directory. // // Remarks: // Multiple profiles under single user data directory can share some system resources // including memory, CPU footprint, disk space (such as compiled shaders and safebrowsing // data) etc. public async Task CreateCoreWebView2ControllerAsync(IntPtr ParentWindow, CoreWebView2ControllerOptions options) { CoreWebView2CreateCoreWebView2ControllerCompletedHandler handler; try { handler = new CoreWebView2CreateCoreWebView2ControllerCompletedHandler(); _nativeICoreWebView2Environment10.CreateCoreWebView2ControllerWithOptions(ParentWindow, options._nativeICoreWebView2ControllerOptions, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2Environment members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CreateCoreWebView2ControllerAsync failed to create the controller due to incompatible options.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.createdController; } // // Summary: // Asynchronously creates a new Microsoft.Web.WebView2.Core.CoreWebView2CompositionController // object. // // Parameters: // ParentWindow: // The HWND in which the WebView should be displayed and from which receive input. // // options: // The options contains profileName and inPrivate parameters that could be used // to create CoreWebView2Profile, and it can be used to create multiple WebViews // with multiple profiles under a single user data directory. // // Remarks: // Multiple profiles under single user data directory can share some system resources // including memory, CPU footprint, disk space (such as compiled shaders and safebrowsing // data) etc. public async Task CreateCoreWebView2CompositionControllerAsync(IntPtr ParentWindow, CoreWebView2ControllerOptions options) { CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler handler; try { handler = new CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler(); _nativeICoreWebView2Environment10.CreateCoreWebView2CompositionControllerWithOptions(ParentWindow, options._nativeICoreWebView2ControllerOptions, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2Environment members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CreateCoreWebView2CompositionControllerAsync failed to create the composition controller due to incompatible options.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.webView; } private static ProcessorArchitecture GetArchitecture() { GetSystemInfo(out var lpSystemInfo); return (ProcessorArchitecture)lpSystemInfo.wProcessorArchitecture; } [DllImport("kernel32.dll", SetLastError = true)] private static extern void GetSystemInfo(out SYSTEM_INFO lpSystemInfo); [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] internal static extern IntPtr LoadLibrary(string dllToLoad); private static bool IsDirectorySeparator(char c) { if (c != '\\') { return c == '/'; } return true; } internal static bool IsValidDriveChar(char value) { if (value < 'A' || value > 'Z') { if (value >= 'a') { return value <= 'z'; } return false; } return true; } private static bool IsPathPartiallyQualified(string path) { if (path == null || path.Length < 2) { return true; } if (IsDirectorySeparator(path[0])) { if (path[1] != '?') { return !IsDirectorySeparator(path[1]); } return false; } if (path.Length >= 3 && path[1] == ':' && IsDirectorySeparator(path[2])) { return !IsValidDriveChar(path[0]); } return true; } private static bool IsDotNetFramework() { return typeof(object)!.Assembly.GetCustomAttribute()!.Product.Contains(".NET Framework"); } public static bool IsDotNet() { return typeof(object)!.Assembly.GetCustomAttribute()!.Product.Contains(".NET"); } private static string GetAssemblyLocationDirectory() { return Path.GetDirectoryName(typeof(CoreWebView2Environment)!.Assembly.Location); } private static string GetAssemblyCodeBaseDirectory() { string text = typeof(CoreWebView2Environment)!.Assembly.CodeBase; if (text.StartsWith("file:///")) { text = Path.GetDirectoryName(text.Substring("file:///".Length)); } return text; } private static string GetProcessArchSubFolder() { string text = "runtimes\\win-"; return Path.Combine(GetArchitecture() switch { ProcessorArchitecture.x86 => text + "x86", ProcessorArchitecture.x64 => text + "x64", ProcessorArchitecture.ARM64 => text + "arm64", _ => throw new NotSupportedException("Unknown Processor Architecture of WebView2Loader.dll is not supported"), }, "native"); } // // Summary: // Set the path of the folder containing the `WebView2Loader.dll`. // // Parameters: // folderPath: // The path of the folder containing the `WebView2Loader.dll`. // // Exceptions: // T:System.InvalidOperationException: // Thrown when `WebView2Loader.dll` has been successfully loaded. // // Remarks: // This function allows you to set the path of the folder containing the `WebView2Loader.dll`. // This should be the path of a folder containing `WebView2Loader.dll` and not a // path to the `WebView2Loader.dll` file itself. Note that the WebView2 SDK contains // multiple `WebView2Loader.dll` files for different CPU architectures. When specifying // folder path, you must specify one containing a `WebView2Loader.dll` module with // a CPU architecture matching the current process CPU architecture. This function // is used to load the `WebView2Loader.dll` module during calls to any other static // methods on `CoreWebView2Environment`. So, the path should be specified before // any other API is called in `CoreWebView2Environment` class. Once `WebView2Loader.dll` // is successfully loaded this function will throw an InvalidOperationException // exception. The path can be relative or absolute. Relative paths are relative // to the path of the `Microsoft.Web.WebView2.Core.dll` module. If the `WebView2Loader.dll` // file does not exist in that path or LoadLibrary cannot load the file, or LoadLibrary // fails for any other reason, an exception corresponding to the LoadLibrary failure // is thrown when any other API is called in `CoreWebView2Environment` class. For // instance, if the file cannot be found a `DllNotFoundException` exception will // be thrown. public static void SetLoaderDllFolderPath(string folderPath) { if (!webView2LoaderLoaded) { loaderDllFolderPath = folderPath; return; } throw new InvalidOperationException("The function should be called before before any other API is called in `CoreWebView2Environment` class."); } private static void LoadWebView2LoaderDll() { if (webView2LoaderLoaded) { return; } char[] trimChars = new char[3] { '\\', '/', ' ' }; string text = ""; if (!string.IsNullOrEmpty(loaderDllFolderPath)) { text = loaderDllFolderPath.Trim(trimChars); } else if (IsDotNetFramework() || IsDotNet()) { text = GetProcessArchSubFolder().Trim(trimChars); } if (!string.IsNullOrEmpty(text)) { ArrayList arrayList = new ArrayList(); if (!IsPathPartiallyQualified(text)) { arrayList.Add(text); } else { arrayList.Add(Path.Combine(GetAssemblyLocationDirectory(), text)); arrayList.Add(Path.Combine(GetAssemblyCodeBaseDirectory(), text)); } arrayList.Add(""); string text2 = ""; foreach (string item in arrayList) { text2 = Path.Combine(item, "WebView2Loader.dll"); if (LoadLibrary(text2) != IntPtr.Zero) { webView2LoaderLoaded = true; break; } } if (!webView2LoaderLoaded && !string.IsNullOrEmpty(loaderDllFolderPath)) { int hRForLastWin32Error = Marshal.GetHRForLastWin32Error(); throw new DllNotFoundException($"Unable to load DLL '{text2}' or one of its dependencies: {new Win32Exception(hRForLastWin32Error).Message} (0x{hRForLastWin32Error:X})"); } } webView2LoaderLoaded = true; } internal CoreWebView2Environment(object rawCoreWebView2Environment) { _rawNative = rawCoreWebView2Environment; } internal void OnNewBrowserVersionAvailable(object args) { newBrowserVersionAvailable?.Invoke(this, args); } // // Summary: // Asynchronously creates a new WebView. // // Parameters: // ParentWindow: // The HWND in which the WebView should be displayed and from which receive input. // // Remarks: // The WebView adds a child window to the provided window during WebView creation. // Z-order and other things impacted by sibling window order are affected accordingly. // HWND_MESSAGE is a valid parameter for ParentWindow for an invisible WebView for // Windows 8 and above. In this case the window will never become visible. You are // not able to reparent the window after you have created the WebView. This is not // supported in Windows 7 or below. Passing this parameter in Windows 7 or below // will return ERROR_INVALID_WINDOW_HANDLE in the controller callback. // It can also accept a Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions // which is created by Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerOptions // as the second parameter for multiple profiles support. As WebView2 is built on // top of Edge browser, it follows Edge's behavior pattern. To create an InPrivate // WebView, we gets an off-the-record profile (an InPrivate profile) from a regular // profile, then create the WebView with the off-the-record profile. Multiple profiles // under single user data directory can share some system resources including memory, // CPU footprint, disk space (such as compiled shaders and safebrowsing data) etc. // It is recommended that the application set Application User Model ID for the // process or the application window. If none is set, during WebView creation a // generated Application User Model ID is set to root window of ParentWindow. // It is recommended that the app handles restart manager messages, to gracefully // restart it in the case when the app is using the WebView2 Runtime from a certain // installation and that installation is being uninstalled. For example, if a user // installs a version of the WebView2 Runtime and opts to use another version of // the WebView2 Runtime for testing the app, and then uninstalls the 1st version // of the WebView2 Runtime without closing the app, the app restarts to allow un-installation // to succeed. // When the app retries CreateCoreWebView2ControllerAsync upon failure, it is recommended // that the app restarts from creating a new WebView2 Environment. If a WebView2 // Runtime update happens, the version associated with a WebView2 Environment may // have been removed and causing the object to no longer work. Creating a new WebView2 // Environment works since it uses the latest version. // WebView creation fails if a running instance using the same user data folder // exists, and the Environment objects have different Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions. // For example, if a WebView was created with one Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions.Language, // an attempt to create a WebView with a different Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions.Language // using the same user data folder fails. public async Task CreateCoreWebView2ControllerAsync(IntPtr ParentWindow) { CoreWebView2CreateCoreWebView2ControllerCompletedHandler handler; try { handler = new CoreWebView2CreateCoreWebView2ControllerCompletedHandler(); _nativeICoreWebView2Environment.CreateCoreWebView2Controller(ParentWindow, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.createdController; } // // Summary: // Creates a new Microsoft.Web.WebView2.Core.CoreWebView2WebResourceResponse object. // // Parameters: // Content: // HTTP response content as stream. // // StatusCode: // The HTTP response status code. // // ReasonPhrase: // The HTTP response reason phrase. // // Headers: // The raw response header string delimited by newline. // // Remarks: // It is also possible to create this object with empty headers string and then // use the Microsoft.Web.WebView2.Core.CoreWebView2HttpResponseHeaders to construct // the headers line by line. public CoreWebView2WebResourceResponse CreateWebResourceResponse(Stream Content, int StatusCode, string ReasonPhrase, string Headers) { try { return new CoreWebView2WebResourceResponse(_nativeICoreWebView2Environment.CreateWebResourceResponse((Content == null) ? null : new ManagedIStream(Content), StatusCode, ReasonPhrase, Headers)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Asynchronously creates a new WebView for use with visual hosting. // // Parameters: // ParentWindow: // The HWND in which the app will connect the visual tree of the WebView. // // Remarks: // ParentWindow will be the HWND that the app will receive pointer/mouse input meant // for the WebView (and will need to use Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.SendMouseInput(Microsoft.Web.WebView2.Core.CoreWebView2MouseEventKind,Microsoft.Web.WebView2.Core.CoreWebView2MouseEventVirtualKeys,System.UInt32,System.Drawing.Point) // or Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.SendPointerInput(Microsoft.Web.WebView2.Core.CoreWebView2PointerEventKind,Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo) // to forward). If the app moves the WebView visual tree to underneath a different // window, then it needs to set Microsoft.Web.WebView2.Core.CoreWebView2Controller.ParentWindow // to update the new parent HWND of the visual tree. Set Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.RootVisualTarget // property on the created Microsoft.Web.WebView2.Core.CoreWebView2CompositionController // to provide a visual to host the browser's visual tree. It is recommended that // the application set Application User Model ID for the process or the application // window. If none is set, during WebView creation a generated Application User // Model ID is set to root window of ParentWindow. It can also accept a Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions // which is created by Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerOptions // as the second parameter for multiple profiles support. CreateCoreWebView2CompositionController // is supported in the following versions of Windows: // • Windows 11 // • Windows 10 // • Windows Server 2019 // • Windows Server 2016 public async Task CreateCoreWebView2CompositionControllerAsync(IntPtr ParentWindow) { CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler handler; try { handler = new CoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler(); _nativeICoreWebView2Environment3.CreateCoreWebView2CompositionController(ParentWindow, handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.webView; } // // Summary: // Creates an empty Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo. // // Remarks: // The returned Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo needs to be // populated with all of the relevant info before calling Microsoft.Web.WebView2.Core.CoreWebView2CompositionController.SendPointerInput(Microsoft.Web.WebView2.Core.CoreWebView2PointerEventKind,Microsoft.Web.WebView2.Core.CoreWebView2PointerInfo). public CoreWebView2PointerInfo CreateCoreWebView2PointerInfo() { try { return new CoreWebView2PointerInfo(_nativeICoreWebView2Environment3.CreateCoreWebView2PointerInfo()); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal void OnBrowserProcessExited(CoreWebView2BrowserProcessExitedEventArgs args) { browserProcessExited?.Invoke(this, args); } // // Summary: // Creates the Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings used by the // Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfAsync(System.String,Microsoft.Web.WebView2.Core.CoreWebView2PrintSettings) // method. public CoreWebView2PrintSettings CreatePrintSettings() { try { try { return new CoreWebView2PrintSettings(_nativeICoreWebView2Environment6.CreatePrintSettings()); } catch (NotImplementedException) { return new CoreWebView2PrintSettings(_nativeICoreWebView2ExperimentalEnvironment7.CreatePrintSettings()); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnProcessInfosChanged(object args) { processInfosChanged?.Invoke(this, args); } // // Summary: // Returns the list of Microsoft.Web.WebView2.Core.CoreWebView2ProcessInfo. public IReadOnlyList GetProcessInfos() { try { try { return COMDotNetTypeConverter.ProcessInfoCollectionCOMToNet(_nativeICoreWebView2Environment8.GetProcessInfos()); } catch (NotImplementedException) { return COMDotNetTypeConverter.ProcessInfoCollectionCOMToNet(_nativeICoreWebView2ExperimentalEnvironment9.GetProcessInfos()); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Create a custom Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem object // to insert into the WebView context menu. // // Remarks: // CoreWebView2 will rewind the icon stream before decoding. There is a limit of // 1000 active custom context menu items at a given time per Microsoft.Web.WebView2.Core.CoreWebView2Environment. // Attempting to create more before deleting existing ones will fail with ERROR_NOT_ENOUGH_QUOTA. // It is recommended to reuse custom ContextMenuItems across CoreWebView2ContextMenuRequested // events for performance. The created object's Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.IsEnabled // property will default to true and Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.IsChecked // property will default to false. A Microsoft.Web.WebView2.Core.CoreWebView2ContextMenuItem.CommandId // will be assigned that's unique across active custom context menu items, but command // ID values of deleted custom ContextMenuItems can be reassigned. public CoreWebView2ContextMenuItem CreateContextMenuItem(string Label, Stream iconStream, CoreWebView2ContextMenuItemKind Kind) { try { try { return new CoreWebView2ContextMenuItem(_nativeICoreWebView2Environment9.CreateContextMenuItem(Label, (iconStream == null) ? null : new ManagedIStream(iconStream), (COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND)Kind)); } catch (NotImplementedException) { return new CoreWebView2ContextMenuItem(_nativeICoreWebView2ExperimentalEnvironment6.CreateContextMenuItem(Label, (iconStream == null) ? null : new ManagedIStream(iconStream), (COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND)Kind)); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Create a shared memory based buffer with the specified size in bytes. // // Remarks: // The buffer can be shared with web contents in WebView by calling Microsoft.Web.WebView2.Core.CoreWebView2.PostSharedBufferToScript(Microsoft.Web.WebView2.Core.CoreWebView2SharedBuffer,Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess,System.String) // or Microsoft.Web.WebView2.Core.CoreWebView2Frame.PostSharedBufferToScript(Microsoft.Web.WebView2.Core.CoreWebView2SharedBuffer,Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess,System.String). // Once shared, the same content of the buffer will be accessible from both the // app process and script in WebView. Modification to the content will be visible // to all parties that have access to the buffer. The shared buffer is presented // to the script as ArrayBuffer. All JavaScript APIs that work for ArrayBuffer including // Atomics APIs can be used on it. There is currently a limitation that only size // less than 2GB is supported. public CoreWebView2SharedBuffer CreateSharedBuffer(ulong Size) { try { try { return new CoreWebView2SharedBuffer(_nativeICoreWebView2Environment12.CreateSharedBuffer(Size)); } catch (NotImplementedException) { return new CoreWebView2SharedBuffer(_nativeICoreWebView2ExperimentalEnvironment10.CreateSharedBuffer(Size)); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnRenderAdapterLUIDChanged(object args) { renderAdapterLUIDChanged?.Invoke(this, args); } // // Summary: // Creates texture stream. public CoreWebView2TextureStream CreateTextureStream(string streamId, object d3dDevice) { try { return new CoreWebView2TextureStream(_nativeICoreWebView2ExperimentalEnvironment12.CreateTextureStream(streamId, d3dDevice)); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Try to update the installed Microsoft Edge WebView2 Runtime. // // Remarks: // This will potentially result in a new version of the Edge WebView2 Runtime being // installed and Microsoft.Web.WebView2.Core.CoreWebView2Environment.NewBrowserVersionAvailable // event being raised. There is no guarantee on the order of that event being raised // and the completed handler being invoked. Besides the Microsoft.Web.WebView2.Core.CoreWebView2Environment.NewBrowserVersionAvailable // event, there will be no impact to any currently running WebView2s when the update // is installed. Even though the Edge WebView2 Runtime update is installed for the // machine and available to all users, the update will happen silently and not show // elevation prompt. This will not impact Edge browser installations. The latest // version can always be queried using the Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableBrowserVersionString(System.String) // API. The Microsoft.Web.WebView2.Core.CoreWebView2Environment.UpdateRuntimeAsync // method is only supported for an installed Edge WebView2 Runtime. When running // a fixed version Edge WebView2 Runtime or non stable channel Edge browser, this // API will return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED). There could only be // one active UpdateRuntime operation in an app process, calling this API before // previous call is completed will fail with HRESULT_FROM_WIN32(ERROR_BUSY). Calling // this API repeatedly in a short period of time, will also fail with HRESULT_FROM_WIN32(ERROR_BUSY). // To protect accidental abuse of the update service, the implementation throttles // the calls of this API to 3 times within 5 minutes in a process. The exact throttling // limit can change in the future. Edge update service can only support one update // request at a time globally. If there is already an update operation running in // the Edge update service, the result will be a Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeResult // with Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeStatus.UpdateAlreadyRunning. // As the running update could succeed or fail, the app should retry later if Microsoft.Web.WebView2.Core.CoreWebView2Environment.NewBrowserVersionAvailable // event has not been raised. The UpdateRuntime operation is associated with the // CoreWebView2Environment object and any ongoing UpdateRuntime operation will be // aborted when the associated CoreWebView2Environment along with the CoreWebView2 // objects that are created by the CoreWebView2Environment object are all released. // In this case, the result will be a Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeResult // with Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeStatus.Failed Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeResult.Status // and E_ABORT Microsoft.Web.WebView2.Core.CoreWebView2UpdateRuntimeResult.ExtendedError. public async Task UpdateRuntimeAsync() { CoreWebView2UpdateRuntimeCompletedHandler handler; try { handler = new CoreWebView2UpdateRuntimeCompletedHandler(); _nativeICoreWebView2ExperimentalEnvironment3.UpdateRuntime(handler); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.result; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2EnvironmentOptions.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Options used to create WebView2 Environment. // // Remarks: // Default values will use your defaulted Edge WebView2 Runtime binaries and user // data folder. public class CoreWebView2EnvironmentOptions { private class RawOptions : ICoreWebView2EnvironmentOptions, ICoreWebView2EnvironmentOptions2, ICoreWebView2EnvironmentOptions3, ICoreWebView2EnvironmentOptions4, ICoreWebView2EnvironmentOptions5 { public string AdditionalBrowserArguments { get; set; } public string Language { get; set; } public string TargetCompatibleBrowserVersion { get; set; } public int AllowSingleSignOnUsingOSPrimaryAccount { get; set; } public int ExclusiveUserDataFolderAccess { get; set; } public int IsCustomCrashReportingEnabled { get; set; } public List CustomSchemeRegistrations { get; set; } public int EnableTrackingPrevention { get; set; } = 1; public void GetCustomSchemeRegistrations(out uint count, IntPtr registrationsPtr) { if (CustomSchemeRegistrations == null || CustomSchemeRegistrations.Count == 0) { count = 0u; return; } count = (uint)CustomSchemeRegistrations.Count; Marshal.SizeOf(); IntPtr intPtr = Marshal.AllocCoTaskMem((int)count * Marshal.SizeOf()); for (int i = 0; i < count; i++) { Marshal.WriteIntPtr(intPtr + i * Marshal.SizeOf(), CustomSchemeRegistrations[i].GetNative()); } Marshal.WriteIntPtr(registrationsPtr, intPtr); } public void SetCustomSchemeRegistrations(uint count, ref ICoreWebView2CustomSchemeRegistration registration) { throw new NotImplementedException(); } public RawOptions(string additionalBrowserArguments, string language, string targetCompatibleBrowserVersion, bool allowSingleSignOnUsingOSPrimaryAccount, List customSchemeRegistrations) { AdditionalBrowserArguments = additionalBrowserArguments; Language = language; TargetCompatibleBrowserVersion = targetCompatibleBrowserVersion; AllowSingleSignOnUsingOSPrimaryAccount = (allowSingleSignOnUsingOSPrimaryAccount ? 1 : 0); CustomSchemeRegistrations = customSchemeRegistrations; } } internal ICoreWebView2EnvironmentOptions _nativeICoreWebView2EnvironmentOptionsValue; internal ICoreWebView2EnvironmentOptions2 _nativeICoreWebView2EnvironmentOptions2Value; internal ICoreWebView2EnvironmentOptions3 _nativeICoreWebView2EnvironmentOptions3Value; internal ICoreWebView2EnvironmentOptions4 _nativeICoreWebView2EnvironmentOptions4Value; internal ICoreWebView2EnvironmentOptions5 _nativeICoreWebView2EnvironmentOptions5Value; internal object _rawNative; // // Summary: // List of custom scheme registrations to be applied to the Microsoft.Web.WebView2.Core.CoreWebView2Environment public List CustomSchemeRegistrations { get; } internal ICoreWebView2EnvironmentOptions _nativeICoreWebView2EnvironmentOptions { get { if (_nativeICoreWebView2EnvironmentOptionsValue == null) { try { _nativeICoreWebView2EnvironmentOptionsValue = (ICoreWebView2EnvironmentOptions)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2EnvironmentOptions.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentOptionsValue; } set { _nativeICoreWebView2EnvironmentOptionsValue = value; } } internal ICoreWebView2EnvironmentOptions2 _nativeICoreWebView2EnvironmentOptions2 { get { if (_nativeICoreWebView2EnvironmentOptions2Value == null) { try { _nativeICoreWebView2EnvironmentOptions2Value = (ICoreWebView2EnvironmentOptions2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2EnvironmentOptions2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentOptions2Value; } set { _nativeICoreWebView2EnvironmentOptions2Value = value; } } internal ICoreWebView2EnvironmentOptions3 _nativeICoreWebView2EnvironmentOptions3 { get { if (_nativeICoreWebView2EnvironmentOptions3Value == null) { try { _nativeICoreWebView2EnvironmentOptions3Value = (ICoreWebView2EnvironmentOptions3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2EnvironmentOptions3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentOptions3Value; } set { _nativeICoreWebView2EnvironmentOptions3Value = value; } } internal ICoreWebView2EnvironmentOptions4 _nativeICoreWebView2EnvironmentOptions4 { get { if (_nativeICoreWebView2EnvironmentOptions4Value == null) { try { _nativeICoreWebView2EnvironmentOptions4Value = (ICoreWebView2EnvironmentOptions4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2EnvironmentOptions4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentOptions4Value; } set { _nativeICoreWebView2EnvironmentOptions4Value = value; } } internal ICoreWebView2EnvironmentOptions5 _nativeICoreWebView2EnvironmentOptions5 { get { if (_nativeICoreWebView2EnvironmentOptions5Value == null) { try { _nativeICoreWebView2EnvironmentOptions5Value = (ICoreWebView2EnvironmentOptions5)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2EnvironmentOptions5.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2EnvironmentOptions5Value; } set { _nativeICoreWebView2EnvironmentOptions5Value = value; } } // // Summary: // Gets or sets the additional browser arguments to change the behavior of the WebView. // // Remarks: // The arguments are passed to the browser process as part of the command. For more // information about using command-line switches with Chromium browser processes, // navigate to [Run Chromium with Flags](https://aka.ms/RunChromiumWithFlags). The // value appended to a switch is appended to the browser process, for example, in // --edge-webview-switches=xxx the value is xxx. If you specify a switch that is // important to WebView functionality, it is ignored, for example, --user-data-dir. // Specific features are disabled internally and blocked from being enabled. If // a switch is specified multiple times, only the last instance is used. // A merge of the different values of the same switch is not attempted, except for // disabled and enabled features. The features specified by --enable-features and // --disable-features will be merged with simple logic: // • The features are the union of the specified features and built-in features. // If a feature is disabled, it is removed from the enabled features list. // If you specify command-line switches and sets this property, the --edge-webview-switches // value takes precedence and is processed last. If a switch fails to parse, the // switch is ignored. The default state for the operation is to run the browser // process with no extra flags. // Please note that calling this API twice will replace the previous value rather // than appending to it. If there are multiple switches, there should be a space // in between them. The one exception is if multiple features are being enabled/disabled // for a single switch, in which case the features should be comma-separated. Ex. // "--disable-features=feature1,feature2 --some-other-switch --do-something" public string AdditionalBrowserArguments { get { try { return _nativeICoreWebView2EnvironmentOptions.AdditionalBrowserArguments; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions.AdditionalBrowserArguments = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the default display language for WebView. // // Remarks: // It applies to browser UIs such as context menu and dialogs. It also applies to // the accept-languages HTTP header that WebView sends to websites. It is in the // format of language[-country] where language is the 2-letter code from [ISO 639](https://www.iso.org/iso-639-language-codes.html) // and country is the 2-letter code from [ISO 3166](https://www.iso.org/standard/72482.html). public string Language { get { try { return _nativeICoreWebView2EnvironmentOptions.Language; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions.Language = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Gets or sets the version of the WebView2 Runtime binaries required to be compatible // with your app. // // Remarks: // This defaults to the WebView2 Runtime version that corresponds with the version // of the SDK the app is using. The format of this value is the same as the format // of the Microsoft.Web.WebView2.Core.CoreWebView2Environment.BrowserVersionString // property and other BrowserVersion values. Only the version part of the BrowserVersion // value is respected. The channel suffix, if it exists, is ignored. The version // of the WebView2 Runtime binaries actually used may be different from the specified // TargetCompatibleBrowserVersion. The binaries are only guaranteed to be compatible. // Verify the actual version on the Microsoft.Web.WebView2.Core.CoreWebView2Environment.BrowserVersionString // property. public string TargetCompatibleBrowserVersion { get { try { return _nativeICoreWebView2EnvironmentOptions.TargetCompatibleBrowserVersion; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions.TargetCompatibleBrowserVersion = value; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Determines whether to enable single sign on with Azure Active Directory (AAD) // resources inside WebView using the logged in Windows account and single sign // on (SSO) with web sites using Microsoft account associated with the login in // Windows account. // // Remarks: // The default value is false. Universal Windows Platform apps must also declare // enterpriseCloudSSO [restricted capability](/windows/uwp/packaging/app-capability-declarations#restricted-capabilities) // for the single sign on (SSO) to work. public bool AllowSingleSignOnUsingOSPrimaryAccount { get { try { return _nativeICoreWebView2EnvironmentOptions.AllowSingleSignOnUsingOSPrimaryAccount != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions.AllowSingleSignOnUsingOSPrimaryAccount = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Determines whether other processes can create Microsoft.Web.WebView2.Core.CoreWebView2Controller // from Microsoft.Web.WebView2.Core.CoreWebView2Environment created with the same // user data folder and therefore sharing the same WebView browser process instance. // // Remarks: // The default value is false. public bool ExclusiveUserDataFolderAccess { get { try { return _nativeICoreWebView2EnvironmentOptions2.ExclusiveUserDataFolderAccess != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions2.ExclusiveUserDataFolderAccess = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // When IsCustomCrashReportingEnabled is set to true, Windows won't send crash data // to Microsoft endpoint. // // Remarks: // The default value is false. In this case, WebView will respect OS consent. public bool IsCustomCrashReportingEnabled { get { try { return _nativeICoreWebView2EnvironmentOptions3.IsCustomCrashReportingEnabled != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions3.IsCustomCrashReportingEnabled = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // The EnableTrackingPrevention property is used to enable/disable tracking prevention // feature in WebView2. This property enable/disable tracking prevention for all // the WebView2's created in the same environment. By default this feature is enabled // to block potentially harmful trackers and trackers from sites that aren't visited // before and set to Microsoft.Web.WebView2.Core.CoreWebView2TrackingPreventionLevel.Balanced // or whatever value was last changed/persisted on the profile. // // Remarks: // You can set this property to false to disable the tracking prevention feature // if the app only renders content in the WebView2 that is known to be safe. Disabling // this feature when creating environment also improves runtime performance by skipping // related code. You shouldn't disable this property if WebView2 is being used as // a "full browser" with arbitrary navigation and should protect end user privacy. // There is Microsoft.Web.WebView2.Core.CoreWebView2Profile.PreferredTrackingPreventionLevel // property to control levels of tracking prevention of the WebView2's associated // with a same profile. However, you can also disable tracking prevention later // using Microsoft.Web.WebView2.Core.CoreWebView2Profile.PreferredTrackingPreventionLevel // property and Microsoft.Web.WebView2.Core.CoreWebView2TrackingPreventionLevel.None // value but that doesn't improves runtime performance. See Microsoft.Web.WebView2.Core.CoreWebView2Profile.PreferredTrackingPreventionLevel // for more details. Tracking prevention protects users from online tracking by // restricting the ability of trackers to access browser-based storage as well as // the network. See [Tracking prevention](/microsoft-edge/web-platform/tracking-prevention). public bool EnableTrackingPrevention { get { try { return _nativeICoreWebView2EnvironmentOptions5.EnableTrackingPrevention != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } set { try { _nativeICoreWebView2EnvironmentOptions5.EnableTrackingPrevention = (value ? 1 : 0); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Initializes a new instance of the CoreWebView2EnvironmentOptions class. // // Parameters: // additionalBrowserArguments: // AdditionalBrowserArguments can be specified to change the behavior of the WebView. // // language: // The default language that WebView will run with. // // targetCompatibleBrowserVersion: // The version of the Edge WebView2 Runtime binaries required to be compatible with // the calling application. // // allowSingleSignOnUsingOSPrimaryAccount: // Set to true if single sign on be enabled using the end user's OS primary account. // Defaults to false. // // customSchemeRegistrations: // List of custom scheme registrations to be applied to the Microsoft.Web.WebView2.Core.CoreWebView2Environment. public CoreWebView2EnvironmentOptions(string additionalBrowserArguments = null, string language = null, string targetCompatibleBrowserVersion = null, bool allowSingleSignOnUsingOSPrimaryAccount = false, List customSchemeRegistrations = null) { targetCompatibleBrowserVersion = BrowserInfo.PRODUCT_VERSION; _nativeICoreWebView2EnvironmentOptions5 = (ICoreWebView2EnvironmentOptions5)(_nativeICoreWebView2EnvironmentOptions4 = (ICoreWebView2EnvironmentOptions4)(_nativeICoreWebView2EnvironmentOptions3 = (ICoreWebView2EnvironmentOptions3)(_nativeICoreWebView2EnvironmentOptions2 = (ICoreWebView2EnvironmentOptions2)(_nativeICoreWebView2EnvironmentOptions = new RawOptions(additionalBrowserArguments, language, targetCompatibleBrowserVersion, allowSingleSignOnUsingOSPrimaryAccount, customSchemeRegistrations))))); CustomSchemeRegistrations = customSchemeRegistrations; } internal CoreWebView2EnvironmentOptions(object rawCoreWebView2EnvironmentOptions) { _rawNative = rawCoreWebView2EnvironmentOptions; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2EstimatedEndTimeChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2EstimatedEndTimeChangedEventHandler : ICoreWebView2EstimatedEndTimeChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2EstimatedEndTimeChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2DownloadOperation source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExecuteScriptCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExecuteScriptCompletedHandler : ICoreWebView2ExecuteScriptCompletedHandler, INotifyCompletion { private Action continuation; public string resultObjectAsJson { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2ExecuteScriptCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, string resultObjectAsJson) { this.resultObjectAsJson = resultObjectAsJson; this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2ExecuteScriptCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public string GetResult() { return resultObjectAsJson; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExecuteScriptResult.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // The result for Microsoft.Web.WebView2.Core.CoreWebView2.ExecuteScriptWithResultAsync(System.String). public class CoreWebView2ExecuteScriptResult { internal ICoreWebView2ExperimentalExecuteScriptResult _nativeICoreWebView2ExperimentalExecuteScriptResultValue; internal object _rawNative; internal ICoreWebView2ExperimentalExecuteScriptResult _nativeICoreWebView2ExperimentalExecuteScriptResult { get { if (_nativeICoreWebView2ExperimentalExecuteScriptResultValue == null) { try { _nativeICoreWebView2ExperimentalExecuteScriptResultValue = (ICoreWebView2ExperimentalExecuteScriptResult)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalExecuteScriptResult.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalExecuteScriptResultValue; } set { _nativeICoreWebView2ExperimentalExecuteScriptResultValue = value; } } // // Summary: // This property is true if Microsoft.Web.WebView2.Core.CoreWebView2.ExecuteScriptWithResultAsync(System.String) // successfully executed script with no unhandled exceptions and the result is available // in the Microsoft.Web.WebView2.Core.CoreWebView2ExecuteScriptResult.ResultAsJson // property. public bool Succeeded { get { try { return _nativeICoreWebView2ExperimentalExecuteScriptResult.Succeeded != 0; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // A function that has no explicit return value returns undefined. If the script // that was run throws an unhandled exception, then the result is also null. public string ResultAsJson { get { try { return _nativeICoreWebView2ExperimentalExecuteScriptResult.ResultAsJson; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // If Succeeded is false, you can use this property to get the unhandled exception // thrown by script execution public CoreWebView2ScriptException Exception { get { try { return (_nativeICoreWebView2ExperimentalExecuteScriptResult.Exception == null) ? null : new CoreWebView2ScriptException(_nativeICoreWebView2ExperimentalExecuteScriptResult.Exception); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2ExecuteScriptResult(object rawCoreWebView2ExecuteScriptResult) { _rawNative = rawCoreWebView2ExecuteScriptResult; } // // Summary: // If Succeeded is true and the result of script execution is a string, this method // provides the value of the string result, and we will get the false var value // when the js result is not string type. public void TryGetResultAsString(out string stringResult, out int value) { try { _nativeICoreWebView2ExperimentalExecuteScriptResult.TryGetResultAsString(out stringResult, out value); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExecuteScriptWithResultCompletedHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.CompilerServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExecuteScriptWithResultCompletedHandler : ICoreWebView2ExperimentalExecuteScriptWithResultCompletedHandler, INotifyCompletion { private Action continuation; public CoreWebView2ExecuteScriptResult result { get; private set; } public int errCode { get; private set; } public bool IsCompleted { get; private set; } public CoreWebView2ExecuteScriptWithResultCompletedHandler() { IsCompleted = false; } public void Invoke(int errCode, ICoreWebView2ExperimentalExecuteScriptResult result) { this.result = new CoreWebView2ExecuteScriptResult(result); this.errCode = errCode; IsCompleted = true; if (continuation != null) { continuation(); } } public CoreWebView2ExecuteScriptWithResultCompletedHandler GetAwaiter() { return this; } public void OnCompleted(Action continuation) { this.continuation = continuation; if (IsCompleted) { continuation(); } } public CoreWebView2ExecuteScriptResult GetResult() { return result; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler : ICoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler { public delegate void CallbackType(CoreWebView2LaunchingExternalUriSchemeEventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalLaunchingExternalUriSchemeEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2ExperimentalLaunchingExternalUriSchemeEventArgs args) { _callback(new CoreWebView2LaunchingExternalUriSchemeEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalProfileDeletedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalProfileDeletedEventHandler : ICoreWebView2ExperimentalProfileDeletedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalProfileDeletedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Profile source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalRasterizationScaleChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalRasterizationScaleChangedEventHandler : ICoreWebView2ExperimentalRasterizationScaleChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalRasterizationScaleChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalController source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler : ICoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalRenderAdapterLUIDChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalEnvironment12 source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler : ICoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler { public delegate void CallbackType(CoreWebView2TextureStreamErrorReceivedEventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalTextureStreamErrorReceivedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalTextureStream source, ICoreWebView2ExperimentalTextureStreamErrorReceivedEventArgs args) { _callback(new CoreWebView2TextureStreamErrorReceivedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalTextureStreamStartRequestedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalTextureStreamStartRequestedEventHandler : ICoreWebView2ExperimentalTextureStreamStartRequestedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalTextureStreamStartRequestedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalTextureStream source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalTextureStreamStoppedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalTextureStreamStoppedEventHandler : ICoreWebView2ExperimentalTextureStreamStoppedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalTextureStreamStoppedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalTextureStream source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler : ICoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler { public delegate void CallbackType(CoreWebView2TextureStreamWebTextureReceivedEventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalTextureStreamWebTextureReceivedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalTextureStream source, ICoreWebView2ExperimentalTextureStreamWebTextureReceivedEventArgs args) { _callback(new CoreWebView2TextureStreamWebTextureReceivedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler : ICoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2ExperimentalTextureStreamWebTextureStreamStoppedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2ExperimentalTextureStream source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FaviconChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FaviconChangedEventHandler : ICoreWebView2FaviconChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2FaviconChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FaviconImageFormat.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion namespace Microsoft.Web.WebView2.Core { // // Summary: // The requested format to get the Favicon from Microsoft.Web.WebView2.Core.CoreWebView2.GetFaviconAsync(Microsoft.Web.WebView2.Core.CoreWebView2FaviconImageFormat). public enum CoreWebView2FaviconImageFormat { // // Summary: // Request the Favicon to be retrieved a Png Format. Png, // // Summary: // Request the Favicon to be retrieved a Jpeg Format. Jpeg } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2File.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Representation of a DOM[File](https://developer.mozilla.org/docs/Web/API/File) // object passed via WebMessage. // // Remarks: // You can use this object to obtain the path of a File dropped on WebView2. public class CoreWebView2File { internal ICoreWebView2File _nativeICoreWebView2FileValue; internal object _rawNative; internal ICoreWebView2File _nativeICoreWebView2File { get { if (_nativeICoreWebView2FileValue == null) { try { _nativeICoreWebView2FileValue = (ICoreWebView2File)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2File.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2FileValue; } set { _nativeICoreWebView2FileValue = value; } } // // Summary: // The absolute file path. public string Path { get { try { return _nativeICoreWebView2File.Path; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2File(object rawCoreWebView2File) { _rawNative = rawCoreWebView2File; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FocusChangedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FocusChangedEventHandler : ICoreWebView2FocusChangedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2FocusChangedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Controller source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2Frame.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // CoreWebView2Frame provides direct access to the iframes information and handling. public class CoreWebView2Frame { internal ICoreWebView2Frame _nativeICoreWebView2FrameValue; internal ICoreWebView2Frame2 _nativeICoreWebView2Frame2Value; internal ICoreWebView2Frame3 _nativeICoreWebView2Frame3Value; internal ICoreWebView2Frame4 _nativeICoreWebView2Frame4Value; internal ICoreWebView2ExperimentalFrame4 _nativeICoreWebView2ExperimentalFrame4Value; internal ICoreWebView2ExperimentalFrame3 _nativeICoreWebView2ExperimentalFrame3Value; internal ICoreWebView2ExperimentalFrame2 _nativeICoreWebView2ExperimentalFrame2Value; internal ICoreWebView2ExperimentalFrame _nativeICoreWebView2ExperimentalFrameValue; internal object _rawNative; private EventRegistrationToken _nameChangedToken; private EventHandler nameChanged; private EventRegistrationToken _destroyedToken; private EventHandler destroyed; private EventRegistrationToken _navigationStartingToken; private EventHandler navigationStarting; private EventRegistrationToken _contentLoadingToken; private EventHandler contentLoading; private EventRegistrationToken _navigationCompletedToken; private EventHandler navigationCompleted; private EventRegistrationToken _dOMContentLoadedToken; private EventHandler dOMContentLoaded; private EventRegistrationToken _webMessageReceivedToken; private EventHandler webMessageReceived; private EventRegistrationToken _permissionRequestedToken; private EventHandler permissionRequested; internal ICoreWebView2Frame _nativeICoreWebView2Frame { get { if (_nativeICoreWebView2FrameValue == null) { try { _nativeICoreWebView2FrameValue = (ICoreWebView2Frame)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Frame.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2FrameValue; } set { _nativeICoreWebView2FrameValue = value; } } internal ICoreWebView2Frame2 _nativeICoreWebView2Frame2 { get { if (_nativeICoreWebView2Frame2Value == null) { try { _nativeICoreWebView2Frame2Value = (ICoreWebView2Frame2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Frame2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Frame2Value; } set { _nativeICoreWebView2Frame2Value = value; } } internal ICoreWebView2Frame3 _nativeICoreWebView2Frame3 { get { if (_nativeICoreWebView2Frame3Value == null) { try { _nativeICoreWebView2Frame3Value = (ICoreWebView2Frame3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Frame3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Frame3Value; } set { _nativeICoreWebView2Frame3Value = value; } } internal ICoreWebView2Frame4 _nativeICoreWebView2Frame4 { get { if (_nativeICoreWebView2Frame4Value == null) { try { _nativeICoreWebView2Frame4Value = (ICoreWebView2Frame4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Frame4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2Frame4Value; } set { _nativeICoreWebView2Frame4Value = value; } } internal ICoreWebView2ExperimentalFrame4 _nativeICoreWebView2ExperimentalFrame4 { get { if (_nativeICoreWebView2ExperimentalFrame4Value == null) { try { _nativeICoreWebView2ExperimentalFrame4Value = (ICoreWebView2ExperimentalFrame4)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalFrame4.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalFrame4Value; } set { _nativeICoreWebView2ExperimentalFrame4Value = value; } } internal ICoreWebView2ExperimentalFrame3 _nativeICoreWebView2ExperimentalFrame3 { get { if (_nativeICoreWebView2ExperimentalFrame3Value == null) { try { _nativeICoreWebView2ExperimentalFrame3Value = (ICoreWebView2ExperimentalFrame3)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalFrame3.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalFrame3Value; } set { _nativeICoreWebView2ExperimentalFrame3Value = value; } } internal ICoreWebView2ExperimentalFrame2 _nativeICoreWebView2ExperimentalFrame2 { get { if (_nativeICoreWebView2ExperimentalFrame2Value == null) { try { _nativeICoreWebView2ExperimentalFrame2Value = (ICoreWebView2ExperimentalFrame2)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalFrame2.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalFrame2Value; } set { _nativeICoreWebView2ExperimentalFrame2Value = value; } } internal ICoreWebView2ExperimentalFrame _nativeICoreWebView2ExperimentalFrame { get { if (_nativeICoreWebView2ExperimentalFrameValue == null) { try { _nativeICoreWebView2ExperimentalFrameValue = (ICoreWebView2ExperimentalFrame)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalFrame.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2ExperimentalFrameValue; } set { _nativeICoreWebView2ExperimentalFrameValue = value; } } // // Summary: // The name of the iframe from the iframe html tag declaring it. public string Name { get { try { return _nativeICoreWebView2Frame.Name; } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NameChanged is raised when the iframe changes its window.name property. public event EventHandler NameChanged { add { if (nameChanged == null) { try { _nativeICoreWebView2Frame.add_NameChanged(new CoreWebView2FrameNameChangedEventHandler(OnNameChanged), out _nameChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } nameChanged = (EventHandler)Delegate.Combine(nameChanged, value); } remove { nameChanged = (EventHandler)Delegate.Remove(nameChanged, value); if (nameChanged != null) { return; } try { _nativeICoreWebView2Frame.remove_NameChanged(_nameChangedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // Destroyed event is raised when the iframe corresponding to this Microsoft.Web.WebView2.Core.CoreWebView2Frame // object is removed or the document containing that iframe is destroyed. public event EventHandler Destroyed { add { if (destroyed == null) { try { _nativeICoreWebView2Frame.add_Destroyed(new CoreWebView2FrameDestroyedEventHandler(OnDestroyed), out _destroyedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } destroyed = (EventHandler)Delegate.Combine(destroyed, value); } remove { destroyed = (EventHandler)Delegate.Remove(destroyed, value); if (destroyed != null) { return; } try { _nativeICoreWebView2Frame.remove_Destroyed(_destroyedToken); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } // // Summary: // NavigationStarting is raised when the current frame is requesting permission // to navigate to a different URI. // // Remarks: // A frame navigation will raise a Microsoft.Web.WebView2.Core.CoreWebView2Frame.NavigationStarting // event and a Microsoft.Web.WebView2.Core.CoreWebView2.FrameNavigationStarting // event. All of the Microsoft.Web.WebView2.Core.CoreWebView2.FrameNavigationStarting // event handlers will be run before the Microsoft.Web.WebView2.Core.CoreWebView2Frame.NavigationStarting // event handlers. All of the event handlers share a common Microsoft.Web.WebView2.Core.CoreWebView2NavigationStartingEventArgs // object. Whichever event handler is last to change the Microsoft.Web.WebView2.Core.CoreWebView2NavigationStartingEventArgs.Cancel // property will decide if the frame navigation will be cancelled. Redirects raise // this event as well, and the navigation id is the same as the original one. You // may block corresponding navigations until the event handler returns. public event EventHandler NavigationStarting { add { if (navigationStarting == null) { try { try { _nativeICoreWebView2Frame2.add_NavigationStarting(new CoreWebView2FrameNavigationStartingEventHandler(OnNavigationStarting), out _navigationStartingToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.add_NavigationStarting(new CoreWebView2FrameNavigationStartingEventHandler(OnNavigationStarting), out _navigationStartingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } navigationStarting = (EventHandler)Delegate.Combine(navigationStarting, value); } remove { navigationStarting = (EventHandler)Delegate.Remove(navigationStarting, value); if (navigationStarting != null) { return; } try { try { _nativeICoreWebView2Frame2.remove_NavigationStarting(_navigationStartingToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.remove_NavigationStarting(_navigationStartingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // ContentLoading is raised before any content is loaded, including scripts added // with Microsoft.Web.WebView2.Core.CoreWebView2.AddScriptToExecuteOnDocumentCreatedAsync(System.String). // ContentLoading is not raised if a same page navigation occurs. // // Remarks: // This operation follows the Microsoft.Web.WebView2.Core.CoreWebView2Frame.NavigationStarting // event and precedes the Microsoft.Web.WebView2.Core.CoreWebView2Frame.DOMContentLoaded // and Microsoft.Web.WebView2.Core.CoreWebView2Frame.NavigationCompleted events. public event EventHandler ContentLoading { add { if (contentLoading == null) { try { try { _nativeICoreWebView2Frame2.add_ContentLoading(new CoreWebView2FrameContentLoadingEventHandler(OnContentLoading), out _contentLoadingToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.add_ContentLoading(new CoreWebView2FrameContentLoadingEventHandler(OnContentLoading), out _contentLoadingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } contentLoading = (EventHandler)Delegate.Combine(contentLoading, value); } remove { contentLoading = (EventHandler)Delegate.Remove(contentLoading, value); if (contentLoading != null) { return; } try { try { _nativeICoreWebView2Frame2.remove_ContentLoading(_contentLoadingToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.remove_ContentLoading(_contentLoadingToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // NavigationCompleted is raised when the current frame has completely loaded (body.onload // has been raised) or loading stopped with error. public event EventHandler NavigationCompleted { add { if (navigationCompleted == null) { try { try { _nativeICoreWebView2Frame2.add_NavigationCompleted(new CoreWebView2FrameNavigationCompletedEventHandler(OnNavigationCompleted), out _navigationCompletedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.add_NavigationCompleted(new CoreWebView2FrameNavigationCompletedEventHandler(OnNavigationCompleted), out _navigationCompletedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } navigationCompleted = (EventHandler)Delegate.Combine(navigationCompleted, value); } remove { navigationCompleted = (EventHandler)Delegate.Remove(navigationCompleted, value); if (navigationCompleted != null) { return; } try { try { _nativeICoreWebView2Frame2.remove_NavigationCompleted(_navigationCompletedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.remove_NavigationCompleted(_navigationCompletedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // DOMContentLoaded is raised when the initial HTML document has been parsed. // // Remarks: // This aligns with the the document's DOMContentLoaded event in HTML. public event EventHandler DOMContentLoaded { add { if (dOMContentLoaded == null) { try { try { _nativeICoreWebView2Frame2.add_DOMContentLoaded(new CoreWebView2FrameDOMContentLoadedEventHandler(OnDOMContentLoaded), out _dOMContentLoadedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.add_DOMContentLoaded(new CoreWebView2FrameDOMContentLoadedEventHandler(OnDOMContentLoaded), out _dOMContentLoadedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } dOMContentLoaded = (EventHandler)Delegate.Combine(dOMContentLoaded, value); } remove { dOMContentLoaded = (EventHandler)Delegate.Remove(dOMContentLoaded, value); if (dOMContentLoaded != null) { return; } try { try { _nativeICoreWebView2Frame2.remove_DOMContentLoaded(_dOMContentLoadedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame.remove_DOMContentLoaded(_dOMContentLoadedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // WebMessageReceived is raised when the Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsWebMessageEnabled // setting is set and the iframe runs window.chrome.webview.postMessage. // // Remarks: // The postMessage function is void postMessage(object) where object is any object // supported by JSON conversion. When postMessage is called, the handler's Invoke // method will be called with the object parameter postMessage converted to a JSON // string. public event EventHandler WebMessageReceived { add { if (webMessageReceived == null) { try { try { _nativeICoreWebView2Frame2.add_WebMessageReceived(new CoreWebView2FrameWebMessageReceivedEventHandler(OnWebMessageReceived), out _webMessageReceivedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame2.add_WebMessageReceived(new CoreWebView2FrameWebMessageReceivedEventHandler(OnWebMessageReceived), out _webMessageReceivedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } webMessageReceived = (EventHandler)Delegate.Combine(webMessageReceived, value); } remove { webMessageReceived = (EventHandler)Delegate.Remove(webMessageReceived, value); if (webMessageReceived != null) { return; } try { try { _nativeICoreWebView2Frame2.remove_WebMessageReceived(_webMessageReceivedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame2.remove_WebMessageReceived(_webMessageReceivedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // PermissionRequested is raised when content in an iframe or any of its descendant // iframes requests permission to access some privileged resources. // // Remarks: // This relates to the PermissionRequested event on the CoreWebView2. Both these // events will be raised in the case of an iframe requesting permission. The CoreWebView2Frame's // event handlers will be invoked before the event handlers on the CoreWebView2. // If the Handled property of the PermissionRequestedEventArgs is set to TRUE within // the CoreWebView2Frame event handler, then the event will not be raised on the // CoreWebView2, and it's event handlers will not be invoked. In the case of nested // iframes, the PermissionRequested event will be raised from the top level iframe. // If a deferral is not taken on the event args, the subsequent scripts are blocked // until the event handler returns. If a deferral is taken, the scripts are blocked // until the deferral is completed. public event EventHandler PermissionRequested { add { if (permissionRequested == null) { try { try { _nativeICoreWebView2Frame3.add_PermissionRequested(new CoreWebView2FramePermissionRequestedEventHandler(OnPermissionRequested), out _permissionRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame3.add_PermissionRequested(new CoreWebView2FramePermissionRequestedEventHandler(OnPermissionRequested), out _permissionRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } permissionRequested = (EventHandler)Delegate.Combine(permissionRequested, value); } remove { permissionRequested = (EventHandler)Delegate.Remove(permissionRequested, value); if (permissionRequested != null) { return; } try { try { _nativeICoreWebView2Frame3.remove_PermissionRequested(_permissionRequestedToken); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame3.remove_PermissionRequested(_permissionRequestedToken); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } // // Summary: // Adds the provided host object to script running in the WebViewFrame with the // specified name for the list of the specified origins. The host object will be // accessible for this iframe only if the iframe's origin during access matches // one of the origins which are passed. The provided origins will be normalized // before comparing to the origin of the document. So the scheme name is made lower // case, the host will be punycode decoded as appropriate, default port values will // be removed, and so on. This means the origin's host may be punycode encoded or // not and will match regardless. If list contains malformed origin the call will // fail. The method can be called multiple times in a row without calling RemoveHostObjectFromScript // for the same object name. It will replace the previous object with the new object // and new list of origins. List of origins will be treated as following: 1. empty // list - call will succeed and object will be added for the iframe but it will // not be exposed to any origin; 2. list with origins - during access to host object // from iframe the origin will be checked that it belongs to this list; 3. list // with "*" element - host object will be available for iframe for all origins. // We suggest not to use this feature without understanding security implications // of giving access to host object from from iframes with unknown origins. 4. list // with "file://" element - host object will be available for iframes loaded via // file protocol. // // Parameters: // name: // The name of the host object. // // rawObject: // The host object to be added to script. // // origins: // The list of the iframe origins for which host object will be accessible. public void AddHostObjectToScript(string name, object rawObject, IEnumerable origins) { ICoreWebView2Frame nativeICoreWebView2Frame = _nativeICoreWebView2Frame; object @object = rawObject; nativeICoreWebView2Frame.AddHostObjectToScriptWithOrigins(name, ref @object, (uint)origins.Count(), origins.Select((string origin) => origin).ToArray()); } internal CoreWebView2Frame(object rawCoreWebView2Frame) { _rawNative = rawCoreWebView2Frame; } internal void OnNameChanged(object args) { nameChanged?.Invoke(this, args); } internal void OnDestroyed(object args) { destroyed?.Invoke(this, args); } // // Summary: // Remove the host object specified by the name so that it is no longer accessible // from JavaScript code in the iframe. // // Remarks: // While new access attempts are denied, if the object is already obtained by JavaScript // code in the iframe, the JavaScript code continues to have access to that object. // Calling this method for a name that is already removed or was never added fails. // If the iframe is destroyed this method will return fail also. public void RemoveHostObjectFromScript(string name) { try { _nativeICoreWebView2Frame.RemoveHostObjectFromScript(name); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } // // Summary: // Check whether a frame is destroyed. Returns true during the Microsoft.Web.WebView2.Core.CoreWebView2Frame.Destroyed // event. public int IsDestroyed() { try { return _nativeICoreWebView2Frame.IsDestroyed(); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } internal void OnNavigationStarting(CoreWebView2NavigationStartingEventArgs args) { navigationStarting?.Invoke(this, args); } internal void OnContentLoading(CoreWebView2ContentLoadingEventArgs args) { contentLoading?.Invoke(this, args); } internal void OnNavigationCompleted(CoreWebView2NavigationCompletedEventArgs args) { navigationCompleted?.Invoke(this, args); } internal void OnDOMContentLoaded(CoreWebView2DOMContentLoadedEventArgs args) { dOMContentLoaded?.Invoke(this, args); } internal void OnWebMessageReceived(CoreWebView2WebMessageReceivedEventArgs args) { webMessageReceived?.Invoke(this, args); } // // Summary: // Runs JavaScript code from the javaScript parameter in the current frame. // // Parameters: // javaScript: // The JavaScript code to be run in the current frame. // // Returns: // A JSON encoded string that represents the result of running the provided JavaScript. // // Remarks: // A function that has no explicit return value returns undefined. If the script // that was run throws an unhandled exception, then the result is also null. This // method is applied asynchronously. If the method is run before Microsoft.Web.WebView2.Core.CoreWebView2Frame.ContentLoading, // the script will not be executed and the JSON null will be returned. This operation // works even if Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsScriptEnabled // is set to false. public async Task ExecuteScriptAsync(string javaScript) { CoreWebView2ExecuteScriptCompletedHandler handler; try { try { handler = new CoreWebView2ExecuteScriptCompletedHandler(); _nativeICoreWebView2Frame2.ExecuteScript(javaScript, handler); } catch (NotImplementedException) { handler = new CoreWebView2ExecuteScriptCompletedHandler(); _nativeICoreWebView2ExperimentalFrame.ExecuteScript(javaScript, handler); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } await handler; Marshal.ThrowExceptionForHR(handler.errCode); return handler.resultObjectAsJson; } // // Summary: // Posts the specified webMessageAsJson to the current frame. // // Parameters: // webMessageAsJson: // The web message to be posted to the iframe. // // Remarks: // The event args is an instance of MessageEvent. The Microsoft.Web.WebView2.Core.CoreWebView2Settings.IsWebMessageEnabled // setting must be true or the message will not be sent. The event arg's data property // of the event arg is the webMessageAsJson string parameter parsed as a JSON string // into a JavaScript object. The event arg's source property of the event arg is // a reference to the window.chrome.webview object. For information about sending // messages from the iframe to the host, navigate to Microsoft.Web.WebView2.Core.CoreWebView2Frame.WebMessageReceived. // The message is sent asynchronously. If a navigation occurs before the message // is posted to the iframe, the message is not be sent. public void PostWebMessageAsJson(string webMessageAsJson) { try { try { _nativeICoreWebView2Frame2.PostWebMessageAsJson(webMessageAsJson); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame2.PostWebMessageAsJson(webMessageAsJson); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } // // Summary: // Posts a message that is a simple string rather than a JSON string representation // of a JavaScript object. // // Parameters: // webMessageAsString: // The web message to be posted to the iframe. // // Remarks: // This behaves in exactly the same manner as Microsoft.Web.WebView2.Core.CoreWebView2Frame.PostWebMessageAsJson(System.String), // but the data property of the event arg of the window.chrome.webview message is // a string with the same value as webMessageAsString. Use this instead of Microsoft.Web.WebView2.Core.CoreWebView2Frame.PostWebMessageAsJson(System.String) // if you want to communicate using simple strings rather than JSON objects. public void PostWebMessageAsString(string webMessageAsString) { try { try { _nativeICoreWebView2Frame2.PostWebMessageAsString(webMessageAsString); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame2.PostWebMessageAsString(webMessageAsString); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } internal void OnPermissionRequested(CoreWebView2PermissionRequestedEventArgs args) { permissionRequested?.Invoke(this, args); } // // Summary: // Share a shared buffer object with script of the iframe in the WebView. // // Parameters: // sharedBuffer: // The Microsoft.Web.WebView2.Core.CoreWebView2SharedBuffer object to be shared // with script. // // access: // The desired Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess given // to script. // // additionalDataAsJson: // Additional data to be send to script. If it is not null or empty string, and // it is not a valid JSON string, System.ArgumentException will be thrown. // // Remarks: // The script will receive a sharedbufferreceived event from chrome.webview. The // event arg for that event will have the following methods and properties. // Property Description // getBuffer() A method that returns an ArrayBuffer object with the backing content // from the shared buffer. // additionalData An object as the result of parsing additionalDataAsJson as JSON // string. This property will be undefined if additionalDataAsJson is nullptr or // empty string. // source With a value set as chrome.webview object. // If access is Microsoft.Web.WebView2.Core.CoreWebView2SharedBufferAccess.ReadOnly, // the script will only have read access to the buffer. If the script tries to modify // the content in a read only buffer, it will cause an access violation in WebView // renderer process and crash the renderer process. If the shared buffer is already // closed, the API throws System.Runtime.InteropServices.COMException with error // code of RO_E_CLOSED. The script code should call chrome.webview.releaseBuffer // with the shared buffer as the parameter to release underlying resources as soon // as it does not need access to the shared buffer any more. The application can // post the same shared buffer object to multiple web pages or iframes, or post // to the same web page or iframe multiple times. Each PostSharedBufferToScript // will create a separate ArrayBuffer object with its own view of the memory and // is separately released. The underlying shared memory will be released when all // the views are released. Sharing a buffer to script has security risk. You should // only share buffer with trusted site. If a buffer is shared to a untrusted site, // possible sensitive information could be leaked. If a buffer is shared as modifiable // by the script and the script modifies it in an unexpected way, it could result // in corrupted data that might even crash the application. The example code shows // how to send data to script for one time read only consumption. public void PostSharedBufferToScript(CoreWebView2SharedBuffer sharedBuffer, CoreWebView2SharedBufferAccess access, string additionalDataAsJson) { try { try { _nativeICoreWebView2Frame4.PostSharedBufferToScript(sharedBuffer._nativeICoreWebView2SharedBuffer, (COREWEBVIEW2_SHARED_BUFFER_ACCESS)access, additionalDataAsJson); } catch (NotImplementedException) { _nativeICoreWebView2ExperimentalFrame4.PostSharedBufferToScript(sharedBuffer._nativeICoreWebView2SharedBuffer, (COREWEBVIEW2_SHARED_BUFFER_ACCESS)access, additionalDataAsJson); } } catch (InvalidCastException ex2) { if (ex2.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex2); } throw ex2; } catch (COMException ex3) { if (ex3.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex3); } throw ex3; } } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameContentLoadingEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FrameContentLoadingEventHandler : ICoreWebView2FrameContentLoadingEventHandler { public delegate void CallbackType(CoreWebView2ContentLoadingEventArgs args); private CallbackType _callback; public CoreWebView2FrameContentLoadingEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Frame source, ICoreWebView2ContentLoadingEventArgs args) { _callback(new CoreWebView2ContentLoadingEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameCreatedEventArgs.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Event args for the Microsoft.Web.WebView2.Core.CoreWebView2.FrameCreated event. public class CoreWebView2FrameCreatedEventArgs : EventArgs { internal ICoreWebView2FrameCreatedEventArgs _nativeICoreWebView2FrameCreatedEventArgsValue; internal object _rawNative; internal ICoreWebView2FrameCreatedEventArgs _nativeICoreWebView2FrameCreatedEventArgs { get { if (_nativeICoreWebView2FrameCreatedEventArgsValue == null) { try { _nativeICoreWebView2FrameCreatedEventArgsValue = (ICoreWebView2FrameCreatedEventArgs)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2FrameCreatedEventArgs.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2FrameCreatedEventArgsValue; } set { _nativeICoreWebView2FrameCreatedEventArgsValue = value; } } // // Summary: // Gets the created frame. public CoreWebView2Frame Frame { get { try { return (_nativeICoreWebView2FrameCreatedEventArgs.Frame == null) ? null : new CoreWebView2Frame(_nativeICoreWebView2FrameCreatedEventArgs.Frame); } catch (InvalidCastException ex) { if (ex.HResult == -2147467262) { throw new InvalidOperationException("CoreWebView2 members can only be accessed from the UI thread.", ex); } throw ex; } catch (COMException ex2) { if (ex2.HResult == -2147019873) { throw new InvalidOperationException("CoreWebView2 members cannot be accessed after the WebView2 control is disposed.", ex2); } throw ex2; } } } internal CoreWebView2FrameCreatedEventArgs(object rawCoreWebView2FrameCreatedEventArgs) { _rawNative = rawCoreWebView2FrameCreatedEventArgs; } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameCreatedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FrameCreatedEventHandler : ICoreWebView2FrameCreatedEventHandler { public delegate void CallbackType(CoreWebView2FrameCreatedEventArgs args); private CallbackType _callback; public CoreWebView2FrameCreatedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2 source, ICoreWebView2FrameCreatedEventArgs args) { _callback(new CoreWebView2FrameCreatedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameDOMContentLoadedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FrameDOMContentLoadedEventHandler : ICoreWebView2FrameDOMContentLoadedEventHandler { public delegate void CallbackType(CoreWebView2DOMContentLoadedEventArgs args); private CallbackType _callback; public CoreWebView2FrameDOMContentLoadedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Frame source, ICoreWebView2DOMContentLoadedEventArgs args) { _callback(new CoreWebView2DOMContentLoadedEventArgs(args)); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameDestroyedEventHandler.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { internal class CoreWebView2FrameDestroyedEventHandler : ICoreWebView2FrameDestroyedEventHandler { public delegate void CallbackType(EventArgs args); private CallbackType _callback; public CoreWebView2FrameDestroyedEventHandler(CallbackType callback) { _callback = callback; } public void Invoke(ICoreWebView2Frame source, object args) { _callback(EventArgs.Empty); } } } #if false // Decompilation log '201' items in cache ------------------ Resolve: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\mscorlib.dll' ------------------ Resolve: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.dll' ------------------ Resolve: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.dll' ------------------ Resolve: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.dll' ------------------ Resolve: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Core.dll' ------------------ Resolve: 'Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '4.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.CSharp.dll' ------------------ Resolve: 'Microsoft.Win32.Registry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Registry.dll' ------------------ Resolve: 'System.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.Principal.Windows, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Principal.Windows, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Principal.Windows.dll' ------------------ Resolve: 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Security.Permissions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Security.Permissions.dll' ------------------ Resolve: 'System.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.dll' ------------------ Resolve: 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.NonGeneric, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.NonGeneric.dll' ------------------ Resolve: 'System.Collections.Concurrent, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Concurrent, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Concurrent.dll' ------------------ Resolve: 'System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Console.dll' ------------------ Resolve: 'System.Runtime.InteropServices, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.InteropServices.dll' ------------------ Resolve: 'System.Diagnostics.Contracts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Contracts, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Contracts.dll' ------------------ Resolve: 'System.Diagnostics.StackTrace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.StackTrace, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.StackTrace.dll' ------------------ Resolve: 'System.Diagnostics.Tracing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Tracing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Tracing.dll' ------------------ Resolve: 'System.IO.FileSystem.DriveInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.DriveInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.DriveInfo.dll' ------------------ Resolve: 'System.IO.IsolatedStorage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.IsolatedStorage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.IsolatedStorage.dll' ------------------ Resolve: 'System.ComponentModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.dll' ------------------ Resolve: 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Thread, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Thread.dll' ------------------ Resolve: 'System.Reflection.Emit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.dll' ------------------ Resolve: 'System.Reflection.Emit.ILGeneration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.ILGeneration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.ILGeneration.dll' ------------------ Resolve: 'System.Reflection.Emit.Lightweight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Emit.Lightweight, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Emit.Lightweight.dll' ------------------ Resolve: 'System.Reflection.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Reflection.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Reflection.Primitives.dll' ------------------ Resolve: 'System.Resources.Writer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Resources.Writer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Resources.Writer.dll' ------------------ Resolve: 'System.Runtime.CompilerServices.VisualC, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.CompilerServices.VisualC, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.CompilerServices.VisualC.dll' ------------------ Resolve: 'System.Runtime.Serialization.Formatters, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Serialization.Formatters, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Serialization.Formatters.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.AccessControl.dll' ------------------ Resolve: 'System.Threading.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Threading.AccessControl.dll' ------------------ Resolve: 'System.Security.Claims, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Claims, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Claims.dll' ------------------ Resolve: 'System.Security.Cryptography, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.Cryptography.dll' ------------------ Resolve: 'System.Text.Encoding.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.Encoding.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.Encoding.Extensions.dll' ------------------ Resolve: 'System.Threading, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.dll' ------------------ Resolve: 'System.Threading.Overlapped, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Overlapped, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Overlapped.dll' ------------------ Resolve: 'System.Threading.ThreadPool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.ThreadPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.ThreadPool.dll' ------------------ Resolve: 'System.Threading.Tasks.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Threading.Tasks.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Threading.Tasks.Parallel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Drawing.Primitives.dll' ------------------ Resolve: 'System.ComponentModel.TypeConverter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.TypeConverter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.TypeConverter.dll' ------------------ Resolve: 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Configuration.ConfigurationManager.dll' ------------------ Resolve: 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.CodeDom, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.CodeDom.dll' ------------------ Resolve: 'Microsoft.Win32.SystemEvents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.SystemEvents.dll' ------------------ Resolve: 'System.Diagnostics.Process, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.Process, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.Process.dll' ------------------ Resolve: 'System.Collections.Specialized, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Collections.Specialized, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Collections.Specialized.dll' ------------------ Resolve: 'System.ComponentModel.EventBasedAsync, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.EventBasedAsync, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.EventBasedAsync.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'Microsoft.Win32.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\Microsoft.Win32.Primitives.dll' ------------------ Resolve: 'System.Diagnostics.TraceSource, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TraceSource.dll' ------------------ Resolve: 'System.Diagnostics.TextWriterTraceListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.TextWriterTraceListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.TextWriterTraceListener.dll' ------------------ Resolve: 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.PerformanceCounter, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.PerformanceCounter.dll' ------------------ Resolve: 'System.Diagnostics.EventLog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.EventLog.dll' ------------------ Resolve: 'System.Diagnostics.FileVersionInfo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Diagnostics.FileVersionInfo, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Diagnostics.FileVersionInfo.dll' ------------------ Resolve: 'System.IO.Compression, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Found single assembly: 'System.IO.Compression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Compression.dll' ------------------ Resolve: 'System.IO.FileSystem.Watcher, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.FileSystem.Watcher, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.FileSystem.Watcher.dll' ------------------ Resolve: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.IO.Ports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Windows.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\7.0.3\ref\net7.0\System.Windows.Extensions.dll' ------------------ Resolve: 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Requests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Requests.dll' ------------------ Resolve: 'System.Net.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Primitives.dll' ------------------ Resolve: 'System.Net.HttpListener, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.HttpListener, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.HttpListener.dll' ------------------ Resolve: 'System.Net.ServicePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.ServicePoint, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.ServicePoint.dll' ------------------ Resolve: 'System.Net.NameResolution, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NameResolution, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NameResolution.dll' ------------------ Resolve: 'System.Net.WebClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebClient.dll' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' ------------------ Resolve: 'System.Net.WebProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.WebProxy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebProxy.dll' ------------------ Resolve: 'System.Net.Mail, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Found single assembly: 'System.Net.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Mail.dll' ------------------ Resolve: 'System.Net.NetworkInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.NetworkInformation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.NetworkInformation.dll' ------------------ Resolve: 'System.Net.Ping, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Ping, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Ping.dll' ------------------ Resolve: 'System.Net.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Security.dll' ------------------ Resolve: 'System.Net.Sockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.Sockets.dll' ------------------ Resolve: 'System.Net.WebSockets.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets.Client, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.Client.dll' ------------------ Resolve: 'System.Net.WebSockets, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebSockets.dll' ------------------ Resolve: 'System.Text.RegularExpressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Text.RegularExpressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Text.RegularExpressions.dll' ------------------ Resolve: 'System.Runtime.Numerics, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime.Numerics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.Numerics.dll' ------------------ Resolve: 'System.Numerics.Vectors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Numerics.Vectors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Numerics.Vectors.dll' ------------------ Resolve: 'System.IO.MemoryMappedFiles, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.MemoryMappedFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.MemoryMappedFiles.dll' ------------------ Resolve: 'System.IO.Pipes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.dll' ------------------ Resolve: 'System.Linq.Expressions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Expressions.dll' ------------------ Resolve: 'System.IO.Pipes.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.IO.Pipes.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.IO.Pipes.AccessControl.dll' ------------------ Resolve: 'System.Linq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.dll' ------------------ Resolve: 'System.Linq.Queryable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Queryable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Queryable.dll' ------------------ Resolve: 'System.Linq.Parallel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Linq.Parallel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WARN: Version mismatch. Expected: '0.0.0.0', Got: '7.0.0.0' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Linq.Parallel.dll' ------------------ Resolve: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Runtime.dll' ------------------ Resolve: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Security.AccessControl, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Security.AccessControl.dll' ------------------ Resolve: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ComponentModel.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ComponentModel.Primitives.dll' ------------------ Resolve: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.ObjectModel.dll' ------------------ Resolve: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Could not find by name: 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ------------------ Resolve: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Found single assembly: 'System.Net.WebHeaderCollection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Load from: 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.3\ref\net7.0\System.Net.WebHeaderCollection.dll' #endif ================================================ FILE: Source/Platform/Windows/Microsoft.Web.WebView2.Core/CoreWebView2FrameInfo.cs ================================================ #region Assembly Microsoft.Web.WebView2.Core, Version=1.0.1829.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e // C:\Users\ChisterWu\.nuget\packages\microsoft.web.webview2\1.0.1829-prerelease\lib\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll // Decompiled with ICSharpCode.Decompiler 7.1.0.6543 #endregion using System; using System.Runtime.InteropServices; using Microsoft.Web.WebView2.Core.Raw; namespace Microsoft.Web.WebView2.Core { // // Summary: // Provides a set of properties for a frame in the Microsoft.Web.WebView2.Core.CoreWebView2. public class CoreWebView2FrameInfo { internal ICoreWebView2FrameInfo _nativeICoreWebView2FrameInfoValue; internal object _rawNative; internal ICoreWebView2FrameInfo _nativeICoreWebView2FrameInfo { get { if (_nativeICoreWebView2FrameInfoValue == null) { try { _nativeICoreWebView2FrameInfoValue = (ICoreWebView2FrameInfo)_rawNative; } catch (Exception inner) { throw new NotImplementedException("Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2FrameInfo.\nThis may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.\nFor instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.\nOr, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime.\nFor more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning", inner); } } return _nativeICoreWebView2FrameInfoValue; } set { _nativeICoreWebView2FrameInfoValue = value; } } // // Summary: // Gets the name attribute of the frame, as in